jekyll-obsidian-site 0.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 (191) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +133 -0
  4. data/website/_config.yml +21 -0
  5. data/website/_includes/website/archive-timeline.html +8 -0
  6. data/website/_includes/website/blog-ledger.html +19 -0
  7. data/website/_includes/website/blog-navigation.html +7 -0
  8. data/website/_includes/website/comments.html +22 -0
  9. data/website/_includes/website/contact-icon.html +14 -0
  10. data/website/_includes/website/context-tags.html +7 -0
  11. data/website/_includes/website/context.html +3 -0
  12. data/website/_includes/website/dialogs.html +71 -0
  13. data/website/_includes/website/docs-navigation.html +7 -0
  14. data/website/_includes/website/docs-tree.html +8 -0
  15. data/website/_includes/website/footer.html +14 -0
  16. data/website/_includes/website/github-icon.html +3 -0
  17. data/website/_includes/website/head.html +41 -0
  18. data/website/_includes/website/header.html +35 -0
  19. data/website/_includes/website/language-switcher.html +16 -0
  20. data/website/_includes/website/local-graph.html +25 -0
  21. data/website/_includes/website/note-header.html +35 -0
  22. data/website/_includes/website/outline.html +9 -0
  23. data/website/_includes/website/page-actions.html +34 -0
  24. data/website/_includes/website/portfolio-grid.html +36 -0
  25. data/website/_includes/website/portfolio-topics.html +4 -0
  26. data/website/_includes/website/post-cards.html +16 -0
  27. data/website/_includes/website/related-articles.html +7 -0
  28. data/website/_includes/website/relations.html +16 -0
  29. data/website/_includes/website/source-actions.html +28 -0
  30. data/website/_includes/website/system-page.html +31 -0
  31. data/website/_includes/website/tab-collection.html +28 -0
  32. data/website/_includes/website/tag-filter.html +12 -0
  33. data/website/_layouts/website-docs.html +20 -0
  34. data/website/_layouts/website-minimal.html +93 -0
  35. data/website/_layouts/website-redirect.html +17 -0
  36. data/website/assets/chunks/abnfDiagram-N423BO3Z-TSORAEI2.js +1 -0
  37. data/website/assets/chunks/architecture-TIHT7OUA-OUC5PEC7.js +1 -0
  38. data/website/assets/chunks/architectureDiagram-T3A2C74G-6P5MB2DJ.js +36 -0
  39. data/website/assets/chunks/blockDiagram-VBNYF7ZC-ZWINYROZ.js +132 -0
  40. data/website/assets/chunks/c4Diagram-5PPSVZJV-R5RMEAOT.js +10 -0
  41. data/website/assets/chunks/chunk-22DRK7VS.js +1 -0
  42. data/website/assets/chunks/chunk-25REBZ7M.js +2 -0
  43. data/website/assets/chunks/chunk-2RQCUDTG.js +1 -0
  44. data/website/assets/chunks/chunk-34FHPXU4.js +1 -0
  45. data/website/assets/chunks/chunk-57XXJOQN.js +10 -0
  46. data/website/assets/chunks/chunk-6DCNDVBX.js +2 -0
  47. data/website/assets/chunks/chunk-6DHFEWGX.js +1 -0
  48. data/website/assets/chunks/chunk-6VQ47JJS.js +2 -0
  49. data/website/assets/chunks/chunk-7CSIRG7W.js +127 -0
  50. data/website/assets/chunks/chunk-A43YELH5.js +1 -0
  51. data/website/assets/chunks/chunk-AIX6IH4O.js +1 -0
  52. data/website/assets/chunks/chunk-B3K7RH5O.js +88 -0
  53. data/website/assets/chunks/chunk-CBGUD2NP.js +1 -0
  54. data/website/assets/chunks/chunk-D3WOCELE.js +1 -0
  55. data/website/assets/chunks/chunk-D6FURU6X.js +1 -0
  56. data/website/assets/chunks/chunk-DGEGT77F.js +1 -0
  57. data/website/assets/chunks/chunk-DN52R6U7.js +1 -0
  58. data/website/assets/chunks/chunk-E3T3IFAC.js +1 -0
  59. data/website/assets/chunks/chunk-EIBFAW37.js +1 -0
  60. data/website/assets/chunks/chunk-ERWOH47R.js +1 -0
  61. data/website/assets/chunks/chunk-ETOVTYWF.js +1 -0
  62. data/website/assets/chunks/chunk-GHD3PFWA.js +231 -0
  63. data/website/assets/chunks/chunk-GMBKQ7NZ.js +1 -0
  64. data/website/assets/chunks/chunk-GQM25EPP.js +156 -0
  65. data/website/assets/chunks/chunk-GSOU4UTT.js +1 -0
  66. data/website/assets/chunks/chunk-HEMELP7J.js +1 -0
  67. data/website/assets/chunks/chunk-HZ5I5NJO.js +1 -0
  68. data/website/assets/chunks/chunk-IP56FOSI.js +70 -0
  69. data/website/assets/chunks/chunk-L7BMR7WL.js +1 -0
  70. data/website/assets/chunks/chunk-LGUG3SQB.js +1 -0
  71. data/website/assets/chunks/chunk-LOMHZYS2.js +1 -0
  72. data/website/assets/chunks/chunk-MII4VZEB.js +3 -0
  73. data/website/assets/chunks/chunk-MYMJLHQL.js +62 -0
  74. data/website/assets/chunks/chunk-NBH7YOBD.js +15 -0
  75. data/website/assets/chunks/chunk-NCOVM3YF.js +1 -0
  76. data/website/assets/chunks/chunk-OAGTSILX.js +1 -0
  77. data/website/assets/chunks/chunk-OCX5OCIU.js +321 -0
  78. data/website/assets/chunks/chunk-OE3NOVIH.js +1 -0
  79. data/website/assets/chunks/chunk-PLP5XUTJ.js +1 -0
  80. data/website/assets/chunks/chunk-PNOERP6G.js +1 -0
  81. data/website/assets/chunks/chunk-QBPQ7DPE.js +1 -0
  82. data/website/assets/chunks/chunk-RWFFDL53.js +1 -0
  83. data/website/assets/chunks/chunk-SEGIW3MP.js +1 -0
  84. data/website/assets/chunks/chunk-SZDMZNUS.js +1 -0
  85. data/website/assets/chunks/chunk-T2QBAPVT.js +1 -0
  86. data/website/assets/chunks/chunk-UE533OZ7.js +1 -0
  87. data/website/assets/chunks/chunk-UTWOJE2A.js +1 -0
  88. data/website/assets/chunks/chunk-VOCDYA3H.js +1 -0
  89. data/website/assets/chunks/chunk-VYZZPKGK.js +161 -0
  90. data/website/assets/chunks/chunk-WWLZIRS6.js +1 -0
  91. data/website/assets/chunks/chunk-XNXYDBKX.js +32 -0
  92. data/website/assets/chunks/chunk-XQUIO562.js +1 -0
  93. data/website/assets/chunks/chunk-Y2XVFW7T.js +2 -0
  94. data/website/assets/chunks/chunk-YORIST7Z.js +1 -0
  95. data/website/assets/chunks/chunk-Z2WBQPVY.js +206 -0
  96. data/website/assets/chunks/classDiagram-JCYQIIEL-OFDVDDIM.js +1 -0
  97. data/website/assets/chunks/classDiagram-v2-OCEON4UE-E36B6BGQ.js +1 -0
  98. data/website/assets/chunks/cose-bilkent-JH36ORCC-CBAW64AB.js +1 -0
  99. data/website/assets/chunks/cynefin-VYW2F7L2-CBO6DLNV.js +1 -0
  100. data/website/assets/chunks/cynefinDiagram-MW4NZA55-DFINLOUY.js +62 -0
  101. data/website/assets/chunks/dagre-VZM6K2ZE-BZFBSZAH.js +4 -0
  102. data/website/assets/chunks/diagram-7IWD3JNH-XQHTVOU2.js +30 -0
  103. data/website/assets/chunks/diagram-B4RE2ZJO-FTSXBZJR.js +3 -0
  104. data/website/assets/chunks/diagram-LBJQPF4R-ZSZW4OLH.js +24 -0
  105. data/website/assets/chunks/diagram-Q27KOJAE-2IV5TVCJ.js +24 -0
  106. data/website/assets/chunks/diagram-UB23O5K3-D6PDUTFL.js +41 -0
  107. data/website/assets/chunks/ebnfDiagram-BXEA7PRR-C6MAER3M.js +1 -0
  108. data/website/assets/chunks/erDiagram-JOGREHBK-EDAD2H5M.js +85 -0
  109. data/website/assets/chunks/eventmodeling-45OFAUF4-4K577DMF.js +1 -0
  110. data/website/assets/chunks/flowDiagram-UKHOOZJN-545F4YX3.js +1 -0
  111. data/website/assets/chunks/ganttDiagram-PKOTCBZU-7A7EKMY3.js +292 -0
  112. data/website/assets/chunks/gitGraph-TEB2WS4Q-3WUB7WYQ.js +1 -0
  113. data/website/assets/chunks/gitGraphDiagram-DS77QQ5N-A5UWV5FF.js +106 -0
  114. data/website/assets/chunks/info-DKCQHKI2-EOOHI7XS.js +1 -0
  115. data/website/assets/chunks/infoDiagram-6WML65LV-CWIOOWJP.js +2 -0
  116. data/website/assets/chunks/ishikawaDiagram-WSZJBQD7-CEASQVDL.js +70 -0
  117. data/website/assets/chunks/journeyDiagram-NVQOT4AX-LYG3S2AW.js +139 -0
  118. data/website/assets/chunks/kanban-definition-27J2QSJJ-HCC6KAYI.js +89 -0
  119. data/website/assets/chunks/katex-F4MQ6FB3.js +257 -0
  120. data/website/assets/chunks/mindmap-definition-FAOFIHXS-JMGSM3RE.js +96 -0
  121. data/website/assets/chunks/packet-7NZHBO7P-W3SJA3MY.js +1 -0
  122. data/website/assets/chunks/pegDiagram-VL7TDLO6-4JO3Y3Z3.js +1 -0
  123. data/website/assets/chunks/pie-RZYD4A2V-YOIQBTY7.js +1 -0
  124. data/website/assets/chunks/pieDiagram-7S7Q4E2Y-VFQ7SE46.js +39 -0
  125. data/website/assets/chunks/quadrantDiagram-CIZ2JOQS-JISDI2S6.js +7 -0
  126. data/website/assets/chunks/radar-I7S5WNFK-NMKP5AZO.js +1 -0
  127. data/website/assets/chunks/railroad-3IZDKUUU-7MOIV7CI.js +1 -0
  128. data/website/assets/chunks/railroad-abnf-AHOZXSZD-HXNH5SLO.js +1 -0
  129. data/website/assets/chunks/railroad-ebnf-EBAXGLYW-OWDJEWMK.js +1 -0
  130. data/website/assets/chunks/railroad-peg-LSFZ7HO6-ASSINGP5.js +1 -0
  131. data/website/assets/chunks/railroadDiagram-AXF67PYL-AFV5VP5F.js +1 -0
  132. data/website/assets/chunks/requirementDiagram-LRYGKXZP-RNRPEHHN.js +84 -0
  133. data/website/assets/chunks/sankeyDiagram-W5VNT64P-O54R2L3E.js +40 -0
  134. data/website/assets/chunks/sequenceDiagram-SI44F4Z6-42WISKJ7.js +162 -0
  135. data/website/assets/chunks/sizeCapture-X5ZJPWSS-LRN2Q37T.js +1 -0
  136. data/website/assets/chunks/stateDiagram-OKZ733FA-BWIBJXIR.js +1 -0
  137. data/website/assets/chunks/stateDiagram-v2-UEYNNEHI-L73LHL3L.js +1 -0
  138. data/website/assets/chunks/swimlanes-SLNWSIFB-ECOAE7LQ.js +1 -0
  139. data/website/assets/chunks/swimlanesDiagram-ULZ7WXOC-3CKKKFZZ.js +8 -0
  140. data/website/assets/chunks/timeline-definition-Z64GVDOM-HR2OL5G7.js +120 -0
  141. data/website/assets/chunks/treeView-QDETBFTQ-C6D5WFJA.js +1 -0
  142. data/website/assets/chunks/treemap-6X3UGDF4-JFCDMSCA.js +1 -0
  143. data/website/assets/chunks/vennDiagram-T6HMQDX7-62WAAPTF.js +34 -0
  144. data/website/assets/chunks/wardley-OPB4EBWU-RQIOII7I.js +1 -0
  145. data/website/assets/chunks/wardleyDiagram-T6FBY63Y-KUXO3NHV.js +78 -0
  146. data/website/assets/chunks/xychartDiagram-ELKLHX3M-I54W4HJ7.js +7 -0
  147. data/website/assets/color-scheme-bootstrap-4H4ZR4BW.js +1 -0
  148. data/website/assets/docs-3WBBQT6K.css +1 -0
  149. data/website/assets/docs-W3D5DWQF.js +1 -0
  150. data/website/assets/docs-navigation-75ALFYBA.js +1 -0
  151. data/website/assets/graph-QWL54LWD.js +1 -0
  152. data/website/assets/manifest.json +314 -0
  153. data/website/assets/math-7JTH4OWZ.js +21 -0
  154. data/website/assets/mermaid-RXC6URG4.js +10 -0
  155. data/website/assets/minimal-3NPTDWQX.js +1 -0
  156. data/website/assets/minimal-E2VATXXS.css +1 -0
  157. data/website/assets/previews-FMHOX7UX.js +1 -0
  158. data/website/assets/search-BH73JZDU.js +1 -0
  159. data/website/assets/search-worker-SM4IM4J7.js +1 -0
  160. data/website/exe/jekyll-obsidian +5 -0
  161. data/website/lib/jekyll_obsidian/adapter.rb +733 -0
  162. data/website/lib/jekyll_obsidian/built_in_themes.rb +855 -0
  163. data/website/lib/jekyll_obsidian/cli.rb +84 -0
  164. data/website/lib/jekyll_obsidian/content_policy.rb +194 -0
  165. data/website/lib/jekyll_obsidian/destination_registry.rb +39 -0
  166. data/website/lib/jekyll_obsidian/directory_indexes.rb +30 -0
  167. data/website/lib/jekyll_obsidian/external_media.rb +371 -0
  168. data/website/lib/jekyll_obsidian/front_matter.rb +453 -0
  169. data/website/lib/jekyll_obsidian/github_markdown.rb +664 -0
  170. data/website/lib/jekyll_obsidian/html_publication.rb +206 -0
  171. data/website/lib/jekyll_obsidian/initializer.rb +68 -0
  172. data/website/lib/jekyll_obsidian/localized_compiler.rb +1044 -0
  173. data/website/lib/jekyll_obsidian/media_policy.rb +41 -0
  174. data/website/lib/jekyll_obsidian/ofm_scanner.rb +493 -0
  175. data/website/lib/jekyll_obsidian/output_text.rb +13 -0
  176. data/website/lib/jekyll_obsidian/preview.rb +93 -0
  177. data/website/lib/jekyll_obsidian/published_markdown.rb +32 -0
  178. data/website/lib/jekyll_obsidian/raw_html_manifest.rb +66 -0
  179. data/website/lib/jekyll_obsidian/runtime.rb +197 -0
  180. data/website/lib/jekyll_obsidian/site_compilation.rb +147 -0
  181. data/website/lib/jekyll_obsidian/site_navigation.rb +517 -0
  182. data/website/lib/jekyll_obsidian/url_builder.rb +163 -0
  183. data/website/lib/jekyll_obsidian/value_objects.rb +198 -0
  184. data/website/lib/jekyll_obsidian/vault_compiler.rb +2771 -0
  185. data/website/lib/jekyll_obsidian/version.rb +6 -0
  186. data/website/lib/jekyll_obsidian/workspace_layout.rb +104 -0
  187. data/website/lib/jekyll_obsidian.rb +22 -0
  188. data/website/scripts/audit-site.rb +120 -0
  189. data/website/scripts/templates/pages.yml +55 -0
  190. data/website/scripts/verify-site-urls.rb +585 -0
  191. metadata +319 -0
@@ -0,0 +1 @@
1
+ function bi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Mi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Gt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gr(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zt(t){let e,n,r;t.length!==2?(e=Gt,n=(s,f)=>Gt(t(s),f),r=(s,f)=>t(s)-f):(e=t===Gt||t===gr?t:zu,n=t,r=t);function i(s,f,u=0,c=s.length){if(u<c){if(e(f,f)!==0)return c;do{let p=u+c>>>1;n(s[p],f)<0?u=p+1:c=p}while(u<c)}return u}function o(s,f,u=0,c=s.length){if(u<c){if(e(f,f)!==0)return c;do{let p=u+c>>>1;n(s[p],f)<=0?u=p+1:c=p}while(u<c)}return u}function a(s,f,u=0,c=s.length){let p=i(s,f,u,c-1);return p>u&&r(s[p-1],f)>-r(s[p],f)?p-1:p}return{left:i,center:a,right:o}}function zu(){return 0}function _r(t){return t===null?NaN:+t}var Ti=Zt(Gt),ki=Ti.right,Yu=Ti.left,Fu=Zt(_r).center,yr=ki;var de=class extends Map{constructor(e,n=Bu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(Si(this,e))}has(e){return super.has(Si(this,e))}set(e,n){return super.set(Uu(this,e),n)}delete(e){return super.delete($u(this,e))}};function Si({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function Uu({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function $u({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Bu(t){return t!==null&&typeof t=="object"?t.valueOf():t}var Lu=Math.sqrt(50),Hu=Math.sqrt(10),qu=Math.sqrt(2);function vn(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Lu?10:o>=Hu?5:o>=qu?2:1,s,f,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),f=Math.round(e*u),s/u<t&&++s,f/u>e&&--f,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),f=Math.round(e/u),s*u<t&&++s,f*u>e&&--f),f<s&&.5<=n&&n<2?vn(t,e,n*2):[s,f,u]}function wn(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let r=e<t,[i,o,a]=r?vn(e,t,n):vn(t,e,n);if(!(o>=i))return[];let s=o-i+1,f=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)f[u]=(o-u)/-a;else for(let u=0;u<s;++u)f[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)f[u]=(i+u)/-a;else for(let u=0;u<s;++u)f[u]=(i+u)*a;return f}function Ue(t,e,n){return e=+e,t=+t,n=+n,vn(t,e,n)[2]}function xe(t,e,n){e=+e,t=+t,n=+n;let r=e<t,i=r?Ue(e,t,n):Ue(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function bn(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Ni(t){return t}var Tn=1,vr=2,wr=3,Mn=4,Ci=1e-6;function Xu(t){return"translate("+t+",0)"}function Wu(t){return"translate(0,"+t+")"}function Vu(t){return e=>+t(e)}function Gu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Zu(){return!this.__axis}function Ai(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,f=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Tn||t===Mn?-1:1,c=t===Mn||t===vr?"x":"y",p=t===Tn||t===wr?Xu:Wu;function l(h){var y=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):Ni),_=Math.max(o,0)+s,m=e.range(),w=+m[0]+f,M=+m[m.length-1]+f,d=(e.bandwidth?Gu:Vu)(e.copy(),f),T=h.selection?h.selection():h,v=T.selectAll(".domain").data([null]),S=T.selectAll(".tick").data(y,e).order(),I=S.exit(),F=S.enter().append("g").attr("class","tick"),P=S.select("line"),Y=S.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(F),P=P.merge(F.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),Y=Y.merge(F.append("text").attr("fill","currentColor").attr(c,u*_).attr("dy",t===Tn?"0em":t===wr?"0.71em":"0.32em")),h!==T&&(v=v.transition(h),S=S.transition(h),P=P.transition(h),Y=Y.transition(h),I=I.transition(h).attr("opacity",Ci).attr("transform",function(C){return isFinite(C=d(C))?p(C+f):this.getAttribute("transform")}),F.attr("opacity",Ci).attr("transform",function(C){var A=this.parentNode.__axis;return p((A&&isFinite(A=A(C))?A:d(C))+f)})),I.remove(),v.attr("d",t===Mn||t===vr?a?"M"+u*a+","+w+"H"+f+"V"+M+"H"+u*a:"M"+f+","+w+"V"+M:a?"M"+w+","+u*a+"V"+f+"H"+M+"V"+u*a:"M"+w+","+f+"H"+M),S.attr("opacity",1).attr("transform",function(C){return p(d(C)+f)}),P.attr(c+"2",u*o),Y.attr(c,u*_).text(g),T.filter(Zu).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===vr?"start":t===Mn?"end":"middle"),T.each(function(){this.__axis=d})}return l.scale=function(h){return arguments.length?(e=h,l):e},l.ticks=function(){return n=Array.from(arguments),l},l.tickArguments=function(h){return arguments.length?(n=h==null?[]:Array.from(h),l):n.slice()},l.tickValues=function(h){return arguments.length?(r=h==null?null:Array.from(h),l):r&&r.slice()},l.tickFormat=function(h){return arguments.length?(i=h,l):i},l.tickSize=function(h){return arguments.length?(o=a=+h,l):o},l.tickSizeInner=function(h){return arguments.length?(o=+h,l):o},l.tickSizeOuter=function(h){return arguments.length?(a=+h,l):a},l.tickPadding=function(h){return arguments.length?(s=+h,l):s},l.offset=function(h){return arguments.length?(f=+h,l):f},l}function Qu(t){return Ai(Tn,t)}function Ku(t){return Ai(wr,t)}function Ju(){}function Qt(t){return t==null?Ju:function(){return this.querySelector(t)}}function Di(t){typeof t!="function"&&(t=Qt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),f,u,c=0;c<a;++c)(f=o[c])&&(u=t.call(f,f.__data__,c,o))&&("__data__"in f&&(u.__data__=f.__data__),s[c]=u);return new Z(r,this._parents)}function br(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ju(){return[]}function $e(t){return t==null?ju:function(){return this.querySelectorAll(t)}}function tf(t){return function(){return br(t.apply(this,arguments))}}function Ei(t){typeof t=="function"?t=tf(t):t=$e(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,f,u=0;u<s;++u)(f=a[u])&&(r.push(t.call(f,f.__data__,u,a)),i.push(f));return new Z(r,i)}function Be(t){return function(){return this.matches(t)}}function kn(t){return function(e){return e.matches(t)}}var ef=Array.prototype.find;function nf(t){return function(){return ef.call(this.children,t)}}function rf(){return this.firstElementChild}function Ii(t){return this.select(t==null?rf:nf(typeof t=="function"?t:kn(t)))}var of=Array.prototype.filter;function af(){return Array.from(this.children)}function sf(t){return function(){return of.call(this.children,t)}}function Ri(t){return this.selectAll(t==null?af:sf(typeof t=="function"?t:kn(t)))}function Oi(t){typeof t!="function"&&(t=Be(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],f,u=0;u<a;++u)(f=o[u])&&t.call(f,f.__data__,u,o)&&s.push(f);return new Z(r,this._parents)}function Sn(t){return new Array(t.length)}function Pi(){return new Z(this._enter||this._groups.map(Sn),this._parents)}function Le(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Le.prototype={constructor:Le,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function zi(t){return function(){return t}}function uf(t,e,n,r,i,o){for(var a=0,s,f=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new Le(t,o[a]);for(;a<f;++a)(s=e[a])&&(i[a]=s)}function ff(t,e,n,r,i,o,a){var s,f,u=new Map,c=e.length,p=o.length,l=new Array(c),h;for(s=0;s<c;++s)(f=e[s])&&(l[s]=h=a.call(f,f.__data__,s,e)+"",u.has(h)?i[s]=f:u.set(h,f));for(s=0;s<p;++s)h=a.call(t,o[s],s,o)+"",(f=u.get(h))?(r[s]=f,f.__data__=o[s],u.delete(h)):n[s]=new Le(t,o[s]);for(s=0;s<c;++s)(f=e[s])&&u.get(l[s])===f&&(i[s]=f)}function lf(t){return t.__data__}function Yi(t,e){if(!arguments.length)return Array.from(this,lf);var n=e?ff:uf,r=this._parents,i=this._groups;typeof t!="function"&&(t=zi(t));for(var o=i.length,a=new Array(o),s=new Array(o),f=new Array(o),u=0;u<o;++u){var c=r[u],p=i[u],l=p.length,h=cf(t.call(c,c&&c.__data__,u,r)),y=h.length,g=s[u]=new Array(y),_=a[u]=new Array(y),m=f[u]=new Array(l);n(c,p,g,_,m,h,e);for(var w=0,M=0,d,T;w<y;++w)if(d=g[w]){for(w>=M&&(M=w+1);!(T=_[M])&&++M<y;);d._next=T||null}}return a=new Z(a,r),a._enter=s,a._exit=f,a}function cf(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Fi(){return new Z(this._exit||this._groups.map(Sn),this._parents)}function Ui(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function $i(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),f=0;f<a;++f)for(var u=n[f],c=r[f],p=u.length,l=s[f]=new Array(p),h,y=0;y<p;++y)(h=u[y]||c[y])&&(l[y]=h);for(;f<i;++f)s[f]=n[f];return new Z(s,this._parents)}function Bi(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Li(t){t||(t=hf);function e(p,l){return p&&l?t(p.__data__,l.__data__):!p-!l}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,f=i[o]=new Array(s),u,c=0;c<s;++c)(u=a[c])&&(f[c]=u);f.sort(e)}return new Z(i,this._parents).order()}function hf(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Hi(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function qi(){return Array.from(this)}function Xi(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Wi(){let t=0;for(let e of this)++t;return t}function Vi(){return!this.node()}function Gi(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}var Nn="http://www.w3.org/1999/xhtml",Mr={svg:"http://www.w3.org/2000/svg",xhtml:Nn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function At(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Mr.hasOwnProperty(e)?{space:Mr[e],local:t}:t}function pf(t){return function(){this.removeAttribute(t)}}function mf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function df(t,e){return function(){this.setAttribute(t,e)}}function xf(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gf(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function _f(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Zi(t,e){var n=At(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?mf:pf:typeof e=="function"?n.local?_f:gf:n.local?xf:df)(n,e))}function Cn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function yf(t){return function(){this.style.removeProperty(t)}}function vf(t,e,n){return function(){this.style.setProperty(t,e,n)}}function wf(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Qi(t,e,n){return arguments.length>1?this.each((e==null?yf:typeof e=="function"?wf:vf)(t,e,n??"")):Yt(this.node(),t)}function Yt(t,e){return t.style.getPropertyValue(e)||Cn(t).getComputedStyle(t,null).getPropertyValue(e)}function bf(t){return function(){delete this[t]}}function Mf(t,e){return function(){this[t]=e}}function Tf(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ki(t,e){return arguments.length>1?this.each((e==null?bf:typeof e=="function"?Tf:Mf)(t,e)):this.node()[t]}function Ji(t){return t.trim().split(/^|\s+/)}function Tr(t){return t.classList||new ji(t)}function ji(t){this._node=t,this._names=Ji(t.getAttribute("class")||"")}ji.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function to(t,e){for(var n=Tr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function eo(t,e){for(var n=Tr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function kf(t){return function(){to(this,t)}}function Sf(t){return function(){eo(this,t)}}function Nf(t,e){return function(){(e.apply(this,arguments)?to:eo)(this,t)}}function no(t,e){var n=Ji(t+"");if(arguments.length<2){for(var r=Tr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Nf:e?kf:Sf)(n,e))}function Cf(){this.textContent=""}function Af(t){return function(){this.textContent=t}}function Df(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ro(t){return arguments.length?this.each(t==null?Cf:(typeof t=="function"?Df:Af)(t)):this.node().textContent}function Ef(){this.innerHTML=""}function If(t){return function(){this.innerHTML=t}}function Rf(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function io(t){return arguments.length?this.each(t==null?Ef:(typeof t=="function"?Rf:If)(t)):this.node().innerHTML}function Of(){this.nextSibling&&this.parentNode.appendChild(this)}function oo(){return this.each(Of)}function Pf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ao(){return this.each(Pf)}function zf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Nn&&e.documentElement.namespaceURI===Nn?e.createElement(t):e.createElementNS(n,t)}}function Yf(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function An(t){var e=At(t);return(e.local?Yf:zf)(e)}function so(t){var e=typeof t=="function"?t:An(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ff(){return null}function uo(t,e){var n=typeof t=="function"?t:An(t),r=e==null?Ff:typeof e=="function"?e:Qt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Uf(){var t=this.parentNode;t&&t.removeChild(this)}function fo(){return this.each(Uf)}function $f(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Bf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function lo(t){return this.select(t?Bf:$f)}function co(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Lf(t){return function(e){t.call(this,e,this.__data__)}}function Hf(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function qf(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function Xf(t,e,n){return function(){var r=this.__on,i,o=Lf(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function ho(t,e,n){var r=Hf(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var f=0,u=s.length,c;f<u;++f)for(i=0,c=s[f];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=e?Xf:qf,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function po(t,e,n){var r=Cn(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Wf(t,e){return function(){return po(this,t,e)}}function Vf(t,e){return function(){return po(this,t,e.apply(this,arguments))}}function mo(t,e){return this.each((typeof e=="function"?Vf:Wf)(t,e))}function*xo(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var kr=[null];function Z(t,e){this._groups=t,this._parents=e}function go(){return new Z([[document.documentElement]],kr)}function Gf(){return this}Z.prototype=go.prototype={constructor:Z,select:Di,selectAll:Ei,selectChild:Ii,selectChildren:Ri,filter:Oi,data:Yi,enter:Pi,exit:Fi,join:Ui,merge:$i,selection:Gf,order:Bi,sort:Li,call:Hi,nodes:qi,node:Xi,size:Wi,empty:Vi,each:Gi,attr:Zi,style:Qi,property:Ki,classed:no,text:ro,html:io,raise:oo,lower:ao,append:so,insert:uo,remove:fo,clone:lo,datum:co,on:ho,dispatch:mo,[Symbol.iterator]:xo};var Dt=go;function pt(t){return typeof t=="string"?new Z([[document.querySelector(t)]],[document.documentElement]):new Z([[t]],kr)}function _o(t){let e;for(;e=t.sourceEvent;)t=e;return t}function dt(t,e){if(t=_o(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Zf={value:()=>{}};function vo(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Dn(n)}function Dn(t){this._=t}function Qf(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Dn.prototype=vo.prototype={constructor:Dn,on:function(t,e){var n=this._,r=Qf(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=Kf(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=yo(n[i],t.name,e);else if(e==null)for(i in n)n[i]=yo(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Dn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function Kf(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function yo(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Zf,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var Et=vo;var wo={passive:!1},Kt={capture:!0,passive:!1};function En(t){t.stopImmediatePropagation()}function Ft(t){t.preventDefault(),t.stopImmediatePropagation()}function He(t){var e=t.document.documentElement,n=pt(t).on("dragstart.drag",Ft,Kt);"onselectstart"in e?n.on("selectstart.drag",Ft,Kt):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function qe(t,e){var n=t.document.documentElement,r=pt(t).on("dragstart.drag",null);e&&(r.on("click.drag",Ft,Kt),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Xe=t=>()=>t;function We(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:f,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}We.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Jf(t){return!t.ctrlKey&&!t.button}function jf(){return this.parentNode}function tl(t,e){return e??{x:t.x,y:t.y}}function el(){return navigator.maxTouchPoints||"ontouchstart"in this}function nl(){var t=Jf,e=jf,n=tl,r=el,i={},o=Et("start","drag","end"),a=0,s,f,u,c,p=0;function l(d){d.on("mousedown.drag",h).filter(r).on("touchstart.drag",_).on("touchmove.drag",m,wo).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(d,T){if(!(c||!t.call(this,d,T))){var v=M(this,e.call(this,d,T),d,T,"mouse");v&&(pt(d.view).on("mousemove.drag",y,Kt).on("mouseup.drag",g,Kt),He(d.view),En(d),u=!1,s=d.clientX,f=d.clientY,v("start",d))}}function y(d){if(Ft(d),!u){var T=d.clientX-s,v=d.clientY-f;u=T*T+v*v>p}i.mouse("drag",d)}function g(d){pt(d.view).on("mousemove.drag mouseup.drag",null),qe(d.view,u),Ft(d),i.mouse("end",d)}function _(d,T){if(t.call(this,d,T)){var v=d.changedTouches,S=e.call(this,d,T),I=v.length,F,P;for(F=0;F<I;++F)(P=M(this,S,d,T,v[F].identifier,v[F]))&&(En(d),P("start",d,v[F]))}}function m(d){var T=d.changedTouches,v=T.length,S,I;for(S=0;S<v;++S)(I=i[T[S].identifier])&&(Ft(d),I("drag",d,T[S]))}function w(d){var T=d.changedTouches,v=T.length,S,I;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),S=0;S<v;++S)(I=i[T[S].identifier])&&(En(d),I("end",d,T[S]))}function M(d,T,v,S,I,F){var P=o.copy(),Y=dt(F||v,T),C,A,x;if((x=n.call(d,new We("beforestart",{sourceEvent:v,target:l,identifier:I,active:a,x:Y[0],y:Y[1],dx:0,dy:0,dispatch:P}),S))!=null)return C=x.x-Y[0]||0,A=x.y-Y[1]||0,function N(b,D,R){var z=Y,O;switch(b){case"start":i[I]=N,O=a++;break;case"end":delete i[I],--a;case"drag":Y=dt(R||D,T),O=a;break}P.call(b,d,new We(b,{sourceEvent:D,subject:x,target:l,identifier:I,active:O,x:Y[0]+C,y:Y[1]+A,dx:Y[0]-z[0],dy:Y[1]-z[1],dispatch:P}),S)}}return l.filter=function(d){return arguments.length?(t=typeof d=="function"?d:Xe(!!d),l):t},l.container=function(d){return arguments.length?(e=typeof d=="function"?d:Xe(d),l):e},l.subject=function(d){return arguments.length?(n=typeof d=="function"?d:Xe(d),l):n},l.touchable=function(d){return arguments.length?(r=typeof d=="function"?d:Xe(!!d),l):r},l.on=function(){var d=o.on.apply(o,arguments);return d===o?l:d},l.clickDistance=function(d){return arguments.length?(p=(d=+d)*d,l):Math.sqrt(p)},l}function Jt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ge(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ut(){}var Ve=.7,On=1/Ve,_e="\\s*([+-]?\\d+)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rl=/^#([0-9a-f]{3,8})$/,il=new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`),ol=new RegExp(`^rgb\\(${Mt},${Mt},${Mt}\\)$`),al=new RegExp(`^rgba\\(${_e},${_e},${_e},${Ge}\\)$`),sl=new RegExp(`^rgba\\(${Mt},${Mt},${Mt},${Ge}\\)$`),ul=new RegExp(`^hsl\\(${Ge},${Mt},${Mt}\\)$`),fl=new RegExp(`^hsla\\(${Ge},${Mt},${Mt},${Ge}\\)$`),bo={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};Jt(Ut,_t,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Mo,formatHex:Mo,formatHex8:ll,formatHsl:cl,formatRgb:To,toString:To});function Mo(){return this.rgb().formatHex()}function ll(){return this.rgb().formatHex8()}function cl(){return Do(this).formatHsl()}function To(){return this.rgb().formatRgb()}function _t(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=rl.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?ko(e):n===3?new et(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?In(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?In(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=il.exec(t))?new et(e[1],e[2],e[3],1):(e=ol.exec(t))?new et(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=al.exec(t))?In(e[1],e[2],e[3],e[4]):(e=sl.exec(t))?In(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ul.exec(t))?Co(e[1],e[2]/100,e[3]/100,1):(e=fl.exec(t))?Co(e[1],e[2]/100,e[3]/100,e[4]):bo.hasOwnProperty(t)?ko(bo[t]):t==="transparent"?new et(NaN,NaN,NaN,0):null}function ko(t){return new et(t>>16&255,t>>8&255,t&255,1)}function In(t,e,n,r){return r<=0&&(t=e=n=NaN),new et(t,e,n,r)}function Nr(t){return t instanceof Ut||(t=_t(t)),t?(t=t.rgb(),new et(t.r,t.g,t.b,t.opacity)):new et}function ye(t,e,n,r){return arguments.length===1?Nr(t):new et(t,e,n,r??1)}function et(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Jt(et,ye,ge(Ut,{brighter(t){return t=t==null?On:Math.pow(On,t),new et(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ve:Math.pow(Ve,t),new et(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new et(te(this.r),te(this.g),te(this.b),Pn(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:So,formatHex:So,formatHex8:hl,formatRgb:No,toString:No}));function So(){return`#${jt(this.r)}${jt(this.g)}${jt(this.b)}`}function hl(){return`#${jt(this.r)}${jt(this.g)}${jt(this.b)}${jt((isNaN(this.opacity)?1:this.opacity)*255)}`}function No(){let t=Pn(this.opacity);return`${t===1?"rgb(":"rgba("}${te(this.r)}, ${te(this.g)}, ${te(this.b)}${t===1?")":`, ${t})`}`}function Pn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function te(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function jt(t){return t=te(t),(t<16?"0":"")+t.toString(16)}function Co(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new gt(t,e,n,r)}function Do(t){if(t instanceof gt)return new gt(t.h,t.s,t.l,t.opacity);if(t instanceof Ut||(t=_t(t)),!t)return new gt;if(t instanceof gt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,f=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=f<.5?o+i:2-o-i,a*=60):s=f>0&&f<1?0:a,new gt(a,s,f,t.opacity)}function Eo(t,e,n,r){return arguments.length===1?Do(t):new gt(t,e,n,r??1)}function gt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Jt(gt,Eo,ge(Ut,{brighter(t){return t=t==null?On:Math.pow(On,t),new gt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ve:Math.pow(Ve,t),new gt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new et(Sr(t>=240?t-240:t+120,i,r),Sr(t,i,r),Sr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new gt(Ao(this.h),Rn(this.s),Rn(this.l),Pn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Pn(this.opacity);return`${t===1?"hsl(":"hsla("}${Ao(this.h)}, ${Rn(this.s)*100}%, ${Rn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ao(t){return t=(t||0)%360,t<0?t+360:t}function Rn(t){return Math.max(0,Math.min(1,t||0))}function Sr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var Io=Math.PI/180,Ro=180/Math.PI;var zn=18,Oo=.96422,Po=1,zo=.82521,Yo=4/29,ve=6/29,Fo=3*ve*ve,pl=ve*ve*ve;function Uo(t){if(t instanceof Tt)return new Tt(t.l,t.a,t.b,t.opacity);if(t instanceof It)return $o(t);t instanceof et||(t=Nr(t));var e=Er(t.r),n=Er(t.g),r=Er(t.b),i=Cr((.2225045*e+.7168786*n+.0606169*r)/Po),o,a;return e===n&&n===r?o=a=i:(o=Cr((.4360747*e+.3850649*n+.1430804*r)/Oo),a=Cr((.0139322*e+.0971045*n+.7141733*r)/zo)),new Tt(116*i-16,500*(o-i),200*(i-a),t.opacity)}function Ir(t,e,n,r){return arguments.length===1?Uo(t):new Tt(t,e,n,r??1)}function Tt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Jt(Tt,Ir,ge(Ut,{brighter(t){return new Tt(this.l+zn*(t??1),this.a,this.b,this.opacity)},darker(t){return new Tt(this.l-zn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Oo*Ar(e),t=Po*Ar(t),n=zo*Ar(n),new et(Dr(3.1338561*e-1.6168667*t-.4906146*n),Dr(-.9787684*e+1.9161415*t+.033454*n),Dr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Cr(t){return t>pl?Math.pow(t,1/3):t/Fo+Yo}function Ar(t){return t>ve?t*t*t:Fo*(t-Yo)}function Dr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Er(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ml(t){if(t instanceof It)return new It(t.h,t.c,t.l,t.opacity);if(t instanceof Tt||(t=Uo(t)),t.a===0&&t.b===0)return new It(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ro;return new It(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ze(t,e,n,r){return arguments.length===1?ml(t):new It(t,e,n,r??1)}function It(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function $o(t){if(isNaN(t.h))return new Tt(t.l,0,0,t.opacity);var e=t.h*Io;return new Tt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Jt(It,Ze,ge(Ut,{brighter(t){return new It(this.h,this.c,this.l+zn*(t??1),this.opacity)},darker(t){return new It(this.h,this.c,this.l-zn*(t??1),this.opacity)},rgb(){return $o(this).rgb()}}));var we=t=>()=>t;function Bo(t,e){return function(n){return t+n*e}}function dl(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Lo(t,e){var n=e-t;return n?Bo(t,n>180||n<-180?n-360*Math.round(n/360):n):we(isNaN(t)?e:t)}function Ho(t){return(t=+t)==1?Rt:function(e,n){return n-e?dl(e,n,t):we(isNaN(e)?n:e)}}function Rt(t,e){var n=e-t;return n?Bo(t,n):we(isNaN(t)?e:t)}function qo(t){return function(e,n){var r=t((e=Ze(e)).h,(n=Ze(n)).h),i=Rt(e.c,n.c),o=Rt(e.l,n.l),a=Rt(e.opacity,n.opacity);return function(s){return e.h=r(s),e.c=i(s),e.l=o(s),e.opacity=a(s),e+""}}}var xl=qo(Lo),gl=qo(Rt);function Rr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Xo(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return Rr((n-r/e)*e,a,i,o,s)}}function Wo(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return Rr((n-r/e)*e,i,o,a,s)}}var ee=(function t(e){var n=Ho(e);function r(i,o){var a=n((i=ye(i)).r,(o=ye(o)).r),s=n(i.g,o.g),f=n(i.b,o.b),u=Rt(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=f(c),i.opacity=u(c),i+""}}return r.gamma=t,r})(1);function Vo(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=ye(e[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=t(r),i=t(i),o=t(o),s.opacity=1,function(f){return s.r=r(f),s.g=i(f),s.b=o(f),s+""}}}var _l=Vo(Xo),yl=Vo(Wo);function Go(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Zo(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Qo(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=ne(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Ko(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function nt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Jo(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=ne(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Pr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Or=new RegExp(Pr.source,"g");function vl(t){return function(){return t}}function wl(t){return function(e){return t(e)+""}}function Qe(t,e){var n=Pr.lastIndex=Or.lastIndex=0,r,i,o,a=-1,s=[],f=[];for(t=t+"",e=e+"";(r=Pr.exec(t))&&(i=Or.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,f.push({i:a,x:nt(r,i)})),n=Or.lastIndex;return n<e.length&&(o=e.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?f[0]?wl(f[0].x):vl(e):(e=f.length,function(u){for(var c=0,p;c<e;++c)s[(p=f[c]).i]=p.x(u);return s.join("")})}function ne(t,e){var n=typeof e,r;return e==null||n==="boolean"?we(e):(n==="number"?nt:n==="string"?(r=_t(e))?(e=r,ee):Qe:e instanceof _t?ee:e instanceof Date?Ko:Zo(e)?Go:Array.isArray(e)?Qo:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Jo:nt)(t,e)}function zr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var jo=180/Math.PI,Yn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Yr(t,e,n,r,i,o){var a,s,f;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(f=t*n+e*r)&&(n-=t*f,r-=e*f),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,f/=s),t*r<e*n&&(t=-t,e=-e,f=-f,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*jo,skewX:Math.atan(f)*jo,scaleX:a,scaleY:s}}var Fn;function ta(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Yn:Yr(e.a,e.b,e.c,e.d,e.e,e.f)}function ea(t){return t==null?Yn:(Fn||(Fn=document.createElementNS("http://www.w3.org/2000/svg","g")),Fn.setAttribute("transform",t),(t=Fn.transform.baseVal.consolidate())?(t=t.matrix,Yr(t.a,t.b,t.c,t.d,t.e,t.f)):Yn)}function na(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,p,l,h,y){if(u!==p||c!==l){var g=h.push("translate(",null,e,null,n);y.push({i:g-4,x:nt(u,p)},{i:g-2,x:nt(c,l)})}else(p||l)&&h.push("translate("+p+e+l+n)}function a(u,c,p,l){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),l.push({i:p.push(i(p)+"rotate(",null,r)-2,x:nt(u,c)})):c&&p.push(i(p)+"rotate("+c+r)}function s(u,c,p,l){u!==c?l.push({i:p.push(i(p)+"skewX(",null,r)-2,x:nt(u,c)}):c&&p.push(i(p)+"skewX("+c+r)}function f(u,c,p,l,h,y){if(u!==p||c!==l){var g=h.push(i(h)+"scale(",null,",",null,")");y.push({i:g-4,x:nt(u,p)},{i:g-2,x:nt(c,l)})}else(p!==1||l!==1)&&h.push(i(h)+"scale("+p+","+l+")")}return function(u,c){var p=[],l=[];return u=t(u),c=t(c),o(u.translateX,u.translateY,c.translateX,c.translateY,p,l),a(u.rotate,c.rotate,p,l),s(u.skewX,c.skewX,p,l),f(u.scaleX,u.scaleY,c.scaleX,c.scaleY,p,l),u=c=null,function(h){for(var y=-1,g=l.length,_;++y<g;)p[(_=l[y]).i]=_.x(h);return p.join("")}}}var Fr=na(ta,"px, ","px)","deg)"),Ur=na(ea,", ",")",")");var bl=1e-12;function ra(t){return((t=Math.exp(t))+1/t)/2}function Ml(t){return((t=Math.exp(t))-1/t)/2}function Tl(t){return((t=Math.exp(2*t))-1)/(t+1)}var $r=(function t(e,n,r){function i(o,a){var s=o[0],f=o[1],u=o[2],c=a[0],p=a[1],l=a[2],h=c-s,y=p-f,g=h*h+y*y,_,m;if(g<bl)m=Math.log(l/u)/e,_=function(S){return[s+S*h,f+S*y,u*Math.exp(e*S*m)]};else{var w=Math.sqrt(g),M=(l*l-u*u+r*g)/(2*u*n*w),d=(l*l-u*u-r*g)/(2*l*n*w),T=Math.log(Math.sqrt(M*M+1)-M),v=Math.log(Math.sqrt(d*d+1)-d);m=(v-T)/e,_=function(S){var I=S*m,F=ra(T),P=u/(n*w)*(F*Tl(e*I+T)-Ml(T));return[s+P*h,f+P*y,u*F/ra(e*I+T)]}}return _.duration=m*1e3*e/Math.SQRT2,_}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,f=s*s;return t(a,s,f)},i})(Math.SQRT2,2,4);function kl(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var o,a=n.length,s,f=0,u=0;for(o=0;o<a;++o)s=n[o],f+=s.x,u+=s.y;for(f=(f/a-t)*r,u=(u/a-e)*r,o=0;o<a;++o)s=n[o],s.x-=f,s.y-=u}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(t=+o,i):t},i.y=function(o){return arguments.length?(e=+o,i):e},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function ia(t){let e=+this._x.call(null,t),n=+this._y.call(null,t);return oa(this.cover(e,n),e,n,t)}function oa(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o=t._root,a={data:r},s=t._x0,f=t._y0,u=t._x1,c=t._y1,p,l,h,y,g,_,m,w;if(!o)return t._root=a,t;for(;o.length;)if((g=e>=(p=(s+u)/2))?s=p:u=p,(_=n>=(l=(f+c)/2))?f=l:c=l,i=o,!(o=o[m=_<<1|g]))return i[m]=a,t;if(h=+t._x.call(null,o.data),y=+t._y.call(null,o.data),e===h&&n===y)return a.next=o,i?i[m]=a:t._root=a,t;do i=i?i[m]=new Array(4):t._root=new Array(4),(g=e>=(p=(s+u)/2))?s=p:u=p,(_=n>=(l=(f+c)/2))?f=l:c=l;while((m=_<<1|g)===(w=(y>=l)<<1|h>=p));return i[w]=o,i[m]=a,t}function aa(t){var e,n,r=t.length,i,o,a=new Array(r),s=new Array(r),f=1/0,u=1/0,c=-1/0,p=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(a[n]=i,s[n]=o,i<f&&(f=i),i>c&&(c=i),o<u&&(u=o),o>p&&(p=o));if(f>c||u>p)return this;for(this.cover(f,u).cover(c,p),n=0;n<r;++n)oa(this,a[n],s[n],t[n]);return this}function sa(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a=i-n||1,s=this._root,f,u;n>t||t>=i||r>e||e>=o;)switch(u=(e<r)<<1|t<n,f=new Array(4),f[u]=s,s=f,a*=2,u){case 0:i=n+a,o=r+a;break;case 1:n=i-a,o=r+a;break;case 2:i=n+a,r=o-a;break;case 3:n=i-a,r=o-a;break}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function ua(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function fa(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function K(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function la(t,e,n){var r,i=this._x0,o=this._y0,a,s,f,u,c=this._x1,p=this._y1,l=[],h=this._root,y,g;for(h&&l.push(new K(h,i,o,c,p)),n==null?n=1/0:(i=t-n,o=e-n,c=t+n,p=e+n,n*=n);y=l.pop();)if(!(!(h=y.node)||(a=y.x0)>c||(s=y.y0)>p||(f=y.x1)<i||(u=y.y1)<o))if(h.length){var _=(a+f)/2,m=(s+u)/2;l.push(new K(h[3],_,m,f,u),new K(h[2],a,m,_,u),new K(h[1],_,s,f,m),new K(h[0],a,s,_,m)),(g=(e>=m)<<1|t>=_)&&(y=l[l.length-1],l[l.length-1]=l[l.length-1-g],l[l.length-1-g]=y)}else{var w=t-+this._x.call(null,h.data),M=e-+this._y.call(null,h.data),d=w*w+M*M;if(d<n){var T=Math.sqrt(n=d);i=t-T,o=e-T,c=t+T,p=e+T,r=h.data}}return r}function ca(t){if(isNaN(c=+this._x.call(null,t))||isNaN(p=+this._y.call(null,t)))return this;var e,n=this._root,r,i,o,a=this._x0,s=this._y0,f=this._x1,u=this._y1,c,p,l,h,y,g,_,m;if(!n)return this;if(n.length)for(;;){if((y=c>=(l=(a+f)/2))?a=l:f=l,(g=p>=(h=(s+u)/2))?s=h:u=h,e=n,!(n=n[_=g<<1|y]))return this;if(!n.length)break;(e[_+1&3]||e[_+2&3]||e[_+3&3])&&(r=e,m=_)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):e?(o?e[_]=o:delete e[_],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[m]=n:this._root=n),this):(this._root=o,this)}function ha(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function pa(){return this._root}function ma(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function da(t){var e=[],n,r=this._root,i,o,a,s,f;for(r&&e.push(new K(r,this._x0,this._y0,this._x1,this._y1));n=e.pop();)if(!t(r=n.node,o=n.x0,a=n.y0,s=n.x1,f=n.y1)&&r.length){var u=(o+s)/2,c=(a+f)/2;(i=r[3])&&e.push(new K(i,u,c,s,f)),(i=r[2])&&e.push(new K(i,o,c,u,f)),(i=r[1])&&e.push(new K(i,u,a,s,c)),(i=r[0])&&e.push(new K(i,o,a,u,c))}return this}function xa(t){var e=[],n=[],r;for(this._root&&e.push(new K(this._root,this._x0,this._y0,this._x1,this._y1));r=e.pop();){var i=r.node;if(i.length){var o,a=r.x0,s=r.y0,f=r.x1,u=r.y1,c=(a+f)/2,p=(s+u)/2;(o=i[0])&&e.push(new K(o,a,s,c,p)),(o=i[1])&&e.push(new K(o,c,s,f,p)),(o=i[2])&&e.push(new K(o,a,p,c,u)),(o=i[3])&&e.push(new K(o,c,p,f,u))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function ga(t){return t[0]}function _a(t){return arguments.length?(this._x=t,this):this._x}function ya(t){return t[1]}function va(t){return arguments.length?(this._y=t,this):this._y}function re(t,e,n){var r=new Br(e??ga,n??ya,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function Br(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function wa(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var ut=re.prototype=Br.prototype;ut.copy=function(){var t=new Br(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=wa(e),t;for(n=[{source:e,target:t._root=new Array(4)}];e=n.pop();)for(var i=0;i<4;++i)(r=e.source[i])&&(r.length?n.push({source:r,target:e.target[i]=new Array(4)}):e.target[i]=wa(r));return t};ut.add=ia;ut.addAll=aa;ut.cover=sa;ut.data=ua;ut.extent=fa;ut.find=la;ut.remove=ca;ut.removeAll=ha;ut.root=pa;ut.size=ma;ut.visit=da;ut.visitAfter=xa;ut.x=_a;ut.y=va;function kt(t){return function(){return t}}function yt(t){return(t()-.5)*1e-6}function Sl(t){return t.x+t.vx}function Nl(t){return t.y+t.vy}function Cl(t){var e,n,r,i=1,o=1;typeof t!="function"&&(t=kt(t==null?1:+t));function a(){for(var u,c=e.length,p,l,h,y,g,_,m=0;m<o;++m)for(p=re(e,Sl,Nl).visitAfter(s),u=0;u<c;++u)l=e[u],g=n[l.index],_=g*g,h=l.x+l.vx,y=l.y+l.vy,p.visit(w);function w(M,d,T,v,S){var I=M.data,F=M.r,P=g+F;if(I){if(I.index>l.index){var Y=h-I.x-I.vx,C=y-I.y-I.vy,A=Y*Y+C*C;A<P*P&&(Y===0&&(Y=yt(r),A+=Y*Y),C===0&&(C=yt(r),A+=C*C),A=(P-(A=Math.sqrt(A)))/A*i,l.vx+=(Y*=A)*(P=(F*=F)/(_+F)),l.vy+=(C*=A)*P,I.vx-=Y*(P=1-P),I.vy-=C*P)}return}return d>h+P||v<h-P||T>y+P||S<y-P}}function s(u){if(u.data)return u.r=n[u.data.index];for(var c=u.r=0;c<4;++c)u[c]&&u[c].r>u.r&&(u.r=u[c].r)}function f(){if(e){var u,c=e.length,p;for(n=new Array(c),u=0;u<c;++u)p=e[u],n[p.index]=+t(p,u,e)}}return a.initialize=function(u,c){e=u,r=c,f()},a.iterations=function(u){return arguments.length?(o=+u,a):o},a.strength=function(u){return arguments.length?(i=+u,a):i},a.radius=function(u){return arguments.length?(t=typeof u=="function"?u:kt(+u),f(),a):t},a}function Al(t){return t.index}function ba(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function Dl(t){var e=Al,n=p,r,i=kt(30),o,a,s,f,u,c=1;t==null&&(t=[]);function p(_){return 1/Math.min(s[_.source.index],s[_.target.index])}function l(_){for(var m=0,w=t.length;m<c;++m)for(var M=0,d,T,v,S,I,F,P;M<w;++M)d=t[M],T=d.source,v=d.target,S=v.x+v.vx-T.x-T.vx||yt(u),I=v.y+v.vy-T.y-T.vy||yt(u),F=Math.sqrt(S*S+I*I),F=(F-o[M])/F*_*r[M],S*=F,I*=F,v.vx-=S*(P=f[M]),v.vy-=I*P,T.vx+=S*(P=1-P),T.vy+=I*P}function h(){if(a){var _,m=a.length,w=t.length,M=new Map(a.map((T,v)=>[e(T,v,a),T])),d;for(_=0,s=new Array(m);_<w;++_)d=t[_],d.index=_,typeof d.source!="object"&&(d.source=ba(M,d.source)),typeof d.target!="object"&&(d.target=ba(M,d.target)),s[d.source.index]=(s[d.source.index]||0)+1,s[d.target.index]=(s[d.target.index]||0)+1;for(_=0,f=new Array(w);_<w;++_)d=t[_],f[_]=s[d.source.index]/(s[d.source.index]+s[d.target.index]);r=new Array(w),y(),o=new Array(w),g()}}function y(){if(a)for(var _=0,m=t.length;_<m;++_)r[_]=+n(t[_],_,t)}function g(){if(a)for(var _=0,m=t.length;_<m;++_)o[_]=+i(t[_],_,t)}return l.initialize=function(_,m){a=_,u=m,h()},l.links=function(_){return arguments.length?(t=_,h(),l):t},l.id=function(_){return arguments.length?(e=_,l):e},l.iterations=function(_){return arguments.length?(c=+_,l):c},l.strength=function(_){return arguments.length?(n=typeof _=="function"?_:kt(+_),y(),l):n},l.distance=function(_){return arguments.length?(i=typeof _=="function"?_:kt(+_),g(),l):i},l}var be=0,Je=0,Ke=0,Ta=1e3,Un,je,$n=0,ie=0,Bn=0,tn=typeof performance=="object"&&performance.now?performance:Date,ka=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function nn(){return ie||(ka(El),ie=tn.now()+Bn)}function El(){ie=0}function en(){this._call=this._time=this._next=null}en.prototype=Me.prototype={constructor:en,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?nn():+n)+(e==null?0:+e),!this._next&&je!==this&&(je?je._next=this:Un=this,je=this),this._call=t,this._time=n,Lr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lr())}};function Me(t,e,n){var r=new en;return r.restart(t,e,n),r}function Sa(){nn(),++be;for(var t=Un,e;t;)(e=ie-t._time)>=0&&t._call.call(void 0,e),t=t._next;--be}function Ma(){ie=($n=tn.now())+Bn,be=Je=0;try{Sa()}finally{be=0,Rl(),ie=0}}function Il(){var t=tn.now(),e=t-$n;e>Ta&&(Bn-=e,$n=t)}function Rl(){for(var t,e=Un,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Un=n);je=t,Lr(r)}function Lr(t){if(!be){Je&&(Je=clearTimeout(Je));var e=t-ie;e>24?(t<1/0&&(Je=setTimeout(Ma,t-tn.now()-Bn)),Ke&&(Ke=clearInterval(Ke))):(Ke||($n=tn.now(),Ke=setInterval(Il,Ta)),be=1,ka(Ma))}}function Ln(t,e,n){var r=new en;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}function Na(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}function Ca(t){return t.x}function Aa(t){return t.y}var Ol=10,Pl=Math.PI*(3-Math.sqrt(5));function zl(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,f=Me(p),u=Et("tick","end"),c=Na();t==null&&(t=[]);function p(){l(),u.call("tick",e),n<r&&(f.stop(),u.call("end",e))}function l(g){var _,m=t.length,w;g===void 0&&(g=1);for(var M=0;M<g;++M)for(n+=(o-n)*i,s.forEach(function(d){d(n)}),_=0;_<m;++_)w=t[_],w.fx==null?w.x+=w.vx*=a:(w.x=w.fx,w.vx=0),w.fy==null?w.y+=w.vy*=a:(w.y=w.fy,w.vy=0);return e}function h(){for(var g=0,_=t.length,m;g<_;++g){if(m=t[g],m.index=g,m.fx!=null&&(m.x=m.fx),m.fy!=null&&(m.y=m.fy),isNaN(m.x)||isNaN(m.y)){var w=Ol*Math.sqrt(.5+g),M=g*Pl;m.x=w*Math.cos(M),m.y=w*Math.sin(M)}(isNaN(m.vx)||isNaN(m.vy))&&(m.vx=m.vy=0)}}function y(g){return g.initialize&&g.initialize(t,c),g}return h(),e={tick:l,restart:function(){return f.restart(p),e},stop:function(){return f.stop(),e},nodes:function(g){return arguments.length?(t=g,h(),s.forEach(y),e):t},alpha:function(g){return arguments.length?(n=+g,e):n},alphaMin:function(g){return arguments.length?(r=+g,e):r},alphaDecay:function(g){return arguments.length?(i=+g,e):+i},alphaTarget:function(g){return arguments.length?(o=+g,e):o},velocityDecay:function(g){return arguments.length?(a=1-g,e):1-a},randomSource:function(g){return arguments.length?(c=g,s.forEach(y),e):c},force:function(g,_){return arguments.length>1?(_==null?s.delete(g):s.set(g,y(_)),e):s.get(g)},find:function(g,_,m){var w=0,M=t.length,d,T,v,S,I;for(m==null?m=1/0:m*=m,w=0;w<M;++w)S=t[w],d=g-S.x,T=_-S.y,v=d*d+T*T,v<m&&(I=S,m=v);return I},on:function(g,_){return arguments.length>1?(u.on(g,_),e):u.on(g)}}}function Yl(){var t,e,n,r,i=kt(-30),o,a=1,s=1/0,f=.81;function u(h){var y,g=t.length,_=re(t,Ca,Aa).visitAfter(p);for(r=h,y=0;y<g;++y)e=t[y],_.visit(l)}function c(){if(t){var h,y=t.length,g;for(o=new Array(y),h=0;h<y;++h)g=t[h],o[g.index]=+i(g,h,t)}}function p(h){var y=0,g,_,m=0,w,M,d;if(h.length){for(w=M=d=0;d<4;++d)(g=h[d])&&(_=Math.abs(g.value))&&(y+=g.value,m+=_,w+=_*g.x,M+=_*g.y);h.x=w/m,h.y=M/m}else{g=h,g.x=g.data.x,g.y=g.data.y;do y+=o[g.data.index];while(g=g.next)}h.value=y}function l(h,y,g,_){if(!h.value)return!0;var m=h.x-e.x,w=h.y-e.y,M=_-y,d=m*m+w*w;if(M*M/f<d)return d<s&&(m===0&&(m=yt(n),d+=m*m),w===0&&(w=yt(n),d+=w*w),d<a&&(d=Math.sqrt(a*d)),e.vx+=m*h.value*r/d,e.vy+=w*h.value*r/d),!0;if(h.length||d>=s)return;(h.data!==e||h.next)&&(m===0&&(m=yt(n),d+=m*m),w===0&&(w=yt(n),d+=w*w),d<a&&(d=Math.sqrt(a*d)));do h.data!==e&&(M=o[h.data.index]*r/d,e.vx+=m*M,e.vy+=w*M);while(h=h.next)}return u.initialize=function(h,y){t=h,n=y,c()},u.strength=function(h){return arguments.length?(i=typeof h=="function"?h:kt(+h),c(),u):i},u.distanceMin=function(h){return arguments.length?(a=h*h,u):Math.sqrt(a)},u.distanceMax=function(h){return arguments.length?(s=h*h,u):Math.sqrt(s)},u.theta=function(h){return arguments.length?(f=h*h,u):Math.sqrt(f)},u}function Da(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function oe(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function St(t){return t=oe(Math.abs(t)),t?t[1]:NaN}function Ea(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],f=0;i>0&&s>0&&(f+s+1>r&&(s=Math.max(1,r-f)),o.push(n.substring(i-=s,i+s)),!((f+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function Ia(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Fl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $t(t){if(!(e=Fl.exec(t)))throw new Error("invalid format: "+t);var e;return new Hn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}$t.prototype=Hn.prototype;function Hn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Hn.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 Ra(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var rn;function Oa(t,e){var n=oe(t,e);if(!n)return rn=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(rn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+oe(t,Math.max(0,e+o-1))[0]}function Hr(t,e){var n=oe(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var qr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Da,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Hr(t*100,e),r:Hr,s:Oa,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Xr(t){return t}var Pa=Array.prototype.map,za=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Ya(t){var e=t.grouping===void 0||t.thousands===void 0?Xr:Ea(Pa.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Xr:Ia(Pa.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",f=t.nan===void 0?"NaN":t.nan+"";function u(p,l){p=$t(p);var h=p.fill,y=p.align,g=p.sign,_=p.symbol,m=p.zero,w=p.width,M=p.comma,d=p.precision,T=p.trim,v=p.type;v==="n"?(M=!0,v="g"):qr[v]||(d===void 0&&(d=12),T=!0,v="g"),(m||h==="0"&&y==="=")&&(m=!0,h="0",y="=");var S=(l&&l.prefix!==void 0?l.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),I=(_==="$"?r:/[%p]/.test(v)?a:"")+(l&&l.suffix!==void 0?l.suffix:""),F=qr[v],P=/[defgprs%]/.test(v);d=d===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d));function Y(C){var A=S,x=I,N,b,D;if(v==="c")x=F(C)+x,C="";else{C=+C;var R=C<0||1/C<0;if(C=isNaN(C)?f:F(Math.abs(C),d),T&&(C=Ra(C)),R&&+C==0&&g!=="+"&&(R=!1),A=(R?g==="("?g:s:g==="-"||g==="("?"":g)+A,x=(v==="s"&&!isNaN(C)&&rn!==void 0?za[8+rn/3]:"")+x+(R&&g==="("?")":""),P){for(N=-1,b=C.length;++N<b;)if(D=C.charCodeAt(N),48>D||D>57){x=(D===46?i+C.slice(N+1):C.slice(N))+x,C=C.slice(0,N);break}}}M&&!m&&(C=e(C,1/0));var z=A.length+C.length+x.length,O=z<w?new Array(w-z+1).join(h):"";switch(M&&m&&(C=e(O+C,O.length?w-x.length:1/0),O=""),y){case"<":C=A+C+x+O;break;case"=":C=A+O+C+x;break;case"^":C=O.slice(0,z=O.length>>1)+A+C+x+O.slice(z);break;default:C=O+A+C+x;break}return o(C)}return Y.toString=function(){return p+""},Y}function c(p,l){var h=Math.max(-8,Math.min(8,Math.floor(St(l)/3)))*3,y=Math.pow(10,-h),g=u((p=$t(p),p.type="f",p),{suffix:za[8+h/3]});return function(_){return g(y*_)}}return{format:u,formatPrefix:c}}var qn,Xn,Wn;Wr({thousands:",",grouping:[3],currency:["$",""]});function Wr(t){return qn=Ya(t),Xn=qn.format,Wn=qn.formatPrefix,qn}function Vr(t){return Math.max(0,-St(Math.abs(t)))}function Gr(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(St(e)/3)))*3-St(Math.abs(t)))}function Zr(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,St(e)-St(t))+1}function Ul(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Fa(){return this.eachAfter(Ul)}function Ua(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}function $a(t,e){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(t.call(e,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function Ba(t,e){for(var n=this,r=[n],i=[],o,a,s,f=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a<s;++a)r.push(o[a]);for(;n=i.pop();)t.call(e,n,++f,this);return this}function La(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r}function Ha(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function qa(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Xa(t){for(var e=this,n=$l(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function $l(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function Wa(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Va(){return Array.from(this)}function Ga(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Za(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Qa(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function Vn(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=Hl)):e===void 0&&(e=Ll);for(var n=new on(t),r,i=[n],o,a,s,f;r=i.pop();)if((a=e(r.data))&&(f=(a=Array.from(a)).length))for(r.children=a,s=f-1;s>=0;--s)i.push(o=a[s]=new on(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Xl)}function Bl(){return Vn(this).eachBefore(ql)}function Ll(t){return t.children}function Hl(t){return Array.isArray(t)?t[1]:null}function ql(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Xl(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function on(t){this.data=t,this.depth=this.height=0,this.parent=null}on.prototype=Vn.prototype={constructor:on,count:Fa,each:Ua,eachAfter:Ba,eachBefore:$a,find:La,sum:Ha,sort:qa,path:Xa,ancestors:Wa,descendants:Va,leaves:Ga,links:Za,copy:Bl,[Symbol.iterator]:Qa};function Ka(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ja(t,e,n,r,i){for(var o=t.children,a,s=-1,f=o.length,u=t.value&&(r-e)/t.value;++s<f;)a=o[s],a.y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*u}function ja(t,e,n,r,i){for(var o=t.children,a,s=-1,f=o.length,u=t.value&&(i-n)/t.value;++s<f;)a=o[s],a.x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*u}var Wl=(1+Math.sqrt(5))/2;function Vl(t,e,n,r,i,o){for(var a=[],s=e.children,f,u,c=0,p=0,l=s.length,h,y,g=e.value,_,m,w,M,d,T,v;c<l;){h=i-n,y=o-r;do _=s[p++].value;while(!_&&p<l);for(m=w=_,T=Math.max(y/h,h/y)/(g*t),v=_*_*T,d=Math.max(w/v,v/m);p<l;++p){if(_+=u=s[p].value,u<m&&(m=u),u>w&&(w=u),v=_*_*T,M=Math.max(w/v,v/m),M>d){_-=u;break}d=M}a.push(f={value:_,dice:h<y,children:s.slice(c,p)}),f.dice?Ja(f,n,r,i,g?r+=y*_/g:o):ja(f,n,r,g?n+=h*_/g:i,o),g-=_,c=p}return a}var ts=(function t(e){function n(r,i,o,a,s){Vl(e,r,i,o,a,s)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(Wl);function es(t){if(typeof t!="function")throw new Error;return t}function Te(){return 0}function ke(t){return function(){return t}}function Gl(){var t=ts,e=!1,n=1,r=1,i=[0],o=Te,a=Te,s=Te,f=Te,u=Te;function c(l){return l.x0=l.y0=0,l.x1=n,l.y1=r,l.eachBefore(p),i=[0],e&&l.eachBefore(Ka),l}function p(l){var h=i[l.depth],y=l.x0+h,g=l.y0+h,_=l.x1-h,m=l.y1-h;_<y&&(y=_=(y+_)/2),m<g&&(g=m=(g+m)/2),l.x0=y,l.y0=g,l.x1=_,l.y1=m,l.children&&(h=i[l.depth+1]=o(l)/2,y+=u(l)-h,g+=a(l)-h,_-=s(l)-h,m-=f(l)-h,_<y&&(y=_=(y+_)/2),m<g&&(g=m=(g+m)/2),t(l,y,g,_,m))}return c.round=function(l){return arguments.length?(e=!!l,c):e},c.size=function(l){return arguments.length?(n=+l[0],r=+l[1],c):[n,r]},c.tile=function(l){return arguments.length?(t=es(l),c):t},c.padding=function(l){return arguments.length?c.paddingInner(l).paddingOuter(l):c.paddingInner()},c.paddingInner=function(l){return arguments.length?(o=typeof l=="function"?l:ke(+l),c):o},c.paddingOuter=function(l){return arguments.length?c.paddingTop(l).paddingRight(l).paddingBottom(l).paddingLeft(l):c.paddingTop()},c.paddingTop=function(l){return arguments.length?(a=typeof l=="function"?l:ke(+l),c):a},c.paddingRight=function(l){return arguments.length?(s=typeof l=="function"?l:ke(+l),c):s},c.paddingBottom=function(l){return arguments.length?(f=typeof l=="function"?l:ke(+l),c):f},c.paddingLeft=function(l){return arguments.length?(u=typeof l=="function"?l:ke(+l),c):u},c}function Bt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Qr=Symbol("implicit");function an(){var t=new de,e=[],n=[],r=Qr;function i(o){let a=t.get(o);if(a===void 0){if(r!==Qr)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new de;for(let a of o)t.has(a)||t.set(a,e.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return an(e,n).unknown(r)},Bt.apply(i,arguments),i}function Kr(){var t=an().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,a,s=!1,f=0,u=0,c=.5;delete t.unknown;function p(){var l=e().length,h=i<r,y=h?i:r,g=h?r:i;o=(g-y)/Math.max(1,l-f+u*2),s&&(o=Math.floor(o)),y+=(g-y-o*(l-f))*c,a=o*(1-f),s&&(y=Math.round(y),a=Math.round(a));var _=bn(l).map(function(m){return y+o*m});return n(h?_.reverse():_)}return t.domain=function(l){return arguments.length?(e(l),p()):e()},t.range=function(l){return arguments.length?([r,i]=l,r=+r,i=+i,p()):[r,i]},t.rangeRound=function(l){return[r,i]=l,r=+r,i=+i,s=!0,p()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(l){return arguments.length?(s=!!l,p()):s},t.padding=function(l){return arguments.length?(f=Math.min(1,u=+l),p()):f},t.paddingInner=function(l){return arguments.length?(f=Math.min(1,l),p()):f},t.paddingOuter=function(l){return arguments.length?(u=+l,p()):u},t.align=function(l){return arguments.length?(c=Math.max(0,Math.min(1,l)),p()):c},t.copy=function(){return Kr(e(),[r,i]).round(s).paddingInner(f).paddingOuter(u).align(c)},Bt.apply(p(),arguments)}function Jr(t){return function(){return t}}function jr(t){return+t}var ns=[0,1];function Se(t){return t}function ti(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Jr(isNaN(e)?NaN:.5)}function Zl(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Ql(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=ti(i,r),o=n(a,o)):(r=ti(r,i),o=n(o,a)),function(s){return o(r(s))}}function Kl(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=ti(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(s){var f=yr(t,s,1,r)-1;return o[f](i[f](s))}}function Gn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Jl(){var t=ns,e=ns,n=ne,r,i,o,a=Se,s,f,u;function c(){var l=Math.min(t.length,e.length);return a!==Se&&(a=Zl(t[0],t[l-1])),s=l>2?Kl:Ql,f=u=null,p}function p(l){return l==null||isNaN(l=+l)?o:(f||(f=s(t.map(r),e,n)))(r(a(l)))}return p.invert=function(l){return a(i((u||(u=s(e,t.map(r),nt)))(l)))},p.domain=function(l){return arguments.length?(t=Array.from(l,jr),c()):t.slice()},p.range=function(l){return arguments.length?(e=Array.from(l),c()):e.slice()},p.rangeRound=function(l){return e=Array.from(l),n=zr,c()},p.clamp=function(l){return arguments.length?(a=l?!0:Se,c()):a!==Se},p.interpolate=function(l){return arguments.length?(n=l,c()):n},p.unknown=function(l){return arguments.length?(o=l,p):o},function(l,h){return r=l,i=h,c()}}function sn(){return Jl()(Se,Se)}function ei(t,e,n,r){var i=xe(t,e,n),o;switch(r=$t(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Gr(i,a))&&(r.precision=o),Wn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Zr(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Vr(i))&&(r.precision=o-(r.type==="%")*2);break}}return Xn(r)}function jl(t){var e=t.domain;return t.ticks=function(n){var r=e();return wn(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return ei(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],f,u,c=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);c-- >0;){if(u=Ue(a,s,n),u===f)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;f=u}return t},t}function ni(){var t=sn();return t.copy=function(){return Gn(t,ni())},Bt.apply(t,arguments),jl(t)}var ri=new Date,ii=new Date;function q(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{let f=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return f;let u;do f.push(u=new Date(+o)),e(o,s),t(o);while(u<o&&o<a);return f},i.filter=o=>q(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(ri.setTime(+o),ii.setTime(+a),t(ri),t(ii),Math.floor(n(ri,ii))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}var ae=q(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ae.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?q(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ae);var rs=ae.range;var Nt=q(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),is=Nt.range;var Ne=q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),tc=Ne.range,Zn=q(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),ec=Zn.range;var Ce=q(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),nc=Ce.range,Qn=q(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),rc=Qn.range;var Ot=q(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),ic=Ot.range,fn=q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),oc=fn.range,Kn=q(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),ac=Kn.range;function fe(t){return q(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var Pt=fe(0),Ae=fe(1),as=fe(2),ss=fe(3),Lt=fe(4),us=fe(5),fs=fe(6),ls=Pt.range,sc=Ae.range,uc=as.range,fc=ss.range,lc=Lt.range,cc=us.range,hc=fs.range;function le(t){return q(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var ce=le(0),De=le(1),cs=le(2),hs=le(3),Ht=le(4),ps=le(5),ms=le(6),ds=ce.range,pc=De.range,mc=cs.range,dc=hs.range,xc=Ht.range,gc=ps.range,_c=ms.range;var Ee=q(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),yc=Ee.range,Jn=q(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),vc=Jn.range;var mt=q(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:q(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var wc=mt.range,vt=q(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:q(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var bc=vt.range;function gs(t,e,n,r,i,o){let a=[[Nt,1,1e3],[Nt,5,5*1e3],[Nt,15,15*1e3],[Nt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(u,c,p){let l=c<u;l&&([u,c]=[c,u]);let h=p&&typeof p.range=="function"?p:f(u,c,p),y=h?h.range(u,+c+1):[];return l?y.reverse():y}function f(u,c,p){let l=Math.abs(c-u)/p,h=Zt(([,,_])=>_).right(a,l);if(h===a.length)return t.every(xe(u/31536e6,c/31536e6,p));if(h===0)return ae.every(Math.max(xe(u,c,p),1));let[y,g]=a[l/a[h-1][2]<a[h][2]/l?h-1:h];return y.every(g)}return[s,f]}var[Tc,kc]=gs(vt,Jn,ce,Kn,Qn,Zn),[oi,ai]=gs(mt,Ee,Pt,Ot,Ce,Ne);function si(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ui(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ln(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function fi(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,f=t.shortMonths,u=cn(i),c=hn(i),p=cn(o),l=hn(o),h=cn(a),y=hn(a),g=cn(s),_=hn(s),m=cn(f),w=hn(f),M={a:D,A:R,b:z,B:O,c:null,d:Ms,e:Ms,f:Gc,g:ih,G:ah,H:Xc,I:Wc,j:Vc,L:Cs,m:Zc,M:Qc,p:B,q:H,Q:Ss,s:Ns,S:Kc,u:Jc,U:jc,V:th,w:eh,W:nh,x:null,X:null,y:rh,Y:oh,Z:sh,"%":ks},d={a:ot,A:V,b:G,B:at,c:null,d:Ts,e:Ts,f:ch,g:wh,G:Mh,H:uh,I:fh,j:lh,L:Ds,m:hh,M:ph,p:tt,q:st,Q:Ss,s:Ns,S:mh,u:dh,U:xh,V:gh,w:_h,W:yh,x:null,X:null,y:vh,Y:bh,Z:Th,"%":ks},T={a:P,A:Y,b:C,B:A,c:x,d:ws,e:ws,f:Bc,g:vs,G:ys,H:bs,I:bs,j:Yc,L:$c,m:zc,M:Fc,p:F,q:Pc,Q:Hc,s:qc,S:Uc,u:Dc,U:Ec,V:Ic,w:Ac,W:Rc,x:N,X:b,y:vs,Y:ys,Z:Oc,"%":Lc};M.x=v(n,M),M.X=v(r,M),M.c=v(e,M),d.x=v(n,d),d.X=v(r,d),d.c=v(e,d);function v(E,U){return function($){var k=[],lt=-1,X=0,ct=E.length,ht,Vt,wi;for($ instanceof Date||($=new Date(+$));++lt<ct;)E.charCodeAt(lt)===37&&(k.push(E.slice(X,lt)),(Vt=_s[ht=E.charAt(++lt)])!=null?ht=E.charAt(++lt):Vt=ht==="e"?" ":"0",(wi=U[ht])&&(ht=wi($,Vt)),k.push(ht),X=lt+1);return k.push(E.slice(X,lt)),k.join("")}}function S(E,U){return function($){var k=ln(1900,void 0,1),lt=I(k,E,$+="",0),X,ct;if(lt!=$.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(U&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(X=ui(ln(k.y,0,1)),ct=X.getUTCDay(),X=ct>4||ct===0?De.ceil(X):De(X),X=fn.offset(X,(k.V-1)*7),k.y=X.getUTCFullYear(),k.m=X.getUTCMonth(),k.d=X.getUTCDate()+(k.w+6)%7):(X=si(ln(k.y,0,1)),ct=X.getDay(),X=ct>4||ct===0?Ae.ceil(X):Ae(X),X=Ot.offset(X,(k.V-1)*7),k.y=X.getFullYear(),k.m=X.getMonth(),k.d=X.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),ct="Z"in k?ui(ln(k.y,0,1)).getUTCDay():si(ln(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(ct+5)%7:k.w+k.U*7-(ct+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,ui(k)):si(k)}}function I(E,U,$,k){for(var lt=0,X=U.length,ct=$.length,ht,Vt;lt<X;){if(k>=ct)return-1;if(ht=U.charCodeAt(lt++),ht===37){if(ht=U.charAt(lt++),Vt=T[ht in _s?U.charAt(lt++):ht],!Vt||(k=Vt(E,$,k))<0)return-1}else if(ht!=$.charCodeAt(k++))return-1}return k}function F(E,U,$){var k=u.exec(U.slice($));return k?(E.p=c.get(k[0].toLowerCase()),$+k[0].length):-1}function P(E,U,$){var k=h.exec(U.slice($));return k?(E.w=y.get(k[0].toLowerCase()),$+k[0].length):-1}function Y(E,U,$){var k=p.exec(U.slice($));return k?(E.w=l.get(k[0].toLowerCase()),$+k[0].length):-1}function C(E,U,$){var k=m.exec(U.slice($));return k?(E.m=w.get(k[0].toLowerCase()),$+k[0].length):-1}function A(E,U,$){var k=g.exec(U.slice($));return k?(E.m=_.get(k[0].toLowerCase()),$+k[0].length):-1}function x(E,U,$){return I(E,e,U,$)}function N(E,U,$){return I(E,n,U,$)}function b(E,U,$){return I(E,r,U,$)}function D(E){return a[E.getDay()]}function R(E){return o[E.getDay()]}function z(E){return f[E.getMonth()]}function O(E){return s[E.getMonth()]}function B(E){return i[+(E.getHours()>=12)]}function H(E){return 1+~~(E.getMonth()/3)}function ot(E){return a[E.getUTCDay()]}function V(E){return o[E.getUTCDay()]}function G(E){return f[E.getUTCMonth()]}function at(E){return s[E.getUTCMonth()]}function tt(E){return i[+(E.getUTCHours()>=12)]}function st(E){return 1+~~(E.getUTCMonth()/3)}return{format:function(E){var U=v(E+="",M);return U.toString=function(){return E},U},parse:function(E){var U=S(E+="",!1);return U.toString=function(){return E},U},utcFormat:function(E){var U=v(E+="",d);return U.toString=function(){return E},U},utcParse:function(E){var U=S(E+="",!0);return U.toString=function(){return E},U}}}var _s={"-":"",_:" ",0:"0"},J=/^\s*\d+/,Sc=/^%/,Nc=/[\\^$*+?|[\]().{}]/g;function L(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Cc(t){return t.replace(Nc,"\\$&")}function cn(t){return new RegExp("^(?:"+t.map(Cc).join("|")+")","i")}function hn(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Ac(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Dc(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ec(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ic(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Rc(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ys(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function vs(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Oc(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pc(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function zc(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ws(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yc(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function bs(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fc(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Uc(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function $c(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Bc(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Lc(t,e,n){var r=Sc.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Hc(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function qc(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ms(t,e){return L(t.getDate(),e,2)}function Xc(t,e){return L(t.getHours(),e,2)}function Wc(t,e){return L(t.getHours()%12||12,e,2)}function Vc(t,e){return L(1+Ot.count(mt(t),t),e,3)}function Cs(t,e){return L(t.getMilliseconds(),e,3)}function Gc(t,e){return Cs(t,e)+"000"}function Zc(t,e){return L(t.getMonth()+1,e,2)}function Qc(t,e){return L(t.getMinutes(),e,2)}function Kc(t,e){return L(t.getSeconds(),e,2)}function Jc(t){var e=t.getDay();return e===0?7:e}function jc(t,e){return L(Pt.count(mt(t)-1,t),e,2)}function As(t){var e=t.getDay();return e>=4||e===0?Lt(t):Lt.ceil(t)}function th(t,e){return t=As(t),L(Lt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function eh(t){return t.getDay()}function nh(t,e){return L(Ae.count(mt(t)-1,t),e,2)}function rh(t,e){return L(t.getFullYear()%100,e,2)}function ih(t,e){return t=As(t),L(t.getFullYear()%100,e,2)}function oh(t,e){return L(t.getFullYear()%1e4,e,4)}function ah(t,e){var n=t.getDay();return t=n>=4||n===0?Lt(t):Lt.ceil(t),L(t.getFullYear()%1e4,e,4)}function sh(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+L(e/60|0,"0",2)+L(e%60,"0",2)}function Ts(t,e){return L(t.getUTCDate(),e,2)}function uh(t,e){return L(t.getUTCHours(),e,2)}function fh(t,e){return L(t.getUTCHours()%12||12,e,2)}function lh(t,e){return L(1+fn.count(vt(t),t),e,3)}function Ds(t,e){return L(t.getUTCMilliseconds(),e,3)}function ch(t,e){return Ds(t,e)+"000"}function hh(t,e){return L(t.getUTCMonth()+1,e,2)}function ph(t,e){return L(t.getUTCMinutes(),e,2)}function mh(t,e){return L(t.getUTCSeconds(),e,2)}function dh(t){var e=t.getUTCDay();return e===0?7:e}function xh(t,e){return L(ce.count(vt(t)-1,t),e,2)}function Es(t){var e=t.getUTCDay();return e>=4||e===0?Ht(t):Ht.ceil(t)}function gh(t,e){return t=Es(t),L(Ht.count(vt(t),t)+(vt(t).getUTCDay()===4),e,2)}function _h(t){return t.getUTCDay()}function yh(t,e){return L(De.count(vt(t)-1,t),e,2)}function vh(t,e){return L(t.getUTCFullYear()%100,e,2)}function wh(t,e){return t=Es(t),L(t.getUTCFullYear()%100,e,2)}function bh(t,e){return L(t.getUTCFullYear()%1e4,e,4)}function Mh(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ht(t):Ht.ceil(t),L(t.getUTCFullYear()%1e4,e,4)}function Th(){return"+0000"}function ks(){return"%"}function Ss(t){return+t}function Ns(t){return Math.floor(+t/1e3)}var Ie,jn,Is,Rs,Os;li({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 li(t){return Ie=fi(t),jn=Ie.format,Is=Ie.parse,Rs=Ie.utcFormat,Os=Ie.utcParse,Ie}function ci(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),t[n]=e.floor(i),t[r]=e.ceil(o),t}function kh(t){return new Date(t)}function Sh(t){return t instanceof Date?+t:+new Date(+t)}function Ps(t,e,n,r,i,o,a,s,f,u){var c=sn(),p=c.invert,l=c.domain,h=u(".%L"),y=u(":%S"),g=u("%I:%M"),_=u("%I %p"),m=u("%a %d"),w=u("%b %d"),M=u("%B"),d=u("%Y");function T(v){return(f(v)<v?h:s(v)<v?y:a(v)<v?g:o(v)<v?_:r(v)<v?i(v)<v?m:w:n(v)<v?M:d)(v)}return c.invert=function(v){return new Date(p(v))},c.domain=function(v){return arguments.length?l(Array.from(v,Sh)):l().map(kh)},c.ticks=function(v){var S=l();return t(S[0],S[S.length-1],v??10)},c.tickFormat=function(v,S){return S==null?T:u(S)},c.nice=function(v){var S=l();return(!v||typeof v.range!="function")&&(v=e(S[0],S[S.length-1],v??10)),v?l(ci(S,v)):c},c.copy=function(){return Gn(c,Ps(t,e,n,r,i,o,a,s,f,u))},c}function zs(){return Bt.apply(Ps(oi,ai,mt,Ee,Pt,Ot,Ce,Ne,Nt,jn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ys(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}var Nh=Ys("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function W(t){return function(){return t}}var hi=Math.abs,rt=Math.atan2,qt=Math.cos,Fs=Math.max,tr=Math.min,wt=Math.sin,he=Math.sqrt,j=1e-12,Re=Math.PI,pn=Re/2,Oe=2*Re;function Us(t){return t>1?0:t<-1?Re:Math.acos(t)}function pi(t){return t>=1?pn:t<=-1?-pn:Math.asin(t)}var mi=Math.PI,di=2*mi,pe=1e-6,Ch=di-pe;function $s(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Ah(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return $s;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}var me=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?$s:Ah(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,a){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,f=r-e,u=i-n,c=a-e,p=s-n,l=c*c+p*p;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(l>pe)if(!(Math.abs(p*f-u*c)>pe)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-a,y=i-s,g=f*f+u*u,_=h*h+y*y,m=Math.sqrt(g),w=Math.sqrt(l),M=o*Math.tan((mi-Math.acos((g+l-_)/(2*m*w)))/2),d=M/w,T=M/m;Math.abs(d-1)>pe&&this._append`L${e+d*c},${n+d*p}`,this._append`A${o},${o},0,0,${+(p*h>c*y)},${this._x1=e+T*f},${this._y1=n+T*u}`}}arc(e,n,r,i,o,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),f=r*Math.sin(i),u=e+s,c=n+f,p=1^a,l=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>pe||Math.abs(this._y1-c)>pe)&&this._append`L${u},${c}`,r&&(l<0&&(l=l%di+di),l>Ch?this._append`A${r},${r},0,1,${p},${e-s},${n-f}A${r},${r},0,1,${p},${this._x1=u},${this._y1=c}`:l>pe&&this._append`A${r},${r},0,${+(l>=mi)},${p},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Bs(){return new me}Bs.prototype=me.prototype;function er(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new me(e)}function Dh(t){return t.innerRadius}function Eh(t){return t.outerRadius}function Ih(t){return t.startAngle}function Rh(t){return t.endAngle}function Oh(t){return t&&t.padAngle}function Ph(t,e,n,r,i,o,a,s){var f=n-t,u=r-e,c=a-i,p=s-o,l=p*f-c*u;if(!(l*l<j))return l=(c*(e-o)-p*(t-i))/l,[t+l*f,e+l*u]}function nr(t,e,n,r,i,o,a){var s=t-n,f=e-r,u=(a?o:-o)/he(s*s+f*f),c=u*f,p=-u*s,l=t+c,h=e+p,y=n+c,g=r+p,_=(l+y)/2,m=(h+g)/2,w=y-l,M=g-h,d=w*w+M*M,T=i-o,v=l*g-y*h,S=(M<0?-1:1)*he(Fs(0,T*T*d-v*v)),I=(v*M-w*S)/d,F=(-v*w-M*S)/d,P=(v*M+w*S)/d,Y=(-v*w+M*S)/d,C=I-_,A=F-m,x=P-_,N=Y-m;return C*C+A*A>x*x+N*N&&(I=P,F=Y),{cx:I,cy:F,x01:-c,y01:-p,x11:I*(i/T-1),y11:F*(i/T-1)}}function zh(){var t=Dh,e=Eh,n=W(0),r=null,i=Ih,o=Rh,a=Oh,s=null,f=er(u);function u(){var c,p,l=+t.apply(this,arguments),h=+e.apply(this,arguments),y=i.apply(this,arguments)-pn,g=o.apply(this,arguments)-pn,_=hi(g-y),m=g>y;if(s||(s=c=f()),h<l&&(p=h,h=l,l=p),!(h>j))s.moveTo(0,0);else if(_>Oe-j)s.moveTo(h*qt(y),h*wt(y)),s.arc(0,0,h,y,g,!m),l>j&&(s.moveTo(l*qt(g),l*wt(g)),s.arc(0,0,l,g,y,m));else{var w=y,M=g,d=y,T=g,v=_,S=_,I=a.apply(this,arguments)/2,F=I>j&&(r?+r.apply(this,arguments):he(l*l+h*h)),P=tr(hi(h-l)/2,+n.apply(this,arguments)),Y=P,C=P,A,x;if(F>j){var N=pi(F/l*wt(I)),b=pi(F/h*wt(I));(v-=N*2)>j?(N*=m?1:-1,d+=N,T-=N):(v=0,d=T=(y+g)/2),(S-=b*2)>j?(b*=m?1:-1,w+=b,M-=b):(S=0,w=M=(y+g)/2)}var D=h*qt(w),R=h*wt(w),z=l*qt(T),O=l*wt(T);if(P>j){var B=h*qt(M),H=h*wt(M),ot=l*qt(d),V=l*wt(d),G;if(_<Re)if(G=Ph(D,R,ot,V,B,H,z,O)){var at=D-G[0],tt=R-G[1],st=B-G[0],E=H-G[1],U=1/wt(Us((at*st+tt*E)/(he(at*at+tt*tt)*he(st*st+E*E)))/2),$=he(G[0]*G[0]+G[1]*G[1]);Y=tr(P,(l-$)/(U-1)),C=tr(P,(h-$)/(U+1))}else Y=C=0}S>j?C>j?(A=nr(ot,V,D,R,h,C,m),x=nr(B,H,z,O,h,C,m),s.moveTo(A.cx+A.x01,A.cy+A.y01),C<P?s.arc(A.cx,A.cy,C,rt(A.y01,A.x01),rt(x.y01,x.x01),!m):(s.arc(A.cx,A.cy,C,rt(A.y01,A.x01),rt(A.y11,A.x11),!m),s.arc(0,0,h,rt(A.cy+A.y11,A.cx+A.x11),rt(x.cy+x.y11,x.cx+x.x11),!m),s.arc(x.cx,x.cy,C,rt(x.y11,x.x11),rt(x.y01,x.x01),!m))):(s.moveTo(D,R),s.arc(0,0,h,w,M,!m)):s.moveTo(D,R),!(l>j)||!(v>j)?s.lineTo(z,O):Y>j?(A=nr(z,O,B,H,l,-Y,m),x=nr(D,R,ot,V,l,-Y,m),s.lineTo(A.cx+A.x01,A.cy+A.y01),Y<P?s.arc(A.cx,A.cy,Y,rt(A.y01,A.x01),rt(x.y01,x.x01),!m):(s.arc(A.cx,A.cy,Y,rt(A.y01,A.x01),rt(A.y11,A.x11),!m),s.arc(0,0,l,rt(A.cy+A.y11,A.cx+A.x11),rt(x.cy+x.y11,x.cx+x.x11),m),s.arc(x.cx,x.cy,Y,rt(x.y11,x.x11),rt(x.y01,x.x01),!m))):s.arc(0,0,l,T,d,m)}if(s.closePath(),c)return s=null,c+""||null}return u.centroid=function(){var c=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,p=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Re/2;return[qt(p)*c,wt(p)*c]},u.innerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:W(+c),u):t},u.outerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:W(+c),u):e},u.cornerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:W(+c),u):n},u.padRadius=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:W(+c),u):r},u.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:W(+c),u):i},u.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:W(+c),u):o},u.padAngle=function(c){return arguments.length?(a=typeof c=="function"?c:W(+c),u):a},u.context=function(c){return arguments.length?(s=c??null,u):s},u}var Yv=Array.prototype.slice;function rr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ls(t){this._context=t}Ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function xi(t){return new Ls(t)}function Hs(t){return t[0]}function qs(t){return t[1]}function Yh(t,e){var n=W(!0),r=null,i=xi,o=null,a=er(s);t=typeof t=="function"?t:t===void 0?Hs:W(t),e=typeof e=="function"?e:e===void 0?qs:W(e);function s(f){var u,c=(f=rr(f)).length,p,l=!1,h;for(r==null&&(o=i(h=a())),u=0;u<=c;++u)!(u<c&&n(p=f[u],u,f))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(p,u,f),+e(p,u,f));if(h)return o=null,h+""||null}return s.x=function(f){return arguments.length?(t=typeof f=="function"?f:W(+f),s):t},s.y=function(f){return arguments.length?(e=typeof f=="function"?f:W(+f),s):e},s.defined=function(f){return arguments.length?(n=typeof f=="function"?f:W(!!f),s):n},s.curve=function(f){return arguments.length?(i=f,r!=null&&(o=i(r)),s):i},s.context=function(f){return arguments.length?(f==null?r=o=null:o=i(r=f),s):r},s}function Xs(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Ws(t){return t}function Fh(){var t=Ws,e=Xs,n=null,r=W(0),i=W(Oe),o=W(0);function a(s){var f,u=(s=rr(s)).length,c,p,l=0,h=new Array(u),y=new Array(u),g=+r.apply(this,arguments),_=Math.min(Oe,Math.max(-Oe,i.apply(this,arguments)-g)),m,w=Math.min(Math.abs(_)/u,o.apply(this,arguments)),M=w*(_<0?-1:1),d;for(f=0;f<u;++f)(d=y[h[f]=f]=+t(s[f],f,s))>0&&(l+=d);for(e!=null?h.sort(function(T,v){return e(y[T],y[v])}):n!=null&&h.sort(function(T,v){return n(s[T],s[v])}),f=0,p=l?(_-u*M)/l:0;f<u;++f,g=m)c=h[f],d=y[c],m=g+(d>0?d*p:0)+M,y[c]={data:s[c],index:f,value:d,startAngle:g,endAngle:m,padAngle:w};return y}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:W(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,n=null,a):e},a.sort=function(s){return arguments.length?(n=s,e=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:W(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:W(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:W(+s),a):o},a}function Pe(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function mn(t){this._context=t}mn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pe(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pe(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Uh(t){return new mn(t)}var ir=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function $h(t){return new ir(t,!0)}function Bh(t){return new ir(t,!1)}function xt(){}function Vs(t){this._context=t}Vs.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Pe(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Lh(t){return new Vs(t)}function Gs(t){this._context=t}Gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Pe(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Hh(t){return new Gs(t)}function Zs(t,e){this._basis=new mn(t),this._beta=e}Zs.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,a=e[n]-i,s=-1,f;++s<=n;)f=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+f*o),this._beta*e[s]+(1-this._beta)*(i+f*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var qh=(function t(e){function n(r){return e===1?new mn(r):new Zs(r,e)}return n.beta=function(r){return t(+r)},n})(.85);function ze(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function or(t,e){this._context=t,this._k=(1-e)/6}or.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ze(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ze(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Xh=(function t(e){function n(r){return new or(r,e)}return n.tension=function(r){return t(+r)},n})(0);function ar(t,e){this._context=t,this._k=(1-e)/6}ar.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ze(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wh=(function t(e){function n(r){return new ar(r,e)}return n.tension=function(r){return t(+r)},n})(0);function sr(t,e){this._context=t,this._k=(1-e)/6}sr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ze(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vh=(function t(e){function n(r){return new sr(r,e)}return n.tension=function(r){return t(+r)},n})(0);function dn(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>j){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>j){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Qs(t,e){this._context=t,this._alpha=e}Qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:dn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gh=(function t(e){function n(r){return e?new Qs(r,e):new or(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function Ks(t,e){this._context=t,this._alpha=e}Ks.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:dn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zh=(function t(e){function n(r){return e?new Ks(r,e):new ar(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function Js(t,e){this._context=t,this._alpha=e}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:dn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qh=(function t(e){function n(r){return e?new Js(r,e):new sr(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function js(t){this._context=t}js.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Kh(t){return new js(t)}function tu(t){return t<0?-1:1}function eu(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(tu(o)+tu(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function nu(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function gi(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function ur(t){this._context=t}ur.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gi(this,this._t0,nu(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,gi(this,nu(this,n=eu(this,t,e)),n);break;default:gi(this,this._t0,n=eu(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function ru(t){this._context=new iu(t)}(ru.prototype=Object.create(ur.prototype)).point=function(t,e){ur.prototype.point.call(this,e,t)};function iu(t){this._context=t}iu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Jh(t){return new ur(t)}function jh(t){return new ru(t)}function au(t){this._context=t}au.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=ou(t),i=ou(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ou(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function tp(t){return new au(t)}function fr(t,e){this._context=t,this._t=e}fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function ep(t){return new fr(t,.5)}function np(t){return new fr(t,0)}function rp(t){return new fr(t,1)}var ip=Et("start","end","cancel","interrupt"),op=[],fu=0,su=1,cr=2,lr=3,uu=4,hr=5,xn=6;function Xt(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;ap(t,n,{name:e,index:r,group:i,on:ip,tween:op,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:fu})}function gn(t,e){var n=Q(t,e);if(n.state>fu)throw new Error("too late; already scheduled");return n}function it(t,e){var n=Q(t,e);if(n.state>lr)throw new Error("too late; already running");return n}function Q(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ap(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Me(o,0,n.time);function o(u){n.state=su,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,p,l,h;if(n.state!==su)return f();for(c in r)if(h=r[c],h.name===n.name){if(h.state===lr)return Ln(a);h.state===uu?(h.state=xn,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete r[c]):+c<e&&(h.state=xn,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete r[c])}if(Ln(function(){n.state===lr&&(n.state=uu,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=cr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===cr){for(n.state=lr,i=new Array(l=n.tween.length),c=0,p=-1;c<l;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++p]=h);i.length=p+1}}function s(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(f),n.state=hr,1),p=-1,l=i.length;++p<l;)i[p].call(t,c);n.state===hr&&(n.on.call("end",t,t.__data__,n.index,n.group),f())}function f(){n.state=xn,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Wt(t,e){var n=t.__transition,r,i,o=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){o=!1;continue}i=r.state>cr&&r.state<hr,r.state=xn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}o&&delete t.__transition}}function lu(t){return this.each(function(){Wt(this,t)})}function sp(t,e){var n,r;return function(){var i=it(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function up(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=it(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},f=0,u=i.length;f<u;++f)if(i[f].name===e){i[f]=s;break}f===u&&i.push(s)}o.tween=i}}function cu(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Q(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?sp:up)(n,t,e))}function Ye(t,e,n){var r=t._id;return t.each(function(){var i=it(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Q(i,r).value[e]}}function pr(t,e){var n;return(typeof e=="number"?nt:e instanceof _t?ee:(n=_t(e))?(e=n,ee):Qe)(t,e)}function fp(t){return function(){this.removeAttribute(t)}}function lp(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cp(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}}function hp(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}function pp(t,e,n){var r,i,o;return function(){var a,s=n(this),f;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),f=s+"",a===f?null:a===r&&f===i?o:(i=f,o=e(r=a,s)))}}function mp(t,e,n){var r,i,o;return function(){var a,s=n(this),f;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),f=s+"",a===f?null:a===r&&f===i?o:(i=f,o=e(r=a,s)))}}function hu(t,e){var n=At(t),r=n==="transform"?Ur:pr;return this.attrTween(t,typeof e=="function"?(n.local?mp:pp)(n,r,Ye(this,"attr."+t,e)):e==null?(n.local?lp:fp)(n):(n.local?hp:cp)(n,r,e))}function dp(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function xp(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function gp(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&xp(t,o)),n}return i._value=e,i}function _p(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&dp(t,o)),n}return i._value=e,i}function pu(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=At(t);return this.tween(n,(r.local?gp:_p)(r,e))}function yp(t,e){return function(){gn(this,t).delay=+e.apply(this,arguments)}}function vp(t,e){return e=+e,function(){gn(this,t).delay=e}}function mu(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yp:vp)(e,t)):Q(this.node(),e).delay}function wp(t,e){return function(){it(this,t).duration=+e.apply(this,arguments)}}function bp(t,e){return e=+e,function(){it(this,t).duration=e}}function du(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?wp:bp)(e,t)):Q(this.node(),e).duration}function Mp(t,e){if(typeof e!="function")throw new Error;return function(){it(this,t).ease=e}}function xu(t){var e=this._id;return arguments.length?this.each(Mp(e,t)):Q(this.node(),e).ease}function Tp(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;it(this,t).ease=n}}function gu(t){if(typeof t!="function")throw new Error;return this.each(Tp(this._id,t))}function _u(t){typeof t!="function"&&(t=Be(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],f,u=0;u<a;++u)(f=o[u])&&t.call(f,f.__data__,u,o)&&s.push(f);return new ft(r,this._parents,this._name,this._id)}function yu(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var f=e[s],u=n[s],c=f.length,p=a[s]=new Array(c),l,h=0;h<c;++h)(l=f[h]||u[h])&&(p[h]=l);for(;s<r;++s)a[s]=e[s];return new ft(a,this._parents,this._name,this._id)}function kp(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Sp(t,e,n){var r,i,o=kp(e)?gn:it;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function vu(t,e){var n=this._id;return arguments.length<2?Q(this.node(),n).on.on(t):this.each(Sp(n,t,e))}function Np(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function wu(){return this.on("end.remove",Np(this._id))}function bu(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Qt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],f=s.length,u=o[a]=new Array(f),c,p,l=0;l<f;++l)(c=s[l])&&(p=t.call(c,c.__data__,l,s))&&("__data__"in c&&(p.__data__=c.__data__),u[l]=p,Xt(u[l],e,n,l,u,Q(c,n)));return new ft(o,this._parents,e,n)}function Mu(t){var e=this._name,n=this._id;typeof t!="function"&&(t=$e(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var f=r[s],u=f.length,c,p=0;p<u;++p)if(c=f[p]){for(var l=t.call(c,c.__data__,p,f),h,y=Q(c,n),g=0,_=l.length;g<_;++g)(h=l[g])&&Xt(h,e,n,g,l,y);o.push(l),a.push(c)}return new ft(o,a,e,n)}var Cp=Dt.prototype.constructor;function Tu(){return new Cp(this._groups,this._parents)}function Ap(t,e){var n,r,i;return function(){var o=Yt(this,t),a=(this.style.removeProperty(t),Yt(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function ku(t){return function(){this.style.removeProperty(t)}}function Dp(t,e,n){var r,i=n+"",o;return function(){var a=Yt(this,t);return a===i?null:a===r?o:o=e(r=a,n)}}function Ep(t,e,n){var r,i,o;return function(){var a=Yt(this,t),s=n(this),f=s+"";return s==null&&(f=s=(this.style.removeProperty(t),Yt(this,t))),a===f?null:a===r&&f===i?o:(i=f,o=e(r=a,s))}}function Ip(t,e){var n,r,i,o="style."+e,a="end."+o,s;return function(){var f=it(this,t),u=f.on,c=f.value[o]==null?s||(s=ku(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),f.on=r}}function Su(t,e,n){var r=(t+="")=="transform"?Fr:pr;return e==null?this.styleTween(t,Ap(t,r)).on("end.style."+t,ku(t)):typeof e=="function"?this.styleTween(t,Ep(t,r,Ye(this,"style."+t,e))).each(Ip(this._id,t)):this.styleTween(t,Dp(t,r,e),n).on("end.style."+t,null)}function Rp(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Op(t,e,n){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Rp(t,a,n)),r}return o._value=e,o}function Nu(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Op(t,e,n??""))}function Pp(t){return function(){this.textContent=t}}function zp(t){return function(){var e=t(this);this.textContent=e??""}}function Cu(t){return this.tween("text",typeof t=="function"?zp(Ye(this,"text",t)):Pp(t==null?"":t+""))}function Yp(t){return function(e){this.textContent=t.call(this,e)}}function Fp(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Yp(i)),e}return r._value=t,r}function Au(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Fp(t))}function Du(){for(var t=this._name,e=this._id,n=mr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,f,u=0;u<s;++u)if(f=a[u]){var c=Q(f,e);Xt(f,t,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ft(r,this._parents,t,n)}function Eu(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},f={value:function(){--i===0&&o()}};n.each(function(){var u=it(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(f)),u.on=e}),i===0&&o()})}var Up=0;function ft(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Iu(t){return Dt().transition(t)}function mr(){return++Up}var zt=Dt.prototype;ft.prototype=Iu.prototype={constructor:ft,select:bu,selectAll:Mu,selectChild:zt.selectChild,selectChildren:zt.selectChildren,filter:_u,merge:yu,selection:Tu,transition:Du,call:zt.call,nodes:zt.nodes,node:zt.node,size:zt.size,empty:zt.empty,each:zt.each,on:vu,attr:hu,attrTween:pu,style:Su,styleTween:Nu,text:Cu,textTween:Au,remove:wu,tween:cu,delay:mu,duration:du,ease:xu,easeVarying:gu,end:Eu,[Symbol.iterator]:zt[Symbol.iterator]};function dr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var $p={time:null,delay:0,duration:250,ease:dr};function Bp(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ru(t){var e,n;t instanceof ft?(e=t._id,t=t._name):(e=mr(),(n=$p).time=nn(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,f,u=0;u<s;++u)(f=a[u])&&Xt(f,t,e,u,a,n||Bp(f,e));return new ft(r,this._parents,t,e)}Dt.prototype.interrupt=lu;Dt.prototype.transition=Ru;var _n=t=>()=>t;function _i(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function bt(t,e,n){this.k=t,this.x=e,this.y=n}bt.prototype={constructor:bt,scale:function(t){return t===1?this:new bt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new bt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var yn=new bt(1,0,0);yi.prototype=bt.prototype;function yi(t){for(;!t.__zoom;)if(!(t=t.parentNode))return yn;return t.__zoom}function xr(t){t.stopImmediatePropagation()}function Fe(t){t.preventDefault(),t.stopImmediatePropagation()}function Lp(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Hp(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Ou(){return this.__zoom||yn}function qp(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Xp(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wp(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Vp(){var t=Lp,e=Hp,n=Wp,r=qp,i=Xp,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,f=$r,u=Et("start","zoom","end"),c,p,l,h=500,y=150,g=0,_=10;function m(x){x.property("__zoom",Ou).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",F).on("dblclick.zoom",P).filter(i).on("touchstart.zoom",Y).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(x,N,b,D){var R=x.selection?x.selection():x;R.property("__zoom",Ou),x!==R?T(x,N,b,D):R.interrupt().each(function(){v(this,arguments).event(D).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},m.scaleBy=function(x,N,b,D){m.scaleTo(x,function(){var R=this.__zoom.k,z=typeof N=="function"?N.apply(this,arguments):N;return R*z},b,D)},m.scaleTo=function(x,N,b,D){m.transform(x,function(){var R=e.apply(this,arguments),z=this.__zoom,O=b==null?d(R):typeof b=="function"?b.apply(this,arguments):b,B=z.invert(O),H=typeof N=="function"?N.apply(this,arguments):N;return n(M(w(z,H),O,B),R,a)},b,D)},m.translateBy=function(x,N,b,D){m.transform(x,function(){return n(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof b=="function"?b.apply(this,arguments):b),e.apply(this,arguments),a)},null,D)},m.translateTo=function(x,N,b,D,R){m.transform(x,function(){var z=e.apply(this,arguments),O=this.__zoom,B=D==null?d(z):typeof D=="function"?D.apply(this,arguments):D;return n(yn.translate(B[0],B[1]).scale(O.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof b=="function"?-b.apply(this,arguments):-b),z,a)},D,R)};function w(x,N){return N=Math.max(o[0],Math.min(o[1],N)),N===x.k?x:new bt(N,x.x,x.y)}function M(x,N,b){var D=N[0]-b[0]*x.k,R=N[1]-b[1]*x.k;return D===x.x&&R===x.y?x:new bt(x.k,D,R)}function d(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function T(x,N,b,D){x.on("start.zoom",function(){v(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){v(this,arguments).event(D).end()}).tween("zoom",function(){var R=this,z=arguments,O=v(R,z).event(D),B=e.apply(R,z),H=b==null?d(B):typeof b=="function"?b.apply(R,z):b,ot=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),V=R.__zoom,G=typeof N=="function"?N.apply(R,z):N,at=f(V.invert(H).concat(ot/V.k),G.invert(H).concat(ot/G.k));return function(tt){if(tt===1)tt=G;else{var st=at(tt),E=ot/st[2];tt=new bt(E,H[0]-st[0]*E,H[1]-st[1]*E)}O.zoom(null,tt)}})}function v(x,N,b){return!b&&x.__zooming||new S(x,N)}function S(x,N){this.that=x,this.args=N,this.active=0,this.sourceEvent=null,this.extent=e.apply(x,N),this.taps=0}S.prototype={event:function(x){return x&&(this.sourceEvent=x),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(x,N){return this.mouse&&x!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&x!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&x!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(x){var N=pt(this.that).datum();u.call(x,this.that,new _i(x,{sourceEvent:this.sourceEvent,target:m,type:x,transform:this.that.__zoom,dispatch:u}),N)}};function I(x,...N){if(!t.apply(this,arguments))return;var b=v(this,N).event(x),D=this.__zoom,R=Math.max(o[0],Math.min(o[1],D.k*Math.pow(2,r.apply(this,arguments)))),z=dt(x);if(b.wheel)(b.mouse[0][0]!==z[0]||b.mouse[0][1]!==z[1])&&(b.mouse[1]=D.invert(b.mouse[0]=z)),clearTimeout(b.wheel);else{if(D.k===R)return;b.mouse=[z,D.invert(z)],Wt(this),b.start()}Fe(x),b.wheel=setTimeout(O,y),b.zoom("mouse",n(M(w(D,R),b.mouse[0],b.mouse[1]),b.extent,a));function O(){b.wheel=null,b.end()}}function F(x,...N){if(l||!t.apply(this,arguments))return;var b=x.currentTarget,D=v(this,N,!0).event(x),R=pt(x.view).on("mousemove.zoom",H,!0).on("mouseup.zoom",ot,!0),z=dt(x,b),O=x.clientX,B=x.clientY;He(x.view),xr(x),D.mouse=[z,this.__zoom.invert(z)],Wt(this),D.start();function H(V){if(Fe(V),!D.moved){var G=V.clientX-O,at=V.clientY-B;D.moved=G*G+at*at>g}D.event(V).zoom("mouse",n(M(D.that.__zoom,D.mouse[0]=dt(V,b),D.mouse[1]),D.extent,a))}function ot(V){R.on("mousemove.zoom mouseup.zoom",null),qe(V.view,D.moved),Fe(V),D.event(V).end()}}function P(x,...N){if(t.apply(this,arguments)){var b=this.__zoom,D=dt(x.changedTouches?x.changedTouches[0]:x,this),R=b.invert(D),z=b.k*(x.shiftKey?.5:2),O=n(M(w(b,z),D,R),e.apply(this,N),a);Fe(x),s>0?pt(this).transition().duration(s).call(T,O,D,x):pt(this).call(m.transform,O,D,x)}}function Y(x,...N){if(t.apply(this,arguments)){var b=x.touches,D=b.length,R=v(this,N,x.changedTouches.length===D).event(x),z,O,B,H;for(xr(x),O=0;O<D;++O)B=b[O],H=dt(B,this),H=[H,this.__zoom.invert(H),B.identifier],R.touch0?!R.touch1&&R.touch0[2]!==H[2]&&(R.touch1=H,R.taps=0):(R.touch0=H,z=!0,R.taps=1+!!c);c&&(c=clearTimeout(c)),z&&(R.taps<2&&(p=H[0],c=setTimeout(function(){c=null},h)),Wt(this),R.start())}}function C(x,...N){if(this.__zooming){var b=v(this,N).event(x),D=x.changedTouches,R=D.length,z,O,B,H;for(Fe(x),z=0;z<R;++z)O=D[z],B=dt(O,this),b.touch0&&b.touch0[2]===O.identifier?b.touch0[0]=B:b.touch1&&b.touch1[2]===O.identifier&&(b.touch1[0]=B);if(O=b.that.__zoom,b.touch1){var ot=b.touch0[0],V=b.touch0[1],G=b.touch1[0],at=b.touch1[1],tt=(tt=G[0]-ot[0])*tt+(tt=G[1]-ot[1])*tt,st=(st=at[0]-V[0])*st+(st=at[1]-V[1])*st;O=w(O,Math.sqrt(tt/st)),B=[(ot[0]+G[0])/2,(ot[1]+G[1])/2],H=[(V[0]+at[0])/2,(V[1]+at[1])/2]}else if(b.touch0)B=b.touch0[0],H=b.touch0[1];else return;b.zoom("touch",n(M(O,B,H),b.extent,a))}}function A(x,...N){if(this.__zooming){var b=v(this,N).event(x),D=x.changedTouches,R=D.length,z,O;for(xr(x),l&&clearTimeout(l),l=setTimeout(function(){l=null},h),z=0;z<R;++z)O=D[z],b.touch0&&b.touch0[2]===O.identifier?delete b.touch0:b.touch1&&b.touch1[2]===O.identifier&&delete b.touch1;if(b.touch1&&!b.touch0&&(b.touch0=b.touch1,delete b.touch1),b.touch0)b.touch0[1]=this.__zoom.invert(b.touch0[0]);else if(b.end(),b.taps===2&&(O=dt(O,this),Math.hypot(p[0]-O[0],p[1]-O[1])<_)){var B=pt(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return m.wheelDelta=function(x){return arguments.length?(r=typeof x=="function"?x:_n(+x),m):r},m.filter=function(x){return arguments.length?(t=typeof x=="function"?x:_n(!!x),m):t},m.touchable=function(x){return arguments.length?(i=typeof x=="function"?x:_n(!!x),m):i},m.extent=function(x){return arguments.length?(e=typeof x=="function"?x:_n([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),m):e},m.scaleExtent=function(x){return arguments.length?(o[0]=+x[0],o[1]=+x[1],m):[o[0],o[1]]},m.translateExtent=function(x){return arguments.length?(a[0][0]=+x[0][0],a[1][0]=+x[1][0],a[0][1]=+x[0][1],a[1][1]=+x[1][1],m):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},m.constrain=function(x){return arguments.length?(n=x,m):n},m.duration=function(x){return arguments.length?(s=+x,m):s},m.interpolate=function(x){return arguments.length?(f=x,m):f},m.on=function(){var x=u.on.apply(u,arguments);return x===u?m:x},m.clickDistance=function(x){return arguments.length?(g=(x=+x)*x,m):Math.sqrt(g)},m.tapDistance=function(x){return arguments.length?(_=+x,m):_},m}var{abs:xM,max:gM,min:_M}=Math;function Pu(t){return[+t[0],+t[1]]}function Gp(t){return[Pu(t[0]),Pu(t[1])]}var yM={name:"x",handles:["w","e"].map(vi),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},vM={name:"y",handles:["n","s"].map(vi),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},wM={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(vi),input:function(t){return t==null?null:Gp(t)},output:function(t){return t}};function vi(t){return{type:t}}export{bi as a,Mi as b,Qu as c,Ku as d,pt as e,nl as f,xl as g,kl as h,Cl as i,Dl as j,zl as k,Yl as l,Xn as m,Vn as n,Gl as o,an as p,Kr as q,ni as r,ae as s,Nt as t,Ne as u,Ce as v,Ot as w,Pt as x,Ae as y,as as z,ss as A,Lt as B,us as C,fs as D,Ee as E,jn as F,zs as G,Nh as H,zh as I,xi as J,Yh as K,Fh as L,$h as M,Bh as N,Uh as O,Lh as P,Hh as Q,qh as R,Xh as S,Wh as T,Vh as U,Gh as V,Zh as W,Qh as X,Kh as Y,Jh as Z,jh as _,tp as $,ep as aa,np as ba,rp as ca,Vp as da};
@@ -0,0 +1 @@
1
+ import{a as e,b as t,c as a,d as o,e as i,g as s,l as u,x as d,y as l}from"./chunk-VYZZPKGK.js";var f=class extends l{static{e(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},m={parser:{TokenBuilder:e(()=>new f,"TokenBuilder"),ValueConverter:e(()=>new d,"ValueConverter")}};function v(c=i){let r=o(a(c),s),n=o(t({shared:r}),u,m);return r.ServiceRegistry.register(n),{shared:r,Info:n}}e(v,"createInfoServices");export{m as a,v as b};
@@ -0,0 +1,3 @@
1
+ import{a}from"./chunk-VYZZPKGK.js";var i={},c={info:a(async()=>{let{createInfoServices:e}=await import("./info-DKCQHKI2-EOOHI7XS.js"),r=e().Info.parser.LangiumParser;i.info=r},"info"),packet:a(async()=>{let{createPacketServices:e}=await import("./packet-7NZHBO7P-W3SJA3MY.js"),r=e().Packet.parser.LangiumParser;i.packet=r},"packet"),pie:a(async()=>{let{createPieServices:e}=await import("./pie-RZYD4A2V-YOIQBTY7.js"),r=e().Pie.parser.LangiumParser;i.pie=r},"pie"),treeView:a(async()=>{let{createTreeViewServices:e}=await import("./treeView-QDETBFTQ-C6D5WFJA.js"),r=e().TreeView.parser.LangiumParser;i.treeView=r},"treeView"),architecture:a(async()=>{let{createArchitectureServices:e}=await import("./architecture-TIHT7OUA-OUC5PEC7.js"),r=e().Architecture.parser.LangiumParser;i.architecture=r},"architecture"),gitGraph:a(async()=>{let{createGitGraphServices:e}=await import("./gitGraph-TEB2WS4Q-3WUB7WYQ.js"),r=e().GitGraph.parser.LangiumParser;i.gitGraph=r},"gitGraph"),eventmodeling:a(async()=>{let{createEventModelingServices:e}=await import("./eventmodeling-45OFAUF4-4K577DMF.js"),r=e().EventModel.parser.LangiumParser;i.eventmodeling=r},"eventmodeling"),radar:a(async()=>{let{createRadarServices:e}=await import("./radar-I7S5WNFK-NMKP5AZO.js"),r=e().Radar.parser.LangiumParser;i.radar=r},"radar"),railroad:a(async()=>{let{createRailroadServices:e}=await import("./railroad-3IZDKUUU-7MOIV7CI.js"),r=e().Railroad.parser.LangiumParser;i.railroad=r},"railroad"),railroadEbnf:a(async()=>{let{createRailroadEbnfServices:e}=await import("./railroad-ebnf-EBAXGLYW-OWDJEWMK.js"),r=e().RailroadEbnf.parser.LangiumParser;i.railroadEbnf=r},"railroadEbnf"),railroadAbnf:a(async()=>{let{createRailroadAbnfServices:e}=await import("./railroad-abnf-AHOZXSZD-HXNH5SLO.js"),r=e().RailroadAbnf.parser.LangiumParser;i.railroadAbnf=r},"railroadAbnf"),railroadPeg:a(async()=>{let{createRailroadPegServices:e}=await import("./railroad-peg-LSFZ7HO6-ASSINGP5.js"),r=e().RailroadPeg.parser.LangiumParser;i.railroadPeg=r},"railroadPeg"),treemap:a(async()=>{let{createTreemapServices:e}=await import("./treemap-6X3UGDF4-JFCDMSCA.js"),r=e().Treemap.parser.LangiumParser;i.treemap=r},"treemap"),wardley:a(async()=>{let{createWardleyServices:e}=await import("./wardley-OPB4EBWU-RQIOII7I.js"),r=e().Wardley.parser.LangiumParser;i.wardley=r},"wardley"),cynefin:a(async()=>{let{createCynefinServices:e}=await import("./cynefin-VYW2F7L2-CBO6DLNV.js"),r=e().Cynefin.parser.LangiumParser;i.cynefin=r},"cynefin")};async function d(e,r){let n=c[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);i[e]||await n();let t=i[e].parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new l(t);return t.value}a(d,"parse");var l=class extends Error{constructor(e){let r=e.lexerErrors.map(o=>{let t=o.line!==void 0&&!isNaN(o.line)?o.line:"?",s=o.column!==void 0&&!isNaN(o.column)?o.column:"?";return`Lexer error on line ${t}, column ${s}: ${o.message}`}).join(`
2
+ `),n=e.parserErrors.map(o=>{let t=o.token.startLine!==void 0&&!isNaN(o.token.startLine)?o.token.startLine:"?",s=o.token.startColumn!==void 0&&!isNaN(o.token.startColumn)?o.token.startColumn:"?";return`Parse error on line ${t}, column ${s}: ${o.message}`}).join(`
3
+ `);super(`Parsing failed: ${r} ${n}`),this.result=e}static{a(this,"MermaidParseError")}};export{d as a,l as b};