@kabmo-labs/kabmo 0.50.0 → 0.51.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 (370) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +503 -501
  3. package/dist/client/static/js/{Body-pd3nt4xa.js → Body-s3nh6vet.js} +3 -3
  4. package/dist/client/static/js/{CsvGrid-eksmqv8f.js → CsvGrid-j4h6cpnn.js} +2 -2
  5. package/dist/client/static/js/{DocxView-xfx1kt8x.js → DocxView-197x16zq.js} +3 -3
  6. package/dist/client/static/js/{DrawioView-2xyqg9bv.js → DrawioView-v6ps0cm5.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-ps3f0aa5.js → HtmlPreview-a2t5zngp.js} +1 -1
  8. package/dist/client/static/js/ImageView-ar7hz7jx.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-epef152a.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-7rwjvzk5.js +1 -0
  11. package/dist/client/static/js/Modal-9nxt67fm.js +60 -0
  12. package/dist/client/static/js/{PdfView-8fp08jym.js → PdfView-gzhcym20.js} +1 -1
  13. package/dist/client/static/js/SessionsView-3h872gpe.js +1 -0
  14. package/dist/client/static/js/{SheetView-g7mstjdp.js → SheetView-baaynkb4.js} +8 -8
  15. package/dist/client/static/js/{SvgPreview-wsv4h6c6.js → SvgPreview-jzcqwwcc.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-1kgm1049.js → abnfDiagram-O67JEVCF-grb1sfhr.js} +1 -1
  17. package/dist/client/static/js/architecture-7GRP2DOG-3hkq8grc.js +1 -0
  18. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-mtm210rw.js → architectureDiagram-NJMV4G6O-9084jzwr.js} +5 -5
  19. package/dist/client/static/js/{astro-dszrfwwn.js → astro-m3fcq2sa.js} +1 -1
  20. package/dist/client/static/js/bash-n7wcmq3s.js +1 -0
  21. package/dist/client/static/js/{blockDiagram-BEXU5L5S-s474vn2w.js → blockDiagram-BEXU5L5S-qqcjrg1b.js} +6 -6
  22. package/dist/client/static/js/c-ypdp030b.js +1 -0
  23. package/dist/client/static/js/{c4Diagram-YGBWAQC7-s68v6tc8.js → c4Diagram-YGBWAQC7-gc8fqbpc.js} +2 -2
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-291va3yk.js → classDiagram-v2-NBCMYWYE-pp6060kq.js} +7 -7
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-0zg7crdw.js → cose-bilkent-JH36ORCC-744ekavk.js} +1 -1
  26. package/dist/client/static/js/cpp-cxwev3gs.js +1 -0
  27. package/dist/client/static/js/css-6mxcqf8c.js +1 -0
  28. package/dist/client/static/js/css-9gak6bze.js +1 -0
  29. package/dist/client/static/js/cynefin-OW5HDTMX-9m18e6m5.js +1 -0
  30. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-4gnmn3yc.js → cynefinDiagram-VND7K2PF-57dja6g9.js} +1 -1
  31. package/dist/client/static/js/{dagre-6A5THRUB-nxmj6bkg.js → dagre-6A5THRUB-de4xrbrw.js} +2 -2
  32. package/dist/client/static/js/{diagram-22UHCM2B-3171dabw.js → diagram-22UHCM2B-ky3ncyv8.js} +18 -18
  33. package/dist/client/static/js/{diagram-3UASUU5V-9h1pd6h8.js → diagram-3UASUU5V-zgg82bz9.js} +2 -2
  34. package/dist/client/static/js/{diagram-ATOU4E4O-ywfrbd6m.js → diagram-ATOU4E4O-r4s13e4n.js} +3 -3
  35. package/dist/client/static/js/{diagram-CDSNMT55-t87b4wbk.js → diagram-CDSNMT55-my21t0kq.js} +5 -5
  36. package/dist/client/static/js/{diagram-MLGK6HIB-bzv52p97.js → diagram-MLGK6HIB-pvt20jtj.js} +2 -2
  37. package/dist/client/static/js/{diagram-MPIPVDR6-8f66rp0a.js → diagram-MPIPVDR6-as9dk4f3.js} +2 -2
  38. package/dist/client/static/js/{dockerfile-z3v0km9v.js → dockerfile-3b5caedj.js} +1 -1
  39. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-3y4w2j6t.js → ebnfDiagram-ZINNZB2B-tj3hkcj4.js} +1 -1
  40. package/dist/client/static/js/{elixir-c701n0qg.js → elixir-7q2k61zb.js} +1 -1
  41. package/dist/client/static/js/{elk-276RUBZZ-d9d23jch.js → elk-276RUBZZ-5e7wczf3.js} +1 -1
  42. package/dist/client/static/js/{erDiagram-OPXOYQCR-w4z3501c.js → erDiagram-OPXOYQCR-5jje7qrh.js} +3 -3
  43. package/dist/client/static/js/{erlang-cpw5s1f9.js → erlang-tjsd7n4d.js} +1 -1
  44. package/dist/client/static/js/eventmodeling-NTZA5JFV-d4egnv9v.js +1 -0
  45. package/dist/client/static/js/flowDiagram-KWPJA3E3-pdeqndnd.js +1 -0
  46. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-7wcxk4bm.js → ganttDiagram-FUAMR5RP-7hresycc.js} +4 -4
  47. package/dist/client/static/js/gitGraph-4MIJSDKK-grqv890n.js +1 -0
  48. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-sdh1hsb1.js → gitGraphDiagram-X574FWY7-8m202jb7.js} +17 -17
  49. package/dist/client/static/js/graphql-6rwdfcnf.js +1 -0
  50. package/dist/client/static/js/html-p76eszt9.js +1 -0
  51. package/dist/client/static/js/{index-zhnfq8br.js → index-0prwdwyb.js} +2 -2
  52. package/dist/client/static/js/{index-tew3rd6t.js → index-0y6tstk8.js} +1 -1
  53. package/dist/client/static/js/{index-1dx4dqzy.js → index-20hj80g4.js} +4 -4
  54. package/dist/client/static/js/index-21421tq7.js +2 -0
  55. package/dist/client/static/js/{index-0q39ajgh.js → index-254387vg.js} +2 -2
  56. package/dist/client/static/js/index-2y4gk5q5.js +2 -0
  57. package/dist/client/static/js/index-3fk8grhz.js +2 -0
  58. package/dist/client/static/js/index-3rrdmk9m.js +2 -0
  59. package/dist/client/static/js/{index-frhxbqhg.js → index-3sz9cztk.js} +1 -1
  60. package/dist/client/static/js/{index-9ydvkxz1.css → index-4m2d73m3.css} +1 -1
  61. package/dist/client/static/js/{index-7xn7gxgw.js → index-4nvcwtvr.js} +2 -2
  62. package/dist/client/static/js/index-4ppap7vb.js +9 -0
  63. package/dist/client/static/js/{index-vgwjn4de.js → index-4tbdws4r.js} +2 -2
  64. package/dist/client/static/js/{index-hqhz4eam.js → index-56hy2hcy.js} +1 -1
  65. package/dist/client/static/js/{index-dgkpbrdr.js → index-60g0e74a.js} +2 -2
  66. package/dist/client/static/js/{index-n54jd3aw.js → index-7ag37ghj.js} +11 -11
  67. package/dist/client/static/js/{index-bggz63br.js → index-7ehcjb3r.js} +7 -7
  68. package/dist/client/static/js/index-899yw6fh.js +2 -0
  69. package/dist/client/static/js/{index-4vaxdt8a.js → index-8pqx5n2p.js} +2 -2
  70. package/dist/client/static/js/{index-971stdh4.js → index-91jm3ywm.js} +2 -2
  71. package/dist/client/static/js/{index-5qwgexg6.js → index-9qf2h9jb.js} +4 -4
  72. package/dist/client/static/js/{index-wbma8kqw.js → index-9rp7h1nv.js} +23 -23
  73. package/dist/client/static/js/index-9rr23e0e.js +2 -0
  74. package/dist/client/static/js/index-9wj4ma9g.js +3 -0
  75. package/dist/client/static/js/{index-e471eprg.js → index-awtk0djy.js} +1 -1
  76. package/dist/client/static/js/{index-1d8v3bvm.js → index-awz6pyd0.js} +2 -2
  77. package/dist/client/static/js/index-cvx1vkrx.js +1 -0
  78. package/dist/client/static/js/{index-09ap9ncj.js → index-cwwg7k5f.js} +46 -46
  79. package/dist/client/static/js/{index-8fk7h2me.js → index-dzatbdws.js} +5 -5
  80. package/dist/client/static/js/{index-1adfks1n.js → index-e6ew77ph.js} +2 -2
  81. package/dist/client/static/js/{index-144aknp3.js → index-ej1va073.js} +2 -2
  82. package/dist/client/static/js/{index-cm8pa783.js → index-er7pj5k6.js} +2 -2
  83. package/dist/client/static/js/index-fm0t4pct.js +4 -0
  84. package/dist/client/static/js/{index-aqqj4xxy.js → index-g5wp6ksw.js} +2 -2
  85. package/dist/client/static/js/{index-ajqmcds5.js → index-gy4mtr2e.js} +2 -2
  86. package/dist/client/static/js/{index-kce86cnw.js → index-j9y4tjk0.js} +2 -2
  87. package/dist/client/static/js/{index-gws4prmg.js → index-kt7c42n7.js} +2 -2
  88. package/dist/client/static/js/index-ktmb341a.js +468 -0
  89. package/dist/client/static/js/{index-56319bht.js → index-m6zncj00.js} +2 -2
  90. package/dist/client/static/js/{index-jxxewcat.js → index-mpyd7qxj.js} +2 -2
  91. package/dist/client/static/js/{index-gcgsjd3c.js → index-ms80nne4.js} +2 -2
  92. package/dist/client/static/js/{index-k66w6d9b.js → index-my856e49.js} +2 -2
  93. package/dist/client/static/js/{index-c2mqr5fh.js → index-nt17ejrm.js} +2 -2
  94. package/dist/client/static/js/{index-zsx5vs3j.js → index-pvv340b4.js} +2 -2
  95. package/dist/client/static/js/{index-svx6rnfs.js → index-pxr36neg.js} +2 -2
  96. package/dist/client/static/js/{index-r2z0a118.js → index-q0k1am0g.js} +2 -2
  97. package/dist/client/static/js/{index-xrn2reb5.js → index-qrpx4sk1.js} +2 -2
  98. package/dist/client/static/js/{index-ajdzvegm.js → index-r2zsw7nw.js} +8 -8
  99. package/dist/client/static/js/{index-xgbcn89g.js → index-rbkvw2xs.js} +2 -2
  100. package/dist/client/static/js/{index-2g1ey1c9.js → index-scmtzcv1.js} +2 -2
  101. package/dist/client/static/js/{index-3rhk4apq.js → index-syvkpnc8.js} +1 -1
  102. package/dist/client/static/js/index-tfqqsj2g.js +1 -0
  103. package/dist/client/static/js/{index-7jdz4jr4.js → index-tj7xr4ta.js} +2 -2
  104. package/dist/client/static/js/{index-1vfej0gk.js → index-wvw70pgd.js} +2 -2
  105. package/dist/client/static/js/{index-qxzyvye9.js → index-wxs0x3g1.js} +2 -2
  106. package/dist/client/static/js/index-x507ndnc.js +314 -0
  107. package/dist/client/static/js/{index-1jx4nt2f.js → index-x87scjpa.js} +1 -1
  108. package/dist/client/static/js/{index-grkacfv3.js → index-xtrsvm0d.js} +2 -2
  109. package/dist/client/static/js/{index-ratbr10x.js → index-y1j18rha.js} +2 -2
  110. package/dist/client/static/js/{index-r6bm9sth.js → index-yv2ervdj.js} +7 -7
  111. package/dist/client/static/js/{index-k3vvk28c.js → index-z2pmt1bc.js} +1 -1
  112. package/dist/client/static/js/{index-ap6hv7s7.js → index-z446edg9.js} +1 -1
  113. package/dist/client/static/js/{index-1ec33b1j.js → index-zkgqa0c2.js} +2 -2
  114. package/dist/client/static/js/index-zwbw177x.js +2 -0
  115. package/dist/client/static/js/info-A6RAGUB7-rzpg7qk1.js +1 -0
  116. package/dist/client/static/js/{infoDiagram-VRGFBTTK-gtdp0z6p.js → infoDiagram-VRGFBTTK-5mb5w005.js} +2 -2
  117. package/dist/client/static/js/ini-kjcpgebh.js +1 -0
  118. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-c05m0sqq.js → ishikawaDiagram-OU5B5YK6-zk7fa0fm.js} +3 -3
  119. package/dist/client/static/js/java-0bcyv1jt.js +1 -0
  120. package/dist/client/static/js/javascript-0mqgcvps.js +1 -0
  121. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-kgk5ygm2.js → journeyDiagram-ZHPQQLJL-8jd7b2aw.js} +5 -5
  122. package/dist/client/static/js/json-mb8k0b1n.js +1 -0
  123. package/dist/client/static/js/jsx-8p6dqgpq.js +1 -0
  124. package/dist/client/static/js/{julia-w13bz4s1.js → julia-nwh5w343.js} +1 -1
  125. package/dist/client/static/js/{kanban-definition-PNTS6WVX-q1w9w68s.js → kanban-definition-PNTS6WVX-yp9rks4k.js} +7 -7
  126. package/dist/client/static/js/lua-nxnqww9z.js +1 -0
  127. package/dist/client/static/js/markdown-8gbyxxjd.js +1 -0
  128. package/dist/client/static/js/{mermaid.core-1rz62j9g.js → mermaid.core-kxsxr8ec.js} +9 -9
  129. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-3m3w6bnb.js → mindmap-definition-NLK3R4M7-anx2kj3b.js} +5 -5
  130. package/dist/client/static/js/one-dark-pro-wyegjr0d.js +1 -0
  131. package/dist/client/static/js/one-light-kp6c3eqh.js +1 -0
  132. package/dist/client/static/js/packet-AYTQ26CC-eac14hsq.js +1 -0
  133. package/dist/client/static/js/{pegDiagram-GJSIUBJH-svd3ex4e.js → pegDiagram-GJSIUBJH-9egqyzkc.js} +1 -1
  134. package/dist/client/static/js/{perl-hcg3hacf.js → perl-wb4wtc9x.js} +1 -1
  135. package/dist/client/static/js/{php-q6hhp84p.js → php-9g594k9f.js} +1 -1
  136. package/dist/client/static/js/pie-WAS4IAKB-a9xqvysf.js +1 -0
  137. package/dist/client/static/js/{pieDiagram-5QR66LMP-2nrkw034.js → pieDiagram-5QR66LMP-f3dvprbm.js} +3 -3
  138. package/dist/client/static/js/properties-d5bwhgwz.js +1 -0
  139. package/dist/client/static/js/python-fdwwjjhh.js +1 -0
  140. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-4895d1aq.js → quadrantDiagram-O4NWA36T-qsghd295.js} +6 -6
  141. package/dist/client/static/js/r-4d2ygtfj.js +1 -0
  142. package/dist/client/static/js/radar-RG4KPBEZ-jv2pm0fe.js +1 -0
  143. package/dist/client/static/js/railroad-74A4TZTK-j74sc0b6.js +1 -0
  144. package/dist/client/static/js/railroad-abnf-HS5TGJTU-eaf19baz.js +1 -0
  145. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d4j5nq31.js +1 -0
  146. package/dist/client/static/js/railroad-peg-WCYAUIDC-ba862a9p.js +1 -0
  147. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-zj3g9yne.js → railroadDiagram-XR7U4H2S-6vmazht2.js} +1 -1
  148. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-727yjvs8.js → requirementDiagram-PLB6GJNP-phs0wn1v.js} +5 -5
  149. package/dist/client/static/js/{ruby-wzqz8vw6.js → ruby-c4hxsegh.js} +1 -1
  150. package/dist/client/static/js/{rust-r94pgqvf.js → rust-e4whdswc.js} +1 -1
  151. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-17c7p2pe.js → sankeyDiagram-IPEJSGJF-vkktegjk.js} +4 -4
  152. package/dist/client/static/js/{sass-xb3van7h.js → sass-6yxywx7t.js} +1 -1
  153. package/dist/client/static/js/{scss-ddg6t3x4.js → scss-9wz47c6t.js} +1 -1
  154. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-wcmbpckr.js → sequenceDiagram-PO4LG4MO-37e6se72.js} +16 -16
  155. package/dist/client/static/js/{sizeCapture-INFHLROL-nkr57cd6.js → sizeCapture-INFHLROL-3b4nsa4s.js} +1 -1
  156. package/dist/client/static/js/sql-sd00wgem.js +1 -0
  157. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-vd7r8s78.js → stateDiagram-v2-GCMORJYK-2nnyqs9x.js} +3 -3
  158. package/dist/client/static/js/{svelte-wzaxz546.js → svelte-mm3jfpje.js} +1 -1
  159. package/dist/client/static/js/{swimlanes-2SLR337P-zhxm05ak.js → swimlanes-2SLR337P-eezd46ps.js} +1 -1
  160. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-h78096xp.js +8 -0
  161. package/dist/client/static/js/{timeline-definition-EJHVYXUP-n7gbzhzd.js → timeline-definition-EJHVYXUP-pz0f2b4h.js} +6 -6
  162. package/dist/client/static/js/treeView-Q6P3EWNA-e8yb44pd.js +1 -0
  163. package/dist/client/static/js/treemap-WGGIJYW6-zvdv84vp.js +1 -0
  164. package/dist/client/static/js/typescript-5txwpd9t.js +1 -0
  165. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-davsnwkf.js → usecaseDiagram-POWQR4AR-hvg7a87b.js} +29 -29
  166. package/dist/client/static/js/{vennDiagram-UO4OBE2U-gb54bh5k.js → vennDiagram-UO4OBE2U-03zh9phs.js} +8 -8
  167. package/dist/client/static/js/{vue-6zhfw7zx.js → vue-rcdqpz7q.js} +1 -1
  168. package/dist/client/static/js/wardley-WFR3VGLG-hbv0cg4s.js +1 -0
  169. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-sf98cg9t.js → wardleyDiagram-VNRHLVJA-xy77th92.js} +5 -5
  170. package/dist/client/static/js/xml-vtrdnrn6.js +1 -0
  171. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-9nn09k40.js → xychartDiagram-PMCCYNJV-h48448cm.js} +4 -4
  172. package/dist/client/static/js/yaml-6k1tmwtm.js +1 -0
  173. package/package.json +2 -1
  174. package/src/client/components/common/MarkdownRenderer.tsx +31 -34
  175. package/src/client/components/common/ViewportSelector.tsx +4 -0
  176. package/src/client/components/common/command-palette/index.tsx +5 -2
  177. package/src/client/components/common/markdown-inline-file.test.tsx +131 -0
  178. package/src/client/components/common/search-select/OptionList.tsx +164 -0
  179. package/src/client/components/common/search-select/index.tsx +159 -136
  180. package/src/client/components/common/search-select/option.ts +16 -0
  181. package/src/client/components/common/search-select/search-select.test.tsx +61 -2
  182. package/src/client/components/common/sort-menu/index.tsx +9 -4
  183. package/src/client/components/layout/session-sidebar/HarnessFilter.tsx +26 -6
  184. package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +45 -49
  185. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +31 -25
  186. package/src/client/components/settings/ProjectSelectorDropdown.tsx +40 -101
  187. package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +12 -10
  188. package/src/client/components/settings/categories/command-settings/DetailPane.tsx +12 -10
  189. package/src/client/components/settings/categories/dictation-settings/CaptureSection.tsx +13 -18
  190. package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +8 -9
  191. package/src/client/components/settings/categories/keyboard-settings/ComposerKeys.tsx +10 -10
  192. package/src/client/components/settings/categories/mcp-settings/AdvancedSection.tsx +21 -18
  193. package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +12 -7
  194. package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +11 -11
  195. package/src/client/components/settings/categories/omp-settings/RoleEditor.test.ts +14 -11
  196. package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +17 -16
  197. package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +11 -9
  198. package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +10 -9
  199. package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +10 -8
  200. package/src/client/components/settings/categories/provider-settings/DialectFields.tsx +40 -24
  201. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +13 -9
  202. package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +22 -17
  203. package/src/client/components/settings/categories/provider-settings/PresetPicker.tsx +79 -50
  204. package/src/client/components/settings/categories/provider-settings/model-dialogs.test.tsx +14 -7
  205. package/src/client/components/settings/categories/voice-settings/SpeechSettings.test.tsx +117 -15
  206. package/src/client/components/settings/categories/voice-settings/SpeechSettings.tsx +27 -3
  207. package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +3 -1
  208. package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +32 -2
  209. package/src/client/components/settings/categories/voice-settings/speech/ModelsSection.tsx +277 -0
  210. package/src/client/components/settings/categories/voice-settings/speech/TestSection.tsx +2 -1
  211. package/src/client/components/settings/categories/voice-settings/speech/VoiceSection.tsx +83 -41
  212. package/src/client/components/workspace/btw-panel/TopicMenu.tsx +20 -2
  213. package/src/client/components/workspace/chat-timeline/AiMessageFooter.speech.test.tsx +35 -6
  214. package/src/client/components/workspace/chat-timeline/SpeechButton.tsx +111 -36
  215. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +21 -6
  216. package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +7 -4
  217. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +22 -6
  218. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +17 -1
  219. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +8 -65
  220. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.test.ts +12 -1
  221. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.test.ts +35 -218
  222. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +40 -177
  223. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.test.ts +13 -1
  224. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackToolJson.test.tsx +79 -0
  225. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackToolJson.tsx +86 -0
  226. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolBody.tsx +25 -16
  227. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.test.ts +4 -2
  228. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-view.ts +11 -4
  229. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Card.plugin.test.ts +3 -1
  230. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +15 -15
  231. package/src/client/components/workspace/git-panel/BranchToolbar.tsx +30 -5
  232. package/src/client/data/mock/chat.ts +17 -0
  233. package/src/client/data/samples/tools-session.ts +8 -5
  234. package/src/client/hooks/editor/font.test.ts +21 -0
  235. package/src/client/hooks/editor/font.ts +12 -9
  236. package/src/client/hooks/settings/local-tts-models.ts +164 -0
  237. package/src/client/hooks/tts/tts-context.ts +6 -0
  238. package/src/client/hooks/tts/use-tts-player.ts +10 -0
  239. package/src/client/hooks/ui/markdown-render.ts +9 -1
  240. package/src/client/hooks/ui/markdown-scoped-links.ts +77 -0
  241. package/src/client/hooks/ui/open-inline-file.test.ts +144 -0
  242. package/src/client/hooks/ui/open-inline-file.ts +71 -0
  243. package/src/client/lib/commands/overlays.ts +16 -2
  244. package/src/client/lib/tts/player.test.ts +61 -0
  245. package/src/client/lib/tts/player.ts +120 -41
  246. package/src/client/tailwind.css +16 -0
  247. package/src/server/lib/chat/normalize-tools.server.test.ts +79 -0
  248. package/src/server/lib/chat/normalize-tools.server.ts +87 -0
  249. package/src/server/lib/harness/acp/background-replay.test.ts +36 -0
  250. package/src/server/lib/harness/acp/background-replay.ts +8 -3
  251. package/src/server/lib/harness/acp/frames-tool-shapes.test.ts +41 -13
  252. package/src/server/lib/harness/acp/frames-vendor-names.test.ts +209 -0
  253. package/src/server/lib/harness/acp/frames.test.ts +11 -20
  254. package/src/server/lib/harness/acp/frames.ts +5 -3
  255. package/src/server/lib/harness/acp/mapper.ts +5 -41
  256. package/src/server/lib/harness/acp/replay-transcript.ts +6 -1
  257. package/src/server/lib/harness/acp/subagent-frames.test.ts +1 -1
  258. package/src/server/lib/harness/acp/subagent-frames.ts +0 -2
  259. package/src/server/lib/harness/acp/tool-calls.ts +5 -16
  260. package/src/server/lib/harness/acp/tool-identity.test.ts +69 -8
  261. package/src/server/lib/harness/acp/tool-identity.ts +58 -10
  262. package/src/server/lib/harness/acp/tool-shape.ts +5 -3
  263. package/src/server/lib/harness/codex/transcript.server.test.ts +3 -1
  264. package/src/server/lib/harness/codex/transcript.server.ts +8 -15
  265. package/src/server/lib/lifecycle/paths.ts +12 -0
  266. package/src/server/lib/omp/session/messages.ts +5 -1
  267. package/src/server/lib/realtime/topics/peer-relay.server.ts +9 -1
  268. package/src/server/lib/realtime/topics/session.server.ts +5 -1
  269. package/src/server/lib/tts/engines/adapters.test.ts +17 -8
  270. package/src/server/lib/tts/engines/deepgram.ts +30 -9
  271. package/src/server/lib/tts/engines/index.ts +11 -0
  272. package/src/server/lib/tts/engines/local.ts +53 -0
  273. package/src/server/lib/tts/engines/sherpa-onnx-node.d.ts +38 -0
  274. package/src/server/lib/tts/engines/sherpa.test.ts +53 -0
  275. package/src/server/lib/tts/engines/sherpa.ts +287 -0
  276. package/src/server/lib/tts/local-models.server.ts +257 -0
  277. package/src/server/lib/tts/local-request.test.ts +66 -0
  278. package/src/server/lib/tts/local-request.ts +59 -0
  279. package/src/server/lib/tts/model-manifest.server.test.ts +71 -0
  280. package/src/server/lib/tts/model-manifest.server.ts +154 -0
  281. package/src/server/lib/tts/settings.server.ts +7 -4
  282. package/src/server/lib/tts/wav.test.ts +37 -0
  283. package/src/server/lib/tts/wav.ts +43 -0
  284. package/src/server/routes/chat/session-legacy-tools.test.ts +132 -0
  285. package/src/server/routes/chat/session.ts +10 -4
  286. package/src/server/routes/tts/index.ts +2 -0
  287. package/src/server/routes/tts/models.test.ts +148 -0
  288. package/src/server/routes/tts/models.ts +89 -0
  289. package/src/shared/lib/chat/tool/normalize.ts +67 -0
  290. package/src/shared/lib/chat/tool/render-key.test.ts +167 -0
  291. package/src/shared/lib/chat/tool/render-key.ts +247 -0
  292. package/src/shared/lib/chat/tool/tool-aliases.test.ts +42 -0
  293. package/src/shared/lib/chat/tool/tool-aliases.ts +59 -12
  294. package/src/shared/lib/fs/open-reference.test.ts +64 -0
  295. package/src/shared/lib/fs/open-reference.ts +74 -0
  296. package/src/shared/lib/icons/tint-hues.generated.ts +20 -20
  297. package/src/shared/lib/markdown/inline-file.test.ts +100 -0
  298. package/src/shared/lib/markdown/inline-file.ts +213 -0
  299. package/src/shared/lib/omp/session/messages-map.test.ts +2 -1
  300. package/src/shared/lib/omp/session/messages-parse.ts +3 -2
  301. package/src/shared/lib/omp/session/parse-message-blocks.ts +14 -0
  302. package/src/shared/lib/omp/subagent/transcript-client.ts +5 -1
  303. package/src/shared/lib/tts/engines.test.ts +28 -3
  304. package/src/shared/lib/tts/engines.ts +31 -6
  305. package/src/shared/lib/tts/local-models.test.ts +69 -0
  306. package/src/shared/lib/tts/local-models.ts +200 -0
  307. package/src/shared/lib/tts/speakable.test.ts +21 -1
  308. package/src/shared/lib/tts/speakable.ts +66 -33
  309. package/src/shared/lib/tts/voices.ts +125 -19
  310. package/src/shared/types/chat.ts +3 -0
  311. package/src/shared/types/index.ts +1 -0
  312. package/src/shared/types/tool-render.ts +37 -0
  313. package/dist/client/static/js/ImageView-7vse3k6x.js +0 -1
  314. package/dist/client/static/js/LayoutWrapper-qdp83fps.js +0 -2
  315. package/dist/client/static/js/MergeDiffView-hzsccppq.js +0 -1
  316. package/dist/client/static/js/Modal-zw9x5b6f.js +0 -60
  317. package/dist/client/static/js/SessionsView-qmgg03fv.js +0 -1
  318. package/dist/client/static/js/architecture-7GRP2DOG-g7b64973.js +0 -1
  319. package/dist/client/static/js/bash-z5pe89pt.js +0 -1
  320. package/dist/client/static/js/c-fy0fysfw.js +0 -1
  321. package/dist/client/static/js/cpp-wam8dze6.js +0 -1
  322. package/dist/client/static/js/css-ke51m4kc.js +0 -1
  323. package/dist/client/static/js/css-yryw442h.js +0 -1
  324. package/dist/client/static/js/cynefin-OW5HDTMX-8bscrcct.js +0 -1
  325. package/dist/client/static/js/eventmodeling-NTZA5JFV-pj22bng1.js +0 -1
  326. package/dist/client/static/js/flowDiagram-KWPJA3E3-9h6g160j.js +0 -1
  327. package/dist/client/static/js/gitGraph-4MIJSDKK-hgw4jcvk.js +0 -1
  328. package/dist/client/static/js/graphql-0yv8dc1v.js +0 -1
  329. package/dist/client/static/js/html-zk3m0az9.js +0 -1
  330. package/dist/client/static/js/index-0ff2x5g9.js +0 -1
  331. package/dist/client/static/js/index-17jy16v3.js +0 -314
  332. package/dist/client/static/js/index-1kjgdyfk.js +0 -2
  333. package/dist/client/static/js/index-4z3qtazf.js +0 -2
  334. package/dist/client/static/js/index-779rptb2.js +0 -1
  335. package/dist/client/static/js/index-9jrej3ht.js +0 -3
  336. package/dist/client/static/js/index-bczhbk01.js +0 -2
  337. package/dist/client/static/js/index-evvmkk2f.js +0 -2
  338. package/dist/client/static/js/index-jr6q69r3.js +0 -465
  339. package/dist/client/static/js/index-qaxjp73x.js +0 -2
  340. package/dist/client/static/js/index-rgneq3zt.js +0 -2
  341. package/dist/client/static/js/index-tfwsch7a.js +0 -4
  342. package/dist/client/static/js/index-vn495w82.js +0 -9
  343. package/dist/client/static/js/info-A6RAGUB7-k0kv05ny.js +0 -1
  344. package/dist/client/static/js/ini-apj95p59.js +0 -1
  345. package/dist/client/static/js/java-khk2v3g4.js +0 -1
  346. package/dist/client/static/js/javascript-gez6yppm.js +0 -1
  347. package/dist/client/static/js/json-r78y6e80.js +0 -1
  348. package/dist/client/static/js/jsx-h7hfj8cz.js +0 -1
  349. package/dist/client/static/js/lua-pat2bzg3.js +0 -1
  350. package/dist/client/static/js/markdown-545zn05v.js +0 -1
  351. package/dist/client/static/js/one-dark-pro-7c942tnw.js +0 -1
  352. package/dist/client/static/js/one-light-tp8y6c5g.js +0 -1
  353. package/dist/client/static/js/packet-AYTQ26CC-ne66q5h9.js +0 -1
  354. package/dist/client/static/js/pie-WAS4IAKB-ej9aysvz.js +0 -1
  355. package/dist/client/static/js/properties-9f76xngb.js +0 -1
  356. package/dist/client/static/js/python-nwerpkfq.js +0 -1
  357. package/dist/client/static/js/r-39k5dr2p.js +0 -1
  358. package/dist/client/static/js/radar-RG4KPBEZ-375pe46t.js +0 -1
  359. package/dist/client/static/js/railroad-74A4TZTK-hdgdfsc1.js +0 -1
  360. package/dist/client/static/js/railroad-abnf-HS5TGJTU-2p5ynn4a.js +0 -1
  361. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-2p1fxxen.js +0 -1
  362. package/dist/client/static/js/railroad-peg-WCYAUIDC-g131pt42.js +0 -1
  363. package/dist/client/static/js/sql-4dcrp3sw.js +0 -1
  364. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-myzk2rg0.js +0 -8
  365. package/dist/client/static/js/treeView-Q6P3EWNA-gfztfha9.js +0 -1
  366. package/dist/client/static/js/treemap-WGGIJYW6-kwtrwq1f.js +0 -1
  367. package/dist/client/static/js/typescript-q0493nmw.js +0 -1
  368. package/dist/client/static/js/wardley-WFR3VGLG-30dnzvww.js +0 -1
  369. package/dist/client/static/js/xml-91sb3gt9.js +0 -1
  370. package/dist/client/static/js/yaml-ghx4mjw1.js +0 -1
@@ -1,15 +1,15 @@
1
- import{t,Te,cc,g,A,Y,C,te,F,O,G,z,j,q,H,b,ge,ie,y}from"./index-17jy16v3.js";var ce=(e,s)=>cc(e,"a",-s),kt=ce;function mt(e,s){let i=fe(e),n=i.filter((c)=>ue(c,e)),r=0,o=0,a=[];if(n.length>1){let c=qt(n);for(let f=0;f<n.length;++f){let l=n[f];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((f,l)=>l.angle-f.angle);let h=n[n.length-1];for(let f=0;f<n.length;++f){let l=n[f];o+=(h.x+l.x)*(l.y-h.y);let v={x:(l.x+h.x)/2,y:(l.y+h.y)/2},x=null;for(let M=0;M<l.parentIndex.length;++M)if(h.parentIndex.includes(l.parentIndex[M])){let k=e[l.parentIndex[M]],E=Math.atan2(l.x-k.x,l.y-k.y),N=Math.atan2(h.x-k.x,h.y-k.y),D=N-E;if(D<0)D+=2*Math.PI;let T=N-D/2,p=st(v,{x:k.x+k.radius*Math.sin(T),y:k.y+k.radius*Math.cos(T)});if(p>k.radius*2)p=k.radius*2;if(x==null||x.width>p)x={circle:k,width:p,p1:l,p2:h,large:p>k.radius,sweep:!0}}if(x!=null)a.push(x),r+=St(x.circle.radius,x.width),h=l}}else{let c=e[0];for(let f=1;f<e.length;++f)if(e[f].radius<c.radius)c=e[f];let h=!1;for(let f=0;f<e.length;++f)if(st(e[f],c)>Math.abs(c.radius-e[f].radius)){h=!0;break}if(h)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function ue(e,s){return s.every((i)=>st(e,i)<i.radius+0.0000000001)}function fe(e){let s=[];for(let i=0;i<e.length;++i)for(let n=i+1;n<e.length;++n){let r=Bt(e[i],e[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function St(e,s){return e*e*Math.acos(1-s/e)-(e-s)*Math.sqrt(s*(2*e-s))}function st(e,s){return Math.sqrt((e.x-s.x)*(e.x-s.x)+(e.y-s.y)*(e.y-s.y))}function At(e,s,i){if(i>=e+s)return 0;if(i<=Math.abs(e-s))return Math.PI*Math.min(e,s)*Math.min(e,s);let n=e-(i*i-s*s+e*e)/(2*i),r=s-(i*i-e*e+s*s)/(2*i);return St(e,n)+St(s,r)}function Bt(e,s){let i=st(e,s),n=e.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=e.x+o*(s.x-e.x)/i,h=e.y+o*(s.y-e.y)/i,f=-(s.y-e.y)*(a/i),l=-(s.x-e.x)*(a/i);return[{x:c+f,y:h-l},{x:c-f,y:h+l}]}function qt(e){let s={x:0,y:0};for(let i of e)s.x+=i.x,s.y+=i.y;return s.x/=e.length,s.y/=e.length,s}function he(e,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=e(s),c=e(i),h=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let f=0;f<r;++f){h/=2;let l=s+h,v=e(l);if(v*a>=0)s=l;if(Math.abs(h)<o||v===0)return l}return s+h}function wt(e){let s=Array(e);for(let i=0;i<e;++i)s[i]=0;return s}function Pt(e,s){return wt(e).map(()=>wt(s))}function gt(e,s){let i=0;for(let n=0;n<e.length;++n)i+=e[n]*s[n];return i}function _t(e){return Math.sqrt(gt(e,e))}function Et(e,s,i){for(let n=0;n<s.length;++n)e[n]=s[n]*i}function ft(e,s,i,n,r){for(let o=0;o<e.length;++o)e[o]=s*i[o]+n*r[o]}function Ut(e,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,h=i.rho!==void 0?i.rho:1,f=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,v=i.sigma!==void 0?i.sigma:0.5,x,M=s.length,k=Array(M+1);k[0]=s,k[0].fx=e(s),k[0].id=0;for(let S=0;S<M;++S){let u=s.slice();u[S]=u[S]?u[S]*r:o,k[S+1]=u,k[S+1].fx=e(u),k[S+1].id=S+1}function E(S){for(let u=0;u<S.length;u++)k[M][u]=S[u];k[M].fx=S.fx}let N=(S,u)=>S.fx-u.fx,D=s.slice(),T=s.slice(),p=s.slice(),I=s.slice();for(let S=0;S<n;++S){if(k.sort(N),i.history){let m=k.map((d)=>{let V=d.slice();return V.fx=d.fx,V.id=d.id,V});m.sort((d,V)=>d.id-V.id),i.history.push({x:k[0].slice(),fx:k[0].fx,simplex:m})}x=0;for(let m=0;m<M;++m)x=Math.max(x,Math.abs(k[0][m]-k[1][m]));if(Math.abs(k[0].fx-k[M].fx)<a&&x<c)break;for(let m=0;m<M;++m){D[m]=0;for(let d=0;d<M;++d)D[m]+=k[d][m];D[m]/=M}let u=k[M];if(ft(T,1+h,D,-h,u),T.fx=e(T),T.fx<k[0].fx)if(ft(I,1+f,D,-f,u),I.fx=e(I),I.fx<T.fx)E(I);else E(T);else if(T.fx>=k[M-1].fx){let m=!1;if(T.fx>u.fx)if(ft(p,1+l,D,-l,u),p.fx=e(p),p.fx<u.fx)E(p);else m=!0;else if(ft(p,1-l*h,D,l*h,u),p.fx=e(p),p.fx<T.fx)E(p);else m=!0;if(m){if(v>=1)break;for(let d=1;d<k.length;++d)ft(k[d],1-v,k[0],v,k[d]),k[d].fx=e(k[d])}}else E(T)}return k.sort(N),{fx:k[0].fx,x:k[0]}}function de(e,s,i,n,r,o,a){let c=i.fx,h=gt(i.fxprime,s),f=c,l=c,v=h,x=0;r=r||1,o=o||0.000001,a=a||0.1;function M(k,E,N){for(let D=0;D<16;++D)if(r=(k+E)/2,ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*h||f>=N)E=r;else{if(Math.abs(v)<=-a*h)return r;if(v*(E-k)>=0)E=k;k=r,N=f}return 0}for(let k=0;k<10;++k){if(ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*h||k&&f>=l)return M(x,r,l);if(Math.abs(v)<=-a*h)return r;if(v>=0)return M(r,x,f);l=f,x=r,r*=2}return r}function xe(e,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,h=1,f;i=i||{},f=i.maxIterations||s.length*20,n.fx=e(n.x,n.fxprime),a=n.fxprime.slice(),Et(a,n.fxprime,-1);for(let l=0;l<f;++l){if(h=de(e,a,n,r,h),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:h});if(!h)Et(a,n.fxprime,-1);else{ft(o,1,r.fxprime,-1,n.fxprime);let v=gt(n.fxprime,n.fxprime),x=Math.max(0,gt(o,r.fxprime)/v);ft(a,x,a,-1,r.fxprime),c=n,n=r,r=c}if(_t(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:h});return n}function Gt(e,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||be,n=s.lossFunction||xt,r=ye(e,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let f=Ut((l)=>{let v={};for(let x=0;x<a.length;++x){let M=a[x];v[M]={x:l[2*x],y:l[2*x+1],radius:o[M].radius}}return n(v,r)},c,s).x;for(let l=0;l<a.length;++l){let v=a[l];o[v].x=f[2*l],o[v].y=f[2*l+1]}return o}var Wt=0.0000000001;function Tt(e,s,i){if(Math.min(e,s)*Math.min(e,s)*Math.PI<=i+Wt)return Math.abs(e-s);return he((n)=>At(e,s,n)-i,0,e+s)}function ye(e,s={}){let i=s.distinct,n=e.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let h of n)for(let f=0;f<h.sets.length;f++){let l=String(h.sets[f]);c.set(l,h.size+(c.get(l)||0));for(let v=f+1;v<h.sets.length;v++){let x=String(h.sets[v]),M=`${l};${x}`,k=`${x};${l}`;c.set(M,h.size+(c.get(M)||0)),c.set(k,h.size+(c.get(k)||0))}}for(let h of n)if(h.sets.length<3)h.size=c.get(r(h.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let h=c.sets[0],f=c.sets[1];a.add(r(c.sets)),a.add(r([f,h]))}o.sort((c,h)=>c===h?0:c<h?-1:1);for(let c=0;c<o.length;++c){let h=o[c];for(let f=c+1;f<o.length;++f){let l=o[f];if(!a.has(r([h,l])))n.push({sets:[h,l],size:0})}}return n}function pe(e,s,i){let n=Pt(s.length,s.length),r=Pt(s.length,s.length);return e.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],h=Math.sqrt(s[a].size/Math.PI),f=Math.sqrt(s[c].size/Math.PI),l=Tt(h,f,o.size);n[a][c]=n[c][a]=l;let v=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))v=1;else if(o.size<=0.0000000001)v=-1;r[a][c]=r[c][a]=v}),{distances:n,constraints:r}}function me(e,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=e[2*o],c=e[2*o+1];for(let h=o+1;h<i.length;++h){let f=e[2*h],l=e[2*h+1],v=i[o][h],x=n[o][h],M=(f-a)*(f-a)+(l-c)*(l-c),k=Math.sqrt(M),E=M-v*v;if(x>0&&k<=v||x<0&&k>=v)continue;r+=2*E*E,s[2*o]+=4*E*(a-f),s[2*o+1]+=4*E*(c-l),s[2*h]+=4*E*(f-a),s[2*h+1]+=4*E*(l-c)}}return r}function be(e,s={}){let i=ke(e,s),n=s.lossFunction||xt;if(e.length>=8){let r=ve(e,s),o=n(r,e),a=n(i,e);if(o+0.00000001<a)i=r}return i}function ve(e,s={}){let i=s.restarts||10,n=[],r={};for(let x of e)if(x.sets.length===1)r[x.sets[0]]=n.length,n.push(x);let{distances:o,constraints:a}=pe(e,n,r),c=_t(o.map(_t))/o.length;o=o.map((x)=>x.map((M)=>M/c));let h=(x,M)=>me(x,M,o,a),f=null;for(let x=0;x<i;++x){let M=wt(o.length*2).map(Math.random),k=xe(h,M,s);if(!f||k.fx<f.fx)f=k}let l=f.x,v={};for(let x=0;x<n.length;++x){let M=n[x];v[M.sets[0]]={x:l[2*x]*c,y:l[2*x+1]*c,radius:Math.sqrt(M.size/Math.PI)}}if(s.history)for(let x of s.history)Et(x.x,c);return v}function ke(e,s){let i=s&&s.lossFunction?s.lossFunction:xt,n={},r={};for(let v of e)if(v.sets.length===1){let x=v.sets[0];n[x]={x:10000000000,y:10000000000,rowid:n.length,size:v.size,radius:Math.sqrt(v.size/Math.PI)},r[x]=[]}e=e.filter((v)=>v.sets.length===2);for(let v of e){let x=v.weight!=null?v.weight:1,M=v.sets[0],k=v.sets[1];if(v.size+Wt>=Math.min(n[M].size,n[k].size))x=0;r[M].push({set:k,size:v.size,weight:x}),r[k].push({set:M,size:v.size,weight:x})}let o=[];Object.keys(r).forEach((v)=>{let x=0;for(let M=0;M<r[v].length;++M)x+=r[v][M].size*r[v][M].weight;o.push({set:v,size:x})});function a(v,x){return x.size-v.size}o.sort(a);let c={};function h(v){return v.set in c}function f(v,x){n[x].x=v.x,n[x].y=v.y,c[x]=!0}f({x:0,y:0},o[0].set);for(let v=1;v<o.length;++v){let x=o[v].set,M=r[x].filter(h),k=n[x];if(M.sort(a),M.length===0)throw"ERROR: missing pairwise overlap information";let E=[];for(var l=0;l<M.length;++l){let T=n[M[l].set],p=Tt(k.radius,T.radius,M[l].size);E.push({x:T.x+p,y:T.y}),E.push({x:T.x-p,y:T.y}),E.push({y:T.y+p,x:T.x}),E.push({y:T.y-p,x:T.x});for(let I=l+1;I<M.length;++I){let S=n[M[I].set],u=Tt(k.radius,S.radius,M[I].size),m=Bt({x:T.x,y:T.y,radius:p},{x:S.x,y:S.y,radius:u});E.push(...m)}}let N=100000000000000000000000000000000000000000000000000,D=E[0];for(let T of E){n[x].x=T.x,n[x].y=T.y;let p=i(n,e);if(p<N)N=p,D=T}f(D,x)}return n}function xt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=e[n.sets[0]],c=e[n.sets[1]];r=At(a.radius,c.radius,st(a,c))}else r=mt(n.sets.map((a)=>e[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Kt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=e[n.sets[0]],h=e[n.sets[1]];r=At(c.radius,h.radius,st(c,h))}else r=mt(n.sets.map((c)=>e[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Ie(e,s,i){if(i==null)e.sort((r,o)=>o.radius-r.radius);else e.sort(i);if(e.length>0){let r=e[0].x,o=e[0].y;for(let a of e)a.x-=r,a.y-=o}if(e.length===2){if(st(e[0],e[1])<Math.abs(e[1].radius-e[0].radius))e[1].x=e[0].x+e[0].radius-e[1].radius-0.0000000001,e[1].y=e[0].y}if(e.length>1){let r=Math.atan2(e[1].x,e[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of e){let{x:h,y:f}=c;c.x=o*h-a*f,c.y=a*h+o*f}}if(e.length>2){let r=Math.atan2(e[2].x,e[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=e[1].y/(0.0000000001+e[1].x);for(let a of e){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Me(e){e.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<e.length;++r)for(let o=r+1;o<e.length;++o){let a=e[r].radius+e[o].radius;if(st(e[r],e[o])+0.0000000001<a)i(e[o],e[r])}let n=new Map;for(let r=0;r<e.length;++r){let o=s(e[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(e[r])}return e.forEach((r)=>{delete r.parent}),Array.from(n.values())}function zt(e){let s=(i)=>{let n=e.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=e.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Ht(e,s,i){if(s==null)s=Math.PI/2;let n=Zt(e).map((f)=>Object.assign({},f)),r=Me(n);for(let f of r){Ie(f,s,i);let l=zt(f);f.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),f.bounds=l}r.sort((f,l)=>l.size-f.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(f,l,v){if(!f)return;let x=f.bounds,M,k;if(l)M=o.xRange.max-x.xRange.min+a;else{M=o.xRange.max-x.xRange.max;let E=(x.xRange.max-x.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(E<0)M+=E}if(v)k=o.yRange.max-x.yRange.min+a;else{k=o.yRange.max-x.yRange.max;let E=(x.yRange.max-x.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(E<0)k+=E}for(let E of f)E.x+=M,E.y+=k,n.push(E)}let h=1;while(h<r.length)c(r[h],!0,!1),c(r[h+1],!1,!0),c(r[h+2],!0,!0),h+=3,o=zt(n);return Xt(n)}function Yt(e,s,i,n,r){let o=Zt(e);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=zt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),e;let h,f;if(r){let M=Math.sqrt(r/Math.PI)*2;h=s/M,f=i/M}else h=s/(a.max-a.min),f=i/(c.max-c.min);let l=Math.min(f,h),v=(s-(a.max-a.min)*l)/2,x=(i-(c.max-c.min)*l)/2;return Xt(o.map((M)=>({radius:l*M.radius,x:n+v+(M.x-a.min)*l,y:n+x+(M.y-c.min)*l,setid:M.setid})))}function Xt(e){let s={};for(let i of e)s[i.setid]=i;return s}function Zt(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function Jt(e={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,h=null,f=!0,l=!0,v=null,x=null,M=!1,k=null,E=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,N={},D=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],T=0,p=function(m){if(m in N)return N[m];var d=N[m]=D[T];if(T+=1,T>=D.length)T=0;return d},I=Gt,S=xt;function u(m){let d=m.datum(),V=new Set;d.forEach((w)=>{if(w.size==0&&w.sets.length==1)V.add(w.sets[0])}),d=d.filter((w)=>!w.sets.some((K)=>V.has(K)));let _={},B={};if(d.length>0){let w=I(d,{lossFunction:S,distinct:M});if(c)w=Ht(w,a,x);_=Yt(w,i,n,r,h),B=$t(_,d,E)}let it={};d.forEach((w)=>{if(w.label)it[w.sets]=w.label});function Q(w){if(w.sets in it)return it[w.sets];if(w.sets.length==1)return""+w.sets[0]}m.selectAll("svg").data([_]).enter().append("svg");let W=m.select("svg");if(s)W.attr("viewBox",`0 0 ${i} ${n}`);else W.attr("width",i).attr("height",n);let P={},U=!1;W.selectAll(".venn-area path").each(function(w){let K=this.getAttribute("d");if(w.sets.length==1&&K&&!M)U=!0,P[w.sets[0]]=_e(K)});function R(w){return(K)=>{let dt=w.sets.map((ut)=>{let ct=P[ut],nt=_[ut];if(!ct)ct={x:i/2,y:n/2,radius:1};if(!nt)nt={x:i/2,y:n/2,radius:1};return{x:ct.x*(1-K)+nt.x*K,y:ct.y*(1-K)+nt.y*K,radius:ct.radius*(1-K)+nt.radius*K}});return Vt(dt,k)}}let X=W.selectAll(".venn-area").data(d,(w)=>w.sets),tt=X.enter().append("g").attr("class",(w)=>`venn-area venn-${w.sets.length==1?"circle":"intersection"}${w.colour||w.color?" venn-coloured":""}`).attr("data-venn-sets",(w)=>w.sets.join("_")),Z=tt.append("path"),rt=tt.append("text").attr("class","label").text((w)=>Q(w)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)Z.style("fill-opacity","0").filter((w)=>w.sets.length==1).style("fill",(w)=>w.colour?w.colour:w.color?w.color:p(w.sets)).style("fill-opacity",".25"),rt.style("fill",(w)=>{if(w.colour||w.color)return"#FFF";if(e.textFill)return e.textFill;return w.sets.length==1?p(w.sets):"#444"});function et(w){if(typeof w.transition==="function")return w.transition("venn").duration(o);return w}let J=m;if(U&&typeof J.transition==="function")J=et(m),J.selectAll("path").attrTween("d",R);else J.selectAll("path").attr("d",(w)=>Vt(w.sets.map((K)=>_[K])),k);let L=J.selectAll("text").filter((w)=>(w.sets in B)).text((w)=>Q(w)).attr("x",(w)=>Math.floor(B[w.sets].x)).attr("y",(w)=>Math.floor(B[w.sets].y));if(f)if(U)if("on"in L)L.on("end",It(_,Q));else L.each("end",It(_,Q));else L.each(It(_,Q));let lt=et(X.exit()).remove();if(typeof X.transition==="function")lt.selectAll("path").attrTween("d",R);let at=lt.selectAll("text").attr("x",i/2).attr("y",n/2);if(v!==null)rt.style("font-size","0px"),L.style("font-size",v),at.style("font-size","0px");return{circles:_,textCentres:B,nodes:X,enter:tt,update:J,exit:lt}}return u.wrap=function(m){if(!arguments.length)return f;return f=m,u},u.useViewBox=function(){return s=!0,u},u.width=function(m){if(!arguments.length)return i;return i=m,u},u.height=function(m){if(!arguments.length)return n;return n=m,u},u.padding=function(m){if(!arguments.length)return r;return r=m,u},u.distinct=function(m){if(!arguments.length)return M;return M=m,u},u.colours=function(m){if(!arguments.length)return p;return p=m,u},u.colors=function(m){if(!arguments.length)return p;return p=m,u},u.fontSize=function(m){if(!arguments.length)return v;return v=m,u},u.round=function(m){if(!arguments.length)return k;return k=m,u},u.duration=function(m){if(!arguments.length)return o;return o=m,u},u.layoutFunction=function(m){if(!arguments.length)return I;return I=m,u},u.normalize=function(m){if(!arguments.length)return c;return c=m,u},u.scaleToFit=function(m){if(!arguments.length)return h;return h=m,u},u.styled=function(m){if(!arguments.length)return l;return l=m,u},u.orientation=function(m){if(!arguments.length)return a;return a=m,u},u.orientationOrder=function(m){if(!arguments.length)return x;return x=m,u},u.lossFunction=function(m){if(!arguments.length)return S;return S=m==="default"?xt:m==="logRatio"?Kt:m,u},u}function It(e,s){return function(i){let n=this,r=e[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,h=(o.length+a.length)/3,f=a.pop(),l=[f],v=0,x=1.1;n.textContent=null;let M=[];function k(p){let I=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return I.textContent=p,M.push(I),n.append(I),I}let E=k(f);while(!0){if(f=a.pop(),!f)break;l.push(f);let p=l.join(" ");if(E.textContent=p,p.length>h&&E.getComputedTextLength()>r)l.pop(),E.textContent=l.join(" "),l=[f],E=k(f),v++}let N=0.35-v*x/2,D=n.getAttribute("x"),T=n.getAttribute("y");M.forEach((p,I)=>{p.setAttribute("x",D),p.setAttribute("y",T),p.setAttribute("dy",`${N+I*x}em`)})}}function Mt(e,s,i){let n=s[0].radius-st(s[0],e);for(let r=1;r<s.length;++r){let o=s[r].radius-st(s[r],e);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=st(i[r],e)-i[r].radius;if(o<=n)n=o}return n}function Qt(e,s,i){let n=[];for(let l of e)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=Mt(n[0],e,s);for(let l=1;l<n.length;++l){let v=Mt(n[l],e,s);if(v>=o)r=n[l],o=v}let a=Ut((l)=>-1*Mt({x:l[0],y:l[1]},e,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},h=!0;for(let l of e)if(st(c,l)>l.radius){h=!1;break}for(let l of s)if(st(c,l)<l.radius){h=!1;break}if(h)return c;if(e.length==1)return{x:e[0].x,y:e[0].y};let f={};if(mt(e,f),f.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(f.arcs.length==1)return{x:f.arcs[0].circle.x,y:f.arcs[0].circle.y};if(s.length)return Qt(e,[]);return qt(f.arcs.map((l)=>l.p1))}function Se(e){let s={},i=Object.keys(e);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=e[r];for(let a=n+1;a<i.length;++a){let c=i[a],h=e[c],f=st(o,h);if(f+h.radius<=o.radius+0.0000000001)s[c].push(r);else if(f+o.radius<=h.radius+0.0000000001)s[r].push(c)}}return s}function $t(e,s,i){let n={},r=Se(e);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},h={};for(let x=0;x<a.length;++x){c[a[x]]=!0;let M=r[a[x]];for(let k=0;k<M.length;++k)h[M[k]]=!0}let f=[],l=[];for(let x in e)if(x in c)f.push(e[x]);else if(!(x in h))l.push(e[x]);let v=Qt(f,l,i);if(n[a]=v,v.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function we(e,s,i){let n=[];return n.push(`
1
+ import{t,De,lc,g,A,Y,C,ne,M,O,G,z,j,q,H,b,Ae,le,y}from"./index-x507ndnc.js";var ce=(e,s)=>lc(e,"a",-s),kt=ce;function mt(e,s){let i=fe(e),n=i.filter((c)=>ue(c,e)),r=0,o=0,a=[];if(n.length>1){let c=qt(n);for(let f=0;f<n.length;++f){let l=n[f];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((f,l)=>l.angle-f.angle);let h=n[n.length-1];for(let f=0;f<n.length;++f){let l=n[f];o+=(h.x+l.x)*(l.y-h.y);let v={x:(l.x+h.x)/2,y:(l.y+h.y)/2},x=null;for(let S=0;S<l.parentIndex.length;++S)if(h.parentIndex.includes(l.parentIndex[S])){let k=e[l.parentIndex[S]],T=Math.atan2(l.x-k.x,l.y-k.y),L=Math.atan2(h.x-k.x,h.y-k.y),R=L-T;if(R<0)R+=2*Math.PI;let D=L-R/2,p=st(v,{x:k.x+k.radius*Math.sin(D),y:k.y+k.radius*Math.cos(D)});if(p>k.radius*2)p=k.radius*2;if(x==null||x.width>p)x={circle:k,width:p,p1:l,p2:h,large:p>k.radius,sweep:!0}}if(x!=null)a.push(x),r+=St(x.circle.radius,x.width),h=l}}else{let c=e[0];for(let f=1;f<e.length;++f)if(e[f].radius<c.radius)c=e[f];let h=!1;for(let f=0;f<e.length;++f)if(st(e[f],c)>Math.abs(c.radius-e[f].radius)){h=!0;break}if(h)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function ue(e,s){return s.every((i)=>st(e,i)<i.radius+0.0000000001)}function fe(e){let s=[];for(let i=0;i<e.length;++i)for(let n=i+1;n<e.length;++n){let r=Bt(e[i],e[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function St(e,s){return e*e*Math.acos(1-s/e)-(e-s)*Math.sqrt(s*(2*e-s))}function st(e,s){return Math.sqrt((e.x-s.x)*(e.x-s.x)+(e.y-s.y)*(e.y-s.y))}function At(e,s,i){if(i>=e+s)return 0;if(i<=Math.abs(e-s))return Math.PI*Math.min(e,s)*Math.min(e,s);let n=e-(i*i-s*s+e*e)/(2*i),r=s-(i*i-e*e+s*s)/(2*i);return St(e,n)+St(s,r)}function Bt(e,s){let i=st(e,s),n=e.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=e.x+o*(s.x-e.x)/i,h=e.y+o*(s.y-e.y)/i,f=-(s.y-e.y)*(a/i),l=-(s.x-e.x)*(a/i);return[{x:c+f,y:h-l},{x:c-f,y:h+l}]}function qt(e){let s={x:0,y:0};for(let i of e)s.x+=i.x,s.y+=i.y;return s.x/=e.length,s.y/=e.length,s}function he(e,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=e(s),c=e(i),h=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let f=0;f<r;++f){h/=2;let l=s+h,v=e(l);if(v*a>=0)s=l;if(Math.abs(h)<o||v===0)return l}return s+h}function wt(e){let s=Array(e);for(let i=0;i<e;++i)s[i]=0;return s}function Pt(e,s){return wt(e).map(()=>wt(s))}function gt(e,s){let i=0;for(let n=0;n<e.length;++n)i+=e[n]*s[n];return i}function _t(e){return Math.sqrt(gt(e,e))}function Et(e,s,i){for(let n=0;n<s.length;++n)e[n]=s[n]*i}function ft(e,s,i,n,r){for(let o=0;o<e.length;++o)e[o]=s*i[o]+n*r[o]}function Ut(e,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,h=i.rho!==void 0?i.rho:1,f=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,v=i.sigma!==void 0?i.sigma:0.5,x,S=s.length,k=Array(S+1);k[0]=s,k[0].fx=e(s),k[0].id=0;for(let w=0;w<S;++w){let u=s.slice();u[w]=u[w]?u[w]*r:o,k[w+1]=u,k[w+1].fx=e(u),k[w+1].id=w+1}function T(w){for(let u=0;u<w.length;u++)k[S][u]=w[u];k[S].fx=w.fx}let L=(w,u)=>w.fx-u.fx,R=s.slice(),D=s.slice(),p=s.slice(),I=s.slice();for(let w=0;w<n;++w){if(k.sort(L),i.history){let m=k.map((d)=>{let V=d.slice();return V.fx=d.fx,V.id=d.id,V});m.sort((d,V)=>d.id-V.id),i.history.push({x:k[0].slice(),fx:k[0].fx,simplex:m})}x=0;for(let m=0;m<S;++m)x=Math.max(x,Math.abs(k[0][m]-k[1][m]));if(Math.abs(k[0].fx-k[S].fx)<a&&x<c)break;for(let m=0;m<S;++m){R[m]=0;for(let d=0;d<S;++d)R[m]+=k[d][m];R[m]/=S}let u=k[S];if(ft(D,1+h,R,-h,u),D.fx=e(D),D.fx<k[0].fx)if(ft(I,1+f,R,-f,u),I.fx=e(I),I.fx<D.fx)T(I);else T(D);else if(D.fx>=k[S-1].fx){let m=!1;if(D.fx>u.fx)if(ft(p,1+l,R,-l,u),p.fx=e(p),p.fx<u.fx)T(p);else m=!0;else if(ft(p,1-l*h,R,l*h,u),p.fx=e(p),p.fx<D.fx)T(p);else m=!0;if(m){if(v>=1)break;for(let d=1;d<k.length;++d)ft(k[d],1-v,k[0],v,k[d]),k[d].fx=e(k[d])}}else T(D)}return k.sort(L),{fx:k[0].fx,x:k[0]}}function de(e,s,i,n,r,o,a){let c=i.fx,h=gt(i.fxprime,s),f=c,l=c,v=h,x=0;r=r||1,o=o||0.000001,a=a||0.1;function S(k,T,L){for(let R=0;R<16;++R)if(r=(k+T)/2,ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*h||f>=L)T=r;else{if(Math.abs(v)<=-a*h)return r;if(v*(T-k)>=0)T=k;k=r,L=f}return 0}for(let k=0;k<10;++k){if(ft(n.x,1,i.x,r,s),f=n.fx=e(n.x,n.fxprime),v=gt(n.fxprime,s),f>c+o*r*h||k&&f>=l)return S(x,r,l);if(Math.abs(v)<=-a*h)return r;if(v>=0)return S(r,x,f);l=f,x=r,r*=2}return r}function ge(e,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,h=1,f;i=i||{},f=i.maxIterations||s.length*20,n.fx=e(n.x,n.fxprime),a=n.fxprime.slice(),Et(a,n.fxprime,-1);for(let l=0;l<f;++l){if(h=de(e,a,n,r,h),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:h});if(!h)Et(a,n.fxprime,-1);else{ft(o,1,r.fxprime,-1,n.fxprime);let v=gt(n.fxprime,n.fxprime),x=Math.max(0,gt(o,r.fxprime)/v);ft(a,x,a,-1,r.fxprime),c=n,n=r,r=c}if(_t(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:h});return n}function Gt(e,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||me,n=s.lossFunction||xt,r=xe(e,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let f=Ut((l)=>{let v={};for(let x=0;x<a.length;++x){let S=a[x];v[S]={x:l[2*x],y:l[2*x+1],radius:o[S].radius}}return n(v,r)},c,s).x;for(let l=0;l<a.length;++l){let v=a[l];o[v].x=f[2*l],o[v].y=f[2*l+1]}return o}var Wt=0.0000000001;function Tt(e,s,i){if(Math.min(e,s)*Math.min(e,s)*Math.PI<=i+Wt)return Math.abs(e-s);return he((n)=>At(e,s,n)-i,0,e+s)}function xe(e,s={}){let i=s.distinct,n=e.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let h of n)for(let f=0;f<h.sets.length;f++){let l=String(h.sets[f]);c.set(l,h.size+(c.get(l)||0));for(let v=f+1;v<h.sets.length;v++){let x=String(h.sets[v]),S=`${l};${x}`,k=`${x};${l}`;c.set(S,h.size+(c.get(S)||0)),c.set(k,h.size+(c.get(k)||0))}}for(let h of n)if(h.sets.length<3)h.size=c.get(r(h.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let h=c.sets[0],f=c.sets[1];a.add(r(c.sets)),a.add(r([f,h]))}o.sort((c,h)=>c===h?0:c<h?-1:1);for(let c=0;c<o.length;++c){let h=o[c];for(let f=c+1;f<o.length;++f){let l=o[f];if(!a.has(r([h,l])))n.push({sets:[h,l],size:0})}}return n}function ye(e,s,i){let n=Pt(s.length,s.length),r=Pt(s.length,s.length);return e.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],h=Math.sqrt(s[a].size/Math.PI),f=Math.sqrt(s[c].size/Math.PI),l=Tt(h,f,o.size);n[a][c]=n[c][a]=l;let v=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))v=1;else if(o.size<=0.0000000001)v=-1;r[a][c]=r[c][a]=v}),{distances:n,constraints:r}}function pe(e,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=e[2*o],c=e[2*o+1];for(let h=o+1;h<i.length;++h){let f=e[2*h],l=e[2*h+1],v=i[o][h],x=n[o][h],S=(f-a)*(f-a)+(l-c)*(l-c),k=Math.sqrt(S),T=S-v*v;if(x>0&&k<=v||x<0&&k>=v)continue;r+=2*T*T,s[2*o]+=4*T*(a-f),s[2*o+1]+=4*T*(c-l),s[2*h]+=4*T*(f-a),s[2*h+1]+=4*T*(l-c)}}return r}function me(e,s={}){let i=ve(e,s),n=s.lossFunction||xt;if(e.length>=8){let r=be(e,s),o=n(r,e),a=n(i,e);if(o+0.00000001<a)i=r}return i}function be(e,s={}){let i=s.restarts||10,n=[],r={};for(let x of e)if(x.sets.length===1)r[x.sets[0]]=n.length,n.push(x);let{distances:o,constraints:a}=ye(e,n,r),c=_t(o.map(_t))/o.length;o=o.map((x)=>x.map((S)=>S/c));let h=(x,S)=>pe(x,S,o,a),f=null;for(let x=0;x<i;++x){let S=wt(o.length*2).map(Math.random),k=ge(h,S,s);if(!f||k.fx<f.fx)f=k}let l=f.x,v={};for(let x=0;x<n.length;++x){let S=n[x];v[S.sets[0]]={x:l[2*x]*c,y:l[2*x+1]*c,radius:Math.sqrt(S.size/Math.PI)}}if(s.history)for(let x of s.history)Et(x.x,c);return v}function ve(e,s){let i=s&&s.lossFunction?s.lossFunction:xt,n={},r={};for(let v of e)if(v.sets.length===1){let x=v.sets[0];n[x]={x:10000000000,y:10000000000,rowid:n.length,size:v.size,radius:Math.sqrt(v.size/Math.PI)},r[x]=[]}e=e.filter((v)=>v.sets.length===2);for(let v of e){let x=v.weight!=null?v.weight:1,S=v.sets[0],k=v.sets[1];if(v.size+Wt>=Math.min(n[S].size,n[k].size))x=0;r[S].push({set:k,size:v.size,weight:x}),r[k].push({set:S,size:v.size,weight:x})}let o=[];Object.keys(r).forEach((v)=>{let x=0;for(let S=0;S<r[v].length;++S)x+=r[v][S].size*r[v][S].weight;o.push({set:v,size:x})});function a(v,x){return x.size-v.size}o.sort(a);let c={};function h(v){return v.set in c}function f(v,x){n[x].x=v.x,n[x].y=v.y,c[x]=!0}f({x:0,y:0},o[0].set);for(let v=1;v<o.length;++v){let x=o[v].set,S=r[x].filter(h),k=n[x];if(S.sort(a),S.length===0)throw"ERROR: missing pairwise overlap information";let T=[];for(var l=0;l<S.length;++l){let D=n[S[l].set],p=Tt(k.radius,D.radius,S[l].size);T.push({x:D.x+p,y:D.y}),T.push({x:D.x-p,y:D.y}),T.push({y:D.y+p,x:D.x}),T.push({y:D.y-p,x:D.x});for(let I=l+1;I<S.length;++I){let w=n[S[I].set],u=Tt(k.radius,w.radius,S[I].size),m=Bt({x:D.x,y:D.y,radius:p},{x:w.x,y:w.y,radius:u});T.push(...m)}}let L=100000000000000000000000000000000000000000000000000,R=T[0];for(let D of T){n[x].x=D.x,n[x].y=D.y;let p=i(n,e);if(p<L)L=p,R=D}f(R,x)}return n}function xt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=e[n.sets[0]],c=e[n.sets[1]];r=At(a.radius,c.radius,st(a,c))}else r=mt(n.sets.map((a)=>e[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Kt(e,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=e[n.sets[0]],h=e[n.sets[1]];r=At(c.radius,h.radius,st(c,h))}else r=mt(n.sets.map((c)=>e[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function ke(e,s,i){if(i==null)e.sort((r,o)=>o.radius-r.radius);else e.sort(i);if(e.length>0){let r=e[0].x,o=e[0].y;for(let a of e)a.x-=r,a.y-=o}if(e.length===2){if(st(e[0],e[1])<Math.abs(e[1].radius-e[0].radius))e[1].x=e[0].x+e[0].radius-e[1].radius-0.0000000001,e[1].y=e[0].y}if(e.length>1){let r=Math.atan2(e[1].x,e[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of e){let{x:h,y:f}=c;c.x=o*h-a*f,c.y=a*h+o*f}}if(e.length>2){let r=Math.atan2(e[2].x,e[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=e[1].y/(0.0000000001+e[1].x);for(let a of e){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Ie(e){e.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<e.length;++r)for(let o=r+1;o<e.length;++o){let a=e[r].radius+e[o].radius;if(st(e[r],e[o])+0.0000000001<a)i(e[o],e[r])}let n=new Map;for(let r=0;r<e.length;++r){let o=s(e[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(e[r])}return e.forEach((r)=>{delete r.parent}),Array.from(n.values())}function zt(e){let s=(i)=>{let n=e.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=e.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Ht(e,s,i){if(s==null)s=Math.PI/2;let n=Zt(e).map((f)=>Object.assign({},f)),r=Ie(n);for(let f of r){ke(f,s,i);let l=zt(f);f.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),f.bounds=l}r.sort((f,l)=>l.size-f.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(f,l,v){if(!f)return;let x=f.bounds,S,k;if(l)S=o.xRange.max-x.xRange.min+a;else{S=o.xRange.max-x.xRange.max;let T=(x.xRange.max-x.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(T<0)S+=T}if(v)k=o.yRange.max-x.yRange.min+a;else{k=o.yRange.max-x.yRange.max;let T=(x.yRange.max-x.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(T<0)k+=T}for(let T of f)T.x+=S,T.y+=k,n.push(T)}let h=1;while(h<r.length)c(r[h],!0,!1),c(r[h+1],!1,!0),c(r[h+2],!0,!0),h+=3,o=zt(n);return Xt(n)}function Yt(e,s,i,n,r){let o=Zt(e);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=zt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),e;let h,f;if(r){let S=Math.sqrt(r/Math.PI)*2;h=s/S,f=i/S}else h=s/(a.max-a.min),f=i/(c.max-c.min);let l=Math.min(f,h),v=(s-(a.max-a.min)*l)/2,x=(i-(c.max-c.min)*l)/2;return Xt(o.map((S)=>({radius:l*S.radius,x:n+v+(S.x-a.min)*l,y:n+x+(S.y-c.min)*l,setid:S.setid})))}function Xt(e){let s={};for(let i of e)s[i.setid]=i;return s}function Zt(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function Jt(e={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,h=null,f=!0,l=!0,v=null,x=null,S=!1,k=null,T=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,L={},R=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],D=0,p=function(m){if(m in L)return L[m];var d=L[m]=R[D];if(D+=1,D>=R.length)D=0;return d},I=Gt,w=xt;function u(m){let d=m.datum(),V=new Set;d.forEach((_)=>{if(_.size==0&&_.sets.length==1)V.add(_.sets[0])}),d=d.filter((_)=>!_.sets.some((K)=>V.has(K)));let E={},B={};if(d.length>0){let _=I(d,{lossFunction:w,distinct:S});if(c)_=Ht(_,a,x);E=Yt(_,i,n,r,h),B=$t(E,d,T)}let it={};d.forEach((_)=>{if(_.label)it[_.sets]=_.label});function Q(_){if(_.sets in it)return it[_.sets];if(_.sets.length==1)return""+_.sets[0]}m.selectAll("svg").data([E]).enter().append("svg");let W=m.select("svg");if(s)W.attr("viewBox",`0 0 ${i} ${n}`);else W.attr("width",i).attr("height",n);let P={},U=!1;W.selectAll(".venn-area path").each(function(_){let K=this.getAttribute("d");if(_.sets.length==1&&K&&!S)U=!0,P[_.sets[0]]=we(K)});function N(_){return(K)=>{let dt=_.sets.map((ut)=>{let ct=P[ut],nt=E[ut];if(!ct)ct={x:i/2,y:n/2,radius:1};if(!nt)nt={x:i/2,y:n/2,radius:1};return{x:ct.x*(1-K)+nt.x*K,y:ct.y*(1-K)+nt.y*K,radius:ct.radius*(1-K)+nt.radius*K}});return Vt(dt,k)}}let X=W.selectAll(".venn-area").data(d,(_)=>_.sets),tt=X.enter().append("g").attr("class",(_)=>`venn-area venn-${_.sets.length==1?"circle":"intersection"}${_.colour||_.color?" venn-coloured":""}`).attr("data-venn-sets",(_)=>_.sets.join("_")),Z=tt.append("path"),rt=tt.append("text").attr("class","label").text((_)=>Q(_)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)Z.style("fill-opacity","0").filter((_)=>_.sets.length==1).style("fill",(_)=>_.colour?_.colour:_.color?_.color:p(_.sets)).style("fill-opacity",".25"),rt.style("fill",(_)=>{if(_.colour||_.color)return"#FFF";if(e.textFill)return e.textFill;return _.sets.length==1?p(_.sets):"#444"});function et(_){if(typeof _.transition==="function")return _.transition("venn").duration(o);return _}let J=m;if(U&&typeof J.transition==="function")J=et(m),J.selectAll("path").attrTween("d",N);else J.selectAll("path").attr("d",(_)=>Vt(_.sets.map((K)=>E[K])),k);let F=J.selectAll("text").filter((_)=>(_.sets in B)).text((_)=>Q(_)).attr("x",(_)=>Math.floor(B[_.sets].x)).attr("y",(_)=>Math.floor(B[_.sets].y));if(f)if(U)if("on"in F)F.on("end",It(E,Q));else F.each("end",It(E,Q));else F.each(It(E,Q));let lt=et(X.exit()).remove();if(typeof X.transition==="function")lt.selectAll("path").attrTween("d",N);let at=lt.selectAll("text").attr("x",i/2).attr("y",n/2);if(v!==null)rt.style("font-size","0px"),F.style("font-size",v),at.style("font-size","0px");return{circles:E,textCentres:B,nodes:X,enter:tt,update:J,exit:lt}}return u.wrap=function(m){if(!arguments.length)return f;return f=m,u},u.useViewBox=function(){return s=!0,u},u.width=function(m){if(!arguments.length)return i;return i=m,u},u.height=function(m){if(!arguments.length)return n;return n=m,u},u.padding=function(m){if(!arguments.length)return r;return r=m,u},u.distinct=function(m){if(!arguments.length)return S;return S=m,u},u.colours=function(m){if(!arguments.length)return p;return p=m,u},u.colors=function(m){if(!arguments.length)return p;return p=m,u},u.fontSize=function(m){if(!arguments.length)return v;return v=m,u},u.round=function(m){if(!arguments.length)return k;return k=m,u},u.duration=function(m){if(!arguments.length)return o;return o=m,u},u.layoutFunction=function(m){if(!arguments.length)return I;return I=m,u},u.normalize=function(m){if(!arguments.length)return c;return c=m,u},u.scaleToFit=function(m){if(!arguments.length)return h;return h=m,u},u.styled=function(m){if(!arguments.length)return l;return l=m,u},u.orientation=function(m){if(!arguments.length)return a;return a=m,u},u.orientationOrder=function(m){if(!arguments.length)return x;return x=m,u},u.lossFunction=function(m){if(!arguments.length)return w;return w=m==="default"?xt:m==="logRatio"?Kt:m,u},u}function It(e,s){return function(i){let n=this,r=e[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,h=(o.length+a.length)/3,f=a.pop(),l=[f],v=0,x=1.1;n.textContent=null;let S=[];function k(p){let I=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return I.textContent=p,S.push(I),n.append(I),I}let T=k(f);while(!0){if(f=a.pop(),!f)break;l.push(f);let p=l.join(" ");if(T.textContent=p,p.length>h&&T.getComputedTextLength()>r)l.pop(),T.textContent=l.join(" "),l=[f],T=k(f),v++}let L=0.35-v*x/2,R=n.getAttribute("x"),D=n.getAttribute("y");S.forEach((p,I)=>{p.setAttribute("x",R),p.setAttribute("y",D),p.setAttribute("dy",`${L+I*x}em`)})}}function Mt(e,s,i){let n=s[0].radius-st(s[0],e);for(let r=1;r<s.length;++r){let o=s[r].radius-st(s[r],e);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=st(i[r],e)-i[r].radius;if(o<=n)n=o}return n}function Qt(e,s,i){let n=[];for(let l of e)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=Mt(n[0],e,s);for(let l=1;l<n.length;++l){let v=Mt(n[l],e,s);if(v>=o)r=n[l],o=v}let a=Ut((l)=>-1*Mt({x:l[0],y:l[1]},e,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},h=!0;for(let l of e)if(st(c,l)>l.radius){h=!1;break}for(let l of s)if(st(c,l)<l.radius){h=!1;break}if(h)return c;if(e.length==1)return{x:e[0].x,y:e[0].y};let f={};if(mt(e,f),f.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(f.arcs.length==1)return{x:f.arcs[0].circle.x,y:f.arcs[0].circle.y};if(s.length)return Qt(e,[]);return qt(f.arcs.map((l)=>l.p1))}function Me(e){let s={},i=Object.keys(e);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=e[r];for(let a=n+1;a<i.length;++a){let c=i[a],h=e[c],f=st(o,h);if(f+h.radius<=o.radius+0.0000000001)s[c].push(r);else if(f+o.radius<=h.radius+0.0000000001)s[r].push(c)}}return s}function $t(e,s,i){let n={},r=Me(e);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},h={};for(let x=0;x<a.length;++x){c[a[x]]=!0;let S=r[a[x]];for(let k=0;k<S.length;++k)h[S[k]]=!0}let f=[],l=[];for(let x in e)if(x in c)f.push(e[x]);else if(!(x in h))l.push(e[x]);let v=Qt(f,l,i);if(n[a]=v,v.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function Se(e,s,i){let n=[];return n.push(`
2
2
  M`,e,s),n.push(`
3
3
  m`,-i,0),n.push(`
4
4
  a`,i,i,0,1,0,i*2,0),n.push(`
5
- a`,i,i,0,1,0,-i*2,0),n.join(" ")}function _e(e){let s=e.split(" ");return{x:Number.parseFloat(s[1]),y:Number.parseFloat(s[2]),radius:-Number.parseFloat(s[4])}}function ee(e){if(e.length===0)return[];let s={};return mt(e,s),s.arcs}function ne(e,s){if(e.length===0)return"M 0 0";let i=Math.pow(10,s||0),n=s!=null?(o)=>Math.round(o*i)/i:(o)=>o;if(e.length==1){let o=e[0].circle;return we(n(o.x),n(o.y),n(o.radius))}let r=[`
5
+ a`,i,i,0,1,0,-i*2,0),n.join(" ")}function we(e){let s=e.split(" ");return{x:Number.parseFloat(s[1]),y:Number.parseFloat(s[2]),radius:-Number.parseFloat(s[4])}}function te(e){if(e.length===0)return[];let s={};return mt(e,s),s.arcs}function ee(e,s){if(e.length===0)return"M 0 0";let i=Math.pow(10,s||0),n=s!=null?(o)=>Math.round(o*i)/i:(o)=>o;if(e.length==1){let o=e[0].circle;return Se(n(o.x),n(o.y),n(o.radius))}let r=[`
6
6
  M`,n(e[0].p2.x),n(e[0].p2.y)];for(let o of e){let a=n(o.circle.radius);r.push(`
7
- A`,a,a,0,o.large?1:0,o.sweep?1:0,n(o.p1.x),n(o.p1.y))}return r.join(" ")}function Vt(e,s){return ne(ee(e),s)}function se(e,s={}){let{lossFunction:i,layoutFunction:n=Gt,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:a,width:c=600,height:h=350,padding:f=15,scaleToFit:l=!1,symmetricalTextCentre:v=!1,distinct:x,round:M=2}=s,k=n(e,{lossFunction:i==="default"||!i?xt:i==="logRatio"?Kt:i,distinct:x});if(r)k=Ht(k,o,a);let E=Yt(k,c,h,f,l),N=$t(E,e,v),D=new Map(Object.keys(E).map((I)=>[I,{set:I,x:E[I].x,y:E[I].y,radius:E[I].radius}])),T=e.map((I)=>{let S=I.sets.map((d)=>D.get(d)),u=ee(S),m=ne(u,M);return{circles:S,arcs:u,path:m,area:I,has:new Set(I.sets)}});function p(I){let S="";for(let u of T)if(u.has.size>I.length&&I.every((m)=>u.has.has(m)))S+=" "+u.path;return S}return T.map(({circles:I,arcs:S,path:u,area:m})=>({data:m,text:N[m.sets],circles:I,arcs:S,path:u,distinctPath:u+p(m.sets)}))}var Ct=function(){var e=t(function(T,p,I,S){for(I=I||{},S=T.length;S--;I[T[S]]=p);return I},"o"),s=[5,8],i=[7,8,11,12,17,19,22,24],n=[1,17],r=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],c=[1,39],h=[7,8,11,12,17,19,22,24,27],f=[1,57],l=[1,56],v=[1,58],x=[1,59],M=[1,60],k=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],E={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:t(function(p,I,S,u,m,d,V){var _=d.length-1;switch(m){case 1:return d[_-1];case 2:case 3:case 4:this.$=[];break;case 5:d[_-1].push(d[_]),this.$=d[_-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=d[_];break;case 8:u.setDiagramTitle(d[_].substr(6)),this.$=d[_].substr(6);break;case 9:if(u.addSubsetData([d[_]],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 10:if(u.addSubsetData([d[_-1]],d[_],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 11:if(u.addSubsetData([d[_-2]],void 0,parseFloat(d[_])),u.setIndentMode)u.setIndentMode(!0);break;case 12:if(u.addSubsetData([d[_-3]],d[_-2],parseFloat(d[_])),u.setIndentMode)u.setIndentMode(!0);break;case 13:if(d[_].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[_]);if(u.addSubsetData(d[_],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 14:if(d[_-1].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[_-1]);if(u.addSubsetData(d[_-1],d[_],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 15:if(d[_-2].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[_-2]);if(u.addSubsetData(d[_-2],void 0,parseFloat(d[_])),u.setIndentMode)u.setIndentMode(!0);break;case 16:if(d[_-3].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[_-3]);if(u.addSubsetData(d[_-3],d[_-2],parseFloat(d[_])),u.setIndentMode)u.setIndentMode(!0);break;case 17:case 18:case 19:u.addTextData(d[_-1],d[_],void 0);break;case 20:case 21:u.addTextData(d[_-2],d[_-1],d[_]);break;case 23:u.addStyleData(d[_-1],d[_]);break;case 24:case 25:case 26:var B=u.getCurrentSets();if(!B)throw Error("text requires set");u.addTextData(B,d[_],void 0);break;case 27:case 28:var B=u.getCurrentSets();if(!B)throw Error("text requires set");u.addTextData(B,d[_-1],d[_]);break;case 29:case 41:this.$=[d[_]];break;case 30:case 42:this.$=[...d[_-2],d[_]];break;case 31:this.$=[d[_-2],d[_]];break;case 33:this.$=d[_].join(" ");break;case 34:this.$=[d[_]];break;case 35:d[_-1].push(d[_]),this.$=d[_-1];break;case 43:case 44:this.$=d[_];break}},"anonymous"),table:[e(s,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(s,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:n,21:r},{13:20,18:19,20:n,21:r},{13:20,18:21,20:n,21:r},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:r},e(i,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:c,25:37,26:38,27:a},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:r},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(h,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(o,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:c,26:51},{16:f,20:l,21:[1,53],28:52,29:54,30:55,31:v,32:x,33:M},e(i,[2,12]),e(i,[2,16]),e(h,[2,30]),e(h,[2,31]),e(h,[2,32]),e(h,[2,33],{30:61,16:f,20:l,31:v,32:x,33:M}),e(k,[2,34]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),e(k,[2,39]),e(k,[2,40]),e(k,[2,35])],defaultActions:{6:[2,1]},parseError:t(function(p,I){if(I.recoverable)this.trace(p);else{var S=Error(p);throw S.hash=I,S}},"parseError"),parse:t(function(p){var I=this,S=[0],u=[],m=[null],d=[],V=this.table,_="",B=0,it=0,Q=0,W=2,P=1,U=d.slice.call(arguments,1),R=Object.create(this.lexer),X={yy:{}};for(var tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,tt))X.yy[tt]=this.yy[tt];if(R.setInput(p,X.yy),X.yy.lexer=R,X.yy.parser=this,typeof R.yylloc>"u")R.yylloc={};var Z=R.yylloc;d.push(Z);var rt=R.options&&R.options.ranges;if(typeof X.yy.parseError==="function")this.parseError=X.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function et(ot){S.length=S.length-2*ot,m.length=m.length-ot,d.length=d.length-ot}t(et,"popStack");function J(){var ot=u.pop()||R.lex()||P;if(typeof ot!=="number"){if(ot instanceof Array)u=ot,ot=u.pop();ot=I.symbols_[ot]||ot}return ot}t(J,"lex");var L,lt,at,w,K,dt,ut={},ct,nt,Ft,pt;while(!0){if(at=S[S.length-1],this.defaultActions[at])w=this.defaultActions[at];else{if(L===null||typeof L>"u")L=J();w=V[at]&&V[at][L]}if(typeof w>"u"||!w.length||!w[0]){var vt="";pt=[];for(ct in V[at])if(this.terminals_[ct]&&ct>W)pt.push("'"+this.terminals_[ct]+"'");if(R.showPosition)vt="Parse error on line "+(B+1)+`:
8
- `+R.showPosition()+`
9
- Expecting `+pt.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else vt="Parse error on line "+(B+1)+": Unexpected "+(L==P?"end of input":"'"+(this.terminals_[L]||L)+"'");this.parseError(vt,{text:R.match,token:this.terminals_[L]||L,line:R.yylineno,loc:Z,expected:pt})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+at+", token: "+L);switch(w[0]){case 1:if(S.push(L),m.push(R.yytext),d.push(R.yylloc),S.push(w[1]),L=null,!lt){if(it=R.yyleng,_=R.yytext,B=R.yylineno,Z=R.yylloc,Q>0)Q--}else L=lt,lt=null;break;case 2:if(nt=this.productions_[w[1]][1],ut.$=m[m.length-nt],ut._$={first_line:d[d.length-(nt||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(nt||1)].first_column,last_column:d[d.length-1].last_column},rt)ut._$.range=[d[d.length-(nt||1)].range[0],d[d.length-1].range[1]];if(dt=this.performAction.apply(ut,[_,it,B,X.yy,w[1],m,d].concat(U)),typeof dt<"u")return dt;if(nt)S=S.slice(0,-1*nt*2),m=m.slice(0,-1*nt),d=d.slice(0,-1*nt);S.push(this.productions_[w[1]][0]),m.push(ut.$),d.push(ut._$),Ft=V[S[S.length-2]][S[S.length-1]],S.push(Ft);break;case 3:return!0}}return!0},"parse")},N=function(){var T={EOF:1,parseError:t(function(I,S){if(this.yy.parser)this.yy.parser.parseError(I,S);else throw Error(I)},"parseError"),setInput:t(function(p,I){if(this.yy=I||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var I=p.match(/(?:\r\n?|\n).*/g);if(I)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),p},"input"),unput:t(function(p){var I=p.length,S=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var u=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1)this.yylineno-=S.length-1;var m=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===u.length?this.yylloc.first_column:0)+u[u.length-S.length].length-S[0].length:this.yylloc.first_column-I},this.options.ranges)this.yylloc.range=[m[0],m[0]+this.yyleng-I];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
7
+ A`,a,a,0,o.large?1:0,o.sweep?1:0,n(o.p1.x),n(o.p1.y))}return r.join(" ")}function Vt(e,s){return ee(te(e),s)}function se(e,s={}){let{lossFunction:i,layoutFunction:n=Gt,normalize:r=!0,orientation:o=Math.PI/2,orientationOrder:a,width:c=600,height:h=350,padding:f=15,scaleToFit:l=!1,symmetricalTextCentre:v=!1,distinct:x,round:S=2}=s,k=n(e,{lossFunction:i==="default"||!i?xt:i==="logRatio"?Kt:i,distinct:x});if(r)k=Ht(k,o,a);let T=Yt(k,c,h,f,l),L=$t(T,e,v),R=new Map(Object.keys(T).map((I)=>[I,{set:I,x:T[I].x,y:T[I].y,radius:T[I].radius}])),D=e.map((I)=>{let w=I.sets.map((d)=>R.get(d)),u=te(w),m=ee(u,S);return{circles:w,arcs:u,path:m,area:I,has:new Set(I.sets)}});function p(I){let w="";for(let u of D)if(u.has.size>I.length&&I.every((m)=>u.has.has(m)))w+=" "+u.path;return w}return D.map(({circles:I,arcs:w,path:u,area:m})=>({data:m,text:L[m.sets],circles:I,arcs:w,path:u,distinctPath:u+p(m.sets)}))}var Ct=function(){var e=t(function(D,p,I,w){for(I=I||{},w=D.length;w--;I[D[w]]=p);return I},"o"),s=[5,8],i=[7,8,11,12,17,19,22,24],n=[1,17],r=[1,18],o=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],a=[1,31],c=[1,39],h=[7,8,11,12,17,19,22,24,27],f=[1,57],l=[1,56],v=[1,58],x=[1,59],S=[1,60],k=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],T={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:t(function(p,I,w,u,m,d,V){var E=d.length-1;switch(m){case 1:return d[E-1];case 2:case 3:case 4:this.$=[];break;case 5:d[E-1].push(d[E]),this.$=d[E-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=d[E];break;case 8:u.setDiagramTitle(d[E].substr(6)),this.$=d[E].substr(6);break;case 9:if(u.addSubsetData([d[E]],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 10:if(u.addSubsetData([d[E-1]],d[E],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 11:if(u.addSubsetData([d[E-2]],void 0,parseFloat(d[E])),u.setIndentMode)u.setIndentMode(!0);break;case 12:if(u.addSubsetData([d[E-3]],d[E-2],parseFloat(d[E])),u.setIndentMode)u.setIndentMode(!0);break;case 13:if(d[E].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[E]);if(u.addSubsetData(d[E],void 0,void 0),u.setIndentMode)u.setIndentMode(!0);break;case 14:if(d[E-1].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[E-1]);if(u.addSubsetData(d[E-1],d[E],void 0),u.setIndentMode)u.setIndentMode(!0);break;case 15:if(d[E-2].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[E-2]);if(u.addSubsetData(d[E-2],void 0,parseFloat(d[E])),u.setIndentMode)u.setIndentMode(!0);break;case 16:if(d[E-3].length<2)throw Error("union requires multiple identifiers");if(u.validateUnionIdentifiers)u.validateUnionIdentifiers(d[E-3]);if(u.addSubsetData(d[E-3],d[E-2],parseFloat(d[E])),u.setIndentMode)u.setIndentMode(!0);break;case 17:case 18:case 19:u.addTextData(d[E-1],d[E],void 0);break;case 20:case 21:u.addTextData(d[E-2],d[E-1],d[E]);break;case 23:u.addStyleData(d[E-1],d[E]);break;case 24:case 25:case 26:var B=u.getCurrentSets();if(!B)throw Error("text requires set");u.addTextData(B,d[E],void 0);break;case 27:case 28:var B=u.getCurrentSets();if(!B)throw Error("text requires set");u.addTextData(B,d[E-1],d[E]);break;case 29:case 41:this.$=[d[E]];break;case 30:case 42:this.$=[...d[E-2],d[E]];break;case 31:this.$=[d[E-2],d[E]];break;case 33:this.$=d[E].join(" ");break;case 34:this.$=[d[E]];break;case 35:d[E-1].push(d[E]),this.$=d[E-1];break;case 43:case 44:this.$=d[E];break}},"anonymous"),table:[e(s,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(s,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:n,21:r},{13:20,18:19,20:n,21:r},{13:20,18:21,20:n,21:r},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:n,21:r},e(i,[2,9],{14:[1,27],15:[1,28]}),e(o,[2,43]),e(o,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:a}),e(o,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:a},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:c,25:37,26:38,27:a},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:n,21:r},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(h,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(o,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:c,26:51},{16:f,20:l,21:[1,53],28:52,29:54,30:55,31:v,32:x,33:S},e(i,[2,12]),e(i,[2,16]),e(h,[2,30]),e(h,[2,31]),e(h,[2,32]),e(h,[2,33],{30:61,16:f,20:l,31:v,32:x,33:S}),e(k,[2,34]),e(k,[2,36]),e(k,[2,37]),e(k,[2,38]),e(k,[2,39]),e(k,[2,40]),e(k,[2,35])],defaultActions:{6:[2,1]},parseError:t(function(p,I){if(I.recoverable)this.trace(p);else{var w=Error(p);throw w.hash=I,w}},"parseError"),parse:t(function(p){var I=this,w=[0],u=[],m=[null],d=[],V=this.table,E="",B=0,it=0,Q=0,W=2,P=1,U=d.slice.call(arguments,1),N=Object.create(this.lexer),X={yy:{}};for(var tt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,tt))X.yy[tt]=this.yy[tt];if(N.setInput(p,X.yy),X.yy.lexer=N,X.yy.parser=this,typeof N.yylloc>"u")N.yylloc={};var Z=N.yylloc;d.push(Z);var rt=N.options&&N.options.ranges;if(typeof X.yy.parseError==="function")this.parseError=X.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function et(ot){w.length=w.length-2*ot,m.length=m.length-ot,d.length=d.length-ot}t(et,"popStack");function J(){var ot=u.pop()||N.lex()||P;if(typeof ot!=="number"){if(ot instanceof Array)u=ot,ot=u.pop();ot=I.symbols_[ot]||ot}return ot}t(J,"lex");var F,lt,at,_,K,dt,ut={},ct,nt,Ft,pt;while(!0){if(at=w[w.length-1],this.defaultActions[at])_=this.defaultActions[at];else{if(F===null||typeof F>"u")F=J();_=V[at]&&V[at][F]}if(typeof _>"u"||!_.length||!_[0]){var vt="";pt=[];for(ct in V[at])if(this.terminals_[ct]&&ct>W)pt.push("'"+this.terminals_[ct]+"'");if(N.showPosition)vt="Parse error on line "+(B+1)+`:
8
+ `+N.showPosition()+`
9
+ Expecting `+pt.join(", ")+", got '"+(this.terminals_[F]||F)+"'";else vt="Parse error on line "+(B+1)+": Unexpected "+(F==P?"end of input":"'"+(this.terminals_[F]||F)+"'");this.parseError(vt,{text:N.match,token:this.terminals_[F]||F,line:N.yylineno,loc:Z,expected:pt})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+at+", token: "+F);switch(_[0]){case 1:if(w.push(F),m.push(N.yytext),d.push(N.yylloc),w.push(_[1]),F=null,!lt){if(it=N.yyleng,E=N.yytext,B=N.yylineno,Z=N.yylloc,Q>0)Q--}else F=lt,lt=null;break;case 2:if(nt=this.productions_[_[1]][1],ut.$=m[m.length-nt],ut._$={first_line:d[d.length-(nt||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(nt||1)].first_column,last_column:d[d.length-1].last_column},rt)ut._$.range=[d[d.length-(nt||1)].range[0],d[d.length-1].range[1]];if(dt=this.performAction.apply(ut,[E,it,B,X.yy,_[1],m,d].concat(U)),typeof dt<"u")return dt;if(nt)w=w.slice(0,-1*nt*2),m=m.slice(0,-1*nt),d=d.slice(0,-1*nt);w.push(this.productions_[_[1]][0]),m.push(ut.$),d.push(ut._$),Ft=V[w[w.length-2]][w[w.length-1]],w.push(Ft);break;case 3:return!0}}return!0},"parse")},L=function(){var D={EOF:1,parseError:t(function(I,w){if(this.yy.parser)this.yy.parser.parseError(I,w);else throw Error(I)},"parseError"),setInput:t(function(p,I){if(this.yy=I||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var I=p.match(/(?:\r\n?|\n).*/g);if(I)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),p},"input"),unput:t(function(p){var I=p.length,w=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var u=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),w.length-1)this.yylineno-=w.length-1;var m=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:w?(w.length===u.length?this.yylloc.first_column:0)+u[u.length-w.length].length-w[0].length:this.yylloc.first_column-I},this.options.ranges)this.yylloc.range=[m[0],m[0]+this.yyleng-I];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
10
10
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(p){this.unput(this.match.slice(p))},"less"),pastInput:t(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var p=this.match;if(p.length<20)p+=this._input.substr(0,20-p.length);return(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var p=this.pastInput(),I=Array(p.length+1).join("-");return p+this.upcomingInput()+`
11
- `+I+"^"},"showPosition"),test_match:t(function(p,I){var S,u,m;if(this.options.backtrack_lexer){if(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)m.yylloc.range=this.yylloc.range.slice(0)}if(u=p[0].match(/(?:\r\n?|\n).*/g),u)this.yylineno+=u.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],S=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(S)return S;else if(this._backtrack){for(var d in m)this[d]=m[d];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var p,I,S,u;if(!this._more)this.yytext="",this.match="";var m=this._currentRules();for(var d=0;d<m.length;d++)if(S=this._input.match(this.rules[m[d]]),S&&(!I||S[0].length>I[0].length)){if(I=S,u=d,this.options.backtrack_lexer)if(p=this.test_match(S,m[d]),p!==!1)return p;else if(this._backtrack){I=!1;continue}else return!1;else if(!this.options.flex)break}if(I){if(p=this.test_match(I,m[u]),p!==!1)return p;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var I=this.next();if(I)return I;else return this.lex()},"lex"),begin:t(function(I){this.conditionStack.push(I)},"begin"),popState:t(function(){var I=this.conditionStack.length-1;if(I>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(I){if(I=this.conditionStack.length-1-Math.abs(I||0),I>=0)return this.conditionStack[I];else return"INITIAL"},"topState"),pushState:t(function(I){this.begin(I)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(I,S,u,m){var d=m;switch(u){case 0:break;case 1:break;case 2:break;case 3:if(I.getIndentMode&&I.getIndentMode())return I.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(I.setIndentMode)I.setIndentMode(!1);this.begin("INITIAL"),this.unput(S.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(I.consumeIndentText)I.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return S.yytext=S.yytext.slice(2,-2),14;break;case 17:return S.yytext=S.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return T}();E.lexer=N;function D(){this.yy={}}return t(D,"Parser"),D.prototype=E,E.Parser=D,new D}();Ct.parser=Ct;var ze=Ct,Dt=[],Rt=[],Nt=[],Ot=new Set,Lt,jt=!1,Ae=t((e,s,i)=>{let n=bt(e).sort(),r=i??10/Math.pow(e.length,2);if(Lt=n,n.length===1)Ot.add(n[0]);Dt.push({sets:n,size:r,label:s?yt(s):void 0})},"addSubsetData"),Ce=t(()=>Dt,"getSubsetData"),yt=t((e)=>{let s=e.trim();if(s.length>=2&&s.startsWith('"')&&s.endsWith('"'))return s.slice(1,-1);return s},"normalizeText"),De=t((e)=>e?yt(e):e,"normalizeStyleValue"),Re=t((e,s,i)=>{let n=yt(s);Rt.push({sets:bt(e).sort(),id:n,label:i?yt(i):void 0})},"addTextData"),Ne=t((e,s)=>{let i=bt(e).sort(),n={};for(let[r,o]of s)n[r]=De(o)??o;Nt.push({targets:i,styles:n})},"addStyleData"),Oe=t(()=>Nt,"getStyleData"),bt=t((e)=>e.map((s)=>yt(s)),"normalizeIdentifierList"),Le=t((e)=>{let i=bt(e).filter((n)=>!Ot.has(n));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),je=t(()=>Rt,"getTextData"),Fe=t(()=>Lt,"getCurrentSets"),Pe=t(()=>jt,"getIndentMode"),Ve=t((e)=>{jt=e},"setIndentMode"),Be=Y.venn;function re(){return ie(Be,C().venn)}t(re,"getConfig");var qe=t(()=>{F(),Dt.length=0,Rt.length=0,Nt.length=0,Ot.clear(),Lt=void 0,jt=!1},"customClear"),Ue={getConfig:re,clear:qe,setAccTitle:O,getAccTitle:G,setDiagramTitle:q,getDiagramTitle:H,getAccDescription:j,setAccDescription:z,addSubsetData:Ae,getSubsetData:Ce,addTextData:Re,addStyleData:Ne,validateUnionIdentifiers:Le,getTextData:je,getStyleData:Oe,getCurrentSets:Fe,getIndentMode:Pe,setIndentMode:Ve},Ge=t((e)=>`
11
+ `+I+"^"},"showPosition"),test_match:t(function(p,I){var w,u,m;if(this.options.backtrack_lexer){if(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)m.yylloc.range=this.yylloc.range.slice(0)}if(u=p[0].match(/(?:\r\n?|\n).*/g),u)this.yylineno+=u.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],w=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(w)return w;else if(this._backtrack){for(var d in m)this[d]=m[d];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var p,I,w,u;if(!this._more)this.yytext="",this.match="";var m=this._currentRules();for(var d=0;d<m.length;d++)if(w=this._input.match(this.rules[m[d]]),w&&(!I||w[0].length>I[0].length)){if(I=w,u=d,this.options.backtrack_lexer)if(p=this.test_match(w,m[d]),p!==!1)return p;else if(this._backtrack){I=!1;continue}else return!1;else if(!this.options.flex)break}if(I){if(p=this.test_match(I,m[u]),p!==!1)return p;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var I=this.next();if(I)return I;else return this.lex()},"lex"),begin:t(function(I){this.conditionStack.push(I)},"begin"),popState:t(function(){var I=this.conditionStack.length-1;if(I>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(I){if(I=this.conditionStack.length-1-Math.abs(I||0),I>=0)return this.conditionStack[I];else return"INITIAL"},"topState"),pushState:t(function(I){this.begin(I)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(I,w,u,m){var d=m;switch(u){case 0:break;case 1:break;case 2:break;case 3:if(I.getIndentMode&&I.getIndentMode())return I.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(I.setIndentMode)I.setIndentMode(!1);this.begin("INITIAL"),this.unput(w.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(I.consumeIndentText)I.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return w.yytext=w.yytext.slice(2,-2),14;break;case 17:return w.yytext=w.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return D}();T.lexer=L;function R(){this.yy={}}return t(R,"Parser"),R.prototype=T,T.Parser=R,new R}();Ct.parser=Ct;var Ee=Ct,Dt=[],Rt=[],Nt=[],Ot=new Set,Lt,jt=!1,Te=t((e,s,i)=>{let n=bt(e).sort(),r=i??10/Math.pow(e.length,2);if(Lt=n,n.length===1)Ot.add(n[0]);Dt.push({sets:n,size:r,label:s?yt(s):void 0})},"addSubsetData"),ze=t(()=>Dt,"getSubsetData"),yt=t((e)=>{let s=e.trim();if(s.length>=2&&s.startsWith('"')&&s.endsWith('"'))return s.slice(1,-1);return s},"normalizeText"),Ce=t((e)=>e?yt(e):e,"normalizeStyleValue"),Re=t((e,s,i)=>{let n=yt(s);Rt.push({sets:bt(e).sort(),id:n,label:i?yt(i):void 0})},"addTextData"),Ne=t((e,s)=>{let i=bt(e).sort(),n={};for(let[r,o]of s)n[r]=Ce(o)??o;Nt.push({targets:i,styles:n})},"addStyleData"),Oe=t(()=>Nt,"getStyleData"),bt=t((e)=>e.map((s)=>yt(s)),"normalizeIdentifierList"),Le=t((e)=>{let i=bt(e).filter((n)=>!Ot.has(n));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),je=t(()=>Rt,"getTextData"),Fe=t(()=>Lt,"getCurrentSets"),Pe=t(()=>jt,"getIndentMode"),Ve=t((e)=>{jt=e},"setIndentMode"),Be=Y.venn;function ie(){return le(Be,C().venn)}t(ie,"getConfig");var qe=t(()=>{M(),Dt.length=0,Rt.length=0,Nt.length=0,Ot.clear(),Lt=void 0,jt=!1},"customClear"),Ue={getConfig:ie,clear:qe,setAccTitle:O,getAccTitle:G,setDiagramTitle:q,getDiagramTitle:H,getAccDescription:j,setAccDescription:z,addSubsetData:Te,getSubsetData:ze,addTextData:Re,addStyleData:Ne,validateUnionIdentifiers:Le,getTextData:je,getStyleData:Oe,getCurrentSets:Fe,getIndentMode:Pe,setIndentMode:Ve},Ge=t((e)=>`
13
13
  .venn-title {
14
14
  font-size: 32px;
15
15
  fill: ${e.vennTitleTextColor};
@@ -31,4 +31,4 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else vt="Parse e
31
31
  font-family: ${e.fontFamily};
32
32
  color: ${e.vennSetTextColor};
33
33
  }
34
- `,"getStyles"),We=Ge;function oe(e){let s=new Map;for(let i of e){let n=i.targets.join("|"),r=s.get(n);if(r)Object.assign(r,i.styles);else s.set(n,{...i.styles})}return s}t(oe,"buildStyleByKey");var Ke=t((e,s,i,n)=>{let r=n.db,o=r.getConfig?.(),{themeVariables:a,look:c,handDrawnSeed:h}=C(),f=c==="handDrawn",l=[a.venn1,a.venn2,a.venn3,a.venn4,a.venn5,a.venn6,a.venn7,a.venn8].filter(Boolean),v=r.getDiagramTitle?.(),x=r.getSubsetData(),M=r.getTextData(),k=oe(r.getStyleData()),E=le(x),N=o?.width??800,D=o?.height??450,T=1600,p=N/1600,I=v?48*p:0,S=a.primaryTextColor??a.textColor,u=ge(s);if(u.attr("viewBox",`0 0 ${N} ${D}`),v)u.append("text").text(v).attr("class","venn-title").attr("font-size",`${32*p}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*p).style("fill",a.vennTitleTextColor||a.titleColor);let m=b(document.createElement("div")),d=Jt().width(N).height(D-I);m.datum(E).call(d);let V=f?y.svg(m.select("svg").node()):void 0,_=se(E,{width:N,height:D-I,padding:o?.padding??15}),B=new Map;for(let P of _){let U=ht([...P.data.sets].sort());B.set(U,P)}if(M.length>0)ae(o,B,m,M,p,k);let it=Te(a.background||"#f4f4f4");if(m.selectAll(".venn-circle").each(function(P,U){let R=b(this),tt=ht([...P.sets].sort()),Z=k.get(tt),rt=l.length>0?l[U%l.length]:void 0,et=Z?.fill||rt||a.primaryColor;R.classed(`venn-set-${U%8}`,!0);let J=Z?.["fill-opacity"]??0.1,L=Z?.stroke||et,lt=Z?.["stroke-width"]||`${5*p}`;if(f&&V){let w=B.get(tt);if(w&&w.circles.length>0){let K=w.circles[0],dt=V.circle(K.x,K.y,K.radius*2,{roughness:0.7,seed:h,fill:kt(et,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+U*60,stroke:L,strokeWidth:parseFloat(String(lt))});R.select("path").remove(),R.node()?.insertBefore(dt,R.select("text").node())}}else R.select("path").style("fill",et).style("fill-opacity",J).style("stroke",L).style("stroke-width",lt).style("stroke-opacity",0.95);let at=Z?.color||(it?g(et,30):A(et,30));R.select("text").style("font-size",`${48*p}px`).style("fill",at)}),f&&V)m.selectAll(".venn-intersection").each(function(P){let U=b(this),X=ht([...P.sets].sort()),tt=k.get(X),Z=tt?.fill;if(Z){let rt=U.select("path"),et=rt.attr("d");if(et){let J=V.path(et,{roughness:0.7,seed:h,fill:kt(Z,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),L=rt.node();L?.parentNode?.insertBefore(J,L),rt.remove()}}else U.select("path").style("fill-opacity",0);U.select("text").style("font-size",`${48*p}px`).style("fill",tt?.color??a.vennSetTextColor??S)});else m.selectAll(".venn-intersection text").style("font-size",`${48*p}px`).style("fill",(P)=>{let R=ht([...P.sets].sort());return k.get(R)?.color??a.vennSetTextColor??S}),m.selectAll(".venn-intersection path").style("fill-opacity",(P)=>{let R=ht([...P.sets].sort());return k.get(R)?.fill?1:0}).style("fill",(P)=>{let R=ht([...P.sets].sort());return k.get(R)?.fill??"transparent"});let Q=u.append("g").attr("transform",`translate(0, ${I})`),W=m.select("svg").node();if(W&&"childNodes"in W)for(let P of[...W.childNodes])Q.node()?.appendChild(P);te(u,D,N,o?.useMaxWidth??!0)},"draw");function ht(e){return e.join("|")}t(ht,"stableSetsKey");function ae(e,s,i,n,r,o){let a=e?.useDebugLayout??!1,h=i.select("svg").append("g").attr("class","venn-text-nodes"),f=new Map;for(let l of n){let v=ht(l.sets),x=f.get(v);if(x)x.push(l);else f.set(v,[l])}for(let[l,v]of f.entries()){let x=s.get(l);if(!x?.text)continue;let M=x.text.x,k=x.text.y,E=Math.min(...x.circles.map((W)=>W.radius)),N=Math.min(...x.circles.map((W)=>W.radius-Math.hypot(M-W.x,k-W.y))),D=Number.isFinite(N)?Math.max(0,N):0;if(D===0&&Number.isFinite(E))D=E*0.6;let T=h.append("g").attr("class","venn-text-area").attr("font-size",`${40*r}px`);if(a)T.append("circle").attr("class","venn-text-debug-circle").attr("cx",M).attr("cy",k).attr("r",D).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*r).attr("stroke-dasharray",`${6*r} ${4*r}`);let p=Math.max(80*r,D*2*0.95),I=Math.max(60*r,D*2*0.95),m=(x.data.label&&x.data.label.length>0?Math.min(32*r,D*0.25):0)+(v.length<=2?30*r:0),d=M-p/2,V=k-I/2+m,_=Math.max(1,Math.ceil(Math.sqrt(v.length))),B=Math.max(1,Math.ceil(v.length/_)),it=p/_,Q=I/B;for(let[W,P]of v.entries()){let U=W%_,R=Math.floor(W/_),X=d+it*(U+0.5),tt=V+Q*(R+0.5);if(a)T.append("rect").attr("class","venn-text-debug-cell").attr("x",d+it*U).attr("y",V+Q*R).attr("width",it).attr("height",Q).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*r).attr("stroke-dasharray",`${4*r} ${3*r}`);let Z=it*0.9,rt=Q*0.9,et=T.append("foreignObject").attr("class","venn-text-node-fo").attr("width",Z).attr("height",rt).attr("x",X-Z/2).attr("y",tt-rt/2).attr("overflow","visible"),J=o.get(P.id)?.color,L=et.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(P.label??P.id);if(J)L.style("color",J)}}}t(ae,"renderTextNodes");function le(e){let s=new Set(e.map((r)=>[...r.sets].sort().join("|"))),i=new Map(e.filter((r)=>r.sets.length===1&&r.size!==void 0).map((r)=>[r.sets[0],r.size])),n=[];for(let r of e){if(r.sets.length<3)continue;let o=[...r.sets].sort();for(let a=0;a<o.length-1;a++)for(let c=a+1;c<o.length;c++){let h=[o[a],o[c]],f=h.join("|");if(!s.has(f)){s.add(f);let l=i.get(h[0]),v=i.get(h[1]),x=l!==void 0&&v!==void 0?Math.min(l,v)/4:2.5;n.push({sets:h,size:x,label:""})}}}return n.length>0?[...e,...n]:e}t(le,"ensurePairwiseSubsets");var He={draw:Ke},rn={parser:ze,db:Ue,renderer:He,styles:We};export{rn as diagram};
34
+ `,"getStyles"),We=Ge;function re(e){let s=new Map;for(let i of e){let n=i.targets.join("|"),r=s.get(n);if(r)Object.assign(r,i.styles);else s.set(n,{...i.styles})}return s}t(re,"buildStyleByKey");var Ke=t((e,s,i,n)=>{let r=n.db,o=r.getConfig?.(),{themeVariables:a,look:c,handDrawnSeed:h}=C(),f=c==="handDrawn",l=[a.venn1,a.venn2,a.venn3,a.venn4,a.venn5,a.venn6,a.venn7,a.venn8].filter(Boolean),v=r.getDiagramTitle?.(),x=r.getSubsetData(),S=r.getTextData(),k=re(r.getStyleData()),T=ae(x),L=o?.width??800,R=o?.height??450,D=1600,p=L/1600,I=v?48*p:0,w=a.primaryTextColor??a.textColor,u=Ae(s);if(u.attr("viewBox",`0 0 ${L} ${R}`),v)u.append("text").text(v).attr("class","venn-title").attr("font-size",`${32*p}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*p).style("fill",a.vennTitleTextColor||a.titleColor);let m=b(document.createElement("div")),d=Jt().width(L).height(R-I);m.datum(T).call(d);let V=f?y.svg(m.select("svg").node()):void 0,E=se(T,{width:L,height:R-I,padding:o?.padding??15}),B=new Map;for(let P of E){let U=ht([...P.data.sets].sort());B.set(U,P)}if(S.length>0)oe(o,B,m,S,p,k);let it=De(a.background||"#f4f4f4");if(m.selectAll(".venn-circle").each(function(P,U){let N=b(this),tt=ht([...P.sets].sort()),Z=k.get(tt),rt=l.length>0?l[U%l.length]:void 0,et=Z?.fill||rt||a.primaryColor;N.classed(`venn-set-${U%8}`,!0);let J=Z?.["fill-opacity"]??0.1,F=Z?.stroke||et,lt=Z?.["stroke-width"]||`${5*p}`;if(f&&V){let _=B.get(tt);if(_&&_.circles.length>0){let K=_.circles[0],dt=V.circle(K.x,K.y,K.radius*2,{roughness:0.7,seed:h,fill:kt(et,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+U*60,stroke:F,strokeWidth:parseFloat(String(lt))});N.select("path").remove(),N.node()?.insertBefore(dt,N.select("text").node())}}else N.select("path").style("fill",et).style("fill-opacity",J).style("stroke",F).style("stroke-width",lt).style("stroke-opacity",0.95);let at=Z?.color||(it?g(et,30):A(et,30));N.select("text").style("font-size",`${48*p}px`).style("fill",at)}),f&&V)m.selectAll(".venn-intersection").each(function(P){let U=b(this),X=ht([...P.sets].sort()),tt=k.get(X),Z=tt?.fill;if(Z){let rt=U.select("path"),et=rt.attr("d");if(et){let J=V.path(et,{roughness:0.7,seed:h,fill:kt(Z,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),F=rt.node();F?.parentNode?.insertBefore(J,F),rt.remove()}}else U.select("path").style("fill-opacity",0);U.select("text").style("font-size",`${48*p}px`).style("fill",tt?.color??a.vennSetTextColor??w)});else m.selectAll(".venn-intersection text").style("font-size",`${48*p}px`).style("fill",(P)=>{let N=ht([...P.sets].sort());return k.get(N)?.color??a.vennSetTextColor??w}),m.selectAll(".venn-intersection path").style("fill-opacity",(P)=>{let N=ht([...P.sets].sort());return k.get(N)?.fill?1:0}).style("fill",(P)=>{let N=ht([...P.sets].sort());return k.get(N)?.fill??"transparent"});let Q=u.append("g").attr("transform",`translate(0, ${I})`),W=m.select("svg").node();if(W&&"childNodes"in W)for(let P of[...W.childNodes])Q.node()?.appendChild(P);ne(u,R,L,o?.useMaxWidth??!0)},"draw");function ht(e){return e.join("|")}t(ht,"stableSetsKey");function oe(e,s,i,n,r,o){let a=e?.useDebugLayout??!1,h=i.select("svg").append("g").attr("class","venn-text-nodes"),f=new Map;for(let l of n){let v=ht(l.sets),x=f.get(v);if(x)x.push(l);else f.set(v,[l])}for(let[l,v]of f.entries()){let x=s.get(l);if(!x?.text)continue;let S=x.text.x,k=x.text.y,T=Math.min(...x.circles.map((W)=>W.radius)),L=Math.min(...x.circles.map((W)=>W.radius-Math.hypot(S-W.x,k-W.y))),R=Number.isFinite(L)?Math.max(0,L):0;if(R===0&&Number.isFinite(T))R=T*0.6;let D=h.append("g").attr("class","venn-text-area").attr("font-size",`${40*r}px`);if(a)D.append("circle").attr("class","venn-text-debug-circle").attr("cx",S).attr("cy",k).attr("r",R).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*r).attr("stroke-dasharray",`${6*r} ${4*r}`);let p=Math.max(80*r,R*2*0.95),I=Math.max(60*r,R*2*0.95),m=(x.data.label&&x.data.label.length>0?Math.min(32*r,R*0.25):0)+(v.length<=2?30*r:0),d=S-p/2,V=k-I/2+m,E=Math.max(1,Math.ceil(Math.sqrt(v.length))),B=Math.max(1,Math.ceil(v.length/E)),it=p/E,Q=I/B;for(let[W,P]of v.entries()){let U=W%E,N=Math.floor(W/E),X=d+it*(U+0.5),tt=V+Q*(N+0.5);if(a)D.append("rect").attr("class","venn-text-debug-cell").attr("x",d+it*U).attr("y",V+Q*N).attr("width",it).attr("height",Q).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*r).attr("stroke-dasharray",`${4*r} ${3*r}`);let Z=it*0.9,rt=Q*0.9,et=D.append("foreignObject").attr("class","venn-text-node-fo").attr("width",Z).attr("height",rt).attr("x",X-Z/2).attr("y",tt-rt/2).attr("overflow","visible"),J=o.get(P.id)?.color,F=et.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(P.label??P.id);if(J)F.style("color",J)}}}t(oe,"renderTextNodes");function ae(e){let s=new Set(e.map((r)=>[...r.sets].sort().join("|"))),i=new Map(e.filter((r)=>r.sets.length===1&&r.size!==void 0).map((r)=>[r.sets[0],r.size])),n=[];for(let r of e){if(r.sets.length<3)continue;let o=[...r.sets].sort();for(let a=0;a<o.length-1;a++)for(let c=a+1;c<o.length;c++){let h=[o[a],o[c]],f=h.join("|");if(!s.has(f)){s.add(f);let l=i.get(h[0]),v=i.get(h[1]),x=l!==void 0&&v!==void 0?Math.min(l,v)/4:2.5;n.push({sets:h,size:x,label:""})}}}return n.length>0?[...e,...n]:e}t(ae,"ensurePairwiseSubsets");var He={draw:Ke},rn={parser:Ee,db:Ue,renderer:He,styles:We};export{rn as diagram};
@@ -1 +1 @@
1
- import{xt}from"./index-jxxewcat.js";import{Ve}from"./index-r2z0a118.js";import{za}from"./index-kce86cnw.js";import{Ni}from"./index-xrn2reb5.js";import{Gn}from"./index-dgkpbrdr.js";var i=Object.freeze(JSON.parse('{"displayName":"HTML (Derivative)","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html-derivative","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^<>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative","embeddedLangs":["html"]}')),e=[...Gn,i];var u=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-vue","patterns":[{"include":"#vue-code-block"}],"repository":{"vue-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vue)((\\\\s+|[,:?{])[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown","patterns":[]}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"include":"text.html.vue"}]}},"scopeName":"markdown.vue.codeblock"}')),t=[u];var m=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute","name":"vue-directives","patterns":[{"include":"text.html.vue#vue-directives"}],"scopeName":"vue.directives"}')),n=[m];var r=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block","name":"vue-interpolations","patterns":[{"include":"text.html.vue#vue-interpolations"}],"scopeName":"vue.interpolations"}')),a=[r];var c=Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue"],"injectionSelector":"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment","name":"vue-sfc-style-variable-injection","patterns":[{"include":"#vue-sfc-style-variable-injection"}],"repository":{"vue-sfc-style-variable-injection":{"begin":"\\\\b(v-bind)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function"}},"end":"\\\\)","name":"vue.sfc.style.variable.injection.v-bind","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.js"}]},{"include":"source.js"}]}},"scopeName":"vue.sfc.style.variable.injection","embeddedLangs":["javascript"]}`)),s=[...Ve,c];var l=Object.freeze(JSON.parse(`{"displayName":"Vue","name":"vue","patterns":[{"include":"#vue-comments"},{"include":"#self-closing-tag"},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"patterns":[{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)md\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.markdown","patterns":[{"include":"text.html.markdown"}]}]},{"begin":"(?!template(?![-0-:A-Za-z]))([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)html\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"contentName":"text.html.derivative","end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)pug\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.pug","patterns":[{"include":"text.pug"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)stylus\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)postcss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)sass\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.sass","patterns":[{"include":"source.sass"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)css\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css","patterns":[{"include":"source.css"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)scss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)less\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)js\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)ts\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)tsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)coffee\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json","patterns":[{"include":"source.json"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsonc\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json.comments","patterns":[{"include":"source.json.comments"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json5\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json5","patterns":[{"include":"source.json5"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)yaml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.yaml","patterns":[{"include":"source.yaml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)toml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.toml","patterns":[{"include":"source.toml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)(g(?:ql|raphql))\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.graphql","patterns":[{"include":"source.graphql"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)vue\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.vue","patterns":[{"include":"text.html.vue"}]}]},{"begin":"(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</template[>\\\\s])","name":"text.html.derivative","patterns":[{"include":"#html-stuff"}]}]},{"begin":"(script)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-script-tag-stuff"}]},{"begin":"(style)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-style-tag-stuff"}]},{"begin":"([-0-:A-Za-z]+)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text"}]}]}],"repository":{"capitalized-tag":{"begin":"(<)([A-Z][-0-:A-Za-z]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.html.vue"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag.structure.$2.start.html.vue","patterns":[{"begin":"\\\\G","end":"(?=/?>)","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]}]},"html-stuff":{"patterns":[{"include":"#template-tag"},{"include":"#capitalized-tag"},{"include":"text.html.derivative"},{"include":"text.html.basic"}]},"multi-line-script-tag-stuff":{"begin":"\\\\G","end":"(?=</script[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?ts\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?tsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?jsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?coffee\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js","patterns":[{"include":"source.js"}]}]},"multi-line-style-tag-stuff":{"begin":"\\\\G","end":"(?=</style[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?scss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?stylus\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?less\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?postcss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css","patterns":[{"include":"source.css"}]}]},"self-closing-tag":{"begin":"(<)([-0-:A-Za-z]+)(?=([^>]+/>))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"self-closing-tag","patterns":[{"include":"#tag-stuff"}]},"tag-stuff":{"begin":"\\\\G","end":"(?=/>)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},"template-tag":{"patterns":[{"include":"#template-tag-1"},{"include":"#template-tag-2"}]},"template-tag-1":{"begin":"(<)(template)\\\\b(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"},"3":{"name":"punctuation.definition.tag.end.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#html-stuff"}]}]},"template-tag-2":{"begin":"(<)(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]}]},"vue-comments":{"patterns":[{"include":"#vue-comments-key-value"},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.vue"}},"end":"-->","name":"comment.block.vue"}]},"vue-comments-key-value":{"begin":"(<!--)\\\\s*(@)([$\\\\w]+)(?=\\\\s)","beginCaptures":{"1":{"name":"punctuation.definition.comment.vue"},"2":{"name":"punctuation.definition.block.tag.comment.vue"},"3":{"name":"storage.type.class.comment.vue"}},"end":"(-->)","endCaptures":{"1":{"name":"punctuation.definition.comment.vue"}},"name":"comment.block.vue","patterns":[{"include":"source.json#value"}]},"vue-directives":{"patterns":[{"include":"#vue-directives-control"},{"include":"#vue-directives-generic-attr"},{"include":"#vue-directives-style-attr"},{"include":"#vue-directives-original"}]},"vue-directives-control":{"begin":"(?:(v-for)|(v-(?:if|else-if|else)))(?=[)/=>\\\\s])","beginCaptures":{"1":{"name":"keyword.control.loop.vue"},"2":{"name":"keyword.control.conditional.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.control.vue","patterns":[{"include":"#vue-directives-expression"}]},"vue-directives-expression":{"patterns":[{"begin":"(=)\\\\s*([\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"patterns":[{"begin":"(?<=([\\"'\`]))","end":"(?=\\\\1)","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]},{"begin":"(=)\\\\s*(?=[^\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?=([>\\\\s]|/>))","patterns":[{"begin":"(?=[^\\"'\`])","end":"(?=([>\\\\s]|/>))","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{"begin":"\\\\b(generic)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.generic.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"meta.type.parameters.vue","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{"begin":"(?:(v-[-\\\\w]+)(:)?|([.:])|(@)|(#))(?:(\\\\[)([^]]*)(])|([-\\\\w]+))?","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"},"3":{"name":"punctuation.attribute-shorthand.bind.html.vue"},"4":{"name":"punctuation.attribute-shorthand.event.html.vue"},"5":{"name":"punctuation.attribute-shorthand.slot.html.vue"},"6":{"name":"punctuation.separator.key-value.html.vue"},"7":{"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]},"8":{"name":"punctuation.separator.key-value.html.vue"},"9":{"name":"entity.other.attribute-name.html.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.vue","patterns":[{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"entity.other.attribute-name.html.vue"},"match":"(\\\\.)([-\\\\w]*)"},{"include":"#vue-directives-expression"}]},"vue-directives-style-attr":{"begin":"\\\\b(style)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.style.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"source.css.embedded.html.vue","patterns":[{"include":"source.css#comment-block"},{"include":"source.css#escapes"},{"include":"source.css#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[\\"'])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"source.css#comment-block"},{"include":"source.css#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{"patterns":[{"begin":"(\\\\{\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.interpolation.begin.html.vue"}},"end":"(}})","endCaptures":{"1":{"name":"punctuation.definition.interpolation.end.html.vue"}},"name":"expression.embedded.vue","patterns":[{"begin":"\\\\G","end":"(?=}})","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]}},"scopeName":"text.html.vue","embeddedLangs":["css","javascript","typescript","json","html","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],"embeddedLangsLazy":["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]}`)),L=[...xt,...Ve,...za,...Ni,...Gn,...e,...t,...n,...a,...s,l];export{L as default};
1
+ import{wt}from"./index-mpyd7qxj.js";import{Ye}from"./index-q0k1am0g.js";import{Ga}from"./index-j9y4tjk0.js";import{Ri}from"./index-qrpx4sk1.js";import{qn}from"./index-60g0e74a.js";var i=Object.freeze(JSON.parse('{"displayName":"HTML (Derivative)","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html-derivative","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^<>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative","embeddedLangs":["html"]}')),e=[...qn,i];var u=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-vue","patterns":[{"include":"#vue-code-block"}],"repository":{"vue-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vue)((\\\\s+|[,:?{])[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown","patterns":[]}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"include":"text.html.vue"}]}},"scopeName":"markdown.vue.codeblock"}')),t=[u];var m=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute","name":"vue-directives","patterns":[{"include":"text.html.vue#vue-directives"}],"scopeName":"vue.directives"}')),n=[m];var r=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block","name":"vue-interpolations","patterns":[{"include":"text.html.vue#vue-interpolations"}],"scopeName":"vue.interpolations"}')),a=[r];var c=Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue"],"injectionSelector":"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment","name":"vue-sfc-style-variable-injection","patterns":[{"include":"#vue-sfc-style-variable-injection"}],"repository":{"vue-sfc-style-variable-injection":{"begin":"\\\\b(v-bind)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function"}},"end":"\\\\)","name":"vue.sfc.style.variable.injection.v-bind","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.js"}]},{"include":"source.js"}]}},"scopeName":"vue.sfc.style.variable.injection","embeddedLangs":["javascript"]}`)),s=[...Ye,c];var l=Object.freeze(JSON.parse(`{"displayName":"Vue","name":"vue","patterns":[{"include":"#vue-comments"},{"include":"#self-closing-tag"},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"patterns":[{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)md\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.markdown","patterns":[{"include":"text.html.markdown"}]}]},{"begin":"(?!template(?![-0-:A-Za-z]))([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)html\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"contentName":"text.html.derivative","end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)pug\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.pug","patterns":[{"include":"text.pug"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)stylus\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)postcss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)sass\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.sass","patterns":[{"include":"source.sass"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)css\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css","patterns":[{"include":"source.css"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)scss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)less\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)js\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)ts\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)tsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)coffee\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json","patterns":[{"include":"source.json"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsonc\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json.comments","patterns":[{"include":"source.json.comments"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json5\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json5","patterns":[{"include":"source.json5"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)yaml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.yaml","patterns":[{"include":"source.yaml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)toml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.toml","patterns":[{"include":"source.toml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)(g(?:ql|raphql))\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.graphql","patterns":[{"include":"source.graphql"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)vue\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.vue","patterns":[{"include":"text.html.vue"}]}]},{"begin":"(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</template[>\\\\s])","name":"text.html.derivative","patterns":[{"include":"#html-stuff"}]}]},{"begin":"(script)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-script-tag-stuff"}]},{"begin":"(style)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-style-tag-stuff"}]},{"begin":"([-0-:A-Za-z]+)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text"}]}]}],"repository":{"capitalized-tag":{"begin":"(<)([A-Z][-0-:A-Za-z]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.html.vue"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag.structure.$2.start.html.vue","patterns":[{"begin":"\\\\G","end":"(?=/?>)","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]}]},"html-stuff":{"patterns":[{"include":"#template-tag"},{"include":"#capitalized-tag"},{"include":"text.html.derivative"},{"include":"text.html.basic"}]},"multi-line-script-tag-stuff":{"begin":"\\\\G","end":"(?=</script[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?ts\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?tsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*</script[>\\\\s])","end":"(?=</script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*</script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?jsx\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?coffee\\\\b)","end":"(?=</script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"(?<=>)","end":"(?=</script[>\\\\s])","name":"source.js","patterns":[{"include":"source.js"}]}]},"multi-line-style-tag-stuff":{"begin":"\\\\G","end":"(?=</style[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?scss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?stylus\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?less\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?postcss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css","patterns":[{"include":"source.css"}]}]},"self-closing-tag":{"begin":"(<)([-0-:A-Za-z]+)(?=([^>]+/>))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"self-closing-tag","patterns":[{"include":"#tag-stuff"}]},"tag-stuff":{"begin":"\\\\G","end":"(?=/>)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},"template-tag":{"patterns":[{"include":"#template-tag-1"},{"include":"#template-tag-2"}]},"template-tag-1":{"begin":"(<)(template)\\\\b(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"},"3":{"name":"punctuation.definition.tag.end.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#html-stuff"}]}]},"template-tag-2":{"begin":"(<)(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]}]},"vue-comments":{"patterns":[{"include":"#vue-comments-key-value"},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.vue"}},"end":"-->","name":"comment.block.vue"}]},"vue-comments-key-value":{"begin":"(<!--)\\\\s*(@)([$\\\\w]+)(?=\\\\s)","beginCaptures":{"1":{"name":"punctuation.definition.comment.vue"},"2":{"name":"punctuation.definition.block.tag.comment.vue"},"3":{"name":"storage.type.class.comment.vue"}},"end":"(-->)","endCaptures":{"1":{"name":"punctuation.definition.comment.vue"}},"name":"comment.block.vue","patterns":[{"include":"source.json#value"}]},"vue-directives":{"patterns":[{"include":"#vue-directives-control"},{"include":"#vue-directives-generic-attr"},{"include":"#vue-directives-style-attr"},{"include":"#vue-directives-original"}]},"vue-directives-control":{"begin":"(?:(v-for)|(v-(?:if|else-if|else)))(?=[)/=>\\\\s])","beginCaptures":{"1":{"name":"keyword.control.loop.vue"},"2":{"name":"keyword.control.conditional.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.control.vue","patterns":[{"include":"#vue-directives-expression"}]},"vue-directives-expression":{"patterns":[{"begin":"(=)\\\\s*([\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"patterns":[{"begin":"(?<=([\\"'\`]))","end":"(?=\\\\1)","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]},{"begin":"(=)\\\\s*(?=[^\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?=([>\\\\s]|/>))","patterns":[{"begin":"(?=[^\\"'\`])","end":"(?=([>\\\\s]|/>))","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{"begin":"\\\\b(generic)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.generic.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"meta.type.parameters.vue","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{"begin":"(?:(v-[-\\\\w]+)(:)?|([.:])|(@)|(#))(?:(\\\\[)([^]]*)(])|([-\\\\w]+))?","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"},"3":{"name":"punctuation.attribute-shorthand.bind.html.vue"},"4":{"name":"punctuation.attribute-shorthand.event.html.vue"},"5":{"name":"punctuation.attribute-shorthand.slot.html.vue"},"6":{"name":"punctuation.separator.key-value.html.vue"},"7":{"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]},"8":{"name":"punctuation.separator.key-value.html.vue"},"9":{"name":"entity.other.attribute-name.html.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.vue","patterns":[{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"entity.other.attribute-name.html.vue"},"match":"(\\\\.)([-\\\\w]*)"},{"include":"#vue-directives-expression"}]},"vue-directives-style-attr":{"begin":"\\\\b(style)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.style.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"source.css.embedded.html.vue","patterns":[{"include":"source.css#comment-block"},{"include":"source.css#escapes"},{"include":"source.css#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[\\"'])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"source.css#comment-block"},{"include":"source.css#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{"patterns":[{"begin":"(\\\\{\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.interpolation.begin.html.vue"}},"end":"(}})","endCaptures":{"1":{"name":"punctuation.definition.interpolation.end.html.vue"}},"name":"expression.embedded.vue","patterns":[{"begin":"\\\\G","end":"(?=}})","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]}},"scopeName":"text.html.vue","embeddedLangs":["css","javascript","typescript","json","html","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],"embeddedLangsLazy":["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]}`)),L=[...wt,...Ye,...Ga,...Ri,...qn,...e,...t,...n,...a,...s,l];export{L as default};
@@ -0,0 +1 @@
1
+ import{bg}from"./index-cwwg7k5f.js";export{bg as createWardleyServices};