@oevery/rsp 4.1.0 → 4.2.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 (129) hide show
  1. package/dist/{chunk-JO6NDJM4.mjs → chunk-AUZYUJ46.mjs} +62 -4
  2. package/dist/chunk-DNRGBQS7.mjs +108 -0
  3. package/dist/cli.mjs +16 -9
  4. package/dist/{client-EHRWH5Q7.mjs → client-U2PN3VS4.mjs} +1 -1
  5. package/dist/viewer/app.css +2 -2
  6. package/dist/viewer/app.js +169 -169
  7. package/dist/viewer/chunks/abnfDiagram-S7VZAUFO-K5EOZOEF.js +1 -0
  8. package/dist/viewer/chunks/architecture-WOLXFQ4H-UAT5D5BF.js +1 -0
  9. package/dist/viewer/chunks/architectureDiagram-YGSQEFNW-UNPSYM2L.js +36 -0
  10. package/dist/viewer/chunks/blockDiagram-APKKGZFW-2F7TTPAV.js +140 -0
  11. package/dist/viewer/chunks/bpmnIcons-APHXDYXF-ZWPFFN3O.js +1 -0
  12. package/dist/viewer/chunks/c4Diagram-KJ2TOQU5-KNLN6CME.js +38 -0
  13. package/dist/viewer/chunks/chunk-274PZN6B.js +1 -0
  14. package/dist/viewer/chunks/chunk-2VGDQLQD.js +1 -0
  15. package/dist/viewer/chunks/chunk-33XESOCS.js +1 -0
  16. package/dist/viewer/chunks/chunk-3ZSL2TGQ.js +1 -0
  17. package/dist/viewer/chunks/chunk-432I4U3B.js +1 -0
  18. package/dist/viewer/chunks/chunk-4PJNGS3V.js +1 -0
  19. package/dist/viewer/chunks/chunk-54NLSLTF.js +9 -0
  20. package/dist/viewer/chunks/chunk-6QRHYJ5Q.js +1 -0
  21. package/dist/viewer/chunks/chunk-6RCFKBVR.js +1 -0
  22. package/dist/viewer/chunks/chunk-6Y2HP7DC.js +213 -0
  23. package/dist/viewer/chunks/chunk-7MAT7NHP.js +1 -0
  24. package/dist/viewer/chunks/chunk-AKHBD6LT.js +2 -0
  25. package/dist/viewer/chunks/chunk-CZIM56BV.js +1 -0
  26. package/dist/viewer/chunks/chunk-DN4Y7LXJ.js +1 -0
  27. package/dist/viewer/chunks/chunk-E2UQN267.js +1 -0
  28. package/dist/viewer/chunks/chunk-GBARLDDT.js +1 -0
  29. package/dist/viewer/chunks/chunk-H4YEV7VR.js +1 -0
  30. package/dist/viewer/chunks/chunk-HUVVDQHZ.js +1 -0
  31. package/dist/viewer/chunks/chunk-IAKC32WV.js +72 -0
  32. package/dist/viewer/chunks/chunk-JTW4SY4L.js +1 -0
  33. package/dist/viewer/chunks/chunk-JZV675LF.js +1 -0
  34. package/dist/viewer/chunks/chunk-KDUDYTWO.js +1 -0
  35. package/dist/viewer/chunks/chunk-KHX3A5RZ.js +331 -0
  36. package/dist/viewer/chunks/chunk-KPXJJSUR.js +15 -0
  37. package/dist/viewer/chunks/chunk-LEGNM6PH.js +1 -0
  38. package/dist/viewer/chunks/chunk-LYY4ZY72.js +1 -0
  39. package/dist/viewer/chunks/chunk-MKDEK2LU.js +1 -0
  40. package/dist/viewer/chunks/chunk-MYJRFART.js +129 -0
  41. package/dist/viewer/chunks/chunk-NUXZBURC.js +1 -0
  42. package/dist/viewer/chunks/chunk-NXHT5I2L.js +1 -0
  43. package/dist/viewer/chunks/chunk-OF62XRVM.js +62 -0
  44. package/dist/viewer/chunks/chunk-ONCOEVBS.js +1 -0
  45. package/dist/viewer/chunks/chunk-P44SH3OO.js +1 -0
  46. package/dist/viewer/chunks/chunk-PDXKDBIX.js +1 -0
  47. package/dist/viewer/chunks/chunk-PHKIAKHS.js +1 -0
  48. package/dist/viewer/chunks/chunk-PJDMAGPE.js +2 -0
  49. package/dist/viewer/chunks/chunk-RC2NPHSX.js +88 -0
  50. package/dist/viewer/chunks/chunk-T6DM5RSK.js +10 -0
  51. package/dist/viewer/chunks/chunk-U5STX66M.js +2 -0
  52. package/dist/viewer/chunks/chunk-UIAJQPOF.js +1 -0
  53. package/dist/viewer/chunks/chunk-UX2S3LP3.js +1 -0
  54. package/dist/viewer/chunks/chunk-VEMTQQ7Y.js +2 -0
  55. package/dist/viewer/chunks/chunk-WKCPBR3C.js +1 -0
  56. package/dist/viewer/chunks/chunk-WMQ4Y2MS.js +32 -0
  57. package/dist/viewer/chunks/chunk-YPWIQAHX.js +3 -0
  58. package/dist/viewer/chunks/chunk-Z4ZDIMO2.js +136 -0
  59. package/dist/viewer/chunks/chunk-ZATQCNXH.js +1 -0
  60. package/dist/viewer/chunks/chunk-ZE5RDJX6.js +1 -0
  61. package/dist/viewer/chunks/chunk-ZO62R4L2.js +1 -0
  62. package/dist/viewer/chunks/classDiagram-v2-L25IHNXF-5F2M2CZ4.js +217 -0
  63. package/dist/viewer/chunks/cose-bilkent-JH36ORCC-S56HJ5WN.js +1 -0
  64. package/dist/viewer/chunks/cynefin-EF2NZ3EQ-6WY2NCLE.js +1 -0
  65. package/dist/viewer/chunks/cynefinDiagram-L36ESFBY-DE6PZNQA.js +62 -0
  66. package/dist/viewer/chunks/dagre-SPEB5RXH-QEOTKFV2.js +4 -0
  67. package/dist/viewer/chunks/diagram-3B7GL73J-RZPIU7FY.js +200 -0
  68. package/dist/viewer/chunks/diagram-DNEMPZML-YD26TJKC.js +24 -0
  69. package/dist/viewer/chunks/diagram-L3MUGCDN-TJUEX4QI.js +41 -0
  70. package/dist/viewer/chunks/diagram-LA4NIPWU-3PUQS6UW.js +24 -0
  71. package/dist/viewer/chunks/diagram-MHCOC4E2-YBTBD4PG.js +3 -0
  72. package/dist/viewer/chunks/diagram-XPFHEONP-VF2TQBNR.js +30 -0
  73. package/dist/viewer/chunks/ebnfDiagram-UZSYDL2S-QE7DIEME.js +1 -0
  74. package/dist/viewer/chunks/elk-XV6XMXQE-X5OZRIL3.js +27 -0
  75. package/dist/viewer/chunks/erDiagram-EYBAPDEH-5B2S7VB4.js +99 -0
  76. package/dist/viewer/chunks/eventmodeling-K75KTNOO-CHCQYZBI.js +1 -0
  77. package/dist/viewer/chunks/flowDiagram-MALGAFMO-XJFC5NTN.js +1 -0
  78. package/dist/viewer/chunks/ganttDiagram-23REXITY-TUUZ3QYO.js +292 -0
  79. package/dist/viewer/chunks/gitGraph-VSP46ZUC-VFZPJQ6A.js +1 -0
  80. package/dist/viewer/chunks/gitGraphDiagram-STJD7YCW-4CVV5LSH.js +106 -0
  81. package/dist/viewer/chunks/info-OHQRW6UA-P4744SJ6.js +1 -0
  82. package/dist/viewer/chunks/infoDiagram-KBXO4MBG-Q2WYYNNN.js +2 -0
  83. package/dist/viewer/chunks/ishikawaDiagram-M35NCXHK-PLQPTX2U.js +70 -0
  84. package/dist/viewer/chunks/journeyDiagram-OPLOXDXO-FB73RE6F.js +139 -0
  85. package/dist/viewer/chunks/kanban-definition-BZKZHSQY-6FU4TXYJ.js +89 -0
  86. package/dist/viewer/chunks/katex-IN4S3RHS.js +257 -0
  87. package/dist/viewer/chunks/mindmap-definition-I2QAS2VK-ZQ36ABVW.js +98 -0
  88. package/dist/viewer/chunks/packet-JDAUHWVQ-NYXIQQVA.js +1 -0
  89. package/dist/viewer/chunks/pegDiagram-FD4XPPHP-5XXVT6XN.js +1 -0
  90. package/dist/viewer/chunks/pie-XZMESJXO-32CUE6KZ.js +1 -0
  91. package/dist/viewer/chunks/pieDiagram-J4AKIIQI-WRTBDFM5.js +39 -0
  92. package/dist/viewer/chunks/quadrantDiagram-XTYBLID2-YPBDQIAK.js +7 -0
  93. package/dist/viewer/chunks/radar-ABXABTNO-272FILRO.js +1 -0
  94. package/dist/viewer/chunks/railroad-I3PHUGI6-6EGAH4XA.js +1 -0
  95. package/dist/viewer/chunks/railroad-abnf-LNEFI6M7-G6E7ATER.js +1 -0
  96. package/dist/viewer/chunks/railroad-ebnf-DWYD2UWJ-MR4P6BDR.js +1 -0
  97. package/dist/viewer/chunks/railroad-peg-JR7BVNR7-WXLQUGUO.js +1 -0
  98. package/dist/viewer/chunks/railroadDiagram-MRQ6NCDL-XHZQ2BLY.js +1 -0
  99. package/dist/viewer/chunks/requirementDiagram-Y7LWUY3S-W5FHRRML.js +84 -0
  100. package/dist/viewer/chunks/sankeyDiagram-WGJFYUXA-OJJIRVTI.js +40 -0
  101. package/dist/viewer/chunks/sequenceDiagram-5NDRBG5M-D6T4DRNG.js +169 -0
  102. package/dist/viewer/chunks/sizeCapture-INFHLROL-WL3FTUJX.js +1 -0
  103. package/dist/viewer/chunks/stateDiagram-v2-FJ4FJNEA-LAXL7KGG.js +291 -0
  104. package/dist/viewer/chunks/swimlanes-UMQ2AFYF-XIJBD726.js +1 -0
  105. package/dist/viewer/chunks/swimlanesDiagram-OMPLPG4O-7O7MHFW7.js +8 -0
  106. package/dist/viewer/chunks/timeline-definition-SEUHKTQE-BAZQA47I.js +120 -0
  107. package/dist/viewer/chunks/treeView-D4JQ5SDB-6YMDAAPA.js +1 -0
  108. package/dist/viewer/chunks/treemap-SAJKECNS-2X573PPS.js +1 -0
  109. package/dist/viewer/chunks/usecaseDiagram-AFA6YXN4-4YCEMWJB.js +370 -0
  110. package/dist/viewer/chunks/vennDiagram-NNMJR3RB-GEMROLAE.js +34 -0
  111. package/dist/viewer/chunks/wardley-7MLQ67FV-DGTGHYYC.js +1 -0
  112. package/dist/viewer/chunks/wardleyDiagram-S7YFUSEH-K4HVD3SS.js +78 -0
  113. package/dist/viewer/chunks/xychartDiagram-GGNKY7IX-HVLWCUEO.js +7 -0
  114. package/dist/viewer/mermaid.js +12 -0
  115. package/dist/viewer-build.json +1 -1
  116. package/dist/viewer-service.mjs +69 -13
  117. package/package.json +10 -9
  118. package/skills/rsp/SKILL.md +9 -7
  119. package/skills/rsp/references/closeout.md +4 -4
  120. package/skills/rsp/references/durable-review.md +6 -9
  121. package/skills/rsp/references/work-model.md +4 -4
  122. package/skills/rsp-commit/SKILL.md +2 -2
  123. package/skills/rsp-doc/SKILL.md +1 -1
  124. package/skills/rsp-implement/SKILL.md +1 -1
  125. package/skills/rsp-review/SKILL.md +6 -6
  126. package/skills/rsp-review/references/document-review.md +2 -2
  127. package/skills/rsp-shape/references/planning.md +2 -2
  128. package/skills/rsp-verify/SKILL.md +1 -1
  129. package/dist/chunk-U56XMIOO.mjs +0 -66
@@ -0,0 +1,88 @@
1
+ import{a as P}from"./chunk-UX2S3LP3.js";import{$ as Y,C as z,I as W,P as _,U as B,p as E}from"./chunk-MYJRFART.js";import{b as T}from"./chunk-3ZSL2TGQ.js";import{a as h}from"./chunk-ZE5RDJX6.js";var b="",N="",A="",M=[],R=new Map,k=h(e=>W(e,Y()),"sanitizeText"),F=h(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=h(()=>{b="",N="",A="",M.length=0,R.clear(),B(),T.debug("[Railroad] Database cleared")},"clear"),I=h(e=>{b=k(e),T.debug("[Railroad] Title set:",e)},"setTitle"),X=h(()=>b,"getTitle"),j=h(e=>{let i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};T.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&T.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),M.push(i),R.set(i.name,i)},"addRule"),K=h(()=>M,"getRules"),J=h(e=>R.get(e),"getRule"),Q=h(e=>{N=k(e).replace(/^\s+/g,""),T.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=h(()=>N,"getAccTitle"),V=h(e=>{A=k(e).replace(/\n\s+/g,`
2
+ `),T.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=h(()=>A,"getAccDescription"),te=I,re=X,ie={clear:U,setTitle:I,getTitle:X,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),H=h(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=h(e=>e?"railroad"in e&&e.railroad?e.railroad:H(e)?e:{}:{},"extractRailroadOverrides"),se=h(e=>{if(!e||H(e))return{};let{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),q=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=h((e,i)=>{let a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=h(e=>{let i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=h(e=>{let i=q(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),O=h(e=>{let i=z(),a={...E(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:q(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),Te=h(e=>{let{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:p,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:w,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=O(e);return`
3
+ .railroad-diagram {
4
+ font-family: ${i};
5
+ font-size: ${a}px;
6
+ }
7
+
8
+ .railroad-terminal rect {
9
+ fill: ${r};
10
+ stroke: ${t};
11
+ stroke-width: ${c}px;
12
+ }
13
+
14
+ .railroad-terminal text {
15
+ fill: ${n};
16
+ font-family: ${i};
17
+ font-size: ${a}px;
18
+ text-anchor: middle;
19
+ dominant-baseline: middle;
20
+ }
21
+
22
+ .railroad-nonterminal rect {
23
+ fill: ${p};
24
+ stroke: ${s};
25
+ stroke-width: ${c}px;
26
+ }
27
+
28
+ .railroad-nonterminal text {
29
+ fill: ${o};
30
+ font-family: ${i};
31
+ font-size: ${a}px;
32
+ text-anchor: middle;
33
+ dominant-baseline: middle;
34
+ }
35
+
36
+ .railroad-line {
37
+ stroke: ${u};
38
+ stroke-width: ${c}px;
39
+ fill: none;
40
+ }
41
+
42
+ .railroad-start circle,
43
+ .railroad-end circle {
44
+ fill: ${d};
45
+ }
46
+
47
+ .railroad-comment ellipse {
48
+ fill: ${w};
49
+ stroke: ${l};
50
+ stroke-width: ${c}px;
51
+ }
52
+
53
+ .railroad-comment text {
54
+ fill: ${f};
55
+ font-style: italic;
56
+ font-family: ${i};
57
+ font-size: ${a}px;
58
+ text-anchor: middle;
59
+ dominant-baseline: middle;
60
+ }
61
+
62
+ .railroad-special rect {
63
+ fill: ${y};
64
+ stroke: ${v};
65
+ stroke-width: ${c}px;
66
+ stroke-dasharray: 5,3;
67
+ }
68
+
69
+ .railroad-special text {
70
+ fill: ${o};
71
+ font-family: ${i};
72
+ font-size: ${a}px;
73
+ text-anchor: middle;
74
+ dominant-baseline: middle;
75
+ }
76
+
77
+ .railroad-rule-name {
78
+ font-weight: bold;
79
+ fill: ${C};
80
+ font-family: ${i};
81
+ font-size: ${a}px;
82
+ }
83
+
84
+ .railroad-group {
85
+ /* Grouping container, no specific styles */
86
+ }
87
+ `},"getStyles"),x=class{constructor(){this.d=""}static{h(this,"PathBuilder")}moveTo(e,i){return this.d+=`M ${e} ${i} `,this}lineTo(e,i){return this.d+=`L ${e} ${i} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,i,a,r,t,n,p){return this.d+=`A ${e} ${i} ${a} ${r?1:0} ${t?1:0} ${n} ${p} `,this}build(){return this.d.trim()}},me=class{constructor(e,i=O()){this.textCache=new Map,this.svg=e,this.config=i}static{h(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let i=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),a=i.node().getBBox(),r={width:a.width,height:a.height};return i.remove(),this.textCache.set(e,r),r}renderTerminal(e,i){let a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t).attr("rx",10).attr("ry",10),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderNonTerminal(e,i){let a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderSequence(e,i){let a=i.map(o=>this.renderExpression(e,o)),r=0,t=0,n=0;for(let o of a)r+=o.dimensions.width,t=Math.max(t,o.dimensions.up),n=Math.max(n,o.dimensions.down);r+=(a.length-1)*this.config.horizontalSeparation;let p=e.append("g").attr("class","railroad-sequence"),s=0;for(let o=0;o<a.length;o++){let u=a[o],c=t-u.dimensions.up;if(p.node().appendChild(u.element).setAttribute("transform",`translate(${s}, ${c})`),o<a.length-1){let w=s+u.dimensions.width,l=w+this.config.horizontalSeparation,f=t;p.append("path").attr("class","railroad-line").attr("d",new x().moveTo(w,f).lineTo(l,f).build())}s+=u.dimensions.width+this.config.horizontalSeparation}return{element:p.node(),dimensions:{width:r,height:t+n,up:t,down:n}}}renderChoice(e,i){let a=i.map(d=>this.renderExpression(e,d)),r=0,t=0;for(let d of a)r=Math.max(r,d.dimensions.width),t+=d.dimensions.height;t+=(a.length-1)*this.config.verticalSeparation;let n=this.config.arcRadius,p=n*4,s=r+p,o=e.append("g").attr("class","railroad-choice"),u=0,c=t/2;for(let d of a){let w=u,l=w+d.dimensions.up,f=n*2+(r-d.dimensions.width)/2;o.node().appendChild(d.element).setAttribute("transform",`translate(${f}, ${w})`);let v=new x,C=l>c;l===c?v.moveTo(0,c).lineTo(f,l):v.moveTo(0,c).arcTo(n,n,0,!1,C,n,c+(C?n:-n)).lineTo(n,l-(C?n:-n)).arcTo(n,n,0,!1,!C,n*2,l).lineTo(f,l),o.append("path").attr("class","railroad-line").attr("d",v.build());let $=new x,D=f+d.dimensions.width,G=s-n*2;l===c?$.moveTo(D,l).lineTo(s,c):$.moveTo(D,l).lineTo(G,l).arcTo(n,n,0,!1,!C,s-n,l+(C?-n:n)).lineTo(s-n,c+(C?n:-n)).arcTo(n,n,0,!1,C,s,c),o.append("path").attr("class","railroad-line").attr("d",$.build()),u+=d.dimensions.height+this.config.verticalSeparation}return{element:o.node(),dimensions:{width:s,height:t,up:c,down:t-c}}}renderOptional(e,i){let a=this.renderExpression(e,i),r=this.config.arcRadius,t=r*2,n=a.dimensions.width+r*4,p=a.dimensions.height+t,s=e.append("g").attr("class","railroad-optional"),o=r*2,u=t;s.node().appendChild(a.element).setAttribute("transform",`translate(${o}, ${u})`);let d=u+a.dimensions.up,w=new x().moveTo(0,d).lineTo(r*2,d);s.append("path").attr("class","railroad-line").attr("d",w.build());let l=new x().moveTo(o+a.dimensions.width,d).lineTo(n,d);s.append("path").attr("class","railroad-line").attr("d",l.build());let f=new x().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(n-r*2,0).arcTo(r,r,0,!1,!0,n-r,r).lineTo(n-r,d-r).arcTo(r,r,0,!1,!1,n,d);return s.append("path").attr("class","railroad-line").attr("d",f.build()),{element:s.node(),dimensions:{width:n,height:p,up:d,down:p-d}}}renderRepetition(e,i,a){let r=this.renderExpression(e,i),t=this.config.arcRadius,n=t*2,p=r.dimensions.width+t*4,s=a===0,o=r.dimensions.height+n+(s?n:0),u=e.append("g").attr("class","railroad-repetition"),c=t*2,d=s?n:0;u.node().appendChild(r.element).setAttribute("transform",`translate(${c}, ${d})`);let l=d+r.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new x().moveTo(0,l).lineTo(t*2,l).build()),u.append("path").attr("class","railroad-line").attr("d",new x().moveTo(c+r.dimensions.width,l).lineTo(p,l).build());let f=d+r.dimensions.height+t,y=new x().moveTo(c+r.dimensions.width,l).arcTo(t,t,0,!1,!0,c+r.dimensions.width+t,l+t).lineTo(c+r.dimensions.width+t,f).arcTo(t,t,0,!1,!0,c+r.dimensions.width,f+t).lineTo(t*2,f+t).arcTo(t,t,0,!1,!0,t,f).lineTo(t,l+t).arcTo(t,t,0,!1,!0,t*2,l);if(u.append("path").attr("class","railroad-line").attr("d",y.build()),s){let v=new x().moveTo(0,l).arcTo(t,t,0,!1,!1,t,l-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(p-t*2,0).arcTo(t,t,0,!1,!0,p-t,t).lineTo(p-t,l-t).arcTo(t,t,0,!1,!1,p,l);u.append("path").attr("class","railroad-line").attr("d",v.build())}return{element:u.node(),dimensions:{width:p,height:o,up:l,down:o-l}}}renderSpecial(e,i){let a=this.measureText("? "+i+" ?"),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text("? "+i+" ?"),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderExpression(e,i){switch(i.type){case"terminal":return this.renderTerminal(e,i.value);case"nonterminal":return this.renderNonTerminal(e,i.name);case"sequence":return this.renderSequence(e,i.elements);case"choice":return this.renderChoice(e,i.alternatives);case"optional":return this.renderOptional(e,i.element);case"repetition":return this.renderRepetition(e,i.element,i.min);case"special":return this.renderSpecial(e,i.text);default:throw new Error(`Unknown node type: ${i.type}`)}}renderRule(e,i){let a=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${i})`),r=e.name+" =",t=this.measureText(r).width+20,n=t+20,p=a.append("g"),s=this.renderExpression(p,e.definition),o=Math.max(20,s.dimensions.up),u=o-s.dimensions.up;return p.attr("transform",`translate(${n}, ${u})`),a.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",o).text(r),a.append("g").attr("class","railroad-start").append("circle").attr("cx",t).attr("cy",o).attr("r",this.config.markerRadius),a.append("g").attr("class","railroad-end").append("circle").attr("cx",n+s.dimensions.width+10).attr("cy",o).attr("r",this.config.markerRadius),a.append("path").attr("class","railroad-line").attr("d",new x().moveTo(t+this.config.markerRadius,o).lineTo(n,o).build()),a.append("path").attr("class","railroad-line").attr("d",new x().moveTo(n+s.dimensions.width,o).lineTo(n+s.dimensions.width+10-this.config.markerRadius,o).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:n+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let i=this.config.padding,a=0;for(let r of e){let t=this.renderRule(r,i);i+=t.height+this.config.verticalSeparation,a=Math.max(a,t.width)}return{width:a+this.config.padding*2,height:i+this.config.padding}}},L=h((e,i,a)=>{_(e,i.height,i.width,a),e.attr("viewBox",`0 0 ${i.width} ${i.height}`)},"configureRailroadSvgSize"),he=h((e,i,a)=>{T.debug(`[Railroad] Rendering diagram
88
+ `+e);try{let r=P(i);r.attr("class","railroad-diagram");let n=z().railroad?.useMaxWidth??!0,p=ie.getRules();if(T.debug(`[Railroad] Rendering ${p.length} rules`),p.length===0){T.warn("[Railroad] No rules to render"),L(r,{height:100,width:200},n);return}let o=new me(r,O()).renderDiagram(p);L(r,o,n),T.debug("[Railroad] Render complete")}catch(r){throw T.error("[Railroad] Render error:",r),r}},"draw"),xe={draw:he};export{ie as a,Te as b,xe as c};
@@ -0,0 +1,10 @@
1
+ import{a as Wt}from"./chunk-PDXKDBIX.js";import{f as Z}from"./chunk-OF62XRVM.js";import{a as $t}from"./chunk-4PJNGS3V.js";import{c as yt,d as gt}from"./chunk-ZATQCNXH.js";import{c as pt,e as Ut}from"./chunk-IAKC32WV.js";import{q as U,u as At}from"./chunk-VEMTQQ7Y.js";import{c as at,d as xt,f as bt,g as wt,h as dt,l as Mt,o as vt,s as St,t as Lt,u as _t,v as Et,w as Ot,x as Tt}from"./chunk-NXHT5I2L.js";import{$ as A,C as B,G as ct,b as ut}from"./chunk-MYJRFART.js";import{b as w,d as T}from"./chunk-3ZSL2TGQ.js";import{a as l}from"./chunk-ZE5RDJX6.js";var j=l((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),v={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Ht={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5,arrow_open_head:4,arrow_hollow_circle:8};function J(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=x(r),t=x(t);let[a,e]=[r.x,r.y],[s,n]=[t.x,t.y],o=s-a,i=n-e;return{angle:Math.atan(i/o),deltaX:o,deltaY:i}}l(J,"calculateDeltaAndAngle");var x=l(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),fr=l(r=>({x:l(function(t,a,e){let s=0,n=x(e[0]).x<x(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:p,deltaX:u}=J(e[0],e[1]);s=v[r.arrowTypeStart]*Math.cos(p)*(u>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:p,deltaX:u}=J(e[e.length-1],e[e.length-2]);s=v[r.arrowTypeEnd]*Math.cos(p)*(u>=0?1:-1)}let o=Math.abs(x(t).x-x(e[e.length-1]).x),i=Math.abs(x(t).y-x(e[e.length-1]).y),c=Math.abs(x(t).x-x(e[0]).x),h=Math.abs(x(t).y-x(e[0]).y),f=v[r.arrowTypeStart],m=v[r.arrowTypeEnd],d=1;if(o<m&&o>0&&i<m){let p=m+d-o;p*=n==="right"?-1:1,s-=p}if(c<f&&c>0&&h<f){let p=f+d-c;p*=n==="right"?-1:1,s+=p}return x(t).x+s},"x"),y:l(function(t,a,e){let s=0,n=x(e[0]).y<x(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:p,deltaY:u}=J(e[0],e[1]);s=v[r.arrowTypeStart]*Math.abs(Math.sin(p))*(u>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:p,deltaY:u}=J(e[e.length-1],e[e.length-2]);s=v[r.arrowTypeEnd]*Math.abs(Math.sin(p))*(u>=0?1:-1)}let o=Math.abs(x(t).y-x(e[e.length-1]).y),i=Math.abs(x(t).x-x(e[e.length-1]).x),c=Math.abs(x(t).y-x(e[0]).y),h=Math.abs(x(t).x-x(e[0]).x),f=v[r.arrowTypeStart],m=v[r.arrowTypeEnd],d=1;if(o<m&&o>0&&i<m){let p=m+d-o;p*=n==="up"?-1:1,s-=p}if(c<f&&c>0&&h<f){let p=f+d-c;p*=n==="up"?-1:1,s+=p}return x(t).y+s},"y")}),"getLineFunctionsWithOffset"),Qt=1,mr=l(r=>typeof r=="number"&&Number.isFinite(r)&&r>0?r:Qt,"getStepDuration"),mt=l(r=>typeof r.step=="number"&&Number.isInteger(r.step)&&r.step>0,"isStepEdge"),Yt=[.25,.35,.15,.65,.75,.5,.85,.1,.9],ht=9,kr=11,ur=2,yr="#333333",Xt=12,Pt=6,Bt=14,Ct=.01,gr=4.5,Gt=/translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i,xr=4,br=.6,wr=4,Mr=l((r,t,a=Qt)=>{let e=Math.max(t,r);return{begin:(r-1)*a,dur:a,gap:(e-1)*a}},"getEdgeStepTiming"),vr=l(r=>`step_${Array.from(r,t=>/[\dA-Za-z]/.test(t)?t:`_${(t.codePointAt(0)??0).toString(16)}_`).join("")}`,"toAnimationId"),Sr=l(r=>{let t=/^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(r.trim());return t?`translate(${t[1]},${t[2]}) `:""},"pathStartTranslate"),Lr=l(r=>Array.from(r,(t,a)=>{let e=t.codePointAt(0)??0;if(e===0)return"\uFFFD";let s=e<=31||e===127,n=/\d/.test(t)&&(a===0||a===1&&r.startsWith("-"));return s||n?`\\${e.toString(16)} `:r==="-"?"\\-":e>=128||/[\w-]/.test(t)?t:`\\${t}`}).join(""),"escapeCssIdentifierFallback"),_r=l(r=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(r):Lr(r),"escapeCssIdentifier"),Er=l((r,t)=>{let a=r.node(),e=a?.ownerSVGElement??a?.closest?.("svg")??a,s=t||e?.getAttribute("id");if(!e||!s||e.querySelector("style.edge-step-style"))return;let n=`#${_r(s)} `,o=e.ownerDocument.createElementNS("http://www.w3.org/2000/svg","style");o.setAttribute("class","edge-step-style"),o.textContent=`@media (prefers-reduced-motion: reduce) { ${n}.edge-step-dot, ${n}.edge-step-highlight { display: none; } }`,e.appendChild(o)},"ensureReducedMotionStyle"),Or=l((r,t)=>{let a=r.filter(n=>Number.isFinite(n.x)&&Number.isFinite(n.y));if(a.length===0)return;let e=a.slice(1).map((n,o)=>Math.hypot(n.x-a[o].x,n.y-a[o].y)),s=e.reduce((n,o)=>n+o,0)*t;for(let[n,o]of e.entries()){if(s<=o&&o>0){let i=s/o,c=a[n],h=a[n+1];return{x:c.x+(h.x-c.x)*i,y:c.y+(h.y-c.y)*i}}s-=o}return a[a.length-1]},"pointAlongPolyline"),Tr=l((r,t)=>{let a=typeof t?.getTotalLength=="function"?t.getTotalLength():0,e=t?.getPointAtLength?.bind(t);return a>0&&e?s=>{let{x:n,y:o}=e(a*s);return{x:n,y:o}}:s=>Or(r,s)},"createPathSampler"),Ar=l((r,t)=>Math.min(Number.POSITIVE_INFINITY,...t.map(a=>{let e=Math.max(Math.abs(r.x-a.x)-a.halfWidth,0),s=Math.max(Math.abs(r.y-a.y)-a.halfHeight,0);return Math.hypot(e,s)-ht})),"roomAround"),Ur=l((r,t)=>{let a=r(t),e=r(Math.max(t-Ct,0)),s=r(Math.min(t+Ct,1));if(!a||!e||!s)return[];let n=Math.hypot(s.x-e.x,s.y-e.y);if(n===0)return[];let o={x:-(s.y-e.y)/n,y:(s.x-e.x)/n};return[1,-1].map(i=>({x:a.x+o.x*Bt*i,y:a.y+o.y*Bt*i}))},"besideThePath"),$r=l((r,t)=>{let a=[...Yt.map(r),...Yt.flatMap(n=>Ur(r,n))],e,s=Number.NEGATIVE_INFINITY;for(let n of a){if(!n||!Number.isFinite(n.x)||!Number.isFinite(n.y))continue;let o=Ar(n,t);if(o>=ur)return n;o>s&&(e=n,s=o)}return e},"chooseBadgePosition"),Zt=l((r,t)=>({...r,halfWidth:t,halfHeight:t}),"square"),Wr=l(r=>{let t=Gt.exec(r.getAttribute("transform")??"");return t?{x:Number(t[1]),y:Number(t[2])}:{x:0,y:0}},"translationOf"),kt=l(r=>{let t={x:0,y:0};for(let a=r;a&&a.localName!=="svg";a=a.parentElement){let{x:e,y:s}=Wr(a);t.x+=e,t.y+=s}return t},"offsetInSvg"),Hr=l((r,t)=>{if(!Gt.test(r.getAttribute("transform")??""))return;let a=kt(r),e=a.x-t.x,s=a.y-t.y,n=r.getBBox?.();if(n)return{x:e+n.x+n.width/2,y:s+n.y+n.height/2,halfWidth:n.width/2,halfHeight:n.height/2}},"boxedObstacle"),Yr=l(r=>{try{let t=JSON.parse(atob(r.getAttribute("data-points")??""));return Array.isArray(t)?t:[]}catch{return[]}},"readPoints"),Nt=l((r,t)=>{let a=Math.hypot(r.x-t.x,r.y-t.y);if(a===0)return Zt(r,Xt);let e={x:(r.x-t.x)/a,y:(r.y-t.y)/a},s=Xt/2;return{x:r.x-e.x*s,y:r.y-e.y*s,halfWidth:Math.abs(e.x)*s+Math.abs(e.y)*Pt,halfHeight:Math.abs(e.y)*s+Math.abs(e.x)*Pt}},"arrowheadObstacle"),Rt=l((r,t)=>{let a=r.getAttribute(t);return!!a&&a!=="none"},"hasMarker"),Xr=l((r,t)=>{let a=Yr(r).filter(i=>Number.isFinite(i?.x)&&Number.isFinite(i?.y));if(a.length===0)return[];let e=kt(r),s=l(i=>({x:i.x+e.x-t.x,y:i.y+e.y-t.y}),"toSvg"),n=a.length-1,o=[];return Rt(r,"marker-start")&&o.push(Nt(s(a[0]),s(a[Math.min(1,n)]))),Rt(r,"marker-end")&&o.push(Nt(s(a[n]),s(a[Math.max(n-1,0)]))),o},"arrowheadObstacles"),jt=l(r=>{let t={x:0,y:0},a=[...r?.querySelectorAll(".edgeLabel, .node")??[]].map(s=>Hr(s,t)).filter(s=>s!==void 0),e=[...r?.querySelectorAll('path[data-edge="true"]')??[]].flatMap(s=>Xr(s,t));return[...a,...e]},"collectBadgeObstacles"),Pr=l((r,t)=>{if(!r.label||t.length===0)return[];let{x:a,y:e}=U.calcLabelPosition(t);return[{x:a,y:e,halfWidth:(r.width??0)/2,halfHeight:(r.height??0)/2}]},"edgeLabelObstacles"),Br=l(r=>{let t=r/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},"linearChannel"),zt=l(r=>{try{let[t,a,e]=["r","g","b"].map(s=>Br(ut(r,s)));return .2126*t+.7152*a+.0722*e}catch{return}},"relativeLuminance"),Cr=l((r,t)=>{let a=zt(r),e=zt(t);return a===void 0||e===void 0?0:(Math.max(a,e)+.05)/(Math.min(a,e)+.05)},"contrastRatio"),Nr=l((r,t)=>{let e=[...t.filter(n=>!!n),"#ffffff","#000000"].map(n=>({color:n,ratio:Cr(r,n)}));return(e.find(({ratio:n})=>n>=gr)??e.reduce((n,o)=>o.ratio>n.ratio?o:n)).color},"pickBadgeTextColor"),Rr=l(r=>{let t=r?.replace(/^stroke:\s*/,"").trim();return t===""?void 0:t},"bareColor"),zr=l((r,t,a,e=jt(r.node()?.closest("svg")))=>{if(!mt(t)||!t.showStepNumber)return;let s=kt(r.node()),n=e.map(h=>({...h,x:h.x-s.x,y:h.y-s.y})),o=$r(Tr(a.points,a.pathNode),[...n,...Pr(t,a.points)]);if(!o)return;let i=Rr(a.color)??yr,c=r.append("g").attr("class","edge-step-badge").attr("transform",`translate(${o.x},${o.y})`).attr("pointer-events","none").attr("data-step",t.step);return c.append("circle").attr("r",ht).attr("fill",i),c.append("text").attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",kr).attr("fill",Nr(i,a.textColors??[])).text(String(t.step)),Zt({x:o.x+s.x,y:o.y+s.y},ht)},"insertEdgeStepBadge"),Dt=l((r,t,a)=>{r.append("animateTransform").attr("attributeName","transform").attr("type","scale").attr("values","1;1").attr("dur",`${a}s`).attr("begin",`${t}.begin`).attr("fill","remove")},"showWhileStepPlays"),Dr=l((r,t,a,e,s)=>{if(!mt(t)||!a)return;let{begin:n,dur:o,gap:i}=Mr(t.step,t.stepCount??t.step,mr(t.stepDuration)),c=vr(`${e}-${t.id}-step`),h=`${Sr(a)}scale(0)`,f=s?.replace(/^stroke:\s*/,""),m=r.append("path").attr("class","edge-step-highlight").attr("aria-hidden","true").attr("d",a).attr("fill","none").attr("stroke",f??"currentColor").attr("stroke-width",xr).attr("stroke-linecap","round").attr("stroke-opacity",br).attr("pointer-events","none").attr("transform",h).attr("data-step",t.step);Dt(m,c,o);let d=r.append("circle").attr("class","edge-step-dot").attr("r",wr).attr("aria-hidden","true").attr("transform",h).attr("data-step",t.step);f&&d.attr("fill",f).attr("stroke","none"),d.append("animateMotion").attr("id",c).attr("path",a).attr("dur",`${o}s`).attr("begin",`${n}s;${c}.end+${i}s`).attr("fill","remove"),Dt(d,c,o),Er(r,e)},"insertEdgeStepDot"),et=new WeakMap,qr=l(r=>{let t=r.querySelector(":scope > g.edge-step-badges");if(t)return t;let a=r.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");return a.setAttribute("class","edge-step-badges"),r.appendChild(a)},"badgeLayer"),Na=l(r=>{let t=r?et.get(r):void 0;if(!r||!t)return;et.delete(r);let a=jt(r);for(let{elem:e,edge:s,options:n}of t){let o=e.node()?.parentElement;if(!o)continue;let i=T(qr(o)),c=zr(i,s,n,a);c&&a.push(c)}},"placeQueuedStepBadges"),Ir=l((r,t,a,e,s)=>{Dr(r,t,a,e,s.color);let n=r.node(),o=n?.ownerSVGElement??n;!o||!mt(t)||!t.showStepNumber||et.set(o,[...et.get(o)??[],{elem:r,edge:t,options:s}])},"insertEdgeStepMarks"),Fr=l((r,t,a,e,s,n=!1,o)=>{t.arrowTypeStart&&qt(r,"start",t.arrowTypeStart,a,e,s,n,o),t.arrowTypeEnd&&qt(r,"end",t.arrowTypeEnd,a,e,s,n,o)},"addEdgeMarkers"),Qr={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_open_head:{type:"openArrow",fill:!1},arrow_hollow_circle:{type:"hollowCircle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Gr=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],qt=l((r,t,a,e,s,n,o=!1,i)=>{if(!a||a==="none")return;let c=Qr[a],h=c&&Gr.includes(c.type);if(!c){w.warn(`Unknown arrow type: ${a}`);return}let f=c.type,p=`${s}_${n}-${f}${t==="start"?"Start":"End"}${o&&h?"-margin":""}`;if(i&&i.trim()!==""){let u=i.replace(/[^\dA-Za-z]/g,"_"),y=`${p}_${u}`;if(!document.getElementById(y)){let k=document.getElementById(p);if(k){let _=k.cloneNode(!0);_.id=y,_.querySelectorAll("path, circle, line").forEach(H=>{H.setAttribute("stroke",i),c.fill&&H.setAttribute("fill",i)}),k.parentNode?.appendChild(_)}}r.attr(`marker-${t}`,`url(${e}#${y})`)}else r.attr(`marker-${t}`,`url(${e}#${p})`)},"addEdgeMarker"),Zr=l(r=>typeof r=="string"?r:A()?.flowchart?.curve,"resolveEdgeCurveType"),nt=new Map,L=new Map,Da=l(()=>{nt.clear(),L.clear()},"clear"),qa=l(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),V=l(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Ia=l(async(r,t)=>{let a=A(),e=ct(a),{labelStyles:s}=gt(t);t.labelStyle=s;let n=r.insert("g").attr("class","edgeLabel"),o=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",h=await Ut(r,t.label,{style:V(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);o.node().appendChild(h),w.info("abc82",t,t.labelType);let f,m;if(e){let p=h.children[0],u=T(h);f=await pt.measure(()=>p.getBoundingClientRect()),m=f,u.attr("width",f.width),u.attr("height",f.height)}else{let p=T(h).select("text").node();await pt.measure(()=>{f=h.getBBox(),p&&typeof p.getBBox=="function"?m=p.getBBox():m=f})}o.attr("transform",j(m,e)),nt.set(t.id,n),t.width=f.width,t.height=f.height;let d;if(t.startLabelLeft){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.startLabelLeft,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startLeft=p,tt(d,t.startLabelLeft,k),K(t,"startLeft",k)}if(t.startLabelRight){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.startLabelRight,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startRight=p,tt(d,t.startLabelRight,k),K(t,"startRight",k)}if(t.endLabelLeft){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.endLabelLeft,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endLeft=p,tt(d,t.endLabelLeft,k),K(t,"endLeft",k)}if(t.endLabelRight){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.endLabelRight,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endRight=p,tt(d,t.endLabelRight,k),K(t,"endRight",k)}return h},"insertEdgeLabel");function K(r,t,a){r.terminalLabelSizes??={},r.terminalLabelSizes[t]={width:a.width,height:a.height}}l(K,"recordTerminalLabelSize");function tt(r,t,a){ct(A())&&r&&(r.style.width=Math.max(t.length*9,a.width)+"px",r.style.height=a.height+"px")}l(tt,"setTerminalWidth");var jr=l((r,t)=>{let a=r.x,e=r.y;if(t?.updatedPath){let s=U.calcLabelPosition(t.updatedPath);if(t.originalPath){let n=U.calcLabelPosition(t.originalPath);a=r.x+(s.x-n.x),e=r.y+(s.y-n.y)}else a=s.x,e=s.y}return{x:a,y:e}},"resolveEdgeLabelPosition"),Fa=l((r,t)=>{w.debug("Moving label abc88 ",r.id,r.label,nt.get(r.id),t);let a=A(),{subGraphTitleTotalMargin:e}=Wt(a);if(r.label){let n=nt.get(r.id),{x:o,y:i}=jr(r,t);w.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",o,",",i,") abc88"),n.attr("transform",`translate(${o}, ${i+e/2})`)}let s=t.updatedPath?t.updatedPath:t.originalPath;if(r.startLabelLeft){let n=L.get(r.id).startLeft,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.startLabelRight){let n=L.get(r.id).startRight,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.endLabelLeft){let n=L.get(r.id).endLeft,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.endLabelRight){let n=L.get(r.id).endRight,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}},"positionEdgeLabel"),q=.5,$=l((r,t)=>Math.abs(r.x-t.x)<q,"sharesColumn"),W=l((r,t)=>Math.abs(r.y-t.y)<q,"sharesRow"),Vt=l((r,t)=>$(r,t)&&W(r,t),"coincides");function Jt(r,t,a){return $(r,t)&&!W(r,t)?$(a,t):W(r,t)&&!$(r,t)?W(a,t):$(a,t)||W(a,t)}l(Jt,"keepsArrivalAxis");function Kt(r,t,a){return Vt(r,t)?{heading:t,from:a}:{heading:r,from:t}}l(Kt,"arrivalSegment");function tr({heading:r,from:t},a,e){return(r.x-t.x)*(e.x-a.x)+(r.y-t.y)*(e.y-a.y)<0}l(tr,"runsAgainstHeading");function rr({heading:r,from:t},a,e){return W(r,t)&&!$(r,t)?{x:e.x,y:a.y}:$(r,t)&&!W(r,t)?{x:a.x,y:e.y}:e}l(rr,"snapToArrivalAxis");function ar(r,t,a,e){if(($(r,t)||W(r,t))&&!Jt(r,t,e))return r;let n=Kt(r,t,a);return tr(n,t,e)?t:rr(n,t,e)}l(ar,"dockFinalPoint");function er(r){let t=Object.hasOwn(v,r)?v[r]:0;return Number.isFinite(t)?t:0}l(er,"markerPullBack");function nr({originalLast:r,lastInner:t,newLast:a,minLength:e}){let s=!Vt(r,t),n=Math.hypot(a.x-t.x,a.y-t.y);return n>=Math.max(q,e)?a:s&&n>=q?r:void 0}l(nr,"finalDockPoint");var Vr=l((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,s=Math.abs(e.x-a.x),n=Math.abs(e.y-a.y);return s<.001||n<.001?t:n>=s?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),Jr=l((r,t)=>{let a=r.x,e=r.y,s=Math.abs(t.x-a),n=Math.abs(t.y-e),o=r.width/2,i=r.height/2;return s>=o||n>=i},"outsideNode"),Kr=l((r,t,a)=>{w.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(a)}
4
+ node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,s=r.y,n=Math.abs(e-a.x),o=r.width/2,i=a.x<t.x?o-n:o+n,c=r.height/2,h=Math.abs(t.y-a.y),f=Math.abs(t.x-a.x);if(Math.abs(s-t.y)*o>Math.abs(e-t.x)*c){let m=a.y<t.y?t.y-c-s:s-c-t.y;i=f*m/h;let d={x:a.x<t.x?a.x+i:a.x-f+i,y:a.y<t.y?a.y+h-m:a.y-h+m};return i===0&&(d.x=t.x,d.y=t.y),f===0&&(d.x=t.x),h===0&&(d.y=t.y),w.debug(`abc89 top/bottom calc, Q ${h}, q ${m}, R ${f}, r ${i}`,d),d}else{a.x<t.x?i=t.x-o-e:i=e-o-t.x;let m=h*i/f,d=a.x<t.x?a.x+f-i:a.x-f+i,p=a.y<t.y?a.y+m:a.y-m;return w.debug(`sides calc abc89, Q ${h}, q ${m}, R ${f}, r ${i}`,{_x:d,_y:p}),i===0&&(d=t.x,p=t.y),f===0&&(d=t.x),h===0&&(p=t.y),{x:d,y:p}}},"intersection"),It=l((r,t)=>{w.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],s=!1;return r.forEach(n=>{if(w.info("abc88 checking point",n,t),!Jr(t,n)&&!s){let o=Kr(t,e,n);w.debug("abc88 inside",n,e,o),w.debug("abc88 intersection",o,t);let i=!1;a.forEach(c=>{i=i||c.x===o.x&&c.y===o.y}),a.some(c=>c.x===o.x&&c.y===o.y)?w.warn("abc88 no intersect",o,a):a.push(o),s=!0}else w.warn("abc88 outside",n,e),e=n,s||a.push(n)}),w.debug("returning points",a),a},"cutPathAtIntersect");function sr(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let s=r[e-1],n=r[e],o=r[e+1];(s.x===n.x&&n.y===o.y&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-s.y)>5||s.y===n.y&&n.x===o.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-o.y)>5)&&(t.push(n),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}l(sr,"extractCornerPoints");var Ft=l(function(r,t,a){let e=t.x-r.x,s=t.y-r.y,n=Math.sqrt(e*e+s*s),o=a/n;return{x:t.x-o*e,y:t.y-o*s}},"findAdjacentPoint"),ta=l(function(r){let{cornerPointPositions:t}=sr(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let s=r[e-1],n=r[e+1],o=r[e],i=Ft(s,o,5),c=Ft(n,o,5),h=c.x-i.x,f=c.y-i.y;a.push(i);let m=Math.sqrt(2)*2,d={x:o.x,y:o.y};if(Math.abs(n.x-s.x)>10&&Math.abs(n.y-s.y)>=10){w.debug("Corner point fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));let p=5;o.x===i.x?d={x:h<0?i.x-p+m:i.x+p-m,y:f<0?i.y-m:i.y+m}:d={x:h<0?i.x-m:i.x+m,y:f<0?i.y-p+m:i.y+p-m}}else w.debug("Corner point skipping fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));a.push(d,c)}else a.push(r[e]);return a},"fixCorners"),ra=l((r,t,a)=>{let e=r-t-a,s=2,n=2,o=s+n,i=Math.floor(e/o),c=Number.isFinite(i)?Math.max(0,i):0,h=Array(c).fill(`${s} ${n}`).join(" ");return`0 ${t} ${h} ${a}`},"generateDashArray"),Qa=l(function(r,t,a,e,s,n,o,i=!1,c=void 0){if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:h,layout:f}=A(),m=c??f,d=t.points,p=!1,u=s;var y=n;let k=[];for(let g in t.cssCompiledStyles)yt(g)||k.push(t.cssCompiledStyles[g]);if(m==="swimlane"){if(!i&&y.intersect&&u.intersect&&Array.isArray(d)&&d.length>=2)if(d.length===2){let[g,E]=d;d=$(g,E)||W(g,E)?[u.intersect(g),y.intersect(E)]:[u.intersect(E),y.intersect(g)]}else{let g=d.slice(1,-1),E=g[0],Y=g[g.length-1],X=u.intersect(E),N=d[d.length-1],Q=y.intersect(Y),G=g.at(-2)??d[0],D=ar(N,Y,G,Q),P=nr({originalLast:N,lastInner:Y,newLast:D,minLength:er(t.arrowTypeEnd)}),pr=Math.abs(X.x-E.x)<q&&Math.abs(X.y-E.y)<q?[]:[X],hr=P?[P]:[];d=[...pr,...g,...hr]}d=Vr(t,d)}else y.intersect&&u.intersect&&!i&&(d=d.slice(1,t.points.length-1),d.unshift(u.intersect(d[0])),d.push(y.intersect(d[d.length-1])));let _=btoa(JSON.stringify(d));t.toCluster&&(w.info("to cluster abc88",a.get(t.toCluster)),d=It(t.points,a.get(t.toCluster).node),p=!0),t.fromCluster&&(w.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(d,null,2)),d=It(d.reverse(),a.get(t.fromCluster).node).reverse(),p=!0);let b=d.filter(g=>!Number.isNaN(g.y)),H=Zr(t.curve);H!=="rounded"&&(b=ta(b));let S=at;switch(H){case"linear":S=at;break;case"basis":S=dt;break;case"cardinal":S=Mt;break;case"bumpX":S=bt;break;case"bumpY":S=wt;break;case"catmullRom":S=vt;break;case"monotoneX":S=St;break;case"monotoneY":S=Lt;break;case"natural":S=_t;break;case"step":S=Et;break;case"stepAfter":S=Tt;break;case"stepBefore":S=Ot;break;case"rounded":S=at;break;default:S=dt}let{x:I,y:R}=fr(t),st=xt().x(I).y(R).curve(S),O;switch(t.thickness){case"normal":O="edge-thickness-normal";break;case"thick":O="edge-thickness-thick";break;case"invisible":O="edge-thickness-invisible";break;default:O="edge-thickness-normal"}switch(t.pattern){case"solid":O+=" edge-pattern-solid";break;case"dotted":O+=" edge-pattern-dotted";break;case"dashed":O+=" edge-pattern-dashed";break;default:O+=" edge-pattern-solid"}let M,F=H==="rounded"?or(ir(b,t),5):st(b),C=Array.isArray(t.style)?t.style:[t.style],ot=C.find(g=>g?.startsWith("stroke:")),z="";t.animate&&(z="edge-animation-fast"),t.animation&&(z="edge-animation-"+t.animation);let it=!1;if(t.look==="handDrawn"){let g=$t.svg(r);Object.assign([],b);let E=g.path(F,{roughness:.3,seed:h});O+=" transition",M=T(E).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",C?C.reduce((X,N)=>X+";"+N,""):"");let Y=M.attr("d");M.attr("d",Y),r.node().appendChild(M.node())}else{let g=k.join(";"),E=C?C.reduce((D,P)=>D+P+";",""):"",Y=(g?g+";"+E+";":E)+";"+(C?C.reduce((D,P)=>D+";"+P,""):"");M=r.append("path").attr("d",F).attr("id",`${o}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",Y),ot=Y.match(/stroke:([^;]+)/)?.[1],it=t.animate===!0||!!t.animation||g.includes("animation");let X=M.node(),N=typeof X.getTotalLength=="function"?X.getTotalLength():0,Q=Ht[t.arrowTypeStart]||0,G=Ht[t.arrowTypeEnd]||0;if(t.look==="neo"&&!it){let P=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?ra(N,Q,G):`0 ${Q} ${N-Q-G} ${G}`}; stroke-dashoffset: 0;`;M.attr("style",P+M.attr("style"))}}if(M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",_),M.attr("data-look",At(t.look)),t.step!==void 0){let{themeVariables:g}=A(),E=ot??g?.lineColor;Ir(r,t,F,o,{points:b,pathNode:M.node(),color:E,textColors:[g?.background,g?.primaryTextColor]})}t.showPoints&&b.forEach(g=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",g.x).attr("cy",g.y)});let rt="";(A().flowchart.arrowMarkerAbsolute||A().state.arrowMarkerAbsolute)&&(rt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,rt=rt.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),w.info("arrowTypeStart",t.arrowTypeStart),w.info("arrowTypeEnd",t.arrowTypeEnd);let lr=!it&&t?.look==="neo";Fr(M,t,rt,o,e,lr,ot);let cr=Math.floor(d.length/2),dr=d[cr];U.isLabelCoordinateInPath(dr,M.attr("d"))||(p=!0);let lt={};return p&&(lt.updatedPath=d),lt.originalPath=t.points,lt},"insertEdge");function or(r,t){if(r.length<2)return"";let a="",e=r.length,s=1e-5;for(let n=0;n<e;n++){let o=r[n],i=r[n-1],c=r[n+1];if(n===0)a+=`M${o.x},${o.y}`;else if(n===e-1)a+=`L${o.x},${o.y}`;else{let h=o.x-i.x,f=o.y-i.y,m=c.x-o.x,d=c.y-o.y,p=Math.hypot(h,f),u=Math.hypot(m,d);if(p<s||u<s){a+=`L${o.x},${o.y}`;continue}let y=h/p,k=f/p,_=m/u,b=d/u,H=y*_+k*b,S=Math.max(-1,Math.min(1,H)),I=Math.acos(S);if(I<s||Math.abs(Math.PI-I)<s){a+=`L${o.x},${o.y}`;continue}let R=Math.min(t/Math.sin(I/2),p/2,u/2),st=o.x-y*R,O=o.y-k*R,M=o.x+_*R,F=o.y+b*R;a+=`L${st},${O}`,a+=`Q${o.x},${o.y} ${M},${F}`}}return a}l(or,"generateRoundedPath");function ft(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}l(ft,"calculateDeltaAndAngle");function ir(r,t){let a=r.map(s=>({...s}));if(r.length>=2&&v[t.arrowTypeStart]){let s=v[t.arrowTypeStart],n=r[0],o=r[1],{angle:i}=ft(n,o),c=s*Math.cos(i),h=s*Math.sin(i);a[0].x=n.x+c,a[0].y=n.y+h}let e=r.length;if(e>=2&&v[t.arrowTypeEnd]){let s=v[t.arrowTypeEnd],n=r[e-1],o=r[e-2],{angle:i}=ft(o,n),c=s*Math.cos(i),h=s*Math.sin(i);a[e-1].x=n.x-c,a[e-1].y=n.y-h}return a}l(ir,"applyMarkerOffsetsToPoints");var aa=l((r,t,a,e)=>{t.forEach(s=>{Oa[s](r,a,e)})},"insertMarkers"),ea=l((r,t,a)=>{w.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),na=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),sa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),oa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),ia=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),la=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),ca=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),da=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),pa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),ha=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{transitionColor:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),fa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),ma=l((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),ka=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ua=l((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),ya=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),ga=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n,mainBkg:o}=s,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let c=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");c.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),c.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),xa=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),ba=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n,mainBkg:o}=s,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let c=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");c.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),c.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),wa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},"requirement_arrow"),Ma=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),va=l((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Sa=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s,o=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),La=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),_a=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),Ea=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),Oa={extension:ea,composition:na,aggregation:sa,dependency:oa,lollipop:ia,point:la,circle:ca,cross:da,barb:pa,barbNeo:ha,hierarchy:La,only_one:fa,zero_or_one:ma,one_or_more:ka,zero_or_more:ua,only_one_neo:ya,zero_or_one_neo:ga,one_or_more_neo:xa,zero_or_more_neo:ba,requirement_arrow:wa,requirement_contains:va,requirement_arrow_neo:Ma,requirement_contains_neo:Sa,openArrow:_a,hollowCircle:Ea},Ga=aa;export{v as a,Ht as b,mr as c,mt as d,Na as e,nt as f,L as g,Da as h,qa as i,Ia as j,jr as k,Fa as l,Qa as m,Ga as n};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as d,c,d as i,e as l,g as u,q as f,w as E,y as m}from"./chunk-Z4ZDIMO2.js";var b=class extends m{static{o(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},v=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
2
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),h=class extends E{static{o(this,"RailroadEbnfValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return v(n)}return t}runCustomConverter(a,e,r){if(a.name==="EBNF_STRING")return v(e);if(a.name==="EBNF_SPECIAL_SEQUENCE")return e.slice(1,-1).trim()}},C={parser:{TokenBuilder:o(()=>new b,"TokenBuilder"),ValueConverter:o(()=>new h,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),f,C);return e.ServiceRegistry.register(r),{shared:e,RailroadEbnf:r}}o(R,"createRailroadEbnfServices");export{C as a,R as b};
@@ -0,0 +1 @@
1
+ function Un(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function xr(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Bn(n){let t,e,r;n.length!==2?(t=Un,e=(a,c)=>Un(n(a),c),r=(a,c)=>n(a)-c):(t=n===Un||n===xr?n:wr,e=n,r=n);function i(a,c,f=0,l=a.length){if(f<l){if(t(c,c)!==0)return l;do{let h=f+l>>>1;e(a[h],c)<0?f=h+1:l=h}while(f<l)}return f}function o(a,c,f=0,l=a.length){if(f<l){if(t(c,c)!==0)return l;do{let h=f+l>>>1;e(a[h],c)<=0?f=h+1:l=h}while(f<l)}return f}function u(a,c,f=0,l=a.length){let h=i(a,c,f,l-1);return h>f&&r(a[h-1],c)>-r(a[h],c)?h-1:h}return{left:i,center:u,right:o}}function wr(){return 0}function br(n){return n===null?NaN:+n}var jt=Bn(Un),zt=jt.right,zo=jt.left,_o=Bn(br).center;var Xo=_t(Xt),Zo=_t(vr);function _t(n){return function(t,e,r=e){if(!((e=+e)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:u}=t;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((u=Math.floor(u!==void 0?u:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!u||!e&&!r)return t;let a=e&&n(e),c=r&&n(r),f=i.slice();return a&&c?(Mn(a,f,i,o,u),Mn(a,i,f,o,u),Mn(a,f,i,o,u),xn(c,i,f,o,u),xn(c,f,i,o,u),xn(c,i,f,o,u)):a?(Mn(a,i,f,o,u),Mn(a,f,i,o,u),Mn(a,i,f,o,u)):c&&(xn(c,i,f,o,u),xn(c,f,i,o,u),xn(c,i,f,o,u)),t}}function Mn(n,t,e,r,i){for(let o=0,u=r*i;o<u;)n(t,e,o,o+=r,1)}function xn(n,t,e,r,i){for(let o=0,u=r*i;o<r;++o)n(t,e,o,o+u,r)}function vr(n){let t=Xt(n);return(e,r,i,o,u)=>{i<<=2,o<<=2,u<<=2,t(e,r,i+0,o+0,u),t(e,r,i+1,o+1,u),t(e,r,i+2,o+2,u),t(e,r,i+3,o+3,u)}}function Xt(n){let t=Math.floor(n);if(t===n)return Tr(n);let e=n-t,r=2*n+1;return(i,o,u,a,c)=>{if(!((a-=c)>=u))return;let f=t*o[u],l=c*t,h=l+c;for(let s=u,p=u+l;s<p;s+=c)f+=o[Math.min(a,s)];for(let s=u,p=a;s<=p;s+=c)f+=o[Math.min(a,s+l)],i[s]=(f+e*(o[Math.max(u,s-h)]+o[Math.min(a,s+h)]))/r,f-=o[Math.max(u,s-l)]}}function Tr(n){let t=2*n+1;return(e,r,i,o,u)=>{if(!((o-=u)>=i))return;let a=n*r[i],c=u*n;for(let f=i,l=i+c;f<l;f+=u)a+=r[Math.min(o,f)];for(let f=i,l=o;f<=l;f+=u)a+=r[Math.min(o,f+c)],e[f]=a/t,a-=r[Math.max(i,f-c)]}}var An=class extends Map{constructor(t,e=Sr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),t!=null)for(let[r,i]of t)this.set(r,i)}get(t){return super.get(Pt(this,t))}has(t){return super.has(Pt(this,t))}set(t,e){return super.set(Nr(this,t),e)}delete(t){return super.delete(kr(this,t))}};function Pt({_intern:n,_key:t},e){let r=t(e);return n.has(r)?n.get(r):e}function Nr({_intern:n,_key:t},e){let r=t(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function kr({_intern:n,_key:t},e){let r=t(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}function Sr(n){return n!==null&&typeof n=="object"?n.valueOf():n}var Cr=Array.prototype,Bo=Cr.slice;var Dr=Math.sqrt(50),Ur=Math.sqrt(10),Ar=Math.sqrt(2);function Xn(n,t,e){let r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),u=o>=Dr?10:o>=Ur?5:o>=Ar?2:1,a,c,f;return i<0?(f=Math.pow(10,-i)/u,a=Math.round(n*f),c=Math.round(t*f),a/f<n&&++a,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*u,a=Math.round(n/f),c=Math.round(t/f),a*f<n&&++a,c*f>t&&--c),c<a&&.5<=e&&e<2?Xn(n,t,e*2):[a,c,f]}function Zt(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];let r=t<n,[i,o,u]=r?Xn(t,n,e):Xn(n,t,e);if(!(o>=i))return[];let a=o-i+1,c=new Array(a);if(r)if(u<0)for(let f=0;f<a;++f)c[f]=(o-f)/-u;else for(let f=0;f<a;++f)c[f]=(o-f)*u;else if(u<0)for(let f=0;f<a;++f)c[f]=(i+f)/-u;else for(let f=0;f<a;++f)c[f]=(i+f)*u;return c}function Zn(n,t,e){return t=+t,n=+n,e=+e,Xn(n,t,e)[2]}function Fn(n,t,e){t=+t,n=+n,e=+e;let r=t<n,i=r?Zn(t,n,e):Zn(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function Vo(n,t){let e;if(t===void 0)for(let r of n)r!=null&&(e<r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of n)(i=t(i,++r,n))!=null&&(e<i||e===void 0&&i>=i)&&(e=i)}return e}function Qo(n,t){let e;if(t===void 0)for(let r of n)r!=null&&(e>r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of n)(i=t(i,++r,n))!=null&&(e>i||e===void 0&&i>=i)&&(e=i)}return e}function Bt(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=Math.max(0,Math.ceil((t-n)/e))|0,o=new Array(i);++r<i;)o[r]=n+r*e;return o}var Go=Fr(Math.random);function Fr(n){return function(e,r=0,i=e.length){let o=i-(r=+r);for(;o;){let u=n()*o--|0,a=e[o+r];e[o+r]=e[u+r],e[u+r]=a}return e}}function Tn(n,t,e){n.prototype=t.prototype=e,e.constructor=n}function $n(n,t){var e=Object.create(n.prototype);for(var r in t)e[r]=t[r];return e}function nn(){}var fn=.7,vn=1/fn,wn="\\s*([+-]?\\d+)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yr=/^#([0-9a-f]{3,8})$/,qr=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),$r=new RegExp(`^rgb\\(${z},${z},${z}\\)$`),Hr=new RegExp(`^rgba\\(${wn},${wn},${wn},${Yn}\\)$`),Ir=new RegExp(`^rgba\\(${z},${z},${z},${Yn}\\)$`),Lr=new RegExp(`^hsl\\(${Yn},${z},${z}\\)$`),Rr=new RegExp(`^hsla\\(${Yn},${z},${z},${Yn}\\)$`),Vt={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};Tn(nn,Nn,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Qt,formatHex:Qt,formatHex8:Wr,formatHsl:Or,formatRgb:Gt,toString:Gt});function Qt(){return this.rgb().formatHex()}function Wr(){return this.rgb().formatHex8()}function Or(){return ue(this).formatHsl()}function Gt(){return this.rgb().formatRgb()}function Nn(n){var t,e;return n=(n+"").trim().toLowerCase(),(t=Yr.exec(n))?(e=t[1].length,t=parseInt(t[1],16),e===6?Jt(t):e===3?new D(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):e===8?Vn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):e===4?Vn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=qr.exec(n))?new D(t[1],t[2],t[3],1):(t=$r.exec(n))?new D(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Hr.exec(n))?Vn(t[1],t[2],t[3],t[4]):(t=Ir.exec(n))?Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lr.exec(n))?te(t[1],t[2]/100,t[3]/100,1):(t=Rr.exec(n))?te(t[1],t[2]/100,t[3]/100,t[4]):Vt.hasOwnProperty(n)?Jt(Vt[n]):n==="transparent"?new D(NaN,NaN,NaN,0):null}function Jt(n){return new D(n>>16&255,n>>8&255,n&255,1)}function Vn(n,t,e,r){return r<=0&&(n=t=e=NaN),new D(n,t,e,r)}function xt(n){return n instanceof nn||(n=Nn(n)),n?(n=n.rgb(),new D(n.r,n.g,n.b,n.opacity)):new D}function Hn(n,t,e,r){return arguments.length===1?xt(n):new D(n,t,e,r??1)}function D(n,t,e,r){this.r=+n,this.g=+t,this.b=+e,this.opacity=+r}Tn(D,Hn,$n(nn,{brighter(n){return n=n==null?vn:Math.pow(vn,n),new D(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?fn:Math.pow(fn,n),new D(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new D(un(this.r),un(this.g),un(this.b),Gn(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:Kt,formatHex:Kt,formatHex8:Er,formatRgb:ne,toString:ne}));function Kt(){return`#${on(this.r)}${on(this.g)}${on(this.b)}`}function Er(){return`#${on(this.r)}${on(this.g)}${on(this.b)}${on((isNaN(this.opacity)?1:this.opacity)*255)}`}function ne(){let n=Gn(this.opacity);return`${n===1?"rgb(":"rgba("}${un(this.r)}, ${un(this.g)}, ${un(this.b)}${n===1?")":`, ${n})`}`}function Gn(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function un(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function on(n){return n=un(n),(n<16?"0":"")+n.toString(16)}function te(n,t,e,r){return r<=0?n=t=e=NaN:e<=0||e>=1?n=t=NaN:t<=0&&(n=NaN),new E(n,t,e,r)}function ue(n){if(n instanceof E)return new E(n.h,n.s,n.l,n.opacity);if(n instanceof nn||(n=Nn(n)),!n)return new E;if(n instanceof E)return n;n=n.rgb();var t=n.r/255,e=n.g/255,r=n.b/255,i=Math.min(t,e,r),o=Math.max(t,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(t===o?u=(e-r)/a+(e<r)*6:e===o?u=(r-t)/a+2:u=(t-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new E(u,a,c,n.opacity)}function Kn(n,t,e,r){return arguments.length===1?ue(n):new E(n,t,e,r??1)}function E(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}Tn(E,Kn,$n(nn,{brighter(n){return n=n==null?vn:Math.pow(vn,n),new E(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?fn:Math.pow(fn,n),new E(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,t=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*t,i=2*e-r;return new D(mt(n>=240?n-240:n+120,i,r),mt(n,i,r),mt(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new E(ee(this.h),Qn(this.s),Qn(this.l),Gn(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 n=Gn(this.opacity);return`${n===1?"hsl(":"hsla("}${ee(this.h)}, ${Qn(this.s)*100}%, ${Qn(this.l)*100}%${n===1?")":`, ${n})`}`}}));function ee(n){return n=(n||0)%360,n<0?n+360:n}function Qn(n){return Math.max(0,Math.min(1,n||0))}function mt(n,t,e){return(n<60?t+(e-t)*n/60:n<180?e:n<240?t+(e-t)*(240-n)/60:t)*255}var ae=Math.PI/180,fe=180/Math.PI,Jn=18,ce=.96422,le=1,se=.82521,he=4/29,bn=6/29,ge=3*bn*bn,Pr=bn*bn*bn;function me(n){if(n instanceof _)return new _(n.l,n.a,n.b,n.opacity);if(n instanceof V)return pe(n);n instanceof D||(n=xt(n));var t=Mt(n.r),e=Mt(n.g),r=Mt(n.b),i=dt((.2225045*t+.7168786*e+.0606169*r)/le),o,u;return t===e&&e===r?o=u=i:(o=dt((.4360747*t+.3850649*e+.1430804*r)/ce),u=dt((.0139322*t+.0971045*e+.7141733*r)/se)),new _(116*i-16,500*(o-i),200*(i-u),n.opacity)}function de(n,t,e,r){return arguments.length===1?me(n):new _(n,t,e,r??1)}function _(n,t,e,r){this.l=+n,this.a=+t,this.b=+e,this.opacity=+r}Tn(_,de,$n(nn,{brighter(n){return new _(this.l+Jn*(n??1),this.a,this.b,this.opacity)},darker(n){return new _(this.l-Jn*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,e=isNaN(this.b)?n:n-this.b/200;return t=ce*pt(t),n=le*pt(n),e=se*pt(e),new D(yt(3.1338561*t-1.6168667*n-.4906146*e),yt(-.9787684*t+1.9161415*n+.033454*e),yt(.0719453*t-.2289914*n+1.4052427*e),this.opacity)}}));function dt(n){return n>Pr?Math.pow(n,1/3):n/ge+he}function pt(n){return n>bn?n*n*n:ge*(n-he)}function yt(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Mt(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function jr(n){if(n instanceof V)return new V(n.h,n.c,n.l,n.opacity);if(n instanceof _||(n=me(n)),n.a===0&&n.b===0)return new V(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*fe;return new V(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function nt(n,t,e,r){return arguments.length===1?jr(n):new V(n,t,e,r??1)}function V(n,t,e,r){this.h=+n,this.c=+t,this.l=+e,this.opacity=+r}function pe(n){if(isNaN(n.h))return new _(n.l,0,0,n.opacity);var t=n.h*ae;return new _(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}Tn(V,nt,$n(nn,{brighter(n){return new V(this.h,this.c,this.l+Jn*(n??1),this.opacity)},darker(n){return new V(this.h,this.c,this.l-Jn*(n??1),this.opacity)},rgb(){return pe(this).rgb()}}));var ye=-.14861,wt=1.78277,bt=-.29227,tt=-.90649,qn=1.97294,re=qn*tt,ie=qn*wt,oe=wt*bt-tt*ye;function zr(n){if(n instanceof an)return new an(n.h,n.s,n.l,n.opacity);n instanceof D||(n=xt(n));var t=n.r/255,e=n.g/255,r=n.b/255,i=(oe*r+re*t-ie*e)/(oe+re-ie),o=r-i,u=(qn*(e-i)-bt*o)/tt,a=Math.sqrt(u*u+o*o)/(qn*i*(1-i)),c=a?Math.atan2(u,o)*fe-120:NaN;return new an(c<0?c+360:c,a,i,n.opacity)}function et(n,t,e,r){return arguments.length===1?zr(n):new an(n,t,e,r??1)}function an(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}Tn(an,et,$n(nn,{brighter(n){return n=n==null?vn:Math.pow(vn,n),new an(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?fn:Math.pow(fn,n),new an(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=isNaN(this.h)?0:(this.h+120)*ae,t=+this.l,e=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(n),i=Math.sin(n);return new D(255*(t+e*(ye*r+wt*i)),255*(t+e*(bt*r+tt*i)),255*(t+e*(qn*r)),this.opacity)}}));function be(n,t,e,r,i){var o=n*n,u=o*n;return((1-3*n+3*o-u)*t+(4-6*o+3*u)*e+(1+3*n+3*o-3*u)*r+u*i)/6}function _r(n){var t=n.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,t-1):Math.floor(e*t),i=n[r],o=n[r+1],u=r>0?n[r-1]:2*i-o,a=r<t-1?n[r+2]:2*o-i;return be((e-r/t)*t,u,i,o,a)}}function Xr(n){var t=n.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*t),i=n[(r+t-1)%t],o=n[r%t],u=n[(r+1)%t],a=n[(r+2)%t];return be((e-r/t)*t,i,o,u,a)}}var it=n=>()=>n;function ve(n,t){return function(e){return n+e*t}}function Zr(n,t,e){return n=Math.pow(n,e),t=Math.pow(t,e)-n,e=1/e,function(r){return Math.pow(n+r*t,e)}}function kt(n,t){var e=t-n;return e?ve(n,e>180||e<-180?e-360*Math.round(e/360):e):it(isNaN(n)?t:n)}function Br(n){return(n=+n)==1?$:function(t,e){return e-t?Zr(t,e,n):it(isNaN(t)?e:t)}}function $(n,t){var e=t-n;return e?ve(n,e):it(isNaN(n)?t:n)}var Me=(function n(t){var e=Br(t);function r(i,o){var u=e((i=Hn(i)).r,(o=Hn(o)).r),a=e(i.g,o.g),c=e(i.b,o.b),f=$(i.opacity,o.opacity);return function(l){return i.r=u(l),i.g=a(l),i.b=c(l),i.opacity=f(l),i+""}}return r.gamma=n,r})(1);function Te(n){return function(t){var e=t.length,r=new Array(e),i=new Array(e),o=new Array(e),u,a;for(u=0;u<e;++u)a=Hn(t[u]),r[u]=a.r||0,i[u]=a.g||0,o[u]=a.b||0;return r=n(r),i=n(i),o=n(o),a.opacity=1,function(c){return a.r=r(c),a.g=i(c),a.b=o(c),a+""}}}var tu=Te(_r),eu=Te(Xr);function Vr(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(o){for(i=0;i<e;++i)r[i]=n[i]*(1-o)+t[i]*o;return r}}function Qr(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Gr(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),o=new Array(e),u;for(u=0;u<r;++u)i[u]=ot(n[u],t[u]);for(;u<e;++u)o[u]=t[u];return function(a){for(u=0;u<r;++u)o[u]=i[u](a);return o}}function Jr(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function P(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function Kr(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=ot(n[i],t[i]):r[i]=t[i];return function(o){for(i in e)r[i]=e[i](o);return r}}var Tt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vt=new RegExp(Tt.source,"g");function ni(n){return function(){return n}}function ti(n){return function(t){return n(t)+""}}function ei(n,t){var e=Tt.lastIndex=vt.lastIndex=0,r,i,o,u=-1,a=[],c=[];for(n=n+"",t=t+"";(r=Tt.exec(n))&&(i=vt.exec(t));)(o=i.index)>e&&(o=t.slice(e,o),a[u]?a[u]+=o:a[++u]=o),(r=r[0])===(i=i[0])?a[u]?a[u]+=i:a[++u]=i:(a[++u]=null,c.push({i:u,x:P(r,i)})),e=vt.lastIndex;return e<t.length&&(o=t.slice(e),a[u]?a[u]+=o:a[++u]=o),a.length<2?c[0]?ti(c[0].x):ni(t):(t=c.length,function(f){for(var l=0,h;l<t;++l)a[(h=c[l]).i]=h.x(f);return a.join("")})}function ot(n,t){var e=typeof t,r;return t==null||e==="boolean"?it(t):(e==="number"?P:e==="string"?(r=Nn(t))?(t=r,Me):ei:t instanceof Nn?Me:t instanceof Date?Jr:Qr(t)?Vr:Array.isArray(t)?Gr:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Kr:P)(n,t)}function Ne(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}var xe=180/Math.PI,Nt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ke(n,t,e,r,i,o){var u,a,c;return(u=Math.sqrt(n*n+t*t))&&(n/=u,t/=u),(c=n*e+t*r)&&(e-=n*c,r-=t*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),n*r<t*e&&(n=-n,t=-t,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(t,n)*xe,skewX:Math.atan(c)*xe,scaleX:u,scaleY:a}}var rt;function ri(n){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return t.isIdentity?Nt:ke(t.a,t.b,t.c,t.d,t.e,t.f)}function ii(n){return n==null||(rt||(rt=document.createElementNS("http://www.w3.org/2000/svg","g")),rt.setAttribute("transform",n),!(n=rt.transform.baseVal.consolidate()))?Nt:(n=n.matrix,ke(n.a,n.b,n.c,n.d,n.e,n.f))}function Se(n,t,e,r){function i(f){return f.length?f.pop()+" ":""}function o(f,l,h,s,p,x){if(f!==h||l!==s){var v=p.push("translate(",null,t,null,e);x.push({i:v-4,x:P(f,h)},{i:v-2,x:P(l,s)})}else(h||s)&&p.push("translate("+h+t+s+e)}function u(f,l,h,s){f!==l?(f-l>180?l+=360:l-f>180&&(f+=360),s.push({i:h.push(i(h)+"rotate(",null,r)-2,x:P(f,l)})):l&&h.push(i(h)+"rotate("+l+r)}function a(f,l,h,s){f!==l?s.push({i:h.push(i(h)+"skewX(",null,r)-2,x:P(f,l)}):l&&h.push(i(h)+"skewX("+l+r)}function c(f,l,h,s,p,x){if(f!==h||l!==s){var v=p.push(i(p)+"scale(",null,",",null,")");x.push({i:v-4,x:P(f,h)},{i:v-2,x:P(l,s)})}else(h!==1||s!==1)&&p.push(i(p)+"scale("+h+","+s+")")}return function(f,l){var h=[],s=[];return f=n(f),l=n(l),o(f.translateX,f.translateY,l.translateX,l.translateY,h,s),u(f.rotate,l.rotate,h,s),a(f.skewX,l.skewX,h,s),c(f.scaleX,f.scaleY,l.scaleX,l.scaleY,h,s),f=l=null,function(p){for(var x=-1,v=s.length,N;++x<v;)h[(N=s[x]).i]=N.x(p);return h.join("")}}}var ru=Se(ri,"px, ","px)","deg)"),iu=Se(ii,", ",")",")"),oi=1e-12;function we(n){return((n=Math.exp(n))+1/n)/2}function ui(n){return((n=Math.exp(n))-1/n)/2}function ai(n){return((n=Math.exp(2*n))-1)/(n+1)}var ou=(function n(t,e,r){function i(o,u){var a=o[0],c=o[1],f=o[2],l=u[0],h=u[1],s=u[2],p=l-a,x=h-c,v=p*p+x*x,N,F;if(v<oi)F=Math.log(s/f)/t,N=function(k){return[a+k*p,c+k*x,f*Math.exp(t*k*F)]};else{var W=Math.sqrt(v),A=(s*s-f*f+r*v)/(2*f*e*W),S=(s*s-f*f-r*v)/(2*s*e*W),L=Math.log(Math.sqrt(A*A+1)-A),d=Math.log(Math.sqrt(S*S+1)-S);F=(d-L)/t,N=function(k){var Z=k*F,en=we(L),mn=f/(e*W)*(en*ai(t*Z+L)-ui(L));return[a+mn*p,c+mn*x,f*en/we(t*Z+L)]}}return N.duration=Math.abs(F)*1e3*t/Math.SQRT2,N}return i.rho=function(o){var u=Math.max(.001,+o),a=u*u,c=a*a;return n(u,a,c)},i})(Math.SQRT2,2,4);function Ce(n){return function(t,e){var r=n((t=Kn(t)).h,(e=Kn(e)).h),i=$(t.s,e.s),o=$(t.l,e.l),u=$(t.opacity,e.opacity);return function(a){return t.h=r(a),t.s=i(a),t.l=o(a),t.opacity=u(a),t+""}}}var uu=Ce(kt),au=Ce($);function De(n){return function(t,e){var r=n((t=nt(t)).h,(e=nt(e)).h),i=$(t.c,e.c),o=$(t.l,e.l),u=$(t.opacity,e.opacity);return function(a){return t.h=r(a),t.c=i(a),t.l=o(a),t.opacity=u(a),t+""}}}var fu=De(kt),cu=De($);function Ue(n){return(function t(e){e=+e;function r(i,o){var u=n((i=et(i)).h,(o=et(o)).h),a=$(i.s,o.s),c=$(i.l,o.l),f=$(i.opacity,o.opacity);return function(l){return i.h=u(l),i.s=a(l),i.l=c(Math.pow(l,e)),i.opacity=f(l),i+""}}return r.gamma=t,r})(1)}var lu=Ue(kt),su=Ue($);function fi(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function at(n,t){if(!isFinite(n)||n===0)return null;var e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"),r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function kn(n){return n=at(Math.abs(n)),n?n[1]:NaN}function ci(n,t){return function(e,r){for(var i=e.length,o=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return o.reverse().join(t)}}function li(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var si=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function In(n){if(!(t=si.exec(n)))throw new Error("invalid format: "+n);var t;return new St({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}In.prototype=St.prototype;function St(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}St.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};function hi(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var ft;function gi(n,t){var e=at(n,t);if(!e)return ft=void 0,n.toPrecision(t);var r=e[0],i=e[1],o=i-(ft=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+at(n,Math.max(0,t+o-1))[0]}function Ae(n,t){var e=at(n,t);if(!e)return n+"";var r=e[0],i=e[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 Fe={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:fi,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Ae(n*100,t),r:Ae,s:gi,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Ye(n){return n}var qe=Array.prototype.map,$e=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function mi(n){var t=n.grouping===void 0||n.thousands===void 0?Ye:ci(qe.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",o=n.numerals===void 0?Ye:li(qe.call(n.numerals,String)),u=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"\u2212":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function f(h,s){h=In(h);var p=h.fill,x=h.align,v=h.sign,N=h.symbol,F=h.zero,W=h.width,A=h.comma,S=h.precision,L=h.trim,d=h.type;d==="n"?(A=!0,d="g"):Fe[d]||(S===void 0&&(S=12),L=!0,d="g"),(F||p==="0"&&x==="=")&&(F=!0,p="0",x="=");var k=(s&&s.prefix!==void 0?s.prefix:"")+(N==="$"?e:N==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():""),Z=(N==="$"?r:/[%p]/.test(d)?u:"")+(s&&s.suffix!==void 0?s.suffix:""),en=Fe[d],mn=/[defgprs%]/.test(d);S=S===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function zn(M){var B=k,Y=Z,K,_n,dn;if(d==="c")Y=en(M)+Y,M="";else{M=+M;var pn=M<0||1/M<0;if(M=isNaN(M)?c:en(Math.abs(M),S),L&&(M=hi(M)),pn&&+M==0&&v!=="+"&&(pn=!1),B=(pn?v==="("?v:a:v==="-"||v==="("?"":v)+B,Y=(d==="s"&&!isNaN(M)&&ft!==void 0?$e[8+ft/3]:"")+Y+(pn&&v==="("?")":""),mn){for(K=-1,_n=M.length;++K<_n;)if(dn=M.charCodeAt(K),48>dn||dn>57){Y=(dn===46?i+M.slice(K+1):M.slice(K))+Y,M=M.slice(0,K);break}}}A&&!F&&(M=t(M,1/0));var yn=B.length+M.length+Y.length,O=yn<W?new Array(W-yn+1).join(p):"";switch(A&&F&&(M=t(O+M,O.length?W-Y.length:1/0),O=""),x){case"<":M=B+M+Y+O;break;case"=":M=B+O+M+Y;break;case"^":M=O.slice(0,yn=O.length>>1)+B+M+Y+O.slice(yn);break;default:M=O+B+M+Y;break}return o(M)}return zn.toString=function(){return h+""},zn}function l(h,s){var p=Math.max(-8,Math.min(8,Math.floor(kn(s)/3)))*3,x=Math.pow(10,-p),v=f((h=In(h),h.type="f",h),{suffix:$e[8+p/3]});return function(N){return v(x*N)}}return{format:f,formatPrefix:l}}var ut,Ct,Dt;di({thousands:",",grouping:[3],currency:["$",""]});function di(n){return ut=mi(n),Ct=ut.format,Dt=ut.formatPrefix,ut}function He(n){return Math.max(0,-kn(Math.abs(n)))}function Ie(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(kn(t)/3)))*3-kn(Math.abs(n)))}function Le(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,kn(t)-kn(n))+1}var Ut=new Date,At=new Date;function C(n,t,e,r){function i(o){return n(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(n(o=new Date(+o)),o),i.ceil=o=>(n(o=new Date(o-1)),t(o,1),n(o),o),i.round=o=>{let u=i(o),a=i.ceil(o);return o-u<a-o?u:a},i.offset=(o,u)=>(t(o=new Date(+o),u==null?1:Math.floor(u)),o),i.range=(o,u,a)=>{let c=[];if(o=i.ceil(o),a=a==null?1:Math.floor(a),!(o<u)||!(a>0))return c;let f;do c.push(f=new Date(+o)),t(o,a),n(o);while(f<o&&o<u);return c},i.filter=o=>C(u=>{if(u>=u)for(;n(u),!o(u);)u.setTime(u-1)},(u,a)=>{if(u>=u)if(a<0)for(;++a<=0;)for(;t(u,-1),!o(u););else for(;--a>=0;)for(;t(u,1),!o(u););}),e&&(i.count=(o,u)=>(Ut.setTime(+o),At.setTime(+u),n(Ut),n(At),Math.floor(e(Ut,At))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?u=>r(u)%o===0:u=>i.count(0,u)%o===0):i)),i}var ct=C(()=>{},(n,t)=>{n.setTime(+n+t)},(n,t)=>t-n);ct.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?C(t=>{t.setTime(Math.floor(t/n)*n)},(t,e)=>{t.setTime(+t+e*n)},(t,e)=>(e-t)/n):ct);var du=ct.range,Q=1e3,R=Q*60,G=R*60,J=G*24,Yt=J*7,Re=J*30,Ft=J*365,tn=C(n=>{n.setTime(n-n.getMilliseconds())},(n,t)=>{n.setTime(+n+t*Q)},(n,t)=>(t-n)/Q,n=>n.getUTCSeconds()),pu=tn.range,lt=C(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Q)},(n,t)=>{n.setTime(+n+t*R)},(n,t)=>(t-n)/R,n=>n.getMinutes()),yu=lt.range,qt=C(n=>{n.setUTCSeconds(0,0)},(n,t)=>{n.setTime(+n+t*R)},(n,t)=>(t-n)/R,n=>n.getUTCMinutes()),Mu=qt.range,st=C(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Q-n.getMinutes()*R)},(n,t)=>{n.setTime(+n+t*G)},(n,t)=>(t-n)/G,n=>n.getHours()),xu=st.range,$t=C(n=>{n.setUTCMinutes(0,0,0)},(n,t)=>{n.setTime(+n+t*G)},(n,t)=>(t-n)/G,n=>n.getUTCHours()),wu=$t.range,cn=C(n=>n.setHours(0,0,0,0),(n,t)=>n.setDate(n.getDate()+t),(n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*R)/J,n=>n.getDate()-1),bu=cn.range,Ln=C(n=>{n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t)},(n,t)=>(t-n)/J,n=>n.getUTCDate()-1),vu=Ln.range,We=C(n=>{n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t)},(n,t)=>(t-n)/J,n=>Math.floor(n/J)),Tu=We.range;function ln(n){return C(t=>{t.setDate(t.getDate()-(t.getDay()+7-n)%7),t.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+e*7)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*R)/Yt)}var Sn=ln(0),Rn=ln(1),pi=ln(2),yi=ln(3),sn=ln(4),Mi=ln(5),xi=ln(6),Nu=Sn.range,ku=Rn.range,Su=pi.range,Cu=yi.range,Du=sn.range,Uu=Mi.range,Au=xi.range;function hn(n){return C(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e*7)},(t,e)=>(e-t)/Yt)}var Wn=hn(0),On=hn(1),wi=hn(2),bi=hn(3),gn=hn(4),vi=hn(5),Ti=hn(6),Fu=Wn.range,Yu=On.range,qu=wi.range,$u=bi.range,Hu=gn.range,Iu=vi.range,Lu=Ti.range,ht=C(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,t)=>{n.setMonth(n.getMonth()+t)},(n,t)=>t.getMonth()-n.getMonth()+(t.getFullYear()-n.getFullYear())*12,n=>n.getMonth()),Ru=ht.range,Ht=C(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCMonth(n.getUTCMonth()+t)},(n,t)=>t.getUTCMonth()-n.getUTCMonth()+(t.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth()),Wu=Ht.range,j=C(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,t)=>{n.setFullYear(n.getFullYear()+t)},(n,t)=>t.getFullYear()-n.getFullYear(),n=>n.getFullYear());j.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:C(t=>{t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e*n)});var Ou=j.range,X=C(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCFullYear(n.getUTCFullYear()+t)},(n,t)=>t.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());X.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:C(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e*n)});var Eu=X.range;function Oe(n,t,e,r,i,o){let u=[[tn,1,Q],[tn,5,5*Q],[tn,15,15*Q],[tn,30,30*Q],[o,1,R],[o,5,5*R],[o,15,15*R],[o,30,30*R],[i,1,G],[i,3,3*G],[i,6,6*G],[i,12,12*G],[r,1,J],[r,2,2*J],[e,1,Yt],[t,1,Re],[t,3,3*Re],[n,1,Ft]];function a(f,l,h){let s=l<f;s&&([f,l]=[l,f]);let p=h&&typeof h.range=="function"?h:c(f,l,h),x=p?p.range(f,+l+1):[];return s?x.reverse():x}function c(f,l,h){let s=Math.abs(l-f)/h,p=Bn(([,,N])=>N).right(u,s);if(p===u.length)return n.every(Fn(f/Ft,l/Ft,h));if(p===0)return ct.every(Math.max(Fn(f,l,h),1));let[x,v]=u[s/u[p-1][2]<u[p][2]/s?p-1:p];return x.every(v)}return[a,c]}var[Ni,ki]=Oe(X,Ht,Wn,We,$t,qt),[Ee,Pe]=Oe(j,ht,Sn,cn,st,lt);function It(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Lt(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function En(n,t,e){return{y:n,m:t,d:e,H:0,M:0,S:0,L:0}}function Si(n){var t=n.dateTime,e=n.date,r=n.time,i=n.periods,o=n.days,u=n.shortDays,a=n.months,c=n.shortMonths,f=Pn(i),l=jn(i),h=Pn(o),s=jn(o),p=Pn(u),x=jn(u),v=Pn(a),N=jn(a),F=Pn(c),W=jn(c),A={a:dn,A:pn,b:yn,B:O,c:null,d:Be,e:Be,f:Vi,g:oo,G:ao,H:Xi,I:Zi,j:Bi,L:Ke,m:Qi,M:Gi,p:sr,q:hr,Q:Ge,s:Je,S:Ji,u:Ki,U:no,V:to,w:eo,W:ro,x:null,X:null,y:io,Y:uo,Z:fo,"%":Qe},S={a:gr,A:mr,b:dr,B:pr,c:null,d:Ve,e:Ve,f:ho,g:To,G:ko,H:co,I:lo,j:so,L:tr,m:go,M:mo,p:yr,q:Mr,Q:Ge,s:Je,S:po,u:yo,U:Mo,V:xo,w:wo,W:bo,x:null,X:null,y:vo,Y:No,Z:So,"%":Qe},L={a:mn,A:zn,b:M,B,c:Y,d:Xe,e:Xe,f:Pi,g:_e,G:ze,H:Ze,I:Ze,j:Ri,L:Ei,m:Li,M:Wi,p:en,q:Ii,Q:zi,s:_i,S:Oi,u:Fi,U:Yi,V:qi,w:Ai,W:$i,x:K,X:_n,y:_e,Y:ze,Z:Hi,"%":ji};A.x=d(e,A),A.X=d(r,A),A.c=d(t,A),S.x=d(e,S),S.X=d(r,S),S.c=d(t,S);function d(m,y){return function(w){var g=[],q=-1,T=0,H=m.length,I,rn,Et;for(w instanceof Date||(w=new Date(+w));++q<H;)m.charCodeAt(q)===37&&(g.push(m.slice(T,q)),(rn=je[I=m.charAt(++q)])!=null?I=m.charAt(++q):rn=I==="e"?" ":"0",(Et=y[I])&&(I=Et(w,rn)),g.push(I),T=q+1);return g.push(m.slice(T,q)),g.join("")}}function k(m,y){return function(w){var g=En(1900,void 0,1),q=Z(g,m,w+="",0),T,H;if(q!=w.length)return null;if("Q"in g)return new Date(g.Q);if("s"in g)return new Date(g.s*1e3+("L"in g?g.L:0));if(y&&!("Z"in g)&&(g.Z=0),"p"in g&&(g.H=g.H%12+g.p*12),g.m===void 0&&(g.m="q"in g?g.q:0),"V"in g){if(g.V<1||g.V>53)return null;"w"in g||(g.w=1),"Z"in g?(T=Lt(En(g.y,0,1)),H=T.getUTCDay(),T=H>4||H===0?On.ceil(T):On(T),T=Ln.offset(T,(g.V-1)*7),g.y=T.getUTCFullYear(),g.m=T.getUTCMonth(),g.d=T.getUTCDate()+(g.w+6)%7):(T=It(En(g.y,0,1)),H=T.getDay(),T=H>4||H===0?Rn.ceil(T):Rn(T),T=cn.offset(T,(g.V-1)*7),g.y=T.getFullYear(),g.m=T.getMonth(),g.d=T.getDate()+(g.w+6)%7)}else("W"in g||"U"in g)&&("w"in g||(g.w="u"in g?g.u%7:"W"in g?1:0),H="Z"in g?Lt(En(g.y,0,1)).getUTCDay():It(En(g.y,0,1)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+g.W*7-(H+5)%7:g.w+g.U*7-(H+6)%7);return"Z"in g?(g.H+=g.Z/100|0,g.M+=g.Z%100,Lt(g)):It(g)}}function Z(m,y,w,g){for(var q=0,T=y.length,H=w.length,I,rn;q<T;){if(g>=H)return-1;if(I=y.charCodeAt(q++),I===37){if(I=y.charAt(q++),rn=L[I in je?y.charAt(q++):I],!rn||(g=rn(m,w,g))<0)return-1}else if(I!=w.charCodeAt(g++))return-1}return g}function en(m,y,w){var g=f.exec(y.slice(w));return g?(m.p=l.get(g[0].toLowerCase()),w+g[0].length):-1}function mn(m,y,w){var g=p.exec(y.slice(w));return g?(m.w=x.get(g[0].toLowerCase()),w+g[0].length):-1}function zn(m,y,w){var g=h.exec(y.slice(w));return g?(m.w=s.get(g[0].toLowerCase()),w+g[0].length):-1}function M(m,y,w){var g=F.exec(y.slice(w));return g?(m.m=W.get(g[0].toLowerCase()),w+g[0].length):-1}function B(m,y,w){var g=v.exec(y.slice(w));return g?(m.m=N.get(g[0].toLowerCase()),w+g[0].length):-1}function Y(m,y,w){return Z(m,t,y,w)}function K(m,y,w){return Z(m,e,y,w)}function _n(m,y,w){return Z(m,r,y,w)}function dn(m){return u[m.getDay()]}function pn(m){return o[m.getDay()]}function yn(m){return c[m.getMonth()]}function O(m){return a[m.getMonth()]}function sr(m){return i[+(m.getHours()>=12)]}function hr(m){return 1+~~(m.getMonth()/3)}function gr(m){return u[m.getUTCDay()]}function mr(m){return o[m.getUTCDay()]}function dr(m){return c[m.getUTCMonth()]}function pr(m){return a[m.getUTCMonth()]}function yr(m){return i[+(m.getUTCHours()>=12)]}function Mr(m){return 1+~~(m.getUTCMonth()/3)}return{format:function(m){var y=d(m+="",A);return y.toString=function(){return m},y},parse:function(m){var y=k(m+="",!1);return y.toString=function(){return m},y},utcFormat:function(m){var y=d(m+="",S);return y.toString=function(){return m},y},utcParse:function(m){var y=k(m+="",!0);return y.toString=function(){return m},y}}}var je={"-":"",_:" ",0:"0"},U=/^\s*\d+/,Ci=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function b(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(t)+i:i)}function Ui(n){return n.replace(Di,"\\$&")}function Pn(n){return new RegExp("^(?:"+n.map(Ui).join("|")+")","i")}function jn(n){return new Map(n.map((t,e)=>[t.toLowerCase(),e]))}function Ai(n,t,e){var r=U.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Fi(n,t,e){var r=U.exec(t.slice(e,e+1));return r?(n.u=+r[0],e+r[0].length):-1}function Yi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.U=+r[0],e+r[0].length):-1}function qi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.V=+r[0],e+r[0].length):-1}function $i(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.W=+r[0],e+r[0].length):-1}function ze(n,t,e){var r=U.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function _e(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Hi(n,t,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ii(n,t,e){var r=U.exec(t.slice(e,e+1));return r?(n.q=r[0]*3-3,e+r[0].length):-1}function Li(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function Xe(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function Ri(n,t,e){var r=U.exec(t.slice(e,e+3));return r?(n.m=0,n.d=+r[0],e+r[0].length):-1}function Ze(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function Wi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function Oi(n,t,e){var r=U.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function Ei(n,t,e){var r=U.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function Pi(n,t,e){var r=U.exec(t.slice(e,e+6));return r?(n.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function ji(n,t,e){var r=Ci.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function zi(n,t,e){var r=U.exec(t.slice(e));return r?(n.Q=+r[0],e+r[0].length):-1}function _i(n,t,e){var r=U.exec(t.slice(e));return r?(n.s=+r[0],e+r[0].length):-1}function Be(n,t){return b(n.getDate(),t,2)}function Xi(n,t){return b(n.getHours(),t,2)}function Zi(n,t){return b(n.getHours()%12||12,t,2)}function Bi(n,t){return b(1+cn.count(j(n),n),t,3)}function Ke(n,t){return b(n.getMilliseconds(),t,3)}function Vi(n,t){return Ke(n,t)+"000"}function Qi(n,t){return b(n.getMonth()+1,t,2)}function Gi(n,t){return b(n.getMinutes(),t,2)}function Ji(n,t){return b(n.getSeconds(),t,2)}function Ki(n){var t=n.getDay();return t===0?7:t}function no(n,t){return b(Sn.count(j(n)-1,n),t,2)}function nr(n){var t=n.getDay();return t>=4||t===0?sn(n):sn.ceil(n)}function to(n,t){return n=nr(n),b(sn.count(j(n),n)+(j(n).getDay()===4),t,2)}function eo(n){return n.getDay()}function ro(n,t){return b(Rn.count(j(n)-1,n),t,2)}function io(n,t){return b(n.getFullYear()%100,t,2)}function oo(n,t){return n=nr(n),b(n.getFullYear()%100,t,2)}function uo(n,t){return b(n.getFullYear()%1e4,t,4)}function ao(n,t){var e=n.getDay();return n=e>=4||e===0?sn(n):sn.ceil(n),b(n.getFullYear()%1e4,t,4)}function fo(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function Ve(n,t){return b(n.getUTCDate(),t,2)}function co(n,t){return b(n.getUTCHours(),t,2)}function lo(n,t){return b(n.getUTCHours()%12||12,t,2)}function so(n,t){return b(1+Ln.count(X(n),n),t,3)}function tr(n,t){return b(n.getUTCMilliseconds(),t,3)}function ho(n,t){return tr(n,t)+"000"}function go(n,t){return b(n.getUTCMonth()+1,t,2)}function mo(n,t){return b(n.getUTCMinutes(),t,2)}function po(n,t){return b(n.getUTCSeconds(),t,2)}function yo(n){var t=n.getUTCDay();return t===0?7:t}function Mo(n,t){return b(Wn.count(X(n)-1,n),t,2)}function er(n){var t=n.getUTCDay();return t>=4||t===0?gn(n):gn.ceil(n)}function xo(n,t){return n=er(n),b(gn.count(X(n),n)+(X(n).getUTCDay()===4),t,2)}function wo(n){return n.getUTCDay()}function bo(n,t){return b(On.count(X(n)-1,n),t,2)}function vo(n,t){return b(n.getUTCFullYear()%100,t,2)}function To(n,t){return n=er(n),b(n.getUTCFullYear()%100,t,2)}function No(n,t){return b(n.getUTCFullYear()%1e4,t,4)}function ko(n,t){var e=n.getUTCDay();return n=e>=4||e===0?gn(n):gn.ceil(n),b(n.getUTCFullYear()%1e4,t,4)}function So(){return"+0000"}function Qe(){return"%"}function Ge(n){return+n}function Je(n){return Math.floor(+n/1e3)}var Cn,Rt,Co,Wt,rr;Do({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 Do(n){return Cn=Si(n),Rt=Cn.format,Co=Cn.parse,Wt=Cn.utcFormat,rr=Cn.utcParse,Cn}var ir="%Y-%m-%dT%H:%M:%S.%LZ";function Uo(n){return n.toISOString()}var zu=Date.prototype.toISOString?Uo:Wt(ir);function Ao(n){var t=new Date(n);return isNaN(t)?null:t}var _u=+new Date("2000-01-01T00:00:00.000Z")?Ao:rr(ir);function gt(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n);break}return this}var or=Symbol("implicit");function ar(){var n=new An,t=[],e=[],r=or;function i(o){let u=n.get(o);if(u===void 0){if(r!==or)return r;n.set(o,u=t.push(o)-1)}return e[u%e.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],n=new An;for(let u of o)n.has(u)||n.set(u,t.push(u)-1);return i},i.range=function(o){return arguments.length?(e=Array.from(o),i):e.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return ar(t,e).unknown(r)},gt.apply(i,arguments),i}function Fo(){var n=ar().unknown(void 0),t=n.domain,e=n.range,r=0,i=1,o,u,a=!1,c=0,f=0,l=.5;delete n.unknown;function h(){var s=t().length,p=i<r,x=p?i:r,v=p?r:i;o=(v-x)/Math.max(1,s-c+f*2),a&&(o=Math.floor(o)),x+=(v-x-o*(s-c))*l,u=o*(1-c),a&&(x=Math.round(x),u=Math.round(u));var N=Bt(s).map(function(F){return x+o*F});return e(p?N.reverse():N)}return n.domain=function(s){return arguments.length?(t(s),h()):t()},n.range=function(s){return arguments.length?([r,i]=s,r=+r,i=+i,h()):[r,i]},n.rangeRound=function(s){return[r,i]=s,r=+r,i=+i,a=!0,h()},n.bandwidth=function(){return u},n.step=function(){return o},n.round=function(s){return arguments.length?(a=!!s,h()):a},n.padding=function(s){return arguments.length?(c=Math.min(1,f=+s),h()):c},n.paddingInner=function(s){return arguments.length?(c=Math.min(1,s),h()):c},n.paddingOuter=function(s){return arguments.length?(f=+s,h()):f},n.align=function(s){return arguments.length?(l=Math.max(0,Math.min(1,s)),h()):l},n.copy=function(){return Fo(t(),[r,i]).round(a).paddingInner(c).paddingOuter(f).align(l)},gt.apply(h(),arguments)}function Yo(n){return function(){return n}}function qo(n){return+n}var ur=[0,1];function Dn(n){return n}function Ot(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Yo(isNaN(t)?NaN:.5)}function $o(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Ho(n,t,e){var r=n[0],i=n[1],o=t[0],u=t[1];return i<r?(r=Ot(i,r),o=e(u,o)):(r=Ot(r,i),o=e(o,u)),function(a){return o(r(a))}}function Io(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),o=new Array(r),u=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<r;)i[u]=Ot(n[u],n[u+1]),o[u]=e(t[u],t[u+1]);return function(a){var c=zt(n,a,1,r)-1;return o[c](i[c](a))}}function fr(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Lo(){var n=ur,t=ur,e=ot,r,i,o,u=Dn,a,c,f;function l(){var s=Math.min(n.length,t.length);return u!==Dn&&(u=$o(n[0],n[s-1])),a=s>2?Io:Ho,c=f=null,h}function h(s){return s==null||isNaN(s=+s)?o:(c||(c=a(n.map(r),t,e)))(r(u(s)))}return h.invert=function(s){return u(i((f||(f=a(t,n.map(r),P)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,qo),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),e=Ne,l()},h.clamp=function(s){return arguments.length?(u=s?!0:Dn,l()):u!==Dn},h.interpolate=function(s){return arguments.length?(e=s,l()):e},h.unknown=function(s){return arguments.length?(o=s,h):o},function(s,p){return r=s,i=p,l()}}function cr(){return Lo()(Dn,Dn)}function Ro(n,t,e,r){var i=Fn(n,t,e),o;switch(r=In(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(o=Ie(i,u))&&(r.precision=o),Dt(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Le(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=He(i))&&(r.precision=o-(r.type==="%")*2);break}}return Ct(r)}function Wo(n){var t=n.domain;return n.ticks=function(e){var r=t();return Zt(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Ro(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,o=r.length-1,u=r[i],a=r[o],c,f,l=10;for(a<u&&(f=u,u=a,a=f,f=i,i=o,o=f);l-- >0;){if(f=Zn(u,a,e),f===c)return r[i]=u,r[o]=a,t(r);if(f>0)u=Math.floor(u/f)*f,a=Math.ceil(a/f)*f;else if(f<0)u=Math.ceil(u*f)/f,a=Math.floor(a*f)/f;else break;c=f}return n},n}function Oo(){var n=cr();return n.copy=function(){return fr(n,Oo())},gt.apply(n,arguments),Wo(n)}function Eo(n,t){n=n.slice();var e=0,r=n.length-1,i=n[e],o=n[r],u;return o<i&&(u=e,e=r,r=u,u=i,i=o,o=u),n[e]=t.floor(i),n[r]=t.ceil(o),n}function Po(n){return new Date(n)}function jo(n){return n instanceof Date?+n:Math.round(n)}function lr(n,t,e,r,i,o,u,a,c,f){var l=cr(),h=l.invert,s=l.domain,p=f(".%L"),x=f(":%S"),v=f("%I:%M"),N=f("%I %p"),F=f("%a %d"),W=f("%b %d"),A=f("%B"),S=f("%Y");function L(d){return(c(d)<d?p:a(d)<d?x:u(d)<d?v:o(d)<d?N:r(d)<d?i(d)<d?F:W:e(d)<d?A:S)(d)}return l.invert=function(d){return new Date(Math.round(h(d)))},l.domain=function(d){return arguments.length?s(Array.from(d,jo)):s().map(Po)},l.ticks=function(d){var k=s();return n(k[0],k[k.length-1],d??10)},l.tickFormat=function(d,k){return k==null?L:f(k)},l.nice=function(d){var k=s();return(!d||typeof d.range!="function")&&(d=t(k[0],k[k.length-1],d??10)),d?s(Eo(k,d)):l},l.copy=function(){return fr(l,lr(n,t,e,r,i,o,u,a,c,f))},l}function ta(){return gt.apply(lr(Ee,Pe,j,ht,Sn,cn,st,lt,tn,Rt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{Vo as a,Qo as b,Hn as c,et as d,tu as e,fu as f,su as g,Ct as h,ct as i,tn as j,lt as k,st as l,cn as m,Sn as n,Rn as o,pi as p,yi as q,sn as r,Mi as s,xi as t,ht as u,Rt as v,ar as w,Fo as x,Oo as y,ta as z};
@@ -0,0 +1 @@
1
+ import{$ as s}from"./chunk-MYJRFART.js";import{d as e}from"./chunk-3ZSL2TGQ.js";import{a as n}from"./chunk-ZE5RDJX6.js";var a=n(t=>{let{securityLevel:c}=s(),o=e("body");if(c==="sandbox"){let m=e(`#i${t}`).node()?.contentDocument??document;o=e(m.body)}return o.select(`#${t}`)},"selectSvgElement");export{a};
@@ -0,0 +1,2 @@
1
+ import{a as pt,c as xr,f as br,g as Ar,h as wr,i as Or,j as Sr,k as Br,l as Ir,m as Mr,n as Pr,o as Wr,p as Er,q as Lr,r as Dr,s as $r,t as Rr,u as Nr,v as Fr,w as jr,x as Tr}from"./chunk-NXHT5I2L.js";import{O as N,h as E,l as lr,o as or,s as dr}from"./chunk-MYJRFART.js";import{b as w,d as hr}from"./chunk-3ZSL2TGQ.js";import{a}from"./chunk-ZE5RDJX6.js";import{c as at}from"./chunk-PHKIAKHS.js";function h(r){return r==null||typeof r!="object"&&typeof r!="function"}function d(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var F="[object RegExp]",O="[object String]",S="[object Number]",B="[object Boolean]",I="[object Arguments]",j="[object Symbol]",T="[object Date]",z="[object Map]",_="[object Set]",v="[object Array]";var U="[object ArrayBuffer]",k="[object Object]";var H="[object DataView]",q="[object Uint8Array]",K="[object Uint8ClampedArray]",V="[object Uint16Array]",X="[object Uint32Array]";var Y="[object Int8Array]",G="[object Int16Array]",J="[object Int32Array]";var Z="[object Float32Array]",Q="[object Float64Array]";function zr(r){return Array.isArray(r)}function M(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function x(r){return M(r)}function ct(r){if(h(r))return r;let t=d(r);if(!ut(r))return{};if(zr(r)){let e=Array.from(r);return r.length>0&&typeof r[0]=="string"&&Object.hasOwn(r,"index")&&(e.index=r.index,e.input=r.input),e}if(x(r)){let e=r,n=e.constructor;return new n(e.buffer,e.byteOffset,e.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(r.byteLength);if(t==="[object DataView]"){let e=r,n=e.buffer,m=e.byteOffset,o=e.byteLength,f=new ArrayBuffer(o),s=new Uint8Array(n,m,o);return new Uint8Array(f).set(s),new DataView(f)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){let e=r.constructor,n=new e(r.valueOf());return t==="[object String]"?gt(n,r):nr(n,r),n}if(t==="[object Date]")return new Date(Number(r));if(t==="[object RegExp]"){let e=r,n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(r));if(t==="[object Map]"){let e=r,n=new Map;return e.forEach((m,o)=>{n.set(o,m)}),n}if(t==="[object Set]"){let e=r,n=new Set;return e.forEach(m=>{n.add(m)}),n}if(t==="[object Arguments]"){let e=r,n={};return nr(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}let i={};return lt(i,r),nr(i,r),yt(i,r),i}function ut(r){switch(d(r)){case I:case v:case U:case H:case B:case T:case Z:case Q:case Y:case G:case J:case z:case S:case k:case F:case _:case O:case j:case q:case K:case V:case X:return!0;default:return!1}}function nr(r,t){for(let i in t)Object.hasOwn(t,i)&&(r[i]=t[i])}function yt(r,t){let i=Object.getOwnPropertySymbols(t);for(let e=0;e<i.length;e++){let n=i[e];Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}}function gt(r,t){let i=t.valueOf().length;for(let e in t)Object.hasOwn(t,e)&&(Number.isNaN(Number(e))||Number(e)>=i)&&(r[e]=t[e])}function lt(r,t){let i=Object.getPrototypeOf(t);i!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(r,i)}function C(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let t=r;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function _r(){}function rr(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}var mr=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function P(r){return typeof mr.Buffer<"u"&&mr.Buffer.isBuffer(r)}function vr(r){return Number.isSafeInteger(r)&&r>=0}function tr(r){return r!=null&&typeof r!="function"&&vr(r.length)}function Ur(r){return r==="__proto__"}function kr(r,t){return W(r,void 0,r,new Map,t)}function W(r,t,i,e=new Map,n=void 0){let m=n?.(r,t,i,e);if(m!==void 0)return m;if(h(r))return r;if(e.has(r))return e.get(r);if(Array.isArray(r)){let o=new Array(r.length);e.set(r,o);for(let f=0;f<r.length;f++)o[f]=W(r[f],f,i,e,n);return Object.hasOwn(r,"index")&&(o.index=r.index),Object.hasOwn(r,"input")&&(o.input=r.input),o}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let o=new RegExp(r.source,r.flags);return o.lastIndex=r.lastIndex,o}if(r instanceof Map){let o=new Map;e.set(r,o);for(let[f,s]of r)o.set(f,W(s,f,i,e,n));return o}if(r instanceof Set){let o=new Set;e.set(r,o);for(let f of r)o.add(W(f,void 0,i,e,n));return o}if(P(r))return r.subarray();if(M(r)){let o=new(Object.getPrototypeOf(r)).constructor(r.length);e.set(r,o);for(let f=0;f<r.length;f++)o[f]=W(r[f],f,i,e,n);return o}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let o=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return e.set(r,o),u(o,r,i,e,n),o}if(typeof File<"u"&&r instanceof File){let o=new File([r],r.name,{type:r.type});return e.set(r,o),u(o,r,i,e,n),o}if(typeof Blob<"u"&&r instanceof Blob){let o=new Blob([r],{type:r.type});return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof Error){let o=structuredClone(r);return e.set(r,o),o.message=r.message,o.name=r.name,o.stack=r.stack,o.cause=r.cause,o.constructor=r.constructor,u(o,r,i,e,n),o}if(r instanceof Boolean){let o=new Boolean(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof Number){let o=new Number(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof String){let o=new String(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(typeof r=="object"&&dt(r)){let o=Object.create(Object.getPrototypeOf(r));return e.set(r,o),u(o,r,i,e,n),o}return r}function u(r,t,i=r,e,n){let m=[...Object.keys(t),...rr(t)];for(let o=0;o<m.length;o++){let f=m[o],s=Object.getOwnPropertyDescriptor(r,f);(s==null||s.writable)&&(r[f]=W(t[f],f,i,e,n))}}function dt(r){switch(d(r)){case I:case v:case U:case H:case B:case T:case Z:case Q:case Y:case G:case J:case z:case S:case k:case F:case _:case O:case j:case q:case K:case V:case X:return!0;default:return!1}}function Hr(r,t){return kr(r,(i,e,n,m)=>{let o=t?.(i,e,n,m);if(o!==void 0)return o;if(typeof r=="object"){if(d(r)==="[object Object]"&&typeof r.constructor!="function"){let f={};return m.set(r,f),u(f,r,n,m),f}switch(Object.prototype.toString.call(r)){case S:case O:case B:{let f=new r.constructor(r?.valueOf());return u(f,r),f}case I:{let f={};return u(f,r),f.length=r.length,f[Symbol.iterator]=r[Symbol.iterator],f}default:return}}})}function fr(r){return Hr(r)}function L(r){return r!==null&&typeof r=="object"&&d(r)==="[object Arguments]"}function D(r){return typeof r=="object"&&r!==null}function qr(r){return D(r)&&tr(r)}function Kr(r){let t=r?.constructor;return r===(typeof t=="function"?t.prototype:Object.prototype)}function b(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let i=function(...e){let n=t?t.apply(this,e):e[0],m=i.cache;if(m.has(n))return m.get(n);let o=r.apply(this,e);return i.cache=m.set(n,o)||m,o};return i.cache=new(b.Cache||Map),i}b.Cache=Map;function Vr(r){if(h(r))return r;if(Array.isArray(r)||M(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let i=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new i(r);if(r instanceof RegExp){let e=new i(r);return e.lastIndex=r.lastIndex,e}if(r instanceof DataView)return new i(r.buffer.slice(0));if(r instanceof Error){let e;return r instanceof AggregateError?e=new i(r.errors,r.message,{cause:r.cause}):e=new i(r.message,{cause:r.cause}),e.stack=r.stack,Object.assign(e,r),e}return typeof File<"u"&&r instanceof File?new i([r],r.name,{type:r.type,lastModified:r.lastModified}):typeof r=="object"?Object.assign(Object.create(t),r):r}function Xr(r,...t){let i=t.slice(0,-1),e=t[t.length-1],n=r;for(let m=0;m<i.length;m++){let o=i[m];n=er(n,o,e,new Map)}return n}function er(r,t,i,e){if(h(r)&&(r=Object(r)),t==null||typeof t!="object")return r;if(e.has(t))return Vr(e.get(t));if(e.set(t,r),Array.isArray(t)){t=t.slice();for(let m=0;m<t.length;m++)m in t||(t[m]=void 0)}let n=[...Object.keys(t),...rr(t)];for(let m=0;m<n.length;m++){let o=n[m];if(Ur(o))continue;let f=t[o],s=r[o];if(L(f)&&(f={...f}),L(s)&&(s={...s}),P(f)&&(f=fr(f)),Array.isArray(f))if(Array.isArray(s)){let y=[],c=Reflect.ownKeys(s);for(let l=0;l<c.length;l++){let g=c[l];y[g]=s[g]}s=y}else if(qr(s)){let y=[];for(let c=0;c<s.length;c++)y[c]=s[c];s=y}else s=[];let p=i(s,f,o,r,t,e);p!==void 0?r[o]=p:Array.isArray(f)||D(s)&&D(f)&&(C(s)||C(f)||x(s)||x(f))?r[o]=er(s,f,i,e):s==null&&C(f)?r[o]=er({},f,i,e):s==null&&x(f)?r[o]=fr(f):(s===void 0||f!==void 0)&&(r[o]=f)}return r}function sr(r,...t){return Xr(r,...t,_r)}function ht(r){if(r==null)return!0;if(tr(r))return typeof r.splice!="function"&&typeof r!="string"&&!P(r)&&!x(r)&&!L(r)?!1:r.length===0;if(typeof r=="object"||typeof r=="function"){if(r instanceof Map||r instanceof Set)return r.size===0;let t=Object.keys(r);return Kr(r)?t.filter(i=>i!=="constructor").length===0:t.length===0}return!0}var Jr=at(pt(),1);var xt="\u200B",bt={curveBasis:wr,curveBasisClosed:Or,curveBasisOpen:Sr,curveBumpX:br,curveBumpY:Ar,curveBundle:Br,curveCardinalClosed:Mr,curveCardinalOpen:Pr,curveCardinal:Ir,curveCatmullRomClosed:Er,curveCatmullRomOpen:Lr,curveCatmullRom:Wr,curveLinear:xr,curveLinearClosed:Dr,curveMonotoneX:$r,curveMonotoneY:Rr,curveNatural:Nr,curveStep:Fr,curveStepAfter:Tr,curveStepBefore:jr},At=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wt=a(function(r,t){let i=Zr(r,/(?:init\b)|(?:initialize\b)/),e={};if(Array.isArray(i)){let o=i.map(f=>f.args);dr(o),e=or(e,[...o])}else e=i.args;if(!e)return;let n=lr(r,t),m="config";return e[m]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),e[n]=e[m],delete e[m]),e},"detectInit"),Zr=a(function(r,t=null){try{let i=new RegExp(`[%]{2}(?![{]${At.source})(?=[}][%]{2}).*
2
+ `,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let e,n=[];for(;(e=E.exec(r))!==null;)if(e.index===E.lastIndex&&E.lastIndex++,e&&!t||t&&e[1]?.match(t)||t&&e[2]?.match(t)){let m=e[1]?e[1]:e[2],o=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;n.push({type:m,args:o})}return n.length===0?{type:r,args:null}:n.length===1?n[0]:n}catch(i){return w.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),fi=a(function(r){return r.replace(E,"")},"removeDirectives"),Ot=a(function(r,t){for(let[i,e]of t.entries())if(e.match(r))return i;return-1},"isSubstringInArray");function Qr(r,t){if(!r)return t;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return bt[i]??t}a(Qr,"interpolateToCurve");function Cr(r,t){let i=r.trim();if(i)return t.securityLevel!=="loose"?(0,Jr.sanitizeUrl)(i):i}a(Cr,"formatUrl");var St=a((r,...t)=>{let i=r.split("."),e=i.length-1,n=i[e],m=window;for(let o=0;o<e;o++)if(m=m[i[o]],!m){w.error(`Function name: ${r} not found in window`);return}m[n](...t)},"runFunc");function ar(r,t){return!r||!t?0:Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}a(ar,"distance");function rt(r){let t,i=0;r.forEach(n=>{i+=ar(n,t),t=n});let e=i/2;return pr(r,e)}a(rt,"traverseEdge");function tt(r){return r.length===1?r[0]:rt(r)}a(tt,"calcLabelPosition");var Yr=a((r,t=2)=>{let i=Math.pow(10,t);return Math.round(r*i)/i},"roundNumber"),pr=a((r,t)=>{let i,e=t;for(let n of r){if(i){let m=ar(n,i);if(m===0)return i;if(m<e)e-=m;else{let o=e/m;if(o<=0)return i;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:Yr((1-o)*i.x+o*n.x,5),y:Yr((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Bt=a((r,t,i)=>{w.info(`our points ${JSON.stringify(t)}`),t[0]!==i&&(t=t.reverse());let n=pr(t,25),m=r?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),f={x:0,y:0};return f.x=Math.sin(o)*m+(t[0].x+n.x)/2,f.y=-Math.cos(o)*m+(t[0].y+n.y)/2,f},"calcCardinalityPosition");function et(r,t,i){let e=structuredClone(i);w.info("our points",e),t!=="start_left"&&t!=="start_right"&&e.reverse();let n=25+r,m=pr(e,n),o=10+r*.5,f=Math.atan2(e[0].y-m.y,e[0].x-m.x),s={x:0,y:0};return t==="start_left"?(s.x=Math.sin(f+Math.PI)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f+Math.PI)*o+(e[0].y+m.y)/2):t==="end_right"?(s.x=Math.sin(f-Math.PI)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f-Math.PI)*o+(e[0].y+m.y)/2):(s.x=Math.sin(f)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f)*o+(e[0].y+m.y)/2),s}a(et,"calcTerminalLabelPosition");function it(r){let t="",i="";for(let e of r)e!==void 0&&(e.startsWith("color:")||e.startsWith("text-align:")?i=i+e+";":t=t+e+";");return{style:t,labelStyle:i}}a(it,"getStylesFromArray");var Gr=0,It=a(()=>(Gr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Gr),"generateId");function ot(r){let t="",i="0123456789abcdef",e=i.length;for(let n=0;n<r;n++)t+=i.charAt(Math.floor(Math.random()*e));return t}a(ot,"makeRandomHex");var Mt=a(r=>ot(r.length),"random"),Pt=a(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Wt=a(function(r,t){let i=t.text.replace(N.lineBreakRegex," "),[,e]=ur(t.fontSize),n=r.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",e),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);let m=n.append("tspan");return m.attr("x",t.x+t.textMargin*2),m.attr("fill",t.fill),m.text(i),n},"drawSimpleText"),Et=b((r,t,i)=>{if(!r||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),N.hasBreaks(r)))return r;let e=r.split(" ").filter(Boolean),n=[],m="";return e.forEach((o,f)=>{let s=$(`${o} `,i),p=$(m,i);if(s>t){let{hyphenatedStrings:l,remainingWord:g}=Lt(o,t,"-",i);n.push(m,...l),m=g}else p+s>=t?(n.push(m),m=o):m=[m,o].filter(Boolean).join(" ");f+1===e.length&&n.push(m)}),n.filter(o=>o!=="").join(i.joinWith)},(r,t,i)=>`${r}${t}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Lt=b((r,t,i="-",e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},e);let n=[...r],m=[],o="";return n.forEach((f,s)=>{let p=`${o}${f}`;if($(p,e)>=t){let c=s+1,l=n.length===c,g=`${p}${i}`;m.push(l?p:g),o=""}else o=p}),{hyphenatedStrings:m,remainingWord:o}},(r,t,i="-",e)=>`${r}${t}${i}${e.fontSize}${e.fontWeight}${e.fontFamily}`);function nt(r,t){return cr(r,t).height}a(nt,"calculateTextHeight");function $(r,t){return cr(r,t).width}a($,"calculateTextWidth");var cr=b((r,t)=>{let{fontSize:i=12,fontFamily:e="Arial",fontWeight:n=400}=t;if(!r)return{width:0,height:0};let[,m]=ur(i),o=["sans-serif",e],f=r.split(N.lineBreakRegex),s=[],p=hr("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let y=p.append("svg");for(let l of o){let g=0,A={width:0,height:0,lineHeight:0};for(let st of f){let yr=Pt();yr.text=st||xt;let gr=Wt(y,yr).style("font-size",m).style("font-weight",n).style("font-family",l),R=(gr._groups||gr)[0][0].getBBox();if(R.width===0&&R.height===0)throw new Error("svg element not in render tree");A.width=Math.round(Math.max(A.width,R.width)),g=Math.round(R.height),A.height+=g,A.lineHeight=Math.round(Math.max(A.lineHeight,g))}s.push(A)}y.remove();let c=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[c]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Dt=class{constructor(r=!1,t){this.count=0,this.count=t?t.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},ir,$t=a(function(r){return ir=ir||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ir.innerHTML=r,unescape(ir.textContent)},"entityDecode");function Rt(r){return"str"in r}a(Rt,"isDetailedError");function Nt(r){return r instanceof Error?r.message:String(r)}a(Nt,"getErrorMessage");var Ft=a((r,t,i,e)=>{if(!e)return;let n=r.node()?.getBBox();n&&r.append("text").text(e).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-i).attr("class",t)},"insertTitle"),ur=a(r=>{if(typeof r=="number")return[r,r+"px"];let t=parseInt(r??"",10);return Number.isNaN(t)?[void 0,void 0]:r===String(t)?[t,r+"px"]:[t,r]},"parseFontSize");function mt(r,t){return sr({},r,t)}a(mt,"cleanAndMerge");var si={assignWithDepth:or,wrapLabel:Et,calculateTextHeight:nt,calculateTextWidth:$,calculateTextDimensions:cr,cleanAndMerge:mt,detectInit:wt,detectDirective:Zr,isSubstringInArray:Ot,interpolateToCurve:Qr,calcLabelPosition:tt,calcCardinalityPosition:Bt,calcTerminalLabelPosition:et,formatUrl:Cr,getStylesFromArray:it,generateId:It,random:Mt,runFunc:St,entityDecode:$t,insertTitle:Ft,isLabelCoordinateInPath:ft,parseFontSize:ur,InitIDGenerator:Dt},ai=a(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/#\w+;/g,function(i){let e=i.substring(1,i.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xB0\xB0"+e+"\xB6\xDF":"\uFB02\xB0"+e+"\xB6\xDF"}),t},"encodeEntities"),pi=a(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),ci=a((r,t,{counter:i=0,prefix:e,suffix:n},m)=>m||`${e?`${e}_`:""}${r}_${t}_${i}${n?`_${n}`:""}`,"getEdgeId");function jt(r){return r??null}a(jt,"handleUndefinedAttr");function ft(r,t){let i=Math.round(r.x),e=Math.round(r.y),n=t.replace(/(\d+\.\d+)/g,m=>Math.round(parseFloat(m)).toString());return n.includes(i.toString())||n.includes(e.toString())}a(ft,"isLabelCoordinateInPath");export{ct as a,ht as b,xt as c,fi as d,Qr as e,it as f,It as g,Mt as h,Et as i,nt as j,$ as k,cr as l,Rt as m,Nt as n,ur as o,mt as p,si as q,ai as r,pi as s,ci as t,jt as u};
@@ -0,0 +1 @@
1
+ import{a as e,b as o,c as n,d as i,e as s,g as u,n as d,w as c,y as l}from"./chunk-Z4ZDIMO2.js";var m=class extends l{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},v=class extends c{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},C={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new v,"ValueConverter")}};function P(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,C);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(P,"createPieServices");export{C as a,P as b};