@bkm016/basalt 0.1.6 → 0.1.7
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 +3 -3
- package/{chunk-tgfbtehh.js → chunk-654cny9a.js} +82 -82
- package/{chunk-hksqjts3.js → chunk-sjjtxpg2.js} +174 -173
- package/compiled.js +1 -1
- package/package.json +1 -1
- package/ui-test-worker.js +1 -1
- package/web/{chunk-zsxw5fj7.js → chunk-079091ar.js} +1 -1
- package/web/{chunk-t74r2n8h.js → chunk-083r4f80.js} +1 -1
- package/web/{chunk-fp48zz2e.js → chunk-0cng7r2x.js} +1 -1
- package/web/chunk-0k0ande6.js +1 -0
- package/web/{chunk-ya3ghn3n.js → chunk-14deqqhr.js} +1 -1
- package/web/{chunk-5v44qv67.js → chunk-1s53190z.js} +2 -2
- package/web/{chunk-fx0n2g22.js → chunk-2b63adsj.js} +1 -1
- package/web/{chunk-cktmyc13.js → chunk-2cem4sv7.js} +2 -2
- package/web/{chunk-m2prjwk3.js → chunk-3baypnwn.js} +3 -3
- package/web/{chunk-m9bzz9m0.js → chunk-4067nwjp.js} +2 -2
- package/web/{chunk-96v2avmw.js → chunk-4fm55fgb.js} +1 -1
- package/web/{chunk-nyn9tghz.js → chunk-4q7wf0wd.js} +1 -1
- package/web/{chunk-ck8rr0sr.js → chunk-4sve9xrj.js} +1 -1
- package/web/{chunk-03dmzvaq.js → chunk-4vjnrz87.js} +1 -1
- package/web/{chunk-7hs57qdr.js → chunk-5k8sv4f5.js} +1 -1
- package/web/{chunk-cm92fyr3.js → chunk-5vjhvw1m.js} +1 -1
- package/web/{chunk-xc2sq3t5.js → chunk-5wbnjjhg.js} +1 -1
- package/web/chunk-6ft5pz3c.js +1 -0
- package/web/chunk-7c8rwqtx.js +1 -0
- package/web/chunk-7qzz025k.js +1 -0
- package/web/chunk-7xbaqqd7.css +1 -0
- package/web/chunk-80eyv2mk.js +1 -0
- package/web/{chunk-5wdk97mk.js → chunk-89paytbk.js} +1 -1
- package/web/chunk-8ceej2g7.js +1 -0
- package/web/chunk-8nyhy122.js +1 -0
- package/web/{chunk-718mr5gc.js → chunk-989jq2h8.js} +1 -1
- package/web/{chunk-fxs4nb93.js → chunk-aangfjqc.js} +1 -1
- package/web/{chunk-prvh9syp.js → chunk-bdydzbqk.js} +1 -1
- package/web/{chunk-2wqxhqr9.js → chunk-cpwtt6ny.js} +1 -1
- package/web/{chunk-9c1yt2ex.js → chunk-czjk218p.js} +1 -1
- package/web/{chunk-dwajwrpk.js → chunk-dg3p8db5.js} +1 -1
- package/web/chunk-dsw5t58p.js +1 -0
- package/web/{chunk-bz2v64xe.js → chunk-dv72fat3.js} +1 -1
- package/web/{chunk-0fgaepwm.js → chunk-dvvs1jjq.js} +1 -1
- package/web/{chunk-cb2rxtq9.js → chunk-e131rg6p.js} +1 -1
- package/web/{chunk-s2920f21.js → chunk-e8yj05t1.js} +1 -1
- package/web/chunk-ekw54h1q.js +1 -0
- package/web/{chunk-d6tbw8br.js → chunk-femhej5w.js} +1 -1
- package/web/{chunk-a7gtb4kg.js → chunk-geh05ghh.js} +1 -1
- package/web/{chunk-x5s7zr5f.js → chunk-gksf7cek.js} +1 -1
- package/web/{chunk-ht1dzftc.js → chunk-ht4mx2dt.js} +1 -1
- package/web/chunk-hwsvhst3.js +1 -0
- package/web/{chunk-q9ekgjh6.js → chunk-k02b36g1.js} +1 -1
- package/web/{chunk-rf9dt6bg.js → chunk-kjacapzd.js} +1 -1
- package/web/{chunk-gsh80797.js → chunk-kkfrs7d1.js} +1 -1
- package/web/{chunk-7kp237t3.js → chunk-kkyn8yhj.js} +1 -1
- package/web/chunk-mh4rx5cf.js +1 -0
- package/web/{chunk-9an6wcnr.js → chunk-n448vaba.js} +1 -1
- package/web/{chunk-vw1pbv1x.js → chunk-n754s8xd.js} +1 -1
- package/web/chunk-n8j88qxy.js +1 -0
- package/web/{chunk-kyawkpv2.js → chunk-nfvqjzz5.js} +1 -1
- package/web/{chunk-4r1n98zx.js → chunk-nmpbsvwb.js} +2 -2
- package/web/chunk-nws1s56b.js +1 -0
- package/web/{chunk-3zebd9fq.js → chunk-p7126wwy.js} +2 -2
- package/web/chunk-phnqnhj9.js +1 -0
- package/web/{chunk-g81h1e6n.js → chunk-pjz30xcp.js} +1 -1
- package/web/{chunk-0gg00f86.js → chunk-q3jevm51.js} +1 -1
- package/web/{chunk-v4yqrx5y.js → chunk-q97hn4j5.js} +1 -1
- package/web/chunk-qg31p6cn.js +1 -0
- package/web/{chunk-2bmq1whf.js → chunk-qhm3cfq9.js} +1 -1
- package/web/chunk-qsd595b9.js +1 -0
- package/web/{chunk-f5txt81n.js → chunk-r7frwjqx.js} +1 -1
- package/web/{chunk-j6a4z530.js → chunk-rddft5ce.js} +83 -83
- package/web/{chunk-296hgy6k.js → chunk-rgbdf2m9.js} +1 -1
- package/web/{chunk-64rafq66.js → chunk-rsbkbg6x.js} +1 -1
- package/web/{chunk-b985y17w.js → chunk-s2bs5vxh.js} +1 -1
- package/web/{chunk-g6k9z8zt.js → chunk-sgwccs54.js} +1 -1
- package/web/{chunk-mqsyzzgt.js → chunk-sjh8gtm9.js} +1 -1
- package/web/{chunk-hy4m34qp.js → chunk-sn3tkwme.js} +1 -1
- package/web/{chunk-t851gdjh.js → chunk-svh4n157.js} +1 -1
- package/web/{chunk-kegv14sg.js → chunk-t3658ehb.js} +1 -1
- package/web/{chunk-jve1zc80.js → chunk-t6sq85s6.js} +1 -1
- package/web/{chunk-vf4vkcf9.js → chunk-t81p4wqc.js} +1 -1
- package/web/{chunk-d4z2rgpx.js → chunk-tewmsd7t.js} +1 -1
- package/web/chunk-tf57s7ry.js +1 -0
- package/web/{chunk-12xxh71x.js → chunk-tfn0rqg9.js} +1 -1
- package/web/{chunk-3de552rg.js → chunk-tmndcktk.js} +1 -1
- package/web/chunk-tqr80b5w.js +2 -0
- package/web/{chunk-xvcfp1zh.js → chunk-tz4twwmw.js} +1 -1
- package/web/{chunk-sc0ghp25.js → chunk-v282r683.js} +1 -1
- package/web/chunk-v4vjjtn7.js +1 -0
- package/web/chunk-vbwdwcdp.js +1 -0
- package/web/{chunk-vtxw9rmr.js → chunk-vjngfh0q.js} +1 -1
- package/web/{chunk-30zfw7zg.js → chunk-wbgkwxrc.js} +1 -1
- package/web/{chunk-nywdeb4m.js → chunk-wjbk50hn.js} +1 -1
- package/web/chunk-wjy848e2.js +1 -0
- package/web/{chunk-3nbzj48p.js → chunk-wqsczy57.js} +1 -1
- package/web/chunk-wvfmmw1v.js +8 -0
- package/web/chunk-x1jm4zsg.js +1 -0
- package/web/{chunk-n1jpg57t.js → chunk-xbpc6x9m.js} +1 -1
- package/web/{chunk-zp3qrrkb.js → chunk-xckxtfp8.js} +1 -1
- package/web/{chunk-6kkw9ptc.js → chunk-xmsb2g71.js} +1 -1
- package/web/{chunk-czq1yz51.js → chunk-y99ed8rd.js} +1 -1
- package/web/index.html +1 -1
- package/web/chunk-0pecj6d7.js +0 -1
- package/web/chunk-0wt1dgny.js +0 -1
- package/web/chunk-1ves7sq5.js +0 -1
- package/web/chunk-1yj79b48.js +0 -1
- package/web/chunk-39ng8zwx.css +0 -1
- package/web/chunk-86p42kym.js +0 -1
- package/web/chunk-8n79cqyd.js +0 -1
- package/web/chunk-cwtn2kdm.js +0 -1
- package/web/chunk-dpkyygej.js +0 -1
- package/web/chunk-et5ess72.js +0 -1
- package/web/chunk-ez8b6neq.js +0 -1
- package/web/chunk-fd1kqwe3.js +0 -1
- package/web/chunk-hs5x78fb.js +0 -1
- package/web/chunk-hyd5hzpa.js +0 -1
- package/web/chunk-hyt1nkaw.js +0 -1
- package/web/chunk-kw9emsqw.js +0 -1
- package/web/chunk-pxkhm40r.js +0 -2
- package/web/chunk-r3mj50zs.js +0 -1
- package/web/chunk-t9mvsgt9.js +0 -1
- package/web/chunk-x19v2sxv.js +0 -1
- package/web/chunk-y21zy3eh.js +0 -1
- package/web/chunk-yd74yxzt.js +0 -8
- package/web/chunk-z4ha8181.js +0 -1
- package/web/chunk-z8rarqe6.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e,a,Re,O,en,v,C,S,E,T,A,R,L,l,p,M,ze,ue,oe,se,Ye,ge,ye}from"./chunk-5v44qv67.js";import{$t}from"./chunk-cm92fyr3.js";import{je}from"./chunk-dwajwrpk.js";import{he}from"./chunk-f5txt81n.js";import{le}from"./chunk-718mr5gc.js";var tt=function(){var s=e(function(W,b,k,m){for(k=k||{},m=W.length;m--;k[W[m]]=b);return k},"o"),r=[1,18],n=[1,19],u=[1,20],o=[1,41],d=[1,26],f=[1,42],h=[1,24],y=[1,25],D=[1,32],V=[1,33],J=[1,34],B=[1,45],ve=[1,35],Ie=[1,36],Oe=[1,37],we=[1,38],Me=[1,27],Pe=[1,28],Ve=[1,29],Ge=[1,30],Ue=[1,31],_=[1,44],N=[1,46],x=[1,43],I=[1,47],Ke=[1,9],g=[1,8,9],be=[1,58],fe=[1,59],ke=[1,60],me=[1,61],Ce=[1,62],We=[1,63],Qe=[1,64],G=[1,8,9,41],st=[1,77],H=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],Ee=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],Te=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],it=[13,60,68,69,70,71,72,86,100,102,103],De=[1,103],ee=[1,121],te=[1,117],ie=[1,113],ae=[1,119],re=[1,114],ne=[1,115],ce=[1,116],de=[1,118],pe=[1,120],at=[22,50,60,61,82,86,87,88,89,90],rt=[1,128],Fe=[12,39],Xe=[1,8,9,39,41,44,46],Be=[1,8,9,22],nt=[1,153],lt=[1,8,9,61],Y=[1,8,9,22,50,60,61,82,86,87,88,89,90],He={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:e(function(b,k,m,c,F,t,Ae){var i=t.length-1;switch(F){case 8:this.$=t[i-1];break;case 9:case 10:case 13:case 15:this.$=t[i];break;case 11:case 14:this.$=t[i-2]+"."+t[i];break;case 12:case 16:this.$=t[i-1]+t[i];break;case 17:case 18:this.$=t[i-1]+"~"+t[i]+"~";break;case 19:c.addRelation(t[i]);break;case 20:t[i-1].title=c.cleanupLabel(t[i]),c.addRelation(t[i-1]);break;case 31:this.$=t[i].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=t[i].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(t[i-3],t[i-1][0],t[i-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(t[i-4],t[i-1][0],t[i-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(t[i]);break;case 37:this.$=c.addNamespace(t[i-1],t[i]);break;case 38:this.$=[[t[i]],[]];break;case 39:this.$=[[t[i-1]],[]];break;case 40:t[i][0].unshift(t[i-2]),this.$=t[i];break;case 41:this.$=[[],[t[i]]];break;case 42:this.$=[[],[t[i-1]]];break;case 43:t[i][1].unshift(t[i-2]),this.$=t[i];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=t[i];break;case 48:c.setCssClass(t[i-2],t[i]);break;case 49:c.addMembers(t[i-3],t[i-1]);break;case 51:c.setCssClass(t[i-5],t[i-3]),c.addMembers(t[i-5],t[i-1]);break;case 52:c.addAnnotation(t[i-3],t[i-1]);break;case 53:c.addAnnotation(t[i-6],t[i-4]),c.addMembers(t[i-6],t[i-1]);break;case 54:c.addAnnotation(t[i-5],t[i-3]);break;case 55:this.$=t[i],c.addClass(t[i]);break;case 56:this.$=t[i-1],c.addClass(t[i-1]),c.setClassLabel(t[i-1],t[i]);break;case 60:c.addAnnotation(t[i],t[i-2]);break;case 61:case 74:this.$=[t[i]];break;case 62:t[i].push(t[i-1]),this.$=t[i];break;case 63:break;case 64:c.addMember(t[i-1],c.cleanupLabel(t[i]));break;case 65:break;case 66:break;case 67:this.$={id1:t[i-2],id2:t[i],relation:t[i-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:t[i-3],id2:t[i],relation:t[i-1],relationTitle1:t[i-2],relationTitle2:"none"};break;case 69:this.$={id1:t[i-3],id2:t[i],relation:t[i-2],relationTitle1:"none",relationTitle2:t[i-1]};break;case 70:this.$={id1:t[i-4],id2:t[i],relation:t[i-2],relationTitle1:t[i-3],relationTitle2:t[i-1]};break;case 71:this.$=c.addNote(t[i],t[i-1]);break;case 72:this.$=c.addNote(t[i]);break;case 73:this.$=t[i-2],c.defineClass(t[i-1],t[i]);break;case 75:this.$=t[i-2].concat([t[i]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:t[i-2],type2:t[i],lineType:t[i-1]};break;case 81:this.$={type1:"none",type2:t[i],lineType:t[i-1]};break;case 82:this.$={type1:t[i-1],type2:"none",lineType:t[i]};break;case 83:this.$={type1:"none",type2:"none",lineType:t[i]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=t[i-2],c.setClickEvent(t[i-1],t[i]);break;case 92:case 98:this.$=t[i-3],c.setClickEvent(t[i-2],t[i-1]),c.setTooltip(t[i-2],t[i]);break;case 93:this.$=t[i-2],c.setLink(t[i-1],t[i]);break;case 94:this.$=t[i-3],c.setLink(t[i-2],t[i-1],t[i]);break;case 95:this.$=t[i-3],c.setLink(t[i-2],t[i-1]),c.setTooltip(t[i-2],t[i]);break;case 96:this.$=t[i-4],c.setLink(t[i-3],t[i-2],t[i]),c.setTooltip(t[i-3],t[i-1]);break;case 99:this.$=t[i-3],c.setClickEvent(t[i-2],t[i-1],t[i]);break;case 100:this.$=t[i-4],c.setClickEvent(t[i-3],t[i-2],t[i-1]),c.setTooltip(t[i-3],t[i]);break;case 101:this.$=t[i-3],c.setLink(t[i-2],t[i]);break;case 102:this.$=t[i-4],c.setLink(t[i-3],t[i-1],t[i]);break;case 103:this.$=t[i-4],c.setLink(t[i-3],t[i-1]),c.setTooltip(t[i-3],t[i]);break;case 104:this.$=t[i-5],c.setLink(t[i-4],t[i-2],t[i]),c.setTooltip(t[i-4],t[i-1]);break;case 105:this.$=t[i-2],c.setCssStyle(t[i-1],t[i]);break;case 106:c.setCssClass(t[i-1],t[i]);break;case 107:this.$=[t[i]];break;case 108:t[i-2].push(t[i]),this.$=t[i-2];break;case 110:this.$=t[i-1]+t[i];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:u,38:22,42:o,43:23,46:d,48:f,51:h,52:y,54:D,56:V,57:J,60:B,62:ve,63:Ie,64:Oe,65:we,75:Me,76:Pe,78:Ve,82:Ge,83:Ue,86:_,100:N,102:x,103:I},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Ke,[2,5],{8:[1,48]}),{8:[1,49]},s(g,[2,19],{22:[1,50]}),s(g,[2,21]),s(g,[2,22]),s(g,[2,23]),s(g,[2,24]),s(g,[2,25]),s(g,[2,26]),s(g,[2,27]),s(g,[2,28]),s(g,[2,29]),s(g,[2,30]),{34:[1,51]},{36:[1,52]},s(g,[2,33]),s(g,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:be,69:fe,70:ke,71:me,72:Ce,73:We,74:Qe}),{39:[1,65]},s(G,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(g,[2,65]),s(g,[2,66]),{16:69,60:B,86:_,100:N,102:x},{16:39,17:40,19:70,60:B,86:_,100:N,102:x,103:I},{16:39,17:40,19:71,60:B,86:_,100:N,102:x,103:I},{16:39,17:40,19:72,60:B,86:_,100:N,102:x,103:I},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:B,86:_,100:N,102:x,103:I},{13:st,55:76},{58:78,60:[1,79]},s(g,[2,76]),s(g,[2,77]),s(g,[2,78]),s(g,[2,79]),s(H,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:B,86:_,100:N,102:x,103:I}),s(H,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:B,86:_,100:N,102:x,103:I},{16:39,17:40,19:87,60:B,86:_,100:N,102:x,103:I},s(Ee,[2,133]),s(Ee,[2,134]),s(Ee,[2,135]),s(Ee,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Ke,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:u,42:o,46:d,48:f,51:h,52:y,54:D,56:V,57:J,60:B,62:ve,63:Ie,64:Oe,65:we,75:Me,76:Pe,78:Ve,82:Ge,83:Ue,86:_,100:N,102:x,103:I}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:u,38:22,42:o,43:23,46:d,48:f,51:h,52:y,54:D,56:V,57:J,60:B,62:ve,63:Ie,64:Oe,65:we,75:Me,76:Pe,78:Ve,82:Ge,83:Ue,86:_,100:N,102:x,103:I},s(g,[2,20]),s(g,[2,31]),s(g,[2,32]),{13:[1,91],16:39,17:40,19:90,60:B,86:_,100:N,102:x,103:I},{53:92,66:56,67:57,68:be,69:fe,70:ke,71:me,72:Ce,73:We,74:Qe},s(g,[2,64]),{67:93,73:We,74:Qe},s(Te,[2,83],{66:94,68:be,69:fe,70:ke,71:me,72:Ce}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s(it,[2,89]),s(it,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:f,54:D,56:V},{16:100,60:B,86:_,100:N,102:x},{41:[1,102],45:101,51:De},{16:104,60:B,86:_,100:N,102:x},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:ie,82:ae,84:111,85:112,86:re,87:ne,88:ce,89:de,90:pe},{60:[1,122]},{13:st,55:123},s(G,[2,72]),s(G,[2,138]),{22:ee,50:te,59:124,60:ie,61:[1,125],82:ae,84:111,85:112,86:re,87:ne,88:ce,89:de,90:pe},s(at,[2,74]),{16:39,17:40,19:126,60:B,86:_,100:N,102:x,103:I},s(H,[2,16]),s(H,[2,17]),s(H,[2,18]),{11:127,12:rt,39:[2,36]},s(Fe,[2,9],{16:85,17:86,15:130,18:[1,129],60:B,86:_,100:N,102:x,103:I}),s(Fe,[2,10]),s(Xe,[2,55],{11:131,12:rt}),s(Ke,[2,7]),{9:[1,132]},s(Be,[2,67]),{16:39,17:40,19:133,60:B,86:_,100:N,102:x,103:I},{13:[1,135],16:39,17:40,19:134,60:B,86:_,100:N,102:x,103:I},s(Te,[2,82],{66:136,68:be,69:fe,70:ke,71:me,72:Ce}),s(Te,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:f,54:D,56:V},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(G,[2,48],{39:[1,142]}),{41:[1,143]},s(G,[2,50]),{41:[2,61],45:144,51:De},{47:[1,145]},{16:39,17:40,19:146,60:B,86:_,100:N,102:x,103:I},s(g,[2,91],{13:[1,147]}),s(g,[2,93],{13:[1,149],77:[1,148]}),s(g,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(g,[2,105],{61:nt}),s(lt,[2,107],{85:154,22:ee,50:te,60:ie,82:ae,86:re,87:ne,88:ce,89:de,90:pe}),s(Y,[2,109]),s(Y,[2,111]),s(Y,[2,112]),s(Y,[2,113]),s(Y,[2,114]),s(Y,[2,115]),s(Y,[2,116]),s(Y,[2,117]),s(Y,[2,118]),s(Y,[2,119]),s(g,[2,106]),s(G,[2,71]),s(g,[2,73],{61:nt}),{60:[1,155]},s(H,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:B,86:_,100:N,102:x,103:I},s(Fe,[2,12]),s(Xe,[2,56]),{1:[2,4]},s(Be,[2,69]),s(Be,[2,68]),{16:39,17:40,19:158,60:B,86:_,100:N,102:x,103:I},s(Te,[2,80]),s(G,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:f,54:D,56:V},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:f,54:D,56:V},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:f,54:D,56:V},{45:163,51:De},s(G,[2,49]),{41:[2,62]},s(G,[2,52],{39:[1,164]}),s(g,[2,60]),s(g,[2,92]),s(g,[2,94]),s(g,[2,95],{77:[1,165]}),s(g,[2,98]),s(g,[2,99],{13:[1,166]}),s(g,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:ie,82:ae,84:169,85:112,86:re,87:ne,88:ce,89:de,90:pe},s(Y,[2,110]),s(at,[2,75]),{14:[1,170]},s(Fe,[2,11]),s(Be,[2,70]),s(G,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:De},s(g,[2,96]),s(g,[2,100]),s(g,[2,102]),s(g,[2,103],{77:[1,174]}),s(lt,[2,108],{85:154,22:ee,50:te,60:ie,82:ae,86:re,87:ne,88:ce,89:de,90:pe}),s(Xe,[2,8]),s(G,[2,51]),{41:[1,175]},s(G,[2,54]),s(g,[2,104]),s(G,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:e(function(b,k){if(k.recoverable)this.trace(b);else{var m=Error(b);throw m.hash=k,m}},"parseError"),parse:e(function(b){var k=this,m=[0],c=[],F=[null],t=[],Ae=this.table,i="",Se=0,ut=0,ot=0,kt=2,ct=1,mt=t.slice.call(arguments,1),w=Object.create(this.lexer),Q={yy:{}};for(var qe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,qe))Q.yy[qe]=this.yy[qe];if(w.setInput(b,Q.yy),Q.yy.lexer=w,Q.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var Je=w.yylloc;t.push(Je);var gt=w.options&&w.options.ranges;if(typeof Q.yy.parseError==="function")this.parseError=Q.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ct(z){m.length=m.length-2*z,F.length=F.length-z,t.length=t.length-z}e(Ct,"popStack");function ht(){var z=c.pop()||w.lex()||ct;if(typeof z!=="number"){if(z instanceof Array)c=z,z=c.pop();z=k.symbols_[z]||z}return z}e(ht,"lex");var P,Ze,j,U,Lt,$e,q={},Ne,K,dt,Le;while(!0){if(j=m[m.length-1],this.defaultActions[j])U=this.defaultActions[j];else{if(P===null||typeof P>"u")P=ht();U=Ae[j]&&Ae[j][P]}if(typeof U>"u"||!U.length||!U[0]){var et="";Le=[];for(Ne in Ae[j])if(this.terminals_[Ne]&&Ne>kt)Le.push("'"+this.terminals_[Ne]+"'");if(w.showPosition)et="Parse error on line "+(Se+1)+`:
|
|
1
|
+
import{e,a,Re,O,en,v,C,S,E,T,A,R,L,l,p,M,ze,ue,oe,se,Ye,ge,ye}from"./chunk-1s53190z.js";import{$t}from"./chunk-5vjhvw1m.js";import{je}from"./chunk-dg3p8db5.js";import{he}from"./chunk-r7frwjqx.js";import{le}from"./chunk-989jq2h8.js";var tt=function(){var s=e(function(W,b,k,m){for(k=k||{},m=W.length;m--;k[W[m]]=b);return k},"o"),r=[1,18],n=[1,19],u=[1,20],o=[1,41],d=[1,26],f=[1,42],h=[1,24],y=[1,25],D=[1,32],V=[1,33],J=[1,34],B=[1,45],ve=[1,35],Ie=[1,36],Oe=[1,37],we=[1,38],Me=[1,27],Pe=[1,28],Ve=[1,29],Ge=[1,30],Ue=[1,31],_=[1,44],N=[1,46],x=[1,43],I=[1,47],Ke=[1,9],g=[1,8,9],be=[1,58],fe=[1,59],ke=[1,60],me=[1,61],Ce=[1,62],We=[1,63],Qe=[1,64],G=[1,8,9,41],st=[1,77],H=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],Ee=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],Te=[13,60,86,100,102,103],Z=[13,60,73,74,86,100,102,103],it=[13,60,68,69,70,71,72,86,100,102,103],De=[1,103],ee=[1,121],te=[1,117],ie=[1,113],ae=[1,119],re=[1,114],ne=[1,115],ce=[1,116],de=[1,118],pe=[1,120],at=[22,50,60,61,82,86,87,88,89,90],rt=[1,128],Fe=[12,39],Xe=[1,8,9,39,41,44,46],Be=[1,8,9,22],nt=[1,153],lt=[1,8,9,61],Y=[1,8,9,22,50,60,61,82,86,87,88,89,90],He={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:e(function(b,k,m,c,F,t,Ae){var i=t.length-1;switch(F){case 8:this.$=t[i-1];break;case 9:case 10:case 13:case 15:this.$=t[i];break;case 11:case 14:this.$=t[i-2]+"."+t[i];break;case 12:case 16:this.$=t[i-1]+t[i];break;case 17:case 18:this.$=t[i-1]+"~"+t[i]+"~";break;case 19:c.addRelation(t[i]);break;case 20:t[i-1].title=c.cleanupLabel(t[i]),c.addRelation(t[i-1]);break;case 31:this.$=t[i].trim(),c.setAccTitle(this.$);break;case 32:case 33:this.$=t[i].trim(),c.setAccDescription(this.$);break;case 34:c.addClassesToNamespace(t[i-3],t[i-1][0],t[i-1][1]),c.popNamespace();break;case 35:c.addClassesToNamespace(t[i-4],t[i-1][0],t[i-1][1]),c.popNamespace();break;case 36:this.$=c.addNamespace(t[i]);break;case 37:this.$=c.addNamespace(t[i-1],t[i]);break;case 38:this.$=[[t[i]],[]];break;case 39:this.$=[[t[i-1]],[]];break;case 40:t[i][0].unshift(t[i-2]),this.$=t[i];break;case 41:this.$=[[],[t[i]]];break;case 42:this.$=[[],[t[i-1]]];break;case 43:t[i][1].unshift(t[i-2]),this.$=t[i];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=t[i];break;case 48:c.setCssClass(t[i-2],t[i]);break;case 49:c.addMembers(t[i-3],t[i-1]);break;case 51:c.setCssClass(t[i-5],t[i-3]),c.addMembers(t[i-5],t[i-1]);break;case 52:c.addAnnotation(t[i-3],t[i-1]);break;case 53:c.addAnnotation(t[i-6],t[i-4]),c.addMembers(t[i-6],t[i-1]);break;case 54:c.addAnnotation(t[i-5],t[i-3]);break;case 55:this.$=t[i],c.addClass(t[i]);break;case 56:this.$=t[i-1],c.addClass(t[i-1]),c.setClassLabel(t[i-1],t[i]);break;case 60:c.addAnnotation(t[i],t[i-2]);break;case 61:case 74:this.$=[t[i]];break;case 62:t[i].push(t[i-1]),this.$=t[i];break;case 63:break;case 64:c.addMember(t[i-1],c.cleanupLabel(t[i]));break;case 65:break;case 66:break;case 67:this.$={id1:t[i-2],id2:t[i],relation:t[i-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:t[i-3],id2:t[i],relation:t[i-1],relationTitle1:t[i-2],relationTitle2:"none"};break;case 69:this.$={id1:t[i-3],id2:t[i],relation:t[i-2],relationTitle1:"none",relationTitle2:t[i-1]};break;case 70:this.$={id1:t[i-4],id2:t[i],relation:t[i-2],relationTitle1:t[i-3],relationTitle2:t[i-1]};break;case 71:this.$=c.addNote(t[i],t[i-1]);break;case 72:this.$=c.addNote(t[i]);break;case 73:this.$=t[i-2],c.defineClass(t[i-1],t[i]);break;case 75:this.$=t[i-2].concat([t[i]]);break;case 76:c.setDirection("TB");break;case 77:c.setDirection("BT");break;case 78:c.setDirection("RL");break;case 79:c.setDirection("LR");break;case 80:this.$={type1:t[i-2],type2:t[i],lineType:t[i-1]};break;case 81:this.$={type1:"none",type2:t[i],lineType:t[i-1]};break;case 82:this.$={type1:t[i-1],type2:"none",lineType:t[i]};break;case 83:this.$={type1:"none",type2:"none",lineType:t[i]};break;case 84:this.$=c.relationType.AGGREGATION;break;case 85:this.$=c.relationType.EXTENSION;break;case 86:this.$=c.relationType.COMPOSITION;break;case 87:this.$=c.relationType.DEPENDENCY;break;case 88:this.$=c.relationType.LOLLIPOP;break;case 89:this.$=c.lineType.LINE;break;case 90:this.$=c.lineType.DOTTED_LINE;break;case 91:case 97:this.$=t[i-2],c.setClickEvent(t[i-1],t[i]);break;case 92:case 98:this.$=t[i-3],c.setClickEvent(t[i-2],t[i-1]),c.setTooltip(t[i-2],t[i]);break;case 93:this.$=t[i-2],c.setLink(t[i-1],t[i]);break;case 94:this.$=t[i-3],c.setLink(t[i-2],t[i-1],t[i]);break;case 95:this.$=t[i-3],c.setLink(t[i-2],t[i-1]),c.setTooltip(t[i-2],t[i]);break;case 96:this.$=t[i-4],c.setLink(t[i-3],t[i-2],t[i]),c.setTooltip(t[i-3],t[i-1]);break;case 99:this.$=t[i-3],c.setClickEvent(t[i-2],t[i-1],t[i]);break;case 100:this.$=t[i-4],c.setClickEvent(t[i-3],t[i-2],t[i-1]),c.setTooltip(t[i-3],t[i]);break;case 101:this.$=t[i-3],c.setLink(t[i-2],t[i]);break;case 102:this.$=t[i-4],c.setLink(t[i-3],t[i-1],t[i]);break;case 103:this.$=t[i-4],c.setLink(t[i-3],t[i-1]),c.setTooltip(t[i-3],t[i]);break;case 104:this.$=t[i-5],c.setLink(t[i-4],t[i-2],t[i]),c.setTooltip(t[i-4],t[i-1]);break;case 105:this.$=t[i-2],c.setCssStyle(t[i-1],t[i]);break;case 106:c.setCssClass(t[i-1],t[i]);break;case 107:this.$=[t[i]];break;case 108:t[i-2].push(t[i]),this.$=t[i-2];break;case 110:this.$=t[i-1]+t[i];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:u,38:22,42:o,43:23,46:d,48:f,51:h,52:y,54:D,56:V,57:J,60:B,62:ve,63:Ie,64:Oe,65:we,75:Me,76:Pe,78:Ve,82:Ge,83:Ue,86:_,100:N,102:x,103:I},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Ke,[2,5],{8:[1,48]}),{8:[1,49]},s(g,[2,19],{22:[1,50]}),s(g,[2,21]),s(g,[2,22]),s(g,[2,23]),s(g,[2,24]),s(g,[2,25]),s(g,[2,26]),s(g,[2,27]),s(g,[2,28]),s(g,[2,29]),s(g,[2,30]),{34:[1,51]},{36:[1,52]},s(g,[2,33]),s(g,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:be,69:fe,70:ke,71:me,72:Ce,73:We,74:Qe}),{39:[1,65]},s(G,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(g,[2,65]),s(g,[2,66]),{16:69,60:B,86:_,100:N,102:x},{16:39,17:40,19:70,60:B,86:_,100:N,102:x,103:I},{16:39,17:40,19:71,60:B,86:_,100:N,102:x,103:I},{16:39,17:40,19:72,60:B,86:_,100:N,102:x,103:I},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:B,86:_,100:N,102:x,103:I},{13:st,55:76},{58:78,60:[1,79]},s(g,[2,76]),s(g,[2,77]),s(g,[2,78]),s(g,[2,79]),s(H,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:B,86:_,100:N,102:x,103:I}),s(H,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:B,86:_,100:N,102:x,103:I},{16:39,17:40,19:87,60:B,86:_,100:N,102:x,103:I},s(Ee,[2,133]),s(Ee,[2,134]),s(Ee,[2,135]),s(Ee,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Ke,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:n,37:u,42:o,46:d,48:f,51:h,52:y,54:D,56:V,57:J,60:B,62:ve,63:Ie,64:Oe,65:we,75:Me,76:Pe,78:Ve,82:Ge,83:Ue,86:_,100:N,102:x,103:I}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:n,37:u,38:22,42:o,43:23,46:d,48:f,51:h,52:y,54:D,56:V,57:J,60:B,62:ve,63:Ie,64:Oe,65:we,75:Me,76:Pe,78:Ve,82:Ge,83:Ue,86:_,100:N,102:x,103:I},s(g,[2,20]),s(g,[2,31]),s(g,[2,32]),{13:[1,91],16:39,17:40,19:90,60:B,86:_,100:N,102:x,103:I},{53:92,66:56,67:57,68:be,69:fe,70:ke,71:me,72:Ce,73:We,74:Qe},s(g,[2,64]),{67:93,73:We,74:Qe},s(Te,[2,83],{66:94,68:be,69:fe,70:ke,71:me,72:Ce}),s(Z,[2,84]),s(Z,[2,85]),s(Z,[2,86]),s(Z,[2,87]),s(Z,[2,88]),s(it,[2,89]),s(it,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:f,54:D,56:V},{16:100,60:B,86:_,100:N,102:x},{41:[1,102],45:101,51:De},{16:104,60:B,86:_,100:N,102:x},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:ee,50:te,59:110,60:ie,82:ae,84:111,85:112,86:re,87:ne,88:ce,89:de,90:pe},{60:[1,122]},{13:st,55:123},s(G,[2,72]),s(G,[2,138]),{22:ee,50:te,59:124,60:ie,61:[1,125],82:ae,84:111,85:112,86:re,87:ne,88:ce,89:de,90:pe},s(at,[2,74]),{16:39,17:40,19:126,60:B,86:_,100:N,102:x,103:I},s(H,[2,16]),s(H,[2,17]),s(H,[2,18]),{11:127,12:rt,39:[2,36]},s(Fe,[2,9],{16:85,17:86,15:130,18:[1,129],60:B,86:_,100:N,102:x,103:I}),s(Fe,[2,10]),s(Xe,[2,55],{11:131,12:rt}),s(Ke,[2,7]),{9:[1,132]},s(Be,[2,67]),{16:39,17:40,19:133,60:B,86:_,100:N,102:x,103:I},{13:[1,135],16:39,17:40,19:134,60:B,86:_,100:N,102:x,103:I},s(Te,[2,82],{66:136,68:be,69:fe,70:ke,71:me,72:Ce}),s(Te,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:f,54:D,56:V},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(G,[2,48],{39:[1,142]}),{41:[1,143]},s(G,[2,50]),{41:[2,61],45:144,51:De},{47:[1,145]},{16:39,17:40,19:146,60:B,86:_,100:N,102:x,103:I},s(g,[2,91],{13:[1,147]}),s(g,[2,93],{13:[1,149],77:[1,148]}),s(g,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(g,[2,105],{61:nt}),s(lt,[2,107],{85:154,22:ee,50:te,60:ie,82:ae,86:re,87:ne,88:ce,89:de,90:pe}),s(Y,[2,109]),s(Y,[2,111]),s(Y,[2,112]),s(Y,[2,113]),s(Y,[2,114]),s(Y,[2,115]),s(Y,[2,116]),s(Y,[2,117]),s(Y,[2,118]),s(Y,[2,119]),s(g,[2,106]),s(G,[2,71]),s(g,[2,73],{61:nt}),{60:[1,155]},s(H,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:B,86:_,100:N,102:x,103:I},s(Fe,[2,12]),s(Xe,[2,56]),{1:[2,4]},s(Be,[2,69]),s(Be,[2,68]),{16:39,17:40,19:158,60:B,86:_,100:N,102:x,103:I},s(Te,[2,80]),s(G,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:f,54:D,56:V},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:f,54:D,56:V},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:f,54:D,56:V},{45:163,51:De},s(G,[2,49]),{41:[2,62]},s(G,[2,52],{39:[1,164]}),s(g,[2,60]),s(g,[2,92]),s(g,[2,94]),s(g,[2,95],{77:[1,165]}),s(g,[2,98]),s(g,[2,99],{13:[1,166]}),s(g,[2,101],{13:[1,168],77:[1,167]}),{22:ee,50:te,60:ie,82:ae,84:169,85:112,86:re,87:ne,88:ce,89:de,90:pe},s(Y,[2,110]),s(at,[2,75]),{14:[1,170]},s(Fe,[2,11]),s(Be,[2,70]),s(G,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:De},s(g,[2,96]),s(g,[2,100]),s(g,[2,102]),s(g,[2,103],{77:[1,174]}),s(lt,[2,108],{85:154,22:ee,50:te,60:ie,82:ae,86:re,87:ne,88:ce,89:de,90:pe}),s(Xe,[2,8]),s(G,[2,51]),{41:[1,175]},s(G,[2,54]),s(g,[2,104]),s(G,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:e(function(b,k){if(k.recoverable)this.trace(b);else{var m=Error(b);throw m.hash=k,m}},"parseError"),parse:e(function(b){var k=this,m=[0],c=[],F=[null],t=[],Ae=this.table,i="",Se=0,ut=0,ot=0,kt=2,ct=1,mt=t.slice.call(arguments,1),w=Object.create(this.lexer),Q={yy:{}};for(var qe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,qe))Q.yy[qe]=this.yy[qe];if(w.setInput(b,Q.yy),Q.yy.lexer=w,Q.yy.parser=this,typeof w.yylloc>"u")w.yylloc={};var Je=w.yylloc;t.push(Je);var gt=w.options&&w.options.ranges;if(typeof Q.yy.parseError==="function")this.parseError=Q.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ct(z){m.length=m.length-2*z,F.length=F.length-z,t.length=t.length-z}e(Ct,"popStack");function ht(){var z=c.pop()||w.lex()||ct;if(typeof z!=="number"){if(z instanceof Array)c=z,z=c.pop();z=k.symbols_[z]||z}return z}e(ht,"lex");var P,Ze,j,U,Lt,$e,q={},Ne,K,dt,Le;while(!0){if(j=m[m.length-1],this.defaultActions[j])U=this.defaultActions[j];else{if(P===null||typeof P>"u")P=ht();U=Ae[j]&&Ae[j][P]}if(typeof U>"u"||!U.length||!U[0]){var et="";Le=[];for(Ne in Ae[j])if(this.terminals_[Ne]&&Ne>kt)Le.push("'"+this.terminals_[Ne]+"'");if(w.showPosition)et="Parse error on line "+(Se+1)+`:
|
|
2
2
|
`+w.showPosition()+`
|
|
3
3
|
Expecting `+Le.join(", ")+", got '"+(this.terminals_[P]||P)+"'";else et="Parse error on line "+(Se+1)+": Unexpected "+(P==ct?"end of input":"'"+(this.terminals_[P]||P)+"'");this.parseError(et,{text:w.match,token:this.terminals_[P]||P,line:w.yylineno,loc:Je,expected:Le})}if(U[0]instanceof Array&&U.length>1)throw Error("Parse Error: multiple actions possible at state: "+j+", token: "+P);switch(U[0]){case 1:if(m.push(P),F.push(w.yytext),t.push(w.yylloc),m.push(U[1]),P=null,!Ze){if(ut=w.yyleng,i=w.yytext,Se=w.yylineno,Je=w.yylloc,ot>0)ot--}else P=Ze,Ze=null;break;case 2:if(K=this.productions_[U[1]][1],q.$=F[F.length-K],q._$={first_line:t[t.length-(K||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(K||1)].first_column,last_column:t[t.length-1].last_column},gt)q._$.range=[t[t.length-(K||1)].range[0],t[t.length-1].range[1]];if($e=this.performAction.apply(q,[i,ut,Se,Q.yy,U[1],F,t].concat(mt)),typeof $e<"u")return $e;if(K)m=m.slice(0,-1*K*2),F=F.slice(0,-1*K),t=t.slice(0,-1*K);m.push(this.productions_[U[1]][0]),F.push(q.$),t.push(q._$),dt=Ae[m[m.length-2]][m[m.length-1]],m.push(dt);break;case 3:return!0}}return!0},"parse")},ft=function(){var W={EOF:1,parseError:e(function(k,m){if(this.yy.parser)this.yy.parser.parseError(k,m);else throw Error(k)},"parseError"),setInput:e(function(b,k){if(this.yy=k||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var k=b.match(/(?:\r\n?|\n).*/g);if(k)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),b},"input"),unput:e(function(b){var k=b.length,m=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;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),m.length-1)this.yylineno-=m.length-1;var F=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:m?(m.length===c.length?this.yylloc.first_column:0)+c[c.length-m.length].length-m[0].length:this.yylloc.first_column-k},this.options.ranges)this.yylloc.range=[F[0],F[0]+this.yyleng-k];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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(b){this.unput(this.match.slice(b))},"less"),pastInput:e(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var b=this.match;if(b.length<20)b+=this._input.substr(0,20-b.length);return(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var b=this.pastInput(),k=Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_i}from"./chunk-2cem4sv7.js";export{_i as createGitGraphServices};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G}from"./chunk-
|
|
1
|
+
import{G}from"./chunk-14deqqhr.js";import{e,a,ke,D,b,B,C,S,E,T,A,R,L,V,U}from"./chunk-1s53190z.js";import{X}from"./chunk-2cem4sv7.js";var ht=e(()=>({domains:new Map,transitions:[]}),"createDefaultData"),ot=ht(),St=e(()=>ot.domains,"getDomains"),Mt=e(()=>ot.transitions,"getTransitions"),zt=e((t)=>{if(!t)return;for(let n of t){let o=n.domain,r=(n.items??[]).map((l)=>({label:l.label}));ot.domains.set(o,{name:o,items:r})}},"setDomains"),Lt=e((t)=>{if(!t)return;ot.transitions=t.filter((n)=>{if(n.from===n.to)return a.warn(`Cynefin: self-loop transition on domain "${n.from}" is not meaningful and will be skipped.`),!1;return!0}).map((n)=>({from:n.from,to:n.to,label:n.label||void 0}))},"setTransitions"),Nt=e(()=>U({...D.cynefin,...b().cynefin}),"getConfig"),Pt=e(()=>{C(),ot=ht()},"clear"),it={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:S,getAccTitle:E,setDiagramTitle:R,getDiagramTitle:L,getAccDescription:A,setAccDescription:T},It=e((t)=>{G(t,it),it.setDomains(t.domains),it.setTransitions(t.transitions)},"populate"),Wt={parse:e(async(t)=>{let n=await X("cynefin",t);a.debug(n),It(n)},"parse")};function nt(t){let n=t+1831565813|0;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}e(nt,"seededRandom");function xt(t){let n=0;for(let o=0;o<t.length;o++){let r=t.charCodeAt(o);n=(n<<5)-n+r,n|=0}return n}e(xt,"hashString");function $t(t,n){if(typeof t==="number"&&Number.isFinite(t)&&t!==0)return t;return xt(n)}e($t,"resolveSeed");function bt(t,n,o,r){let l=t/2,p=r??t*0.015,at=7,Z=n/7,f=[];for(let i=0;i<=7;i++){let y=nt(o+i*17)*p*2-p;f.push({x:l+y,y:i*Z})}let N=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.y+c.y)/2,k=i%2===0?1:-1,h=p*1.5*k*nt(o+i*31+7),J=y.x+h,K=m,tt=c.x-h;N+=` C${J},${K} ${tt},${m} ${c.x},${c.y}`}return N}e(bt,"generateFoldPath");function wt(t,n,o,r){let l=n/2,p=r??n*0.015,at=7,Z=t/7,f=[];for(let i=0;i<=7;i++){let y=nt(o+i*23)*p*2-p;f.push({x:i*Z,y:l+y})}let N=`M${f[0].x},${f[0].y}`;for(let i=0;i<f.length-1;i++){let y=f[i],c=f[i+1],m=(y.x+c.x)/2,k=i%2===0?1:-1,h=p*1.5*k*nt(o+i*37+11),J=m,K=y.y+h,tt=m,Y=c.y-h;N+=` C${J},${K} ${tt},${Y} ${c.x},${c.y}`}return N}e(wt,"generateHorizontalBoundary");function Ct(t,n){let o=t/2,r=n*0.5,l=n,p=t*0.03;return[`M${o},${r}`,`C${o+p},${r+(l-r)*0.2}`,`${o-p*1.5},${r+(l-r)*0.55}`,`${o+p*0.5},${r+(l-r)*0.75}`,`C${o-p},${r+(l-r)*0.85}`,`${o+p*0.3},${r+(l-r)*0.95}`,`${o},${l}`].join(" ")}e(Ct,"generateCliffPath");function vt(t,n,o,r){return[`M${t-o},${n}`,`A${o},${r} 0 1,1 ${t+o},${n}`,`A${o},${r} 0 1,1 ${t-o},${n}`,"Z"].join(" ")}e(vt,"generateConfusionPath");var gt={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=e((t,n)=>{let o=t/2,r=n/2;return{complex:{cx:o/2,cy:r/2,x:0,y:0,w:o,h:r},complicated:{cx:o+o/2,cy:r/2,x:o,y:0,w:o,h:r},chaotic:{cx:o/2,cy:r+r/2,x:0,y:r,w:o,h:r},clear:{cx:o+o/2,cy:r+r/2,x:o,y:r,w:o,h:r},confusion:{cx:o,cy:r,x:o*0.7,y:r*0.7,w:o*0.6,h:r*0.6}}},"getDomainLayouts"),Ft=e(()=>{let t=ke(),n=b();return U(t,n.themeVariables).cynefin},"getCynefinDomainColors"),lt=3,Vt=e((t,n,o,r)=>{let l=r.db,p=l.getDomains(),at=l.getTransitions(),Z=l.getDiagramTitle(),f=l.getAccTitle(),N=l.getAccDescription(),i=l.getConfig(),y=Ft();a.debug("Rendering Cynefin diagram");let{width:c,height:m,padding:k,showDomainDescriptions:h,boundaryAmplitude:J}=i,K=c+k*2,tt=m+k*2,Y={complex:y.complexBg,complicated:y.complicatedBg,clear:y.clearBg,chaotic:y.chaoticBg,confusion:y.confusionBg},P=V(n);if(B(P,tt,K,i.useMaxWidth??!0),P.attr("viewBox",`0 0 ${K} ${tt}`),f)P.append("title").text(f);if(N)P.append("desc").text(N);let I=P.append("g").attr("transform",`translate(${k}, ${k})`),et=Rt(c,m),dt=$t(i.seed,n),Dt=I.append("g").attr("class","cynefin-backgrounds"),st=["complex","complicated","chaotic","clear"];for(let d of st){let s=et[d];Dt.append("rect").attr("class","cynefinDomain").attr("x",s.x).attr("y",s.y).attr("width",s.w).attr("height",s.h).attr("fill",Y[d]).attr("fill-opacity",0.4).attr("stroke","none")}let ct=I.append("g").attr("class","cynefin-boundaries");ct.append("path").attr("class","cynefinBoundary").attr("d",bt(c,m,dt,J)).attr("fill","none"),ct.append("path").attr("class","cynefinBoundary").attr("d",wt(c,m,dt+100,J)).attr("fill","none"),ct.append("path").attr("class","cynefinCliff").attr("d",Ct(c,m)).attr("fill","none");let kt=c*0.15,Tt=m*0.15;I.append("path").attr("class","cynefinConfusion").attr("d",vt(c/2,m/2,kt,Tt)).attr("fill",Y.confusion).attr("fill-opacity",0.5);let ft=I.append("g").attr("class","cynefin-labels");for(let d of st){let s=et[d];ft.append("text").attr("class","cynefinDomainLabel").attr("x",s.cx).attr("y",h?s.cy-30:s.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d.charAt(0).toUpperCase()+d.slice(1))}if(ft.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?m/2-10:m/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){let d=I.append("g").attr("class","cynefin-subtitles");for(let s of st){let g=et[s],u=gt[s];d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),d.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}d.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",m/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(gt.confusion.practice)}let mt=I.append("g").attr("class","cynefin-items"),W=26,pt=10,At=["complex","complicated","chaotic","clear","confusion"];for(let d of At){let s=p.get(d);if(!s||s.items.length===0)continue;let g=et[d],u=d==="confusion",O=s.items,j=0;if(u&&s.items.length>lt)j=s.items.length-lt,O=s.items.slice(0,lt);let F;if(u){let w=h?22:14;F=g.cy+w}else F=g.cy+(h?25:15);if([...O].forEach((w,_)=>{let M=F+_*(W+4),H=mt.append("g"),q=H.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(w.label),v=w.label.length*7,x=q.node();if(x&&typeof x.getBBox==="function"){let rt=x.getBBox();if(rt.width>0)v=rt.width}let z=v+pt*2,Q=g.cx-z/2;H.attr("transform",`translate(${Q}, ${M})`),H.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",z).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",Y[d]).attr("fill-opacity",0.95),q.attr("x",z/2).attr("y",W/2)}),j>0){let w=F+O.length*(W+4),_=`+${j} more`,M=mt.append("g"),H=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",W/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(_),q=_.length*7,v=H.node();if(v&&typeof v.getBBox==="function"){let Q=v.getBBox();if(Q.width>0)q=Q.width}let x=q+pt*2,z=g.cx-x/2;M.attr("transform",`translate(${z}, ${w})`),M.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",W).attr("rx",4).attr("ry",4).attr("fill",Y[d]).attr("fill-opacity",0.6),H.attr("x",x/2).attr("y",W/2)}}if(at.length>0){let d=P.select("defs").empty()?P.append("defs"):P.select("defs"),s=`cynefin-arrow-${n}`;d.append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let g=I.append("g").attr("class","cynefin-arrows");at.forEach((u)=>{let O=et[u.from],j=et[u.to];if(!O||!j)return;if(u.from===u.to){a.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}let{cx:F,cy:w}=O,{cx:_,cy:M}=j,H=(F+_)/2,q=(w+M)/2,v=_-F,x=M-w,z=Math.sqrt(v*v+x*x),Q=z*0.15,rt=-x/z,Bt=v/z,yt=H+rt*Q,ut=q+Bt*Q;if(g.append("path").attr("class","cynefinArrowLine").attr("d",`M${F},${w} Q${yt},${ut} ${_},${M}`).attr("fill","none").attr("marker-end",`url(#${s})`),u.label)g.append("text").attr("class","cynefinArrowLabel").attr("x",yt).attr("y",ut-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}if(Z)I.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-k/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Z)},"draw"),_t={draw:Vt},Et=e(()=>{let t=ke(),n=b();return U(t,n.themeVariables).cynefin},"getCynefinTheme"),Ht=e(()=>{let t=Et();return`
|
|
2
2
|
.cynefinDomain {
|
|
3
3
|
stroke: none;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e,a,ke,D,b,O,B,C,S,E,T,A,R,L,Wn,V,U,Vi}from"./chunk-
|
|
1
|
+
import{e,a,ke,D,b,O,B,C,S,E,T,A,R,L,Wn,V,U,Vi}from"./chunk-1s53190z.js";import"./chunk-5nda24gv.js";import{Xe}from"./chunk-07agqp8h.js";import{wt}from"./chunk-t6sq85s6.js";import{Ot}from"./chunk-h0c42zy3.js";function Pt(t,i,s){t=+t,i=+i,s=(o=arguments.length)<2?(i=t,t=0,1):o<3?1:+s;var n=-1,o=Math.max(0,Math.ceil((i-t)/s))|0,c=Array(o);while(++n<o)c[n]=t+n*s;return c}function xt(){var t=Xe().unknown(void 0),{domain:i,range:s}=t,n=0,o=1,c,l,f=!1,g=0,y=0,z=0.5;delete t.unknown;function M(){var k=i().length,G=o<n,Y=G?o:n,N=G?n:o;if(c=(N-Y)/Math.max(1,k-g+y*2),f)c=Math.floor(c);if(Y+=(N-Y-c*(k-g))*z,l=c*(1-g),f)Y=Math.round(Y),l=Math.round(l);var j=Pt(k).map(function(it){return Y+c*it});return s(G?j.reverse():j)}return t.domain=function(k){return arguments.length?(i(k),M()):i()},t.range=function(k){return arguments.length?([n,o]=k,n=+n,o=+o,M()):[n,o]},t.rangeRound=function(k){return[n,o]=k,n=+n,o=+o,f=!0,M()},t.bandwidth=function(){return l},t.step=function(){return c},t.round=function(k){return arguments.length?(f=!!k,M()):f},t.padding=function(k){return arguments.length?(g=Math.min(1,y=+k),M()):g},t.paddingInner=function(k){return arguments.length?(g=Math.min(1,k),M()):g},t.paddingOuter=function(k){return arguments.length?(y=+k,M()):y},t.align=function(k){return arguments.length?(z=Math.max(0,Math.min(1,k)),M()):z},t.copy=function(){return xt(i(),[n,o]).round(f).paddingInner(g).paddingOuter(y).align(z)},Ot.apply(M(),arguments)}var Lt=function(){var t=e(function(J,h,u,x){for(u=u||{},x=J.length;x--;u[J[x]]=h);return u},"o"),i=[1,10,12,14,16,18,19,21,23],s=[2,6],n=[1,3],o=[1,5],c=[1,6],l=[1,7],f=[1,5,10,12,14,16,18,19,21,23,36,37,38],g=[1,25],y=[1,26],z=[1,28],M=[1,29],k=[1,30],G=[1,31],Y=[1,32],N=[1,33],j=[1,34],it=[1,35],nt=[1,36],_=[1,37],K=[1,43],d=[1,42],Q=[1,47],Z=[1,50],P=[1,10,12,14,16,18,19,21,23,36,37,38],ot=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],gt=[1,65],F=[26,28],v={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:e(function(h,u,x,p,I,r,rt){var m=r.length-1;switch(I){case 5:p.setOrientation(r[m]);break;case 9:p.setDiagramTitle(r[m].text.trim());break;case 12:p.setLineData({text:"",type:"text"},r[m]);break;case 13:p.setLineData(r[m-1],r[m]);break;case 14:p.setBarData({text:"",type:"text"},r[m]);break;case 15:p.setBarData(r[m-1],r[m]);break;case 16:this.$=r[m].trim(),p.setAccTitle(this.$);break;case 17:case 18:this.$=r[m].trim(),p.setAccDescription(this.$);break;case 19:this.$=r[m-1];break;case 20:case 30:this.$=[r[m-2],...r[m]];break;case 21:case 31:this.$=[r[m]];break;case 22:this.$={value:Number(r[m-1]),label:r[m]};break;case 23:this.$={value:Number(r[m]),label:""};break;case 24:p.setXAxisTitle(r[m]);break;case 25:p.setXAxisTitle(r[m-1]);break;case 26:p.setXAxisTitle({type:"text",text:""});break;case 27:p.setXAxisBand(r[m]);break;case 28:p.setXAxisRangeData(Number(r[m-2]),Number(r[m]));break;case 29:this.$=r[m-1];break;case 32:p.setYAxisTitle(r[m]);break;case 33:p.setYAxisTitle(r[m-1]);break;case 34:p.setYAxisTitle({type:"text",text:""});break;case 35:p.setYAxisRangeData(Number(r[m-2]),Number(r[m]));break;case 39:this.$={text:r[m],type:"text"};break;case 40:this.$={text:r[m],type:"text"};break;case 41:this.$={text:r[m],type:"markdown"};break;case 42:this.$=r[m];break;case 43:this.$=r[m-1]+""+r[m];break}},"anonymous"),table:[t(i,s,{3:1,4:2,7:4,5:n,36:o,37:c,38:l}),{1:[3]},t(i,s,{4:2,7:4,3:8,5:n,36:o,37:c,38:l}),t(i,s,{4:2,7:4,6:9,3:10,5:n,8:[1,11],36:o,37:c,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(f,[2,36]),t(f,[2,37]),t(f,[2,38]),{1:[2,1]},t(i,s,{4:2,7:4,3:21,5:n,36:o,37:c,38:l}),{1:[2,3]},t(f,[2,5]),t(i,[2,7],{4:22,36:o,37:c,38:l}),{11:23,30:g,39:24,40:y,41:27,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_},{11:39,13:38,24:K,29:d,30:g,31:40,32:41,39:24,40:y,41:27,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_},{11:45,15:44,29:Q,30:g,35:46,39:24,40:y,41:27,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_},{11:49,17:48,24:Z,30:g,39:24,40:y,41:27,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_},{11:52,17:51,24:Z,30:g,39:24,40:y,41:27,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_},{20:[1,53]},{22:[1,54]},t(P,[2,18]),{1:[2,2]},t(P,[2,8]),t(P,[2,9]),t(ot,[2,39],{41:55,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_}),t(ot,[2,40]),t(ot,[2,41]),t(H,[2,42]),t(H,[2,44]),t(H,[2,45]),t(H,[2,46]),t(H,[2,47]),t(H,[2,48]),t(H,[2,49]),t(H,[2,50]),t(H,[2,51]),t(H,[2,52]),t(H,[2,53]),t(P,[2,10]),t(P,[2,24],{32:41,31:56,24:K,29:d}),t(P,[2,26]),t(P,[2,27]),{33:[1,57]},{11:59,30:g,34:58,39:24,40:y,41:27,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_},t(P,[2,11]),t(P,[2,32],{35:60,29:Q}),t(P,[2,34]),{33:[1,61]},t(P,[2,12]),{17:62,24:Z},{25:63,27:64,29:gt},t(P,[2,14]),{17:66,24:Z},t(P,[2,16]),t(P,[2,17]),t(H,[2,43]),t(P,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(P,[2,33]),{29:[1,70]},t(P,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(F,[2,23],{30:[1,73]}),t(P,[2,15]),t(P,[2,28]),t(P,[2,29]),{11:59,30:g,34:74,39:24,40:y,41:27,42:z,43:M,44:k,45:G,46:Y,47:N,48:j,49:it,50:nt,51:_},t(P,[2,35]),t(P,[2,19]),{25:75,27:64,29:gt},t(F,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:e(function(h,u){if(u.recoverable)this.trace(h);else{var x=Error(h);throw x.hash=u,x}},"parseError"),parse:e(function(h){var u=this,x=[0],p=[],I=[null],r=[],rt=this.table,m="",bt=0,Ht=0,$t=0,fe=2,Ut=1,pe=r.slice.call(arguments,1),X=Object.create(this.lexer),ht={yy:{}};for(var Rt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Rt))ht.yy[Rt]=this.yy[Rt];if(X.setInput(h,ht.yy),ht.yy.lexer=X,ht.yy.parser=this,typeof X.yylloc>"u")X.yylloc={};var _t=X.yylloc;r.push(_t);var me=X.options&&X.options.ranges;if(typeof ht.yy.parseError==="function")this.parseError=ht.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function be(et){x.length=x.length-2*et,I.length=I.length-et,r.length=r.length-et}e(be,"popStack");function qt(){var et=p.pop()||X.lex()||Ut;if(typeof et!=="number"){if(et instanceof Array)p=et,et=p.pop();et=u.symbols_[et]||et}return et}e(qt,"lex");var q,Tt,lt,tt,Oe,Dt,ut={},yt,at,Gt,kt;while(!0){if(lt=x[x.length-1],this.defaultActions[lt])tt=this.defaultActions[lt];else{if(q===null||typeof q>"u")q=qt();tt=rt[lt]&&rt[lt][q]}if(typeof tt>"u"||!tt.length||!tt[0]){var vt="";kt=[];for(yt in rt[lt])if(this.terminals_[yt]&&yt>fe)kt.push("'"+this.terminals_[yt]+"'");if(X.showPosition)vt="Parse error on line "+(bt+1)+`:
|
|
2
2
|
`+X.showPosition()+`
|
|
3
3
|
Expecting `+kt.join(", ")+", got '"+(this.terminals_[q]||q)+"'";else vt="Parse error on line "+(bt+1)+": Unexpected "+(q==Ut?"end of input":"'"+(this.terminals_[q]||q)+"'");this.parseError(vt,{text:X.match,token:this.terminals_[q]||q,line:X.yylineno,loc:_t,expected:kt})}if(tt[0]instanceof Array&&tt.length>1)throw Error("Parse Error: multiple actions possible at state: "+lt+", token: "+q);switch(tt[0]){case 1:if(x.push(q),I.push(X.yytext),r.push(X.yylloc),x.push(tt[1]),q=null,!Tt){if(Ht=X.yyleng,m=X.yytext,bt=X.yylineno,_t=X.yylloc,$t>0)$t--}else q=Tt,Tt=null;break;case 2:if(at=this.productions_[tt[1]][1],ut.$=I[I.length-at],ut._$={first_line:r[r.length-(at||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(at||1)].first_column,last_column:r[r.length-1].last_column},me)ut._$.range=[r[r.length-(at||1)].range[0],r[r.length-1].range[1]];if(Dt=this.performAction.apply(ut,[m,Ht,bt,ht.yy,tt[1],I,r].concat(pe)),typeof Dt<"u")return Dt;if(at)x=x.slice(0,-1*at*2),I=I.slice(0,-1*at),r=r.slice(0,-1*at);x.push(this.productions_[tt[1]][0]),I.push(ut.$),r.push(ut._$),Gt=rt[x[x.length-2]][x[x.length-1]],x.push(Gt);break;case 3:return!0}}return!0},"parse")},st=function(){var J={EOF:1,parseError:e(function(u,x){if(this.yy.parser)this.yy.parser.parseError(u,x);else throw Error(u)},"parseError"),setInput:e(function(h,u){if(this.yy=u||this.yy||{},this._input=h,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 h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var u=h.match(/(?:\r\n?|\n).*/g);if(u)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),h},"input"),unput:e(function(h){var u=h.length,x=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var p=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),x.length-1)this.yylineno-=x.length-1;var I=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:x?(x.length===p.length?this.yylloc.first_column:0)+p[p.length-x.length].length-x[0].length:this.yylloc.first_column-u},this.options.ranges)this.yylloc.range=[I[0],I[0]+this.yyleng-u];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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(h){this.unput(this.match.slice(h))},"less"),pastInput:e(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var h=this.match;if(h.length<20)h+=this._input.substr(0,20-h.length);return(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var h=this.pastInput(),u=Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G}from"./chunk-
|
|
1
|
+
import{G}from"./chunk-14deqqhr.js";import{e,a,ke,D,b,B,C,S,E,T,A,R,L,V,U}from"./chunk-1s53190z.js";import{X}from"./chunk-2cem4sv7.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},M=32,k={axes:[],curves:[],options:h},x=structuredClone(k),H=D.radar,j=e(()=>U({...H,...b().radar}),"getConfig"),O=e(()=>x.axes,"getAxes"),K=e(()=>x.curves,"getCurves"),N=e(()=>x.options,"getOptions"),Y=e((n)=>{x.axes=n.map((t)=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=e((n)=>{x.curves=n.map((t)=>({name:t.name,label:t.label??t.name,entries:q(t.entries)}))},"setCurves"),q=e((n)=>{if(n[0].axis==null)return n.map((r)=>r.value);let t=O();if(t.length===0)throw Error("Axes must be populated before curves for reference entries");return t.map((r)=>{let s=n.find((o)=>o.axis?.$refText===r.name);if(s===void 0)throw Error("Missing entry for axis "+r.label);return s.value})},"computeCurveEntries"),J=e((n)=>{let t=n.reduce((r,s)=>(r[s.name]=s,r),{});if(x.options={showLegend:t.showLegend?.value??h.showLegend,ticks:t.ticks?.value??h.ticks,max:t.max?.value??h.max,min:t.min?.value??h.min,graticule:t.graticule?.value??h.graticule},x.options.ticks>M)a.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${M}). Using ${M} instead.`),x.options.ticks=M},"setOptions"),Q=e(()=>{C(),x=structuredClone(k)},"clear"),y={getAxes:O,getCurves:K,getOptions:N,setAxes:Y,setCurves:Z,setOptions:J,getConfig:j,clear:Q,setAccTitle:S,getAccTitle:E,setDiagramTitle:R,getDiagramTitle:L,getAccDescription:A,setAccDescription:T},tt=e((n)=>{G(n,y);let{axes:t,curves:r,options:s}=n;y.setAxes(t),y.setCurves(r),y.setOptions(s)},"populate"),et={parse:e(async(n)=>{let t=await X("radar",n);a.debug(t),tt(t)},"parse")},at=e((n,t,r,s)=>{let o=s.db,c=o.getAxes(),d=o.getCurves(),i=o.getOptions(),l=o.getConfig(),u=o.getDiagramTitle(),m=V(t),p=rt(m,l),g=i.max??Math.max(...d.map((w)=>Math.max(...w.entries))),v=i.min,f=Math.min(l.width,l.height)/2;nt(p,c,f,i.ticks,i.graticule),st(p,c,f,l),I(p,c,d,v,g,i.graticule,l),P(p,d,i.showLegend,l),p.append("text").attr("class","radarTitle").text(u).attr("x",0).attr("y",-l.height/2-l.marginTop)},"draw"),rt=e((n,t)=>{let r=t.width+t.marginLeft+t.marginRight,s=t.height+t.marginTop+t.marginBottom,o={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return B(n,s,r,t.useMaxWidth??!0),n.attr("viewBox",`0 0 ${r} ${s}`).attr("overflow","visible"),n.append("g").attr("transform",`translate(${o.x}, ${o.y})`)},"drawFrame"),nt=e((n,t,r,s,o)=>{if(o==="circle")for(let c=0;c<s;c++){let d=r*(c+1)/s;n.append("circle").attr("r",d).attr("class","radarGraticule")}else if(o==="polygon"){let c=t.length;for(let d=0;d<s;d++){let i=r*(d+1)/s,l=t.map((u,m)=>{let p=2*m*Math.PI/c-Math.PI/2,g=i*Math.cos(p),v=i*Math.sin(p);return`${g},${v}`}).join(" ");n.append("polygon").attr("points",l).attr("class","radarGraticule")}}},"drawGraticule"),st=e((n,t,r,s)=>{let o=t.length;for(let c=0;c<o;c++){let d=t[c].label,i=2*c*Math.PI/o-Math.PI/2,l=Math.cos(i),u=Math.sin(i);n.append("line").attr("x1",0).attr("y1",0).attr("x2",r*s.axisScaleFactor*l).attr("y2",r*s.axisScaleFactor*u).attr("class","radarAxisLine");let m=l>0.01?"start":l<-0.01?"end":"middle",p=u>0.01?"hanging":u<-0.01?"auto":"central",g=4;n.append("text").text(d).attr("x",r*s.axisLabelFactor*l+g*l).attr("y",r*s.axisLabelFactor*u+g*u).attr("text-anchor",m).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function I(n,t,r,s,o,c,d){let i=t.length,l=Math.min(d.width,d.height)/2;r.forEach((u,m)=>{if(u.entries.length!==i)return;let p=u.entries.map((g,v)=>{let f=2*Math.PI*v/i-Math.PI/2,w=_(g,s,o,l),z=w*Math.cos(f),W=w*Math.sin(f);return{x:z,y:W}});if(c==="circle")n.append("path").attr("d",F(p,d.curveTension)).attr("class",`radarCurve-${m}`);else if(c==="polygon")n.append("polygon").attr("points",p.map((g)=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}e(I,"drawCurves");function _(n,t,r,s){let o=Math.min(Math.max(n,t),r);return s*(o-t)/(r-t)}e(_,"relativeRadius");function F(n,t){let r=n.length,s=`M${n[0].x},${n[0].y}`;for(let o=0;o<r;o++){let c=n[(o-1+r)%r],d=n[o],i=n[(o+1)%r],l=n[(o+2)%r],u={x:d.x+(i.x-c.x)*t,y:d.y+(i.y-c.y)*t},m={x:i.x-(l.x-d.x)*t,y:i.y-(l.y-d.y)*t};s+=` C${u.x},${u.y} ${m.x},${m.y} ${i.x},${i.y}`}return`${s} Z`}e(F,"closedRoundCurve");function P(n,t,r,s){if(!r)return;let o=(s.width/2+s.marginRight)*3/4,c=-(s.height/2+s.marginTop)*3/4,d=20;t.forEach((i,l)=>{let u=n.append("g").attr("transform",`translate(${o}, ${c+l*d})`);u.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${l}`),u.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}e(P,"drawLegend");var ot={draw:at},it=e((n,t)=>{let r="";for(let s=0;s<n.THEME_COLOR_LIMIT;s++){let o=n[`cScale${s}`];r+=`
|
|
2
2
|
.radarCurve-${s} {
|
|
3
3
|
color: ${o};
|
|
4
4
|
fill: ${o};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{yn}from"./chunk-nywdeb4m.js";import{G}from"./chunk-ya3ghn3n.js";import{e,a,D,b,v,C,S,E,T,A,R,L,l,kr,p,ji,U,M}from"./chunk-5v44qv67.js";import{X}from"./chunk-cktmyc13.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=D.gitGraph,J=e(()=>U({...Ce,...b().gitGraph}),"getConfig"),m=new yn(()=>{let t=J(),{mainBranchName:r,mainBranchOrder:o}=t;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:o}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return ji({length:7})}e(ne,"getID");function pe(t,r){let o=Object.create(null);return t.reduce((c,i)=>{let h=r(i);if(!o[h])o[h]=!0,c.push(i);return c},[])}e(pe,"uniqBy");var ve=e(function(t){m.records.direction=t},"setDirection"),Ee=e(function(t){a.debug("options str",t),t=t?.trim(),t=t||"{}";try{m.records.options=JSON.parse(t)}catch(r){a.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=e(function(){return m.records.options},"getOptions"),Le=e(function(t){let{msg:r,id:o,type:c,tags:i}=t;a.info("commit",r,o,c,i),a.debug("Entering commit:",r,o,c,i);let h=J();o=v.sanitizeText(o,h),r=v.sanitizeText(r,h),i=i?.map((s)=>v.sanitizeText(s,h));let n={id:o?o:m.records.seq+"-"+ne(),message:r,seq:m.records.seq++,type:c??k.NORMAL,tags:i??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=n,a.info("main branch",h.mainBranchName),m.records.commits.has(n.id))a.warn(`Commit ID ${n.id} already exists`);m.records.commits.set(n.id,n),m.records.branches.set(m.records.currBranch,n.id),a.debug("in pushCommit "+n.id)},"commit"),Me=e(function(t){let{name:r,order:o}=t;if(r=v.sanitizeText(r,J()),m.records.branches.has(r))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 ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:o}),ye(r),a.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:r,id:o,type:c,tags:i}=t,h=J();if(r=v.sanitizeText(r,h),o)o=v.sanitizeText(o,h);let n=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(r),g=n?m.records.commits.get(n):void 0,y=s?m.records.commits.get(s):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!m.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(y===void 0||!y){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===y){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(o&&m.records.commits.has(o)){let d=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${o} ${c} ${i?.join(" ")}`,token:`merge ${r} ${o} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${o}_UNIQUE ${c} ${i?.join(" ")}`]},d}let x=s?s:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,x],branch:m.records.currBranch,type:k.MERGE,customType:c,customId:o?!0:!1,tags:i??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),a.debug(m.records.branches),a.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:r,targetId:o,tags:c,parent:i}=t;a.debug("Entering cherryPick:",r,o,c);let h=J();if(r=v.sanitizeText(r,h),o=v.sanitizeText(o,h),c=c?.map((g)=>v.sanitizeText(g,h)),i=v.sanitizeText(i,h),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},g}let n=m.records.commits.get(r);if(n===void 0||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=n.branch;if(n.type===k.MERGE&&!i)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(s===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${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 ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let x={id:m.records.seq+"-"+ne(),message:`cherry-picked ${n?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,n.id],branch:m.records.currBranch,type:k.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${n.id}${n.type===k.MERGE?`|parent:${i}`:""}`]};m.records.head=x,m.records.commits.set(x.id,x),m.records.branches.set(m.records.currBranch,x.id),a.debug(m.records.branches),a.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=v.sanitizeText(t,J()),!m.records.branches.has(t)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}else{m.records.currBranch=t;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function he(t,r,o){let c=t.indexOf(r);if(c===-1)t.push(o);else t.splice(c,1,o)}e(he,"upsert");function me(t){let r=t.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},t[0]),o="";t.forEach(function(i){if(i===r)o+="\t*";else o+="\t|"});let c=[o,r.id,r.seq];for(let i in m.records.branches)if(m.records.branches.get(i)===r.id)c.push(i);if(a.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=m.records.commits.get(r.parents[0]);if(he(t,r,i),r.parents[1])t.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=m.records.commits.get(r.parents[0]);he(t,r,i)}t=pe(t,(i)=>i.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){a.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((r,o)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${o}`)}}).sort((r,o)=>(r.order??0)-(o.order??0)).map(({name:r})=>({name:r}))},"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(r){a.debug(r.id)}),t.sort((r,o)=>r.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:k,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:R,getDiagramTitle:L},He=e((t,r)=>{if(G(t,r),t.dir)r.setDirection(t.dir);for(let o of t.statements)Se(o,r)},"populate"),Se=e((t,r)=>{let c={Commit:e((i)=>r.commit(Ne(i)),"Commit"),Branch:e((i)=>r.branch(Fe(i)),"Branch"),Merge:e((i)=>r.merge(ze(i)),"Merge"),Checkout:e((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:e((i)=>r.cherryPick(je(i)),"CherryPicking")}[t.$type];if(c)c(t);else a.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?k[t.type]:k.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?k[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 r=await X("gitGraph",t);a.debug(r),He(r,ue)},"parse")},j=10,K=40,N=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,r,o=!1)=>{if(o&&t>0)return(t-1)%(r-1)+1;return t%r},"calcColorIndex"),W=new Map,q=new Map,oe=30,te=new Map,se=[],Y=0,w="LR",Ve=e(()=>{W.clear(),q.clear(),te.clear(),Y=0,se=[],w="LR"},"clear"),be=e((t)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=e((t)=>{let r,o,c;if(w==="BT")o=e((i,h)=>i<=h,"comparisonFunc"),c=1/0;else o=e((i,h)=>i>=h,"comparisonFunc"),c=0;return t.forEach((i)=>{let h=w==="TB"||w=="BT"?q.get(i)?.y:q.get(i)?.x;if(h!==void 0&&o(h,c))r=i,c=h}),r},"findClosestParent"),Ze=e((t)=>{let r="",o=1/0;return t.forEach((c)=>{let i=q.get(c).y;if(i<=o)r=c,o=i}),r||void 0},"findClosestParentBT"),Xe=e((t,r,o)=>{let c=o,i=o,h=[];t.forEach((n)=>{let s=r.get(n);if(!s)throw Error(`Commit not found for key ${n}`);if(s.parents.length)c=Qe(s),i=Math.max(c,i);else h.push(s);et(s,c)}),c=i,h.forEach((n)=>{tt(n,c,o)}),t.forEach((n)=>{let s=r.get(n);if(s?.parents.length){let g=Ze(s.parents);if(c=q.get(g).y-K,c<=i)i=c;let y=W.get(s.branch).pos,x=c-j;q.set(s.id,{x:y,y:x})}})},"setParallelBTPos"),Je=e((t)=>{let r=we(t.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${t.id}`);let o=q.get(r)?.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,r)=>{let o=W.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let c=o.pos,i=r+j;return q.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,o)=>{let c=W.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+o,h=c.pos;q.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,o,c,i,h)=>{let{theme:n}=l(),s=ce.has(n??""),g=ge.has(n??""),y=Ue.has(n??"");if(h===k.HIGHLIGHT)t.append("rect").attr("x",o.x-10+(s?3:0)).attr("y",o.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${Z(i,V,g)} ${c}-outer`),t.append("rect").attr("x",o.x-6+(s?2:0)).attr("y",o.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${Z(i,V,g)} ${c}-inner`);else if(h===k.CHERRY_PICK)t.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let x=t.append("circle");if(x.attr("cx",o.x),x.attr("cy",o.y),x.attr("r",s?7:10),x.attr("class",`commit ${r.id} commit${Z(i,V,g)}`),h===k.MERGE){let f=t.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",s?5:6),f.attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}if(h===k.REVERSE){let f=t.append("path"),d=s?4:5;f.attr("d",`M ${o.x-d},${o.y-d}L${o.x+d},${o.y+d}M${o.x-d},${o.y+d}L${o.x+d},${o.y-d}`).attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}}},"drawCommitBullet"),at=e((t,r,o,c,i)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&i.showCommitLabel){let h=t.append("g"),n=h.insert("rect").attr("class","commit-label-bkg"),s=h.append("text").attr("x",c).attr("y",o.y+25).attr("class","commit-label").text(r.id),g=s.node()?.getBBox();if(g){if(n.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),w==="TB"||w==="BT")n.attr("x",o.x-(g.width+4*N+5)).attr("y",o.y-12),s.attr("x",o.x-(g.width+4*N)).attr("y",o.y+g.height-12);else s.attr("x",o.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(w==="TB"||w==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let y=-7.5-(g.width+10)/25*9.5,x=10+g.width/25*8.5;h.attr("transform","translate("+y+", "+x+") rotate(-45, "+c+", "+o.y+")")}}}},"drawCommitLabel"),ot=e((t,r,o,c)=>{if(r.tags.length>0){let i=0,h=0,n=0,s=[];for(let g of r.tags.reverse()){let y=t.insert("polygon"),x=t.append("circle"),f=t.append("text").attr("y",o.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),n=Math.max(n,d.height),f.attr("x",o.posWithOffset-d.width/2),s.push({tag:f,hole:x,rect:y,yOffset:i}),i+=20}for(let{tag:g,hole:y,rect:x,yOffset:f}of s){let d=n/2,B=o.y-19.2-f;if(x.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{yn}from"./chunk-wjbk50hn.js";import{G}from"./chunk-14deqqhr.js";import{e,a,D,b,v,C,S,E,T,A,R,L,l,kr,p,ji,U,M}from"./chunk-1s53190z.js";import{X}from"./chunk-2cem4sv7.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=D.gitGraph,J=e(()=>U({...Ce,...b().gitGraph}),"getConfig"),m=new yn(()=>{let t=J(),{mainBranchName:r,mainBranchOrder:o}=t;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:o}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ne(){return ji({length:7})}e(ne,"getID");function pe(t,r){let o=Object.create(null);return t.reduce((c,i)=>{let h=r(i);if(!o[h])o[h]=!0,c.push(i);return c},[])}e(pe,"uniqBy");var ve=e(function(t){m.records.direction=t},"setDirection"),Ee=e(function(t){a.debug("options str",t),t=t?.trim(),t=t||"{}";try{m.records.options=JSON.parse(t)}catch(r){a.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=e(function(){return m.records.options},"getOptions"),Le=e(function(t){let{msg:r,id:o,type:c,tags:i}=t;a.info("commit",r,o,c,i),a.debug("Entering commit:",r,o,c,i);let h=J();o=v.sanitizeText(o,h),r=v.sanitizeText(r,h),i=i?.map((s)=>v.sanitizeText(s,h));let n={id:o?o:m.records.seq+"-"+ne(),message:r,seq:m.records.seq++,type:c??k.NORMAL,tags:i??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=n,a.info("main branch",h.mainBranchName),m.records.commits.has(n.id))a.warn(`Commit ID ${n.id} already exists`);m.records.commits.set(n.id,n),m.records.branches.set(m.records.currBranch,n.id),a.debug("in pushCommit "+n.id)},"commit"),Me=e(function(t){let{name:r,order:o}=t;if(r=v.sanitizeText(r,J()),m.records.branches.has(r))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 ${r}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:o}),ye(r),a.debug("in createBranch")},"branch"),Pe=e((t)=>{let{branch:r,id:o,type:c,tags:i}=t,h=J();if(r=v.sanitizeText(r,h),o)o=v.sanitizeText(o,h);let n=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(r),g=n?m.records.commits.get(n):void 0,y=s?m.records.commits.get(s):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(g===void 0||!g){let d=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!m.records.branches.has(r)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(y===void 0||!y){let d=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if(g===y){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(o&&m.records.commits.has(o)){let d=Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${o} ${c} ${i?.join(" ")}`,token:`merge ${r} ${o} ${c} ${i?.join(" ")}`,expected:[`merge ${r} ${o}_UNIQUE ${c} ${i?.join(" ")}`]},d}let x=s?s:"",f={id:o||`${m.records.seq}-${ne()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,x],branch:m.records.currBranch,type:k.MERGE,customType:c,customId:o?!0:!1,tags:i??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),a.debug(m.records.branches),a.debug("in mergeBranch")},"merge"),Re=e(function(t){let{id:r,targetId:o,tags:c,parent:i}=t;a.debug("Entering cherryPick:",r,o,c);let h=J();if(r=v.sanitizeText(r,h),o=v.sanitizeText(o,h),c=c?.map((g)=>v.sanitizeText(g,h)),i=v.sanitizeText(i,h),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},g}let n=m.records.commits.get(r);if(n===void 0||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=n.branch;if(n.type===k.MERGE&&!i)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(s===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${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 ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${o}`,token:`cherryPick ${r} ${o}`,expected:["cherry-pick abc"]},f}let x={id:m.records.seq+"-"+ne(),message:`cherry-picked ${n?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,n.id],branch:m.records.currBranch,type:k.CHERRY_PICK,tags:c?c.filter(Boolean):[`cherry-pick:${n.id}${n.type===k.MERGE?`|parent:${i}`:""}`]};m.records.head=x,m.records.commits.set(x.id,x),m.records.branches.set(m.records.currBranch,x.id),a.debug(m.records.branches),a.debug("in cherryPick")}},"cherryPick"),ye=e(function(t){if(t=v.sanitizeText(t,J()),!m.records.branches.has(t)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}else{m.records.currBranch=t;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function he(t,r,o){let c=t.indexOf(r);if(c===-1)t.push(o);else t.splice(c,1,o)}e(he,"upsert");function me(t){let r=t.reduce((i,h)=>{if(i.seq>h.seq)return i;return h},t[0]),o="";t.forEach(function(i){if(i===r)o+="\t*";else o+="\t|"});let c=[o,r.id,r.seq];for(let i in m.records.branches)if(m.records.branches.get(i)===r.id)c.push(i);if(a.debug(c.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let i=m.records.commits.get(r.parents[0]);if(he(t,r,i),r.parents[1])t.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let i=m.records.commits.get(r.parents[0]);he(t,r,i)}t=pe(t,(i)=>i.id),me(t)}e(me,"prettyPrintCommitHistory");var Oe=e(function(){a.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((r,o)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${o}`)}}).sort((r,o)=>(r.order??0)-(o.order??0)).map(({name:r})=>({name:r}))},"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(r){a.debug(r.id)}),t.sort((r,o)=>r.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:k,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:R,getDiagramTitle:L},He=e((t,r)=>{if(G(t,r),t.dir)r.setDirection(t.dir);for(let o of t.statements)Se(o,r)},"populate"),Se=e((t,r)=>{let c={Commit:e((i)=>r.commit(Ne(i)),"Commit"),Branch:e((i)=>r.branch(Fe(i)),"Branch"),Merge:e((i)=>r.merge(ze(i)),"Merge"),Checkout:e((i)=>r.checkout(Ye(i)),"Checkout"),CherryPicking:e((i)=>r.cherryPick(je(i)),"CherryPicking")}[t.$type];if(c)c(t);else a.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Ne=e((t)=>({id:t.id,msg:t.message??"",type:t.type!==void 0?k[t.type]:k.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?k[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 r=await X("gitGraph",t);a.debug(r),He(r,ue)},"parse")},j=10,K=40,N=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,r,o=!1)=>{if(o&&t>0)return(t-1)%(r-1)+1;return t%r},"calcColorIndex"),W=new Map,q=new Map,oe=30,te=new Map,se=[],Y=0,w="LR",Ve=e(()=>{W.clear(),q.clear(),te.clear(),Y=0,se=[],w="LR"},"clear"),be=e((t)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t==="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((c)=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=c.trim(),r.appendChild(i)}),r},"drawText"),we=e((t)=>{let r,o,c;if(w==="BT")o=e((i,h)=>i<=h,"comparisonFunc"),c=1/0;else o=e((i,h)=>i>=h,"comparisonFunc"),c=0;return t.forEach((i)=>{let h=w==="TB"||w=="BT"?q.get(i)?.y:q.get(i)?.x;if(h!==void 0&&o(h,c))r=i,c=h}),r},"findClosestParent"),Ze=e((t)=>{let r="",o=1/0;return t.forEach((c)=>{let i=q.get(c).y;if(i<=o)r=c,o=i}),r||void 0},"findClosestParentBT"),Xe=e((t,r,o)=>{let c=o,i=o,h=[];t.forEach((n)=>{let s=r.get(n);if(!s)throw Error(`Commit not found for key ${n}`);if(s.parents.length)c=Qe(s),i=Math.max(c,i);else h.push(s);et(s,c)}),c=i,h.forEach((n)=>{tt(n,c,o)}),t.forEach((n)=>{let s=r.get(n);if(s?.parents.length){let g=Ze(s.parents);if(c=q.get(g).y-K,c<=i)i=c;let y=W.get(s.branch).pos,x=c-j;q.set(s.id,{x:y,y:x})}})},"setParallelBTPos"),Je=e((t)=>{let r=we(t.parents.filter((c)=>c!==null));if(!r)throw Error(`Closest parent not found for commit ${t.id}`);let o=q.get(r)?.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,r)=>{let o=W.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let c=o.pos,i=r+j;return q.set(t.id,{x:c,y:i}),{x:c,y:i}},"setCommitPosition"),tt=e((t,r,o)=>{let c=W.get(t.branch);if(!c)throw Error(`Branch not found for commit ${t.id}`);let i=r+o,h=c.pos;q.set(t.id,{x:h,y:i})},"setRootPosition"),rt=e((t,r,o,c,i,h)=>{let{theme:n}=l(),s=ce.has(n??""),g=ge.has(n??""),y=Ue.has(n??"");if(h===k.HIGHLIGHT)t.append("rect").attr("x",o.x-10+(s?3:0)).attr("y",o.y-10+(s?3:0)).attr("width",s?14:20).attr("height",s?14:20).attr("class",`commit ${r.id} commit-highlight${Z(i,V,g)} ${c}-outer`),t.append("rect").attr("x",o.x-6+(s?2:0)).attr("y",o.y-6+(s?2:0)).attr("width",s?8:12).attr("height",s?8:12).attr("class",`commit ${r.id} commit${Z(i,V,g)} ${c}-inner`);else if(h===k.CHERRY_PICK)t.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s?7:10).attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",s?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`),t.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${c}`);else{let x=t.append("circle");if(x.attr("cx",o.x),x.attr("cy",o.y),x.attr("r",s?7:10),x.attr("class",`commit ${r.id} commit${Z(i,V,g)}`),h===k.MERGE){let f=t.append("circle");f.attr("cx",o.x),f.attr("cy",o.y),f.attr("r",s?5:6),f.attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}if(h===k.REVERSE){let f=t.append("path"),d=s?4:5;f.attr("d",`M ${o.x-d},${o.y-d}L${o.x+d},${o.y+d}M${o.x-d},${o.y+d}L${o.x+d},${o.y-d}`).attr("class",`commit ${c} ${r.id} commit${Z(i,V,g)}`)}}},"drawCommitBullet"),at=e((t,r,o,c,i)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&i.showCommitLabel){let h=t.append("g"),n=h.insert("rect").attr("class","commit-label-bkg"),s=h.append("text").attr("x",c).attr("y",o.y+25).attr("class","commit-label").text(r.id),g=s.node()?.getBBox();if(g){if(n.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),w==="TB"||w==="BT")n.attr("x",o.x-(g.width+4*N+5)).attr("y",o.y-12),s.attr("x",o.x-(g.width+4*N)).attr("y",o.y+g.height-12);else s.attr("x",o.posWithOffset-g.width/2);if(i.rotateCommitLabel)if(w==="TB"||w==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let y=-7.5-(g.width+10)/25*9.5,x=10+g.width/25*8.5;h.attr("transform","translate("+y+", "+x+") rotate(-45, "+c+", "+o.y+")")}}}},"drawCommitLabel"),ot=e((t,r,o,c)=>{if(r.tags.length>0){let i=0,h=0,n=0,s=[];for(let g of r.tags.reverse()){let y=t.insert("polygon"),x=t.append("circle"),f=t.append("text").attr("y",o.y-16-i).attr("class","tag-label").text(g),d=f.node()?.getBBox();if(!d)throw Error("Tag bbox not found");h=Math.max(h,d.width),n=Math.max(n,d.height),f.attr("x",o.posWithOffset-d.width/2),s.push({tag:f,hole:x,rect:y,yOffset:i}),i+=20}for(let{tag:g,hole:y,rect:x,yOffset:f}of s){let d=n/2,B=o.y-19.2-f;if(x.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${c-h/2-N/2},${B+z}
|
|
3
3
|
${c-h/2-N/2},${B-z}
|
|
4
4
|
${o.posWithOffset-h/2-N},${B-d-z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ir}from"./chunk-2cem4sv7.js";export{ir as createRailroadEbnfServices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e,a}from"./chunk-
|
|
1
|
+
import{e,a}from"./chunk-1s53190z.js";import{K,Dt,Mt}from"./chunk-2b63adsj.js";import{G}from"./chunk-14deqqhr.js";import{ar,kt}from"./chunk-2cem4sv7.js";var o=ar().Railroad.parser.LangiumParser,n=e((r)=>{switch(r.$type){case"RailroadTerminalExpr":return{type:"terminal",value:r.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:r.name};case"RailroadSpecialExpr":return{type:"special",text:r.text};case"RailroadSequenceExpr":{let t=r.elements.map(n);return t.length===1?t[0]:{type:"sequence",elements:t}}case"RailroadChoiceExpr":{let t=r.alternatives.map(n);return t.length===1?t[0]:{type:"choice",alternatives:t}}case"RailroadOptionalExpr":return{type:"optional",element:n(r.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:n(r.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:n(r.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${r.$type}`)}},"transformExpression"),l=e((r)=>({name:r.name,definition:n(r.definition)}),"transformRule"),s=e((r)=>{if(G(r,K),r.title)K.setTitle(r.title);r.rules.map((t)=>K.addRule(l(t)))},"populateDb"),m={parse:e((r)=>{K.clear(),a.debug("[Railroad Parser] Starting Langium parse");let t=o.parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new kt(t);let i=t.value;a.debug("[Railroad Parser] Parsed rules:",i.rules.length),s(i),a.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:K}},R={parser:m,db:K,renderer:Mt,styles:Dt};export{R as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e,Qt,a,Y,u,d,b,ht,Aa,C,l,p,V,We,oe,Ye}from"./chunk-
|
|
1
|
+
import{e,Qt,a,Y,u,d,b,ht,Aa,C,l,p,V,We,oe,Ye}from"./chunk-1s53190z.js";import{_t}from"./chunk-5wbnjjhg.js";var dt=function(){var r=e(function(E,o,y,g){for(y=y||{},g=E.length;g--;y[E[g]]=o);return y},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],i=[1,13],n=[1,14],f=[1,15],h=[1,16],c=[1,19],_=[1,20],x={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(o,y,g,k,w,m,I){var T=m.length-1;switch(w){case 1:return m[T-1];case 3:k.setDirection("LR");break;case 4:k.setDirection("TD");break;case 5:this.$=[];break;case 6:m[T-1].push(m[T]),this.$=m[T-1];break;case 7:case 8:this.$=m[T];break;case 9:case 10:this.$=[];break;case 11:k.getCommonDb().setDiagramTitle(m[T].substr(6)),this.$=m[T].substr(6);break;case 12:this.$=m[T].trim(),k.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=m[T].trim(),k.getCommonDb().setAccDescription(this.$);break;case 15:k.addSection(m[T].substr(8)),this.$=m[T].substr(8);break;case 18:k.addTask(m[T],0,""),this.$=m[T];break;case 19:k.addEvent(m[T].substr(2)),this.$=m[T];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},r(t,[2,5],{5:6}),r(t,[2,2]),r(t,[2,3]),r(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:i,17:n,19:f,20:h,21:17,22:18,23:c,24:_},r(t,[2,10],{1:[2,1]}),r(t,[2,6]),{12:21,14:s,15:i,17:n,19:f,20:h,21:17,22:18,23:c,24:_},r(t,[2,8]),r(t,[2,9]),r(t,[2,11]),{16:[1,22]},{18:[1,23]},r(t,[2,14]),r(t,[2,15]),r(t,[2,16]),r(t,[2,17]),r(t,[2,18]),r(t,[2,19]),r(t,[2,7]),r(t,[2,12]),r(t,[2,13])],defaultActions:{},parseError:e(function(o,y){if(y.recoverable)this.trace(o);else{var g=Error(o);throw g.hash=y,g}},"parseError"),parse:e(function(o){var y=this,g=[0],k=[],w=[null],m=[],I=this.table,T="",W=0,D=0,K=0,J=2,B=1,G=m.slice.call(arguments,1),L=Object.create(this.lexer),z={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))z.yy[X]=this.yy[X];if(L.setInput(o,z.yy),z.yy.lexer=L,z.yy.parser=this,typeof L.yylloc>"u")L.yylloc={};var Q=L.yylloc;m.push(Q);var A=L.options&&L.options.ranges;if(typeof z.yy.parseError==="function")this.parseError=z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function N(U){g.length=g.length-2*U,w.length=w.length-U,m.length=m.length-U}e(N,"popStack");function M(){var U=k.pop()||L.lex()||B;if(typeof U!=="number"){if(U instanceof Array)k=U,U=k.pop();U=y.symbols_[U]||U}return U}e(M,"lex");var H,P,F,R,lt,rt,q={},nt,Z,kt,it;while(!0){if(F=g[g.length-1],this.defaultActions[F])R=this.defaultActions[F];else{if(H===null||typeof H>"u")H=M();R=I[F]&&I[F][H]}if(typeof R>"u"||!R.length||!R[0]){var ct="";it=[];for(nt in I[F])if(this.terminals_[nt]&&nt>J)it.push("'"+this.terminals_[nt]+"'");if(L.showPosition)ct="Parse error on line "+(W+1)+`:
|
|
2
2
|
`+L.showPosition()+`
|
|
3
3
|
Expecting `+it.join(", ")+", got '"+(this.terminals_[H]||H)+"'";else ct="Parse error on line "+(W+1)+": Unexpected "+(H==B?"end of input":"'"+(this.terminals_[H]||H)+"'");this.parseError(ct,{text:L.match,token:this.terminals_[H]||H,line:L.yylineno,loc:Q,expected:it})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+F+", token: "+H);switch(R[0]){case 1:if(g.push(H),w.push(L.yytext),m.push(L.yylloc),g.push(R[1]),H=null,!P){if(D=L.yyleng,T=L.yytext,W=L.yylineno,Q=L.yylloc,K>0)K--}else H=P,P=null;break;case 2:if(Z=this.productions_[R[1]][1],q.$=w[w.length-Z],q._$={first_line:m[m.length-(Z||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(Z||1)].first_column,last_column:m[m.length-1].last_column},A)q._$.range=[m[m.length-(Z||1)].range[0],m[m.length-1].range[1]];if(rt=this.performAction.apply(q,[T,D,W,z.yy,R[1],w,m].concat(G)),typeof rt<"u")return rt;if(Z)g=g.slice(0,-1*Z*2),w=w.slice(0,-1*Z),m=m.slice(0,-1*Z);g.push(this.productions_[R[1]][0]),w.push(q.$),m.push(q._$),kt=I[g[g.length-2]][g[g.length-1]],g.push(kt);break;case 3:return!0}}return!0},"parse")},S=function(){var E={EOF:1,parseError:e(function(y,g){if(this.yy.parser)this.yy.parser.parseError(y,g);else throw Error(y)},"parseError"),setInput:e(function(o,y){if(this.yy=y||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var y=o.match(/(?:\r\n?|\n).*/g);if(y)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),o},"input"),unput:e(function(o){var y=o.length,g=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var k=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),g.length-1)this.yylineno-=g.length-1;var w=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:g?(g.length===k.length?this.yylloc.first_column:0)+k[k.length-g.length].length-g[0].length:this.yylloc.first_column-y},this.options.ranges)this.yylloc.range=[w[0],w[0]+this.yyleng-y];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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(o){this.unput(this.match.slice(o))},"less"),pastInput:e(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var o=this.pastInput(),y=Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ei}from"./chunk-2cem4sv7.js";export{Ei as createEventModelingServices};
|