orbitchat 2.1.6 → 2.1.8

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.
Files changed (49) hide show
  1. package/bin/orbitchat.js +11 -10
  2. package/dist/assets/{api-CK3k3ceJ.js → api-uEDUqkTi.js} +1 -1
  3. package/dist/assets/arc-m8RC5oDD-BT8qBEWK.js +1 -0
  4. package/dist/assets/{blockDiagram-c4efeb88-NvaZhZFT-B2z-bNEd.js → blockDiagram-c4efeb88-CZ2mpei3-DwC_8AXi.js} +7 -7
  5. package/dist/assets/{c4Diagram-c83219d4-gPr1eF38-BpklvzfC.js → c4Diagram-c83219d4-DL2EmCLj-Bb77Yjks.js} +2 -2
  6. package/dist/assets/channel-BKp1WYnX-BpupPR-0.js +1 -0
  7. package/dist/assets/classDiagram-beda092f-vKbJ2bcD-ByRiBo_z.js +2 -0
  8. package/dist/assets/classDiagram-v2-2358418a-BHXpn1Du-CsAMUMgi.js +2 -0
  9. package/dist/assets/clone-B1V2003j-DKfYfMmY.js +1 -0
  10. package/dist/assets/{createText-1719965b-D9Y3vUMn-UiwO3q8Q.js → createText-1719965b-C2-AT0ab-Ngc7i9D1.js} +2 -2
  11. package/dist/assets/edges-96097737-Zk-qG_8u-dmc-RUJc.js +4 -0
  12. package/dist/assets/{erDiagram-0228fc6a-BLw8FsIp-CkgJ5rpM.js → erDiagram-0228fc6a-B94anMjz-CVrsMLr0.js} +3 -3
  13. package/dist/assets/{flowDb-c6c81e3f-DXVkMlSE-DRQM6L-v.js → flowDb-c6c81e3f-CRRW-bQO-BYHCtAAr.js} +4 -4
  14. package/dist/assets/{flowDiagram-50d868cf-mkkB0hFd-CL_JosYM.js → flowDiagram-50d868cf-DPzQMhJv-CrArx2UT.js} +4 -4
  15. package/dist/assets/flowDiagram-v2-4f6560a1-Si9enBmB-CcZjaZir.js +1 -0
  16. package/dist/assets/{flowchart-elk-definition-6af322e1-D9IbjnSJ-DWoCBlEO.js → flowchart-elk-definition-6af322e1-CULhtvD--Bc4SZDEI.js} +1 -1
  17. package/dist/assets/{ganttDiagram-a2739b55-Cqs5_Zht-CyVqot_b.js → ganttDiagram-a2739b55-Bp8yOLEz-DMtD2BxT.js} +3 -3
  18. package/dist/assets/{gitGraphDiagram-82fe8481-txBzFn40-CZkxfaP2.js → gitGraphDiagram-82fe8481-BYtOQJl0-BxXpgB9C.js} +1 -1
  19. package/dist/assets/{graph-BZahQKIN-CTgzd5us.js → graph-BV6jB5rk-DcOA8BmL.js} +1 -1
  20. package/dist/assets/{index-CDwx2U7N.js → index-3H3i7ExC.js} +156 -156
  21. package/dist/assets/{index-5325376f-DsNDppci-BaFeDo3U.js → index-5325376f-DrY72DrM-BQxxLtiM.js} +1 -1
  22. package/dist/assets/index-DlFdZiHl-B3vsLXXB.js +134 -0
  23. package/dist/assets/{infoDiagram-8eee0895-SbmhgTjv-CCnN8bBn.js → infoDiagram-8eee0895-C6GFnrZ7-OKacvbId.js} +4 -4
  24. package/dist/assets/{journeyDiagram-c64418c1-C7AiwbKr-YZTGwLv1.js → journeyDiagram-c64418c1-daS1W8qe-BkJ9QLFM.js} +4 -4
  25. package/dist/assets/{layout-j-hMNqAM-C88IAVJC.js → layout-LXMv3mSS-CNNBHyhJ.js} +1 -1
  26. package/dist/assets/{mindmap-definition-8da855dc-B1WjnfxE-a9TK-xQN.js → mindmap-definition-8da855dc-DmNQYVT1-BsCbTj6n.js} +1 -1
  27. package/dist/assets/{pieDiagram-a8764435-zrkaw4r--BMPBVA0x.js → pieDiagram-a8764435-381urBY5-A6raAt-D.js} +5 -5
  28. package/dist/assets/{quadrantDiagram-1e28029f-C2Wa5n16-DwWDm6cx.js → quadrantDiagram-1e28029f-hgRmK2bX-CiuNGTtQ.js} +4 -4
  29. package/dist/assets/{requirementDiagram-08caed73-BtHxx079-zeP-18qR.js → requirementDiagram-08caed73-BB0Q-cI9-T9Fr-hSN.js} +1 -1
  30. package/dist/assets/{sankeyDiagram-a04cb91d-DXlmqTKB-BJu62Tg5.js → sankeyDiagram-a04cb91d-BpsipZNt-DeqT-JYz.js} +5 -5
  31. package/dist/assets/{sequenceDiagram-c5b8d532-BVQF3vcA-GR7-Xw8e.js → sequenceDiagram-c5b8d532-xoAvPcQJ-Dh_25-gi.js} +4 -4
  32. package/dist/assets/{stateDiagram-1ecb1508-Dybc3i2m-BMJzxrY5.js → stateDiagram-1ecb1508-b721R49K-DfgySJAt.js} +1 -1
  33. package/dist/assets/stateDiagram-v2-c2b004d7-BmSbrbqZ-BT-EqIcl.js +1 -0
  34. package/dist/assets/{styles-b4e223ce-BSiU4oYL-9ql-THae.js → styles-b4e223ce-TYmJC5IN-CyGeIEtW.js} +3 -3
  35. package/dist/assets/{styles-ca3715f6-DU7x0doE-B7zhH0Zm.js → styles-ca3715f6-CfJZu0Yn-Czxwj2Eo.js} +2 -2
  36. package/dist/assets/{styles-d45a18b0-B_CU21kM--NwLlmWK.js → styles-d45a18b0-DZ8oSYcV-KS40LPFU.js} +3 -3
  37. package/dist/assets/{svgDrawCommon-b86b1483-sbEe2n2v-CJw2W-Er.js → svgDrawCommon-b86b1483-CXPkN8HW-Dq40yjrO.js} +1 -1
  38. package/dist/assets/{timeline-definition-faaaa080-b82QCnJ9-CY85LKH1.js → timeline-definition-faaaa080-LDFf1jfb-CB8wN-VT.js} +6 -6
  39. package/dist/assets/{xychartDiagram-f5964ef8-BtRcO0uy-ylxrBreP.js → xychartDiagram-f5964ef8-DdhO5-Bp-B3w4U23E.js} +3 -3
  40. package/dist/index.html +1 -1
  41. package/package.json +2 -2
  42. package/dist/assets/arc-CvECY7sY-BAfm7gAl.js +0 -1
  43. package/dist/assets/channel-6PI3wNcc-1exBkyGg.js +0 -1
  44. package/dist/assets/classDiagram-beda092f-B8axaKGu-C7KpiekH.js +0 -2
  45. package/dist/assets/classDiagram-v2-2358418a-DPdf2DxR-CfXv0anP.js +0 -2
  46. package/dist/assets/clone-D01vUIhD-D0aslzw6.js +0 -1
  47. package/dist/assets/edges-96097737-Zc6U9nQz-Czq3--42.js +0 -4
  48. package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-BzGZQhJW.js +0 -1
  49. package/dist/assets/stateDiagram-v2-c2b004d7-Bp8rRkv2-Dm74LB8O.js +0 -1
@@ -1,7 +1,7 @@
1
- import{R as Pt,D as vt,M as At,L as Lt,N as Ct,I as zt,S as yt,O as lt,F as ft,J as Et,j as Dt,af as E,aj as It,q as mt,G as Bt}from"./index-CDwx2U7N.js";var gt=function(){var e=function($,a,r,l){for(r=r||{},l=$.length;l--;r[$[l]]=a);return r},s=[1,3],o=[1,4],u=[1,5],f=[1,6],c=[1,7],h=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],x=[2,7],v=[1,13],R=[1,17],Q=[1,18],D=[1,19],q=[1,20],I=[1,21],W=[1,22],L=[1,23],K=[1,24],et=[1,25],it=[1,26],at=[1,27],X=[1,30],M=[1,31],p=[1,32],t=[1,33],T=[1,34],m=[1,35],A=[1,36],_=[1,37],b=[1,38],S=[1,39],k=[1,40],F=[1,41],P=[1,42],Y=[1,57],H=[1,58],C=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function($,a,r,l,y,n,w){var d=n.length-1;switch(y){case 12:this.$=n[d].trim(),l.setDiagramTitle(this.$);break;case 13:this.$=n[d].trim(),l.setAccTitle(this.$);break;case 14:case 15:this.$=n[d].trim(),l.setAccDescription(this.$);break;case 16:l.addSection(n[d].substr(8)),this.$=n[d].substr(8);break;case 17:l.addPoint(n[d-3],n[d-1],n[d]);break;case 18:l.setXAxisLeftText(n[d-2]),l.setXAxisRightText(n[d]);break;case 19:n[d-1].text+=" ⟶ ",l.setXAxisLeftText(n[d-1]);break;case 20:l.setXAxisLeftText(n[d]);break;case 21:l.setYAxisBottomText(n[d-2]),l.setYAxisTopText(n[d]);break;case 22:n[d-1].text+=" ⟶ ",l.setYAxisBottomText(n[d-1]);break;case 23:l.setYAxisBottomText(n[d]);break;case 24:l.setQuadrant1Text(n[d]);break;case 25:l.setQuadrant2Text(n[d]);break;case 26:l.setQuadrant3Text(n[d]);break;case 27:l.setQuadrant4Text(n[d]);break;case 31:this.$={text:n[d],type:"text"};break;case 32:this.$={text:n[d-1].text+""+n[d],type:n[d-1].type};break;case 33:this.$={text:n[d],type:"text"};break;case 34:this.$={text:n[d],type:"markdown"};break;case 35:this.$=n[d];break;case 36:this.$=n[d-1]+""+n[d];break}},table:[{3:1,4:2,5:s,6:o,32:u,33:f,34:c},{1:[3]},{3:8,4:2,5:s,6:o,32:u,33:f,34:c},{3:9,4:2,5:s,6:o,32:u,33:f,34:c},e(h,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,x,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:v,13:R,15:Q,17:D,19:q,20:I,25:W,27:L,28:K,29:et,30:it,31:at,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),e(h,[2,5]),{4:43,32:u,33:f,34:c},e(i,x,{10:14,11:15,12:16,21:28,35:29,9:44,5:v,13:R,15:Q,17:D,19:q,20:I,25:W,27:L,28:K,29:et,30:it,31:at,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:49,35:29,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:50,35:29,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:51,35:29,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:52,35:29,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:53,35:29,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{5:Y,22:[1,54],35:56,36:55,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H},e(C,[2,31]),e(C,[2,33]),e(C,[2,34]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),e(C,[2,40]),e(C,[2,41]),e(C,[2,42]),e(C,[2,43]),e(C,[2,44]),e(C,[2,45]),e(C,[2,46]),e(C,[2,47]),e(h,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:Y,26:[1,59],40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,23],{36:55,35:56,5:Y,26:[1,60],40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,24],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,25],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,26],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,27],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),{23:[1,61]},e(C,[2,32]),e(C,[2,48]),e(C,[2,49]),e(C,[2,50]),e(i,[2,19],{35:29,21:62,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),e(i,[2,22],{35:29,21:63,37:X,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,21],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function($,a){if(a.recoverable)this.trace($);else{var r=new Error($);throw r.hash=a,r}},parse:function($){var a=this,r=[0],l=[],y=[null],n=[],w=this.table,d="",nt=0,pt=0,bt=2,qt=1,St=n.slice.call(arguments,1),z=Object.create(this.lexer),Z={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(Z.yy[ct]=this.yy[ct]);z.setInput($,Z.yy),Z.yy.lexer=z,Z.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var dt=z.yylloc;n.push(dt);var kt=z.options&&z.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ft(){var V;return V=l.pop()||z.lex()||qt,typeof V!="number"&&(V instanceof Array&&(l=V,V=l.pop()),V=a.symbols_[V]||V),V}for(var U,J,O,ut,tt={},st,j,Tt,rt;;){if(J=r[r.length-1],this.defaultActions[J]?O=this.defaultActions[J]:((U===null||typeof U>"u")&&(U=Ft()),O=w[J]&&w[J][U]),typeof O>"u"||!O.length||!O[0]){var xt="";rt=[];for(st in w[J])this.terminals_[st]&&st>bt&&rt.push("'"+this.terminals_[st]+"'");z.showPosition?xt="Parse error on line "+(nt+1)+`:
1
+ import{D as Pt,L as vt,j as At,M as Lt,R as Ct,N as zt,E as yt,O as lt,F as ft,Q as Et,I as Dt,af as E,aj as It,r as mt,W as Bt}from"./index-3H3i7ExC.js";var gt=function(){var e=function($,a,r,l){for(r=r||{},l=$.length;l--;r[$[l]]=a);return r},s=[1,3],o=[1,4],u=[1,5],f=[1,6],c=[1,7],h=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],x=[2,7],v=[1,13],R=[1,17],U=[1,18],D=[1,19],q=[1,20],I=[1,21],O=[1,22],L=[1,23],Z=[1,24],et=[1,25],it=[1,26],at=[1,27],W=[1,30],M=[1,31],p=[1,32],t=[1,33],T=[1,34],m=[1,35],A=[1,36],_=[1,37],b=[1,38],S=[1,39],k=[1,40],F=[1,41],P=[1,42],Y=[1,57],H=[1,58],C=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function($,a,r,l,y,n,w){var d=n.length-1;switch(y){case 12:this.$=n[d].trim(),l.setDiagramTitle(this.$);break;case 13:this.$=n[d].trim(),l.setAccTitle(this.$);break;case 14:case 15:this.$=n[d].trim(),l.setAccDescription(this.$);break;case 16:l.addSection(n[d].substr(8)),this.$=n[d].substr(8);break;case 17:l.addPoint(n[d-3],n[d-1],n[d]);break;case 18:l.setXAxisLeftText(n[d-2]),l.setXAxisRightText(n[d]);break;case 19:n[d-1].text+=" ⟶ ",l.setXAxisLeftText(n[d-1]);break;case 20:l.setXAxisLeftText(n[d]);break;case 21:l.setYAxisBottomText(n[d-2]),l.setYAxisTopText(n[d]);break;case 22:n[d-1].text+=" ⟶ ",l.setYAxisBottomText(n[d-1]);break;case 23:l.setYAxisBottomText(n[d]);break;case 24:l.setQuadrant1Text(n[d]);break;case 25:l.setQuadrant2Text(n[d]);break;case 26:l.setQuadrant3Text(n[d]);break;case 27:l.setQuadrant4Text(n[d]);break;case 31:this.$={text:n[d],type:"text"};break;case 32:this.$={text:n[d-1].text+""+n[d],type:n[d-1].type};break;case 33:this.$={text:n[d],type:"text"};break;case 34:this.$={text:n[d],type:"markdown"};break;case 35:this.$=n[d];break;case 36:this.$=n[d-1]+""+n[d];break}},table:[{3:1,4:2,5:s,6:o,32:u,33:f,34:c},{1:[3]},{3:8,4:2,5:s,6:o,32:u,33:f,34:c},{3:9,4:2,5:s,6:o,32:u,33:f,34:c},e(h,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,x,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:v,13:R,15:U,17:D,19:q,20:I,25:O,27:L,28:Z,29:et,30:it,31:at,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),e(h,[2,5]),{4:43,32:u,33:f,34:c},e(i,x,{10:14,11:15,12:16,21:28,35:29,9:44,5:v,13:R,15:U,17:D,19:q,20:I,25:O,27:L,28:Z,29:et,30:it,31:at,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:49,35:29,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:50,35:29,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:51,35:29,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:52,35:29,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{21:53,35:29,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P},{5:Y,22:[1,54],35:56,36:55,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H},e(C,[2,31]),e(C,[2,33]),e(C,[2,34]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),e(C,[2,40]),e(C,[2,41]),e(C,[2,42]),e(C,[2,43]),e(C,[2,44]),e(C,[2,45]),e(C,[2,46]),e(C,[2,47]),e(h,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:Y,26:[1,59],40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,23],{36:55,35:56,5:Y,26:[1,60],40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,24],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,25],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,26],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,27],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),{23:[1,61]},e(C,[2,32]),e(C,[2,48]),e(C,[2,49]),e(C,[2,50]),e(i,[2,19],{35:29,21:62,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),e(i,[2,22],{35:29,21:63,37:W,38:M,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,21],{36:55,35:56,5:Y,40:p,41:t,42:T,43:m,44:A,45:_,46:b,47:S,48:k,49:F,50:P,51:H}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function($,a){if(a.recoverable)this.trace($);else{var r=new Error($);throw r.hash=a,r}},parse:function($){var a=this,r=[0],l=[],y=[null],n=[],w=this.table,d="",nt=0,pt=0,bt=2,qt=1,St=n.slice.call(arguments,1),z=Object.create(this.lexer),G={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(G.yy[ct]=this.yy[ct]);z.setInput($,G.yy),G.yy.lexer=z,G.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var dt=z.yylloc;n.push(dt);var kt=z.options&&z.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ft(){var V;return V=l.pop()||z.lex()||qt,typeof V!="number"&&(V instanceof Array&&(l=V,V=l.pop()),V=a.symbols_[V]||V),V}for(var Q,J,X,ut,tt={},st,j,Tt,rt;;){if(J=r[r.length-1],this.defaultActions[J]?X=this.defaultActions[J]:((Q===null||typeof Q>"u")&&(Q=Ft()),X=w[J]&&w[J][Q]),typeof X>"u"||!X.length||!X[0]){var xt="";rt=[];for(st in w[J])this.terminals_[st]&&st>bt&&rt.push("'"+this.terminals_[st]+"'");z.showPosition?xt="Parse error on line "+(nt+1)+`:
2
2
  `+z.showPosition()+`
3
- Expecting `+rt.join(", ")+", got '"+(this.terminals_[U]||U)+"'":xt="Parse error on line "+(nt+1)+": Unexpected "+(U==qt?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(xt,{text:z.match,token:this.terminals_[U]||U,line:z.yylineno,loc:dt,expected:rt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+U);switch(O[0]){case 1:r.push(U),y.push(z.yytext),n.push(z.yylloc),r.push(O[1]),U=null,pt=z.yyleng,d=z.yytext,nt=z.yylineno,dt=z.yylloc;break;case 2:if(j=this.productions_[O[1]][1],tt.$=y[y.length-j],tt._$={first_line:n[n.length-(j||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(j||1)].first_column,last_column:n[n.length-1].last_column},kt&&(tt._$.range=[n[n.length-(j||1)].range[0],n[n.length-1].range[1]]),ut=this.performAction.apply(tt,[d,pt,nt,Z.yy,O[1],y,n].concat(St)),typeof ut<"u")return ut;j&&(r=r.slice(0,-1*j*2),y=y.slice(0,-1*j),n=n.slice(0,-1*j)),r.push(this.productions_[O[1]][0]),y.push(tt.$),n.push(tt._$),Tt=w[r[r.length-2]][r[r.length-1]],r.push(Tt);break;case 3:return!0}}return!0}},_t=function(){var $={EOF:1,parseError:function(a,r){if(this.yy.parser)this.yy.parser.parseError(a,r);else throw new Error(a)},setInput:function(a,r){return this.yy=r||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var r=a.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var r=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var y=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),l.length-1&&(this.yylineno-=l.length-1);var n=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).
3
+ Expecting `+rt.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":xt="Parse error on line "+(nt+1)+": Unexpected "+(Q==qt?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(xt,{text:z.match,token:this.terminals_[Q]||Q,line:z.yylineno,loc:dt,expected:rt})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+Q);switch(X[0]){case 1:r.push(Q),y.push(z.yytext),n.push(z.yylloc),r.push(X[1]),Q=null,pt=z.yyleng,d=z.yytext,nt=z.yylineno,dt=z.yylloc;break;case 2:if(j=this.productions_[X[1]][1],tt.$=y[y.length-j],tt._$={first_line:n[n.length-(j||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(j||1)].first_column,last_column:n[n.length-1].last_column},kt&&(tt._$.range=[n[n.length-(j||1)].range[0],n[n.length-1].range[1]]),ut=this.performAction.apply(tt,[d,pt,nt,G.yy,X[1],y,n].concat(St)),typeof ut<"u")return ut;j&&(r=r.slice(0,-1*j*2),y=y.slice(0,-1*j),n=n.slice(0,-1*j)),r.push(this.productions_[X[1]][0]),y.push(tt.$),n.push(tt._$),Tt=w[r[r.length-2]][r[r.length-1]],r.push(Tt);break;case 3:return!0}}return!0}},_t=function(){var $={EOF:1,parseError:function(a,r){if(this.yy.parser)this.yy.parser.parseError(a,r);else throw new Error(a)},setInput:function(a,r){return this.yy=r||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var r=a.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var r=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var y=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),l.length-1&&(this.yylineno-=l.length-1);var n=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),r=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
5
  `+r+"^"},test_match:function(a,r){var l,y,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),y=a[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var w in n)this[w]=n[w];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,r,l,y;this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),w=0;w<n.length;w++)if(l=this._input.match(this.rules[n[w]]),l&&(!r||l[0].length>r[0].length)){if(r=l,y=w,this.options.backtrack_lexer){if(a=this.test_match(l,n[w]),a!==!1)return a;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(a=this.test_match(r,n[y]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,r,l,y){switch(l){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return $}();ot.lexer=_t;function ht(){this.yy={}}return ht.prototype=ot,ot.Parser=ht,new ht}();gt.parser=gt;const Rt=gt,N=It();class Nt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,o,u,f,c,h,g,i,x,v,R,Q,D,q,I,W,L,K;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=E.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((o=E.quadrantChart)==null?void 0:o.chartHeight)||500,titlePadding:((u=E.quadrantChart)==null?void 0:u.titlePadding)||10,titleFontSize:((f=E.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((c=E.quadrantChart)==null?void 0:c.quadrantPadding)||5,xAxisLabelPadding:((h=E.quadrantChart)==null?void 0:h.xAxisLabelPadding)||5,yAxisLabelPadding:((g=E.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=E.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((x=E.quadrantChart)==null?void 0:x.yAxisLabelFontSize)||16,quadrantLabelFontSize:((v=E.quadrantChart)==null?void 0:v.quadrantLabelFontSize)||16,quadrantTextTopPadding:((R=E.quadrantChart)==null?void 0:R.quadrantTextTopPadding)||5,pointTextPadding:((Q=E.quadrantChart)==null?void 0:Q.pointTextPadding)||5,pointLabelFontSize:((D=E.quadrantChart)==null?void 0:D.pointLabelFontSize)||12,pointRadius:((q=E.quadrantChart)==null?void 0:q.pointRadius)||5,xAxisPosition:((I=E.quadrantChart)==null?void 0:I.xAxisPosition)||"top",yAxisPosition:((W=E.quadrantChart)==null?void 0:W.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((L=E.quadrantChart)==null?void 0:L.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((K=E.quadrantChart)==null?void 0:K.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:N.quadrant1Fill,quadrant2Fill:N.quadrant2Fill,quadrant3Fill:N.quadrant3Fill,quadrant4Fill:N.quadrant4Fill,quadrant1TextFill:N.quadrant1TextFill,quadrant2TextFill:N.quadrant2TextFill,quadrant3TextFill:N.quadrant3TextFill,quadrant4TextFill:N.quadrant4TextFill,quadrantPointFill:N.quadrantPointFill,quadrantPointTextFill:N.quadrantPointTextFill,quadrantXAxisTextFill:N.quadrantXAxisTextFill,quadrantYAxisTextFill:N.quadrantYAxisTextFill,quadrantTitleFill:N.quadrantTitleFill,quadrantInternalBorderStrokeFill:N.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:N.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),lt.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){lt.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){lt.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,o,u,f){const c=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,h={top:s==="top"&&o?c:0,bottom:s==="bottom"&&o?c:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&u?g:0,right:this.config.yAxisPosition==="right"&&u?g:0},x=this.config.titleFontSize+this.config.titlePadding*2,v={top:f?x:0},R=this.config.quadrantPadding+i.left,Q=this.config.quadrantPadding+h.top+v.top,D=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,q=this.config.chartHeight-this.config.quadrantPadding*2-h.top-h.bottom-v.top,I=D/2,W=q/2;return{xAxisSpace:h,yAxisSpace:i,titleSpace:v,quadrantSpace:{quadrantLeft:R,quadrantTop:Q,quadrantWidth:D,quadrantHalfWidth:I,quadrantHeight:q,quadrantHalfHeight:W}}}getAxisLabels(s,o,u,f){const{quadrantSpace:c,titleSpace:h}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:x,quadrantHalfWidth:v,quadrantTop:R,quadrantWidth:Q}=c,D=!!this.data.xAxisRightText,q=!!this.data.yAxisTopText,I=[];return this.data.xAxisLeftText&&o&&I.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:x+(D?v/2:0),y:s==="top"?this.config.xAxisLabelPadding+h.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:D?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&o&&I.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:x+v+(D?v/2:0),y:s==="top"?this.config.xAxisLabelPadding+h.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:D?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&u&&I.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+x+Q+this.config.quadrantPadding,y:R+i-(q?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&u&&I.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+x+Q+this.config.quadrantPadding,y:R+g-(q?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),I}getQuadrants(s){const{quadrantSpace:o}=s,{quadrantHalfHeight:u,quadrantLeft:f,quadrantHalfWidth:c,quadrantTop:h}=o,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+c,y:h,width:c,height:u,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:h,width:c,height:u,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:h+u,width:c,height:u,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+c,y:h+u,width:c,height:u,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(s){const{quadrantSpace:o}=s,{quadrantHeight:u,quadrantLeft:f,quadrantTop:c,quadrantWidth:h}=o,g=mt().domain([0,1]).range([f,h+f]),i=mt().domain([0,1]).range([u+c,c]);return this.data.points.map(x=>({x:g(x.x),y:i(x.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:x.text,fill:this.themeConfig.quadrantPointTextFill,x:g(x.x),y:i(x.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const o=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:u}=s,{quadrantHalfHeight:f,quadrantHeight:c,quadrantLeft:h,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:x}=u;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h-o,y1:i,x2:h+x+o,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h+x,y1:i+o,x2:h+x,y2:i+c-o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h-o,y1:i+c,x2:h+x+o,y2:i+c},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h,y1:i+o,x2:h,y2:i+c-o},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:h+g,y1:i+o,x2:h+g,y2:i+c-o},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:h+o,y1:i+f,x2:h+x-o,y2:i+f}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),o=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),u=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,c=this.calculateSpace(f,s,o,u);return{points:this.getQuadrantPoints(c),quadrants:this.getQuadrants(c),axisLabels:this.getAxisLabels(f,s,o,c),borderLines:this.getBorders(c),title:this.getTitle(u)}}}const wt=yt();function G(e){return Bt(e.trim(),wt)}const B=new Nt;function Ut(e){B.setData({quadrant1Text:G(e.text)})}function Qt(e){B.setData({quadrant2Text:G(e.text)})}function Mt(e){B.setData({quadrant3Text:G(e.text)})}function Xt(e){B.setData({quadrant4Text:G(e.text)})}function Ot(e){B.setData({xAxisLeftText:G(e.text)})}function Wt(e){B.setData({xAxisRightText:G(e.text)})}function $t(e){B.setData({yAxisTopText:G(e.text)})}function Yt(e){B.setData({yAxisBottomText:G(e.text)})}function Ht(e,s,o){B.addPoints([{x:s,y:o,text:G(e.text)}])}function jt(e){B.setConfig({chartWidth:e})}function Vt(e){B.setConfig({chartHeight:e})}function Gt(){const e=yt(),{themeVariables:s,quadrantChart:o}=e;return o&&B.setConfig(o),B.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),B.setData({titleText:At()}),B.build()}const Kt=function(){B.clear(),Dt()},Zt={setWidth:jt,setHeight:Vt,setQuadrant1Text:Ut,setQuadrant2Text:Qt,setQuadrant3Text:Mt,setQuadrant4Text:Xt,setXAxisLeftText:Ot,setXAxisRightText:Wt,setYAxisTopText:$t,setYAxisBottomText:Yt,addPoint:Ht,getQuadrantData:Gt,clear:Kt,setAccTitle:zt,getAccTitle:Ct,setDiagramTitle:Lt,getDiagramTitle:At,getAccDescription:vt,setAccDescription:Pt},Jt=(e,s,o,u)=>{var f,c,h;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function x(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const v=yt();lt.debug(`Rendering quadrant chart
7
- `+e);const R=v.securityLevel;let Q;R==="sandbox"&&(Q=ft("#i"+s));const D=(R==="sandbox"?ft(Q.nodes()[0].contentDocument.body):ft("body")).select(`[id="${s}"]`),q=D.append("g").attr("class","main"),I=((f=v.quadrantChart)==null?void 0:f.chartWidth)||500,W=((c=v.quadrantChart)==null?void 0:c.chartHeight)||500;Et(D,W,I,((h=v.quadrantChart)==null?void 0:h.useMaxWidth)||!0),D.attr("viewBox","0 0 "+I+" "+W),u.db.setHeight(W),u.db.setWidth(I);const L=u.db.getQuadrantData(),K=q.append("g").attr("class","quadrants"),et=q.append("g").attr("class","border"),it=q.append("g").attr("class","data-points"),at=q.append("g").attr("class","labels"),X=q.append("g").attr("class","title");L.title&&X.append("text").attr("x",0).attr("y",0).attr("fill",L.title.fill).attr("font-size",L.title.fontSize).attr("dominant-baseline",g(L.title.horizontalPos)).attr("text-anchor",i(L.title.verticalPos)).attr("transform",x(L.title)).text(L.title.text),L.borderLines&&et.selectAll("line").data(L.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const M=K.selectAll("g.quadrant").data(L.quadrants).enter().append("g").attr("class","quadrant");M.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),M.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>x(t.text)).text(t=>t.text.text),at.selectAll("g.label").data(L.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>x(t));const p=it.selectAll("g.data-point").data(L.points).enter().append("g").attr("class","data-point");p.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),p.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>x(t.text))},te={draw:Jt},ie={parser:Rt,db:Zt,renderer:te,styles:()=>""};export{ie as diagram};
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,r,l,y){switch(l){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return $}();ot.lexer=_t;function ht(){this.yy={}}return ht.prototype=ot,ot.Parser=ht,new ht}();gt.parser=gt;const Rt=gt,N=It();class Nt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,o,u,f,c,h,g,i,x,v,R,U,D,q,I,O,L,Z;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=E.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((o=E.quadrantChart)==null?void 0:o.chartHeight)||500,titlePadding:((u=E.quadrantChart)==null?void 0:u.titlePadding)||10,titleFontSize:((f=E.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((c=E.quadrantChart)==null?void 0:c.quadrantPadding)||5,xAxisLabelPadding:((h=E.quadrantChart)==null?void 0:h.xAxisLabelPadding)||5,yAxisLabelPadding:((g=E.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=E.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((x=E.quadrantChart)==null?void 0:x.yAxisLabelFontSize)||16,quadrantLabelFontSize:((v=E.quadrantChart)==null?void 0:v.quadrantLabelFontSize)||16,quadrantTextTopPadding:((R=E.quadrantChart)==null?void 0:R.quadrantTextTopPadding)||5,pointTextPadding:((U=E.quadrantChart)==null?void 0:U.pointTextPadding)||5,pointLabelFontSize:((D=E.quadrantChart)==null?void 0:D.pointLabelFontSize)||12,pointRadius:((q=E.quadrantChart)==null?void 0:q.pointRadius)||5,xAxisPosition:((I=E.quadrantChart)==null?void 0:I.xAxisPosition)||"top",yAxisPosition:((O=E.quadrantChart)==null?void 0:O.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((L=E.quadrantChart)==null?void 0:L.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((Z=E.quadrantChart)==null?void 0:Z.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:N.quadrant1Fill,quadrant2Fill:N.quadrant2Fill,quadrant3Fill:N.quadrant3Fill,quadrant4Fill:N.quadrant4Fill,quadrant1TextFill:N.quadrant1TextFill,quadrant2TextFill:N.quadrant2TextFill,quadrant3TextFill:N.quadrant3TextFill,quadrant4TextFill:N.quadrant4TextFill,quadrantPointFill:N.quadrantPointFill,quadrantPointTextFill:N.quadrantPointTextFill,quadrantXAxisTextFill:N.quadrantXAxisTextFill,quadrantYAxisTextFill:N.quadrantYAxisTextFill,quadrantTitleFill:N.quadrantTitleFill,quadrantInternalBorderStrokeFill:N.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:N.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),lt.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){lt.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){lt.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,o,u,f){const c=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,h={top:s==="top"&&o?c:0,bottom:s==="bottom"&&o?c:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&u?g:0,right:this.config.yAxisPosition==="right"&&u?g:0},x=this.config.titleFontSize+this.config.titlePadding*2,v={top:f?x:0},R=this.config.quadrantPadding+i.left,U=this.config.quadrantPadding+h.top+v.top,D=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,q=this.config.chartHeight-this.config.quadrantPadding*2-h.top-h.bottom-v.top,I=D/2,O=q/2;return{xAxisSpace:h,yAxisSpace:i,titleSpace:v,quadrantSpace:{quadrantLeft:R,quadrantTop:U,quadrantWidth:D,quadrantHalfWidth:I,quadrantHeight:q,quadrantHalfHeight:O}}}getAxisLabels(s,o,u,f){const{quadrantSpace:c,titleSpace:h}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:x,quadrantHalfWidth:v,quadrantTop:R,quadrantWidth:U}=c,D=!!this.data.xAxisRightText,q=!!this.data.yAxisTopText,I=[];return this.data.xAxisLeftText&&o&&I.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:x+(D?v/2:0),y:s==="top"?this.config.xAxisLabelPadding+h.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:D?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&o&&I.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:x+v+(D?v/2:0),y:s==="top"?this.config.xAxisLabelPadding+h.top:this.config.xAxisLabelPadding+R+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:D?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&u&&I.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+x+U+this.config.quadrantPadding,y:R+i-(q?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&u&&I.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+x+U+this.config.quadrantPadding,y:R+g-(q?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),I}getQuadrants(s){const{quadrantSpace:o}=s,{quadrantHalfHeight:u,quadrantLeft:f,quadrantHalfWidth:c,quadrantTop:h}=o,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+c,y:h,width:c,height:u,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:h,width:c,height:u,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:h+u,width:c,height:u,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+c,y:h+u,width:c,height:u,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(s){const{quadrantSpace:o}=s,{quadrantHeight:u,quadrantLeft:f,quadrantTop:c,quadrantWidth:h}=o,g=mt().domain([0,1]).range([f,h+f]),i=mt().domain([0,1]).range([u+c,c]);return this.data.points.map(x=>({x:g(x.x),y:i(x.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:x.text,fill:this.themeConfig.quadrantPointTextFill,x:g(x.x),y:i(x.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const o=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:u}=s,{quadrantHalfHeight:f,quadrantHeight:c,quadrantLeft:h,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:x}=u;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h-o,y1:i,x2:h+x+o,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h+x,y1:i+o,x2:h+x,y2:i+c-o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h-o,y1:i+c,x2:h+x+o,y2:i+c},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:h,y1:i+o,x2:h,y2:i+c-o},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:h+g,y1:i+o,x2:h+g,y2:i+c-o},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:h+o,y1:i+f,x2:h+x-o,y2:i+f}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),o=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),u=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,c=this.calculateSpace(f,s,o,u);return{points:this.getQuadrantPoints(c),quadrants:this.getQuadrants(c),axisLabels:this.getAxisLabels(f,s,o,c),borderLines:this.getBorders(c),title:this.getTitle(u)}}}const wt=yt();function K(e){return Bt(e.trim(),wt)}const B=new Nt;function Qt(e){B.setData({quadrant1Text:K(e.text)})}function Ut(e){B.setData({quadrant2Text:K(e.text)})}function Mt(e){B.setData({quadrant3Text:K(e.text)})}function Wt(e){B.setData({quadrant4Text:K(e.text)})}function Xt(e){B.setData({xAxisLeftText:K(e.text)})}function Ot(e){B.setData({xAxisRightText:K(e.text)})}function $t(e){B.setData({yAxisTopText:K(e.text)})}function Yt(e){B.setData({yAxisBottomText:K(e.text)})}function Ht(e,s,o){B.addPoints([{x:s,y:o,text:K(e.text)}])}function jt(e){B.setConfig({chartWidth:e})}function Vt(e){B.setConfig({chartHeight:e})}function Kt(){const e=yt(),{themeVariables:s,quadrantChart:o}=e;return o&&B.setConfig(o),B.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),B.setData({titleText:At()}),B.build()}const Zt=function(){B.clear(),Dt()},Gt={setWidth:jt,setHeight:Vt,setQuadrant1Text:Qt,setQuadrant2Text:Ut,setQuadrant3Text:Mt,setQuadrant4Text:Wt,setXAxisLeftText:Xt,setXAxisRightText:Ot,setYAxisTopText:$t,setYAxisBottomText:Yt,addPoint:Ht,getQuadrantData:Kt,clear:Zt,setAccTitle:zt,getAccTitle:Ct,setDiagramTitle:Lt,getDiagramTitle:At,getAccDescription:vt,setAccDescription:Pt},Jt=(e,s,o,u)=>{var f,c,h;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function x(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const v=yt();lt.debug(`Rendering quadrant chart
7
+ `+e);const R=v.securityLevel;let U;R==="sandbox"&&(U=ft("#i"+s));const D=(R==="sandbox"?ft(U.nodes()[0].contentDocument.body):ft("body")).select(`[id="${s}"]`),q=D.append("g").attr("class","main"),I=((f=v.quadrantChart)==null?void 0:f.chartWidth)||500,O=((c=v.quadrantChart)==null?void 0:c.chartHeight)||500;Et(D,O,I,((h=v.quadrantChart)==null?void 0:h.useMaxWidth)||!0),D.attr("viewBox","0 0 "+I+" "+O),u.db.setHeight(O),u.db.setWidth(I);const L=u.db.getQuadrantData(),Z=q.append("g").attr("class","quadrants"),et=q.append("g").attr("class","border"),it=q.append("g").attr("class","data-points"),at=q.append("g").attr("class","labels"),W=q.append("g").attr("class","title");L.title&&W.append("text").attr("x",0).attr("y",0).attr("fill",L.title.fill).attr("font-size",L.title.fontSize).attr("dominant-baseline",g(L.title.horizontalPos)).attr("text-anchor",i(L.title.verticalPos)).attr("transform",x(L.title)).text(L.title.text),L.borderLines&&et.selectAll("line").data(L.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const M=Z.selectAll("g.quadrant").data(L.quadrants).enter().append("g").attr("class","quadrant");M.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),M.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>x(t.text)).text(t=>t.text.text),at.selectAll("g.label").data(L.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>x(t));const p=it.selectAll("g.data-point").data(L.points).enter().append("g").attr("class","data-point");p.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),p.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>x(t.text))},te={draw:Jt},ie={parser:Rt,db:Gt,renderer:te,styles:()=>""};export{ie as diagram};
@@ -1,4 +1,4 @@
1
- import{D as Fe,R as Me,N as Ce,I as De,S as Te,F as le,J as Pe,j as Ve,O as Ne,e as Ue,p as be}from"./index-CDwx2U7N.js";import{K as Ye}from"./graph-BZahQKIN-CTgzd5us.js";import{A as Be}from"./layout-j-hMNqAM-C88IAVJC.js";var oe=function(){var e=function(x,t,s,r){for(s=s||{},r=x.length;r--;s[x[r]]=t);return s},i=[1,3],l=[1,4],o=[1,5],h=[1,6],u=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],c=[1,18],a=[2,7],y=[1,22],E=[1,23],f=[1,24],T=[1,25],N=[1,26],A=[1,27],v=[1,20],S=[1,28],q=[1,29],C=[62,63],ue=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],ye=[1,47],de=[1,48],pe=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],fe=[1,53],w=[53,54],D=[1,64],P=[1,60],V=[1,61],U=[1,62],Y=[1,63],B=[1,65],j=[1,69],G=[1,70],z=[1,67],X=[1,68],R=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],te={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(x,t,s,r,d,n,m){var _=n.length-1;switch(d){case 4:this.$=n[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=n[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(n[_-3],n[_-4]);break;case 14:r.setNewReqId(n[_-2]);break;case 15:r.setNewReqText(n[_-2]);break;case 16:r.setNewReqRisk(n[_-2]);break;case 17:r.setNewReqVerifyMethod(n[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(n[_-3]);break;case 34:r.setNewElementType(n[_-2]);break;case 35:r.setNewElementDocRef(n[_-2]);break;case 38:r.addRelationship(n[_-2],n[_],n[_-4]);break;case 39:r.addRelationship(n[_-2],n[_-4],n[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:i,9:l,11:o,13:h},{1:[3]},{3:8,4:2,5:[1,7],6:i,9:l,11:o,13:h},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(u,[2,6]),{3:12,4:2,6:i,9:l,11:o,13:h},{1:[2,2]},{4:17,5:c,7:13,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},e(u,[2,4]),e(u,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:c,7:31,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:32,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:33,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:34,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:35,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(C,[2,20]),e(C,[2,21]),e(C,[2,22]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),e(ue,[2,49]),e(ue,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:ye,56:de,57:pe,58:_e,59:Ee,60:ge,61:fe},{52:54,55:ye,56:de,57:pe,58:_e,59:Ee,60:ge,61:fe},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:V,26:U,28:Y,30:B},{5:j,30:G,46:66,47:z,49:X},{23:71,62:S,63:q},{23:72,62:S,63:q},e(R,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:V,26:U,28:Y,30:B},e(R,[2,19]),e(R,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:G,46:80,47:z,49:X},e(R,[2,37]),e(R,[2,38]),e(R,[2,39]),{23:81,62:S,63:q},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(R,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(R,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:V,26:U,28:Y,30:B},{5:D,20:107,21:P,24:V,26:U,28:Y,30:B},{5:D,20:108,21:P,24:V,26:U,28:Y,30:B},{5:D,20:109,21:P,24:V,26:U,28:Y,30:B},{5:j,30:G,46:110,47:z,49:X},{5:j,30:G,46:111,47:z,49:X},e(R,[2,14]),e(R,[2,15]),e(R,[2,16]),e(R,[2,17]),e(R,[2,34]),e(R,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(x,t){if(t.recoverable)this.trace(x);else{var s=new Error(x);throw s.hash=t,s}},parse:function(x){var t=this,s=[0],r=[],d=[null],n=[],m=this.table,_="",J=0,Re=0,Oe=2,me=1,$e=n.slice.call(arguments,1),g=Object.create(this.lexer),F={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(F.yy[re]=this.yy[re]);g.setInput(x,F.yy),F.yy.lexer=g,F.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var ne=g.yylloc;n.push(ne);var Le=g.options&&g.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(){var $;return $=r.pop()||g.lex()||me,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=t.symbols_[$]||$),$}for(var I,M,k,se,H={},Z,O,Ie,ee;;){if(M=s[s.length-1],this.defaultActions[M]?k=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=we()),k=m[M]&&m[M][I]),typeof k>"u"||!k.length||!k[0]){var ae="";ee=[];for(Z in m[M])this.terminals_[Z]&&Z>Oe&&ee.push("'"+this.terminals_[Z]+"'");g.showPosition?ae="Parse error on line "+(J+1)+`:
1
+ import{L as Fe,D as Me,R as Ce,N as De,E as Te,F as le,Q as Pe,I as Ve,O as Ne,d as Ue,m as be}from"./index-3H3i7ExC.js";import{K as Ye}from"./graph-BV6jB5rk-DcOA8BmL.js";import{A as Be}from"./layout-LXMv3mSS-CNNBHyhJ.js";var oe=function(){var e=function(x,t,s,r){for(s=s||{},r=x.length;r--;s[x[r]]=t);return s},i=[1,3],l=[1,4],o=[1,5],h=[1,6],u=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],c=[1,18],a=[2,7],y=[1,22],E=[1,23],f=[1,24],T=[1,25],N=[1,26],A=[1,27],v=[1,20],S=[1,28],q=[1,29],C=[62,63],ue=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],ye=[1,47],de=[1,48],pe=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],fe=[1,53],w=[53,54],D=[1,64],P=[1,60],V=[1,61],U=[1,62],Y=[1,63],B=[1,65],j=[1,69],G=[1,70],z=[1,67],X=[1,68],R=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],te={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(x,t,s,r,d,n,m){var _=n.length-1;switch(d){case 4:this.$=n[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=n[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(n[_-3],n[_-4]);break;case 14:r.setNewReqId(n[_-2]);break;case 15:r.setNewReqText(n[_-2]);break;case 16:r.setNewReqRisk(n[_-2]);break;case 17:r.setNewReqVerifyMethod(n[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(n[_-3]);break;case 34:r.setNewElementType(n[_-2]);break;case 35:r.setNewElementDocRef(n[_-2]);break;case 38:r.addRelationship(n[_-2],n[_],n[_-4]);break;case 39:r.addRelationship(n[_-2],n[_-4],n[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:i,9:l,11:o,13:h},{1:[3]},{3:8,4:2,5:[1,7],6:i,9:l,11:o,13:h},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(u,[2,6]),{3:12,4:2,6:i,9:l,11:o,13:h},{1:[2,2]},{4:17,5:c,7:13,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},e(u,[2,4]),e(u,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:c,7:31,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:32,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:33,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:34,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{4:17,5:c,7:35,8:a,9:l,11:o,13:h,14:14,15:15,16:16,17:19,23:21,31:y,32:E,33:f,34:T,35:N,36:A,44:v,62:S,63:q},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(C,[2,20]),e(C,[2,21]),e(C,[2,22]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),e(ue,[2,49]),e(ue,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:ye,56:de,57:pe,58:_e,59:Ee,60:ge,61:fe},{52:54,55:ye,56:de,57:pe,58:_e,59:Ee,60:ge,61:fe},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:V,26:U,28:Y,30:B},{5:j,30:G,46:66,47:z,49:X},{23:71,62:S,63:q},{23:72,62:S,63:q},e(R,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:V,26:U,28:Y,30:B},e(R,[2,19]),e(R,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:G,46:80,47:z,49:X},e(R,[2,37]),e(R,[2,38]),e(R,[2,39]),{23:81,62:S,63:q},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(R,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(R,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:V,26:U,28:Y,30:B},{5:D,20:107,21:P,24:V,26:U,28:Y,30:B},{5:D,20:108,21:P,24:V,26:U,28:Y,30:B},{5:D,20:109,21:P,24:V,26:U,28:Y,30:B},{5:j,30:G,46:110,47:z,49:X},{5:j,30:G,46:111,47:z,49:X},e(R,[2,14]),e(R,[2,15]),e(R,[2,16]),e(R,[2,17]),e(R,[2,34]),e(R,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(x,t){if(t.recoverable)this.trace(x);else{var s=new Error(x);throw s.hash=t,s}},parse:function(x){var t=this,s=[0],r=[],d=[null],n=[],m=this.table,_="",J=0,Re=0,Oe=2,me=1,$e=n.slice.call(arguments,1),g=Object.create(this.lexer),F={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(F.yy[re]=this.yy[re]);g.setInput(x,F.yy),F.yy.lexer=g,F.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var ne=g.yylloc;n.push(ne);var Le=g.options&&g.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(){var $;return $=r.pop()||g.lex()||me,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=t.symbols_[$]||$),$}for(var I,M,k,se,H={},Z,O,Ie,ee;;){if(M=s[s.length-1],this.defaultActions[M]?k=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=we()),k=m[M]&&m[M][I]),typeof k>"u"||!k.length||!k[0]){var ae="";ee=[];for(Z in m[M])this.terminals_[Z]&&Z>Oe&&ee.push("'"+this.terminals_[Z]+"'");g.showPosition?ae="Parse error on line "+(J+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+ee.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ae="Parse error on line "+(J+1)+": Unexpected "+(I==me?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ae,{text:g.match,token:this.terminals_[I]||I,line:g.yylineno,loc:ne,expected:ee})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(k[0]){case 1:s.push(I),d.push(g.yytext),n.push(g.yylloc),s.push(k[1]),I=null,Re=g.yyleng,_=g.yytext,J=g.yylineno,ne=g.yylloc;break;case 2:if(O=this.productions_[k[1]][1],H.$=d[d.length-O],H._$={first_line:n[n.length-(O||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(O||1)].first_column,last_column:n[n.length-1].last_column},Le&&(H._$.range=[n[n.length-(O||1)].range[0],n[n.length-1].range[1]]),se=this.performAction.apply(H,[_,Re,J,F.yy,k[1],d,n].concat($e)),typeof se<"u")return se;O&&(s=s.slice(0,-1*O*2),d=d.slice(0,-1*O),n=n.slice(0,-1*O)),s.push(this.productions_[k[1]][0]),d.push(H.$),n.push(H._$),Ie=m[s[s.length-2]][s[s.length-1]],s.push(Ie);break;case 3:return!0}}return!0}},qe=function(){var x={EOF:1,parseError:function(t,s){if(this.yy.parser)this.yy.parser.parseError(t,s);else throw new Error(t)},setInput:function(t,s){return this.yy=s||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},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var s=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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),r.length-1&&(this.yylineno-=r.length-1);var n=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:r?(r.length===d.length?this.yylloc.first_column:0)+d[d.length-r.length].length-r[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,8 +1,8 @@
1
- import{L as _t,M as mt,R as kt,D as xt,I as vt,N as bt,S as rt,aK as Et,F as q,ae as Lt,k as wt,j as At,p as St}from"./index-CDwx2U7N.js";import{r as Mt}from"./Tableau10-D7jGxypv-Cyu9clx1.js";function ot(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s<l||s===void 0&&l>=l)&&(s=l)}return s}function yt(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s>l||s===void 0&&l>=l)&&(s=l)}return s}function H(t,e){let s=0;if(e===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let l of t)(l=+e(l,++a,t))&&(s+=l)}return s}function It(t){return t.target.depth}function Dt(t){return t.depth}function Nt(t,e){return e-1-t.height}function gt(t,e){return t.sourceLinks.length?t.depth:e-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,It)-1:0}function B(t){return function(){return t}}function at(t,e){return G(t.source,e.source)||t.index-e.index}function lt(t,e){return G(t.target,e.target)||t.index-e.index}function G(t,e){return t.y0-e.y0}function J(t){return t.value}function Ot(t){return t.index}function Ct(t){return t.nodes}function jt(t){return t.links}function ct(t,e){const s=t.get(e);if(!s)throw new Error("missing: "+e);return s}function ht({nodes:t}){for(const e of t){let s=e.y0,a=s;for(const l of e.sourceLinks)l.y0=s+l.width/2,s+=l.width;for(const l of e.targetLinks)l.y1=a+l.width/2,a+=l.width}}function Tt(){let t=0,e=0,s=1,a=1,l=24,k=8,p,_=Ot,i=gt,o,f,m=Ct,y=jt,v=6;function x(){const n={nodes:m.apply(null,arguments),links:y.apply(null,arguments)};return D(n),S(n),M(n),C(n),N(n),ht(n),n}x.update=function(n){return ht(n),n},x.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:B(n),x):_},x.nodeAlign=function(n){return arguments.length?(i=typeof n=="function"?n:B(n),x):i},x.nodeSort=function(n){return arguments.length?(o=n,x):o},x.nodeWidth=function(n){return arguments.length?(l=+n,x):l},x.nodePadding=function(n){return arguments.length?(k=p=+n,x):k},x.nodes=function(n){return arguments.length?(m=typeof n=="function"?n:B(n),x):m},x.links=function(n){return arguments.length?(y=typeof n=="function"?n:B(n),x):y},x.linkSort=function(n){return arguments.length?(f=n,x):f},x.size=function(n){return arguments.length?(t=e=0,s=+n[0],a=+n[1],x):[s-t,a-e]},x.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],e=+n[0][1],a=+n[1][1],x):[[t,e],[s,a]]},x.iterations=function(n){return arguments.length?(v=+n,x):v};function D({nodes:n,links:c}){for(const[u,r]of n.entries())r.index=u,r.sourceLinks=[],r.targetLinks=[];const h=new Map(n.map((u,r)=>[_(u,r,n),u]));for(const[u,r]of c.entries()){r.index=u;let{source:g,target:E}=r;typeof g!="object"&&(g=r.source=ct(h,g)),typeof E!="object"&&(E=r.target=ct(h,E)),g.sourceLinks.push(r),E.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:u,targetLinks:r}of n)u.sort(f),r.sort(f)}function S({nodes:n}){for(const c of n)c.value=c.fixedValue===void 0?Math.max(H(c.sourceLinks,J),H(c.targetLinks,J)):c.fixedValue}function M({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.depth=r;for(const{target:E}of g.sourceLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function C({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.height=r;for(const{source:E}of g.targetLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function I({nodes:n}){const c=ot(n,r=>r.depth)+1,h=(s-t-l)/(c-1),u=new Array(c);for(const r of n){const g=Math.max(0,Math.min(c-1,Math.floor(i.call(null,r,c))));r.layer=g,r.x0=t+g*h,r.x1=r.x0+l,u[g]?u[g].push(r):u[g]=[r]}if(o)for(const r of u)r.sort(o);return u}function b(n){const c=yt(n,h=>(a-e-(h.length-1)*p)/H(h,J));for(const h of n){let u=e;for(const r of h){r.y0=u,r.y1=u+r.value*c,u=r.y1+p;for(const g of r.sourceLinks)g.width=g.value*c}u=(a-u+p)/(h.length+1);for(let r=0;r<h.length;++r){const g=h[r];g.y0+=u*(r+1),g.y1+=u*(r+1)}A(h)}}function N(n){const c=I(n);p=Math.min(k,(a-e)/(ot(c,h=>h.length)-1)),b(c);for(let h=0;h<v;++h){const u=Math.pow(.99,h),r=Math.max(1-u,(h+1)/v);P(c,u,r),j(c,u,r)}}function j(n,c,h){for(let u=1,r=n.length;u<r;++u){const g=n[u];for(const E of g){let W=0,$=0;for(const{source:K,value:Z}of E.targetLinks){let X=Z*(E.layer-K.layer);W+=U(K,E)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,O(E)}o===void 0&&g.sort(G),d(g,h)}}function P(n,c,h){for(let u=n.length,r=u-2;r>=0;--r){const g=n[r];for(const E of g){let W=0,$=0;for(const{target:K,value:Z}of E.sourceLinks){let X=Z*(K.layer-E.layer);W+=T(E,K)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,O(E)}o===void 0&&g.sort(G),d(g,h)}}function d(n,c){const h=n.length>>1,u=n[h];L(n,u.y0-p,h-1,c),w(n,u.y1+p,h+1,c),L(n,a,n.length-1,c),w(n,e,0,c)}function w(n,c,h,u){for(;h<n.length;++h){const r=n[h],g=(c-r.y0)*u;g>1e-6&&(r.y0+=g,r.y1+=g),c=r.y1+p}}function L(n,c,h,u){for(;h>=0;--h){const r=n[h],g=(r.y1-c)*u;g>1e-6&&(r.y0-=g,r.y1-=g),c=r.y0-p}}function O({sourceLinks:n,targetLinks:c}){if(f===void 0){for(const{source:{sourceLinks:h}}of c)h.sort(lt);for(const{target:{targetLinks:h}}of n)h.sort(at)}}function A(n){if(f===void 0)for(const{sourceLinks:c,targetLinks:h}of n)c.sort(lt),h.sort(at)}function U(n,c){let h=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h+=r+p}for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h-=r}return h}function T(n,c){let h=c.y0-(c.targetLinks.length-1)*p/2;for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h+=r+p}for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h-=r}return h}return x}var tt=Math.PI,nt=2*tt,z=1e-6,$t=nt-z;function et(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new et}et.prototype=dt.prototype={constructor:et,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,s,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,e,s,a,l,k){this._+="C"+ +t+","+ +e+","+ +s+","+ +a+","+(this._x1=+l)+","+(this._y1=+k)},arcTo:function(t,e,s,a,l){t=+t,e=+e,s=+s,a=+a,l=+l;var k=this._x1,p=this._y1,_=s-t,i=a-e,o=k-t,f=p-e,m=o*o+f*f;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(m>z)if(!(Math.abs(f*_-i*o)>z)||!l)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var y=s-k,v=a-p,x=_*_+i*i,D=y*y+v*v,S=Math.sqrt(x),M=Math.sqrt(m),C=l*Math.tan((tt-Math.acos((x+m-D)/(2*S*M)))/2),I=C/M,b=C/S;Math.abs(I-1)>z&&(this._+="L"+(t+I*o)+","+(e+I*f)),this._+="A"+l+","+l+",0,0,"+ +(f*y>o*v)+","+(this._x1=t+b*_)+","+(this._y1=e+b*i)}},arc:function(t,e,s,a,l,k){t=+t,e=+e,s=+s,k=!!k;var p=s*Math.cos(a),_=s*Math.sin(a),i=t+p,o=e+_,f=1^k,m=k?a-l:l-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%nt+nt),m>$t?this._+="A"+s+","+s+",0,1,"+f+","+(t-p)+","+(e-_)+"A"+s+","+s+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):m>z&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+f+","+(this._x1=t+s*Math.cos(l))+","+(this._y1=e+s*Math.sin(l))))},rect:function(t,e,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function zt(t){return t[0]}function Ft(t){return t[1]}var Ut=Array.prototype.slice;function Wt(t){return t.source}function Rt(t){return t.target}function Kt(t){var e=Wt,s=Rt,a=zt,l=Ft,k=null;function p(){var _,i=Ut.call(arguments),o=e.apply(this,i),f=s.apply(this,i);if(k||(k=_=dt()),t(k,+a.apply(this,(i[0]=o,i)),+l.apply(this,i),+a.apply(this,(i[0]=f,i)),+l.apply(this,i)),_)return k=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(s=_,p):s},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:ut(+_),p):a},p.y=function(_){return arguments.length?(l=typeof _=="function"?_:ut(+_),p):l},p.context=function(_){return arguments.length?(k=_??null,p):k},p}function Xt(t,e,s,a,l){t.moveTo(e,s),t.bezierCurveTo(e=(e+a)/2,s,e,l,a,l)}function qt(){return Kt(Xt)}function Bt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}function Qt(){return qt().source(Bt).target(Gt)}var it=function(){var t=function(_,i,o,f){for(o=o||{},f=_.length;f--;o[_[f]]=i);return o},e=[1,9],s=[1,10],a=[1,5,10,12],l={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(_,i,o,f,m,y,v){var x=y.length-1;switch(m){case 7:const D=f.findOrCreateNode(y[x-4].trim().replaceAll('""','"')),S=f.findOrCreateNode(y[x-2].trim().replaceAll('""','"')),M=parseFloat(y[x].trim());f.addLink(D,S,M);break;case 8:case 9:case 11:this.$=y[x];break;case 10:this.$=y[x-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:s},{15:18,16:7,17:8,18:e,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(_,i){if(i.recoverable)this.trace(_);else{var o=new Error(_);throw o.hash=i,o}},parse:function(_){var i=this,o=[0],f=[],m=[null],y=[],v=this.table,x="",D=0,S=0,M=2,C=1,I=y.slice.call(arguments,1),b=Object.create(this.lexer),N={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(N.yy[j]=this.yy[j]);b.setInput(_,N.yy),N.yy.lexer=b,N.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var P=b.yylloc;y.push(P);var d=b.options&&b.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w(){var g;return g=f.pop()||b.lex()||C,typeof g!="number"&&(g instanceof Array&&(f=g,g=f.pop()),g=i.symbols_[g]||g),g}for(var L,O,A,U,T={},n,c,h,u;;){if(O=o[o.length-1],this.defaultActions[O]?A=this.defaultActions[O]:((L===null||typeof L>"u")&&(L=w()),A=v[O]&&v[O][L]),typeof A>"u"||!A.length||!A[0]){var r="";u=[];for(n in v[O])this.terminals_[n]&&n>M&&u.push("'"+this.terminals_[n]+"'");b.showPosition?r="Parse error on line "+(D+1)+`:
1
+ import{M as _t,j as mt,D as xt,L as kt,N as vt,R as bt,E as rt,aK as Et,F as q,ae as Lt,A as At,I as wt,m as St}from"./index-3H3i7ExC.js";import{r as Mt}from"./Tableau10-D7jGxypv-Cyu9clx1.js";function ot(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s<l||s===void 0&&l>=l)&&(s=l)}return s}function yt(t,e){let s;if(e===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let l of t)(l=e(l,++a,t))!=null&&(s>l||s===void 0&&l>=l)&&(s=l)}return s}function H(t,e){let s=0;if(e===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let l of t)(l=+e(l,++a,t))&&(s+=l)}return s}function It(t){return t.target.depth}function Dt(t){return t.depth}function Nt(t,e){return e-1-t.height}function gt(t,e){return t.sourceLinks.length?t.depth:e-1}function Pt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,It)-1:0}function G(t){return function(){return t}}function at(t,e){return Q(t.source,e.source)||t.index-e.index}function lt(t,e){return Q(t.target,e.target)||t.index-e.index}function Q(t,e){return t.y0-e.y0}function J(t){return t.value}function Ct(t){return t.index}function Ot(t){return t.nodes}function jt(t){return t.links}function ct(t,e){const s=t.get(e);if(!s)throw new Error("missing: "+e);return s}function ht({nodes:t}){for(const e of t){let s=e.y0,a=s;for(const l of e.sourceLinks)l.y0=s+l.width/2,s+=l.width;for(const l of e.targetLinks)l.y1=a+l.width/2,a+=l.width}}function Tt(){let t=0,e=0,s=1,a=1,l=24,x=8,p,_=Ct,i=gt,o,f,m=Ot,y=jt,v=6;function k(){const n={nodes:m.apply(null,arguments),links:y.apply(null,arguments)};return D(n),S(n),M(n),O(n),N(n),ht(n),n}k.update=function(n){return ht(n),n},k.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:G(n),k):_},k.nodeAlign=function(n){return arguments.length?(i=typeof n=="function"?n:G(n),k):i},k.nodeSort=function(n){return arguments.length?(o=n,k):o},k.nodeWidth=function(n){return arguments.length?(l=+n,k):l},k.nodePadding=function(n){return arguments.length?(x=p=+n,k):x},k.nodes=function(n){return arguments.length?(m=typeof n=="function"?n:G(n),k):m},k.links=function(n){return arguments.length?(y=typeof n=="function"?n:G(n),k):y},k.linkSort=function(n){return arguments.length?(f=n,k):f},k.size=function(n){return arguments.length?(t=e=0,s=+n[0],a=+n[1],k):[s-t,a-e]},k.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],e=+n[0][1],a=+n[1][1],k):[[t,e],[s,a]]},k.iterations=function(n){return arguments.length?(v=+n,k):v};function D({nodes:n,links:c}){for(const[u,r]of n.entries())r.index=u,r.sourceLinks=[],r.targetLinks=[];const h=new Map(n.map((u,r)=>[_(u,r,n),u]));for(const[u,r]of c.entries()){r.index=u;let{source:g,target:E}=r;typeof g!="object"&&(g=r.source=ct(h,g)),typeof E!="object"&&(E=r.target=ct(h,E)),g.sourceLinks.push(r),E.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:u,targetLinks:r}of n)u.sort(f),r.sort(f)}function S({nodes:n}){for(const c of n)c.value=c.fixedValue===void 0?Math.max(H(c.sourceLinks,J),H(c.targetLinks,J)):c.fixedValue}function M({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.depth=r;for(const{target:E}of g.sourceLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function O({nodes:n}){const c=n.length;let h=new Set(n),u=new Set,r=0;for(;h.size;){for(const g of h){g.height=r;for(const{source:E}of g.targetLinks)u.add(E)}if(++r>c)throw new Error("circular link");h=u,u=new Set}}function I({nodes:n}){const c=ot(n,r=>r.depth)+1,h=(s-t-l)/(c-1),u=new Array(c);for(const r of n){const g=Math.max(0,Math.min(c-1,Math.floor(i.call(null,r,c))));r.layer=g,r.x0=t+g*h,r.x1=r.x0+l,u[g]?u[g].push(r):u[g]=[r]}if(o)for(const r of u)r.sort(o);return u}function b(n){const c=yt(n,h=>(a-e-(h.length-1)*p)/H(h,J));for(const h of n){let u=e;for(const r of h){r.y0=u,r.y1=u+r.value*c,u=r.y1+p;for(const g of r.sourceLinks)g.width=g.value*c}u=(a-u+p)/(h.length+1);for(let r=0;r<h.length;++r){const g=h[r];g.y0+=u*(r+1),g.y1+=u*(r+1)}w(h)}}function N(n){const c=I(n);p=Math.min(x,(a-e)/(ot(c,h=>h.length)-1)),b(c);for(let h=0;h<v;++h){const u=Math.pow(.99,h),r=Math.max(1-u,(h+1)/v);P(c,u,r),j(c,u,r)}}function j(n,c,h){for(let u=1,r=n.length;u<r;++u){const g=n[u];for(const E of g){let W=0,$=0;for(const{source:K,value:Z}of E.targetLinks){let X=Z*(E.layer-K.layer);W+=U(K,E)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,C(E)}o===void 0&&g.sort(Q),d(g,h)}}function P(n,c,h){for(let u=n.length,r=u-2;r>=0;--r){const g=n[r];for(const E of g){let W=0,$=0;for(const{target:K,value:Z}of E.sourceLinks){let X=Z*(K.layer-E.layer);W+=T(E,K)*X,$+=X}if(!($>0))continue;let R=(W/$-E.y0)*c;E.y0+=R,E.y1+=R,C(E)}o===void 0&&g.sort(Q),d(g,h)}}function d(n,c){const h=n.length>>1,u=n[h];L(n,u.y0-p,h-1,c),A(n,u.y1+p,h+1,c),L(n,a,n.length-1,c),A(n,e,0,c)}function A(n,c,h,u){for(;h<n.length;++h){const r=n[h],g=(c-r.y0)*u;g>1e-6&&(r.y0+=g,r.y1+=g),c=r.y1+p}}function L(n,c,h,u){for(;h>=0;--h){const r=n[h],g=(r.y1-c)*u;g>1e-6&&(r.y0-=g,r.y1-=g),c=r.y0-p}}function C({sourceLinks:n,targetLinks:c}){if(f===void 0){for(const{source:{sourceLinks:h}}of c)h.sort(lt);for(const{target:{targetLinks:h}}of n)h.sort(at)}}function w(n){if(f===void 0)for(const{sourceLinks:c,targetLinks:h}of n)c.sort(lt),h.sort(at)}function U(n,c){let h=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h+=r+p}for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h-=r}return h}function T(n,c){let h=c.y0-(c.targetLinks.length-1)*p/2;for(const{source:u,width:r}of c.targetLinks){if(u===n)break;h+=r+p}for(const{target:u,width:r}of n.sourceLinks){if(u===c)break;h-=r}return h}return k}var tt=Math.PI,nt=2*tt,F=1e-6,$t=nt-F;function et(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function dt(){return new et}et.prototype=dt.prototype={constructor:et,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,s,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,e,s,a,l,x){this._+="C"+ +t+","+ +e+","+ +s+","+ +a+","+(this._x1=+l)+","+(this._y1=+x)},arcTo:function(t,e,s,a,l){t=+t,e=+e,s=+s,a=+a,l=+l;var x=this._x1,p=this._y1,_=s-t,i=a-e,o=x-t,f=p-e,m=o*o+f*f;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(m>F)if(!(Math.abs(f*_-i*o)>F)||!l)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var y=s-x,v=a-p,k=_*_+i*i,D=y*y+v*v,S=Math.sqrt(k),M=Math.sqrt(m),O=l*Math.tan((tt-Math.acos((k+m-D)/(2*S*M)))/2),I=O/M,b=O/S;Math.abs(I-1)>F&&(this._+="L"+(t+I*o)+","+(e+I*f)),this._+="A"+l+","+l+",0,0,"+ +(f*y>o*v)+","+(this._x1=t+b*_)+","+(this._y1=e+b*i)}},arc:function(t,e,s,a,l,x){t=+t,e=+e,s=+s,x=!!x;var p=s*Math.cos(a),_=s*Math.sin(a),i=t+p,o=e+_,f=1^x,m=x?a-l:l-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>F||Math.abs(this._y1-o)>F)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%nt+nt),m>$t?this._+="A"+s+","+s+",0,1,"+f+","+(t-p)+","+(e-_)+"A"+s+","+s+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):m>F&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+f+","+(this._x1=t+s*Math.cos(l))+","+(this._y1=e+s*Math.sin(l))))},rect:function(t,e,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ut(t){return function(){return t}}function Ft(t){return t[0]}function zt(t){return t[1]}var Ut=Array.prototype.slice;function Wt(t){return t.source}function Rt(t){return t.target}function Kt(t){var e=Wt,s=Rt,a=Ft,l=zt,x=null;function p(){var _,i=Ut.call(arguments),o=e.apply(this,i),f=s.apply(this,i);if(x||(x=_=dt()),t(x,+a.apply(this,(i[0]=o,i)),+l.apply(this,i),+a.apply(this,(i[0]=f,i)),+l.apply(this,i)),_)return x=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(s=_,p):s},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:ut(+_),p):a},p.y=function(_){return arguments.length?(l=typeof _=="function"?_:ut(+_),p):l},p.context=function(_){return arguments.length?(x=_??null,p):x},p}function Xt(t,e,s,a,l){t.moveTo(e,s),t.bezierCurveTo(e=(e+a)/2,s,e,l,a,l)}function qt(){return Kt(Xt)}function Gt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Yt(){return qt().source(Gt).target(Qt)}var it=function(){var t=function(_,i,o,f){for(o=o||{},f=_.length;f--;o[_[f]]=i);return o},e=[1,9],s=[1,10],a=[1,5,10,12],l={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(_,i,o,f,m,y,v){var k=y.length-1;switch(m){case 7:const D=f.findOrCreateNode(y[k-4].trim().replaceAll('""','"')),S=f.findOrCreateNode(y[k-2].trim().replaceAll('""','"')),M=parseFloat(y[k].trim());f.addLink(D,S,M);break;case 8:case 9:case 11:this.$=y[k];break;case 10:this.$=y[k-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:s},{15:18,16:7,17:8,18:e,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(_,i){if(i.recoverable)this.trace(_);else{var o=new Error(_);throw o.hash=i,o}},parse:function(_){var i=this,o=[0],f=[],m=[null],y=[],v=this.table,k="",D=0,S=0,M=2,O=1,I=y.slice.call(arguments,1),b=Object.create(this.lexer),N={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(N.yy[j]=this.yy[j]);b.setInput(_,N.yy),N.yy.lexer=b,N.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var P=b.yylloc;y.push(P);var d=b.options&&b.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(){var g;return g=f.pop()||b.lex()||O,typeof g!="number"&&(g instanceof Array&&(f=g,g=f.pop()),g=i.symbols_[g]||g),g}for(var L,C,w,U,T={},n,c,h,u;;){if(C=o[o.length-1],this.defaultActions[C]?w=this.defaultActions[C]:((L===null||typeof L>"u")&&(L=A()),w=v[C]&&v[C][L]),typeof w>"u"||!w.length||!w[0]){var r="";u=[];for(n in v[C])this.terminals_[n]&&n>M&&u.push("'"+this.terminals_[n]+"'");b.showPosition?r="Parse error on line "+(D+1)+`:
2
2
  `+b.showPosition()+`
3
- Expecting `+u.join(", ")+", got '"+(this.terminals_[L]||L)+"'":r="Parse error on line "+(D+1)+": Unexpected "+(L==C?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(r,{text:b.match,token:this.terminals_[L]||L,line:b.yylineno,loc:P,expected:u})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+L);switch(A[0]){case 1:o.push(L),m.push(b.yytext),y.push(b.yylloc),o.push(A[1]),L=null,S=b.yyleng,x=b.yytext,D=b.yylineno,P=b.yylloc;break;case 2:if(c=this.productions_[A[1]][1],T.$=m[m.length-c],T._$={first_line:y[y.length-(c||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(c||1)].first_column,last_column:y[y.length-1].last_column},d&&(T._$.range=[y[y.length-(c||1)].range[0],y[y.length-1].range[1]]),U=this.performAction.apply(T,[x,S,D,N.yy,A[1],m,y].concat(I)),typeof U<"u")return U;c&&(o=o.slice(0,-1*c*2),m=m.slice(0,-1*c),y=y.slice(0,-1*c)),o.push(this.productions_[A[1]][0]),m.push(T.$),y.push(T._$),h=v[o[o.length-2]][o[o.length-1]],o.push(h);break;case 3:return!0}}return!0}},k=function(){var _={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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),f.length-1&&(this.yylineno-=f.length-1);var y=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:f?(f.length===m.length?this.yylloc.first_column:0)+m[m.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).
3
+ Expecting `+u.join(", ")+", got '"+(this.terminals_[L]||L)+"'":r="Parse error on line "+(D+1)+": Unexpected "+(L==O?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(r,{text:b.match,token:this.terminals_[L]||L,line:b.yylineno,loc:P,expected:u})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+L);switch(w[0]){case 1:o.push(L),m.push(b.yytext),y.push(b.yylloc),o.push(w[1]),L=null,S=b.yyleng,k=b.yytext,D=b.yylineno,P=b.yylloc;break;case 2:if(c=this.productions_[w[1]][1],T.$=m[m.length-c],T._$={first_line:y[y.length-(c||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(c||1)].first_column,last_column:y[y.length-1].last_column},d&&(T._$.range=[y[y.length-(c||1)].range[0],y[y.length-1].range[1]]),U=this.performAction.apply(T,[k,S,D,N.yy,w[1],m,y].concat(I)),typeof U<"u")return U;c&&(o=o.slice(0,-1*c*2),m=m.slice(0,-1*c),y=y.slice(0,-1*c)),o.push(this.productions_[w[1]][0]),m.push(T.$),y.push(T._$),h=v[o[o.length-2]][o[o.length-1]],o.push(h);break;case 3:return!0}}return!0}},x=function(){var _={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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),f.length-1&&(this.yylineno-=f.length-1);var y=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:f?(f.length===m.length?this.yylloc.first_column:0)+m[m.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
5
  `+o+"^"},test_match:function(i,o){var f,m,y;if(this.options.backtrack_lexer&&(y={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&&(y.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var v in y)this[v]=y[v];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,f,m;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),v=0;v<y.length;v++)if(f=this._input.match(this.rules[y[v]]),f&&(!o||f[0].length>o[0].length)){if(o=f,m=v,this.options.backtrack_lexer){if(i=this.test_match(f,y[v]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,y[m]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,o,f,m){switch(f){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return _}();l.lexer=k;function p(){this.yy={}}return p.prototype=l,l.Parser=p,new p}();it.parser=it;const Q=it;let Y=[],V=[],F={};const Yt=()=>{Y=[],V=[],F={},At()};class Vt{constructor(e,s,a=0){this.source=e,this.target=s,this.value=a}}const Zt=(t,e,s)=>{Y.push(new Vt(t,e,s))};class Ht{constructor(e){this.ID=e}}const Jt=t=>(t=St.sanitizeText(t,rt()),F[t]||(F[t]=new Ht(t),V.push(F[t])),F[t]),tn=()=>V,nn=()=>Y,en=()=>({nodes:V.map(t=>({id:t.ID})),links:Y.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),sn={nodesMap:F,getConfig:()=>rt().sankey,getNodes:tn,getLinks:nn,getGraph:en,addLink:Zt,findOrCreateNode:Jt,getAccTitle:bt,setAccTitle:vt,getAccDescription:xt,setAccDescription:kt,getDiagramTitle:mt,setDiagramTitle:_t,clear:Yt},pt=class st{static next(e){return new st(e+ ++st.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}};pt.count=0;let ft=pt;const rn={left:Dt,right:Nt,center:Pt,justify:gt},on=function(t,e,s,a){const{securityLevel:l,sankey:k}=rt(),p=Et.sankey;let _;l==="sandbox"&&(_=q("#i"+e));const i=l==="sandbox"?q(_.nodes()[0].contentDocument.body):q("body"),o=l==="sandbox"?i.select(`[id="${e}"]`):q(`[id="${e}"]`),f=(k==null?void 0:k.width)??p.width,m=(k==null?void 0:k.height)??p.width,y=(k==null?void 0:k.useMaxWidth)??p.useMaxWidth,v=(k==null?void 0:k.nodeAlignment)??p.nodeAlignment,x=(k==null?void 0:k.prefix)??p.prefix,D=(k==null?void 0:k.suffix)??p.suffix,S=(k==null?void 0:k.showValues)??p.showValues,M=a.db.getGraph(),C=rn[v];Tt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(S?15:0)).nodeAlign(C).extent([[0,0],[f,m]])(M);const I=Lt(Mt);o.append("g").attr("class","nodes").selectAll(".node").data(M.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>I(d.id));const b=({id:d,value:w})=>S?`${d}
7
- ${x}${Math.round(w*100)/100}${D}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(M.nodes).join("text").attr("x",d=>d.x0<f/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${S?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<f/2?"start":"end").text(b);const N=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(M.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),j=(k==null?void 0:k.linkColor)||"gradient";if(j==="gradient"){const d=N.append("linearGradient").attr("id",w=>(w.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>I(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>I(w.target.id))}let P;switch(j){case"gradient":P=d=>d.uid;break;case"source":P=d=>I(d.source.id);break;case"target":P=d=>I(d.target.id);break;default:P=j}N.append("path").attr("d",Qt()).attr("stroke",P).attr("stroke-width",d=>Math.max(1,d.width)),wt(void 0,o,0,y)},an={draw:on},ln=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
- `).trim(),cn=Q.parse.bind(Q);Q.parse=t=>cn(ln(t));const fn={parser:Q,db:sn,renderer:an};export{fn as diagram};
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,o,f,m){switch(f){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return _}();l.lexer=x;function p(){this.yy={}}return p.prototype=l,l.Parser=p,new p}();it.parser=it;const Y=it;let B=[],V=[],z={};const Bt=()=>{B=[],V=[],z={},wt()};class Vt{constructor(e,s,a=0){this.source=e,this.target=s,this.value=a}}const Zt=(t,e,s)=>{B.push(new Vt(t,e,s))};class Ht{constructor(e){this.ID=e}}const Jt=t=>(t=St.sanitizeText(t,rt()),z[t]||(z[t]=new Ht(t),V.push(z[t])),z[t]),tn=()=>V,nn=()=>B,en=()=>({nodes:V.map(t=>({id:t.ID})),links:B.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),sn={nodesMap:z,getConfig:()=>rt().sankey,getNodes:tn,getLinks:nn,getGraph:en,addLink:Zt,findOrCreateNode:Jt,getAccTitle:bt,setAccTitle:vt,getAccDescription:kt,setAccDescription:xt,getDiagramTitle:mt,setDiagramTitle:_t,clear:Bt},pt=class st{static next(e){return new st(e+ ++st.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}};pt.count=0;let ft=pt;const rn={left:Dt,right:Nt,center:Pt,justify:gt},on=function(t,e,s,a){const{securityLevel:l,sankey:x}=rt(),p=Et.sankey;let _;l==="sandbox"&&(_=q("#i"+e));const i=l==="sandbox"?q(_.nodes()[0].contentDocument.body):q("body"),o=l==="sandbox"?i.select(`[id="${e}"]`):q(`[id="${e}"]`),f=(x==null?void 0:x.width)??p.width,m=(x==null?void 0:x.height)??p.width,y=(x==null?void 0:x.useMaxWidth)??p.useMaxWidth,v=(x==null?void 0:x.nodeAlignment)??p.nodeAlignment,k=(x==null?void 0:x.prefix)??p.prefix,D=(x==null?void 0:x.suffix)??p.suffix,S=(x==null?void 0:x.showValues)??p.showValues,M=a.db.getGraph(),O=rn[v];Tt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(S?15:0)).nodeAlign(O).extent([[0,0],[f,m]])(M);const I=Lt(Mt);o.append("g").attr("class","nodes").selectAll(".node").data(M.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>I(d.id));const b=({id:d,value:A})=>S?`${d}
7
+ ${k}${Math.round(A*100)/100}${D}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(M.nodes).join("text").attr("x",d=>d.x0<f/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${S?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<f/2?"start":"end").text(b);const N=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(M.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),j=(x==null?void 0:x.linkColor)||"gradient";if(j==="gradient"){const d=N.append("linearGradient").attr("id",A=>(A.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",A=>A.source.x1).attr("x2",A=>A.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",A=>I(A.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",A=>I(A.target.id))}let P;switch(j){case"gradient":P=d=>d.uid;break;case"source":P=d=>I(d.source.id);break;case"target":P=d=>I(d.target.id);break;default:P=j}N.append("path").attr("d",Yt()).attr("stroke",P).attr("stroke-width",d=>Math.max(1,d.width)),At(void 0,o,0,y)},an={draw:on},ln=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
+ `).trim(),cn=Y.parse.bind(Y);Y.parse=t=>cn(ln(t));const fn={parser:Y,db:sn,renderer:an};export{fn as diagram};