@eeshaai/code 0.0.0-stage → 1.0.0

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 (128) hide show
  1. package/LICENSE.md +115 -0
  2. package/README.md +322 -3
  3. package/dist/THIRD-PARTY-NOTICES.md +23 -0
  4. package/dist/claude-agent-sdk/LICENSE.md +1 -0
  5. package/dist/claude-agent-sdk/sdk.mjs +156 -0
  6. package/dist/cli.js +23 -0
  7. package/dist/pluginWorker.js +1610 -0
  8. package/dist/resources/styles/custom/instructions/design.md +284 -0
  9. package/dist/resources/styles/custom/instructions/requirements.md +161 -0
  10. package/dist/resources/styles/custom/instructions/tasks-implement.md +90 -0
  11. package/dist/resources/styles/custom/instructions/tasks.md +159 -0
  12. package/dist/resources/styles/custom/process.md +49 -0
  13. package/dist/resources/styles/custom/prompts/first.md +29 -0
  14. package/dist/resources/styles/custom/prompts/implement.md +27 -0
  15. package/dist/resources/styles/custom/prompts/rewrite-note.md +40 -0
  16. package/dist/resources/styles/custom/prompts/rewrite.md +32 -0
  17. package/dist/resources/styles/custom/style.yml +46 -0
  18. package/dist/resources/styles/grammar.md +731 -0
  19. package/dist/server.js +839 -0
  20. package/dist/web/chunks/abnfDiagram-VCTEODGH-6KC3BO47.js +2 -0
  21. package/dist/web/chunks/architecture-7GRP2DOG-JLXNDD4H.js +2 -0
  22. package/dist/web/chunks/architectureDiagram-5GKGNRK7-QKPCVOD2.js +37 -0
  23. package/dist/web/chunks/blockDiagram-I7D4REHJ-4XZWNXLB.js +130 -0
  24. package/dist/web/chunks/c4Diagram-7LVT6UL2-4HJHKNE3.js +39 -0
  25. package/dist/web/chunks/chunk-2DLEMZHM.js +33 -0
  26. package/dist/web/chunks/chunk-2RFQIKC6.js +232 -0
  27. package/dist/web/chunks/chunk-37NHO5VO.js +2 -0
  28. package/dist/web/chunks/chunk-46RPN6IE.js +3 -0
  29. package/dist/web/chunks/chunk-4IPDIKAU.js +2 -0
  30. package/dist/web/chunks/chunk-4KP3BIPB.js +2 -0
  31. package/dist/web/chunks/chunk-4S2DRQJ6.js +340 -0
  32. package/dist/web/chunks/chunk-4TORDSRR.js +2 -0
  33. package/dist/web/chunks/chunk-5KNOHX5X.js +15 -0
  34. package/dist/web/chunks/chunk-6FQEBIA3.js +133 -0
  35. package/dist/web/chunks/chunk-6KSWTVXD.js +3 -0
  36. package/dist/web/chunks/chunk-6TGTE6CF.js +2 -0
  37. package/dist/web/chunks/chunk-6URXM4C4.js +2 -0
  38. package/dist/web/chunks/chunk-6VRLULJH.js +2 -0
  39. package/dist/web/chunks/chunk-7XAOOQR4.js +2 -0
  40. package/dist/web/chunks/chunk-BUZPUGIT.js +2 -0
  41. package/dist/web/chunks/chunk-DIRT34TZ.js +2 -0
  42. package/dist/web/chunks/chunk-FGASMJTA.js +4 -0
  43. package/dist/web/chunks/chunk-FNIFXWXL.js +2 -0
  44. package/dist/web/chunks/chunk-FPLIRG3U.js +73 -0
  45. package/dist/web/chunks/chunk-GQPX4EIC.js +11 -0
  46. package/dist/web/chunks/chunk-HAKJ3AUV.js +2 -0
  47. package/dist/web/chunks/chunk-HBEUVMXY.js +2 -0
  48. package/dist/web/chunks/chunk-HNYXDXPN.js +63 -0
  49. package/dist/web/chunks/chunk-HX7W7GSO.js +2 -0
  50. package/dist/web/chunks/chunk-II6WN3ZG.js +2 -0
  51. package/dist/web/chunks/chunk-JOSXY3EP.js +169 -0
  52. package/dist/web/chunks/chunk-L34PKG4P.js +2 -0
  53. package/dist/web/chunks/chunk-LDXBIOBF.js +2 -0
  54. package/dist/web/chunks/chunk-LHNPPNB7.js +3 -0
  55. package/dist/web/chunks/chunk-LQ6CTWX6.js +2 -0
  56. package/dist/web/chunks/chunk-LSVIQRSY.js +2 -0
  57. package/dist/web/chunks/chunk-M3SWKTLZ.js +2 -0
  58. package/dist/web/chunks/chunk-MBZYSJFT.js +2 -0
  59. package/dist/web/chunks/chunk-MZEMPN3C.js +2 -0
  60. package/dist/web/chunks/chunk-OODDZ447.js +2 -0
  61. package/dist/web/chunks/chunk-OXLTOJNY.js +3 -0
  62. package/dist/web/chunks/chunk-PR453BYT.js +2 -0
  63. package/dist/web/chunks/chunk-QNEZP2TE.js +179 -0
  64. package/dist/web/chunks/chunk-R7TFKRNM.js +2 -0
  65. package/dist/web/chunks/chunk-T4HEWXAQ.js +2 -0
  66. package/dist/web/chunks/chunk-TPXX77KB.js +2 -0
  67. package/dist/web/chunks/chunk-TPYBIPJG.js +2 -0
  68. package/dist/web/chunks/chunk-TXNHMPKM.js +89 -0
  69. package/dist/web/chunks/chunk-VAKN3BTM.js +2 -0
  70. package/dist/web/chunks/chunk-VY4GEFSG.js +2 -0
  71. package/dist/web/chunks/chunk-XBYCKXUJ.js +207 -0
  72. package/dist/web/chunks/chunk-YM7LHP34.js +16 -0
  73. package/dist/web/chunks/classDiagram-ZZMXUADV-4J5HHZD6.js +2 -0
  74. package/dist/web/chunks/classDiagram-v2-VYDZK3BY-X6WY2DAS.js +2 -0
  75. package/dist/web/chunks/cose-bilkent-JH36ORCC-ZPRW5JRW.js +2 -0
  76. package/dist/web/chunks/cynefin-OW5HDTMX-SVVTQRRB.js +2 -0
  77. package/dist/web/chunks/cynefinDiagram-5FMLGOSQ-O7GURHJG.js +63 -0
  78. package/dist/web/chunks/dagre-GXQ25YYZ-WK67O4N6.js +5 -0
  79. package/dist/web/chunks/diagram-S7CK7UJ4-2CEO2EN2.js +31 -0
  80. package/dist/web/chunks/diagram-UQ7AKVKN-2Z4VHGF3.js +42 -0
  81. package/dist/web/chunks/diagram-VSXAHHWV-AN4BOWYB.js +4 -0
  82. package/dist/web/chunks/diagram-VX7I27RA-VEZ2GXCM.js +25 -0
  83. package/dist/web/chunks/diagram-Z3DM3KII-TGGNDSLW.js +25 -0
  84. package/dist/web/chunks/ebnfDiagram-PWID7BFC-7RM57IJV.js +2 -0
  85. package/dist/web/chunks/erDiagram-RLTQ6QDP-LCATC3YT.js +100 -0
  86. package/dist/web/chunks/eventmodeling-NTZA5JFV-2SR57JAH.js +2 -0
  87. package/dist/web/chunks/flowDiagram-HODETNUW-HU6Y2EYQ.js +2 -0
  88. package/dist/web/chunks/ganttDiagram-EL5Y4UJY-5VPBBF2V.js +293 -0
  89. package/dist/web/chunks/gitGraph-4MIJSDKK-25JPIQP7.js +2 -0
  90. package/dist/web/chunks/gitGraphDiagram-WWUBYQGX-HZMAGPIJ.js +107 -0
  91. package/dist/web/chunks/info-A6RAGUB7-72MROTVX.js +2 -0
  92. package/dist/web/chunks/infoDiagram-27XIBGKW-BQYTPGNG.js +3 -0
  93. package/dist/web/chunks/ishikawaDiagram-5VMMS53U-A54WWBPX.js +71 -0
  94. package/dist/web/chunks/journeyDiagram-3NMN7TZE-XRCTMTR7.js +140 -0
  95. package/dist/web/chunks/kanban-definition-UXKFOSKX-UW2PQXZF.js +90 -0
  96. package/dist/web/chunks/katex-B7HWCVTN.js +258 -0
  97. package/dist/web/chunks/mermaid.core-VL5SQK5M.js +19 -0
  98. package/dist/web/chunks/mindmap-definition-YA3MSWOX-2H2Z6CVN.js +97 -0
  99. package/dist/web/chunks/packet-AYTQ26CC-NEGDW4B6.js +2 -0
  100. package/dist/web/chunks/pegDiagram-XKGWAZYB-KC4BYUN7.js +2 -0
  101. package/dist/web/chunks/pie-WAS4IAKB-OT3EMGHT.js +2 -0
  102. package/dist/web/chunks/pieDiagram-E7YTZNPT-54T6XSU5.js +40 -0
  103. package/dist/web/chunks/quadrantDiagram-AXDQQJYC-3G3RXSTE.js +8 -0
  104. package/dist/web/chunks/radar-RG4KPBEZ-DCHU5FOQ.js +2 -0
  105. package/dist/web/chunks/railroad-74A4TZTK-RZX6D7H6.js +2 -0
  106. package/dist/web/chunks/railroad-abnf-HS5TGJTU-STTFN7R4.js +2 -0
  107. package/dist/web/chunks/railroad-ebnf-LZEXJU2U-RBXU3IBK.js +2 -0
  108. package/dist/web/chunks/railroad-peg-WCYAUIDC-OD5BXOH6.js +2 -0
  109. package/dist/web/chunks/railroadDiagram-O6MQD6OU-3LHKFF5N.js +2 -0
  110. package/dist/web/chunks/requirementDiagram-BXWQKSXE-M4LF54YT.js +85 -0
  111. package/dist/web/chunks/sankeyDiagram-P5KCCOFB-USCKKKNT.js +41 -0
  112. package/dist/web/chunks/sequenceDiagram-WJ2MYXX4-QZ2O4KWV.js +163 -0
  113. package/dist/web/chunks/sizeCapture-INFHLROL-DZI5JWEV.js +2 -0
  114. package/dist/web/chunks/stateDiagram-D77RDMKH-EQJNTBF3.js +2 -0
  115. package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-WSCDKLG6.js +2 -0
  116. package/dist/web/chunks/swimlanes-42K2YHIH-H7SZ2HG6.js +2 -0
  117. package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-DFYTBPVS.js +9 -0
  118. package/dist/web/chunks/timeline-definition-24CTP7MA-4Q2ARIQ6.js +121 -0
  119. package/dist/web/chunks/treeView-Q6P3EWNA-ADCP6RPT.js +2 -0
  120. package/dist/web/chunks/treemap-WGGIJYW6-NEV7DUDY.js +2 -0
  121. package/dist/web/chunks/vennDiagram-4TSXK5OY-WMJVK74C.js +35 -0
  122. package/dist/web/chunks/wardley-WFR3VGLG-4QZOFDI5.js +2 -0
  123. package/dist/web/chunks/wardleyDiagram-VM6X3IG4-CLB324RQ.js +79 -0
  124. package/dist/web/chunks/xychartDiagram-S5SC5T6Z-G5C2R7C2.js +8 -0
  125. package/dist/web/index.html +24 -0
  126. package/dist/web/page.css +2 -0
  127. package/dist/web/page.js +210 -0
  128. package/package.json +62 -6
@@ -0,0 +1,169 @@
1
+ import{a as i1,b as r1}from"./chunk-2DLEMZHM.js";import{a as o1}from"./chunk-YM7LHP34.js";import{a as l1}from"./chunk-HBEUVMXY.js";import{b as a1,c as n1}from"./chunk-DIRT34TZ.js";import{a as c1}from"./chunk-6TGTE6CF.js";import{h as u1}from"./chunk-T4HEWXAQ.js";import{g as s1}from"./chunk-HNYXDXPN.js";import{p as Qe,s as Je}from"./chunk-LHNPPNB7.js";import{$ as at,N as Ht,T as qt,U as Xt,V as Qt,W as Jt,X as Zt,Y as $t,Z as e1,_ as de,a as Wt,aa as t1,b as jt,g as Kt,x as Yt}from"./chunk-6FQEBIA3.js";import{b as Z,h as Xe}from"./chunk-L34PKG4P.js";import{a as A}from"./chunk-LDXBIOBF.js";import{d as zt}from"./chunk-R7TFKRNM.js";zt();var A1="flowchart-",m1=class{constructor(){this.vertexCounter=0,this.config=de(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Xt,this.setAccDescription=Jt,this.setDiagramTitle=$t,this.getAccTitle=Qt,this.getAccDescription=Zt,this.getDiagramTitle=e1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{A(this,"FlowDB")}sanitizeText(e){return Ht.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,u,f,l={},k){if(!e||e.trim().length===0)return;let h;if(k!==void 0){let o;k.includes(`
2
+ `)?o=k+`
3
+ `:o=`{
4
+ `+k+`
5
+ }`,h=r1(o,{schema:i1})}let _=this.subGraphLookup.get(e);if(_&&h){_.metadata={..._.metadata,...h};return}let y=this.edges.find(o=>o.id===e);if(y){let o=h;o?.animate!==void 0&&(y.animate=o.animate),o?.animation!==void 0&&(y.animation=o.animation),o?.curve!==void 0&&(y.interpolate=o.curve);return}let L,g=this.vertices.get(e);if(g===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&Z.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),g={id:e,labelType:"text",domId:A1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,g)),this.vertexCounter++,i!==void 0?(this.config=de(),L=this.sanitizeText(i.text.trim()),g.labelType=i.type,L.startsWith('"')&&L.endsWith('"')&&(L=L.substring(1,L.length-1)),g.text=L):g.text===void 0&&(g.text=e),r!==void 0&&(g.type=r),a?.forEach(o=>{g.styles.push(o)}),u?.forEach(o=>{g.classes.push(o)}),f!==void 0&&(g.dir=f),g.props===void 0?g.props=l:l!==void 0&&Object.assign(g.props,l),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!s1(h.shape))throw new Error(`No such shape: ${h.shape}.`);g.type=h?.shape}h?.label&&(g.text=h?.label,g.labelType=this.sanitizeNodeLabelType(h?.labelType)),h?.icon&&(g.icon=h?.icon,!h.label?.trim()&&g.text===e&&(g.text="")),h?.form&&(g.form=h?.form),h?.pos&&(g.pos=h?.pos),h?.img&&(g.img=h?.img,!h.label?.trim()&&g.text===e&&(g.text="")),h?.constraint&&(g.constraint=h.constraint),h.w&&(g.assetWidth=Number(h.w)),h.h&&(g.assetHeight=Number(h.h))}}addSingleLink(e,i,r,a){let l={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Z.info("abc78 Got edge...",l);let k=r.text;if(k!==void 0&&(l.text=this.sanitizeText(k.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(k.type)),r!==void 0&&(l.type=r.type,l.stroke=r.stroke,l.length=r.length>10?10:r.length),a&&!this.edges.some(h=>h.id===a))l.id=a,l.isUserDefinedId=!0;else{let h=this.edges.filter(_=>_.start===l.start&&_.end===l.end);h.length===0?l.id=Je(l.start,l.end,{counter:0,prefix:"L"}):l.id=Je(l.start,l.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Z.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){let a=this.isLinkData(r)?r.id.replace("@",""):void 0;Z.info("addLink",e,i,a);for(let u of e)for(let f of i){let l=u===e[e.length-1],k=f===i[0];l&&k?this.addSingleLink(u,f,r,a):this.addSingleLink(u,f,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){let r=i.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let u=this.classes.get(a);u===void 0&&(u={id:a,styles:[],textStyles:[]},this.classes.set(a,u)),r?.forEach(f=>{if(/color/.exec(f)){let l=f.replace("fill","bgFill");u.textStyles.push(l)}u.styles.push(f)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(let r of e.split(",")){let a=this.vertices.get(r);a&&a.classes.push(i);let u=this.edges.find(l=>l.id===r);u&&u.classes.push(i);let f=this.subGraphLookup.get(r);f&&f.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(let r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(de().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<a.length;f++){let l=a[f].trim();l.startsWith('"')&&l.endsWith('"')&&(l=l.substr(1,l.length-2)),a[f]=l}}a.length===0&&a.push(e);let u=this.vertices.get(e);u&&(u.haveCallback=!0,this.funs.push(()=>{let f=this.lookUpDomId(e),l=document.querySelector(`[id="${f}"]`);l!==null&&l.addEventListener("click",()=>{Qe.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{let u=this.vertices.get(a);u!==void 0&&(u.link=Qe.formatUrl(i,this.config),u.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let i=u1();Xe(e).select("svg").selectAll("g.node").on("mouseover",u=>{let f=Xe(u.currentTarget),l=f.attr("title");if(l===null)return;let k=u.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(f.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.bottom+"px"),i.html(Kt.sanitize(l)),f.classed("hover",!0)}).on("mouseout",u=>{i.transition().duration(500).style("opacity",0),Xe(u.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=de(),qt()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),u=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);let l=A(L=>{let g={boolean:{},number:{},string:{}},o=[],c;return{nodeList:L.filter(function(B){let Q=typeof B;return B.stmt&&B.stmt==="dir"?(c=B.value,!1):B.trim()===""?!1:Q in g?g[Q].hasOwnProperty(B)?!1:g[Q][B]=!0:o.includes(B)?!1:o.push(B)}),dir:c}},"uniq")(i.flat()),k=l.nodeList,h=l.dir,_=de().flowchart??{};if(h=h??(_.inheritDir?this.getDirection()??de().direction??void 0:void 0),this.version==="gen-1")for(let L=0;L<k.length;L++)k[L]=this.lookUpDomId(k[L]);a=a??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;let y={id:a,nodes:k,title:u.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(r?.type)};return Z.info("Adding",y.id,y.nodes,y.dir),y.nodes=this.makeUniq(y,this.subGraphs).nodes,this.subGraphs.push(y),this.subGraphLookup.set(a,y),a}getPosForId(e){for(let[i,r]of this.subGraphs.entries())if(r.id===e)return i;return-1}indexNodes2(e,i){let r=this.subGraphs[i].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,u=1;for(;a<r.length;){let f=this.getPosForId(r[a]);if(f>=0){let l=this.indexNodes2(e,f);if(l.result)return{result:!0,count:u+l.count};u=u+l.count}a=a+1}return{result:!1,count:u}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){let r=i.length,a=0;for(let u=0;u<r;++u)i[u]===e&&++a;return a}destructEndLink(e){let i=e.trim(),r=i.slice(0,-1),a="arrow_open";switch(i.slice(-1)){case"x":a="arrow_cross",i.startsWith("x")&&(a="double_"+a,r=r.slice(1));break;case">":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let u="normal",f=r.length-1;r.startsWith("=")&&(u="thick"),r.startsWith("~")&&(u="invisible");let l=this.countChar(".",r);return l&&(u="dotted",f=l),{type:a,stroke:u,length:f}}destructLink(e,i){let r=this.destructEndLink(e),a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(let r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){let r=[];return e.nodes.forEach((a,u)=>{this.exists(i,a)||r.push(e.nodes[u])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,u,f){let l=r.get(e.id),k=a.get(e.id)??!1,h=this.findNode(i,e.id);if(h)h.cssStyles=e.styles,h.cssCompiledStyles=this.getCompiledStyles(e.classes),h.cssClasses=e.classes.join(" ");else{let _={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:l,padding:u.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:f,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};k?i.push({..._,isGroup:!0,shape:"rect"}):i.push({..._,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(let r of e){let a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(u=>u.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(u=>u.trim()))}return i}getData(){let e=de(),i=[],r=[],a=this.getSubGraphs(),u=new Map,f=new Map,l=new Map;for(let o of a)for(let c of o.nodes)this.subGraphLookup.has(c)&&l.set(c,o.id);let k=A(o=>this.subGraphLookup.get(o)?.metadata?.view==="collapsed","isCollapsed"),h=A(o=>{let c,E=new Set,B=o;for(;B!==void 0&&!E.has(B);)E.add(B),k(B)&&(c=B),B=l.get(B);return c},"outermostCollapsed"),_=new Set,y=new Map;for(let o of a){let c=h(o.id);if(c!==void 0){o.id!==c&&(_.add(o.id),y.set(o.id,c));for(let E of o.nodes)E!==c&&(_.add(E),y.set(E,c))}}for(let o=a.length-1;o>=0;o--){let c=a[o];if(!_.has(c.id)){c.nodes.length>0&&f.set(c.id,!0);for(let E of c.nodes)u.set(E,c.id)}}for(let o=a.length-1;o>=0;o--){let c=a[o];_.has(c.id)||(c.metadata?.view==="collapsed"?i.push({id:c.id,label:c.title,labelStyle:"",labelType:c.labelType,parentId:u.get(c.id),padding:8,cssCompiledStyles:this.getCompiledStyles(c.classes),cssClasses:c.classes.join(" "),shape:"collapsedGroup",dir:c.dir,isGroup:!1,look:e.look}):i.push({id:c.id,label:c.title,labelStyle:"",labelType:c.labelType,parentId:u.get(c.id),padding:8,cssCompiledStyles:this.getCompiledStyles(c.classes),cssClasses:c.classes.join(" "),shape:"rect",dir:c.dir,isGroup:!0,look:e.look}))}this.getVertices().forEach(o=>{_.has(o.id)||this.addNodeFromVertex(o,i,u,f,e,e.look||"classic")});let g=this.getEdges();return g.forEach((o,c)=>{let{arrowTypeStart:E,arrowTypeEnd:B}=this.destructEdgeType(o.type),Q=[...g.defaultStyle??[]],pe=y.get(o.start)??o.start,fe=y.get(o.end)??o.end;if(pe===fe&&(y.has(o.start)||y.has(o.end)))return;o.style&&Q.push(...o.style);let Te={id:Je(pe,fe,{counter:c,prefix:"L"},o.id),isUserDefinedId:o.isUserDefinedId,start:pe,end:fe,type:o.type??"normal",label:o.text,labelType:o.labelType,labelpos:"c",thickness:o.stroke,minlen:o.length,classes:o?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:o?.stroke==="invisible"||o?.type==="arrow_open"?"none":E,arrowTypeEnd:o?.stroke==="invisible"||o?.type==="arrow_open"?"none":B,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(o.classes),labelStyle:Q,style:Q,pattern:o.stroke,look:e.look,animate:o.animate,animation:o.animation,curve:o.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(Te)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return t1.flowchart}},C1=A(function(e,i){return i.db.getClasses()},"getClasses"),D1=A(async function(e,i,r,a){Z.info("REF0:"),Z.info("Drawing state diagram (v2)",i);let{securityLevel:u,flowchart:f,layout:l}=de();a.db.setDiagramId(i),Z.debug("Before getData: ");let k=a.db.getData();Z.debug("Data: ",k);let h=l1(i,u),_=a.db.getDirection();k.type=a.type,k.layoutAlgorithm=n1(l),k.layoutAlgorithm==="dagre"&&l==="elk"&&Z.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),k.direction=_,k.nodeSpacing=f?.nodeSpacing||50,k.rankSpacing=f?.rankSpacing||50,k.markers=["point","circle","cross"],k.diagramId=i,Z.debug("REF1:",k),await a1(k,h);let y=k.config.flowchart?.diagramPadding??8;Qe.insertTitle(h,"flowchartTitleText",f?.titleTopMargin||0,a.db.getDiagramTitle()),c1(h,y,"flowchart",f?.useMaxWidth||!1)},"draw"),T1={getClasses:C1,draw:D1},nt=(function(){var e=A(function(ge,d,p,b){for(p=p||{},b=ge.length;b--;p[ge[b]]=d);return p},"o"),i=[1,4],r=[1,3],a=[1,5],u=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],f=[2,2],l=[1,13],k=[1,14],h=[1,15],_=[1,16],y=[1,23],L=[1,25],g=[1,26],o=[1,27],c=[1,50],E=[1,49],B=[1,29],Q=[1,30],pe=[1,31],fe=[1,32],Te=[1,33],I=[1,45],w=[1,47],R=[1,43],N=[1,48],G=[1,44],P=[1,51],O=[1,46],M=[1,52],U=[1,53],Oe=[1,34],Me=[1,35],Ue=[1,36],ze=[1,37],We=[1,38],be=[1,58],S=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],ee=[1,62],te=[1,61],se=[1,63],Ee=[8,9,11,75,77,78],ut=[1,79],Se=[1,92],ye=[1,97],xe=[1,96],Fe=[1,93],_e=[1,89],Be=[1,95],ve=[1,91],Le=[1,98],Ve=[1,94],Ie=[1,99],we=[1,90],Ae=[8,9,10,11,40,75,77,78],W=[8,9,10,11,40,46,75,77,78],H=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ot=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Re=[44,60,89,102,105,106,109,111,114,115,116],lt=[1,122],ct=[1,123],je=[1,125],Ke=[1,124],ht=[44,60,62,74,89,102,105,106,109,111,114,115,116],dt=[1,134],pt=[1,148],ft=[1,149],bt=[1,150],kt=[1,151],gt=[1,136],At=[1,138],mt=[1,142],Ct=[1,143],Dt=[1,144],Tt=[1,145],Et=[1,146],St=[1,147],yt=[1,152],xt=[1,153],Ft=[1,132],_t=[1,133],Bt=[1,140],vt=[1,135],Lt=[1,139],Vt=[1,137],Ze=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],It=[1,155],wt=[1,157],v=[8,9,11],q=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],m=[1,177],j=[1,173],K=[1,174],C=[1,178],D=[1,175],T=[1,176],Ne=[77,116,119],x=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Rt=[10,106],ke=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ie=[1,248],re=[1,246],ae=[1,250],ne=[1,244],ue=[1,245],oe=[1,247],le=[1,249],ce=[1,251],Ge=[1,269],Nt=[8,9,11,106],$=[8,9,10,11,60,84,105,106,109,110,111,112],$e={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:A(function(d,p,b,n,F,t,me){var s=t.length-1;switch(F){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:n.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:n.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:n.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],n.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],n.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var V=n.destructLink(t[s],t[s-2]);this.$={type:V.type,stroke:V.stroke,length:V.length,text:t[s-1]};break;case 78:var V=n.destructLink(t[s],t[s-2]);this.$={type:V.type,stroke:V.stroke,length:V.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var V=n.destructLink(t[s]);this.$={type:V.type,stroke:V.stroke,length:V.length};break;case 84:var V=n.destructLink(t[s]);this.$={type:V.type,stroke:V.stroke,length:V.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],n.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],n.setLink(t[s-4],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],n.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],n.setLink(t[s-6],t[s-4],t[s]),n.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(u,f,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},e(u,[2,9]),e(u,[2,10]),e(u,[2,11]),{8:[1,55],9:[1,56],10:be,15:54,18:57},e(S,[2,3]),e(S,[2,4]),e(S,[2,5]),e(S,[2,6]),e(S,[2,7]),e(S,[2,8]),{8:ee,9:te,11:se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ee,9:te,11:se,21:68},{8:ee,9:te,11:se,21:69},{8:ee,9:te,11:se,21:70},{8:ee,9:te,11:se,21:71},{8:ee,9:te,11:se,21:72},{8:ee,9:te,10:[1,73],11:se,21:74},e(S,[2,36]),{35:[1,75]},{37:[1,76]},e(S,[2,39]),e(Ee,[2,50],{18:77,39:78,10:be,40:ut}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Se,44:ye,60:xe,80:[1,87],89:Fe,95:[1,84],97:[1,85],101:86,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we,120:88},e(S,[2,185]),e(S,[2,186]),e(S,[2,187]),e(S,[2,188]),e(S,[2,189]),e(Ae,[2,51]),e(Ae,[2,54],{46:[1,100]}),e(W,[2,72],{113:113,29:[1,101],44:c,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:E,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),e(H,[2,181]),e(H,[2,142]),e(H,[2,143]),e(H,[2,144]),e(H,[2,145]),e(H,[2,146]),e(H,[2,147]),e(H,[2,148]),e(H,[2,149]),e(H,[2,150]),e(H,[2,151]),e(H,[2,152]),e(u,[2,12]),e(u,[2,18]),e(u,[2,19]),{9:[1,114]},e(ot,[2,26],{18:115,10:be}),e(S,[2,27]),{42:116,43:39,44:c,45:40,47:41,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(S,[2,40]),e(S,[2,41]),e(S,[2,42]),e(Re,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:lt,81:ct,116:je,119:Ke},{75:[1,126],77:[1,127]},e(ht,[2,83]),e(S,[2,28]),e(S,[2,29]),e(S,[2,30]),e(S,[2,31]),e(S,[2,32]),{10:dt,12:pt,14:ft,27:bt,28:128,32:kt,44:gt,60:At,75:mt,80:[1,130],81:[1,131],83:141,84:Ct,85:Dt,86:Tt,87:Et,88:St,89:yt,90:xt,91:129,105:Ft,109:_t,111:Bt,114:vt,115:Lt,116:Vt},e(Ze,f,{5:154}),e(S,[2,37]),e(S,[2,38]),e(Ee,[2,48],{44:It}),e(Ee,[2,49],{18:156,10:be,40:wt}),e(Ae,[2,44]),{44:c,47:158,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{102:[1,159],103:160,105:[1,161]},{44:c,47:162,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{44:c,47:163,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(v,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(v,[2,115],{120:168,10:[1,167],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we}),e(v,[2,117],{10:[1,169]}),e(q,[2,183]),e(q,[2,170]),e(q,[2,171]),e(q,[2,172]),e(q,[2,173]),e(q,[2,174]),e(q,[2,175]),e(q,[2,176]),e(q,[2,177]),e(q,[2,178]),e(q,[2,179]),e(q,[2,180]),{44:c,47:170,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{30:171,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:179,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:181,50:[1,180],67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:182,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:183,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:184,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{109:[1,185]},{30:186,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:187,65:[1,188],67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:189,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:190,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:191,67:m,80:j,81:K,82:172,116:C,117:D,118:T},e(H,[2,182]),e(u,[2,20]),e(ot,[2,25]),e(Ee,[2,46],{39:192,18:193,10:be,40:ut}),e(Re,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{77:[1,197],79:198,116:je,119:Ke},e(Ne,[2,79]),e(Ne,[2,81]),e(Ne,[2,82]),e(Ne,[2,168]),e(Ne,[2,169]),{76:199,79:121,80:lt,81:ct,116:je,119:Ke},e(ht,[2,84]),{8:ee,9:te,10:dt,11:se,12:pt,14:ft,21:201,27:bt,29:[1,200],32:kt,44:gt,60:At,75:mt,83:141,84:Ct,85:Dt,86:Tt,87:Et,88:St,89:yt,90:xt,91:202,105:Ft,109:_t,111:Bt,114:vt,115:Lt,116:Vt},e(x,[2,101]),e(x,[2,103]),e(x,[2,104]),e(x,[2,157]),e(x,[2,158]),e(x,[2,159]),e(x,[2,160]),e(x,[2,161]),e(x,[2,162]),e(x,[2,163]),e(x,[2,164]),e(x,[2,165]),e(x,[2,166]),e(x,[2,167]),e(x,[2,90]),e(x,[2,91]),e(x,[2,92]),e(x,[2,93]),e(x,[2,94]),e(x,[2,95]),e(x,[2,96]),e(x,[2,97]),e(x,[2,98]),e(x,[2,99]),e(x,[2,100]),{6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,203],33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},{10:be,18:204},{44:[1,205]},e(Ae,[2,43]),{10:[1,206],44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{10:[1,207]},{10:[1,208],106:[1,209]},e(Rt,[2,128]),{10:[1,210],44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{10:[1,211],44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{80:[1,212]},e(v,[2,109],{10:[1,213]}),e(v,[2,111],{10:[1,214]}),{80:[1,215]},e(q,[2,184]),{80:[1,216],98:[1,217]},e(Ae,[2,55],{113:113,44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),{31:[1,218],67:m,82:219,116:C,117:D,118:T},e(ke,[2,86]),e(ke,[2,88]),e(ke,[2,89]),e(ke,[2,153]),e(ke,[2,154]),e(ke,[2,155]),e(ke,[2,156]),{49:[1,220],67:m,82:219,116:C,117:D,118:T},{30:221,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{51:[1,222],67:m,82:219,116:C,117:D,118:T},{53:[1,223],67:m,82:219,116:C,117:D,118:T},{55:[1,224],67:m,82:219,116:C,117:D,118:T},{57:[1,225],67:m,82:219,116:C,117:D,118:T},{60:[1,226]},{64:[1,227],67:m,82:219,116:C,117:D,118:T},{66:[1,228],67:m,82:219,116:C,117:D,118:T},{30:229,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{31:[1,230],67:m,82:219,116:C,117:D,118:T},{67:m,69:[1,231],71:[1,232],82:219,116:C,117:D,118:T},{67:m,69:[1,234],71:[1,233],82:219,116:C,117:D,118:T},e(Ee,[2,45],{18:156,10:be,40:wt}),e(Ee,[2,47],{44:It}),e(Re,[2,75]),e(Re,[2,74]),{62:[1,235],67:m,82:219,116:C,117:D,118:T},e(Re,[2,77]),e(Ne,[2,80]),{77:[1,236],79:198,116:je,119:Ke},{30:237,67:m,80:j,81:K,82:172,116:C,117:D,118:T},e(Ze,f,{5:238}),e(x,[2,102]),e(S,[2,35]),{43:239,44:c,45:40,47:41,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{10:be,18:240},{10:ie,60:re,84:ae,92:241,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:252,104:[1,253],105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:254,104:[1,255],105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{105:[1,256]},{10:ie,60:re,84:ae,92:257,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{44:c,47:258,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(v,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(v,[2,116]),e(v,[2,118],{10:[1,262]}),e(v,[2,119]),e(W,[2,56]),e(ke,[2,87]),e(W,[2,57]),{51:[1,263],67:m,82:219,116:C,117:D,118:T},e(W,[2,64]),e(W,[2,59]),e(W,[2,60]),e(W,[2,61]),{109:[1,264]},e(W,[2,63]),e(W,[2,65]),{66:[1,265],67:m,82:219,116:C,117:D,118:T},e(W,[2,67]),e(W,[2,68]),e(W,[2,70]),e(W,[2,69]),e(W,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(Re,[2,78]),{31:[1,266],67:m,82:219,116:C,117:D,118:T},{6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,267],33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},e(Ae,[2,53]),{43:268,44:c,45:40,47:41,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(v,[2,121],{106:Ge}),e(Nt,[2,130],{108:270,10:ie,60:re,84:ae,105:ne,109:ue,110:oe,111:le,112:ce}),e($,[2,132]),e($,[2,134]),e($,[2,135]),e($,[2,136]),e($,[2,137]),e($,[2,138]),e($,[2,139]),e($,[2,140]),e($,[2,141]),e(v,[2,122],{106:Ge}),{10:[1,271]},e(v,[2,123],{106:Ge}),{10:[1,272]},e(Rt,[2,129]),e(v,[2,105],{106:Ge}),e(v,[2,106],{113:113,44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),e(v,[2,110]),e(v,[2,112],{10:[1,273]}),e(v,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ee,9:te,11:se,21:278},e(S,[2,34]),e(Ae,[2,52]),{10:ie,60:re,84:ae,105:ne,107:279,108:243,109:ue,110:oe,111:le,112:ce},e($,[2,133]),{14:Se,44:ye,60:xe,89:Fe,101:280,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we,120:88},{14:Se,44:ye,60:xe,89:Fe,101:281,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we,120:88},{98:[1,282]},e(v,[2,120]),e(W,[2,58]),{30:283,67:m,80:j,81:K,82:172,116:C,117:D,118:T},e(W,[2,66]),e(Ze,f,{5:284}),e(Nt,[2,131],{108:270,10:ie,60:re,84:ae,105:ne,109:ue,110:oe,111:le,112:ce}),e(v,[2,126],{120:168,10:[1,285],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we}),e(v,[2,127],{120:168,10:[1,286],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we}),e(v,[2,114]),{31:[1,287],67:m,82:219,116:C,117:D,118:T},{6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,288],33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},{10:ie,60:re,84:ae,92:289,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:290,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},e(W,[2,62]),e(S,[2,33]),e(v,[2,124],{106:Ge}),e(v,[2,125],{106:Ge})],defaultActions:{},parseError:A(function(d,p){if(p.recoverable)this.trace(d);else{var b=new Error(d);throw b.hash=p,b}},"parseError"),parse:A(function(d){var p=this,b=[0],n=[],F=[null],t=[],me=this.table,s="",V=0,Gt=0,Pt=0,f1=2,Ot=1,b1=t.slice.call(arguments,1),z=Object.create(this.lexer),Ce={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(Ce.yy[et]=this.yy[et]);z.setInput(d,Ce.yy),Ce.yy.lexer=z,Ce.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var tt=z.yylloc;t.push(tt);var k1=z.options&&z.options.ranges;typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function g1(X){b.length=b.length-2*X,F.length=F.length-X,t.length=t.length-X}A(g1,"popStack");function Mt(){var X;return X=n.pop()||z.lex()||Ot,typeof X!="number"&&(X instanceof Array&&(n=X,X=n.pop()),X=p.symbols_[X]||X),X}A(Mt,"lex");for(var Y,st,De,J,_1,it,Pe={},He,he,Ut,qe;;){if(De=b[b.length-1],this.defaultActions[De]?J=this.defaultActions[De]:((Y===null||typeof Y>"u")&&(Y=Mt()),J=me[De]&&me[De][Y]),typeof J>"u"||!J.length||!J[0]){var rt="";qe=[];for(He in me[De])this.terminals_[He]&&He>f1&&qe.push("'"+this.terminals_[He]+"'");z.showPosition?rt="Parse error on line "+(V+1)+`:
10
+ `+z.showPosition()+`
11
+ Expecting `+qe.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":rt="Parse error on line "+(V+1)+": Unexpected "+(Y==Ot?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(rt,{text:z.match,token:this.terminals_[Y]||Y,line:z.yylineno,loc:tt,expected:qe})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+De+", token: "+Y);switch(J[0]){case 1:b.push(Y),F.push(z.yytext),t.push(z.yylloc),b.push(J[1]),Y=null,st?(Y=st,st=null):(Gt=z.yyleng,s=z.yytext,V=z.yylineno,tt=z.yylloc,Pt>0&&Pt--);break;case 2:if(he=this.productions_[J[1]][1],Pe.$=F[F.length-he],Pe._$={first_line:t[t.length-(he||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(he||1)].first_column,last_column:t[t.length-1].last_column},k1&&(Pe._$.range=[t[t.length-(he||1)].range[0],t[t.length-1].range[1]]),it=this.performAction.apply(Pe,[s,Gt,V,Ce.yy,J[1],F,t].concat(b1)),typeof it<"u")return it;he&&(b=b.slice(0,-1*he*2),F=F.slice(0,-1*he),t=t.slice(0,-1*he)),b.push(this.productions_[J[1]][0]),F.push(Pe.$),t.push(Pe._$),Ut=me[b[b.length-2]][b[b.length-1]],b.push(Ut);break;case 3:return!0}}return!0},"parse")},p1=(function(){var ge={EOF:1,parseError:A(function(p,b){if(this.yy.parser)this.yy.parser.parseError(p,b);else throw new Error(p)},"parseError"),setInput:A(function(d,p){return this.yy=p||this.yy||{},this._input=d,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:A(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var p=d.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:A(function(d){var p=d.length,b=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var n=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),b.length-1&&(this.yylineno-=b.length-1);var F=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:b?(b.length===n.length?this.yylloc.first_column:0)+n[n.length-b.length].length-b[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(d){this.unput(this.match.slice(d))},"less"),pastInput:A(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var d=this.pastInput(),p=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
13
+ `+p+"^"},"showPosition"),test_match:A(function(d,p){var b,n,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),n=d[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,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(d[0].length),this.matched+=d[0],b=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var t in F)this[t]=F[t];return!1}return!1},"test_match"),next:A(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,p,b,n;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),t=0;t<F.length;t++)if(b=this._input.match(this.rules[F[t]]),b&&(!p||b[0].length>p[0].length)){if(p=b,n=t,this.options.backtrack_lexer){if(d=this.test_match(b,F[t]),d!==!1)return d;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(d=this.test_match(p,F[n]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:A(function(){var p=this.next();return p||this.lex()},"lex"),begin:A(function(p){this.conditionStack.push(p)},"begin"),popState:A(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:A(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:A(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:A(function(p){this.begin(p)},"pushState"),stateStackSize:A(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:A(function(p,b,n,F){var t=F;switch(n){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),b.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let me=/\n\s*/g;return b.yytext=b.yytext.replace(me,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return ge})();$e.lexer=p1;function Ye(){this.yy={}}return A(Ye,"Parser"),Ye.prototype=$e,$e.Parser=Ye,new Ye})();nt.parser=nt;var h1=nt,d1=Object.assign({},h1);d1.parse=e=>{let i=e.replace(/}\s*\n/g,`}
15
+ `);return h1.parse(i)};var E1=d1,S1=A((e,i)=>{let r=jt,a=r(e,"r"),u=r(e,"g"),f=r(e,"b");return Wt(a,u,f,i)},"fade"),y1=A(e=>`.label {
16
+ font-family: ${e.fontFamily};
17
+ color: ${e.nodeTextColor||e.textColor};
18
+ }
19
+ .cluster-label text {
20
+ fill: ${e.titleColor};
21
+ }
22
+ .cluster-label span {
23
+ color: ${e.titleColor};
24
+ }
25
+ .cluster-label span p {
26
+ background-color: transparent;
27
+ }
28
+
29
+ .label text,span {
30
+ fill: ${e.nodeTextColor||e.textColor};
31
+ color: ${e.nodeTextColor||e.textColor};
32
+ }
33
+
34
+ .node rect,
35
+ .node circle,
36
+ .node ellipse,
37
+ .node polygon,
38
+ .node path {
39
+ fill: ${e.mainBkg};
40
+ stroke: ${e.nodeBorder};
41
+ stroke-width: ${e.strokeWidth??1}px;
42
+ }
43
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
44
+ text-anchor: middle;
45
+ }
46
+
47
+ .node .katex path {
48
+ fill: #000;
49
+ stroke: #000;
50
+ stroke-width: 1px;
51
+ }
52
+
53
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
54
+ text-align: center;
55
+ }
56
+ .node.clickable {
57
+ cursor: pointer;
58
+ }
59
+
60
+
61
+ .root .anchor path {
62
+ fill: ${e.lineColor} !important;
63
+ stroke-width: 0;
64
+ stroke: ${e.lineColor};
65
+ }
66
+
67
+ .arrowheadPath {
68
+ fill: ${e.arrowheadColor};
69
+ }
70
+
71
+ .edgePaths .path {
72
+ stroke: ${e.lineColor};
73
+ stroke-width: ${e.strokeWidth??2}px;
74
+ }
75
+
76
+ .flowchart-link {
77
+ stroke: ${e.lineColor};
78
+ fill: none;
79
+ }
80
+
81
+ .edgeLabel {
82
+ background-color: ${e.edgeLabelBackground};
83
+ p {
84
+ background-color: ${e.edgeLabelBackground};
85
+ }
86
+ rect {
87
+ opacity: 0.5;
88
+ background-color: ${e.edgeLabelBackground};
89
+ fill: ${e.edgeLabelBackground};
90
+ }
91
+ text-align: center;
92
+ }
93
+
94
+ /* For html labels only */
95
+ .labelBkg {
96
+ background-color: ${S1(e.edgeLabelBackground,.5)};
97
+ // background-color:
98
+ }
99
+
100
+ .cluster rect {
101
+ fill: ${e.clusterBkg};
102
+ stroke: ${e.clusterBorder};
103
+ stroke-width: 1px;
104
+ }
105
+
106
+ .cluster text {
107
+ fill: ${e.titleColor};
108
+ }
109
+
110
+ .cluster span {
111
+ color: ${e.titleColor};
112
+ }
113
+ /* .cluster div {
114
+ color: ${e.titleColor};
115
+ } */
116
+
117
+ /* Collapsed subgraph node (@{ view: collapsed }) */
118
+ .node .collapsed-indicator {
119
+ fill: ${e.clusterBorder};
120
+ stroke: none;
121
+ opacity: 0.6;
122
+ }
123
+
124
+ .node .collapsed-separator {
125
+ stroke: ${e.clusterBorder};
126
+ stroke-width: 0.75px;
127
+ }
128
+
129
+ div.mermaidTooltip {
130
+ position: absolute;
131
+ text-align: center;
132
+ max-width: 200px;
133
+ padding: 2px;
134
+ font-family: ${e.fontFamily};
135
+ font-size: 12px;
136
+ background: ${e.tertiaryColor};
137
+ border: 1px solid ${e.border2};
138
+ border-radius: 2px;
139
+ pointer-events: none;
140
+ z-index: 100;
141
+ }
142
+
143
+ .flowchartTitleText {
144
+ text-anchor: middle;
145
+ font-size: 18px;
146
+ fill: ${e.textColor};
147
+ }
148
+
149
+ rect.text {
150
+ fill: none;
151
+ stroke-width: 0;
152
+ }
153
+
154
+ .icon-shape, .image-shape {
155
+ background-color: ${e.edgeLabelBackground};
156
+ p {
157
+ background-color: ${e.edgeLabelBackground};
158
+ padding: 2px;
159
+ }
160
+ .label rect {
161
+ opacity: 0.5;
162
+ background-color: ${e.edgeLabelBackground};
163
+ fill: ${e.edgeLabelBackground};
164
+ }
165
+ text-align: center;
166
+ }
167
+ ${o1()}
168
+ `,"getStyles"),x1=y1,F1=A(({defaultLayout:e,styles:i=x1}={})=>({parser:E1,get db(){return new m1},renderer:T1,styles:i,init:A(r=>{r.flowchart||(r.flowchart={});let a=Yt().layout??e??r.layout;a&&at({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,at({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),j1=F1();export{x1 as a,F1 as b,j1 as c};
169
+ //# sourceMappingURL=chunk-JOSXY3EP.js.map
@@ -0,0 +1,2 @@
1
+ import{a as St}from"./chunk-LDXBIOBF.js";import{a as tu,c as eu,d as a}from"./chunk-R7TFKRNM.js";var li=tu((ir,or)=>{a();(function(t,e){typeof ir=="object"&&typeof or<"u"?or.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ir,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",u="day",l="week",f="month",h="quarter",m="year",c="date",d="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var x=["th","st","nd","rd"],_=g%100;return"["+g+(x[(_-20)%10]||x[_]||x[0])+"]"}},C=function(g,x,_){var k=String(g);return!k||k.length>=x?g:""+Array(x+1-k.length).join(_)+g},I={s:C,z:function(g){var x=-g.utcOffset(),_=Math.abs(x),k=Math.floor(_/60),M=_%60;return(x<=0?"+":"-")+C(k,2,"0")+":"+C(M,2,"0")},m:function g(x,_){if(x.date()<_.date())return-g(_,x);var k=12*(_.year()-x.year())+(_.month()-x.month()),M=x.clone().add(k,f),A=_-M<0,D=x.clone().add(k+(A?-1:1),f);return+(-(k+(_-M)/(A?M-D:D-M))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:f,y:m,w:l,d:u,D:c,h:s,m:o,s:i,ms:r,Q:h}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},$="en",N={};N[$]=S;var R="$isDayjsObject",w=function(g){return g instanceof W||!(!g||!g[R])},Y=function g(x,_,k){var M;if(!x)return $;if(typeof x=="string"){var A=x.toLowerCase();N[A]&&(M=A),_&&(N[A]=_,M=A);var D=x.split("-");if(!M&&D.length>1)return g(D[0])}else{var U=x.name;N[U]=x,M=U}return!k&&M&&($=M),M||!k&&$},F=function(g,x){if(w(g))return g.clone();var _=typeof x=="object"?x:{};return _.date=g,_.args=arguments,new W(_)},O=I;O.l=Y,O.i=w,O.w=function(g,x){return F(g,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var W=(function(){function g(_){this.$L=Y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[R]=!0}var x=g.prototype;return x.parse=function(_){this.$d=(function(k){var M=k.date,A=k.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var D=M.match(v);if(D){var U=D[2]-1||0,z=(D[7]||"0").substring(0,3);return A?new Date(Date.UTC(D[1],U,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)):new Date(D[1],U,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)}}return new Date(M)})(_),this.init()},x.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},x.$utils=function(){return O},x.isValid=function(){return this.$d.toString()!==d},x.isSame=function(_,k){var M=F(_);return this.startOf(k)<=M&&M<=this.endOf(k)},x.isAfter=function(_,k){return F(_)<this.startOf(k)},x.isBefore=function(_,k){return this.endOf(k)<F(_)},x.$g=function(_,k,M){return O.u(_)?this[k]:this.set(M,_)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(_,k){var M=this,A=!!O.u(k)||k,D=O.p(_),U=function(ut,Q){var T=O.w(M.$u?Date.UTC(M.$y,Q,ut):new Date(M.$y,Q,ut),M);return A?T:T.endOf(u)},z=function(ut,Q){return O.w(M.toDate()[ut].apply(M.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Q)),M)},V=this.$W,G=this.$M,j=this.$D,ht="set"+(this.$u?"UTC":"");switch(D){case m:return A?U(1,0):U(31,11);case f:return A?U(1,G):U(0,G+1);case l:var K=this.$locale().weekStart||0,xt=(V<K?V+7:V)-K;return U(A?j-xt:j+(6-xt),G);case u:case c:return z(ht+"Hours",0);case s:return z(ht+"Minutes",1);case o:return z(ht+"Seconds",2);case i:return z(ht+"Milliseconds",3);default:return this.clone()}},x.endOf=function(_){return this.startOf(_,!1)},x.$set=function(_,k){var M,A=O.p(_),D="set"+(this.$u?"UTC":""),U=(M={},M[u]=D+"Date",M[c]=D+"Date",M[f]=D+"Month",M[m]=D+"FullYear",M[s]=D+"Hours",M[o]=D+"Minutes",M[i]=D+"Seconds",M[r]=D+"Milliseconds",M)[A],z=A===u?this.$D+(k-this.$W):k;if(A===f||A===m){var V=this.clone().set(c,1);V.$d[U](z),V.init(),this.$d=V.set(c,Math.min(this.$D,V.daysInMonth())).$d}else U&&this.$d[U](z);return this.init(),this},x.set=function(_,k){return this.clone().$set(_,k)},x.get=function(_){return this[O.p(_)]()},x.add=function(_,k){var M,A=this;_=Number(_);var D=O.p(k),U=function(G){var j=F(A);return O.w(j.date(j.date()+Math.round(G*_)),A)};if(D===f)return this.set(f,this.$M+_);if(D===m)return this.set(m,this.$y+_);if(D===u)return U(1);if(D===l)return U(7);var z=(M={},M[o]=e,M[s]=n,M[i]=t,M)[D]||1,V=this.$d.getTime()+_*z;return O.w(V,this)},x.subtract=function(_,k){return this.add(-1*_,k)},x.format=function(_){var k=this,M=this.$locale();if(!this.isValid())return M.invalidDate||d;var A=_||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),U=this.$H,z=this.$m,V=this.$M,G=M.weekdays,j=M.months,ht=M.meridiem,K=function(Q,T,E,P){return Q&&(Q[T]||Q(k,A))||E[T].slice(0,P)},xt=function(Q){return O.s(U%12||12,Q,"0")},ut=ht||function(Q,T,E){var P=Q<12?"AM":"PM";return E?P.toLowerCase():P};return A.replace(b,(function(Q,T){return T||(function(E){switch(E){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return K(M.monthsShort,V,j,3);case"MMMM":return K(j,V);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return K(M.weekdaysMin,k.$W,G,2);case"ddd":return K(M.weekdaysShort,k.$W,G,3);case"dddd":return G[k.$W];case"H":return String(U);case"HH":return O.s(U,2,"0");case"h":return xt(1);case"hh":return xt(2);case"a":return ut(U,z,!0);case"A":return ut(U,z,!1);case"m":return String(z);case"mm":return O.s(z,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return D}return null})(Q)||D.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(_,k,M){var A,D=this,U=O.p(k),z=F(_),V=(z.utcOffset()-this.utcOffset())*e,G=this-z,j=function(){return O.m(D,z)};switch(U){case m:A=j()/12;break;case f:A=j();break;case h:A=j()/3;break;case l:A=(G-V)/6048e5;break;case u:A=(G-V)/864e5;break;case s:A=G/n;break;case o:A=G/e;break;case i:A=G/t;break;default:A=G}return M?A:O.a(A)},x.daysInMonth=function(){return this.endOf(f).$D},x.$locale=function(){return N[this.$L]},x.locale=function(_,k){if(!_)return this.$L;var M=this.clone(),A=Y(_,k,!0);return A&&(M.$L=A),M},x.clone=function(){return O.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},g})(),B=W.prototype;return F.prototype=B,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",u],["$M",f],["$y",m],["$D",c]].forEach((function(g){B[g[1]]=function(x){return this.$g(x,g[0],g[1])}})),F.extend=function(g,x){return g.$i||(g(x,W,F),g.$i=!0),F},F.locale=Y,F.isDayjs=w,F.unix=function(g){return F(1e3*g)},F.en=N[$],F.Ls=N,F.p={},F}))});a();var ci=eu(li(),1),Ct={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},pt={trace:St((...t)=>{},"trace"),debug:St((...t)=>{},"debug"),info:St((...t)=>{},"info"),warn:St((...t)=>{},"warn"),error:St((...t)=>{},"error"),fatal:St((...t)=>{},"fatal")},Gh=St(function(t="fatal"){let e=Ct.fatal;typeof t=="string"?t.toLowerCase()in Ct&&(e=Ct[t]):typeof t=="number"&&(e=t),pt.trace=()=>{},pt.debug=()=>{},pt.info=()=>{},pt.warn=()=>{},pt.error=()=>{},pt.fatal=()=>{},e<=Ct.fatal&&(pt.fatal=console.error?console.error.bind(console,mt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",mt("FATAL"))),e<=Ct.error&&(pt.error=console.error?console.error.bind(console,mt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",mt("ERROR"))),e<=Ct.warn&&(pt.warn=console.warn?console.warn.bind(console,mt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",mt("WARN"))),e<=Ct.info&&(pt.info=console.info?console.info.bind(console,mt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",mt("INFO"))),e<=Ct.debug&&(pt.debug=console.debug?console.debug.bind(console,mt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("DEBUG"))),e<=Ct.trace&&(pt.trace=console.debug?console.debug.bind(console,mt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("TRACE")))},"setLogLevel"),mt=St(t=>`%c${(0,ci.default)().format("ss.SSS")} : ${t} : `,"format");a();function hi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}a();function pi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}a();a();a();function Wt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}a();a();function ar(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vt(t){let e,n,r;t.length!==2?(e=Wt,n=(u,l)=>Wt(t(u),l),r=(u,l)=>t(u)-l):(e=t===Wt||t===ar?t:nu,n=t,r=t);function i(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let m=f+h>>>1;n(u[m],l)<0?f=m+1:h=m}while(f<h)}return f}function o(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let m=f+h>>>1;n(u[m],l)<=0?f=m+1:h=m}while(f<h)}return f}function s(u,l,f=0,h=u.length){let m=i(u,l,f,h-1);return m>f&&r(u[m-1],l)>-r(u[m],l)?m-1:m}return{left:i,center:s,right:o}}function nu(){return 0}a();function sr(t){return t===null?NaN:+t}var mi=Vt(Wt),di=mi.right,ru=mi.left,iu=Vt(sr).center,ur=di;a();var le=class extends Map{constructor(e,n=su){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(xi(this,e))}has(e){return super.has(xi(this,e))}set(e,n){return super.set(ou(this,e),n)}delete(e){return super.delete(au(this,e))}};function xi({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function ou({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function au({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function su(t){return t!==null&&typeof t=="object"?t.valueOf():t}a();var uu=Math.sqrt(50),fu=Math.sqrt(10),lu=Math.sqrt(2);function sn(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=uu?10:o>=fu?5:o>=lu?2:1,u,l,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(t*f),l=Math.round(e*f),u/f<t&&++u,l/f>e&&--l,f=-f):(f=Math.pow(10,i)*s,u=Math.round(t/f),l=Math.round(e/f),u*f<t&&++u,l*f>e&&--l),l<u&&.5<=n&&n<2?sn(t,e,n*2):[u,l,f]}function un(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let r=e<t,[i,o,s]=r?sn(e,t,n):sn(t,e,n);if(!(o>=i))return[];let u=o-i+1,l=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)l[f]=(o-f)/-s;else for(let f=0;f<u;++f)l[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)l[f]=(i+f)/-s;else for(let f=0;f<u;++f)l[f]=(i+f)*s;return l}function Oe(t,e,n){return e=+e,t=+t,n=+n,sn(t,e,n)[2]}function ce(t,e,n){e=+e,t=+t,n=+n;let r=e<t,i=r?Oe(e,t,n):Oe(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}a();function fn(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}a();a();function _i(t){return t}var cn=1,fr=2,lr=3,ln=4,gi=1e-6;function cu(t){return"translate("+t+",0)"}function hu(t){return"translate(0,"+t+")"}function pu(t){return e=>+t(e)}function mu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function du(){return!this.__axis}function yi(t,e){var n=[],r=null,i=null,o=6,s=6,u=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,f=t===cn||t===ln?-1:1,h=t===ln||t===fr?"x":"y",m=t===cn||t===lr?cu:hu;function c(d){var v=r??(e.ticks?e.ticks.apply(e,n):e.domain()),b=i??(e.tickFormat?e.tickFormat.apply(e,n):_i),S=Math.max(o,0)+u,C=e.range(),I=+C[0]+l,$=+C[C.length-1]+l,N=(e.bandwidth?mu:pu)(e.copy(),l),R=d.selection?d.selection():d,w=R.selectAll(".domain").data([null]),Y=R.selectAll(".tick").data(v,e).order(),F=Y.exit(),O=Y.enter().append("g").attr("class","tick"),W=Y.select("line"),B=Y.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(O),W=W.merge(O.append("line").attr("stroke","currentColor").attr(h+"2",f*o)),B=B.merge(O.append("text").attr("fill","currentColor").attr(h,f*S).attr("dy",t===cn?"0em":t===lr?"0.71em":"0.32em")),d!==R&&(w=w.transition(d),Y=Y.transition(d),W=W.transition(d),B=B.transition(d),F=F.transition(d).attr("opacity",gi).attr("transform",function(g){return isFinite(g=N(g))?m(g+l):this.getAttribute("transform")}),O.attr("opacity",gi).attr("transform",function(g){var x=this.parentNode.__axis;return m((x&&isFinite(x=x(g))?x:N(g))+l)})),F.remove(),w.attr("d",t===ln||t===fr?s?"M"+f*s+","+I+"H"+l+"V"+$+"H"+f*s:"M"+l+","+I+"V"+$:s?"M"+I+","+f*s+"V"+l+"H"+$+"V"+f*s:"M"+I+","+l+"H"+$),Y.attr("opacity",1).attr("transform",function(g){return m(N(g)+l)}),W.attr(h+"2",f*o),B.attr(h,f*S).text(b),R.filter(du).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===fr?"start":t===ln?"end":"middle"),R.each(function(){this.__axis=N})}return c.scale=function(d){return arguments.length?(e=d,c):e},c.ticks=function(){return n=Array.from(arguments),c},c.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),c):n.slice()},c.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),c):r&&r.slice()},c.tickFormat=function(d){return arguments.length?(i=d,c):i},c.tickSize=function(d){return arguments.length?(o=s=+d,c):o},c.tickSizeInner=function(d){return arguments.length?(o=+d,c):o},c.tickSizeOuter=function(d){return arguments.length?(s=+d,c):s},c.tickPadding=function(d){return arguments.length?(u=+d,c):u},c.offset=function(d){return arguments.length?(l=+d,c):l},c}function xu(t){return yi(cn,t)}function _u(t){return yi(lr,t)}a();a();a();a();a();function gu(){}function Xt(t){return t==null?gu:function(){return this.querySelector(t)}}function vi(t){typeof t!="function"&&(t=Xt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=new Array(s),l,f,h=0;h<s;++h)(l=o[h])&&(f=t.call(l,l.__data__,h,o))&&("__data__"in l&&(f.__data__=l.__data__),u[h]=f);return new Z(r,this._parents)}a();a();function cr(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}a();function yu(){return[]}function Ie(t){return t==null?yu:function(){return this.querySelectorAll(t)}}function vu(t){return function(){return cr(t.apply(this,arguments))}}function wi(t){typeof t=="function"?t=vu(t):t=Ie(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],u=s.length,l,f=0;f<u;++f)(l=s[f])&&(r.push(t.call(l,l.__data__,f,s)),i.push(l));return new Z(r,i)}a();a();function Ee(t){return function(){return this.matches(t)}}function hn(t){return function(e){return e.matches(t)}}var wu=Array.prototype.find;function bu(t){return function(){return wu.call(this.children,t)}}function Mu(){return this.firstElementChild}function bi(t){return this.select(t==null?Mu:bu(typeof t=="function"?t:hn(t)))}a();var Tu=Array.prototype.filter;function ku(){return Array.from(this.children)}function Su(t){return function(){return Tu.call(this.children,t)}}function Mi(t){return this.selectAll(t==null?ku:Su(typeof t=="function"?t:hn(t)))}a();function Ti(t){typeof t!="function"&&(t=Ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=[],l,f=0;f<s;++f)(l=o[f])&&t.call(l,l.__data__,f,o)&&u.push(l);return new Z(r,this._parents)}a();a();a();function pn(t){return new Array(t.length)}function ki(){return new Z(this._enter||this._groups.map(pn),this._parents)}function Re(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Re.prototype={constructor:Re,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};a();function Si(t){return function(){return t}}function Cu(t,e,n,r,i,o){for(var s=0,u,l=e.length,f=o.length;s<f;++s)(u=e[s])?(u.__data__=o[s],r[s]=u):n[s]=new Re(t,o[s]);for(;s<l;++s)(u=e[s])&&(i[s]=u)}function Nu(t,e,n,r,i,o,s){var u,l,f=new Map,h=e.length,m=o.length,c=new Array(h),d;for(u=0;u<h;++u)(l=e[u])&&(c[u]=d=s.call(l,l.__data__,u,e)+"",f.has(d)?i[u]=l:f.set(d,l));for(u=0;u<m;++u)d=s.call(t,o[u],u,o)+"",(l=f.get(d))?(r[u]=l,l.__data__=o[u],f.delete(d)):n[u]=new Re(t,o[u]);for(u=0;u<h;++u)(l=e[u])&&f.get(c[u])===l&&(i[u]=l)}function Au(t){return t.__data__}function Ci(t,e){if(!arguments.length)return Array.from(this,Au);var n=e?Nu:Cu,r=this._parents,i=this._groups;typeof t!="function"&&(t=Si(t));for(var o=i.length,s=new Array(o),u=new Array(o),l=new Array(o),f=0;f<o;++f){var h=r[f],m=i[f],c=m.length,d=Du(t.call(h,h&&h.__data__,f,r)),v=d.length,b=u[f]=new Array(v),S=s[f]=new Array(v),C=l[f]=new Array(c);n(h,m,b,S,C,d,e);for(var I=0,$=0,N,R;I<v;++I)if(N=b[I]){for(I>=$&&($=I+1);!(R=S[$])&&++$<v;);N._next=R||null}}return s=new Z(s,r),s._enter=u,s._exit=l,s}function Du(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}a();function Ni(){return new Z(this._exit||this._groups.map(pn),this._parents)}a();function Ai(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}a();function Di(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),u=new Array(i),l=0;l<s;++l)for(var f=n[l],h=r[l],m=f.length,c=u[l]=new Array(m),d,v=0;v<m;++v)(d=f[v]||h[v])&&(c[v]=d);for(;l<i;++l)u[l]=n[l];return new Z(u,this._parents)}a();function $i(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}a();function Oi(t){t||(t=$u);function e(m,c){return m&&c?t(m.__data__,c.__data__):!m-!c}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],u=s.length,l=i[o]=new Array(u),f,h=0;h<u;++h)(f=s[h])&&(l[h]=f);l.sort(e)}return new Z(i,this._parents).order()}function $u(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}a();function Ii(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}a();function Ei(){return Array.from(this)}a();function Ri(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}a();function Yi(){let t=0;for(let e of this)++t;return t}a();function Pi(){return!this.node()}a();function Fi(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,u;o<s;++o)(u=i[o])&&t.call(u,u.__data__,o,i);return this}a();a();a();var mn="http://www.w3.org/1999/xhtml",hr={svg:"http://www.w3.org/2000/svg",xhtml:mn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),hr.hasOwnProperty(e)?{space:hr[e],local:t}:t}function Ou(t){return function(){this.removeAttribute(t)}}function Iu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Eu(t,e){return function(){this.setAttribute(t,e)}}function Ru(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Yu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Pu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ui(t,e){var n=Nt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Iu:Ou:typeof e=="function"?n.local?Pu:Yu:n.local?Ru:Eu)(n,e))}a();a();function dn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fu(t){return function(){this.style.removeProperty(t)}}function Uu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function zu(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function zi(t,e,n){return arguments.length>1?this.each((e==null?Fu:typeof e=="function"?zu:Uu)(t,e,n??"")):Rt(this.node(),t)}function Rt(t,e){return t.style.getPropertyValue(e)||dn(t).getComputedStyle(t,null).getPropertyValue(e)}a();function Lu(t){return function(){delete this[t]}}function Hu(t,e){return function(){this[t]=e}}function Bu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Li(t,e){return arguments.length>1?this.each((e==null?Lu:typeof e=="function"?Bu:Hu)(t,e)):this.node()[t]}a();function Hi(t){return t.trim().split(/^|\s+/)}function pr(t){return t.classList||new Bi(t)}function Bi(t){this._node=t,this._names=Hi(t.getAttribute("class")||"")}Bi.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function qi(t,e){for(var n=pr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Wi(t,e){for(var n=pr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function qu(t){return function(){qi(this,t)}}function Wu(t){return function(){Wi(this,t)}}function Vu(t,e){return function(){(e.apply(this,arguments)?qi:Wi)(this,t)}}function Vi(t,e){var n=Hi(t+"");if(arguments.length<2){for(var r=pr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Vu:e?qu:Wu)(n,e))}a();function Xu(){this.textContent=""}function Gu(t){return function(){this.textContent=t}}function Zu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Xi(t){return arguments.length?this.each(t==null?Xu:(typeof t=="function"?Zu:Gu)(t)):this.node().textContent}a();function Qu(){this.innerHTML=""}function Ku(t){return function(){this.innerHTML=t}}function Ju(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Gi(t){return arguments.length?this.each(t==null?Qu:(typeof t=="function"?Ju:Ku)(t)):this.node().innerHTML}a();function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Zi(){return this.each(ju)}a();function tf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qi(){return this.each(tf)}a();a();function ef(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===mn&&e.documentElement.namespaceURI===mn?e.createElement(t):e.createElementNS(n,t)}}function nf(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xn(t){var e=Nt(t);return(e.local?nf:ef)(e)}function Ki(t){var e=typeof t=="function"?t:xn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}a();function rf(){return null}function Ji(t,e){var n=typeof t=="function"?t:xn(t),r=e==null?rf:typeof e=="function"?e:Xt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}a();function of(){var t=this.parentNode;t&&t.removeChild(this)}function ji(){return this.each(of)}a();function af(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function sf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function to(t){return this.select(t?sf:af)}a();function eo(t){return arguments.length?this.property("__data__",t):this.node().__data__}a();function uf(t){return function(e){t.call(this,e,this.__data__)}}function ff(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function lf(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function cf(t,e,n){return function(){var r=this.__on,i,o=uf(e);if(r){for(var s=0,u=r.length;s<u;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function no(t,e,n){var r=ff(t+""),i,o=r.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,f=u.length,h;l<f;++l)for(i=0,h=u[l];i<o;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(u=e?cf:lf,i=0;i<o;++i)this.each(u(r[i],e,n));return this}a();function ro(t,e,n){var r=dn(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function hf(t,e){return function(){return ro(this,t,e)}}function pf(t,e){return function(){return ro(this,t,e.apply(this,arguments))}}function io(t,e){return this.each((typeof e=="function"?pf:hf)(t,e))}a();function*oo(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var mr=[null];function Z(t,e){this._groups=t,this._parents=e}function ao(){return new Z([[document.documentElement]],mr)}function mf(){return this}Z.prototype=ao.prototype={constructor:Z,select:vi,selectAll:wi,selectChild:bi,selectChildren:Mi,filter:Ti,data:Ci,enter:ki,exit:Ni,join:Ai,merge:Di,selection:mf,order:$i,sort:Oi,call:Ii,nodes:Ei,node:Ri,size:Yi,empty:Pi,each:Fi,attr:Ui,style:zi,property:Li,classed:Vi,text:Xi,html:Gi,raise:Zi,lower:Qi,append:Ki,insert:Ji,remove:ji,clone:to,datum:eo,on:no,dispatch:io,[Symbol.iterator]:oo};var At=ao;function df(t){return typeof t=="string"?new Z([[document.querySelector(t)]],[document.documentElement]):new Z([[t]],mr)}a();a();a();a();a();function Gt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function he(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Yt(){}var Ye=.7,yn=1/Ye,pe="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xf=/^#([0-9a-f]{3,8})$/,_f=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),gf=new RegExp(`^rgb\\(${wt},${wt},${wt}\\)$`),yf=new RegExp(`^rgba\\(${pe},${pe},${pe},${Pe}\\)$`),vf=new RegExp(`^rgba\\(${wt},${wt},${wt},${Pe}\\)$`),wf=new RegExp(`^hsl\\(${Pe},${wt},${wt}\\)$`),bf=new RegExp(`^hsla\\(${Pe},${wt},${wt},${Pe}\\)$`),so={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gt(Yt,gt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:uo,formatHex:uo,formatHex8:Mf,formatHsl:Tf,formatRgb:fo,toString:fo});function uo(){return this.rgb().formatHex()}function Mf(){return this.rgb().formatHex8()}function Tf(){return xo(this).formatHsl()}function fo(){return this.rgb().formatRgb()}function gt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?lo(e):n===3?new nt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?_n(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?_n(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=_f.exec(t))?new nt(e[1],e[2],e[3],1):(e=gf.exec(t))?new nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=yf.exec(t))?_n(e[1],e[2],e[3],e[4]):(e=vf.exec(t))?_n(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=wf.exec(t))?po(e[1],e[2]/100,e[3]/100,1):(e=bf.exec(t))?po(e[1],e[2]/100,e[3]/100,e[4]):so.hasOwnProperty(t)?lo(so[t]):t==="transparent"?new nt(NaN,NaN,NaN,0):null}function lo(t){return new nt(t>>16&255,t>>8&255,t&255,1)}function _n(t,e,n,r){return r<=0&&(t=e=n=NaN),new nt(t,e,n,r)}function xr(t){return t instanceof Yt||(t=gt(t)),t?(t=t.rgb(),new nt(t.r,t.g,t.b,t.opacity)):new nt}function me(t,e,n,r){return arguments.length===1?xr(t):new nt(t,e,n,r??1)}function nt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Gt(nt,me,he(Yt,{brighter(t){return t=t==null?yn:Math.pow(yn,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ye:Math.pow(Ye,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new nt(Qt(this.r),Qt(this.g),Qt(this.b),vn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:co,formatHex:co,formatHex8:kf,formatRgb:ho,toString:ho}));function co(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function kf(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ho(){let t=vn(this.opacity);return`${t===1?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${t===1?")":`, ${t})`}`}function vn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Zt(t){return t=Qt(t),(t<16?"0":"")+t.toString(16)}function po(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _t(t,e,n,r)}function xo(t){if(t instanceof _t)return new _t(t.h,t.s,t.l,t.opacity);if(t instanceof Yt||(t=gt(t)),!t)return new _t;if(t instanceof _t)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-i,l=(o+i)/2;return u?(e===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-e)/u+2:s=(e-n)/u+4,u/=l<.5?o+i:2-o-i,s*=60):u=l>0&&l<1?0:s,new _t(s,u,l,t.opacity)}function _o(t,e,n,r){return arguments.length===1?xo(t):new _t(t,e,n,r??1)}function _t(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Gt(_t,_o,he(Yt,{brighter(t){return t=t==null?yn:Math.pow(yn,t),new _t(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ye:Math.pow(Ye,t),new _t(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new nt(dr(t>=240?t-240:t+120,i,r),dr(t,i,r),dr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _t(mo(this.h),gn(this.s),gn(this.l),vn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=vn(this.opacity);return`${t===1?"hsl(":"hsla("}${mo(this.h)}, ${gn(this.s)*100}%, ${gn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function mo(t){return t=(t||0)%360,t<0?t+360:t}function gn(t){return Math.max(0,Math.min(1,t||0))}function dr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}a();a();var go=Math.PI/180,yo=180/Math.PI;var wn=18,vo=.96422,wo=1,bo=.82521,Mo=4/29,de=6/29,To=3*de*de,Sf=de*de*de;function ko(t){if(t instanceof bt)return new bt(t.l,t.a,t.b,t.opacity);if(t instanceof Dt)return So(t);t instanceof nt||(t=xr(t));var e=vr(t.r),n=vr(t.g),r=vr(t.b),i=_r((.2225045*e+.7168786*n+.0606169*r)/wo),o,s;return e===n&&n===r?o=s=i:(o=_r((.4360747*e+.3850649*n+.1430804*r)/vo),s=_r((.0139322*e+.0971045*n+.7141733*r)/bo)),new bt(116*i-16,500*(o-i),200*(i-s),t.opacity)}function wr(t,e,n,r){return arguments.length===1?ko(t):new bt(t,e,n,r??1)}function bt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Gt(bt,wr,he(Yt,{brighter(t){return new bt(this.l+wn*(t??1),this.a,this.b,this.opacity)},darker(t){return new bt(this.l-wn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=vo*gr(e),t=wo*gr(t),n=bo*gr(n),new nt(yr(3.1338561*e-1.6168667*t-.4906146*n),yr(-.9787684*e+1.9161415*t+.033454*n),yr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function _r(t){return t>Sf?Math.pow(t,1/3):t/To+Mo}function gr(t){return t>de?t*t*t:To*(t-Mo)}function yr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function vr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Cf(t){if(t instanceof Dt)return new Dt(t.h,t.c,t.l,t.opacity);if(t instanceof bt||(t=ko(t)),t.a===0&&t.b===0)return new Dt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*yo;return new Dt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Fe(t,e,n,r){return arguments.length===1?Cf(t):new Dt(t,e,n,r??1)}function Dt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function So(t){if(isNaN(t.h))return new bt(t.l,0,0,t.opacity);var e=t.h*go;return new bt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Gt(Dt,Fe,he(Yt,{brighter(t){return new Dt(this.h,this.c,this.l+wn*(t??1),this.opacity)},darker(t){return new Dt(this.h,this.c,this.l-wn*(t??1),this.opacity)},rgb(){return So(this).rgb()}}));a();a();var xe=t=>()=>t;function Co(t,e){return function(n){return t+n*e}}function Nf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function No(t,e){var n=e-t;return n?Co(t,n>180||n<-180?n-360*Math.round(n/360):n):xe(isNaN(t)?e:t)}function Ao(t){return(t=+t)==1?$t:function(e,n){return n-e?Nf(e,n,t):xe(isNaN(e)?n:e)}}function $t(t,e){var n=e-t;return n?Co(t,n):xe(isNaN(t)?e:t)}function Do(t){return function(e,n){var r=t((e=Fe(e)).h,(n=Fe(n)).h),i=$t(e.c,n.c),o=$t(e.l,n.l),s=$t(e.opacity,n.opacity);return function(u){return e.h=r(u),e.c=i(u),e.l=o(u),e.opacity=s(u),e+""}}}var Af=Do(No),Df=Do($t);a();a();a();a();function br(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}function $o(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return br((n-r/e)*e,s,i,o,u)}}a();function Oo(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],u=t[(r+2)%e];return br((n-r/e)*e,i,o,s,u)}}var Kt=(function t(e){var n=Ao(e);function r(i,o){var s=n((i=me(i)).r,(o=me(o)).r),u=n(i.g,o.g),l=n(i.b,o.b),f=$t(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=u(h),i.b=l(h),i.opacity=f(h),i+""}}return r.gamma=t,r})(1);function Io(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),s,u;for(s=0;s<n;++s)u=me(e[s]),r[s]=u.r||0,i[s]=u.g||0,o[s]=u.b||0;return r=t(r),i=t(i),o=t(o),u.opacity=1,function(l){return u.r=r(l),u.g=i(l),u.b=o(l),u+""}}}var $f=Io($o),Of=Io(Oo);a();a();function Eo(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Ro(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Yo(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Jt(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(u){for(s=0;s<r;++s)o[s]=i[s](u);return o}}a();function Po(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}a();function rt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}a();function Fo(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Jt(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}a();var Tr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mr=new RegExp(Tr.source,"g");function If(t){return function(){return t}}function Ef(t){return function(e){return t(e)+""}}function Ue(t,e){var n=Tr.lastIndex=Mr.lastIndex=0,r,i,o,s=-1,u=[],l=[];for(t=t+"",e=e+"";(r=Tr.exec(t))&&(i=Mr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,l.push({i:s,x:rt(r,i)})),n=Mr.lastIndex;return n<e.length&&(o=e.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?l[0]?Ef(l[0].x):If(e):(e=l.length,function(f){for(var h=0,m;h<e;++h)u[(m=l[h]).i]=m.x(f);return u.join("")})}function Jt(t,e){var n=typeof e,r;return e==null||n==="boolean"?xe(e):(n==="number"?rt:n==="string"?(r=gt(e))?(e=r,Kt):Ue:e instanceof gt?Kt:e instanceof Date?Po:Ro(e)?Eo:Array.isArray(e)?Yo:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Fo:rt)(t,e)}a();function kr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}a();a();a();var Uo=180/Math.PI,bn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sr(t,e,n,r,i,o){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Uo,skewX:Math.atan(l)*Uo,scaleX:s,scaleY:u}}var Mn;function zo(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?bn:Sr(e.a,e.b,e.c,e.d,e.e,e.f)}function Lo(t){return t==null?bn:(Mn||(Mn=document.createElementNS("http://www.w3.org/2000/svg","g")),Mn.setAttribute("transform",t),(t=Mn.transform.baseVal.consolidate())?(t=t.matrix,Sr(t.a,t.b,t.c,t.d,t.e,t.f)):bn)}function Ho(t,e,n,r){function i(f){return f.length?f.pop()+" ":""}function o(f,h,m,c,d,v){if(f!==m||h!==c){var b=d.push("translate(",null,e,null,n);v.push({i:b-4,x:rt(f,m)},{i:b-2,x:rt(h,c)})}else(m||c)&&d.push("translate("+m+e+c+n)}function s(f,h,m,c){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),c.push({i:m.push(i(m)+"rotate(",null,r)-2,x:rt(f,h)})):h&&m.push(i(m)+"rotate("+h+r)}function u(f,h,m,c){f!==h?c.push({i:m.push(i(m)+"skewX(",null,r)-2,x:rt(f,h)}):h&&m.push(i(m)+"skewX("+h+r)}function l(f,h,m,c,d,v){if(f!==m||h!==c){var b=d.push(i(d)+"scale(",null,",",null,")");v.push({i:b-4,x:rt(f,m)},{i:b-2,x:rt(h,c)})}else(m!==1||c!==1)&&d.push(i(d)+"scale("+m+","+c+")")}return function(f,h){var m=[],c=[];return f=t(f),h=t(h),o(f.translateX,f.translateY,h.translateX,h.translateY,m,c),s(f.rotate,h.rotate,m,c),u(f.skewX,h.skewX,m,c),l(f.scaleX,f.scaleY,h.scaleX,h.scaleY,m,c),f=h=null,function(d){for(var v=-1,b=c.length,S;++v<b;)m[(S=c[v]).i]=S.x(d);return m.join("")}}}var Cr=Ho(zo,"px, ","px)","deg)"),Nr=Ho(Lo,", ",")",")");a();a();a();a();function Bo(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function jt(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Mt(t){return t=jt(Math.abs(t)),t?t[1]:NaN}a();function qo(t,e){return function(n,r){for(var i=n.length,o=[],s=0,u=t[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),o.push(n.substring(i-=u,i+u)),!((l+=u+1)>r));)u=t[s=(s+1)%t.length];return o.reverse().join(e)}}a();function Wo(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}a();var Rf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pt(t){if(!(e=Rf.exec(t)))throw new Error("invalid format: "+t);var e;return new Tn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pt.prototype=Tn.prototype;function Tn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Tn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};a();function Vo(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}a();a();var ze;function Xo(t,e){var n=jt(t,e);if(!n)return ze=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(ze=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+jt(t,Math.max(0,e+o-1))[0]}a();function Ar(t,e){var n=jt(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Dr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Bo,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ar(t*100,e),r:Ar,s:Xo,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};a();function $r(t){return t}var Go=Array.prototype.map,Zo=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Qo(t){var e=t.grouping===void 0||t.thousands===void 0?$r:qo(Go.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?$r:Wo(Go.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function f(m,c){m=Pt(m);var d=m.fill,v=m.align,b=m.sign,S=m.symbol,C=m.zero,I=m.width,$=m.comma,N=m.precision,R=m.trim,w=m.type;w==="n"?($=!0,w="g"):Dr[w]||(N===void 0&&(N=12),R=!0,w="g"),(C||d==="0"&&v==="=")&&(C=!0,d="0",v="=");var Y=(c&&c.prefix!==void 0?c.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),F=(S==="$"?r:/[%p]/.test(w)?s:"")+(c&&c.suffix!==void 0?c.suffix:""),O=Dr[w],W=/[defgprs%]/.test(w);N=N===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function B(g){var x=Y,_=F,k,M,A;if(w==="c")_=O(g)+_,g="";else{g=+g;var D=g<0||1/g<0;if(g=isNaN(g)?l:O(Math.abs(g),N),R&&(g=Vo(g)),D&&+g==0&&b!=="+"&&(D=!1),x=(D?b==="("?b:u:b==="-"||b==="("?"":b)+x,_=(w==="s"&&!isNaN(g)&&ze!==void 0?Zo[8+ze/3]:"")+_+(D&&b==="("?")":""),W){for(k=-1,M=g.length;++k<M;)if(A=g.charCodeAt(k),48>A||A>57){_=(A===46?i+g.slice(k+1):g.slice(k))+_,g=g.slice(0,k);break}}}$&&!C&&(g=e(g,1/0));var U=x.length+g.length+_.length,z=U<I?new Array(I-U+1).join(d):"";switch($&&C&&(g=e(z+g,z.length?I-_.length:1/0),z=""),v){case"<":g=x+g+_+z;break;case"=":g=x+z+g+_;break;case"^":g=z.slice(0,U=z.length>>1)+x+g+_+z.slice(U);break;default:g=z+x+g+_;break}return o(g)}return B.toString=function(){return m+""},B}function h(m,c){var d=Math.max(-8,Math.min(8,Math.floor(Mt(c)/3)))*3,v=Math.pow(10,-d),b=f((m=Pt(m),m.type="f",m),{suffix:Zo[8+d/3]});return function(S){return b(v*S)}}return{format:f,formatPrefix:h}}var kn,Sn,Cn;Or({thousands:",",grouping:[3],currency:["$",""]});function Or(t){return kn=Qo(t),Sn=kn.format,Cn=kn.formatPrefix,kn}a();a();function Ir(t){return Math.max(0,-Mt(Math.abs(t)))}a();function Er(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mt(e)/3)))*3-Mt(Math.abs(t)))}a();function Rr(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Mt(e)-Mt(t))+1}a();a();function Yf(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Ko(){return this.eachAfter(Yf)}a();function Jo(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}a();function jo(t,e){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(t.call(e,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}a();function ta(t,e){for(var n=this,r=[n],i=[],o,s,u,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,u=o.length;s<u;++s)r.push(o[s]);for(;n=i.pop();)t.call(e,n,++l,this);return this}a();function ea(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r}a();function na(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}a();function ra(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}a();function ia(t){for(var e=this,n=Pf(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Pf(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}a();function oa(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}a();function aa(){return Array.from(this)}a();function sa(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}a();function ua(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}a();function*fa(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function Nn(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=zf)):e===void 0&&(e=Uf);for(var n=new Le(t),r,i=[n],o,s,u,l;r=i.pop();)if((s=e(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,u=l-1;u>=0;--u)i.push(o=s[u]=new Le(s[u])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Hf)}function Ff(){return Nn(this).eachBefore(Lf)}function Uf(t){return t.children}function zf(t){return Array.isArray(t)?t[1]:null}function Lf(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Hf(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Le(t){this.data=t,this.depth=this.height=0,this.parent=null}Le.prototype=Nn.prototype={constructor:Le,count:Ko,each:Jo,eachAfter:ta,eachBefore:jo,find:ea,sum:na,sort:ra,path:ia,ancestors:oa,descendants:aa,leaves:sa,links:ua,copy:Ff,[Symbol.iterator]:fa};a();a();function la(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}a();a();function ca(t,e,n,r,i){for(var o=t.children,s,u=-1,l=o.length,f=t.value&&(r-e)/t.value;++u<l;)s=o[u],s.y0=n,s.y1=i,s.x0=e,s.x1=e+=s.value*f}a();function ha(t,e,n,r,i){for(var o=t.children,s,u=-1,l=o.length,f=t.value&&(i-n)/t.value;++u<l;)s=o[u],s.x0=e,s.x1=r,s.y0=n,s.y1=n+=s.value*f}var Bf=(1+Math.sqrt(5))/2;function qf(t,e,n,r,i,o){for(var s=[],u=e.children,l,f,h=0,m=0,c=u.length,d,v,b=e.value,S,C,I,$,N,R,w;h<c;){d=i-n,v=o-r;do S=u[m++].value;while(!S&&m<c);for(C=I=S,R=Math.max(v/d,d/v)/(b*t),w=S*S*R,N=Math.max(I/w,w/C);m<c;++m){if(S+=f=u[m].value,f<C&&(C=f),f>I&&(I=f),w=S*S*R,$=Math.max(I/w,w/C),$>N){S-=f;break}N=$}s.push(l={value:S,dice:d<v,children:u.slice(h,m)}),l.dice?ca(l,n,r,i,b?r+=v*S/b:o):ha(l,n,r,b?n+=d*S/b:i,o),b-=S,h=m}return s}var pa=(function t(e){function n(r,i,o,s,u){qf(e,r,i,o,s,u)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(Bf);a();function ma(t){if(typeof t!="function")throw new Error;return t}a();function _e(){return 0}function ge(t){return function(){return t}}function Wf(){var t=pa,e=!1,n=1,r=1,i=[0],o=_e,s=_e,u=_e,l=_e,f=_e;function h(c){return c.x0=c.y0=0,c.x1=n,c.y1=r,c.eachBefore(m),i=[0],e&&c.eachBefore(la),c}function m(c){var d=i[c.depth],v=c.x0+d,b=c.y0+d,S=c.x1-d,C=c.y1-d;S<v&&(v=S=(v+S)/2),C<b&&(b=C=(b+C)/2),c.x0=v,c.y0=b,c.x1=S,c.y1=C,c.children&&(d=i[c.depth+1]=o(c)/2,v+=f(c)-d,b+=s(c)-d,S-=u(c)-d,C-=l(c)-d,S<v&&(v=S=(v+S)/2),C<b&&(b=C=(b+C)/2),t(c,v,b,S,C))}return h.round=function(c){return arguments.length?(e=!!c,h):e},h.size=function(c){return arguments.length?(n=+c[0],r=+c[1],h):[n,r]},h.tile=function(c){return arguments.length?(t=ma(c),h):t},h.padding=function(c){return arguments.length?h.paddingInner(c).paddingOuter(c):h.paddingInner()},h.paddingInner=function(c){return arguments.length?(o=typeof c=="function"?c:ge(+c),h):o},h.paddingOuter=function(c){return arguments.length?h.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c):h.paddingTop()},h.paddingTop=function(c){return arguments.length?(s=typeof c=="function"?c:ge(+c),h):s},h.paddingRight=function(c){return arguments.length?(u=typeof c=="function"?c:ge(+c),h):u},h.paddingBottom=function(c){return arguments.length?(l=typeof c=="function"?c:ge(+c),h):l},h.paddingLeft=function(c){return arguments.length?(f=typeof c=="function"?c:ge(+c),h):f},h}a();a();a();function Ft(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Yr=Symbol("implicit");function He(){var t=new le,e=[],n=[],r=Yr;function i(o){let s=t.get(o);if(s===void 0){if(r!==Yr)return r;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new le;for(let s of o)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return He(e,n).unknown(r)},Ft.apply(i,arguments),i}a();function Pr(){var t=He().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,s,u=!1,l=0,f=0,h=.5;delete t.unknown;function m(){var c=e().length,d=i<r,v=d?i:r,b=d?r:i;o=(b-v)/Math.max(1,c-l+f*2),u&&(o=Math.floor(o)),v+=(b-v-o*(c-l))*h,s=o*(1-l),u&&(v=Math.round(v),s=Math.round(s));var S=fn(c).map(function(C){return v+o*C});return n(d?S.reverse():S)}return t.domain=function(c){return arguments.length?(e(c),m()):e()},t.range=function(c){return arguments.length?([r,i]=c,r=+r,i=+i,m()):[r,i]},t.rangeRound=function(c){return[r,i]=c,r=+r,i=+i,u=!0,m()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(c){return arguments.length?(u=!!c,m()):u},t.padding=function(c){return arguments.length?(l=Math.min(1,f=+c),m()):l},t.paddingInner=function(c){return arguments.length?(l=Math.min(1,c),m()):l},t.paddingOuter=function(c){return arguments.length?(f=+c,m()):f},t.align=function(c){return arguments.length?(h=Math.max(0,Math.min(1,c)),m()):h},t.copy=function(){return Pr(e(),[r,i]).round(u).paddingInner(l).paddingOuter(f).align(h)},Ft.apply(m(),arguments)}a();a();a();function Fr(t){return function(){return t}}a();function Ur(t){return+t}var da=[0,1];function ye(t){return t}function zr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Fr(isNaN(e)?NaN:.5)}function Vf(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Xf(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=zr(i,r),o=n(s,o)):(r=zr(r,i),o=n(o,s)),function(u){return o(r(u))}}function Gf(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=zr(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(u){var l=ur(t,u,1,r)-1;return o[l](i[l](u))}}function An(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zf(){var t=da,e=da,n=Jt,r,i,o,s=ye,u,l,f;function h(){var c=Math.min(t.length,e.length);return s!==ye&&(s=Vf(t[0],t[c-1])),u=c>2?Gf:Xf,l=f=null,m}function m(c){return c==null||isNaN(c=+c)?o:(l||(l=u(t.map(r),e,n)))(r(s(c)))}return m.invert=function(c){return s(i((f||(f=u(e,t.map(r),rt)))(c)))},m.domain=function(c){return arguments.length?(t=Array.from(c,Ur),h()):t.slice()},m.range=function(c){return arguments.length?(e=Array.from(c),h()):e.slice()},m.rangeRound=function(c){return e=Array.from(c),n=kr,h()},m.clamp=function(c){return arguments.length?(s=c?!0:ye,h()):s!==ye},m.interpolate=function(c){return arguments.length?(n=c,h()):n},m.unknown=function(c){return arguments.length?(o=c,m):o},function(c,d){return r=c,i=d,h()}}function Be(){return Zf()(ye,ye)}a();function Lr(t,e,n,r){var i=ce(t,e,n),o;switch(r=Pt(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Er(i,s))&&(r.precision=o),Cn(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Rr(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Ir(i))&&(r.precision=o-(r.type==="%")*2);break}}return Sn(r)}function Qf(t){var e=t.domain;return t.ticks=function(n){var r=e();return un(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return Lr(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],u=r[o],l,f,h=10;for(u<s&&(f=s,s=u,u=f,f=i,i=o,o=f);h-- >0;){if(f=Oe(s,u,n),f===l)return r[i]=s,r[o]=u,e(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;l=f}return t},t}function Hr(){var t=Be();return t.copy=function(){return An(t,Hr())},Ft.apply(t,arguments),Qf(t)}a();a();var Br=new Date,qr=new Date;function H(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let s=i(o),u=i.ceil(o);return o-s<u-o?s:u},i.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,u)=>{let l=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return l;let f;do l.push(f=new Date(+o)),e(o,u),t(o);while(f<o&&o<s);return l},i.filter=o=>H(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;e(s,-1),!o(s););else for(;--u>=0;)for(;e(s,1),!o(s););}),n&&(i.count=(o,s)=>(Br.setTime(+o),qr.setTime(+s),t(Br),t(qr),Math.floor(n(Br,qr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}var te=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);te.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):te);var xa=te.range;a();var Tt=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),_a=Tt.range;a();var ve=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Kf=ve.range,Dn=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Jf=Dn.range;a();var we=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),jf=we.range,$n=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),tl=$n.range;a();var Ot=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),el=Ot.range,We=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),nl=We.range,On=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),rl=On.range;a();function re(t){return H(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var It=re(0),be=re(1),ya=re(2),va=re(3),Ut=re(4),wa=re(5),ba=re(6),Ma=It.range,il=be.range,ol=ya.range,al=va.range,sl=Ut.range,ul=wa.range,fl=ba.range;function ie(t){return H(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var oe=ie(0),Me=ie(1),Ta=ie(2),ka=ie(3),zt=ie(4),Sa=ie(5),Ca=ie(6),Na=oe.range,ll=Me.range,cl=Ta.range,hl=ka.range,pl=zt.range,ml=Sa.range,dl=Ca.range;a();var Te=H(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),xl=Te.range,In=H(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),_l=In.range;a();a();var ct=H(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ct.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var gl=ct.range,yt=H(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var yl=yt.range;a();function Da(t,e,n,r,i,o){let s=[[Tt,1,1e3],[Tt,5,5*1e3],[Tt,15,15*1e3],[Tt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function u(f,h,m){let c=h<f;c&&([f,h]=[h,f]);let d=m&&typeof m.range=="function"?m:l(f,h,m),v=d?d.range(f,+h+1):[];return c?v.reverse():v}function l(f,h,m){let c=Math.abs(h-f)/m,d=Vt(([,,S])=>S).right(s,c);if(d===s.length)return t.every(ce(f/31536e6,h/31536e6,m));if(d===0)return te.every(Math.max(ce(f,h,m),1));let[v,b]=s[c/s[d-1][2]<s[d][2]/c?d-1:d];return v.every(b)}return[u,l]}var[wl,bl]=Da(yt,In,oe,On,$n,Dn),[Wr,Vr]=Da(ct,Te,It,Ot,we,ve);a();a();function Xr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Gr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ve(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Zr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,u=t.months,l=t.shortMonths,f=Xe(i),h=Ge(i),m=Xe(o),c=Ge(o),d=Xe(s),v=Ge(s),b=Xe(u),S=Ge(u),C=Xe(l),I=Ge(l),$={a:A,A:D,b:U,B:z,c:null,d:Ya,e:Ya,f:Wl,g:ec,G:rc,H:Hl,I:Bl,j:ql,L:La,m:Vl,M:Xl,p:V,q:G,Q:Ua,s:za,S:Gl,u:Zl,U:Ql,V:Kl,w:Jl,W:jl,x:null,X:null,y:tc,Y:nc,Z:ic,"%":Fa},N={a:j,A:ht,b:K,B:xt,c:null,d:Pa,e:Pa,f:uc,g:gc,G:vc,H:oc,I:ac,j:sc,L:Ba,m:fc,M:lc,p:ut,q:Q,Q:Ua,s:za,S:cc,u:hc,U:pc,V:mc,w:dc,W:xc,x:null,X:null,y:_c,Y:yc,Z:wc,"%":Fa},R={a:W,A:B,b:g,B:x,c:_,d:Ea,e:Ea,f:Fl,g:Ia,G:Oa,H:Ra,I:Ra,j:El,L:Pl,m:Il,M:Rl,p:O,q:Ol,Q:zl,s:Ll,S:Yl,u:Cl,U:Nl,V:Al,w:Sl,W:Dl,x:k,X:M,y:Ia,Y:Oa,Z:$l,"%":Ul};$.x=w(n,$),$.X=w(r,$),$.c=w(e,$),N.x=w(n,N),N.X=w(r,N),N.c=w(e,N);function w(T,E){return function(P){var y=[],st=-1,q=0,ft=T.length,lt,qt,fi;for(P instanceof Date||(P=new Date(+P));++st<ft;)T.charCodeAt(st)===37&&(y.push(T.slice(q,st)),(qt=$a[lt=T.charAt(++st)])!=null?lt=T.charAt(++st):qt=lt==="e"?" ":"0",(fi=E[lt])&&(lt=fi(P,qt)),y.push(lt),q=st+1);return y.push(T.slice(q,st)),y.join("")}}function Y(T,E){return function(P){var y=Ve(1900,void 0,1),st=F(y,T,P+="",0),q,ft;if(st!=P.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1e3+("L"in y?y.L:0));if(E&&!("Z"in y)&&(y.Z=0),"p"in y&&(y.H=y.H%12+y.p*12),y.m===void 0&&(y.m="q"in y?y.q:0),"V"in y){if(y.V<1||y.V>53)return null;"w"in y||(y.w=1),"Z"in y?(q=Gr(Ve(y.y,0,1)),ft=q.getUTCDay(),q=ft>4||ft===0?Me.ceil(q):Me(q),q=We.offset(q,(y.V-1)*7),y.y=q.getUTCFullYear(),y.m=q.getUTCMonth(),y.d=q.getUTCDate()+(y.w+6)%7):(q=Xr(Ve(y.y,0,1)),ft=q.getDay(),q=ft>4||ft===0?be.ceil(q):be(q),q=Ot.offset(q,(y.V-1)*7),y.y=q.getFullYear(),y.m=q.getMonth(),y.d=q.getDate()+(y.w+6)%7)}else("W"in y||"U"in y)&&("w"in y||(y.w="u"in y?y.u%7:"W"in y?1:0),ft="Z"in y?Gr(Ve(y.y,0,1)).getUTCDay():Xr(Ve(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ft+5)%7:y.w+y.U*7-(ft+6)%7);return"Z"in y?(y.H+=y.Z/100|0,y.M+=y.Z%100,Gr(y)):Xr(y)}}function F(T,E,P,y){for(var st=0,q=E.length,ft=P.length,lt,qt;st<q;){if(y>=ft)return-1;if(lt=E.charCodeAt(st++),lt===37){if(lt=E.charAt(st++),qt=R[lt in $a?E.charAt(st++):lt],!qt||(y=qt(T,P,y))<0)return-1}else if(lt!=P.charCodeAt(y++))return-1}return y}function O(T,E,P){var y=f.exec(E.slice(P));return y?(T.p=h.get(y[0].toLowerCase()),P+y[0].length):-1}function W(T,E,P){var y=d.exec(E.slice(P));return y?(T.w=v.get(y[0].toLowerCase()),P+y[0].length):-1}function B(T,E,P){var y=m.exec(E.slice(P));return y?(T.w=c.get(y[0].toLowerCase()),P+y[0].length):-1}function g(T,E,P){var y=C.exec(E.slice(P));return y?(T.m=I.get(y[0].toLowerCase()),P+y[0].length):-1}function x(T,E,P){var y=b.exec(E.slice(P));return y?(T.m=S.get(y[0].toLowerCase()),P+y[0].length):-1}function _(T,E,P){return F(T,e,E,P)}function k(T,E,P){return F(T,n,E,P)}function M(T,E,P){return F(T,r,E,P)}function A(T){return s[T.getDay()]}function D(T){return o[T.getDay()]}function U(T){return l[T.getMonth()]}function z(T){return u[T.getMonth()]}function V(T){return i[+(T.getHours()>=12)]}function G(T){return 1+~~(T.getMonth()/3)}function j(T){return s[T.getUTCDay()]}function ht(T){return o[T.getUTCDay()]}function K(T){return l[T.getUTCMonth()]}function xt(T){return u[T.getUTCMonth()]}function ut(T){return i[+(T.getUTCHours()>=12)]}function Q(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var E=w(T+="",$);return E.toString=function(){return T},E},parse:function(T){var E=Y(T+="",!1);return E.toString=function(){return T},E},utcFormat:function(T){var E=w(T+="",N);return E.toString=function(){return T},E},utcParse:function(T){var E=Y(T+="",!0);return E.toString=function(){return T},E}}}var $a={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Ml=/^%/,Tl=/[\\^$*+?|[\]().{}]/g;function L(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function kl(t){return t.replace(Tl,"\\$&")}function Xe(t){return new RegExp("^(?:"+t.map(kl).join("|")+")","i")}function Ge(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Sl(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Nl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Al(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Dl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Oa(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ia(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $l(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ol(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Il(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ea(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function El(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ra(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Rl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pl(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fl(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ul(t,e,n){var r=Ml.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function zl(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ll(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ya(t,e){return L(t.getDate(),e,2)}function Hl(t,e){return L(t.getHours(),e,2)}function Bl(t,e){return L(t.getHours()%12||12,e,2)}function ql(t,e){return L(1+Ot.count(ct(t),t),e,3)}function La(t,e){return L(t.getMilliseconds(),e,3)}function Wl(t,e){return La(t,e)+"000"}function Vl(t,e){return L(t.getMonth()+1,e,2)}function Xl(t,e){return L(t.getMinutes(),e,2)}function Gl(t,e){return L(t.getSeconds(),e,2)}function Zl(t){var e=t.getDay();return e===0?7:e}function Ql(t,e){return L(It.count(ct(t)-1,t),e,2)}function Ha(t){var e=t.getDay();return e>=4||e===0?Ut(t):Ut.ceil(t)}function Kl(t,e){return t=Ha(t),L(Ut.count(ct(t),t)+(ct(t).getDay()===4),e,2)}function Jl(t){return t.getDay()}function jl(t,e){return L(be.count(ct(t)-1,t),e,2)}function tc(t,e){return L(t.getFullYear()%100,e,2)}function ec(t,e){return t=Ha(t),L(t.getFullYear()%100,e,2)}function nc(t,e){return L(t.getFullYear()%1e4,e,4)}function rc(t,e){var n=t.getDay();return t=n>=4||n===0?Ut(t):Ut.ceil(t),L(t.getFullYear()%1e4,e,4)}function ic(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+L(e/60|0,"0",2)+L(e%60,"0",2)}function Pa(t,e){return L(t.getUTCDate(),e,2)}function oc(t,e){return L(t.getUTCHours(),e,2)}function ac(t,e){return L(t.getUTCHours()%12||12,e,2)}function sc(t,e){return L(1+We.count(yt(t),t),e,3)}function Ba(t,e){return L(t.getUTCMilliseconds(),e,3)}function uc(t,e){return Ba(t,e)+"000"}function fc(t,e){return L(t.getUTCMonth()+1,e,2)}function lc(t,e){return L(t.getUTCMinutes(),e,2)}function cc(t,e){return L(t.getUTCSeconds(),e,2)}function hc(t){var e=t.getUTCDay();return e===0?7:e}function pc(t,e){return L(oe.count(yt(t)-1,t),e,2)}function qa(t){var e=t.getUTCDay();return e>=4||e===0?zt(t):zt.ceil(t)}function mc(t,e){return t=qa(t),L(zt.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}function dc(t){return t.getUTCDay()}function xc(t,e){return L(Me.count(yt(t)-1,t),e,2)}function _c(t,e){return L(t.getUTCFullYear()%100,e,2)}function gc(t,e){return t=qa(t),L(t.getUTCFullYear()%100,e,2)}function yc(t,e){return L(t.getUTCFullYear()%1e4,e,4)}function vc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?zt(t):zt.ceil(t),L(t.getUTCFullYear()%1e4,e,4)}function wc(){return"+0000"}function Fa(){return"%"}function Ua(t){return+t}function za(t){return Math.floor(+t/1e3)}var ke,En,Wa,Va,Xa;Qr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qr(t){return ke=Zr(t),En=ke.format,Wa=ke.parse,Va=ke.utcFormat,Xa=ke.utcParse,ke}a();a();a();function Kr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),t[n]=e.floor(i),t[r]=e.ceil(o),t}function bc(t){return new Date(t)}function Mc(t){return t instanceof Date?+t:+new Date(+t)}function Ga(t,e,n,r,i,o,s,u,l,f){var h=Be(),m=h.invert,c=h.domain,d=f(".%L"),v=f(":%S"),b=f("%I:%M"),S=f("%I %p"),C=f("%a %d"),I=f("%b %d"),$=f("%B"),N=f("%Y");function R(w){return(l(w)<w?d:u(w)<w?v:s(w)<w?b:o(w)<w?S:r(w)<w?i(w)<w?C:I:n(w)<w?$:N)(w)}return h.invert=function(w){return new Date(m(w))},h.domain=function(w){return arguments.length?c(Array.from(w,Mc)):c().map(bc)},h.ticks=function(w){var Y=c();return t(Y[0],Y[Y.length-1],w??10)},h.tickFormat=function(w,Y){return Y==null?R:f(Y)},h.nice=function(w){var Y=c();return(!w||typeof w.range!="function")&&(w=e(Y[0],Y[Y.length-1],w??10)),w?c(Kr(Y,w)):h},h.copy=function(){return An(h,Ga(t,e,n,r,i,o,s,u,l,f))},h}function Za(){return Ft.apply(Ga(Wr,Vr,ct,Te,It,Ot,we,ve,Tt,En).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}a();a();a();function Qa(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}var Tc=Qa("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");a();a();a();function X(t){return function(){return t}}a();var Jr=Math.abs,it=Math.atan2,Lt=Math.cos,Ka=Math.max,Rn=Math.min,vt=Math.sin,ae=Math.sqrt,et=1e-12,Se=Math.PI,Ze=Se/2,Ce=2*Se;function Ja(t){return t>1?0:t<-1?Se:Math.acos(t)}function jr(t){return t>=1?Ze:t<=-1?-Ze:Math.asin(t)}a();a();a();var ti=Math.PI,ei=2*ti,se=1e-6,kc=ei-se;function ja(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Sc(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ja;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}var ue=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ja:Sc(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,u=this._y1,l=r-e,f=i-n,h=s-e,m=u-n,c=h*h+m*m;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(c>se)if(!(Math.abs(m*l-f*h)>se)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=r-s,v=i-u,b=l*l+f*f,S=d*d+v*v,C=Math.sqrt(b),I=Math.sqrt(c),$=o*Math.tan((ti-Math.acos((b+c-S)/(2*C*I)))/2),N=$/I,R=$/C;Math.abs(N-1)>se&&this._append`L${e+N*h},${n+N*m}`,this._append`A${o},${o},0,0,${+(m*d>h*v)},${this._x1=e+R*l},${this._y1=n+R*f}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),l=r*Math.sin(i),f=e+u,h=n+l,m=1^s,c=s?i-o:o-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>se||Math.abs(this._y1-h)>se)&&this._append`L${f},${h}`,r&&(c<0&&(c=c%ei+ei),c>kc?this._append`A${r},${r},0,1,${m},${e-u},${n-l}A${r},${r},0,1,${m},${this._x1=f},${this._y1=h}`:c>se&&this._append`A${r},${r},0,${+(c>=ti)},${m},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function ts(){return new ue}ts.prototype=ue.prototype;function Yn(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new ue(e)}function Cc(t){return t.innerRadius}function Nc(t){return t.outerRadius}function Ac(t){return t.startAngle}function Dc(t){return t.endAngle}function $c(t){return t&&t.padAngle}function Oc(t,e,n,r,i,o,s,u){var l=n-t,f=r-e,h=s-i,m=u-o,c=m*l-h*f;if(!(c*c<et))return c=(h*(e-o)-m*(t-i))/c,[t+c*l,e+c*f]}function Pn(t,e,n,r,i,o,s){var u=t-n,l=e-r,f=(s?o:-o)/ae(u*u+l*l),h=f*l,m=-f*u,c=t+h,d=e+m,v=n+h,b=r+m,S=(c+v)/2,C=(d+b)/2,I=v-c,$=b-d,N=I*I+$*$,R=i-o,w=c*b-v*d,Y=($<0?-1:1)*ae(Ka(0,R*R*N-w*w)),F=(w*$-I*Y)/N,O=(-w*I-$*Y)/N,W=(w*$+I*Y)/N,B=(-w*I+$*Y)/N,g=F-S,x=O-C,_=W-S,k=B-C;return g*g+x*x>_*_+k*k&&(F=W,O=B),{cx:F,cy:O,x01:-h,y01:-m,x11:F*(i/R-1),y11:O*(i/R-1)}}function Ic(){var t=Cc,e=Nc,n=X(0),r=null,i=Ac,o=Dc,s=$c,u=null,l=Yn(f);function f(){var h,m,c=+t.apply(this,arguments),d=+e.apply(this,arguments),v=i.apply(this,arguments)-Ze,b=o.apply(this,arguments)-Ze,S=Jr(b-v),C=b>v;if(u||(u=h=l()),d<c&&(m=d,d=c,c=m),!(d>et))u.moveTo(0,0);else if(S>Ce-et)u.moveTo(d*Lt(v),d*vt(v)),u.arc(0,0,d,v,b,!C),c>et&&(u.moveTo(c*Lt(b),c*vt(b)),u.arc(0,0,c,b,v,C));else{var I=v,$=b,N=v,R=b,w=S,Y=S,F=s.apply(this,arguments)/2,O=F>et&&(r?+r.apply(this,arguments):ae(c*c+d*d)),W=Rn(Jr(d-c)/2,+n.apply(this,arguments)),B=W,g=W,x,_;if(O>et){var k=jr(O/c*vt(F)),M=jr(O/d*vt(F));(w-=k*2)>et?(k*=C?1:-1,N+=k,R-=k):(w=0,N=R=(v+b)/2),(Y-=M*2)>et?(M*=C?1:-1,I+=M,$-=M):(Y=0,I=$=(v+b)/2)}var A=d*Lt(I),D=d*vt(I),U=c*Lt(R),z=c*vt(R);if(W>et){var V=d*Lt($),G=d*vt($),j=c*Lt(N),ht=c*vt(N),K;if(S<Se)if(K=Oc(A,D,j,ht,V,G,U,z)){var xt=A-K[0],ut=D-K[1],Q=V-K[0],T=G-K[1],E=1/vt(Ja((xt*Q+ut*T)/(ae(xt*xt+ut*ut)*ae(Q*Q+T*T)))/2),P=ae(K[0]*K[0]+K[1]*K[1]);B=Rn(W,(c-P)/(E-1)),g=Rn(W,(d-P)/(E+1))}else B=g=0}Y>et?g>et?(x=Pn(j,ht,A,D,d,g,C),_=Pn(V,G,U,z,d,g,C),u.moveTo(x.cx+x.x01,x.cy+x.y01),g<W?u.arc(x.cx,x.cy,g,it(x.y01,x.x01),it(_.y01,_.x01),!C):(u.arc(x.cx,x.cy,g,it(x.y01,x.x01),it(x.y11,x.x11),!C),u.arc(0,0,d,it(x.cy+x.y11,x.cx+x.x11),it(_.cy+_.y11,_.cx+_.x11),!C),u.arc(_.cx,_.cy,g,it(_.y11,_.x11),it(_.y01,_.x01),!C))):(u.moveTo(A,D),u.arc(0,0,d,I,$,!C)):u.moveTo(A,D),!(c>et)||!(w>et)?u.lineTo(U,z):B>et?(x=Pn(U,z,V,G,c,-B,C),_=Pn(A,D,j,ht,c,-B,C),u.lineTo(x.cx+x.x01,x.cy+x.y01),B<W?u.arc(x.cx,x.cy,B,it(x.y01,x.x01),it(_.y01,_.x01),!C):(u.arc(x.cx,x.cy,B,it(x.y01,x.x01),it(x.y11,x.x11),!C),u.arc(0,0,c,it(x.cy+x.y11,x.cx+x.x11),it(_.cy+_.y11,_.cx+_.x11),C),u.arc(_.cx,_.cy,B,it(_.y11,_.x11),it(_.y01,_.x01),!C))):u.arc(0,0,c,R,N,C)}if(u.closePath(),h)return u=null,h+""||null}return f.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,m=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Se/2;return[Lt(m)*h,vt(m)*h]},f.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:X(+h),f):t},f.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:X(+h),f):e},f.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:X(+h),f):n},f.padRadius=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:X(+h),f):r},f.startAngle=function(h){return arguments.length?(i=typeof h=="function"?h:X(+h),f):i},f.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:X(+h),f):o},f.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:X(+h),f):s},f.context=function(h){return arguments.length?(u=h??null,f):u},f}a();a();var jv=Array.prototype.slice;function Fn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}a();function es(t){this._context=t}es.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ni(t){return new es(t)}a();function ns(t){return t[0]}function rs(t){return t[1]}function Ec(t,e){var n=X(!0),r=null,i=ni,o=null,s=Yn(u);t=typeof t=="function"?t:t===void 0?ns:X(t),e=typeof e=="function"?e:e===void 0?rs:X(e);function u(l){var f,h=(l=Fn(l)).length,m,c=!1,d;for(r==null&&(o=i(d=s())),f=0;f<=h;++f)!(f<h&&n(m=l[f],f,l))===c&&((c=!c)?o.lineStart():o.lineEnd()),c&&o.point(+t(m,f,l),+e(m,f,l));if(d)return o=null,d+""||null}return u.x=function(l){return arguments.length?(t=typeof l=="function"?l:X(+l),u):t},u.y=function(l){return arguments.length?(e=typeof l=="function"?l:X(+l),u):e},u.defined=function(l){return arguments.length?(n=typeof l=="function"?l:X(!!l),u):n},u.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),u):i},u.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),u):r},u}a();a();function is(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}a();function os(t){return t}function Rc(){var t=os,e=is,n=null,r=X(0),i=X(Ce),o=X(0);function s(u){var l,f=(u=Fn(u)).length,h,m,c=0,d=new Array(f),v=new Array(f),b=+r.apply(this,arguments),S=Math.min(Ce,Math.max(-Ce,i.apply(this,arguments)-b)),C,I=Math.min(Math.abs(S)/f,o.apply(this,arguments)),$=I*(S<0?-1:1),N;for(l=0;l<f;++l)(N=v[d[l]=l]=+t(u[l],l,u))>0&&(c+=N);for(e!=null?d.sort(function(R,w){return e(v[R],v[w])}):n!=null&&d.sort(function(R,w){return n(u[R],u[w])}),l=0,m=c?(S-f*$)/c:0;l<f;++l,b=C)h=d[l],N=v[h],C=b+(N>0?N*m:0)+$,v[h]={data:u[h],index:l,value:N,startAngle:b,endAngle:C,padAngle:I};return v}return s.value=function(u){return arguments.length?(t=typeof u=="function"?u:X(+u),s):t},s.sortValues=function(u){return arguments.length?(e=u,n=null,s):e},s.sort=function(u){return arguments.length?(n=u,e=null,s):n},s.startAngle=function(u){return arguments.length?(r=typeof u=="function"?u:X(+u),s):r},s.endAngle=function(u){return arguments.length?(i=typeof u=="function"?u:X(+u),s):i},s.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:X(+u),s):o},s}a();function Ne(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Qe(t){this._context=t}Qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ne(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yc(t){return new Qe(t)}a();a();var Un=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function Pc(t){return new Un(t,!0)}function Fc(t){return new Un(t,!1)}a();a();function dt(){}function as(t){this._context=t}as.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Uc(t){return new as(t)}a();function ss(t){this._context=t}ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function zc(t){return new ss(t)}a();function us(t,e){this._basis=new Qe(t),this._beta=e}us.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,s=e[n]-i,u=-1,l;++u<=n;)l=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(r+l*o),this._beta*e[u]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Lc=(function t(e){function n(r){return e===1?new Qe(r):new us(r,e)}return n.beta=function(r){return t(+r)},n})(.85);a();a();function Ae(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function zn(t,e){this._context=t,this._k=(1-e)/6}zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ae(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Hc=(function t(e){function n(r){return new zn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ln(t,e){this._context=t,this._k=(1-e)/6}Ln.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bc=(function t(e){function n(r){return new Ln(r,e)}return n.tension=function(r){return t(+r)},n})(0);a();function Hn(t,e){this._context=t,this._k=(1-e)/6}Hn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qc=(function t(e){function n(r){return new Hn(r,e)}return n.tension=function(r){return t(+r)},n})(0);a();a();function Ke(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>et){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>et){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*f+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function fs(t,e){this._context=t,this._alpha=e}fs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wc=(function t(e){function n(r){return e?new fs(r,e):new zn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ls(t,e){this._context=t,this._alpha=e}ls.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vc=(function t(e){function n(r){return e?new ls(r,e):new Ln(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);a();function cs(t,e){this._context=t,this._alpha=e}cs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Xc=(function t(e){function n(r){return e?new cs(r,e):new Hn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);a();function hs(t){this._context=t}hs.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Gc(t){return new hs(t)}a();function ps(t){return t<0?-1:1}function ms(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),u=(o*i+s*r)/(r+i);return(ps(o)+ps(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function ds(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ri(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,s-u*n,o,s)}function Bn(t){this._context=t}Bn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ri(this,this._t0,ds(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ri(this,ds(this,n=ms(this,t,e)),n);break;default:ri(this,this._t0,n=ms(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function xs(t){this._context=new _s(t)}(xs.prototype=Object.create(Bn.prototype)).point=function(t,e){Bn.prototype.point.call(this,e,t)};function _s(t){this._context=t}_s.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Zc(t){return new Bn(t)}function Qc(t){return new xs(t)}a();function ys(t){this._context=t}ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=gs(t),i=gs(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function gs(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(i[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Kc(t){return new ys(t)}a();function qn(t,e){this._context=t,this._t=e}qn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Jc(t){return new qn(t,.5)}function jc(t){return new qn(t,0)}function th(t){return new qn(t,1)}a();a();a();a();a();var eh={value:()=>{}};function ws(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Wn(n)}function Wn(t){this._=t}function nh(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Wn.prototype=ws.prototype={constructor:Wn,on:function(t,e){var n=this._,r=nh(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=rh(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=vs(n[i],t.name,e);else if(e==null)for(i in n)n[i]=vs(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Wn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function rh(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function vs(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=eh,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ii=ws;a();a();a();a();a();a();a();var De=0,je=0,Je=0,Ms=1e3,Vn,tn,Xn=0,fe=0,Gn=0,en=typeof performance=="object"&&performance.now?performance:Date,Ts=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function rn(){return fe||(Ts(ih),fe=en.now()+Gn)}function ih(){fe=0}function nn(){this._call=this._time=this._next=null}nn.prototype=Zn.prototype={constructor:nn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?rn():+n)+(e==null?0:+e),!this._next&&tn!==this&&(tn?tn._next=this:Vn=this,tn=this),this._call=t,this._time=n,oi()},stop:function(){this._call&&(this._call=null,this._time=1/0,oi())}};function Zn(t,e,n){var r=new nn;return r.restart(t,e,n),r}function ks(){rn(),++De;for(var t=Vn,e;t;)(e=fe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--De}function bs(){fe=(Xn=en.now())+Gn,De=je=0;try{ks()}finally{De=0,ah(),fe=0}}function oh(){var t=en.now(),e=t-Xn;e>Ms&&(Gn-=e,Xn=t)}function ah(){for(var t,e=Vn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Vn=n);tn=t,oi(r)}function oi(t){if(!De){je&&(je=clearTimeout(je));var e=t-fe;e>24?(t<1/0&&(je=setTimeout(bs,t-en.now()-Gn)),Je&&(Je=clearInterval(Je))):(Je||(Xn=en.now(),Je=setInterval(oh,Ms)),De=1,Ts(bs))}}a();function Qn(t,e,n){var r=new nn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var sh=ii("start","end","cancel","interrupt"),uh=[],Ns=0,Ss=1,Jn=2,Kn=3,Cs=4,jn=5,on=6;function Ht(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;fh(t,n,{name:e,index:r,group:i,on:sh,tween:uh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ns})}function an(t,e){var n=J(t,e);if(n.state>Ns)throw new Error("too late; already scheduled");return n}function ot(t,e){var n=J(t,e);if(n.state>Kn)throw new Error("too late; already running");return n}function J(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function fh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Zn(o,0,n.time);function o(f){n.state=Ss,n.timer.restart(s,n.delay,n.time),n.delay<=f&&s(f-n.delay)}function s(f){var h,m,c,d;if(n.state!==Ss)return l();for(h in r)if(d=r[h],d.name===n.name){if(d.state===Kn)return Qn(s);d.state===Cs?(d.state=on,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=on,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(Qn(function(){n.state===Kn&&(n.state=Cs,n.timer.restart(u,n.delay,n.time),u(f))}),n.state=Jn,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Jn){for(n.state=Kn,i=new Array(c=n.tween.length),h=0,m=-1;h<c;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++m]=d);i.length=m+1}}function u(f){for(var h=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(l),n.state=jn,1),m=-1,c=i.length;++m<c;)i[m].call(t,h);n.state===jn&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=on,n.timer.stop(),delete r[e];for(var f in r)return;delete t.__transition}}function tr(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>Jn&&r.state<jn,r.state=on,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function As(t){return this.each(function(){tr(this,t)})}a();a();a();a();function lh(t,e){var n,r;return function(){var i=ot(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,u=r.length;s<u;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function ch(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=ot(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var u={name:e,value:n},l=0,f=i.length;l<f;++l)if(i[l].name===e){i[l]=u;break}l===f&&i.push(u)}o.tween=i}}function Ds(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=J(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?lh:ch)(n,t,e))}function $e(t,e,n){var r=t._id;return t.each(function(){var i=ot(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return J(i,r).value[e]}}a();function er(t,e){var n;return(typeof e=="number"?rt:e instanceof gt?Kt:(n=gt(e))?(e=n,Kt):Ue)(t,e)}function hh(t){return function(){this.removeAttribute(t)}}function ph(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mh(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function dh(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function xh(t,e,n){var r,i,o;return function(){var s,u=n(this),l;return u==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=u+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u)))}}function _h(t,e,n){var r,i,o;return function(){var s,u=n(this),l;return u==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=u+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u)))}}function $s(t,e){var n=Nt(t),r=n==="transform"?Nr:er;return this.attrTween(t,typeof e=="function"?(n.local?_h:xh)(n,r,$e(this,"attr."+t,e)):e==null?(n.local?ph:hh)(n):(n.local?dh:mh)(n,r,e))}a();function gh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function yh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function vh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&yh(t,o)),n}return i._value=e,i}function wh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&gh(t,o)),n}return i._value=e,i}function Os(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Nt(t);return this.tween(n,(r.local?vh:wh)(r,e))}a();function bh(t,e){return function(){an(this,t).delay=+e.apply(this,arguments)}}function Mh(t,e){return e=+e,function(){an(this,t).delay=e}}function Is(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bh:Mh)(e,t)):J(this.node(),e).delay}a();function Th(t,e){return function(){ot(this,t).duration=+e.apply(this,arguments)}}function kh(t,e){return e=+e,function(){ot(this,t).duration=e}}function Es(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Th:kh)(e,t)):J(this.node(),e).duration}a();function Sh(t,e){if(typeof e!="function")throw new Error;return function(){ot(this,t).ease=e}}function Rs(t){var e=this._id;return arguments.length?this.each(Sh(e,t)):J(this.node(),e).ease}a();function Ch(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ot(this,t).ease=n}}function Ys(t){if(typeof t!="function")throw new Error;return this.each(Ch(this._id,t))}a();function Ps(t){typeof t!="function"&&(t=Ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=[],l,f=0;f<s;++f)(l=o[f])&&t.call(l,l.__data__,f,o)&&u.push(l);return new at(r,this._parents,this._name,this._id)}a();function Fs(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),u=0;u<o;++u)for(var l=e[u],f=n[u],h=l.length,m=s[u]=new Array(h),c,d=0;d<h;++d)(c=l[d]||f[d])&&(m[d]=c);for(;u<r;++u)s[u]=e[u];return new at(s,this._parents,this._name,this._id)}a();function Nh(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ah(t,e,n){var r,i,o=Nh(e)?an:ot;return function(){var s=o(this,t),u=s.on;u!==r&&(i=(r=u).copy()).on(e,n),s.on=i}}function Us(t,e){var n=this._id;return arguments.length<2?J(this.node(),n).on.on(t):this.each(Ah(n,t,e))}a();function Dh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function zs(){return this.on("end.remove",Dh(this._id))}a();function Ls(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Xt(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var u=r[s],l=u.length,f=o[s]=new Array(l),h,m,c=0;c<l;++c)(h=u[c])&&(m=t.call(h,h.__data__,c,u))&&("__data__"in h&&(m.__data__=h.__data__),f[c]=m,Ht(f[c],e,n,c,f,J(h,n)));return new at(o,this._parents,e,n)}a();function Hs(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ie(t));for(var r=this._groups,i=r.length,o=[],s=[],u=0;u<i;++u)for(var l=r[u],f=l.length,h,m=0;m<f;++m)if(h=l[m]){for(var c=t.call(h,h.__data__,m,l),d,v=J(h,n),b=0,S=c.length;b<S;++b)(d=c[b])&&Ht(d,e,n,b,c,v);o.push(c),s.push(h)}return new at(o,s,e,n)}a();var $h=At.prototype.constructor;function Bs(){return new $h(this._groups,this._parents)}a();function Oh(t,e){var n,r,i;return function(){var o=Rt(this,t),s=(this.style.removeProperty(t),Rt(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function qs(t){return function(){this.style.removeProperty(t)}}function Ih(t,e,n){var r,i=n+"",o;return function(){var s=Rt(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function Eh(t,e,n){var r,i,o;return function(){var s=Rt(this,t),u=n(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(t),Rt(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u))}}function Rh(t,e){var n,r,i,o="style."+e,s="end."+o,u;return function(){var l=ot(this,t),f=l.on,h=l.value[o]==null?u||(u=qs(e)):void 0;(f!==n||i!==h)&&(r=(n=f).copy()).on(s,i=h),l.on=r}}function Ws(t,e,n){var r=(t+="")=="transform"?Cr:er;return e==null?this.styleTween(t,Oh(t,r)).on("end.style."+t,qs(t)):typeof e=="function"?this.styleTween(t,Eh(t,r,$e(this,"style."+t,e))).each(Rh(this._id,t)):this.styleTween(t,Ih(t,r,e),n).on("end.style."+t,null)}a();function Yh(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ph(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&Yh(t,s,n)),r}return o._value=e,o}function Vs(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ph(t,e,n??""))}a();function Fh(t){return function(){this.textContent=t}}function Uh(t){return function(){var e=t(this);this.textContent=e??""}}function Xs(t){return this.tween("text",typeof t=="function"?Uh($e(this,"text",t)):Fh(t==null?"":t+""))}a();function zh(t){return function(e){this.textContent=t.call(this,e)}}function Lh(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&zh(i)),e}return r._value=t,r}function Gs(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Lh(t))}a();function Zs(){for(var t=this._name,e=this._id,n=nr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],u=s.length,l,f=0;f<u;++f)if(l=s[f]){var h=J(l,e);Ht(l,t,n,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new at(r,this._parents,t,n)}a();function Qs(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var u={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var f=ot(this,r),h=f.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(u),e._.interrupt.push(u),e._.end.push(l)),f.on=e}),i===0&&o()})}var Hh=0;function at(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ks(t){return At().transition(t)}function nr(){return++Hh}var Et=At.prototype;at.prototype=Ks.prototype={constructor:at,select:Ls,selectAll:Hs,selectChild:Et.selectChild,selectChildren:Et.selectChildren,filter:Ps,merge:Fs,selection:Bs,transition:Zs,call:Et.call,nodes:Et.nodes,node:Et.node,size:Et.size,empty:Et.empty,each:Et.each,on:Us,attr:$s,attrTween:Os,style:Ws,styleTween:Vs,text:Xs,textTween:Gs,remove:zs,tween:Ds,delay:Is,duration:Es,ease:Rs,easeVarying:Ys,end:Qs,[Symbol.iterator]:Et[Symbol.iterator]};a();a();function rr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Bh={time:null,delay:0,duration:250,ease:rr};function qh(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Js(t){var e,n;t instanceof at?(e=t._id,t=t._name):(e=nr(),(n=Bh).time=rn(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],u=s.length,l,f=0;f<u;++f)(l=s[f])&&Ht(l,t,e,f,s,n||qh(l,e));return new at(r,this._parents,t,e)}At.prototype.interrupt=As;At.prototype.transition=Js;a();a();a();var{abs:$T,max:OT,min:IT}=Math;function js(t){return[+t[0],+t[1]]}function Wh(t){return[js(t[0]),js(t[1])]}var ET={name:"x",handles:["w","e"].map(ai),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},RT={name:"y",handles:["n","s"].map(ai),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},YT={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ai),input:function(t){return t==null?null:Wh(t)},output:function(t){return t}};function ai(t){return{type:t}}a();a();a();a();a();function Bt(t,e,n){this.k=t,this.x=e,this.y=n}Bt.prototype={constructor:Bt,scale:function(t){return t===1?this:new Bt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Bt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var si=new Bt(1,0,0);ui.prototype=Bt.prototype;function ui(t){for(;!t.__zoom;)if(!(t=t.parentNode))return si;return t.__zoom}a();export{li as a,pt as b,Gh as c,hi as d,pi as e,xu as f,_u as g,df as h,Af as i,Sn as j,Nn as k,Wf as l,He as m,Pr as n,Hr as o,te as p,Tt as q,ve as r,we as s,Ot as t,It as u,be as v,ya as w,va as x,Ut as y,wa as z,ba as A,Te as B,En as C,Za as D,Tc as E,Ic as F,ni as G,Ec as H,Rc as I,Pc as J,Fc as K,Yc as L,Uc as M,zc as N,Lc as O,Hc as P,Bc as Q,qc as R,Wc as S,Vc as T,Xc as U,Gc as V,Zc as W,Qc as X,Kc as Y,Jc as Z,jc as _,th as $};
2
+ //# sourceMappingURL=chunk-L34PKG4P.js.map
@@ -0,0 +1,2 @@
1
+ import{d as a}from"./chunk-R7TFKRNM.js";a();var o=Object.defineProperty,n=(r,e)=>o(r,"name",{value:e,configurable:!0}),f=(r,e)=>{for(var t in e)o(r,t,{get:e[t],enumerable:!0})};export{n as a,f as b};
2
+ //# sourceMappingURL=chunk-LDXBIOBF.js.map