@bkm016/basalt 0.1.10 → 0.1.12
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/{chunk-755sy11p.js → chunk-01nve4qy.js} +1 -1
- package/{chunk-jtsve11b.js → chunk-0fc9apfn.js} +9 -9
- package/{chunk-d5j74pcp.js → chunk-1h34mzh7.js} +4 -4
- package/{chunk-fgwda4m0.js → chunk-1xfv4bd7.js} +1 -1
- package/{chunk-mbpb5c7w.js → chunk-2fyjph3f.js} +1 -1
- package/{chunk-13gvs0ax.js → chunk-2kxnw7vs.js} +1 -1
- package/{chunk-95964592.js → chunk-37zystxb.js} +11 -11
- package/{chunk-h1kb8b49.js → chunk-3pf1d62g.js} +2 -2
- package/{chunk-29qrxygd.js → chunk-5wnmbc1b.js} +2 -2
- package/{chunk-c71173py.js → chunk-6mges89p.js} +4 -4
- package/{chunk-d0a1jxk5.js → chunk-6sz5q3df.js} +2 -2
- package/chunk-7er5pz7s.js +479 -0
- package/{chunk-gbjn6d81.js → chunk-7g5smgjj.js} +1 -1
- package/chunk-7m3jagqn.js +2 -0
- package/{chunk-wnzvnskb.js → chunk-85v69h91.js} +2 -2
- package/{chunk-38g3gctw.js → chunk-9c4gdg1q.js} +2 -2
- package/{chunk-en218k4y.js → chunk-cbgpymt4.js} +1 -1
- package/{chunk-a1rb1a48.js → chunk-cdw03j4t.js} +2 -2
- package/chunk-ch1r3ted.js +2 -0
- package/{chunk-dfh9m9n7.js → chunk-db7ws33a.js} +2 -2
- package/{chunk-1n7dat03.js → chunk-ejjem0tc.js} +3 -3
- package/{chunk-c4qr1f41.js → chunk-eq4wqxzt.js} +2 -2
- package/{chunk-zc9ar0r4.js → chunk-eyrtbbdd.js} +1 -1
- package/{chunk-r4ttdkrz.js → chunk-fhxy6y34.js} +2 -2
- package/{chunk-zyyzk5ha.js → chunk-fy82qxa1.js} +1 -1
- package/{chunk-xtq1xpq0.js → chunk-hc300148.js} +1 -1
- package/{chunk-vtqr7dm8.js → chunk-j64dc767.js} +2 -2
- package/{chunk-msm9hmk9.js → chunk-jpnf71q7.js} +2 -2
- package/{chunk-q9f4xb0w.js → chunk-kpe7pnhy.js} +4 -4
- package/{chunk-a98wma9j.js → chunk-ksk49hv0.js} +1 -1
- package/{chunk-bdjr0kfr.js → chunk-m4bg1apa.js} +5 -5
- package/{chunk-dq01v5eq.js → chunk-nhm9z3d8.js} +1 -1
- package/{chunk-30rjf7my.js → chunk-ntks40jd.js} +2 -2
- package/{chunk-a1352w87.js → chunk-nw1xpt3s.js} +1 -1
- package/{chunk-xh444pfn.js → chunk-p2pmdbt2.js} +8 -8
- package/{chunk-hb4f2v34.js → chunk-qfcr5g35.js} +2 -2
- package/{chunk-n2jcx65v.js → chunk-qs8zzg50.js} +2 -2
- package/{chunk-qaeyhe65.js → chunk-r4gm8ngh.js} +1 -1
- package/{chunk-pz2afna8.js → chunk-rks90mh1.js} +1 -1
- package/{chunk-asyr3gnq.js → chunk-rwks9zaw.js} +2 -2
- package/{chunk-v3ee9z3f.js → chunk-t7te60m7.js} +1 -1
- package/{chunk-4dw43syb.js → chunk-tv52xajf.js} +1 -1
- package/{chunk-c0zfefq8.js → chunk-v7wcchy2.js} +1 -1
- package/{chunk-tevejprz.js → chunk-vjne04dp.js} +3 -3
- package/{chunk-ax04trym.js → chunk-w0rr66z7.js} +1 -1
- package/{chunk-gkf5jwvj.js → chunk-w6f2r052.js} +1 -1
- package/{chunk-0mjb3sm3.js → chunk-wqqjzsjt.js} +327 -282
- package/{chunk-c6q04xrd.js → chunk-xef4642x.js} +1 -1
- package/compiled.js +7 -7
- package/package.json +1 -1
- package/ui-test-worker.js +2 -2
- package/web/chunk-04drx71p.js +1 -0
- package/web/chunk-0mdf1qja.js +1 -0
- package/web/chunk-0rdgt4jb.css +1 -0
- package/web/{chunk-nawxgz87.js → chunk-19zd0tye.js} +8 -8
- package/web/chunk-1m0kp0g3.js +8 -0
- package/web/{chunk-07agqp8h.js → chunk-1zwc09e8.js} +2 -2
- package/web/{chunk-fmmrthpa.js → chunk-2cyzaqjy.js} +3 -3
- package/web/{chunk-vasppf6b.js → chunk-2jfesv7m.js} +2 -2
- package/web/{chunk-mykrm8ba.js → chunk-30aeb767.js} +2 -2
- package/web/chunk-3j2tcphs.js +1 -0
- package/web/chunk-3k9h7a73.js +1142 -0
- package/web/chunk-3m1bb2fw.js +1 -0
- package/web/{chunk-88wd49xe.js → chunk-3n9ypydh.js} +2 -2
- package/web/{chunk-sd3xat3r.js → chunk-3psgr0q8.js} +13 -13
- package/web/{chunk-yppgejg7.js → chunk-3qxxrwsp.js} +10 -10
- package/web/{chunk-js6kb05s.js → chunk-3rkkp6ed.js} +6 -6
- package/web/{chunk-tqze6d6b.js → chunk-4f6a8dsk.js} +1 -1
- package/web/{chunk-eqndhs21.js → chunk-4wwd3pfz.js} +2 -2
- package/web/chunk-55nvm2mj.js +1 -0
- package/web/chunk-5dkqfnh7.js +2 -0
- package/web/{chunk-zms6mrqk.js → chunk-5g8md2wg.js} +5 -5
- package/web/{chunk-h5ckjk48.js → chunk-5np514v5.js} +12 -12
- package/web/{chunk-z4bp6p32.js → chunk-60mym60n.js} +1 -1
- package/web/{chunk-bc3ajvfg.js → chunk-6f2sz84q.js} +2 -2
- package/web/{chunk-frnh4zqf.js → chunk-6jb2zyp6.js} +2 -2
- package/web/{chunk-g7dc4hrd.js → chunk-7adsmqv6.js} +1 -1
- package/web/{chunk-g7kz8f7q.js → chunk-7ksg3ccg.js} +5 -5
- package/web/chunk-7ky5nrrr.js +1 -0
- package/web/{chunk-sc63488q.js → chunk-7v85yvb2.js} +1 -1
- package/web/chunk-7vgh17es.js +1 -0
- package/web/chunk-80z8s8zb.js +2 -0
- package/web/{chunk-rxvm70w5.js → chunk-81s15c2e.js} +2 -2
- package/web/{chunk-knm82fw9.js → chunk-8539865x.js} +1 -1
- package/web/{chunk-jccz14ye.js → chunk-885kpj14.js} +2 -2
- package/web/{chunk-26ecc2xh.js → chunk-8cnjd0f2.js} +5 -5
- package/web/chunk-8sdjgv3k.js +1 -0
- package/web/chunk-9bxtzwtc.js +1 -0
- package/web/chunk-9jy8nc4r.js +1 -0
- package/web/{chunk-c57f714b.js → chunk-aa46mrgh.js} +2 -2
- package/web/{chunk-gw8x1g61.js → chunk-act3rr85.js} +1 -1
- package/web/chunk-aebrw6cv.js +39 -0
- package/web/{chunk-j37p0b13.js → chunk-aeymdtm1.js} +3 -3
- package/web/{chunk-8h2x89tw.js → chunk-ar6jnhm5.js} +1 -1
- package/web/{chunk-tfqarvdx.js → chunk-b5zf1hs3.js} +59 -59
- package/web/{chunk-m4fxd5d9.js → chunk-b99k8q22.js} +8 -8
- package/web/chunk-bcjgzwef.js +1 -0
- package/web/{chunk-jke2ev6m.js → chunk-bra33pt0.js} +2 -2
- package/web/{chunk-myd6sc76.js → chunk-bygwbpvq.js} +1 -1
- package/web/{chunk-zse05v6j.js → chunk-c3fty2c2.js} +9 -9
- package/web/chunk-cxpnj495.js +2 -0
- package/web/{chunk-x850q01z.js → chunk-d1btrqmw.js} +1 -1
- package/web/{chunk-qdzy124b.js → chunk-d57fm7k0.js} +2 -2
- package/web/{chunk-j89s11x8.js → chunk-d73zkc4q.js} +4 -4
- package/web/chunk-d94t9z70.js +1 -0
- package/web/chunk-de29pe57.js +1 -0
- package/web/{chunk-rag65pfs.js → chunk-dndd757x.js} +3 -3
- package/web/chunk-e68jw0bg.js +1 -0
- package/web/{chunk-grm2208k.js → chunk-e94pd9rr.js} +13 -13
- package/web/{chunk-zz1qkaar.js → chunk-enwfd8d5.js} +2 -2
- package/web/{chunk-qq6m2my8.js → chunk-fj753yzt.js} +2 -2
- package/web/chunk-fr4fft89.js +1 -0
- package/web/{chunk-5svqfj4g.js → chunk-g488hxx0.js} +3 -3
- package/web/{chunk-0770q5e1.js → chunk-g4zm0crw.js} +1 -1
- package/web/chunk-gckmcef6.js +1 -0
- package/web/{chunk-se4h6wx0.js → chunk-gkmaryr4.js} +1 -1
- package/web/chunk-gnb09wmx.js +1 -0
- package/web/{chunk-6e87m0nm.js → chunk-gten0rpx.js} +2 -2
- package/web/chunk-h24ybwp6.js +1 -0
- package/web/{chunk-z5qn0xev.js → chunk-h754ntg7.js} +2 -2
- package/web/{chunk-tt93zbn4.js → chunk-hn8m1vsg.js} +7 -7
- package/web/{chunk-rh3xb76f.js → chunk-hqxc9m07.js} +10 -10
- package/web/chunk-hrgqc1vr.js +1 -0
- package/web/{chunk-3eexx7y5.js → chunk-hva7xyne.js} +2 -2
- package/web/chunk-hxbfkdjd.js +1 -0
- package/web/chunk-j9c8fa82.js +1 -0
- package/web/{chunk-5v5q13hz.js → chunk-jeafmjsm.js} +2 -2
- package/web/chunk-jyf7a7yp.js +2 -0
- package/web/chunk-jz5mmp64.js +1 -0
- package/web/{chunk-18neka5g.js → chunk-k4dnjf8n.js} +5 -5
- package/web/{chunk-32ty2xfn.js → chunk-kerfb21g.js} +1 -1
- package/web/chunk-kxeaj44h.js +1 -0
- package/web/chunk-m0136xav.js +1 -0
- package/web/chunk-m1rdyvb5.js +1 -0
- package/web/chunk-m6vyvgm5.js +1 -0
- package/web/{chunk-w3zgfhjb.js → chunk-mxkbmgcv.js} +2 -2
- package/web/chunk-my0ec787.js +1 -0
- package/web/{chunk-qy1zx2yw.js → chunk-n9v14vyd.js} +22 -22
- package/web/{chunk-x5g1yy12.js → chunk-ncfzmf2g.js} +1 -1
- package/web/chunk-nkpdd9hw.js +1 -0
- package/web/chunk-ny436sqg.js +1 -0
- package/web/chunk-pbp1p5ex.js +1 -0
- package/web/chunk-ph75hddv.js +1 -0
- package/web/chunk-phdfyqaa.js +1 -0
- package/web/chunk-phxa5krt.js +1 -0
- package/web/{chunk-wrevb4ew.js → chunk-pjpre6de.js} +6 -6
- package/web/{chunk-vvvd3grf.js → chunk-pzg25qqe.js} +2 -2
- package/web/chunk-q1zxvjhs.js +2 -0
- package/web/{chunk-1qh7f5kr.js → chunk-qdd3bx8q.js} +1 -1
- package/web/{chunk-9yfftz38.js → chunk-qp3tjhaq.js} +1 -1
- package/web/chunk-r4zbw4zj.js +2 -0
- package/web/{chunk-1ev0n3n4.js → chunk-r6kk4vp1.js} +2 -2
- package/web/{chunk-n4yzs2q0.js → chunk-rdr6wt22.js} +4 -4
- package/web/chunk-ry4ycah9.js +1 -0
- package/web/{chunk-de40q05r.js → chunk-sdr5wa4z.js} +3 -3
- package/web/chunk-sqm16fat.js +1 -0
- package/web/{chunk-gsw1tv96.js → chunk-td83xf12.js} +1 -1
- package/web/{chunk-t5nvgz7z.js → chunk-v0wtk059.js} +7 -7
- package/web/{chunk-pgwf37s2.js → chunk-v1hfbjz9.js} +5 -5
- package/web/chunk-v1qt3gq4.js +1 -0
- package/web/{chunk-wtvch4ad.js → chunk-v34mr9ky.js} +9 -9
- package/web/chunk-v854w9yn.js +1 -0
- package/web/{chunk-xtn305fd.js → chunk-ve56gxq0.js} +1 -1
- package/web/chunk-w573ym17.js +1 -0
- package/web/{chunk-dv1berk6.js → chunk-w9gnqkez.js} +2 -2
- package/web/{chunk-q4bst4an.js → chunk-wqzbxzk3.js} +1 -1
- package/web/{chunk-rwfmccmh.js → chunk-wvrs986a.js} +4 -4
- package/web/chunk-x0mjydtp.js +1 -0
- package/web/{chunk-awkdw9rw.js → chunk-xbyrgyy0.js} +2 -2
- package/web/{chunk-p55vhns6.js → chunk-xpecre7w.js} +4 -4
- package/web/{chunk-ehtmb6sn.js → chunk-xvfeq8v2.js} +13 -13
- package/web/{chunk-rbqnre6q.js → chunk-yf8ykk4v.js} +4 -4
- package/web/{chunk-sjkg40ay.js → chunk-yjs6jmdb.js} +1 -1
- package/web/chunk-ym7kv2hs.js +1 -0
- package/web/chunk-zhybh04p.js +1 -0
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-3mqf9ped.js +0 -479
- package/chunk-7zkswxvk.js +0 -2
- package/chunk-m1eam0s5.js +0 -2
- package/web/chunk-045d3b5d.js +0 -1
- package/web/chunk-12qf1r6m.js +0 -1
- package/web/chunk-1ex3wgms.js +0 -2
- package/web/chunk-2cz7tx8q.js +0 -1
- package/web/chunk-46jnkghq.js +0 -2
- package/web/chunk-4am8j3k3.js +0 -1
- package/web/chunk-5qvmefq2.js +0 -1
- package/web/chunk-5z2n4z9x.css +0 -1
- package/web/chunk-6y55gk1n.js +0 -1
- package/web/chunk-7np1jp3x.js +0 -8
- package/web/chunk-7qq1ypvj.js +0 -1
- package/web/chunk-87e8d1hv.js +0 -1
- package/web/chunk-8y2526ve.js +0 -1
- package/web/chunk-905vw286.js +0 -2
- package/web/chunk-918e5t4x.js +0 -2
- package/web/chunk-96m2m3e8.js +0 -1
- package/web/chunk-9f4zzqbx.js +0 -1
- package/web/chunk-a1n4468c.js +0 -1
- package/web/chunk-arnzrqnm.js +0 -1
- package/web/chunk-b46ws7rf.js +0 -1
- package/web/chunk-bwy3e58v.js +0 -1
- package/web/chunk-d5gshd1a.js +0 -1
- package/web/chunk-dp0k5vhd.js +0 -1
- package/web/chunk-eh7wp62z.js +0 -2
- package/web/chunk-et1hytyv.js +0 -1
- package/web/chunk-f7jpakwh.js +0 -1
- package/web/chunk-f9m9seam.js +0 -1
- package/web/chunk-g2erm7k0.js +0 -1
- package/web/chunk-g3kbn0t2.js +0 -1
- package/web/chunk-ght0t49g.js +0 -1
- package/web/chunk-ghwm7bdj.js +0 -2
- package/web/chunk-h2txs73e.js +0 -39
- package/web/chunk-h3tkacc7.js +0 -1
- package/web/chunk-je78j3vr.js +0 -1
- package/web/chunk-kxdtg9dt.js +0 -1
- package/web/chunk-m9xzt9p7.js +0 -1
- package/web/chunk-ngt1j8py.js +0 -1139
- package/web/chunk-q34as3v6.js +0 -1
- package/web/chunk-qe0bgeda.js +0 -1
- package/web/chunk-sat7zyva.js +0 -1
- package/web/chunk-sk0hpa80.js +0 -1
- package/web/chunk-tvcxrx6h.js +0 -1
- package/web/chunk-tzpnh70q.js +0 -1
- package/web/chunk-vb7g4xg6.js +0 -1
- package/web/chunk-wzfe6jtq.js +0 -1
- package/web/chunk-xh4xn1az.js +0 -1
- package/web/chunk-xk904wqv.js +0 -1
- package/web/chunk-xzwxcxb4.js +0 -1
- package/web/chunk-yekaz74b.js +0 -1
- package/web/chunk-ys2tns0p.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t}from"./chunk-
|
|
1
|
+
import{t}from"./chunk-b5zf1hs3.js";var fn=class{constructor(i){this.init=i,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};
|
|
2
2
|
export{fn};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,F,C,S,E,T,A,L,R,l,p}from"./chunk-
|
|
1
|
+
import{t,F,C,S,E,T,A,L,R,l,p}from"./chunk-b5zf1hs3.js";import{an,jr,oo,tt}from"./chunk-2jfesv7m.js";import{xt}from"./chunk-80z8s8zb.js";import{qe}from"./chunk-h754ntg7.js";var st=function(){var e=t(function(u,n,s,o){for(s=s||{},o=u.length;o--;s[u[o]]=n);return s},"o"),r=[6,8,10,11,12,14,16,17,18],a=[1,9],g=[1,10],i=[1,11],y=[1,12],m=[1,13],c=[1,14],x={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:t(function(n,s,o,d,f,h,w){var _=h.length-1;switch(f){case 1:return h[_-1];case 2:this.$=[];break;case 3:h[_-1].push(h[_]),this.$=h[_-1];break;case 4:case 5:this.$=h[_];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(h[_].substr(6)),this.$=h[_].substr(6);break;case 9:this.$=h[_].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=h[_].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(h[_].substr(8)),this.$=h[_].substr(8);break;case 13:d.addTask(h[_-1],h[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:g,14:i,16:y,17:m,18:c},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:a,12:g,14:i,16:y,17:m,18:c},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:t(function(n,s){if(s.recoverable)this.trace(n);else{var o=Error(n);throw o.hash=s,o}},"parseError"),parse:t(function(n){var s=this,o=[0],d=[],f=[null],h=[],w=this.table,_="",z=0,ct=0,ht=0,wt=2,ut=1,Tt=h.slice.call(arguments,1),v=Object.create(this.lexer),O={yy:{}};for(var Q in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Q))O.yy[Q]=this.yy[Q];if(v.setInput(n,O.yy),O.yy.lexer=v,O.yy.parser=this,typeof v.yylloc>"u")v.yylloc={};var D=v.yylloc;h.push(D);var St=v.options&&v.options.ranges;if(typeof O.yy.parseError==="function")this.parseError=O.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function $t(I){o.length=o.length-2*I,f.length=f.length-I,h.length=h.length-I}t($t,"popStack");function yt(){var I=d.pop()||v.lex()||ut;if(typeof I!=="number"){if(I instanceof Array)d=I,I=d.pop();I=s.symbols_[I]||I}return I}t(yt,"lex");var M,et,Y,P,Ht,rt,q={},Z,j,dt,J;while(!0){if(Y=o[o.length-1],this.defaultActions[Y])P=this.defaultActions[Y];else{if(M===null||typeof M>"u")M=yt();P=w[Y]&&w[Y][M]}if(typeof P>"u"||!P.length||!P[0]){var it="";J=[];for(Z in w[Y])if(this.terminals_[Z]&&Z>wt)J.push("'"+this.terminals_[Z]+"'");if(v.showPosition)it="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
|
-
Expecting `+J.join(", ")+", got '"+(this.terminals_[M]||M)+"'";else
|
|
3
|
+
Expecting `+J.join(", ")+", got '"+(this.terminals_[M]||M)+"'";else it="Parse error on line "+(z+1)+": Unexpected "+(M==ut?"end of input":"'"+(this.terminals_[M]||M)+"'");this.parseError(it,{text:v.match,token:this.terminals_[M]||M,line:v.yylineno,loc:D,expected:J})}if(P[0]instanceof Array&&P.length>1)throw Error("Parse Error: multiple actions possible at state: "+Y+", token: "+M);switch(P[0]){case 1:if(o.push(M),f.push(v.yytext),h.push(v.yylloc),o.push(P[1]),M=null,!et){if(ct=v.yyleng,_=v.yytext,z=v.yylineno,D=v.yylloc,ht>0)ht--}else M=et,et=null;break;case 2:if(j=this.productions_[P[1]][1],q.$=f[f.length-j],q._$={first_line:h[h.length-(j||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(j||1)].first_column,last_column:h[h.length-1].last_column},St)q._$.range=[h[h.length-(j||1)].range[0],h[h.length-1].range[1]];if(rt=this.performAction.apply(q,[_,ct,z,O.yy,P[1],f,h].concat(Tt)),typeof rt<"u")return rt;if(j)o=o.slice(0,-1*j*2),f=f.slice(0,-1*j),h=h.slice(0,-1*j);o.push(this.productions_[P[1]][0]),f.push(q.$),h.push(q._$),dt=w[o[o.length-2]][o[o.length-1]],o.push(dt);break;case 3:return!0}}return!0},"parse")},k=function(){var u={EOF:1,parseError:t(function(s,o){if(this.yy.parser)this.yy.parser.parseError(s,o);else throw Error(s)},"parseError"),setInput:t(function(n,s){if(this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);if(s)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),n},"input"),unput:t(function(n){var s=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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),o.length-1)this.yylineno-=o.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:o?(o.length===d.length?this.yylloc.first_column:0)+d[d.length-o.length].length-o[0].length:this.yylloc.first_column-s},this.options.ranges)this.yylloc.range=[f[0],f[0]+this.yyleng-s];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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:t(function(n){this.unput(this.match.slice(n))},"less"),pastInput:t(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),s=Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
5
|
`+s+"^"},"showPosition"),test_match:t(function(n,s){var o,d,f;if(this.options.backtrack_lexer){if(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)f.yylloc.range=this.yylloc.range.slice(0)}if(d=n[0].match(/(?:\r\n?|\n).*/g),d)this.yylineno+=d.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(o)return o;else if(this._backtrack){for(var h in f)this[h]=f[h];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var n,s,o,d;if(!this._more)this.yytext="",this.match="";var f=this._currentRules();for(var h=0;h<f.length;h++)if(o=this._input.match(this.rules[f[h]]),o&&(!s||o[0].length>s[0].length)){if(s=o,d=h,this.options.backtrack_lexer)if(n=this.test_match(o,f[h]),n!==!1)return n;else if(this._backtrack){s=!1;continue}else return!1;else if(!this.options.flex)break}if(s){if(n=this.test_match(s,f[d]),n!==!1)return n;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,o,d,f){var h=f;switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return u}();x.lexer=k;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var s=this.next();if(s)return s;else return this.lex()},"lex"),begin:t(function(s){this.conditionStack.push(s)},"begin"),popState:t(function(){var s=this.conditionStack.length-1;if(s>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(s){if(s=this.conditionStack.length-1-Math.abs(s||0),s>=0)return this.conditionStack[s];else return"INITIAL"},"topState"),pushState:t(function(s){this.begin(s)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(s,o,d,f){var h=f;switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return u}();x.lexer=k;function b(){this.yy={}}return t(b,"Parser"),b.prototype=x,x.Parser=b,new b}();st.parser=st;var Mt=st,X="",lt=[],G=[],H=[],Et=t(function(){lt.length=0,G.length=0,X="",H.length=0,C()},"clear"),Ct=t(function(e){X=e,lt.push(e)},"addSection"),Pt=t(function(){return lt},"getSections"),It=t(function(){let e=ft(),r=100,a=0;while(!e&&a<r)e=ft(),a++;return G.push(...H),G},"getTasks"),At=t(function(){let e=[];return G.forEach((a)=>{if(a.people)e.push(...a.people)}),[...new Set(e)].sort()},"updateActors"),Ft=t(function(e,r){let a=r.substr(1).split(":"),g=0,i=[];if(a.length===1)g=Number(a[0]),i=[];else g=Number(a[0]),i=a[1].split(",");let y=i.map((c)=>c.trim()),m={section:X,type:X,people:y,task:e,score:g};H.push(m)},"addTask"),Vt=t(function(e){let r={section:X,type:X,description:e,task:e,classes:[]};G.push(r)},"addTaskOrg"),ft=t(function(){let e=t(function(a){return H[a].processed},"compileTask"),r=!0;for(let[a,g]of H.entries())e(a),r=r&&g.processed;return r},"compileTasks"),Rt=t(function(){return At()},"getActors"),pt={getConfig:t(()=>l().journey,"getConfig"),clear:Et,setDiagramTitle:L,getDiagramTitle:R,setAccTitle:S,getAccTitle:E,setAccDescription:T,getAccDescription:A,addSection:Ct,getSections:Pt,getTasks:It,addTask:Ft,addTaskOrg:Vt,getActors:Rt},Lt=t((e)=>`.label {
|
|
7
7
|
font-family: ${e.fontFamily};
|
|
8
8
|
color: ${e.textColor};
|
|
9
9
|
}
|
|
@@ -135,5 +135,5 @@ Expecting `+J.join(", ")+", got '"+(this.terminals_[M]||M)+"'";else rt="Parse er
|
|
|
135
135
|
.actor-5 {
|
|
136
136
|
${e.actor5?`fill: ${e.actor5}`:""};
|
|
137
137
|
}
|
|
138
|
-
${
|
|
139
|
-
`,"getStyles"),Lt
|
|
138
|
+
${qe()}
|
|
139
|
+
`,"getStyles"),Bt=Lt,ot=t(function(e,r){return an(e,r)},"drawRect"),jt=t(function(e,r){let g=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");i.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function y(x){let k=xt().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}t(y,"smile");function m(x){let k=xt().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);x.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}t(m,"sad");function c(x){x.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(c,"ambivalent"),r.score>3)y(i);else if(r.score<3)m(i);else c(i);return g},"drawFace"),kt=t(function(e,r){let a=e.append("circle");if(a.attr("cx",r.cx),a.attr("cy",r.cy),a.attr("class","actor-"+r.pos),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("r",r.r),a.class!==void 0)a.attr("class",a.class);if(r.title!==void 0)a.append("title").text(r.title);return a},"drawCircle"),bt=t(function(e,r){return oo(e,r)},"drawText"),Nt=t(function(e,r){function a(i,y,m,c,x){return i+","+y+" "+(i+m)+","+y+" "+(i+m)+","+(y+c-x)+" "+(i+m-x*1.2)+","+(y+c)+" "+i+","+(y+c)}t(a,"genPoints");let g=e.append("polygon");g.attr("points",a(r.x,r.y,50,20,7)),g.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,bt(e,r)},"drawLabel"),zt=t(function(e,r,a){let g=e.append("g"),i=tt();i.x=r.x,i.y=r.y,i.fill=r.fill,i.width=a.width*r.taskCount+a.diagramMarginX*(r.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+r.num,i.rx=3,i.ry=3,ot(g,i),_t(a)(r.text,g,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+r.num},a,r.colour)},"drawSection"),at=-1,Wt=t(function(e,r,a,g){let i=r.x+a.width/2,y=e.append("g");at++;let m=450;y.append("line").attr("id",g+"-task"+at).attr("x1",i).attr("y1",r.y).attr("x2",i).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jt(y,{cx:i,cy:300+(5-r.score)*30,score:r.score});let c=tt();c.x=r.x,c.y=r.y,c.fill=r.fill,c.width=a.width,c.height=a.height,c.class="task task-type-"+r.num,c.rx=3,c.ry=3,ot(y,c);let x=r.x+14;r.people.forEach((k)=>{let b=r.actors[k].color,u={cx:x,cy:r.y,r:7,fill:b,stroke:"#000",title:k,pos:r.actors[k].position};kt(y,u),x+=10}),_t(a)(r.task,y,c.x,c.y,c.width,c.height,{class:"task"},a,r.colour)},"drawTask"),Ot=t(function(e,r){jr(e,r)},"drawBackgroundRect"),_t=function(){function e(i,y,m,c,x,k,b,u){let n=y.append("text").attr("x",m+x/2).attr("y",c+k/2+5).style("font-color",u).style("text-anchor","middle").text(i);g(n,b)}t(e,"byText");function r(i,y,m,c,x,k,b,u,n){let{taskFontSize:s,taskFontFamily:o}=u,d=i.split(/<br\s*\/?>/gi);for(let f=0;f<d.length;f++){let h=f*s-s*(d.length-1)/2,w=y.append("text").attr("x",m+x/2).attr("y",c).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",o);w.append("tspan").attr("x",m+x/2).attr("dy",h).text(d[f]),w.attr("y",c+k/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(w,b)}}t(r,"byTspan");function a(i,y,m,c,x,k,b,u){let n=y.append("switch"),o=n.append("foreignObject").attr("x",m).attr("y",c).attr("width",x).attr("height",k).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");o.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),r(i,n,m,c,x,k,b,u),g(o,b)}t(a,"byFo");function g(i,y){for(let m in y)if(m in y)i.attr(m,y[m])}return t(g,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?e:r}}(),Yt=t(function(e,r){at=-1,e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),U={drawRect:ot,drawCircle:kt,drawSection:zt,drawText:bt,drawLabel:Nt,drawTask:Wt,drawBackgroundRect:Ot,initGraphics:Yt},qt=t(function(e){Object.keys(e).forEach(function(a){B[a]=e[a]})},"setConf"),N={},K=0;function vt(e){let r=l().journey,a=r.maxLabelWidth;K=0;let g=60;Object.keys(N).forEach((i)=>{let y=N[i].color,m={cx:20,cy:g,r:7,fill:y,stroke:"#000",pos:N[i].position};U.drawCircle(e,m);let c=e.append("text").attr("visibility","hidden").text(i),x=c.node().getBoundingClientRect().width;c.remove();let k=[];if(x<=a)k=[i];else{let b=i.split(" "),u="";if(c=e.append("text").attr("visibility","hidden"),b.forEach((n)=>{let s=u?`${u} ${n}`:n;if(c.text(s),c.node().getBoundingClientRect().width>a){if(u)k.push(u);if(u=n,c.text(n),c.node().getBoundingClientRect().width>a){let d="";for(let f of n)if(d+=f,c.text(d+"-"),c.node().getBoundingClientRect().width>a)k.push(d.slice(0,-1)+"-"),d=f;u=d}}else u=s}),u)k.push(u);c.remove()}k.forEach((b,u)=>{let n={x:40,y:g+7+u*20,fill:"#666",text:b,textMargin:r.boxTextMargin??5},o=U.drawText(e,n).node().getBoundingClientRect().width;if(o>K&&o>r.leftMargin-o)K=o}),g+=Math.max(20,k.length*20)})}t(vt,"drawActorLegend");var B=l().journey,W=0,Xt=t(function(e,r,a,g){let i=l(),y=i.journey.titleColor,m=i.journey.titleFontSize,c=i.journey.titleFontFamily,x=i.securityLevel,k;if(x==="sandbox")k=p("#i"+r);let b=x==="sandbox"?p(k.nodes()[0].contentDocument.body):p("body");V.init();let u=b.select("#"+r);U.initGraphics(u,r);let n=g.db.getTasks(),s=g.db.getDiagramTitle(),o=g.db.getActors();for(let z in N)delete N[z];let d=0;o.forEach((z)=>{N[z]={color:B.actorColours[d%B.actorColours.length],position:d},d++}),vt(u),W=B.leftMargin+K,V.insert(0,0,W,Object.keys(N).length*50),Gt(u,n,0,r);let f=V.getBounds();if(s)u.append("text").text(s).attr("x",W).attr("font-size",m).attr("font-weight","bold").attr("y",25).attr("fill",y).attr("font-family",c);let h=f.stopy-f.starty+2*B.diagramMarginY,w=W+f.stopx+2*B.diagramMarginX;F(u,h,w,B.useMaxWidth),u.append("line").attr("x1",W).attr("y1",B.height*4).attr("x2",w-W-4).attr("y2",B.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let _=s?70:0;u.attr("viewBox",`${f.startx} -25 ${w} ${h+_}`),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",h+_+25)},"draw"),V={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:t(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:t(function(e,r,a,g){if(e[r]===void 0)e[r]=a;else e[r]=g(a,e[r])},"updateVal"),updateBounds:t(function(e,r,a,g){let i=l().journey,y=this,m=0;function c(x){return t(function(b){m++;let u=y.sequenceItems.length-m+1;if(y.updateVal(b,"starty",r-u*i.boxMargin,Math.min),y.updateVal(b,"stopy",g+u*i.boxMargin,Math.max),y.updateVal(V.data,"startx",e-u*i.boxMargin,Math.min),y.updateVal(V.data,"stopx",a+u*i.boxMargin,Math.max),x!=="activation")y.updateVal(b,"startx",e-u*i.boxMargin,Math.min),y.updateVal(b,"stopx",a+u*i.boxMargin,Math.max),y.updateVal(V.data,"starty",r-u*i.boxMargin,Math.min),y.updateVal(V.data,"stopy",g+u*i.boxMargin,Math.max)},"updateItemBounds")}t(c,"updateFn"),this.sequenceItems.forEach(c())},"updateBounds"),insert:t(function(e,r,a,g){let i=Math.min(e,a),y=Math.max(e,a),m=Math.min(r,g),c=Math.max(r,g);this.updateVal(V.data,"startx",i,Math.min),this.updateVal(V.data,"starty",m,Math.min),this.updateVal(V.data,"stopx",y,Math.max),this.updateVal(V.data,"stopy",c,Math.max),this.updateBounds(i,m,y,c)},"insert"),bumpVerticalPos:t(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return this.data},"getBounds")},{sectionFills:nt,sectionColours:gt}=B,Gt=t(function(e,r,a,g){let i=l().journey,y="",m=i.height*2+i.diagramMarginY,c=a+m,x=0,k="#CCC",b="black",u=0;for(let[n,s]of r.entries()){if(y!==s.section){k=nt[x%nt.length],u=x%nt.length,b=gt[x%gt.length];let d=0,f=s.section;for(let w=n;w<r.length;w++)if(r[w].section==f)d=d+1;else break;let h={x:n*i.taskMargin+n*i.width+W,y:50,text:s.section,fill:k,num:u,colour:b,taskCount:d};U.drawSection(e,h,i),y=s.section,x++}let o=s.people.reduce((d,f)=>{if(N[f])d[f]=N[f];return d},{});s.x=n*i.taskMargin+n*i.width+W,s.y=c,s.width=i.diagramMarginX,s.height=i.diagramMarginY,s.colour=b,s.fill=k,s.num=u,s.actors=o,U.drawTask(e,s,i,g),V.insert(s.x,s.y,s.x+s.width+i.taskMargin,450)}},"drawTasks"),mt={setConf:qt,draw:Xt},ee={parser:Mt,db:pt,renderer:mt,styles:Bt,init:t((e)=>{mt.setConf(e.journey),pt.clear()},"init")};export{ee as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-b5zf1hs3.js";import"./chunk-3n9ypydh.js";import"./chunk-81s15c2e.js";import{ao}from"./chunk-d57fm7k0.js";export{ao as render};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t,p}from"./chunk-
|
|
1
|
+
import{t,p}from"./chunk-b5zf1hs3.js";var he=t((o,e)=>{let n;if(e==="sandbox")n=p("#i"+o);return(e==="sandbox"?p(n.nodes()[0].contentDocument.body):p("body")).select(`[id="${o}"]`)},"getDiagramElement");
|
|
2
2
|
export{he};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G,e,n,y}from"./chunk-3k9h7a73.js";import{qt,Mn}from"./chunk-mxkbmgcv.js";import"./chunk-cxpnj495.js";function b({connection:p}){let{ModelSelector:d,Select:c,SettingGroup:s,SettingRow:l}=y(),m=G(),i=Mn({connection:p,endpoint:"/api/plugins/prompt-optimizer/settings",loadError:"读取优化插件设置失败",toBody:(o)=>({schemaVersion:1,revision:o.revision,primaryModel:o.primaryModel,maxClarificationRounds:o.maxClarificationRounds}),differs:(o,t)=>o.primaryModel?.providerID!==t.primaryModel?.providerID||o.primaryModel?.modelID!==t.primaryModel?.modelID||o.maxClarificationRounds!==t.maxClarificationRounds}),r=i.settings?.primaryModel??null,u=r?`${r.providerID}/${r.modelID}`:"";return n("form",{id:m,onSubmit:i.save,className:"min-w-0 space-y-5",children:[e(s,{title:"模型",children:e(l,{title:"优化模型",description:"未选择时拒绝改写,不会自动回退到其他模型",children:e("div",{className:"w-56",children:e(d,{variant:"field",models:i.modelList,value:u,onChange:(o)=>{let t=o.indexOf("/"),a=t<0?"":o.slice(0,t),g=t<0?o:o.slice(t+1);i.edit((f)=>({...f,primaryModel:{providerID:a,modelID:g}}))}})})})}),e(s,{title:"交互",children:e(l,{title:"澄清提问轮数",description:"草稿有关键歧义时,模型最多可反问几轮",children:e("div",{className:"w-56",children:e(c,{value:String(i.settings?.maxClarificationRounds??1),disabled:i.loading||i.saving,onValueChange:(o)=>{let t=o==="2"?2:1;i.edit((a)=>({...a,maxClarificationRounds:t}))},groups:[{options:[{value:"1",label:"单轮澄清(推荐)",description:"提问一次后直接输出改写结果"},{value:"2",label:"最多两轮澄清",description:"首轮澄清后可针对残留疑问追问一次"}]}]})})})}),e(qt,{formID:m,notice:i.notice,dirty:i.dirty,busy:i.loading||i.saving,saving:i.saving,onReset:i.reset})]})}export{b as PromptOptimizerSettingsSection};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ae,ji,We,Rn,go,Pa,Ut,Un,Be,Tr,Gr,jn,yo,qi,qn}from"./chunk-b5zf1hs3.js";function Z(l){return l.innerRadius}function k(l){return l.outerRadius}function b(l){return l.startAngle}function _(l){return l.endAngle}function nn(l){return l&&l.padAngle}function en(l,d,q,P,x,h,S,r){var D=q-l,a=P-d,n=S-x,y=r-h,u=y*D-n*a;if(u*u<Be)return;return u=(n*(d-h)-y*(l-x))/u,[l+u*D,d+u*a]}function L(l,d,q,P,x,h,S){var r=l-q,D=d-P,a=(S?h:-h)/Un(r*r+D*D),n=a*D,y=-a*r,u=l+n,s=d+y,t=q+n,f=P+y,j=(u+t)/2,o=(s+f)/2,g=t-u,c=f-s,v=g*g+c*c,A=x-h,R=u*f-t*s,E=(c<0?-1:1)*Un(go(0,A*A*v-R*R)),I=(R*c-g*E)/v,O=(-R*g-c*E)/v,T=(R*c+g*E)/v,m=(-R*g+c*E)/v,p=I-j,e=O-o,i=T-j,z=m-o;if(p*p+e*e>i*i+z*z)I=T,O=m;return{cx:I,cy:O,x01:-n,y01:-y,x11:I*(x/A-1),y11:O*(x/A-1)}}function xt(){var l=Z,d=k,q=ae(0),P=null,x=b,h=_,S=nn,r=null,D=qn(a);function a(){var n,y,u=+l.apply(this,arguments),s=+d.apply(this,arguments),t=x.apply(this,arguments)-Gr,f=h.apply(this,arguments)-Gr,j=ji(f-t),o=f>t;if(!r)r=n=D();if(s<u)y=s,s=u,u=y;if(!(s>Be))r.moveTo(0,0);else if(j>jn-Be){if(r.moveTo(s*Rn(t),s*Ut(t)),r.arc(0,0,s,t,f,!o),u>Be)r.moveTo(u*Rn(f),u*Ut(f)),r.arc(0,0,u,f,t,o)}else{var g=t,c=f,v=t,A=f,R=j,E=j,I=S.apply(this,arguments)/2,O=I>Be&&(P?+P.apply(this,arguments):Un(u*u+s*s)),T=Pa(ji(s-u)/2,+q.apply(this,arguments)),m=T,p=T,e,i;if(O>Be){var z=qi(O/u*Ut(I)),F=qi(O/s*Ut(I));if((R-=z*2)>Be)z*=o?1:-1,v+=z,A-=z;else R=0,v=A=(t+f)/2;if((E-=F*2)>Be)F*=o?1:-1,g+=F,c-=F;else E=0,g=c=(t+f)/2}var B=s*Rn(g),C=s*Ut(g),G=u*Rn(A),H=u*Ut(A);if(T>Be){var J=s*Rn(c),K=s*Ut(c),M=u*Rn(v),N=u*Ut(v),w;if(j<Tr)if(w=en(B,C,M,N,J,K,G,H)){var Q=B-w[0],U=C-w[1],V=J-w[0],W=K-w[1],X=1/Ut(yo((Q*V+U*W)/(Un(Q*Q+U*U)*Un(V*V+W*W)))/2),Y=Un(w[0]*w[0]+w[1]*w[1]);m=Pa(T,(u-Y)/(X-1)),p=Pa(T,(s-Y)/(X+1))}else m=p=0}if(!(E>Be))r.moveTo(B,C);else if(p>Be)if(e=L(M,N,B,C,s,p,o),i=L(J,K,G,H,s,p,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),p<T)r.arc(e.cx,e.cy,p,We(e.y01,e.x01),We(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,p,We(e.y01,e.x01),We(e.y11,e.x11),!o),r.arc(0,0,s,We(e.cy+e.y11,e.cx+e.x11),We(i.cy+i.y11,i.cx+i.x11),!o),r.arc(i.cx,i.cy,p,We(i.y11,i.x11),We(i.y01,i.x01),!o);else r.moveTo(B,C),r.arc(0,0,s,g,c,!o);if(!(u>Be)||!(R>Be))r.lineTo(G,H);else if(m>Be)if(e=L(G,H,J,K,u,-m,o),i=L(B,C,M,N,u,-m,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),m<T)r.arc(e.cx,e.cy,m,We(e.y01,e.x01),We(i.y01,i.x01),!o);else r.arc(e.cx,e.cy,m,We(e.y01,e.x01),We(e.y11,e.x11),!o),r.arc(0,0,u,We(e.cy+e.y11,e.cx+e.x11),We(i.cy+i.y11,i.cx+i.x11),o),r.arc(i.cx,i.cy,m,We(i.y11,i.x11),We(i.y01,i.x01),!o);else r.arc(0,0,u,A,v,o)}if(r.closePath(),n)return r=null,n+""||null}return a.centroid=function(){var n=(+l.apply(this,arguments)+ +d.apply(this,arguments))/2,y=(+x.apply(this,arguments)+ +h.apply(this,arguments))/2-Tr/2;return[Rn(y)*n,Ut(y)*n]},a.innerRadius=function(n){return arguments.length?(l=typeof n==="function"?n:ae(+n),a):l},a.outerRadius=function(n){return arguments.length?(d=typeof n==="function"?n:ae(+n),a):d},a.cornerRadius=function(n){return arguments.length?(q=typeof n==="function"?n:ae(+n),a):q},a.padRadius=function(n){return arguments.length?(P=n==null?null:typeof n==="function"?n:ae(+n),a):P},a.startAngle=function(n){return arguments.length?(x=typeof n==="function"?n:ae(+n),a):x},a.endAngle=function(n){return arguments.length?(h=typeof n==="function"?n:ae(+n),a):h},a.padAngle=function(n){return arguments.length?(S=typeof n==="function"?n:ae(+n),a):S},a.context=function(n){return arguments.length?(r=n==null?null:n,a):r},a}
|
|
2
|
+
export{xt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t,a,x,l,
|
|
2
|
-
export{
|
|
1
|
+
import{t,a,x,l,N,P,St,Tt,wo,vt,Jt,ko,Hn,Ne,Co,Xi,Et,Ki,en,Zn}from"./chunk-b5zf1hs3.js";import{re}from"./chunk-3n9ypydh.js";import{_}from"./chunk-3k9h7a73.js";function ua(e,{edgePathsClass:r="edges edgePaths"}={}){let n=e.insert("g").attr("class","root"),i=n.insert("g").attr("class","clusters"),s=n.insert("g").attr("class",r),o=n.insert("g").attr("class","edgeLabels"),u=n.insert("g").attr("class","nodes");return{clusters:i,edgePaths:s,edgeLabels:o,nodes:u,rootGroups:n}}t(ua,"createLayoutElementGroups");async function D(e,r,n){if(r.label){let{shapeSvg:i,bbox:s}=await P(e,n===void 0?r:{...r,width:n});r.labelBBox={width:s.width,height:s.height},i.remove()}else r.labelBBox={width:0,height:0}}t(D,"measureGroupLabel");async function da(e,r,n){let i=await Tt(e,r,n),s=i.node()?.getBBox()??{width:0,height:0};return r.width=s.width,r.height=s.height,i}t(da,"insertMeasuredNode");function S(e,r,n){let i=e,s=new Set;while(i){if(i.dir)return i.dir;if(!i.parentId||s.has(i.parentId))break;s.add(i.parentId),i=r.get(i.parentId)}return n}t(S,"resolveNodeDir");async function k(e,r,n={}){let i=new re({multigraph:!0,compound:!0}),s=[...r.edges],o=l(),u=ua(e),{edgeLabels:d,nodes:c}=u,g=new Map,b=new Map(r.nodes.map((f)=>[f.id,f])),E=r.direction,h=e.node()!=null;await Promise.all(r.nodes.map(async(f)=>{if(f.isGroup){if(h){let w=n.unwrapGroupLabels&&f.labelType!=="markdown";await D(c,f,w?Number.POSITIVE_INFINITY:void 0)}i.setNode(f.id,{...f})}else{if(h){let w=await da(c,f,{config:o,dir:S(f,b,E)});g.set(f.id,w)}i.setNode(f.id,{...f})}}));for(let f of s){if(h&&Xi(f))await Et(d,f);if(i.setEdge(f.start,f.end,{...f},f.id),!r.edges.some((v)=>v.id===f.id))r.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (_("gkmaryr4"),import("./chunk-gkmaryr4.js"));f(e,r)}return{graph:i,groups:u,nodeElements:g}}t(k,"createGraphWithElements");var W=new Map,m=new Map,R=new Map,U=t(()=>{m.clear(),R.clear(),W.clear()},"clear"),p=t((e,r)=>{let n=m.get(r)||[];return a.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),Z=t((e,r)=>{let n=m.get(r)||[];if(a.info("Descendants of ",r," is ",n),a.info("Edge is ",e),e.v===r||e.w===r)return!1;if(!n)return a.debug("Tilt, ",r,",not in descendants"),!1;return n.includes(e.v)||p(e.v,r)||p(e.w,r)||n.includes(e.w)},"edgeInCluster"),T=t((e,r,n,i)=>{a.debug("Copying children of ",e,"root",i,"data",r.node(e),i);let s=r.children(e)||[];if(e!==i)s.push(e);a.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach((o)=>{if(r.children(o).length>0)T(o,r,n,i);else{let u=r.node(o);if(a.info("cp ",o," to ",i," with parent ",e),n.setNode(o,u),i!==r.parent(o))a.debug("Setting parent",o,r.parent(o)),n.setParent(o,r.parent(o));if(e!==i&&o!==e)a.debug("Setting parent",o,e),n.setParent(o,e);else a.info("In copy ",e,"root",i,"data",r.node(e),i),a.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==i,"node!==clusterId",o!==e);let d=r.edges(o);a.debug("Copying Edges",d),d.forEach((c)=>{a.info("Edge",c);let g=r.edge(c.v,c.w,c.name);a.info("Edge data",g,i);try{if(Z(c,i))a.info("Copying as ",c.v,c.w,g,c.name),n.setEdge(c.v,c.w,g,c.name),a.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else a.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",i," clusterId:",e)}catch(b){a.error(b)}})}a.debug("Removing node",o),r.removeNode(o)})},"copy"),B=t((e,r)=>{let n=r.children(e),i=[...n];for(let s of n)R.set(s,e),i=[...i,...B(s,r)];return i},"extractDescendants"),I=t((e,r,n)=>{let i=e.edges().filter((c)=>c.v===r||c.w===r),s=e.edges().filter((c)=>c.v===n||c.w===n),o=i.map((c)=>({v:c.v===r?n:c.v,w:c.w===r?r:c.w})),u=s.map((c)=>({v:c.v,w:c.w}));return o.filter((c)=>u.some((g)=>c.v===g.v&&c.w===g.w))},"findCommonEdges"),Bn=t((e,r,n)=>{let i=r.children(e);if(a.trace("Searching children of id ",e,i),i.length<1)return e;let s;for(let o of i){let u=Bn(o,r,n),d=I(r,n,u);if(u)if(d.length>0)s=u;else return u}return s},"findNonClusterChild"),L=t((e)=>{if(!W.has(e))return e;if(!W.get(e).externalConnections)return e;if(W.has(e))return W.get(e).id;return e},"getAnchorId"),io=t((e,r)=>{if(!e||r>10){a.debug("Opting out, no graph ");return}else a.debug("Opting in, graph ");e.nodes().forEach(function(n){if(e.children(n).length>0)a.debug("Cluster identified",n," Replacement id in edges: ",Bn(n,e,n)),m.set(n,B(n,e)),W.set(n,{id:Bn(n,e,n),clusterData:e.node(n)})}),e.nodes().forEach(function(n){let i=e.children(n),s=e.edges();if(i.length>0)a.debug("Cluster identified",n,m),s.forEach((o)=>{let u=p(o.v,n),d=p(o.w,n);if(u^d)a.debug("Edge: ",o," leaves cluster ",n),a.debug("Descendants of XXX ",n,": ",m.get(n)),W.get(n).externalConnections=!0});else a.debug("Not a cluster ",n,m)});for(let n of W.keys()){let i=W.get(n).id,s=e.parent(i);if(s!==n&&W.has(s)&&!W.get(s).externalConnections)W.get(n).id=s;let o=e.edges().some((u)=>u.v===n);if(i&&W.get(n)?.externalConnections&&o&&X(e,i,n)){let u=ee(e,n,e.parent(i));if(u)W.get(n).id=u}}e.edges().forEach(function(n){let i=e.edge(n);a.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),a.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let{v:s,w:o}=n;if(a.debug("Fix XXX",W,"ids:",n.v,n.w,"Translating: ",W.get(n.v)," --- ",W.get(n.w)),W.get(n.v)||W.get(n.w)){if(a.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),s=L(n.v),o=L(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){let u=e.parent(s);W.get(u).externalConnections=!0,i.fromCluster=n.v}if(o!==n.w){let u=e.parent(o);W.get(u).externalConnections=!0,i.toCluster=n.w}a.debug("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,i,n.name)}}),M(e,0),a.trace(W)},"adjustClustersAndEdges"),M=t((e,r)=>{if(r>10){a.error("Bailing out");return}let n=e.nodes(),i=!1;for(let s of n){let o=e.children(s);i=i||o.length>0}if(!i){a.debug("Done, no node has children",e.nodes());return}a.debug("Nodes = ",n,r);for(let s of n)if(a.debug("Extracting node",s,W,W.has(s)&&!W.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",r),!W.has(s))a.debug("Not a cluster",s,r);else if(!W.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){a.debug("Cluster without external connections, without a parent and with children",s,r);let u=e.graph().rankdir==="TB"?"LR":"TB";if(W.get(s)?.clusterData?.dir)u=W.get(s).clusterData.dir,a.debug("Fixing dir",W.get(s).clusterData.dir,u);let d=new re({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});T(s,e,d,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:W.get(s).clusterData,label:W.get(s).label,graph:d})}else a.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!W.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),r),a.debug(W);n=e.nodes(),a.debug("New list of nodes",n);for(let s of n){let o=e.node(s);if(a.debug(" Now next level",s,o),o?.clusterNode)M(o.graph,r+1)}},"extractor"),A=t((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach((i)=>{let s=e.children(i),o=A(e,s);n=[...n,...o]}),n},"sorter"),pa=t((e)=>A(e,e.children()),"sortNodesByHierarchy"),X=t((e,r,n)=>{let i=e.parent(r);while(i&&i!==n){let s=W.get(i);if(s&&!s.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),ee=t((e,r,n)=>{let i=e.children(r)??[];for(let s of i){if(s===n||p(s,n))continue;let o=Bn(s,e,r);if(!o)continue;if(!X(e,o,r))return o}return null},"findSafeAnchorNode");function sr({prepareLayout:e,measureLayout:r,runLayoutCore:n,paintLayout:i,afterPaint:s,paintOptions:o}){let u=r??O;return t(async function(c,g,b,E){let h=g.select("g");(b?.insertMarkers??Zn)(h,c.markers,c.type,c.diagramId),G();let f={element:h,helpers:b,options:E};f.preparedLayout=await e?.(c,f);let w=await u(c,f),v=await n(c,f),C={...f,measure:w};if(i)await i(c,C,v);else await F(c,C,o);await s?.(c,C,v)},"render")}t(sr,"createCommonLayoutRenderer");function G(){wo(),Co(),ko(),U()}t(G,"clearLayoutRenderState");async function O(e,{element:r},n){return await k(r,e,n)}t(O,"defaultMeasureLayout");async function F(e,r,n={}){let{measure:i}=r,{groups:s}=i;for(let u of n.getNodes?.(e,r)??e.nodes){if(n.skipNode?.(u,r))continue;await j(s,u,r,n)}let o=z(e.nodes);for(let u of e.edges){if(J(u,n))continue;await V(s,u,o,e,n,r)}}t(F,"paintLayoutData");async function j(e,r,n,i){if(r.clusterNode)vt(r);else if(H(r,n,i))await Jt(e.clusters,r);else vt(r)}t(j,"paintLayoutNode");function H(e,r,n){return e.isGroup===!0&&(n.isCluster?.(e,r)??!0)}t(H,"shouldPaintAsCluster");function z(e){let r=new Map;for(let n of e)if(n?.id)r.set(n.id,n);return r}t(z,"buildNodeLookup");function J(e,r){return e.isLayoutOnly||Boolean(r.skipEdge?.(e))}t(J,"shouldSkipPaintEdge");async function V(e,r,n,i,s,o){let u=en(e.edgePaths,{...r},s.clusterDb??new Map,i.type,y(r.start,r,n,o,s),y(r.end,r,n,o,s),i.diagramId,Y(r,s),i.layoutAlgorithm);if(Xi(r)){if(!Hn.has(r.id))await Et(e.edgeLabels,r);q(r,u)}}t(V,"paintLayoutEdge");function y(e,r,n,i,s){return s.getEdgeNode?.(e,r,i)??(e?n.get(e)??{}:{})}t(y,"getRenderedNode");function Y(e,r){return typeof r.skipIntersect==="function"?r.skipIntersect(e):r.skipIntersect??!1}t(Y,"shouldSkipIntersect");function q(e,r){let n=r?.updatedPath??r?.originalPath,i=x(),{subGraphTitleTotalMargin:s}=St({flowchart:i.flowchart??{}});if(e.label){let o=Hn.get(e.id),{x:u,y:d}=Ki(e,r);o.attr("transform",`translate(${u}, ${d+s/2})`)}for(let[o,u]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(u){let{x:d,y:c}=K(e,o,n);Ne.get(e.id)[o].attr("transform",`translate(${d}, ${c})`)}}t(q,"positionRenderedEdgeLabel");var te={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function K(e,r,n){let i=e.terminalLabelCenters?.[r];if(i)return{...i};if(!n)return{x:e.x,y:e.y};let s=r.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return N.calcTerminalLabelPosition(s?10:0,te[r],n)}t(K,"terminalLabelTranslate");
|
|
2
|
+
export{ua,da,W,Bn,io,pa,sr};
|