cc-viewer 1.6.244 → 1.6.246

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 (82) hide show
  1. package/dist/assets/App-BiQkZtui.js +1 -0
  2. package/dist/assets/{MdxEditorPanel-BfSRgDJp.js → MdxEditorPanel-IIVzOold.js} +1 -1
  3. package/dist/assets/Mobile-B7qYYu8v.js +1 -0
  4. package/dist/assets/SkillsManagerModal-C4ofB0oa.css +41 -0
  5. package/dist/assets/SkillsManagerModal-dzR7wO2v.js +2 -0
  6. package/dist/assets/{_baseUniq-D4LBG4Ot.js → _baseUniq-BhNv8Xvc.js} +1 -1
  7. package/dist/assets/{arc-B4smmOzy.js → arc-Bt4H5eKY.js} +1 -1
  8. package/dist/assets/{architectureDiagram-Q4EWVU46-coB7d-ek.js → architectureDiagram-Q4EWVU46-BgmUjRNd.js} +1 -1
  9. package/dist/assets/{blockDiagram-DXYQGD6D-B8tWPC-D.js → blockDiagram-DXYQGD6D-C9wK_ks5.js} +1 -1
  10. package/dist/assets/{c4Diagram-AHTNJAMY-bvrr52MZ.js → c4Diagram-AHTNJAMY-DhchjDPN.js} +1 -1
  11. package/dist/assets/{channel-D7PAXfYO.js → channel-Btktgvdp.js} +1 -1
  12. package/dist/assets/{chunk-4BX2VUAB-Cs80mvkB.js → chunk-4BX2VUAB-wZwjuujj.js} +1 -1
  13. package/dist/assets/{chunk-4TB4RGXK-BnlvMfXA.js → chunk-4TB4RGXK-D6T-DnKQ.js} +1 -1
  14. package/dist/assets/{chunk-55IACEB6-D0alajG6.js → chunk-55IACEB6-9BqfRmoj.js} +1 -1
  15. package/dist/assets/{chunk-EDXVE4YY-bDzoLfvk.js → chunk-EDXVE4YY-B2war4-Q.js} +1 -1
  16. package/dist/assets/{chunk-FMBD7UC4-Bx7EBH49.js → chunk-FMBD7UC4-DHSqPi47.js} +1 -1
  17. package/dist/assets/{chunk-OYMX7WX6-Diipa-PH.js → chunk-OYMX7WX6-CqDjPVtV.js} +1 -1
  18. package/dist/assets/{chunk-QZHKN3VN-CBqvdn5C.js → chunk-QZHKN3VN-oDMfsT4r.js} +1 -1
  19. package/dist/assets/{chunk-YZCP3GAM-C5LVWqAL.js → chunk-YZCP3GAM-DzHgASQw.js} +1 -1
  20. package/dist/assets/classDiagram-6PBFFD2Q-DhUw-2qG.js +1 -0
  21. package/dist/assets/classDiagram-v2-HSJHXN6E-DhUw-2qG.js +1 -0
  22. package/dist/assets/clone-CAwv3NR1.js +1 -0
  23. package/dist/assets/{cose-bilkent-S5V4N54A-C371M5M1.js → cose-bilkent-S5V4N54A-Dklu1Lxo.js} +1 -1
  24. package/dist/assets/{dagre-KV5264BT-DqCL1eq-.js → dagre-KV5264BT-CvOmAdjY.js} +1 -1
  25. package/dist/assets/{diagram-5BDNPKRD-BWX-xtyk.js → diagram-5BDNPKRD-D6vf00xD.js} +1 -1
  26. package/dist/assets/{diagram-G4DWMVQ6-C2I9Ixh-.js → diagram-G4DWMVQ6-DE_W63gG.js} +1 -1
  27. package/dist/assets/{diagram-MMDJMWI5-BEzEkpNP.js → diagram-MMDJMWI5-CXlvpIHZ.js} +1 -1
  28. package/dist/assets/{diagram-TYMM5635-CIUM82ik.js → diagram-TYMM5635-BBGcvHl1.js} +1 -1
  29. package/dist/assets/{erDiagram-SMLLAGMA-BFIPF0zg.js → erDiagram-SMLLAGMA-BzOXo3fd.js} +1 -1
  30. package/dist/assets/{flowDiagram-DWJPFMVM-CkctdZw8.js → flowDiagram-DWJPFMVM-KZA-Rfi_.js} +1 -1
  31. package/dist/assets/{ganttDiagram-T4ZO3ILL-BlOTX6sq.js → ganttDiagram-T4ZO3ILL-zjU5qjHl.js} +1 -1
  32. package/dist/assets/{gitGraphDiagram-UUTBAWPF-D9gkJWQD.js → gitGraphDiagram-UUTBAWPF-g9CMzE95.js} +1 -1
  33. package/dist/assets/{graph-BrtsApPK.js → graph-CjZv0z2E.js} +1 -1
  34. package/dist/assets/{index-Cn_0_EQB.js → index-BlFsJkmk.js} +1 -1
  35. package/dist/assets/{index-BPZGB1oT.js → index-D6pPmkFc.js} +1 -1
  36. package/dist/assets/{index-B4evr5Td.js → index-DOMQnNl-.js} +1 -1
  37. package/dist/assets/{index-DO212Z6K.js → index-KMvfg-yA.js} +1 -1
  38. package/dist/assets/{index-sB4w7_-e.js → index-PGOaus9G.js} +1 -1
  39. package/dist/assets/index-kza-3Pji.js +2 -0
  40. package/dist/assets/{index-4Akiapt_.js → index-l-XATlBm.js} +1 -1
  41. package/dist/assets/{index-CbrA2tuz.js → index-lNyLi-vX.js} +1 -1
  42. package/dist/assets/{infoDiagram-42DDH7IO-BSXMmyAR.js → infoDiagram-42DDH7IO-DJXw9J58.js} +1 -1
  43. package/dist/assets/{ishikawaDiagram-UXIWVN3A-CKjqeHaZ.js → ishikawaDiagram-UXIWVN3A-C1o4HLh9.js} +1 -1
  44. package/dist/assets/{journeyDiagram-VCZTEJTY-DlwSedrW.js → journeyDiagram-VCZTEJTY-BSwplIhk.js} +1 -1
  45. package/dist/assets/{jszip.min-BqnP2zHT.js → jszip.min-Dl4IqyRd.js} +1 -1
  46. package/dist/assets/{kanban-definition-6JOO6SKY-BOY9DCXg.js → kanban-definition-6JOO6SKY-WP2m7MrC.js} +1 -1
  47. package/dist/assets/{layout-CUi1OL3E.js → layout-BlkPouba.js} +1 -1
  48. package/dist/assets/{linear-DhvRMIYs.js → linear-DHkt6wuU.js} +1 -1
  49. package/dist/assets/{mermaid.core-uz8EInB1.js → mermaid.core-ChPdLHKc.js} +2 -2
  50. package/dist/assets/{min-yOqsnRgl.js → min-Cyf5226k.js} +1 -1
  51. package/dist/assets/{mindmap-definition-QFDTVHPH-_TkfRpxu.js → mindmap-definition-QFDTVHPH-DrtYHkPk.js} +1 -1
  52. package/dist/assets/orbiting-BCD4Vuij.svg +7 -0
  53. package/dist/assets/{pieDiagram-DEJITSTG-D6AdtJRl.js → pieDiagram-DEJITSTG-DH-70Dwc.js} +1 -1
  54. package/dist/assets/{quadrantDiagram-34T5L4WZ-Dgs4wGLz.js → quadrantDiagram-34T5L4WZ-eEhZyTA8.js} +1 -1
  55. package/dist/assets/{requirementDiagram-MS252O5E-Brc20J5D.js → requirementDiagram-MS252O5E-BNwebD-X.js} +1 -1
  56. package/dist/assets/{sankeyDiagram-XADWPNL6-BLKmIvdY.js → sankeyDiagram-XADWPNL6-DoA2qU3N.js} +1 -1
  57. package/dist/assets/{sequenceDiagram-FGHM5R23-h90tprxX.js → sequenceDiagram-FGHM5R23-DN-boZj7.js} +1 -1
  58. package/dist/assets/shimmer-BBDejmDf.svg +7 -0
  59. package/dist/assets/{stateDiagram-FHFEXIEX-BNT_KVmE.js → stateDiagram-FHFEXIEX-Dv-Qif4R.js} +1 -1
  60. package/dist/assets/{stateDiagram-v2-QKLJ7IA2-CGLwDp_L.js → stateDiagram-v2-QKLJ7IA2-DI5tUYFH.js} +1 -1
  61. package/dist/assets/{timeline-definition-GMOUNBTQ-B_J6EaT_.js → timeline-definition-GMOUNBTQ-DYG8kyQd.js} +1 -1
  62. package/dist/assets/{vendor-antd-CAAyMICZ.js → vendor-antd-BS2aqEyQ.js} +1 -1
  63. package/dist/assets/{vendor-codemirror-zGsatVJf.js → vendor-codemirror-DpOKy7e3.js} +1 -1
  64. package/dist/assets/{vendor-mdxeditor-2ethWb9I.js → vendor-mdxeditor-Dp19LkWF.js} +2 -2
  65. package/dist/assets/{vendor-qrcode-BwKRsfVu.js → vendor-qrcode-DWflB-OX.js} +1 -1
  66. package/dist/assets/{vendor-virtuoso-DxYsxL4p.js → vendor-virtuoso-Bs61ExJ8.js} +1 -1
  67. package/dist/assets/{vennDiagram-DHZGUBPP-D7H5ETD6.js → vennDiagram-DHZGUBPP-Eityxt48.js} +1 -1
  68. package/dist/assets/{wardley-RL74JXVD-BVJwveo0.js → wardley-RL74JXVD-DthedtT3.js} +1 -1
  69. package/dist/assets/{wardleyDiagram-NUSXRM2D-C9-CQr8V.js → wardleyDiagram-NUSXRM2D-CzQewpkK.js} +1 -1
  70. package/dist/assets/{xychartDiagram-5P7HB3ND-C8QiqEYG.js → xychartDiagram-5P7HB3ND-Dw72vagM.js} +1 -1
  71. package/dist/index.html +4 -4
  72. package/lib/file-access-policy.js +4 -1
  73. package/package.json +1 -1
  74. package/server.js +2 -1
  75. package/dist/assets/App-DaAHhOq9.js +0 -1
  76. package/dist/assets/Mobile-C4gPEuip.js +0 -1
  77. package/dist/assets/SkillsManagerModal-FXPFUoi6.css +0 -41
  78. package/dist/assets/SkillsManagerModal-XIGGaMO_.js +0 -2
  79. package/dist/assets/classDiagram-6PBFFD2Q-nxv2j4RR.js +0 -1
  80. package/dist/assets/classDiagram-v2-HSJHXN6E-nxv2j4RR.js +0 -1
  81. package/dist/assets/clone-8v6kfvDw.js +0 -1
  82. package/dist/assets/index-BW4xIgb5.js +0 -2
@@ -1 +1 @@
1
- import{b as baseFlatten,a as baseEach,c as baseIteratee,d as arrayMap,i as isSymbol}from"./_baseUniq-D4LBG4Ot.js";import{aF as isArrayLike,aG as isArray,aH as identity}from"./mermaid.core-uz8EInB1.js";function flatten(array){return(null==array?0:array.length)?baseFlatten(array):[]}function baseMap(collection,iteratee){var index=-1,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,function(value,key,collection2){result[++index]=iteratee(value,key,collection2)}),result}function map(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,baseIteratee(iteratee))}function baseLt(value,other){return value<other}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index<length;){var value=array[index],current=iteratee(value);if(null!=current&&(void 0===computed?current==current&&!isSymbol(current):comparator(current,computed)))var computed=current,result=value}return result}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):void 0}export{baseLt as a,baseExtremum as b,baseMap as c,min as d,flatten as f,map as m};
1
+ import{b as baseFlatten,a as baseEach,c as baseIteratee,d as arrayMap,i as isSymbol}from"./_baseUniq-BhNv8Xvc.js";import{aF as isArrayLike,aG as isArray,aH as identity}from"./mermaid.core-ChPdLHKc.js";function flatten(array){return(null==array?0:array.length)?baseFlatten(array):[]}function baseMap(collection,iteratee){var index=-1,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,function(value,key,collection2){result[++index]=iteratee(value,key,collection2)}),result}function map(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,baseIteratee(iteratee))}function baseLt(value,other){return value<other}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index<length;){var value=array[index],current=iteratee(value);if(null!=current&&(void 0===computed?current==current&&!isSymbol(current):comparator(current,computed)))var computed=current,result=value}return result}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):void 0}export{baseLt as a,baseExtremum as b,baseMap as c,min as d,flatten as f,map as m};
@@ -1 +1 @@
1
- var _a;import{g as getDiagramElement}from"./chunk-55IACEB6-D0alajG6.js";import{s as setupViewPortForSVG}from"./chunk-EDXVE4YY-bDzoLfvk.js";import{_ as __name,l as log,o as getRegisteredLayoutAlgorithm,r as render,C as getConfig,F as defaultConfig_default,c as getConfig2,i as sanitizeText,aE as getUserDefinedConfig,U as isDark,V as lighten,W as darken}from"./mermaid.core-uz8EInB1.js";import"./vendor-mdxeditor-2ethWb9I.js";import"./vendor-antd-CAAyMICZ.js";import"./vendor-codemirror-zGsatVJf.js";import"./vendor-markdown-Bpu4AByL.js";const byteToHex=[];for(let i=0;i<256;++i)byteToHex.push((i+256).toString(16).slice(1));let getRandomValues;const rnds8=new Uint8Array(16);const native={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function v4(options,buf,offset){var _a2;if(native.randomUUID&&!options)return native.randomUUID();const rnds=(options=options||{}).random??(null==(_a2=options.rng)?void 0:_a2.call(options))??function(){if(!getRandomValues){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}();if(rnds.length<16)throw new Error("Random bytes length must be >= 16");return rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,function(arr,offset=0){return(byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]).toLowerCase()}(rnds)}var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,4],$V1=[1,13],$V2=[1,12],$V3=[1,15],$V4=[1,16],$V5=[1,20],$V6=[1,19],$V7=[6,7,8],$V8=[1,26],$V9=[1,24],$Va=[1,25],$Vb=[6,7,11],$Vc=[1,6,13,15,16,19,22],$Vd=[1,33],$Ve=[1,34],$Vf=[1,6,7,11,13,15,16,19,22],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 6:case 7:return yy;case 8:yy.getLogger().trace("Stop NL ");break;case 9:yy.getLogger().trace("Stop EOF ");break;case 11:yy.getLogger().trace("Stop NL2 ");break;case 12:yy.getLogger().trace("Stop EOF2 ");break;case 15:yy.getLogger().info("Node: ",$$[$0].id),yy.addNode($$[$0-1].length,$$[$0].id,$$[$0].descr,$$[$0].type);break;case 16:yy.getLogger().trace("Icon: ",$$[$0]),yy.decorateNode({icon:$$[$0]});break;case 17:case 21:yy.decorateNode({class:$$[$0]});break;case 18:yy.getLogger().trace("SPACELIST");break;case 19:yy.getLogger().trace("Node: ",$$[$0].id),yy.addNode(0,$$[$0].id,$$[$0].descr,$$[$0].type);break;case 20:yy.decorateNode({icon:$$[$0]});break;case 25:yy.getLogger().trace("node found ..",$$[$0-2]),this.$={id:$$[$0-1],descr:$$[$0-1],type:yy.getType($$[$0-2],$$[$0])};break;case 26:this.$={id:$$[$0],descr:$$[$0],type:yy.nodeType.DEFAULT};break;case 27:yy.getLogger().trace("node found ..",$$[$0-3]),this.$={id:$$[$0-3],descr:$$[$0-1],type:yy.getType($$[$0-2],$$[$0])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:$V0},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:$V0},{6:$V1,7:[1,10],9:9,12:11,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},o($V7,[2,3]),{1:[2,2]},o($V7,[2,4]),o($V7,[2,5]),{1:[2,6],6:$V1,12:21,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},{6:$V1,9:22,12:11,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},{6:$V8,7:$V9,10:23,11:$Va},o($Vb,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:$V5,22:$V6}),o($Vb,[2,18]),o($Vb,[2,19]),o($Vb,[2,20]),o($Vb,[2,21]),o($Vb,[2,23]),o($Vb,[2,24]),o($Vb,[2,26],{19:[1,30]}),{20:[1,31]},{6:$V8,7:$V9,10:32,11:$Va},{1:[2,7],6:$V1,12:21,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},o($Vc,[2,14],{7:$Vd,11:$Ve}),o($Vf,[2,8]),o($Vf,[2,9]),o($Vf,[2,10]),o($Vb,[2,15]),o($Vb,[2,16]),o($Vb,[2,17]),{20:[1,35]},{21:[1,36]},o($Vc,[2,13],{7:$Vd,11:$Ve}),o($Vf,[2,11]),o($Vf,[2,12]),{21:[1,37]},o($Vb,[2,25]),o($Vb,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return yy.getLogger().trace("Found comment",yy_.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:yy.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return yy.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:yy.getLogger().trace("end icon"),this.popState();break;case 10:return yy.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return yy.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return yy.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return yy.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:yy.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return yy.getLogger().trace("description:",yy_.yytext),"NODE_DESCR";case 27:return this.popState(),yy.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),yy.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),yy.getLogger().trace("node end ...",yy_.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),yy.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),yy.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return yy.getLogger().trace("Long description:",yy_.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}}();function Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var mindmap_default=parser,nodeType={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},MindmapDB=(__name(_a=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=nodeType,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(level){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<level)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(level,id,descr,type){var _a2,_b;log.info("addNode",level,id,descr,type);let isRoot=!1;0===this.nodes.length?(this.baseLevel=level,level=0,isRoot=!0):void 0!==this.baseLevel&&(level-=this.baseLevel,isRoot=!1);const conf=getConfig2();let padding=(null==(_a2=conf.mindmap)?void 0:_a2.padding)??defaultConfig_default.mindmap.padding;switch(type){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:padding*=2}const node={id:this.count++,nodeId:sanitizeText(id,conf),level:level,descr:sanitizeText(descr,conf),type:type,children:[],width:(null==(_b=conf.mindmap)?void 0:_b.maxNodeWidth)??defaultConfig_default.mindmap.maxNodeWidth,padding:padding,isRoot:isRoot},parent=this.getParent(level);if(parent)parent.children.push(node),this.nodes.push(node);else{if(!isRoot)throw new Error(`There can be only one root. No parent could be found for ("${node.descr}")`);this.nodes.push(node)}}getType(startStr,endStr){switch(log.debug("In get type",startStr,endStr),startStr){case"[":return this.nodeType.RECT;case"(":return")"===endStr?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(id,element){this.elements[id]=element}getElementById(id){return this.elements[id]}decorateNode(decoration){if(!decoration)return;const config=getConfig2(),node=this.nodes[this.nodes.length-1];decoration.icon&&(node.icon=sanitizeText(decoration.icon,config)),decoration.class&&(node.class=sanitizeText(decoration.class,config))}type2Str(type){switch(type){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(node,sectionNumber){if(0===node.level?node.section=void 0:node.section=sectionNumber,node.children)for(const[index,child]of node.children.entries()){const childSectionNumber=0===node.level?index%11:sectionNumber;this.assignSections(child,childSectionNumber)}}flattenNodes(node,processedNodes){const conf=getConfig2(),cssClasses=["mindmap-node"];!0===node.isRoot?cssClasses.push("section-root","section--1"):void 0!==node.section&&cssClasses.push(`section-${node.section}`),node.class&&cssClasses.push(node.class);const classes=cssClasses.join(" "),getShapeFromType=__name(type=>{var _a2;const isReduxTheme=((null==(_a2=conf.theme)?void 0:_a2.toLowerCase())??"").includes("redux");switch(type){case nodeType.CIRCLE:return"mindmapCircle";case nodeType.RECT:return"rect";case nodeType.ROUNDED_RECT:return"rounded";case nodeType.CLOUD:return"cloud";case nodeType.BANG:return"bang";case nodeType.HEXAGON:return"hexagon";case nodeType.DEFAULT:return isReduxTheme?"rounded":"defaultMindmapNode";default:return"rect"}},"getShapeFromType"),processedNode={id:node.id.toString(),domId:"node_"+node.id.toString(),label:node.descr,labelType:"markdown",isGroup:!1,shape:getShapeFromType(node.type),width:node.width,height:node.height??0,padding:node.padding,cssClasses:classes,cssStyles:[],look:conf.look,icon:node.icon,x:node.x,y:node.y,level:node.level,nodeId:node.nodeId,type:node.type,section:node.section};if(processedNodes.push(processedNode),node.children)for(const child of node.children)this.flattenNodes(child,processedNodes)}generateEdges(node,edges){if(!node.children)return;const conf=getConfig2();for(const child of node.children){let edgeClasses="edge";void 0!==child.section&&(edgeClasses+=` section-edge-${child.section}`);edgeClasses+=` edge-depth-${node.level+1}`;const edge={id:`edge_${node.id}_${child.id}`,start:node.id.toString(),end:child.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:conf.look,classes:edgeClasses,depth:node.level,section:child.section};edges.push(edge),this.generateEdges(child,edges)}}getData(){const mindmapRoot=this.getMindmap(),config=getConfig2(),finalConfig=config;if(void 0!==getUserDefinedConfig().layout||(finalConfig.layout="cose-bilkent"),!mindmapRoot)return{nodes:[],edges:[],config:finalConfig};log.debug("getData: mindmapRoot",mindmapRoot,config),this.assignSections(mindmapRoot);const processedNodes=[],processedEdges=[];this.flattenNodes(mindmapRoot,processedNodes),this.generateEdges(mindmapRoot,processedEdges),log.debug(`getData: processed ${processedNodes.length} nodes and ${processedEdges.length} edges`);const shapes=new Map;for(const node of processedNodes)shapes.set(node.id,{shape:node.shape,width:node.width,height:node.height,padding:node.padding});return{nodes:processedNodes,edges:processedEdges,config:finalConfig,rootNode:mindmapRoot,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(shapes),type:"mindmap",diagramId:"mindmap-"+v4()}}getLogger(){return log}},"MindmapDB"),_a),mindmapRenderer_default={draw:__name(async(text,id,_version,diagObj)=>{var _a2,_b;log.debug("Rendering mindmap diagram\n"+text);const db=diagObj.db,data4Layout=db.getData(),svg=getDiagramElement(id,data4Layout.config.securityLevel);data4Layout.type=diagObj.type,data4Layout.layoutAlgorithm=getRegisteredLayoutAlgorithm(data4Layout.config.layout,{fallback:"cose-bilkent"}),data4Layout.diagramId=id;if(!db.getMindmap())return;data4Layout.nodes.forEach(node=>{"rounded"===node.shape?(node.radius=15,node.taper=15,node.stroke="none",node.width=0,node.padding=15):"circle"===node.shape?node.padding=10:"rect"===node.shape?(node.width=0,node.padding=10):"hexagon"===node.shape&&(node.width=0,node.height=0)}),await render(data4Layout,svg);const{themeVariables:themeVariables}=getConfig(),{useGradient:useGradient,gradientStart:gradientStart,gradientStop:gradientStop}=themeVariables;if(useGradient&&gradientStart&&gradientStop){const svgId=svg.attr("id"),gradient=svg.append("defs").append("linearGradient").attr("id",`${svgId}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");gradient.append("stop").attr("offset","0%").attr("stop-color",gradientStart).attr("stop-opacity",1),gradient.append("stop").attr("offset","100%").attr("stop-color",gradientStop).attr("stop-opacity",1)}setupViewPortForSVG(svg,(null==(_a2=data4Layout.config.mindmap)?void 0:_a2.padding)??defaultConfig_default.mindmap.padding,"mindmapDiagram",(null==(_b=data4Layout.config.mindmap)?void 0:_b.useMaxWidth)??defaultConfig_default.mindmap.useMaxWidth)},"draw")},genSections=__name(options=>{const{theme:theme,look:look}=options;let sections="";for(let i=0;i<options.THEME_COLOR_LIMIT;i++)options["lineColor"+i]=options["lineColor"+i]||options["cScaleInv"+i],isDark(options["lineColor"+i])?options["lineColor"+i]=lighten(options["lineColor"+i],20):options["lineColor"+i]=darken(options["lineColor"+i],20);for(let i=0;i<options.THEME_COLOR_LIMIT;i++){const sw=""+("neo"===look?Math.max(10-2*(i-1),2):17-3*i);sections+=`\n .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {\n fill: ${options["cScale"+i]};\n }\n .section-${i-1} text {\n fill: ${options["cScaleLabel"+i]};\n }\n .section-${i-1} span {\n color: ${options["cScaleLabel"+i]};\n }\n .node-icon-${i-1} {\n font-size: 40px;\n color: ${options["cScaleLabel"+i]};\n }\n .section-edge-${i-1}{\n stroke: ${options["cScale"+i]};\n }\n .edge-depth-${i-1}{\n stroke-width: ${sw};\n }\n .section-${i-1} line {\n stroke: ${options["cScaleInv"+i]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {\n fill: ${"redux"===theme||"redux-dark"===theme||"neutral"===theme?options.mainBkg:options["cScale"+i]};\n stroke: ${"redux"===theme||"redux-dark"===theme?options.nodeBorder:options["cScale"+i]};\n stroke-width: ${options.strokeWidth??2}px;\n }\n [data-look="neo"].section-edge-${i-1}{\n stroke: ${(null==theme?void 0:theme.includes("redux"))||"neo-dark"===theme?options.nodeBorder:options["cScale"+i]};\n }\n [data-look="neo"].mindmap-node.section-${i-1} text {\n fill: ${"redux"===theme||"redux-dark"===theme?options.nodeBorder:options["cScaleLabel"+("neutral"===theme?1:i)]};\n }\n `}return sections},"genSections"),genGradient=__name((THEME_COLOR_LIMIT,svgId,mainBkg)=>{let sections="";for(let i=0;i<THEME_COLOR_LIMIT;i++)sections+=`\n [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {\n stroke: url(${svgId}-gradient);\n fill: ${mainBkg};\n }\n .section-${i-1} line {\n stroke-width: 0;\n }`;return sections},"genGradient"),styles_default=__name(options=>{const{theme:theme}=options,svgId=options.svgId,scopedDropShadow=options.dropShadow?options.dropShadow.replace("url(#drop-shadow)",`url(${svgId}-drop-shadow)`):"none";return`\n .edge {\n stroke-width: 3;\n }\n ${genSections(options)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${options.git0};\n }\n .section-root text {\n fill: ${options.gitBranchLabel0};\n }\n .section-root span {\n color: ${(null==theme?void 0:theme.includes("redux"))?options.nodeBorder:options.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n [data-look="neo"].mindmap-node {\n filter: ${scopedDropShadow};\n }\n [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {\n fill: ${(null==theme?void 0:theme.includes("redux"))?options.mainBkg:options.git0};\n }\n [data-look="neo"].mindmap-node.section-root .text-inner-tspan {\n fill: ${(null==theme?void 0:theme.includes("redux"))?options.nodeBorder:options["cScaleLabel"+("neutral"===theme?1:0)]};\n }\n ${options.useGradient&&svgId&&options.mainBkg?genGradient(options.THEME_COLOR_LIMIT,svgId,options.mainBkg):""}\n`},"getStyles"),diagram={get db(){return new MindmapDB},renderer:mindmapRenderer_default,parser:mindmap_default,styles:styles_default};export{diagram};
1
+ var _a;import{g as getDiagramElement}from"./chunk-55IACEB6-9BqfRmoj.js";import{s as setupViewPortForSVG}from"./chunk-EDXVE4YY-B2war4-Q.js";import{_ as __name,l as log,o as getRegisteredLayoutAlgorithm,r as render,C as getConfig,F as defaultConfig_default,c as getConfig2,i as sanitizeText,aE as getUserDefinedConfig,U as isDark,V as lighten,W as darken}from"./mermaid.core-ChPdLHKc.js";import"./vendor-mdxeditor-Dp19LkWF.js";import"./vendor-antd-BS2aqEyQ.js";import"./vendor-codemirror-DpOKy7e3.js";import"./vendor-markdown-Bpu4AByL.js";const byteToHex=[];for(let i=0;i<256;++i)byteToHex.push((i+256).toString(16).slice(1));let getRandomValues;const rnds8=new Uint8Array(16);const native={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function v4(options,buf,offset){var _a2;if(native.randomUUID&&!options)return native.randomUUID();const rnds=(options=options||{}).random??(null==(_a2=options.rng)?void 0:_a2.call(options))??function(){if(!getRandomValues){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}();if(rnds.length<16)throw new Error("Random bytes length must be >= 16");return rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,function(arr,offset=0){return(byteToHex[arr[offset+0]]+byteToHex[arr[offset+1]]+byteToHex[arr[offset+2]]+byteToHex[arr[offset+3]]+"-"+byteToHex[arr[offset+4]]+byteToHex[arr[offset+5]]+"-"+byteToHex[arr[offset+6]]+byteToHex[arr[offset+7]]+"-"+byteToHex[arr[offset+8]]+byteToHex[arr[offset+9]]+"-"+byteToHex[arr[offset+10]]+byteToHex[arr[offset+11]]+byteToHex[arr[offset+12]]+byteToHex[arr[offset+13]]+byteToHex[arr[offset+14]]+byteToHex[arr[offset+15]]).toLowerCase()}(rnds)}var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,4],$V1=[1,13],$V2=[1,12],$V3=[1,15],$V4=[1,16],$V5=[1,20],$V6=[1,19],$V7=[6,7,8],$V8=[1,26],$V9=[1,24],$Va=[1,25],$Vb=[6,7,11],$Vc=[1,6,13,15,16,19,22],$Vd=[1,33],$Ve=[1,34],$Vf=[1,6,7,11,13,15,16,19,22],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 6:case 7:return yy;case 8:yy.getLogger().trace("Stop NL ");break;case 9:yy.getLogger().trace("Stop EOF ");break;case 11:yy.getLogger().trace("Stop NL2 ");break;case 12:yy.getLogger().trace("Stop EOF2 ");break;case 15:yy.getLogger().info("Node: ",$$[$0].id),yy.addNode($$[$0-1].length,$$[$0].id,$$[$0].descr,$$[$0].type);break;case 16:yy.getLogger().trace("Icon: ",$$[$0]),yy.decorateNode({icon:$$[$0]});break;case 17:case 21:yy.decorateNode({class:$$[$0]});break;case 18:yy.getLogger().trace("SPACELIST");break;case 19:yy.getLogger().trace("Node: ",$$[$0].id),yy.addNode(0,$$[$0].id,$$[$0].descr,$$[$0].type);break;case 20:yy.decorateNode({icon:$$[$0]});break;case 25:yy.getLogger().trace("node found ..",$$[$0-2]),this.$={id:$$[$0-1],descr:$$[$0-1],type:yy.getType($$[$0-2],$$[$0])};break;case 26:this.$={id:$$[$0],descr:$$[$0],type:yy.nodeType.DEFAULT};break;case 27:yy.getLogger().trace("node found ..",$$[$0-3]),this.$={id:$$[$0-3],descr:$$[$0-1],type:yy.getType($$[$0-2],$$[$0])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:$V0},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:$V0},{6:$V1,7:[1,10],9:9,12:11,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},o($V7,[2,3]),{1:[2,2]},o($V7,[2,4]),o($V7,[2,5]),{1:[2,6],6:$V1,12:21,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},{6:$V1,9:22,12:11,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},{6:$V8,7:$V9,10:23,11:$Va},o($Vb,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:$V5,22:$V6}),o($Vb,[2,18]),o($Vb,[2,19]),o($Vb,[2,20]),o($Vb,[2,21]),o($Vb,[2,23]),o($Vb,[2,24]),o($Vb,[2,26],{19:[1,30]}),{20:[1,31]},{6:$V8,7:$V9,10:32,11:$Va},{1:[2,7],6:$V1,12:21,13:$V2,14:14,15:$V3,16:$V4,17:17,18:18,19:$V5,22:$V6},o($Vc,[2,14],{7:$Vd,11:$Ve}),o($Vf,[2,8]),o($Vf,[2,9]),o($Vf,[2,10]),o($Vb,[2,15]),o($Vb,[2,16]),o($Vb,[2,17]),{20:[1,35]},{21:[1,36]},o($Vc,[2,13],{7:$Vd,11:$Ve}),o($Vf,[2,11]),o($Vf,[2,12]),{21:[1,37]},o($Vb,[2,25]),o($Vb,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return yy.getLogger().trace("Found comment",yy_.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:yy.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return yy.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:yy.getLogger().trace("end icon"),this.popState();break;case 10:return yy.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return yy.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return yy.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return yy.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:yy.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return yy.getLogger().trace("description:",yy_.yytext),"NODE_DESCR";case 27:return this.popState(),yy.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),yy.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),yy.getLogger().trace("node end ...",yy_.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),yy.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),yy.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return yy.getLogger().trace("Long description:",yy_.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}}();function Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var mindmap_default=parser,nodeType={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},MindmapDB=(__name(_a=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=nodeType,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(level){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<level)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(level,id,descr,type){var _a2,_b;log.info("addNode",level,id,descr,type);let isRoot=!1;0===this.nodes.length?(this.baseLevel=level,level=0,isRoot=!0):void 0!==this.baseLevel&&(level-=this.baseLevel,isRoot=!1);const conf=getConfig2();let padding=(null==(_a2=conf.mindmap)?void 0:_a2.padding)??defaultConfig_default.mindmap.padding;switch(type){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:padding*=2}const node={id:this.count++,nodeId:sanitizeText(id,conf),level:level,descr:sanitizeText(descr,conf),type:type,children:[],width:(null==(_b=conf.mindmap)?void 0:_b.maxNodeWidth)??defaultConfig_default.mindmap.maxNodeWidth,padding:padding,isRoot:isRoot},parent=this.getParent(level);if(parent)parent.children.push(node),this.nodes.push(node);else{if(!isRoot)throw new Error(`There can be only one root. No parent could be found for ("${node.descr}")`);this.nodes.push(node)}}getType(startStr,endStr){switch(log.debug("In get type",startStr,endStr),startStr){case"[":return this.nodeType.RECT;case"(":return")"===endStr?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(id,element){this.elements[id]=element}getElementById(id){return this.elements[id]}decorateNode(decoration){if(!decoration)return;const config=getConfig2(),node=this.nodes[this.nodes.length-1];decoration.icon&&(node.icon=sanitizeText(decoration.icon,config)),decoration.class&&(node.class=sanitizeText(decoration.class,config))}type2Str(type){switch(type){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(node,sectionNumber){if(0===node.level?node.section=void 0:node.section=sectionNumber,node.children)for(const[index,child]of node.children.entries()){const childSectionNumber=0===node.level?index%11:sectionNumber;this.assignSections(child,childSectionNumber)}}flattenNodes(node,processedNodes){const conf=getConfig2(),cssClasses=["mindmap-node"];!0===node.isRoot?cssClasses.push("section-root","section--1"):void 0!==node.section&&cssClasses.push(`section-${node.section}`),node.class&&cssClasses.push(node.class);const classes=cssClasses.join(" "),getShapeFromType=__name(type=>{var _a2;const isReduxTheme=((null==(_a2=conf.theme)?void 0:_a2.toLowerCase())??"").includes("redux");switch(type){case nodeType.CIRCLE:return"mindmapCircle";case nodeType.RECT:return"rect";case nodeType.ROUNDED_RECT:return"rounded";case nodeType.CLOUD:return"cloud";case nodeType.BANG:return"bang";case nodeType.HEXAGON:return"hexagon";case nodeType.DEFAULT:return isReduxTheme?"rounded":"defaultMindmapNode";default:return"rect"}},"getShapeFromType"),processedNode={id:node.id.toString(),domId:"node_"+node.id.toString(),label:node.descr,labelType:"markdown",isGroup:!1,shape:getShapeFromType(node.type),width:node.width,height:node.height??0,padding:node.padding,cssClasses:classes,cssStyles:[],look:conf.look,icon:node.icon,x:node.x,y:node.y,level:node.level,nodeId:node.nodeId,type:node.type,section:node.section};if(processedNodes.push(processedNode),node.children)for(const child of node.children)this.flattenNodes(child,processedNodes)}generateEdges(node,edges){if(!node.children)return;const conf=getConfig2();for(const child of node.children){let edgeClasses="edge";void 0!==child.section&&(edgeClasses+=` section-edge-${child.section}`);edgeClasses+=` edge-depth-${node.level+1}`;const edge={id:`edge_${node.id}_${child.id}`,start:node.id.toString(),end:child.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:conf.look,classes:edgeClasses,depth:node.level,section:child.section};edges.push(edge),this.generateEdges(child,edges)}}getData(){const mindmapRoot=this.getMindmap(),config=getConfig2(),finalConfig=config;if(void 0!==getUserDefinedConfig().layout||(finalConfig.layout="cose-bilkent"),!mindmapRoot)return{nodes:[],edges:[],config:finalConfig};log.debug("getData: mindmapRoot",mindmapRoot,config),this.assignSections(mindmapRoot);const processedNodes=[],processedEdges=[];this.flattenNodes(mindmapRoot,processedNodes),this.generateEdges(mindmapRoot,processedEdges),log.debug(`getData: processed ${processedNodes.length} nodes and ${processedEdges.length} edges`);const shapes=new Map;for(const node of processedNodes)shapes.set(node.id,{shape:node.shape,width:node.width,height:node.height,padding:node.padding});return{nodes:processedNodes,edges:processedEdges,config:finalConfig,rootNode:mindmapRoot,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(shapes),type:"mindmap",diagramId:"mindmap-"+v4()}}getLogger(){return log}},"MindmapDB"),_a),mindmapRenderer_default={draw:__name(async(text,id,_version,diagObj)=>{var _a2,_b;log.debug("Rendering mindmap diagram\n"+text);const db=diagObj.db,data4Layout=db.getData(),svg=getDiagramElement(id,data4Layout.config.securityLevel);data4Layout.type=diagObj.type,data4Layout.layoutAlgorithm=getRegisteredLayoutAlgorithm(data4Layout.config.layout,{fallback:"cose-bilkent"}),data4Layout.diagramId=id;if(!db.getMindmap())return;data4Layout.nodes.forEach(node=>{"rounded"===node.shape?(node.radius=15,node.taper=15,node.stroke="none",node.width=0,node.padding=15):"circle"===node.shape?node.padding=10:"rect"===node.shape?(node.width=0,node.padding=10):"hexagon"===node.shape&&(node.width=0,node.height=0)}),await render(data4Layout,svg);const{themeVariables:themeVariables}=getConfig(),{useGradient:useGradient,gradientStart:gradientStart,gradientStop:gradientStop}=themeVariables;if(useGradient&&gradientStart&&gradientStop){const svgId=svg.attr("id"),gradient=svg.append("defs").append("linearGradient").attr("id",`${svgId}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");gradient.append("stop").attr("offset","0%").attr("stop-color",gradientStart).attr("stop-opacity",1),gradient.append("stop").attr("offset","100%").attr("stop-color",gradientStop).attr("stop-opacity",1)}setupViewPortForSVG(svg,(null==(_a2=data4Layout.config.mindmap)?void 0:_a2.padding)??defaultConfig_default.mindmap.padding,"mindmapDiagram",(null==(_b=data4Layout.config.mindmap)?void 0:_b.useMaxWidth)??defaultConfig_default.mindmap.useMaxWidth)},"draw")},genSections=__name(options=>{const{theme:theme,look:look}=options;let sections="";for(let i=0;i<options.THEME_COLOR_LIMIT;i++)options["lineColor"+i]=options["lineColor"+i]||options["cScaleInv"+i],isDark(options["lineColor"+i])?options["lineColor"+i]=lighten(options["lineColor"+i],20):options["lineColor"+i]=darken(options["lineColor"+i],20);for(let i=0;i<options.THEME_COLOR_LIMIT;i++){const sw=""+("neo"===look?Math.max(10-2*(i-1),2):17-3*i);sections+=`\n .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {\n fill: ${options["cScale"+i]};\n }\n .section-${i-1} text {\n fill: ${options["cScaleLabel"+i]};\n }\n .section-${i-1} span {\n color: ${options["cScaleLabel"+i]};\n }\n .node-icon-${i-1} {\n font-size: 40px;\n color: ${options["cScaleLabel"+i]};\n }\n .section-edge-${i-1}{\n stroke: ${options["cScale"+i]};\n }\n .edge-depth-${i-1}{\n stroke-width: ${sw};\n }\n .section-${i-1} line {\n stroke: ${options["cScaleInv"+i]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {\n fill: ${"redux"===theme||"redux-dark"===theme||"neutral"===theme?options.mainBkg:options["cScale"+i]};\n stroke: ${"redux"===theme||"redux-dark"===theme?options.nodeBorder:options["cScale"+i]};\n stroke-width: ${options.strokeWidth??2}px;\n }\n [data-look="neo"].section-edge-${i-1}{\n stroke: ${(null==theme?void 0:theme.includes("redux"))||"neo-dark"===theme?options.nodeBorder:options["cScale"+i]};\n }\n [data-look="neo"].mindmap-node.section-${i-1} text {\n fill: ${"redux"===theme||"redux-dark"===theme?options.nodeBorder:options["cScaleLabel"+("neutral"===theme?1:i)]};\n }\n `}return sections},"genSections"),genGradient=__name((THEME_COLOR_LIMIT,svgId,mainBkg)=>{let sections="";for(let i=0;i<THEME_COLOR_LIMIT;i++)sections+=`\n [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {\n stroke: url(${svgId}-gradient);\n fill: ${mainBkg};\n }\n .section-${i-1} line {\n stroke-width: 0;\n }`;return sections},"genGradient"),styles_default=__name(options=>{const{theme:theme}=options,svgId=options.svgId,scopedDropShadow=options.dropShadow?options.dropShadow.replace("url(#drop-shadow)",`url(${svgId}-drop-shadow)`):"none";return`\n .edge {\n stroke-width: 3;\n }\n ${genSections(options)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${options.git0};\n }\n .section-root text {\n fill: ${options.gitBranchLabel0};\n }\n .section-root span {\n color: ${(null==theme?void 0:theme.includes("redux"))?options.nodeBorder:options.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n [data-look="neo"].mindmap-node {\n filter: ${scopedDropShadow};\n }\n [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {\n fill: ${(null==theme?void 0:theme.includes("redux"))?options.mainBkg:options.git0};\n }\n [data-look="neo"].mindmap-node.section-root .text-inner-tspan {\n fill: ${(null==theme?void 0:theme.includes("redux"))?options.nodeBorder:options["cScaleLabel"+("neutral"===theme?1:0)]};\n }\n ${options.useGradient&&svgId&&options.mainBkg?genGradient(options.THEME_COLOR_LIMIT,svgId,options.mainBkg):""}\n`},"getStyles"),diagram={get db(){return new MindmapDB},renderer:mindmapRenderer_default,parser:mindmap_default,styles:styles_default};export{diagram};
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet" fill="#D97757">
3
+ <svg width="100" height="100" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet" overflow="hidden">
4
+ <animate attributeName="viewBox" calcMode="discrete" values="0 0 100 100;0 100 100 100;0 200 100 100;0 300 100 100;0 400 100 100;0 500 100 100;0 600 100 100;0 700 100 100;0 800 100 100;0 900 100 100;0 1000 100 100;0 1100 100 100;0 1200 100 100;0 1300 100 100;0 1400 100 100;0 1500 100 100;0 1600 100 100;0 1700 100 100" dur="1.800s" repeatCount="indefinite" />
5
+ <g clip-path="url(#a)"><path d="M17.834 47.263c2.515.153 5.032.358 7.545.544.721.052 1.457-.055 2.177.003 4.03.323 8.028 1.15 12.088 1.089.092-.599-.454-.924-.85-1.242-5.954-4.781-13.792-9.032-20.183-13.45-2.57-1.776-6.282-4.192-8.577-6.149-2.064-1.76-2.193-3.728-2.345-6.31l2.496-2.964c.521-.559 1.17-.096 1.744-.078 1.035.032 1.999-.112 2.995.277 7.705 5.807 15.371 11.665 23.102 17.44.807.603 1.388.626.86-.498-1.502-3.2-3.8-6.914-5.57-10.065-2.97-5.283-6.09-10.491-9.248-15.664-.25-1.686-1.274-3.678-.954-5.393.051-.275 2.811-4.152 3.04-4.278.168-.092 1.569-.513 1.761-.52 1.771-.065 4.828.535 5.892 2.082 2.086 4.702 4.02 9.494 6.227 14.14 2.686 5.656 6.53 11.692 8.833 17.35.282.696 1.139 4.437 1.321 4.591.068.057.557.033.633-.183.455-2.532.403-5.16.639-7.728.34-3.7.901-7.401 1.269-11.097.382-3.828.324-7.837.92-11.628.066-.417 1.557-3.907 1.822-4.18.157-.162 2.535-1.759 2.722-1.827.623-.229 2.395.487 2.887.917.121.106 1.592 2.176 1.663 2.337.486 1.115-.352 4.341-.541 5.672-1.182 8.324-3.014 16.511-4.38 24.806.709.14 1.117-.446 1.545-.907 3.681-3.944 7.203-9.617 10.818-13.91 1.32-1.57 7.888-9.086 9.359-9.368l4.413.034 2.945 4.613c.035.255-1.188 4.609-1.377 4.975-.948 1.835-4.33 5.4-5.784 7.307-3.488 4.577-8.162 10.089-10.568 15.251-.14.3-.324.556-.264.916 4.142-.5 8.215-1.692 12.32-2.492 4.076-.794 9.585-2.093 13.601-2.394 1.25-.094 3.182.467 4.196 1.21.55.403.852 1.42.747 2.084-.037.233-1.049 2.754-1.198 3-.096.159-.143.323-.354.373-10.406 2.638-20.985 4.524-31.403 7.134l-.455.543c2.33-.188 4.702.436 6.99.554 2.985.152 6.107-.141 9.103-.016 4.058.17 8.225.896 12.313.955 1.23.82 2.87 1.6 3.84 2.705.198.226 1.286 1.757 1.333 1.938.148.567.015 2.224-.426 2.577-.34.27-4.007 2.09-4.486 2.24-.313.098-.58.22-.924.13l-28.287-6.717c-.082.315.13.364.27.545.992 1.292 3.195 3.272 4.452 4.457 5.983 5.642 12.363 10.904 18.277 16.631.403.462.896 2.372.734 2.922-.087.296-1.155 1.735-1.428 1.869-.446.218-1.22-.04-1.652-.261-2.052-1.052-6.902-5.073-8.926-6.709-3.563-2.877-6.93-6.289-10.551-9.084-.237-.183-1.312-1.154-1.54-.913l.168 1.013 11.42 17.125c-.045 1.42 1.032 4.985-.186 6.002-.107.088-2.41.885-2.611.899-.284.018-2.44-.394-2.668-.522-5.972-7.842-11.31-16.146-16.216-24.695l-.63-.187-2.364 24.553c-.255.001-.29.336 0 .364-.357 2.103.037 5.596-1.93 6.889-.232.151-2.498 1.044-2.752 1.084s-.338.045-.58-.063c-.13-.058-2.182-1.624-2.27-1.736-.172-.218-1.35-2.94-1.366-3.183 1.415-6.924 3.044-13.824 4.297-20.781.624-3.468.759-7.042 1.874-10.4l-.647.17C41.918 73.356 35.575 83.337 27.2 91.64c-1.965 1.674-3.155.588-5.01-.49l.198-2.687c5.549-7.681 11.36-15.3 17.265-22.737 1.08-1.36 2.415-2.666 3.44-4.014.301-.395.773-.826.731-1.359-.244-.233-2.495 1.31-2.892 1.56-7.909 5.013-15.63 10.34-23.514 15.392l-4.746.688c-.776-.092-1.723-1.387-2.26-1.95l.19-3.013c.077-.258.724-.812.967-1.032 1.885-1.705 6.119-4.387 8.39-5.79 6.106-3.771 12.827-6.952 19.025-10.609.506-.405.639-.897.298-1.43-.14-.218-.137-.314-.456-.365-.514-.081-.774.182-.816.184-6.45.192-13.47-.83-19.993-.728l-.093-.18-.27.18c-3.905-.386-8.022-.182-11.904-.547-.811-.077-3.194-.35-3.733-.811-.15-.129-1.864-2.478-1.912-2.632-.539-1.712 1.104-2.497 2.382-3.093l12.441.9.093.18.27-.18 2.182.181.092.181.271-.18z"/><path d="M39.281 54.174c-.426-.014-.919.125-1.272-.182.042 0 .3-.264.816-.184.32.05.316.147.456.366M15.29 47.081l-.271.181-.093-.18.218-.123zm2.544.182-.27.18-.093-.18.145-.123zm32.099 87.831c.64-4.96 2.042-9.892 2.696-14.839.699-5.278.325-11.71 2.34-16.559.049-.119 1.552-1.853 1.68-1.951 1.11-.839 3.248-.115 4.235.659.32.251 2.076 2.814 2.088 3.143-.587 6.521-2.546 13.063-3.402 19.48-.22 1.653-.215 3.399-.385 5.066-.165 1.611-.613 3.195-.541 4.818.338-.189.646-.53.9-.823 3.699-4.27 7.025-9.401 10.716-13.803 1.652-1.971 3.521-3.762 5.169-5.727.703-.84 1.55-2.6 2.447-3.002.503-.226 2.657-.802 3.185-.824.81-.036 1.758.632 2.767.408l2.94 4.61c.035.255-1.185 4.605-1.374 4.972-1.138 2.205-5.296 6.626-7.045 8.938-1.965 2.599-4.287 5.419-6.063 8.103-1.388 2.098-2.377 4.457-3.84 6.511 4.252-.598 8.45-1.711 12.663-2.58 2.189-.452 4.408-.769 6.6-1.205 2.653-.527 5.875-1.754 8.592-1.595 1.203.07 3.53 1.8 3.487 3.166-.015.447-1.174 3.578-1.549 3.751l-28.886 7.731c-.004.25 1.623.402 1.925.432 3.74.38 7.489.041 11.235.196 3.13.13 9.251.346 12.105.961.986.211 2.258.844 3.32 1.036L100 160.07l-.395 2.057c-1.775.733-3.426 1.991-5.296 2.418-9.129-2.306-18.341-4.185-27.681-5.458 1.23 1.327 2.487 2.668 3.808 3.908 1.525 1.432 3.384 3.139 4.997 4.445 3.939 3.187 9.588 6.017 13.133 9.201 1.429 1.283 1.995 3.584 2.004 5.464.006 1.214-2.844 3.338-3.975 2.875-3.943-3.289-8.51-6.082-12.432-9.36-2.648-2.215-4.998-4.838-7.532-7.177-.298-.274-2.702-2.477-2.906-2.268 3.663 7.873 8.933 14.85 13.467 22.223l.058 4.683c-.896.173-2.556 1.496-3.296 1.575-.291.031-1.979-.361-2.197-.543-3.504-5.476-6.936-10.993-10.606-16.364-1.354-1.98-3.548-5.716-5.05-7.3-1.398-1.473-1.697 1.204-1.81 2.178-.81 6.949-.593 13.956-1.083 20.908-.155 2.197-1.828 5.152-3.938 6.053-.49.21-2.506.468-3.062.401-1.799-.215-1.613-2.167-1.951-3.501-.144-.569-.678-1.303-.664-1.849.026-1.04.711-3.134.875-4.406 1.004-7.813 1.79-15.669 3.092-23.446l-.257-.61-13.16 17.893c-2.384 2.165-4.532 5.371-6.88 7.467-.208.184-1.745.932-1.945.95-.342.031-.726-.372-1.102-.463-.515-.124-.99.005-1.55-.265-.113-.055-1.432-1.124-1.507-1.217-.363-.453-.355-1.675-.213-2.242.229-.907 3.245-5.328 3.981-6.372 3.6-5.107 7.74-9.909 11.191-15.144l.194-.961c-.408-.575-2.63.832-3.126 1.113-5.351 3.026-10.42 7.084-15.73 10.235-1.944.617-3.802 1.111-5.908.823-.568-.077-1.822-.996-1.903-1.563-.096-.67.74-1.765 1.008-2.439.186-.47.007-.867.366-1.45.265-.43 1.048-.92 1.477-1.247 8.345-6.349 17.784-11.209 26.796-16.598l.296-.701-17.153-.009c-5.285-.152-11.656.932-16.849.352-.462-.052-4.052-.907-4.191-1.072-.655-1.724-1.58-2.864-1.363-4.816.06-.541.585-1.951.99-2.278.224-.18 2.6-1.043 2.906-1.053 1.268-.04 3.188.418 4.543.513 8.62.611 17.157 2.016 25.763 2.548 1.411.087 2.856.227 4.265.361.123-.611-.596-.909-1.031-1.238-6.94-5.252-14.76-10.454-21.955-15.449-2.334-1.62-4.77-3.09-7.126-4.676-.745-1.789-2.007-4.342-.992-6.249.19-.358 2.434-2.315 2.808-2.457.253-.097 1.276-.291 1.524-.276.419.028.746.416 1.137.497.682.143 1.3.028 2.044.316 1.563.605 5.183 3.958 6.841 5.143 2.692 1.925 5.548 3.649 8.28 5.52 3.005 2.059 6.646 5.121 9.713 6.811.25.138.42.318.753.243.182-.178-.508-1.197-.65-1.438-4.47-7.579-9.79-15.105-14.193-22.679-.639-1.098-2.97-5.272-3.216-6.23-.65-2.536 1.5-4.32 2.573-6.38l4.688.742C36.94 111.65 43.29 123.12 49.23 134.794l.7.298zM32.93 244.974c-2.947-1.954-5.756-4.461-8.665-6.523-6.646-4.711-13.73-8.822-20.365-13.552-.064-.931-.387-1.486-.022-2.402.113-.283 1.525-2.654 1.67-2.785.424-.382 3.081-1.564 3.649-1.506.897.091 1.815.27 2.749.356l2.993.277 24.442 18.481c-.159-.722-.485-1.451-.788-2.123-3.23-7.176-6.386-13.829-10.676-20.444-1.561-2.408-3.334-4.689-4.943-7.067-.014-.851-.193-1.944.103-2.733.09-.238 2.772-3.77 3.05-4.045.523-.516 1.561-1.026 2.305-.884.468.089 3.724 1.428 4.126 1.699.5.337 3.29 4.014 3.68 4.689 2.504 4.349 3.485 9.99 5.381 14.64l7.302 15.724c.445.058.288-.003.38-.253.116-.319.226-.817.295-1.162 1.24-6.231 1.186-13.268 1.687-19.621.16-2.027.298-6.387.806-8.116.068-.232 2.328-3.973 2.513-4.127.255-.214.762-.234 1.1-.448.796-.508 2.403-1.918 3.253-1.754.399.076 1.92.783 2.214 1.071.132.129 1.593 2.226 1.64 2.362.43 1.252-.696 5.706-.808 7.371-.11 1.653.133 3.433-.023 5.077-.46 4.804-2.488 10.337-3.205 15.183-.112.751.05 1.535-.043 2.234-.005.034-.477.493.089.365.205-.046.033-.301.093-.365 4.041-4.367 7.562-9.85 11.45-14.476 1.797-2.135 3.828-4.076 5.625-6.201.613-.726 1.16-1.916 1.814-2.553 2.005-1.948 5.813-1.991 8.36-1.264l1.632 2.726c.014.442-.748 1.333-.861 1.864-.384 1.791-.559 4.203-1.416 5.867-.85 1.649-3.929 4.87-5.237 6.589-4.158 5.463-8.45 10.844-11.552 17.014 4.126-.71 8.26-1.619 12.353-2.55 3.684-.838 8.57-2.512 12.127-2.961.992-.125 3.17-.175 4.143-.057s1.013.559 1.47 1.01c.196.192.353.739.593 1.112.994 1.545-.519 3.363-.873 4.88-5.607 1.669-11.399 2.572-17.1 3.843-3.151.702-9.724 1.848-12.3 3.335-.251.145-.485.227-.415.583 2.149.035 4.307.095 6.456.175 4.972.186 10.234-.128 15.164.554.038.006.121.188.25.153l.113-.153c1.706.128 7.136.432 8.152 1.754.139.18.997 2.214 1.037 2.437.085.48.121.604.094.869-.018.189-.051.476-.004.852.034.282-.127 1.91-.229 2.068-.145.227-4.56 2.315-4.824 2.366-.318.062-.51.031-.815-.007-5.215-.629-11.157-3.177-16.42-3.945-1.264-.185-3.22-.329-4.516-.391-1.53-.072-3.118-.007-4.642.101-.046.52 1.051 1.443 1.452 1.822 6.442 6.101 13.646 11.451 20.091 17.562.417.61.642 2.195.27 2.845-.542.948-2.242 2.126-3.382 2.065-.161-.008-2.565-1.272-2.866-1.467-4.325-2.796-9.341-7.722-13.48-11.077-2.145-1.74-4.358-3.404-6.537-5.101 1.303 2.461 3.057 4.838 4.741 7.084 2.6 3.466 6.957 7.832 9.022 11.356.54.922 1.748 4.073.37 4.648-1.76.734-4.09.131-5.917.042-4.887-6.158-9.678-12.407-14.669-18.486-.79-.96-1.714-2.24-2.543-3.097-.172-.178-.238-.344-.54-.276l-2.623 28.79c-.69 2.307-5.901 4.591-7.141 1.853-.28-.618-.907-3.041-1.088-3.827-1.336-5.771 1.31-16.486 1.583-22.902.038-.894.156-1.908-1.055-1.694L34.2 284.038c-2.33 1.905-4.817 5.964-7.084 7.653-.651.485-1.668.492-2.312.779-.364.162-.588.642-.901.735-2.015.604-3.975-.824-3.964-2.865 1.45-2.134 2.853-4.289 4.383-6.368 4.786-6.505 10.327-12.539 14.747-19.276l.04-1.69-21.618 14.118c-1.303.109-3.207.692-4.45.649-.613-.021-.826-.465-1.282-.551-.662-.126-1.21.161-1.764.13-.202-.012-2.01-.518-2.13-.599-.883-.594-.845-3.765-.51-4.691l.225-.32 27.893-16.295c-.172-.264-.349-.252-.623-.282-4.302-.467-8.955-.142-13.27-.54-2.894-.267-5.996-1.082-8.907-1.27-2.254-.146-4.643.106-6.91.005-.72-.032-2.472-.1-3.042-.229-.57-.128-2.49-2.661-2.63-3.192-.292-1.121.139-2.529 1.068-3.214 1.49-1.098 2.193-.453 3.707-.462 7.203-.044 14.516-.261 21.709-.561.13-.006.425.013.726 0 1.862-.08 3.78-.19 5.633-.364.291-.028.421.115.364-.272.014-.196-.293-.045-.364-.093z"/><path d="m44.926 374.132.34-3.171c-.237-.452-.76-.367-1.076-.026-5.771 7.322-11.668 14.518-17.277 21.959-2.719.827-7.358.637-6.611-3.368.079-.42 3.05-5.164 3.538-5.91 4.641-7.1 10.209-12.387 15.471-18.86.168-.205.44-.294.36-.637-1.516.152-2.61 1.311-3.79 1.921-6.793 3.505-11.198 6.746-17.45 10.864-1.807 1.19-4.243 2.777-6.427 3.022-.504.057-2.842-1.203-3.131-1.553-.502-.607-.714-2.282-.496-3.021.155-.527 1.704-1.604 2.124-2.052 3.957-4.211 8.605-6.474 13.364-9.689 3.27-2.208 8.364-5.337 11.082-7.978 1.255-1.219-2.011-.752-2.797-.794-6.646-.357-13.274-.077-19.908 0-3.727.042-7.414-.469-11.116-.766-.668-1.662-1.21-2.559-1.115-4.429.111-2.199.455-2.798 2.458-3.734l8.488.735c8.015-.409 16.074-.096 24.107-.181l.803-.464c-5.462-4.738-11.674-8.444-17.623-12.506-1.924-1.314-3.7-2.865-5.644-4.158-1.487-.989-6.054-3.188-6.567-4.687-.386-1.13-.262-3.422.417-4.399 1.19-1.713 1.442-1.443 2.461-1.737.485-.141 1.026.284 1.317.071.533-.389 3.842-.1 4.603.132 6.276 4.51 12.142 9.577 18.445 14.05 1.526 1.082 2.999 2.267 4.766 2.946l-.173-.826-14.228-24.115c-.953-3.161.684-5.944 1.59-8.877 1.82-1.365 3.257-.467 5.032.447 3.753 6.884 7.968 13.533 11.678 20.439 2.46 4.579 4.86 9.277 6.517 14.21l.456-.109c.043-1.38.185-2.785.385-4.147.732-4.977 1.73-10.289 1.975-15.313.13-2.648-.054-12.81 1.077-14.575.179-.279 2.06-2.691 2.213-2.781.354-.206 2.163.126 2.602.31.501.21.673.675.99.826.758.36 1.745.436 2.59 1.038.537.385 2.066 2.534 2.121 3.158-1.246 9.642-3.34 19.125-5.078 28.676 1.016-.926 1.993-1.969 2.891-3.009 4.293-4.972 8.02-10.494 12.41-15.383.893-.995 3.195-3.504 4.166-4.187.445-.312 3.547-1.554 4.012-1.58.305-.017 2.835.765 2.927.891-.263 1.697 2.3 3.757 2.407 4.968.04.474-1.058 4.356-1.325 4.875-4.258 5.737-9.312 11.325-13.255 17.265-.233.351-2.259 3.66-2.098 3.806 6.48-1.241 12.928-2.695 19.38-4.094 2.666-.578 4.412-1.365 7.338-1.008.756.093 1.636.737 2.231 1.217.3.755.266 1.636.354 2.217.018.122-.178.556-.047.926.602 1.687-.424 3.495-1.314 4.891-8.053 2.05-16.24 3.478-24.324 5.407-1.055.252-2.384.481-3.376.795-.24.077-.551.063-.607.389 2.315.146 4.686.705 6.976.909 5.573.497 11.697.33 17.204 1.096.811.112 3.204.679 3.886 1.008.126.061 1.677 1.613 1.725 1.725.327.765.603 1.135.643 1.719.021.303-.043.678 0 .925.076.438-.463 2.059-.727 2.363l-4.977 2.432c-8.232-1.775-16.233-4.432-24.64-5.256-1.067-.105-2.084.014-3.168-.365 3.908 4.448 8.603 8.052 13.043 11.922 1.268 1.105 2.434 2.451 3.716 3.548 1.243 1.065 4.677 3.239 5.466 4.244.279.355 1.041 3.021 1.1 3.55.139 1.247-1.94 2.891-3.213 2.307-7.498-5.098-13.755-11.84-21.559-16.468-.122.158 1.097 2.74 1.292 3.16 2.374 5.103 5.224 9.649 7.793 14.561.41.782 1.532 2.688 1.384 3.446-.267 1.371-1.147 1.933-2.459 2.092-2.627.319-4.002-3.267-5.329-5.108a1939 1939 0 0 1-12.033-16.853c-.62-.35-.888-.315-.98.426-.584 4.681-1.273 9.363-1.807 14.024-.506 4.412-.889 8.835-1.303 13.257-.854 1.261-2.665 2.726-4.21 2.867-.445.041-2.282-.046-2.593-.233-.15-.091-1.3-2.149-1.492-2.506-.01-.292.112-.755-.181-.911.03-.164-.026-.376 0-.546.082-.531-.007-.614 0-.728.416-6.87 1.509-13.695 1.811-20.575l.18-.093-.18-.271zm5.926 64.742c.043.085-.1.377.093.365l.27-.003c.01-.119-.01-.244.001-.363.24-2.425.101-5.04.546-7.459.008-.04.19-.12.154-.251l-.154-.113c1.1-7.915 1.66-15.905 2.638-23.837.623-.874.883-2.657 1.474-3.44.185-.244 2.828-1.935 3.129-1.984 1.627-.27 4.19 2.689 4.424 4.232-.868 10.161-4.571 20.472-5.655 30.487-.011.097-.367.439-.09.547.413.054.353-.367.454-.547.611-1.091 1.127-1.407 1.816-2.28 3.446-4.361 6.772-8.872 10.392-13.089 2.873-3.347 6.067-6.902 9.602-9.511l4.236.045 3.091 4.738-1.38 4.797c-4.25 5.694-9.237 11.111-13.257 16.958-1.508 2.192-2.583 4.71-4.299 6.711 9.239-1.744 18.427-3.732 27.77-4.923.489.031 3.337 1.439 3.516 1.781.724 1.382-.492 3.552-1.134 4.791-10.678 2.77-21.675 4.296-32.337 7.175.784.719 1.89.356 2.82.458 8.548.938 17.154.662 25.713 1.787 2.282 1.082 4.025 2.539 5.315 4.712l-.147 2.111-5.346 2.617-27.761-7.002-1.14-.042c-.082.315.131.363.272.545 1.3 1.693 4.18 4.259 5.824 5.826 5.59 5.325 11.51 10.325 16.953 15.813.327.477.753 2.249.593 2.789-.051.172-1.1 1.55-1.29 1.642-.509.246-1.153-.053-1.619-.297-2.113-1.109-6.92-5.16-8.98-6.857-3.5-2.882-7.143-6.885-10.757-9.45a4.7 4.7 0 0 0-1.455-.728l.376 1.078 11.33 17.245c-.01 1.441.896 4.97-.183 6.006-.109.104-2.56.933-2.791.943-.278.012-2.249-.44-2.5-.571-.373-.194-.73-.824-1.005-1.179-5.915-7.628-10.206-16.131-15.298-24.199-.1-.16-.174-.404-.398-.419-1.303 10.308-2.272 20.636-3.316 30.984-.733 1.241-2.468 2.342-3.902 2.484-.737.073-2.553-1.163-2.988-1.714-.34-.431-1.284-2.905-1.275-3.453 1.281-6.029 2.762-12.029 3.956-18.077.84-4.255 1.267-8.591 2.423-12.769l-.689.041-15.063 20.155-7.188 7.555c-2.212 1.579-2.846.13-4.895-.673-.107-.17.146-2.584.25-2.874.102-.291 1.349-1.952 1.647-2.357 4.963-6.759 10.955-13.929 16.29-20.479.498-.613 4.058-4.427 4-4.732-.044-.235-.46-.361-.674-.133l-26.108 16.677-4.963.618-1.944-2.068.214-2.871c.065-.226.909-1.011 1.151-1.215 2.096-1.751 6.102-4.232 8.525-5.675 6.096-3.63 12.613-6.641 18.763-10.185.644-.385.912-1.231.36-1.799-1.863-.059-3.75-.078-5.613-.177-9.399-.501-19.815-.387-29.096-1.5-.484-.058-2.063-.424-2.419-.677-.16-.112-1.953-2.548-2.01-2.723-.519-1.599.835-2.083 1.924-2.739l.546-.182c9.64 1.171 19.452 1.211 29.051 2.546l9.014.727c-.438-.533-1.108-1.108-1.654-1.53-6.34-4.894-13.684-9.141-20.26-13.784-2.312-1.634-7.073-4.76-8.872-6.602-1.62-1.66-1.587-3.459-1.83-5.65.219-.618 2.18-2.991 2.692-3.142.606-.178 4.002.161 4.59.436 7.99 6.32 16.091 12.574 24.24 18.63l.276.547c.818-.117-.04-.437-.093-.547-4.645-9.424-9.846-18.603-15.169-27.693-.484-1.724-1-3.474-1.006-5.286 1.3-1.32 2.424-4.253 4.327-4.597.716-.13 4.075.259 4.792.505.124.043 1.633 1.391 1.735 1.542 2.251 5.106 4.263 10.343 6.621 15.4 2.443 5.237 5.91 10.746 8.022 16.003.705 1.757.923 3.7 1.788 5.4z"/><path d="M58.137 436.509c-.101.18-.041.601-.454.547-.277-.108.079-.45.09-.547zm-6.375-5.094-.153-.113c-.034-.129.148-.213.153-.251l.154.113c.035.131-.146.211-.154.251m-.546 7.459c-.012.119.01.244 0 .363l-.271.003c-.193.012-.05-.28-.093-.365zm-11.474-1.273c.054.11.91.43.093.546l-.275-.546zm9.455 96.346c.021.061-.036.998.362.535.074-.085-.028-.444-.18-.535 1.077-7.706 1.35-15.771 2.592-23.432.267-1.643 1.428-6.164 2.68-7.184.27-.22 2.617-1.63 2.843-1.678.431-.089 2.409.641 2.823.899.201.126 1.78 2.546 1.861 2.813.234.769-.203 1.391-.1 2.151l-.18.091.18.266c-.032 5.313-.625 10.554-1.272 15.803-.407 3.304-1.04 6.587-1.266 9.913 2.064-2.414 3.963-4.961 5.99-7.407 2.554-3.083 5.32-6.492 8.066-9.382 1.046-1.101 4.907-5.034 6.166-5.181 1.242-.146 2.781.088 4.058.033l2.746 4.532-1.476 4.965-13.108 16.921-3.009 5.161c6.06-1.253 12.057-2.846 18.135-4.023 1.926-.373 7.143-1.593 8.764-1.29.249.046 2.787 1.107 2.928 1.225 1.256 1.061-.26 3.777-.604 5.041-5.6 2.002-11.547 3.114-17.327 4.599-4.434 1.139-8.896 2.544-13.348 3.558-.365.083-.853-.241-.725.356.24.011.484-.01.725.001 1.533.071 3.09.231 4.623.36 4.218.352 8.485.532 12.704.888 2.915.246 6.996.357 9.755.935.358.075 3.28 1.886 3.584 2.186.235.232 1.78 2.67 1.808 2.878.06.439-.462 1.947-.81 2.226-.304.243-4.91 2.125-5.244 2.124l-28.779-6.416c-.052.277.028.413.173.633.453.688 3.032 3.151 3.814 3.924 4.841 4.79 10.079 9.279 14.976 14.01.719.693 3.547 3.269 3.808 3.93.722 1.818-.046 4.576-2.406 3.798-6.948-4.694-12.73-10.955-19.19-16.112-.652-.52-1.2-1.023-2.08-1.075l11.468 17.905c.362 1.442.363 2.941.503 4.416-.183.051-.155.211-.181.357-.032.175-.01.342-.085.534-.74 1.883-4.287 1.86-5.894.976-3.815-5.514-7.593-11.065-11.039-16.814-.83-1.384-1.787-3.669-2.704-4.829-.117-.147.003-.328-.414-.224.123 1.721-.347 3.392-.544 5.089-.802 6.882-1.342 14.056-2.379 20.875-.233 1.534-.726 2.915-2.172 3.755-.4.233-2.926 1.037-3.3.969-.288-.053-2.574-1.503-2.76-1.762-.226-.312-.915-2.553-1.001-3.033l.18-.266-.18-.091.181-1.429.16-.244-.16-.113c.766-8.295 1.766-17.588 3.101-25.788.077-.468.372-.869.344-1.356l-13.429 17.227-7.244 7.513c-.359.249-2.037.827-2.418.767-.152-.025-2.568-1.375-2.67-1.486-.118-.126-.163-.186-.19-.365-.018-.121.194-2.299.235-2.452.09-.344 1.477-2.231 1.804-2.689 5.247-7.319 11.537-14.766 17.196-21.825.299-.373.741-.86.824-1.331L16.49 575.774l-4.929.679-2.25-2.093c.32-1.893-.261-2.925 1.436-4.239 2.194-1.699 5.92-3.872 8.392-5.311 6.312-3.671 13.058-6.722 19.365-10.404l.168-.637c-10.666-.75-21.401-.931-32.022-2.142-.637-.072-1.33.064-1.978-.017-.402-.05-2.373-.599-2.637-.797S.102 548.272.04 547.958c-.313-1.596 1.261-2.555 2.618-2.959 7.91.675 15.857.977 23.768 1.628 3.933.323 8.79 1.305 12.61 1.248.17-.002.547.073.547-.089l-.546-.089c-.107-.643-.886-1.009-1.395-1.396-6.127-4.664-12.899-8.774-19.164-13.28-2.248-1.617-6.44-4.376-8.268-6.148-.289-.279-1.253-1.518-1.384-1.851-.146-.368-.653-3.456-.64-3.854.004-.155.007-.299.099-.432l2.762-2.837 4.572.613c6.906 5.816 14.225 11.118 21.326 16.689.328.257 2.368 2.223 2.635 1.958-.192-.544-.34-1.146-.566-1.674-2.754-6.396-7.372-13.844-10.832-20.053-1.752-3.146-3.347-4.871-3.965-8.598-.131-.796-.421-1.725-.101-2.489.093-.223 2.832-3.66 3.032-3.8.433-.303 1.644-.559 2.183-.544.458.011 3.353.494 3.723.636.478.184 1.583 1.303 1.846 1.754 3.708 10.266 8.994 19.823 13.545 29.705.276.598.537 1.228.751 1.85zm-9.524 3.393v.179q.177-.09 0-.179"/><path d="M67.52 552.341v.357c-.24-.012-.484.01-.724-.001-.129-.597.36-.273.725-.356m-18.142-18.394c.152.091.254.45.18.535-.398.464-.34-.474-.362-.535zm-5.443 59.467c-.088.024-.16-.018-.153-.11.014-.166.151-.23.153-.247l.16.113zm-.181 1.786c-.011-.06-.29-.16 0-.357l.18.091zm-4.717-47.502.546.089c0 .162-.378.087-.546.089zm-13.719 92.588c.11-.505.502-2.618.32-2.92-3.987-2.518-7.608-5.453-11.263-8.38-1.324-1.06-4.574-2.99-5.069-4.516-.106-.326-.487-3.411-.458-3.751.065-.767 2.243-2.364 2.86-3.017l4.432.543c3.736 2.563 7.146 5.571 10.824 8.197.309.221 1.095.934 1.432.728.47-.288 2.35-5.474 3.112-6.233a1.2 1.2 0 0 0 .138-.72c-.057-.551-1.849-3.697-2.256-4.456-1.645-3.072-3.65-5.486-4.206-8.997-.1-.628-.355-2.147-.132-2.649.973-.72 2.375-3.297 3.284-3.795 1.183-.648 4.205-.175 5.486.222 2.684.834 3.691 6.699 4.877 8.961.28.196 1.998-1.717 2.346-2.002 4.752-3.899 11.846-6.76 18.086-5.043 7.024 1.933 11.238 8.176 15.115 13.646.29.058 2.515-2.314 2.96-2.69.263-.222 1.987-1.577 2.117-1.615.473-.136 4.188-.093 4.499.126.175.123 2.076 3.234 2.226 3.596.615 1.479-.786 3.93-1.175 5.443l-5.28 6.754c.736 3.576 1.299 7.191 1.592 10.83 1.995-.267 3.95-.918 5.932-1.339 1.705-.361 7.164-1.638 8.499-1.326.404.095 2.543.918 2.811 1.12.434.328.672 1.11.671 1.63 0 .572-.967 3.451-1.406 3.705l-15.217 4.579-.207 5.368 12.34 1.434c.23.067 3.725 2.106 3.877 2.269.105.113 1.417 2.54 1.458 2.686.252.896-.397 1.942-.97 2.633l-5.23 1.768-12.738-2.444c-.09 3.006-1.043 5.862-1.78 8.748l8.839 8.722.508 2.925c-.859.813-1.693 2.34-3.083 1.636l-9.003-6.554-2.536 6.19c-.027.48.79 1.254.895 1.908.163 1.007.104 2.605.191 3.728-.183.05-.153.206-.18.348-.236 1.258-.347 1.209-1.49 1.611-1.73.608-2.395.268-4.107.036-7.208 8.608-17.317 13.86-27.981 6.74-4.566-3.049-7.754-7.315-10.83-11.682-2.186 1.736-3.453 4.491-6.75 4.426l-2.5-1.513c-.45-2.307.405-3.587 1.654-5.379.642-.919 3.977-4.685 4.092-5.288.165-.867-.908-3.863-1.177-4.948-.27-1.085-.424-2.212-.632-3.307-.252-.049-.447.061-.67.138-2.875.976-6.23 3.626-9.19 4.726l-4.838.318c-1.324-1.163-2.011-1.334-1.942-3.19.015-.383.141-1.767.224-2.044.066-.225.82-.888 1.06-1.067 1.989-1.482 5.777-3.483 8.069-4.76 2.152-1.199 4.45-2.158 6.564-3.425v-7.739c-3.744-.465-7.545-.502-11.298-.871-2.074-.204-9.423-.899-10.826-1.76-.267-.164-2.19-2.656-2.25-2.893-.315-1.264 1.372-2.497 2.416-2.99l5.324.166.27.173.092-.173c.906.044 1.806.12 2.712.173l.27.174.092-.174 13.558 1.042c-.046-.858.384-1.97.363-2.781.238-.084.17-.331.18-.521.013-.229-.026-.471 0-.696.005-.031.48-.318 0-.522zm27.658 1.912c4.697-7.735 10.934-14.414 16.81-21.294-1.968-5.984-7.122-13.866-14.366-14.18-5.89-.255-11.265 4.728-14.013 9.312l7.446 15.959c.777 1.727.988 3.613 1.642 5.377.597 1.613 1.572 3.086 2.112 4.725zm-16.813-13.737c-.38-.054-.292-.019-.401.218-.25.538-.995 3.217-.835 3.663l4.492 3.248-.083-.875zm37.427 7.304c-.247-.28-1.607 1.63-1.773 1.857-.87 1.188-1.556 2.494-2.384 3.706.426.294 3.783-.741 4.495-.892zm-36.34 9.912c-1.259-1.084-2.736-1.957-4.071-2.954-.364-.045-.237.011-.269.255-.109.849-.135 1.841-.18 2.7 1.51-.073 3.029.271 4.52.347.12.006.243 0 .362-.002.008-.207-.25-.25-.362-.346m35.98 3.999-.913.08-3.968 1.31 4.881.525zm-35.799 3.307-5.063-.351.184 2.958c1.625-.849 3.431-1.473 4.88-2.607m35.413 5.935-6.485-1.413 6.06 5.561c.435.076.216-.193.262-.436.232-1.24.231-2.453.163-3.712m-22.928 3.869a2.6 2.6 0 0 1-.88.521 2 2 0 0 0-.909.631l-10.472 12.874a1.88 1.88 0 0 0-.254 1.994c1.968 4.194 3.265 9.272 6.996 12.255 4.042 3.234 8.673 3.37 12.978.495 2.576-1.72 4.855-4.179 6.75-6.65a1.88 1.88 0 0 0 .103-2.148c-3.934-6.35-7.714-12.777-11.132-19.401-.6-1.161-2.183-1.442-3.18-.571m-10.586-1.284v.174q.175-.088 0-.174m-.273.174-5.754 2.809.333 4.147zm30.735 13.738c.196-.923 1.555-3.387 1.177-4.171l-5.52-4.606-1.802-.613 5.635 9.1z"/><path d="M25.319 640.807c-.362-.26-.025-.41 0-.521.48.203.003.49 0 .521m0 .696c-.01.19.057.437-.181.522-.001-.038-.292-.285-.18-.521zM8.143 643.59l-.092.173-.27-.173c.177-.26.312-.002.362 0m3.073.174-.092.173-.27-.173c.015.001.08-.125.218-.118.066.005.108.115.144.118m62.014 5.912.001 1.915-4.881-.524 3.968-1.311zm-35.978-3.999c.112.097.368.139.361.346-.12.001-.241.008-.361.002zm-6.304 54.327c.808-.067 4.163.681 4.748 1.163.316.26.825 1.266 1.26 1.349 2.735-.583 5.54-1.078 8.332-1.344 11.48-1.097 21.002 1.075 30.53 7.296 1.254.818 3.095 2.597 4.219 3.157.272.136.638.049.877.183.211.119.438.872.726 1.196 1.664 1.871 4.799 3.756 6.743 5.718 5.48 5.527 8.406 13.686 10.39 21.02 3.609 13.334-1.062 30.252-9.866 40.901-10.978 13.278-23.51 20.07-41.495 19.298-8.861-.381-16.963-3.396-24.41-7.892C9.173 783.7 4.48 776.435 1.105 760.952c-2.816-12.925-.143-25.851 6.74-37.079l-.455-4.435 2.807-2.792 2.484.006c3.748-4.088 8.437-7.18 13.323-9.862.492-.578-.085-2.257.272-3.022.099-.212 3.087-3.249 3.291-3.369.369-.217.958-.36 1.38-.395m17.468 36.607c.94-.215 4.127.619 4.703.203.4-.29 1.41-1.969 1.858-2.515 5.554-6.766 11.986-14.368 18.473-20.244.44-.399 1.463-.992 1.785-1.376.151-.18.263-.181.088-.442-.177-.264-3.163-1.969-3.706-2.274-9.103-5.123-17.046-6.692-27.55-5.31-2.016.265-3.987.79-5.971 1.194 1.064 3.985 2.27 8.016 3.644 11.922 1.829 5.199 4.743 10.942 6.18 16.124.241.866.25 1.843.495 2.717zm-20.464-24.88a1.08 1.08 0 0 0-.694.085c-.816.359-3.503 2.658-4.356 3.37-.646.539-4.773 4.139-4.7 4.555l19.532 14.812zm64.513 33.891c-.44-3.042-.655-6.137-1.363-9.136-1.173-4.967-4.187-9.888-6.846-14.265-.256-.421-1.716-2.883-2.008-2.885l-.9 1.888c-3.972 5.453-8.959 10.781-12.763 16.289-.176.255-1.039 1.335-.82 1.537 1.502.083 2.987.452 4.446.776 4.847 1.078 9.79 2.123 14.483 3.718.723.246 5.55 2.289 5.77 2.078m-69.48-9.335c-3.621-2.401-6.996-5.211-10.128-8.22l-.524-.079c-1.732 3.565-3.504 7.152-4.272 11.062 4.757-1.641 9.854-1.862 14.836-2.42zm3.874 6.793c-2.99.111-10.775 1.409-13.457 2.122-4.309 1.147-1.5 2.107-.347 3.257 2.583 2.577 14.97 4.761 18.957 5.416 2.541.418 5.108.829 7.675 1.011.172-.107 2.296-2.966 2.408-3.212.06-.13.15-.219.005-.346l-10.414-8.205c-1.596-.185-3.225-.103-4.826-.043m36.06 2.229-5.293 5.765 5.51 4.677c5.717.482 12.355 1.655 18.04.853 2.33-.329 10.094-4.936 5.585-7.657-3.34-2.016-16.102-2.109-20.414-3.067-.724-.161-2.873-.731-3.428-.571m-28.916 16.574c-1.026-.002-2.06-.202-3.058-.397-8.045-1.57-16.254-2.885-23.773-6.176.288 1.663.427 3.366.797 5.017 1.2 5.347 5.407 11.997 8.653 16.485.34.47 2.674 3.725 2.912 3.763a.64.64 0 0 0 .613-.269l13.763-17.909zm57.04-1.211c-2.306.427-4.568 1.141-6.888 1.509-4.087.651-8.317.544-12.387 1.092-.254.034-.524-.164-.447.25l13.399 13.743c3.261-5.02 4.86-10.873 6.323-16.595zm-41.96 2.445c-1.425-.012-2.616-.38-3.9.393-5.128 5.452-9.586 11.766-14.642 17.228-1.62 1.75-3.517 3.285-5.161 5.017-.25.528.908 1.43 1.336 1.815 8.506 7.638 22.093 8.803 32.876 5.878a33 33 0 0 0 4.441-1.557l-.898-.379c-5.265-9.172-10.256-18.536-14.052-28.395m20.104 26.44c.26.044.436-.044.66-.136 2.512-1.034 6.726-3.836 8.842-5.577.303-.25 1.878-1.63 1.877-1.811 0-.222-.193-.392-.356-.527-2.426-1.905-4.981-3.678-7.375-5.62-4.077-3.304-7.744-6.729-12.093-9.677-.709-.481-1.42-1.215-2.13-1.73.389 1.292.813 2.625 1.36 3.864 2.616 5.933 6.48 11.737 9.214 17.667z"/><path d="M49.764 800c6.158-.025 14.075 1.63 19.712 4.185 7.82 3.545 13.421 8.728 19.303 14.889 7.225 7.568 11.731 21.695 11.175 32.219-.584 11.065-2.8 19.057-9.734 27.544-6.077 7.439-13.11 15.097-22.248 18.352-6.709 2.389-17.951 3.616-24.863 2.227-15.454-3.106-33.69-11.951-39.066-28.427-1.82-5.575-4.104-13.242-4.042-18.994.13-12.051 1.982-19.74 7.981-30.05C16.515 807.28 33.496 800.067 49.765 800m40.8 32.945c-2.813-6.28-7.351-15.657-12.54-20.003-8.8-7.371-21.41-11.415-32.723-9.812-.783.11-6.25 1.262-6.417 1.646 2.686 1.435 4.785 3.73 6.661 6.132 1.674.418 3.443.275 5.17.472 6.027.687 12.991 3.28 18.474 5.913 8.513 4.088 15.386 7.577 21.035 15.652.218.312.328 1.063.85 1.229.122-.533-.357-.89-.51-1.229m-75.731-10.706c-.238.283-.897.529-.852 1.052.257.264.896-.777 1.023-.877 2.55-2.022 6.108-4.234 8.884-6.04.707-.461 1.448-.87 2.205-1.241l.508-3.951c-.287-.285-2.706 1.868-3.072 2.191-2.826 2.498-6.272 5.977-8.696 8.866m58.847 55.988c.32.237 4.253-2.431 4.827-2.84 3.823-2.723 10.414-7.823 12.14-12.256 1.745-4.483 1.176-13.861.175-18.603-1.837-8.712-9.595-17.816-16.92-22.254-7.474-4.528-15.572-6.48-24.273-6.351 1.097 1.536 2.237 3.054 3.208 4.683 1.075 1.804 1.888 3.806 2.903 5.612 3.92 6.981 8.237 13.835 10.52 21.646.757 2.597 1.166 5.294 1.876 7.898.969 3.553 2.528 6.945 3.412 10.53.96 3.892 1.155 8.032 2.133 11.935m-7.017 2.609c.217-3.61-.163-7.004-.914-10.509-1.705-7.962-3.66-14.93-6.66-22.458-3.696-9.277-7.819-18.434-13.583-26.567-.473-.668-3.497-4.592-3.902-4.775l-8.353 1.584c-.277.238-.191 2.28-.175 2.818.174 5.759 2.404 13.251 4.016 18.86 1.557 5.423 3.933 12.096 5.972 17.374 1.022 2.648 2.325 5.163 3.635 7.667 3.272 6.254 6.848 11.979 11.323 17.396.527.315 8.391-.994 8.64-1.39zM26.26 820.835c-3.99 1.803-7.907 4-10.74 7.463-2.581 3.157-6.504 9.197-7.288 13.211-1.396 7.158 2.85 19.11 7.117 24.868 5.613 7.572 12.35 10.589 20.977 13.341 4.214 1.345 8.53 2.276 12.962 2.37l-3.099-5.498c-4.184-9.193-9.632-17.969-13.235-27.451-1.583-4.167-2.37-8.589-3.5-12.897-1.057-4.036-2.638-7.962-3.019-12.163-.098-1.075.174-2.202-.175-3.244m-14.155 49.67c5.71 9.327 13.893 19.478 24.562 22.729 6.204 1.89 11.359 2.479 17.8 1.642 1.979-.257 3.94-.706 5.907-1.029.087-.345-.138-.339-.287-.493-.738-.769-1.784-1.408-2.526-2.14-.57-.561-2.545-3.126-3.106-3.297-11.008.342-20.851-1.437-30.355-7.203-4.434-2.689-8.143-6.71-11.825-10.385-.242-.24-.452-.66-.77-.874-.148.543.486.866.599 1.05m73.515 4.914c-3.675 2.802-7.284 5.837-11.396 7.932l-.714 4.704c.197.206 1.428-.635 1.69-.805 4.2-2.712 7.86-7.483 10.59-11.655.067-.104.445-.248.51-.442v-.26h-.252c-.187.067-.32.442-.428.525z"/><path d="M84.55 985.112c-.474.423-.997 1.327-1.469 1.803-6.516 6.571-12.296 10.034-21.529 11.717-5.108.932-11.965 1.858-17.035 1.07-15.244-2.38-28.306-7.971-36.964-21.218-2.716-4.157-3.037-6.957-4.433-11.496-1.994-6.48-3.3-9.234-3.1-16.389s.628-11.439 3.106-17.785c5.114-13.099 10.71-21.465 23.697-27.607 19.519-9.232 43.001-6.269 58.112 9.535 7.616 7.966 11.394 13.44 13.993 24.406 2.187 9.231 1.073 24.142-3.761 32.431-2.12 3.634-5.106 6.572-7.29 10.227-1.202 2.014-1.825 1.967-3.326 3.307zm-35.222-82.058c6.333 1.682 12.63 5.358 17.831 9.314 11.76 8.945 20.144 25.624 19.636 40.547-.136 4.01-.223 8.026-.354 12.043-.032.983-.277 2.177-.373 3.178l1.691 3.63c2.265-4.175 3.856-9.425 4.627-14.132.32-1.95.306-3.512.402-5.441.371-7.461 1.053-11.728-1.853-18.848-2.905-7.115-6.288-15.139-12.192-20.189-7.802-6.675-17.748-10.566-28.088-10.452l-1.326.351zm33.04 58.443c.576-3.298-.141-6.521-.791-9.742-3.243-16.059-8.234-28.092-21.034-38.777-10.509-8.772-24.146-7.842-33.574 1.939-.21.264-.005.375.205.513.791.524 2.622 1.021 3.608 1.52 16.341 8.257 37.047 24.165 47.95 38.896zm-60.13-39.457c-.791.238-2.508 5.328-2.56 6.387 1.733 2.71 3.845 5.134 5.69 7.762 1.638 2.33 3.04 4.828 4.73 7.124 4.999 6.788 13.142 12.184 19.585 17.74 1.7 1.466 3.29 3.248 5.038 4.69 4.482 3.7 15.296 9.578 20.928 10.726.757.154 2.313.477 2.921-.095.22-.208 1.228-2.509 1.333-2.913.277-1.058.089-1.447-.226-2.445-1.986-6.299-7.353-10.441-11.534-15.182-1.904-2.16-3.58-4.566-5.472-6.735-8.178-9.375-20.479-18.206-31.425-24.113-1.909-1.029-6.962-3.562-9.008-2.946m-9.842 4.57c-.315-.069-.349.093-.5.294-1.348 1.778-3.414 8.067-4.097 10.416-2.476 8.52-2.188 22.445 2.032 30.379 4.162 7.825 11.274 16.196 18.485 21.321 5.805 4.126 12.737 5.764 19.774 6.3l-12-6.476c-4.379-2.739-8.254-6.903-11.043-11.247-2.835-4.414-6.259-10.88-8.617-15.626-3.13-6.302-3.81-15.163-3.864-22.16-.025-3.129.88-6.921.724-9.754-.062-1.138-.844-2.278-.894-3.447m60.078 57.736c-6.73-3.117-13.384-6.497-19.242-11.09-2.101-1.648-4.031-3.535-6.119-5.201-2.855-2.281-5.976-4.256-8.745-6.643-3.782-3.262-6.522-7.208-9.72-10.979s-6.745-7.827-10.065-11.781c-.245 4.792-.103 9.645.756 14.382 1.024 5.642 3.851 15.028 6.942 19.784 2.762 4.248 11.41 12.125 15.745 14.857 8.665 5.458 18.622 5.923 27.074-.247.825-.603 2.575-1.924 3.2-2.636.136-.154.229-.198.172-.445z"/><path d="M99.997 1049.42c-.007.49-.007.97 0 1.45.01.8-.029 1.59-.184 2.37-.016.08-.418.4 0 .54-1.11 4.78-1.195 9.2-3.638 13.59-1.354 2.43-3.255 4.58-4.283 7.21-.694 1.77-1.015 3.67-1.827 5.46-4.804 10.6-24.398 18.65-35.474 19.4-5.324.35-10.752.84-16.048.36-.136-.19-.487-.28-.55 0-8.987-1.66-17.109-6.26-22.452-13.66-3.27-4.53-6.395-9.15-9.83-13.54-2.624-3.35-3.056-4.86-3.99-8.95-1.165-5.1-1.82-9.01-1.709-14.33.113-5.45.42-10.48 2.435-15.59 1.9-4.83 4.835-12.31 8.033-16.23 3.095-3.79 6.719-7.86 11.209-9.99 6.321-2.99 17.095-6.57 24.008-7.2.01 0-.036.17.114.15.168-.01.236-.15.253-.15 13.94-1.065 22.674.28 33.205 9.54 4.657 4.1 8.25 7.2 11.467 12.64 1.246 2.11 2.34 3.79 3.65 5.84 3.8 5.97 5.707 14.03 5.61 21.09m-52.465-43.11c-.034 0-.547-.46-.368.09.064.2.251.04.367.09 1.096.45 2.616.66 3.81 1.04 12.995 4.17 23.695 14.25 32.035 24.63.388.48.842 1.01 1.03 1.61l.365-.09c-.01-.24.022-.49.006-.73-.093-1.44-1.367-7.79-1.952-8.98-1.145-2.33-5.47-7.23-7.402-9.21-2.48-2.54-5.848-5.88-9.325-6.76-4.4-1.11-10.473-2.22-14.997-2.06-.995.03-2.663.45-3.57.37m-9.207 4.96c-1.526.03-2.052.08-3.181 1.04-11.778 9.97-19.757 22.95-20.631 38.66-.172 3.07.43 3.62 1.94 6.07 5.096 8.28 11.248 16.17 19.28 21.81 7.135 5.01 15.696 9.33 24.504 10.18 8.541-5.72 16.353-11.26 19.669-21.43 1.615-4.95 4.21-13.32 4.817-18.32.193-1.59-1.613-5.42-2.364-7.02-7.772-16.58-24.668-31.33-44.034-30.99m-17.76 6.14c-2.964 2.16-4.899 4.01-6.64 7.33-1.567 2.98-1.535 5.18-1.431 8.49.009.3-.01.61.002.91h.178c.063-.24.1-.5.187-.73 2.42-6.35 3.919-10.18 7.888-15.82.077-.11.479-.26.548-.46v-.27h-.27c-.202.07-.344.46-.462.54zm-12.472 32.55c.695-.44.335-1.69.179-2.36-.32-.04-.173.41-.181.63-.022.58.014 1.16.002 1.73m86.032 11.1c.103-.86.499-1.65.366-2.55l-.72 2.11zm-79.43 3.64c.879 6.1 4.318 12.98 8.031 17.95 1.772 2.37 10.52 8.49 13.392 9.46 4.23 1.44 10.923 1.08 15.45.96.304-.01.612.01.916 0-.107-.49-.63-.28-.917-.36-12.89-3.56-20.323-8.24-29.078-18.19-2.592-2.94-5.46-6.44-7.427-9.82-.174-.3.013-.88-.55-.73-.06.07.157.55.183.73m72.827 1.63c-.964 1.98-2.172 3.88-3.226 5.81l-7.687 11.84c3.345-1.78 6.018-4.69 8.054-7.84 2.347-3.63 2.728-5.57 3.226-9.81.02-.16.355-.55.183-.9l-.273-.01c-.245.07-.191.74-.277.91"/><path d="M38.543 1099.8h-.55c.063-.28.414-.19.55 0m7.521-99.49c-.017 0-.085.14-.253.15-.15.02-.105-.15-.114-.15l.252-.16zm48.061 60.75-.355-.44.721-2.11c.133.9-.263 1.69-.366 2.55m-86.032-11.1c.012-.57-.024-1.15-.002-1.73.008-.22-.138-.67.18-.63.156.67.516 1.92-.178 2.36m79.429 16.37c.085-.17.032-.84.277-.91l.273.01c.172.35-.164.74-.183.9zm-66.957-48.92c.117-.09.26-.48.462-.55h.271v.27c-.07.2-.471.35-.548.46zm31.001 75.3c.287.08.81-.13.918.36-.305.01-.613-.01-.918 0zm-36.872-28.01c-.026-.18-.242-.66-.183-.73.564-.15.376.43.55.73zm-1.835-31.29c-.086.23-.123.49-.186.73h-.178c-.011-.3.007-.61-.002-.91zm34.672-27.1v.18c-.117-.05-.305.11-.368-.09-.178-.55.334-.09.367-.09m-3.553 93.85c8.293-.68 16.714.84 24.265 4.21.552.25 1.204.85 1.772.99 1.047.26 1.678-.08 2.834.48 1.534.74 2.044 2.47 2.652 2.89.793.55 3.626 1.32 4.84 1.93 11.331 5.63 17.721 21.18 19.392 32.97.77 5.44-.311 8.86-.899 14.01-.455 4-.244 5.4-2.123 9.2-4.421 8.96-6.75 15.88-14.783 22.59-8.22 6.85-22.508 10.7-33.148 10.57l-.275-.18-.094.18c-4.943-.09-9.807-.6-14.4-2.47-1.08-.44-3.314-1.87-4.204-2.05-.795-.16-1.713.05-2.528-.05-2.105-.27-4.264-2.23-5.068-4.11-.585-1.38-.31-2.03-1.685-3.08-.868-.66-1.972-.96-2.899-1.51-5.754-3.44-10.067-8.08-12.706-14.25-.85-1.98-1.353-3.22-2.346-5.15-3.292-6.39-2.57-8.7-2.362-15.51.116-3.8-.25-7.83-.007-11.58h.37v-.55c-.005-.3.006-.6 0-.91.277-.02.277-.52 0-.54.517-3.94 3.691-10.45 5.508-14.15 2.32-4.74 4.763-7.49 8.434-11.18 7.942-7.97 17.595-11.92 28.906-12.75zm-34.722 35.89c-.021.06-.667.3-.275.55.418.06.358-.39.46-.55 4.716-7.31 9.868-11.82 17.192-16.47 7.913-5.03 19.383-10.95 28.796-11.95.301-.03.62.02.922 0l.002-.27c-.036-.19-.689-.07-.924-.1-13.109-1.25-22.212-.59-32.775 7.66-2.502 1.96-8.704 6.93-10.339 9.3-1.874 2.72-1.928 8.57-3.06 11.83m47.465-21.68c-7.825.75-15.607 3.22-22.535 6.83-8.272 4.31-13.587 11.23-19.093 18.51-4.112 5.44-6.54 11.29-7.464 18.06 1.655 4.2 2.808 8.55 5.104 12.47 2.329 3.98 5.483 7.61 8.805 10.81.332-.93.49-1.92.781-2.87 3.289-10.73 7.079-20.54 12.328-30.47 4.883-9.24 10.643-19.7 17.277-27.78 1.408-1.71 3.207-3.33 4.522-5.01.142-.18.358-.23.275-.55m13.29.55-4.88-.55c-3.307 2.72-5.934 6.64-8.301 10.22-8.437 12.75-18.272 30.42-23.332 44.75-.969 2.75-2.246 8.24-2.27 11.08-.007.87.246 2.31 1.373 2.26 1.815-.07 5.557-4.64 6.754-6.1 11.926-14.53 22.924-34.02 28.682-51.87 1.02-3.16 2.108-6.43 1.973-9.79m-25.293 69.77c9.21-1.12 17.86-5.06 25.101-10.67 7.307-5.66 15.756-16.35 19.042-24.94.627-1.64 1.767-4.77 1.98-6.43.446-3.45-3.863-11.85-5.786-14.97-2.399-3.88-5.311-8.02-8.854-10.94-.401-.06-.214.06-.277.26-.25.79-.22 1.82-.418 2.69-.424 1.88-1.181 3.9-1.565 5.74-.752 3.6-.8 6.89-2.228 10.38-5.7 13.9-12.823 27.29-20.641 40.12zm-2.402 6.93c-.184.01-.37-.01-.553 0l-.002.27c.036.19.373.06.555.09 10.686 2 16.69 1.87 26.72-2.52 8.936-3.91 21.985-15.26 22.23-25.62.003-.18.085-.62-.192-.37-4.785 6.99-11.472 12.37-18.41 17.18-9.652 6.7-18.442 10.26-30.347 10.97z"/><path d="M.575 1138.78c-.005-.24-.057-.11 0-.54.278.02.278.52 0 .54m0 .91v.55H.206c.012-.18-.015-.37 0-.55zm54.854-32.43c.235.03.888-.09.924.1l-.002.27c-.302.02-.621-.03-.922 0zM9.44 1136.05c-.1.16-.04.61-.46.55-.39-.25.255-.49.276-.55zm32.876 55.57v.36c-.182-.03-.52.1-.555-.09l.002-.27c.182-.01.369.01.553 0m3.899 8.41c11.558-.43 22.912 3.67 32.155 10.26.723.51 2.069 1.84 2.636 2.14.907.48 1.895.19 2.924.94 1.658 1.22.922 2.43 1.478 3.67.172.39 1.77 2.04 2.19 2.59 2.257 3 4.753 6.38 6.471 9.71.594 1.15 1.057 2.82 1.67 3.84.756 1.24 1.481 1.51 1.875 3.27.49 2.19 1.11 3.79 1.649 5.88 2.574 9.93-1.955 28.38-7.978 36.73-11.827 16.39-33.122 24.55-52.994 19.41-6.583-1.7-12.846-5.33-18.194-9.41-.622-.19-1.28.23-1.942.29-2.913.27-5.459-1.67-5.449-4.68.002-.65.416-1.24.103-1.92-.188-.41-2.238-2.49-2.74-3.15-3.127-4.1-4.465-8.31-6.642-12.83-1.926-4.01-3.44-7.38-3.427-12.02.012-4.26.528-9.11.921-13.4.621-6.76 1.116-10.14 5.278-15.66.475-.63 2.376-2.55 2.557-2.96.203-.45.034-1.01.141-1.51.921-4.28 3.469-7.04 7.511-8.67.848-.34 2.256-.55 2.931-.93.923-.53 2.743-2.75 3.899-3.65 5.196-4 16.433-7.7 22.977-7.94m29.332 16.28c.07-.29-.046-.3-.195-.45-.497-.5-1.747-1.23-2.4-1.65-5.532-3.54-11.381-5.48-17.95-6.16-8.239-.85-16.179 1.37-23.856 4.04.027.29.28.28.472.35 2.057.81 4.49 1.27 6.625 2.03 8.559 3.07 16.685 8.45 23.237 14.67.441.08 2.135-2.16 2.548-2.56 3.57-3.49 7.446-6.66 11.065-10.09a.75.75 0 0 1 .455-.18zm-53.218 30.99.656-.12c10.229-5.97 20.83-9.78 32.532-11.83.448-.21 2.216-2.13 2.538-2.61.121-.18.237-.29.163-.53-7.77-5.86-16.799-10.67-26.37-12.84-5.375-1.22-12.525-2.4-15.388 3.69-3.798 8.08 1.82 17.4 5.87 24.24zm66.3-16.49c.056-.32-.09-.54-.204-.81-.485-1.12-1.734-3.11-2.443-4.17-.417-.62-2.79-3.84-3.344-3.84-.262-.03-.307.19-.432.31-.76.76-1.97 2.46-2.681 3.38-1.117 1.46-3.091 3.94-3.942 5.44-.116.2-.282.33-.218.6 4.385-.54 8.825-1.45 13.263-.91m-71.326 19.25-.078-.71a99 99 0 0 1-6.138-10.59l-2.235-5.75c-.935 4.12-3.34 8.75-3.684 12.94-.29 3.52.436 7.23.736 10.73 3.57-2.58 7.41-4.75 11.398-6.63zm54.007-12.28c2.799 2.33 5.495 4.79 7.463 7.89l.367.19c2.619-1 5.595-2.11 7.928-3.67 3.552-2.37 3.648-5.02-.929-5.88-4.983-.15-9.92.76-14.83 1.47zm-18.424 18.72c2.236-.89 19.587-6.8 19.888-7.82l-.01-.31-5.941-6.9zm-27.636-5.32c-.04.21.007.36.095.54.268.58 2.191 2.67 2.757 3.32 1.28 1.45 2.729 2.8 4.048 4.22l.524.16 13.575-14.94c-7.254 1.36-14.197 3.93-21 6.7m69.274-6.61c-.319-.08-.368.13-.553.28-.69.53-1.423 1.36-2.122 1.92-2.778 2.23-5.871 3.97-8.917 5.8-.08.34 3.07 4.85 3.519 5.64 2.195 3.86 3.462 7.98 3.84 12.42 1.448-1.39 2.027-3.38 2.522-5.28 1.32-5.07 3.076-11.51 2.447-16.65-.17-1.38-.596-2.74-.735-4.13m-66.51 18.9c.438-.42-2.832-3.57-3.228-4.03-1.581-1.85-3.02-3.83-4.63-5.66-.579-.11-6.58 3.65-7.42 4.3-1.572 1.2-4.7 3.75-2.216 5.66 1.895 1.45 6.916 1.02 9.292.83 2.74-.22 5.472-.79 8.202-1.1m49.318-8.42c-10.45 4.93-21.716 7.8-32.781 11.04l-2.159 2.23c.08.38 4.817 3.39 5.535 3.85 7.164 4.63 18.1 12.03 26.802 12.05 2.247 0 3.094-.97 4.692-2.3.907-.76 3.664-3.06 4.235-3.86 1.066-1.48 1.262-5.18 1.102-6.97-.19-2.12-1.483-4.68-2.36-6.64-1.408-3.15-3.026-6.24-4.733-9.24zm-53.558 14.48c-3.387.14-7.027.38-10.416.19-1.49-.08-3.008-.53-4.51-.46.385 1.6 5.076 9.97 6.201 10.17.564-.13.789-.79 1.167-1.19 1.393-1.46 2.985-2.81 4.337-4.3.354-.39 3.548-4.12 3.221-4.41m44.77 18.54c-3.634-.98-7.447-1.98-10.964-3.3-7.324-2.77-13.651-7.56-19.927-12.09l-12.585 13.09c5.54 2.68 12.051 4.56 18.17 5.39 7.965 1.07 17.462.26 24.94-2.82.176-.08.422-.02.367-.27"/><path d="m99.761 1348.84-1.499-3.16-3.058-8.18-1.978 3.13-9.69 3.14c3.346 3.83 6.41 7.91 9.128 12.26.995.34 2.226.39 3.197.7.425.14.595.49 1.01.5.476-1.73.887-3.7 1.453-5.39.056-.17.747-4.12 1.062-3.8.376.8.422 3.42.476 4.86.112 2.98.333 6.62-.23 9.73-.436 2.4-1.795 4.71-2.333 6.95-1.182 4.94-.787 6.45-4.637 10.26-3.896 3.85-6.921 8.57-11.352 11.86-9.639 7.16-29.924 10.28-41.154 6.99-6.676-1.95-11.925-5.44-17.39-9.76-4.144-3.27-7.818-6.96-10.476-11.69-.488-.27-1.286.47-1.813.42-.208-.01-3.016-1.25-3.192-1.42-.225-.21-.583-.9-.603-1.21-.022-.37.698-2.2.919-2.43.432-.46 1.939-.53 1.886-1.42-.026-.44-1.05-2.59-1.279-3.29-1.597-4.84-2.862-10.02-3.1-15.16-.034-.14-2.189-.74-2.56-1.03-.25-.18-1.835-2.22-2.085-2.6-.212-.32-.452-.56-.463-.99-.013-.54.578-3.57.893-3.88.163-.16 3.035-1.66 3.278-1.72.772-.16 1.709.04 2.503-.04.659-4.87.641-9.43 2.553-14.01 2.418-5.8 6.127-9.45 10.906-13.08 10.388-7.88 21.777-15.92 35.245-15.35 15.586.66 28.849 8.95 36.785 22.95 3.887 6.85 8.142 17.68 7.598 25.86m-6.225-16.15c-1.778-8.19-8.042-13.54-14.262-18.12-13.866-10.2-31.947-12.01-47.728-5.45-4.294 1.79-6.86 4.82-9.427 8.73-.075.4.176.28.44.28 2.588-.01 5.165-.74 8.076-.57 11.905.69 25.22 4.95 35.337 11.55 4.09 2.68 7.557 6.02 11.364 9.08l11.239-5.82c1.665-.04 3.37-.25 4.96.33zm-76.797-4.54c-4.294 4.75-1.545 11.73 1.998 15.94 12.533 1.23 25.011 2.9 37.508 4.49 2.273-.5 5.148-2.63 7.288-3.08 2.279-.47 4.34-1.57 6.493-2.75.826-.44 1.652-.97 2.45-1.48-7.7-5.43-16.582-9.46-25.35-12.64-7.914-2.86-23.792-7.78-30.386-.48zm-5.68 11.37c-.3-.29-.292.1-.364.26-.178.41-.84 3.02-.67 3.23l2.44.39c-.216-.57-1.206-3.68-1.405-3.88m74.055 14.76-7.494-8.46c-1.33.55-11.503 3.32-11.633 3.94-.066.32.234.38.44.46 1.555.65 4.482 1.18 6.22 1.58 4.124.95 8.324 1.63 12.466 2.48m-57.733 7.93c.066-.3-.094-.37-.265-.55-.689-.7-2.254-1.56-3.125-2.25-2.161-1.71-4.21-3.54-5.912-5.77l-7.718-.65c.132 5.64.435 11.49 3.263 16.41zm13.687-7.19-12.984-.92 5.558 4.76zm10.963 1.1c-1.405.01-6.594 2.73-8.52 3.24-.535.14-1.237.62-1.556.74-.758.26-1.892 1.27-2.76 1.53l-1.108.86c4.282 3.78 9.25 6.22 14.472 8.22 9.876 3.77 20.005 6.78 30.691 4.95 7.87-1.34 8.933-8.12 5.871-14.89-1.404-.13-2.825-.23-4.22-.45-3.642-.6-10.488-2.56-13.776-2.48m10.83 26.89c-3.096.12-6.469.4-9.562.18-10.833-.77-21.282-7.17-30.389-12.88-3.188-2-6.268-4.21-9.296-6.46l-16.38 9.2c-.35.51 4.996 7.31 5.7 8.11 9.46 10.83 25.892 17.42 39.663 13.1 2.215-.69 4.605-1.74 6.747-2.68 4.822-2.12 9.852-4.59 13.517-8.57"/><path d="M96.91 1469.13c-.144.13-.724-.03-1.14.42-.59.63-1.979 4.02-2.61 5.11-11.848 20.6-39.525 32.63-61.18 20.48-2.396-1.35-3.814-2.18-6.355-3.34-3.622-1.65-5.577-5.21-7.866-8.28-3.693-4.95-7.396-9.81-9.077-15.94l-3.508.62c-.438-.35-3.115-1.86-3.216-2.14-.078-.22-.219-1.35-.156-1.58.03-.1 1.234-1.74 1.323-1.81.558-.42 4.397-1.01 4.474-1.4l-.922-8.13a26.2 26.2 0 0 1 1.27-9.73c-1.81-.59-4.59-.9-5.981-2.33-.284-.29-1.705-2.84-1.87-3.28-.47-1.25.926-2.97 1.132-4.25l.225-.2c1.247-.29 2.763-1.08 4.042-1.07 1.35.01 3.078.92 4.396 1.28l.39-.27c.145-2.84.725-5.55 1.811-8.16.222-.53 1.34-2.41 1.313-2.74-.048-.57-1.544-1.35-2.007-1.86-.547-.6-2.765-4-2.875-4.68-.068-.41 1.16-4.91 1.416-5.33.168-.27 1.225-1.08 1.537-1.21.437-.18 3.813-.94 4.145-.88 2.48.42 4.03 3.32 5.827 4.76 3.602-2.5 7.48-4.64 11.441-6.49 13.19-6.17 28.105-9.93 41.774-2.9 1.445.74 3.046 2.08 4.41 2.73 2.24 1.05 3.78.98 5.971 2.8 3.78 3.14 3.672 5.97 5.142 10.13 2.27 6.43 6.683 11.01 7.98 18.35.131.75.083 2.34.26 2.89.142.44 1.007.39 1.339 1.41.872 2.69-.901 2.23-1.71 3.83-1.147 2.27.161 6.46.494 8.9.338 2.48.428 4.83-.055 7.29-.392 2-.931 2.74-1.02 4.89-.009.22-.48 2.04-.562 2.12zm-28.665-62.03c-6.921-2.51-13.944-3.84-21.338-3.33-6.79.46-13.805 4.82-18.348 9.81-.594.65-2.456 2.8-2.786 3.46-.11.22-.263.4-.184.67l12.78 12.36c.273 0 2.904-3.48 3.356-3.98 6.139-6.81 14.024-12.05 21.86-16.61zm6.138 7.28c-5.011.35-11.148 3.87-15.385 6.54-5.854 3.69-11.782 7.89-16.349 13.16 3.56 5.56 9.003 9.46 13.546 14.12.383.2.75.37 1.195.36 2.197-.07 5.299-1.45 7.55-1.59 3.484-.21 6.949-1.28 10.302-2.44 1.059-.37 4.214-1.39 4.782-2.16 2.522-3.44 5.209-14.61 4.928-18.87-.4-6.08-4.691-9.53-10.568-9.12m20.379 24.96-4.266-12.79c-.475.44-.206 1.15-.295 1.74a60 60 0 0 1-1.082 5.38c-.598 2.38-1.615 4.61-2.164 6.96 2.585-.33 5.222-2.27 7.808-1.29zm-81.004-4.45 15.92 4.81c.485.35 1.886-1.57 1.886-1.75l-12.453-11.04-4.294 5.82zm11.624 12.97-13.44-3.15.726 15.01 7.801-2.14zm54.124 9.82 13.626 5.48c.335-.22 2.118-5.67 2.36-6.5.87-2.95 1.839-6.07 1.267-9.17l-.825.55-12.583 1.52zm-39.23-5.93-9.14-2.38c-.543.14-3.822 5.83-3.574 6.08 3.364-.98 6.856-1.63 10.21-2.64.799-.24 1.355-.49 2.23-.69.281-.07.317.12.273-.37zm34.145-1.11-7.621 1.47c1.107.22 3.865 2.15 4.801 2.05.633-.06 2.3-2.91 2.82-3.52m-24.028 4.69-8.623 1.23-1.537.6c-4.602 1.84-10.48 2.93-14.9 5.01-.252.11-.499.18-.685.41-.357.45-1.436 3.1-1.712 3.81-1.593 4.11-2.19 8.53-.991 12.86.551 1.99 3.4 5.89 5.258 6.68 7.564 3.22 19.19-4.92 24.783-9.73 1.28-1.1 10.118-9.51 10.243-10.31l-11.147-10.25c-.206-.19-.398-.31-.688-.32zm37.107 20.14c1.204-1.57 2.29-3.66 3.06-5.5.188-.45.755-1.53.49-1.92l-15.507-5.33c-.1.62-1.6 1.4-1.278 1.98l12.493 9.2.74 1.56zm-69.02-11.12-4.359 1.3 2.728 7.04c.462.13.42-.36.487-.7.484-2.52.79-5.1 1.144-7.64m17.8 28.16c8.015 2.82 16.06 4.59 24.52 2.69 7.657-1.72 13.415-5.16 18.982-10.65.407-.4 3.049-3.01 2.993-3.24l-14.233-10.12c-2.965 3.55-6.707 6.53-10.411 9.24-6.449 4.73-13.938 9.42-21.587 11.71-.264.07-.317-.11-.264.37"/><path d="m50.634 1508.35 6.172-3.92c7.041-4.2 15.225-1.9 19.107 5.26 1.395 2.57 2.338 6.25 3.081 9.12 1.158 4.47 2.4 9.34 1.975 13.96l10.098-4.19c.367-.04 3.453.57 3.754.72 1.125.6.52 4.16.137 5.2-5.064 2.67-10.195 5.18-15.442 7.47l-1.09 5.01 15.33-2.55c2.427.72 4.296 1.56 6.115 3.36l.129 2.43-4.266 3.46-18.557.06-1.638 5.97 18.192 10.22c.47.91 1.254 1.83.956 2.92-.394 1.46-.93 1.93-2.464 1.55-3.343-1.62-6.859-2.9-10.205-4.52-2.512-1.21-5.891-3.54-8.372-4.36-.166-.06-.304-.22-.492-.06l-.824 2.1 11.153 10.51c.428 1.49 2.23 4.55 1.034 5.9-.144.16-2.02 1.36-2.226 1.41-.46.1-2.578.12-2.956-.05l-10.807-9.57-5.353 8.3c-.054 3.59 1.325 7.61 1.449 11.12.03.87-1.029 2.64-1.657 3.25-.23.22-2.219 1.53-2.45 1.56-.546.09-3.09-.66-3.518-1.01-.854-.69-2.119-3.64-2.009-4.81l-5.077 3.19c-8.095 3.71-14.241 2.41-19.122-5.07-2.102-3.22-3.966-7.14-4.864-10.88-.318-.33-2.176 2.15-2.473 2.35-.32.21-3.83 1.57-4.203 1.63-.443.07-2.424-.94-2.667-1.26-.421-.55-.71-3.43-.07-4.06l8.1-8.81c.345-1.18.106-2.41.228-3.6.309-3.01.988-6 1.087-9.02l-20.608 3.83c-.883-.1-1.89.22-2.71-.21-.15-.08-2.306-1.85-2.384-1.98-.06-.11-.23-1.24-.227-1.41.006-.33 1.402-1.63 1.72-2.01l25.103-4.07 1.663-6.43c-4.493-1.85-9.157-3.3-13.682-5.07-2.788-1.1-7.697-2.83-10.11-4.26-.358-.21-1.612-1.16-1.81-1.46s-1.465-3.56-1.474-3.82l1.843-3.69c1.502.01 3.24-.81 4.697-.49 4.665 2.01 9.212 4.28 13.86 6.32 2.33 1.03 6.984 3.39 9.195 3.9.241.05.48.12.729.07.682-2.18.805-2.15-.626-3.82-3.587-4.18-7.652-8.36-11.443-12.39-2.607-2.77-5.197-4.54-6.666-8.25-.17-.43-.524-1.25-.52-1.68.004-.36 1.839-4.76 2.088-5.01.138-.14 1.294-.81 1.502-.86.76-.22 3.865-.5 4.544-.27.496.17 1.079.73 1.592.95 4.65 5.79 8.764 12.02 13.805 17.49a40.3 40.3 0 0 1 5.318-7.78c.08-1.88-.516-3.74-.685-5.61-.203-2.25-.186-5.05.41-7.24.351-1.28 2.086-2.41 2.984-3.39.163-.03 2.728.33 2.956.43.147.07 2.255 2.08 2.33 2.22l1.31 5.7zm6.359 36.99c3.161-1.49 5.88-3.86 8.956-5.5 2.273-1.21 4.896-2.13 7.198-3.35l.369-.54c-.713-8.02 2.154-17.43-3.007-24.48-5.506-7.52-14.245-3.09-18.427 3.18 1.57 10.24 2.866 20.53 4.912 30.69zm-12.9-11.66c-.165-1.64-.32-3.36-.815-4.92-.337.42-1.411 1.83-1.372 2.27zm28.882 11.66-7.334 3.45-.113.56 6.864-.95zm-33.058 5.65c-.66-.52-1.673-.97-2.453-1.28-.758-.3-1.514-.67-2.347-.74l-.65 2.74zm31.242 2.55h-4.814c-.223 0-.435.65-.09.82l3.901 2.28zm-38.87 10.56c.315.09.363-.13.545-.27 2.373-1.82 4.537-4.47 6.91-6.37.249-.3.294-1.27.003-1.48l-6.641 1.2zm16.832-5.25-4.305 2.43-12.895 13.67c1.221 7.26 2.347 19.79 12.756 17.7 2.015-.4 3.95-1.56 5.575-2.79.484-.36 3.15-2.59 3.25-2.93.118-.39.049-.97.014-1.4-.457-5.6-2.02-11.67-2.697-17.33-.11-.91.076-1.95-.022-2.89-.203-1.95-1.08-4.18-1.29-6.18l-.385-.28m18.95 3.98c-1.123-.19-.227.79 0 .54zm-6.356 12.57c.284.33 1.508-1.69 1.637-1.91.32-.54.997-1.39.91-2-.085-.58-2.872-2.95-3.455-3.56z"/><path d="M55.342 1631c.271-.04.336-.35.454-.54.996-1.69 1.77-3.86 2.702-5.66 2.098-4.06 4.46-8.61 6.749-12.52.733-1.25 4.227-6.67 5.228-7.12.32-.15 3.88-1 4.081-.94.562 1.01 2.966 2.9 3.272 3.81.233.7-.128 4.62-.35 5.47-2.663 6.49-5.976 12.9-8.617 19.38-1.186 2.91-1.844 6.06-3.398 8.79 9.018-3.38 17.977-6.94 27.204-9.75 1.843.6 4.36.36 4.239 2.99-.026.55-.66 3.09-1.034 3.35-9.728 4.31-20.202 7.36-29.837 11.83-.257.12-.493-.1-.395.42.811-.03 1.633.03 2.446.01 8.473-.3 17.079-2.47 25.647-2.57.716.05 3.634 1.43 4.255 1.91.224.18 1.829 1.79 1.89 1.93.259.57.012 1.58.096 2.23l-4.784 3.24-29.013-2.29-.356.37c8.424 6.31 17.44 11.76 26.008 17.88.509.49 1.19 2.1 1.017 2.81-.03.13-.77 1.74-.854 1.8-.219.13-1.277.02-1.603-.06-1.593-.41-7.54-3.94-9.331-4.99-4.496-2.62-8.77-5.67-13.258-8.32l-1.077-.09c.618.89 1.356 1.74 2.076 2.55 3.526 3.97 7.413 7.81 10.847 11.84.424.5 1.395 1.51 1.626 2.01.205.44 1.1 3.71 1.111 4.13.069 2.47-3.456 3.36-5.412 2.95-6.918-6.51-13.05-13.82-19.1-21.12l1.821 29.45c-.568 1.74-2.21 3.1-3.866 3.78-.641.26-3.099-.9-3.562-1.41-.463-.5-1.519-2.78-1.602-3.49-.097-8.62-.071-17.27-.381-25.87-.008-.22.135-.67-.178-.63l-8.762 18.05c-1.92 2.46-3.423 6.53-5.36 8.81-.508.6-2.663 1.51-3.453 1.36-.39-.08-2.42-.95-2.57-1.24-.118-.24-.462-2.16-.459-2.46.007-.69.768-2.75 1.053-3.5 1.644-4.3 3.969-8.8 5.847-13.06 1.324-3 2.43-6.12 3.814-9.09.818-1.76 1.99-3.41 2.57-5.25l-21.609 19.4-4.676 1.29-2.14-1.4c-.124-1.82-.735-3 .614-4.51 1.9-2.11 5.098-4.97 7.297-6.85 5.435-4.66 11.569-8.81 17.084-13.4.462-.59.686-1.65-.341-1.64-8.628.95-17.23 2.23-25.868 3.09-2.333.24-4.929.61-7.227.73-.983.06-2.804.17-3.613-.36-.175-.11-2.01-1.95-2.087-2.09-.31-.54-.293-1.6.087-2.11.681-.93 1.823-1.33 2.907-1.45 10.98-1.16 22.062-1.54 33.062-2.37 1.224-.1 2.475-.39 3.705-.46-7.641-4.33-15.855-7.56-23.735-11.42-2.44-1.19-8.875-4.14-10.598-5.71-.32-.29-.736-.68-.94-1.06-.286-.53-1.285-3.67-1.154-4.14.075-.27 1.922-3.11 2.094-3.19 1.544-.2 3.173-.55 4.699-.18l26.923 14.67-.902-1.73c-4.88-6.26-9.683-12.57-14.641-18.77-2.163-2.71-4.19-4.31-5.242-7.84-.207-.69-.465-1.42-.316-2.15.089-.44 1.98-4.12 2.3-4.43.294-.28 1.162-.74 1.556-.8.464-.07 3.567-.24 3.953-.18.387.06 1.956 1.07 2.245 1.38 6.007 9.95 12.665 19.44 19.508 28.82l1.296 2.61c-.127-3.63-.496-7.24-.72-10.85-.288-4.68-.733-9.58-.903-14.22-.075-2.05-.007-6.72 1-8.47.07-.13 1.873-1.76 2.086-1.91.422-.29.581-.48 1.145-.48 1.573.01 2.532.65 3.532 1.75 1.525 1.67 1.088 1.55 1.271 3.64.218 2.48.485 4.98.728 7.47l.176 18.14zm.357 103.06c-.005.03-.458.54.088.37.2-.07.038-.27.092-.37 3.537-6.65 8.207-14.29 12.504-20.46.808-1.16 4.466-6.18 5.397-6.64.418-.21 2.06-.42 2.613-.47.47-.04 1.651-.19 1.96.02.2.13 2.903 3.55 2.969 3.79.403 1.42-.657 3.84-.588 5.38-3.342 6.53-7.664 12.91-10.858 19.47-.818 1.68-2.139 6.02-3.154 7.18-.027.03-.26-.03-.36 0l.09.36.45-.37c4.32-1.22 8.537-2.83 12.833-4.13 3.62-1.1 9.819-3.29 13.328-3.72.881-.11 3.88.52 4.365 1.17.873 1.15.058 4.01-.712 5.12-9.942 3.91-20.61 6.34-30.5 10.34-.275.11-.488-.11-.396.41 2.907-.11 5.869.15 8.771.01 4.002-.19 8.033-.83 12.095-.93 2.06-.05 5.89-.28 7.767.02.423.06 3.17 1.59 3.541 1.91.186.16 1.706 1.91 1.779 2.05.327.65.326 1.99-.167 2.54-.171.19-3.91 2.61-4.198 2.71-.253.1-.485.19-.763.16l-28.067-4.01-.758.14c-.165.22.397.69.539.83 1.058 1.05 2.787 2.32 3.996 3.28 6.702 5.33 13.805 10.17 20.414 15.63.53.82 1.044 2.03.753 2.99-.457 1.51-1.182 1.88-2.701 1.38-7.504-4.41-14.536-9.53-21.638-14.57-.245-.23-.586-.11-.823-.17-.022 0-.202-.4-.363-.09-.087.3.295.35.363.46 3.85 5.93 9.712 11.22 13.503 17.23.168 1.33 1.357 4.91.004 5.8-1.404.92-3.561 1.14-5.14.62-4.356-5.06-8.614-10.19-12.697-15.48l-6.15-8.54-.191 1v30.51c-.621 1.78-2.412 2.47-4.015 3.01-2.3-.89-3.325-2.47-4.288-4.66 1.205-9.68 2.289-19.37 2.707-29.12l-.628.18c-3.937 6.35-7.224 13.37-11.224 19.65-1.237 1.94-4.462 6.85-5.942 8.29-1.838 1.8-3.617 1-5.526-.13.198-.86-.242-1.9-.14-2.67.095-.72 1.278-2.87 1.68-3.64 3.582-6.91 7.896-14.31 11.81-21.07.879-1.52 2.461-3.45 3.116-4.92.13-.29.22-.51.166-.84l-23.575 19.12c-.488.25-4.05 1.14-4.528 1.11s-2.289-1.41-2.4-1.8c-.063-2.02-.439-2.89 1.044-4.37 1.843-1.85 4.972-4.42 7.065-6.05 5.757-4.49 12.31-8.36 18.149-12.79 1.71-2.5-1.727-1.52-3.065-1.46-7.714.33-15.43.94-23.139 1.28-2.953.13-6.073.61-9.044.37-.463-.03-1.24-.13-1.628-.36-.202-.12-2.166-2.37-2.213-2.53-.095-.33-.11-1.43.054-1.71.076-.12 1.8-1.43 1.99-1.46 1.53-.3 4.578.04 6.33 0 8.433-.21 16.853-.61 25.285-.55 2.213.01 4.398-.14 6.604-.2l-3.492-2.23c-6.417-3.73-13.122-6.95-19.58-10.6-2.838-1.6-6.948-3.76-9.518-5.57-1.985-1.4-2.343-3.84-2.801-6.09.605-.59 1.906-3.11 2.593-3.25.587-.12 1.67 0 2.344 0 1.303-.02 1.3-.3 2.679.4 3.851 1.94 8.27 5.4 12.068 7.76 3.413 2.12 6.919 4.1 10.342 6.21 1.043.64 1.998 1.6 3.193 1.89-.582-.46-.627-1.21-.96-1.77-4.885-8.34-11.66-16.33-17.056-24.38-.484-1.59-1.841-3.92-1.46-5.6.067-.3 2.255-4.06 2.487-4.27.176-.17 1.215-.68 1.444-.74.476-.12 3.895.02 4.396.14.534.12 1.288.99 1.832 1.26 2.908 5.03 5.539 10.24 8.522 15.22 3.86 6.45 7.737 11.72 10.944 18.65.293.63.684 1.15.968 1.77l-.047-32.58c.495-1.03.59-2.66 1.146-3.61.165-.28 2.21-2.01 2.545-2.2.6-.34 2.63.51 3.142.98.217.2 1.813 2.14 1.882 2.31.301.76-.212 4-.261 5.05-.394 8.32-.98 17.39-1.99 25.64zm-5.784 31.61c-.013.1-.06.37.09.36.191.01.036-.27.091-.36.13-.24.46-.37.36-.74h-.268c-.143.04-.252.57-.273.74"/></g><defs><clipPath id="a"><path d="M0 0h100v1800H0z"/></clipPath></defs>
6
+ </svg>
7
+ </svg>
@@ -1 +1 @@
1
- import{a3 as constant,a6 as tau,aD as array,g as getAccDescription,s as setAccDescription,a as getAccTitle,b as setAccTitle,q as getDiagramTitle,p as setDiagramTitle,_ as __name,l as log,c as getConfig2$1,E as cleanAndMerge,H as selectSvgElement,M as parseFontSize,e as configureSvgSize,y as clear,F as defaultConfig_default}from"./mermaid.core-uz8EInB1.js";import{p as populateCommonDb}from"./chunk-4BX2VUAB-Cs80mvkB.js";import{p as parse}from"./wardley-RL74JXVD-BVJwveo0.js";import{d as d3arc}from"./arc-B4smmOzy.js";import{o as ordinal}from"./ordinal-DA-_8pMy.js";import"./vendor-mdxeditor-2ethWb9I.js";import"./vendor-antd-CAAyMICZ.js";import"./vendor-codemirror-zGsatVJf.js";import"./vendor-markdown-Bpu4AByL.js";import"./min-yOqsnRgl.js";import"./_baseUniq-D4LBG4Ot.js";import"./init-DMZMl1PR.js";function descending(a,b){return b<a?-1:b>a?1:b>=a?0:NaN}function identity(d){return d}var DEFAULT_PIE_CONFIG=defaultConfig_default.pie,DEFAULT_PIE_DB={sections:new Map,showData:!1},sections=DEFAULT_PIE_DB.sections,showData=DEFAULT_PIE_DB.showData,config=structuredClone(DEFAULT_PIE_CONFIG),db={getConfig:__name(()=>structuredClone(config),"getConfig"),clear:__name(()=>{sections=new Map,showData=DEFAULT_PIE_DB.showData,clear()},"clear"),setDiagramTitle:setDiagramTitle,getDiagramTitle:getDiagramTitle,setAccTitle:setAccTitle,getAccTitle:getAccTitle,setAccDescription:setAccDescription,getAccDescription:getAccDescription,addSection:__name(({label:label,value:value})=>{if(value<0)throw new Error(`"${label}" has invalid value: ${value}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);sections.has(label)||(sections.set(label,value),log.debug(`added new section: ${label}, with value: ${value}`))},"addSection"),getSections:__name(()=>sections,"getSections"),setShowData:__name(toggle=>{showData=toggle},"setShowData"),getShowData:__name(()=>showData,"getShowData")},populateDb=__name((ast,db2)=>{populateCommonDb(ast,db2),db2.setShowData(ast.showData),ast.sections.map(db2.addSection)},"populateDb"),parser={parse:__name(async input=>{const ast=await parse("pie",input);log.debug(ast),populateDb(ast,db)},"parse")},pieStyles_default=__name(options=>`\n .pieCircle{\n stroke: ${options.pieStrokeColor};\n stroke-width : ${options.pieStrokeWidth};\n opacity : ${options.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${options.pieOuterStrokeColor};\n stroke-width: ${options.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${options.pieTitleTextSize};\n fill: ${options.pieTitleTextColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.pieSectionTextColor};\n font-size:${options.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${options.pieLegendTextColor};\n font-family: ${options.fontFamily};\n font-size: ${options.pieLegendTextSize};\n }\n`,"getStyles"),createPieArcs=__name(sections2=>{const sum=[...sections2.values()].reduce((acc,val)=>acc+val,0),pieData=[...sections2.entries()].map(([label,value])=>({label:label,value:value})).filter(d=>d.value/sum*100>=1),pie=function(){var value=identity,sortValues=descending,sort=null,startAngle=constant(0),endAngle=constant(tau),padAngle=constant(0);function pie(data){var i,j,k,a1,v,n=(data=array(data)).length,sum=0,index=new Array(n),arcs=new Array(n),a0=+startAngle.apply(this,arguments),da=Math.min(tau,Math.max(-tau,endAngle.apply(this,arguments)-a0)),p=Math.min(Math.abs(da)/n,padAngle.apply(this,arguments)),pa=p*(da<0?-1:1);for(i=0;i<n;++i)(v=arcs[index[i]=i]=+value(data[i],i,data))>0&&(sum+=v);for(null!=sortValues?index.sort(function(i2,j2){return sortValues(arcs[i2],arcs[j2])}):null!=sort&&index.sort(function(i2,j2){return sort(data[i2],data[j2])}),i=0,k=sum?(da-n*pa)/sum:0;i<n;++i,a0=a1)j=index[i],a1=a0+((v=arcs[j])>0?v*k:0)+pa,arcs[j]={data:data[j],index:i,value:v,startAngle:a0,endAngle:a1,padAngle:p};return arcs}return pie.value=function(_){return arguments.length?(value="function"==typeof _?_:constant(+_),pie):value},pie.sortValues=function(_){return arguments.length?(sortValues=_,sort=null,pie):sortValues},pie.sort=function(_){return arguments.length?(sort=_,sortValues=null,pie):sort},pie.startAngle=function(_){return arguments.length?(startAngle="function"==typeof _?_:constant(+_),pie):startAngle},pie.endAngle=function(_){return arguments.length?(endAngle="function"==typeof _?_:constant(+_),pie):endAngle},pie.padAngle=function(_){return arguments.length?(padAngle="function"==typeof _?_:constant(+_),pie):padAngle},pie}().value(d=>d.value).sort(null);return pie(pieData)},"createPieArcs"),diagram={parser:parser,db:db,renderer:{draw:__name((text,id,_version,diagObj)=>{var _a;log.debug("rendering pie chart\n"+text);const db2=diagObj.db,globalConfig=getConfig2$1(),pieConfig=cleanAndMerge(db2.getConfig(),globalConfig.pie),svg=selectSvgElement(id),group=svg.append("g");group.attr("transform","translate(225,225)");const{themeVariables:themeVariables}=globalConfig;let[outerStrokeWidth]=parseFontSize(themeVariables.pieOuterStrokeWidth);outerStrokeWidth??(outerStrokeWidth=2);const textPosition=pieConfig.textPosition,radius=Math.min(450,450)/2-40,arcGenerator=d3arc().innerRadius(0).outerRadius(radius),labelArcGenerator=d3arc().innerRadius(radius*textPosition).outerRadius(radius*textPosition);group.append("circle").attr("cx",0).attr("cy",0).attr("r",radius+outerStrokeWidth/2).attr("class","pieOuterCircle");const sections2=db2.getSections(),arcs=createPieArcs(sections2),myGeneratedColors=[themeVariables.pie1,themeVariables.pie2,themeVariables.pie3,themeVariables.pie4,themeVariables.pie5,themeVariables.pie6,themeVariables.pie7,themeVariables.pie8,themeVariables.pie9,themeVariables.pie10,themeVariables.pie11,themeVariables.pie12];let sum=0;sections2.forEach(section=>{sum+=section});const filteredArcs=arcs.filter(datum=>"0"!==(datum.data.value/sum*100).toFixed(0)),color=ordinal(myGeneratedColors).domain([...sections2.keys()]);group.selectAll("mySlices").data(filteredArcs).enter().append("path").attr("d",arcGenerator).attr("fill",datum=>color(datum.data.label)).attr("class","pieCircle"),group.selectAll("mySlices").data(filteredArcs).enter().append("text").text(datum=>(datum.data.value/sum*100).toFixed(0)+"%").attr("transform",datum=>"translate("+labelArcGenerator.centroid(datum)+")").style("text-anchor","middle").attr("class","slice");const titleText=group.append("text").text(db2.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),allSectionData=[...sections2.entries()].map(([label,value])=>({label:label,value:value})),legend=group.selectAll(".legend").data(allSectionData).enter().append("g").attr("class","legend").attr("transform",(_datum,index)=>"translate(216,"+(22*index-22*allSectionData.length/2)+")");legend.append("rect").attr("width",18).attr("height",18).style("fill",d=>color(d.label)).style("stroke",d=>color(d.label)),legend.append("text").attr("x",22).attr("y",14).text(d=>db2.getShowData()?`${d.label} [${d.value}]`:d.label);const chartAndLegendWidth=512+Math.max(...legend.selectAll("text").nodes().map(node=>(null==node?void 0:node.getBoundingClientRect().width)??0)),titleWidth=(null==(_a=titleText.node())?void 0:_a.getBoundingClientRect().width)??0,titleLeft=225-titleWidth/2,titleRight=225+titleWidth/2,viewBoxX=Math.min(0,titleLeft),totalWidth=Math.max(chartAndLegendWidth,titleRight)-viewBoxX;svg.attr("viewBox",`${viewBoxX} 0 ${totalWidth} 450`),configureSvgSize(svg,450,totalWidth,pieConfig.useMaxWidth)},"draw")},styles:pieStyles_default};export{diagram};
1
+ import{a3 as constant,a6 as tau,aD as array,g as getAccDescription,s as setAccDescription,a as getAccTitle,b as setAccTitle,q as getDiagramTitle,p as setDiagramTitle,_ as __name,l as log,c as getConfig2$1,E as cleanAndMerge,H as selectSvgElement,M as parseFontSize,e as configureSvgSize,y as clear,F as defaultConfig_default}from"./mermaid.core-ChPdLHKc.js";import{p as populateCommonDb}from"./chunk-4BX2VUAB-wZwjuujj.js";import{p as parse}from"./wardley-RL74JXVD-DthedtT3.js";import{d as d3arc}from"./arc-Bt4H5eKY.js";import{o as ordinal}from"./ordinal-DA-_8pMy.js";import"./vendor-mdxeditor-Dp19LkWF.js";import"./vendor-antd-BS2aqEyQ.js";import"./vendor-codemirror-DpOKy7e3.js";import"./vendor-markdown-Bpu4AByL.js";import"./min-Cyf5226k.js";import"./_baseUniq-BhNv8Xvc.js";import"./init-DMZMl1PR.js";function descending(a,b){return b<a?-1:b>a?1:b>=a?0:NaN}function identity(d){return d}var DEFAULT_PIE_CONFIG=defaultConfig_default.pie,DEFAULT_PIE_DB={sections:new Map,showData:!1},sections=DEFAULT_PIE_DB.sections,showData=DEFAULT_PIE_DB.showData,config=structuredClone(DEFAULT_PIE_CONFIG),db={getConfig:__name(()=>structuredClone(config),"getConfig"),clear:__name(()=>{sections=new Map,showData=DEFAULT_PIE_DB.showData,clear()},"clear"),setDiagramTitle:setDiagramTitle,getDiagramTitle:getDiagramTitle,setAccTitle:setAccTitle,getAccTitle:getAccTitle,setAccDescription:setAccDescription,getAccDescription:getAccDescription,addSection:__name(({label:label,value:value})=>{if(value<0)throw new Error(`"${label}" has invalid value: ${value}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);sections.has(label)||(sections.set(label,value),log.debug(`added new section: ${label}, with value: ${value}`))},"addSection"),getSections:__name(()=>sections,"getSections"),setShowData:__name(toggle=>{showData=toggle},"setShowData"),getShowData:__name(()=>showData,"getShowData")},populateDb=__name((ast,db2)=>{populateCommonDb(ast,db2),db2.setShowData(ast.showData),ast.sections.map(db2.addSection)},"populateDb"),parser={parse:__name(async input=>{const ast=await parse("pie",input);log.debug(ast),populateDb(ast,db)},"parse")},pieStyles_default=__name(options=>`\n .pieCircle{\n stroke: ${options.pieStrokeColor};\n stroke-width : ${options.pieStrokeWidth};\n opacity : ${options.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${options.pieOuterStrokeColor};\n stroke-width: ${options.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${options.pieTitleTextSize};\n fill: ${options.pieTitleTextColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.pieSectionTextColor};\n font-size:${options.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${options.pieLegendTextColor};\n font-family: ${options.fontFamily};\n font-size: ${options.pieLegendTextSize};\n }\n`,"getStyles"),createPieArcs=__name(sections2=>{const sum=[...sections2.values()].reduce((acc,val)=>acc+val,0),pieData=[...sections2.entries()].map(([label,value])=>({label:label,value:value})).filter(d=>d.value/sum*100>=1),pie=function(){var value=identity,sortValues=descending,sort=null,startAngle=constant(0),endAngle=constant(tau),padAngle=constant(0);function pie(data){var i,j,k,a1,v,n=(data=array(data)).length,sum=0,index=new Array(n),arcs=new Array(n),a0=+startAngle.apply(this,arguments),da=Math.min(tau,Math.max(-tau,endAngle.apply(this,arguments)-a0)),p=Math.min(Math.abs(da)/n,padAngle.apply(this,arguments)),pa=p*(da<0?-1:1);for(i=0;i<n;++i)(v=arcs[index[i]=i]=+value(data[i],i,data))>0&&(sum+=v);for(null!=sortValues?index.sort(function(i2,j2){return sortValues(arcs[i2],arcs[j2])}):null!=sort&&index.sort(function(i2,j2){return sort(data[i2],data[j2])}),i=0,k=sum?(da-n*pa)/sum:0;i<n;++i,a0=a1)j=index[i],a1=a0+((v=arcs[j])>0?v*k:0)+pa,arcs[j]={data:data[j],index:i,value:v,startAngle:a0,endAngle:a1,padAngle:p};return arcs}return pie.value=function(_){return arguments.length?(value="function"==typeof _?_:constant(+_),pie):value},pie.sortValues=function(_){return arguments.length?(sortValues=_,sort=null,pie):sortValues},pie.sort=function(_){return arguments.length?(sort=_,sortValues=null,pie):sort},pie.startAngle=function(_){return arguments.length?(startAngle="function"==typeof _?_:constant(+_),pie):startAngle},pie.endAngle=function(_){return arguments.length?(endAngle="function"==typeof _?_:constant(+_),pie):endAngle},pie.padAngle=function(_){return arguments.length?(padAngle="function"==typeof _?_:constant(+_),pie):padAngle},pie}().value(d=>d.value).sort(null);return pie(pieData)},"createPieArcs"),diagram={parser:parser,db:db,renderer:{draw:__name((text,id,_version,diagObj)=>{var _a;log.debug("rendering pie chart\n"+text);const db2=diagObj.db,globalConfig=getConfig2$1(),pieConfig=cleanAndMerge(db2.getConfig(),globalConfig.pie),svg=selectSvgElement(id),group=svg.append("g");group.attr("transform","translate(225,225)");const{themeVariables:themeVariables}=globalConfig;let[outerStrokeWidth]=parseFontSize(themeVariables.pieOuterStrokeWidth);outerStrokeWidth??(outerStrokeWidth=2);const textPosition=pieConfig.textPosition,radius=Math.min(450,450)/2-40,arcGenerator=d3arc().innerRadius(0).outerRadius(radius),labelArcGenerator=d3arc().innerRadius(radius*textPosition).outerRadius(radius*textPosition);group.append("circle").attr("cx",0).attr("cy",0).attr("r",radius+outerStrokeWidth/2).attr("class","pieOuterCircle");const sections2=db2.getSections(),arcs=createPieArcs(sections2),myGeneratedColors=[themeVariables.pie1,themeVariables.pie2,themeVariables.pie3,themeVariables.pie4,themeVariables.pie5,themeVariables.pie6,themeVariables.pie7,themeVariables.pie8,themeVariables.pie9,themeVariables.pie10,themeVariables.pie11,themeVariables.pie12];let sum=0;sections2.forEach(section=>{sum+=section});const filteredArcs=arcs.filter(datum=>"0"!==(datum.data.value/sum*100).toFixed(0)),color=ordinal(myGeneratedColors).domain([...sections2.keys()]);group.selectAll("mySlices").data(filteredArcs).enter().append("path").attr("d",arcGenerator).attr("fill",datum=>color(datum.data.label)).attr("class","pieCircle"),group.selectAll("mySlices").data(filteredArcs).enter().append("text").text(datum=>(datum.data.value/sum*100).toFixed(0)+"%").attr("transform",datum=>"translate("+labelArcGenerator.centroid(datum)+")").style("text-anchor","middle").attr("class","slice");const titleText=group.append("text").text(db2.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),allSectionData=[...sections2.entries()].map(([label,value])=>({label:label,value:value})),legend=group.selectAll(".legend").data(allSectionData).enter().append("g").attr("class","legend").attr("transform",(_datum,index)=>"translate(216,"+(22*index-22*allSectionData.length/2)+")");legend.append("rect").attr("width",18).attr("height",18).style("fill",d=>color(d.label)).style("stroke",d=>color(d.label)),legend.append("text").attr("x",22).attr("y",14).text(d=>db2.getShowData()?`${d.label} [${d.value}]`:d.label);const chartAndLegendWidth=512+Math.max(...legend.selectAll("text").nodes().map(node=>(null==node?void 0:node.getBoundingClientRect().width)??0)),titleWidth=(null==(_a=titleText.node())?void 0:_a.getBoundingClientRect().width)??0,titleLeft=225-titleWidth/2,titleRight=225+titleWidth/2,viewBoxX=Math.min(0,titleLeft),totalWidth=Math.max(chartAndLegendWidth,titleRight)-viewBoxX;svg.attr("viewBox",`${viewBoxX} 0 ${totalWidth} 450`),configureSvgSize(svg,450,totalWidth,pieConfig.useMaxWidth)},"draw")},styles:pieStyles_default};export{diagram};
@@ -1 +1 @@
1
- var _a,_b;import{s as setAccDescription,g as getAccDescription,q as getDiagramTitle,p as setDiagramTitle,a as getAccTitle,b as setAccTitle,_ as __name,c as getConfig2,l as log,d as select,e as configureSvgSize,y as clear,F as defaultConfig_default,i as sanitizeText,I as getThemeVariables3}from"./mermaid.core-uz8EInB1.js";import{l as linear}from"./linear-DhvRMIYs.js";import"./vendor-mdxeditor-2ethWb9I.js";import"./vendor-antd-CAAyMICZ.js";import"./vendor-codemirror-zGsatVJf.js";import"./vendor-markdown-Bpu4AByL.js";import"./init-DMZMl1PR.js";import"./defaultLocale-DZ7E7S9R.js";var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,3],$V1=[1,4],$V2=[1,5],$V3=[1,6],$V4=[1,7],$V5=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],$V6=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],$V7=[55,56,57],$V8=[2,36],$V9=[1,37],$Va=[1,36],$Vb=[1,38],$Vc=[1,35],$Vd=[1,43],$Ve=[1,41],$Vf=[1,14],$Vg=[1,23],$Vh=[1,18],$Vi=[1,19],$Vj=[1,20],$Vk=[1,21],$Vl=[1,22],$Vm=[1,24],$Vn=[1,25],$Vo=[1,26],$Vp=[1,27],$Vq=[1,28],$Vr=[1,29],$Vs=[1,32],$Vt=[1,33],$Vu=[1,34],$Vv=[1,39],$Vw=[1,40],$Vx=[1,42],$Vy=[1,44],$Vz=[1,62],$VA=[1,61],$VB=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],$VC=[1,65],$VD=[1,66],$VE=[1,67],$VF=[1,68],$VG=[1,69],$VH=[1,70],$VI=[1,71],$VJ=[1,72],$VK=[1,73],$VL=[1,74],$VM=[1,75],$VN=[1,76],$VO=[4,5,6,7,8,9,10,11,12,13,14,15,18],$VP=[1,90],$VQ=[1,91],$VR=[1,92],$VS=[1,99],$VT=[1,93],$VU=[1,96],$VV=[1,94],$VW=[1,95],$VX=[1,97],$VY=[1,98],$VZ=[1,102],$V_=[10,55,56,57],$V$=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 23:case 68:this.$=$$[$0];break;case 24:case 69:this.$=$$[$0-1]+""+$$[$0];break;case 26:this.$=$$[$0-1]+$$[$0];break;case 27:this.$=[$$[$0].trim()];break;case 28:$$[$0-2].push($$[$0].trim()),this.$=$$[$0-2];break;case 29:this.$=$$[$0-4],yy.addClass($$[$0-2],$$[$0]);break;case 37:this.$=[];break;case 42:this.$=$$[$0].trim(),yy.setDiagramTitle(this.$);break;case 43:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 44:case 45:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 46:yy.addSection($$[$0].substr(8)),this.$=$$[$0].substr(8);break;case 47:yy.addPoint($$[$0-3],"",$$[$0-1],$$[$0],[]);break;case 48:yy.addPoint($$[$0-4],$$[$0-3],$$[$0-1],$$[$0],[]);break;case 49:yy.addPoint($$[$0-4],"",$$[$0-2],$$[$0-1],$$[$0]);break;case 50:yy.addPoint($$[$0-5],$$[$0-4],$$[$0-2],$$[$0-1],$$[$0]);break;case 51:yy.setXAxisLeftText($$[$0-2]),yy.setXAxisRightText($$[$0]);break;case 52:$$[$0-1].text+=" ⟶ ",yy.setXAxisLeftText($$[$0-1]);break;case 53:yy.setXAxisLeftText($$[$0]);break;case 54:yy.setYAxisBottomText($$[$0-2]),yy.setYAxisTopText($$[$0]);break;case 55:$$[$0-1].text+=" ⟶ ",yy.setYAxisBottomText($$[$0-1]);break;case 56:yy.setYAxisBottomText($$[$0]);break;case 57:yy.setQuadrant1Text($$[$0]);break;case 58:yy.setQuadrant2Text($$[$0]);break;case 59:yy.setQuadrant3Text($$[$0]);break;case 60:yy.setQuadrant4Text($$[$0]);break;case 64:case 66:this.$={text:$$[$0],type:"text"};break;case 65:this.$={text:$$[$0-1].text+""+$$[$0],type:$$[$0-1].type};break;case 67:this.$={text:$$[$0],type:"markdown"}}},"anonymous"),table:[{18:$V0,26:1,27:2,28:$V1,55:$V2,56:$V3,57:$V4},{1:[3]},{18:$V0,26:8,27:2,28:$V1,55:$V2,56:$V3,57:$V4},{18:$V0,26:9,27:2,28:$V1,55:$V2,56:$V3,57:$V4},o($V5,[2,33],{29:10}),o($V6,[2,61]),o($V6,[2,62]),o($V6,[2,63]),{1:[2,30]},{1:[2,31]},o($V7,$V8,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$Vf,25:$Vg,35:$Vh,37:$Vi,39:$Vj,41:$Vk,42:$Vl,48:$Vm,50:$Vn,51:$Vo,52:$Vp,53:$Vq,54:$Vr,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V5,[2,34]),{27:45,55:$V2,56:$V3,57:$V4},o($V7,[2,37]),o($V7,$V8,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$Vf,25:$Vg,35:$Vh,37:$Vi,39:$Vj,41:$Vk,42:$Vl,48:$Vm,50:$Vn,51:$Vo,52:$Vp,53:$Vq,54:$Vr,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,39]),o($V7,[2,40]),o($V7,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},o($V7,[2,45]),o($V7,[2,46]),{18:[1,50]},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:51,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:52,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:53,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:54,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:55,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:56,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,44:[1,57],47:[1,58],58:60,59:59,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},o($VB,[2,64]),o($VB,[2,66]),o($VB,[2,67]),o($VB,[2,70]),o($VB,[2,71]),o($VB,[2,72]),o($VB,[2,73]),o($VB,[2,74]),o($VB,[2,75]),o($VB,[2,76]),o($VB,[2,77]),o($VB,[2,78]),o($VB,[2,79]),o($VB,[2,80]),o($V5,[2,35]),o($V7,[2,38]),o($V7,[2,42]),o($V7,[2,43]),o($V7,[2,44]),{3:64,4:$VC,5:$VD,6:$VE,7:$VF,8:$VG,9:$VH,10:$VI,11:$VJ,12:$VK,13:$VL,14:$VM,15:$VN,21:63},o($V7,[2,53],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,49:[1,77],63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,56],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,49:[1,78],63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,57],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,58],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,59],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,60],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),{45:[1,79]},{44:[1,80]},o($VB,[2,65]),o($VB,[2,81]),o($VB,[2,82]),o($VB,[2,83]),{3:82,4:$VC,5:$VD,6:$VE,7:$VF,8:$VG,9:$VH,10:$VI,11:$VJ,12:$VK,13:$VL,14:$VM,15:$VN,18:[1,81]},o($VO,[2,23]),o($VO,[2,1]),o($VO,[2,2]),o($VO,[2,3]),o($VO,[2,4]),o($VO,[2,5]),o($VO,[2,6]),o($VO,[2,7]),o($VO,[2,8]),o($VO,[2,9]),o($VO,[2,10]),o($VO,[2,11]),o($VO,[2,12]),o($V7,[2,52],{58:31,43:83,4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,55],{58:31,43:84,4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),{46:[1,85]},{45:[1,86]},{4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,16:89,17:$VV,18:$VW,19:$VX,20:$VY,22:88,23:87},o($VO,[2,24]),o($V7,[2,51],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,54],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,47],{22:88,16:89,23:100,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY}),{46:[1,101]},o($V7,[2,29],{10:$VZ}),o($V_,[2,27],{16:103,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY}),o($V$,[2,25]),o($V$,[2,13]),o($V$,[2,14]),o($V$,[2,15]),o($V$,[2,16]),o($V$,[2,17]),o($V$,[2,18]),o($V$,[2,19]),o($V$,[2,20]),o($V$,[2,21]),o($V$,[2,22]),o($V7,[2,49],{10:$VZ}),o($V7,[2,48],{22:88,16:89,23:104,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY}),{4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,16:89,17:$VV,18:$VW,19:$VX,20:$VY,22:105},o($V$,[2,26]),o($V7,[2,50],{10:$VZ}),o($V_,[2,28],{16:103,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY})],defaultActions:{8:[2,30],9:[2,31]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),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,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/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:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],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:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}}}();function Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var quadrant_default=parser,defaultThemeVariables=getThemeVariables3(),QuadrantBuilder=(__name(_a=class{constructor(){this.classes=new Map,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 _a2,_b2,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o,_p,_q,_r;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(_a2=defaultConfig_default.quadrantChart)?void 0:_a2.chartWidth)||500,chartWidth:(null==(_b2=defaultConfig_default.quadrantChart)?void 0:_b2.chartHeight)||500,titlePadding:(null==(_c=defaultConfig_default.quadrantChart)?void 0:_c.titlePadding)||10,titleFontSize:(null==(_d=defaultConfig_default.quadrantChart)?void 0:_d.titleFontSize)||20,quadrantPadding:(null==(_e=defaultConfig_default.quadrantChart)?void 0:_e.quadrantPadding)||5,xAxisLabelPadding:(null==(_f=defaultConfig_default.quadrantChart)?void 0:_f.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(_g=defaultConfig_default.quadrantChart)?void 0:_g.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(_h=defaultConfig_default.quadrantChart)?void 0:_h.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(_i=defaultConfig_default.quadrantChart)?void 0:_i.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(_j=defaultConfig_default.quadrantChart)?void 0:_j.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(_k=defaultConfig_default.quadrantChart)?void 0:_k.quadrantTextTopPadding)||5,pointTextPadding:(null==(_l=defaultConfig_default.quadrantChart)?void 0:_l.pointTextPadding)||5,pointLabelFontSize:(null==(_m=defaultConfig_default.quadrantChart)?void 0:_m.pointLabelFontSize)||12,pointRadius:(null==(_n=defaultConfig_default.quadrantChart)?void 0:_n.pointRadius)||5,xAxisPosition:(null==(_o=defaultConfig_default.quadrantChart)?void 0:_o.xAxisPosition)||"top",yAxisPosition:(null==(_p=defaultConfig_default.quadrantChart)?void 0:_p.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(_q=defaultConfig_default.quadrantChart)?void 0:_q.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(_r=defaultConfig_default.quadrantChart)?void 0:_r.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:defaultThemeVariables.quadrant1Fill,quadrant2Fill:defaultThemeVariables.quadrant2Fill,quadrant3Fill:defaultThemeVariables.quadrant3Fill,quadrant4Fill:defaultThemeVariables.quadrant4Fill,quadrant1TextFill:defaultThemeVariables.quadrant1TextFill,quadrant2TextFill:defaultThemeVariables.quadrant2TextFill,quadrant3TextFill:defaultThemeVariables.quadrant3TextFill,quadrant4TextFill:defaultThemeVariables.quadrant4TextFill,quadrantPointFill:defaultThemeVariables.quadrantPointFill,quadrantPointTextFill:defaultThemeVariables.quadrantPointTextFill,quadrantXAxisTextFill:defaultThemeVariables.quadrantXAxisTextFill,quadrantYAxisTextFill:defaultThemeVariables.quadrantYAxisTextFill,quadrantTitleFill:defaultThemeVariables.quadrantTitleFill,quadrantInternalBorderStrokeFill:defaultThemeVariables.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:defaultThemeVariables.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,log.info("clear called")}setData(data){this.data={...this.data,...data}}addPoints(points){this.data.points=[...points,...this.data.points]}addClass(className,styles){this.classes.set(className,styles)}setConfig(config2){log.trace("setConfig called with: ",config2),this.config={...this.config,...config2}}setThemeConfig(themeConfig){log.trace("setThemeConfig called with: ",themeConfig),this.themeConfig={...this.themeConfig,...themeConfig}}calculateSpace(xAxisPosition,showXAxis,showYAxis,showTitle){const xAxisSpaceCalculation=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,xAxisSpace={top:"top"===xAxisPosition&&showXAxis?xAxisSpaceCalculation:0,bottom:"bottom"===xAxisPosition&&showXAxis?xAxisSpaceCalculation:0},yAxisSpaceCalculation=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,yAxisSpace={left:"left"===this.config.yAxisPosition&&showYAxis?yAxisSpaceCalculation:0,right:"right"===this.config.yAxisPosition&&showYAxis?yAxisSpaceCalculation:0},titleSpaceCalculation=this.config.titleFontSize+2*this.config.titlePadding,titleSpace={top:showTitle?titleSpaceCalculation:0},quadrantLeft=this.config.quadrantPadding+yAxisSpace.left,quadrantTop=this.config.quadrantPadding+xAxisSpace.top+titleSpace.top,quadrantWidth=this.config.chartWidth-2*this.config.quadrantPadding-yAxisSpace.left-yAxisSpace.right,quadrantHeight=this.config.chartHeight-2*this.config.quadrantPadding-xAxisSpace.top-xAxisSpace.bottom-titleSpace.top;return{xAxisSpace:xAxisSpace,yAxisSpace:yAxisSpace,titleSpace:titleSpace,quadrantSpace:{quadrantLeft:quadrantLeft,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth,quadrantHalfWidth:quadrantWidth/2,quadrantHeight:quadrantHeight,quadrantHalfHeight:quadrantHeight/2}}}getAxisLabels(xAxisPosition,showXAxis,showYAxis,spaceData){const{quadrantSpace:quadrantSpace,titleSpace:titleSpace}=spaceData,{quadrantHalfHeight:quadrantHalfHeight,quadrantHeight:quadrantHeight,quadrantLeft:quadrantLeft,quadrantHalfWidth:quadrantHalfWidth,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth}=quadrantSpace,drawXAxisLabelsInMiddle=Boolean(this.data.xAxisRightText),drawYAxisLabelsInMiddle=Boolean(this.data.yAxisTopText),axisLabels=[];return this.data.xAxisLeftText&&showXAxis&&axisLabels.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:quadrantLeft+(drawXAxisLabelsInMiddle?quadrantHalfWidth/2:0),y:"top"===xAxisPosition?this.config.xAxisLabelPadding+titleSpace.top:this.config.xAxisLabelPadding+quadrantTop+quadrantHeight+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:drawXAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&showXAxis&&axisLabels.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:quadrantLeft+quadrantHalfWidth+(drawXAxisLabelsInMiddle?quadrantHalfWidth/2:0),y:"top"===xAxisPosition?this.config.xAxisLabelPadding+titleSpace.top:this.config.xAxisLabelPadding+quadrantTop+quadrantHeight+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:drawXAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&showYAxis&&axisLabels.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+quadrantLeft+quadrantWidth+this.config.quadrantPadding,y:quadrantTop+quadrantHeight-(drawYAxisLabelsInMiddle?quadrantHalfHeight/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:drawYAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&showYAxis&&axisLabels.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+quadrantLeft+quadrantWidth+this.config.quadrantPadding,y:quadrantTop+quadrantHalfHeight-(drawYAxisLabelsInMiddle?quadrantHalfHeight/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:drawYAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:-90}),axisLabels}getQuadrants(spaceData){const{quadrantSpace:quadrantSpace}=spaceData,{quadrantHalfHeight:quadrantHalfHeight,quadrantLeft:quadrantLeft,quadrantHalfWidth:quadrantHalfWidth,quadrantTop:quadrantTop}=quadrantSpace,quadrants=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:quadrantLeft+quadrantHalfWidth,y:quadrantTop,width:quadrantHalfWidth,height:quadrantHalfHeight,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:quadrantLeft,y:quadrantTop,width:quadrantHalfWidth,height:quadrantHalfHeight,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:quadrantLeft,y:quadrantTop+quadrantHalfHeight,width:quadrantHalfWidth,height:quadrantHalfHeight,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:quadrantLeft+quadrantHalfWidth,y:quadrantTop+quadrantHalfHeight,width:quadrantHalfWidth,height:quadrantHalfHeight,fill:this.themeConfig.quadrant4Fill}];for(const quadrant of quadrants)quadrant.text.x=quadrant.x+quadrant.width/2,0===this.data.points.length?(quadrant.text.y=quadrant.y+quadrant.height/2,quadrant.text.horizontalPos="middle"):(quadrant.text.y=quadrant.y+this.config.quadrantTextTopPadding,quadrant.text.horizontalPos="top");return quadrants}getQuadrantPoints(spaceData){const{quadrantSpace:quadrantSpace}=spaceData,{quadrantHeight:quadrantHeight,quadrantLeft:quadrantLeft,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth}=quadrantSpace,xAxis=linear().domain([0,1]).range([quadrantLeft,quadrantWidth+quadrantLeft]),yAxis=linear().domain([0,1]).range([quadrantHeight+quadrantTop,quadrantTop]);return this.data.points.map(point=>{const classStyles=this.classes.get(point.className);classStyles&&(point={...classStyles,...point});return{x:xAxis(point.x),y:yAxis(point.y),fill:point.color??this.themeConfig.quadrantPointFill,radius:point.radius??this.config.pointRadius,text:{text:point.text,fill:this.themeConfig.quadrantPointTextFill,x:xAxis(point.x),y:yAxis(point.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:point.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:point.strokeWidth??"0px"}})}getBorders(spaceData){const halfExternalBorderWidth=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:quadrantSpace}=spaceData,{quadrantHalfHeight:quadrantHalfHeight,quadrantHeight:quadrantHeight,quadrantLeft:quadrantLeft,quadrantHalfWidth:quadrantHalfWidth,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth}=quadrantSpace;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft-halfExternalBorderWidth,y1:quadrantTop,x2:quadrantLeft+quadrantWidth+halfExternalBorderWidth,y2:quadrantTop},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft+quadrantWidth,y1:quadrantTop+halfExternalBorderWidth,x2:quadrantLeft+quadrantWidth,y2:quadrantTop+quadrantHeight-halfExternalBorderWidth},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft-halfExternalBorderWidth,y1:quadrantTop+quadrantHeight,x2:quadrantLeft+quadrantWidth+halfExternalBorderWidth,y2:quadrantTop+quadrantHeight},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft,y1:quadrantTop+halfExternalBorderWidth,x2:quadrantLeft,y2:quadrantTop+quadrantHeight-halfExternalBorderWidth},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:quadrantLeft+quadrantHalfWidth,y1:quadrantTop+halfExternalBorderWidth,x2:quadrantLeft+quadrantHalfWidth,y2:quadrantTop+quadrantHeight-halfExternalBorderWidth},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:quadrantLeft+halfExternalBorderWidth,y1:quadrantTop+quadrantHalfHeight,x2:quadrantLeft+quadrantWidth-halfExternalBorderWidth,y2:quadrantTop+quadrantHalfHeight}]}getTitle(showTitle){if(showTitle)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 showXAxis=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),showYAxis=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),showTitle=this.config.showTitle&&!!this.data.titleText,xAxisPosition=this.data.points.length>0?"bottom":this.config.xAxisPosition,calculatedSpace=this.calculateSpace(xAxisPosition,showXAxis,showYAxis,showTitle);return{points:this.getQuadrantPoints(calculatedSpace),quadrants:this.getQuadrants(calculatedSpace),axisLabels:this.getAxisLabels(xAxisPosition,showXAxis,showYAxis,calculatedSpace),borderLines:this.getBorders(calculatedSpace),title:this.getTitle(showTitle)}}},"QuadrantBuilder"),_a),InvalidStyleError=(_b=class extends Error{constructor(style,value,type){super(`value for ${style} ${value} is invalid, please use a valid ${type}`),this.name="InvalidStyleError"}},__name(_b,"InvalidStyleError"),_b);function validateHexCode(value){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(value)}function validateNumber(value){return!/^\d+$/.test(value)}function validateSizeInPixels(value){return!/^\d+px$/.test(value)}__name(validateHexCode,"validateHexCode"),__name(validateNumber,"validateNumber"),__name(validateSizeInPixels,"validateSizeInPixels");var config=getConfig2();function textSanitizer(text){return sanitizeText(text.trim(),config)}__name(textSanitizer,"textSanitizer");var quadrantBuilder=new QuadrantBuilder;function setQuadrant1Text(textObj){quadrantBuilder.setData({quadrant1Text:textSanitizer(textObj.text)})}function setQuadrant2Text(textObj){quadrantBuilder.setData({quadrant2Text:textSanitizer(textObj.text)})}function setQuadrant3Text(textObj){quadrantBuilder.setData({quadrant3Text:textSanitizer(textObj.text)})}function setQuadrant4Text(textObj){quadrantBuilder.setData({quadrant4Text:textSanitizer(textObj.text)})}function setXAxisLeftText(textObj){quadrantBuilder.setData({xAxisLeftText:textSanitizer(textObj.text)})}function setXAxisRightText(textObj){quadrantBuilder.setData({xAxisRightText:textSanitizer(textObj.text)})}function setYAxisTopText(textObj){quadrantBuilder.setData({yAxisTopText:textSanitizer(textObj.text)})}function setYAxisBottomText(textObj){quadrantBuilder.setData({yAxisBottomText:textSanitizer(textObj.text)})}function parseStyles(styles){const stylesObject={};for(const style of styles){const[key,value]=style.trim().split(/\s*:\s*/);if("radius"===key){if(validateNumber(value))throw new InvalidStyleError(key,value,"number");stylesObject.radius=parseInt(value)}else if("color"===key){if(validateHexCode(value))throw new InvalidStyleError(key,value,"hex code");stylesObject.color=value}else if("stroke-color"===key){if(validateHexCode(value))throw new InvalidStyleError(key,value,"hex code");stylesObject.strokeColor=value}else{if("stroke-width"!==key)throw new Error(`style named ${key} is not supported.`);if(validateSizeInPixels(value))throw new InvalidStyleError(key,value,"number of pixels (eg. 10px)");stylesObject.strokeWidth=value}}return stylesObject}function addPoint(textObj,className,x,y,styles){const stylesObject=parseStyles(styles);quadrantBuilder.addPoints([{x:x,y:y,text:textSanitizer(textObj.text),className:className,...stylesObject}])}function addClass(className,styles){quadrantBuilder.addClass(className,parseStyles(styles))}function setWidth(width){quadrantBuilder.setConfig({chartWidth:width})}function setHeight(height){quadrantBuilder.setConfig({chartHeight:height})}function getQuadrantData(){const config2=getConfig2(),{themeVariables:themeVariables,quadrantChart:quadrantChartConfig}=config2;return quadrantChartConfig&&quadrantBuilder.setConfig(quadrantChartConfig),quadrantBuilder.setThemeConfig({quadrant1Fill:themeVariables.quadrant1Fill,quadrant2Fill:themeVariables.quadrant2Fill,quadrant3Fill:themeVariables.quadrant3Fill,quadrant4Fill:themeVariables.quadrant4Fill,quadrant1TextFill:themeVariables.quadrant1TextFill,quadrant2TextFill:themeVariables.quadrant2TextFill,quadrant3TextFill:themeVariables.quadrant3TextFill,quadrant4TextFill:themeVariables.quadrant4TextFill,quadrantPointFill:themeVariables.quadrantPointFill,quadrantPointTextFill:themeVariables.quadrantPointTextFill,quadrantXAxisTextFill:themeVariables.quadrantXAxisTextFill,quadrantYAxisTextFill:themeVariables.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:themeVariables.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:themeVariables.quadrantInternalBorderStrokeFill,quadrantTitleFill:themeVariables.quadrantTitleFill}),quadrantBuilder.setData({titleText:getDiagramTitle()}),quadrantBuilder.build()}__name(setQuadrant1Text,"setQuadrant1Text"),__name(setQuadrant2Text,"setQuadrant2Text"),__name(setQuadrant3Text,"setQuadrant3Text"),__name(setQuadrant4Text,"setQuadrant4Text"),__name(setXAxisLeftText,"setXAxisLeftText"),__name(setXAxisRightText,"setXAxisRightText"),__name(setYAxisTopText,"setYAxisTopText"),__name(setYAxisBottomText,"setYAxisBottomText"),__name(parseStyles,"parseStyles"),__name(addPoint,"addPoint"),__name(addClass,"addClass"),__name(setWidth,"setWidth"),__name(setHeight,"setHeight"),__name(getQuadrantData,"getQuadrantData");var diagram={parser:quadrant_default,db:{setWidth:setWidth,setHeight:setHeight,setQuadrant1Text:setQuadrant1Text,setQuadrant2Text:setQuadrant2Text,setQuadrant3Text:setQuadrant3Text,setQuadrant4Text:setQuadrant4Text,setXAxisLeftText:setXAxisLeftText,setXAxisRightText:setXAxisRightText,setYAxisTopText:setYAxisTopText,setYAxisBottomText:setYAxisBottomText,parseStyles:parseStyles,addPoint:addPoint,addClass:addClass,getQuadrantData:getQuadrantData,clear:__name(function(){quadrantBuilder.clear(),clear()},"clear"),setAccTitle:setAccTitle,getAccTitle:getAccTitle,setDiagramTitle:setDiagramTitle,getDiagramTitle:getDiagramTitle,getAccDescription:getAccDescription,setAccDescription:setAccDescription},renderer:{draw:__name((txt,id,_version,diagObj)=>{var _a2,_b2,_c;function getDominantBaseLine(horizontalPos){return"top"===horizontalPos?"hanging":"middle"}function getTextAnchor(verticalPos){return"left"===verticalPos?"start":"middle"}function getTransformation(data){return`translate(${data.x}, ${data.y}) rotate(${data.rotation||0})`}__name(getDominantBaseLine,"getDominantBaseLine"),__name(getTextAnchor,"getTextAnchor"),__name(getTransformation,"getTransformation");const conf=getConfig2();log.debug("Rendering quadrant chart\n"+txt);const securityLevel=conf.securityLevel;let sandboxElement;"sandbox"===securityLevel&&(sandboxElement=select("#i"+id));const svg=select("sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument.body:"body").select(`[id="${id}"]`),group=svg.append("g").attr("class","main"),width=(null==(_a2=conf.quadrantChart)?void 0:_a2.chartWidth)??500,height=(null==(_b2=conf.quadrantChart)?void 0:_b2.chartHeight)??500;configureSvgSize(svg,height,width,(null==(_c=conf.quadrantChart)?void 0:_c.useMaxWidth)??!0),svg.attr("viewBox","0 0 "+width+" "+height),diagObj.db.setHeight(height),diagObj.db.setWidth(width);const quadrantData=diagObj.db.getQuadrantData(),quadrantsGroup=group.append("g").attr("class","quadrants"),borderGroup=group.append("g").attr("class","border"),dataPointGroup=group.append("g").attr("class","data-points"),labelGroup=group.append("g").attr("class","labels"),titleGroup=group.append("g").attr("class","title");quadrantData.title&&titleGroup.append("text").attr("x",0).attr("y",0).attr("fill",quadrantData.title.fill).attr("font-size",quadrantData.title.fontSize).attr("dominant-baseline",getDominantBaseLine(quadrantData.title.horizontalPos)).attr("text-anchor",getTextAnchor(quadrantData.title.verticalPos)).attr("transform",getTransformation(quadrantData.title)).text(quadrantData.title.text),quadrantData.borderLines&&borderGroup.selectAll("line").data(quadrantData.borderLines).enter().append("line").attr("x1",data=>data.x1).attr("y1",data=>data.y1).attr("x2",data=>data.x2).attr("y2",data=>data.y2).style("stroke",data=>data.strokeFill).style("stroke-width",data=>data.strokeWidth);const quadrants=quadrantsGroup.selectAll("g.quadrant").data(quadrantData.quadrants).enter().append("g").attr("class","quadrant");quadrants.append("rect").attr("x",data=>data.x).attr("y",data=>data.y).attr("width",data=>data.width).attr("height",data=>data.height).attr("fill",data=>data.fill),quadrants.append("text").attr("x",0).attr("y",0).attr("fill",data=>data.text.fill).attr("font-size",data=>data.text.fontSize).attr("dominant-baseline",data=>getDominantBaseLine(data.text.horizontalPos)).attr("text-anchor",data=>getTextAnchor(data.text.verticalPos)).attr("transform",data=>getTransformation(data.text)).text(data=>data.text.text);labelGroup.selectAll("g.label").data(quadrantData.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(data=>data.text).attr("fill",data=>data.fill).attr("font-size",data=>data.fontSize).attr("dominant-baseline",data=>getDominantBaseLine(data.horizontalPos)).attr("text-anchor",data=>getTextAnchor(data.verticalPos)).attr("transform",data=>getTransformation(data));const dataPoints=dataPointGroup.selectAll("g.data-point").data(quadrantData.points).enter().append("g").attr("class","data-point");dataPoints.append("circle").attr("cx",data=>data.x).attr("cy",data=>data.y).attr("r",data=>data.radius).attr("fill",data=>data.fill).attr("stroke",data=>data.strokeColor).attr("stroke-width",data=>data.strokeWidth),dataPoints.append("text").attr("x",0).attr("y",0).text(data=>data.text.text).attr("fill",data=>data.text.fill).attr("font-size",data=>data.text.fontSize).attr("dominant-baseline",data=>getDominantBaseLine(data.text.horizontalPos)).attr("text-anchor",data=>getTextAnchor(data.text.verticalPos)).attr("transform",data=>getTransformation(data.text))},"draw")},styles:__name(()=>"","styles")};export{diagram};
1
+ var _a,_b;import{s as setAccDescription,g as getAccDescription,q as getDiagramTitle,p as setDiagramTitle,a as getAccTitle,b as setAccTitle,_ as __name,c as getConfig2,l as log,d as select,e as configureSvgSize,y as clear,F as defaultConfig_default,i as sanitizeText,I as getThemeVariables3}from"./mermaid.core-ChPdLHKc.js";import{l as linear}from"./linear-DHkt6wuU.js";import"./vendor-mdxeditor-Dp19LkWF.js";import"./vendor-antd-BS2aqEyQ.js";import"./vendor-codemirror-DpOKy7e3.js";import"./vendor-markdown-Bpu4AByL.js";import"./init-DMZMl1PR.js";import"./defaultLocale-DZ7E7S9R.js";var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,3],$V1=[1,4],$V2=[1,5],$V3=[1,6],$V4=[1,7],$V5=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],$V6=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],$V7=[55,56,57],$V8=[2,36],$V9=[1,37],$Va=[1,36],$Vb=[1,38],$Vc=[1,35],$Vd=[1,43],$Ve=[1,41],$Vf=[1,14],$Vg=[1,23],$Vh=[1,18],$Vi=[1,19],$Vj=[1,20],$Vk=[1,21],$Vl=[1,22],$Vm=[1,24],$Vn=[1,25],$Vo=[1,26],$Vp=[1,27],$Vq=[1,28],$Vr=[1,29],$Vs=[1,32],$Vt=[1,33],$Vu=[1,34],$Vv=[1,39],$Vw=[1,40],$Vx=[1,42],$Vy=[1,44],$Vz=[1,62],$VA=[1,61],$VB=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],$VC=[1,65],$VD=[1,66],$VE=[1,67],$VF=[1,68],$VG=[1,69],$VH=[1,70],$VI=[1,71],$VJ=[1,72],$VK=[1,73],$VL=[1,74],$VM=[1,75],$VN=[1,76],$VO=[4,5,6,7,8,9,10,11,12,13,14,15,18],$VP=[1,90],$VQ=[1,91],$VR=[1,92],$VS=[1,99],$VT=[1,93],$VU=[1,96],$VV=[1,94],$VW=[1,95],$VX=[1,97],$VY=[1,98],$VZ=[1,102],$V_=[10,55,56,57],$V$=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 23:case 68:this.$=$$[$0];break;case 24:case 69:this.$=$$[$0-1]+""+$$[$0];break;case 26:this.$=$$[$0-1]+$$[$0];break;case 27:this.$=[$$[$0].trim()];break;case 28:$$[$0-2].push($$[$0].trim()),this.$=$$[$0-2];break;case 29:this.$=$$[$0-4],yy.addClass($$[$0-2],$$[$0]);break;case 37:this.$=[];break;case 42:this.$=$$[$0].trim(),yy.setDiagramTitle(this.$);break;case 43:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 44:case 45:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 46:yy.addSection($$[$0].substr(8)),this.$=$$[$0].substr(8);break;case 47:yy.addPoint($$[$0-3],"",$$[$0-1],$$[$0],[]);break;case 48:yy.addPoint($$[$0-4],$$[$0-3],$$[$0-1],$$[$0],[]);break;case 49:yy.addPoint($$[$0-4],"",$$[$0-2],$$[$0-1],$$[$0]);break;case 50:yy.addPoint($$[$0-5],$$[$0-4],$$[$0-2],$$[$0-1],$$[$0]);break;case 51:yy.setXAxisLeftText($$[$0-2]),yy.setXAxisRightText($$[$0]);break;case 52:$$[$0-1].text+=" ⟶ ",yy.setXAxisLeftText($$[$0-1]);break;case 53:yy.setXAxisLeftText($$[$0]);break;case 54:yy.setYAxisBottomText($$[$0-2]),yy.setYAxisTopText($$[$0]);break;case 55:$$[$0-1].text+=" ⟶ ",yy.setYAxisBottomText($$[$0-1]);break;case 56:yy.setYAxisBottomText($$[$0]);break;case 57:yy.setQuadrant1Text($$[$0]);break;case 58:yy.setQuadrant2Text($$[$0]);break;case 59:yy.setQuadrant3Text($$[$0]);break;case 60:yy.setQuadrant4Text($$[$0]);break;case 64:case 66:this.$={text:$$[$0],type:"text"};break;case 65:this.$={text:$$[$0-1].text+""+$$[$0],type:$$[$0-1].type};break;case 67:this.$={text:$$[$0],type:"markdown"}}},"anonymous"),table:[{18:$V0,26:1,27:2,28:$V1,55:$V2,56:$V3,57:$V4},{1:[3]},{18:$V0,26:8,27:2,28:$V1,55:$V2,56:$V3,57:$V4},{18:$V0,26:9,27:2,28:$V1,55:$V2,56:$V3,57:$V4},o($V5,[2,33],{29:10}),o($V6,[2,61]),o($V6,[2,62]),o($V6,[2,63]),{1:[2,30]},{1:[2,31]},o($V7,$V8,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$Vf,25:$Vg,35:$Vh,37:$Vi,39:$Vj,41:$Vk,42:$Vl,48:$Vm,50:$Vn,51:$Vo,52:$Vp,53:$Vq,54:$Vr,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V5,[2,34]),{27:45,55:$V2,56:$V3,57:$V4},o($V7,[2,37]),o($V7,$V8,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$Vf,25:$Vg,35:$Vh,37:$Vi,39:$Vj,41:$Vk,42:$Vl,48:$Vm,50:$Vn,51:$Vo,52:$Vp,53:$Vq,54:$Vr,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,39]),o($V7,[2,40]),o($V7,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},o($V7,[2,45]),o($V7,[2,46]),{18:[1,50]},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:51,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:52,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:53,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:54,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:55,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,43:56,58:31,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},{4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,44:[1,57],47:[1,58],58:60,59:59,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy},o($VB,[2,64]),o($VB,[2,66]),o($VB,[2,67]),o($VB,[2,70]),o($VB,[2,71]),o($VB,[2,72]),o($VB,[2,73]),o($VB,[2,74]),o($VB,[2,75]),o($VB,[2,76]),o($VB,[2,77]),o($VB,[2,78]),o($VB,[2,79]),o($VB,[2,80]),o($V5,[2,35]),o($V7,[2,38]),o($V7,[2,42]),o($V7,[2,43]),o($V7,[2,44]),{3:64,4:$VC,5:$VD,6:$VE,7:$VF,8:$VG,9:$VH,10:$VI,11:$VJ,12:$VK,13:$VL,14:$VM,15:$VN,21:63},o($V7,[2,53],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,49:[1,77],63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,56],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,49:[1,78],63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,57],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,58],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,59],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,60],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),{45:[1,79]},{44:[1,80]},o($VB,[2,65]),o($VB,[2,81]),o($VB,[2,82]),o($VB,[2,83]),{3:82,4:$VC,5:$VD,6:$VE,7:$VF,8:$VG,9:$VH,10:$VI,11:$VJ,12:$VK,13:$VL,14:$VM,15:$VN,18:[1,81]},o($VO,[2,23]),o($VO,[2,1]),o($VO,[2,2]),o($VO,[2,3]),o($VO,[2,4]),o($VO,[2,5]),o($VO,[2,6]),o($VO,[2,7]),o($VO,[2,8]),o($VO,[2,9]),o($VO,[2,10]),o($VO,[2,11]),o($VO,[2,12]),o($V7,[2,52],{58:31,43:83,4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,55],{58:31,43:84,4:$V9,5:$Va,10:$Vb,12:$Vc,13:$Vd,14:$Ve,60:$Vs,61:$Vt,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),{46:[1,85]},{45:[1,86]},{4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,16:89,17:$VV,18:$VW,19:$VX,20:$VY,22:88,23:87},o($VO,[2,24]),o($V7,[2,51],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,54],{59:59,58:60,4:$V9,5:$Va,8:$Vz,10:$Vb,12:$Vc,13:$Vd,14:$Ve,18:$VA,63:$Vu,64:$Vv,65:$Vw,66:$Vx,67:$Vy}),o($V7,[2,47],{22:88,16:89,23:100,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY}),{46:[1,101]},o($V7,[2,29],{10:$VZ}),o($V_,[2,27],{16:103,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY}),o($V$,[2,25]),o($V$,[2,13]),o($V$,[2,14]),o($V$,[2,15]),o($V$,[2,16]),o($V$,[2,17]),o($V$,[2,18]),o($V$,[2,19]),o($V$,[2,20]),o($V$,[2,21]),o($V$,[2,22]),o($V7,[2,49],{10:$VZ}),o($V7,[2,48],{22:88,16:89,23:104,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY}),{4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,16:89,17:$VV,18:$VW,19:$VX,20:$VY,22:105},o($V$,[2,26]),o($V7,[2,50],{10:$VZ}),o($V_,[2,28],{16:103,4:$VP,5:$VQ,6:$VR,8:$VS,11:$VT,13:$VU,17:$VV,18:$VW,19:$VX,20:$VY})],defaultActions:{8:[2,30],9:[2,31]},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),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,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/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:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],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:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}}}();function Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var quadrant_default=parser,defaultThemeVariables=getThemeVariables3(),QuadrantBuilder=(__name(_a=class{constructor(){this.classes=new Map,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 _a2,_b2,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o,_p,_q,_r;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:(null==(_a2=defaultConfig_default.quadrantChart)?void 0:_a2.chartWidth)||500,chartWidth:(null==(_b2=defaultConfig_default.quadrantChart)?void 0:_b2.chartHeight)||500,titlePadding:(null==(_c=defaultConfig_default.quadrantChart)?void 0:_c.titlePadding)||10,titleFontSize:(null==(_d=defaultConfig_default.quadrantChart)?void 0:_d.titleFontSize)||20,quadrantPadding:(null==(_e=defaultConfig_default.quadrantChart)?void 0:_e.quadrantPadding)||5,xAxisLabelPadding:(null==(_f=defaultConfig_default.quadrantChart)?void 0:_f.xAxisLabelPadding)||5,yAxisLabelPadding:(null==(_g=defaultConfig_default.quadrantChart)?void 0:_g.yAxisLabelPadding)||5,xAxisLabelFontSize:(null==(_h=defaultConfig_default.quadrantChart)?void 0:_h.xAxisLabelFontSize)||16,yAxisLabelFontSize:(null==(_i=defaultConfig_default.quadrantChart)?void 0:_i.yAxisLabelFontSize)||16,quadrantLabelFontSize:(null==(_j=defaultConfig_default.quadrantChart)?void 0:_j.quadrantLabelFontSize)||16,quadrantTextTopPadding:(null==(_k=defaultConfig_default.quadrantChart)?void 0:_k.quadrantTextTopPadding)||5,pointTextPadding:(null==(_l=defaultConfig_default.quadrantChart)?void 0:_l.pointTextPadding)||5,pointLabelFontSize:(null==(_m=defaultConfig_default.quadrantChart)?void 0:_m.pointLabelFontSize)||12,pointRadius:(null==(_n=defaultConfig_default.quadrantChart)?void 0:_n.pointRadius)||5,xAxisPosition:(null==(_o=defaultConfig_default.quadrantChart)?void 0:_o.xAxisPosition)||"top",yAxisPosition:(null==(_p=defaultConfig_default.quadrantChart)?void 0:_p.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:(null==(_q=defaultConfig_default.quadrantChart)?void 0:_q.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:(null==(_r=defaultConfig_default.quadrantChart)?void 0:_r.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:defaultThemeVariables.quadrant1Fill,quadrant2Fill:defaultThemeVariables.quadrant2Fill,quadrant3Fill:defaultThemeVariables.quadrant3Fill,quadrant4Fill:defaultThemeVariables.quadrant4Fill,quadrant1TextFill:defaultThemeVariables.quadrant1TextFill,quadrant2TextFill:defaultThemeVariables.quadrant2TextFill,quadrant3TextFill:defaultThemeVariables.quadrant3TextFill,quadrant4TextFill:defaultThemeVariables.quadrant4TextFill,quadrantPointFill:defaultThemeVariables.quadrantPointFill,quadrantPointTextFill:defaultThemeVariables.quadrantPointTextFill,quadrantXAxisTextFill:defaultThemeVariables.quadrantXAxisTextFill,quadrantYAxisTextFill:defaultThemeVariables.quadrantYAxisTextFill,quadrantTitleFill:defaultThemeVariables.quadrantTitleFill,quadrantInternalBorderStrokeFill:defaultThemeVariables.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:defaultThemeVariables.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,log.info("clear called")}setData(data){this.data={...this.data,...data}}addPoints(points){this.data.points=[...points,...this.data.points]}addClass(className,styles){this.classes.set(className,styles)}setConfig(config2){log.trace("setConfig called with: ",config2),this.config={...this.config,...config2}}setThemeConfig(themeConfig){log.trace("setThemeConfig called with: ",themeConfig),this.themeConfig={...this.themeConfig,...themeConfig}}calculateSpace(xAxisPosition,showXAxis,showYAxis,showTitle){const xAxisSpaceCalculation=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,xAxisSpace={top:"top"===xAxisPosition&&showXAxis?xAxisSpaceCalculation:0,bottom:"bottom"===xAxisPosition&&showXAxis?xAxisSpaceCalculation:0},yAxisSpaceCalculation=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,yAxisSpace={left:"left"===this.config.yAxisPosition&&showYAxis?yAxisSpaceCalculation:0,right:"right"===this.config.yAxisPosition&&showYAxis?yAxisSpaceCalculation:0},titleSpaceCalculation=this.config.titleFontSize+2*this.config.titlePadding,titleSpace={top:showTitle?titleSpaceCalculation:0},quadrantLeft=this.config.quadrantPadding+yAxisSpace.left,quadrantTop=this.config.quadrantPadding+xAxisSpace.top+titleSpace.top,quadrantWidth=this.config.chartWidth-2*this.config.quadrantPadding-yAxisSpace.left-yAxisSpace.right,quadrantHeight=this.config.chartHeight-2*this.config.quadrantPadding-xAxisSpace.top-xAxisSpace.bottom-titleSpace.top;return{xAxisSpace:xAxisSpace,yAxisSpace:yAxisSpace,titleSpace:titleSpace,quadrantSpace:{quadrantLeft:quadrantLeft,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth,quadrantHalfWidth:quadrantWidth/2,quadrantHeight:quadrantHeight,quadrantHalfHeight:quadrantHeight/2}}}getAxisLabels(xAxisPosition,showXAxis,showYAxis,spaceData){const{quadrantSpace:quadrantSpace,titleSpace:titleSpace}=spaceData,{quadrantHalfHeight:quadrantHalfHeight,quadrantHeight:quadrantHeight,quadrantLeft:quadrantLeft,quadrantHalfWidth:quadrantHalfWidth,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth}=quadrantSpace,drawXAxisLabelsInMiddle=Boolean(this.data.xAxisRightText),drawYAxisLabelsInMiddle=Boolean(this.data.yAxisTopText),axisLabels=[];return this.data.xAxisLeftText&&showXAxis&&axisLabels.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:quadrantLeft+(drawXAxisLabelsInMiddle?quadrantHalfWidth/2:0),y:"top"===xAxisPosition?this.config.xAxisLabelPadding+titleSpace.top:this.config.xAxisLabelPadding+quadrantTop+quadrantHeight+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:drawXAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&showXAxis&&axisLabels.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:quadrantLeft+quadrantHalfWidth+(drawXAxisLabelsInMiddle?quadrantHalfWidth/2:0),y:"top"===xAxisPosition?this.config.xAxisLabelPadding+titleSpace.top:this.config.xAxisLabelPadding+quadrantTop+quadrantHeight+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:drawXAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&showYAxis&&axisLabels.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+quadrantLeft+quadrantWidth+this.config.quadrantPadding,y:quadrantTop+quadrantHeight-(drawYAxisLabelsInMiddle?quadrantHalfHeight/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:drawYAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&showYAxis&&axisLabels.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+quadrantLeft+quadrantWidth+this.config.quadrantPadding,y:quadrantTop+quadrantHalfHeight-(drawYAxisLabelsInMiddle?quadrantHalfHeight/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:drawYAxisLabelsInMiddle?"center":"left",horizontalPos:"top",rotation:-90}),axisLabels}getQuadrants(spaceData){const{quadrantSpace:quadrantSpace}=spaceData,{quadrantHalfHeight:quadrantHalfHeight,quadrantLeft:quadrantLeft,quadrantHalfWidth:quadrantHalfWidth,quadrantTop:quadrantTop}=quadrantSpace,quadrants=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:quadrantLeft+quadrantHalfWidth,y:quadrantTop,width:quadrantHalfWidth,height:quadrantHalfHeight,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:quadrantLeft,y:quadrantTop,width:quadrantHalfWidth,height:quadrantHalfHeight,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:quadrantLeft,y:quadrantTop+quadrantHalfHeight,width:quadrantHalfWidth,height:quadrantHalfHeight,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:quadrantLeft+quadrantHalfWidth,y:quadrantTop+quadrantHalfHeight,width:quadrantHalfWidth,height:quadrantHalfHeight,fill:this.themeConfig.quadrant4Fill}];for(const quadrant of quadrants)quadrant.text.x=quadrant.x+quadrant.width/2,0===this.data.points.length?(quadrant.text.y=quadrant.y+quadrant.height/2,quadrant.text.horizontalPos="middle"):(quadrant.text.y=quadrant.y+this.config.quadrantTextTopPadding,quadrant.text.horizontalPos="top");return quadrants}getQuadrantPoints(spaceData){const{quadrantSpace:quadrantSpace}=spaceData,{quadrantHeight:quadrantHeight,quadrantLeft:quadrantLeft,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth}=quadrantSpace,xAxis=linear().domain([0,1]).range([quadrantLeft,quadrantWidth+quadrantLeft]),yAxis=linear().domain([0,1]).range([quadrantHeight+quadrantTop,quadrantTop]);return this.data.points.map(point=>{const classStyles=this.classes.get(point.className);classStyles&&(point={...classStyles,...point});return{x:xAxis(point.x),y:yAxis(point.y),fill:point.color??this.themeConfig.quadrantPointFill,radius:point.radius??this.config.pointRadius,text:{text:point.text,fill:this.themeConfig.quadrantPointTextFill,x:xAxis(point.x),y:yAxis(point.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:point.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:point.strokeWidth??"0px"}})}getBorders(spaceData){const halfExternalBorderWidth=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:quadrantSpace}=spaceData,{quadrantHalfHeight:quadrantHalfHeight,quadrantHeight:quadrantHeight,quadrantLeft:quadrantLeft,quadrantHalfWidth:quadrantHalfWidth,quadrantTop:quadrantTop,quadrantWidth:quadrantWidth}=quadrantSpace;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft-halfExternalBorderWidth,y1:quadrantTop,x2:quadrantLeft+quadrantWidth+halfExternalBorderWidth,y2:quadrantTop},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft+quadrantWidth,y1:quadrantTop+halfExternalBorderWidth,x2:quadrantLeft+quadrantWidth,y2:quadrantTop+quadrantHeight-halfExternalBorderWidth},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft-halfExternalBorderWidth,y1:quadrantTop+quadrantHeight,x2:quadrantLeft+quadrantWidth+halfExternalBorderWidth,y2:quadrantTop+quadrantHeight},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:quadrantLeft,y1:quadrantTop+halfExternalBorderWidth,x2:quadrantLeft,y2:quadrantTop+quadrantHeight-halfExternalBorderWidth},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:quadrantLeft+quadrantHalfWidth,y1:quadrantTop+halfExternalBorderWidth,x2:quadrantLeft+quadrantHalfWidth,y2:quadrantTop+quadrantHeight-halfExternalBorderWidth},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:quadrantLeft+halfExternalBorderWidth,y1:quadrantTop+quadrantHalfHeight,x2:quadrantLeft+quadrantWidth-halfExternalBorderWidth,y2:quadrantTop+quadrantHalfHeight}]}getTitle(showTitle){if(showTitle)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 showXAxis=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),showYAxis=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),showTitle=this.config.showTitle&&!!this.data.titleText,xAxisPosition=this.data.points.length>0?"bottom":this.config.xAxisPosition,calculatedSpace=this.calculateSpace(xAxisPosition,showXAxis,showYAxis,showTitle);return{points:this.getQuadrantPoints(calculatedSpace),quadrants:this.getQuadrants(calculatedSpace),axisLabels:this.getAxisLabels(xAxisPosition,showXAxis,showYAxis,calculatedSpace),borderLines:this.getBorders(calculatedSpace),title:this.getTitle(showTitle)}}},"QuadrantBuilder"),_a),InvalidStyleError=(_b=class extends Error{constructor(style,value,type){super(`value for ${style} ${value} is invalid, please use a valid ${type}`),this.name="InvalidStyleError"}},__name(_b,"InvalidStyleError"),_b);function validateHexCode(value){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(value)}function validateNumber(value){return!/^\d+$/.test(value)}function validateSizeInPixels(value){return!/^\d+px$/.test(value)}__name(validateHexCode,"validateHexCode"),__name(validateNumber,"validateNumber"),__name(validateSizeInPixels,"validateSizeInPixels");var config=getConfig2();function textSanitizer(text){return sanitizeText(text.trim(),config)}__name(textSanitizer,"textSanitizer");var quadrantBuilder=new QuadrantBuilder;function setQuadrant1Text(textObj){quadrantBuilder.setData({quadrant1Text:textSanitizer(textObj.text)})}function setQuadrant2Text(textObj){quadrantBuilder.setData({quadrant2Text:textSanitizer(textObj.text)})}function setQuadrant3Text(textObj){quadrantBuilder.setData({quadrant3Text:textSanitizer(textObj.text)})}function setQuadrant4Text(textObj){quadrantBuilder.setData({quadrant4Text:textSanitizer(textObj.text)})}function setXAxisLeftText(textObj){quadrantBuilder.setData({xAxisLeftText:textSanitizer(textObj.text)})}function setXAxisRightText(textObj){quadrantBuilder.setData({xAxisRightText:textSanitizer(textObj.text)})}function setYAxisTopText(textObj){quadrantBuilder.setData({yAxisTopText:textSanitizer(textObj.text)})}function setYAxisBottomText(textObj){quadrantBuilder.setData({yAxisBottomText:textSanitizer(textObj.text)})}function parseStyles(styles){const stylesObject={};for(const style of styles){const[key,value]=style.trim().split(/\s*:\s*/);if("radius"===key){if(validateNumber(value))throw new InvalidStyleError(key,value,"number");stylesObject.radius=parseInt(value)}else if("color"===key){if(validateHexCode(value))throw new InvalidStyleError(key,value,"hex code");stylesObject.color=value}else if("stroke-color"===key){if(validateHexCode(value))throw new InvalidStyleError(key,value,"hex code");stylesObject.strokeColor=value}else{if("stroke-width"!==key)throw new Error(`style named ${key} is not supported.`);if(validateSizeInPixels(value))throw new InvalidStyleError(key,value,"number of pixels (eg. 10px)");stylesObject.strokeWidth=value}}return stylesObject}function addPoint(textObj,className,x,y,styles){const stylesObject=parseStyles(styles);quadrantBuilder.addPoints([{x:x,y:y,text:textSanitizer(textObj.text),className:className,...stylesObject}])}function addClass(className,styles){quadrantBuilder.addClass(className,parseStyles(styles))}function setWidth(width){quadrantBuilder.setConfig({chartWidth:width})}function setHeight(height){quadrantBuilder.setConfig({chartHeight:height})}function getQuadrantData(){const config2=getConfig2(),{themeVariables:themeVariables,quadrantChart:quadrantChartConfig}=config2;return quadrantChartConfig&&quadrantBuilder.setConfig(quadrantChartConfig),quadrantBuilder.setThemeConfig({quadrant1Fill:themeVariables.quadrant1Fill,quadrant2Fill:themeVariables.quadrant2Fill,quadrant3Fill:themeVariables.quadrant3Fill,quadrant4Fill:themeVariables.quadrant4Fill,quadrant1TextFill:themeVariables.quadrant1TextFill,quadrant2TextFill:themeVariables.quadrant2TextFill,quadrant3TextFill:themeVariables.quadrant3TextFill,quadrant4TextFill:themeVariables.quadrant4TextFill,quadrantPointFill:themeVariables.quadrantPointFill,quadrantPointTextFill:themeVariables.quadrantPointTextFill,quadrantXAxisTextFill:themeVariables.quadrantXAxisTextFill,quadrantYAxisTextFill:themeVariables.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:themeVariables.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:themeVariables.quadrantInternalBorderStrokeFill,quadrantTitleFill:themeVariables.quadrantTitleFill}),quadrantBuilder.setData({titleText:getDiagramTitle()}),quadrantBuilder.build()}__name(setQuadrant1Text,"setQuadrant1Text"),__name(setQuadrant2Text,"setQuadrant2Text"),__name(setQuadrant3Text,"setQuadrant3Text"),__name(setQuadrant4Text,"setQuadrant4Text"),__name(setXAxisLeftText,"setXAxisLeftText"),__name(setXAxisRightText,"setXAxisRightText"),__name(setYAxisTopText,"setYAxisTopText"),__name(setYAxisBottomText,"setYAxisBottomText"),__name(parseStyles,"parseStyles"),__name(addPoint,"addPoint"),__name(addClass,"addClass"),__name(setWidth,"setWidth"),__name(setHeight,"setHeight"),__name(getQuadrantData,"getQuadrantData");var diagram={parser:quadrant_default,db:{setWidth:setWidth,setHeight:setHeight,setQuadrant1Text:setQuadrant1Text,setQuadrant2Text:setQuadrant2Text,setQuadrant3Text:setQuadrant3Text,setQuadrant4Text:setQuadrant4Text,setXAxisLeftText:setXAxisLeftText,setXAxisRightText:setXAxisRightText,setYAxisTopText:setYAxisTopText,setYAxisBottomText:setYAxisBottomText,parseStyles:parseStyles,addPoint:addPoint,addClass:addClass,getQuadrantData:getQuadrantData,clear:__name(function(){quadrantBuilder.clear(),clear()},"clear"),setAccTitle:setAccTitle,getAccTitle:getAccTitle,setDiagramTitle:setDiagramTitle,getDiagramTitle:getDiagramTitle,getAccDescription:getAccDescription,setAccDescription:setAccDescription},renderer:{draw:__name((txt,id,_version,diagObj)=>{var _a2,_b2,_c;function getDominantBaseLine(horizontalPos){return"top"===horizontalPos?"hanging":"middle"}function getTextAnchor(verticalPos){return"left"===verticalPos?"start":"middle"}function getTransformation(data){return`translate(${data.x}, ${data.y}) rotate(${data.rotation||0})`}__name(getDominantBaseLine,"getDominantBaseLine"),__name(getTextAnchor,"getTextAnchor"),__name(getTransformation,"getTransformation");const conf=getConfig2();log.debug("Rendering quadrant chart\n"+txt);const securityLevel=conf.securityLevel;let sandboxElement;"sandbox"===securityLevel&&(sandboxElement=select("#i"+id));const svg=select("sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument.body:"body").select(`[id="${id}"]`),group=svg.append("g").attr("class","main"),width=(null==(_a2=conf.quadrantChart)?void 0:_a2.chartWidth)??500,height=(null==(_b2=conf.quadrantChart)?void 0:_b2.chartHeight)??500;configureSvgSize(svg,height,width,(null==(_c=conf.quadrantChart)?void 0:_c.useMaxWidth)??!0),svg.attr("viewBox","0 0 "+width+" "+height),diagObj.db.setHeight(height),diagObj.db.setWidth(width);const quadrantData=diagObj.db.getQuadrantData(),quadrantsGroup=group.append("g").attr("class","quadrants"),borderGroup=group.append("g").attr("class","border"),dataPointGroup=group.append("g").attr("class","data-points"),labelGroup=group.append("g").attr("class","labels"),titleGroup=group.append("g").attr("class","title");quadrantData.title&&titleGroup.append("text").attr("x",0).attr("y",0).attr("fill",quadrantData.title.fill).attr("font-size",quadrantData.title.fontSize).attr("dominant-baseline",getDominantBaseLine(quadrantData.title.horizontalPos)).attr("text-anchor",getTextAnchor(quadrantData.title.verticalPos)).attr("transform",getTransformation(quadrantData.title)).text(quadrantData.title.text),quadrantData.borderLines&&borderGroup.selectAll("line").data(quadrantData.borderLines).enter().append("line").attr("x1",data=>data.x1).attr("y1",data=>data.y1).attr("x2",data=>data.x2).attr("y2",data=>data.y2).style("stroke",data=>data.strokeFill).style("stroke-width",data=>data.strokeWidth);const quadrants=quadrantsGroup.selectAll("g.quadrant").data(quadrantData.quadrants).enter().append("g").attr("class","quadrant");quadrants.append("rect").attr("x",data=>data.x).attr("y",data=>data.y).attr("width",data=>data.width).attr("height",data=>data.height).attr("fill",data=>data.fill),quadrants.append("text").attr("x",0).attr("y",0).attr("fill",data=>data.text.fill).attr("font-size",data=>data.text.fontSize).attr("dominant-baseline",data=>getDominantBaseLine(data.text.horizontalPos)).attr("text-anchor",data=>getTextAnchor(data.text.verticalPos)).attr("transform",data=>getTransformation(data.text)).text(data=>data.text.text);labelGroup.selectAll("g.label").data(quadrantData.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(data=>data.text).attr("fill",data=>data.fill).attr("font-size",data=>data.fontSize).attr("dominant-baseline",data=>getDominantBaseLine(data.horizontalPos)).attr("text-anchor",data=>getTextAnchor(data.verticalPos)).attr("transform",data=>getTransformation(data));const dataPoints=dataPointGroup.selectAll("g.data-point").data(quadrantData.points).enter().append("g").attr("class","data-point");dataPoints.append("circle").attr("cx",data=>data.x).attr("cy",data=>data.y).attr("r",data=>data.radius).attr("fill",data=>data.fill).attr("stroke",data=>data.strokeColor).attr("stroke-width",data=>data.strokeWidth),dataPoints.append("text").attr("x",0).attr("y",0).text(data=>data.text.text).attr("fill",data=>data.text.fill).attr("font-size",data=>data.text.fontSize).attr("dominant-baseline",data=>getDominantBaseLine(data.text.horizontalPos)).attr("text-anchor",data=>getTextAnchor(data.text.verticalPos)).attr("transform",data=>getTransformation(data.text))},"draw")},styles:__name(()=>"","styles")};export{diagram};