sketchboard-app 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/bin/sketchboard.js +49 -0
  2. package/package.json +38 -0
  3. package/public/Assistant-Regular.woff2 +0 -0
  4. package/public/Cascadia.woff2 +0 -0
  5. package/public/Virgil.woff2 +0 -0
  6. package/public/_headers +2 -0
  7. package/public/android-chrome-192x192.png +0 -0
  8. package/public/android-chrome-512x512.png +0 -0
  9. package/public/apple-touch-icon.png +0 -0
  10. package/public/assets/CodeMirrorEditor-DLdTFwmz.js +2 -0
  11. package/public/assets/CodeMirrorEditor-DLdTFwmz.js.map +1 -0
  12. package/public/assets/_basePickBy-ZfSBwMAc.js +2 -0
  13. package/public/assets/_basePickBy-ZfSBwMAc.js.map +1 -0
  14. package/public/assets/_baseUniq-BrAtqm7r.js +2 -0
  15. package/public/assets/_baseUniq-BrAtqm7r.js.map +1 -0
  16. package/public/assets/architectureDiagram-VXUJARFQ-CM5vRAuo.js +37 -0
  17. package/public/assets/architectureDiagram-VXUJARFQ-CM5vRAuo.js.map +1 -0
  18. package/public/assets/blockDiagram-VD42YOAC-B1Z6hTXo.js +123 -0
  19. package/public/assets/blockDiagram-VD42YOAC-B1Z6hTXo.js.map +1 -0
  20. package/public/assets/bug-issue-template-BID_ABWq.js +12 -0
  21. package/public/assets/bug-issue-template-BID_ABWq.js.map +1 -0
  22. package/public/assets/c4Diagram-YG6GDRKO-Cv9Zizqx.js +11 -0
  23. package/public/assets/c4Diagram-YG6GDRKO-Cv9Zizqx.js.map +1 -0
  24. package/public/assets/chunk-4BX2VUAB-Bb3u24_X.js +2 -0
  25. package/public/assets/chunk-4BX2VUAB-Bb3u24_X.js.map +1 -0
  26. package/public/assets/chunk-55IACEB6-91xqgfYx.js +2 -0
  27. package/public/assets/chunk-55IACEB6-91xqgfYx.js.map +1 -0
  28. package/public/assets/chunk-B4BG7PRW-CQKyBsz0.js +166 -0
  29. package/public/assets/chunk-B4BG7PRW-CQKyBsz0.js.map +1 -0
  30. package/public/assets/chunk-DI55MBZ5-BY2TlPT6.js +221 -0
  31. package/public/assets/chunk-DI55MBZ5-BY2TlPT6.js.map +1 -0
  32. package/public/assets/chunk-FMBD7UC4-B2zhnDqu.js +16 -0
  33. package/public/assets/chunk-FMBD7UC4-B2zhnDqu.js.map +1 -0
  34. package/public/assets/chunk-QN33PNHL-CkKTlLkk.js +2 -0
  35. package/public/assets/chunk-QN33PNHL-CkKTlLkk.js.map +1 -0
  36. package/public/assets/chunk-QZHKN3VN-CD9rwyT-.js +2 -0
  37. package/public/assets/chunk-QZHKN3VN-CD9rwyT-.js.map +1 -0
  38. package/public/assets/chunk-TZMSLE5B-CGEL2dZG.js +2 -0
  39. package/public/assets/chunk-TZMSLE5B-CGEL2dZG.js.map +1 -0
  40. package/public/assets/classDiagram-2ON5EDUG-OE1zz8Rb.js +2 -0
  41. package/public/assets/classDiagram-2ON5EDUG-OE1zz8Rb.js.map +1 -0
  42. package/public/assets/classDiagram-v2-WZHVMYZB-OE1zz8Rb.js +2 -0
  43. package/public/assets/classDiagram-v2-WZHVMYZB-OE1zz8Rb.js.map +1 -0
  44. package/public/assets/clone-DKsuYKPC.js +2 -0
  45. package/public/assets/clone-DKsuYKPC.js.map +1 -0
  46. package/public/assets/codemirror.chunk-CLhMQAUm.js +13 -0
  47. package/public/assets/codemirror.chunk-CLhMQAUm.js.map +1 -0
  48. package/public/assets/cose-bilkent-S5V4N54A-BOimuZ77.js +2 -0
  49. package/public/assets/cose-bilkent-S5V4N54A-BOimuZ77.js.map +1 -0
  50. package/public/assets/cytoscape.esm-CyJtwmzi.js +332 -0
  51. package/public/assets/cytoscape.esm-CyJtwmzi.js.map +1 -0
  52. package/public/assets/dagre-6UL2VRFP-DYyliwSQ.js +5 -0
  53. package/public/assets/dagre-6UL2VRFP-DYyliwSQ.js.map +1 -0
  54. package/public/assets/diagram-PSM6KHXK-BLc04vxi.js +25 -0
  55. package/public/assets/diagram-PSM6KHXK-BLc04vxi.js.map +1 -0
  56. package/public/assets/diagram-QEK2KX5R-ukB6kMmO.js +44 -0
  57. package/public/assets/diagram-QEK2KX5R-ukB6kMmO.js.map +1 -0
  58. package/public/assets/diagram-S2PKOQOG-DaX2mZca.js +25 -0
  59. package/public/assets/diagram-S2PKOQOG-DaX2mZca.js.map +1 -0
  60. package/public/assets/erDiagram-Q2GNP2WA-DL9LpaEF.js +61 -0
  61. package/public/assets/erDiagram-Q2GNP2WA-DL9LpaEF.js.map +1 -0
  62. package/public/assets/flowDiagram-NV44I4VS-CIstAb2z.js +163 -0
  63. package/public/assets/flowDiagram-NV44I4VS-CIstAb2z.js.map +1 -0
  64. package/public/assets/ganttDiagram-JELNMOA3-CNSqBTtR.js +268 -0
  65. package/public/assets/ganttDiagram-JELNMOA3-CNSqBTtR.js.map +1 -0
  66. package/public/assets/gitGraphDiagram-NY62KEGX-DxG2NOZV.js +66 -0
  67. package/public/assets/gitGraphDiagram-NY62KEGX-DxG2NOZV.js.map +1 -0
  68. package/public/assets/graph-CDNE6afq.js +2 -0
  69. package/public/assets/graph-CDNE6afq.js.map +1 -0
  70. package/public/assets/image-blob-reduce.esm-B6b2_-a4.js +8 -0
  71. package/public/assets/image-blob-reduce.esm-B6b2_-a4.js.map +1 -0
  72. package/public/assets/index-BqdqoSDd.css +1 -0
  73. package/public/assets/index-ChGp7972.js +2 -0
  74. package/public/assets/index-ChGp7972.js.map +1 -0
  75. package/public/assets/index-DPcDil7M.js +310 -0
  76. package/public/assets/index-DPcDil7M.js.map +1 -0
  77. package/public/assets/infoDiagram-WHAUD3N6-B_GahSu_.js +3 -0
  78. package/public/assets/infoDiagram-WHAUD3N6-B_GahSu_.js.map +1 -0
  79. package/public/assets/journeyDiagram-XKPGCS4Q-BpcUsKNT.js +140 -0
  80. package/public/assets/journeyDiagram-XKPGCS4Q-BpcUsKNT.js.map +1 -0
  81. package/public/assets/kanban-definition-3W4ZIXB7-BbuWO2gE.js +90 -0
  82. package/public/assets/kanban-definition-3W4ZIXB7-BbuWO2gE.js.map +1 -0
  83. package/public/assets/katex-Cu_Erd72.js +262 -0
  84. package/public/assets/katex-Cu_Erd72.js.map +1 -0
  85. package/public/assets/layout-DQkrSs1j.js +2 -0
  86. package/public/assets/layout-DQkrSs1j.js.map +1 -0
  87. package/public/assets/locales/ar-SA.json-B0e8d-qe.js +9 -0
  88. package/public/assets/locales/ar-SA.json-B0e8d-qe.js.map +1 -0
  89. package/public/assets/locales/az-AZ.json-DtyjPp_C.js +2 -0
  90. package/public/assets/locales/az-AZ.json-DtyjPp_C.js.map +1 -0
  91. package/public/assets/locales/bg-BG.json-CqhOM8G4.js +6 -0
  92. package/public/assets/locales/bg-BG.json-CqhOM8G4.js.map +1 -0
  93. package/public/assets/locales/bn-BD.json-CarEu6to.js +4 -0
  94. package/public/assets/locales/bn-BD.json-CarEu6to.js.map +1 -0
  95. package/public/assets/locales/bn-IN.json-vhiIjuiP.js +4 -0
  96. package/public/assets/locales/bn-IN.json-vhiIjuiP.js.map +1 -0
  97. package/public/assets/locales/ca-ES.json-DDTuZiJG.js +9 -0
  98. package/public/assets/locales/ca-ES.json-DDTuZiJG.js.map +1 -0
  99. package/public/assets/locales/cs-CZ.json-GJzW7TSE.js +8 -0
  100. package/public/assets/locales/cs-CZ.json-GJzW7TSE.js.map +1 -0
  101. package/public/assets/locales/da-DK.json-Be0TzPzl.js +3 -0
  102. package/public/assets/locales/da-DK.json-Be0TzPzl.js.map +1 -0
  103. package/public/assets/locales/de-CH.json-D69230kg.js +8 -0
  104. package/public/assets/locales/de-CH.json-D69230kg.js.map +1 -0
  105. package/public/assets/locales/de-DE.json-D69230kg.js +8 -0
  106. package/public/assets/locales/de-DE.json-D69230kg.js.map +1 -0
  107. package/public/assets/locales/el-GR.json-CHr149cq.js +8 -0
  108. package/public/assets/locales/el-GR.json-CHr149cq.js.map +1 -0
  109. package/public/assets/locales/es-ES.json-mElEeZ2D.js +8 -0
  110. package/public/assets/locales/es-ES.json-mElEeZ2D.js.map +1 -0
  111. package/public/assets/locales/eu-ES.json-CNw2jJEU.js +8 -0
  112. package/public/assets/locales/eu-ES.json-CNw2jJEU.js.map +1 -0
  113. package/public/assets/locales/fa-IR.json-92JiA0KN.js +10 -0
  114. package/public/assets/locales/fa-IR.json-92JiA0KN.js.map +1 -0
  115. package/public/assets/locales/fi-FI.json-CdOAdcjo.js +7 -0
  116. package/public/assets/locales/fi-FI.json-CdOAdcjo.js.map +1 -0
  117. package/public/assets/locales/fr-FR.json-Cl7dF38g.js +13 -0
  118. package/public/assets/locales/fr-FR.json-Cl7dF38g.js.map +1 -0
  119. package/public/assets/locales/gl-ES.json-fzzZLZQ9.js +7 -0
  120. package/public/assets/locales/gl-ES.json-fzzZLZQ9.js.map +1 -0
  121. package/public/assets/locales/he-IL.json-BAKkfUWM.js +9 -0
  122. package/public/assets/locales/he-IL.json-BAKkfUWM.js.map +1 -0
  123. package/public/assets/locales/hi-IN.json-CUCyTyWo.js +4 -0
  124. package/public/assets/locales/hi-IN.json-CUCyTyWo.js.map +1 -0
  125. package/public/assets/locales/hu-HU.json-CV3SA8ex.js +4 -0
  126. package/public/assets/locales/hu-HU.json-CV3SA8ex.js.map +1 -0
  127. package/public/assets/locales/id-ID.json-DE2Cqq5b.js +9 -0
  128. package/public/assets/locales/id-ID.json-DE2Cqq5b.js.map +1 -0
  129. package/public/assets/locales/it-IT.json-2PLJraya.js +13 -0
  130. package/public/assets/locales/it-IT.json-2PLJraya.js.map +1 -0
  131. package/public/assets/locales/ja-JP.json-CQMoyVLC.js +8 -0
  132. package/public/assets/locales/ja-JP.json-CQMoyVLC.js.map +1 -0
  133. package/public/assets/locales/kaa.json-Dh-4QROb.js +2 -0
  134. package/public/assets/locales/kaa.json-Dh-4QROb.js.map +1 -0
  135. package/public/assets/locales/kab-KAB.json-B6YUps6Z.js +5 -0
  136. package/public/assets/locales/kab-KAB.json-B6YUps6Z.js.map +1 -0
  137. package/public/assets/locales/kk-KZ.json-1lyZ103-.js +2 -0
  138. package/public/assets/locales/kk-KZ.json-1lyZ103-.js.map +1 -0
  139. package/public/assets/locales/km-KH.json-YG2La45k.js +8 -0
  140. package/public/assets/locales/km-KH.json-YG2La45k.js.map +1 -0
  141. package/public/assets/locales/ko-KR.json-DQzg7NpQ.js +6 -0
  142. package/public/assets/locales/ko-KR.json-DQzg7NpQ.js.map +1 -0
  143. package/public/assets/locales/ku-TR.json-DulXJuPf.js +7 -0
  144. package/public/assets/locales/ku-TR.json-DulXJuPf.js.map +1 -0
  145. package/public/assets/locales/lt-LT.json-BI5PGxiE.js +4 -0
  146. package/public/assets/locales/lt-LT.json-BI5PGxiE.js.map +1 -0
  147. package/public/assets/locales/lv-LV.json-Dd3uiNAK.js +5 -0
  148. package/public/assets/locales/lv-LV.json-Dd3uiNAK.js.map +1 -0
  149. package/public/assets/locales/mr-IN.json-CE3us3Fi.js +10 -0
  150. package/public/assets/locales/mr-IN.json-CE3us3Fi.js.map +1 -0
  151. package/public/assets/locales/my-MM.json-B-uNC5oj.js +2 -0
  152. package/public/assets/locales/my-MM.json-B-uNC5oj.js.map +1 -0
  153. package/public/assets/locales/nb-NO.json-B2a_ll4z.js +9 -0
  154. package/public/assets/locales/nb-NO.json-B2a_ll4z.js.map +1 -0
  155. package/public/assets/locales/nl-NL.json-CfAX9f-w.js +14 -0
  156. package/public/assets/locales/nl-NL.json-CfAX9f-w.js.map +1 -0
  157. package/public/assets/locales/nn-NO.json-CIGsfoKm.js +5 -0
  158. package/public/assets/locales/nn-NO.json-CIGsfoKm.js.map +1 -0
  159. package/public/assets/locales/oc-FR.json-DfxVss9i.js +5 -0
  160. package/public/assets/locales/oc-FR.json-DfxVss9i.js.map +1 -0
  161. package/public/assets/locales/pa-IN.json-Cyd9VJab.js +5 -0
  162. package/public/assets/locales/pa-IN.json-Cyd9VJab.js.map +1 -0
  163. package/public/assets/locales/pl-PL.json-CB5UbRiG.js +13 -0
  164. package/public/assets/locales/pl-PL.json-CB5UbRiG.js.map +1 -0
  165. package/public/assets/locales/pt-BR.json-GPJR67js.js +7 -0
  166. package/public/assets/locales/pt-BR.json-GPJR67js.js.map +1 -0
  167. package/public/assets/locales/pt-PT.json-Cyhb98dc.js +9 -0
  168. package/public/assets/locales/pt-PT.json-Cyhb98dc.js.map +1 -0
  169. package/public/assets/locales/ro-RO.json-DtuisOGY.js +13 -0
  170. package/public/assets/locales/ro-RO.json-DtuisOGY.js.map +1 -0
  171. package/public/assets/locales/ru-RU.json-C9d6W5vW.js +11 -0
  172. package/public/assets/locales/ru-RU.json-C9d6W5vW.js.map +1 -0
  173. package/public/assets/locales/si-LK.json-DWhqtTpr.js +2 -0
  174. package/public/assets/locales/si-LK.json-DWhqtTpr.js.map +1 -0
  175. package/public/assets/locales/sk-SK.json-Dp16EYYR.js +8 -0
  176. package/public/assets/locales/sk-SK.json-Dp16EYYR.js.map +1 -0
  177. package/public/assets/locales/sl-SI.json-CXPYOnbI.js +7 -0
  178. package/public/assets/locales/sl-SI.json-CXPYOnbI.js.map +1 -0
  179. package/public/assets/locales/sv-SE.json-DECpv7fU.js +9 -0
  180. package/public/assets/locales/sv-SE.json-DECpv7fU.js.map +1 -0
  181. package/public/assets/locales/ta-IN.json-5HNGLlpx.js +7 -0
  182. package/public/assets/locales/ta-IN.json-5HNGLlpx.js.map +1 -0
  183. package/public/assets/locales/th-TH.json-t8UcrCT-.js +2 -0
  184. package/public/assets/locales/th-TH.json-t8UcrCT-.js.map +1 -0
  185. package/public/assets/locales/tr-TR.json-DClzbz6u.js +5 -0
  186. package/public/assets/locales/tr-TR.json-DClzbz6u.js.map +1 -0
  187. package/public/assets/locales/uk-UA.json-DD2kmKOm.js +7 -0
  188. package/public/assets/locales/uk-UA.json-DD2kmKOm.js.map +1 -0
  189. package/public/assets/locales/uz-UZ.json-D78i0hec.js +2 -0
  190. package/public/assets/locales/uz-UZ.json-D78i0hec.js.map +1 -0
  191. package/public/assets/locales/vi-VN.json-DbtrA-ar.js +8 -0
  192. package/public/assets/locales/vi-VN.json-DbtrA-ar.js.map +1 -0
  193. package/public/assets/locales/zh-CN.json-D8B0Xgmh.js +12 -0
  194. package/public/assets/locales/zh-CN.json-D8B0Xgmh.js.map +1 -0
  195. package/public/assets/locales/zh-HK.json-Bv007uRw.js +2 -0
  196. package/public/assets/locales/zh-HK.json-Bv007uRw.js.map +1 -0
  197. package/public/assets/locales/zh-TW.json-BvenwCxf.js +10 -0
  198. package/public/assets/locales/zh-TW.json-BvenwCxf.js.map +1 -0
  199. package/public/assets/mermaid-to-excalidraw-D-aVQaad.js +280 -0
  200. package/public/assets/mermaid-to-excalidraw-D-aVQaad.js.map +1 -0
  201. package/public/assets/mindmap-definition-VGOIOE7T-mFLCToYA.js +69 -0
  202. package/public/assets/mindmap-definition-VGOIOE7T-mFLCToYA.js.map +1 -0
  203. package/public/assets/pica-fTKOVOgy.js +8 -0
  204. package/public/assets/pica-fTKOVOgy.js.map +1 -0
  205. package/public/assets/pieDiagram-ADFJNKIX-tDTRGJE3.js +31 -0
  206. package/public/assets/pieDiagram-ADFJNKIX-tDTRGJE3.js.map +1 -0
  207. package/public/assets/qrcode.chunk-DRz-_p9I.js +2 -0
  208. package/public/assets/qrcode.chunk-DRz-_p9I.js.map +1 -0
  209. package/public/assets/quadrantDiagram-AYHSOK5B-Y6TmIak2.js +8 -0
  210. package/public/assets/quadrantDiagram-AYHSOK5B-Y6TmIak2.js.map +1 -0
  211. package/public/assets/random-username.esm-__vdrxyo.js +2 -0
  212. package/public/assets/random-username.esm-__vdrxyo.js.map +1 -0
  213. package/public/assets/requirementDiagram-UZGBJVZJ-D7lgxClk.js +65 -0
  214. package/public/assets/requirementDiagram-UZGBJVZJ-D7lgxClk.js.map +1 -0
  215. package/public/assets/roundRect-0PYZxl1G.js +2 -0
  216. package/public/assets/roundRect-0PYZxl1G.js.map +1 -0
  217. package/public/assets/sankeyDiagram-TZEHDZUN-DeN5o3Zo.js +11 -0
  218. package/public/assets/sankeyDiagram-TZEHDZUN-DeN5o3Zo.js.map +1 -0
  219. package/public/assets/sequenceDiagram-WL72ISMW-A2jXBx54.js +146 -0
  220. package/public/assets/sequenceDiagram-WL72ISMW-A2jXBx54.js.map +1 -0
  221. package/public/assets/stateDiagram-FKZM4ZOC-tI2s18Rq.js +2 -0
  222. package/public/assets/stateDiagram-FKZM4ZOC-tI2s18Rq.js.map +1 -0
  223. package/public/assets/stateDiagram-v2-4FDKWEC3-BxhL9Cgi.js +2 -0
  224. package/public/assets/stateDiagram-v2-4FDKWEC3-BxhL9Cgi.js.map +1 -0
  225. package/public/assets/subset-shared.chunk-D3ioWSie.js +85 -0
  226. package/public/assets/subset-shared.chunk-D3ioWSie.js.map +1 -0
  227. package/public/assets/subset-worker.chunk-CVR6pt27.js +2 -0
  228. package/public/assets/subset-worker.chunk-CVR6pt27.js.map +1 -0
  229. package/public/assets/timeline-definition-IT6M3QCI-Bth-_zy2.js +62 -0
  230. package/public/assets/timeline-definition-IT6M3QCI-Bth-_zy2.js.map +1 -0
  231. package/public/assets/treemap-KMMF4GRG-CNTnVawn.js +135 -0
  232. package/public/assets/treemap-KMMF4GRG-CNTnVawn.js.map +1 -0
  233. package/public/assets/workbox-window.prod.es5-B9K5rw8f.js +3 -0
  234. package/public/assets/workbox-window.prod.es5-B9K5rw8f.js.map +1 -0
  235. package/public/assets/xychartDiagram-PRI3JC2R-C0zuH6pP.js +8 -0
  236. package/public/assets/xychartDiagram-PRI3JC2R-C0zuH6pP.js.map +1 -0
  237. package/public/favicon-16x16.png +0 -0
  238. package/public/favicon-32x32.png +0 -0
  239. package/public/favicon.ico +0 -0
  240. package/public/favicon.svg +7 -0
  241. package/public/fonts/CascadiaCode/CascadiaCode-Regular.woff2 +0 -0
  242. package/public/fonts/ComicShanns/ComicShanns-Regular-279a7b317d12eb88de06167bd672b4b4.woff2 +0 -0
  243. package/public/fonts/ComicShanns/ComicShanns-Regular-6e066e8de2ac57ea9283adb9c24d7f0c.woff2 +0 -0
  244. package/public/fonts/ComicShanns/ComicShanns-Regular-dc6a8806fa96795d7b3be5026f989a17.woff2 +0 -0
  245. package/public/fonts/ComicShanns/ComicShanns-Regular-fcb0fc02dcbee4c9846b3e2508668039.woff2 +0 -0
  246. package/public/fonts/Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 +0 -0
  247. package/public/fonts/Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 +0 -0
  248. package/public/fonts/Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 +0 -0
  249. package/public/fonts/Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 +0 -0
  250. package/public/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 +0 -0
  251. package/public/fonts/Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 +0 -0
  252. package/public/fonts/Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 +0 -0
  253. package/public/fonts/LiberationSans/LiberationSans-Regular.woff2 +0 -0
  254. package/public/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
  255. package/public/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
  256. package/public/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
  257. package/public/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
  258. package/public/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
  259. package/public/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
  260. package/public/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
  261. package/public/fonts/Virgil/Virgil-Regular.woff2 +0 -0
  262. package/public/fonts/Xiaolai/Xiaolai-Regular-019d66dcad46dc156b162d267f981c20.woff2 +0 -0
  263. package/public/fonts/Xiaolai/Xiaolai-Regular-04b718e5623574919c8b0dea5f301444.woff2 +0 -0
  264. package/public/fonts/Xiaolai/Xiaolai-Regular-069e77aac84590e2e991d0a0176d34f2.woff2 +0 -0
  265. package/public/fonts/Xiaolai/Xiaolai-Regular-06c77b8c66e51ed6c63ccb502dd8b8af.woff2 +0 -0
  266. package/public/fonts/Xiaolai/Xiaolai-Regular-08e0dc436ad0ad61ba5558db0674d762.woff2 +0 -0
  267. package/public/fonts/Xiaolai/Xiaolai-Regular-093b9ef39a46ceae95a1df18a0a3a326.woff2 +0 -0
  268. package/public/fonts/Xiaolai/Xiaolai-Regular-095c169f3314805276f603a362766abd.woff2 +0 -0
  269. package/public/fonts/Xiaolai/Xiaolai-Regular-09850c4077f3fffe707905872e0e2460.woff2 +0 -0
  270. package/public/fonts/Xiaolai/Xiaolai-Regular-0986d134c05864f5025962eef9f994a0.woff2 +0 -0
  271. package/public/fonts/Xiaolai/Xiaolai-Regular-0b5d723fdc4e249c140f0909e87d03b4.woff2 +0 -0
  272. package/public/fonts/Xiaolai/Xiaolai-Regular-0f626226ba1272e832aea87bafd9720e.woff2 +0 -0
  273. package/public/fonts/Xiaolai/Xiaolai-Regular-0f7fb1e0d5015bb1371343153ecf7ce3.woff2 +0 -0
  274. package/public/fonts/Xiaolai/Xiaolai-Regular-0fa55a080fcd0f9dc2e0b0058b793df8.woff2 +0 -0
  275. package/public/fonts/Xiaolai/Xiaolai-Regular-0facdf1ea213ba40261022f5d5ed4493.woff2 +0 -0
  276. package/public/fonts/Xiaolai/Xiaolai-Regular-10a7ae9a371830a80c3d844acf1c02d7.woff2 +0 -0
  277. package/public/fonts/Xiaolai/Xiaolai-Regular-112c051027b2d766c19a519f6ee1f4f7.woff2 +0 -0
  278. package/public/fonts/Xiaolai/Xiaolai-Regular-11c345711937f0ba4b8f7b6b919c8440.woff2 +0 -0
  279. package/public/fonts/Xiaolai/Xiaolai-Regular-12b52b58eb3df36804b9a654ec9ee194.woff2 +0 -0
  280. package/public/fonts/Xiaolai/Xiaolai-Regular-13ae07ed2e272d26d59bc0691cd7117a.woff2 +0 -0
  281. package/public/fonts/Xiaolai/Xiaolai-Regular-13d2887ec8ee73c43acdabc52a05af7b.woff2 +0 -0
  282. package/public/fonts/Xiaolai/Xiaolai-Regular-145aa02cdd91946e67dc934e1acffe75.woff2 +0 -0
  283. package/public/fonts/Xiaolai/Xiaolai-Regular-15dc6d811c9cd078f9086a740d5a1038.woff2 +0 -0
  284. package/public/fonts/Xiaolai/Xiaolai-Regular-173945821411c09f70c95f98d590e697.woff2 +0 -0
  285. package/public/fonts/Xiaolai/Xiaolai-Regular-1b611157cd46bb184d4fa4dae2d6a2b8.woff2 +0 -0
  286. package/public/fonts/Xiaolai/Xiaolai-Regular-1e6fd68f1f3902ce48ce8c69df385622.woff2 +0 -0
  287. package/public/fonts/Xiaolai/Xiaolai-Regular-1ee544f0f1dac422545c505baa788992.woff2 +0 -0
  288. package/public/fonts/Xiaolai/Xiaolai-Regular-1fdc0c67ed57263a80fd108c1f6ccf24.woff2 +0 -0
  289. package/public/fonts/Xiaolai/Xiaolai-Regular-203b0e569e3b14aac86a003dc3fa523e.woff2 +0 -0
  290. package/public/fonts/Xiaolai/Xiaolai-Regular-20cc1bbf50e7efb442756cb605672c1f.woff2 +0 -0
  291. package/public/fonts/Xiaolai/Xiaolai-Regular-20e7bf72fa05de9adf7dbcc7bf51dde6.woff2 +0 -0
  292. package/public/fonts/Xiaolai/Xiaolai-Regular-21430ee05a1248901da8d0de08744d47.woff2 +0 -0
  293. package/public/fonts/Xiaolai/Xiaolai-Regular-23686f7f29da6e8008c36dd3a80c83d6.woff2 +0 -0
  294. package/public/fonts/Xiaolai/Xiaolai-Regular-23ad2d71b280f00b1363b95b7bea94eb.woff2 +0 -0
  295. package/public/fonts/Xiaolai/Xiaolai-Regular-23f228f3999c01983860012330e4be08.woff2 +0 -0
  296. package/public/fonts/Xiaolai/Xiaolai-Regular-24476a126f129212beb33f66853ea151.woff2 +0 -0
  297. package/public/fonts/Xiaolai/Xiaolai-Regular-24a21c1e4449222e8d1898d69ff3a404.woff2 +0 -0
  298. package/public/fonts/Xiaolai/Xiaolai-Regular-25b7f38e18f035f96cb5e547bd2bd08c.woff2 +0 -0
  299. package/public/fonts/Xiaolai/Xiaolai-Regular-29cec36cd205b211da97acabaa62f055.woff2 +0 -0
  300. package/public/fonts/Xiaolai/Xiaolai-Regular-2a26d20a23b00898ce82f09d2ee47c3f.woff2 +0 -0
  301. package/public/fonts/Xiaolai/Xiaolai-Regular-2adbc89c11e65905393d3dfc468b9d5b.woff2 +0 -0
  302. package/public/fonts/Xiaolai/Xiaolai-Regular-2b7441d46298788ac94e610ffcc709b6.woff2 +0 -0
  303. package/public/fonts/Xiaolai/Xiaolai-Regular-2b77e8ebfb2367ab2662396a60e7d320.woff2 +0 -0
  304. package/public/fonts/Xiaolai/Xiaolai-Regular-2cf96d082d35ea3d8106851223ad0d16.woff2 +0 -0
  305. package/public/fonts/Xiaolai/Xiaolai-Regular-2d43040e86ff03ba677f6f9c04cd0805.woff2 +0 -0
  306. package/public/fonts/Xiaolai/Xiaolai-Regular-2e33e8dc771ef5e1d9127d60a6b73679.woff2 +0 -0
  307. package/public/fonts/Xiaolai/Xiaolai-Regular-33432927cd87d40cfe393c7482bf221f.woff2 +0 -0
  308. package/public/fonts/Xiaolai/Xiaolai-Regular-353f33792a8f60dc69323ddf635a269e.woff2 +0 -0
  309. package/public/fonts/Xiaolai/Xiaolai-Regular-36925dfe329a45086cbb7fc5c20d45ac.woff2 +0 -0
  310. package/public/fonts/Xiaolai/Xiaolai-Regular-3717077e38f98d89eae729b6c14e56dc.woff2 +0 -0
  311. package/public/fonts/Xiaolai/Xiaolai-Regular-3756e81d3e149cf6099163ee79944fec.woff2 +0 -0
  312. package/public/fonts/Xiaolai/Xiaolai-Regular-395c35dd584b56b0789f58a0559beaf1.woff2 +0 -0
  313. package/public/fonts/Xiaolai/Xiaolai-Regular-3c9de2ae0ea4bc91a510942dfa4be8d2.woff2 +0 -0
  314. package/public/fonts/Xiaolai/Xiaolai-Regular-3cc70dbb64df5b21f1326cc24dee2195.woff2 +0 -0
  315. package/public/fonts/Xiaolai/Xiaolai-Regular-3e1f8f654357353bf0e04ba5c34b5f7f.woff2 +0 -0
  316. package/public/fonts/Xiaolai/Xiaolai-Regular-3e63ed8162808a9e425ed80a8bc79114.woff2 +0 -0
  317. package/public/fonts/Xiaolai/Xiaolai-Regular-3eaa538115d76932653c21d8dc28f207.woff2 +0 -0
  318. package/public/fonts/Xiaolai/Xiaolai-Regular-4095eb84ef3874e2600247bee0b04026.woff2 +0 -0
  319. package/public/fonts/Xiaolai/Xiaolai-Regular-41521fade99856108931b4768b1b2648.woff2 +0 -0
  320. package/public/fonts/Xiaolai/Xiaolai-Regular-450da755d5bcb70906e1295e559b9602.woff2 +0 -0
  321. package/public/fonts/Xiaolai/Xiaolai-Regular-452225341522a7942f0f6aab1a5c91a3.woff2 +0 -0
  322. package/public/fonts/Xiaolai/Xiaolai-Regular-4535823663ad81405188a528d8f2b1a2.woff2 +0 -0
  323. package/public/fonts/Xiaolai/Xiaolai-Regular-4806e761d750087c2d734fc64596eaff.woff2 +0 -0
  324. package/public/fonts/Xiaolai/Xiaolai-Regular-4a0fdb40036e87b40aa08dd30584cb85.woff2 +0 -0
  325. package/public/fonts/Xiaolai/Xiaolai-Regular-4a38cc3e9cf104e69ba246d37f8cf135.woff2 +0 -0
  326. package/public/fonts/Xiaolai/Xiaolai-Regular-4aca6a43e59aceee2166b0c7e4e85ef1.woff2 +0 -0
  327. package/public/fonts/Xiaolai/Xiaolai-Regular-4bfaa8ffa64c5ee560aa2daba7c9cbd3.woff2 +0 -0
  328. package/public/fonts/Xiaolai/Xiaolai-Regular-4dc6d5f188d5c96d44815cd1e81aa885.woff2 +0 -0
  329. package/public/fonts/Xiaolai/Xiaolai-Regular-4ddc14ed3eb0c3e46364317dfc0144a3.woff2 +0 -0
  330. package/public/fonts/Xiaolai/Xiaolai-Regular-4ee10ae43505e2e0bc62656ced49c0fa.woff2 +0 -0
  331. package/public/fonts/Xiaolai/Xiaolai-Regular-4f50e5136e136527280bc902c5817561.woff2 +0 -0
  332. package/public/fonts/Xiaolai/Xiaolai-Regular-51502f1206be09c565f1547c406e9558.woff2 +0 -0
  333. package/public/fonts/Xiaolai/Xiaolai-Regular-51a0e808bbc8361236ac521a119758a3.woff2 +0 -0
  334. package/public/fonts/Xiaolai/Xiaolai-Regular-52a84a22fd1369bffeaf21da2d6158dc.woff2 +0 -0
  335. package/public/fonts/Xiaolai/Xiaolai-Regular-5330a2119a716e4e7224ed108b085dac.woff2 +0 -0
  336. package/public/fonts/Xiaolai/Xiaolai-Regular-543fa46ace099a7099dad69123399400.woff2 +0 -0
  337. package/public/fonts/Xiaolai/Xiaolai-Regular-544fc28abe2c5c30e62383fd4dac255f.woff2 +0 -0
  338. package/public/fonts/Xiaolai/Xiaolai-Regular-54acdfc2166ad7fcbd074f75fd4a56ba.woff2 +0 -0
  339. package/public/fonts/Xiaolai/Xiaolai-Regular-5572b3513ba8df57a3d5d7303ee6b11b.woff2 +0 -0
  340. package/public/fonts/Xiaolai/Xiaolai-Regular-56467a5c8840c4d23a60b2f935114848.woff2 +0 -0
  341. package/public/fonts/Xiaolai/Xiaolai-Regular-56a32a7689abd0326e57c10c6c069bb4.woff2 +0 -0
  342. package/public/fonts/Xiaolai/Xiaolai-Regular-57862b464a55b18c7bf234ce22907d73.woff2 +0 -0
  343. package/public/fonts/Xiaolai/Xiaolai-Regular-583d166e56ba0de4b77eabb47ef67839.woff2 +0 -0
  344. package/public/fonts/Xiaolai/Xiaolai-Regular-5882ffa04f32584d26109137e2da4352.woff2 +0 -0
  345. package/public/fonts/Xiaolai/Xiaolai-Regular-58fd02350d0bc52cf1ca3bb32ce9766e.woff2 +0 -0
  346. package/public/fonts/Xiaolai/Xiaolai-Regular-5935a5775af3d5c6307ac667bd9ae74e.woff2 +0 -0
  347. package/public/fonts/Xiaolai/Xiaolai-Regular-59e9ff77b0efaf684bc09274fb6908c9.woff2 +0 -0
  348. package/public/fonts/Xiaolai/Xiaolai-Regular-5a1ce3117cfe90c48e8fb4a9a00f694d.woff2 +0 -0
  349. package/public/fonts/Xiaolai/Xiaolai-Regular-5a45d991244d4c7140217e1e5f5ca4f4.woff2 +0 -0
  350. package/public/fonts/Xiaolai/Xiaolai-Regular-5a7fac4b8b23a6e4e5ba0c9bf1756c91.woff2 +0 -0
  351. package/public/fonts/Xiaolai/Xiaolai-Regular-5b0ed6971aaab9c8ad563230bd5471a7.woff2 +0 -0
  352. package/public/fonts/Xiaolai/Xiaolai-Regular-5d2898fbc097a7e24c6f38d80587621e.woff2 +0 -0
  353. package/public/fonts/Xiaolai/Xiaolai-Regular-603aefd23e350ba7eb124273e3c9bcf1.woff2 +0 -0
  354. package/public/fonts/Xiaolai/Xiaolai-Regular-60a3089806700d379f11827ee9843b6b.woff2 +0 -0
  355. package/public/fonts/Xiaolai/Xiaolai-Regular-60a41c7e1c68f22424e6d22df544bc82.woff2 +0 -0
  356. package/public/fonts/Xiaolai/Xiaolai-Regular-642b26e2e5f5fb780b51b593dbc8c851.woff2 +0 -0
  357. package/public/fonts/Xiaolai/Xiaolai-Regular-66493ba5a8367f2928812f446f47b56a.woff2 +0 -0
  358. package/public/fonts/Xiaolai/Xiaolai-Regular-670ba603758d94268e8606f240a42e12.woff2 +0 -0
  359. package/public/fonts/Xiaolai/Xiaolai-Regular-671a2c20b1eb9e4ef8a192833940e319.woff2 +0 -0
  360. package/public/fonts/Xiaolai/Xiaolai-Regular-684d65f1793cac449dde5d59cb3c47fb.woff2 +0 -0
  361. package/public/fonts/Xiaolai/Xiaolai-Regular-69c09cc5fa3e55c74fc4821f76909cc3.woff2 +0 -0
  362. package/public/fonts/Xiaolai/Xiaolai-Regular-6ae5b42180ad70b971c91e7eefb8eba2.woff2 +0 -0
  363. package/public/fonts/Xiaolai/Xiaolai-Regular-6e092f71c1e634059ada0e52abadce67.woff2 +0 -0
  364. package/public/fonts/Xiaolai/Xiaolai-Regular-6f3256af8454371776bc46670d33cc65.woff2 +0 -0
  365. package/public/fonts/Xiaolai/Xiaolai-Regular-6fe5c5973cc06f74b2387a631ea36b88.woff2 +0 -0
  366. package/public/fonts/Xiaolai/Xiaolai-Regular-70c2eb8d64e71a42a834eb857ea9df51.woff2 +0 -0
  367. package/public/fonts/Xiaolai/Xiaolai-Regular-70e811fd7994e61f408c923de6ddd078.woff2 +0 -0
  368. package/public/fonts/Xiaolai/Xiaolai-Regular-7197d6fda6cba7c3874c53d6381ca239.woff2 +0 -0
  369. package/public/fonts/Xiaolai/Xiaolai-Regular-72252d73220fa3cd856677888cee1635.woff2 +0 -0
  370. package/public/fonts/Xiaolai/Xiaolai-Regular-72536a3d71b694a0d53dd90ddceae41e.woff2 +0 -0
  371. package/public/fonts/Xiaolai/Xiaolai-Regular-726303e0774b4e678bff8c2deb6ca603.woff2 +0 -0
  372. package/public/fonts/Xiaolai/Xiaolai-Regular-733171b4ffcd17ea1fe1c0ba627173bf.woff2 +0 -0
  373. package/public/fonts/Xiaolai/Xiaolai-Regular-739bc1a567439c7cffcd1614644593d2.woff2 +0 -0
  374. package/public/fonts/Xiaolai/Xiaolai-Regular-73e309718fd16cea44b4d54a33581811.woff2 +0 -0
  375. package/public/fonts/Xiaolai/Xiaolai-Regular-7494dc504ae00ee9cd0505f990f88c5d.woff2 +0 -0
  376. package/public/fonts/Xiaolai/Xiaolai-Regular-74e2263a91439c25b91d5132ce9f4d62.woff2 +0 -0
  377. package/public/fonts/Xiaolai/Xiaolai-Regular-761d05e3cd968cf574166867998ef06a.woff2 +0 -0
  378. package/public/fonts/Xiaolai/Xiaolai-Regular-7718fe60986d8b42b1be9c5ace5ccf25.woff2 +0 -0
  379. package/public/fonts/Xiaolai/Xiaolai-Regular-774d4f764a1299da5d28ec2f2ffe0d69.woff2 +0 -0
  380. package/public/fonts/Xiaolai/Xiaolai-Regular-79d494361ae093b69e74ee9dbe65bfd4.woff2 +0 -0
  381. package/public/fonts/Xiaolai/Xiaolai-Regular-79f007c1c6d07557120982951ea67998.woff2 +0 -0
  382. package/public/fonts/Xiaolai/Xiaolai-Regular-7a07ddc0f0c0f5f4a9bad6ee3dda66b5.woff2 +0 -0
  383. package/public/fonts/Xiaolai/Xiaolai-Regular-7ab2bed91166a9dca83a5ebfbe2a7f38.woff2 +0 -0
  384. package/public/fonts/Xiaolai/Xiaolai-Regular-7ccce86603f80a099ddb0cb21d4ae3e3.woff2 +0 -0
  385. package/public/fonts/Xiaolai/Xiaolai-Regular-7e4bde7e9c7f84cd34d8a845e384c746.woff2 +0 -0
  386. package/public/fonts/Xiaolai/Xiaolai-Regular-7e929f262f30c8ee78bf398150b1a7cd.woff2 +0 -0
  387. package/public/fonts/Xiaolai/Xiaolai-Regular-7eb9fffd1aa890d07d0f88cc82e6cfe4.woff2 +0 -0
  388. package/public/fonts/Xiaolai/Xiaolai-Regular-7f855356ab893b0d2b9c1c83b8116f0e.woff2 +0 -0
  389. package/public/fonts/Xiaolai/Xiaolai-Regular-829615148e6357d826b9242eb7fbbd1e.woff2 +0 -0
  390. package/public/fonts/Xiaolai/Xiaolai-Regular-866fa7613df6b3fd272bcfd4530c0bb9.woff2 +0 -0
  391. package/public/fonts/Xiaolai/Xiaolai-Regular-87599f94b6cc129d505b375798d0d751.woff2 +0 -0
  392. package/public/fonts/Xiaolai/Xiaolai-Regular-8c2f33cee3993174f7e87c28e4bf42ee.woff2 +0 -0
  393. package/public/fonts/Xiaolai/Xiaolai-Regular-8d3bcabb847b56243b16afe62adaaf21.woff2 +0 -0
  394. package/public/fonts/Xiaolai/Xiaolai-Regular-8de5b863cb50dfefdd07cb11c774d579.woff2 +0 -0
  395. package/public/fonts/Xiaolai/Xiaolai-Regular-8e9f97f01034820170065b2921b4fb5e.woff2 +0 -0
  396. package/public/fonts/Xiaolai/Xiaolai-Regular-8f476c4c99813d57cbe6eca4727388ad.woff2 +0 -0
  397. package/public/fonts/Xiaolai/Xiaolai-Regular-903bb6865f3452e2fda42e3a25547bc5.woff2 +0 -0
  398. package/public/fonts/Xiaolai/Xiaolai-Regular-91ddb2969bf2d31ba02ad82998d1314c.woff2 +0 -0
  399. package/public/fonts/Xiaolai/Xiaolai-Regular-938d90c10ff8c20386af7f242c05d6b0.woff2 +0 -0
  400. package/public/fonts/Xiaolai/Xiaolai-Regular-93fc8f28a33234bcadf1527cafabd502.woff2 +0 -0
  401. package/public/fonts/Xiaolai/Xiaolai-Regular-95429962233afd82db1c27df1500a28c.woff2 +0 -0
  402. package/public/fonts/Xiaolai/Xiaolai-Regular-9544732d2e62d1a429674f8ee41b5d3a.woff2 +0 -0
  403. package/public/fonts/Xiaolai/Xiaolai-Regular-9592bfc861f07bcb8d75c196b370e548.woff2 +0 -0
  404. package/public/fonts/Xiaolai/Xiaolai-Regular-95bfd249da4902577b4b7d76ebdd0b44.woff2 +0 -0
  405. package/public/fonts/Xiaolai/Xiaolai-Regular-968cffdc8ee679da094e77ebf50f58ef.woff2 +0 -0
  406. package/public/fonts/Xiaolai/Xiaolai-Regular-97f7f48ce90c9429bf32ae51469db74d.woff2 +0 -0
  407. package/public/fonts/Xiaolai/Xiaolai-Regular-982b630266d87db93d2539affb1275c6.woff2 +0 -0
  408. package/public/fonts/Xiaolai/Xiaolai-Regular-98f2ad84457de7f3740d9920b8fa8667.woff2 +0 -0
  409. package/public/fonts/Xiaolai/Xiaolai-Regular-99a16ef6a64934d5781933dbd9c46b2e.woff2 +0 -0
  410. package/public/fonts/Xiaolai/Xiaolai-Regular-9cfb2a77a4e45025105ad29a1748b90d.woff2 +0 -0
  411. package/public/fonts/Xiaolai/Xiaolai-Regular-9d81066dd2b337c938df6e90380a00dc.woff2 +0 -0
  412. package/public/fonts/Xiaolai/Xiaolai-Regular-9eb5a99df4e76ac3363453ac9ca288b1.woff2 +0 -0
  413. package/public/fonts/Xiaolai/Xiaolai-Regular-a004ddfcb26e67bd6e678c8ed19e25ce.woff2 +0 -0
  414. package/public/fonts/Xiaolai/Xiaolai-Regular-a0ca5df4258213d7fc9fce80f65ce760.woff2 +0 -0
  415. package/public/fonts/Xiaolai/Xiaolai-Regular-a1f916d6039285c4ffb900cd654e418f.woff2 +0 -0
  416. package/public/fonts/Xiaolai/Xiaolai-Regular-a203b91dad570bf05a58c3c3ddb529bf.woff2 +0 -0
  417. package/public/fonts/Xiaolai/Xiaolai-Regular-a365e82ed54697a52f27adcea1315fe8.woff2 +0 -0
  418. package/public/fonts/Xiaolai/Xiaolai-Regular-a4c34be6d42152e64b0df90bc4607f64.woff2 +0 -0
  419. package/public/fonts/Xiaolai/Xiaolai-Regular-a7accba310e821da5505f71c03b76bdb.woff2 +0 -0
  420. package/public/fonts/Xiaolai/Xiaolai-Regular-aa0d470430e6391eca720c7cfa44446f.woff2 +0 -0
  421. package/public/fonts/Xiaolai/Xiaolai-Regular-aa5c9ca6cf4fba00433b7aa3fa10671a.woff2 +0 -0
  422. package/public/fonts/Xiaolai/Xiaolai-Regular-ac9ceb44437becc3e9c4dbfebab7fc2d.woff2 +0 -0
  423. package/public/fonts/Xiaolai/Xiaolai-Regular-b1220a3c61f85cc0408deedb4c5f57a2.woff2 +0 -0
  424. package/public/fonts/Xiaolai/Xiaolai-Regular-b358f7a51ece39a3247942b1feabdb29.woff2 +0 -0
  425. package/public/fonts/Xiaolai/Xiaolai-Regular-b57aaedfd8ebdf3931f25119dc6a5eb2.woff2 +0 -0
  426. package/public/fonts/Xiaolai/Xiaolai-Regular-b5c1596551c256e0e9cf02028595b092.woff2 +0 -0
  427. package/public/fonts/Xiaolai/Xiaolai-Regular-b6d128682ee29e471486354d486a1b90.woff2 +0 -0
  428. package/public/fonts/Xiaolai/Xiaolai-Regular-b6fd38ca30869792244804b04bc058da.woff2 +0 -0
  429. package/public/fonts/Xiaolai/Xiaolai-Regular-b7d203b051eff504ff59ddca7576b6a9.woff2 +0 -0
  430. package/public/fonts/Xiaolai/Xiaolai-Regular-b96d9226ce77ec94ceca043d712182e6.woff2 +0 -0
  431. package/public/fonts/Xiaolai/Xiaolai-Regular-ba3de316d63c7e339987b16f41a0b879.woff2 +0 -0
  432. package/public/fonts/Xiaolai/Xiaolai-Regular-bafff7a14c27403dcc6cf1432e8ea836.woff2 +0 -0
  433. package/public/fonts/Xiaolai/Xiaolai-Regular-bd77e3c7f9e0b072d96af37f73d1aa32.woff2 +0 -0
  434. package/public/fonts/Xiaolai/Xiaolai-Regular-be549ab72f0719d606a5c01e2c0219b6.woff2 +0 -0
  435. package/public/fonts/Xiaolai/Xiaolai-Regular-c16ed9740b85badf16e86ea782a3062f.woff2 +0 -0
  436. package/public/fonts/Xiaolai/Xiaolai-Regular-c1f94158256bb1f3bf665b053d895af9.woff2 +0 -0
  437. package/public/fonts/Xiaolai/Xiaolai-Regular-c40533fdf4cc57177b12803598af7e59.woff2 +0 -0
  438. package/public/fonts/Xiaolai/Xiaolai-Regular-c4a687ac4f0c2766eefc9f77ed99cddf.woff2 +0 -0
  439. package/public/fonts/Xiaolai/Xiaolai-Regular-c69f61a4ab18d0488c8d1fc12e7028e8.woff2 +0 -0
  440. package/public/fonts/Xiaolai/Xiaolai-Regular-c8b71798409ccc126ee264a00aadcf21.woff2 +0 -0
  441. package/public/fonts/Xiaolai/Xiaolai-Regular-c99eda15fc26a2941579560f76c3a5cf.woff2 +0 -0
  442. package/public/fonts/Xiaolai/Xiaolai-Regular-cb17fc3db95f6d139afc9d31a8e93293.woff2 +0 -0
  443. package/public/fonts/Xiaolai/Xiaolai-Regular-cbaaefaaf326668277aa24dfa93c4d28.woff2 +0 -0
  444. package/public/fonts/Xiaolai/Xiaolai-Regular-cd145ce4a0ea18469358df53c207bc1b.woff2 +0 -0
  445. package/public/fonts/Xiaolai/Xiaolai-Regular-cdbce89e82cc1ab53a2decbf5819278f.woff2 +0 -0
  446. package/public/fonts/Xiaolai/Xiaolai-Regular-ce4884f96f11589608b76b726a755803.woff2 +0 -0
  447. package/public/fonts/Xiaolai/Xiaolai-Regular-cf2cc71752631e579e35b0e423bf2638.woff2 +0 -0
  448. package/public/fonts/Xiaolai/Xiaolai-Regular-cf6ff4e0f491ca0cf3038187a997b9b4.woff2 +0 -0
  449. package/public/fonts/Xiaolai/Xiaolai-Regular-cfb211578629b7e8153b37240de6a9d5.woff2 +0 -0
  450. package/public/fonts/Xiaolai/Xiaolai-Regular-d0cf73942fea1c74edbdf0b3011f4656.woff2 +0 -0
  451. package/public/fonts/Xiaolai/Xiaolai-Regular-d2666cbed13462c5dc36fa2f15c202ca.woff2 +0 -0
  452. package/public/fonts/Xiaolai/Xiaolai-Regular-d3716376641d615e2995605b29bca7b6.woff2 +0 -0
  453. package/public/fonts/Xiaolai/Xiaolai-Regular-dac48066b5883d8b4551fc584f0c2a3e.woff2 +0 -0
  454. package/public/fonts/Xiaolai/Xiaolai-Regular-dbea1af6dcd9860be40c3d18254338f5.woff2 +0 -0
  455. package/public/fonts/Xiaolai/Xiaolai-Regular-e11567fd2accf9957cd0d3c2be937d87.woff2 +0 -0
  456. package/public/fonts/Xiaolai/Xiaolai-Regular-e2ead7ea7da0437f085f42ffc05f8d13.woff2 +0 -0
  457. package/public/fonts/Xiaolai/Xiaolai-Regular-e3fcf5180fd466c8915c4e8069491054.woff2 +0 -0
  458. package/public/fonts/Xiaolai/Xiaolai-Regular-e480d9c614742d05f0e78f274f1e69e6.woff2 +0 -0
  459. package/public/fonts/Xiaolai/Xiaolai-Regular-e4bca6cfa53e499cae0a6be4894a90e9.woff2 +0 -0
  460. package/public/fonts/Xiaolai/Xiaolai-Regular-e51ef413167c6e14e0c0fdcc585f2fc9.woff2 +0 -0
  461. package/public/fonts/Xiaolai/Xiaolai-Regular-e5f453bb04da18eed01675eeebd88bf8.woff2 +0 -0
  462. package/public/fonts/Xiaolai/Xiaolai-Regular-e656f091b9dc4709722c9f4b84d3c797.woff2 +0 -0
  463. package/public/fonts/Xiaolai/Xiaolai-Regular-ec181b795ac1fb5a50d700b6e996d745.woff2 +0 -0
  464. package/public/fonts/Xiaolai/Xiaolai-Regular-ee8bae97908d5147b423f77ad0d3c1bb.woff2 +0 -0
  465. package/public/fonts/Xiaolai/Xiaolai-Regular-f0f13b5c60e0af5553bd359f5513be1b.woff2 +0 -0
  466. package/public/fonts/Xiaolai/Xiaolai-Regular-f2b54d4e7be0eaefe1c2c56836fa5368.woff2 +0 -0
  467. package/public/fonts/Xiaolai/Xiaolai-Regular-f56414bf9bced67990def8660e306759.woff2 +0 -0
  468. package/public/fonts/Xiaolai/Xiaolai-Regular-f5d079153c99a25b9be5b8583c4cc8a7.woff2 +0 -0
  469. package/public/fonts/Xiaolai/Xiaolai-Regular-f6032fc06eb20480f096199713f70885.woff2 +0 -0
  470. package/public/fonts/Xiaolai/Xiaolai-Regular-f8ee5d36068a42b51d0e4a1116cfcec1.woff2 +0 -0
  471. package/public/index.html +30 -0
  472. package/public/manifest.webmanifest +1 -0
  473. package/public/maskable_icon_x192.png +0 -0
  474. package/public/maskable_icon_x512.png +0 -0
  475. package/public/og-image-3.png +0 -0
  476. package/public/oss_promo_comments_dark.jpg +0 -0
  477. package/public/oss_promo_comments_light.jpg +0 -0
  478. package/public/oss_promo_presentations_dark.svg +1 -0
  479. package/public/oss_promo_presentations_light.svg +1 -0
  480. package/public/robots.txt +13 -0
  481. package/public/screenshots/collaboration.png +0 -0
  482. package/public/screenshots/export.png +0 -0
  483. package/public/screenshots/illustration.png +0 -0
  484. package/public/screenshots/shapes.png +0 -0
  485. package/public/screenshots/virtual-whiteboard.png +0 -0
  486. package/public/screenshots/wireframe.png +0 -0
  487. package/public/service-worker.js +20 -0
  488. package/public/sitemap.xml +1 -0
  489. package/public/sw.js +2 -0
  490. package/public/sw.js.map +1 -0
  491. package/public/version.json +3 -0
  492. package/public/workbox-3631b453.js +2 -0
  493. package/public/workbox-3631b453.js.map +1 -0
  494. package/routes/auth.js +24 -0
  495. package/routes/collab.js +52 -0
  496. package/routes/drawings.js +49 -0
  497. package/routes/library.js +15 -0
  498. package/routes/users.js +32 -0
  499. package/server.js +109 -0
  500. package/storage.js +171 -0
@@ -0,0 +1,280 @@
1
+ var jb=Object.defineProperty;var Xb=(t,e,r)=>e in t?jb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Tt=(t,e,r)=>(Xb(t,typeof e!="symbol"?e+"":e,r),r);var Gb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const Zb="modulepreload",Kb=function(t){return"/"+t},cu={},vt=function(e,r,i){let n=Promise.resolve();return r&&r.length>0&&(document.getElementsByTagName("link"),n=Promise.all(r.map(a=>{if(a=Kb(a),a in cu)return;cu[a]=!0;const s=a.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${o}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Zb,s||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),s)return new Promise((l,h)=>{c.addEventListener("load",l),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${a}`)))})}))),n.then(()=>e()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},Jn=20,Qb={rect:"rectangle",circle:"ellipse"},ya={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Jn}px`},maxEdges:500,maxTextSize:5e4};class zi{constructor({converter:e}){this.convert=(r,i)=>this.converter(r,{...i,fontSize:i.fontSize||Jn}),this.converter=e}}var xr;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond",t.CYLINDER="cylinder"})(xr||(xr={}));var ae;(function(t){t.COLOR="color"})(ae||(ae={}));var Ct;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(Ct||(Ct={}));var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});var Md=Ac.removeMarkdown=void 0,Jb=function(t,e){e===void 0&&(e={listUnicodeChar:""}),e=e||{},e.listUnicodeChar=e.hasOwnProperty("listUnicodeChar")?e.listUnicodeChar:!1,e.stripListLeaders=e.hasOwnProperty("stripListLeaders")?e.stripListLeaders:!0,e.gfm=e.hasOwnProperty("gfm")?e.gfm:!0,e.useImgAltText=e.hasOwnProperty("useImgAltText")?e.useImgAltText:!0,e.preserveLinks=e.hasOwnProperty("preserveLinks")?e.preserveLinks:!1;var r=t||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{e.stripListLeaders&&(e.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,e.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),e.gfm&&(r=r.replace(/\n={2,}/g,`
2
+ `).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),e.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,e.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
3
+
4
+ `).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
5
+
6
+ `)}catch(i){return console.error(i),t}return r};Md=Ac.removeMarkdown=Jb;const t1={arrow_circle:{endArrowhead:"circle"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"circle",startArrowhead:"circle"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},e1=t=>t1[t],Oo=t=>{let e=t.text;return t.labelType==="markdown"&&(e=Md(t.text)),r1(e)},r1=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},En=t=>{const e={};return Object.keys(t).forEach(r=>{var i;switch(r){case Ct.FILL:{e.backgroundColor=t[r],e.fillStyle="solid";break}case Ct.STROKE:{e.strokeColor=t[r];break}case Ct.STROKE_WIDTH:{e.strokeWidth=Number((i=t[r])==null?void 0:i.split("px")[0]);break}case Ct.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},xl=t=>{const e={};return Object.keys(t).forEach(r=>{switch(r){case ae.COLOR:{e.strokeColor=t[r];break}}}),e},i1=(t,e)=>[t,e],n1=32,Ed=.62,a1=12,s1=12,Bd=(t,e)=>Math.max(20,Math.ceil(t.length*e*Ed)),o1=(t,e,r,i)=>{const n=i||Jn;if(t!==xr.CYLINDER||!e||e.includes(`
7
+ `))return n;const a=Math.max(20,r-a1);return Bd(e,n)<=a?n:Math.max(s1,Math.floor(a/(e.length*Ed)))},l1=t=>{const e={};t.subGraphs.map(i=>{i.nodeIds.forEach(n=>{e[i.id]={id:i.id,parent:null,isLeaf:!1},e[n]={id:n,parent:i.id,isLeaf:t.vertices[n]!==void 0}})});const r={};return[...Object.keys(t.vertices),...t.subGraphs.map(i=>i.id)].forEach(i=>{if(!e[i])return;let n=e[i];const a=[];for(n.isLeaf||a.push(`subgraph_group_${n.id}`);n.parent;)a.push(`subgraph_group_${n.parent}`),n=e[n.parent];r[i]=a}),{getGroupIds:i=>r[i]||[],getParentId:i=>e[i]?e[i].parent:null}},c1=new zi({converter:(t,e)=>{const r=[],i=e.fontSize,{getGroupIds:n,getParentId:a}=l1(t);return t.subGraphs.reverse().forEach(s=>{const o=n(s.id),c=Oo(s),u=Bd(c,i||16)+n1*2,f=Math.max(s.width,u),d=s.x-(f-s.width)/2,p=En(s.containerStyle),g=xl(s.labelStyle),x={id:s.id,type:"rectangle",groupIds:o,x:d,y:s.y,width:f,height:s.height,label:{groupIds:o,text:c,fontSize:i,verticalAlign:"top",...g},...p};r.push(x)}),Object.values(t.vertices).forEach(s=>{if(!s)return;const o=n(s.id),c=Oo(s),l=o1(s.type,c,s.width,i),h=En(s.containerStyle),u=xl(s.labelStyle);let f={id:s.id,type:"rectangle",groupIds:o,x:s.x,y:s.y,width:s.width,height:s.height,strokeWidth:2,label:{groupIds:o,text:c,fontSize:l,...u},link:s.link||null,...h};switch(s.type){case xr.STADIUM:{f={...f,roundness:{type:3}};break}case xr.ROUND:{f={...f,roundness:{type:3}};break}case xr.DOUBLECIRCLE:{o.push(`doublecircle_${s.id}}`);const p={type:"ellipse",groupIds:o,x:s.x+5,y:s.y+5,width:s.width-5*2,height:s.height-5*2,strokeWidth:2,roundness:{type:3},label:{groupIds:o,text:c,fontSize:l,...u}};f={...f,groupIds:o,type:"ellipse"},r.push(p);break}case xr.CIRCLE:{f.type="ellipse";break}case xr.DIAMOND:{f.type="diamond";break}}r.push(f)}),t.edges.forEach(s=>{let o=[];const c=a(s.start),l=a(s.end);c&&c===l&&(o=n(c));const{startX:h,startY:u,reflectionPoints:f}=s,d=f.map(w=>i1(w.x-f[0].x,w.y-f[0].y)),p=e1(s.type||"arrow_point"),g=r.find(w=>w.id===s.start),x=r.find(w=>w.id===s.end);if(!g||!x)return;const b={id:`${s.start}_${s.end}`,type:"arrow",groupIds:o,x:h,y:u,strokeWidth:s.stroke==="thick"?4:2,strokeStyle:s.stroke==="dotted"?"dashed":void 0,points:d,...s.text?{label:{text:Oo(s),fontSize:i,groupIds:o}}:{},roundness:{type:2},...p,start:{id:g.id||""},end:{id:x.id||""}};r.push(b)}),{elements:r}}});let we=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");const h1=new zi({converter:t=>{const e=we(),{width:r,height:i}=t,n={type:"image",x:0,y:0,width:r,height:i,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),_n=(t,e)=>[t,e],Lc=t=>t.replace(/\\n/g,`
8
+ `),Wr=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[_n(0,0),_n(t.endX-t.startX,t.endY-t.startY)],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},qr=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:Lc(t.text)||"",fontSize:t.fontSize,verticalAlign:"top",strokeColor:t.color};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},yi=t=>{var n,a,s,o,c;const e={text:Lc(((n=t==null?void 0:t.label)==null?void 0:n.text)||""),fontSize:(a=t==null?void 0:t.label)==null?void 0:a.fontSize,textAlign:(s=t.label)==null?void 0:s.textAlign,verticalAlign:((o=t.label)==null?void 0:o.verticalAlign)||"middle",strokeColor:((c=t.label)==null?void 0:c.color)||"#000",...t.groupId?{groupIds:[t.groupId]}:{}};let r={};t.type==="rectangle"&&t.subtype==="activation"&&(r={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:e,strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...r};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},Mc=t=>{var r,i,n,a;const e={type:"arrow",x:t.startX,y:t.startY,points:((r=t.points)==null?void 0:r.map(([s,o])=>_n(s,o)))||[_n(0,0),_n(t.endX-t.startX,t.endY-t.startY)],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:Lc(((i=t==null?void 0:t.label)==null?void 0:i.text)||""),fontSize:16,textAlign:(n=t==null?void 0:t.label)==null?void 0:n.textAlign,verticalAlign:(a=t==null?void 0:t.label)==null?void 0:a.verticalAlign},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},xa=10,Io=16,u1=24,f1=4,d1=t=>{if(!t)return!0;const e=t.trim().toLowerCase();return e==="transparent"||e==="none"||e==="rgba(0,0,0,0)"||e==="rgba(0, 0, 0, 0)"},p1=(t,e)=>Math.max(20,Math.round(t.length*e*.6)),hu=(t,e,r=!0)=>{const i=t,n=i.groupIds??[];if(n.includes(e)||(i.groupIds=[...n,e]),!r||!i.label)return;const a=i.label.groupIds??[];a.includes(e)||(i.label.groupIds=[...a,e])},g1=new zi({converter:t=>{const e=[],r=[];if(Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(n=>{let a;switch(n.type){case"line":a=Wr(n);break;case"rectangle":case"ellipse":a=yi(n);break;case"text":a=qr(n);break;default:throw`unknown type ${n.type}`}n.type==="rectangle"&&(n==null?void 0:n.subtype)==="activation"?r.push(a):e.push(a)})}),Object.values(t.lines).forEach(i=>{i&&e.push(Wr(i))}),Object.values(t.arrows).forEach(i=>{i&&(e.push(Mc(i)),i.sequenceNumber&&e.push(yi(i.sequenceNumber)))}),e.push(...r),t.loops){const{lines:i,texts:n,nodes:a}=t.loops;i.forEach(s=>{e.push(Wr(s))}),n.forEach(s=>{e.push(qr(s))}),a.forEach(s=>{e.push(yi(s))})}return t.groups&&t.groups.forEach(i=>{const{actorKeys:n,name:a}=i;let s=1/0,o=1/0,c=0,l=0;if(!n.length)return;const h=e.filter(b=>{if(b.id){const w=b.id.indexOf("-"),k=b.id.substring(0,w);return n.includes(k)}return!1});if(!h.length||(h.forEach(b=>{b.x===void 0||b.y===void 0||b.width===void 0||b.height===void 0||(s=Math.min(s,b.x),o=Math.min(o,b.y),c=Math.max(c,b.x+b.width),l=Math.max(l,b.y+b.height))}),!Number.isFinite(s)||!Number.isFinite(o)||!Number.isFinite(c)||!Number.isFinite(l)))return;const u=s-xa,f=o-xa,d=c-s+xa*2,p=l-o+xa*2,g=we(),x=we(),y=yi({type:"rectangle",x:u,y:f,width:d,height:p,bgColor:d1(i.fill)?void 0:i.fill,strokeColor:"#1f1f1f",strokeWidth:1,id:g,groupId:x});if(e.unshift(y),e.forEach(b=>{b.id!==g&&(b.x===void 0||b.y===void 0||b.width===void 0||b.height===void 0||b.x>=s&&b.x+b.width<=c&&b.y>=o&&b.y+b.height<=l&&hu(b,x))}),a){const b=qr({id:we(),text:a,x:u+f1,y:f-u1,width:p1(a,Io),height:Io+8,fontSize:Io,color:"#1f1f1f",groupId:x});hu(b,x,!1),e.push(b)}}),{elements:e}}}),m1=new zi({converter:t=>{const e=[];return t.nodes.forEach(r=>{!r||!r.length||r.forEach(i=>{let n;switch(i.type){case"line":n=Wr(i);break;case"rectangle":case"ellipse":n=yi(i);break;case"text":n=qr(i);break;default:throw`unknown type ${i.type}`}e.push(n)})}),Object.values(t.lines).forEach(r=>{r&&e.push(Wr(r))}),Object.values(t.arrows).forEach(r=>{if(!r)return;const i=Mc(r);e.push(i)}),Object.values(t.text).forEach(r=>{const i=qr(r);e.push(i)}),Object.values(t.namespaces).forEach(r=>{const i=Object.keys(r.classes),n=[...i],a=[...t.lines,...t.arrows,...t.text];i.forEach(o=>{const c=a.filter(l=>l.metadata&&l.metadata.classId===o).map(l=>l.id);c.length&&n.push(...c)});const s={type:"frame",id:we(),name:r.id,children:n};e.push(s)}),{elements:e}}}),y1=new zi({converter:t=>{const e=[];return t.nodes.forEach(r=>{!r||!r.length||r.forEach(i=>{let n;switch(i.type){case"line":n=Wr(i);break;case"rectangle":case"ellipse":n=yi(i);break;case"text":n=qr(i);break;default:throw`unknown type ${i.type}`}e.push(n)})}),t.lines.forEach(r=>{e.push(Wr(r))}),t.arrows.forEach(r=>{e.push(Mc(r))}),t.text.forEach(r=>{e.push(qr(r))}),{elements:e}}}),Ja=(t,e)=>[t,e],fn=16,$d=14,x1=1,bl="#000000",Fd=5,b1=Fd*2,C1=Fd*2,w1=1.25,Dd=new Set(["choice","fork","join","stateStart","stateEnd","divider"]),Cl=t=>t.shape==="stateEnd"?[`state_end_group_${t.id}`]:void 0,Od=t=>t.shape==="rectWithTitle"&&t.description.length?[t.text,...t.description].join(`
9
+ `):t.text;let Er;const _1=()=>{if(Er!==void 0)return Er;if(typeof document>"u")return Er=null,Er;try{Er=document.createElement("canvas").getContext("2d")}catch{Er=null}return Er},Ti=(t,e)=>{const r=_1();return r?(r.font=`${e}px Excalifont, sans-serif`,r.measureText(t).width):t.length*e*.6},k1=(t,e,r)=>{if(Ti(t,e)<=r)return[t];const i=[];let n="";for(const a of t){const s=`${n}${a}`;if(n&&Ti(s,e)>r){i.push(n),n=a;continue}n=s}return n&&i.push(n),i},S1=(t,e,r)=>{if(!t.trim()||Ti(t,e)<=r)return t;const i=t.split(/\s+/).filter(Boolean),n=[];let a="";for(const s of i){const o=k1(s,e,r);for(const[c,l]of o.entries()){const u=a?`${a}${a&&c===0?" ":""}${l}`:l;if(Ti(u,e)<=r){a=u;continue}a&&n.push(a),a=l}o.length>1}return n.push(a),n.join(`
10
+ `)},v1=(t,e,r)=>{const n=t.map(o=>S1(o,e,r)).join(`
11
+ `).split(`
12
+ `),a=Math.max(...n.map(o=>Ti(o,e))),s=n.length*e*w1;return{width:a,height:s}},T1=(t,e,r,i)=>{const n=t.split(`
13
+ `);for(let a=fn;a>=$d;a-=x1){const{height:s}=v1(n,a,e);if(s<=r)return a}return i},A1=t=>{const e=Od(t);if(!e||Dd.has(t.shape))return fn;const r=Math.max(1,t.width-b1),i=Math.max(1,t.height-C1),n=e.split(`
14
+ `);return n.length>1&&Math.max(...n.map(s=>Ti(s,fn)))<=r?fn:T1(e,r,i,n.length===1?fn:$d)},L1=t=>{if(Dd.has(t.shape))return;const e=Od(t);if(e)return{text:e,fontSize:A1(t),verticalAlign:t.shape==="rectWithTitle"||t.shape==="roundedWithTitle"?"top":"middle",...xl(t.labelStyle)}},M1=t=>{const e=En(t.containerStyle),r=L1(t),i=t.shape==="choice"?"diamond":t.shape==="stateStart"||t.shape==="stateEnd"?"ellipse":"rectangle",n=t.shape==="rect"||t.shape==="rectWithTitle"||t.shape==="roundedWithTitle",a=t.shape==="stateStart"||t.shape==="fork"||t.shape==="join",s=e.backgroundColor||e.strokeColor||bl,o=e.strokeColor||e.backgroundColor||bl;return{id:t.id,type:i,...Cl(t)?{groupIds:Cl(t)}:{},x:t.x,y:t.y,width:t.width,height:t.height,...r?{label:r}:{},...e,...n?{roundness:{type:3}}:{},...a?{backgroundColor:s,strokeColor:o,fillStyle:"solid"}:{}}},E1=t=>{if(!t.dividerLine)return null;const e=En(t.containerStyle);return{id:`${t.id}__divider`,type:"line",x:t.dividerLine.startX,y:t.dividerLine.startY,width:t.dividerLine.endX-t.dividerLine.startX,height:t.dividerLine.endY-t.dividerLine.startY,points:[Ja(0,0),Ja(t.dividerLine.endX-t.dividerLine.startX,t.dividerLine.endY-t.dividerLine.startY)],strokeColor:e.strokeColor||"#000",strokeWidth:e.strokeWidth||1}},B1=t=>{const e=En(t.containerStyle),r=Math.max(2,Math.min(t.width,t.height)*.32),i=t.endInnerColor||e.strokeColor||e.backgroundColor||bl;return{id:`${t.id}__inner`,type:"ellipse",groupIds:Cl(t),x:t.x+r,y:t.y+r,width:Math.max(1,t.width-r*2),height:Math.max(1,t.height-r*2),backgroundColor:i,strokeColor:i,fillStyle:"solid",strokeWidth:1}},$1=t=>{const e=t.reflectionPoints.map((r,i,n)=>{const a=n[0];return i===0?Ja(0,0):Ja(r.x-a.x,r.y-a.y)});return{id:t.id,type:"arrow",x:t.startX,y:t.startY,width:t.endX-t.startX,height:t.endY-t.startY,points:e,strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||2,strokeStyle:t.strokeStyle||"solid",endArrowhead:t.isNoteEdge?null:"triangle",roundness:{type:2},start:{id:t.start},end:{id:t.end},...t.text?{label:{text:t.text,fontSize:16}}:{}}},F1=new zi({converter:t=>{const e=[];return t.nodes.forEach(r=>{if(!r.isRenderable)return;const i=M1(r);e.push(i);const n=E1(r);n&&e.push(n),r.shape==="stateEnd"&&e.push(B1(r))}),t.edges.forEach(r=>{e.push($1(r))}),{elements:e}}}),ge=t=>{t=O1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),r=document.createElement("textarea");return r.innerHTML=e,r.value},Hr=t=>{const e=t.getAttribute("transform"),r=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let i=0,n=0;return r&&(i=Number(r[1]),n=Number(r[2])),{transformX:i,transformY:n}},D1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,r=>r.substring(0,r.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,r=>r.substring(0,r.length-1)),e=e.replace(/#\w+;/g,r=>{const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?`fl°°${i}¶ß`:`fl°${i}¶ß`}),e},O1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},I1=.5,Ec=(t,e=I1)=>{const r=[];return t.forEach(i=>{const n=r[r.length-1];if(!n){r.push(i);return}Math.hypot(i[0]-n[0],i[1]-n[1])<=e||r.push(i)}),r},Bc=t=>{const e=t.getAttribute("d");if(!e)return null;const r=Array.from(e.matchAll(/-?\d*\.?\d+(?:e[-+]?\d+)?/gi),i=>Number(i[0]));return r.length<4?null:{startX:r[0],startY:r[1],endX:r[r.length-2],endY:r[r.length-1]}},Id=t=>{const e=t.getAttribute("data-points");if(!e){const r=Bc(t);return r?[{x:r.startX,y:r.startY},{x:r.endX,y:r.endY}]:[]}try{const r=atob(e),i=JSON.parse(r);return Array.isArray(i)?i.filter(n=>n&&typeof n.x=="number"&&typeof n.y=="number"&&Number.isFinite(n.x)&&Number.isFinite(n.y)):[]}catch{return[]}},Rd=(t,e={x:0,y:0},r="LM")=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const n=i.split(new RegExp(`(?=[${r}])`)),a=n[0].substring(1).split(",").map(c=>parseFloat(c)),s=n[n.length-1].substring(1).split(",").map(c=>parseFloat(c)),o=n.map(c=>{const l=c[0],h=c.substring(1).split(",").map(u=>parseFloat(u));return l==="C"?{x:h[4],y:h[5],command:l}:{x:h[0],y:h[1],command:l}}).filter((c,l,h)=>{if(l===0||l===h.length-1)return!0;if(c.x===h[l-1].x&&c.y===h[l-1].y||l===h.length-2&&c.command==="C")return!1;if(l===h.length-2&&(h[l-1].x===c.x||h[l-1].y===c.y)){const u=h[h.length-1];return Math.hypot(u.x-c.x,u.y-c.y)>20}return c.x!==h[l-1].x||c.y!==h[l-1].y}).map(c=>({x:c.x+e.x,y:c.y+e.y}));return{startX:a[0]+e.x,startY:a[1]+e.y,endX:s[0]+e.x,endY:s[1]+e.y,reflectionPoints:o}},R1=t=>({...t,elements:t.elements.map(e=>{if(!("points"in e)||!Array.isArray(e.points))return e;const r=e.points;if(r.length<2)return e;const i=Ec(r);return i.length===r.length?e:{...e,points:i}})}),P1=(t,e={})=>{const r=(()=>{switch(t.type){case"graphImage":return h1.convert(t,e);case"flowchart":return c1.convert(t,e);case"sequence":return g1.convert(t,e);case"class":return m1.convert(t,e);case"erd":return y1.convert(t,e);case"state":return F1.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}})();return R1(r)};var uu={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Pd={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(Gb,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",c="hour",l="day",h="week",u="month",f="quarter",d="year",p="date",g="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var M=["th","st","nd","rd"],E=L%100;return"["+L+(M[(E-20)%10]||M[E]||M[0])+"]"}},w=function(L,M,E){var D=String(L);return!D||D.length>=M?L:""+Array(M+1-D.length).join(E)+L},k={s:w,z:function(L){var M=-L.utcOffset(),E=Math.abs(M),D=Math.floor(E/60),v=E%60;return(M<=0?"+":"-")+w(D,2,"0")+":"+w(v,2,"0")},m:function L(M,E){if(M.date()<E.date())return-L(E,M);var D=12*(E.year()-M.year())+(E.month()-M.month()),v=M.clone().add(D,u),R=E-v<0,U=M.clone().add(D+(R?-1:1),u);return+(-(D+(E-v)/(R?v-U:U-v))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:u,y:d,w:h,d:l,D:p,h:c,m:o,s,ms:a,Q:f}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},_="en",C={};C[_]=b;var S="$isDayjsObject",F=function(L){return L instanceof N||!(!L||!L[S])},I=function L(M,E,D){var v;if(!M)return _;if(typeof M=="string"){var R=M.toLowerCase();C[R]&&(v=R),E&&(C[R]=E,v=R);var U=M.split("-");if(!v&&U.length>1)return L(U[0])}else{var H=M.name;C[H]=M,v=H}return!D&&v&&(_=v),v||!D&&_},O=function(L,M){if(F(L))return L.clone();var E=typeof M=="object"?M:{};return E.date=L,E.args=arguments,new N(E)},A=k;A.l=I,A.i=F,A.w=function(L,M){return O(L,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var N=function(){function L(E){this.$L=I(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[S]=!0}var M=L.prototype;return M.parse=function(E){this.$d=function(D){var v=D.date,R=D.utc;if(v===null)return new Date(NaN);if(A.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var U=v.match(x);if(U){var H=U[2]-1||0,lt=(U[7]||"0").substring(0,3);return R?new Date(Date.UTC(U[1],H,U[3]||1,U[4]||0,U[5]||0,U[6]||0,lt)):new Date(U[1],H,U[3]||1,U[4]||0,U[5]||0,U[6]||0,lt)}}return new Date(v)}(E),this.init()},M.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},M.$utils=function(){return A},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(E,D){var v=O(E);return this.startOf(D)<=v&&v<=this.endOf(D)},M.isAfter=function(E,D){return O(E)<this.startOf(D)},M.isBefore=function(E,D){return this.endOf(D)<O(E)},M.$g=function(E,D,v){return A.u(E)?this[D]:this.set(v,E)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(E,D){var v=this,R=!!A.u(D)||D,U=A.p(E),H=function(W,X){var nt=A.w(v.$u?Date.UTC(v.$y,X,W):new Date(v.$y,X,W),v);return R?nt:nt.endOf(l)},lt=function(W,X){return A.w(v.toDate()[W].apply(v.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(X)),v)},et=this.$W,ht=this.$M,tt=this.$D,it="set"+(this.$u?"UTC":"");switch(U){case d:return R?H(1,0):H(31,11);case u:return R?H(1,ht):H(0,ht+1);case h:var ut=this.$locale().weekStart||0,yt=(et<ut?et+7:et)-ut;return H(R?tt-yt:tt+(6-yt),ht);case l:case p:return lt(it+"Hours",0);case c:return lt(it+"Minutes",1);case o:return lt(it+"Seconds",2);case s:return lt(it+"Milliseconds",3);default:return this.clone()}},M.endOf=function(E){return this.startOf(E,!1)},M.$set=function(E,D){var v,R=A.p(E),U="set"+(this.$u?"UTC":""),H=(v={},v[l]=U+"Date",v[p]=U+"Date",v[u]=U+"Month",v[d]=U+"FullYear",v[c]=U+"Hours",v[o]=U+"Minutes",v[s]=U+"Seconds",v[a]=U+"Milliseconds",v)[R],lt=R===l?this.$D+(D-this.$W):D;if(R===u||R===d){var et=this.clone().set(p,1);et.$d[H](lt),et.init(),this.$d=et.set(p,Math.min(this.$D,et.daysInMonth())).$d}else H&&this.$d[H](lt);return this.init(),this},M.set=function(E,D){return this.clone().$set(E,D)},M.get=function(E){return this[A.p(E)]()},M.add=function(E,D){var v,R=this;E=Number(E);var U=A.p(D),H=function(ht){var tt=O(R);return A.w(tt.date(tt.date()+Math.round(ht*E)),R)};if(U===u)return this.set(u,this.$M+E);if(U===d)return this.set(d,this.$y+E);if(U===l)return H(1);if(U===h)return H(7);var lt=(v={},v[o]=i,v[c]=n,v[s]=r,v)[U]||1,et=this.$d.getTime()+E*lt;return A.w(et,this)},M.subtract=function(E,D){return this.add(-1*E,D)},M.format=function(E){var D=this,v=this.$locale();if(!this.isValid())return v.invalidDate||g;var R=E||"YYYY-MM-DDTHH:mm:ssZ",U=A.z(this),H=this.$H,lt=this.$m,et=this.$M,ht=v.weekdays,tt=v.months,it=v.meridiem,ut=function(X,nt,z,At){return X&&(X[nt]||X(D,R))||z[nt].slice(0,At)},yt=function(X){return A.s(H%12||12,X,"0")},W=it||function(X,nt,z){var At=X<12?"AM":"PM";return z?At.toLowerCase():At};return R.replace(y,function(X,nt){return nt||function(z){switch(z){case"YY":return String(D.$y).slice(-2);case"YYYY":return A.s(D.$y,4,"0");case"M":return et+1;case"MM":return A.s(et+1,2,"0");case"MMM":return ut(v.monthsShort,et,tt,3);case"MMMM":return ut(tt,et);case"D":return D.$D;case"DD":return A.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ut(v.weekdaysMin,D.$W,ht,2);case"ddd":return ut(v.weekdaysShort,D.$W,ht,3);case"dddd":return ht[D.$W];case"H":return String(H);case"HH":return A.s(H,2,"0");case"h":return yt(1);case"hh":return yt(2);case"a":return W(H,lt,!0);case"A":return W(H,lt,!1);case"m":return String(lt);case"mm":return A.s(lt,2,"0");case"s":return String(D.$s);case"ss":return A.s(D.$s,2,"0");case"SSS":return A.s(D.$ms,3,"0");case"Z":return U}return null}(X)||U.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(E,D,v){var R,U=this,H=A.p(D),lt=O(E),et=(lt.utcOffset()-this.utcOffset())*i,ht=this-lt,tt=function(){return A.m(U,lt)};switch(H){case d:R=tt()/12;break;case u:R=tt();break;case f:R=tt()/3;break;case h:R=(ht-et)/6048e5;break;case l:R=(ht-et)/864e5;break;case c:R=ht/n;break;case o:R=ht/i;break;case s:R=ht/r;break;default:R=ht}return v?R:A.a(R)},M.daysInMonth=function(){return this.endOf(u).$D},M.$locale=function(){return C[this.$L]},M.locale=function(E,D){if(!E)return this.$L;var v=this.clone(),R=I(E,D,!0);return R&&(v.$L=R),v},M.clone=function(){return A.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},L}(),$=N.prototype;return O.prototype=$,[["$ms",a],["$s",s],["$m",o],["$H",c],["$W",l],["$M",u],["$y",d],["$D",p]].forEach(function(L){$[L[1]]=function(M){return this.$g(M,L[0],L[1])}}),O.extend=function(L,M){return L.$i||(L(M,N,O),L.$i=!0),O},O.locale=I,O.isDayjs=F,O.unix=function(L){return O(1e3*L)},O.en=C[_],O.Ls=C,O.p={},O})})(Pd);var N1=Pd.exports;const z1=Vb(N1);var Nd=Object.defineProperty,m=(t,e)=>Nd(t,"name",{value:e,configurable:!0}),W1=(t,e)=>{for(var r in e)Nd(t,r,{get:e[r],enumerable:!0})},rr={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},P={trace:m((...t)=>{},"trace"),debug:m((...t)=>{},"debug"),info:m((...t)=>{},"info"),warn:m((...t)=>{},"warn"),error:m((...t)=>{},"error"),fatal:m((...t)=>{},"fatal")},$c=m(function(t="fatal"){let e=rr.fatal;typeof t=="string"?t.toLowerCase()in rr&&(e=rr[t]):typeof t=="number"&&(e=t),P.trace=()=>{},P.debug=()=>{},P.info=()=>{},P.warn=()=>{},P.error=()=>{},P.fatal=()=>{},e<=rr.fatal&&(P.fatal=console.error?console.error.bind(console,be("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",be("FATAL"))),e<=rr.error&&(P.error=console.error?console.error.bind(console,be("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",be("ERROR"))),e<=rr.warn&&(P.warn=console.warn?console.warn.bind(console,be("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",be("WARN"))),e<=rr.info&&(P.info=console.info?console.info.bind(console,be("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",be("INFO"))),e<=rr.debug&&(P.debug=console.debug?console.debug.bind(console,be("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",be("DEBUG"))),e<=rr.trace&&(P.trace=console.debug?console.debug.bind(console,be("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",be("TRACE")))},"setLogLevel"),be=m(t=>`%c${z1().format("ss.SSS")} : ${t} : `,"format");const Ia={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const n=r<.5?r*(1+e):r+e-r*e,a=2*r-n;switch(i){case"r":return Ia.hue2rgb(a,n,t+1/3)*255;case"g":return Ia.hue2rgb(a,n,t)*255;case"b":return Ia.hue2rgb(a,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const n=Math.max(t,e,r),a=Math.min(t,e,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,c=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return c*100;switch(n){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},q1={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},H1={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},dt={channel:Ia,lang:q1,unit:H1},yr={};for(let t=0;t<=255;t++)yr[t]=dt.unit.dec2hex(t);const Vt={ALL:0,RGB:1,HSL:2};class Y1{constructor(){this.type=Vt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Vt.ALL}is(e){return this.type===e}}class U1{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new Y1}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=Vt.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:i,l:n}=e;r===void 0&&(e.h=dt.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=dt.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=dt.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:i,b:n}=e;r===void 0&&(e.r=dt.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=dt.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=dt.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(Vt.HSL)&&r!==void 0?r:(this._ensureHSL(),dt.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(Vt.HSL)&&r!==void 0?r:(this._ensureHSL(),dt.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(Vt.HSL)&&r!==void 0?r:(this._ensureHSL(),dt.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(Vt.RGB)&&r!==void 0?r:(this._ensureRGB(),dt.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(Vt.RGB)&&r!==void 0?r:(this._ensureRGB(),dt.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(Vt.RGB)&&r!==void 0?r:(this._ensureRGB(),dt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Vt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Vt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Vt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Vt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Vt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Vt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Vs=new U1({r:0,g:0,b:0,a:0},"transparent"),_i={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(_i.re);if(!e)return;const r=e[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,c=s?8:4,l=a?0:-1,h=s?255:15;return Vs.set({r:(i>>c*(l+3)&h)*o,g:(i>>c*(l+2)&h)*o,b:(i>>c*(l+1)&h)*o,a:a?(i&h)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`#${yr[Math.round(e)]}${yr[Math.round(r)]}${yr[Math.round(i)]}${yr[Math.round(n*255)]}`:`#${yr[Math.round(e)]}${yr[Math.round(r)]}${yr[Math.round(i)]}`}},Ir={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Ir.hueRe);if(e){const[,r,i]=e;switch(i){case"grad":return dt.channel.clamp.h(parseFloat(r)*.9);case"rad":return dt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return dt.channel.clamp.h(parseFloat(r)*360)}}return dt.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(Ir.re);if(!r)return;const[,i,n,a,s,o]=r;return Vs.set({h:Ir._hue2deg(i),s:dt.channel.clamp.s(parseFloat(n)),l:dt.channel.clamp.l(parseFloat(a)),a:s?dt.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${dt.lang.round(e)}, ${dt.lang.round(r)}%, ${dt.lang.round(i)}%, ${n})`:`hsl(${dt.lang.round(e)}, ${dt.lang.round(r)}%, ${dt.lang.round(i)}%)`}},kn={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=kn.colors[t];if(e)return _i.parse(e)},stringify:t=>{const e=_i.stringify(t);for(const r in kn.colors)if(kn.colors[r]===e)return r}},dn={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(dn.re);if(!r)return;const[,i,n,a,s,o,c,l,h]=r;return Vs.set({r:dt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:dt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:dt.channel.clamp.b(c?parseFloat(o)*2.55:parseFloat(o)),a:l?dt.channel.clamp.a(h?parseFloat(l)/100:parseFloat(l)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${dt.lang.round(e)}, ${dt.lang.round(r)}, ${dt.lang.round(i)}, ${dt.lang.round(n)})`:`rgb(${dt.lang.round(e)}, ${dt.lang.round(r)}, ${dt.lang.round(i)})`}},Ie={format:{keyword:kn,hex:_i,rgb:dn,rgba:dn,hsl:Ir,hsla:Ir},parse:t=>{if(typeof t!="string")return t;const e=_i.parse(t)||dn.parse(t)||Ir.parse(t)||kn.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Vt.HSL)||t.data.r===void 0?Ir.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?dn.stringify(t):_i.stringify(t)},zd=(t,e)=>{const r=Ie.parse(t);for(const i in e)r[i]=dt.channel.clamp[i](e[i]);return Ie.stringify(r)},Sn=(t,e,r=0,i=1)=>{if(typeof t!="number")return zd(t,{a:e});const n=Vs.set({r:dt.channel.clamp.r(t),g:dt.channel.clamp.g(e),b:dt.channel.clamp.b(r),a:dt.channel.clamp.a(i)});return Ie.stringify(n)},NI=(t,e)=>dt.lang.round(Ie.parse(t)[e]),j1=t=>{const{r:e,g:r,b:i}=Ie.parse(t),n=.2126*dt.channel.toLinear(e)+.7152*dt.channel.toLinear(r)+.0722*dt.channel.toLinear(i);return dt.lang.round(n)},X1=t=>j1(t)>=.5,ta=t=>!X1(t),Wd=(t,e,r)=>{const i=Ie.parse(t),n=i[e],a=dt.channel.clamp[e](n+r);return n!==a&&(i[e]=a),Ie.stringify(i)},G=(t,e)=>Wd(t,"l",e),st=(t,e)=>Wd(t,"l",-e),B=(t,e)=>{const r=Ie.parse(t),i={};for(const n in e)e[n]&&(i[n]=r[n]+e[n]);return zd(t,i)},G1=(t,e,r=50)=>{const{r:i,g:n,b:a,a:s}=Ie.parse(t),{r:o,g:c,b:l,a:h}=Ie.parse(e),u=r/100,f=u*2-1,d=s-h,g=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,x=1-g,y=i*g+o*x,b=n*g+c*x,w=a*g+l*x,k=s*u+h*(1-u);return Sn(y,b,w,k)},Y=(t,e=100)=>{const r=Ie.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,G1(r,t,e)};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:qd,setPrototypeOf:fu,isFrozen:V1,getPrototypeOf:Z1,getOwnPropertyDescriptor:K1}=Object;let{freeze:ce,seal:_e,create:wl}=Object,{apply:_l,construct:kl}=typeof Reflect<"u"&&Reflect;ce||(ce=function(e){return e});_e||(_e=function(e){return e});_l||(_l=function(e,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return e.apply(r,n)});kl||(kl=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new e(...i)});const ba=he(Array.prototype.forEach),Q1=he(Array.prototype.lastIndexOf),du=he(Array.prototype.pop),Vi=he(Array.prototype.push),J1=he(Array.prototype.splice),Ra=he(String.prototype.toLowerCase),Ro=he(String.prototype.toString),Po=he(String.prototype.match),Zi=he(String.prototype.replace),t2=he(String.prototype.indexOf),e2=he(String.prototype.trim),Le=he(Object.prototype.hasOwnProperty),ne=he(RegExp.prototype.test),Ki=r2(TypeError);function he(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return _l(t,e,i)}}function r2(t){return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return kl(t,r)}}function gt(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ra;fu&&fu(t,null);let i=e.length;for(;i--;){let n=e[i];if(typeof n=="string"){const a=r(n);a!==n&&(V1(e)||(e[i]=a),n=a)}t[n]=!0}return t}function i2(t){for(let e=0;e<t.length;e++)Le(t,e)||(t[e]=null);return t}function qe(t){const e=wl(null);for(const[r,i]of qd(t))Le(t,r)&&(Array.isArray(i)?e[r]=i2(i):i&&typeof i=="object"&&i.constructor===Object?e[r]=qe(i):e[r]=i);return e}function Qi(t,e){for(;t!==null;){const i=K1(t,e);if(i){if(i.get)return he(i.get);if(typeof i.value=="function")return he(i.value)}t=Z1(t)}function r(){return null}return r}const pu=ce(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),No=ce(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zo=ce(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),n2=ce(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wo=ce(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),a2=ce(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gu=ce(["#text"]),mu=ce(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),qo=ce(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yu=ce(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ca=ce(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),s2=_e(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o2=_e(/<%[\w\W]*|[\w\W]*%>/gm),l2=_e(/\$\{[\w\W]*/gm),c2=_e(/^data-[\-\w.\u00B7-\uFFFF]+$/),h2=_e(/^aria-[\-\w]+$/),Hd=_e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),u2=_e(/^(?:\w+script|data):/i),f2=_e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yd=_e(/^html$/i),d2=_e(/^[a-z][.\w]*(-[.\w]+)+$/i);var xu=Object.freeze({__proto__:null,ARIA_ATTR:h2,ATTR_WHITESPACE:f2,CUSTOM_ELEMENT:d2,DATA_ATTR:c2,DOCTYPE_NAME:Yd,ERB_EXPR:o2,IS_ALLOWED_URI:Hd,IS_SCRIPT_OR_DATA:u2,MUSTACHE_EXPR:s2,TMPLIT_EXPR:l2});const Ji={element:1,text:3,progressingInstruction:7,comment:8,document:9},p2=function(){return typeof window>"u"?null:window},g2=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},bu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ud(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p2();const e=at=>Ud(at);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==Ji.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:c,NodeFilter:l,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:f,trustedTypes:d}=t,p=c.prototype,g=Qi(p,"cloneNode"),x=Qi(p,"remove"),y=Qi(p,"nextSibling"),b=Qi(p,"childNodes"),w=Qi(p,"parentNode");if(typeof s=="function"){const at=r.createElement("template");at.content&&at.content.ownerDocument&&(r=at.content.ownerDocument)}let k,_="";const{implementation:C,createNodeIterator:S,createDocumentFragment:F,getElementsByTagName:I}=r,{importNode:O}=i;let A=bu();e.isSupported=typeof qd=="function"&&typeof w=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:$,TMPLIT_EXPR:L,DATA_ATTR:M,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:v,CUSTOM_ELEMENT:R}=xu;let{IS_ALLOWED_URI:U}=xu,H=null;const lt=gt({},[...pu,...No,...zo,...Wo,...gu]);let et=null;const ht=gt({},[...mu,...qo,...yu,...Ca]);let tt=Object.seal(wl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),it=null,ut=null;const yt=Object.seal(wl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,X=!0,nt=!1,z=!0,At=!1,xt=!0,Bt=!1,Ht=!1,Ae=!1,Qe=!1,ua=!1,fa=!1,jh=!0,Xh=!1;const Pb="user-content-";let Ao=!0,Xi=!1,ci={},Pe=null;const Lo=gt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gh=null;const Vh=gt({},["audio","video","img","source","image","track"]);let Mo=null;const Zh=gt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),da="http://www.w3.org/1998/Math/MathML",pa="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let hi=Je,Eo=!1,Bo=null;const Nb=gt({},[da,pa,Je],Ro);let ga=gt({},["mi","mo","mn","ms","mtext"]),ma=gt({},["annotation-xml"]);const zb=gt({},["title","style","font","a","script"]);let Gi=null;const Wb=["application/xhtml+xml","text/html"],qb="text/html";let It=null,ui=null;const Hb=r.createElement("form"),Kh=function(T){return T instanceof RegExp||T instanceof Function},$o=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ui&&ui===T)){if((!T||typeof T!="object")&&(T={}),T=qe(T),Gi=Wb.indexOf(T.PARSER_MEDIA_TYPE)===-1?qb:T.PARSER_MEDIA_TYPE,It=Gi==="application/xhtml+xml"?Ro:Ra,H=Le(T,"ALLOWED_TAGS")?gt({},T.ALLOWED_TAGS,It):lt,et=Le(T,"ALLOWED_ATTR")?gt({},T.ALLOWED_ATTR,It):ht,Bo=Le(T,"ALLOWED_NAMESPACES")?gt({},T.ALLOWED_NAMESPACES,Ro):Nb,Mo=Le(T,"ADD_URI_SAFE_ATTR")?gt(qe(Zh),T.ADD_URI_SAFE_ATTR,It):Zh,Gh=Le(T,"ADD_DATA_URI_TAGS")?gt(qe(Vh),T.ADD_DATA_URI_TAGS,It):Vh,Pe=Le(T,"FORBID_CONTENTS")?gt({},T.FORBID_CONTENTS,It):Lo,it=Le(T,"FORBID_TAGS")?gt({},T.FORBID_TAGS,It):qe({}),ut=Le(T,"FORBID_ATTR")?gt({},T.FORBID_ATTR,It):qe({}),ci=Le(T,"USE_PROFILES")?T.USE_PROFILES:!1,W=T.ALLOW_ARIA_ATTR!==!1,X=T.ALLOW_DATA_ATTR!==!1,nt=T.ALLOW_UNKNOWN_PROTOCOLS||!1,z=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,At=T.SAFE_FOR_TEMPLATES||!1,xt=T.SAFE_FOR_XML!==!1,Bt=T.WHOLE_DOCUMENT||!1,Qe=T.RETURN_DOM||!1,ua=T.RETURN_DOM_FRAGMENT||!1,fa=T.RETURN_TRUSTED_TYPE||!1,Ae=T.FORCE_BODY||!1,jh=T.SANITIZE_DOM!==!1,Xh=T.SANITIZE_NAMED_PROPS||!1,Ao=T.KEEP_CONTENT!==!1,Xi=T.IN_PLACE||!1,U=T.ALLOWED_URI_REGEXP||Hd,hi=T.NAMESPACE||Je,ga=T.MATHML_TEXT_INTEGRATION_POINTS||ga,ma=T.HTML_INTEGRATION_POINTS||ma,tt=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&Kh(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tt.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&Kh(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tt.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(tt.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),At&&(X=!1),ua&&(Qe=!0),ci&&(H=gt({},gu),et=[],ci.html===!0&&(gt(H,pu),gt(et,mu)),ci.svg===!0&&(gt(H,No),gt(et,qo),gt(et,Ca)),ci.svgFilters===!0&&(gt(H,zo),gt(et,qo),gt(et,Ca)),ci.mathMl===!0&&(gt(H,Wo),gt(et,yu),gt(et,Ca))),T.ADD_TAGS&&(typeof T.ADD_TAGS=="function"?yt.tagCheck=T.ADD_TAGS:(H===lt&&(H=qe(H)),gt(H,T.ADD_TAGS,It))),T.ADD_ATTR&&(typeof T.ADD_ATTR=="function"?yt.attributeCheck=T.ADD_ATTR:(et===ht&&(et=qe(et)),gt(et,T.ADD_ATTR,It))),T.ADD_URI_SAFE_ATTR&&gt(Mo,T.ADD_URI_SAFE_ATTR,It),T.FORBID_CONTENTS&&(Pe===Lo&&(Pe=qe(Pe)),gt(Pe,T.FORBID_CONTENTS,It)),T.ADD_FORBID_CONTENTS&&(Pe===Lo&&(Pe=qe(Pe)),gt(Pe,T.ADD_FORBID_CONTENTS,It)),Ao&&(H["#text"]=!0),Bt&&gt(H,["html","head","body"]),H.table&&(gt(H,["tbody"]),delete it.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ki('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ki('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=T.TRUSTED_TYPES_POLICY,_=k.createHTML("")}else k===void 0&&(k=g2(d,n)),k!==null&&typeof _=="string"&&(_=k.createHTML(""));ce&&ce(T),ui=T}},Qh=gt({},[...No,...zo,...n2]),Jh=gt({},[...Wo,...a2]),Yb=function(T){let q=w(T);(!q||!q.tagName)&&(q={namespaceURI:hi,tagName:"template"});const J=Ra(T.tagName),Mt=Ra(q.tagName);return Bo[T.namespaceURI]?T.namespaceURI===pa?q.namespaceURI===Je?J==="svg":q.namespaceURI===da?J==="svg"&&(Mt==="annotation-xml"||ga[Mt]):!!Qh[J]:T.namespaceURI===da?q.namespaceURI===Je?J==="math":q.namespaceURI===pa?J==="math"&&ma[Mt]:!!Jh[J]:T.namespaceURI===Je?q.namespaceURI===pa&&!ma[Mt]||q.namespaceURI===da&&!ga[Mt]?!1:!Jh[J]&&(zb[J]||!Qh[J]):!!(Gi==="application/xhtml+xml"&&Bo[T.namespaceURI]):!1},Ne=function(T){Vi(e.removed,{element:T});try{w(T).removeChild(T)}catch{x(T)}},Mr=function(T,q){try{Vi(e.removed,{attribute:q.getAttributeNode(T),from:q})}catch{Vi(e.removed,{attribute:null,from:q})}if(q.removeAttribute(T),T==="is")if(Qe||ua)try{Ne(q)}catch{}else try{q.setAttribute(T,"")}catch{}},tu=function(T){let q=null,J=null;if(Ae)T="<remove></remove>"+T;else{const Dt=Po(T,/^[\r\n\t ]+/);J=Dt&&Dt[0]}Gi==="application/xhtml+xml"&&hi===Je&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Mt=k?k.createHTML(T):T;if(hi===Je)try{q=new f().parseFromString(Mt,Gi)}catch{}if(!q||!q.documentElement){q=C.createDocument(hi,"template",null);try{q.documentElement.innerHTML=Eo?_:Mt}catch{}}const Xt=q.body||q.documentElement;return T&&J&&Xt.insertBefore(r.createTextNode(J),Xt.childNodes[0]||null),hi===Je?I.call(q,Bt?"html":"body")[0]:Bt?q.documentElement:Xt},eu=function(T){return S.call(T.ownerDocument||T,T,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Fo=function(T){return T instanceof u&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof h)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},ru=function(T){return typeof o=="function"&&T instanceof o};function tr(at,T,q){ba(at,J=>{J.call(e,T,q,ui)})}const iu=function(T){let q=null;if(tr(A.beforeSanitizeElements,T,null),Fo(T))return Ne(T),!0;const J=It(T.nodeName);if(tr(A.uponSanitizeElement,T,{tagName:J,allowedTags:H}),xt&&T.hasChildNodes()&&!ru(T.firstElementChild)&&ne(/<[/\w!]/g,T.innerHTML)&&ne(/<[/\w!]/g,T.textContent)||T.nodeType===Ji.progressingInstruction||xt&&T.nodeType===Ji.comment&&ne(/<[/\w]/g,T.data))return Ne(T),!0;if(!(yt.tagCheck instanceof Function&&yt.tagCheck(J))&&(!H[J]||it[J])){if(!it[J]&&au(J)&&(tt.tagNameCheck instanceof RegExp&&ne(tt.tagNameCheck,J)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(J)))return!1;if(Ao&&!Pe[J]){const Mt=w(T)||T.parentNode,Xt=b(T)||T.childNodes;if(Xt&&Mt){const Dt=Xt.length;for(let ue=Dt-1;ue>=0;--ue){const er=g(Xt[ue],!0);er.__removalCount=(T.__removalCount||0)+1,Mt.insertBefore(er,y(T))}}}return Ne(T),!0}return T instanceof c&&!Yb(T)||(J==="noscript"||J==="noembed"||J==="noframes")&&ne(/<\/no(script|embed|frames)/i,T.innerHTML)?(Ne(T),!0):(At&&T.nodeType===Ji.text&&(q=T.textContent,ba([N,$,L],Mt=>{q=Zi(q,Mt," ")}),T.textContent!==q&&(Vi(e.removed,{element:T.cloneNode()}),T.textContent=q)),tr(A.afterSanitizeElements,T,null),!1)},nu=function(T,q,J){if(jh&&(q==="id"||q==="name")&&(J in r||J in Hb))return!1;if(!(X&&!ut[q]&&ne(M,q))){if(!(W&&ne(E,q))){if(!(yt.attributeCheck instanceof Function&&yt.attributeCheck(q,T))){if(!et[q]||ut[q]){if(!(au(T)&&(tt.tagNameCheck instanceof RegExp&&ne(tt.tagNameCheck,T)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(T))&&(tt.attributeNameCheck instanceof RegExp&&ne(tt.attributeNameCheck,q)||tt.attributeNameCheck instanceof Function&&tt.attributeNameCheck(q,T))||q==="is"&&tt.allowCustomizedBuiltInElements&&(tt.tagNameCheck instanceof RegExp&&ne(tt.tagNameCheck,J)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(J))))return!1}else if(!Mo[q]){if(!ne(U,Zi(J,v,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&T!=="script"&&t2(J,"data:")===0&&Gh[T])){if(!(nt&&!ne(D,Zi(J,v,"")))){if(J)return!1}}}}}}}return!0},au=function(T){return T!=="annotation-xml"&&Po(T,R)},su=function(T){tr(A.beforeSanitizeAttributes,T,null);const{attributes:q}=T;if(!q||Fo(T))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:et,forceKeepAttr:void 0};let Mt=q.length;for(;Mt--;){const Xt=q[Mt],{name:Dt,namespaceURI:ue,value:er}=Xt,fi=It(Dt),Do=er;let Yt=Dt==="value"?Do:e2(Do);if(J.attrName=fi,J.attrValue=Yt,J.keepAttr=!0,J.forceKeepAttr=void 0,tr(A.uponSanitizeAttribute,T,J),Yt=J.attrValue,Xh&&(fi==="id"||fi==="name")&&(Mr(Dt,T),Yt=Pb+Yt),xt&&ne(/((--!?|])>)|<\/(style|title|textarea)/i,Yt)){Mr(Dt,T);continue}if(fi==="attributename"&&Po(Yt,"href")){Mr(Dt,T);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){Mr(Dt,T);continue}if(!z&&ne(/\/>/i,Yt)){Mr(Dt,T);continue}At&&ba([N,$,L],lu=>{Yt=Zi(Yt,lu," ")});const ou=It(T.nodeName);if(!nu(ou,fi,Yt)){Mr(Dt,T);continue}if(k&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!ue)switch(d.getAttributeType(ou,fi)){case"TrustedHTML":{Yt=k.createHTML(Yt);break}case"TrustedScriptURL":{Yt=k.createScriptURL(Yt);break}}if(Yt!==Do)try{ue?T.setAttributeNS(ue,Dt,Yt):T.setAttribute(Dt,Yt),Fo(T)?Ne(T):du(e.removed)}catch{Mr(Dt,T)}}tr(A.afterSanitizeAttributes,T,null)},Ub=function at(T){let q=null;const J=eu(T);for(tr(A.beforeSanitizeShadowDOM,T,null);q=J.nextNode();)tr(A.uponSanitizeShadowNode,q,null),iu(q),su(q),q.content instanceof a&&at(q.content);tr(A.afterSanitizeShadowDOM,T,null)};return e.sanitize=function(at){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,J=null,Mt=null,Xt=null;if(Eo=!at,Eo&&(at="<!-->"),typeof at!="string"&&!ru(at))if(typeof at.toString=="function"){if(at=at.toString(),typeof at!="string")throw Ki("dirty is not a string, aborting")}else throw Ki("toString is not a function");if(!e.isSupported)return at;if(Ht||$o(T),e.removed=[],typeof at=="string"&&(Xi=!1),Xi){if(at.nodeName){const er=It(at.nodeName);if(!H[er]||it[er])throw Ki("root node is forbidden and cannot be sanitized in-place")}}else if(at instanceof o)q=tu("<!---->"),J=q.ownerDocument.importNode(at,!0),J.nodeType===Ji.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?q=J:q.appendChild(J);else{if(!Qe&&!At&&!Bt&&at.indexOf("<")===-1)return k&&fa?k.createHTML(at):at;if(q=tu(at),!q)return Qe?null:fa?_:""}q&&Ae&&Ne(q.firstChild);const Dt=eu(Xi?at:q);for(;Mt=Dt.nextNode();)iu(Mt),su(Mt),Mt.content instanceof a&&Ub(Mt.content);if(Xi)return at;if(Qe){if(ua)for(Xt=F.call(q.ownerDocument);q.firstChild;)Xt.appendChild(q.firstChild);else Xt=q;return(et.shadowroot||et.shadowrootmode)&&(Xt=O.call(i,Xt,!0)),Xt}let ue=Bt?q.outerHTML:q.innerHTML;return Bt&&H["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&ne(Yd,q.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
15
+ `+ue),At&&ba([N,$,L],er=>{ue=Zi(ue,er," ")}),k&&fa?k.createHTML(ue):ue},e.setConfig=function(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$o(at),Ht=!0},e.clearConfig=function(){ui=null,Ht=!1},e.isValidAttribute=function(at,T,q){ui||$o({});const J=It(at),Mt=It(T);return nu(J,Mt,q)},e.addHook=function(at,T){typeof T=="function"&&Vi(A[at],T)},e.removeHook=function(at,T){if(T!==void 0){const q=Q1(A[at],T);return q===-1?void 0:J1(A[at],q,1)[0]}return du(A[at])},e.removeHooks=function(at){A[at]=[]},e.removeAllHooks=function(){A=bu()},e}var Ai=Ud(),jd=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,vn=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,m2=/\s*%%.*\n/gm,Un,Xd=(Un=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},m(Un,"UnknownDiagramError"),Un),Ur={},Fc=m(function(t,e){t=t.replace(jd,"").replace(vn,"").replace(m2,`
16
+ `);for(const[r,{detector:i}]of Object.entries(Ur))if(i(t,e))return r;throw new Xd(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),Sl=m((...t)=>{for(const{id:e,detector:r,loader:i}of t)Gd(e,r,i)},"registerLazyLoadedDiagrams"),Gd=m((t,e,r)=>{Ur[t]&&P.warn(`Detector with key ${t} already exists. Overwriting.`),Ur[t]={detector:e,loader:r},P.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),y2=m(t=>Ur[t].loader,"getDiagramLoader"),vl=m((t,e,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>vl(t,a,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=vl(t[a],e[a],{depth:r-1,clobber:i})):(i||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),Rt=vl,Zs="#ffffff",Ks="#f2f2f2",se=m((t,e)=>e?B(t,{s:-40,l:10}):B(t,{s:-40,l:-10}),"mkBorder"),jn,x2=(jn=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,i,n,a,s,o,c,l,h,u,f,d,p,g,x,y,b,w,k,_,C;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||se(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||se(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||se(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||se(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Y(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Y(this.tertiaryColor),this.lineColor=this.lineColor||Y(this.background),this.arrowheadColor=this.arrowheadColor||Y(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?st(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||st(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Y(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||G(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||st(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||st(this.mainBkg,10)):(this.rowOdd=this.rowOdd||G(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||G(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.darkMode)for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=st(this["cScale"+S],75);else for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=st(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||Y(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this.darkMode?this["cScalePeer"+S]=this["cScalePeer"+S]||G(this["cScale"+S],10):this["cScalePeer"+S]=this["cScalePeer"+S]||st(this["cScale"+S],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||B(this.mainBkg,{h:180,s:-15,l:e*(5+S*3)}),this["surfacePeer"+S]=this["surfacePeer"+S]||B(this.mainBkg,{h:180,s:-15,l:e*(8+S*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||B(this.primaryColor,{h:64}),this.fillType3=this.fillType3||B(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||B(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||B(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||B(this.primaryColor,{h:128}),this.fillType7=this.fillType7||B(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-10}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||B(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ta(this.quadrant1Fill)?G(this.quadrant1Fill):st(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((d=this.xyChart)==null?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((x=this.xyChart)==null?void 0:x.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((b=this.xyChart)==null?void 0:b.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((w=this.xyChart)==null?void 0:w.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((k=this.xyChart)==null?void 0:k.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?st(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)):(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)),this.gitInv0=this.gitInv0||Y(this.git0),this.gitInv1=this.gitInv1||Y(this.git1),this.gitInv2=this.gitInv2||Y(this.git2),this.gitInv3=this.gitInv3||Y(this.git3),this.gitInv4=this.gitInv4||Y(this.git4),this.gitInv5=this.gitInv5||Y(this.git5),this.gitInv6=this.gitInv6||Y(this.git6),this.gitInv7=this.gitInv7||Y(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Zs,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ks}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},m(jn,"Theme"),jn),b2=m(t=>{const e=new x2;return e.calculate(t),e},"getThemeVariables"),Xn,C2=(Xn=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=G(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=Y(this.background),this.secondaryBorderColor=se(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=se(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=G(Y("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Sn(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=st("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=st(this.sectionBkgColor,10),this.taskBorderColor=Sn(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Sn(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||G(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||st(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,r,i,n,a,s,o,c,l,h,u,f,d,p,g,x,y,b,w,k,_;this.secondBkg=G(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=G(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=G(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||Y(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScalePeer"+C]=this["cScalePeer"+C]||G(this["cScale"+C],10);for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||B(this.mainBkg,{h:30,s:-30,l:-(-10+C*4)}),this["surfacePeer"+C]=this["surfacePeer"+C]||B(this.mainBkg,{h:30,s:-30,l:-(-7+C*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ta(this.quadrant1Fill)?G(this.quadrant1Fill):st(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((o=this.xyChart)==null?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((l=this.xyChart)==null?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((x=this.radar)==null?void 0:x.curveStrokeWidth)||2,graticuleColor:((y=this.radar)==null?void 0:y.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((w=this.radar)==null?void 0:w.graticuleOpacity)||.3,legendBoxSize:((k=this.radar)==null?void 0:k.legendBoxSize)||12,legendFontSize:((_=this.radar)==null?void 0:_.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?st(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=G(this.secondaryColor,20),this.git1=G(this.pie2||this.secondaryColor,20),this.git2=G(this.pie3||this.tertiaryColor,20),this.git3=G(this.pie4||B(this.primaryColor,{h:-30}),20),this.git4=G(this.pie5||B(this.primaryColor,{h:-60}),20),this.git5=G(this.pie6||B(this.primaryColor,{h:-90}),10),this.git6=G(this.pie7||B(this.primaryColor,{h:60}),10),this.git7=G(this.pie8||B(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Y(this.git0),this.gitInv1=this.gitInv1||Y(this.git1),this.gitInv2=this.gitInv2||Y(this.git2),this.gitInv3=this.gitInv3||Y(this.git3),this.gitInv4=this.gitInv4||Y(this.git4),this.gitInv5=this.gitInv5||Y(this.git5),this.gitInv6=this.gitInv6||Y(this.git6),this.gitInv7=this.gitInv7||Y(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Y(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Y(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||G(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||G(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},m(Xn,"Theme"),Xn),w2=m(t=>{const e=new C2;return e.calculate(t),e},"getThemeVariables"),Gn,_2=(Gn=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=B(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=se(this.primaryColor,this.darkMode),this.secondaryBorderColor=se(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=se(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Sn(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,r,i,n,a,s,o,c,l,h,u,f,d,p,g,x,y,b,w,k,_;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||st(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||st(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=st(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||st(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||B(this["cScale"+C],{h:180});for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||B(this.mainBkg,{h:30,l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||B(this.mainBkg,{h:30,l:-(7+C*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Y(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Y(this.labelTextColor);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=G(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||G(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||G(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||B(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-30}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||B(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||B(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ta(this.quadrant1Fill)?G(this.quadrant1Fill):st(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((l=this.radar)==null?void 0:l.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((y=this.xyChart)==null?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((w=this.xyChart)==null?void 0:w.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((k=this.xyChart)==null?void 0:k.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)):(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)),this.gitInv0=this.gitInv0||st(Y(this.git0),25),this.gitInv1=this.gitInv1||Y(this.git1),this.gitInv2=this.gitInv2||Y(this.git2),this.gitInv3=this.gitInv3||Y(this.git3),this.gitInv4=this.gitInv4||Y(this.git4),this.gitInv5=this.gitInv5||Y(this.git5),this.gitInv6=this.gitInv6||Y(this.git6),this.gitInv7=this.gitInv7||Y(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Y(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Y(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Zs,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ks}calculate(e){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},m(Gn,"Theme"),Gn),k2=m(t=>{const e=new _2;return e.calculate(t),e},"getThemeVariables"),Vn,S2=(Vn=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=G("#cde498",10),this.primaryBorderColor=se(this.primaryColor,this.darkMode),this.secondaryBorderColor=se(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=se(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.primaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,n,a,s,o,c,l,h,u,f,d,p,g,x,y,b,w,k,_;this.actorBorder=st(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||st(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||st(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=st(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||st(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||B(this["cScale"+C],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||B(this.mainBkg,{h:30,s:-30,l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||B(this.mainBkg,{h:30,s:-30,l:-(8+C*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||G(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||G(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||B(this.primaryColor,{l:-30}),this.pie5=this.pie5||B(this.secondaryColor,{l:-30}),this.pie6=this.pie6||B(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||B(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ta(this.quadrant1Fill)?G(this.quadrant1Fill):st(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((l=this.radar)==null?void 0:l.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((y=this.xyChart)==null?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((w=this.xyChart)==null?void 0:w.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((k=this.xyChart)==null?void 0:k.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)):(this.git0=st(this.git0,25),this.git1=st(this.git1,25),this.git2=st(this.git2,25),this.git3=st(this.git3,25),this.git4=st(this.git4,25),this.git5=st(this.git5,25),this.git6=st(this.git6,25),this.git7=st(this.git7,25)),this.gitInv0=this.gitInv0||Y(this.git0),this.gitInv1=this.gitInv1||Y(this.git1),this.gitInv2=this.gitInv2||Y(this.git2),this.gitInv3=this.gitInv3||Y(this.git3),this.gitInv4=this.gitInv4||Y(this.git4),this.gitInv5=this.gitInv5||Y(this.git5),this.gitInv6=this.gitInv6||Y(this.git6),this.gitInv7=this.gitInv7||Y(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Y(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Y(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Zs,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ks}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},m(Vn,"Theme"),Vn),v2=m(t=>{const e=new S2;return e.calculate(t),e},"getThemeVariables"),Zn,T2=(Zn=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=G(this.contrast,55),this.background="#ffffff",this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=se(this.primaryColor,this.darkMode),this.secondaryBorderColor=se(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=se(this.tertiaryColor,this.darkMode),this.primaryTextColor=Y(this.primaryColor),this.secondaryTextColor=Y(this.secondaryColor),this.tertiaryTextColor=Y(this.tertiaryColor),this.lineColor=Y(this.background),this.textColor=Y(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||G(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,i,n,a,s,o,c,l,h,u,f,d,p,g,x,y,b,w,k,_;this.secondBkg=G(this.contrast,55),this.border2=this.contrast,this.actorBorder=G(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||Y(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||G(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||st(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||B(this.mainBkg,{l:-(5+C*5)}),this["surfacePeer"+C]=this["surfacePeer"+C]||B(this.mainBkg,{l:-(8+C*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=G(this.contrast,30),this.sectionBkgColor2=G(this.contrast,30),this.taskBorderColor=st(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=G(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=st(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(this.secondaryColor,{h:128});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ta(this.quadrant1Fill)?G(this.quadrant1Fill):st(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((o=this.xyChart)==null?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((l=this.xyChart)==null?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((u=this.xyChart)==null?void 0:u.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((x=this.radar)==null?void 0:x.curveStrokeWidth)||2,graticuleColor:((y=this.radar)==null?void 0:y.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((b=this.radar)==null?void 0:b.graticuleStrokeWidth)||1,graticuleOpacity:((w=this.radar)==null?void 0:w.graticuleOpacity)||.3,legendBoxSize:((k=this.radar)==null?void 0:k.legendBoxSize)||12,legendFontSize:((_=this.radar)==null?void 0:_.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=st(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||B(this.primaryColor,{h:-30}),this.git4=this.pie5||B(this.primaryColor,{h:-60}),this.git5=this.pie6||B(this.primaryColor,{h:-90}),this.git6=this.pie7||B(this.primaryColor,{h:60}),this.git7=this.pie8||B(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Y(this.git0),this.gitInv1=this.gitInv1||Y(this.git1),this.gitInv2=this.gitInv2||Y(this.git2),this.gitInv3=this.gitInv3||Y(this.git3),this.gitInv4=this.gitInv4||Y(this.git4),this.gitInv5=this.gitInv5||Y(this.git5),this.gitInv6=this.gitInv6||Y(this.git6),this.gitInv7=this.gitInv7||Y(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Zs,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ks}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},m(Zn,"Theme"),Zn),A2=m(t=>{const e=new T2;return e.calculate(t),e},"getThemeVariables"),cr={base:{getThemeVariables:b2},dark:{getThemeVariables:w2},default:{getThemeVariables:k2},forest:{getThemeVariables:v2},neutral:{getThemeVariables:A2}},ze={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Vd={...ze,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:cr.default.getThemeVariables(),sequence:{...ze.sequence,messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:m(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:m(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...ze.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ze.c4,useWidth:void 0,personFont:m(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...ze.flowchart,inheritDir:!1},external_personFont:m(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:m(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:m(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:m(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:m(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:m(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:m(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:m(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:m(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:m(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:m(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:m(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:m(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:m(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:m(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:m(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:m(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:m(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:m(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:m(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ze.pie,useWidth:984},xyChart:{...ze.xyChart,useWidth:void 0},requirement:{...ze.requirement,useWidth:void 0},packet:{...ze.packet},radar:{...ze.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},Zd=m((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...Zd(t[i],"")]:[...r,e+i],[]),"keyify"),L2=new Set(Zd(Vd,"")),Kd=Vd,ts=m(t=>{if(P.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>ts(e));return}for(const e of Object.keys(t)){if(P.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!L2.has(e)||t[e]==null){P.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){P.debug("sanitizing object",e),ts(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)e.includes(i)&&(P.debug("sanitizing css option",e),t[e]=M2(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}P.debug("After sanitization",t)}},"sanitizeDirective"),M2=m(t=>{let e=0,r=0;for(const i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?e++:i==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),Li=Object.freeze(Kd),de=Rt({},Li),es,jr=[],Tn=Rt({},Li),Qs=m((t,e)=>{let r=Rt({},t),i={};for(const n of e)tp(n),i=Rt(i,n);if(r=Rt(r,i),i.theme&&i.theme in cr){const n=Rt({},es),a=Rt(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in cr&&(r.themeVariables=cr[r.theme].getThemeVariables(a))}return Tn=r,ep(Tn),Tn},"updateCurrentConfig"),E2=m(t=>(de=Rt({},Li),de=Rt(de,t),t.theme&&cr[t.theme]&&(de.themeVariables=cr[t.theme].getThemeVariables(t.themeVariables)),Qs(de,jr),de),"setSiteConfig"),B2=m(t=>{es=Rt({},t)},"saveConfigFromInitialize"),$2=m(t=>(de=Rt(de,t),Qs(de,jr),de),"updateSiteConfig"),Qd=m(()=>Rt({},de),"getSiteConfig"),Jd=m(t=>(ep(t),Rt(Tn,t),te()),"setConfig"),te=m(()=>Rt({},Tn),"getConfig"),tp=m(t=>{t&&(["secure",...de.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(P.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&tp(t[e])}))},"sanitize"),F2=m(t=>{var e;ts(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),jr.push(t),Qs(de,jr)},"addDirective"),rs=m((t=de)=>{jr=[],Qs(t,jr)},"reset"),D2={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Cu={},O2=m(t=>{Cu[t]||(P.warn(D2[t]),Cu[t]=!0)},"issueWarning"),ep=m(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&O2("LAZY_LOAD_DEPRECATED")},"checkConfig"),zI=m(()=>{let t={};es&&(t=Rt(t,es));for(const e of jr)t=Rt(t,e);return t},"getUserDefinedConfig"),ea=/<br\s*\/?>/gi,I2=m(t=>t?np(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),R2=(()=>{let t=!1;return()=>{t||(rp(),t=!0)}})();function rp(){const t="data-temp-href-target";Ai.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Ai.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}m(rp,"setupDompurifyHooks");var ip=m(t=>(R2(),Ai.sanitize(t)),"removeScript"),wu=m((t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){const i=e.securityLevel;i==="antiscript"||i==="strict"?t=ip(t):i!=="loose"&&(t=np(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=W2(t))}return t},"sanitizeMore"),ke=m((t,e)=>t&&(e.dompurifyConfig?t=Ai.sanitize(wu(t,e),e.dompurifyConfig).toString():t=Ai.sanitize(wu(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),P2=m((t,e)=>typeof t=="string"?ke(t,e):t.flat().map(r=>ke(r,e)),"sanitizeTextOrArray"),N2=m(t=>ea.test(t),"hasBreaks"),z2=m(t=>t.split(ea),"splitBreaks"),W2=m(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),np=m(t=>t.replace(ea,"#br#"),"breakToPlaceholder"),q2=m(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Nt=m(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),H2=m(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),Y2=m(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),_u=m(function(t){const e=t.split(/(,)/),r=[];for(let i=0;i<e.length;i++){let n=e[i];if(n===","&&i>0&&i+1<e.length){const a=e[i-1],s=e[i+1];U2(a,s)&&(n=a+","+s,i++,r.pop())}r.push(j2(n))}return r.join("")},"parseGenericTypes"),Tl=m((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),U2=m((t,e)=>{const r=Tl(t,"~"),i=Tl(e,"~");return r===1&&i===1},"shouldCombineSets"),j2=m(t=>{const e=Tl(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const i=[...t];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),ku=m(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Al=/\$\$(.*)\$\$/g,Mi=m(t=>{var e;return(((e=t.match(Al))==null?void 0:e.length)??0)>0},"hasKatex"),WI=m(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await Dc(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),X2=m(async(t,e)=>{if(!Mi(t))return t;if(!(ku()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Al,"MathML is unsupported in this environment.");{const{default:r}=await vt(()=>import("./katex-Cu_Erd72.js"),__vite__mapDeps([])),i=e.forceLegacyMathML||!ku()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(ea).map(n=>Mi(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(Al,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Dc=m(async(t,e)=>ke(await X2(t,e),e),"renderKatexSanitized"),Wi={getRows:I2,sanitizeText:ke,sanitizeTextOrArray:P2,hasBreaks:N2,splitBreaks:z2,lineBreakRegex:ea,removeScript:ip,getUrl:q2,evaluate:Nt,getMax:H2,getMin:Y2},G2=m(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),V2=m(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),ap=m(function(t,e,r,i){const n=V2(e,r,i);G2(t,n)},"configureSvgSize"),Z2=m(function(t,e,r,i){const n=e.node().getBBox(),a=n.width,s=n.height;P.info(`SVG bounds: ${a}x${s}`,n);let o=0,c=0;P.info(`Graph bounds: ${o}x${c}`,t),o=a+r*2,c=s+r*2,P.info(`Calculated bounds: ${o}x${c}`),ap(e,c,o,i);const l=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",l)},"setupGraphViewbox"),Pa={},K2=m((t,e,r)=>{let i="";return t in Pa&&Pa[t]?i=Pa[t](r):P.warn(`No theme found for ${t}`),` & {
17
+ font-family: ${r.fontFamily};
18
+ font-size: ${r.fontSize};
19
+ fill: ${r.textColor}
20
+ }
21
+ @keyframes edge-animation-frame {
22
+ from {
23
+ stroke-dashoffset: 0;
24
+ }
25
+ }
26
+ @keyframes dash {
27
+ to {
28
+ stroke-dashoffset: 0;
29
+ }
30
+ }
31
+ & .edge-animation-slow {
32
+ stroke-dasharray: 9,5 !important;
33
+ stroke-dashoffset: 900;
34
+ animation: dash 50s linear infinite;
35
+ stroke-linecap: round;
36
+ }
37
+ & .edge-animation-fast {
38
+ stroke-dasharray: 9,5 !important;
39
+ stroke-dashoffset: 900;
40
+ animation: dash 20s linear infinite;
41
+ stroke-linecap: round;
42
+ }
43
+ /* Classes common for multiple diagrams */
44
+
45
+ & .error-icon {
46
+ fill: ${r.errorBkgColor};
47
+ }
48
+ & .error-text {
49
+ fill: ${r.errorTextColor};
50
+ stroke: ${r.errorTextColor};
51
+ }
52
+
53
+ & .edge-thickness-normal {
54
+ stroke-width: 1px;
55
+ }
56
+ & .edge-thickness-thick {
57
+ stroke-width: 3.5px
58
+ }
59
+ & .edge-pattern-solid {
60
+ stroke-dasharray: 0;
61
+ }
62
+ & .edge-thickness-invisible {
63
+ stroke-width: 0;
64
+ fill: none;
65
+ }
66
+ & .edge-pattern-dashed{
67
+ stroke-dasharray: 3;
68
+ }
69
+ .edge-pattern-dotted {
70
+ stroke-dasharray: 2;
71
+ }
72
+
73
+ & .marker {
74
+ fill: ${r.lineColor};
75
+ stroke: ${r.lineColor};
76
+ }
77
+ & .marker.cross {
78
+ stroke: ${r.lineColor};
79
+ }
80
+
81
+ & svg {
82
+ font-family: ${r.fontFamily};
83
+ font-size: ${r.fontSize};
84
+ }
85
+ & p {
86
+ margin: 0
87
+ }
88
+
89
+ ${i}
90
+
91
+ ${e}
92
+ `},"getStyles"),Q2=m((t,e)=>{e!==void 0&&(Pa[t]=e)},"addStylesForDiagram"),J2=K2,sp={};W1(sp,{clear:()=>tC,getAccDescription:()=>nC,getAccTitle:()=>rC,getDiagramTitle:()=>sC,setAccDescription:()=>iC,setAccTitle:()=>eC,setDiagramTitle:()=>aC});var Oc="",Ic="",Rc="",Pc=m(t=>ke(t,te()),"sanitizeText"),tC=m(()=>{Oc="",Rc="",Ic=""},"clear"),eC=m(t=>{Oc=Pc(t).replace(/^\s+/g,"")},"setAccTitle"),rC=m(()=>Oc,"getAccTitle"),iC=m(t=>{Rc=Pc(t).replace(/\n\s+/g,`
93
+ `)},"setAccDescription"),nC=m(()=>Rc,"getAccDescription"),aC=m(t=>{Ic=Pc(t)},"setDiagramTitle"),sC=m(()=>Ic,"getDiagramTitle"),Su=P,oC=$c,kt=te,qI=Jd,HI=Li,Nc=m(t=>ke(t,kt()),"sanitizeText"),lC=Z2,cC=m(()=>sp,"getCommonDb"),is={},ns=m((t,e,r)=>{var i;is[t]&&Su.warn(`Diagram with id ${t} already registered. Overwriting.`),is[t]=e,r&&Gd(t,r),Q2(t,e.styles),(i=e.injectUtils)==null||i.call(e,Su,oC,kt,Nc,lC,cC(),()=>{})},"registerDiagram"),Ll=m(t=>{if(t in is)return is[t];throw new hC(t)},"getDiagram"),Kn,hC=(Kn=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},m(Kn,"DiagramNotFoundError"),Kn);function Na(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uC(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function zc(t){let e,r,i;t.length!==2?(e=Na,r=(o,c)=>Na(t(o),c),i=(o,c)=>t(o)-c):(e=t===Na||t===uC?t:fC,r=t,i=t);function n(o,c,l=0,h=o.length){if(l<h){if(e(c,c)!==0)return h;do{const u=l+h>>>1;r(o[u],c)<0?l=u+1:h=u}while(l<h)}return l}function a(o,c,l=0,h=o.length){if(l<h){if(e(c,c)!==0)return h;do{const u=l+h>>>1;r(o[u],c)<=0?l=u+1:h=u}while(l<h)}return l}function s(o,c,l=0,h=o.length){const u=n(o,c,l,h-1);return u>l&&i(o[u-1],c)>-i(o[u],c)?u-1:u}return{left:n,center:s,right:a}}function fC(){return 0}function dC(t){return t===null?NaN:+t}const pC=zc(Na),gC=pC.right;zc(dC).center;class vu extends Map{constructor(e,r=xC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[i,n]of e)this.set(i,n)}get(e){return super.get(Tu(this,e))}has(e){return super.has(Tu(this,e))}set(e,r){return super.set(mC(this,e),r)}delete(e){return super.delete(yC(this,e))}}function Tu({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):r}function mC({_intern:t,_key:e},r){const i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function yC({_intern:t,_key:e},r){const i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function xC(t){return t!==null&&typeof t=="object"?t.valueOf():t}const bC=Math.sqrt(50),CC=Math.sqrt(10),wC=Math.sqrt(2);function as(t,e,r){const i=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(i)),a=i/Math.pow(10,n),s=a>=bC?10:a>=CC?5:a>=wC?2:1;let o,c,l;return n<0?(l=Math.pow(10,-n)/s,o=Math.round(t*l),c=Math.round(e*l),o/l<t&&++o,c/l>e&&--c,l=-l):(l=Math.pow(10,n)*s,o=Math.round(t/l),c=Math.round(e/l),o*l<t&&++o,c*l>e&&--c),c<o&&.5<=r&&r<2?as(t,e,r*2):[o,c,l]}function _C(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const i=e<t,[n,a,s]=i?as(e,t,r):as(t,e,r);if(!(a>=n))return[];const o=a-n+1,c=new Array(o);if(i)if(s<0)for(let l=0;l<o;++l)c[l]=(a-l)/-s;else for(let l=0;l<o;++l)c[l]=(a-l)*s;else if(s<0)for(let l=0;l<o;++l)c[l]=(n+l)/-s;else for(let l=0;l<o;++l)c[l]=(n+l)*s;return c}function Ml(t,e,r){return e=+e,t=+t,r=+r,as(t,e,r)[2]}function El(t,e,r){e=+e,t=+t,r=+r;const i=e<t,n=i?Ml(e,t,r):Ml(t,e,r);return(i?-1:1)*(n<0?1/-n:n)}function YI(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function UI(t,e){let r;if(e===void 0)for(const i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function kC(t,e,r){t=+t,e=+e,r=(n=arguments.length)<2?(e=t,t=0,1):n<3?1:+r;for(var i=-1,n=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(n);++i<n;)a[i]=t+i*r;return a}function SC(t){return t}var za=1,Ho=2,Bl=3,wa=4,Au=1e-6;function vC(t){return"translate("+t+",0)"}function TC(t){return"translate(0,"+t+")"}function AC(t){return e=>+t(e)}function LC(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function MC(){return!this.__axis}function op(t,e){var r=[],i=null,n=null,a=6,s=6,o=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=t===za||t===wa?-1:1,h=t===wa||t===Ho?"x":"y",u=t===za||t===Bl?vC:TC;function f(d){var p=i??(e.ticks?e.ticks.apply(e,r):e.domain()),g=n??(e.tickFormat?e.tickFormat.apply(e,r):SC),x=Math.max(a,0)+o,y=e.range(),b=+y[0]+c,w=+y[y.length-1]+c,k=(e.bandwidth?LC:AC)(e.copy(),c),_=d.selection?d.selection():d,C=_.selectAll(".domain").data([null]),S=_.selectAll(".tick").data(p,e).order(),F=S.exit(),I=S.enter().append("g").attr("class","tick"),O=S.select("line"),A=S.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(I),O=O.merge(I.append("line").attr("stroke","currentColor").attr(h+"2",l*a)),A=A.merge(I.append("text").attr("fill","currentColor").attr(h,l*x).attr("dy",t===za?"0em":t===Bl?"0.71em":"0.32em")),d!==_&&(C=C.transition(d),S=S.transition(d),O=O.transition(d),A=A.transition(d),F=F.transition(d).attr("opacity",Au).attr("transform",function(N){return isFinite(N=k(N))?u(N+c):this.getAttribute("transform")}),I.attr("opacity",Au).attr("transform",function(N){var $=this.parentNode.__axis;return u(($&&isFinite($=$(N))?$:k(N))+c)})),F.remove(),C.attr("d",t===wa||t===Ho?s?"M"+l*s+","+b+"H"+c+"V"+w+"H"+l*s:"M"+c+","+b+"V"+w:s?"M"+b+","+l*s+"V"+c+"H"+w+"V"+l*s:"M"+b+","+c+"H"+w),S.attr("opacity",1).attr("transform",function(N){return u(k(N)+c)}),O.attr(h+"2",l*a),A.attr(h,l*x).text(g),_.filter(MC).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ho?"start":t===wa?"end":"middle"),_.each(function(){this.__axis=k})}return f.scale=function(d){return arguments.length?(e=d,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(d){return arguments.length?(r=d==null?[]:Array.from(d),f):r.slice()},f.tickValues=function(d){return arguments.length?(i=d==null?null:Array.from(d),f):i&&i.slice()},f.tickFormat=function(d){return arguments.length?(n=d,f):n},f.tickSize=function(d){return arguments.length?(a=s=+d,f):a},f.tickSizeInner=function(d){return arguments.length?(a=+d,f):a},f.tickSizeOuter=function(d){return arguments.length?(s=+d,f):s},f.tickPadding=function(d){return arguments.length?(o=+d,f):o},f.offset=function(d){return arguments.length?(c=+d,f):c},f}function jI(t){return op(za,t)}function XI(t){return op(Bl,t)}var EC={value:()=>{}};function lp(){for(var t=0,e=arguments.length,r={},i;t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Wa(r)}function Wa(t){this._=t}function BC(t,e){return t.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Wa.prototype=lp.prototype={constructor:Wa,on:function(t,e){var r=this._,i=BC(t+"",r),n,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(t=i[a]).type)&&(n=$C(r[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=i[a]).type)r[n]=Lu(r[n],t.name,e);else if(e==null)for(n in r)r[n]=Lu(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Wa(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],i=0,n=a.length;i<n;++i)a[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],n=0,a=i.length;n<a;++n)i[n].value.apply(e,r)}};function $C(t,e){for(var r=0,i=t.length,n;r<i;++r)if((n=t[r]).name===e)return n.value}function Lu(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=EC,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:e,value:r}),t}var $l="http://www.w3.org/1999/xhtml";const Mu={svg:"http://www.w3.org/2000/svg",xhtml:$l,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Js(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Mu.hasOwnProperty(e)?{space:Mu[e],local:t}:t}function FC(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===$l&&e.documentElement.namespaceURI===$l?e.createElement(t):e.createElementNS(r,t)}}function DC(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function cp(t){var e=Js(t);return(e.local?DC:FC)(e)}function OC(){}function Wc(t){return t==null?OC:function(){return this.querySelector(t)}}function IC(t){typeof t!="function"&&(t=Wc(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var a=e[n],s=a.length,o=i[n]=new Array(s),c,l,h=0;h<s;++h)(c=a[h])&&(l=t.call(c,c.__data__,h,a))&&("__data__"in c&&(l.__data__=c.__data__),o[h]=l);return new xe(i,this._parents)}function RC(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function PC(){return[]}function hp(t){return t==null?PC:function(){return this.querySelectorAll(t)}}function NC(t){return function(){return RC(t.apply(this,arguments))}}function zC(t){typeof t=="function"?t=NC(t):t=hp(t);for(var e=this._groups,r=e.length,i=[],n=[],a=0;a<r;++a)for(var s=e[a],o=s.length,c,l=0;l<o;++l)(c=s[l])&&(i.push(t.call(c,c.__data__,l,s)),n.push(c));return new xe(i,n)}function up(t){return function(){return this.matches(t)}}function fp(t){return function(e){return e.matches(t)}}var WC=Array.prototype.find;function qC(t){return function(){return WC.call(this.children,t)}}function HC(){return this.firstElementChild}function YC(t){return this.select(t==null?HC:qC(typeof t=="function"?t:fp(t)))}var UC=Array.prototype.filter;function jC(){return Array.from(this.children)}function XC(t){return function(){return UC.call(this.children,t)}}function GC(t){return this.selectAll(t==null?jC:XC(typeof t=="function"?t:fp(t)))}function VC(t){typeof t!="function"&&(t=up(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var a=e[n],s=a.length,o=i[n]=[],c,l=0;l<s;++l)(c=a[l])&&t.call(c,c.__data__,l,a)&&o.push(c);return new xe(i,this._parents)}function dp(t){return new Array(t.length)}function ZC(){return new xe(this._enter||this._groups.map(dp),this._parents)}function ss(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ss.prototype={constructor:ss,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function KC(t){return function(){return t}}function QC(t,e,r,i,n,a){for(var s=0,o,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],i[s]=o):r[s]=new ss(t,a[s]);for(;s<c;++s)(o=e[s])&&(n[s]=o)}function JC(t,e,r,i,n,a,s){var o,c,l=new Map,h=e.length,u=a.length,f=new Array(h),d;for(o=0;o<h;++o)(c=e[o])&&(f[o]=d=s.call(c,c.__data__,o,e)+"",l.has(d)?n[o]=c:l.set(d,c));for(o=0;o<u;++o)d=s.call(t,a[o],o,a)+"",(c=l.get(d))?(i[o]=c,c.__data__=a[o],l.delete(d)):r[o]=new ss(t,a[o]);for(o=0;o<h;++o)(c=e[o])&&l.get(f[o])===c&&(n[o]=c)}function tw(t){return t.__data__}function ew(t,e){if(!arguments.length)return Array.from(this,tw);var r=e?JC:QC,i=this._parents,n=this._groups;typeof t!="function"&&(t=KC(t));for(var a=n.length,s=new Array(a),o=new Array(a),c=new Array(a),l=0;l<a;++l){var h=i[l],u=n[l],f=u.length,d=rw(t.call(h,h&&h.__data__,l,i)),p=d.length,g=o[l]=new Array(p),x=s[l]=new Array(p),y=c[l]=new Array(f);r(h,u,g,x,y,d,e);for(var b=0,w=0,k,_;b<p;++b)if(k=g[b]){for(b>=w&&(w=b+1);!(_=x[w])&&++w<p;);k._next=_||null}}return s=new xe(s,i),s._enter=o,s._exit=c,s}function rw(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function iw(){return new xe(this._exit||this._groups.map(dp),this._parents)}function nw(t,e,r){var i=this.enter(),n=this,a=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function aw(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,a=i.length,s=Math.min(n,a),o=new Array(n),c=0;c<s;++c)for(var l=r[c],h=i[c],u=l.length,f=o[c]=new Array(u),d,p=0;p<u;++p)(d=l[p]||h[p])&&(f[p]=d);for(;c<n;++c)o[c]=r[c];return new xe(o,this._parents)}function sw(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i=t[e],n=i.length-1,a=i[n],s;--n>=0;)(s=i[n])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function ow(t){t||(t=lw);function e(u,f){return u&&f?t(u.__data__,f.__data__):!u-!f}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var s=r[a],o=s.length,c=n[a]=new Array(o),l,h=0;h<o;++h)(l=s[h])&&(c[h]=l);c.sort(e)}return new xe(n,this._parents).order()}function lw(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function cw(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function hw(){return Array.from(this)}function uw(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,a=i.length;n<a;++n){var s=i[n];if(s)return s}return null}function fw(){let t=0;for(const e of this)++t;return t}function dw(){return!this.node()}function pw(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n=e[r],a=0,s=n.length,o;a<s;++a)(o=n[a])&&t.call(o,o.__data__,a,n);return this}function gw(t){return function(){this.removeAttribute(t)}}function mw(t){return function(){this.removeAttributeNS(t.space,t.local)}}function yw(t,e){return function(){this.setAttribute(t,e)}}function xw(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function bw(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Cw(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function ww(t,e){var r=Js(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?mw:gw:typeof e=="function"?r.local?Cw:bw:r.local?xw:yw)(r,e))}function pp(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _w(t){return function(){this.style.removeProperty(t)}}function kw(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Sw(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function vw(t,e,r){return arguments.length>1?this.each((e==null?_w:typeof e=="function"?Sw:kw)(t,e,r??"")):Ei(this.node(),t)}function Ei(t,e){return t.style.getPropertyValue(e)||pp(t).getComputedStyle(t,null).getPropertyValue(e)}function Tw(t){return function(){delete this[t]}}function Aw(t,e){return function(){this[t]=e}}function Lw(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Mw(t,e){return arguments.length>1?this.each((e==null?Tw:typeof e=="function"?Lw:Aw)(t,e)):this.node()[t]}function gp(t){return t.trim().split(/^|\s+/)}function qc(t){return t.classList||new mp(t)}function mp(t){this._node=t,this._names=gp(t.getAttribute("class")||"")}mp.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function yp(t,e){for(var r=qc(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function xp(t,e){for(var r=qc(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function Ew(t){return function(){yp(this,t)}}function Bw(t){return function(){xp(this,t)}}function $w(t,e){return function(){(e.apply(this,arguments)?yp:xp)(this,t)}}function Fw(t,e){var r=gp(t+"");if(arguments.length<2){for(var i=qc(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof e=="function"?$w:e?Ew:Bw)(r,e))}function Dw(){this.textContent=""}function Ow(t){return function(){this.textContent=t}}function Iw(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Rw(t){return arguments.length?this.each(t==null?Dw:(typeof t=="function"?Iw:Ow)(t)):this.node().textContent}function Pw(){this.innerHTML=""}function Nw(t){return function(){this.innerHTML=t}}function zw(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ww(t){return arguments.length?this.each(t==null?Pw:(typeof t=="function"?zw:Nw)(t)):this.node().innerHTML}function qw(){this.nextSibling&&this.parentNode.appendChild(this)}function Hw(){return this.each(qw)}function Yw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Uw(){return this.each(Yw)}function jw(t){var e=typeof t=="function"?t:cp(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Xw(){return null}function Gw(t,e){var r=typeof t=="function"?t:cp(t),i=e==null?Xw:typeof e=="function"?e:Wc(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Vw(){var t=this.parentNode;t&&t.removeChild(this)}function Zw(){return this.each(Vw)}function Kw(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qw(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Jw(t){return this.select(t?Qw:Kw)}function t_(t){return arguments.length?this.property("__data__",t):this.node().__data__}function e_(t){return function(e){t.call(this,e,this.__data__)}}function r_(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function i_(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,n=e.length,a;r<n;++r)a=e[r],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++i]=a;++i?e.length=i:delete this.__on}}}function n_(t,e,r){return function(){var i=this.__on,n,a=e_(e);if(i){for(var s=0,o=i.length;s<o;++s)if((n=i[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=e;return}}this.addEventListener(t.type,a,r),n={type:t.type,name:t.name,value:e,listener:a,options:r},i?i.push(n):this.__on=[n]}}function a_(t,e,r){var i=r_(t+""),n,a=i.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var c=0,l=o.length,h;c<l;++c)for(n=0,h=o[c];n<a;++n)if((s=i[n]).type===h.type&&s.name===h.name)return h.value}return}for(o=e?n_:i_,n=0;n<a;++n)this.each(o(i[n],e,r));return this}function bp(t,e,r){var i=pp(t),n=i.CustomEvent;typeof n=="function"?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function s_(t,e){return function(){return bp(this,t,e)}}function o_(t,e){return function(){return bp(this,t,e.apply(this,arguments))}}function l_(t,e){return this.each((typeof e=="function"?o_:s_)(t,e))}function*c_(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,a=i.length,s;n<a;++n)(s=i[n])&&(yield s)}var Cp=[null];function xe(t,e){this._groups=t,this._parents=e}function ra(){return new xe([[document.documentElement]],Cp)}function h_(){return this}xe.prototype=ra.prototype={constructor:xe,select:IC,selectAll:zC,selectChild:YC,selectChildren:GC,filter:VC,data:ew,enter:ZC,exit:iw,join:nw,merge:aw,selection:h_,order:sw,sort:ow,call:cw,nodes:hw,node:uw,size:fw,empty:dw,each:pw,attr:ww,style:vw,property:Mw,classed:Fw,text:Rw,html:Ww,raise:Hw,lower:Uw,append:jw,insert:Gw,remove:Zw,clone:Jw,datum:t_,on:a_,dispatch:l_,[Symbol.iterator]:c_};function bt(t){return typeof t=="string"?new xe([[document.querySelector(t)]],[document.documentElement]):new xe([[t]],Cp)}function ia(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function to(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function ei(){}var Bn=.7,os=1/Bn,ki="\\s*([+-]?\\d+)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u_=/^#([0-9a-f]{3,8})$/,f_=new RegExp(`^rgb\\(${ki},${ki},${ki}\\)$`),d_=new RegExp(`^rgb\\(${Xe},${Xe},${Xe}\\)$`),p_=new RegExp(`^rgba\\(${ki},${ki},${ki},${$n}\\)$`),g_=new RegExp(`^rgba\\(${Xe},${Xe},${Xe},${$n}\\)$`),m_=new RegExp(`^hsl\\(${$n},${Xe},${Xe}\\)$`),y_=new RegExp(`^hsla\\(${$n},${Xe},${Xe},${$n}\\)$`),Eu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ia(ei,Xr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Bu,formatHex:Bu,formatHex8:x_,formatHsl:b_,formatRgb:$u,toString:$u});function Bu(){return this.rgb().formatHex()}function x_(){return this.rgb().formatHex8()}function b_(){return _p(this).formatHsl()}function $u(){return this.rgb().formatRgb()}function Xr(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=u_.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Fu(e):r===3?new Jt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?_a(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?_a(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=f_.exec(t))?new Jt(e[1],e[2],e[3],1):(e=d_.exec(t))?new Jt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=p_.exec(t))?_a(e[1],e[2],e[3],e[4]):(e=g_.exec(t))?_a(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=m_.exec(t))?Iu(e[1],e[2]/100,e[3]/100,1):(e=y_.exec(t))?Iu(e[1],e[2]/100,e[3]/100,e[4]):Eu.hasOwnProperty(t)?Fu(Eu[t]):t==="transparent"?new Jt(NaN,NaN,NaN,0):null}function Fu(t){return new Jt(t>>16&255,t>>8&255,t&255,1)}function _a(t,e,r,i){return i<=0&&(t=e=r=NaN),new Jt(t,e,r,i)}function wp(t){return t instanceof ei||(t=Xr(t)),t?(t=t.rgb(),new Jt(t.r,t.g,t.b,t.opacity)):new Jt}function Fl(t,e,r,i){return arguments.length===1?wp(t):new Jt(t,e,r,i??1)}function Jt(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}ia(Jt,Fl,to(ei,{brighter(t){return t=t==null?os:Math.pow(os,t),new Jt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Bn:Math.pow(Bn,t),new Jt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Jt(Yr(this.r),Yr(this.g),Yr(this.b),ls(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Du,formatHex:Du,formatHex8:C_,formatRgb:Ou,toString:Ou}));function Du(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}`}function C_(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}${Rr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ou(){const t=ls(this.opacity);return`${t===1?"rgb(":"rgba("}${Yr(this.r)}, ${Yr(this.g)}, ${Yr(this.b)}${t===1?")":`, ${t})`}`}function ls(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Yr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Rr(t){return t=Yr(t),(t<16?"0":"")+t.toString(16)}function Iu(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new $e(t,e,r,i)}function _p(t){if(t instanceof $e)return new $e(t.h,t.s,t.l,t.opacity);if(t instanceof ei||(t=Xr(t)),!t)return new $e;if(t instanceof $e)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),a=Math.max(e,r,i),s=NaN,o=a-n,c=(a+n)/2;return o?(e===a?s=(r-i)/o+(r<i)*6:r===a?s=(i-e)/o+2:s=(e-r)/o+4,o/=c<.5?a+n:2-a-n,s*=60):o=c>0&&c<1?0:s,new $e(s,o,c,t.opacity)}function w_(t,e,r,i){return arguments.length===1?_p(t):new $e(t,e,r,i??1)}function $e(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}ia($e,w_,to(ei,{brighter(t){return t=t==null?os:Math.pow(os,t),new $e(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Bn:Math.pow(Bn,t),new $e(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new Jt(Yo(t>=240?t-240:t+120,n,i),Yo(t,n,i),Yo(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new $e(Ru(this.h),ka(this.s),ka(this.l),ls(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ls(this.opacity);return`${t===1?"hsl(":"hsla("}${Ru(this.h)}, ${ka(this.s)*100}%, ${ka(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ru(t){return t=(t||0)%360,t<0?t+360:t}function ka(t){return Math.max(0,Math.min(1,t||0))}function Yo(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const __=Math.PI/180,k_=180/Math.PI,cs=18,kp=.96422,Sp=1,vp=.82521,Tp=4/29,Si=6/29,Ap=3*Si*Si,S_=Si*Si*Si;function Lp(t){if(t instanceof Ge)return new Ge(t.l,t.a,t.b,t.opacity);if(t instanceof sr)return Mp(t);t instanceof Jt||(t=wp(t));var e=Go(t.r),r=Go(t.g),i=Go(t.b),n=Uo((.2225045*e+.7168786*r+.0606169*i)/Sp),a,s;return e===r&&r===i?a=s=n:(a=Uo((.4360747*e+.3850649*r+.1430804*i)/kp),s=Uo((.0139322*e+.0971045*r+.7141733*i)/vp)),new Ge(116*n-16,500*(a-n),200*(n-s),t.opacity)}function v_(t,e,r,i){return arguments.length===1?Lp(t):new Ge(t,e,r,i??1)}function Ge(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}ia(Ge,v_,to(ei,{brighter(t){return new Ge(this.l+cs*(t??1),this.a,this.b,this.opacity)},darker(t){return new Ge(this.l-cs*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=kp*jo(e),t=Sp*jo(t),r=vp*jo(r),new Jt(Xo(3.1338561*e-1.6168667*t-.4906146*r),Xo(-.9787684*e+1.9161415*t+.033454*r),Xo(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function Uo(t){return t>S_?Math.pow(t,1/3):t/Ap+Tp}function jo(t){return t>Si?t*t*t:Ap*(t-Tp)}function Xo(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Go(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function T_(t){if(t instanceof sr)return new sr(t.h,t.c,t.l,t.opacity);if(t instanceof Ge||(t=Lp(t)),t.a===0&&t.b===0)return new sr(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*k_;return new sr(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Dl(t,e,r,i){return arguments.length===1?T_(t):new sr(t,e,r,i??1)}function sr(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function Mp(t){if(isNaN(t.h))return new Ge(t.l,0,0,t.opacity);var e=t.h*__;return new Ge(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ia(sr,Dl,to(ei,{brighter(t){return new sr(this.h,this.c,this.l+cs*(t??1),this.opacity)},darker(t){return new sr(this.h,this.c,this.l-cs*(t??1),this.opacity)},rgb(){return Mp(this).rgb()}}));const eo=t=>()=>t;function Ep(t,e){return function(r){return t+r*e}}function A_(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function L_(t,e){var r=e-t;return r?Ep(t,r>180||r<-180?r-360*Math.round(r/360):r):eo(isNaN(t)?e:t)}function M_(t){return(t=+t)==1?An:function(e,r){return r-e?A_(e,r,t):eo(isNaN(e)?r:e)}}function An(t,e){var r=e-t;return r?Ep(t,r):eo(isNaN(t)?e:t)}const hs=function t(e){var r=M_(e);function i(n,a){var s=r((n=Fl(n)).r,(a=Fl(a)).r),o=r(n.g,a.g),c=r(n.b,a.b),l=An(n.opacity,a.opacity);return function(h){return n.r=s(h),n.g=o(h),n.b=c(h),n.opacity=l(h),n+""}}return i.gamma=t,i}(1);function E_(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),n;return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function B_(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function $_(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,n=new Array(i),a=new Array(r),s;for(s=0;s<i;++s)n[s]=Hc(t[s],e[s]);for(;s<r;++s)a[s]=e[s];return function(o){for(s=0;s<i;++s)a[s]=n[s](o);return a}}function F_(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}function Me(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function D_(t,e){var r={},i={},n;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(n in e)n in t?r[n]=Hc(t[n],e[n]):i[n]=e[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var Ol=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vo=new RegExp(Ol.source,"g");function O_(t){return function(){return t}}function I_(t){return function(e){return t(e)+""}}function Bp(t,e){var r=Ol.lastIndex=Vo.lastIndex=0,i,n,a,s=-1,o=[],c=[];for(t=t+"",e=e+"";(i=Ol.exec(t))&&(n=Vo.exec(e));)(a=n.index)>r&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(i=i[0])===(n=n[0])?o[s]?o[s]+=n:o[++s]=n:(o[++s]=null,c.push({i:s,x:Me(i,n)})),r=Vo.lastIndex;return r<e.length&&(a=e.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?c[0]?I_(c[0].x):O_(e):(e=c.length,function(l){for(var h=0,u;h<e;++h)o[(u=c[h]).i]=u.x(l);return o.join("")})}function Hc(t,e){var r=typeof e,i;return e==null||r==="boolean"?eo(e):(r==="number"?Me:r==="string"?(i=Xr(e))?(e=i,hs):Bp:e instanceof Xr?hs:e instanceof Date?F_:B_(e)?E_:Array.isArray(e)?$_:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?D_:Me)(t,e)}function R_(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var Pu=180/Math.PI,Il={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $p(t,e,r,i,n,a){var s,o,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*r+e*i)&&(r-=t*c,i-=e*c),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,c/=o),t*i<e*r&&(t=-t,e=-e,c=-c,s=-s),{translateX:n,translateY:a,rotate:Math.atan2(e,t)*Pu,skewX:Math.atan(c)*Pu,scaleX:s,scaleY:o}}var Sa;function P_(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Il:$p(e.a,e.b,e.c,e.d,e.e,e.f)}function N_(t){return t==null||(Sa||(Sa=document.createElementNS("http://www.w3.org/2000/svg","g")),Sa.setAttribute("transform",t),!(t=Sa.transform.baseVal.consolidate()))?Il:(t=t.matrix,$p(t.a,t.b,t.c,t.d,t.e,t.f))}function Fp(t,e,r,i){function n(l){return l.length?l.pop()+" ":""}function a(l,h,u,f,d,p){if(l!==u||h!==f){var g=d.push("translate(",null,e,null,r);p.push({i:g-4,x:Me(l,u)},{i:g-2,x:Me(h,f)})}else(u||f)&&d.push("translate("+u+e+f+r)}function s(l,h,u,f){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),f.push({i:u.push(n(u)+"rotate(",null,i)-2,x:Me(l,h)})):h&&u.push(n(u)+"rotate("+h+i)}function o(l,h,u,f){l!==h?f.push({i:u.push(n(u)+"skewX(",null,i)-2,x:Me(l,h)}):h&&u.push(n(u)+"skewX("+h+i)}function c(l,h,u,f,d,p){if(l!==u||h!==f){var g=d.push(n(d)+"scale(",null,",",null,")");p.push({i:g-4,x:Me(l,u)},{i:g-2,x:Me(h,f)})}else(u!==1||f!==1)&&d.push(n(d)+"scale("+u+","+f+")")}return function(l,h){var u=[],f=[];return l=t(l),h=t(h),a(l.translateX,l.translateY,h.translateX,h.translateY,u,f),s(l.rotate,h.rotate,u,f),o(l.skewX,h.skewX,u,f),c(l.scaleX,l.scaleY,h.scaleX,h.scaleY,u,f),l=h=null,function(d){for(var p=-1,g=f.length,x;++p<g;)u[(x=f[p]).i]=x.x(d);return u.join("")}}}var z_=Fp(P_,"px, ","px)","deg)"),W_=Fp(N_,", ",")",")");function q_(t){return function(e,r){var i=t((e=Dl(e)).h,(r=Dl(r)).h),n=An(e.c,r.c),a=An(e.l,r.l),s=An(e.opacity,r.opacity);return function(o){return e.h=i(o),e.c=n(o),e.l=a(o),e.opacity=s(o),e+""}}}const GI=q_(L_);var Bi=0,pn=0,tn=0,Dp=1e3,us,gn,fs=0,Gr=0,ro=0,Fn=typeof performance=="object"&&performance.now?performance:Date,Op=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Yc(){return Gr||(Op(H_),Gr=Fn.now()+ro)}function H_(){Gr=0}function ds(){this._call=this._time=this._next=null}ds.prototype=Ip.prototype={constructor:ds,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Yc():+r)+(e==null?0:+e),!this._next&&gn!==this&&(gn?gn._next=this:us=this,gn=this),this._call=t,this._time=r,Rl()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rl())}};function Ip(t,e,r){var i=new ds;return i.restart(t,e,r),i}function Y_(){Yc(),++Bi;for(var t=us,e;t;)(e=Gr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Bi}function Nu(){Gr=(fs=Fn.now())+ro,Bi=pn=0;try{Y_()}finally{Bi=0,j_(),Gr=0}}function U_(){var t=Fn.now(),e=t-fs;e>Dp&&(ro-=e,fs=t)}function j_(){for(var t,e=us,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:us=r);gn=t,Rl(i)}function Rl(t){if(!Bi){pn&&(pn=clearTimeout(pn));var e=t-Gr;e>24?(t<1/0&&(pn=setTimeout(Nu,t-Fn.now()-ro)),tn&&(tn=clearInterval(tn))):(tn||(fs=Fn.now(),tn=setInterval(U_,Dp)),Bi=1,Op(Nu))}}function zu(t,e,r){var i=new ds;return e=e==null?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,r),i}var X_=lp("start","end","cancel","interrupt"),G_=[],Rp=0,Wu=1,Pl=2,qa=3,qu=4,Nl=5,Ha=6;function io(t,e,r,i,n,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;V_(t,r,{name:e,index:i,group:n,on:X_,tween:G_,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Rp})}function Uc(t,e){var r=Re(t,e);if(r.state>Rp)throw new Error("too late; already scheduled");return r}function Ze(t,e){var r=Re(t,e);if(r.state>qa)throw new Error("too late; already running");return r}function Re(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function V_(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=Ip(a,0,r.time);function a(l){r.state=Wu,r.timer.restart(s,r.delay,r.time),r.delay<=l&&s(l-r.delay)}function s(l){var h,u,f,d;if(r.state!==Wu)return c();for(h in i)if(d=i[h],d.name===r.name){if(d.state===qa)return zu(s);d.state===qu?(d.state=Ha,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[h]):+h<e&&(d.state=Ha,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[h])}if(zu(function(){r.state===qa&&(r.state=qu,r.timer.restart(o,r.delay,r.time),o(l))}),r.state=Pl,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Pl){for(r.state=qa,n=new Array(f=r.tween.length),h=0,u=-1;h<f;++h)(d=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function o(l){for(var h=l<r.duration?r.ease.call(null,l/r.duration):(r.timer.restart(c),r.state=Nl,1),u=-1,f=n.length;++u<f;)n[u].call(t,h);r.state===Nl&&(r.on.call("end",t,t.__data__,r.index,r.group),c())}function c(){r.state=Ha,r.timer.stop(),delete i[e];for(var l in i)return;delete t.__transition}}function Z_(t,e){var r=t.__transition,i,n,a=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((i=r[s]).name!==e){a=!1;continue}n=i.state>Pl&&i.state<Nl,i.state=Ha,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[s]}a&&delete t.__transition}}function K_(t){return this.each(function(){Z_(this,t)})}function Q_(t,e){var r,i;return function(){var n=Ze(this,t),a=n.tween;if(a!==r){i=r=a;for(var s=0,o=i.length;s<o;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}n.tween=i}}function J_(t,e,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=Ze(this,t),s=a.tween;if(s!==i){n=(i=s).slice();for(var o={name:e,value:r},c=0,l=n.length;c<l;++c)if(n[c].name===e){n[c]=o;break}c===l&&n.push(o)}a.tween=n}}function tk(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i=Re(this.node(),r).tween,n=0,a=i.length,s;n<a;++n)if((s=i[n]).name===t)return s.value;return null}return this.each((e==null?Q_:J_)(r,t,e))}function jc(t,e,r){var i=t._id;return t.each(function(){var n=Ze(this,i);(n.value||(n.value={}))[e]=r.apply(this,arguments)}),function(n){return Re(n,i).value[e]}}function Pp(t,e){var r;return(typeof e=="number"?Me:e instanceof Xr?hs:(r=Xr(e))?(e=r,hs):Bp)(t,e)}function ek(t){return function(){this.removeAttribute(t)}}function rk(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ik(t,e,r){var i,n=r+"",a;return function(){var s=this.getAttribute(t);return s===n?null:s===i?a:a=e(i=s,r)}}function nk(t,e,r){var i,n=r+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===i?a:a=e(i=s,r)}}function ak(t,e,r){var i,n,a;return function(){var s,o=r(this),c;return o==null?void this.removeAttribute(t):(s=this.getAttribute(t),c=o+"",s===c?null:s===i&&c===n?a:(n=c,a=e(i=s,o)))}}function sk(t,e,r){var i,n,a;return function(){var s,o=r(this),c;return o==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),c=o+"",s===c?null:s===i&&c===n?a:(n=c,a=e(i=s,o)))}}function ok(t,e){var r=Js(t),i=r==="transform"?W_:Pp;return this.attrTween(t,typeof e=="function"?(r.local?sk:ak)(r,i,jc(this,"attr."+t,e)):e==null?(r.local?rk:ek)(r):(r.local?nk:ik)(r,i,e))}function lk(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function ck(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function hk(t,e){var r,i;function n(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&ck(t,a)),r}return n._value=e,n}function uk(t,e){var r,i;function n(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&lk(t,a)),r}return n._value=e,n}function fk(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=Js(t);return this.tween(r,(i.local?hk:uk)(i,e))}function dk(t,e){return function(){Uc(this,t).delay=+e.apply(this,arguments)}}function pk(t,e){return e=+e,function(){Uc(this,t).delay=e}}function gk(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?dk:pk)(e,t)):Re(this.node(),e).delay}function mk(t,e){return function(){Ze(this,t).duration=+e.apply(this,arguments)}}function yk(t,e){return e=+e,function(){Ze(this,t).duration=e}}function xk(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?mk:yk)(e,t)):Re(this.node(),e).duration}function bk(t,e){if(typeof e!="function")throw new Error;return function(){Ze(this,t).ease=e}}function Ck(t){var e=this._id;return arguments.length?this.each(bk(e,t)):Re(this.node(),e).ease}function wk(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Ze(this,t).ease=r}}function _k(t){if(typeof t!="function")throw new Error;return this.each(wk(this._id,t))}function kk(t){typeof t!="function"&&(t=up(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var a=e[n],s=a.length,o=i[n]=[],c,l=0;l<s;++l)(c=a[l])&&t.call(c,c.__data__,l,a)&&o.push(c);return new ur(i,this._parents,this._name,this._id)}function Sk(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,a=Math.min(i,n),s=new Array(i),o=0;o<a;++o)for(var c=e[o],l=r[o],h=c.length,u=s[o]=new Array(h),f,d=0;d<h;++d)(f=c[d]||l[d])&&(u[d]=f);for(;o<i;++o)s[o]=e[o];return new ur(s,this._parents,this._name,this._id)}function vk(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function Tk(t,e,r){var i,n,a=vk(e)?Uc:Ze;return function(){var s=a(this,t),o=s.on;o!==i&&(n=(i=o).copy()).on(e,r),s.on=n}}function Ak(t,e){var r=this._id;return arguments.length<2?Re(this.node(),r).on.on(t):this.each(Tk(r,t,e))}function Lk(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Mk(){return this.on("end.remove",Lk(this._id))}function Ek(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Wc(t));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var o=i[s],c=o.length,l=a[s]=new Array(c),h,u,f=0;f<c;++f)(h=o[f])&&(u=t.call(h,h.__data__,f,o))&&("__data__"in h&&(u.__data__=h.__data__),l[f]=u,io(l[f],e,r,f,l,Re(h,r)));return new ur(a,this._parents,e,r)}function Bk(t){var e=this._name,r=this._id;typeof t!="function"&&(t=hp(t));for(var i=this._groups,n=i.length,a=[],s=[],o=0;o<n;++o)for(var c=i[o],l=c.length,h,u=0;u<l;++u)if(h=c[u]){for(var f=t.call(h,h.__data__,u,c),d,p=Re(h,r),g=0,x=f.length;g<x;++g)(d=f[g])&&io(d,e,r,g,f,p);a.push(f),s.push(h)}return new ur(a,s,e,r)}var $k=ra.prototype.constructor;function Fk(){return new $k(this._groups,this._parents)}function Dk(t,e){var r,i,n;return function(){var a=Ei(this,t),s=(this.style.removeProperty(t),Ei(this,t));return a===s?null:a===r&&s===i?n:n=e(r=a,i=s)}}function Np(t){return function(){this.style.removeProperty(t)}}function Ok(t,e,r){var i,n=r+"",a;return function(){var s=Ei(this,t);return s===n?null:s===i?a:a=e(i=s,r)}}function Ik(t,e,r){var i,n,a;return function(){var s=Ei(this,t),o=r(this),c=o+"";return o==null&&(c=o=(this.style.removeProperty(t),Ei(this,t))),s===c?null:s===i&&c===n?a:(n=c,a=e(i=s,o))}}function Rk(t,e){var r,i,n,a="style."+e,s="end."+a,o;return function(){var c=Ze(this,t),l=c.on,h=c.value[a]==null?o||(o=Np(e)):void 0;(l!==r||n!==h)&&(i=(r=l).copy()).on(s,n=h),c.on=i}}function Pk(t,e,r){var i=(t+="")=="transform"?z_:Pp;return e==null?this.styleTween(t,Dk(t,i)).on("end.style."+t,Np(t)):typeof e=="function"?this.styleTween(t,Ik(t,i,jc(this,"style."+t,e))).each(Rk(this._id,t)):this.styleTween(t,Ok(t,i,e),r).on("end.style."+t,null)}function Nk(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function zk(t,e,r){var i,n;function a(){var s=e.apply(this,arguments);return s!==n&&(i=(n=s)&&Nk(t,s,r)),i}return a._value=e,a}function Wk(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,zk(t,e,r??""))}function qk(t){return function(){this.textContent=t}}function Hk(t){return function(){var e=t(this);this.textContent=e??""}}function Yk(t){return this.tween("text",typeof t=="function"?Hk(jc(this,"text",t)):qk(t==null?"":t+""))}function Uk(t){return function(e){this.textContent=t.call(this,e)}}function jk(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&Uk(n)),e}return i._value=t,i}function Xk(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,jk(t))}function Gk(){for(var t=this._name,e=this._id,r=zp(),i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,c,l=0;l<o;++l)if(c=s[l]){var h=Re(c,e);io(c,t,r,l,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ur(i,this._parents,t,r)}function Vk(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(a,s){var o={value:s},c={value:function(){--n===0&&a()}};r.each(function(){var l=Ze(this,i),h=l.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(c)),l.on=e}),n===0&&a()})}var Zk=0;function ur(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function zp(){return++Zk}var ir=ra.prototype;ur.prototype={constructor:ur,select:Ek,selectAll:Bk,selectChild:ir.selectChild,selectChildren:ir.selectChildren,filter:kk,merge:Sk,selection:Fk,transition:Gk,call:ir.call,nodes:ir.nodes,node:ir.node,size:ir.size,empty:ir.empty,each:ir.each,on:Ak,attr:ok,attrTween:fk,style:Pk,styleTween:Wk,text:Yk,textTween:Xk,remove:Mk,tween:tk,delay:gk,duration:xk,ease:Ck,easeVarying:_k,end:Vk,[Symbol.iterator]:ir[Symbol.iterator]};function Kk(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Qk={time:null,delay:0,duration:250,ease:Kk};function Jk(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function tS(t){var e,r;t instanceof ur?(e=t._id,t=t._name):(e=zp(),(r=Qk).time=Yc(),t=t==null?null:t+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,c,l=0;l<o;++l)(c=s[l])&&io(c,t,e,l,s,r||Jk(c,e));return new ur(i,this._parents,t,e)}ra.prototype.interrupt=K_;ra.prototype.transition=tS;const zl=Math.PI,Wl=2*zl,Fr=1e-6,eS=Wl-Fr;function Wp(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function rS(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Wp;const r=10**e;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class iS{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Wp:rS(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,n){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,r,i,n,a,s){this._append`C${+e},${+r},${+i},${+n},${this._x1=+a},${this._y1=+s}`}arcTo(e,r,i,n,a){if(e=+e,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,c=i-e,l=n-r,h=s-e,u=o-r,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(f>Fr)if(!(Math.abs(u*c-l*h)>Fr)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let d=i-s,p=n-o,g=c*c+l*l,x=d*d+p*p,y=Math.sqrt(g),b=Math.sqrt(f),w=a*Math.tan((zl-Math.acos((g+f-x)/(2*y*b)))/2),k=w/b,_=w/y;Math.abs(k-1)>Fr&&this._append`L${e+k*h},${r+k*u}`,this._append`A${a},${a},0,0,${+(u*d>h*p)},${this._x1=e+_*c},${this._y1=r+_*l}`}}arc(e,r,i,n,a,s){if(e=+e,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),c=i*Math.sin(n),l=e+o,h=r+c,u=1^s,f=s?n-a:a-n;this._x1===null?this._append`M${l},${h}`:(Math.abs(this._x1-l)>Fr||Math.abs(this._y1-h)>Fr)&&this._append`L${l},${h}`,i&&(f<0&&(f=f%Wl+Wl),f>eS?this._append`A${i},${i},0,1,${u},${e-o},${r-c}A${i},${i},0,1,${u},${this._x1=l},${this._y1=h}`:f>Fr&&this._append`A${i},${i},0,${+(f>=zl)},${u},${this._x1=e+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(e,r,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function nS(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ps(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function $i(t){return t=ps(Math.abs(t)),t?t[1]:NaN}function aS(t,e){return function(r,i){for(var n=r.length,a=[],s=0,o=t[0],c=0;n>0&&o>0&&(c+o+1>i&&(o=Math.max(1,i-c)),a.push(r.substring(n-=o,n+o)),!((c+=o+1)>i));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}function sS(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var oS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gs(t){if(!(e=oS.exec(t)))throw new Error("invalid format: "+t);var e;return new Xc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}gs.prototype=Xc.prototype;function Xc(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Xc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function lS(t){t:for(var e=t.length,r=1,i=-1,n;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(n+1):t}var qp;function cS(t,e){var r=ps(t,e);if(!r)return t+"";var i=r[0],n=r[1],a=n-(qp=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+ps(t,Math.max(0,e+a-1))[0]}function Hu(t,e){var r=ps(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}const Yu={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:nS,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Hu(t*100,e),r:Hu,s:cS,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Uu(t){return t}var ju=Array.prototype.map,Xu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hS(t){var e=t.grouping===void 0||t.thousands===void 0?Uu:aS(ju.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?Uu:sS(ju.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(u){u=gs(u);var f=u.fill,d=u.align,p=u.sign,g=u.symbol,x=u.zero,y=u.width,b=u.comma,w=u.precision,k=u.trim,_=u.type;_==="n"?(b=!0,_="g"):Yu[_]||(w===void 0&&(w=12),k=!0,_="g"),(x||f==="0"&&d==="=")&&(x=!0,f="0",d="=");var C=g==="$"?r:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",S=g==="$"?i:/[%p]/.test(_)?s:"",F=Yu[_],I=/[defgprs%]/.test(_);w=w===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function O(A){var N=C,$=S,L,M,E;if(_==="c")$=F(A)+$,A="";else{A=+A;var D=A<0||1/A<0;if(A=isNaN(A)?c:F(Math.abs(A),w),k&&(A=lS(A)),D&&+A==0&&p!=="+"&&(D=!1),N=(D?p==="("?p:o:p==="-"||p==="("?"":p)+N,$=(_==="s"?Xu[8+qp/3]:"")+$+(D&&p==="("?")":""),I){for(L=-1,M=A.length;++L<M;)if(E=A.charCodeAt(L),48>E||E>57){$=(E===46?n+A.slice(L+1):A.slice(L))+$,A=A.slice(0,L);break}}}b&&!x&&(A=e(A,1/0));var v=N.length+A.length+$.length,R=v<y?new Array(y-v+1).join(f):"";switch(b&&x&&(A=e(R+A,R.length?y-$.length:1/0),R=""),d){case"<":A=N+A+$+R;break;case"=":A=N+R+A+$;break;case"^":A=R.slice(0,v=R.length>>1)+N+A+$+R.slice(v);break;default:A=R+N+A+$;break}return a(A)}return O.toString=function(){return u+""},O}function h(u,f){var d=l((u=gs(u),u.type="f",u)),p=Math.max(-8,Math.min(8,Math.floor($i(f)/3)))*3,g=Math.pow(10,-p),x=Xu[8+p/3];return function(y){return d(g*y)+x}}return{format:l,formatPrefix:h}}var va,Hp,Yp;uS({thousands:",",grouping:[3],currency:["$",""]});function uS(t){return va=hS(t),Hp=va.format,Yp=va.formatPrefix,va}function fS(t){return Math.max(0,-$i(Math.abs(t)))}function dS(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($i(e)/3)))*3-$i(Math.abs(t)))}function pS(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,$i(e)-$i(t))+1}function gS(t){var e=0,r=t.children,i=r&&r.length;if(!i)e=1;else for(;--i>=0;)e+=r[i].value;t.value=e}function mS(){return this.eachAfter(gS)}function yS(t,e){let r=-1;for(const i of this)t.call(e,i,++r,this);return this}function xS(t,e){for(var r=this,i=[r],n,a,s=-1;r=i.pop();)if(t.call(e,r,++s,this),n=r.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function bS(t,e){for(var r=this,i=[r],n=[],a,s,o,c=-1;r=i.pop();)if(n.push(r),a=r.children)for(s=0,o=a.length;s<o;++s)i.push(a[s]);for(;r=n.pop();)t.call(e,r,++c,this);return this}function CS(t,e){let r=-1;for(const i of this)if(t.call(e,i,++r,this))return i}function wS(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,i=e.children,n=i&&i.length;--n>=0;)r+=i[n].value;e.value=r})}function _S(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function kS(t){for(var e=this,r=SS(e,t),i=[e];e!==r;)e=e.parent,i.push(e);for(var n=i.length;t!==r;)i.splice(n,0,t),t=t.parent;return i}function SS(t,e){if(t===e)return t;var r=t.ancestors(),i=e.ancestors(),n=null;for(t=r.pop(),e=i.pop();t===e;)n=t,t=r.pop(),e=i.pop();return n}function vS(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function TS(){return Array.from(this)}function AS(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function LS(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*MS(){var t=this,e,r=[t],i,n,a;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,i=t.children)for(n=0,a=i.length;n<a;++n)r.push(i[n]);while(r.length)}function Up(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=$S)):e===void 0&&(e=BS);for(var r=new ms(t),i,n=[r],a,s,o,c;i=n.pop();)if((s=e(i.data))&&(c=(s=Array.from(s)).length))for(i.children=s,o=c-1;o>=0;--o)n.push(a=s[o]=new ms(s[o])),a.parent=i,a.depth=i.depth+1;return r.eachBefore(DS)}function ES(){return Up(this).eachBefore(FS)}function BS(t){return t.children}function $S(t){return Array.isArray(t)?t[1]:null}function FS(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function DS(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ms(t){this.data=t,this.depth=this.height=0,this.parent=null}ms.prototype=Up.prototype={constructor:ms,count:mS,each:yS,eachAfter:bS,eachBefore:xS,find:CS,sum:wS,sort:_S,path:kS,ancestors:vS,descendants:TS,leaves:AS,links:LS,copy:ES,[Symbol.iterator]:MS};function OS(t){if(typeof t!="function")throw new Error;return t}function en(){return 0}function rn(t){return function(){return t}}function IS(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function RS(t,e,r,i,n){for(var a=t.children,s,o=-1,c=a.length,l=t.value&&(i-e)/t.value;++o<c;)s=a[o],s.y0=r,s.y1=n,s.x0=e,s.x1=e+=s.value*l}function PS(t,e,r,i,n){for(var a=t.children,s,o=-1,c=a.length,l=t.value&&(n-r)/t.value;++o<c;)s=a[o],s.x0=e,s.x1=i,s.y0=r,s.y1=r+=s.value*l}var NS=(1+Math.sqrt(5))/2;function zS(t,e,r,i,n,a){for(var s=[],o=e.children,c,l,h=0,u=0,f=o.length,d,p,g=e.value,x,y,b,w,k,_,C;h<f;){d=n-r,p=a-i;do x=o[u++].value;while(!x&&u<f);for(y=b=x,_=Math.max(p/d,d/p)/(g*t),C=x*x*_,k=Math.max(b/C,C/y);u<f;++u){if(x+=l=o[u].value,l<y&&(y=l),l>b&&(b=l),C=x*x*_,w=Math.max(b/C,C/y),w>k){x-=l;break}k=w}s.push(c={value:x,dice:d<p,children:o.slice(h,u)}),c.dice?RS(c,r,i,n,g?i+=p*x/g:a):PS(c,r,i,g?r+=d*x/g:n,a),g-=x,h=u}return s}const WS=function t(e){function r(i,n,a,s,o){zS(e,i,n,a,s,o)}return r.ratio=function(i){return t((i=+i)>1?i:1)},r}(NS);function VI(){var t=WS,e=!1,r=1,i=1,n=[0],a=en,s=en,o=en,c=en,l=en;function h(f){return f.x0=f.y0=0,f.x1=r,f.y1=i,f.eachBefore(u),n=[0],e&&f.eachBefore(IS),f}function u(f){var d=n[f.depth],p=f.x0+d,g=f.y0+d,x=f.x1-d,y=f.y1-d;x<p&&(p=x=(p+x)/2),y<g&&(g=y=(g+y)/2),f.x0=p,f.y0=g,f.x1=x,f.y1=y,f.children&&(d=n[f.depth+1]=a(f)/2,p+=l(f)-d,g+=s(f)-d,x-=o(f)-d,y-=c(f)-d,x<p&&(p=x=(p+x)/2),y<g&&(g=y=(g+y)/2),t(f,p,g,x,y))}return h.round=function(f){return arguments.length?(e=!!f,h):e},h.size=function(f){return arguments.length?(r=+f[0],i=+f[1],h):[r,i]},h.tile=function(f){return arguments.length?(t=OS(f),h):t},h.padding=function(f){return arguments.length?h.paddingInner(f).paddingOuter(f):h.paddingInner()},h.paddingInner=function(f){return arguments.length?(a=typeof f=="function"?f:rn(+f),h):a},h.paddingOuter=function(f){return arguments.length?h.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):h.paddingTop()},h.paddingTop=function(f){return arguments.length?(s=typeof f=="function"?f:rn(+f),h):s},h.paddingRight=function(f){return arguments.length?(o=typeof f=="function"?f:rn(+f),h):o},h.paddingBottom=function(f){return arguments.length?(c=typeof f=="function"?f:rn(+f),h):c},h.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:rn(+f),h):l},h}function no(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const Gu=Symbol("implicit");function jp(){var t=new vu,e=[],r=[],i=Gu;function n(a){let s=t.get(a);if(s===void 0){if(i!==Gu)return i;t.set(a,s=e.push(a)-1)}return r[s%r.length]}return n.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new vu;for(const s of a)t.has(s)||t.set(s,e.push(s)-1);return n},n.range=function(a){return arguments.length?(r=Array.from(a),n):r.slice()},n.unknown=function(a){return arguments.length?(i=a,n):i},n.copy=function(){return jp(e,r).unknown(i)},no.apply(n,arguments),n}function qS(){var t=jp().unknown(void 0),e=t.domain,r=t.range,i=0,n=1,a,s,o=!1,c=0,l=0,h=.5;delete t.unknown;function u(){var f=e().length,d=n<i,p=d?n:i,g=d?i:n;a=(g-p)/Math.max(1,f-c+l*2),o&&(a=Math.floor(a)),p+=(g-p-a*(f-c))*h,s=a*(1-c),o&&(p=Math.round(p),s=Math.round(s));var x=kC(f).map(function(y){return p+a*y});return r(d?x.reverse():x)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?([i,n]=f,i=+i,n=+n,u()):[i,n]},t.rangeRound=function(f){return[i,n]=f,i=+i,n=+n,o=!0,u()},t.bandwidth=function(){return s},t.step=function(){return a},t.round=function(f){return arguments.length?(o=!!f,u()):o},t.padding=function(f){return arguments.length?(c=Math.min(1,l=+f),u()):c},t.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),u()):c},t.paddingOuter=function(f){return arguments.length?(l=+f,u()):l},t.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),u()):h},t.copy=function(){return qS(e(),[i,n]).round(o).paddingInner(c).paddingOuter(l).align(h)},no.apply(u(),arguments)}function HS(t){return function(){return t}}function YS(t){return+t}var Vu=[0,1];function xi(t){return t}function ql(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:HS(isNaN(e)?NaN:.5)}function US(t,e){var r;return t>e&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function jS(t,e,r){var i=t[0],n=t[1],a=e[0],s=e[1];return n<i?(i=ql(n,i),a=r(s,a)):(i=ql(i,n),a=r(a,s)),function(o){return a(i(o))}}function XS(t,e,r){var i=Math.min(t.length,e.length)-1,n=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)n[s]=ql(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(o){var c=gC(t,o,1,i)-1;return a[c](n[c](o))}}function Xp(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function GS(){var t=Vu,e=Vu,r=Hc,i,n,a,s=xi,o,c,l;function h(){var f=Math.min(t.length,e.length);return s!==xi&&(s=US(t[0],t[f-1])),o=f>2?XS:jS,c=l=null,u}function u(f){return f==null||isNaN(f=+f)?a:(c||(c=o(t.map(i),e,r)))(i(s(f)))}return u.invert=function(f){return s(n((l||(l=o(e,t.map(i),Me)))(f)))},u.domain=function(f){return arguments.length?(t=Array.from(f,YS),h()):t.slice()},u.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},u.rangeRound=function(f){return e=Array.from(f),r=R_,h()},u.clamp=function(f){return arguments.length?(s=f?!0:xi,h()):s!==xi},u.interpolate=function(f){return arguments.length?(r=f,h()):r},u.unknown=function(f){return arguments.length?(a=f,u):a},function(f,d){return i=f,n=d,h()}}function Gp(){return GS()(xi,xi)}function VS(t,e,r,i){var n=El(t,e,r),a;switch(i=gs(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(a=dS(n,s))&&(i.precision=a),Yp(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=pS(n,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=fS(n))&&(i.precision=a-(i.type==="%")*2);break}}return Hp(i)}function ZS(t){var e=t.domain;return t.ticks=function(r){var i=e();return _C(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var n=e();return VS(n[0],n[n.length-1],r??10,i)},t.nice=function(r){r==null&&(r=10);var i=e(),n=0,a=i.length-1,s=i[n],o=i[a],c,l,h=10;for(o<s&&(l=s,s=o,o=l,l=n,n=a,a=l);h-- >0;){if(l=Ml(s,o,r),l===c)return i[n]=s,i[a]=o,e(i);if(l>0)s=Math.floor(s/l)*l,o=Math.ceil(o/l)*l;else if(l<0)s=Math.ceil(s*l)/l,o=Math.floor(o*l)/l;else break;c=l}return t},t}function KS(){var t=Gp();return t.copy=function(){return Xp(t,KS())},no.apply(t,arguments),ZS(t)}function QS(t,e){t=t.slice();var r=0,i=t.length-1,n=t[r],a=t[i],s;return a<n&&(s=r,r=i,i=s,s=n,n=a,a=s),t[r]=e.floor(n),t[i]=e.ceil(a),t}const Zo=new Date,Ko=new Date;function zt(t,e,r,i){function n(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return n.floor=a=>(t(a=new Date(+a)),a),n.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),n.round=a=>{const s=n(a),o=n.ceil(a);return a-s<o-a?s:o},n.offset=(a,s)=>(e(a=new Date(+a),s==null?1:Math.floor(s)),a),n.range=(a,s,o)=>{const c=[];if(a=n.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return c;let l;do c.push(l=new Date(+a)),e(a,o),t(a);while(l<a&&a<s);return c},n.filter=a=>zt(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;e(s,-1),!a(s););else for(;--o>=0;)for(;e(s,1),!a(s););}),r&&(n.count=(a,s)=>(Zo.setTime(+a),Ko.setTime(+s),t(Zo),t(Ko),Math.floor(r(Zo,Ko))),n.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?n.filter(i?s=>i(s)%a===0:s=>n.count(0,s)%a===0):n)),n}const ys=zt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ys.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?zt(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):ys);ys.range;const or=1e3,Ce=or*60,lr=Ce*60,fr=lr*24,Gc=fr*7,Zu=fr*30,Qo=fr*365,bi=zt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*or)},(t,e)=>(e-t)/or,t=>t.getUTCSeconds());bi.range;const Vc=zt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*or)},(t,e)=>{t.setTime(+t+e*Ce)},(t,e)=>(e-t)/Ce,t=>t.getMinutes());Vc.range;const JS=zt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Ce)},(t,e)=>(e-t)/Ce,t=>t.getUTCMinutes());JS.range;const Zc=zt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*or-t.getMinutes()*Ce)},(t,e)=>{t.setTime(+t+e*lr)},(t,e)=>(e-t)/lr,t=>t.getHours());Zc.range;const tv=zt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*lr)},(t,e)=>(e-t)/lr,t=>t.getUTCHours());tv.range;const na=zt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ce)/fr,t=>t.getDate()-1);na.range;const Kc=zt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/fr,t=>t.getUTCDate()-1);Kc.range;const ev=zt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/fr,t=>Math.floor(t/fr));ev.range;function ri(t){return zt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Ce)/Gc)}const ao=ri(0),xs=ri(1),rv=ri(2),iv=ri(3),Fi=ri(4),nv=ri(5),av=ri(6);ao.range;xs.range;rv.range;iv.range;Fi.range;nv.range;av.range;function ii(t){return zt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/Gc)}const Vp=ii(0),bs=ii(1),sv=ii(2),ov=ii(3),Di=ii(4),lv=ii(5),cv=ii(6);Vp.range;bs.range;sv.range;ov.range;Di.range;lv.range;cv.range;const Qc=zt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Qc.range;const hv=zt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hv.range;const dr=zt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());dr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:zt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});dr.range;const Vr=zt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Vr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:zt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Vr.range;function uv(t,e,r,i,n,a){const s=[[bi,1,or],[bi,5,5*or],[bi,15,15*or],[bi,30,30*or],[a,1,Ce],[a,5,5*Ce],[a,15,15*Ce],[a,30,30*Ce],[n,1,lr],[n,3,3*lr],[n,6,6*lr],[n,12,12*lr],[i,1,fr],[i,2,2*fr],[r,1,Gc],[e,1,Zu],[e,3,3*Zu],[t,1,Qo]];function o(l,h,u){const f=h<l;f&&([l,h]=[h,l]);const d=u&&typeof u.range=="function"?u:c(l,h,u),p=d?d.range(l,+h+1):[];return f?p.reverse():p}function c(l,h,u){const f=Math.abs(h-l)/u,d=zc(([,,x])=>x).right(s,f);if(d===s.length)return t.every(El(l/Qo,h/Qo,u));if(d===0)return ys.every(Math.max(El(l,h,u),1));const[p,g]=s[f/s[d-1][2]<s[d][2]/f?d-1:d];return p.every(g)}return[o,c]}const[fv,dv]=uv(dr,Qc,ao,na,Zc,Vc);function Jo(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function tl(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function nn(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function pv(t){var e=t.dateTime,r=t.date,i=t.time,n=t.periods,a=t.days,s=t.shortDays,o=t.months,c=t.shortMonths,l=an(n),h=sn(n),u=an(a),f=sn(a),d=an(s),p=sn(s),g=an(o),x=sn(o),y=an(c),b=sn(c),w={a:D,A:v,b:R,B:U,c:null,d:rf,e:rf,f:Rv,g:Xv,G:Vv,H:Dv,I:Ov,j:Iv,L:Zp,m:Pv,M:Nv,p:H,q:lt,Q:sf,s:of,S:zv,u:Wv,U:qv,V:Hv,w:Yv,W:Uv,x:null,X:null,y:jv,Y:Gv,Z:Zv,"%":af},k={a:et,A:ht,b:tt,B:it,c:null,d:nf,e:nf,f:tT,g:hT,G:fT,H:Kv,I:Qv,j:Jv,L:Qp,m:eT,M:rT,p:ut,q:yt,Q:sf,s:of,S:iT,u:nT,U:aT,V:sT,w:oT,W:lT,x:null,X:null,y:cT,Y:uT,Z:dT,"%":af},_={a:O,A,b:N,B:$,c:L,d:tf,e:tf,f:Ev,g:Ju,G:Qu,H:ef,I:ef,j:Tv,L:Mv,m:vv,M:Av,p:I,q:Sv,Q:$v,s:Fv,S:Lv,u:bv,U:Cv,V:wv,w:xv,W:_v,x:M,X:E,y:Ju,Y:Qu,Z:kv,"%":Bv};w.x=C(r,w),w.X=C(i,w),w.c=C(e,w),k.x=C(r,k),k.X=C(i,k),k.c=C(e,k);function C(W,X){return function(nt){var z=[],At=-1,xt=0,Bt=W.length,Ht,Ae,Qe;for(nt instanceof Date||(nt=new Date(+nt));++At<Bt;)W.charCodeAt(At)===37&&(z.push(W.slice(xt,At)),(Ae=Ku[Ht=W.charAt(++At)])!=null?Ht=W.charAt(++At):Ae=Ht==="e"?" ":"0",(Qe=X[Ht])&&(Ht=Qe(nt,Ae)),z.push(Ht),xt=At+1);return z.push(W.slice(xt,At)),z.join("")}}function S(W,X){return function(nt){var z=nn(1900,void 0,1),At=F(z,W,nt+="",0),xt,Bt;if(At!=nt.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(X&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(xt=tl(nn(z.y,0,1)),Bt=xt.getUTCDay(),xt=Bt>4||Bt===0?bs.ceil(xt):bs(xt),xt=Kc.offset(xt,(z.V-1)*7),z.y=xt.getUTCFullYear(),z.m=xt.getUTCMonth(),z.d=xt.getUTCDate()+(z.w+6)%7):(xt=Jo(nn(z.y,0,1)),Bt=xt.getDay(),xt=Bt>4||Bt===0?xs.ceil(xt):xs(xt),xt=na.offset(xt,(z.V-1)*7),z.y=xt.getFullYear(),z.m=xt.getMonth(),z.d=xt.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Bt="Z"in z?tl(nn(z.y,0,1)).getUTCDay():Jo(nn(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Bt+5)%7:z.w+z.U*7-(Bt+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,tl(z)):Jo(z)}}function F(W,X,nt,z){for(var At=0,xt=X.length,Bt=nt.length,Ht,Ae;At<xt;){if(z>=Bt)return-1;if(Ht=X.charCodeAt(At++),Ht===37){if(Ht=X.charAt(At++),Ae=_[Ht in Ku?X.charAt(At++):Ht],!Ae||(z=Ae(W,nt,z))<0)return-1}else if(Ht!=nt.charCodeAt(z++))return-1}return z}function I(W,X,nt){var z=l.exec(X.slice(nt));return z?(W.p=h.get(z[0].toLowerCase()),nt+z[0].length):-1}function O(W,X,nt){var z=d.exec(X.slice(nt));return z?(W.w=p.get(z[0].toLowerCase()),nt+z[0].length):-1}function A(W,X,nt){var z=u.exec(X.slice(nt));return z?(W.w=f.get(z[0].toLowerCase()),nt+z[0].length):-1}function N(W,X,nt){var z=y.exec(X.slice(nt));return z?(W.m=b.get(z[0].toLowerCase()),nt+z[0].length):-1}function $(W,X,nt){var z=g.exec(X.slice(nt));return z?(W.m=x.get(z[0].toLowerCase()),nt+z[0].length):-1}function L(W,X,nt){return F(W,e,X,nt)}function M(W,X,nt){return F(W,r,X,nt)}function E(W,X,nt){return F(W,i,X,nt)}function D(W){return s[W.getDay()]}function v(W){return a[W.getDay()]}function R(W){return c[W.getMonth()]}function U(W){return o[W.getMonth()]}function H(W){return n[+(W.getHours()>=12)]}function lt(W){return 1+~~(W.getMonth()/3)}function et(W){return s[W.getUTCDay()]}function ht(W){return a[W.getUTCDay()]}function tt(W){return c[W.getUTCMonth()]}function it(W){return o[W.getUTCMonth()]}function ut(W){return n[+(W.getUTCHours()>=12)]}function yt(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var X=C(W+="",w);return X.toString=function(){return W},X},parse:function(W){var X=S(W+="",!1);return X.toString=function(){return W},X},utcFormat:function(W){var X=C(W+="",k);return X.toString=function(){return W},X},utcParse:function(W){var X=S(W+="",!0);return X.toString=function(){return W},X}}}var Ku={"-":"",_:" ",0:"0"},qt=/^\s*\d+/,gv=/^%/,mv=/[\\^$*+?|[\]().{}]/g;function wt(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",a=n.length;return i+(a<r?new Array(r-a+1).join(e)+n:n)}function yv(t){return t.replace(mv,"\\$&")}function an(t){return new RegExp("^(?:"+t.map(yv).join("|")+")","i")}function sn(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function xv(t,e,r){var i=qt.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function bv(t,e,r){var i=qt.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function Cv(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function wv(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function _v(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function Qu(t,e,r){var i=qt.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function Ju(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function kv(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Sv(t,e,r){var i=qt.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function vv(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function tf(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function Tv(t,e,r){var i=qt.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function ef(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function Av(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function Lv(t,e,r){var i=qt.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function Mv(t,e,r){var i=qt.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function Ev(t,e,r){var i=qt.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Bv(t,e,r){var i=gv.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function $v(t,e,r){var i=qt.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function Fv(t,e,r){var i=qt.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function rf(t,e){return wt(t.getDate(),e,2)}function Dv(t,e){return wt(t.getHours(),e,2)}function Ov(t,e){return wt(t.getHours()%12||12,e,2)}function Iv(t,e){return wt(1+na.count(dr(t),t),e,3)}function Zp(t,e){return wt(t.getMilliseconds(),e,3)}function Rv(t,e){return Zp(t,e)+"000"}function Pv(t,e){return wt(t.getMonth()+1,e,2)}function Nv(t,e){return wt(t.getMinutes(),e,2)}function zv(t,e){return wt(t.getSeconds(),e,2)}function Wv(t){var e=t.getDay();return e===0?7:e}function qv(t,e){return wt(ao.count(dr(t)-1,t),e,2)}function Kp(t){var e=t.getDay();return e>=4||e===0?Fi(t):Fi.ceil(t)}function Hv(t,e){return t=Kp(t),wt(Fi.count(dr(t),t)+(dr(t).getDay()===4),e,2)}function Yv(t){return t.getDay()}function Uv(t,e){return wt(xs.count(dr(t)-1,t),e,2)}function jv(t,e){return wt(t.getFullYear()%100,e,2)}function Xv(t,e){return t=Kp(t),wt(t.getFullYear()%100,e,2)}function Gv(t,e){return wt(t.getFullYear()%1e4,e,4)}function Vv(t,e){var r=t.getDay();return t=r>=4||r===0?Fi(t):Fi.ceil(t),wt(t.getFullYear()%1e4,e,4)}function Zv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wt(e/60|0,"0",2)+wt(e%60,"0",2)}function nf(t,e){return wt(t.getUTCDate(),e,2)}function Kv(t,e){return wt(t.getUTCHours(),e,2)}function Qv(t,e){return wt(t.getUTCHours()%12||12,e,2)}function Jv(t,e){return wt(1+Kc.count(Vr(t),t),e,3)}function Qp(t,e){return wt(t.getUTCMilliseconds(),e,3)}function tT(t,e){return Qp(t,e)+"000"}function eT(t,e){return wt(t.getUTCMonth()+1,e,2)}function rT(t,e){return wt(t.getUTCMinutes(),e,2)}function iT(t,e){return wt(t.getUTCSeconds(),e,2)}function nT(t){var e=t.getUTCDay();return e===0?7:e}function aT(t,e){return wt(Vp.count(Vr(t)-1,t),e,2)}function Jp(t){var e=t.getUTCDay();return e>=4||e===0?Di(t):Di.ceil(t)}function sT(t,e){return t=Jp(t),wt(Di.count(Vr(t),t)+(Vr(t).getUTCDay()===4),e,2)}function oT(t){return t.getUTCDay()}function lT(t,e){return wt(bs.count(Vr(t)-1,t),e,2)}function cT(t,e){return wt(t.getUTCFullYear()%100,e,2)}function hT(t,e){return t=Jp(t),wt(t.getUTCFullYear()%100,e,2)}function uT(t,e){return wt(t.getUTCFullYear()%1e4,e,4)}function fT(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Di(t):Di.ceil(t),wt(t.getUTCFullYear()%1e4,e,4)}function dT(){return"+0000"}function af(){return"%"}function sf(t){return+t}function of(t){return Math.floor(+t/1e3)}var di,tg;pT({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pT(t){return di=pv(t),tg=di.format,di.parse,di.utcFormat,di.utcParse,di}function gT(t){return new Date(t)}function mT(t){return t instanceof Date?+t:+new Date(+t)}function eg(t,e,r,i,n,a,s,o,c,l){var h=Gp(),u=h.invert,f=h.domain,d=l(".%L"),p=l(":%S"),g=l("%I:%M"),x=l("%I %p"),y=l("%a %d"),b=l("%b %d"),w=l("%B"),k=l("%Y");function _(C){return(c(C)<C?d:o(C)<C?p:s(C)<C?g:a(C)<C?x:i(C)<C?n(C)<C?y:b:r(C)<C?w:k)(C)}return h.invert=function(C){return new Date(u(C))},h.domain=function(C){return arguments.length?f(Array.from(C,mT)):f().map(gT)},h.ticks=function(C){var S=f();return t(S[0],S[S.length-1],C??10)},h.tickFormat=function(C,S){return S==null?_:l(S)},h.nice=function(C){var S=f();return(!C||typeof C.range!="function")&&(C=e(S[0],S[S.length-1],C??10)),C?f(QS(S,C)):h},h.copy=function(){return Xp(h,eg(t,e,r,i,n,a,s,o,c,l))},h}function ZI(){return no.apply(eg(fv,dv,dr,Qc,ao,na,Zc,Vc,bi,tg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function yT(t){for(var e=t.length/6|0,r=new Array(e),i=0;i<e;)r[i]="#"+t.slice(i*6,++i*6);return r}const KI=yT("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function $t(t){return function(){return t}}const lf=Math.abs,Gt=Math.atan2,Br=Math.cos,xT=Math.max,el=Math.min,We=Math.sin,Ci=Math.sqrt,Zt=1e-12,Dn=Math.PI,Cs=Dn/2,Ya=2*Dn;function bT(t){return t>1?0:t<-1?Dn:Math.acos(t)}function cf(t){return t>=1?Cs:t<=-1?-Cs:Math.asin(t)}function rg(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new iS(e)}function CT(t){return t.innerRadius}function wT(t){return t.outerRadius}function _T(t){return t.startAngle}function kT(t){return t.endAngle}function ST(t){return t&&t.padAngle}function vT(t,e,r,i,n,a,s,o){var c=r-t,l=i-e,h=s-n,u=o-a,f=u*c-h*l;if(!(f*f<Zt))return f=(h*(e-a)-u*(t-n))/f,[t+f*c,e+f*l]}function Ta(t,e,r,i,n,a,s){var o=t-r,c=e-i,l=(s?a:-a)/Ci(o*o+c*c),h=l*c,u=-l*o,f=t+h,d=e+u,p=r+h,g=i+u,x=(f+p)/2,y=(d+g)/2,b=p-f,w=g-d,k=b*b+w*w,_=n-a,C=f*g-p*d,S=(w<0?-1:1)*Ci(xT(0,_*_*k-C*C)),F=(C*w-b*S)/k,I=(-C*b-w*S)/k,O=(C*w+b*S)/k,A=(-C*b+w*S)/k,N=F-x,$=I-y,L=O-x,M=A-y;return N*N+$*$>L*L+M*M&&(F=O,I=A),{cx:F,cy:I,x01:-h,y01:-u,x11:F*(n/_-1),y11:I*(n/_-1)}}function QI(){var t=CT,e=wT,r=$t(0),i=null,n=_T,a=kT,s=ST,o=null,c=rg(l);function l(){var h,u,f=+t.apply(this,arguments),d=+e.apply(this,arguments),p=n.apply(this,arguments)-Cs,g=a.apply(this,arguments)-Cs,x=lf(g-p),y=g>p;if(o||(o=h=c()),d<f&&(u=d,d=f,f=u),!(d>Zt))o.moveTo(0,0);else if(x>Ya-Zt)o.moveTo(d*Br(p),d*We(p)),o.arc(0,0,d,p,g,!y),f>Zt&&(o.moveTo(f*Br(g),f*We(g)),o.arc(0,0,f,g,p,y));else{var b=p,w=g,k=p,_=g,C=x,S=x,F=s.apply(this,arguments)/2,I=F>Zt&&(i?+i.apply(this,arguments):Ci(f*f+d*d)),O=el(lf(d-f)/2,+r.apply(this,arguments)),A=O,N=O,$,L;if(I>Zt){var M=cf(I/f*We(F)),E=cf(I/d*We(F));(C-=M*2)>Zt?(M*=y?1:-1,k+=M,_-=M):(C=0,k=_=(p+g)/2),(S-=E*2)>Zt?(E*=y?1:-1,b+=E,w-=E):(S=0,b=w=(p+g)/2)}var D=d*Br(b),v=d*We(b),R=f*Br(_),U=f*We(_);if(O>Zt){var H=d*Br(w),lt=d*We(w),et=f*Br(k),ht=f*We(k),tt;if(x<Dn)if(tt=vT(D,v,et,ht,H,lt,R,U)){var it=D-tt[0],ut=v-tt[1],yt=H-tt[0],W=lt-tt[1],X=1/We(bT((it*yt+ut*W)/(Ci(it*it+ut*ut)*Ci(yt*yt+W*W)))/2),nt=Ci(tt[0]*tt[0]+tt[1]*tt[1]);A=el(O,(f-nt)/(X-1)),N=el(O,(d-nt)/(X+1))}else A=N=0}S>Zt?N>Zt?($=Ta(et,ht,D,v,d,N,y),L=Ta(H,lt,R,U,d,N,y),o.moveTo($.cx+$.x01,$.cy+$.y01),N<O?o.arc($.cx,$.cy,N,Gt($.y01,$.x01),Gt(L.y01,L.x01),!y):(o.arc($.cx,$.cy,N,Gt($.y01,$.x01),Gt($.y11,$.x11),!y),o.arc(0,0,d,Gt($.cy+$.y11,$.cx+$.x11),Gt(L.cy+L.y11,L.cx+L.x11),!y),o.arc(L.cx,L.cy,N,Gt(L.y11,L.x11),Gt(L.y01,L.x01),!y))):(o.moveTo(D,v),o.arc(0,0,d,b,w,!y)):o.moveTo(D,v),!(f>Zt)||!(C>Zt)?o.lineTo(R,U):A>Zt?($=Ta(R,U,H,lt,f,-A,y),L=Ta(D,v,et,ht,f,-A,y),o.lineTo($.cx+$.x01,$.cy+$.y01),A<O?o.arc($.cx,$.cy,A,Gt($.y01,$.x01),Gt(L.y01,L.x01),!y):(o.arc($.cx,$.cy,A,Gt($.y01,$.x01),Gt($.y11,$.x11),!y),o.arc(0,0,f,Gt($.cy+$.y11,$.cx+$.x11),Gt(L.cy+L.y11,L.cx+L.x11),y),o.arc(L.cx,L.cy,A,Gt(L.y11,L.x11),Gt(L.y01,L.x01),!y))):o.arc(0,0,f,_,k,y)}if(o.closePath(),h)return o=null,h+""||null}return l.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,u=(+n.apply(this,arguments)+ +a.apply(this,arguments))/2-Dn/2;return[Br(u)*h,We(u)*h]},l.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:$t(+h),l):t},l.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:$t(+h),l):e},l.cornerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:$t(+h),l):r},l.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:$t(+h),l):i},l.startAngle=function(h){return arguments.length?(n=typeof h=="function"?h:$t(+h),l):n},l.endAngle=function(h){return arguments.length?(a=typeof h=="function"?h:$t(+h),l):a},l.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:$t(+h),l):s},l.context=function(h){return arguments.length?(o=h??null,l):o},l}function ig(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ng(t){this._context=t}ng.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ws(t){return new ng(t)}function TT(t){return t[0]}function AT(t){return t[1]}function LT(t,e){var r=$t(!0),i=null,n=ws,a=null,s=rg(o);t=typeof t=="function"?t:t===void 0?TT:$t(t),e=typeof e=="function"?e:e===void 0?AT:$t(e);function o(c){var l,h=(c=ig(c)).length,u,f=!1,d;for(i==null&&(a=n(d=s())),l=0;l<=h;++l)!(l<h&&r(u=c[l],l,c))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(u,l,c),+e(u,l,c));if(d)return a=null,d+""||null}return o.x=function(c){return arguments.length?(t=typeof c=="function"?c:$t(+c),o):t},o.y=function(c){return arguments.length?(e=typeof c=="function"?c:$t(+c),o):e},o.defined=function(c){return arguments.length?(r=typeof c=="function"?c:$t(!!c),o):r},o.curve=function(c){return arguments.length?(n=c,i!=null&&(a=n(i)),o):n},o.context=function(c){return arguments.length?(c==null?i=a=null:a=n(i=c),o):i},o}function MT(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ET(t){return t}function JI(){var t=ET,e=MT,r=null,i=$t(0),n=$t(Ya),a=$t(0);function s(o){var c,l=(o=ig(o)).length,h,u,f=0,d=new Array(l),p=new Array(l),g=+i.apply(this,arguments),x=Math.min(Ya,Math.max(-Ya,n.apply(this,arguments)-g)),y,b=Math.min(Math.abs(x)/l,a.apply(this,arguments)),w=b*(x<0?-1:1),k;for(c=0;c<l;++c)(k=p[d[c]=c]=+t(o[c],c,o))>0&&(f+=k);for(e!=null?d.sort(function(_,C){return e(p[_],p[C])}):r!=null&&d.sort(function(_,C){return r(o[_],o[C])}),c=0,u=f?(x-l*w)/f:0;c<l;++c,g=y)h=d[c],k=p[h],y=g+(k>0?k*u:0)+w,p[h]={data:o[h],index:c,value:k,startAngle:g,endAngle:y,padAngle:b};return p}return s.value=function(o){return arguments.length?(t=typeof o=="function"?o:$t(+o),s):t},s.sortValues=function(o){return arguments.length?(e=o,r=null,s):e},s.sort=function(o){return arguments.length?(r=o,e=null,s):r},s.startAngle=function(o){return arguments.length?(i=typeof o=="function"?o:$t(+o),s):i},s.endAngle=function(o){return arguments.length?(n=typeof o=="function"?o:$t(+o),s):n},s.padAngle=function(o){return arguments.length?(a=typeof o=="function"?o:$t(+o),s):a},s}class ag{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function sg(t){return new ag(t,!0)}function og(t){return new ag(t,!1)}function wr(){}function _s(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function so(t){this._context=t}so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_s(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_s(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ua(t){return new so(t)}function lg(t){this._context=t}lg.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:_s(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function BT(t){return new lg(t)}function cg(t){this._context=t}cg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:_s(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function $T(t){return new cg(t)}function hg(t,e){this._basis=new so(t),this._beta=e}hg.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],n=e[0],a=t[r]-i,s=e[r]-n,o=-1,c;++o<=r;)c=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(i+c*a),this._beta*e[o]+(1-this._beta)*(n+c*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const FT=function t(e){function r(i){return e===1?new so(i):new hg(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function ks(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Jc(t,e){this._context=t,this._k=(1-e)/6}Jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ks(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ks(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ug=function t(e){function r(i){return new Jc(i,e)}return r.tension=function(i){return t(+i)},r}(0);function th(t,e){this._context=t,this._k=(1-e)/6}th.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ks(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const DT=function t(e){function r(i){return new th(i,e)}return r.tension=function(i){return t(+i)},r}(0);function eh(t,e){this._context=t,this._k=(1-e)/6}eh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ks(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const OT=function t(e){function r(i){return new eh(i,e)}return r.tension=function(i){return t(+i)},r}(0);function rh(t,e,r){var i=t._x1,n=t._y1,a=t._x2,s=t._y2;if(t._l01_a>Zt){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,n=(n*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Zt){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*l+t._y1*t._l23_2a-r*t._l12_2a)/h}t._context.bezierCurveTo(i,n,a,s,t._x2,t._y2)}function fg(t,e){this._context=t,this._alpha=e}fg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:rh(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const dg=function t(e){function r(i){return e?new fg(i,e):new Jc(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function pg(t,e){this._context=t,this._alpha=e}pg.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:rh(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const IT=function t(e){function r(i){return e?new pg(i,e):new th(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function gg(t,e){this._context=t,this._alpha=e}gg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rh(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const RT=function t(e){function r(i){return e?new gg(i,e):new eh(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function mg(t){this._context=t}mg.prototype={areaStart:wr,areaEnd:wr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function PT(t){return new mg(t)}function hf(t){return t<0?-1:1}function uf(t,e,r){var i=t._x1-t._x0,n=e-t._x1,a=(t._y1-t._y0)/(i||n<0&&-0),s=(r-t._y1)/(n||i<0&&-0),o=(a*n+s*i)/(i+n);return(hf(a)+hf(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function ff(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function rl(t,e,r){var i=t._x0,n=t._y0,a=t._x1,s=t._y1,o=(a-i)/3;t._context.bezierCurveTo(i+o,n+o*e,a-o,s-o*r,a,s)}function Ss(t){this._context=t}Ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:rl(this,this._t0,ff(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,rl(this,ff(this,r=uf(this,t,e)),r);break;default:rl(this,this._t0,r=uf(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function yg(t){this._context=new xg(t)}(yg.prototype=Object.create(Ss.prototype)).point=function(t,e){Ss.prototype.point.call(this,e,t)};function xg(t){this._context=t}xg.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,n,a){this._context.bezierCurveTo(e,t,i,r,a,n)}};function bg(t){return new Ss(t)}function Cg(t){return new yg(t)}function wg(t){this._context=t}wg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=df(t),n=df(e),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],t[s],e[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function df(t){var e,r=t.length-1,i,n=new Array(r),a=new Array(r),s=new Array(r);for(n[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)n[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[r-1]=2,a[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=n[e]/a[e-1],a[e]-=i,s[e]-=i*s[e-1];for(n[r-1]=s[r-1]/a[r-1],e=r-2;e>=0;--e)n[e]=(s[e]-n[e+1])/a[e];for(a[r-1]=(t[r]+n[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-n[e+1];return[n,a]}function _g(t){return new wg(t)}function oo(t,e){this._context=t,this._t=e}oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function kg(t){return new oo(t,.5)}function Sg(t){return new oo(t,0)}function vg(t){return new oo(t,1)}function mn(t,e,r){this.k=t,this.x=e,this.y=r}mn.prototype={constructor:mn,scale:function(t){return t===1?this:new mn(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new mn(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};mn.prototype;var NT=m(t=>{var n;const{securityLevel:e}=kt();let r=bt("body");if(e==="sandbox"){const s=((n=bt(`#i${t}`).node())==null?void 0:n.contentDocument)??document;r=bt(s.body)}return r.select(`#${t}`)},"selectSvgElement");function ih(t){return typeof t>"u"||t===null}m(ih,"isNothing");function Tg(t){return typeof t=="object"&&t!==null}m(Tg,"isObject");function Ag(t){return Array.isArray(t)?t:ih(t)?[]:[t]}m(Ag,"toArray");function Lg(t,e){var r,i,n,a;if(e)for(a=Object.keys(e),r=0,i=a.length;r<i;r+=1)n=a[r],t[n]=e[n];return t}m(Lg,"extend");function Mg(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}m(Mg,"repeat");function Eg(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}m(Eg,"isNegativeZero");var zT=ih,WT=Tg,qT=Ag,HT=Mg,YT=Eg,UT=Lg,Pt={isNothing:zT,isObject:WT,toArray:qT,repeat:HT,isNegativeZero:YT,extend:UT};function nh(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
94
+
95
+ `+t.mark.snippet),i+" "+r):i}m(nh,"formatError");function Oi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=nh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}m(Oi,"YAMLException$1");Oi.prototype=Object.create(Error.prototype);Oi.prototype.constructor=Oi;Oi.prototype.toString=m(function(e){return this.name+": "+nh(this,e)},"toString");var pe=Oi;function ja(t,e,r,i,n){var a="",s="",o=Math.floor(n/2)-1;return i-e>o&&(a=" ... ",e=i-o+a.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+a.length}}m(ja,"getLine");function Xa(t,e){return Pt.repeat(" ",e-t.length)+t}m(Xa,"padStart");function Bg(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(t.buffer);)n.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",c,l,h=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+h+3);for(c=1;c<=e.linesBefore&&!(s-c<0);c++)l=ja(t.buffer,i[s-c],n[s-c],t.position-(i[s]-i[s-c]),u),o=Pt.repeat(" ",e.indent)+Xa((t.line-c+1).toString(),h)+" | "+l.str+`
96
+ `+o;for(l=ja(t.buffer,i[s],n[s],t.position,u),o+=Pt.repeat(" ",e.indent)+Xa((t.line+1).toString(),h)+" | "+l.str+`
97
+ `,o+=Pt.repeat("-",e.indent+h+3+l.pos)+`^
98
+ `,c=1;c<=e.linesAfter&&!(s+c>=n.length);c++)l=ja(t.buffer,i[s+c],n[s+c],t.position-(i[s]-i[s+c]),u),o+=Pt.repeat(" ",e.indent)+Xa((t.line+c+1).toString(),h)+" | "+l.str+`
99
+ `;return o.replace(/\n$/,"")}m(Bg,"makeSnippet");var jT=Bg,XT=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],GT=["scalar","sequence","mapping"];function $g(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}m($g,"compileStyleAliases");function Fg(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(XT.indexOf(r)===-1)throw new pe('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=$g(e.styleAliases||null),GT.indexOf(this.kind)===-1)throw new pe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}m(Fg,"Type$1");var ee=Fg;function Hl(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}m(Hl,"compileList");function Dg(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(m(i,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}m(Dg,"compileMap");function vs(t){return this.extend(t)}m(vs,"Schema$1");vs.prototype.extend=m(function(e){var r=[],i=[];if(e instanceof ee)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new pe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof ee))throw new pe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new pe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new pe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof ee))throw new pe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(vs.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Hl(n,"implicit"),n.compiledExplicit=Hl(n,"explicit"),n.compiledTypeMap=Dg(n.compiledImplicit,n.compiledExplicit),n},"extend");var VT=vs,ZT=new ee("tag:yaml.org,2002:str",{kind:"scalar",construct:m(function(t){return t!==null?t:""},"construct")}),KT=new ee("tag:yaml.org,2002:seq",{kind:"sequence",construct:m(function(t){return t!==null?t:[]},"construct")}),QT=new ee("tag:yaml.org,2002:map",{kind:"mapping",construct:m(function(t){return t!==null?t:{}},"construct")}),JT=new VT({explicit:[ZT,KT,QT]});function Og(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}m(Og,"resolveYamlNull");function Ig(){return null}m(Ig,"constructYamlNull");function Rg(t){return t===null}m(Rg,"isNull");var tA=new ee("tag:yaml.org,2002:null",{kind:"scalar",resolve:Og,construct:Ig,predicate:Rg,represent:{canonical:m(function(){return"~"},"canonical"),lowercase:m(function(){return"null"},"lowercase"),uppercase:m(function(){return"NULL"},"uppercase"),camelcase:m(function(){return"Null"},"camelcase"),empty:m(function(){return""},"empty")},defaultStyle:"lowercase"});function Pg(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}m(Pg,"resolveYamlBoolean");function Ng(t){return t==="true"||t==="True"||t==="TRUE"}m(Ng,"constructYamlBoolean");function zg(t){return Object.prototype.toString.call(t)==="[object Boolean]"}m(zg,"isBoolean");var eA=new ee("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Pg,construct:Ng,predicate:zg,represent:{lowercase:m(function(t){return t?"true":"false"},"lowercase"),uppercase:m(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:m(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Wg(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}m(Wg,"isHexCode");function qg(t){return 48<=t&&t<=55}m(qg,"isOctCode");function Hg(t){return 48<=t&&t<=57}m(Hg,"isDecCode");function Yg(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Wg(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!qg(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Hg(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}m(Yg,"resolveYamlInteger");function Ug(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}m(Ug,"constructYamlInteger");function jg(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Pt.isNegativeZero(t)}m(jg,"isInteger");var rA=new ee("tag:yaml.org,2002:int",{kind:"scalar",resolve:Yg,construct:Ug,predicate:jg,represent:{binary:m(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:m(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:m(function(t){return t.toString(10)},"decimal"),hexadecimal:m(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),iA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Xg(t){return!(t===null||!iA.test(t)||t[t.length-1]==="_")}m(Xg,"resolveYamlFloat");function Gg(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}m(Gg,"constructYamlFloat");var nA=/^[-+]?[0-9]+e/;function Vg(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Pt.isNegativeZero(t))return"-0.0";return r=t.toString(10),nA.test(r)?r.replace("e",".e"):r}m(Vg,"representYamlFloat");function Zg(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Pt.isNegativeZero(t))}m(Zg,"isFloat");var aA=new ee("tag:yaml.org,2002:float",{kind:"scalar",resolve:Xg,construct:Gg,predicate:Zg,represent:Vg,defaultStyle:"lowercase"}),Kg=JT.extend({implicit:[tA,eA,rA,aA]}),sA=Kg,Qg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Jg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tm(t){return t===null?!1:Qg.exec(t)!==null||Jg.exec(t)!==null}m(tm,"resolveYamlTimestamp");function em(t){var e,r,i,n,a,s,o,c=0,l=null,h,u,f;if(e=Qg.exec(t),e===null&&(e=Jg.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(h=+e[10],u=+(e[11]||0),l=(h*60+u)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,a,s,o,c)),l&&f.setTime(f.getTime()-l),f}m(em,"constructYamlTimestamp");function rm(t){return t.toISOString()}m(rm,"representYamlTimestamp");var oA=new ee("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tm,construct:em,instanceOf:Date,represent:rm});function im(t){return t==="<<"||t===null}m(im,"resolveYamlMerge");var lA=new ee("tag:yaml.org,2002:merge",{kind:"scalar",resolve:im}),ah=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
100
+ \r`;function nm(t){if(t===null)return!1;var e,r,i=0,n=t.length,a=ah;for(r=0;r<n;r++)if(e=a.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}m(nm,"resolveYamlBinary");function am(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,a=ah,s=0,o=[];for(e=0;e<n;e++)e%4===0&&e&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(i.charAt(e));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}m(am,"constructYamlBinary");function sm(t){var e="",r=0,i,n,a=t.length,s=ah;for(i=0;i<a;i++)i%3===0&&i&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[i];return n=a%3,n===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):n===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):n===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}m(sm,"representYamlBinary");function om(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}m(om,"isBinary");var cA=new ee("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nm,construct:am,predicate:om,represent:sm}),hA=Object.prototype.hasOwnProperty,uA=Object.prototype.toString;function lm(t){if(t===null)return!0;var e=[],r,i,n,a,s,o=t;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,uA.call(n)!=="[object Object]")return!1;for(a in n)if(hA.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(a)===-1)e.push(a);else return!1}return!0}m(lm,"resolveYamlOmap");function cm(t){return t!==null?t:[]}m(cm,"constructYamlOmap");var fA=new ee("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lm,construct:cm}),dA=Object.prototype.toString;function hm(t){if(t===null)return!0;var e,r,i,n,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(i=s[e],dA.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[e]=[n[0],i[n[0]]]}return!0}m(hm,"resolveYamlPairs");function um(t){if(t===null)return[];var e,r,i,n,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1)i=s[e],n=Object.keys(i),a[e]=[n[0],i[n[0]]];return a}m(um,"constructYamlPairs");var pA=new ee("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hm,construct:um}),gA=Object.prototype.hasOwnProperty;function fm(t){if(t===null)return!0;var e,r=t;for(e in r)if(gA.call(r,e)&&r[e]!==null)return!1;return!0}m(fm,"resolveYamlSet");function dm(t){return t!==null?t:{}}m(dm,"constructYamlSet");var mA=new ee("tag:yaml.org,2002:set",{kind:"mapping",resolve:fm,construct:dm}),pm=sA.extend({implicit:[oA,lA],explicit:[cA,fA,pA,mA]}),_r=Object.prototype.hasOwnProperty,Ts=1,gm=2,mm=3,As=4,il=1,yA=2,pf=3,xA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bA=/[\x85\u2028\u2029]/,CA=/[,\[\]\{\}]/,ym=/^(?:!|!!|![a-z\-]+!)$/i,xm=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Yl(t){return Object.prototype.toString.call(t)}m(Yl,"_class");function De(t){return t===10||t===13}m(De,"is_EOL");function Cr(t){return t===9||t===32}m(Cr,"is_WHITE_SPACE");function oe(t){return t===9||t===32||t===10||t===13}m(oe,"is_WS_OR_EOL");function Pr(t){return t===44||t===91||t===93||t===123||t===125}m(Pr,"is_FLOW_INDICATOR");function bm(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}m(bm,"fromHexCode");function Cm(t){return t===120?2:t===117?4:t===85?8:0}m(Cm,"escapedHexLen");function wm(t){return 48<=t&&t<=57?t-48:-1}m(wm,"fromDecimalCode");function Ul(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
101
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}m(Ul,"simpleEscapeSequence");function _m(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}m(_m,"charFromCodepoint");var km=new Array(256),Sm=new Array(256);for($r=0;$r<256;$r++)km[$r]=Ul($r)?1:0,Sm[$r]=Ul($r);var $r;function vm(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||pm,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}m(vm,"State$1");function sh(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=jT(r),new pe(e,r)}m(sh,"generateError");function rt(t,e){throw sh(t,e)}m(rt,"throwError");function On(t,e){t.onWarning&&t.onWarning.call(null,sh(t,e))}m(On,"throwWarning");var gf={YAML:m(function(e,r,i){var n,a,s;e.version!==null&&rt(e,"duplication of %YAML directive"),i.length!==1&&rt(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&rt(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&rt(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&On(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:m(function(e,r,i){var n,a;i.length!==2&&rt(e,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],ym.test(n)||rt(e,"ill-formed tag handle (first argument) of the TAG directive"),_r.call(e.tagMap,n)&&rt(e,'there is a previously declared suffix for "'+n+'" tag handle'),xm.test(a)||rt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{rt(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a},"handleTagDirective")};function hr(t,e,r,i){var n,a,s,o;if(e<r){if(o=t.input.slice(e,r),i)for(n=0,a=o.length;n<a;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||rt(t,"expected valid JSON character");else xA.test(o)&&rt(t,"the stream contains non-printable characters");t.result+=o}}m(hr,"captureSegment");function jl(t,e,r,i){var n,a,s,o;for(Pt.isObject(r)||rt(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)a=n[s],_r.call(e,a)||(e[a]=r[a],i[a]=!0)}m(jl,"mergeMappings");function Nr(t,e,r,i,n,a,s,o,c){var l,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,h=n.length;l<h;l+=1)Array.isArray(n[l])&&rt(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Yl(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&Yl(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(l=0,h=a.length;l<h;l+=1)jl(t,e,a[l],r);else jl(t,e,a,r);else!t.json&&!_r.call(r,n)&&_r.call(e,n)&&(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=c||t.position,rt(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[n]=a,delete r[n];return e}m(Nr,"storeMappingPair");function lo(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):rt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}m(lo,"readLineBreak");function Ft(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Cr(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(De(n))for(lo(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&On(t,"deficient indentation"),i}m(Ft,"skipSeparationSpace");function aa(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||oe(r)))}m(aa,"testDocumentSeparator");function co(t,e){e===1?t.result+=" ":e>1&&(t.result+=Pt.repeat(`
102
+ `,e-1))}m(co,"writeFoldedLines");function Tm(t,e,r){var i,n,a,s,o,c,l,h,u=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),oe(d)||Pr(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),oe(n)||r&&Pr(n)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),oe(n)||r&&Pr(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),oe(i))break}else{if(t.position===t.lineStart&&aa(t)||r&&Pr(d))break;if(De(d))if(c=t.line,l=t.lineStart,h=t.lineIndent,Ft(t,!1,-1),t.lineIndent>=e){o=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=c,t.lineStart=l,t.lineIndent=h;break}}o&&(hr(t,a,s,!1),co(t,t.line-c),a=s=t.position,o=!1),Cr(d)||(s=t.position+1),d=t.input.charCodeAt(++t.position)}return hr(t,a,s,!1),t.result?!0:(t.kind=u,t.result=f,!1)}m(Tm,"readPlainScalar");function Am(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(hr(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else De(r)?(hr(t,i,n,!0),co(t,Ft(t,!1,e)),i=n=t.position):t.position===t.lineStart&&aa(t)?rt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);rt(t,"unexpected end of the stream within a single quoted scalar")}m(Am,"readSingleQuotedScalar");function Lm(t,e){var r,i,n,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return hr(t,r,t.position,!0),t.position++,!0;if(o===92){if(hr(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),De(o))Ft(t,!1,e);else if(o<256&&km[o])t.result+=Sm[o],t.position++;else if((s=Cm(o))>0){for(n=s,a=0;n>0;n--)o=t.input.charCodeAt(++t.position),(s=bm(o))>=0?a=(a<<4)+s:rt(t,"expected hexadecimal character");t.result+=_m(a),t.position++}else rt(t,"unknown escape sequence");r=i=t.position}else De(o)?(hr(t,r,i,!0),co(t,Ft(t,!1,e)),r=i=t.position):t.position===t.lineStart&&aa(t)?rt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}rt(t,"unexpected end of the stream within a double quoted scalar")}m(Lm,"readDoubleQuotedScalar");function Mm(t,e){var r=!0,i,n,a,s=t.tag,o,c=t.anchor,l,h,u,f,d,p=Object.create(null),g,x,y,b;if(b=t.input.charCodeAt(t.position),b===91)h=93,d=!1,o=[];else if(b===123)h=125,d=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),b=t.input.charCodeAt(++t.position);b!==0;){if(Ft(t,!0,e),b=t.input.charCodeAt(t.position),b===h)return t.position++,t.tag=s,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=o,!0;r?b===44&&rt(t,"expected the node content, but found ','"):rt(t,"missed comma between flow collection entries"),x=g=y=null,u=f=!1,b===63&&(l=t.input.charCodeAt(t.position+1),oe(l)&&(u=f=!0,t.position++,Ft(t,!0,e))),i=t.line,n=t.lineStart,a=t.position,Zr(t,e,Ts,!1,!0),x=t.tag,g=t.result,Ft(t,!0,e),b=t.input.charCodeAt(t.position),(f||t.line===i)&&b===58&&(u=!0,b=t.input.charCodeAt(++t.position),Ft(t,!0,e),Zr(t,e,Ts,!1,!0),y=t.result),d?Nr(t,o,p,x,g,y,i,n,a):u?o.push(Nr(t,null,p,x,g,y,i,n,a)):o.push(g),Ft(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}rt(t,"unexpected end of the stream within a flow collection")}m(Mm,"readFlowCollection");function Em(t,e){var r,i,n=il,a=!1,s=!1,o=e,c=0,l=!1,h,u;if(u=t.input.charCodeAt(t.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(t.kind="scalar",t.result="";u!==0;)if(u=t.input.charCodeAt(++t.position),u===43||u===45)il===n?n=u===43?pf:yA:rt(t,"repeat of a chomping mode identifier");else if((h=wm(u))>=0)h===0?rt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?rt(t,"repeat of an indentation width identifier"):(o=e+h-1,s=!0);else break;if(Cr(u)){do u=t.input.charCodeAt(++t.position);while(Cr(u));if(u===35)do u=t.input.charCodeAt(++t.position);while(!De(u)&&u!==0)}for(;u!==0;){for(lo(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!s||t.lineIndent<o)&&u===32;)t.lineIndent++,u=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>o&&(o=t.lineIndent),De(u)){c++;continue}if(t.lineIndent<o){n===pf?t.result+=Pt.repeat(`
103
+ `,a?1+c:c):n===il&&a&&(t.result+=`
104
+ `);break}for(i?Cr(u)?(l=!0,t.result+=Pt.repeat(`
105
+ `,a?1+c:c)):l?(l=!1,t.result+=Pt.repeat(`
106
+ `,c+1)):c===0?a&&(t.result+=" "):t.result+=Pt.repeat(`
107
+ `,c):t.result+=Pt.repeat(`
108
+ `,a?1+c:c),a=!0,s=!0,c=0,r=t.position;!De(u)&&u!==0;)u=t.input.charCodeAt(++t.position);hr(t,r,t.position,!1)}return!0}m(Em,"readBlockScalar");function Xl(t,e){var r,i=t.tag,n=t.anchor,a=[],s,o=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,rt(t,"tab characters must not be used in indentation")),!(c!==45||(s=t.input.charCodeAt(t.position+1),!oe(s))));){if(o=!0,t.position++,Ft(t,!0,-1)&&t.lineIndent<=e){a.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Zr(t,e,mm,!1,!0),a.push(t.result),Ft(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)rt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=a,!0):!1}m(Xl,"readBlockSequence");function Bm(t,e,r){var i,n,a,s,o,c,l=t.tag,h=t.anchor,u={},f=Object.create(null),d=null,p=null,g=null,x=!1,y=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),b=t.input.charCodeAt(t.position);b!==0;){if(!x&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,rt(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,(b===63||b===58)&&oe(i))b===63?(x&&(Nr(t,u,f,d,p,null,s,o,c),d=p=g=null),y=!0,x=!0,n=!0):x?(x=!1,n=!0):rt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=i;else{if(s=t.line,o=t.lineStart,c=t.position,!Zr(t,r,gm,!1,!0))break;if(t.line===a){for(b=t.input.charCodeAt(t.position);Cr(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),oe(b)||rt(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Nr(t,u,f,d,p,null,s,o,c),d=p=g=null),y=!0,x=!1,n=!1,d=t.tag,p=t.result;else if(y)rt(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=h,!0}else if(y)rt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=h,!0}if((t.line===a||t.lineIndent>e)&&(x&&(s=t.line,o=t.lineStart,c=t.position),Zr(t,e,As,!0,n)&&(x?p=t.result:g=t.result),x||(Nr(t,u,f,d,p,g,s,o,c),d=p=g=null),Ft(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&b!==0)rt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Nr(t,u,f,d,p,null,s,o,c),y&&(t.tag=l,t.anchor=h,t.kind="mapping",t.result=u),y}m(Bm,"readBlockMapping");function $m(t){var e,r=!1,i=!1,n,a,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&rt(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(i=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(a=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):rt(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!oe(s);)s===33&&(i?rt(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),ym.test(n)||rt(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);a=t.input.slice(e,t.position),CA.test(a)&&rt(t,"tag suffix cannot contain flow indicator characters")}a&&!xm.test(a)&&rt(t,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{rt(t,"tag name is malformed: "+a)}return r?t.tag=a:_r.call(t.tagMap,n)?t.tag=t.tagMap[n]+a:n==="!"?t.tag="!"+a:n==="!!"?t.tag="tag:yaml.org,2002:"+a:rt(t,'undeclared tag handle "'+n+'"'),!0}m($m,"readTagProperty");function Fm(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&rt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!oe(r)&&!Pr(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&rt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}m(Fm,"readAnchorProperty");function Dm(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!oe(i)&&!Pr(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&rt(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),_r.call(t.anchorMap,r)||rt(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ft(t,!0,-1),!0}m(Dm,"readAlias");function Zr(t,e,r,i,n){var a,s,o,c=1,l=!1,h=!1,u,f,d,p,g,x;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=o=As===r||mm===r,i&&Ft(t,!0,-1)&&(l=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;$m(t)||Fm(t);)Ft(t,!0,-1)?(l=!0,o=a,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):o=!1;if(o&&(o=l||n),(c===1||As===r)&&(Ts===r||gm===r?g=e:g=e+1,x=t.position-t.lineStart,c===1?o&&(Xl(t,x)||Bm(t,x,g))||Mm(t,g)?h=!0:(s&&Em(t,g)||Am(t,g)||Lm(t,g)?h=!0:Dm(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&rt(t,"alias node should not have any properties")):Tm(t,g,Ts===r)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(h=o&&Xl(t,x))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&rt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),u=0,f=t.implicitTypes.length;u<f;u+=1)if(p=t.implicitTypes[u],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(_r.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,d=t.typeMap.multi[t.kind||"fallback"],u=0,f=d.length;u<f;u+=1)if(t.tag.slice(0,d[u].tag.length)===d[u].tag){p=d[u];break}p||rt(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&rt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):rt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}m(Zr,"composeNode");function Om(t){var e=t.position,r,i,n,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Ft(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!oe(s);)s=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&rt(t,"directive name must not be less than one character in length");s!==0;){for(;Cr(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!De(s));break}if(De(s))break;for(r=t.position;s!==0&&!oe(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}s!==0&&lo(t),_r.call(gf,i)?gf[i](t,i,n):On(t,'unknown document directive "'+i+'"')}if(Ft(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ft(t,!0,-1)):a&&rt(t,"directives end mark is expected"),Zr(t,t.lineIndent-1,As,!1,!0),Ft(t,!0,-1),t.checkLineBreaks&&bA.test(t.input.slice(e,t.position))&&On(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&aa(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ft(t,!0,-1));return}if(t.position<t.length-1)rt(t,"end of the stream or a document separator is expected");else return}m(Om,"readDocument");function oh(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
109
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new vm(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,rt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Om(r);return r.documents}m(oh,"loadDocuments");function wA(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=oh(t,r);if(typeof e!="function")return i;for(var n=0,a=i.length;n<a;n+=1)e(i[n])}m(wA,"loadAll$1");function Im(t,e){var r=oh(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new pe("expected a single document in the stream, but found more")}}m(Im,"load$1");var _A=Im,kA={load:_A},Rm=Object.prototype.toString,Pm=Object.prototype.hasOwnProperty,lh=65279,SA=9,In=10,vA=13,TA=32,AA=33,LA=34,Gl=35,MA=37,EA=38,BA=39,$A=42,Nm=44,FA=45,Ls=58,DA=61,OA=62,IA=63,RA=64,zm=91,Wm=93,PA=96,qm=123,NA=124,Hm=125,ie={};ie[0]="\\0";ie[7]="\\a";ie[8]="\\b";ie[9]="\\t";ie[10]="\\n";ie[11]="\\v";ie[12]="\\f";ie[13]="\\r";ie[27]="\\e";ie[34]='\\"';ie[92]="\\\\";ie[133]="\\N";ie[160]="\\_";ie[8232]="\\L";ie[8233]="\\P";var zA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],WA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ym(t,e){var r,i,n,a,s,o,c;if(e===null)return{};for(r={},i=Object.keys(e),n=0,a=i.length;n<a;n+=1)s=i[n],o=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=t.compiledTypeMap.fallback[s],c&&Pm.call(c.styleAliases,o)&&(o=c.styleAliases[o]),r[s]=o;return r}m(Ym,"compileStyleMap");function Um(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new pe("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Pt.repeat("0",i-e.length)+e}m(Um,"encodeHex");var qA=1,Rn=2;function jm(t){this.schema=t.schema||pm,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Pt.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Ym(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Rn:qA,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}m(jm,"State");function Vl(t,e){for(var r=Pt.repeat(" ",e),i=0,n=-1,a="",s,o=t.length;i<o;)n=t.indexOf(`
110
+ `,i),n===-1?(s=t.slice(i),i=o):(s=t.slice(i,n+1),i=n+1),s.length&&s!==`
111
+ `&&(a+=r),a+=s;return a}m(Vl,"indentString");function Ms(t,e){return`
112
+ `+Pt.repeat(" ",t.indent*e)}m(Ms,"generateNextLine");function Xm(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}m(Xm,"testImplicitResolving");function Pn(t){return t===TA||t===SA}m(Pn,"isWhitespace");function Ii(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==lh||65536<=t&&t<=1114111}m(Ii,"isPrintable");function Zl(t){return Ii(t)&&t!==lh&&t!==vA&&t!==In}m(Zl,"isNsCharOrWhitespace");function Kl(t,e,r){var i=Zl(t),n=i&&!Pn(t);return(r?i:i&&t!==Nm&&t!==zm&&t!==Wm&&t!==qm&&t!==Hm)&&t!==Gl&&!(e===Ls&&!n)||Zl(e)&&!Pn(e)&&t===Gl||e===Ls&&n}m(Kl,"isPlainSafe");function Gm(t){return Ii(t)&&t!==lh&&!Pn(t)&&t!==FA&&t!==IA&&t!==Ls&&t!==Nm&&t!==zm&&t!==Wm&&t!==qm&&t!==Hm&&t!==Gl&&t!==EA&&t!==$A&&t!==AA&&t!==NA&&t!==DA&&t!==OA&&t!==BA&&t!==LA&&t!==MA&&t!==RA&&t!==PA}m(Gm,"isPlainSafeFirst");function Vm(t){return!Pn(t)&&t!==Ls}m(Vm,"isPlainSafeLast");function wi(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}m(wi,"codePointAt");function ch(t){var e=/^\n* /;return e.test(t)}m(ch,"needIndentIndicator");var Zm=1,Ql=2,Km=3,Qm=4,gi=5;function Jm(t,e,r,i,n,a,s,o){var c,l=0,h=null,u=!1,f=!1,d=i!==-1,p=-1,g=Gm(wi(t,0))&&Vm(wi(t,t.length-1));if(e||s)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=wi(t,c),!Ii(l))return gi;g=g&&Kl(l,h,o),h=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=wi(t,c),l===In)u=!0,d&&(f=f||c-p-1>i&&t[p+1]!==" ",p=c);else if(!Ii(l))return gi;g=g&&Kl(l,h,o),h=l}f=f||d&&c-p-1>i&&t[p+1]!==" "}return!u&&!f?g&&!s&&!n(t)?Zm:a===Rn?gi:Ql:r>9&&ch(t)?gi:s?a===Rn?gi:Ql:f?Qm:Km}m(Jm,"chooseScalarStyle");function ty(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===Rn?'""':"''";if(!t.noCompatMode&&(zA.indexOf(e)!==-1||WA.test(e)))return t.quotingType===Rn?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),o=i||t.flowLevel>-1&&r>=t.flowLevel;function c(l){return Xm(t,l)}switch(m(c,"testAmbiguity"),Jm(e,o,t.indent,s,c,t.quotingType,t.forceQuotes&&!i,n)){case Zm:return e;case Ql:return"'"+e.replace(/'/g,"''")+"'";case Km:return"|"+Jl(e,t.indent)+tc(Vl(e,a));case Qm:return">"+Jl(e,t.indent)+tc(Vl(ey(e,s),a));case gi:return'"'+ry(e)+'"';default:throw new pe("impossible error: invalid scalar style")}}()}m(ty,"writeScalar");function Jl(t,e){var r=ch(t)?String(e):"",i=t[t.length-1]===`
113
+ `,n=i&&(t[t.length-2]===`
114
+ `||t===`
115
+ `),a=n?"+":i?"":"-";return r+a+`
116
+ `}m(Jl,"blockHeader");function tc(t){return t[t.length-1]===`
117
+ `?t.slice(0,-1):t}m(tc,"dropEndingNewline");function ey(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
118
+ `);return l=l!==-1?l:t.length,r.lastIndex=l,ec(t.slice(0,l),e)}(),n=t[0]===`
119
+ `||t[0]===" ",a,s;s=r.exec(t);){var o=s[1],c=s[2];a=c[0]===" ",i+=o+(!n&&!a&&c!==""?`
120
+ `:"")+ec(c,e),n=a}return i}m(ey,"foldString");function ec(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,a,s=0,o=0,c="";i=r.exec(t);)o=i.index,o-n>e&&(a=s>n?s:o,c+=`
121
+ `+t.slice(n,a),n=a+1),s=o;return c+=`
122
+ `,t.length-n>e&&s>n?c+=t.slice(n,s)+`
123
+ `+t.slice(s+1):c+=t.slice(n),c.slice(1)}m(ec,"foldLine");function ry(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=wi(t,n),i=ie[r],!i&&Ii(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Um(r);return e}m(ry,"escapeString");function iy(t,e,r){var i="",n=t.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],t.replacer&&(o=t.replacer.call(r,String(a),o)),(Ve(t,e,o,!1,!1)||typeof o>"u"&&Ve(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}m(iy,"writeFlowSequence");function rc(t,e,r,i){var n="",a=t.tag,s,o,c;for(s=0,o=r.length;s<o;s+=1)c=r[s],t.replacer&&(c=t.replacer.call(r,String(s),c)),(Ve(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Ve(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Ms(t,e)),t.dump&&In===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=a,t.dump=n||"[]"}m(rc,"writeBlockSequence");function ny(t,e,r){var i="",n=t.tag,a=Object.keys(r),s,o,c,l,h;for(s=0,o=a.length;s<o;s+=1)h="",i!==""&&(h+=", "),t.condenseFlow&&(h+='"'),c=a[s],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Ve(t,e,c,!1,!1)&&(t.dump.length>1024&&(h+="? "),h+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ve(t,e,l,!1,!1)&&(h+=t.dump,i+=h));t.tag=n,t.dump="{"+i+"}"}m(ny,"writeFlowMapping");function ay(t,e,r,i){var n="",a=t.tag,s=Object.keys(r),o,c,l,h,u,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new pe("sortKeys must be a boolean or a function");for(o=0,c=s.length;o<c;o+=1)f="",(!i||n!=="")&&(f+=Ms(t,e)),l=s[o],h=r[l],t.replacer&&(h=t.replacer.call(r,l,h)),Ve(t,e+1,l,!0,!0,!0)&&(u=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,u&&(t.dump&&In===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,u&&(f+=Ms(t,e)),Ve(t,e+1,h,!0,u)&&(t.dump&&In===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=a,t.dump=n||"{}"}m(ay,"writeBlockMapping");function ic(t,e,r){var i,n,a,s,o,c;for(n=r?t.explicitTypes:t.implicitTypes,a=0,s=n.length;a<s;a+=1)if(o=n[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(c=t.styleMap[o.tag]||o.defaultStyle,Rm.call(o.represent)==="[object Function]")i=o.represent(e,c);else if(Pm.call(o.represent,c))i=o.represent[c](e,c);else throw new pe("!<"+o.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}m(ic,"detectType");function Ve(t,e,r,i,n,a,s){t.tag=null,t.dump=r,ic(t,r,!1)||ic(t,r,!0);var o=Rm.call(t.dump),c=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var h=o==="[object Object]"||o==="[object Array]",u,f;if(h&&(u=t.duplicates.indexOf(r),f=u!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(h&&f&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),o==="[object Object]")i&&Object.keys(t.dump).length!==0?(ay(t,e,t.dump,n),f&&(t.dump="&ref_"+u+t.dump)):(ny(t,e,t.dump),f&&(t.dump="&ref_"+u+" "+t.dump));else if(o==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?rc(t,e-1,t.dump,n):rc(t,e,t.dump,n),f&&(t.dump="&ref_"+u+t.dump)):(iy(t,e,t.dump),f&&(t.dump="&ref_"+u+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&ty(t,t.dump,e,a,c);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new pe("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}m(Ve,"writeNode");function sy(t,e){var r=[],i=[],n,a;for(Es(t,r,i),n=0,a=i.length;n<a;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(a)}m(sy,"getDuplicateReferences");function Es(t,e,r){var i,n,a;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,a=t.length;n<a;n+=1)Es(t[n],e,r);else for(i=Object.keys(t),n=0,a=i.length;n<a;n+=1)Es(t[i[n]],e,r)}m(Es,"inspectNode");function HA(t,e){e=e||{};var r=new jm(e);r.noRefs||sy(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Ve(r,0,i,!0,!0)?r.dump+`
124
+ `:""}m(HA,"dump$1");function YA(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}m(YA,"renamed");var UA=Kg,jA=kA.load;/*! Bundled license information:
125
+
126
+ js-yaml/dist/js-yaml.mjs:
127
+ (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
128
+ */var Qt={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},mf={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function yn(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=Et(t),e=Et(e);const[r,i]=[t.x,t.y],[n,a]=[e.x,e.y],s=n-r,o=a-i;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}m(yn,"calculateDeltaAndAngle");var Et=m(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),XA=m(t=>({x:m(function(e,r,i){let n=0;const a=Et(i[0]).x<Et(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Qt,t.arrowTypeStart)){const{angle:d,deltaX:p}=yn(i[0],i[1]);n=Qt[t.arrowTypeStart]*Math.cos(d)*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Qt,t.arrowTypeEnd)){const{angle:d,deltaX:p}=yn(i[i.length-1],i[i.length-2]);n=Qt[t.arrowTypeEnd]*Math.cos(d)*(p>=0?1:-1)}const s=Math.abs(Et(e).x-Et(i[i.length-1]).x),o=Math.abs(Et(e).y-Et(i[i.length-1]).y),c=Math.abs(Et(e).x-Et(i[0]).x),l=Math.abs(Et(e).y-Et(i[0]).y),h=Qt[t.arrowTypeStart],u=Qt[t.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){let d=u+f-s;d*=a==="right"?-1:1,n-=d}if(c<h&&c>0&&l<h){let d=h+f-c;d*=a==="right"?-1:1,n+=d}return Et(e).x+n},"x"),y:m(function(e,r,i){let n=0;const a=Et(i[0]).y<Et(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Qt,t.arrowTypeStart)){const{angle:d,deltaY:p}=yn(i[0],i[1]);n=Qt[t.arrowTypeStart]*Math.abs(Math.sin(d))*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Qt,t.arrowTypeEnd)){const{angle:d,deltaY:p}=yn(i[i.length-1],i[i.length-2]);n=Qt[t.arrowTypeEnd]*Math.abs(Math.sin(d))*(p>=0?1:-1)}const s=Math.abs(Et(e).y-Et(i[i.length-1]).y),o=Math.abs(Et(e).x-Et(i[i.length-1]).x),c=Math.abs(Et(e).y-Et(i[0]).y),l=Math.abs(Et(e).x-Et(i[0]).x),h=Qt[t.arrowTypeStart],u=Qt[t.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){let d=u+f-s;d*=a==="up"?-1:1,n-=d}if(c<h&&c>0&&l<h){let d=h+f-c;d*=a==="up"?-1:1,n+=d}return Et(e).y+n},"y")}),"getLineFunctionsWithOffset"),hh=m(({flowchart:t})=>{var n,a;const e=((n=t==null?void 0:t.subGraphTitleMargin)==null?void 0:n.top)??0,r=((a=t==null?void 0:t.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),GA=m(t=>{const{handDrawnSeed:e}=kt();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),qi=m(t=>{const e=VA([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),VA=m(t=>{const e=new Map;return t.forEach(r=>{const[i,n]=r.split(":");e.set(i.trim(),n==null?void 0:n.trim())}),e},"styles2Map"),oy=m(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),K=m(t=>{const{stylesArray:e}=qi(t),r=[],i=[],n=[],a=[];return e.forEach(s=>{const o=s[0];oy(o)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),o.includes("stroke")&&n.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:a}},"styles2String"),Z=m((t,e)=>{var c;const{themeVariables:r,handDrawnSeed:i}=kt(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:s}=qi(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||n,seed:i,strokeWidth:((c=s.get("stroke-width"))==null?void 0:c.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:ZA(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),ZA=m(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const n=isNaN(e[0])?0:e[0];return[n,n]}const r=isNaN(e[0])?0:e[0],i=isNaN(e[1])?0:e[1];return[r,i]},"getStrokeDashArray"),uh={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.BLANK_URL=Wt.relativeFirstCharacters=Wt.whitespaceEscapeCharsRegex=Wt.urlSchemeRegex=Wt.ctrlCharactersRegex=Wt.htmlCtrlEntityRegex=Wt.htmlEntitiesRegex=Wt.invalidProtocolRegex=void 0;Wt.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Wt.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Wt.htmlCtrlEntityRegex=/&(newline|tab);/gi;Wt.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Wt.urlSchemeRegex=/^.+(:|&colon;)/gim;Wt.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Wt.relativeFirstCharacters=[".","/"];Wt.BLANK_URL="about:blank";Object.defineProperty(uh,"__esModule",{value:!0});var ly=uh.sanitizeUrl=void 0,Kt=Wt;function KA(t){return Kt.relativeFirstCharacters.indexOf(t[0])>-1}function QA(t){var e=t.replace(Kt.ctrlCharactersRegex,"");return e.replace(Kt.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function JA(t){return URL.canParse(t)}function yf(t){try{return decodeURIComponent(t)}catch{return t}}function tL(t){if(!t)return Kt.BLANK_URL;var e,r=yf(t.trim());do r=QA(r).replace(Kt.htmlCtrlEntityRegex,"").replace(Kt.ctrlCharactersRegex,"").replace(Kt.whitespaceEscapeCharsRegex,"").trim(),r=yf(r),e=r.match(Kt.ctrlCharactersRegex)||r.match(Kt.htmlEntitiesRegex)||r.match(Kt.htmlCtrlEntityRegex)||r.match(Kt.whitespaceEscapeCharsRegex);while(e&&e.length>0);var i=r;if(!i)return Kt.BLANK_URL;if(KA(i))return i;var n=i.trimStart(),a=n.match(Kt.urlSchemeRegex);if(!a)return i;var s=a[0].toLowerCase().trim();if(Kt.invalidProtocolRegex.test(s))return Kt.BLANK_URL;var o=n.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return o;if(s==="http:"||s==="https:"){if(!JA(o))return Kt.BLANK_URL;var c=new URL(o);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return o}ly=uh.sanitizeUrl=tL;var cy=typeof global=="object"&&global&&global.Object===Object&&global,eL=typeof self=="object"&&self&&self.Object===Object&&self,Ke=cy||eL||Function("return this")(),Bs=Ke.Symbol,hy=Object.prototype,rL=hy.hasOwnProperty,iL=hy.toString,on=Bs?Bs.toStringTag:void 0;function nL(t){var e=rL.call(t,on),r=t[on];try{t[on]=void 0;var i=!0}catch{}var n=iL.call(t);return i&&(e?t[on]=r:delete t[on]),n}var aL=Object.prototype,sL=aL.toString;function oL(t){return sL.call(t)}var lL="[object Null]",cL="[object Undefined]",xf=Bs?Bs.toStringTag:void 0;function Hi(t){return t==null?t===void 0?cL:lL:xf&&xf in Object(t)?nL(t):oL(t)}function ni(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var hL="[object AsyncFunction]",uL="[object Function]",fL="[object GeneratorFunction]",dL="[object Proxy]";function fh(t){if(!ni(t))return!1;var e=Hi(t);return e==uL||e==fL||e==hL||e==dL}var nl=Ke["__core-js_shared__"],bf=function(){var t=/[^.]+$/.exec(nl&&nl.keys&&nl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function pL(t){return!!bf&&bf in t}var gL=Function.prototype,mL=gL.toString;function ai(t){if(t!=null){try{return mL.call(t)}catch{}try{return t+""}catch{}}return""}var yL=/[\\^$.*+?()[\]{}|]/g,xL=/^\[object .+?Constructor\]$/,bL=Function.prototype,CL=Object.prototype,wL=bL.toString,_L=CL.hasOwnProperty,kL=RegExp("^"+wL.call(_L).replace(yL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SL(t){if(!ni(t)||pL(t))return!1;var e=fh(t)?kL:xL;return e.test(ai(t))}function vL(t,e){return t==null?void 0:t[e]}function si(t,e){var r=vL(t,e);return SL(r)?r:void 0}var Nn=si(Object,"create");function TL(){this.__data__=Nn?Nn(null):{},this.size=0}function AL(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var LL="__lodash_hash_undefined__",ML=Object.prototype,EL=ML.hasOwnProperty;function BL(t){var e=this.__data__;if(Nn){var r=e[t];return r===LL?void 0:r}return EL.call(e,t)?e[t]:void 0}var $L=Object.prototype,FL=$L.hasOwnProperty;function DL(t){var e=this.__data__;return Nn?e[t]!==void 0:FL.call(e,t)}var OL="__lodash_hash_undefined__";function IL(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Nn&&e===void 0?OL:e,this}function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=TL;Kr.prototype.delete=AL;Kr.prototype.get=BL;Kr.prototype.has=DL;Kr.prototype.set=IL;function RL(){this.__data__=[],this.size=0}function ho(t,e){return t===e||t!==t&&e!==e}function uo(t,e){for(var r=t.length;r--;)if(ho(t[r][0],e))return r;return-1}var PL=Array.prototype,NL=PL.splice;function zL(t){var e=this.__data__,r=uo(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():NL.call(e,r,1),--this.size,!0}function WL(t){var e=this.__data__,r=uo(e,t);return r<0?void 0:e[r][1]}function qL(t){return uo(this.__data__,t)>-1}function HL(t,e){var r=this.__data__,i=uo(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}function mr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}mr.prototype.clear=RL;mr.prototype.delete=zL;mr.prototype.get=WL;mr.prototype.has=qL;mr.prototype.set=HL;var zn=si(Ke,"Map");function YL(){this.size=0,this.__data__={hash:new Kr,map:new(zn||mr),string:new Kr}}function UL(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function fo(t,e){var r=t.__data__;return UL(e)?r[typeof e=="string"?"string":"hash"]:r.map}function jL(t){var e=fo(this,t).delete(t);return this.size-=e?1:0,e}function XL(t){return fo(this,t).get(t)}function GL(t){return fo(this,t).has(t)}function VL(t,e){var r=fo(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}function vr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}vr.prototype.clear=YL;vr.prototype.delete=jL;vr.prototype.get=XL;vr.prototype.has=GL;vr.prototype.set=VL;var ZL="Expected a function";function sa(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(ZL);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var s=t.apply(this,i);return r.cache=a.set(n,s)||a,s};return r.cache=new(sa.Cache||vr),r}sa.Cache=vr;function KL(){this.__data__=new mr,this.size=0}function QL(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function JL(t){return this.__data__.get(t)}function tM(t){return this.__data__.has(t)}var eM=200;function rM(t,e){var r=this.__data__;if(r instanceof mr){var i=r.__data__;if(!zn||i.length<eM-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new vr(i)}return r.set(t,e),this.size=r.size,this}function Yi(t){var e=this.__data__=new mr(t);this.size=e.size}Yi.prototype.clear=KL;Yi.prototype.delete=QL;Yi.prototype.get=JL;Yi.prototype.has=tM;Yi.prototype.set=rM;var $s=function(){try{var t=si(Object,"defineProperty");return t({},"",{}),t}catch{}}();function dh(t,e,r){e=="__proto__"&&$s?$s(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function nc(t,e,r){(r!==void 0&&!ho(t[e],r)||r===void 0&&!(e in t))&&dh(t,e,r)}function iM(t){return function(e,r,i){for(var n=-1,a=Object(e),s=i(e),o=s.length;o--;){var c=s[++n];if(r(a[c],c,a)===!1)break}return e}}var nM=iM(),uy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cf=uy&&typeof module=="object"&&module&&!module.nodeType&&module,aM=Cf&&Cf.exports===uy,wf=aM?Ke.Buffer:void 0,_f=wf?wf.allocUnsafe:void 0;function sM(t,e){if(e)return t.slice();var r=t.length,i=_f?_f(r):new t.constructor(r);return t.copy(i),i}var kf=Ke.Uint8Array;function oM(t){var e=new t.constructor(t.byteLength);return new kf(e).set(new kf(t)),e}function lM(t,e){var r=e?oM(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function cM(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}var Sf=Object.create,hM=function(){function t(){}return function(e){if(!ni(e))return{};if(Sf)return Sf(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function fy(t,e){return function(r){return t(e(r))}}var dy=fy(Object.getPrototypeOf,Object),uM=Object.prototype;function po(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||uM;return t===r}function fM(t){return typeof t.constructor=="function"&&!po(t)?hM(dy(t)):{}}function oa(t){return t!=null&&typeof t=="object"}var dM="[object Arguments]";function vf(t){return oa(t)&&Hi(t)==dM}var py=Object.prototype,pM=py.hasOwnProperty,gM=py.propertyIsEnumerable,Fs=vf(function(){return arguments}())?vf:function(t){return oa(t)&&pM.call(t,"callee")&&!gM.call(t,"callee")},Ds=Array.isArray,mM=9007199254740991;function gy(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=mM}function go(t){return t!=null&&gy(t.length)&&!fh(t)}function yM(t){return oa(t)&&go(t)}function xM(){return!1}var my=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tf=my&&typeof module=="object"&&module&&!module.nodeType&&module,bM=Tf&&Tf.exports===my,Af=bM?Ke.Buffer:void 0,CM=Af?Af.isBuffer:void 0,ph=CM||xM,wM="[object Object]",_M=Function.prototype,kM=Object.prototype,yy=_M.toString,SM=kM.hasOwnProperty,vM=yy.call(Object);function TM(t){if(!oa(t)||Hi(t)!=wM)return!1;var e=dy(t);if(e===null)return!0;var r=SM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&yy.call(r)==vM}var AM="[object Arguments]",LM="[object Array]",MM="[object Boolean]",EM="[object Date]",BM="[object Error]",$M="[object Function]",FM="[object Map]",DM="[object Number]",OM="[object Object]",IM="[object RegExp]",RM="[object Set]",PM="[object String]",NM="[object WeakMap]",zM="[object ArrayBuffer]",WM="[object DataView]",qM="[object Float32Array]",HM="[object Float64Array]",YM="[object Int8Array]",UM="[object Int16Array]",jM="[object Int32Array]",XM="[object Uint8Array]",GM="[object Uint8ClampedArray]",VM="[object Uint16Array]",ZM="[object Uint32Array]",Lt={};Lt[qM]=Lt[HM]=Lt[YM]=Lt[UM]=Lt[jM]=Lt[XM]=Lt[GM]=Lt[VM]=Lt[ZM]=!0;Lt[AM]=Lt[LM]=Lt[zM]=Lt[MM]=Lt[WM]=Lt[EM]=Lt[BM]=Lt[$M]=Lt[FM]=Lt[DM]=Lt[OM]=Lt[IM]=Lt[RM]=Lt[PM]=Lt[NM]=!1;function KM(t){return oa(t)&&gy(t.length)&&!!Lt[Hi(t)]}function QM(t){return function(e){return t(e)}}var xy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ln=xy&&typeof module=="object"&&module&&!module.nodeType&&module,JM=Ln&&Ln.exports===xy,al=JM&&cy.process,Lf=function(){try{var t=Ln&&Ln.require&&Ln.require("util").types;return t||al&&al.binding&&al.binding("util")}catch{}}(),Mf=Lf&&Lf.isTypedArray,gh=Mf?QM(Mf):KM;function ac(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var tE=Object.prototype,eE=tE.hasOwnProperty;function rE(t,e,r){var i=t[e];(!(eE.call(t,e)&&ho(i,r))||r===void 0&&!(e in t))&&dh(t,e,r)}function iE(t,e,r,i){var n=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var o=e[a],c=void 0;c===void 0&&(c=t[o]),n?dh(r,o,c):rE(r,o,c)}return r}function nE(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}var aE=9007199254740991,sE=/^(?:0|[1-9]\d*)$/;function by(t,e){var r=typeof t;return e=e??aE,!!e&&(r=="number"||r!="symbol"&&sE.test(t))&&t>-1&&t%1==0&&t<e}var oE=Object.prototype,lE=oE.hasOwnProperty;function cE(t,e){var r=Ds(t),i=!r&&Fs(t),n=!r&&!i&&ph(t),a=!r&&!i&&!n&&gh(t),s=r||i||n||a,o=s?nE(t.length,String):[],c=o.length;for(var l in t)(e||lE.call(t,l))&&!(s&&(l=="length"||n&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||by(l,c)))&&o.push(l);return o}function hE(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var uE=Object.prototype,fE=uE.hasOwnProperty;function dE(t){if(!ni(t))return hE(t);var e=po(t),r=[];for(var i in t)i=="constructor"&&(e||!fE.call(t,i))||r.push(i);return r}function Cy(t){return go(t)?cE(t,!0):dE(t)}function pE(t){return iE(t,Cy(t))}function gE(t,e,r,i,n,a,s){var o=ac(t,r),c=ac(e,r),l=s.get(c);if(l){nc(t,r,l);return}var h=a?a(o,c,r+"",t,e,s):void 0,u=h===void 0;if(u){var f=Ds(c),d=!f&&ph(c),p=!f&&!d&&gh(c);h=c,f||d||p?Ds(o)?h=o:yM(o)?h=cM(o):d?(u=!1,h=sM(c,!0)):p?(u=!1,h=lM(c,!0)):h=[]:TM(c)||Fs(c)?(h=o,Fs(o)?h=pE(o):(!ni(o)||fh(o))&&(h=fM(c))):u=!1}u&&(s.set(c,h),n(h,c,i,a,s),s.delete(c)),nc(t,r,h)}function wy(t,e,r,i,n){t!==e&&nM(e,function(a,s){if(n||(n=new Yi),ni(a))gE(t,e,s,r,wy,i,n);else{var o=i?i(ac(t,s),a,s+"",t,e,n):void 0;o===void 0&&(o=a),nc(t,s,o)}},Cy)}function _y(t){return t}function mE(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var Ef=Math.max;function yE(t,e,r){return e=Ef(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,a=Ef(i.length-e,0),s=Array(a);++n<a;)s[n]=i[e+n];n=-1;for(var o=Array(e+1);++n<e;)o[n]=i[n];return o[e]=r(s),mE(t,this,o)}}function xE(t){return function(){return t}}var bE=$s?function(t,e){return $s(t,"toString",{configurable:!0,enumerable:!1,value:xE(e),writable:!0})}:_y,CE=800,wE=16,_E=Date.now;function kE(t){var e=0,r=0;return function(){var i=_E(),n=wE-(i-r);if(r=i,n>0){if(++e>=CE)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var SE=kE(bE);function vE(t,e){return SE(yE(t,e,_y),t+"")}function TE(t,e,r){if(!ni(r))return!1;var i=typeof e;return(i=="number"?go(r)&&by(e,r.length):i=="string"&&e in r)?ho(r[e],t):!1}function AE(t){return vE(function(e,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(n--,a):void 0,s&&TE(r[0],r[1],s)&&(a=n<3?void 0:a,n=1),e=Object(e);++i<n;){var o=r[i];o&&t(e,o,i,a)}return e})}var LE=AE(function(t,e,r){wy(t,e,r)}),ME="​",EE={curveBasis:Ua,curveBasisClosed:BT,curveBasisOpen:$T,curveBumpX:sg,curveBumpY:og,curveBundle:FT,curveCardinalClosed:DT,curveCardinalOpen:OT,curveCardinal:ug,curveCatmullRomClosed:IT,curveCatmullRomOpen:RT,curveCatmullRom:dg,curveLinear:ws,curveLinearClosed:PT,curveMonotoneX:bg,curveMonotoneY:Cg,curveNatural:_g,curveStep:kg,curveStepAfter:vg,curveStepBefore:Sg},BE=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,$E=m(function(t,e){const r=ky(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const s=r.map(o=>o.args);ts(s),i=Rt(i,[...s])}else i=r.args;if(!i)return;let n=Fc(t,e);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),ky=m(function(t,e=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${BE.source})(?=[}][%]{2}).*
129
+ `,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),P.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let a;const s=[];for(;(a=vn.exec(t))!==null;)if(a.index===vn.lastIndex&&vn.lastIndex++,a&&!e||e&&((r=a[1])!=null&&r.match(e))||e&&((i=a[2])!=null&&i.match(e))){const o=a[1]?a[1]:a[2],c=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:o,args:c})}return s.length===0?{type:t,args:null}:s.length===1?s[0]:s}catch(n){return P.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),FE=m(function(t){return t.replace(vn,"")},"removeDirectives"),DE=m(function(t,e){for(const[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");function mh(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return EE[r]??e}m(mh,"interpolateToCurve");function Sy(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?ly(r):r}m(Sy,"formatUrl");var OE=m((t,...e)=>{const r=t.split("."),i=r.length-1,n=r[i];let a=window;for(let s=0;s<i;s++)if(a=a[r[s]],!a){P.error(`Function name: ${t} not found in window`);return}a[n](...e)},"runFunc");function yh(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}m(yh,"distance");function vy(t){let e,r=0;t.forEach(n=>{r+=yh(n,e),e=n});const i=r/2;return xh(t,i)}m(vy,"traverseEdge");function Ty(t){return t.length===1?t[0]:vy(t)}m(Ty,"calcLabelPosition");var Bf=m((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),xh=m((t,e)=>{let r,i=e;for(const n of t){if(r){const a=yh(n,r);if(a===0)return r;if(a<i)i-=a;else{const s=i/a;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:Bf((1-s)*r.x+s*n.x,5),y:Bf((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),IE=m((t,e,r)=>{P.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const n=xh(e,25),a=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+n.x)/2,o.y=-Math.cos(s)*a+(e[0].y+n.y)/2,o},"calcCardinalityPosition");function Ay(t,e,r){const i=structuredClone(r);P.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();const n=25+t,a=xh(i,n),s=10+t*.5,o=Math.atan2(i[0].y-a.y,i[0].x-a.x),c={x:0,y:0};return e==="start_left"?(c.x=Math.sin(o+Math.PI)*s+(i[0].x+a.x)/2,c.y=-Math.cos(o+Math.PI)*s+(i[0].y+a.y)/2):e==="end_right"?(c.x=Math.sin(o-Math.PI)*s+(i[0].x+a.x)/2-5,c.y=-Math.cos(o-Math.PI)*s+(i[0].y+a.y)/2-5):e==="end_left"?(c.x=Math.sin(o)*s+(i[0].x+a.x)/2-5,c.y=-Math.cos(o)*s+(i[0].y+a.y)/2-5):(c.x=Math.sin(o)*s+(i[0].x+a.x)/2,c.y=-Math.cos(o)*s+(i[0].y+a.y)/2),c}m(Ay,"calcTerminalLabelPosition");function Ly(t){let e="",r="";for(const i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}m(Ly,"getStylesFromArray");var $f=0,RE=m(()=>($f++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$f),"generateId");function My(t){let e="";const r="0123456789abcdef",i=r.length;for(let n=0;n<t;n++)e+=r.charAt(Math.floor(Math.random()*i));return e}m(My,"makeRandomHex");var PE=m(t=>My(t.length),"random"),NE=m(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),zE=m(function(t,e){const r=e.text.replace(Wi.lineBreakRegex," "),[,i]=mo(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",i),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const a=n.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),n},"drawSimpleText"),WE=sa((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Wi.lineBreakRegex.test(t)))return t;const i=t.split(" ").filter(Boolean),n=[];let a="";return i.forEach((s,o)=>{const c=pr(`${s} `,r),l=pr(a,r);if(c>e){const{hyphenatedStrings:f,remainingWord:d}=qE(s,e,"-",r);n.push(a,...f),a=d}else l+c>=e?(n.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===i.length&&n.push(a)}),n.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),qE=sa((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...t],a=[];let s="";return n.forEach((o,c)=>{const l=`${s}${o}`;if(pr(l,i)>=e){const u=c+1,f=n.length===u,d=`${l}${r}`;a.push(f?l:d),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Ey(t,e){return bh(t,e).height}m(Ey,"calculateTextHeight");function pr(t,e){return bh(t,e).width}m(pr,"calculateTextWidth");var bh=sa((t,e)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,a]=mo(r),s=["sans-serif",i],o=t.split(Wi.lineBreakRegex),c=[],l=bt("body");if(!l.remove)return{width:0,height:0,lineHeight:0};const h=l.append("svg");for(const f of s){let d=0;const p={width:0,height:0,lineHeight:0};for(const g of o){const x=NE();x.text=g||ME;const y=zE(h,x).style("font-size",a).style("font-weight",n).style("font-family",f),b=(y._groups||y)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,b.width)),d=Math.round(b.height),p.height+=d,p.lineHeight=Math.round(Math.max(p.lineHeight,d))}c.push(p)}h.remove();const u=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[u]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),Qn,HE=(Qn=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},m(Qn,"InitIDGenerator"),Qn),Aa,YE=m(function(t){return Aa=Aa||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Aa.innerHTML=t,unescape(Aa.textContent)},"entityDecode");function Ch(t){return"str"in t}m(Ch,"isDetailedError");var UE=m((t,e,r,i)=>{var a;if(!i)return;const n=(a=t.node())==null?void 0:a.getBBox();n&&t.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},"insertTitle"),mo=m(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function wh(t,e){return LE({},t,e)}m(wh,"cleanAndMerge");var Fe={assignWithDepth:Rt,wrapLabel:WE,calculateTextHeight:Ey,calculateTextWidth:pr,calculateTextDimensions:bh,cleanAndMerge:wh,detectInit:$E,detectDirective:ky,isSubstringInArray:DE,interpolateToCurve:mh,calcLabelPosition:Ty,calcCardinalityPosition:IE,calcTerminalLabelPosition:Ay,formatUrl:Sy,getStylesFromArray:Ly,generateId:RE,random:PE,runFunc:OE,entityDecode:YE,insertTitle:UE,isLabelCoordinateInPath:By,parseFontSize:mo,InitIDGenerator:HE},jE=m(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),e},"encodeEntities"),oi=m(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tR=m((t,e,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${t}_${e}_${r}${n?`_${n}`:""}`,"getEdgeId");function re(t){return t??null}m(re,"handleUndefinedAttr");function By(t,e){const r=Math.round(t.x),i=Math.round(t.y),n=e.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}m(By,"isLabelCoordinateInPath");const XE=Object.freeze({left:0,top:0,width:16,height:16}),Os=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$y=Object.freeze({...XE,...Os}),GE=Object.freeze({...$y,body:"",hidden:!1}),VE=Object.freeze({width:null,height:null}),ZE=Object.freeze({...VE,...Os}),KE=(t,e,r,i="")=>{const n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const o=n.pop(),c=n.pop(),l={provider:n.length>0?n[0]:i,prefix:c,name:o};return sl(l)?l:null}const a=n[0],s=a.split("-");if(s.length>1){const o={provider:i,prefix:s.shift(),name:s.join("-")};return sl(o)?o:null}if(r&&i===""){const o={provider:i,prefix:"",name:a};return sl(o,r)?o:null}return null},sl=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function QE(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}function Ff(t,e){const r=QE(t,e);for(const i in GE)i in Os?i in t&&!(i in r)&&(r[i]=Os[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function JE(t,e){const r=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);function a(s){if(r[s])return n[s]=[];if(!(s in n)){n[s]=null;const o=i[s]&&i[s].parent,c=o&&a(o);c&&(n[s]=[o].concat(c))}return n[s]}return(e||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function Df(t,e,r){const i=t.icons,n=t.aliases||Object.create(null);let a={};function s(o){a=Ff(i[o]||n[o],a)}return s(e),r.forEach(s),Ff(t,a)}function tB(t,e){if(t.icons[e])return Df(t,e,[]);const r=JE(t,[e])[e];return r?Df(t,e,r):null}const eB=/(-?[0-9.]*[0-9]+[0-9.]*)/g,rB=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Of(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const i=t.split(eB);if(i===null||!i.length)return t;const n=[];let a=i.shift(),s=rB.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?n.push(a):n.push(Math.ceil(o*e*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");s=!s}}function iB(t,e="defs"){let r="";const i=t.indexOf("<"+e);for(;i>=0;){const n=t.indexOf(">",i),a=t.indexOf("</"+e);if(n===-1||a===-1)break;const s=t.indexOf(">",a);if(s===-1)break;r+=t.slice(n+1,a).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:r,content:t}}function nB(t,e){return t?"<defs>"+t+"</defs>"+e:e}function aB(t,e,r){const i=iB(t);return nB(i.defs,e+i.content+r)}const sB=t=>t==="unset"||t==="undefined"||t==="none";function oB(t,e){const r={...$y,...t},i={...ZE,...e},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(g=>{const x=[],y=g.hFlip,b=g.vFlip;let w=g.rotate;y?b?w+=2:(x.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),x.push("scale(-1 1)"),n.top=n.left=0):b&&(x.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),x.push("scale(1 -1)"),n.top=n.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=n.height/2+n.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:k=n.width/2+n.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(n.left!==n.top&&(k=n.left,n.left=n.top,n.top=k),n.width!==n.height&&(k=n.width,n.width=n.height,n.height=k)),x.length&&(a=aB(a,'<g transform="'+x.join(" ")+'">',"</g>"))});const s=i.width,o=i.height,c=n.width,l=n.height;let h,u;s===null?(u=o===null?"1em":o==="auto"?l:o,h=Of(u,c/l)):(h=s==="auto"?c:s,u=o===null?Of(h,l/c):o==="auto"?l:o);const f={},d=(g,x)=>{sB(x)||(f[g]=x.toString())};d("width",h),d("height",u);const p=[n.left,n.top,c,l];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:a}}const lB=/\sid="(\S+)"/g,If=new Map;function cB(t){t=t.replace(/[0-9]+$/,"")||"a";const e=If.get(t)||0;return If.set(t,e+1),e?`${t}${e}`:t}function hB(t){const e=[];let r;for(;r=lB.exec(t);)e.push(r[1]);if(!e.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{const a=cB(n),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}function uB(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)r+=" "+i+'="'+e[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}function _h(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var li=_h();function Fy(t){li=t}var Mn={exec:()=>null};function _t(t,e=""){let r=typeof t=="string"?t:t.source,i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(le.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,e)};return i}var fB=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),le={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},dB=/^(?:[ \t]*(?:\n|$))+/,pB=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,gB=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,la=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,mB=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,kh=/(?:[*+-]|\d{1,9}[.)])/,Dy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Oy=_t(Dy).replace(/bull/g,kh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),yB=_t(Dy).replace(/bull/g,kh).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Sh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xB=/^[^\n]+/,vh=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bB=_t(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),CB=_t(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,kh).getRegex(),yo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Th=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wB=_t("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Th).replace("tag",yo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Iy=_t(Sh).replace("hr",la).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yo).getRegex(),_B=_t(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Iy).getRegex(),Ah={blockquote:_B,code:pB,def:bB,fences:gB,heading:mB,hr:la,html:wB,lheading:Oy,list:CB,newline:dB,paragraph:Iy,table:Mn,text:xB},Rf=_t("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",la).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yo).getRegex(),kB={...Ah,lheading:yB,table:Rf,paragraph:_t(Sh).replace("hr",la).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Rf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yo).getRegex()},SB={...Ah,html:_t(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Th).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Mn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_t(Sh).replace("hr",la).replace("heading",` *#{1,6} *[^
130
+ ]`).replace("lheading",Oy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vB=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,TB=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ry=/^( {2,}|\\)\n(?!\s*$)/,AB=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xo=/[\p{P}\p{S}]/u,Lh=/[\s\p{P}\p{S}]/u,Py=/[^\s\p{P}\p{S}]/u,LB=_t(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Lh).getRegex(),Ny=/(?!~)[\p{P}\p{S}]/u,MB=/(?!~)[\s\p{P}\p{S}]/u,EB=/(?:[^\s\p{P}\p{S}]|~)/u,BB=_t(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",fB?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$B=_t(zy,"u").replace(/punct/g,xo).getRegex(),FB=_t(zy,"u").replace(/punct/g,Ny).getRegex(),Wy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",DB=_t(Wy,"gu").replace(/notPunctSpace/g,Py).replace(/punctSpace/g,Lh).replace(/punct/g,xo).getRegex(),OB=_t(Wy,"gu").replace(/notPunctSpace/g,EB).replace(/punctSpace/g,MB).replace(/punct/g,Ny).getRegex(),IB=_t("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Py).replace(/punctSpace/g,Lh).replace(/punct/g,xo).getRegex(),RB=_t(/\\(punct)/,"gu").replace(/punct/g,xo).getRegex(),PB=_t(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),NB=_t(Th).replace("(?:-->|$)","-->").getRegex(),zB=_t("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",NB).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Is=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,WB=_t(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Is).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qy=_t(/^!?\[(label)\]\[(ref)\]/).replace("label",Is).replace("ref",vh).getRegex(),Hy=_t(/^!?\[(ref)\](?:\[\])?/).replace("ref",vh).getRegex(),qB=_t("reflink|nolink(?!\\()","g").replace("reflink",qy).replace("nolink",Hy).getRegex(),Pf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Mh={_backpedal:Mn,anyPunctuation:RB,autolink:PB,blockSkip:BB,br:Ry,code:TB,del:Mn,emStrongLDelim:$B,emStrongRDelimAst:DB,emStrongRDelimUnd:IB,escape:vB,link:WB,nolink:Hy,punctuation:LB,reflink:qy,reflinkSearch:qB,tag:zB,text:AB,url:Mn},HB={...Mh,link:_t(/^!?\[(label)\]\((.*?)\)/).replace("label",Is).getRegex(),reflink:_t(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Is).getRegex()},sc={...Mh,emStrongRDelimAst:OB,emStrongLDelim:FB,url:_t(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Pf).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_t(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Pf).getRegex()},YB={...sc,br:_t(Ry).replace("{2,}","*").getRegex(),text:_t(sc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},La={normal:Ah,gfm:kB,pedantic:SB},ln={normal:Mh,gfm:sc,breaks:YB,pedantic:HB},UB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Nf=t=>UB[t];function He(t,e){if(e){if(le.escapeTest.test(t))return t.replace(le.escapeReplace,Nf)}else if(le.escapeTestNoEncode.test(t))return t.replace(le.escapeReplaceNoEncode,Nf);return t}function zf(t){try{t=encodeURI(t).replace(le.percentDecode,"%")}catch{return null}return t}function Wf(t,e){var a;let r=t.replace(le.findPipe,(s,o,c)=>{let l=!1,h=o;for(;--h>=0&&c[h]==="\\";)l=!l;return l?"|":" |"}),i=r.split(le.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(le.slashPipe,"|");return i}function cn(t,e,r){let i=t.length;if(i===0)return"";let n=0;for(;n<i&&t.charAt(i-n-1)===e;)n++;return t.slice(0,i-n)}function jB(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&(r--,r<0))return i;return r>0?-2:-1}function qf(t,e,r,i,n){let a=e.href,s=e.title||null,o=t[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,c}function XB(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(i===null)return e;let n=i[1];return e.split(`
131
+ `).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=n.length?a.slice(n.length):a}).join(`
132
+ `)}var Rs=class{constructor(e){Tt(this,"options");Tt(this,"rules");Tt(this,"lexer");this.options=e||li}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:cn(i,`
133
+ `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let i=r[0],n=XB(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=cn(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:cn(r[0],`
134
+ `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let i=cn(r[0],`
135
+ `).split(`
136
+ `),n="",a="",s=[];for(;i.length>0;){let o=!1,c=[],l;for(l=0;l<i.length;l++)if(this.rules.other.blockquoteStart.test(i[l]))c.push(i[l]),o=!0;else if(!o)c.push(i[l]);else break;i=i.slice(l);let h=c.join(`
137
+ `),u=h.replace(this.rules.other.blockquoteSetextReplace,`
138
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
139
+ ${h}`:h,a=a?`${a}
140
+ ${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=f,i.length===0)break;let d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let p=d,g=p.raw+`
141
+ `+i.join(`
142
+ `),x=this.blockquote(g);s[s.length-1]=x,n=n.substring(0,n.length-p.raw.length)+x.raw,a=a.substring(0,a.length-p.text.length)+x.text;break}else if((d==null?void 0:d.type)==="list"){let p=d,g=p.raw+`
143
+ `+i.join(`
144
+ `),x=this.list(g);s[s.length-1]=x,n=n.substring(0,n.length-d.raw.length)+x.raw,a=a.substring(0,a.length-p.raw.length)+x.raw,i=g.substring(s.at(-1).raw.length).split(`
145
+ `);continue}}return{type:"blockquote",raw:n,tokens:s,text:a}}}list(e){let r=this.rules.block.list.exec(e);if(r){let i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let s=this.rules.other.listItemRegex(i),o=!1;for(;e;){let l=!1,h="",u="";if(!(r=s.exec(e))||this.rules.block.hr.test(e))break;h=r[0],e=e.substring(h.length);let f=r[2].split(`
146
+ `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),d=e.split(`
147
+ `,1)[0],p=!f.trim(),g=0;if(this.options.pedantic?(g=2,u=f.trimStart()):p?g=r[1].length+1:(g=r[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,u=f.slice(g),g+=r[1].length),p&&this.rules.other.blankLine.test(d)&&(h+=d+`
148
+ `,e=e.substring(d.length+1),l=!0),!l){let b=this.rules.other.nextBulletRegex(g),w=this.rules.other.hrRegex(g),k=this.rules.other.fencesBeginRegex(g),_=this.rules.other.headingBeginRegex(g),C=this.rules.other.htmlBeginRegex(g);for(;e;){let S=e.split(`
149
+ `,1)[0],F;if(d=S,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),F=d):F=d.replace(this.rules.other.tabCharGlobal," "),k.test(d)||_.test(d)||C.test(d)||b.test(d)||w.test(d))break;if(F.search(this.rules.other.nonSpaceChar)>=g||!d.trim())u+=`
150
+ `+F.slice(g);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(f)||_.test(f)||w.test(f))break;u+=`
151
+ `+d}!p&&!d.trim()&&(p=!0),h+=S+`
152
+ `,e=e.substring(S.length+1),f=F.slice(g)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0));let x=null,y;this.options.gfm&&(x=this.rules.other.listIsTask.exec(u),x&&(y=x[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:h,task:!!x,checked:y,loose:!1,text:u,tokens:[]}),a.raw+=h}let c=a.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l=0;l<a.items.length;l++)if(this.lexer.state.top=!1,a.items[l].tokens=this.lexer.blockTokens(a.items[l].text,[]),!a.loose){let h=a.items[l].tokens.filter(f=>f.type==="space"),u=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=u}if(a.loose)for(let l=0;l<a.items.length;l++)a.items[l].loose=!0;return a}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(e){var o;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=Wf(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(o=r[3])!=null&&o.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
153
+ `):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let c of n)this.rules.other.tableAlignRight.test(c)?s.align.push("right"):this.rules.other.tableAlignCenter.test(c)?s.align.push("center"):this.rules.other.tableAlignLeft.test(c)?s.align.push("left"):s.align.push(null);for(let c=0;c<i.length;c++)s.header.push({text:i[c],tokens:this.lexer.inline(i[c]),header:!0,align:s.align[c]});for(let c of a)s.rows.push(Wf(c,s.header.length).map((l,h)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[h]})));return s}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let i=r[1].charAt(r[1].length-1)===`
154
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let s=cn(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=jB(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),qf(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[n.toLowerCase()];if(!a){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return qf(i,a,i[0],this.lexer,this.rules)}}emStrong(e,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...n[0]].length-1,s,o,c=a,l=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*e.length+a);(n=h.exec(r))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){c+=o;continue}else if((n[5]||n[6])&&a%3&&!((a+o)%3)){l+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+l);let u=[...n[0]][0].length,f=e.slice(0,a+n.index+u+o);if(Math.min(a,o)%2){let p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(e){var i;let r;if(r=this.rules.inline.url.exec(e)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let s;do s=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(s!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},Ee=class oc{constructor(e){Tt(this,"tokens");Tt(this,"options");Tt(this,"state");Tt(this,"tokenizer");Tt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||li,this.options.tokenizer=this.options.tokenizer||new Rs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:le,block:La.normal,inline:ln.normal};this.options.pedantic?(r.block=La.pedantic,r.inline=ln.pedantic):this.options.gfm&&(r.block=La.gfm,this.options.breaks?r.inline=ln.breaks:r.inline=ln.gfm),this.tokenizer.rules=r}static get rules(){return{block:La,inline:ln}}static lex(e,r){return new oc(r).lex(e)}static lexInline(e,r){return new oc(r).inlineTokens(e)}lex(e){e=e.replace(le.carriageReturn,`
155
+ `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],i=!1){var n,a,s;for(this.options.pedantic&&(e=e.replace(le.tabCharGlobal," ").replace(le.spaceLine,""));e;){let o;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(l=>(o=l.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let l=r.at(-1);o.raw.length===1&&l!==void 0?l.raw+=`
156
+ `:r.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
157
+ `)?"":`
158
+ `)+o.raw,l.text+=`
159
+ `+o.text,this.inlineQueue.at(-1).src=l.text):r.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
160
+ `)?"":`
161
+ `)+o.raw,l.text+=`
162
+ `+o.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),r.push(o);continue}let c=e;if((s=this.options.extensions)!=null&&s.startBlock){let l=1/0,h=e.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},h),typeof u=="number"&&u>=0&&(l=Math.min(l,u))}),l<1/0&&l>=0&&(c=e.substring(0,l+1))}if(this.state.top&&(o=this.tokenizer.paragraph(c))){let l=r.at(-1);i&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=(l.raw.endsWith(`
163
+ `)?"":`
164
+ `)+o.raw,l.text+=`
165
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(o),i=c.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
166
+ `)?"":`
167
+ `)+o.raw,l.text+=`
168
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(o);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){var c,l,h,u,f;let i=e,n=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((l=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:l.call({lexer:this},i))??i;let s=!1,o="";for(;e;){s||(o=""),s=!1;let d;if((u=(h=this.options.extensions)==null?void 0:h.inline)!=null&&u.some(g=>(d=g.call({lexer:this},e,r))?(e=e.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(e)){e=e.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(e)){e=e.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(e)){e=e.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(d.raw.length);let g=r.at(-1);d.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(e,i,o)){e=e.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(e)){e=e.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(e)){e=e.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(e)){e=e.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(e)){e=e.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(e))){e=e.substring(d.raw.length),r.push(d);continue}let p=e;if((f=this.options.extensions)!=null&&f.startInline){let g=1/0,x=e.slice(1),y;this.options.extensions.startInline.forEach(b=>{y=b.call({lexer:this},x),typeof y=="number"&&y>=0&&(g=Math.min(g,y))}),g<1/0&&g>=0&&(p=e.substring(0,g+1))}if(d=this.tokenizer.inlineText(p)){e=e.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),s=!0;let g=r.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(e){let g="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},Ps=class{constructor(e){Tt(this,"options");Tt(this,"parser");this.options=e||li}space(e){return""}code({text:e,lang:r,escaped:i}){var s;let n=(s=(r||"").match(le.notSpaceStart))==null?void 0:s[0],a=e.replace(le.endingNewline,"")+`
169
+ `;return n?'<pre><code class="language-'+He(n)+'">'+(i?a:He(a,!0))+`</code></pre>
170
+ `:"<pre><code>"+(i?a:He(a,!0))+`</code></pre>
171
+ `}blockquote({tokens:e}){return`<blockquote>
172
+ ${this.parser.parse(e)}</blockquote>
173
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:r}){return`<h${r}>${this.parser.parseInline(e)}</h${r}>
174
+ `}hr(e){return`<hr>
175
+ `}list(e){let r=e.ordered,i=e.start,n="";for(let o=0;o<e.items.length;o++){let c=e.items[o];n+=this.listitem(c)}let a=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+a+s+`>
176
+ `+n+"</"+a+`>
177
+ `}listitem(e){var i;let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?((i=e.tokens[0])==null?void 0:i.type)==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+He(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>
178
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
179
+ `}table(e){let r="",i="";for(let a=0;a<e.header.length;a++)i+=this.tablecell(e.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<e.rows.length;a++){let s=e.rows[a];i="";for(let o=0;o<s.length;o++)i+=this.tablecell(s[o]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
180
+ <thead>
181
+ `+r+`</thead>
182
+ `+n+`</table>
183
+ `}tablerow({text:e}){return`<tr>
184
+ ${e}</tr>
185
+ `}tablecell(e){let r=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+r+`</${i}>
186
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${He(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:i}){let n=this.parser.parseInline(i),a=zf(e);if(a===null)return n;e=a;let s='<a href="'+e+'"';return r&&(s+=' title="'+He(r)+'"'),s+=">"+n+"</a>",s}image({href:e,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=zf(e);if(a===null)return He(i);e=a;let s=`<img src="${e}" alt="${i}"`;return r&&(s+=` title="${He(r)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:He(e.text)}},Eh=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Be=class lc{constructor(e){Tt(this,"options");Tt(this,"renderer");Tt(this,"textRenderer");this.options=e||li,this.options.renderer=this.options.renderer||new Ps,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Eh}static parse(e,r){return new lc(r).parse(e)}static parseInline(e,r){return new lc(r).parseInline(e)}parse(e,r=!0){var n,a;let i="";for(let s=0;s<e.length;s++){let o=e[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[o.type]){let l=o,h=this.options.extensions.renderers[l.type].call({parser:this},l);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){i+=h||"";continue}}let c=o;switch(c.type){case"space":{i+=this.renderer.space(c);continue}case"hr":{i+=this.renderer.hr(c);continue}case"heading":{i+=this.renderer.heading(c);continue}case"code":{i+=this.renderer.code(c);continue}case"table":{i+=this.renderer.table(c);continue}case"blockquote":{i+=this.renderer.blockquote(c);continue}case"list":{i+=this.renderer.list(c);continue}case"html":{i+=this.renderer.html(c);continue}case"def":{i+=this.renderer.def(c);continue}case"paragraph":{i+=this.renderer.paragraph(c);continue}case"text":{let l=c,h=this.renderer.text(l);for(;s+1<e.length&&e[s+1].type==="text";)l=e[++s],h+=`
187
+ `+this.renderer.text(l);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(e,r=this.renderer){var n,a;let i="";for(let s=0;s<e.length;s++){let o=e[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[o.type]){let l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=l||"";continue}}let c=o;switch(c.type){case"escape":{i+=r.text(c);break}case"html":{i+=r.html(c);break}case"link":{i+=r.link(c);break}case"image":{i+=r.image(c);break}case"strong":{i+=r.strong(c);break}case"em":{i+=r.em(c);break}case"codespan":{i+=r.codespan(c);break}case"br":{i+=r.br(c);break}case"del":{i+=r.del(c);break}case"text":{i+=r.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},Oa,xn=(Oa=class{constructor(e){Tt(this,"options");Tt(this,"block");this.options=e||li}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Ee.lex:Ee.lexInline}provideParser(){return this.block?Be.parse:Be.parseInline}},Tt(Oa,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Tt(Oa,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Oa),GB=class{constructor(...e){Tt(this,"defaults",_h());Tt(this,"options",this.setOptions);Tt(this,"parse",this.parseMarkdown(!0));Tt(this,"parseInline",this.parseMarkdown(!1));Tt(this,"Parser",Be);Tt(this,"Renderer",Ps);Tt(this,"TextRenderer",Eh);Tt(this,"Lexer",Ee);Tt(this,"Tokenizer",Rs);Tt(this,"Hooks",xn);this.use(...e)}walkTokens(e,r){var n,a;let i=[];for(let s of e)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let c of o.header)i=i.concat(this.walkTokens(c.tokens,r));for(let c of o.rows)for(let l of c)i=i.concat(this.walkTokens(l.tokens,r));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=s;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(c=>{let l=o[c].flat(1/0);i=i.concat(this.walkTokens(l,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let c=a.renderer.apply(this,o);return c===!1&&(c=s.apply(this,o)),c}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new Ps(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,c=i.renderer[o],l=a[o];a[o]=(...h)=>{let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Rs(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,c=i.tokenizer[o],l=a[o];a[o]=(...h)=>{let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new xn;for(let s in i.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,c=i.hooks[o],l=a[o];xn.passThroughHooks.has(s)?a[o]=h=>{if(this.defaults.async&&xn.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await c.call(a,h);return l.call(a,f)})();let u=c.call(a,h);return l.call(a,u)}:a[o]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await c.apply(a,h);return f===!1&&(f=await l.apply(a,h)),f})();let u=c.apply(a,h);return u===!1&&(u=l.apply(a,h)),u}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(o){let c=[];return c.push(s.call(this,o)),a&&(c=c.concat(a.call(this,o))),c}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Ee.lex(e,r??this.defaults)}parser(e,r){return Be.parse(e,r??this.defaults)}parseMarkdown(e){return(r,i)=>{let n={...i},a={...this.defaults,...n},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,c=await(a.hooks?await a.hooks.provideLexer():e?Ee.lex:Ee.lexInline)(o,a),l=a.hooks?await a.hooks.processAllTokens(c):c;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():e?Be.parse:Be.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer():e?Ee.lex:Ee.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let c=(a.hooks?a.hooks.provideParser():e?Be.parse:Be.parseInline)(o,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(o){return s(o)}}}onError(e,r){return i=>{if(i.message+=`
188
+ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+He(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},Qr=new GB;function St(t,e){return Qr.parse(t,e)}St.options=St.setOptions=function(t){return Qr.setOptions(t),St.defaults=Qr.defaults,Fy(St.defaults),St};St.getDefaults=_h;St.defaults=li;St.use=function(...t){return Qr.use(...t),St.defaults=Qr.defaults,Fy(St.defaults),St};St.walkTokens=function(t,e){return Qr.walkTokens(t,e)};St.parseInline=Qr.parseInline;St.Parser=Be;St.parser=Be.parse;St.Renderer=Ps;St.TextRenderer=Eh;St.Lexer=Ee;St.lexer=Ee.lex;St.Tokenizer=Rs;St.Hooks=xn;St.parse=St;St.options;St.setOptions;St.use;St.walkTokens;St.parseInline;Be.parse;Ee.lex;function Yy(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(o,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?o.concat(l.map(function(h){var u,f;return(f=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0})):o},[]);if(n.length){var a=new RegExp(`
189
+ [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(o){return o.replace(a,`
190
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return e.forEach(function(o,c){var l=s.match(/(?:^|\n)( *)$/),h=l?l[1]:"",u=o;typeof o=="string"&&o.includes(`
191
+ `)&&(u=String(o).split(`
192
+ `).map(function(f,d){return d===0?f:""+h+f}).join(`
193
+ `)),s+=u+i[c+1]}),s}var VB={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},cc=new Map,Uy=new Map,ZB=m(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(P.debug("Registering icon pack:",e.name),"loader"in e)Uy.set(e.name,e.loader);else if("icons"in e)cc.set(e.name,e.icons);else throw P.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),jy=m(async(t,e)=>{const r=KE(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);const i=r.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let n=cc.get(i);if(!n){const s=Uy.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await s(),prefix:i},cc.set(i,n)}catch(o){throw P.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=tB(n,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),KB=m(async t=>{try{return await jy(t),!0}catch{return!1}},"isIconAvailable"),ca=m(async(t,e,r)=>{let i;try{i=await jy(t,e==null?void 0:e.fallbackPrefix)}catch(s){P.error(s),i=VB}const n=oB(i,e),a=uB(hB(n.body),{...n.attributes,...r});return ke(a,te())},"getIconSVG");function Xy(t,{markdownAutoWrap:e}){const i=t.replace(/<br\/>/g,`
194
+ `).replace(/\n{2,}/g,`
195
+ `),n=Yy(i);return e===!1?n.replace(/ /g,"&nbsp;"):n}m(Xy,"preprocessMarkdown");function Gy(t,e={}){const r=Xy(t,e),i=St.lexer(r),n=[[]];let a=0;function s(o,c="normal"){o.type==="text"?o.text.split(`
196
+ `).forEach((h,u)=>{u!==0&&(a++,n.push([])),h.split(" ").forEach(f=>{f=f.replace(/&#39;/g,"'"),f&&n[a].push({content:f,type:c})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(l=>{s(l,o.type)}):o.type==="html"&&n[a].push({content:o.text,type:"normal"})}return m(s,"processNode"),i.forEach(o=>{var c;o.type==="paragraph"?(c=o.tokens)==null||c.forEach(l=>{s(l)}):o.type==="html"?n[a].push({content:o.text,type:"normal"}):n[a].push({content:o.raw,type:"normal"})}),n}m(Gy,"markdownToLines");function Vy(t,{markdownAutoWrap:e}={}){const r=St.lexer(t);function i(n){var a,s,o;return n.type==="text"?e===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(s=n.tokens)==null?void 0:s.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(o=n.tokens)==null?void 0:o.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(P.warn(`Unsupported markdown: ${n.type}`),n.raw)}return m(i,"output"),r.map(i).join("")}m(Vy,"markdownToHTML");function Zy(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}m(Zy,"splitTextToChars");function Ky(t,e){const r=Zy(e.content);return Bh(t,[],r,e.type)}m(Ky,"splitWordToFitWidth");function Bh(t,e,r,i){if(r.length===0)return[{content:e.join(""),type:i},{content:"",type:i}];const[n,...a]=r,s=[...e,n];return t([{content:s.join(""),type:i}])?Bh(t,s,a,i):(e.length===0&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}m(Bh,"splitWordToFitWidthRecursion");function Qy(t,e){if(t.some(({content:r})=>r.includes(`
197
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ns(t,e)}m(Qy,"splitLineToFitWidth");function Ns(t,e,r=[],i=[]){if(t.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";t[0].content===" "&&(n=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),e(s))return Ns(t,e,r,s);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){const[o,c]=Ky(e,a);r.push([o]),c.content&&t.unshift(c)}return Ns(t,e,r)}m(Ns,"splitLineToFitWidthRecursion");function hc(t,e){e&&t.attr("style",e)}m(hc,"applyStyle");async function Jy(t,e,r,i,n=!1,a=te()){const s=t.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);const o=s.append("xhtml:div"),c=Mi(e.label)?await Dc(e.label.replace(Wi.lineBreakRegex,`
198
+ `),a):ke(e.label,a),l=e.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(c),hc(h,e.labelStyle),h.attr("class",`${l} ${i}`),hc(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),u=o.node().getBoundingClientRect()),s.node()}m(Jy,"addHtmlSpan");function bo(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}m(bo,"createTspan");function t0(t,e,r){const i=t.append("text"),n=bo(i,1,e);Co(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}m(t0,"computeWidthOfText");function QB(t,e,r){var s;const i=t.append("text"),n=bo(i,1,e);Co(n,[{content:r,type:"normal"}]);const a=(s=n.node())==null?void 0:s.getBoundingClientRect();return a&&i.remove(),a}m(QB,"computeDimensionOfText");function e0(t,e,r,i=!1){const a=e.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),o=a.append("text").attr("y","-10.1");let c=0;for(const l of r){const h=m(f=>t0(a,1.1,f)<=t,"checkWidth"),u=h(l)?[l]:Qy(l,h);for(const f of u){const d=bo(o,c,1.1);Co(d,f),c++}}if(i){const l=o.node().getBBox(),h=2;return s.attr("x",l.x-h).attr("y",l.y-h).attr("width",l.width+2*h).attr("height",l.height+2*h),a.node()}else return o.node()}m(e0,"createFormattedText");function Co(t,e){t.text(""),e.forEach((r,i)=>{const n=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(r.content):n.text(" "+r.content)})}m(Co,"updateTextContentAndStyles");async function r0(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await KB(o)?await ca(o,void 0,{class:"label-icon"}):`<i class='${ke(n,e).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}m(r0,"replaceIconSubstring");var Tr=m(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:c=!1}={},l)=>{if(P.debug("XYZ createText",e,r,i,n,a,s,"addSvgBackground: ",c),a){const h=Vy(e,l),u=await r0(oi(h),l),f=e.replace(/\\\\/g,"\\"),d={isNode:s,label:Mi(e)?f:u,labelStyle:r.replace("fill:","color:")};return await Jy(t,d,o,n,c,l)}else{const h=e.replace(/<br\s*\/?>/g,"<br/>"),u=Gy(h.replace("<br>","<br/>"),l),f=e0(o,t,u,e?c:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");bt(f).attr("style",d)}else{const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");bt(f).select("rect").attr("style",d.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");bt(f).select("text").attr("style",p)}return f}},"createText");function ol(t,e,r){if(t&&t.length){const[i,n]=e,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const c of t){const[l,h]=c;c[0]=(l-i)*s-(h-n)*o+i,c[1]=(l-i)*o+(h-n)*s+n}}}function JB(t,e){return t[0]===e[0]&&t[1]===e[1]}function t$(t,e,r,i=1){const n=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(n)for(const l of s)ol(l,o,n);const c=function(l,h,u){const f=[];for(const b of l){const w=[...b];JB(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&f.push(w)}const d=[];h=Math.max(h,.1);const p=[];for(const b of f)for(let w=0;w<b.length-1;w++){const k=b[w],_=b[w+1];if(k[1]!==_[1]){const C=Math.min(k[1],_[1]);p.push({ymin:C,ymax:Math.max(k[1],_[1]),x:C===k[1]?k[0]:_[0],islope:(_[0]-k[0])/(_[1]-k[1])})}}if(p.sort((b,w)=>b.ymin<w.ymin?-1:b.ymin>w.ymin?1:b.x<w.x?-1:b.x>w.x?1:b.ymax===w.ymax?0:(b.ymax-w.ymax)/Math.abs(b.ymax-w.ymax)),!p.length)return d;let g=[],x=p[0].ymin,y=0;for(;g.length||p.length;){if(p.length){let b=-1;for(let w=0;w<p.length&&!(p[w].ymin>x);w++)b=w;p.splice(0,b+1).forEach(w=>{g.push({s:x,edge:w})})}if(g=g.filter(b=>!(b.edge.ymax<=x)),g.sort((b,w)=>b.edge.x===w.edge.x?0:(b.edge.x-w.edge.x)/Math.abs(b.edge.x-w.edge.x)),(u!==1||y%h==0)&&g.length>1)for(let b=0;b<g.length;b+=2){const w=b+1;if(w>=g.length)break;const k=g[b].edge,_=g[w].edge;d.push([[Math.round(k.x),x],[Math.round(_.x),x]])}x+=u,g.forEach(b=>{b.edge.x=b.edge.x+u*b.edge.islope}),y++}return d}(s,a,i);if(n){for(const l of s)ol(l,o,-n);(function(l,h,u){const f=[];l.forEach(d=>f.push(...d)),ol(f,h,u)})(c,o,-n)}return c}function ha(t,e){var r;const i=e.hachureAngle+90;let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),t$(t,n,i,a||1)}class $h{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const i=ha(e,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(e,r){const i=[];for(const n of e)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function wo(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class e$ extends $h{fillPolygons(e,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=ha(e,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*i*Math.cos(a),c=.5*i*Math.sin(a);for(const[l,h]of n)wo([l,h])&&s.push([[l[0]-o,l[1]+c],[...h]],[[l[0]+o,l[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class r$ extends $h{fillPolygons(e,r){const i=this._fillPolygons(e,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,n);return i.ops=i.ops.concat(a.ops),i}}class i${constructor(e){this.helper=e}fillPolygons(e,r){const i=ha(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(e,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=n/4;for(const o of e){const c=wo(o),l=c/n,h=Math.ceil(l)-1,u=c-h*n,f=(o[0][0]+o[1][0])/2-n/4,d=Math.min(o[0][1],o[1][1]);for(let p=0;p<h;p++){const g=d+u+p*n,x=f-s+2*Math.random()*s,y=g-s+2*Math.random()*s,b=this.helper.ellipse(x,y,a,a,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class n${constructor(e){this.helper=e}fillPolygons(e,r){const i=ha(e,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(e,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return e.forEach(s=>{const o=wo(s),c=Math.floor(o/(i+n)),l=(o+n-c*(i+n))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const f=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let d=0;d<c;d++){const p=d*(i+n),g=p+i,x=[h[0]+p*Math.cos(f)+l*Math.cos(f),h[1]+p*Math.sin(f)+l*Math.sin(f)],y=[h[0]+g*Math.cos(f)+l*Math.cos(f),h[1]+g*Math.sin(f)+l*Math.sin(f)];a.push(...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],r))}}),a}}class a${constructor(e){this.helper=e}fillPolygons(e,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=ha(e,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(e,r,i){const n=[];return e.forEach(a=>{const s=wo(a),o=Math.round(s/(2*r));let c=a[0],l=a[1];c[0]>l[0]&&(c=a[1],l=a[0]);const h=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let u=0;u<o;u++){const f=2*u*r,d=2*(u+1)*r,p=Math.sqrt(2*Math.pow(r,2)),g=[c[0]+f*Math.cos(h),c[1]+f*Math.sin(h)],x=[c[0]+d*Math.cos(h),c[1]+d*Math.sin(h)],y=[g[0]+p*Math.cos(h+Math.PI/4),g[1]+p*Math.sin(h+Math.PI/4)];n.push(...this.helper.doubleLineOps(g[0],g[1],y[0],y[1],i),...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],i))}}),n}}const fe={};class s${constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const o$=0,ll=1,Hf=2,Ma={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function cl(t,e){return t.type===e}function Fh(t){const e=[],r=function(s){const o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:o$,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:ll,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:Hf,text:""},o}(t);let i="BOD",n=0,a=r[n];for(;!cl(a,Hf);){let s=0;const o=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return Fh("M0,0"+t);n++,s=Ma[a.text],i=a.text}else cl(a,ll)?s=Ma[i]:(n++,s=Ma[a.text],i=a.text);if(!(n+s<r.length))throw new Error("Path data ended short");for(let c=n;c<n+s;c++){const l=r[c];if(!cl(l,ll))throw new Error("Param not a number: "+i+","+l.text);o[o.length]=+l.text}if(typeof Ma[i]!="number")throw new Error("Bad segment: "+i);{const c={key:i,data:o};e.push(c),n+=s,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return e}function i0(t){let e=0,r=0,i=0,n=0;const a=[];for(const{key:s,data:o}of t)switch(s){case"M":a.push({key:"M",data:[...o]}),[e,r]=o,[i,n]=o;break;case"m":e+=o[0],r+=o[1],a.push({key:"M",data:[e,r]}),i=e,n=r;break;case"L":a.push({key:"L",data:[...o]}),[e,r]=o;break;case"l":e+=o[0],r+=o[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...o]}),e=o[4],r=o[5];break;case"c":{const c=o.map((l,h)=>h%2?l+r:l+e);a.push({key:"C",data:c}),e=c[4],r=c[5];break}case"Q":a.push({key:"Q",data:[...o]}),e=o[2],r=o[3];break;case"q":{const c=o.map((l,h)=>h%2?l+r:l+e);a.push({key:"Q",data:c}),e=c[2],r=c[3];break}case"A":a.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":a.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),e=o[2],r=o[3];break;case"s":{const c=o.map((l,h)=>h%2?l+r:l+e);a.push({key:"S",data:c}),e=c[2],r=c[3];break}case"T":a.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=i,r=n}return a}function n0(t){const e=[];let r="",i=0,n=0,a=0,s=0,o=0,c=0;for(const{key:l,data:h}of t){switch(l){case"M":e.push({key:"M",data:[...h]}),[i,n]=h,[a,s]=h;break;case"C":e.push({key:"C",data:[...h]}),i=h[4],n=h[5],o=h[2],c=h[3];break;case"L":e.push({key:"L",data:[...h]}),[i,n]=h;break;case"H":i=h[0],e.push({key:"L",data:[i,n]});break;case"V":n=h[0],e.push({key:"L",data:[i,n]});break;case"S":{let u=0,f=0;r==="C"||r==="S"?(u=i+(i-o),f=n+(n-c)):(u=i,f=n),e.push({key:"C",data:[u,f,...h]}),o=h[0],c=h[1],i=h[2],n=h[3];break}case"T":{const[u,f]=h;let d=0,p=0;r==="Q"||r==="T"?(d=i+(i-o),p=n+(n-c)):(d=i,p=n);const g=i+2*(d-i)/3,x=n+2*(p-n)/3,y=u+2*(d-u)/3,b=f+2*(p-f)/3;e.push({key:"C",data:[g,x,y,b,u,f]}),o=d,c=p,i=u,n=f;break}case"Q":{const[u,f,d,p]=h,g=i+2*(u-i)/3,x=n+2*(f-n)/3,y=d+2*(u-d)/3,b=p+2*(f-p)/3;e.push({key:"C",data:[g,x,y,b,d,p]}),o=u,c=f,i=d,n=p;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),d=h[2],p=h[3],g=h[4],x=h[5],y=h[6];u===0||f===0?(e.push({key:"C",data:[i,n,x,y,x,y]}),i=x,n=y):(i!==x||n!==y)&&(a0(i,n,x,y,u,f,d,p,g).forEach(function(b){e.push({key:"C",data:b})}),i=x,n=y);break}case"Z":e.push({key:"Z",data:[]}),i=a,n=s}r=l}return e}function hn(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function a0(t,e,r,i,n,a,s,o,c,l){const h=(u=s,Math.PI*u/180);var u;let f=[],d=0,p=0,g=0,x=0;if(l)[d,p,g,x]=l;else{[t,e]=hn(t,e,-h),[r,i]=hn(r,i,-h);const $=(t-r)/2,L=(e-i)/2;let M=$*$/(n*n)+L*L/(a*a);M>1&&(M=Math.sqrt(M),n*=M,a*=M);const E=n*n,D=a*a,v=E*D-E*L*L-D*$*$,R=E*L*L+D*$*$,U=(o===c?-1:1)*Math.sqrt(Math.abs(v/R));g=U*n*L/a+(t+r)/2,x=U*-a*$/n+(e+i)/2,d=Math.asin(parseFloat(((e-x)/a).toFixed(9))),p=Math.asin(parseFloat(((i-x)/a).toFixed(9))),t<g&&(d=Math.PI-d),r<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),c&&d>p&&(d-=2*Math.PI),!c&&p>d&&(p-=2*Math.PI)}let y=p-d;if(Math.abs(y)>120*Math.PI/180){const $=p,L=r,M=i;p=c&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=a0(r=g+n*Math.cos(p),i=x+a*Math.sin(p),L,M,n,a,s,0,c,[p,$,g,x])}y=p-d;const b=Math.cos(d),w=Math.sin(d),k=Math.cos(p),_=Math.sin(p),C=Math.tan(y/4),S=4/3*n*C,F=4/3*a*C,I=[t,e],O=[t+S*w,e-F*b],A=[r+S*_,i-F*k],N=[r,i];if(O[0]=2*I[0]-O[0],O[1]=2*I[1]-O[1],l)return[O,A,N].concat(f);{f=[O,A,N].concat(f);const $=[];for(let L=0;L<f.length;L+=3){const M=hn(f[L][0],f[L][1],h),E=hn(f[L+1][0],f[L+1][1],h),D=hn(f[L+2][0],f[L+2][1],h);$.push([M[0],M[1],E[0],E[1],D[0],D[1]])}return $}}const l$={randOffset:function(t,e){return ft(t,e)},randOffsetWithRange:function(t,e,r){return zs(t,e,r)},ellipse:function(t,e,r,i,n){const a=o0(r,i,n);return uc(t,e,n,a).opset},doubleLineOps:function(t,e,r,i,n){return kr(t,e,r,i,n,!0)}};function s0(t,e,r,i,n){return{type:"path",ops:kr(t,e,r,i,n)}}function Ga(t,e,r){const i=(t||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...kr(t[a][0],t[a][1],t[a+1][0],t[a+1][1],r));return e&&n.push(...kr(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:n}}return i===2?s0(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function c$(t,e,r,i,n){return function(a,s){return Ga(a,!0,s)}([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],n)}function Yf(t,e){if(t.length){const r=typeof t[0][0]=="number"?[t]:t,i=Ea(r[0],1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:Ea(r[0],1.5*(1+.22*e.roughness),Xf(e));for(let a=1;a<r.length;a++){const s=r[a];if(s.length){const o=Ea(s,1*(1+.2*e.roughness),e),c=e.disableMultiStroke?[]:Ea(s,1.5*(1+.22*e.roughness),Xf(e));for(const l of o)l.op!=="move"&&i.push(l);for(const l of c)l.op!=="move"&&n.push(l)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function o0(t,e,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let s=Math.abs(t/2),o=Math.abs(e/2);const c=1-r.curveFitting;return s+=ft(s*c,r),o+=ft(o*c,r),{increment:a,rx:s,ry:o}}function uc(t,e,r,i){const[n,a]=Gf(i.increment,t,e,i.rx,i.ry,1,i.increment*zs(.1,zs(.4,1,r),r),r);let s=Ws(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=Gf(i.increment,t,e,i.rx,i.ry,1.5,0,r),c=Ws(o,null,r);s=s.concat(c)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function Uf(t,e,r,i,n,a,s,o,c){const l=t,h=e;let u=Math.abs(r/2),f=Math.abs(i/2);u+=ft(.01*u,c),f+=ft(.01*f,c);let d=n,p=a;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const g=2*Math.PI/c.curveStepCount,x=Math.min(g/2,(p-d)/2),y=Vf(x,l,h,u,f,d,p,1,c);if(!c.disableMultiStroke){const b=Vf(x,l,h,u,f,d,p,1.5,c);y.push(...b)}return s&&(o?y.push(...kr(l,h,l+u*Math.cos(d),h+f*Math.sin(d),c),...kr(l,h,l+u*Math.cos(p),h+f*Math.sin(p),c)):y.push({op:"lineTo",data:[l,h]},{op:"lineTo",data:[l+u*Math.cos(d),h+f*Math.sin(d)]})),{type:"path",ops:y}}function jf(t,e){const r=n0(i0(Fh(t))),i=[];let n=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],n=[o[0],o[1]];break;case"L":i.push(...kr(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{const[c,l,h,u,f,d]=o;i.push(...h$(c,l,h,u,f,d,a,e)),a=[f,d];break}case"Z":i.push(...kr(a[0],a[1],n[0],n[1],e)),a=[n[0],n[1]]}return{type:"path",ops:i}}function hl(t,e){const r=[];for(const i of t)if(i.length){const n=e.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+ft(n,e),i[0][1]+ft(n,e)]});for(let s=1;s<a;s++)r.push({op:"lineTo",data:[i[s][0]+ft(n,e),i[s][1]+ft(n,e)]})}}return{type:"fillPath",ops:r}}function pi(t,e){return function(r,i){let n=r.fillStyle||"hachure";if(!fe[n])switch(n){case"zigzag":fe[n]||(fe[n]=new e$(i));break;case"cross-hatch":fe[n]||(fe[n]=new r$(i));break;case"dots":fe[n]||(fe[n]=new i$(i));break;case"dashed":fe[n]||(fe[n]=new n$(i));break;case"zigzag-line":fe[n]||(fe[n]=new a$(i));break;default:n="hachure",fe[n]||(fe[n]=new $h(i))}return fe[n]}(e,l$).fillPolygons(t,e)}function Xf(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function l0(t){return t.randomizer||(t.randomizer=new s$(t.seed||0)),t.randomizer.next()}function zs(t,e,r,i=1){return r.roughness*i*(l0(r)*(e-t)+t)}function ft(t,e,r=1){return zs(-t,t,e,r)}function kr(t,e,r,i,n,a=!1){const s=a?n.disableMultiStrokeFill:n.disableMultiStroke,o=fc(t,e,r,i,n,!0,!1);if(s)return o;const c=fc(t,e,r,i,n,!0,!0);return o.concat(c)}function fc(t,e,r,i,n,a,s){const o=Math.pow(t-r,2)+Math.pow(e-i,2),c=Math.sqrt(o);let l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let h=n.maxRandomnessOffset||0;h*h*100>o&&(h=c/10);const u=h/2,f=.2+.2*l0(n);let d=n.bowing*n.maxRandomnessOffset*(i-e)/200,p=n.bowing*n.maxRandomnessOffset*(t-r)/200;d=ft(d,n,l),p=ft(p,n,l);const g=[],x=()=>ft(u,n,l),y=()=>ft(h,n,l),b=n.preserveVertices;return s?g.push({op:"move",data:[t+(b?0:x()),e+(b?0:x())]}):g.push({op:"move",data:[t+(b?0:ft(h,n,l)),e+(b?0:ft(h,n,l))]}),s?g.push({op:"bcurveTo",data:[d+t+(r-t)*f+x(),p+e+(i-e)*f+x(),d+t+2*(r-t)*f+x(),p+e+2*(i-e)*f+x(),r+(b?0:x()),i+(b?0:x())]}):g.push({op:"bcurveTo",data:[d+t+(r-t)*f+y(),p+e+(i-e)*f+y(),d+t+2*(r-t)*f+y(),p+e+2*(i-e)*f+y(),r+(b?0:y()),i+(b?0:y())]}),g}function Ea(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+ft(e,r),t[0][1]+ft(e,r)]),i.push([t[0][0]+ft(e,r),t[0][1]+ft(e,r)]);for(let n=1;n<t.length;n++)i.push([t[n][0]+ft(e,r),t[n][1]+ft(e,r)]),n===t.length-1&&i.push([t[n][0]+ft(e,r),t[n][1]+ft(e,r)]);return Ws(i,null,r)}function Ws(t,e,r){const i=t.length,n=[];if(i>3){const a=[],s=1-r.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+2<i;o++){const c=t[o];a[0]=[c[0],c[1]],a[1]=[c[0]+(s*t[o+1][0]-s*t[o-1][0])/6,c[1]+(s*t[o+1][1]-s*t[o-1][1])/6],a[2]=[t[o+1][0]+(s*t[o][0]-s*t[o+2][0])/6,t[o+1][1]+(s*t[o][1]-s*t[o+2][1])/6],a[3]=[t[o+1][0],t[o+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):i===2&&n.push(...fc(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return n}function Gf(t,e,r,i,n,a,s,o){const c=[],l=[];if(o.roughness===0){t/=4,l.push([e+i*Math.cos(-t),r+n*Math.sin(-t)]);for(let h=0;h<=2*Math.PI;h+=t){const u=[e+i*Math.cos(h),r+n*Math.sin(h)];c.push(u),l.push(u)}l.push([e+i*Math.cos(0),r+n*Math.sin(0)]),l.push([e+i*Math.cos(t),r+n*Math.sin(t)])}else{const h=ft(.5,o)-Math.PI/2;l.push([ft(a,o)+e+.9*i*Math.cos(h-t),ft(a,o)+r+.9*n*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let f=h;f<u;f+=t){const d=[ft(a,o)+e+i*Math.cos(f),ft(a,o)+r+n*Math.sin(f)];c.push(d),l.push(d)}l.push([ft(a,o)+e+i*Math.cos(h+2*Math.PI+.5*s),ft(a,o)+r+n*Math.sin(h+2*Math.PI+.5*s)]),l.push([ft(a,o)+e+.98*i*Math.cos(h+s),ft(a,o)+r+.98*n*Math.sin(h+s)]),l.push([ft(a,o)+e+.9*i*Math.cos(h+.5*s),ft(a,o)+r+.9*n*Math.sin(h+.5*s)])}return[l,c]}function Vf(t,e,r,i,n,a,s,o,c){const l=a+ft(.1,c),h=[];h.push([ft(o,c)+e+.9*i*Math.cos(l-t),ft(o,c)+r+.9*n*Math.sin(l-t)]);for(let u=l;u<=s;u+=t)h.push([ft(o,c)+e+i*Math.cos(u),ft(o,c)+r+n*Math.sin(u)]);return h.push([e+i*Math.cos(s),r+n*Math.sin(s)]),h.push([e+i*Math.cos(s),r+n*Math.sin(s)]),Ws(h,null,c)}function h$(t,e,r,i,n,a,s,o){const c=[],l=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let h=[0,0];const u=o.disableMultiStroke?1:2,f=o.preserveVertices;for(let d=0;d<u;d++)d===0?c.push({op:"move",data:[s[0],s[1]]}):c.push({op:"move",data:[s[0]+(f?0:ft(l[0],o)),s[1]+(f?0:ft(l[0],o))]}),h=f?[n,a]:[n+ft(l[d],o),a+ft(l[d],o)],c.push({op:"bcurveTo",data:[t+ft(l[d],o),e+ft(l[d],o),r+ft(l[d],o),i+ft(l[d],o),h[0],h[1]]});return c}function un(t){return[...t]}function Zf(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(un(t[0]),un(t[1]),un(t[2]),un(t[2]));else{const n=[];n.push(t[0],t[0]);for(let o=1;o<t.length;o++)n.push(t[o]),o===t.length-1&&n.push(t[o]);const a=[],s=1-e;i.push(un(n[0]));for(let o=1;o+2<n.length;o++){const c=n[o];a[0]=[c[0],c[1]],a[1]=[c[0]+(s*n[o+1][0]-s*n[o-1][0])/6,c[1]+(s*n[o+1][1]-s*n[o-1][1])/6],a[2]=[n[o+1][0]+(s*n[o][0]-s*n[o+2][0])/6,n[o+1][1]+(s*n[o][1]-s*n[o+2][1])/6],a[3]=[n[o+1][0],n[o+1][1]],i.push(a[1],a[2],a[3])}}return i}function Va(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function u$(t,e,r){const i=Va(e,r);if(i===0)return Va(t,e);let n=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return n=Math.max(0,Math.min(1,n)),Va(t,Dr(e,r,n))}function Dr(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function dc(t,e,r,i){const n=i||[];if(function(o,c){const l=o[c+0],h=o[c+1],u=o[c+2],f=o[c+3];let d=3*h[0]-2*l[0]-f[0];d*=d;let p=3*h[1]-2*l[1]-f[1];p*=p;let g=3*u[0]-2*f[0]-l[0];g*=g;let x=3*u[1]-2*f[1]-l[1];return x*=x,d<g&&(d=g),p<x&&(p=x),d+p}(t,e)<r){const o=t[e+0];n.length?(a=n[n.length-1],s=o,Math.sqrt(Va(a,s))>1&&n.push(o)):n.push(o),n.push(t[e+3])}else{const c=t[e+0],l=t[e+1],h=t[e+2],u=t[e+3],f=Dr(c,l,.5),d=Dr(l,h,.5),p=Dr(h,u,.5),g=Dr(f,d,.5),x=Dr(d,p,.5),y=Dr(g,x,.5);dc([c,f,g,y],0,r,n),dc([y,x,p,u],0,r,n)}var a,s;return n}function f$(t,e){return qs(t,0,t.length,e)}function qs(t,e,r,i,n){const a=n||[],s=t[e],o=t[r-1];let c=0,l=1;for(let h=e+1;h<r-1;++h){const u=u$(t[h],s,o);u>c&&(c=u,l=h)}return Math.sqrt(c)>i?(qs(t,e,l+1,i,a),qs(t,l,r,i,a)):(a.length||a.push(s),a.push(o)),a}function ul(t,e=.15,r){const i=[],n=(t.length-1)/3;for(let a=0;a<n;a++)dc(t,3*a,e,i);return r&&r>0?qs(i,0,i.length,r):i}const me="none";class Hs{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,i){return{shape:e,sets:r||[],options:i||this.defaultOptions}}line(e,r,i,n,a){const s=this._o(a);return this._d("line",[s0(e,r,i,n,s)],s)}rectangle(e,r,i,n,a){const s=this._o(a),o=[],c=c$(e,r,i,n,s);if(s.fill){const l=[[e,r],[e+i,r],[e+i,r+n],[e,r+n]];s.fillStyle==="solid"?o.push(hl([l],s)):o.push(pi([l],s))}return s.stroke!==me&&o.push(c),this._d("rectangle",o,s)}ellipse(e,r,i,n,a){const s=this._o(a),o=[],c=o0(i,n,s),l=uc(e,r,s,c);if(s.fill)if(s.fillStyle==="solid"){const h=uc(e,r,s,c).opset;h.type="fillPath",o.push(h)}else o.push(pi([l.estimatedPoints],s));return s.stroke!==me&&o.push(l.opset),this._d("ellipse",o,s)}circle(e,r,i,n){const a=this.ellipse(e,r,i,i,n);return a.shape="circle",a}linearPath(e,r){const i=this._o(r);return this._d("linearPath",[Ga(e,!1,i)],i)}arc(e,r,i,n,a,s,o=!1,c){const l=this._o(c),h=[],u=Uf(e,r,i,n,a,s,o,!0,l);if(o&&l.fill)if(l.fillStyle==="solid"){const f=Object.assign({},l);f.disableMultiStroke=!0;const d=Uf(e,r,i,n,a,s,!0,!1,f);d.type="fillPath",h.push(d)}else h.push(function(f,d,p,g,x,y,b){const w=f,k=d;let _=Math.abs(p/2),C=Math.abs(g/2);_+=ft(.01*_,b),C+=ft(.01*C,b);let S=x,F=y;for(;S<0;)S+=2*Math.PI,F+=2*Math.PI;F-S>2*Math.PI&&(S=0,F=2*Math.PI);const I=(F-S)/b.curveStepCount,O=[];for(let A=S;A<=F;A+=I)O.push([w+_*Math.cos(A),k+C*Math.sin(A)]);return O.push([w+_*Math.cos(F),k+C*Math.sin(F)]),O.push([w,k]),pi([O],b)}(e,r,i,n,a,s,l));return l.stroke!==me&&h.push(u),this._d("arc",h,l)}curve(e,r){const i=this._o(r),n=[],a=Yf(e,i);if(i.fill&&i.fill!==me)if(i.fillStyle==="solid"){const s=Yf(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],o=e;if(o.length){const c=typeof o[0][0]=="number"?[o]:o;for(const l of c)l.length<3?s.push(...l):l.length===3?s.push(...ul(Zf([l[0],l[0],l[1],l[2]]),10,(1+i.roughness)/2)):s.push(...ul(Zf(l),10,(1+i.roughness)/2))}s.length&&n.push(pi([s],i))}return i.stroke!==me&&n.push(a),this._d("curve",n,i)}polygon(e,r){const i=this._o(r),n=[],a=Ga(e,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(hl([e],i)):n.push(pi([e],i))),i.stroke!==me&&n.push(a),this._d("polygon",n,i)}path(e,r){const i=this._o(r),n=[];if(!e)return this._d("path",n,i);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==me,s=i.stroke!==me,o=!!(i.simplification&&i.simplification<1),c=function(h,u,f){const d=n0(i0(Fh(h))),p=[];let g=[],x=[0,0],y=[];const b=()=>{y.length>=4&&g.push(...ul(y,u)),y=[]},w=()=>{b(),g.length&&(p.push(g),g=[])};for(const{key:_,data:C}of d)switch(_){case"M":w(),x=[C[0],C[1]],g.push(x);break;case"L":b(),g.push([C[0],C[1]]);break;case"C":if(!y.length){const S=g.length?g[g.length-1]:x;y.push([S[0],S[1]])}y.push([C[0],C[1]]),y.push([C[2],C[3]]),y.push([C[4],C[5]]);break;case"Z":b(),g.push([x[0],x[1]])}if(w(),!f)return p;const k=[];for(const _ of p){const C=f$(_,f);C.length&&k.push(C)}return k}(e,1,o?4-4*(i.simplification||1):(1+i.roughness)/2),l=jf(e,i);if(a)if(i.fillStyle==="solid")if(c.length===1){const h=jf(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else n.push(hl(c,i));else n.push(pi(c,i));return s&&(o?c.forEach(h=>{n.push(Ga(h,!1,i))}):n.push(l)),this._d("path",n,i)}opsToPath(e,r){let i="";for(const n of e.ops){const a=typeof r=="number"&&r>=0?n.data.map(s=>+s.toFixed(r)):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(e){const r=e.sets||[],i=e.options||this.defaultOptions,n=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:me};break;case"fillPath":s={d:this.opsToPath(a),stroke:me,strokeWidth:0,fill:i.fill||me};break;case"fillSketch":s=this.fillSketch(a,i)}s&&n.push(s)}return n}fillSketch(e,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||me,strokeWidth:i,fill:me}}_mergedShape(e){return e.filter((r,i)=>i===0||r.op!=="move")}}class d${constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Hs(r)}draw(e){const r=e.sets||[],i=e.options||this.getDefaultOptions(),n=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,o),n.restore();break}case"fillSketch":this.fillSketch(n,s,i)}}fillSketch(e,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=n,this._drawToContext(e,r,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,i,n="nonzero"){e.beginPath();for(const a of r.ops){const s=typeof i=="number"&&i>=0?a.data.map(o=>+o.toFixed(i)):a.data;switch(a.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(n):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,i,n,a){const s=this.gen.line(e,r,i,n,a);return this.draw(s),s}rectangle(e,r,i,n,a){const s=this.gen.rectangle(e,r,i,n,a);return this.draw(s),s}ellipse(e,r,i,n,a){const s=this.gen.ellipse(e,r,i,n,a);return this.draw(s),s}circle(e,r,i,n){const a=this.gen.circle(e,r,i,n);return this.draw(a),a}linearPath(e,r){const i=this.gen.linearPath(e,r);return this.draw(i),i}polygon(e,r){const i=this.gen.polygon(e,r);return this.draw(i),i}arc(e,r,i,n,a,s,o=!1,c){const l=this.gen.arc(e,r,i,n,a,s,o,c);return this.draw(l),l}curve(e,r){const i=this.gen.curve(e,r);return this.draw(i),i}path(e,r){const i=this.gen.path(e,r);return this.draw(i),i}}const Ba="http://www.w3.org/2000/svg";class p${constructor(e,r){this.svg=e,this.gen=new Hs(r)}draw(e){const r=e.sets||[],i=e.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(Ba,"g"),s=e.options.fixedDecimalPlaceDigits;for(const o of r){let c=null;switch(o.type){case"path":c=n.createElementNS(Ba,"path"),c.setAttribute("d",this.opsToPath(o,s)),c.setAttribute("stroke",i.stroke),c.setAttribute("stroke-width",i.strokeWidth+""),c.setAttribute("fill","none"),i.strokeLineDash&&c.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&c.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":c=n.createElementNS(Ba,"path"),c.setAttribute("d",this.opsToPath(o,s)),c.setAttribute("stroke","none"),c.setAttribute("stroke-width","0"),c.setAttribute("fill",i.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||c.setAttribute("fill-rule","evenodd");break;case"fillSketch":c=this.fillSketch(n,o,i)}c&&a.appendChild(c)}return a}fillSketch(e,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=e.createElementNS(Ba,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,i,n,a){const s=this.gen.line(e,r,i,n,a);return this.draw(s)}rectangle(e,r,i,n,a){const s=this.gen.rectangle(e,r,i,n,a);return this.draw(s)}ellipse(e,r,i,n,a){const s=this.gen.ellipse(e,r,i,n,a);return this.draw(s)}circle(e,r,i,n){const a=this.gen.circle(e,r,i,n);return this.draw(a)}linearPath(e,r){const i=this.gen.linearPath(e,r);return this.draw(i)}polygon(e,r){const i=this.gen.polygon(e,r);return this.draw(i)}arc(e,r,i,n,a,s,o=!1,c){const l=this.gen.arc(e,r,i,n,a,s,o,c);return this.draw(l)}curve(e,r){const i=this.gen.curve(e,r);return this.draw(i)}path(e,r){const i=this.gen.path(e,r);return this.draw(i)}}var V={canvas:(t,e)=>new d$(t,e),svg:(t,e)=>new p$(t,e),generator:t=>new Hs(t),newSeed:()=>Hs.newSeed()},ct=m(async(t,e,r)=>{var u,f;let i;const n=e.useHtmlLabels||Nt((u=kt())==null?void 0:u.htmlLabels);r?i=r:i="node default";const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",re(e.labelStyle));let o;e.label===void 0?o="":o=typeof e.label=="string"?e.label:e.label[0];const c=await Tr(s,ke(oi(o),kt()),{useHtmlLabels:n,width:e.width||((f=kt().flowchart)==null?void 0:f.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let l=c.getBBox();const h=((e==null?void 0:e.padding)??0)/2;if(n){const d=c.children[0],p=bt(c),g=d.getElementsByTagName("img");if(g){const x=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...g].map(y=>new Promise(b=>{function w(){if(y.style.display="flex",y.style.flexDirection="column",x){const k=kt().fontSize?kt().fontSize:window.getComputedStyle(document.body).fontSize,_=5,[C=Kd.fontSize]=mo(k),S=C*_+"px";y.style.minWidth=S,y.style.maxWidth=S}else y.style.width="100%";b(y)}m(w,"setupImage"),setTimeout(()=>{y.complete&&w()}),y.addEventListener("error",w),y.addEventListener("load",w)})))}l=d.getBoundingClientRect(),p.attr("width",l.width),p.attr("height",l.height)}return n?s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):s.attr("transform","translate(0, "+-l.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:l,halfPadding:h,label:s}},"labelHelper"),fl=m(async(t,e,r)=>{var c,l,h,u,f,d;const i=r.useHtmlLabels||Nt((l=(c=kt())==null?void 0:c.flowchart)==null?void 0:l.htmlLabels),n=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Tr(n,ke(oi(e),kt()),{useHtmlLabels:i,width:r.width||((u=(h=kt())==null?void 0:h.flowchart)==null?void 0:u.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(Nt((d=(f=kt())==null?void 0:f.flowchart)==null?void 0:d.htmlLabels)){const p=a.children[0],g=bt(a);s=p.getBoundingClientRect(),g.attr("width",s.width),g.attr("height",s.height)}return i?n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):n.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:n}},"insertLabel"),Q=m((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),ot=m((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function mt(t){const e=t.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}m(mt,"createPathFromPoints");function Sr(t,e,r,i,n,a){const s=[],c=r-t,l=i-e,h=c/a,u=2*Math.PI/h,f=e+l/2;for(let d=0;d<=50;d++){const p=d/50,g=t+p*c,x=f+n*Math.sin(u*(g-t));s.push({x:g,y:x})}return s}m(Sr,"generateFullSineWavePoints");function Wn(t,e,r,i,n,a){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:-d,y:-p})}return s}m(Wn,"generateCirclePoints");var g$=m((t,e)=>{var r=t.x,i=t.y,n=e.x-r,a=e.y-i,s=t.width/2,o=t.height/2,c,l;return Math.abs(a)*s>Math.abs(n)*o?(a<0&&(o=-o),c=a===0?0:o*n/a,l=o):(n<0&&(s=-s),c=s,l=n===0?0:s*a/n),{x:r+c,y:i+l}},"intersectRect"),Ui=g$;function c0(t,e){e&&t.attr("style",e)}m(c0,"applyStyle");async function h0(t){const e=bt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=kt();let n=t.label;t.label&&Mi(t.label)&&(n=await Dc(t.label.replace(Wi.lineBreakRegex,`
199
+ `),i));const s='<span class="'+(t.isNode?"nodeLabel":"edgeLabel")+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+n+"</span>";return r.html(ke(s,i)),c0(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}m(h0,"addHtmlLabel");var m$=m(async(t,e,r,i)=>{let n=t||"";if(typeof n=="object"&&(n=n[0]),Nt(kt().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"<br />"),P.info("vertexText"+n);const a={isNode:i,label:oi(n).replace(/fa[blrs]?:fa-[\w-]+/g,o=>`<i class='${o.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")};return await h0(a)}else{const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));let s=[];typeof n=="string"?s=n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?s=n:s=[];for(const o of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=o.trim(),a.appendChild(c)}return a}},"createLabel"),zr=m$,Ar=m((t,e,r,i,n)=>["M",t+n,e,"H",t+r-n,"A",n,n,0,0,1,t+r,e+n,"V",e+i-n,"A",n,n,0,0,1,t+r-n,e+i,"H",t+n,"A",n,n,0,0,1,t,e+i-n,"V",e+n,"A",n,n,0,0,1,t+n,e,"Z"].join(" "),"createRoundedRectPathD"),u0=m(async(t,e)=>{P.info("Creating subgraph rect for ",e.id,e);const r=kt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:c,borderStyles:l,backgroundStyles:h}=K(e),u=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),f=Nt(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),p=await Tr(d,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0});let g=p.getBBox();if(Nt(r.flowchart.htmlLabels)){const S=p.children[0],F=bt(p);g=S.getBoundingClientRect(),F.attr("width",g.width),F.attr("height",g.height)}const x=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(x-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,b=e.x-x/2,w=e.y-y/2;P.trace("Data ",e,JSON.stringify(e));let k;if(e.look==="handDrawn"){const S=V.svg(u),F=Z(e,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:n}),I=S.path(Ar(b,w,x,y,0),F);k=u.insert(()=>(P.debug("Rough node insert CXC",I),I),":first-child"),k.select("path:nth-child(2)").attr("style",l.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",c).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",w).attr("width",x).attr("height",y);const{subGraphTitleTopMargin:_}=hh(r);if(d.attr("transform",`translate(${e.x-g.width/2}, ${e.y-e.height/2+_})`),o){const S=d.select("span");S&&S.attr("style",o)}const C=k.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=g.height-e.padding/2,e.intersect=function(S){return Ui(e,S)},{cluster:u,labelBBox:g}},"rect"),y$=m((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=r.insert("rect",":first-child"),n=0*e.padding,a=n/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+n).attr("height",e.height+n).attr("fill","none");const s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return Ui(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),x$=m(async(t,e)=>{const r=kt(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:c}=i,l=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),h=l.insert("g",":first-child"),u=l.insert("g").attr("class","cluster-label");let f=l.append("rect");const d=u.node().appendChild(await zr(e.label,e.labelStyle,void 0,!0));let p=d.getBBox();if(Nt(r.flowchart.htmlLabels)){const I=d.children[0],O=bt(d);p=I.getBoundingClientRect(),O.attr("width",p.width),O.attr("height",p.height)}const g=0*e.padding,x=g/2,y=(e.width<=p.width+e.padding?p.width+e.padding:e.width)+g;e.width<=p.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height+g,w=e.height+g-p.height-6,k=e.x-y/2,_=e.y-b/2;e.width=y;const C=e.y-e.height/2-x+p.height+2;let S;if(e.look==="handDrawn"){const I=e.cssClasses.includes("statediagram-cluster-alt"),O=V.svg(l),A=e.rx||e.ry?O.path(Ar(k,_,y,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:c,seed:n}):O.rectangle(k,_,y,b,{seed:n});S=l.insert(()=>A,":first-child");const N=O.rectangle(k,C,y,w,{fill:I?a:s,fillStyle:I?"hachure":"solid",stroke:c,seed:n});S=l.insert(()=>A,":first-child"),f=l.insert(()=>N)}else S=h.insert("rect",":first-child"),S.attr("class","outer").attr("x",k).attr("y",_).attr("width",y).attr("height",b).attr("data-look",e.look),f.attr("class","inner").attr("x",k).attr("y",C).attr("width",y).attr("height",w);u.attr("transform",`translate(${e.x-p.width/2}, ${_+1-(Nt(r.flowchart.htmlLabels)?0:3)})`);const F=S.node().getBBox();return e.height=F.height,e.offsetX=0,e.offsetY=p.height-e.padding/2,e.labelBBox=p,e.intersect=function(I){return Ui(e,I)},{cluster:l,labelBBox:p}},"roundedWithTitle"),b$=m(async(t,e)=>{P.info("Creating subgraph rect for ",e.id,e);const r=kt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:c,borderStyles:l,backgroundStyles:h}=K(e),u=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),f=Nt(r.flowchart.htmlLabels),d=u.insert("g").attr("class","cluster-label "),p=await Tr(d,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let g=p.getBBox();if(Nt(r.flowchart.htmlLabels)){const S=p.children[0],F=bt(p);g=S.getBoundingClientRect(),F.attr("width",g.width),F.attr("height",g.height)}const x=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(x-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,b=e.x-x/2,w=e.y-y/2;P.trace("Data ",e,JSON.stringify(e));let k;if(e.look==="handDrawn"){const S=V.svg(u),F=Z(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:n}),I=S.path(Ar(b,w,x,y,e.rx),F);k=u.insert(()=>(P.debug("Rough node insert CXC",I),I),":first-child"),k.select("path:nth-child(2)").attr("style",l.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=u.insert("rect",":first-child"),k.attr("style",c).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",w).attr("width",x).attr("height",y);const{subGraphTitleTopMargin:_}=hh(r);if(d.attr("transform",`translate(${e.x-g.width/2}, ${e.y-e.height/2+_})`),o){const S=d.select("span");S&&S.attr("style",o)}const C=k.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=g.height-e.padding/2,e.intersect=function(S){return Ui(e,S)},{cluster:u,labelBBox:g}},"kanbanSection"),C$=m((t,e)=>{const r=kt(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),o=s.insert("g",":first-child"),c=0*e.padding,l=e.width+c;e.diff=-e.padding;const h=e.height+c,u=e.x-l/2,f=e.y-h/2;e.width=l;let d;if(e.look==="handDrawn"){const x=V.svg(s).rectangle(u,f,l,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});d=s.insert(()=>x,":first-child")}else d=o.insert("rect",":first-child"),d.attr("class","divider").attr("x",u).attr("y",f).attr("width",l).attr("height",h).attr("data-look",e.look);const p=d.node().getBBox();return e.height=p.height,e.offsetX=0,e.offsetY=0,e.intersect=function(g){return Ui(e,g)},{cluster:s,labelBBox:{}}},"divider"),w$=u0,_$={rect:u0,squareRect:w$,roundedWithTitle:x$,noteGroup:y$,divider:C$,kanbanSection:b$},f0=new Map,k$=m(async(t,e)=>{const r=e.shape||"rect",i=await _$[r](t,e);return f0.set(e.id,i),i},"insertCluster"),sR=m(()=>{f0=new Map},"clear");function d0(t,e){return t.intersect(e)}m(d0,"intersectNode");var S$=d0;function p0(t,e,r,i){var n=t.x,a=t.y,s=n-i.x,o=a-i.y,c=Math.sqrt(e*e*o*o+r*r*s*s),l=Math.abs(e*r*s/c);i.x<n&&(l=-l);var h=Math.abs(e*r*o/c);return i.y<a&&(h=-h),{x:n+l,y:a+h}}m(p0,"intersectEllipse");var g0=p0;function m0(t,e,r){return g0(t,e,e,r)}m(m0,"intersectCircle");var v$=m0;function y0(t,e,r,i){{const n=e.y-t.y,a=t.x-e.x,s=e.x*t.y-t.x*e.y,o=n*r.x+a*r.y+s,c=n*i.x+a*i.y+s,l=1e-6;if(o!==0&&c!==0&&pc(o,c))return;const h=i.y-r.y,u=r.x-i.x,f=i.x*r.y-r.x*i.y,d=h*t.x+u*t.y+f,p=h*e.x+u*e.y+f;if(Math.abs(d)<l&&Math.abs(p)<l&&pc(d,p))return;const g=n*u-h*a;if(g===0)return;const x=Math.abs(g/2);let y=a*f-u*s;const b=y<0?(y-x)/g:(y+x)/g;y=h*s-n*f;const w=y<0?(y-x)/g:(y+x)/g;return{x:b,y:w}}}m(y0,"intersectLine");function pc(t,e){return t*e>0}m(pc,"sameSign");var T$=y0;function x0(t,e,r){let i=t.x,n=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(h){s=Math.min(s,h.x),o=Math.min(o,h.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));let c=i-t.width/2-s,l=n-t.height/2-o;for(let h=0;h<e.length;h++){let u=e[h],f=e[h<e.length-1?h+1:0],d=T$(t,r,{x:c+u.x,y:l+u.y},{x:c+f.x,y:l+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(h,u){let f=h.x-r.x,d=h.y-r.y,p=Math.sqrt(f*f+d*d),g=u.x-r.x,x=u.y-r.y,y=Math.sqrt(g*g+x*x);return p<y?-1:p===y?0:1}),a[0]):t}m(x0,"intersectPolygon");var A$=x0,j={node:S$,circle:v$,ellipse:g0,polygon:A$,rect:Ui};function b0(t,e){const{labelStyles:r}=K(e);e.labelStyle=r;const i=ot(e);let n=i;i||(n="anchor");const a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=1,{cssStyles:o}=e,c=V.svg(a),l=Z(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(l.roughness=0);const h=c.circle(0,0,s*2,l),u=a.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",re(o)),Q(e,u),e.intersect=function(f){return P.info("Circle intersect",e,s,f),j.circle(e,s,f)},a}m(b0,"anchor");function gc(t,e,r,i,n,a,s){const c=(t+r)/2,l=(e+i)/2,h=Math.atan2(i-e,r-t),u=(r-t)/2,f=(i-e)/2,d=u/n,p=f/a,g=Math.sqrt(d**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-g**2),y=c+x*a*Math.sin(h)*(s?-1:1),b=l-x*n*Math.cos(h)*(s?-1:1),w=Math.atan2((e-b)/a,(t-y)/n);let _=Math.atan2((i-b)/a,(r-y)/n)-w;s&&_<0&&(_+=2*Math.PI),!s&&_>0&&(_-=2*Math.PI);const C=[];for(let S=0;S<20;S++){const F=S/19,I=w+F*_,O=y+n*Math.cos(I),A=b+a*Math.sin(I);C.push({x:O,y:A})}return C}m(gc,"generateArcPoints");async function C0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=a.width+e.padding+20,o=a.height+e.padding,c=o/2,l=c/(2.5+o/50),{cssStyles:h}=e,u=[{x:s/2,y:-o/2},{x:-s/2,y:-o/2},...gc(-s/2,-o/2,-s/2,o/2,l,c,!1),{x:s/2,y:o/2},...gc(s/2,o/2,s/2,-o/2,l,c,!0)],f=V.svg(n),d=Z(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=mt(u),g=f.path(p,d),x=n.insert(()=>g,":first-child");return x.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",h),i&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(${l/2}, 0)`),Q(e,x),e.intersect=function(y){return j.polygon(e,u,y)},n}m(C0,"bowTieRect");function Lr(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}m(Lr,"insertPolygonShape");async function w0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=a.height+e.padding,o=12,c=a.width+e.padding+o,l=0,h=c,u=-s,f=0,d=[{x:l+o,y:u},{x:h,y:u},{x:h,y:f},{x:l,y:f},{x:l,y:u+o},{x:l+o,y:u}];let p;const{cssStyles:g}=e;if(e.look==="handDrawn"){const x=V.svg(n),y=Z(e,{}),b=mt(d),w=x.path(b,y);p=n.insert(()=>w,":first-child").attr("transform",`translate(${-c/2}, ${s/2})`),g&&p.attr("style",g)}else p=Lr(n,c,s,d);return i&&p.attr("style",i),Q(e,p),e.intersect=function(x){return j.polygon(e,d,x)},n}m(w0,"card");function _0(t,e){const{nodeStyles:r}=K(e);e.label="";const i=t.insert("g").attr("class",ot(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=V.svg(i),c=Z(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const l=mt(s),h=o.path(l,c),u=i.insert(()=>h,":first-child");return n&&e.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&e.look!=="handDrawn"&&u.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(f){return j.polygon(e,s,f)},i}m(_0,"choice");async function Dh(t,e,r){const{labelStyles:i,nodeStyles:n}=K(e);e.labelStyle=i;const{shapeSvg:a,bbox:s,halfPadding:o}=await ct(t,e,ot(e)),c=(r==null?void 0:r.padding)??o,l=s.width/2+c;let h;const{cssStyles:u}=e;if(e.look==="handDrawn"){const f=V.svg(a),d=Z(e,{}),p=f.circle(0,0,l*2,d);h=a.insert(()=>p,":first-child"),h.attr("class","basic label-container").attr("style",re(u))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0);return Q(e,h),e.calcIntersect=function(f,d){const p=f.width/2;return j.circle(f,p,d)},e.intersect=function(f){return P.info("Circle intersect",e,l,f),j.circle(e,l,f)},a}m(Dh,"circle");function k0(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=t*2,n={x:i/2*e,y:i/2*r},a={x:-(i/2)*e,y:i/2*r},s={x:-(i/2)*e,y:-(i/2)*r},o={x:i/2*e,y:-(i/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y}
200
+ M ${n.x},${n.y} L ${s.x},${s.y}`}m(k0,"createLine");function S0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r,e.label="";const n=t.insert("g").attr("class",ot(e)).attr("id",e.domId??e.id),a=Math.max(30,(e==null?void 0:e.width)??0),{cssStyles:s}=e,o=V.svg(n),c=Z(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const l=o.circle(0,0,a*2,c),h=k0(a),u=o.path(h,c),f=n.insert(()=>l,":first-child");return f.insert(()=>u),s&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",s),i&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",i),Q(e,f),e.intersect=function(d){return P.info("crossedCircle intersect",e,{radius:a,point:d}),j.circle(e,a,d)},n}m(S0,"crossedCircle");function nr(t,e,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:-d,y:-p})}return s}m(nr,"generateCirclePoints");async function v0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=a.width+(e.padding??0),c=a.height+(e.padding??0),l=Math.max(5,c*.1),{cssStyles:h}=e,u=[...nr(o/2,-c/2,l,30,-90,0),{x:-o/2-l,y:l},...nr(o/2+l*2,-l,l,20,-180,-270),...nr(o/2+l*2,l,l,20,-90,-180),{x:-o/2-l,y:-c/2},...nr(o/2,c/2,l,20,0,90)],f=[{x:o/2,y:-c/2-l},{x:-o/2,y:-c/2-l},...nr(o/2,-c/2,l,20,-90,0),{x:-o/2-l,y:-l},...nr(o/2+o*.1,-l,l,20,-180,-270),...nr(o/2+o*.1,l,l,20,-90,-180),{x:-o/2-l,y:c/2},...nr(o/2,c/2,l,20,0,90),{x:-o/2,y:c/2+l},{x:o/2,y:c/2+l}],d=V.svg(n),p=Z(e,{fill:"none"});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const x=mt(u).replace("Z",""),y=d.path(x,p),b=mt(f),w=d.path(b,{...p}),k=n.insert("g",":first-child");return k.insert(()=>w,":first-child").attr("stroke-opacity",0),k.insert(()=>y,":first-child"),k.attr("class","text"),h&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${l}, 0)`),s.attr("transform",`translate(${-o/2+l-(a.x-(a.left??0))},${-c/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Q(e,k),e.intersect=function(_){return j.polygon(e,f,_)},n}m(v0,"curlyBraceLeft");function ar(t,e,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:d,y:p})}return s}m(ar,"generateCirclePoints");async function T0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=a.width+(e.padding??0),c=a.height+(e.padding??0),l=Math.max(5,c*.1),{cssStyles:h}=e,u=[...ar(o/2,-c/2,l,20,-90,0),{x:o/2+l,y:-l},...ar(o/2+l*2,-l,l,20,-180,-270),...ar(o/2+l*2,l,l,20,-90,-180),{x:o/2+l,y:c/2},...ar(o/2,c/2,l,20,0,90)],f=[{x:-o/2,y:-c/2-l},{x:o/2,y:-c/2-l},...ar(o/2,-c/2,l,20,-90,0),{x:o/2+l,y:-l},...ar(o/2+l*2,-l,l,20,-180,-270),...ar(o/2+l*2,l,l,20,-90,-180),{x:o/2+l,y:c/2},...ar(o/2,c/2,l,20,0,90),{x:o/2,y:c/2+l},{x:-o/2,y:c/2+l}],d=V.svg(n),p=Z(e,{fill:"none"});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const x=mt(u).replace("Z",""),y=d.path(x,p),b=mt(f),w=d.path(b,{...p}),k=n.insert("g",":first-child");return k.insert(()=>w,":first-child").attr("stroke-opacity",0),k.insert(()=>y,":first-child"),k.attr("class","text"),h&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",h),i&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${-l}, 0)`),s.attr("transform",`translate(${-o/2+(e.padding??0)/2-(a.x-(a.left??0))},${-c/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Q(e,k),e.intersect=function(_){return j.polygon(e,f,_)},n}m(T0,"curlyBraceRight");function Ut(t,e,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:-d,y:-p})}return s}m(Ut,"generateCirclePoints");async function A0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=a.width+(e.padding??0),c=a.height+(e.padding??0),l=Math.max(5,c*.1),{cssStyles:h}=e,u=[...Ut(o/2,-c/2,l,30,-90,0),{x:-o/2-l,y:l},...Ut(o/2+l*2,-l,l,20,-180,-270),...Ut(o/2+l*2,l,l,20,-90,-180),{x:-o/2-l,y:-c/2},...Ut(o/2,c/2,l,20,0,90)],f=[...Ut(-o/2+l+l/2,-c/2,l,20,-90,-180),{x:o/2-l/2,y:l},...Ut(-o/2-l/2,-l,l,20,0,90),...Ut(-o/2-l/2,l,l,20,-90,0),{x:o/2-l/2,y:-l},...Ut(-o/2+l+l/2,c/2,l,30,-180,-270)],d=[{x:o/2,y:-c/2-l},{x:-o/2,y:-c/2-l},...Ut(o/2,-c/2,l,20,-90,0),{x:-o/2-l,y:-l},...Ut(o/2+l*2,-l,l,20,-180,-270),...Ut(o/2+l*2,l,l,20,-90,-180),{x:-o/2-l,y:c/2},...Ut(o/2,c/2,l,20,0,90),{x:-o/2,y:c/2+l},{x:o/2-l-l/2,y:c/2+l},...Ut(-o/2+l+l/2,-c/2,l,20,-90,-180),{x:o/2-l/2,y:l},...Ut(-o/2-l/2,-l,l,20,0,90),...Ut(-o/2-l/2,l,l,20,-90,0),{x:o/2-l/2,y:-l},...Ut(-o/2+l+l/2,c/2,l,30,-180,-270)],p=V.svg(n),g=Z(e,{fill:"none"});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=mt(u).replace("Z",""),b=p.path(y,g),k=mt(f).replace("Z",""),_=p.path(k,g),C=mt(d),S=p.path(C,{...g}),F=n.insert("g",":first-child");return F.insert(()=>S,":first-child").attr("stroke-opacity",0),F.insert(()=>b,":first-child"),F.insert(()=>_,":first-child"),F.attr("class","text"),h&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",h),i&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(${l-l/4}, 0)`),s.attr("transform",`translate(${-o/2+(e.padding??0)/2-(a.x-(a.left??0))},${-c/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Q(e,F),e.intersect=function(I){return j.polygon(e,d,I)},n}m(A0,"curlyBraces");async function L0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=80,o=20,c=Math.max(s,(a.width+(e.padding??0)*2)*1.25,(e==null?void 0:e.width)??0),l=Math.max(o,a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=l/2,{cssStyles:u}=e,f=V.svg(n),d=Z(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=c,g=l,x=p-h,y=g/4,b=[{x,y:0},{x:y,y:0},{x:0,y:g/2},{x:y,y:g},{x,y:g},...Wn(-x,-g/2,h,50,270,90)],w=mt(b),k=f.path(w,d),_=n.insert(()=>k,":first-child");return _.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",u),i&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),_.attr("transform",`translate(${-c/2}, ${-l/2})`),Q(e,_),e.intersect=function(C){return j.polygon(e,b,C)},n}m(L0,"curvedTrapezoid");var L$=m((t,e,r,i,n,a)=>[`M${t},${e+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),M$=m((t,e,r,i,n,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),E$=m((t,e,r,i,n,a)=>[`M${t-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function M0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+e.padding,e.width??0),c=o/2,l=c/(2.5+o/50),h=Math.max(a.height+l+e.padding,e.height??0);let u;const{cssStyles:f}=e;if(e.look==="handDrawn"){const d=V.svg(n),p=M$(0,0,o,h,c,l),g=E$(0,l,o,h,c,l),x=d.path(p,Z(e,{})),y=d.path(g,Z(e,{fill:"none"}));u=n.insert(()=>y,":first-child"),u=n.insert(()=>x,":first-child"),u.attr("class","basic label-container"),f&&u.attr("style",f)}else{const d=L$(0,0,o,h,c,l);u=n.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",re(f)).attr("style",i)}return u.attr("label-offset-y",l),u.attr("transform",`translate(${-o/2}, ${-(h/2+l)})`),Q(e,u),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(e.padding??0)/1.5-(a.y-(a.top??0))})`),e.intersect=function(d){const p=j.rect(e,d),g=p.x-(e.x??0);if(c!=0&&(Math.abs(g)<(e.width??0)/2||Math.abs(g)==(e.width??0)/2&&Math.abs(p.y-(e.y??0))>(e.height??0)/2-l)){let x=l*l*(1-g*g/(c*c));x>0&&(x=Math.sqrt(x)),x=l-x,d.y-(e.y??0)>0&&(x=-x),p.y+=x}return p},n}m(M0,"cylinder");async function E0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=a.width+e.padding,c=a.height+e.padding,l=c*.2,h=-o/2,u=-c/2-l/2,{cssStyles:f}=e,d=V.svg(n),p=Z(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:h,y:u+l},{x:-h,y:u+l},{x:-h,y:-u},{x:h,y:-u},{x:h,y:u},{x:-h,y:u},{x:-h,y:u+l}],x=d.polygon(g.map(b=>[b.x,b.y]),p),y=n.insert(()=>x,":first-child");return y.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",i),s.attr("transform",`translate(${h+(e.padding??0)/2-(a.x-(a.left??0))}, ${u+l+(e.padding??0)/2-(a.y-(a.top??0))})`),Q(e,y),e.intersect=function(b){return j.rect(e,b)},n}m(E0,"dividedRectangle");async function B0(t,e){var f,d;const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s}=await ct(t,e,ot(e)),c=a.width/2+s+5,l=a.width/2+s;let h;const{cssStyles:u}=e;if(e.look==="handDrawn"){const p=V.svg(n),g=Z(e,{roughness:.2,strokeWidth:2.5}),x=Z(e,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,c*2,g),b=p.circle(0,0,l*2,x);h=n.insert("g",":first-child"),h.attr("class",re(e.cssClasses)).attr("style",re(u)),(f=h.node())==null||f.appendChild(y),(d=h.node())==null||d.appendChild(b)}else{h=n.insert("g",":first-child");const p=h.insert("circle",":first-child"),g=h.insert("circle");h.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",i).attr("r",l).attr("cx",0).attr("cy",0)}return Q(e,h),e.intersect=function(p){return P.info("DoubleCircle intersect",e,c,p),j.circle(e,c,p)},n}m(B0,"doublecircle");function $0(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=K(e);e.label="",e.labelStyle=i;const a=t.insert("g").attr("class",ot(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,c=V.svg(a),{nodeBorder:l}=r,h=Z(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(h.roughness=0);const u=c.circle(0,0,s*2,h),f=a.insert(()=>u,":first-child");return f.selectAll("path").attr("style",`fill: ${l} !important;`),o&&o.length>0&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",o),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),Q(e,f),e.intersect=function(d){return P.info("filledCircle intersect",e,{radius:s,point:d}),j.circle(e,s,d)},a}m($0,"filledCircle");async function F0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=a.width+(e.padding??0),c=o+a.height,l=o+a.height,h=[{x:0,y:-c},{x:l,y:-c},{x:l/2,y:0}],{cssStyles:u}=e,f=V.svg(n),d=Z(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=mt(h),g=f.path(p,d),x=n.insert(()=>g,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return u&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),e.width=o,e.height=c,Q(e,x),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-c/2+(e.padding??0)/2+(a.y-(a.top??0))})`),e.intersect=function(y){return P.info("Triangle intersect",e,h,y),j.polygon(e,h,y)},n}m(F0,"flippedTriangle");function D0(t,e,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=K(e);e.label="";const s=t.insert("g").attr("class",ot(e)).attr("id",e.domId??e.id),{cssStyles:o}=e;let c=Math.max(70,(e==null?void 0:e.width)??0),l=Math.max(10,(e==null?void 0:e.height)??0);r==="LR"&&(c=Math.max(10,(e==null?void 0:e.width)??0),l=Math.max(70,(e==null?void 0:e.height)??0));const h=-1*c/2,u=-1*l/2,f=V.svg(s),d=Z(e,{stroke:n.lineColor,fill:n.lineColor});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=f.rectangle(h,u,c,l,d),g=s.insert(()=>p,":first-child");o&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",o),a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),Q(e,g);const x=(i==null?void 0:i.padding)??0;return e.width&&e.height&&(e.width+=x/2||0,e.height+=x/2||0),e.intersect=function(y){return j.rect(e,y)},s}m(D0,"forkJoin");async function O0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const n=80,a=50,{shapeSvg:s,bbox:o}=await ct(t,e,ot(e)),c=Math.max(n,o.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a,o.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=l/2,{cssStyles:u}=e,f=V.svg(s),d=Z(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-c/2,y:-l/2},{x:c/2-h,y:-l/2},...Wn(-c/2+h,0,h,50,90,270),{x:c/2-h,y:l/2},{x:-c/2,y:l/2}],g=mt(p),x=f.path(g,d),y=s.insert(()=>x,":first-child");return y.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),Q(e,y),e.intersect=function(b){return P.info("Pill intersect",e,{radius:h,point:b}),j.polygon(e,p,b)},s}m(O0,"halfRoundedRectangle");async function I0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=a.height+(e.padding??0),o=a.width+(e.padding??0)*2.5,{cssStyles:c}=e,l=V.svg(n),h=Z(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=o/2;const f=u/6;u=u+f;const d=s/2,p=d/2,g=u-p,x=[{x:-g,y:-d},{x:0,y:-d},{x:g,y:-d},{x:u,y:0},{x:g,y:d},{x:0,y:d},{x:-g,y:d},{x:-u,y:0}],y=mt(x),b=l.path(y,h),w=n.insert(()=>b,":first-child");return w.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",c),i&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),e.width=o,e.height=s,Q(e,w),e.intersect=function(k){return j.polygon(e,x,k)},n}m(I0,"hexagon");async function R0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.label="",e.labelStyle=r;const{shapeSvg:n}=await ct(t,e,ot(e)),a=Math.max(30,(e==null?void 0:e.width)??0),s=Math.max(30,(e==null?void 0:e.height)??0),{cssStyles:o}=e,c=V.svg(n),l=Z(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const h=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],u=mt(h),f=c.path(u,l),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container"),o&&e.look!=="handDrawn"&&d.selectChildren("path").attr("style",o),i&&e.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-a/2}, ${-s/2})`),Q(e,d),e.intersect=function(p){return P.info("Pill intersect",e,{points:h}),j.polygon(e,h,p)},n}m(R0,"hourglass");async function P0(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(e);e.labelStyle=n;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),c=i==null?void 0:i.wrappingWidth;e.width=Math.max(o,c??0);const{shapeSvg:l,bbox:h,label:u}=await ct(t,e,"icon-shape default"),f=e.pos==="t",d=o,p=o,{nodeBorder:g}=r,{stylesMap:x}=qi(e),y=-p/2,b=-d/2,w=e.label?8:0,k=V.svg(l),_=Z(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=k.rectangle(y,b,p,d,_),S=Math.max(p,h.width),F=d+h.height+w,I=k.rectangle(-S/2,-F/2,S,F,{..._,fill:"transparent",stroke:"none"}),O=l.insert(()=>C,":first-child"),A=l.insert(()=>I);if(e.icon){const N=l.append("g");N.html(`<g>${await ca(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const $=N.node().getBBox(),L=$.width,M=$.height,E=$.x,D=$.y;N.attr("transform",`translate(${-L/2-E},${f?h.height/2+w/2-M/2-D:-h.height/2-w/2-M/2-D})`),N.attr("style",`color: ${x.get("stroke")??g};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-F/2:F/2-h.height})`),O.attr("transform",`translate(0,${f?h.height/2+w/2:-h.height/2-w/2})`),Q(e,A),e.intersect=function(N){if(P.info("iconSquare intersect",e,N),!e.label)return j.rect(e,N);const $=e.x??0,L=e.y??0,M=e.height??0;let E=[];return f?E=[{x:$-h.width/2,y:L-M/2},{x:$+h.width/2,y:L-M/2},{x:$+h.width/2,y:L-M/2+h.height+w},{x:$+p/2,y:L-M/2+h.height+w},{x:$+p/2,y:L+M/2},{x:$-p/2,y:L+M/2},{x:$-p/2,y:L-M/2+h.height+w},{x:$-h.width/2,y:L-M/2+h.height+w}]:E=[{x:$-p/2,y:L-M/2},{x:$+p/2,y:L-M/2},{x:$+p/2,y:L-M/2+d},{x:$+h.width/2,y:L-M/2+d},{x:$+h.width/2/2,y:L+M/2},{x:$-h.width/2,y:L+M/2},{x:$-h.width/2,y:L-M/2+d},{x:$-p/2,y:L-M/2+d}],j.polygon(e,E,N)},l}m(P0,"icon");async function N0(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(e);e.labelStyle=n;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),c=i==null?void 0:i.wrappingWidth;e.width=Math.max(o,c??0);const{shapeSvg:l,bbox:h,label:u}=await ct(t,e,"icon-shape default"),f=20,d=e.label?8:0,p=e.pos==="t",{nodeBorder:g,mainBkg:x}=r,{stylesMap:y}=qi(e),b=V.svg(l),w=Z(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const k=y.get("fill");w.stroke=k??x;const _=l.append("g");e.icon&&_.html(`<g>${await ca(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const C=_.node().getBBox(),S=C.width,F=C.height,I=C.x,O=C.y,A=Math.max(S,F)*Math.SQRT2+f*2,N=b.circle(0,0,A,w),$=Math.max(A,h.width),L=A+h.height+d,M=b.rectangle(-$/2,-L/2,$,L,{...w,fill:"transparent",stroke:"none"}),E=l.insert(()=>N,":first-child"),D=l.insert(()=>M);return _.attr("transform",`translate(${-S/2-I},${p?h.height/2+d/2-F/2-O:-h.height/2-d/2-F/2-O})`),_.attr("style",`color: ${y.get("stroke")??g};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-L/2:L/2-h.height})`),E.attr("transform",`translate(0,${p?h.height/2+d/2:-h.height/2-d/2})`),Q(e,D),e.intersect=function(v){return P.info("iconSquare intersect",e,v),j.rect(e,v)},l}m(N0,"iconCircle");async function z0(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(e);e.labelStyle=n;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),c=i==null?void 0:i.wrappingWidth;e.width=Math.max(o,c??0);const{shapeSvg:l,bbox:h,halfPadding:u,label:f}=await ct(t,e,"icon-shape default"),d=e.pos==="t",p=o+u*2,g=o+u*2,{nodeBorder:x,mainBkg:y}=r,{stylesMap:b}=qi(e),w=-g/2,k=-p/2,_=e.label?8:0,C=V.svg(l),S=Z(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const F=b.get("fill");S.stroke=F??y;const I=C.path(Ar(w,k,g,p,5),S),O=Math.max(g,h.width),A=p+h.height+_,N=C.rectangle(-O/2,-A/2,O,A,{...S,fill:"transparent",stroke:"none"}),$=l.insert(()=>I,":first-child").attr("class","icon-shape2"),L=l.insert(()=>N);if(e.icon){const M=l.append("g");M.html(`<g>${await ca(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const E=M.node().getBBox(),D=E.width,v=E.height,R=E.x,U=E.y;M.attr("transform",`translate(${-D/2-R},${d?h.height/2+_/2-v/2-U:-h.height/2-_/2-v/2-U})`),M.attr("style",`color: ${b.get("stroke")??x};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-A/2:A/2-h.height})`),$.attr("transform",`translate(0,${d?h.height/2+_/2:-h.height/2-_/2})`),Q(e,L),e.intersect=function(M){if(P.info("iconSquare intersect",e,M),!e.label)return j.rect(e,M);const E=e.x??0,D=e.y??0,v=e.height??0;let R=[];return d?R=[{x:E-h.width/2,y:D-v/2},{x:E+h.width/2,y:D-v/2},{x:E+h.width/2,y:D-v/2+h.height+_},{x:E+g/2,y:D-v/2+h.height+_},{x:E+g/2,y:D+v/2},{x:E-g/2,y:D+v/2},{x:E-g/2,y:D-v/2+h.height+_},{x:E-h.width/2,y:D-v/2+h.height+_}]:R=[{x:E-g/2,y:D-v/2},{x:E+g/2,y:D-v/2},{x:E+g/2,y:D-v/2+p},{x:E+h.width/2,y:D-v/2+p},{x:E+h.width/2/2,y:D+v/2},{x:E-h.width/2,y:D+v/2},{x:E-h.width/2,y:D-v/2+p},{x:E-g/2,y:D-v/2+p}],j.polygon(e,R,M)},l}m(z0,"iconRounded");async function W0(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=K(e);e.labelStyle=n;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),c=i==null?void 0:i.wrappingWidth;e.width=Math.max(o,c??0);const{shapeSvg:l,bbox:h,halfPadding:u,label:f}=await ct(t,e,"icon-shape default"),d=e.pos==="t",p=o+u*2,g=o+u*2,{nodeBorder:x,mainBkg:y}=r,{stylesMap:b}=qi(e),w=-g/2,k=-p/2,_=e.label?8:0,C=V.svg(l),S=Z(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const F=b.get("fill");S.stroke=F??y;const I=C.path(Ar(w,k,g,p,.1),S),O=Math.max(g,h.width),A=p+h.height+_,N=C.rectangle(-O/2,-A/2,O,A,{...S,fill:"transparent",stroke:"none"}),$=l.insert(()=>I,":first-child"),L=l.insert(()=>N);if(e.icon){const M=l.append("g");M.html(`<g>${await ca(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const E=M.node().getBBox(),D=E.width,v=E.height,R=E.x,U=E.y;M.attr("transform",`translate(${-D/2-R},${d?h.height/2+_/2-v/2-U:-h.height/2-_/2-v/2-U})`),M.attr("style",`color: ${b.get("stroke")??x};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-A/2:A/2-h.height})`),$.attr("transform",`translate(0,${d?h.height/2+_/2:-h.height/2-_/2})`),Q(e,L),e.intersect=function(M){if(P.info("iconSquare intersect",e,M),!e.label)return j.rect(e,M);const E=e.x??0,D=e.y??0,v=e.height??0;let R=[];return d?R=[{x:E-h.width/2,y:D-v/2},{x:E+h.width/2,y:D-v/2},{x:E+h.width/2,y:D-v/2+h.height+_},{x:E+g/2,y:D-v/2+h.height+_},{x:E+g/2,y:D+v/2},{x:E-g/2,y:D+v/2},{x:E-g/2,y:D-v/2+h.height+_},{x:E-h.width/2,y:D-v/2+h.height+_}]:R=[{x:E-g/2,y:D-v/2},{x:E+g/2,y:D-v/2},{x:E+g/2,y:D-v/2+p},{x:E+h.width/2,y:D-v/2+p},{x:E+h.width/2/2,y:D+v/2},{x:E-h.width/2,y:D+v/2},{x:E-h.width/2,y:D-v/2+p},{x:E-g/2,y:D-v/2+p}],j.polygon(e,R,M)},l}m(W0,"iconSquare");async function q0(t,e,{config:{flowchart:r}}){const i=new Image;i.src=(e==null?void 0:e.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=n/a;const{labelStyles:s}=K(e);e.labelStyle=s;const o=r==null?void 0:r.wrappingWidth;e.defaultWidth=r==null?void 0:r.wrappingWidth;const c=Math.max(e.label?o??0:0,(e==null?void 0:e.assetWidth)??n),l=e.constraint==="on"&&e!=null&&e.assetHeight?e.assetHeight*e.imageAspectRatio:c,h=e.constraint==="on"?l/e.imageAspectRatio:(e==null?void 0:e.assetHeight)??a;e.width=Math.max(l,o??0);const{shapeSvg:u,bbox:f,label:d}=await ct(t,e,"image-shape default"),p=e.pos==="t",g=-l/2,x=-h/2,y=e.label?8:0,b=V.svg(u),w=Z(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const k=b.rectangle(g,x,l,h,w),_=Math.max(l,f.width),C=h+f.height+y,S=b.rectangle(-_/2,-C/2,_,C,{...w,fill:"none",stroke:"none"}),F=u.insert(()=>k,":first-child"),I=u.insert(()=>S);if(e.img){const O=u.append("image");O.attr("href",e.img),O.attr("width",l),O.attr("height",h),O.attr("preserveAspectRatio","none"),O.attr("transform",`translate(${-l/2},${p?C/2-h:-C/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-h/2-f.height/2-y/2:h/2-f.height/2+y/2})`),F.attr("transform",`translate(0,${p?f.height/2+y/2:-f.height/2-y/2})`),Q(e,I),e.intersect=function(O){if(P.info("iconSquare intersect",e,O),!e.label)return j.rect(e,O);const A=e.x??0,N=e.y??0,$=e.height??0;let L=[];return p?L=[{x:A-f.width/2,y:N-$/2},{x:A+f.width/2,y:N-$/2},{x:A+f.width/2,y:N-$/2+f.height+y},{x:A+l/2,y:N-$/2+f.height+y},{x:A+l/2,y:N+$/2},{x:A-l/2,y:N+$/2},{x:A-l/2,y:N-$/2+f.height+y},{x:A-f.width/2,y:N-$/2+f.height+y}]:L=[{x:A-l/2,y:N-$/2},{x:A+l/2,y:N-$/2},{x:A+l/2,y:N-$/2+h},{x:A+f.width/2,y:N-$/2+h},{x:A+f.width/2/2,y:N+$/2},{x:A-f.width/2,y:N+$/2},{x:A-f.width/2,y:N-$/2+h},{x:A-l/2,y:N-$/2+h}],j.polygon(e,L,O)},u}m(q0,"imageSquare");async function H0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=[{x:0,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:-3*o/6,y:-o}];let l;const{cssStyles:h}=e;if(e.look==="handDrawn"){const u=V.svg(n),f=Z(e,{}),d=mt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&l.attr("style",h)}else l=Lr(n,s,o,c);return i&&l.attr("style",i),e.width=s,e.height=o,Q(e,l),e.intersect=function(u){return j.polygon(e,c,u)},n}m(H0,"inv_trapezoid");async function _o(t,e,r){const{labelStyles:i,nodeStyles:n}=K(e);e.labelStyle=i;const{shapeSvg:a,bbox:s}=await ct(t,e,ot(e)),o=Math.max(s.width+r.labelPaddingX*2,(e==null?void 0:e.width)||0),c=Math.max(s.height+r.labelPaddingY*2,(e==null?void 0:e.height)||0),l=-o/2,h=-c/2;let u,{rx:f,ry:d}=e;const{cssStyles:p}=e;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),e.look==="handDrawn"){const g=V.svg(a),x=Z(e,{}),y=f||d?g.path(Ar(l,h,o,c,f||0),x):g.rectangle(l,h,o,c,x);u=a.insert(()=>y,":first-child"),u.attr("class","basic label-container").attr("style",re(p))}else u=a.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",re(f)).attr("ry",re(d)).attr("x",l).attr("y",h).attr("width",o).attr("height",c);return Q(e,u),e.calcIntersect=function(g,x){return j.rect(g,x)},e.intersect=function(g){return j.rect(e,g)},a}m(_o,"drawRect");async function Y0(t,e){const{shapeSvg:r,bbox:i,label:n}=await ct(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Q(e,a),e.intersect=function(c){return j.rect(e,c)},r}m(Y0,"labelRect");async function U0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=Math.max(a.width+(e.padding??0),(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0),(e==null?void 0:e.height)??0),c=[{x:0,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:-(3*o)/6,y:-o}];let l;const{cssStyles:h}=e;if(e.look==="handDrawn"){const u=V.svg(n),f=Z(e,{}),d=mt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&l.attr("style",h)}else l=Lr(n,s,o,c);return i&&l.attr("style",i),e.width=s,e.height=o,Q(e,l),e.intersect=function(u){return j.polygon(e,c,u)},n}m(U0,"lean_left");async function j0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=Math.max(a.width+(e.padding??0),(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0),(e==null?void 0:e.height)??0),c=[{x:-3*o/6,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:0,y:-o}];let l;const{cssStyles:h}=e;if(e.look==="handDrawn"){const u=V.svg(n),f=Z(e,{}),d=mt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&l.attr("style",h)}else l=Lr(n,s,o,c);return i&&l.attr("style",i),e.width=s,e.height=o,Q(e,l),e.intersect=function(u){return j.polygon(e,c,u)},n}m(j0,"lean_right");function X0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.label="",e.labelStyle=r;const n=t.insert("g").attr("class",ot(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,(e==null?void 0:e.width)??0),o=Math.max(35,(e==null?void 0:e.height)??0),c=7,l=[{x:s,y:0},{x:0,y:o+c/2},{x:s-2*c,y:o+c/2},{x:0,y:2*o},{x:s,y:o-c/2},{x:2*c,y:o-c/2}],h=V.svg(n),u=Z(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=mt(l),d=h.path(f,u),p=n.insert(()=>d,":first-child");return a&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",a),i&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${s/2},${-o})`),Q(e,p),e.intersect=function(g){return P.info("lightningBolt intersect",e,g),j.polygon(e,l,g)},n}m(X0,"lightningBolt");var B$=m((t,e,r,i,n,a,s)=>[`M${t},${e+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),$$=m((t,e,r,i,n,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),F$=m((t,e,r,i,n,a)=>[`M${t-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function G0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0),e.width??0),c=o/2,l=c/(2.5+o/50),h=Math.max(a.height+l+(e.padding??0),e.height??0),u=h*.1;let f;const{cssStyles:d}=e;if(e.look==="handDrawn"){const p=V.svg(n),g=$$(0,0,o,h,c,l,u),x=F$(0,l,o,h,c,l),y=Z(e,{}),b=p.path(g,y),w=p.path(x,y);n.insert(()=>w,":first-child").attr("class","line"),f=n.insert(()=>b,":first-child"),f.attr("class","basic label-container"),d&&f.attr("style",d)}else{const p=B$(0,0,o,h,c,l,u);f=n.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",re(d)).attr("style",i)}return f.attr("label-offset-y",l),f.attr("transform",`translate(${-o/2}, ${-(h/2+l)})`),Q(e,f),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+l-(a.y-(a.top??0))})`),e.intersect=function(p){const g=j.rect(e,p),x=g.x-(e.x??0);if(c!=0&&(Math.abs(x)<(e.width??0)/2||Math.abs(x)==(e.width??0)/2&&Math.abs(g.y-(e.y??0))>(e.height??0)/2-l)){let y=l*l*(1-x*x/(c*c));y>0&&(y=Math.sqrt(y)),y=l-y,p.y-(e.y??0)>0&&(y=-y),g.y+=y}return g},n}m(G0,"linedCylinder");async function V0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=c/4,h=c+l,{cssStyles:u}=e,f=V.svg(n),d=Z(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-o/2-o/2*.1,y:-h/2},{x:-o/2-o/2*.1,y:h/2},...Sr(-o/2-o/2*.1,h/2,o/2+o/2*.1,h/2,l,.8),{x:o/2+o/2*.1,y:-h/2},{x:-o/2-o/2*.1,y:-h/2},{x:-o/2,y:-h/2},{x:-o/2,y:h/2*1.1},{x:-o/2,y:-h/2}],g=f.polygon(p.map(y=>[y.x,y.y]),d),x=n.insert(()=>g,":first-child");return x.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",u),i&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(0,${-l/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)+o/2*.1/2-(a.x-(a.left??0))},${-c/2+(e.padding??0)-l/2-(a.y-(a.top??0))})`),Q(e,x),e.intersect=function(y){return j.polygon(e,p,y)},n}m(V0,"linedWaveEdgedRect");async function Z0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=5,h=-o/2,u=-c/2,{cssStyles:f}=e,d=V.svg(n),p=Z(e,{}),g=[{x:h-l,y:u+l},{x:h-l,y:u+c+l},{x:h+o-l,y:u+c+l},{x:h+o-l,y:u+c},{x:h+o,y:u+c},{x:h+o,y:u+c-l},{x:h+o+l,y:u+c-l},{x:h+o+l,y:u-l},{x:h+l,y:u-l},{x:h+l,y:u},{x:h,y:u},{x:h,y:u+l}],x=[{x:h,y:u+l},{x:h+o-l,y:u+l},{x:h+o-l,y:u+c},{x:h+o,y:u+c},{x:h+o,y:u},{x:h,y:u}];e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=mt(g),b=d.path(y,p),w=mt(x),k=d.path(w,{...p,fill:"none"}),_=n.insert(()=>k,":first-child");return _.insert(()=>b,":first-child"),_.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(a.width/2)-l-(a.x-(a.left??0))}, ${-(a.height/2)+l-(a.y-(a.top??0))})`),Q(e,_),e.intersect=function(C){return j.polygon(e,g,C)},n}m(Z0,"multiRect");async function K0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=c/4,h=c+l,u=-o/2,f=-h/2,d=5,{cssStyles:p}=e,g=Sr(u-d,f+h+d,u+o-d,f+h+d,l,.8),x=g==null?void 0:g[g.length-1],y=[{x:u-d,y:f+d},{x:u-d,y:f+h+d},...g,{x:u+o-d,y:x.y-d},{x:u+o,y:x.y-d},{x:u+o,y:x.y-2*d},{x:u+o+d,y:x.y-2*d},{x:u+o+d,y:f-d},{x:u+d,y:f-d},{x:u+d,y:f},{x:u,y:f},{x:u,y:f+d}],b=[{x:u,y:f+d},{x:u+o-d,y:f+d},{x:u+o-d,y:x.y-d},{x:u+o,y:x.y-d},{x:u+o,y:f},{x:u,y:f}],w=V.svg(n),k=Z(e,{});e.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const _=mt(y),C=w.path(_,k),S=mt(b),F=w.path(S,k),I=n.insert(()=>C,":first-child");return I.insert(()=>F),I.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&I.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(0,${-l/2})`),s.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)+d-l/2-(a.y-(a.top??0))})`),Q(e,I),e.intersect=function(O){return j.polygon(e,y,O)},n}m(K0,"multiWaveEdgedRectangle");async function Q0(t,e,{config:{themeVariables:r}}){var b;const{labelStyles:i,nodeStyles:n}=K(e);e.labelStyle=i,e.useHtmlLabels||((b=te().flowchart)==null?void 0:b.htmlLabels)!==!1||(e.centerLabel=!0);const{shapeSvg:s,bbox:o,label:c}=await ct(t,e,ot(e)),l=Math.max(o.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),h=Math.max(o.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),u=-l/2,f=-h/2,{cssStyles:d}=e,p=V.svg(s),g=Z(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=p.rectangle(u,f,l,h,g),y=s.insert(()=>x,":first-child");return y.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",n),c.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Q(e,y),e.intersect=function(w){return j.rect(e,w)},s}m(Q0,"note");var D$=m((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function J0(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=a.width+e.padding,o=a.height+e.padding,c=s+o,l=.5,h=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}];let u;const{cssStyles:f}=e;if(e.look==="handDrawn"){const d=V.svg(n),p=Z(e,{}),g=D$(0,0,c),x=d.path(g,p);u=n.insert(()=>x,":first-child").attr("transform",`translate(${-c/2+l}, ${c/2})`),f&&u.attr("style",f)}else u=Lr(n,c,c,h),u.attr("transform",`translate(${-c/2+l}, ${c/2})`);return i&&u.attr("style",i),Q(e,u),e.calcIntersect=function(d,p){const g=d.width,x=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}],y=j.polygon(d,x,p);return{x:y.x-.5,y:y.y-.5}},e.intersect=function(d){return this.calcIntersect(e,d)},n}m(J0,"question");async function tx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0),(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0),(e==null?void 0:e.height)??0),l=-o/2,h=-c/2,u=h/2,f=[{x:l+u,y:h},{x:l,y:0},{x:l+u,y:-h},{x:-l,y:-h},{x:-l,y:h}],{cssStyles:d}=e,p=V.svg(n),g=Z(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=mt(f),y=p.path(x,g),b=n.insert(()=>y,":first-child");return b.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-u/2},0)`),s.attr("transform",`translate(${-u/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Q(e,b),e.intersect=function(w){return j.polygon(e,f,w)},n}m(tx,"rect_left_inv_arrow");async function ex(t,e){var F,I;const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;let n;e.cssClasses?n="node "+e.cssClasses:n="node default";const a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",i),c=e.description,l=e.label,h=o.node().appendChild(await zr(l,e.labelStyle,!0,!0));let u={width:0,height:0};if(Nt((I=(F=kt())==null?void 0:F.flowchart)==null?void 0:I.htmlLabels)){const O=h.children[0],A=bt(h);u=O.getBoundingClientRect(),A.attr("width",u.width),A.attr("height",u.height)}P.info("Text 2",c);const f=c||[],d=h.getBBox(),p=o.node().appendChild(await zr(f.join?f.join("<br/>"):f,e.labelStyle,!0,!0)),g=p.children[0],x=bt(p);u=g.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height);const y=(e.padding||0)/2;bt(p).attr("transform","translate( "+(u.width>d.width?0:(d.width-u.width)/2)+", "+(d.height+y+5)+")"),bt(h).attr("transform","translate( "+(u.width<d.width?0:-(d.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-y+3)+")");const b=u.width+(e.padding||0),w=u.height+(e.padding||0),k=-u.width/2-y,_=-u.height/2-y;let C,S;if(e.look==="handDrawn"){const O=V.svg(a),A=Z(e,{}),N=O.path(Ar(k,_,b,w,e.rx||0),A),$=O.line(-u.width/2-y,-u.height/2-y+d.height+y,u.width/2+y,-u.height/2-y+d.height+y,A);S=a.insert(()=>(P.debug("Rough node insert CXC",N),$),":first-child"),C=a.insert(()=>(P.debug("Rough node insert CXC",N),N),":first-child")}else C=s.insert("rect",":first-child"),S=s.insert("line"),C.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-y).attr("y",-u.height/2-y).attr("width",u.width+(e.padding||0)).attr("height",u.height+(e.padding||0)),S.attr("class","divider").attr("x1",-u.width/2-y).attr("x2",u.width/2+y).attr("y1",-u.height/2-y+d.height+y).attr("y2",-u.height/2-y+d.height+y);return Q(e,C),e.intersect=function(O){return j.rect(e,O)},a}m(ex,"rectWithTitle");function bn(t,e,r,i,n,a,s){const c=(t+r)/2,l=(e+i)/2,h=Math.atan2(i-e,r-t),u=(r-t)/2,f=(i-e)/2,d=u/n,p=f/a,g=Math.sqrt(d**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-g**2),y=c+x*a*Math.sin(h)*(s?-1:1),b=l-x*n*Math.cos(h)*(s?-1:1),w=Math.atan2((e-b)/a,(t-y)/n);let _=Math.atan2((i-b)/a,(r-y)/n)-w;s&&_<0&&(_+=2*Math.PI),!s&&_>0&&(_-=2*Math.PI);const C=[];for(let S=0;S<20;S++){const F=S/19,I=w+F*_,O=y+n*Math.cos(I),A=b+a*Math.sin(I);C.push({x:O,y:A})}return C}m(bn,"generateArcPoints");async function rx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=(e==null?void 0:e.padding)??0,o=(e==null?void 0:e.padding)??0,c=(e!=null&&e.width?e==null?void 0:e.width:a.width)+s*2,l=(e!=null&&e.height?e==null?void 0:e.height:a.height)+o*2,h=e.radius||5,u=e.taper||5,{cssStyles:f}=e,d=V.svg(n),p=Z(e,{});e.stroke&&(p.stroke=e.stroke),e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-c/2+u,y:-l/2},{x:c/2-u,y:-l/2},...bn(c/2-u,-l/2,c/2,-l/2+u,h,h,!0),{x:c/2,y:-l/2+u},{x:c/2,y:l/2-u},...bn(c/2,l/2-u,c/2-u,l/2,h,h,!0),{x:c/2-u,y:l/2},{x:-c/2+u,y:l/2},...bn(-c/2+u,l/2,-c/2,l/2-u,h,h,!0),{x:-c/2,y:l/2-u},{x:-c/2,y:-l/2+u},...bn(-c/2,-l/2+u,-c/2+u,-l/2,h,h,!0)],x=mt(g),y=d.path(x,p),b=n.insert(()=>y,":first-child");return b.attr("class","basic label-container outer-path"),f&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),Q(e,b),e.intersect=function(w){return j.polygon(e,g,w)},n}m(rx,"roundedRect");async function ix(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=(e==null?void 0:e.padding)??0,c=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=-a.width/2-o,u=-a.height/2-o,{cssStyles:f}=e,d=V.svg(n),p=Z(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:h,y:u},{x:h+c+8,y:u},{x:h+c+8,y:u+l},{x:h-8,y:u+l},{x:h-8,y:u},{x:h,y:u},{x:h,y:u+l}],x=d.polygon(g.map(b=>[b.x,b.y]),p),y=n.insert(()=>x,":first-child");return y.attr("class","basic label-container").attr("style",re(f)),i&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",i),f&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",i),s.attr("transform",`translate(${-c/2+4+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-(a.y-(a.top??0))})`),Q(e,y),e.intersect=function(b){return j.rect(e,b)},n}m(ix,"shadedProcess");async function nx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=-o/2,h=-c/2,{cssStyles:u}=e,f=V.svg(n),d=Z(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:l,y:h},{x:l,y:h+c},{x:l+o,y:h+c},{x:l+o,y:h-c/2}],g=mt(p),x=f.path(g,d),y=n.insert(()=>x,":first-child");return y.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),y.attr("transform",`translate(0, ${c/4})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))}, ${-c/4+(e.padding??0)-(a.y-(a.top??0))})`),Q(e,y),e.intersect=function(b){return j.polygon(e,p,b)},n}m(nx,"slopedRect");async function ax(t,e){const r={rx:0,ry:0,labelPaddingX:e.labelPaddingX??((e==null?void 0:e.padding)||0)*2,labelPaddingY:((e==null?void 0:e.padding)||0)*1};return _o(t,e,r)}m(ax,"squareRect");async function sx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=a.height+e.padding,o=a.width+s/4+e.padding,c=s/2,{cssStyles:l}=e,h=V.svg(n),u=Z(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=[{x:-o/2+c,y:-s/2},{x:o/2-c,y:-s/2},...Wn(-o/2+c,0,c,50,90,270),{x:o/2-c,y:s/2},...Wn(o/2-c,0,c,50,270,450)],d=mt(f),p=h.path(d,u),g=n.insert(()=>p,":first-child");return g.attr("class","basic label-container outer-path"),l&&e.look!=="handDrawn"&&g.selectChildren("path").attr("style",l),i&&e.look!=="handDrawn"&&g.selectChildren("path").attr("style",i),Q(e,g),e.intersect=function(x){return j.polygon(e,f,x)},n}m(sx,"stadium");async function ox(t,e){return _o(t,e,{rx:5,ry:5})}m(ox,"state");function lx(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=K(e);e.labelStyle=i;const{cssStyles:a}=e,{lineColor:s,stateBorder:o,nodeBorder:c}=r,l=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),h=V.svg(l),u=Z(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=h.circle(0,0,14,{...u,stroke:s,strokeWidth:2}),d=o??c,p=h.circle(0,0,5,{...u,fill:d,stroke:d,strokeWidth:2,fillStyle:"solid"}),g=l.insert(()=>f,":first-child");return g.insert(()=>p),a&&g.selectAll("path").attr("style",a),n&&g.selectAll("path").attr("style",n),Q(e,g),e.intersect=function(x){return j.circle(e,7,x)},l}m(lx,"stateEnd");function cx(t,e,{config:{themeVariables:r}}){const{lineColor:i}=r,n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a;if(e.look==="handDrawn"){const o=V.svg(n).circle(0,0,14,GA(i));a=n.insert(()=>o),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=n.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Q(e,a),e.intersect=function(s){return j.circle(e,7,s)},n}m(cx,"stateStart");async function hx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=((e==null?void 0:e.padding)||0)/2,o=a.width+e.padding,c=a.height+e.padding,l=-a.width/2-s,h=-a.height/2-s,u=[{x:0,y:0},{x:o,y:0},{x:o,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-c},{x:-8,y:-c},{x:-8,y:0}];if(e.look==="handDrawn"){const f=V.svg(n),d=Z(e,{}),p=f.rectangle(l-8,h,o+16,c,d),g=f.line(l,h,l,h+c,d),x=f.line(l+o,h,l+o,h+c,d);n.insert(()=>g,":first-child"),n.insert(()=>x,":first-child");const y=n.insert(()=>p,":first-child"),{cssStyles:b}=e;y.attr("class","basic label-container").attr("style",re(b)),Q(e,y)}else{const f=Lr(n,o,c,u);i&&f.attr("style",i),Q(e,f)}return e.intersect=function(f){return j.polygon(e,u,f)},n}m(hx,"subroutine");async function ux(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=-s/2,l=-o/2,h=.2*o,u=.2*o,{cssStyles:f}=e,d=V.svg(n),p=Z(e,{}),g=[{x:c-h/2,y:l},{x:c+s+h/2,y:l},{x:c+s+h/2,y:l+o},{x:c-h/2,y:l+o}],x=[{x:c+s-h/2,y:l+o},{x:c+s+h/2,y:l+o},{x:c+s+h/2,y:l+o-u}];e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=mt(g),b=d.path(y,p),w=mt(x),k=d.path(w,{...p,fillStyle:"solid"}),_=n.insert(()=>k,":first-child");return _.insert(()=>b,":first-child"),_.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",i),Q(e,_),e.intersect=function(C){return j.polygon(e,g,C)},n}m(ux,"taggedRect");async function fx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=c/4,h=.2*o,u=.2*c,f=c+l,{cssStyles:d}=e,p=V.svg(n),g=Z(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=[{x:-o/2-o/2*.1,y:f/2},...Sr(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,l,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],y=-o/2+o/2*.1,b=-f/2-u*.4,w=[{x:y+o-h,y:(b+c)*1.4},{x:y+o,y:b+c-u},{x:y+o,y:(b+c)*.9},...Sr(y+o,(b+c)*1.3,y+o-h,(b+c)*1.5,-c*.03,.5)],k=mt(x),_=p.path(k,g),C=mt(w),S=p.path(C,{...g,fillStyle:"solid"}),F=n.insert(()=>S,":first-child");return F.insert(()=>_,":first-child"),F.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-l/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-c/2+(e.padding??0)-l/2-(a.y-(a.top??0))})`),Q(e,F),e.intersect=function(I){return j.polygon(e,x,I)},n}m(fx,"taggedWaveEdgedRectangle");async function dx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=Math.max(a.width+e.padding,(e==null?void 0:e.width)||0),o=Math.max(a.height+e.padding,(e==null?void 0:e.height)||0),c=-s/2,l=-o/2,h=n.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",c).attr("y",l).attr("width",s).attr("height",o),Q(e,h),e.intersect=function(u){return j.rect(e,u)},n}m(dx,"text");var O$=m((t,e,r,i,n,a)=>`M${t},${e}
201
+ a${n},${a} 0,0,1 0,${-i}
202
+ l${r},0
203
+ a${n},${a} 0,0,1 0,${i}
204
+ M${r},${-i}
205
+ a${n},${a} 0,0,0 0,${i}
206
+ l${-r},0`,"createCylinderPathD"),I$=m((t,e,r,i,n,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),R$=m((t,e,r,i,n,a)=>[`M${t+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function px(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s,halfPadding:o}=await ct(t,e,ot(e)),c=e.look==="neo"?o*2:o,l=a.height+c,h=l/2,u=h/(2.5+l/50),f=a.width+u+c,{cssStyles:d}=e;let p;if(e.look==="handDrawn"){const g=V.svg(n),x=I$(0,0,f,l,u,h),y=R$(0,0,f,l,u,h),b=g.path(x,Z(e,{})),w=g.path(y,Z(e,{fill:"none"}));p=n.insert(()=>w,":first-child"),p=n.insert(()=>b,":first-child"),p.attr("class","basic label-container"),d&&p.attr("style",d)}else{const g=O$(0,0,f,l,u,h);p=n.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",re(d)).attr("style",i),p.attr("class","basic label-container"),d&&p.selectAll("path").attr("style",d),i&&p.selectAll("path").attr("style",i)}return p.attr("label-offset-x",u),p.attr("transform",`translate(${-f/2}, ${l/2} )`),s.attr("transform",`translate(${-(a.width/2)-u-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Q(e,p),e.intersect=function(g){const x=j.rect(e,g),y=x.y-(e.y??0);if(h!=0&&(Math.abs(y)<(e.height??0)/2||Math.abs(y)==(e.height??0)/2&&Math.abs(x.x-(e.x??0))>(e.width??0)/2-u)){let b=u*u*(1-y*y/(h*h));b!=0&&(b=Math.sqrt(Math.abs(b))),b=u-b,g.x-(e.x??0)>0&&(b=-b),x.x+=b}return x},n}m(px,"tiltedCylinder");async function gx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=a.width+e.padding,o=a.height+e.padding,c=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}];let l;const{cssStyles:h}=e;if(e.look==="handDrawn"){const u=V.svg(n),f=Z(e,{}),d=mt(c),p=u.path(d,f);l=n.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&l.attr("style",h)}else l=Lr(n,s,o,c);return i&&l.attr("style",i),e.width=s,e.height=o,Q(e,l),e.intersect=function(u){return j.polygon(e,c,u)},n}m(gx,"trapezoid");async function mx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=60,o=20,c=Math.max(s,a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(o,a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),{cssStyles:h}=e,u=V.svg(n),f=Z(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=[{x:-c/2*.8,y:-l/2},{x:c/2*.8,y:-l/2},{x:c/2,y:-l/2*.6},{x:c/2,y:l/2},{x:-c/2,y:l/2},{x:-c/2,y:-l/2*.6}],p=mt(d),g=u.path(p,f),x=n.insert(()=>g,":first-child");return x.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",h),i&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),Q(e,x),e.intersect=function(y){return j.polygon(e,d,y)},n}m(mx,"trapezoidalPentagon");async function yx(t,e){var b;const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Nt((b=kt().flowchart)==null?void 0:b.htmlLabels),c=a.width+(e.padding??0),l=c+a.height,h=c+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-l}],{cssStyles:f}=e,d=V.svg(n),p=Z(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=mt(u),x=d.path(g,p),y=n.insert(()=>x,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return f&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),e.width=c,e.height=l,Q(e,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${l/2-(a.height+(e.padding??0)/(o?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(w){return P.info("Triangle intersect",e,u,w),j.polygon(e,u,w)},n}m(yx,"triangle");async function xx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=c/8,h=c+l,{cssStyles:u}=e,d=70-o,p=d>0?d/2:0,g=V.svg(n),x=Z(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=[{x:-o/2-p,y:h/2},...Sr(-o/2-p,h/2,o/2+p,h/2,l,.8),{x:o/2+p,y:-h/2},{x:-o/2-p,y:-h/2}],b=mt(y),w=g.path(b,x),k=n.insert(()=>w,":first-child");return k.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",u),i&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-l/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-c/2+(e.padding??0)-l-(a.y-(a.top??0))})`),Q(e,k),e.intersect=function(_){return j.polygon(e,y,_)},n}m(xx,"waveEdgedRectangle");async function bx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await ct(t,e,ot(e)),s=100,o=50,c=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=c/l;let u=c,f=l;u>f*h?f=u/h:u=f*h,u=Math.max(u,s),f=Math.max(f,o);const d=Math.min(f*.2,f/4),p=f+d*2,{cssStyles:g}=e,x=V.svg(n),y=Z(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:-u/2,y:p/2},...Sr(-u/2,p/2,u/2,p/2,d,1),{x:u/2,y:-p/2},...Sr(u/2,-p/2,-u/2,-p/2,d,-1)],w=mt(b),k=x.path(w,y),_=n.insert(()=>k,":first-child");return _.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",i),Q(e,_),e.intersect=function(C){return j.polygon(e,b,C)},n}m(bx,"waveRectangle");async function Cx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await ct(t,e,ot(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=5,h=-o/2,u=-c/2,{cssStyles:f}=e,d=V.svg(n),p=Z(e,{}),g=[{x:h-l,y:u-l},{x:h-l,y:u+c},{x:h+o,y:u+c},{x:h+o,y:u-l}],x=`M${h-l},${u-l} L${h+o},${u-l} L${h+o},${u+c} L${h-l},${u+c} L${h-l},${u-l}
207
+ M${h-l},${u} L${h+o},${u}
208
+ M${h},${u-l} L${h},${u+c}`;e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=d.path(x,p),b=n.insert(()=>y,":first-child");return b.attr("transform",`translate(${l/2}, ${l/2})`),b.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",f),i&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(a.width/2)+l/2-(a.x-(a.left??0))}, ${-(a.height/2)+l/2-(a.y-(a.top??0))})`),Q(e,b),e.intersect=function(w){return j.polygon(e,g,w)},n}m(Cx,"windowPane");async function Oh(t,e){var lt,et,ht,tt;const r=e;if(r.alias&&(e.label=r.alias),e.look==="handDrawn"){const{themeVariables:it}=te(),{background:ut}=it,yt={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ut}`]};await Oh(t,yt)}const i=te();e.useHtmlLabels=i.htmlLabels;let n=((lt=i.er)==null?void 0:lt.diagramPadding)??10,a=((et=i.er)==null?void 0:et.entityPadding)??6;const{cssStyles:s}=e,{labelStyles:o,nodeStyles:c}=K(e);if(r.attributes.length===0&&e.label){const it={rx:0,ry:0,labelPaddingX:n,labelPaddingY:n*1.5};pr(e.label,i)+it.labelPaddingX*2<i.er.minEntityWidth&&(e.width=i.er.minEntityWidth);const ut=await _o(t,e,it);if(!Nt(i.htmlLabels)){const yt=ut.select("text"),W=(ht=yt.node())==null?void 0:ht.getBBox();yt.attr("transform",`translate(${-W.width/2}, 0)`)}return ut}i.htmlLabels||(n*=1.25,a*=1.25);let l=ot(e);l||(l="node default");const h=t.insert("g").attr("class",l).attr("id",e.domId||e.id),u=await mi(h,e.label??"",i,0,0,["name"],o);u.height+=a;let f=0;const d=[],p=[];let g=0,x=0,y=0,b=0,w=!0,k=!0;for(const it of r.attributes){const ut=await mi(h,it.type,i,0,f,["attribute-type"],o);g=Math.max(g,ut.width+n);const yt=await mi(h,it.name,i,0,f,["attribute-name"],o);x=Math.max(x,yt.width+n);const W=await mi(h,it.keys.join(),i,0,f,["attribute-keys"],o);y=Math.max(y,W.width+n);const X=await mi(h,it.comment,i,0,f,["attribute-comment"],o);b=Math.max(b,X.width+n);const nt=Math.max(ut.height,yt.height,W.height,X.height)+a;p.push({yOffset:f,rowHeight:nt}),f+=nt}let _=4;y<=n&&(w=!1,y=0,_--),b<=n&&(k=!1,b=0,_--);const C=h.node().getBBox();if(u.width+n*2-(g+x+y+b)>0){const it=u.width+n*2-(g+x+y+b);g+=it/_,x+=it/_,y>0&&(y+=it/_),b>0&&(b+=it/_)}const S=g+x+y+b,F=V.svg(h),I=Z(e,{});e.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let O=0;p.length>0&&(O=p.reduce((it,ut)=>it+((ut==null?void 0:ut.rowHeight)??0),0));const A=Math.max(C.width+n*2,(e==null?void 0:e.width)||0,S),N=Math.max((O??0)+u.height,(e==null?void 0:e.height)||0),$=-A/2,L=-N/2;h.selectAll("g:not(:first-child)").each((it,ut,yt)=>{const W=bt(yt[ut]),X=W.attr("transform");let nt=0,z=0;if(X){const xt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(X);xt&&(nt=parseFloat(xt[1]),z=parseFloat(xt[2]),W.attr("class").includes("attribute-name")?nt+=g:W.attr("class").includes("attribute-keys")?nt+=g+x:W.attr("class").includes("attribute-comment")&&(nt+=g+x+y))}W.attr("transform",`translate(${$+n/2+nt}, ${z+L+u.height+a/2})`)}),h.select(".name").attr("transform","translate("+-u.width/2+", "+(L+a/2)+")");const M=F.rectangle($,L,A,N,I),E=h.insert(()=>M,":first-child").attr("style",s.join("")),{themeVariables:D}=te(),{rowEven:v,rowOdd:R,nodeBorder:U}=D;d.push(0);for(const[it,ut]of p.entries()){const W=(it+1)%2===0&&ut.yOffset!==0,X=F.rectangle($,u.height+L+(ut==null?void 0:ut.yOffset),A,ut==null?void 0:ut.rowHeight,{...I,fill:W?v:R,stroke:U});h.insert(()=>X,"g.label").attr("style",s.join("")).attr("class",`row-rect-${W?"even":"odd"}`)}let H=F.line($,u.height+L,A+$,u.height+L,I);h.insert(()=>H).attr("class","divider"),H=F.line(g+$,u.height+L,g+$,N+L,I),h.insert(()=>H).attr("class","divider"),w&&(H=F.line(g+x+$,u.height+L,g+x+$,N+L,I),h.insert(()=>H).attr("class","divider")),k&&(H=F.line(g+x+y+$,u.height+L,g+x+y+$,N+L,I),h.insert(()=>H).attr("class","divider"));for(const it of d)H=F.line($,u.height+L+it,A+$,u.height+L+it,I),h.insert(()=>H).attr("class","divider");if(Q(e,E),c&&e.look!=="handDrawn"){const it=c.split(";"),ut=(tt=it==null?void 0:it.filter(yt=>yt.includes("stroke")))==null?void 0:tt.map(yt=>`${yt}`).join("; ");h.selectAll("path").attr("style",ut??""),h.selectAll(".row-rect-even path").attr("style",c)}return e.intersect=function(it){return j.rect(e,it)},h}m(Oh,"erBox");async function mi(t,e,r,i=0,n=0,a=[],s=""){const o=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",s);e!==_u(e)&&(e=_u(e),e=e.replaceAll("<","&lt;").replaceAll(">","&gt;"));const c=o.node().appendChild(await Tr(o,e,{width:pr(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("&lt;")||e.includes("&gt;")){let h=c.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let l=c.getBBox();if(Nt(r.htmlLabels)){const h=c.children[0];h.style.textAlign="start";const u=bt(c);l=h.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}return l}m(mi,"addText");async function wx(t,e,r,i,n=r.class.padding??12){const a=i?0:3,s=t.insert("g").attr("class",ot(e)).attr("id",e.domId||e.id);let o=null,c=null,l=null,h=null,u=0,f=0,d=0;if(o=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const b=e.annotations[0];await Cn(o,{text:`«${b}»`},0),u=o.node().getBBox().height}c=s.insert("g").attr("class","label-group text"),await Cn(c,e,0,["font-weight: bolder"]);const p=c.node().getBBox();f=p.height,l=s.insert("g").attr("class","members-group text");let g=0;for(const b of e.members){const w=await Cn(l,b,g,[b.parseClassifier()]);g+=w+a}d=l.node().getBBox().height,d<=0&&(d=n/2),h=s.insert("g").attr("class","methods-group text");let x=0;for(const b of e.methods){const w=await Cn(h,b,x,[b.parseClassifier()]);x+=w+a}let y=s.node().getBBox();if(o!==null){const b=o.node().getBBox();o.attr("transform",`translate(${-b.width/2})`)}return c.attr("transform",`translate(${-p.width/2}, ${u})`),y=s.node().getBBox(),l.attr("transform",`translate(0, ${u+f+n*2})`),y=s.node().getBBox(),h.attr("transform",`translate(0, ${u+f+(d?d+n*4:n*2)})`),y=s.node().getBBox(),{shapeSvg:s,bbox:y}}m(wx,"textHelper");async function Cn(t,e,r,i=[]){const n=t.insert("g").attr("class","label").attr("style",i.join("; ")),a=te();let s="useHtmlLabels"in e?e.useHtmlLabels:Nt(a.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Mi(o)&&(s=!0);const c=await Tr(n,Nc(oi(o)),{width:pr(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let l,h=1;if(s){const u=c.children[0],f=bt(c);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const d=u.getElementsByTagName("img");if(d){const p=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(g=>new Promise(x=>{function y(){var b;if(g.style.display="flex",g.style.flexDirection="column",p){const w=((b=a.fontSize)==null?void 0:b.toString())??window.getComputedStyle(document.body).fontSize,_=parseInt(w,10)*5+"px";g.style.minWidth=_,g.style.maxWidth=_}else g.style.width="100%";x(g)}m(y,"setupImage"),setTimeout(()=>{g.complete&&y()}),g.addEventListener("error",y),g.addEventListener("load",y)})))}l=u.getBoundingClientRect(),f.attr("width",l.width),f.attr("height",l.height)}else{i.includes("font-weight: bolder")&&bt(c).selectAll("tspan").attr("font-weight",""),h=c.children.length;const u=c.children[0];(c.textContent===""||c.textContent.includes("&gt"))&&(u.textContent=o[0]+o.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),o[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),l=c.getBBox()}return n.attr("transform","translate(0,"+(-l.height/(2*h)+r)+")"),l.height}m(Cn,"addText");async function _x(t,e){var I,O;const r=kt(),i=r.class.padding??12,n=i,a=e.useHtmlLabels??Nt(r.htmlLabels)??!0,s=e;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];const{shapeSvg:o,bbox:c}=await wx(t,e,r,a,n),{labelStyles:l,nodeStyles:h}=K(e);e.labelStyle=l,e.cssStyles=s.styles||"";const u=((I=s.styles)==null?void 0:I.join(";"))||h||"";e.cssStyles||(e.cssStyles=u.replaceAll("!important","").split(";"));const f=s.members.length===0&&s.methods.length===0&&!((O=r.class)!=null&&O.hideEmptyMembersBox),d=V.svg(o),p=Z(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=c.width;let x=c.height;s.members.length===0&&s.methods.length===0?x+=n:s.members.length>0&&s.methods.length===0&&(x+=n*2);const y=-g/2,b=-x/2,w=d.rectangle(y-i,b-i-(f?i:s.members.length===0&&s.methods.length===0?-i/2:0),g+2*i,x+2*i+(f?i*2:s.members.length===0&&s.methods.length===0?-i:0),p),k=o.insert(()=>w,":first-child");k.attr("class","basic label-container");const _=k.node().getBBox();o.selectAll(".text").each((A,N,$)=>{var R;const L=bt($[N]),M=L.attr("transform");let E=0;if(M){const H=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(M);H&&(E=parseFloat(H[2]))}let D=E+b+i-(f?i:s.members.length===0&&s.methods.length===0?-i/2:0);a||(D-=4);let v=y;(L.attr("class").includes("label-group")||L.attr("class").includes("annotation-group"))&&(v=-((R=L.node())==null?void 0:R.getBBox().width)/2||0,o.selectAll("text").each(function(U,H,lt){window.getComputedStyle(lt[H]).textAnchor==="middle"&&(v=0)})),L.attr("transform",`translate(${v}, ${D})`)});const C=o.select(".annotation-group").node().getBBox().height-(f?i/2:0)||0,S=o.select(".label-group").node().getBBox().height-(f?i/2:0)||0,F=o.select(".members-group").node().getBBox().height-(f?i/2:0)||0;if(s.members.length>0||s.methods.length>0||f){const A=d.line(_.x,C+S+b+i,_.x+_.width,C+S+b+i,p);o.insert(()=>A).attr("class","divider").attr("style",u)}if(f||s.members.length>0||s.methods.length>0){const A=d.line(_.x,C+S+F+b+n*2+i,_.x+_.width,C+S+F+b+i+n*2,p);o.insert(()=>A).attr("class","divider").attr("style",u)}if(s.look!=="handDrawn"&&o.selectAll("path").attr("style",u),k.select(":nth-child(2)").attr("style",u),o.selectAll(".divider").select("path").attr("style",u),e.labelStyle?o.selectAll("span").attr("style",e.labelStyle):o.selectAll("span").attr("style",u),!a){const A=RegExp(/color\s*:\s*([^;]*)/),N=A.exec(u);if(N){const $=N[0].replace("color","fill");o.selectAll("tspan").attr("style",$)}else if(l){const $=A.exec(l);if($){const L=$[0].replace("color","fill");o.selectAll("tspan").attr("style",L)}}}return Q(e,k),e.intersect=function(A){return j.rect(e,A)},o}m(_x,"classBox");async function kx(t,e){var C,S;const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const n=e,a=e,s=20,o=20,c="verifyMethod"in e,l=ot(e),h=t.insert("g").attr("class",l).attr("id",e.domId??e.id);let u;c?u=await Ye(h,`&lt;&lt;${n.type}&gt;&gt;`,0,e.labelStyle):u=await Ye(h,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let f=u;const d=await Ye(h,n.name,f,e.labelStyle+"; font-weight: bold;");if(f+=d+o,c){const F=await Ye(h,`${n.requirementId?`ID: ${n.requirementId}`:""}`,f,e.labelStyle);f+=F;const I=await Ye(h,`${n.text?`Text: ${n.text}`:""}`,f,e.labelStyle);f+=I;const O=await Ye(h,`${n.risk?`Risk: ${n.risk}`:""}`,f,e.labelStyle);f+=O,await Ye(h,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,f,e.labelStyle)}else{const F=await Ye(h,`${a.type?`Type: ${a.type}`:""}`,f,e.labelStyle);f+=F,await Ye(h,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,f,e.labelStyle)}const p=(((C=h.node())==null?void 0:C.getBBox().width)??200)+s,g=(((S=h.node())==null?void 0:S.getBBox().height)??200)+s,x=-p/2,y=-g/2,b=V.svg(h),w=Z(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const k=b.rectangle(x,y,p,g,w),_=h.insert(()=>k,":first-child");if(_.attr("class","basic label-container").attr("style",i),h.selectAll(".label").each((F,I,O)=>{const A=bt(O[I]),N=A.attr("transform");let $=0,L=0;if(N){const v=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(N);v&&($=parseFloat(v[1]),L=parseFloat(v[2]))}const M=L-g/2;let E=x+s/2;(I===0||I===1)&&(E=$),A.attr("transform",`translate(${E}, ${M+s})`)}),f>u+d+o){const F=b.line(x,y+u+d+o,x+p,y+u+d+o,w);h.insert(()=>F).attr("style",i)}return Q(e,_),e.intersect=function(F){return j.rect(e,F)},h}m(kx,"requirementBox");async function Ye(t,e,r,i=""){if(e==="")return 0;const n=t.insert("g").attr("class","label").attr("style",i),a=kt(),s=a.htmlLabels??!0,o=await Tr(n,Nc(oi(e)),{width:pr(e,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},a);let c;if(s){const l=o.children[0],h=bt(o);c=l.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}else{const l=o.children[0];for(const h of l.children)h.textContent=h.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),i&&h.setAttribute("style",i);c=o.getBBox(),c.height+=6}return n.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}m(Ye,"addText");var P$=m(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Sx(t,e,{config:r}){var N,$;const{labelStyles:i,nodeStyles:n}=K(e);e.labelStyle=i||"";const a=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:c,label:l}=await ct(t,e,ot(e)),h=e.padding||10;let u="",f;"ticket"in e&&e.ticket&&((N=r==null?void 0:r.kanban)!=null&&N.ticketBaseUrl)&&(u=($=r==null?void 0:r.kanban)==null?void 0:$.ticketBaseUrl.replace("#TICKET#",e.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const d={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let p,g;f?{label:p,bbox:g}=await fl(f,"ticket"in e&&e.ticket||"",d):{label:p,bbox:g}=await fl(o,"ticket"in e&&e.ticket||"",d);const{label:x,bbox:y}=await fl(o,"assigned"in e&&e.assigned||"",d);e.width=s;const b=10,w=(e==null?void 0:e.width)||0,k=Math.max(g.height,y.height)/2,_=Math.max(c.height+b*2,(e==null?void 0:e.height)||0)+k,C=-w/2,S=-_/2;l.attr("transform","translate("+(h-w/2)+", "+(-k-c.height/2)+")"),p.attr("transform","translate("+(h-w/2)+", "+(-k+c.height/2)+")"),x.attr("transform","translate("+(h+w/2-y.width-2*a)+", "+(-k+c.height/2)+")");let F;const{rx:I,ry:O}=e,{cssStyles:A}=e;if(e.look==="handDrawn"){const L=V.svg(o),M=Z(e,{}),E=I||O?L.path(Ar(C,S,w,_,I||0),M):L.rectangle(C,S,w,_,M);F=o.insert(()=>E,":first-child"),F.attr("class","basic label-container").attr("style",A||null)}else{F=o.insert("rect",":first-child"),F.attr("class","basic label-container __APA__").attr("style",n).attr("rx",I??5).attr("ry",O??5).attr("x",C).attr("y",S).attr("width",w).attr("height",_);const L="priority"in e&&e.priority;if(L){const M=o.append("line"),E=C+2,D=S+Math.floor((I??0)/2),v=S+_-Math.floor((I??0)/2);M.attr("x1",E).attr("y1",D).attr("x2",E).attr("y2",v).attr("stroke-width","4").attr("stroke",P$(L))}}return Q(e,F),e.height=_,e.intersect=function(L){return j.rect(e,L)},o}m(Sx,"kanbanItem");async function vx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await ct(t,e,ot(e)),c=a.width+10*s,l=a.height+8*s,h=.15*c,{cssStyles:u}=e,f=a.width+20,d=a.height+20,p=Math.max(c,f),g=Math.max(l,d);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let x;const y=`M0 0
209
+ a${h},${h} 1 0,0 ${p*.25},${-1*g*.1}
210
+ a${h},${h} 1 0,0 ${p*.25},0
211
+ a${h},${h} 1 0,0 ${p*.25},0
212
+ a${h},${h} 1 0,0 ${p*.25},${g*.1}
213
+
214
+ a${h},${h} 1 0,0 ${p*.15},${g*.33}
215
+ a${h*.8},${h*.8} 1 0,0 0,${g*.34}
216
+ a${h},${h} 1 0,0 ${-1*p*.15},${g*.33}
217
+
218
+ a${h},${h} 1 0,0 ${-1*p*.25},${g*.15}
219
+ a${h},${h} 1 0,0 ${-1*p*.25},0
220
+ a${h},${h} 1 0,0 ${-1*p*.25},0
221
+ a${h},${h} 1 0,0 ${-1*p*.25},${-1*g*.15}
222
+
223
+ a${h},${h} 1 0,0 ${-1*p*.1},${-1*g*.33}
224
+ a${h*.8},${h*.8} 1 0,0 0,${-1*g*.34}
225
+ a${h},${h} 1 0,0 ${p*.1},${-1*g*.33}
226
+ H0 V0 Z`;if(e.look==="handDrawn"){const b=V.svg(n),w=Z(e,{}),k=b.path(y,w);x=n.insert(()=>k,":first-child"),x.attr("class","basic label-container").attr("style",re(u))}else x=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return x.attr("transform",`translate(${-p/2}, ${-g/2})`),Q(e,x),e.calcIntersect=function(b,w){return j.rect(b,w)},e.intersect=function(b){return P.info("Bang intersect",e,b),j.rect(e,b)},n}m(vx,"bang");async function Tx(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await ct(t,e,ot(e)),c=a.width+2*s,l=a.height+2*s,h=.15*c,u=.25*c,f=.35*c,d=.2*c,{cssStyles:p}=e;let g;const x=`M0 0
227
+ a${h},${h} 0 0,1 ${c*.25},${-1*c*.1}
228
+ a${f},${f} 1 0,1 ${c*.4},${-1*c*.1}
229
+ a${u},${u} 1 0,1 ${c*.35},${c*.2}
230
+
231
+ a${h},${h} 1 0,1 ${c*.15},${l*.35}
232
+ a${d},${d} 1 0,1 ${-1*c*.15},${l*.65}
233
+
234
+ a${u},${h} 1 0,1 ${-1*c*.25},${c*.15}
235
+ a${f},${f} 1 0,1 ${-1*c*.5},0
236
+ a${h},${h} 1 0,1 ${-1*c*.25},${-1*c*.15}
237
+
238
+ a${h},${h} 1 0,1 ${-1*c*.1},${-1*l*.35}
239
+ a${d},${d} 1 0,1 ${c*.1},${-1*l*.65}
240
+ H0 V0 Z`;if(e.look==="handDrawn"){const y=V.svg(n),b=Z(e,{}),w=y.path(x,b);g=n.insert(()=>w,":first-child"),g.attr("class","basic label-container").attr("style",re(p))}else g=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),g.attr("transform",`translate(${-c/2}, ${-l/2})`),Q(e,g),e.calcIntersect=function(y,b){return j.rect(y,b)},e.intersect=function(y){return P.info("Cloud intersect",e,y),j.rect(e,y)},n}m(Tx,"cloud");async function Ax(t,e){const{labelStyles:r,nodeStyles:i}=K(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await ct(t,e,ot(e)),c=a.width+8*s,l=a.height+2*s,h=5,u=`
241
+ M${-c/2} ${l/2-h}
242
+ v${-l+2*h}
243
+ q0,-${h} ${h},-${h}
244
+ h${c-2*h}
245
+ q${h},0 ${h},${h}
246
+ v${l-2*h}
247
+ q0,${h} -${h},${h}
248
+ h${-c+2*h}
249
+ q-${h},0 -${h},-${h}
250
+ Z
251
+ `,f=n.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-c/2).attr("y1",l/2).attr("x2",c/2).attr("y2",l/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>o.node()),Q(e,f),e.calcIntersect=function(d,p){return j.rect(d,p)},e.intersect=function(d){return j.rect(e,d)},n}m(Ax,"defaultMindmapNode");async function Lx(t,e){const r={padding:e.padding??0};return Dh(t,e,r)}m(Lx,"mindmapCircle");var N$=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ax},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:rx},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:sx},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:hx},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:M0},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Dh},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:vx},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Tx},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:J0},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:I0},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:j0},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:U0},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:gx},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:H0},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:B0},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:dx},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:w0},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ix},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:cx},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:lx},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:D0},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:R0},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:v0},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:T0},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:A0},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:X0},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:xx},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:O0},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:px},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:G0},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:L0},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:E0},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:yx},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Cx},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:$0},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:mx},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:F0},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:nx},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:K0},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Z0},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:C0},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:S0},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:fx},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:ux},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:bx},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tx},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:V0}],z$=m(()=>{const e=[...Object.entries({state:ox,choice:_0,note:Q0,rectWithTitle:ex,labelRect:Y0,iconSquare:W0,iconCircle:N0,icon:P0,iconRounded:z0,imageSquare:q0,anchor:b0,kanbanItem:Sx,mindmapCircle:Lx,defaultMindmapNode:Ax,classBox:_x,erBox:Oh,requirementBox:kx}),...N$.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Mx=z$();function W$(t){return t in Mx}m(W$,"isValidShape");var ko=new Map;async function Ex(t,e,r){let i,n;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?Mx[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),n=await a(i,e,r)}else n=await a(t,e,r),i=n;return e.tooltip&&n.attr("title",e.tooltip),ko.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}m(Ex,"insertNode");var oR=m((t,e)=>{ko.set(e.id,t)},"setNodeElem"),lR=m(()=>{ko.clear()},"clear"),cR=m(t=>{const e=ko.get(t.id);P.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode"),q$=m((t,e,r,i,n,a)=>{e.arrowTypeStart&&Kf(t,"start",e.arrowTypeStart,r,i,n,a),e.arrowTypeEnd&&Kf(t,"end",e.arrowTypeEnd,r,i,n,a)},"addEdgeMarkers"),H$={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Kf=m((t,e,r,i,n,a,s)=>{var u;const o=H$[r];if(!o){P.warn(`Unknown arrow type: ${r}`);return}const c=o.type,h=`${n}_${a}-${c}${e==="start"?"Start":"End"}`;if(s&&s.trim()!==""){const f=s.replace(/[^\dA-Za-z]/g,"_"),d=`${h}_${f}`;if(!document.getElementById(d)){const p=document.getElementById(h);if(p){const g=p.cloneNode(!0);g.id=d,g.querySelectorAll("path, circle, line").forEach(y=>{y.setAttribute("stroke",s),o.fill&&y.setAttribute("fill",s)}),(u=p.parentNode)==null||u.appendChild(g)}}t.attr(`marker-${e}`,`url(${i}#${d})`)}else t.attr(`marker-${e}`,`url(${i}#${h})`)},"addEdgeMarker"),Ys=new Map,jt=new Map,hR=m(()=>{Ys.clear(),jt.clear()},"clear"),$a=m(t=>t?t.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),Y$=m(async(t,e)=>{let r=Nt(kt().flowchart.htmlLabels);const{labelStyles:i}=K(e);e.labelStyle=i;const n=await Tr(t,e.label,{style:e.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});P.info("abc82",e,e.labelType);const a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",e.id);s.node().appendChild(n);let o=n.getBBox();if(r){const l=n.children[0],h=bt(n);o=l.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),Ys.set(e.id,a),e.width=o.width,e.height=o.height;let c;if(e.startLabelLeft){const l=await zr(e.startLabelLeft,$a(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),jt.get(e.id)||jt.set(e.id,{}),jt.get(e.id).startLeft=h,wn(c,e.startLabelLeft)}if(e.startLabelRight){const l=await zr(e.startLabelRight,$a(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=h.node().appendChild(l),u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),jt.get(e.id)||jt.set(e.id,{}),jt.get(e.id).startRight=h,wn(c,e.startLabelRight)}if(e.endLabelLeft){const l=await zr(e.endLabelLeft,$a(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(l),jt.get(e.id)||jt.set(e.id,{}),jt.get(e.id).endLeft=h,wn(c,e.endLabelLeft)}if(e.endLabelRight){const l=await zr(e.endLabelRight,$a(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");c=u.node().appendChild(l);const f=l.getBBox();u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),h.node().appendChild(l),jt.get(e.id)||jt.set(e.id,{}),jt.get(e.id).endRight=h,wn(c,e.endLabelRight)}return n},"insertEdgeLabel");function wn(t,e){kt().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}m(wn,"setTerminalWidth");var U$=m((t,e)=>{P.debug("Moving label abc88 ",t.id,t.label,Ys.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const i=kt(),{subGraphTitleTotalMargin:n}=hh(i);if(t.label){const a=Ys.get(t.id);let s=t.x,o=t.y;if(r){const c=Fe.calcLabelPosition(r);P.debug("Moving label "+t.label+" from (",s,",",o,") to (",c.x,",",c.y,") abc88"),e.updatedPath&&(s=c.x,o=c.y)}a.attr("transform",`translate(${s}, ${o+n/2})`)}if(t.startLabelLeft){const a=jt.get(t.id).startLeft;let s=t.x,o=t.y;if(r){const c=Fe.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=c.x,o=c.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=jt.get(t.id).startRight;let s=t.x,o=t.y;if(r){const c=Fe.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=c.x,o=c.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=jt.get(t.id).endLeft;let s=t.x,o=t.y;if(r){const c=Fe.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=c.x,o=c.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=jt.get(t.id).endRight;let s=t.x,o=t.y;if(r){const c=Fe.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=c.x,o=c.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),j$=m((t,e)=>{const r=t.x,i=t.y,n=Math.abs(e.x-r),a=Math.abs(e.y-i),s=t.width/2,o=t.height/2;return n>=s||a>=o},"outsideNode"),X$=m((t,e,r)=>{P.debug(`intersection calc abc89:
252
+ outsidePoint: ${JSON.stringify(e)}
253
+ insidePoint : ${JSON.stringify(r)}
254
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,n=t.y,a=Math.abs(i-r.x),s=t.width/2;let o=r.x<e.x?s-a:s+a;const c=t.height/2,l=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*s>Math.abs(i-e.x)*c){let u=r.y<e.y?e.y-c-n:n-c-e.y;o=h*u/l;const f={x:r.x<e.x?r.x+o:r.x-h+o,y:r.y<e.y?r.y+l-u:r.y-l+u};return o===0&&(f.x=e.x,f.y=e.y),h===0&&(f.x=e.x),l===0&&(f.y=e.y),P.debug(`abc89 top/bottom calc, Q ${l}, q ${u}, R ${h}, r ${o}`,f),f}else{r.x<e.x?o=e.x-s-i:o=i-s-e.x;let u=l*o/h,f=r.x<e.x?r.x+h-o:r.x-h+o,d=r.y<e.y?r.y+u:r.y-u;return P.debug(`sides calc abc89, Q ${l}, q ${u}, R ${h}, r ${o}`,{_x:f,_y:d}),o===0&&(f=e.x,d=e.y),h===0&&(f=e.x),l===0&&(d=e.y),{x:f,y:d}}},"intersection"),Qf=m((t,e)=>{P.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],n=!1;return t.forEach(a=>{if(P.info("abc88 checking point",a,e),!j$(e,a)&&!n){const s=X$(e,i,a);P.debug("abc88 inside",a,i,s),P.debug("abc88 intersection",s,e);let o=!1;r.forEach(c=>{o=o||c.x===s.x&&c.y===s.y}),r.some(c=>c.x===s.x&&c.y===s.y)?P.warn("abc88 no intersect",s,r):r.push(s),n=!0}else P.warn("abc88 outside",a,i),i=a,n||r.push(a)}),P.debug("returning points",r),r},"cutPathAtIntersect");function Bx(t){const e=[],r=[];for(let i=1;i<t.length-1;i++){const n=t[i-1],a=t[i],s=t[i+1];(n.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===s.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}m(Bx,"extractCornerPoints");var Jf=m(function(t,e,r){const i=e.x-t.x,n=e.y-t.y,a=Math.sqrt(i*i+n*n),s=r/a;return{x:e.x-s*i,y:e.y-s*n}},"findAdjacentPoint"),G$=m(function(t){const{cornerPointPositions:e}=Bx(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){const n=t[i-1],a=t[i+1],s=t[i],o=Jf(n,s,5),c=Jf(a,s,5),l=c.x-o.x,h=c.y-o.y;r.push(o);const u=Math.sqrt(2)*2;let f={x:s.x,y:s.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){P.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const d=5;s.x===o.x?f={x:l<0?o.x-d+u:o.x+d-u,y:h<0?o.y-u:o.y+u}:f={x:l<0?o.x-u:o.x+u,y:h<0?o.y-d+u:o.y+d-u}}else P.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,c)}else r.push(t[i]);return r},"fixCorners"),V$=m((t,e,r)=>{const i=t-e-r,n=2,a=2,s=n+a,o=Math.floor(i/s),c=Array(o).fill(`${n} ${a}`).join(" ");return`0 ${e} ${c} ${r}`},"generateDashArray"),Z$=m(function(t,e,r,i,n,a,s,o=!1){var L;const{handDrawnSeed:c}=kt();let l=e.points,h=!1;const u=n;var f=a;const d=[];for(const M in e.cssCompiledStyles)oy(M)||d.push(e.cssCompiledStyles[M]);P.debug("UIO intersect check",e.points,f.x,u.x),f.intersect&&u.intersect&&!o&&(l=l.slice(1,e.points.length-1),l.unshift(u.intersect(l[0])),P.debug("Last point UIO",e.start,"-->",e.end,l[l.length-1],f,f.intersect(l[l.length-1])),l.push(f.intersect(l[l.length-1])));const p=btoa(JSON.stringify(l));e.toCluster&&(P.info("to cluster abc88",r.get(e.toCluster)),l=Qf(e.points,r.get(e.toCluster).node),h=!0),e.fromCluster&&(P.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(l,null,2)),l=Qf(l.reverse(),r.get(e.fromCluster).node).reverse(),h=!0);let g=l.filter(M=>!Number.isNaN(M.y));g=G$(g);let x=Ua;switch(x=ws,e.curve){case"linear":x=ws;break;case"basis":x=Ua;break;case"cardinal":x=ug;break;case"bumpX":x=sg;break;case"bumpY":x=og;break;case"catmullRom":x=dg;break;case"monotoneX":x=bg;break;case"monotoneY":x=Cg;break;case"natural":x=_g;break;case"step":x=kg;break;case"stepAfter":x=vg;break;case"stepBefore":x=Sg;break;default:x=Ua}const{x:y,y:b}=XA(e),w=LT().x(y).y(b).curve(x);let k;switch(e.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(e.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let _,C=e.curve==="rounded"?$x(Fx(g,e),5):w(g);const S=Array.isArray(e.style)?e.style:[e.style];let F=S.find(M=>M==null?void 0:M.startsWith("stroke:")),I=!1;if(e.look==="handDrawn"){const M=V.svg(t);Object.assign([],g);const E=M.path(C,{roughness:.3,seed:c});k+=" transition",_=bt(E).select("path").attr("id",e.id).attr("class"," "+k+(e.classes?" "+e.classes:"")).attr("style",S?S.reduce((v,R)=>v+";"+R,""):"");let D=_.attr("d");_.attr("d",D),t.node().appendChild(_.node())}else{const M=d.join(";"),E=S?S.reduce((et,ht)=>et+ht+";",""):"";let D="";e.animate&&(D=" edge-animation-fast"),e.animation&&(D=" edge-animation-"+e.animation);const v=(M?M+";"+E+";":E)+";"+(S?S.reduce((et,ht)=>et+";"+ht,""):"");_=t.append("path").attr("d",C).attr("id",e.id).attr("class"," "+k+(e.classes?" "+e.classes:"")+(D??"")).attr("style",v),F=(L=v.match(/stroke:([^;]+)/))==null?void 0:L[1],I=e.animate===!0||!!e.animation||M.includes("animation");const R=_.node(),U=typeof R.getTotalLength=="function"?R.getTotalLength():0,H=mf[e.arrowTypeStart]||0,lt=mf[e.arrowTypeEnd]||0;if(e.look==="neo"&&!I){const ht=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?V$(U,H,lt):`0 ${H} ${U-H-lt} ${lt}`}; stroke-dashoffset: 0;`;_.attr("style",ht+_.attr("style"))}}_.attr("data-edge",!0),_.attr("data-et","edge"),_.attr("data-id",e.id),_.attr("data-points",p),e.showPoints&&g.forEach(M=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",M.x).attr("cy",M.y)});let O="";(kt().flowchart.arrowMarkerAbsolute||kt().state.arrowMarkerAbsolute)&&(O=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,O=O.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),P.info("arrowTypeStart",e.arrowTypeStart),P.info("arrowTypeEnd",e.arrowTypeEnd),q$(_,e,O,s,i,F);const A=Math.floor(l.length/2),N=l[A];Fe.isLabelCoordinateInPath(N,_.attr("d"))||(h=!0);let $={};return h&&($.updatedPath=l),$.originalPath=e.points,$},"insertEdge");function $x(t,e){if(t.length<2)return"";let r="";const i=t.length,n=1e-5;for(let a=0;a<i;a++){const s=t[a],o=t[a-1],c=t[a+1];if(a===0)r+=`M${s.x},${s.y}`;else if(a===i-1)r+=`L${s.x},${s.y}`;else{const l=s.x-o.x,h=s.y-o.y,u=c.x-s.x,f=c.y-s.y,d=Math.hypot(l,h),p=Math.hypot(u,f);if(d<n||p<n){r+=`L${s.x},${s.y}`;continue}const g=l/d,x=h/d,y=u/p,b=f/p,w=g*y+x*b,k=Math.max(-1,Math.min(1,w)),_=Math.acos(k);if(_<n||Math.abs(Math.PI-_)<n){r+=`L${s.x},${s.y}`;continue}const C=Math.min(e/Math.sin(_/2),d/2,p/2),S=s.x-g*C,F=s.y-x*C,I=s.x+y*C,O=s.y+b*C;r+=`L${S},${F}`,r+=`Q${s.x},${s.y} ${I},${O}`}}return r}m($x,"generateRoundedPath");function mc(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};const r=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}m(mc,"calculateDeltaAndAngle");function Fx(t,e){const r=t.map(n=>({...n}));if(t.length>=2&&Qt[e.arrowTypeStart]){const n=Qt[e.arrowTypeStart],a=t[0],s=t[1],{angle:o}=mc(a,s),c=n*Math.cos(o),l=n*Math.sin(o);r[0].x=a.x+c,r[0].y=a.y+l}const i=t.length;if(i>=2&&Qt[e.arrowTypeEnd]){const n=Qt[e.arrowTypeEnd],a=t[i-1],s=t[i-2],{angle:o}=mc(s,a),c=n*Math.cos(o),l=n*Math.sin(o);r[i-1].x=a.x-c,r[i-1].y=a.y-l}return r}m(Fx,"applyMarkerOffsetsToPoints");var K$=m((t,e,r,i)=>{e.forEach(n=>{dF[n](t,r,i)})},"insertMarkers"),Q$=m((t,e,r)=>{P.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),J$=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),tF=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),eF=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),rF=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),iF=m((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),nF=m((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),aF=m((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),sF=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),oF=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),lF=m((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),cF=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),hF=m((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),uF=m((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
255
+ L20,10
256
+ M20,10
257
+ L0,20`)},"requirement_arrow"),fF=m((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),dF={extension:Q$,composition:J$,aggregation:tF,dependency:eF,lollipop:rF,point:iF,circle:nF,cross:aF,barb:sF,only_one:oF,zero_or_one:lF,one_or_more:cF,zero_or_more:hF,requirement_arrow:uF,requirement_contains:fF},pF=K$,gF={common:Wi,getConfig:te,insertCluster:k$,insertEdge:Z$,insertEdgeLabel:Y$,insertMarkers:pF,insertNode:Ex,interpolateToCurve:mh,labelHelper:ct,log:P,positionEdgeLabel:U$},qn={},Dx=m(t=>{for(const e of t)qn[e.name]=e},"registerLayoutLoaders"),mF=m(()=>{Dx([{name:"dagre",loader:m(async()=>await vt(()=>import("./dagre-6UL2VRFP-DYyliwSQ.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:m(async()=>await vt(()=>import("./cose-bilkent-S5V4N54A-BOimuZ77.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");mF();var uR=m(async(t,e)=>{if(!(t.layoutAlgorithm in qn))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const r=qn[t.layoutAlgorithm];return(await r.loader()).render(t,e,gF,{algorithm:r.algorithm})},"render"),fR=m((t="",{fallback:e="dagre"}={})=>{if(t in qn)return t;if(e in qn)return P.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),Ox="comm",Ix="rule",Rx="decl",yF="@import",xF="@namespace",bF="@keyframes",CF="@layer",Px=Math.abs,Ih=String.fromCharCode;function Nx(t){return t.trim()}function Za(t,e,r){return t.replace(e,r)}function wF(t,e,r){return t.indexOf(e,r)}function vi(t,e){return t.charCodeAt(e)|0}function Ri(t,e,r){return t.slice(e,r)}function je(t){return t.length}function _F(t){return t.length}function Fa(t,e){return e.push(t),t}var So=1,Pi=1,zx=0,Se=0,Ot=0,ji="";function Rh(t,e,r,i,n,a,s,o){return{value:t,root:e,parent:r,type:i,props:n,children:a,line:So,column:Pi,length:s,return:"",siblings:o}}function kF(){return Ot}function SF(){return Ot=Se>0?vi(ji,--Se):0,Pi--,Ot===10&&(Pi=1,So--),Ot}function Oe(){return Ot=Se<zx?vi(ji,Se++):0,Pi++,Ot===10&&(Pi=1,So++),Ot}function br(){return vi(ji,Se)}function Ka(){return Se}function vo(t,e){return Ri(ji,t,e)}function Hn(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vF(t){return So=Pi=1,zx=je(ji=t),Se=0,[]}function TF(t){return ji="",t}function dl(t){return Nx(vo(Se-1,yc(t===91?t+2:t===40?t+1:t)))}function AF(t){for(;(Ot=br())&&Ot<33;)Oe();return Hn(t)>2||Hn(Ot)>3?"":" "}function LF(t,e){for(;--e&&Oe()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return vo(t,Ka()+(e<6&&br()==32&&Oe()==32))}function yc(t){for(;Oe();)switch(Ot){case t:return Se;case 34:case 39:t!==34&&t!==39&&yc(Ot);break;case 40:t===41&&yc(t);break;case 92:Oe();break}return Se}function MF(t,e){for(;Oe()&&t+Ot!==57;)if(t+Ot===84&&br()===47)break;return"/*"+vo(e,Se-1)+"*"+Ih(t===47?t:Oe())}function EF(t){for(;!Hn(br());)Oe();return vo(t,Se)}function BF(t){return TF(Qa("",null,null,null,[""],t=vF(t),0,[0],t))}function Qa(t,e,r,i,n,a,s,o,c){for(var l=0,h=0,u=s,f=0,d=0,p=0,g=1,x=1,y=1,b=0,w="",k=n,_=a,C=i,S=w;x;)switch(p=b,b=Oe()){case 40:if(p!=108&&vi(S,u-1)==58){wF(S+=Za(dl(b),"&","&\f"),"&\f",Px(l?o[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:S+=dl(b);break;case 9:case 10:case 13:case 32:S+=AF(p);break;case 92:S+=LF(Ka()-1,7);continue;case 47:switch(br()){case 42:case 47:Fa($F(MF(Oe(),Ka()),e,r,c),c),(Hn(p||1)==5||Hn(br()||1)==5)&&je(S)&&Ri(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*g:o[l++]=je(S)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:x=0;case 59+h:y==-1&&(S=Za(S,/\f/g,"")),d>0&&(je(S)-u||g===0&&p===47)&&Fa(d>32?ed(S+";",i,r,u-1,c):ed(Za(S," ","")+";",i,r,u-2,c),c);break;case 59:S+=";";default:if(Fa(C=td(S,e,r,l,h,n,o,w,k=[],_=[],u,a),a),b===123)if(h===0)Qa(S,e,C,C,k,a,u,o,_);else{switch(f){case 99:if(vi(S,3)===110)break;case 108:if(vi(S,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Qa(t,C,C,i&&Fa(td(t,C,C,0,0,n,o,w,n,k=[],u,_),_),n,_,u,o,i?k:_):Qa(S,C,C,C,[""],_,0,o,_)}}l=h=d=0,g=y=1,w=S="",u=s;break;case 58:u=1+je(S),d=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&SF()==125)continue}switch(S+=Ih(b),b*g){case 38:y=h>0?1:(S+="\f",-1);break;case 44:o[l++]=(je(S)-1)*y,y=1;break;case 64:br()===45&&(S+=dl(Oe())),f=br(),h=u=je(w=S+=EF(Ka())),b++;break;case 45:p===45&&je(S)==2&&(g=0)}}return a}function td(t,e,r,i,n,a,s,o,c,l,h,u){for(var f=n-1,d=n===0?a:[""],p=_F(d),g=0,x=0,y=0;g<i;++g)for(var b=0,w=Ri(t,f+1,f=Px(x=s[g])),k=t;b<p;++b)(k=Nx(x>0?d[b]+" "+w:Za(w,/&\f/g,d[b])))&&(c[y++]=k);return Rh(t,e,r,n===0?Ix:o,c,l,h,u)}function $F(t,e,r,i){return Rh(t,e,r,Ox,Ih(kF()),Ri(t,2,-2),0,i)}function ed(t,e,r,i,n){return Rh(t,e,r,Rx,Ri(t,0,i),Ri(t,i+1,-1),i,n)}function xc(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function FF(t,e,r,i){switch(t.type){case CF:if(t.children.length)break;case yF:case xF:case Rx:return t.return=t.return||t.value;case Ox:return"";case bF:return t.return=t.value+"{"+xc(t.children,i)+"}";case Ix:if(!je(t.value=t.props.join(",")))return""}return je(r=xc(t.children,i))?t.return=t.value+"{"+r+"}":""}var DF=fy(Object.keys,Object),OF=Object.prototype,IF=OF.hasOwnProperty;function RF(t){if(!po(t))return DF(t);var e=[];for(var r in Object(t))IF.call(t,r)&&r!="constructor"&&e.push(r);return e}var bc=si(Ke,"DataView"),Cc=si(Ke,"Promise"),wc=si(Ke,"Set"),_c=si(Ke,"WeakMap"),rd="[object Map]",PF="[object Object]",id="[object Promise]",nd="[object Set]",ad="[object WeakMap]",sd="[object DataView]",NF=ai(bc),zF=ai(zn),WF=ai(Cc),qF=ai(wc),HF=ai(_c),Or=Hi;(bc&&Or(new bc(new ArrayBuffer(1)))!=sd||zn&&Or(new zn)!=rd||Cc&&Or(Cc.resolve())!=id||wc&&Or(new wc)!=nd||_c&&Or(new _c)!=ad)&&(Or=function(t){var e=Hi(t),r=e==PF?t.constructor:void 0,i=r?ai(r):"";if(i)switch(i){case NF:return sd;case zF:return rd;case WF:return id;case qF:return nd;case HF:return ad}return e});var YF="[object Map]",UF="[object Set]",jF=Object.prototype,XF=jF.hasOwnProperty;function od(t){if(t==null)return!0;if(go(t)&&(Ds(t)||typeof t=="string"||typeof t.splice=="function"||ph(t)||gh(t)||Fs(t)))return!t.length;var e=Or(t);if(e==YF||e==UF)return!t.size;if(po(t))return!RF(t).length;for(var r in t)if(XF.call(t,r))return!1;return!0}var Wx="c4",GF=m(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),VF=m(async()=>{const{diagram:t}=await vt(()=>import("./c4Diagram-YG6GDRKO-Cv9Zizqx.js"),__vite__mapDeps([8,9]));return{id:Wx,diagram:t}},"loader"),ZF={id:Wx,detector:GF,loader:VF},KF=ZF,qx="flowchart",QF=m((t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},"detector"),JF=m(async()=>{const{diagram:t}=await vt(()=>import("./flowDiagram-NV44I4VS-CIstAb2z.js"),__vite__mapDeps([10,11,12,13]));return{id:qx,diagram:t}},"loader"),tD={id:qx,detector:QF,loader:JF},eD=tD,Hx="flowchart-v2",rD=m((t,e)=>{var r,i,n;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t))},"detector"),iD=m(async()=>{const{diagram:t}=await vt(()=>import("./flowDiagram-NV44I4VS-CIstAb2z.js"),__vite__mapDeps([10,11,12,13]));return{id:Hx,diagram:t}},"loader"),nD={id:Hx,detector:rD,loader:iD},aD=nD,Yx="er",sD=m(t=>/^\s*erDiagram/.test(t),"detector"),oD=m(async()=>{const{diagram:t}=await vt(()=>import("./erDiagram-Q2GNP2WA-DL9LpaEF.js"),__vite__mapDeps([14,12,13]));return{id:Yx,diagram:t}},"loader"),lD={id:Yx,detector:sD,loader:oD},cD=lD,Ux="gitGraph",hD=m(t=>/^\s*gitGraph/.test(t),"detector"),uD=m(async()=>{const{diagram:t}=await vt(()=>import("./gitGraphDiagram-NY62KEGX-DxG2NOZV.js"),__vite__mapDeps([15,16,17,18,2,4,5]));return{id:Ux,diagram:t}},"loader"),fD={id:Ux,detector:hD,loader:uD},dD=fD,jx="gantt",pD=m(t=>/^\s*gantt/.test(t),"detector"),gD=m(async()=>{const{diagram:t}=await vt(()=>import("./ganttDiagram-JELNMOA3-CNSqBTtR.js"),__vite__mapDeps([]));return{id:jx,diagram:t}},"loader"),mD={id:jx,detector:pD,loader:gD},yD=mD,Xx="info",xD=m(t=>/^\s*info/.test(t),"detector"),bD=m(async()=>{const{diagram:t}=await vt(()=>import("./infoDiagram-WHAUD3N6-B_GahSu_.js"),__vite__mapDeps([19,18,2,4,5]));return{id:Xx,diagram:t}},"loader"),CD={id:Xx,detector:xD,loader:bD},Gx="pie",wD=m(t=>/^\s*pie/.test(t),"detector"),_D=m(async()=>{const{diagram:t}=await vt(()=>import("./pieDiagram-ADFJNKIX-tDTRGJE3.js"),__vite__mapDeps([20,16,18,2,4,5]));return{id:Gx,diagram:t}},"loader"),kD={id:Gx,detector:wD,loader:_D},Vx="quadrantChart",SD=m(t=>/^\s*quadrantChart/.test(t),"detector"),vD=m(async()=>{const{diagram:t}=await vt(()=>import("./quadrantDiagram-AYHSOK5B-Y6TmIak2.js"),__vite__mapDeps([]));return{id:Vx,diagram:t}},"loader"),TD={id:Vx,detector:SD,loader:vD},AD=TD,Zx="xychart",LD=m(t=>/^\s*xychart(-beta)?/.test(t),"detector"),MD=m(async()=>{const{diagram:t}=await vt(()=>import("./xychartDiagram-PRI3JC2R-C0zuH6pP.js"),__vite__mapDeps([]));return{id:Zx,diagram:t}},"loader"),ED={id:Zx,detector:LD,loader:MD},BD=ED,Kx="requirement",$D=m(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),FD=m(async()=>{const{diagram:t}=await vt(()=>import("./requirementDiagram-UZGBJVZJ-D7lgxClk.js"),__vite__mapDeps([21,12,13]));return{id:Kx,diagram:t}},"loader"),DD={id:Kx,detector:$D,loader:FD},OD=DD,Qx="sequence",ID=m(t=>/^\s*sequenceDiagram/.test(t),"detector"),RD=m(async()=>{const{diagram:t}=await vt(()=>import("./sequenceDiagram-WL72ISMW-A2jXBx54.js"),__vite__mapDeps([22,9,17]));return{id:Qx,diagram:t}},"loader"),PD={id:Qx,detector:ID,loader:RD},ND=PD,Jx="class",zD=m((t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},"detector"),WD=m(async()=>{const{diagram:t}=await vt(()=>import("./classDiagram-2ON5EDUG-OE1zz8Rb.js"),__vite__mapDeps([23,24,11,12,13]));return{id:Jx,diagram:t}},"loader"),qD={id:Jx,detector:zD,loader:WD},HD=qD,tb="classDiagram",YD=m((t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},"detector"),UD=m(async()=>{const{diagram:t}=await vt(()=>import("./classDiagram-v2-WZHVMYZB-OE1zz8Rb.js"),__vite__mapDeps([25,24,11,12,13]));return{id:tb,diagram:t}},"loader"),jD={id:tb,detector:YD,loader:UD},XD=jD,eb="state",GD=m((t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},"detector"),VD=m(async()=>{const{diagram:t}=await vt(()=>import("./stateDiagram-FKZM4ZOC-tI2s18Rq.js"),__vite__mapDeps([26,27,12,13,1,2,3,4]));return{id:eb,diagram:t}},"loader"),ZD={id:eb,detector:GD,loader:VD},KD=ZD,rb="stateDiagram",QD=m((t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),JD=m(async()=>{const{diagram:t}=await vt(()=>import("./stateDiagram-v2-4FDKWEC3-BxhL9Cgi.js"),__vite__mapDeps([28,27,12,13]));return{id:rb,diagram:t}},"loader"),tO={id:rb,detector:QD,loader:JD},eO=tO,ib="journey",rO=m(t=>/^\s*journey/.test(t),"detector"),iO=m(async()=>{const{diagram:t}=await vt(()=>import("./journeyDiagram-XKPGCS4Q-BpcUsKNT.js"),__vite__mapDeps([29,9,11]));return{id:ib,diagram:t}},"loader"),nO={id:ib,detector:rO,loader:iO},aO=nO,sO=m((t,e,r)=>{P.debug(`rendering svg for syntax error
258
+ `);const i=NT(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),ap(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),nb={draw:sO},oO=nb,lO={db:{},renderer:nb,parser:{parse:m(()=>{},"parse")}},cO=lO,ab="flowchart-elk",hO=m((t,e={})=>{var r;return/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),uO=m(async()=>{const{diagram:t}=await vt(()=>import("./flowDiagram-NV44I4VS-CIstAb2z.js"),__vite__mapDeps([10,11,12,13]));return{id:ab,diagram:t}},"loader"),fO={id:ab,detector:hO,loader:uO},dO=fO,sb="timeline",pO=m(t=>/^\s*timeline/.test(t),"detector"),gO=m(async()=>{const{diagram:t}=await vt(()=>import("./timeline-definition-IT6M3QCI-Bth-_zy2.js"),__vite__mapDeps([]));return{id:sb,diagram:t}},"loader"),mO={id:sb,detector:pO,loader:gO},yO=mO,ob="mindmap",xO=m(t=>/^\s*mindmap/.test(t),"detector"),bO=m(async()=>{const{diagram:t}=await vt(()=>import("./mindmap-definition-VGOIOE7T-mFLCToYA.js"),__vite__mapDeps([30,12,13]));return{id:ob,diagram:t}},"loader"),CO={id:ob,detector:xO,loader:bO},wO=CO,lb="kanban",_O=m(t=>/^\s*kanban/.test(t),"detector"),kO=m(async()=>{const{diagram:t}=await vt(()=>import("./kanban-definition-3W4ZIXB7-BbuWO2gE.js"),__vite__mapDeps([31,11]));return{id:lb,diagram:t}},"loader"),SO={id:lb,detector:_O,loader:kO},vO=SO,cb="sankey",TO=m(t=>/^\s*sankey(-beta)?/.test(t),"detector"),AO=m(async()=>{const{diagram:t}=await vt(()=>import("./sankeyDiagram-TZEHDZUN-DeN5o3Zo.js"),__vite__mapDeps([]));return{id:cb,diagram:t}},"loader"),LO={id:cb,detector:TO,loader:AO},MO=LO,hb="packet",EO=m(t=>/^\s*packet(-beta)?/.test(t),"detector"),BO=m(async()=>{const{diagram:t}=await vt(()=>import("./diagram-S2PKOQOG-DaX2mZca.js"),__vite__mapDeps([32,16,18,2,4,5]));return{id:hb,diagram:t}},"loader"),$O={id:hb,detector:EO,loader:BO},ub="radar",FO=m(t=>/^\s*radar-beta/.test(t),"detector"),DO=m(async()=>{const{diagram:t}=await vt(()=>import("./diagram-QEK2KX5R-ukB6kMmO.js"),__vite__mapDeps([33,16,18,2,4,5]));return{id:ub,diagram:t}},"loader"),OO={id:ub,detector:FO,loader:DO},fb="block",IO=m(t=>/^\s*block(-beta)?/.test(t),"detector"),RO=m(async()=>{const{diagram:t}=await vt(()=>import("./blockDiagram-VD42YOAC-B1Z6hTXo.js"),__vite__mapDeps([34,11,5,2,1]));return{id:fb,diagram:t}},"loader"),PO={id:fb,detector:IO,loader:RO},NO=PO,db="architecture",zO=m(t=>/^\s*architecture/.test(t),"detector"),WO=m(async()=>{const{diagram:t}=await vt(()=>import("./architectureDiagram-VXUJARFQ-CM5vRAuo.js"),__vite__mapDeps([35,16,18,2,4,5,7]));return{id:db,diagram:t}},"loader"),qO={id:db,detector:zO,loader:WO},HO=qO,pb="treemap",YO=m(t=>/^\s*treemap/.test(t),"detector"),UO=m(async()=>{const{diagram:t}=await vt(()=>import("./diagram-PSM6KHXK-BLc04vxi.js"),__vite__mapDeps([36,13,16,18,2,4,5]));return{id:pb,diagram:t}},"loader"),jO={id:pb,detector:YO,loader:UO},ld=!1,To=m(()=>{ld||(ld=!0,ns("error",cO,t=>t.toLowerCase().trim()==="error"),ns("---",{db:{clear:m(()=>{},"clear")},styles:{},renderer:{draw:m(()=>{},"draw")},parser:{parse:m(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:m(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Sl(dO,wO,HO),Sl(KF,vO,XD,HD,cD,yD,CD,kD,OD,ND,aD,eD,yO,dD,eO,KD,aO,AD,MO,$O,BD,NO,OO,jO))},"addDiagrams"),XO=m(async()=>{P.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ur).map(async([r,{detector:i,loader:n}])=>{if(n)try{Ll(r)}catch{try{const{diagram:a,id:s}=await n();ns(s,a,i)}catch(a){throw P.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ur[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){P.error(`Failed to load ${e.length} external diagrams`);for(const r of e)P.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),GO="graphics-document document";function gb(t,e){t.attr("role",GO),e!==""&&t.attr("aria-roledescription",e)}m(gb,"setA11yDiagramInfo");function mb(t,e,r,i){if(t.insert!==void 0){if(r){const n=`chart-desc-${i}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){const n=`chart-title-${i}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}m(mb,"addSVGa11yTitleDescription");var Ni,kc=(Ni=class{constructor(e,r,i,n,a){this.type=e,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(e,r={}){var l,h;const i=te(),n=Fc(e,i);e=jE(e)+`
259
+ `;try{Ll(n)}catch{const u=y2(n);if(!u)throw new Xd(`Diagram ${n} not found.`);const{id:f,diagram:d}=await u();ns(f,d)}const{db:a,parser:s,renderer:o,init:c}=Ll(n);return s.parser&&(s.parser.yy=a),(l=a.clear)==null||l.call(a),c==null||c(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await s.parse(e),new Ni(n,e,a,s,o)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},m(Ni,"Diagram"),Ni),cd=[],VO=m(()=>{cd.forEach(t=>{t()}),cd=[]},"attachFunctions"),ZO=m(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function yb(t){const e=t.match(jd);if(!e)return{text:t,metadata:{}};let r=jA(e[1],{schema:UA})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}m(yb,"extractFrontMatter");var KO=m(t=>t.replace(/\r\n?/g,`
260
+ `).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),QO=m(t=>{const{text:e,metadata:r}=yb(t),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:e}},"processFrontmatter"),JO=m(t=>{const e=Fe.detectInit(t)??{},r=Fe.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:FE(t),directive:e}},"processDirectives");function Ph(t){const e=KO(t),r=QO(e),i=JO(r.text),n=wh(r.config,i.directive);return t=ZO(i.text),{code:t,title:r.title,config:n}}m(Ph,"preprocessDiagram");function xb(t){const e=new TextEncoder().encode(t),r=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(r)}m(xb,"toBase64");var t3=5e4,e3="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",r3="sandbox",i3="loose",n3="http://www.w3.org/2000/svg",a3="http://www.w3.org/1999/xlink",s3="http://www.w3.org/1999/xhtml",o3="100%",l3="100%",c3="border:0;margin:0;",h3="margin:0",u3="allow-top-navigation-by-user-activation allow-popups",f3='The "iframe" tag is not supported by your browser.',d3=["foreignobject"],p3=["dominant-baseline"];function Nh(t){const e=Ph(t);return rs(),F2(e.config??{}),e}m(Nh,"processAndSetConfigs");async function bb(t,e){To();try{const{code:r,config:i}=Nh(t);return{diagramType:(await wb(r)).type,config:i}}catch(r){if(e!=null&&e.suppressErrors)return!1;throw r}}m(bb,"parse");var hd=m((t,e,r=[])=>`
261
+ .${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),g3=m((t,e=new Map)=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
262
+ ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
263
+ :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
264
+ :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const o=t.htmlLabels??((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(c=>{od(c.styles)||o.forEach(l=>{r+=hd(c.id,l,c.styles)}),od(c.textStyles)||(r+=hd(c.id,"tspan",((c==null?void 0:c.textStyles)||[]).map(l=>l.replace("color","fill"))))})}return r},"createCssStyles"),m3=m((t,e,r,i)=>{const n=g3(t,r),a=J2(e,n,t.themeVariables);return xc(BF(`${i}{${a}}`),FF)},"createUserStyles"),y3=m((t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=oi(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),x3=m((t="",e)=>{var n,a;const r=(a=(n=e==null?void 0:e.viewBox)==null?void 0:n.baseVal)!=null&&a.height?e.viewBox.baseVal.height+"px":l3,i=xb(`<body style="${h3}">${t}</body>`);return`<iframe style="width:${o3};height:${r};${c3}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${u3}">
265
+ ${f3}
266
+ </iframe>`},"putIntoIFrame"),ud=m((t,e,r,i,n)=>{const a=t.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",n3);return n&&s.attr("xmlns:xlink",n),s.append("g"),t},"appendDivSvgG");function Sc(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}m(Sc,"sandboxedIframe");var b3=m((t,e,r,i)=>{var n,a,s;(n=t.getElementById(e))==null||n.remove(),(a=t.getElementById(r))==null||a.remove(),(s=t.getElementById(i))==null||s.remove()},"removeExistingElements"),C3=m(async function(t,e,r){var N,$,L,M,E,D;To();const i=Nh(e);e=i.code;const n=te();P.debug(n),e.length>((n==null?void 0:n.maxTextSize)??t3)&&(e=e3);const a="#"+t,s="i"+t,o="#"+s,c="d"+t,l="#"+c,h=m(()=>{const R=bt(f?o:l).node();R&&"remove"in R&&R.remove()},"removeTempElements");let u=bt("body");const f=n.securityLevel===r3,d=n.securityLevel===i3,p=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const v=Sc(bt(r),s);u=bt(v.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=bt(r);ud(u,t,c,`font-family: ${p}`,a3)}else{if(b3(document,t,c,s),f){const v=Sc(bt("body"),s);u=bt(v.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=bt("body");ud(u,t,c)}let g,x;try{g=await kc.fromText(e,{title:i.title})}catch(v){if(n.suppressErrorRendering)throw h(),v;g=await kc.fromText("error"),x=v}const y=u.select(l).node(),b=g.type,w=y.firstChild,k=w.firstChild,_=($=(N=g.renderer).getClasses)==null?void 0:$.call(N,e,g),C=m3(n,b,_,a),S=document.createElement("style");S.innerHTML=C,w.insertBefore(S,k);try{await g.renderer.draw(e,t,uu.version,g)}catch(v){throw n.suppressErrorRendering?h():oO.draw(e,t,uu.version),v}const F=u.select(`${l} svg`),I=(M=(L=g.db).getAccTitle)==null?void 0:M.call(L),O=(D=(E=g.db).getAccDescription)==null?void 0:D.call(E);_b(b,F,I,O),u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",s3);let A=u.select(l).node().innerHTML;if(P.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),A=y3(A,f,Nt(n.arrowMarkerAbsolute)),f){const v=u.select(l+" svg").node();A=x3(A,v)}else d||(A=Ai.sanitize(A,{ADD_TAGS:d3,ADD_ATTR:p3,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(VO(),x)throw x;return h(),{diagramType:b,svg:A,bindFunctions:g.db.bindFunctions}},"render");function Cb(t={}){var i;const e=Rt({},t);e!=null&&e.fontFamily&&!((i=e.themeVariables)!=null&&i.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),B2(e),e!=null&&e.theme&&e.theme in cr?e.themeVariables=cr[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=cr.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?E2(e):Qd();$c(r.logLevel),To()}m(Cb,"initialize");var wb=m((t,e={})=>{const{code:r}=Ph(t);return kc.fromText(r,e)},"getDiagramFromText");function _b(t,e,r,i){gb(e,t),mb(e,r,i,e.attr("id"))}m(_b,"addA11yInfo");var Jr=Object.freeze({render:C3,parse:bb,getDiagramFromText:wb,initialize:Cb,getConfig:te,setConfig:Jd,getSiteConfig:Qd,updateSiteConfig:$2,reset:m(()=>{rs()},"reset"),globalReset:m(()=>{rs(Li)},"globalReset"),defaultConfig:Li});$c(te().logLevel);rs(te());var w3=m((t,e,r)=>{P.warn(t),Ch(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),kb=m(async function(t={querySelector:".mermaid"}){try{await _3(t)}catch(e){if(Ch(e)&&P.error(e.str),ye.parseError&&ye.parseError(e),!t.suppressErrors)throw P.error("Use the suppressErrors option to suppress these errors"),e}},"run"),_3=m(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=Jr.getConfig();P.debug(`${t?"":"No "}Callback function found`);let n;if(r)n=r;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");P.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(P.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Jr.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new Fe.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const c of Array.from(n)){if(P.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const l=`mermaid-${a.next()}`;s=c.innerHTML,s=Yy(Fe.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Fe.detectInit(s);h&&P.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:f}=await Ab(l,s,c);c.innerHTML=u,t&&await t(l),f&&f(c)}catch(u){w3(u,o,ye.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),Sb=m(function(t){Jr.initialize(t)},"initialize"),k3=m(async function(t,e,r){P.warn("mermaid.init is deprecated. Please use run instead."),t&&Sb(t);const i={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await kb(i)},"init"),S3=m(async(t,{lazyLoad:e=!0}={})=>{To(),Sl(...t),e===!1&&await XO()},"registerExternalDiagrams"),vb=m(function(){if(ye.startOnLoad){const{startOnLoad:t}=Jr.getConfig();t&&ye.run().catch(e=>P.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",vb,!1);var v3=m(function(t){ye.parseError=t},"setParseErrorHandler"),Us=[],pl=!1,Tb=m(async()=>{if(!pl){for(pl=!0;Us.length>0;){const t=Us.shift();if(t)try{await t()}catch(e){P.error("Error executing queue",e)}}pl=!1}},"executeQueue"),T3=m(async(t,e)=>new Promise((r,i)=>{const n=m(()=>new Promise((a,s)=>{Jr.parse(t,e).then(o=>{a(o),r(o)},o=>{var c;P.error("Error parsing",o),(c=ye.parseError)==null||c.call(ye,o),s(o),i(o)})}),"performCall");Us.push(n),Tb().catch(i)}),"parse"),Ab=m((t,e,r)=>new Promise((i,n)=>{const a=m(()=>new Promise((s,o)=>{Jr.render(t,e,r).then(c=>{s(c),i(c)},c=>{var l;P.error("Error parsing",c),(l=ye.parseError)==null||l.call(ye,c),o(c),n(c)})}),"performCall");Us.push(a),Tb().catch(n)}),"render"),A3=m(()=>Object.keys(Ur).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),ye={startOnLoad:!0,mermaidAPI:Jr,parse:T3,render:Ab,init:k3,run:kb,registerExternalDiagrams:S3,registerLayoutLoaders:Dx,initialize:Sb,parseError:void 0,contentLoaded:vb,setParseErrorHandler:v3,detectType:Fc,registerIconPacks:ZB,getRegisteredDiagramsMetadata:A3},gl=ye;/*! Check if previously processed *//*!
267
+ * Wait for document loaded before starting the execution
268
+ */const pt=t=>t.replace(/\s*!important\s*$/i,"").trim(),L3=(t,e)=>{let r=e;for(;r<t.length&&/\s/.test(t[r]);)r+=1;const i=r;for(;r<t.length&&/[a-z-]/i.test(t[r]);)r+=1;if(r===i)return!1;for(;r<t.length&&/\s/.test(t[r]);)r+=1;return t[r]===":"},ve=t=>{const e=[];let r=0;for(;r<t.length;){for(;r<t.length&&/[\s;,]/.test(t[r]);)r+=1;if(r>=t.length)break;const i=r;for(;r<t.length&&t[r]!==":"&&!(t[r]===";"||t[r]===",");)r+=1;if(r>=t.length||t[r]!==":")break;const n=t.substring(i,r).trim().toLowerCase();r+=1;const a=r;let s=0,o=null;for(;r<t.length;){const l=t[r];if(o){l===o&&t[r-1]!=="\\"&&(o=null),r+=1;continue}if(l==='"'||l==="'"){o=l,r+=1;continue}if(l==="("){s+=1,r+=1;continue}if(l===")"){s=Math.max(0,s-1),r+=1;continue}if(s===0&&(l===";"||l===","||/\s/.test(l)&&L3(t,r)))break;r+=1}const c=pt(t.substring(a,r));n&&c&&e.push({property:n,value:c}),r<t.length&&(t[r]===";"||t[r]===",")&&(r+=1)}return e},Te=t=>{const e=pt(t);if(!e)return!1;if(typeof CSS<"u"&&typeof CSS.supports=="function")return CSS.supports("color",e);if(typeof document<"u"){const r=document.createElement("div");return r.style.color="",r.style.color=e,r.style.color!==""}return!1},fd=(t,e)=>{var i;const r=t.getAttribute("style");return r&&((i=ve(r).find(n=>n.property===e))==null?void 0:i.value)||""},ml=(...t)=>{for(const e of t){const r=pt(e||"");if(Te(r))return r}},zh=(t,e)=>{var s,o,c,l;const r=t.querySelector("text, foreignObject, div, span, p")||t,i=ml((s=r.getAttribute)==null?void 0:s.call(r,"fill"),fd(r,"fill"),(o=r.style)==null?void 0:o.fill);if(i)return i;const n=ml((c=r.getAttribute)==null?void 0:c.call(r,"color"),fd(r,"color"),(l=r.style)==null?void 0:l.color);if(n)return n;const a=ml(e);if(a)return a},Wh=(t,e,r)=>{switch(e){case Ct.FILL:case Ct.STROKE:Te(r)&&(t[e]=r);break;case Ct.STROKE_WIDTH:case Ct.STROKE_DASHARRAY:t[e]=r;break}},js=(t,e,r)=>{e===ae.COLOR&&Te(r)&&(t[ae.COLOR]=r)},Xs=(t,e,r)=>{t&&ve(t).forEach(({property:i,value:n})=>{Wh(e,i,n),js(r,i,n)})},Lb=(t,e)=>{t&&ve(t).forEach(({property:r,value:i})=>{if(r==="fill"&&Te(i)){e[ae.COLOR]=i;return}js(e,r,i)})},Mb=(t,e)=>{if(!t)return;[[Ct.FILL,t.getAttribute("fill")],[Ct.STROKE,t.getAttribute("stroke")],[Ct.STROKE_WIDTH,t.getAttribute("stroke-width")],[Ct.STROKE_DASHARRAY,t.getAttribute("stroke-dasharray")]].forEach(([i,n])=>{const a=pt(n||"");a&&Wh(e,i,a)})},Eb=(t,e)=>{if(!t)return;const r=t.getAttribute("fill")||t.getAttribute("color"),i=pt(r||"");Te(i)&&(e[ae.COLOR]=i)},vc=(t,e,r,i)=>{var a,s;if(!(e instanceof Map))return;const n=e.get(t);n&&((a=n.styles)==null||a.forEach(o=>{ve(o).forEach(({property:c,value:l})=>{Wh(r,c,l),js(i,c,l)})}),(s=n.textStyles)==null||s.forEach(o=>{ve(o).forEach(({property:c,value:l})=>{js(i,c,l)})}))},M3=(t,e,r)=>{var f;const i=t.nodes.map(d=>d.startsWith("flowchart-")?d.split("-")[1]:d),n=e.querySelector(`[id='${t.id}']`);if(!n)throw new Error("SubGraph element not found");const a=qh(n,e),s=n.getBBox(),o={width:s.width,height:s.height},c={},l={},h=n.querySelector(":scope > rect, :scope > path, :scope > polygon, :scope > ellipse")||n.querySelector(".cluster > rect, .cluster > path, .cluster > polygon, .cluster > ellipse")||n.querySelector("rect, path, polygon, ellipse");Xs(n.getAttribute("style"),c,l),Xs(h==null?void 0:h.getAttribute("style"),c,l),Mb(h,c);const u=n.querySelector(".cluster-label text, .cluster-label tspan")||n.querySelector("text");return Lb(u==null?void 0:u.getAttribute("style"),l),Eb(u,l),vc(t.id,r,c,l),(f=t.classes)==null||f.forEach(d=>{vc(d,r,c,l)}),{id:t.id,nodeIds:i,text:ge(t.title),labelType:"text",...a,...o,containerStyle:c,labelStyle:l}},dd=(t,e,r)=>{var f,d;const i=e.querySelector(`[id*="${t.domId}"]`);if(!i)return;let n;((f=i.parentElement)==null?void 0:f.tagName.toLowerCase())==="a"&&(n=i.parentElement.getAttribute("xlink:href"));const a=qh(n?i.parentElement:i,e),s=i.getBBox(),o={width:s.width,height:s.height},c={},l={};t.classes&&r instanceof Map&&(Array.isArray(t.classes)?t.classes:[t.classes]).forEach(p=>{vc(p,r,c,l)}),(d=t.styles)==null||d.forEach(p=>{Xs(p,c,l)});const h=i.querySelector(".label-container");return Xs(h==null?void 0:h.getAttribute("style"),c,l),Mb(h,c),Array.from(i.querySelectorAll(".label, .nodeLabel, .label text, .label tspan, .label span, .label div")).forEach(p=>{Lb(p.getAttribute("style"),l),Eb(p,l)}),{id:t.id,labelType:t.labelType,text:ge(t.text||""),type:t.type,link:n||void 0,...a,...o,containerStyle:c,labelStyle:l}},E3=(t,e,r)=>{const i=r.querySelector(`[id*="${t.id}"]`);if(!i)throw new Error("Edge element not found");const n=qh(i,r),a=Rd(i,n);return t.length=void 0,{...t,...a,text:ge(t.text)}},qh=(t,e)=>{var c;if(!t)throw new Error("Element not found");let r=(c=t.parentElement)==null?void 0:c.parentElement;const i=t.childNodes[0];let n={x:0,y:0};if(i){const{transformX:l,transformY:h}=Hr(i),u=i.getBBox();n={x:Number(i.getAttribute("x"))||l+u.x||0,y:Number(i.getAttribute("y"))||h+u.y||0}}const{transformX:a,transformY:s}=Hr(t),o={x:a+n.x,y:s+n.y};for(;r&&r.id!==e.id;){if(r.classList.value==="root"&&r.hasAttribute("transform")){const{transformX:l,transformY:h}=Hr(r);o.x+=l,o.y+=h}r=r.parentElement}return o},B3=(t,e)=>{const r=t.getVertices(),i=t.getEdges(),n=t.getSubGraphs(),a=t.getClasses(),s={},o=a instanceof Map?a:{};r instanceof Map?r.forEach((u,f)=>{s[f]=dd(u,e,o)}):typeof r=="object"&&r!==null&&Object.entries(r).forEach(([u,f])=>{s[u]=dd(f,e,o)});const c=new Map,l=(Array.isArray(i)?i:[]).map(u=>{if(!e.querySelector(`[id*="${u.id}"]`))return null;const f=`${u.start}-${u.end}`,d=c.get(f)||0;return c.set(f,d+1),E3(u,d,e)}).filter(u=>u!==null&&u.reflectionPoints.length>1);return{type:"flowchart",subGraphs:(Array.isArray(n)?n:[]).map(u=>M3(u,e,o)),vertices:s,edges:l}},$3=(t,e)=>{const r={};e!=null&&e.label&&(r.label={text:ge(e.label),fontSize:16});const i=t.tagName;if(i==="line")r.startX=Number(t.getAttribute("x1")),r.startY=Number(t.getAttribute("y1")),r.endX=Number(t.getAttribute("x2")),r.endY=Number(t.getAttribute("y2"));else if(i==="path"){const s=t.getAttribute("d");if(!s)throw new Error('Path element does not contain a "d" attribute');const o=s.split(/(?=[LC])/),c=o[0].substring(1).split(",").map(u=>parseFloat(u)),l=[];o.forEach(u=>{const f=u.substring(1).trim().split(" ").map(d=>{const[p,g]=d.split(",");return[parseFloat(p)-c[0],parseFloat(g)-c[1]]});l.push(...f)});const h=l[l.length-1];r.startX=c[0],r.startY=c[1],r.endX=h[0],r.endY=h[1],r.points=l}e!=null&&e.label&&(r.startY=r.startY-10,r.endY=r.endY-10);const n=t.getAttribute("stroke"),a=(n&&n!=="none"?n:"")||getComputedStyle(t).stroke||"";return r.strokeColor=a?pt(a):null,r.strokeWidth=Number(t.getAttribute("stroke-width")),r.type="arrow",r.strokeStyle=(e==null?void 0:e.strokeStyle)||"solid",r.startArrowhead=(e==null?void 0:e.startArrowhead)||null,r.endArrowhead=(e==null?void 0:e.endArrowhead)||null,r},Hh=(t,e,r,i,n)=>{const a={};return a.type="arrow",a.startX=t,a.startY=e,a.endX=r,a.endY=i,Object.assign(a,{...n}),a},Gs=(t,e,r,i)=>({type:"text",x:t,y:e,text:r,width:(i==null?void 0:i.width)||20,height:(i==null?void 0:i.height)||20,fontSize:(i==null?void 0:i.fontSize)||Jn,id:i==null?void 0:i.id,color:i==null?void 0:i.color,groupId:i==null?void 0:i.groupId,metadata:i==null?void 0:i.metadata}),Bb=(t,e,r)=>{const i={},n=Number(t.getAttribute("x")),a=Number(t.getAttribute("y"));i.type="text",i.text=ge(e),r!=null&&r.id&&(i.id=r.id),r!=null&&r.groupId&&(i.groupId=r.groupId);const s=t.getBBox();i.width=s.width,i.height=s.height,i.x=n-s.width/2,i.y=a;const o=parseInt(getComputedStyle(t).fontSize);return i.fontSize=o,i.color=zh(t),i},gr=(t,e,r={})=>{const i={};i.type=e;const{label:n,subtype:a,id:s,groupId:o}=r;i.id=s,o&&(i.groupId=o),n&&(i.label={text:ge(n.text),fontSize:16,textAlign:n==null?void 0:n.textAlign,verticalAlign:n==null?void 0:n.verticalAlign});const c=t.getBBox();switch(i.x=c.x,i.y=c.y,i.width=c.width,i.height=c.height,i.subtype=a,a){case"highlight":const l=t.getAttribute("fill");l&&(i.bgColor=pt(l));break;case"note":i.strokeStyle="dashed";break}return i},Yn=(t,e,r,i,n,a)=>{const s={};s.startX=e,s.startY=r,s.endX=i,a!=null&&a.groupId&&(s.groupId=a.groupId),a!=null&&a.id&&(s.id=a.id),s.endY=n;const o=t.getAttribute("stroke");return s.strokeColor=o?pt(o):null,s.strokeWidth=Number(t.getAttribute("stroke-width")),s.type="line",s},pd={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Ue={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},F3=t=>{let e;switch(t){case Ue.SOLID:case Ue.SOLID_CROSS:case Ue.SOLID_OPEN:case Ue.SOLID_POINT:e="solid";break;case Ue.DOTTED:case Ue.DOTTED_CROSS:case Ue.DOTTED_OPEN:case Ue.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},D3=(t,e)=>{var i,n;if(!!((i=t.nextElementSibling)!=null&&i.classList.contains("sequenceNumber"))){const a=(n=t.nextElementSibling)==null?void 0:n.textContent;if(!a)throw new Error("sequence number not present");const s=30,o=s/2,l={type:"rectangle",x:e.startX-10,y:e.startY-o,label:{text:a,fontSize:14},bgColor:"#e9ecef",height:s,subtype:"sequence"};Object.assign(e,{sequenceNumber:l})}},gd=(t,e,r)=>{if(!t)throw"root node not found";const i=we(),n=Array.from(t.children),a=[];return n.forEach((s,o)=>{const c=`${r==null?void 0:r.id}-${o}`;let l;switch(s.tagName){case"line":const h=Number(s.getAttribute("x1")),u=Number(s.getAttribute("y1")),f=Number(s.getAttribute("x2")),d=Number(s.getAttribute("y2"));l=Yn(s,h,u,f,d,{groupId:i,id:c});break;case"text":l=Bb(s,e,{groupId:i,id:c});break;case"circle":l=gr(s,"ellipse",{label:s.textContent?{text:s.textContent}:void 0,groupId:i,id:c});default:l=gr(s,Qb[s.tagName],{label:s.textContent?{text:s.textContent}:void 0,groupId:i,id:c})}a.push(l)}),a},md=(t,e)=>{const r=e.getAttribute("fill"),i=e.getAttribute("stroke"),n=e.getAttribute("stroke-width"),a=e.getAttribute("stroke-dasharray");r&&r!=="none"&&(t.bgColor=pt(r)),i&&i!=="none"&&(t.strokeColor=pt(i)),n&&(t.strokeWidth=Number(n)),a&&a.trim()&&(t.strokeStyle="dashed")},O3=(t,e)=>{const r=Array.from(e.querySelectorAll(".actor-top")),i=Array.from(e.querySelectorAll(".actor-bottom")),n=[],a=[],s={},o=t instanceof Map?Array.from(t.values()):Object.values(t),c=Array.from(e.querySelectorAll(".actor-line")),l=(h,u)=>{var g;const f=h.name,d=c.find(x=>x.getAttribute("name")===f);if(d)return d;const p=h.type==="participant"?(g=u.parentElement)==null?void 0:g.previousElementSibling:u.previousElementSibling;return p?p.tagName==="line"?p:p.querySelector("line"):null};return o.forEach(h=>{const u=r.find(p=>p.getAttribute("name")===h.name),f=i.find(p=>p.getAttribute("name")===h.name);if(!u||!f)throw"root not found";const d=h.description;if(h.type==="participant"){const p=gr(u,"rectangle",{id:`${h.name}-top`,label:{text:d},subtype:"actor"});if(md(p,u),!p)throw"Top Node element not found!";n.push([p]);const g=gr(f,"rectangle",{id:`${h.name}-bottom`,label:{text:d},subtype:"actor"});s[h.name]={topId:`${h.name}-top`,bottomId:`${h.name}-bottom`,bindType:"rectangle"},md(g,f),n.push([g]);const x=l(h,u);if((x==null?void 0:x.tagName)!=="line")throw"Line not found";const y=Number(x.getAttribute("x1"));if(!p.height)throw"Top node element height is null";const b=p.y+p.height,w=g.y,k=Number(x.getAttribute("x2")),_=Yn(x,y,b,k,w);a.push(_)}else if(h.type==="actor"){const p=gd(u,d,{id:`${h.name}-top`});n.push(p);const g=gd(f,d,{id:`${h.name}-bottom`});n.push(g);const x=l(h,u);if((x==null?void 0:x.tagName)!=="line")throw"Line not found";const y=Number(x.getAttribute("x1")),b=Number(x.getAttribute("y1")),w=Number(x.getAttribute("x2")),k=g.find(S=>S.type==="ellipse");if(k){const S=k.y,F=Yn(x,y,b,w,S);a.push(F)}const _=p.find(S=>S.type==="ellipse"),C=g.find(S=>S.type==="ellipse");_!=null&&_.id&&(C!=null&&C.id)&&(s[h.name]={topId:_.id,bottomId:C.id,bindType:"ellipse"})}}),{nodes:n,lines:a,actorMap:s}},I3=(t,e,r)=>{const i=[],n=Array.from(e.querySelectorAll('[class*="messageLine"]')),a=Object.keys(pd),s=t.filter(o=>a.includes(o.type.toString()));return n.forEach((o,c)=>{const l=s[c],h=pd[l.type],u=$3(o,{label:l==null?void 0:l.message,strokeStyle:F3(l.type),endArrowhead:h==="SOLID_OPEN"||h==="DOTTED_OPEN"?null:"arrow"}),f=r[l.from],d=r[l.to];f!=null&&f.topId&&(d!=null&&d.topId)&&(u.start={type:f.bindType||"rectangle",id:f.topId},u.end={type:d.bindType||"rectangle",id:d.topId}),D3(o,u),i.push(u)}),i},R3=(t,e)=>{const r=Array.from(e.querySelectorAll(".note")).map(a=>a.parentElement),i=t.filter(a=>a.type===Ue.NOTE),n=[];return r.forEach((a,s)=>{if(!a)return;const o=a.firstChild,c=i[s].message,l=gr(o,"rectangle",{label:{text:c},subtype:"note"}),h=o.getAttribute("fill"),u=o.getAttribute("stroke"),f=o.getAttribute("stroke-width"),d=o.getAttribute("stroke-dasharray");h&&h!=="none"&&(l.bgColor=pt(h)),u&&u!=="none"&&(l.strokeColor=pt(u)),f&&(l.strokeWidth=Number(f)),d&&d.trim()&&(l.strokeStyle="dashed"),n.push(l)}),n},P3=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),r=[];return e.forEach(i=>{const n=gr(i,"rectangle",{label:{text:""},subtype:"activation"});(()=>{const s=i.getAttribute("fill"),o=i.getAttribute("stroke"),c=i.getAttribute("stroke-width"),l=i.getAttribute("stroke-dasharray");s&&s!=="none"&&(n.bgColor=pt(s)),o&&o!=="none"&&(n.strokeColor=pt(o)),c&&(n.strokeWidth=Number(c)),l&&l.trim()&&(n.strokeStyle="dashed")})(),r.push(n)}),r},N3=(t,e)=>{const r=Array.from(e.querySelectorAll(".loopLine")),i=[],n=[],a=[];r.forEach(h=>{const u=Number(h.getAttribute("x1")),f=Number(h.getAttribute("y1")),d=Number(h.getAttribute("x2")),p=Number(h.getAttribute("y2")),g=Yn(h,u,f,d,p);g.strokeStyle="dotted",g.strokeColor="#adb5bd",g.strokeWidth=2,i.push(g)});const s=Array.from(e.querySelectorAll(".loopText")),o=t.filter(h=>h.type===Ue.CRITICAL_START).map(h=>h.message);s.forEach(h=>{var g;const u=h.textContent||"",f=Bb(h,u),d=((g=u.match(/\[(.*?)\]/))==null?void 0:g[1])||"";o.includes(d)&&(f.x+=16),n.push(f)});const c=Array.from(e==null?void 0:e.querySelectorAll(".labelBox")),l=Array.from(e==null?void 0:e.querySelectorAll(".labelText"));return c.forEach((h,u)=>{var p;const f=((p=l[u])==null?void 0:p.textContent)||"",d=gr(h,"rectangle",{label:{text:f}});d.strokeColor="#adb5bd",d.bgColor="#e9ecef",d.width=void 0,a.push(d)}),{lines:i,texts:n,nodes:a}},z3=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(i=>{var n;return((n=i.parentElement)==null?void 0:n.tagName)!=="g"}),r=[];return e.forEach(i=>{const n=gr(i,"rectangle",{label:{text:""},subtype:"highlight"});r.push(n)}),r},W3=(t,e)=>{const r=t.db,i=[],a=r.getBoxes().map(x=>({...x,fill:pt(x.fill||"")})),s=z3(e),o=r.getActors(),{nodes:c,lines:l,actorMap:h}=O3(o,e),u=r.getMessages(),f=I3(u,e,h),d=R3(u,e),p=P3(e),g=N3(u,e);return i.push(s),i.push(...c),i.push(d),i.push(p),{type:"sequence",lines:l,arrows:f,nodes:i,loops:g,groups:a}},q3=t=>{const e={};return t&&t.forEach(r=>{ve(r).forEach(({property:i,value:n})=>{i&&n&&(e[i]=pt(n))})}),e},Da={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},yd={LINE:0,DOTTED_LINE:1},xd=16,H3=t=>{let e;switch(t){case yd.LINE:e="solid";break;case yd.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},bd=t=>{let e;switch(t){case Da.AGGREGATION:e="diamond_outline";break;case Da.COMPOSITION:e="diamond";break;case Da.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case Da.DEPENDENCY:default:e="arrow";break}return e},yl=(t,e)=>{let r=0,i=0,n=t;for(;n&&n!==e;){const{transformX:a,transformY:s}=Hr(n);r+=a,i+=s,n=n.parentElement}return{tx:r,ty:i}},Cd=new Set(["triangle_outline","diamond","diamond_outline"]),$b=(t,e=.5)=>{if(t.length<=2)return[...t];const r=[t[0]];for(let i=1;i<t.length-1;i++){const n=r[r.length-1],a=t[i],s=t[i+1],o=s.x-n.x,c=s.y-n.y,l=Math.hypot(o,c);if(!l)continue;const u=Math.abs(o*(a.y-n.y)-c*(a.x-n.x))/l,f=((a.x-n.x)*o+(a.y-n.y)*c)/(l*l);u<=e&&f>=-e&&f<=1+e||r.push(a)}return r.push(t[t.length-1]),r},Fb=t=>{const e=Ec(Id(t).map(i=>[i.x,i.y])).map(([i,n])=>({x:i,y:n})),r=Bc(t);return r&&e.length>=2&&(e[0]={x:r.startX,y:r.startY},e[e.length-1]={x:r.endX,y:r.endY}),$b(e)},wd=(t,e,r)=>{const i=t.x-e.x,n=t.y-e.y,a=Math.hypot(i,n);return a?{x:t.x+i/a*r,y:t.y+n/a*r}:t},Y3=(t,e)=>{const r=Ec(e.map(a=>[a.x,a.y])).map(([a,s])=>({x:a,y:s}));if(r.length<2)throw new Error("Arrow route must contain at least two points");const i=r[0],n=r[r.length-1];t.startX=i.x,t.startY=i.y,t.endX=n.x,t.endY=n.y,t.points=r.map(a=>[a.x-i.x,a.y-i.y])},U3=t=>{var a;const e=(a=t.points)==null?void 0:a.map(([s,o])=>({x:t.startX+s,y:t.startY+o})).filter(s=>Number.isFinite(s.x)&&Number.isFinite(s.y));if(!e||e.length<2)return t;const r=[...e],i=!!t.startArrowhead&&Cd.has(t.startArrowhead),n=!!t.endArrowhead&&Cd.has(t.endArrowhead);if(!i&&!n)return t;if(i&&(r[0]=wd(r[0],r[1],xd)),n){const s=r.length-1;r[s]=wd(r[s],r[s-1],xd)}return Y3(t,r),t},j3=(t,e)=>{const r=pt(t.getAttribute("stroke")||getComputedStyle(t).stroke||""),i=parseFloat(t.getAttribute("stroke-width")||getComputedStyle(t).strokeWidth||"1");Te(r)&&r!=="none"&&(e.strokeColor=r),Number.isFinite(i)&&i>0&&(e.strokeWidth=i)},X3=t=>{const e=[];return t.forEach(r=>{Fb(r).forEach(i=>{const n=e[e.length-1];n&&n.x===i.x&&n.y===i.y||e.push(i)})}),$b(e)},Db=(t,e,r)=>{if(t.length<2)throw new Error(`Class diagram edge ${(e==null?void 0:e.id)||"<unknown>"} is missing usable path points`);const i=t[0],n=t[t.length-1],a=Hh(i.x,i.y,n.x,n.y,{id:(e==null?void 0:e.getAttribute("data-id"))||(e==null?void 0:e.id)||void 0,...r,points:t.map(s=>[s.x-i.x,s.y-i.y])});return e&&j3(e,a),U3(a)},Ob=(t,e)=>Db(X3(t),t[0],e),G3=(t,e)=>{const r=Fb(t);return Db([r[0],r[r.length-1]],t,e)},V3=(t,e)=>Ob([t],e),Z3=(t,e)=>[`${t}-cyclic-special-1`,`${t}-cyclic-special-mid`,`${t}-cyclic-special-2`].map(i=>e.querySelector(`path[id="${i}"][data-edge="true"]`)).filter(i=>i!==null),K3=t=>{var e;return((e=t.points)==null?void 0:e.map(([r,i])=>({x:t.startX+r,y:t.startY+i})).filter(r=>Number.isFinite(r.x)&&Number.isFinite(r.y)))||[]},_d=(t,e)=>{const r=K3(t);if(r.length<2)return null;const i=e==="start",n=i?r[0]:r[r.length-1],a=i?r[1]:r[r.length-2],s=a.x===n.x?i?-1:1:Math.sign(a.x-n.x),o=a.y===n.y?1:Math.sign(a.y-n.y);return{x:n.x+s*20,y:n.y+(o>=0?12:-28)}},Q3=(t,e)=>{let r=t;for(;r&&r!==e;){if(r.classList.contains("annotation-group")||r.classList.contains("label-group"))return"header";if(r.classList.contains("members-group"))return"members";if(r.classList.contains("methods-group"))return"methods";r=r.parentElement}return"other"},J3=(t,e,r)=>{const i=[],n=[],a=[];return Object.values(t).forEach(s=>{var D;const{domId:o,id:c}=s,l=we(),h=q3(s.styles||s.cssStyles);let u;try{u=r?r(c):void 0}catch{u=void 0}const f=v=>{const R=new RegExp(`^classId-${v}(?:-|$)`);return Array.from(e.querySelectorAll("[id]")).filter(H=>R.test(H.id))[0]},d=u&&e.querySelector(`#${u}`)||e.querySelector(`#${o}`)||e.querySelector(`[data-id='${c}']`)||f(c);if(!d)throw Error(`DOM Node with id ${o} not found`);const p=d.querySelector("rect")||d,g=p.getBBox(),{tx:x,ty:y}=yl(p,e),b={type:"rectangle",id:c,groupId:l,x:g.x+x,y:g.y+y,width:g.width,height:g.height,metadata:{classId:c}},w=p.getAttribute("fill"),k=p.getAttribute("stroke"),_=p.getAttribute("stroke-width"),C=p.getAttribute("stroke-dasharray"),S=getComputedStyle(p),F=pt(w||h.fill||(w?S.fill:"")),I=pt(k||h.stroke||(k?S.stroke:"")),O=_||h["stroke-width"]||(_?S.strokeWidth:""),A=C||h["stroke-dasharray"]||(C?S.strokeDasharray==="none"?"":S.strokeDasharray:""),N=v=>{if(!v||!Te(v))return!1;const R=v.toLowerCase();return!(R==="none"||R==="transparent"||R==="rgba(0, 0, 0, 0)"||R==="black"||R==="#000"||R==="#000000"||R==="rgb(0, 0, 0)"||R==="rgba(0, 0, 0, 1)")};N(F)?b.bgColor=F:b.bgColor=void 0,N(I)?b.strokeColor=I:b.strokeColor=void 0,O?b.strokeWidth=Number(O):b.strokeWidth=void 0,A&&A.trim().length>0?b.strokeStyle="dashed":b.strokeStyle=void 0,i.push(b),[...Array.from(d.querySelectorAll("line")),...Array.from(d.querySelectorAll("g.divider path"))].forEach(v=>{const{tx:R,ty:U}=yl(v,e);let H,lt,et,ht;if(v.tagName.toLowerCase()==="line")H=Number(v.getAttribute("x1"))+R,lt=Number(v.getAttribute("y1"))+U,et=Number(v.getAttribute("x2"))+R,ht=Number(v.getAttribute("y2"))+U;else{const it=v.getBBox();H=it.x+R,et=it.x+it.width+R;const ut=it.y+it.height/2+U;lt=ut,ht=ut}if(H===et&&lt===ht)return;const tt=Yn(v,H,lt,et,ht,{groupId:l,id:we()});b.strokeColor?tt.strokeColor=b.strokeColor:tt.strokeColor=void 0,b.strokeWidth!==void 0?tt.strokeWidth=b.strokeWidth:tt.strokeWidth=void 0,b.strokeStyle?tt.strokeStyle=b.strokeStyle:tt.strokeStyle=void 0,tt.metadata={classId:c},n.push(tt)});const L=Array.from(d.querySelectorAll("text, foreignObject")),M=[];L.forEach(v=>{var it;const R=v.tagName.toLowerCase()==="foreignobject",U=R?[]:Array.from(v.querySelectorAll("tspan")),H=U.length?U.map(ut=>{var yt;return(yt=ut.textContent)==null?void 0:yt.trim()}).filter(Boolean).join(`
269
+ `):((it=v.textContent)==null?void 0:it.trim())||"";if(!H)return;const lt=v.getBBox(),{ty:et}=yl(v,e);let ht=parseFloat(getComputedStyle(v).fontSize||"");if(R&&(!Number.isFinite(ht)||!ht)){const ut=v.querySelector("div, span, p");ut&&(ht=parseFloat(getComputedStyle(ut).fontSize||""))}(!Number.isFinite(ht)||ht<=0)&&(ht=Math.max(12,lt.height*.6)),ht=ht*.9;const tt=zh(v,h.color);M.push({section:Q3(v,d),text:ge(H),x:lt.x,y:lt.y+et,width:b&&b.width?Math.max(b.width-8,lt.width):lt.width,height:lt.height,fontSize:ht,color:tt})});const E=M.filter(v=>v.section==="header").sort((v,R)=>v.y-R.y||v.x-R.x);if(!b.label){const v=E.length===0&&M.length===1?M:E;v.length>0&&(b.label={text:v.map(R=>R.text).join(`
270
+ `),fontSize:Math.max(...v.map(R=>R.fontSize)),color:(D=v.find(R=>R.color))==null?void 0:D.color,verticalAlign:"top"})}M.filter(v=>E.length>0?v.section!=="header":!(b.label&&M.length===1)).forEach(v=>{const R=Gs(((b==null?void 0:b.x)||0)+4,v.y,v.text,{width:v.width,height:v.height,fontSize:v.fontSize,color:v.color,id:we(),groupId:l,metadata:{classId:c}});a.push(R)})}),{nodes:i,lines:n,text:a}},tI=(t,e,r,i)=>{const n=Array.from(r.querySelectorAll('.edgePaths path[data-edge="true"]:not([id^="edgeNote"]):not([id*="-cyclic-special-"])'));if(t.length===0)return{arrows:[],text:[]};const a=[],s=[];let o=0;return t.forEach(c=>{const{id1:l,id2:h,relation:u}=c,f=e.find(O=>O.id===l),d=e.find(O=>O.id===h);if(!f)throw new Error(`parseRelations: Cannot find node with id ${l}`);if(!d)throw new Error(`parseRelations: Cannot find node with id ${h}`);const p=H3(u.lineType),g=bd(u.type1),x=bd(u.type2);let y;if(l===h){const O=Z3(l,r);if(!O.length)throw new Error(`parseRelations: Cannot find rendered SVG edge for relation ${l} -> ${h}`);y=Ob(O,{strokeStyle:p,startArrowhead:g,endArrowhead:x,label:c.title?{text:c.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:d.id}})}else{const O=n[o];if(!O)throw new Error(`parseRelations: Cannot find rendered SVG edge for relation ${l} -> ${h}`);o+=1,y=G3(O,{strokeStyle:p,startArrowhead:g,endArrowhead:x,label:c.title?{text:c.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:d.id}})}a.push(y);const{relationTitle1:b,relationTitle2:w}=c,k=l===h,_=20,C=15,S=15;let F,I;if(b&&b!=="none"){if(k){const A=_d(y,"start");A&&(F=A.x,I=A.y)}else switch(i){case"TB":F=y.startX-_,y.endX<y.startX&&(F-=S),I=y.startY+C;break;case"BT":F=y.startX+_,y.endX>y.startX&&(F+=S),I=y.startY-C;break;case"LR":F=y.startX+_,I=y.startY+C,y.endY>y.startY&&(I+=S);break;case"RL":F=y.startX-_,I=y.startY-C,y.startY>y.endY&&(I-=S);break;default:F=y.startX-_,I=y.startY+C}F??(F=y.startX-_),I??(I=y.startY+C);const O=Gs(F,I,b,{fontSize:16});s.push(O)}if(w&&w!=="none"){if(k){const A=_d(y,"end");A&&(F=A.x,I=A.y)}else switch(i){case"TB":F=y.endX+_,y.endX<y.startX&&(F+=S),I=y.endY-C;break;case"BT":F=y.endX-_,y.endX>y.startX&&(F-=S),I=y.endY+C;break;case"LR":F=y.endX-_,I=y.endY-C,y.endY>y.startY&&(I-=S);break;case"RL":F=y.endX+_,I=y.endY+C,y.startY>y.endY&&(I+=S);break;default:F=y.endX+_,I=y.endY-C}F??(F=y.endX+_),I??(I=y.endY+C);const O=Gs(F,I,w,{fontSize:16});s.push(O)}}),{arrows:a,text:s}},eI=(t,e,r)=>{const i=[],n=[];return t.forEach((a,s)=>{const{id:o,text:c,class:l}=a,h=e.querySelector(`#${o}`);if(!h)throw new Error(`Node with id ${o} not found!`);const{transformX:u,transformY:f}=Hr(h),d=h.firstChild,p=gr(d,"rectangle",{id:o,subtype:"note",label:{text:c}});if(Object.assign(p,{x:p.x+u,y:p.y+f}),i.push(p),l){const g=r.find(C=>C.id===l);if(!g)throw new Error(`class node with id ${l} not found!`);const x=e.querySelector(`path[id="edgeNote${s+1}"][data-edge="true"]`);if(x){n.push(V3(x,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:p.id,type:"rectangle"},end:{id:g.id,type:"rectangle"}}));return}const y=p.x+(p.width||0)/2,b=p.y+(p.height||0),w=y,k=g.y,_=Hh(y,b,w,k,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:p.id,type:"rectangle"},end:{id:g.id,type:"rectangle"}});n.push(_)}}),{notes:i,connectors:n}},rI=(t,e)=>{var y,b,w,k,_;const r=t.db,i=((y=r.getDirection)==null?void 0:y.call(r))||"TB",n=[],a=[],s=[],o=[],c=((b=r.getNamespaces)==null?void 0:b.call(r))||[],l=((w=r.getClasses)==null?void 0:w.call(r))||{},h=l instanceof Map?Object.fromEntries(l):l;if(h&&Object.keys(h).length){const C=typeof r.lookUpDomId=="function"?r.lookUpDomId.bind(r):void 0,S=J3(h,e,C);n.push(S.nodes),a.push(...S.lines),s.push(...S.text),o.push(...S.nodes)}const u=((k=r.getRelations)==null?void 0:k.call(r))||[],{arrows:f,text:d}=tI(u,o,e,i),p=((_=r.getNotes)==null?void 0:_.call(r))||[],{notes:g,connectors:x}=eI(p,e,o);return n.push(g),f.push(...x),s.push(...d),{type:"class",nodes:n,lines:a,arrows:f,text:s,namespaces:c}},kd=18,iI=t=>{const e={};return t&&t.forEach(r=>{ve(r).forEach(({property:i,value:n})=>{i&&n&&(e[i]=pt(n))})}),e},nI=t=>{if(t==null||t==="")return;const e=typeof t=="number"?t:parseFloat(pt(t));if(!(!Number.isFinite(e)||e<=0))return e},Yh=(t,e)=>{let r=0,i=0,n=t;for(;n&&n!==e;){const{transformX:a,transformY:s}=Hr(n);r+=a,i+=s,n=n.parentElement}return{tx:r,ty:i}},aI=t=>{var i;const e=Array.from(t.querySelectorAll("tspan")),r=e.length?e.map(n=>{var a;return(a=n.textContent)==null?void 0:a.trim()}).filter(Boolean).join(`
271
+ `):((i=t.textContent)==null?void 0:i.trim())||"";return ge(r)},sI=t=>{const e=t.querySelector("text, foreignObject, div, span, p")||t;let r=parseFloat(getComputedStyle(e).fontSize||"");return(!Number.isFinite(r)||r<=0)&&(r=Math.max(12,t.getBBox().height*.75)),r},oI=(t,e,r)=>{const i=aI(t);if(!i)return null;const n=t.getBBox(),{tx:a,ty:s}=Yh(t,e);return{className:t.getAttribute("class")||"",text:i,x:n.x+a,y:n.y+s,width:n.width,height:n.height,fontSize:sI(t),color:zh(t,r)}},lI=(t,e,r,i,n,a,s)=>{const{tx:o,ty:c}=Yh(t,e);let l=0,h=0,u=0,f=0;if(t.tagName.toLowerCase()==="line")l=Number(t.getAttribute("x1"))+o,h=Number(t.getAttribute("y1"))+c,u=Number(t.getAttribute("x2"))+o,f=Number(t.getAttribute("y2"))+c;else{const p=Bc(t);if(!p)return null;l=p.startX+o,h=p.startY+c,u=p.endX+o,f=p.endY+c}const d={type:"line",id:we(),groupId:r,startX:l,startY:h,endX:u,endY:f,metadata:{entityId:i}};return n&&Te(n)&&n!=="none"&&(d.strokeColor=n),a!==void 0&&(d.strokeWidth=a),s&&(d.strokeStyle=s),d},Sd=t=>{switch(t==null?void 0:t.toLowerCase()){case"one":return"cardinality_one";case"many":return"cardinality_many";case"only_one":return"cardinality_exactly_one";case"one_or_more":return"cardinality_one_or_many";case"zero_or_one":return"cardinality_zero_or_one";case"zero_or_more":return"cardinality_zero_or_many";default:return null}},cI=t=>{switch(t){case"dotted":return"dotted";case"dashed":return"dashed";default:return"solid"}},hI=(t,e)=>{const r=e.querySelector(`path[id="${t.id}"][data-edge="true"]`);return r?[r]:t.start!==t.end?[]:[`${t.start}-cyclic-special-1`,`${t.start}-cyclic-special-mid`,`${t.start}-cyclic-special-2`].map(n=>e.querySelector(`path[id="${n}"][data-edge="true"]`)).filter(n=>n!==null)},uI=t=>{const e=[];return t.forEach(r=>{Id(r).forEach(i=>{const n=e[e.length-1];n&&n.x===i.x&&n.y===i.y||e.push(i)})}),e},fI=(t,e)=>{const r=e.querySelector(`[id="${t.id}"]`);if(!r)throw new Error(`ER entity ${t.id} not found in rendered SVG`);const i=t.attributes.length?we():void 0,n=r.getBBox(),{tx:a,ty:s}=Yh(r,e),o=iI([...t.cssStyles||[],...t.cssCompiledStyles||[]]),c=pt(o.fill||""),l=pt(o.stroke||""),h=nI(o["stroke-width"]),u=pt(o["stroke-dasharray"]||""),f=Array.from(r.querySelectorAll("g.label")).map(w=>oI(w,e,o.color)).filter(w=>w!==null),d=f.find(w=>w.className.includes("name"))||f[0],p=f.filter(w=>w!==d),g=(d==null?void 0:d.text)||ge(t.alias||t.label||""),x={type:"rectangle",id:t.id,groupId:i,x:n.x+a,y:n.y+s,width:n.width,height:n.height,label:{text:g,fontSize:t.attributes.length?kd:(d==null?void 0:d.fontSize)||16,color:d==null?void 0:d.color,textAlign:"center",verticalAlign:t.attributes.length?"top":"middle"},metadata:{entityId:t.id,entityLabel:t.label,entityAlias:t.alias}};Te(c)&&c!=="none"&&(x.bgColor=c),Te(l)&&l!=="none"&&(x.strokeColor=l),h&&Number.isFinite(h)&&h>0&&(x.strokeWidth=h),u&&u!=="none"&&(x.strokeStyle="dashed");const y=Array.from(r.querySelectorAll(".divider path, path.divider, line.divider")).map(w=>lI(w,e,i,t.id,x.strokeColor,x.strokeWidth,x.strokeStyle)).filter(w=>w!==null),b=p.map(w=>Gs(w.x,w.y,w.text,{id:we(),groupId:i,width:w.width,height:w.height,fontSize:kd,color:w.color,metadata:{entityId:t.id}}));return{container:x,lines:y,text:b}},dI=(t,e)=>{const r=hI(t,e);if(!r.length)throw new Error(`ER relationship ${t.id} not found in rendered SVG`);const i=uI(r);if(i.length<2)throw new Error(`ER relationship ${t.id} is missing usable path points`);const n=i[0],a=i[i.length-1],s=r[0],o=pt(s.getAttribute("stroke")||getComputedStyle(s).stroke||""),c=Number(s.getAttribute("stroke-width")||getComputedStyle(s).strokeWidth||1),l=Hh(n.x,n.y,a.x,a.y,{id:t.id,label:t.label?{text:ge(t.label),fontSize:16,textAlign:"center"}:void 0,strokeStyle:cI(t.pattern),startArrowhead:Sd(t.arrowTypeStart),endArrowhead:Sd(t.arrowTypeEnd),start:{type:"rectangle",id:t.start},end:{type:"rectangle",id:t.end},points:i.map(h=>[h.x-n.x,h.y-n.y])});return Te(o)&&o!=="none"&&(l.strokeColor=o),Number.isFinite(c)&&c>0&&(l.strokeWidth=c),l},pI=(t,e)=>{const r=t.getData(),i=r.nodes,n=r.edges,a=[],s=[],o=[];i.forEach(l=>{const h=fI(l,e);a.push(h.container),s.push(...h.lines),o.push(...h.text)});const c=n.map(l=>dI(l,e));return{type:"erd",nodes:[a],lines:s,arrows:c,text:o}},ti=t=>{const e=pt(t||"");return!e||e==="none"||e==="transparent"||e==="rgba(0, 0, 0, 0)"||e==="rgba(0,0,0,0)"?!1:Te(e)},Ib=(t,e,r)=>{switch(e){case Ct.FILL:case Ct.STROKE:ti(r)&&(t[e]=pt(r));break;case Ct.STROKE_WIDTH:case Ct.STROKE_DASHARRAY:pt(r)&&(t[e]=pt(r));break}},Rb=(t,e,r)=>{e===ae.COLOR&&ti(r)&&(t[ae.COLOR]=pt(r))},gI=(t,e,r)=>{t&&ve(t).forEach(({property:i,value:n})=>{Ib(e,i,n),Rb(r,i,n)})},mI=(t,e)=>{t&&ve(t).forEach(({property:r,value:i})=>{if(r===Ct.FILL&&ti(i)){e[ae.COLOR]=pt(i);return}Rb(e,r,i)})},yI=t=>{const e=new Set;return t.filter(Boolean).forEach(r=>{ve(r||"").forEach(({property:i})=>{e.add(i)})}),e},xI=(t,e,r)=>{if(!t)return;[[Ct.FILL,t.getAttribute("fill")],[Ct.STROKE,t.getAttribute("stroke")],[Ct.STROKE_WIDTH,t.getAttribute("stroke-width")],[Ct.STROKE_DASHARRAY,t.getAttribute("stroke-dasharray")]].forEach(([n,a])=>{if(!r.has(n)||e[n])return;const s=pt(a||"");s&&Ib(e,n,s)})},bI=(t,e,r)=>{if(!t)return;const i=[t,...Array.from(t.querySelectorAll("text, foreignObject, div, span, p"))];for(const n of i){if(e[ae.COLOR]||(r.has(ae.COLOR)||r.has(Ct.FILL))&&(mI(n.getAttribute("style"),e),e[ae.COLOR]))break;const a=pt(n.getAttribute("fill")||n.getAttribute("color")||"");(r.has(ae.COLOR)||r.has(Ct.FILL))&&ti(a)&&(e[ae.COLOR]=a)}},Uh=(t,e)=>{let r=0,i=0,n=t;for(;n&&n!==e;){const{transformX:a,transformY:s}=Hr(n);r+=a,i+=s,n=n.parentElement}return{tx:r,ty:i}},CI=(t,e)=>{const r=t.getBBox(),{tx:i,ty:n}=Uh(t,e);return{x:r.x+i,y:r.y+n,width:r.width,height:r.height}},wI=(t,e)=>{const r=t.querySelector("line.divider");if(!r)return;const{tx:i,ty:n}=Uh(r,e);return{startX:Number(r.getAttribute("x1"))+i,startY:Number(r.getAttribute("y1"))+n,endX:Number(r.getAttribute("x2"))+i,endY:Number(r.getAttribute("y2"))+n}},_I=t=>{const e=t.getBBox();return Math.abs(e.width*e.height)},vd=(t,e)=>{const r=t.getAttribute("style");if(!r)return;const i=ve(r).find(n=>n.property===e);if(i)return pt(i.value)},Tc=(t,e)=>{const r=t.map(n=>({element:n,area:_I(n)})).filter(({area:n})=>Number.isFinite(n)&&n>0);return r.length===0?null:r.sort((n,a)=>e==="largest"?a.area-n.area:n.area-a.area)[0].element},kI=(t,e)=>{if(!t||!e.has(Ct.FILL)&&!e.has(Ct.STROKE))return;const r=pt(t.getAttribute("fill")||vd(t,Ct.FILL)||""),i=pt(t.getAttribute("stroke")||vd(t,Ct.STROKE)||"");if(ti(r))return r;if(ti(i))return i},SI=(t,e)=>{const r=Array.from(t.querySelectorAll("circle, ellipse, path")),i=Tc(r,"smallest");return kI(i,e)},vI=t=>{if(t.length<2)return t;const e=t.slice(1),r=e.filter(i=>i.trim().length>0).reduce((i,n)=>{var s;const a=((s=n.match(/^\s*/))==null?void 0:s[0].length)??0;return Math.min(i,a)},Number.POSITIVE_INFINITY);return!Number.isFinite(r)||r<=0?t.map(i=>i.trimEnd()):[t[0].trimEnd(),...e.map(i=>i.replace(new RegExp(`^\\s{0,${r}}`),"").trimEnd())]},TI=t=>{const e=Array.isArray(t.label)?t.label.map(i=>ge(i)):ge(t.label||"").split(`
272
+ `);return vI(e).join(`
273
+ `)},AI=t=>t.description?(Array.isArray(t.description)?t.description:[t.description]).map(r=>ge(r)).filter(r=>r.length>0):[],LI=t=>{const e=new Set,r=n=>(n&&e.add(n),n),i=n=>{const a=n.find(s=>!e.has(s));return r(a||null)};return n=>{const a=[`[id='${n.domId}']`,`[id='${n.id}']`,`[data-id='${n.id}']`];for(const s of a){const o=t.querySelector(s);if(o)return r(o)}switch(n.shape){case"divider":return i(Array.from(t.querySelectorAll("g.statediagram-cluster-alt")));case"stateStart":return i(Array.from(t.querySelectorAll("g.node.default")).filter(s=>s.querySelector("circle.state-start")));case"stateEnd":return i(Array.from(t.querySelectorAll("g.node.default")).filter(s=>!s.querySelector("circle.state-start")));default:return null}}},MI=(t,e)=>{switch(e){case"roundedWithTitle":return t.querySelector("rect.outer")||t.querySelector("rect")||t;case"divider":return t.querySelector("rect.divider")||t.querySelector("rect")||t;case"rectWithTitle":return t.querySelector("rect.outer")||t.querySelector("rect")||t;case"stateStart":return Tc(Array.from(t.querySelectorAll("circle, ellipse, path")),"largest")||t;case"stateEnd":return Tc(Array.from(t.querySelectorAll("circle, ellipse, path")),"largest")||t;case"choice":case"fork":case"join":case"note":case"rect":default:return t.querySelector("rect, path, circle, ellipse, polygon")||t}},EI=(t,e,r)=>{const i=r(t);if(!i)throw new Error(`State node element not found for "${t.id}"`);const n=MI(i,t.shape),a={},s={},o=[t.labelStyle,...t.cssCompiledStyles||[],...t.cssStyles||[]],c=yI(o);o.filter(Boolean).forEach(h=>{gI(h,a,s)}),xI(n,a,c),bI(i,s,c);const l=CI(n,e);return{id:t.id,shape:t.shape,text:TI(t),description:AI(t),x:l.x,y:l.y,width:l.width,height:l.height,parentId:t.parentId,position:t.position,containerStyle:a,labelStyle:s,dividerLine:t.shape==="rectWithTitle"?wI(i,e):void 0,endInnerColor:t.shape==="stateEnd"?SI(i,c):void 0,isRenderable:t.shape!=="noteGroup"}},BI=(t,e)=>{var l;const r=e.querySelector(`[id='${t.id}']`);if(!r)return null;const{tx:i,ty:n}=Uh(r,e),a=Rd(r,{x:i,y:n},"MCL");if(a.reflectionPoints.length<2)return null;const s={},o=(h,u)=>{switch(h){case Ct.STROKE:ti(u)&&(s.strokeColor=pt(u));break;case Ct.STROKE_WIDTH:{const f=parseFloat(pt(u));Number.isFinite(f)&&f>0&&(s.strokeWidth=f);break}case Ct.STROKE_DASHARRAY:pt(u)&&(s.strokeStyle="dashed");break}};[t.style].filter(Boolean).forEach(h=>{ve(h||"").forEach(({property:u,value:f})=>{o(u,f)})});const c=t.arrowhead==="none"||((l=t.classes)==null?void 0:l.includes("note-edge"));return{id:t.id,start:t.start,end:t.end,text:ge(t.label||""),...a,strokeColor:s.strokeColor,strokeWidth:s.strokeWidth,strokeStyle:c?"dashed":s.strokeStyle,isNoteEdge:c}},$I=(t,e)=>{const{nodes:r,edges:i}=t.getData(),n=LI(e);return{type:"state",nodes:r.map(a=>EI(a,e,n)),edges:i.map(a=>BI(a,e)).filter(a=>a!==null)}};let Td=Promise.resolve();const FI=t=>{const e=Td.then(t,t);return Td=e.then(()=>{},()=>{}),e};let Ad=null,DI=0;const OI=t=>JSON.stringify(t),Ld=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const r=e.getBoundingClientRect(),i=r.width,n=r.height;e.setAttribute("width",`${i}`),e.setAttribute("height",`${n}`);const a="image/svg+xml",s=unescape(encodeURIComponent(e.outerHTML)),c=`data:image/svg+xml;base64,${btoa(s)}`;return{type:"graphImage",mimeType:a,dataURL:c,width:i,height:n}},II=async(t,e=ya)=>FI(async()=>{var l,h;const r=((l=e.themeVariables)==null?void 0:l.fontSize)??ya.themeVariables.fontSize,i={...ya,...e,fontSize:r,themeVariables:{...ya.themeVariables,...e.themeVariables,fontSize:r}},n=OI(i);n!==Ad&&(gl.initialize(i),Ad=n);const a=await gl.mermaidAPI.getDiagramFromText(D1(t)),s=`mermaid-to-excalidraw-${DI++}`,o=document.createElement("div");o.setAttribute("style","opacity: 0; position: fixed; z-index: -1; left: -99999px; top: -99999px;");const c=`${s}-container`;o.id=c,(h=document.getElementById(c))==null||h.remove(),document.body.appendChild(o);try{const{svg:u}=await gl.render(s,t,o);o.innerHTML=u;let f;try{switch(a.type){case"flowchart-v2":case"graph":{f=B3(a.db,o);break}case"sequence":{f=W3(a,o);break}case"class":case"classDiagram":{f=rI(a,o);break}case"er":{f=pI(a.db,o);break}case"state":case"stateDiagram":{f=$I(a.db,o);break}default:f=Ld(o)}}catch(d){console.error("Error processing Mermaid diagram:",d),f=Ld(o)}return f}finally{o.remove()}}),RI=async(t,e)=>{var s;const r=e||{},i=parseInt(((s=r.themeVariables)==null?void 0:s.fontSize)??"")||Jn,n=await II(t,{...r,themeVariables:{...r.themeVariables}});return P1(n,{fontSize:i})},dR=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:RI},Symbol.toStringTag,{value:"Module"}));export{_u as $,HI as A,NI as B,Sn as C,W1 as D,lC as E,wh as F,te as G,Kd as H,PE as I,UA as J,NT as K,uu as L,mo as M,QI as N,jp as O,JI as P,k2 as Q,KS as R,qS as S,QB as T,LT as U,Mi as V,WI as W,q2 as X,Dc as Y,ME as Z,m as _,rC as a,KI as a$,Ua as a0,RE as a1,Z2 as a2,ta as a3,G as a4,st as a5,sp as a6,k$ as a7,Ex as a8,cR as a9,Vb as aA,zI as aB,Gb as aC,ca as aD,ZB as aE,VB as aF,ZI as aG,UI as aH,YI as aI,GI as aJ,z1 as aK,XI as aL,tg as aM,Qc as aN,ao as aO,av as aP,nv as aQ,Fi as aR,iv as aS,rv as aT,xs as aU,na as aV,Zc as aW,Vc as aX,bi as aY,ys as aZ,jI as a_,XA as aa,Nt as ab,Tr as ac,hh as ad,r0 as ae,oi as af,Ly as ag,Hp as ah,Up as ai,VI as aj,K as ak,oy as al,vE as am,yM as an,xE as ao,fh as ap,od as aq,pF as ar,lR as as,hR as at,sR as au,Q as av,oR as aw,Z$ as ax,U$ as ay,Y$ as az,eC as b,ni as b0,TE as b1,Cy as b2,ho as b3,go as b4,Ds as b5,_y as b6,by as b7,rE as b8,SE as b9,gy as bA,wc as bB,vt as bC,RI as bD,AE as bE,po as bF,dR as bG,yE as ba,nM as bb,dh as bc,QM as bd,LE as be,oa as bf,Hi as bg,Bs as bh,cE as bi,RF as bj,sa as bk,Fs as bl,iE as bm,dy as bn,oM as bo,lM as bp,Or as bq,Lf as br,cM as bs,ph as bt,sM as bu,fM as bv,Yi as bw,vr as bx,kf as by,gh as bz,kt as c,bt as d,ap as e,Rt as f,nC as g,pr as h,ke as i,ly as j,Wi as k,P as l,Ey as m,ea as n,qI as o,fR as p,aC as q,uR as r,iC as s,sC as t,Fe as u,jA as v,WE as w,W$ as x,tR as y,tC as z};
274
+ function __vite__mapDeps(indexes) {
275
+ if (!__vite__mapDeps.viteFileDeps) {
276
+ __vite__mapDeps.viteFileDeps = ["assets/dagre-6UL2VRFP-DYyliwSQ.js","assets/graph-CDNE6afq.js","assets/_baseUniq-BrAtqm7r.js","assets/layout-DQkrSs1j.js","assets/_basePickBy-ZfSBwMAc.js","assets/clone-DKsuYKPC.js","assets/cose-bilkent-S5V4N54A-BOimuZ77.js","assets/cytoscape.esm-CyJtwmzi.js","assets/c4Diagram-YG6GDRKO-Cv9Zizqx.js","assets/chunk-TZMSLE5B-CGEL2dZG.js","assets/flowDiagram-NV44I4VS-CIstAb2z.js","assets/chunk-FMBD7UC4-B2zhnDqu.js","assets/chunk-55IACEB6-91xqgfYx.js","assets/chunk-QN33PNHL-CkKTlLkk.js","assets/erDiagram-Q2GNP2WA-DL9LpaEF.js","assets/gitGraphDiagram-NY62KEGX-DxG2NOZV.js","assets/chunk-4BX2VUAB-Bb3u24_X.js","assets/chunk-QZHKN3VN-CD9rwyT-.js","assets/treemap-KMMF4GRG-CNTnVawn.js","assets/infoDiagram-WHAUD3N6-B_GahSu_.js","assets/pieDiagram-ADFJNKIX-tDTRGJE3.js","assets/requirementDiagram-UZGBJVZJ-D7lgxClk.js","assets/sequenceDiagram-WL72ISMW-A2jXBx54.js","assets/classDiagram-2ON5EDUG-OE1zz8Rb.js","assets/chunk-B4BG7PRW-CQKyBsz0.js","assets/classDiagram-v2-WZHVMYZB-OE1zz8Rb.js","assets/stateDiagram-FKZM4ZOC-tI2s18Rq.js","assets/chunk-DI55MBZ5-BY2TlPT6.js","assets/stateDiagram-v2-4FDKWEC3-BxhL9Cgi.js","assets/journeyDiagram-XKPGCS4Q-BpcUsKNT.js","assets/mindmap-definition-VGOIOE7T-mFLCToYA.js","assets/kanban-definition-3W4ZIXB7-BbuWO2gE.js","assets/diagram-S2PKOQOG-DaX2mZca.js","assets/diagram-QEK2KX5R-ukB6kMmO.js","assets/blockDiagram-VD42YOAC-B1Z6hTXo.js","assets/architectureDiagram-VXUJARFQ-CM5vRAuo.js","assets/diagram-PSM6KHXK-BLc04vxi.js"]
277
+ }
278
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
279
+ }
280
+ //# sourceMappingURL=mermaid-to-excalidraw-D-aVQaad.js.map