@juki-team/base-ui 1.5.22 → 1.5.24
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/dist/esm/{BarChart-iS9A5dpq.js → BarChart-rnKCGMQd.js} +1 -1
- package/dist/esm/{CartesianChart-DRkVAUTl.js → CartesianChart-Dvjpj90J.js} +1 -1
- package/dist/esm/{ChangePasswordModal-DWcV41bD.js → ChangePasswordModal-Bh9Sghzd.js} +1 -1
- package/dist/esm/{CodeEditor-BIbu4VxL.js → CodeEditor-Duw5SfUT.js} +1 -1
- package/dist/esm/{CodeViewer-BUV-dalv.js → CodeViewer-3L1yBCiq.js} +1 -1
- package/dist/esm/{Collapse-paq7oWgG.js → Collapse--_LykD9C.js} +1 -1
- package/dist/esm/{DataViewer-CMI27AMZ.js → DataViewer-D1dHtA0t.js} +1 -1
- package/dist/esm/{DrawerView-WQzHX5l-.js → DrawerView-CwWfnWLi.js} +1 -1
- package/dist/esm/{ExcalidrawButton-Dkt-wFZK.js → ExcalidrawButton-C_0b7G1W.js} +1 -1
- package/dist/esm/{GraphvizViewer-CYGvah6j.js → GraphvizViewer-BfMacqRe.js} +1 -1
- package/dist/esm/{ImageLoaderCropper-DIEHTOiU.js → ImageLoaderCropper-DTUW7gfc.js} +1 -1
- package/dist/esm/{InputCellPhoneNumber-DgviNp4t.js → InputCellPhoneNumber-Clg8uE_f.js} +1 -1
- package/dist/esm/{InputColor-BSBlv1oE.js → InputColor-R-WCu1j6.js} +1 -1
- package/dist/esm/{LineChart-BdYnYefg.js → LineChart-Cis4BCPT.js} +1 -1
- package/dist/esm/{MdMath-KE8c-hVy.js → MdMath-DLeak1_N.js} +1 -1
- package/dist/esm/{MdMathEditor-DbH_jI7Y.js → MdMathEditor-BG6rI0DT.js} +1 -1
- package/dist/esm/{Popover-BLy0OI8L.js → Popover-CpOKnJkx.js} +1 -1
- package/dist/esm/{SlideDeck-o1krblz8.js → SlideDeck-uAy3WDbv.js} +1 -1
- package/dist/esm/{TableOfContents-DPsfG1VD.js → TableOfContents-C6yZSaSD.js} +1 -1
- package/dist/esm/{Tooltip-BI0Xe-XW.js → Tooltip-8kM3mqHL.js} +1 -1
- package/dist/esm/{UserCodeEditor-CcaAG5g_.js → UserCodeEditor-BhYAs-Az.js} +2 -2
- package/dist/esm/{VirtualizedRowsFixed-VrMhZ4XD.js → VirtualizedRowsFixed-DTqKnPfn.js} +1 -1
- package/dist/esm/{WorksheetAsSlides-kPK5Z2vF.js → WorksheetAsSlides-Cf2VDzyg.js} +1 -1
- package/dist/esm/{WorksheetBodies-CxDz0Rxa.js → WorksheetBodies-CwL6I1LR.js} +1 -1
- package/dist/esm/{WorksheetContents-Dxo5Xc3Y.js → WorksheetContents-AqcyoA6-.js} +1 -1
- package/dist/esm/{WorksheetEditor-CvFYzeZC.js → WorksheetEditor-BF8EQVw5.js} +1 -1
- package/dist/esm/{WorksheetNode-DgQD3PMR.js → WorksheetNode-vLI23gI5.js} +1 -1
- package/dist/esm/{WorksheetViewer-DR45PXUH.js → WorksheetViewer-Dj7ffrAT.js} +1 -1
- package/dist/esm/{abnfDiagram-WEYOIA3C-2vvvjt5F.js → abnfDiagram-WEYOIA3C-ZoMqWR68.js} +1 -1
- package/dist/esm/{arc-C-pwTbE4.js → arc-D1qQo7Rq.js} +1 -1
- package/dist/esm/{architectureDiagram-ZHVYKT53-Njrg16Bb.js → architectureDiagram-ZHVYKT53-DyQfRK7X.js} +1 -1
- package/dist/esm/{blockDiagram-RJAE7QA3-OuYPx21T.js → blockDiagram-RJAE7QA3-25yUZ_JH.js} +1 -1
- package/dist/esm/{c4Diagram-XDPPPE54-C4-sgPqw.js → c4Diagram-XDPPPE54-Tds8Ecy5.js} +1 -1
- package/dist/esm/channel-DYeSxlgx.js +1 -0
- package/dist/esm/{chunk-2E7WHVMD-BeozrAac.js → chunk-2E7WHVMD-CrEKxARX.js} +1 -1
- package/dist/esm/{chunk-2Q5K7J3B-4_3njuk_.js → chunk-2Q5K7J3B-xxqB63pM.js} +1 -1
- package/dist/esm/{chunk-4EMNKR2T-DwE6V67-.js → chunk-4EMNKR2T-DpATbGaG.js} +1 -1
- package/dist/esm/{chunk-55XCU76K-CpG64yyk.js → chunk-55XCU76K-B8gXqG-k.js} +1 -1
- package/dist/esm/{chunk-5VM5RSS4-CkeQhgn7.js → chunk-5VM5RSS4-ChaTLA5E.js} +1 -1
- package/dist/esm/{chunk-JWPE2WC7-CVtFylX6.js → chunk-JWPE2WC7-D8efNL_z.js} +1 -1
- package/dist/esm/{chunk-NQOKRVIF-CYlkwWmJ.js → chunk-NQOKRVIF-gVbLpTMV.js} +1 -1
- package/dist/esm/{chunk-VQ5W62QI-Be8I4VMn.js → chunk-VQ5W62QI-YnIRgGsh.js} +1 -1
- package/dist/esm/{chunk-XXDRQBXY-0jU-YNFU.js → chunk-XXDRQBXY-DyBSx2uJ.js} +1 -1
- package/dist/esm/{chunk-ZCHMQSOR-Cwl9AHIQ.js → chunk-ZCHMQSOR-UYQbyi-v.js} +1 -1
- package/dist/esm/{classDiagram-v2-4MYWR3UA-CgLXcYDZ.js → classDiagram-v2-4MYWR3UA-PaDxy7Bb.js} +1 -1
- package/dist/esm/{cose-bilkent-JH36ORCC-BUYPdwFO.js → cose-bilkent-JH36ORCC-BCLUFgmF.js} +1 -1
- package/dist/esm/{cynefinDiagram-WF24UDRP-DFlv0vTF.js → cynefinDiagram-WF24UDRP-Dw54Invm.js} +1 -1
- package/dist/esm/{dagre-NK4GIZVX-D3hfxWjC.js → dagre-NK4GIZVX-DszaMPSv.js} +1 -1
- package/dist/esm/{diagram-CBK3MWTC-Dz3S8vtv.js → diagram-CBK3MWTC-D3i6P0ln.js} +1 -1
- package/dist/esm/{diagram-I5XIIV2D-CWQZNyHk.js → diagram-I5XIIV2D-DEUcJjIJ.js} +1 -1
- package/dist/esm/{diagram-ODIL2UCW-RwcoAn2X.js → diagram-ODIL2UCW-DxLnEJOT.js} +1 -1
- package/dist/esm/{diagram-PFBEJUXE-BQ65i8Sl.js → diagram-PFBEJUXE-ByMV092C.js} +1 -1
- package/dist/esm/{diagram-RJA3I4VV-D3wAXEKx.js → diagram-RJA3I4VV-C84l8Azx.js} +1 -1
- package/dist/esm/{diagram-TYUNFSNR-CQpNNmke.js → diagram-TYUNFSNR-BtCvPXJ2.js} +1 -1
- package/dist/esm/{ebnfDiagram-V4P3TTPT-x6yeSo0p.js → ebnfDiagram-V4P3TTPT-C2vtqr71.js} +1 -1
- package/dist/esm/{elk-QONTBCTQ-BKyCSI5O.js → elk-QONTBCTQ-CJiLNhJN.js} +1 -1
- package/dist/esm/{erDiagram-KYQIGQAA-C9n_JA_w.js → erDiagram-KYQIGQAA-COiQX-A9.js} +1 -1
- package/dist/esm/{flowDiagram-IUGLLWBU-BS8vlVHT.js → flowDiagram-IUGLLWBU-Bboof2sT.js} +1 -1
- package/dist/esm/{ganttDiagram-R7GPNTJY-CKebGhU7.js → ganttDiagram-R7GPNTJY-DplmDkby.js} +1 -1
- package/dist/esm/{gitGraphDiagram-PDYL7XHY-Bvp1UcgM.js → gitGraphDiagram-PDYL7XHY-DTPYXyjC.js} +1 -1
- package/dist/esm/{index-C2_E6s4y.js → index-BdXh2wq-.js} +1 -1
- package/dist/esm/{index-BwpxQGdp.js → index-DjHFXv3v.js} +1 -1
- package/dist/esm/{infoDiagram-MVDRKAX5-DrROCapb.js → infoDiagram-MVDRKAX5-B4R01JSI.js} +1 -1
- package/dist/esm/{ishikawaDiagram-HPEHV2GE-BGSVKWhg.js → ishikawaDiagram-HPEHV2GE-Dv9Qg5NY.js} +1 -1
- package/dist/esm/{journeyDiagram-BOSHW7O7-ogVQbHp2.js → journeyDiagram-BOSHW7O7-Co3cxhxL.js} +1 -1
- package/dist/esm/{kanban-definition-FNSA4HC5-lQM4fHQE.js → kanban-definition-FNSA4HC5-q3pjKpqB.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/{mermaid.core-CvFWfSA0.js → mermaid.core-DErPnTKR.js} +2 -2
- package/dist/esm/{mindmap-definition-6OY57UG3-D8l0C3RA.js → mindmap-definition-6OY57UG3-B_LUFop9.js} +1 -1
- package/dist/esm/{pegDiagram-ECIUJNBX-D8xo2dyF.js → pegDiagram-ECIUJNBX-DlVeoxxt.js} +1 -1
- package/dist/esm/{pieDiagram-GNMPY74T-gHG-R83G.js → pieDiagram-GNMPY74T-BOP-ezbh.js} +1 -1
- package/dist/esm/{quadrantDiagram-D57K4MC3-DDHGqMWG.js → quadrantDiagram-D57K4MC3-DMyyReF0.js} +1 -1
- package/dist/esm/{railroadDiagram-Y72NRBL7-BNcAWVzf.js → railroadDiagram-Y72NRBL7-Dtk4Z37c.js} +1 -1
- package/dist/esm/{requirementDiagram-EQYSW5RA-D0TQZTve.js → requirementDiagram-EQYSW5RA-CiUa5IeO.js} +1 -1
- package/dist/esm/{sankeyDiagram-SY24JHO5-BgXxfdaz.js → sankeyDiagram-SY24JHO5-CuTPSkWV.js} +1 -1
- package/dist/esm/{sequenceDiagram-BLEHNHQU-BoejQXUR.js → sequenceDiagram-BLEHNHQU-Do3-nvhd.js} +1 -1
- package/dist/esm/{sizeCapture-INFHLROL-sNhkxZSt.js → sizeCapture-INFHLROL-C423dcz5.js} +1 -1
- package/dist/esm/{stateDiagram-v2-A6IESKWZ-sy3VIzCQ.js → stateDiagram-v2-A6IESKWZ-c4ZBvhhc.js} +1 -1
- package/dist/esm/{swimlanes-B3ENRKFQ-BMvTnJVa.js → swimlanes-B3ENRKFQ-zszd6wqm.js} +1 -1
- package/dist/esm/{swimlanesDiagram-AYQRV4AK-CBA7l1Zm.js → swimlanesDiagram-AYQRV4AK-BlMvbjy2.js} +1 -1
- package/dist/esm/{timeline-definition-JXYKGLGB-B9uS-p90.js → timeline-definition-JXYKGLGB-C0ru0xk2.js} +1 -1
- package/dist/esm/{types-CdWZmDRI.js → types-Cb2rrWcY.js} +1 -1
- package/dist/esm/{usecaseDiagram-WPOLBNNX-55ERmenj.js → usecaseDiagram-WPOLBNNX-BgdkDQLR.js} +1 -1
- package/dist/esm/{vennDiagram-Q3Y3IDCW-M46hCRun.js → vennDiagram-Q3Y3IDCW-BqrOHtxN.js} +1 -1
- package/dist/esm/{wardleyDiagram-IVAIDKWA-DiF93Bmd.js → wardleyDiagram-IVAIDKWA-Ci0p6FBo.js} +1 -1
- package/dist/esm/{xychartDiagram-4URNHDU4-epgUCY99.js → xychartDiagram-4URNHDU4-zz1Z-rVz.js} +1 -1
- package/package.json +1 -1
- package/src/styles/components/atoms/_button.scss +6 -1
- package/src/styles/components/atoms/_menu.scss +6 -2
- package/dist/esm/channel-3HQcLN5a.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,O as e,H as n,E as i,ah as r,ai as a,aj as s,c as o,l as c,T as l,ab as h,ak as d,k as p,N as u,al as g,C as y}from"./mermaid.core-CvFWfSA0.js";import{d as f}from"./arc-C-pwTbE4.js";import"./index-BwpxQGdp.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-C-9EFvh4.js";import"./settings-DzQM72QE.js";import"./index-Zvckkvpn.js";import"./LoaderLayer-CWElgcGs.js";import"./websocket-KESFarc3.js";import"./index-DpobNvg5.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var m=function(){var e=t(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[6,11,13,14,15,17,19,20,23,24],i=[1,12],r=[1,13],a=[1,14],s=[1,15],o=[1,16],c=[1,19],l=[1,20],h={trace:t(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:t(function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:i.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:i.addTask(a[o],0,""),this.$=a[o];break;case 19:i.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,i=[0],r=[],a=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(u.yy[g]=this.yy[g]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;s.push(y);var f=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=r.pop()||p.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),t(m,"lex");for(var x,b,k,w,_,v,$,S,E={};;){if(b=i[i.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(_ in S=[],o[b])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(p.yytext),s.push(p.yylloc),i.push(k[1]),x=null,h=p.yyleng,c=p.yytext,l=p.yylineno,y=p.yylloc;break;case 2:if(v=this.productions_[k[1]][1],E.$=a[a.length-v],E._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},f&&(E._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[c,h,l,u.yy,k[1],a,s].concat(d))))return w;v&&(i=i.slice(0,-1*v*2),a=a.slice(0,-1*v),s=s.slice(0,-1*v)),i.push(this.productions_[k[1]][0]),a.push(E.$),s.push(E._$),$=o[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:t(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:t(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:t(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var t=this.next();return t||this.lex()},"lex"),begin:t(function(t){this.conditionStack.push(t)},"begin"),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t(function(t){this.begin(t)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\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,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function p(){this.yy={}}return h.lexer=d,t(p,"Parser"),p.prototype=h,h.Parser=p,new p}();m.parser=m;var x=m,b={};u(b,{addEvent:()=>j,addSection:()=>H,addTask:()=>N,addTaskOrg:()=>D,clear:()=>T,default:()=>O,getCommonDb:()=>E,getDirection:()=>M,getSections:()=>C,getTasks:()=>L,setDirection:()=>I});var k="",w=0,_="LR",v=[],$=[],S=[],E=t(()=>g,"getCommonDb"),T=t(function(){v.length=0,$.length=0,k="",S.length=0,_="LR",y()},"clear"),I=t(function(t){_=t},"setDirection"),M=t(function(){return _},"getDirection"),H=t(function(t){k=t,v.push(t)},"addSection"),C=t(function(){return v},"getSections"),L=t(function(){let t=A();let e=0;for(;!t&&e<100;)t=A(),e++;return $.push(...S),$},"getTasks"),N=t(function(t,e,n){const i={id:w++,section:k,type:k,task:t,score:e||0,events:n?[n]:[]};S.push(i)},"addTask"),j=t(function(t){S.find(t=>t.id===w-1).events.push(t)},"addEvent"),D=t(function(t){const e={section:k,type:k,description:t,task:t,classes:[]};$.push(e)},"addTaskOrg"),A=t(function(){const e=t(function(t){return S[t].processed},"compileTask");let n=!0;for(const[t,i]of S.entries())e(t),n=n&&i.processed;return n},"compileTasks"),O={clear:T,getCommonDb:E,getDirection:M,setDirection:I,addSection:H,getSections:C,getTasks:L,addTask:N,addTaskOrg:D,addEvent:j},B=0,R=t(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),P=t(function(e,n){const i=15,r=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",i).attr("stroke-width",2).attr("overflow","visible"),a=e.append("g");function s(t){const e=f().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=f().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(s,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?s(a):n.score<3?o(a):c(a),r},"drawFace"),W=t(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),F=t(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),z=t(function(e,n){function i(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}t(i,"genPoints");const r=e.append("polygon");r.attr("points",i(n.x,n.y,50,20,7)),r.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,F(e,n)},"drawLabel"),V=t(function(t,e,n){const i=t.append("g"),r=Y();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,R(i,r),X(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),G=-1,U=t(function(t,e,n,i){const r=e.x+n.width/2,a=t.append("g");G++;a.append("line").attr("id",i+"-task"+G).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),P(a,{cx:r,cy:300+30*(5-e.score),score:e.score});const s=Y();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,R(a,s),X(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),Z=t(function(t,e){R(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),q=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Y=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),X=function(){function e(t,e,n,i,a,s,o,c){r(e.append("text").attr("x",n+a/2).attr("y",i+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){const c=t*h-h*(p.length-1)/2,u=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);u.append("tspan").attr("x",n+a/2).attr("dy",c).text(p[t]),u.attr("y",i+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(u,o)}}function i(t,e,i,a,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",a).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,i,a,s,o,c,l),r(d,c)}function r(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(i,"byFo"),t(r,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),J=t(function(t,e){B=0,G=-1,t.append("defs").append("marker").attr("id",e+"-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");function K(t,e){t.each(function(){var t,n=p(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}t(K,"wrap");var Q=t(function(t,e,n,i,r,a=!1){const{theme:s,look:o}=i,c=s?.includes("redux"),l=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,h=t.append("g");e.section=l,h.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+l);const d=h.append("g"),u=h.append("g"),g=u.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),y=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,u.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&u.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),et(d,e,l,r,i),"neo"===o&&(h.attr("data-look","neo"),c)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=p(n),r=i.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(i.select(`#${a}`).empty()){const t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),tt=t(function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),et=t(function(t,e,n,i,r){const{theme:a}=r,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+B++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),nt={drawRect:R,drawCircle:W,drawSection:V,drawText:F,drawLabel:z,drawTask:U,drawBackgroundRect:Z,getTextObj:q,getNoteRect:Y,initGraphics:J,drawNode:Q,getVirtualNodeHeight:tt},it=t(function(t,e,n,i){const r=o(),{look:a,theme:s,themeVariables:l}=r,{useGradient:h,gradientStart:u,gradientStop:g}=l,y=r.timeline?.leftMargin??50;c.debug("timeline",i.db);const f=r.securityLevel;let m;"sandbox"===f&&(m=p("#i"+e));const x=p("sandbox"===f?m.nodes()[0].contentDocument.body:"body").select("#"+e);x.append("g");const b=i.db.getTasks(),k=i.db.getCommonDb().getDiagramTitle();c.debug("task",b),nt.initGraphics(x,e);const w=i.db.getSections();c.debug("sections",w);let _=0,v=0,$=0,S=0,E=50+y,T=50;S=50;let I=0,M=!0;w.forEach(function(t){const e={number:I,descr:t,section:I,width:150,padding:20,maxHeight:_},n=nt.getVirtualNodeHeight(x,e,r);c.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let H=0,C=0;c.debug("tasks.length",b.length);for(const[t,e]of b.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:v},i=nt.getVirtualNodeHeight(x,n,r);c.debug("taskHeight before draw",i),v=Math.max(v,i+20),H=Math.max(H,e.events.length);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=nt.getVirtualNodeHeight(x,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),C=Math.max(C,a)}c.debug("maxSectionHeight before draw",_),c.debug("maxTaskHeight before draw",v),w&&w.length>0?w.forEach(t=>{const n=b.filter(e=>e.section===t),i={number:I,descr:t,section:I,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};c.debug("sectionNode",i);const a=x.append("g"),s=nt.drawNode(a,i,I,r,e);c.debug("sectionNode output",s),a.attr("transform",`translate(${E}, 50)`),T+=_+50,n.length>0&&rt(x,n,I,E,T,v,r,H,C,_,!1,e),E+=200*Math.max(n.length,1),T=50,I++}):(M=!1,rt(x,b,I,E,T,v,r,H,C,_,!0,e));const L=x.node().getBBox();c.debug("bounds",L),k&&x.append("text").text(k).attr("x","neo"===a?2*L.x+y:L.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),$=M?_+v+150:v+100;if(x.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",$).attr("x2",L.width+3*y).attr("y2",$).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===a&&h&&"neutral"!==s){const t=x.select("defs"),e=(t.empty()?x.append("defs"):t).append("linearGradient").attr("id",x.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}d(void 0,x,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),rt=t(function(t,e,n,i,r,a,s,o,l,h,d,p){for(const o of e){const e={descr:o.task,section:n,number:n,width:150,padding:20,maxHeight:a};c.debug("taskNode",e);const h=t.append("g").attr("class","taskWrapper"),u=nt.drawNode(h,e,n,s,p).height;if(c.debug("taskHeight after draw",u),h.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,u),o.events){const e=t.append("g").attr("class","lineWrapper");let c=a;r+=100,c+=at(t,o.events,n,i,r,s,p),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${p}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!s.timeline?.disableMulticolor&&n++}r-=10},"drawTasks"),at=t(function(t,e,n,i,r,a,s){let o=0;const l=r;r+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};c.debug("eventNode",e);const h=t.append("g").attr("class","eventWrapper"),d=nt.drawNode(h,e,n,a,s,!0).height;o+=d,h.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=l,o},"drawEvents"),st={setConf:t(()=>{},"setConf"),draw:it},ot=200,ct=t(function(t,e,n,i){const r=o(),a=r.timeline?.leftMargin??50;c.debug("timeline",i.db);const s=l(e);s.append("g");const p=i.db.getTasks(),u=i.db.getCommonDb().getDiagramTitle();c.debug("task",p),nt.initGraphics(s);const g=i.db.getSections();c.debug("sections",g);let y=0,f=0;const m=50+a;let x=50;const b=x,k=230,w=m+k;let _=0;const v=g&&g.length>0,$=v?w:m+k,S=Math.max(50,580);g.forEach(function(t){const e={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y},n=nt.getVirtualNodeHeight(s,e,r);c.debug("sectionHeight before draw",n),y=Math.max(y,n)});let E=0;c.debug("tasks.length",p.length);for(const[t,e]of p.entries()){const n={number:t,descr:e,section:e.section,width:ot,padding:5,maxHeight:f},i=nt.getVirtualNodeHeight(s,n,r);c.debug("taskHeight before draw",i),f=Math.max(f,i);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50};a+=nt.getVirtualNodeHeight(s,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),E=Math.max(E,a)+0}c.debug("maxSectionHeight before draw",y),c.debug("maxTaskHeight before draw",f);const T=Math.max(f,E)+30;v?g.forEach(t=>{const e=p.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y};c.debug("sectionNode",n);const i=s.append("g"),a=nt.drawNode(i,n,_,r);c.debug("sectionNode output",a);const o=$-k;i.attr("transform",`translate(${o}, ${x})`);const l=x+a.height+20;e.length>0&<(s,e,_,$,l,f,r,T,!1);const h=e.length,d=a.height+20+T*Math.max(h,1)-(h>0?60:0);x+=d,_++}):lt(s,p,_,$,x,f,r,T,!0);let I=s.node()?.getBBox();if(!I)throw new Error("bbox not found");if(c.debug("bounds",I),u){if(s.append("text").text(u).attr("x",I.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=s.node()?.getBBox(),!I)throw new Error("bbox not found");c.debug("bounds after title",I)}const[M]=h(r.fontSize),H=2*(M??16),C=.5*(M??16)+20,L=s.append("g").attr("class","lineWrapper");L.append("line").attr("x1",$).attr("y1",b-H).attr("x2",$).attr("y2",I.y+I.height+C).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),L.lower(),d(void 0,s,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),lt=t(function(t,e,n,i,r,a,s,o,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:ot,padding:5,maxHeight:a};c.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),p=nt.drawNode(d,e,n,s),u=p.height;c.debug("taskHeight after draw",u);const g=i-20-p.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,u),h.events&&h.events.length>0){const e=r,a=i+50;ht(t,h.events,n,i,a,e,s)}r+=o,l&&!s.timeline?.disableMulticolor&&n++}},"drawTasks"),ht=t(function(t,e,n,i,r,a,s){let o=a;for(const a of e){const e={descr:a,section:n,number:n,width:300,padding:5,maxHeight:0};c.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),h=nt.drawNode(l,e,n,s).height;l.attr("transform",`translate(${r}, ${o})`);const d=o+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+h+10}return o-a},"drawEvents"),dt={setConf:t(()=>{},"setConf"),draw:ct},pt=t(t=>{const{theme:r}=e(),a=r?.includes("dark"),s=i(r,t.borderColorArray),o=t.svgId?.replace(/^#/,"")??"",c=o?`url(#${o}-drop-shadow)`:t.dropShadow??"none";let l="";for(let e=0;e<n(t.THEME_COLOR_LIMIT);e++){const n=""+(17-3*e),i=s?t.borderColorArray[e%t.borderColorArray.length]:void 0,r=i??t.mainBkg,o=i??t.nodeBorder;l+=`\n .section-${e-1} rect,\n .section-${e-1} path,\n .section-${e-1} circle {\n fill: ${a&&s?t.mainBkg:r};\n stroke: ${o};\n stroke-width: ${t.strokeWidth};\n filter: ${c};\n }\n\n .section-${e-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${e-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+e]};\n }\n\n .section-edge-${e-1} {\n stroke: ${t["cScale"+e]};\n }\n\n .edge-depth-${e-1} {\n stroke-width: ${n};\n }\n\n .section-${e-1} line {\n stroke: ${t["cScaleInv"+e]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return l},"genReduxSections"),ut=t(t=>{let e="";const i=n(t.THEME_COLOR_LIMIT);for(let e=0;e<i;e++)t["lineColor"+e]=t["lineColor"+e]??t["cScaleInv"+e],r(t["lineColor"+e])?t["lineColor"+e]=a(t["lineColor"+e],20):t["lineColor"+e]=s(t["lineColor"+e],20);for(let n=0;n<i;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),gt=t(t=>{const{theme:i}=e(),r=i?.includes("redux"),a="neutral"===i,s=t.svgId?.replace(/^#/,"")??"";let o="";if(t.useGradient&&s&&t.THEME_COLOR_LIMIT&&!a){const e=n(t.THEME_COLOR_LIMIT);for(let n=0;n<e;n++)o+=`\n .section-${n-1}[data-look="neo"] rect,\n .section-${n-1}[data-look="neo"] path,\n .section-${n-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }\n .section-${n-1}[data-look="neo"] line {\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }`}return`\n .edge {\n stroke-width: 3;\n }\n ${r?pt(t):ut(t)}\n ${o}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},"getStyles"),yt={db:b,renderer:{setConf:t(()=>{},"setConf"),draw:t((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?dt.draw(t,e,n,i):st.draw(t,e,n,i),"draw")},parser:x,styles:gt};export{yt as diagram};
|
|
1
|
+
import{_ as t,O as e,H as n,E as i,ah as r,ai as a,aj as s,c as o,l as c,T as l,ab as h,ak as d,k as p,N as u,al as g,C as y}from"./mermaid.core-DErPnTKR.js";import{d as f}from"./arc-D1qQo7Rq.js";import"./index-DjHFXv3v.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-C-9EFvh4.js";import"./settings-DzQM72QE.js";import"./index-Zvckkvpn.js";import"./LoaderLayer-CWElgcGs.js";import"./websocket-KESFarc3.js";import"./index-DpobNvg5.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var m=function(){var e=t(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[6,11,13,14,15,17,19,20,23,24],i=[1,12],r=[1,13],a=[1,14],s=[1,15],o=[1,16],c=[1,19],l=[1,20],h={trace:t(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:t(function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:i.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:i.addTask(a[o],0,""),this.$=a[o];break;case 19:i.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,i=[0],r=[],a=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(u.yy[g]=this.yy[g]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;s.push(y);var f=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=r.pop()||p.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),t(m,"lex");for(var x,b,k,w,_,v,$,S,E={};;){if(b=i[i.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(_ in S=[],o[b])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(p.yytext),s.push(p.yylloc),i.push(k[1]),x=null,h=p.yyleng,c=p.yytext,l=p.yylineno,y=p.yylloc;break;case 2:if(v=this.productions_[k[1]][1],E.$=a[a.length-v],E._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},f&&(E._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[c,h,l,u.yy,k[1],a,s].concat(d))))return w;v&&(i=i.slice(0,-1*v*2),a=a.slice(0,-1*v),s=s.slice(0,-1*v)),i.push(this.productions_[k[1]][0]),a.push(E.$),s.push(E._$),$=o[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:t(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:t(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:t(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var t=this.next();return t||this.lex()},"lex"),begin:t(function(t){this.conditionStack.push(t)},"begin"),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t(function(t){this.begin(t)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\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,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function p(){this.yy={}}return h.lexer=d,t(p,"Parser"),p.prototype=h,h.Parser=p,new p}();m.parser=m;var x=m,b={};u(b,{addEvent:()=>j,addSection:()=>H,addTask:()=>N,addTaskOrg:()=>D,clear:()=>T,default:()=>O,getCommonDb:()=>E,getDirection:()=>M,getSections:()=>C,getTasks:()=>L,setDirection:()=>I});var k="",w=0,_="LR",v=[],$=[],S=[],E=t(()=>g,"getCommonDb"),T=t(function(){v.length=0,$.length=0,k="",S.length=0,_="LR",y()},"clear"),I=t(function(t){_=t},"setDirection"),M=t(function(){return _},"getDirection"),H=t(function(t){k=t,v.push(t)},"addSection"),C=t(function(){return v},"getSections"),L=t(function(){let t=A();let e=0;for(;!t&&e<100;)t=A(),e++;return $.push(...S),$},"getTasks"),N=t(function(t,e,n){const i={id:w++,section:k,type:k,task:t,score:e||0,events:n?[n]:[]};S.push(i)},"addTask"),j=t(function(t){S.find(t=>t.id===w-1).events.push(t)},"addEvent"),D=t(function(t){const e={section:k,type:k,description:t,task:t,classes:[]};$.push(e)},"addTaskOrg"),A=t(function(){const e=t(function(t){return S[t].processed},"compileTask");let n=!0;for(const[t,i]of S.entries())e(t),n=n&&i.processed;return n},"compileTasks"),O={clear:T,getCommonDb:E,getDirection:M,setDirection:I,addSection:H,getSections:C,getTasks:L,addTask:N,addTaskOrg:D,addEvent:j},B=0,R=t(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),P=t(function(e,n){const i=15,r=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",i).attr("stroke-width",2).attr("overflow","visible"),a=e.append("g");function s(t){const e=f().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=f().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(s,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?s(a):n.score<3?o(a):c(a),r},"drawFace"),W=t(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),F=t(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),z=t(function(e,n){function i(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}t(i,"genPoints");const r=e.append("polygon");r.attr("points",i(n.x,n.y,50,20,7)),r.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,F(e,n)},"drawLabel"),V=t(function(t,e,n){const i=t.append("g"),r=Y();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,R(i,r),X(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),G=-1,U=t(function(t,e,n,i){const r=e.x+n.width/2,a=t.append("g");G++;a.append("line").attr("id",i+"-task"+G).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),P(a,{cx:r,cy:300+30*(5-e.score),score:e.score});const s=Y();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,R(a,s),X(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),Z=t(function(t,e){R(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),q=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Y=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),X=function(){function e(t,e,n,i,a,s,o,c){r(e.append("text").attr("x",n+a/2).attr("y",i+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){const c=t*h-h*(p.length-1)/2,u=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);u.append("tspan").attr("x",n+a/2).attr("dy",c).text(p[t]),u.attr("y",i+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(u,o)}}function i(t,e,i,a,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",a).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,i,a,s,o,c,l),r(d,c)}function r(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(i,"byFo"),t(r,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),J=t(function(t,e){B=0,G=-1,t.append("defs").append("marker").attr("id",e+"-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");function K(t,e){t.each(function(){var t,n=p(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}t(K,"wrap");var Q=t(function(t,e,n,i,r,a=!1){const{theme:s,look:o}=i,c=s?.includes("redux"),l=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,h=t.append("g");e.section=l,h.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+l);const d=h.append("g"),u=h.append("g"),g=u.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),y=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,u.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&u.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),et(d,e,l,r,i),"neo"===o&&(h.attr("data-look","neo"),c)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=p(n),r=i.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(i.select(`#${a}`).empty()){const t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),tt=t(function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),et=t(function(t,e,n,i,r){const{theme:a}=r,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+B++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),nt={drawRect:R,drawCircle:W,drawSection:V,drawText:F,drawLabel:z,drawTask:U,drawBackgroundRect:Z,getTextObj:q,getNoteRect:Y,initGraphics:J,drawNode:Q,getVirtualNodeHeight:tt},it=t(function(t,e,n,i){const r=o(),{look:a,theme:s,themeVariables:l}=r,{useGradient:h,gradientStart:u,gradientStop:g}=l,y=r.timeline?.leftMargin??50;c.debug("timeline",i.db);const f=r.securityLevel;let m;"sandbox"===f&&(m=p("#i"+e));const x=p("sandbox"===f?m.nodes()[0].contentDocument.body:"body").select("#"+e);x.append("g");const b=i.db.getTasks(),k=i.db.getCommonDb().getDiagramTitle();c.debug("task",b),nt.initGraphics(x,e);const w=i.db.getSections();c.debug("sections",w);let _=0,v=0,$=0,S=0,E=50+y,T=50;S=50;let I=0,M=!0;w.forEach(function(t){const e={number:I,descr:t,section:I,width:150,padding:20,maxHeight:_},n=nt.getVirtualNodeHeight(x,e,r);c.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let H=0,C=0;c.debug("tasks.length",b.length);for(const[t,e]of b.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:v},i=nt.getVirtualNodeHeight(x,n,r);c.debug("taskHeight before draw",i),v=Math.max(v,i+20),H=Math.max(H,e.events.length);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=nt.getVirtualNodeHeight(x,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),C=Math.max(C,a)}c.debug("maxSectionHeight before draw",_),c.debug("maxTaskHeight before draw",v),w&&w.length>0?w.forEach(t=>{const n=b.filter(e=>e.section===t),i={number:I,descr:t,section:I,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};c.debug("sectionNode",i);const a=x.append("g"),s=nt.drawNode(a,i,I,r,e);c.debug("sectionNode output",s),a.attr("transform",`translate(${E}, 50)`),T+=_+50,n.length>0&&rt(x,n,I,E,T,v,r,H,C,_,!1,e),E+=200*Math.max(n.length,1),T=50,I++}):(M=!1,rt(x,b,I,E,T,v,r,H,C,_,!0,e));const L=x.node().getBBox();c.debug("bounds",L),k&&x.append("text").text(k).attr("x","neo"===a?2*L.x+y:L.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),$=M?_+v+150:v+100;if(x.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",$).attr("x2",L.width+3*y).attr("y2",$).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===a&&h&&"neutral"!==s){const t=x.select("defs"),e=(t.empty()?x.append("defs"):t).append("linearGradient").attr("id",x.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}d(void 0,x,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),rt=t(function(t,e,n,i,r,a,s,o,l,h,d,p){for(const o of e){const e={descr:o.task,section:n,number:n,width:150,padding:20,maxHeight:a};c.debug("taskNode",e);const h=t.append("g").attr("class","taskWrapper"),u=nt.drawNode(h,e,n,s,p).height;if(c.debug("taskHeight after draw",u),h.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,u),o.events){const e=t.append("g").attr("class","lineWrapper");let c=a;r+=100,c+=at(t,o.events,n,i,r,s,p),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${p}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!s.timeline?.disableMulticolor&&n++}r-=10},"drawTasks"),at=t(function(t,e,n,i,r,a,s){let o=0;const l=r;r+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};c.debug("eventNode",e);const h=t.append("g").attr("class","eventWrapper"),d=nt.drawNode(h,e,n,a,s,!0).height;o+=d,h.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=l,o},"drawEvents"),st={setConf:t(()=>{},"setConf"),draw:it},ot=200,ct=t(function(t,e,n,i){const r=o(),a=r.timeline?.leftMargin??50;c.debug("timeline",i.db);const s=l(e);s.append("g");const p=i.db.getTasks(),u=i.db.getCommonDb().getDiagramTitle();c.debug("task",p),nt.initGraphics(s);const g=i.db.getSections();c.debug("sections",g);let y=0,f=0;const m=50+a;let x=50;const b=x,k=230,w=m+k;let _=0;const v=g&&g.length>0,$=v?w:m+k,S=Math.max(50,580);g.forEach(function(t){const e={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y},n=nt.getVirtualNodeHeight(s,e,r);c.debug("sectionHeight before draw",n),y=Math.max(y,n)});let E=0;c.debug("tasks.length",p.length);for(const[t,e]of p.entries()){const n={number:t,descr:e,section:e.section,width:ot,padding:5,maxHeight:f},i=nt.getVirtualNodeHeight(s,n,r);c.debug("taskHeight before draw",i),f=Math.max(f,i);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50};a+=nt.getVirtualNodeHeight(s,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),E=Math.max(E,a)+0}c.debug("maxSectionHeight before draw",y),c.debug("maxTaskHeight before draw",f);const T=Math.max(f,E)+30;v?g.forEach(t=>{const e=p.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y};c.debug("sectionNode",n);const i=s.append("g"),a=nt.drawNode(i,n,_,r);c.debug("sectionNode output",a);const o=$-k;i.attr("transform",`translate(${o}, ${x})`);const l=x+a.height+20;e.length>0&<(s,e,_,$,l,f,r,T,!1);const h=e.length,d=a.height+20+T*Math.max(h,1)-(h>0?60:0);x+=d,_++}):lt(s,p,_,$,x,f,r,T,!0);let I=s.node()?.getBBox();if(!I)throw new Error("bbox not found");if(c.debug("bounds",I),u){if(s.append("text").text(u).attr("x",I.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=s.node()?.getBBox(),!I)throw new Error("bbox not found");c.debug("bounds after title",I)}const[M]=h(r.fontSize),H=2*(M??16),C=.5*(M??16)+20,L=s.append("g").attr("class","lineWrapper");L.append("line").attr("x1",$).attr("y1",b-H).attr("x2",$).attr("y2",I.y+I.height+C).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),L.lower(),d(void 0,s,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),lt=t(function(t,e,n,i,r,a,s,o,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:ot,padding:5,maxHeight:a};c.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),p=nt.drawNode(d,e,n,s),u=p.height;c.debug("taskHeight after draw",u);const g=i-20-p.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,u),h.events&&h.events.length>0){const e=r,a=i+50;ht(t,h.events,n,i,a,e,s)}r+=o,l&&!s.timeline?.disableMulticolor&&n++}},"drawTasks"),ht=t(function(t,e,n,i,r,a,s){let o=a;for(const a of e){const e={descr:a,section:n,number:n,width:300,padding:5,maxHeight:0};c.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),h=nt.drawNode(l,e,n,s).height;l.attr("transform",`translate(${r}, ${o})`);const d=o+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+h+10}return o-a},"drawEvents"),dt={setConf:t(()=>{},"setConf"),draw:ct},pt=t(t=>{const{theme:r}=e(),a=r?.includes("dark"),s=i(r,t.borderColorArray),o=t.svgId?.replace(/^#/,"")??"",c=o?`url(#${o}-drop-shadow)`:t.dropShadow??"none";let l="";for(let e=0;e<n(t.THEME_COLOR_LIMIT);e++){const n=""+(17-3*e),i=s?t.borderColorArray[e%t.borderColorArray.length]:void 0,r=i??t.mainBkg,o=i??t.nodeBorder;l+=`\n .section-${e-1} rect,\n .section-${e-1} path,\n .section-${e-1} circle {\n fill: ${a&&s?t.mainBkg:r};\n stroke: ${o};\n stroke-width: ${t.strokeWidth};\n filter: ${c};\n }\n\n .section-${e-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${e-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+e]};\n }\n\n .section-edge-${e-1} {\n stroke: ${t["cScale"+e]};\n }\n\n .edge-depth-${e-1} {\n stroke-width: ${n};\n }\n\n .section-${e-1} line {\n stroke: ${t["cScaleInv"+e]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return l},"genReduxSections"),ut=t(t=>{let e="";const i=n(t.THEME_COLOR_LIMIT);for(let e=0;e<i;e++)t["lineColor"+e]=t["lineColor"+e]??t["cScaleInv"+e],r(t["lineColor"+e])?t["lineColor"+e]=a(t["lineColor"+e],20):t["lineColor"+e]=s(t["lineColor"+e],20);for(let n=0;n<i;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),gt=t(t=>{const{theme:i}=e(),r=i?.includes("redux"),a="neutral"===i,s=t.svgId?.replace(/^#/,"")??"";let o="";if(t.useGradient&&s&&t.THEME_COLOR_LIMIT&&!a){const e=n(t.THEME_COLOR_LIMIT);for(let n=0;n<e;n++)o+=`\n .section-${n-1}[data-look="neo"] rect,\n .section-${n-1}[data-look="neo"] path,\n .section-${n-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }\n .section-${n-1}[data-look="neo"] line {\n stroke: url(#${s}-gradient);\n stroke-width: 2;\n }`}return`\n .edge {\n stroke-width: 3;\n }\n ${r?pt(t):ut(t)}\n ${o}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},"getStyles"),yt={db:b,renderer:{setConf:t(()=>{},"setConf"),draw:t((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?dt.draw(t,e,n,i):st.draw(t,e,n,i),"draw")},parser:x,styles:gt};export{yt as diagram};
|