@juki-team/base-ui 1.5.3 → 1.5.4

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 (869) hide show
  1. package/dist/esm/{ArrowForwardIcon-D6Jfdilm.js → ArrowForwardIcon-1RdVdC78.js} +1 -1
  2. package/dist/esm/BarChart-4YVL8qrU.js +1 -0
  3. package/dist/esm/CartesianChart-CaeqB_2y.js +47 -0
  4. package/dist/esm/{ChangePasswordModal-DP68K_jG.js → ChangePasswordModal-OWm3MyKW.js} +1 -1
  5. package/dist/esm/{CodeEditor-CPsmXl7i.js → CodeEditor-B6RhGNP7.js} +1 -1
  6. package/dist/esm/CodeViewer-CZwCWtf1.js +1 -0
  7. package/dist/esm/{Collapse-Bn9-0z3I.js → Collapse-C6FDlfoR.js} +1 -1
  8. package/dist/esm/DataGrid-bZJxnNpn.js +127 -0
  9. package/dist/esm/DataViewer-CU0QwQQa.js +1 -0
  10. package/dist/esm/{DrawerView-D-MEVHS0.js → DrawerView-O8ivFKAG.js} +1 -1
  11. package/dist/esm/{ExcalidrawButton-CL_vPewV.js → ExcalidrawButton-Dx-6TOuw.js} +1 -1
  12. package/dist/esm/{GraphvizViewer-BfJg604I.js → GraphvizViewer-AxmRC6e5.js} +1 -1
  13. package/dist/esm/ImageLoaderCropper-B5z4gQda.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-12U8BtmT.js +1 -0
  15. package/dist/esm/{InputColor-Ch5Do1U-.js → InputColor-Cpd36Uei.js} +2 -2
  16. package/dist/esm/LineChart-Cp3YgIYB.js +1 -0
  17. package/dist/esm/{LoaderLayer-CXFK-kAz.js → LoaderLayer-Cv80UCdL.js} +1 -1
  18. package/dist/esm/{MdMath-DwyNLKE_.js → MdMath-CVxzEaJK.js} +1 -1
  19. package/dist/esm/MdMathEditor-himmiyoG.js +29 -0
  20. package/dist/esm/Popover-CEc-CYlJ.js +6 -0
  21. package/dist/esm/{ReplyIcon-Dd5U6wGZ.js → ReplyIcon-BlBLARCH.js} +1 -1
  22. package/dist/esm/{SettingsIcon-BCDZw0HR.js → SettingsIcon-C3sN1TNw.js} +1 -1
  23. package/dist/esm/SlideDeck-I221o0di.js +1 -0
  24. package/dist/esm/{TableEyeIcon-CDLbQapU.js → TableEyeIcon-BFfTLgKU.js} +1 -1
  25. package/dist/esm/TableOfContents-DqdT3oFH.js +1 -0
  26. package/dist/esm/Tooltip-DCefNWu7.js +1 -0
  27. package/dist/esm/UserCodeEditor-D4O5es0E.js +61 -0
  28. package/dist/esm/{VirtualizedRowsFixed-8Wk8DRYc.js → VirtualizedRowsFixed-D9Yuhs6Z.js} +1 -1
  29. package/dist/esm/WorksheetAsSlides-DJJreHkG.js +1 -0
  30. package/dist/esm/{WorksheetBodies-pHyqSVPy.js → WorksheetBodies-VeYRksK3.js} +1 -1
  31. package/dist/esm/{WorksheetContents-ByjM-HNk.js → WorksheetContents-CmB2azPo.js} +1 -1
  32. package/dist/esm/WorksheetEditor-CwF_HNWx.js +1 -0
  33. package/dist/esm/WorksheetNode-BTVi2Iol.js +1 -0
  34. package/dist/esm/WorksheetViewer-8nk0Y7Pu.js +1 -0
  35. package/dist/esm/abnfDiagram-WEYOIA3C-DEKNEQ23.js +1 -0
  36. package/dist/esm/arc-BXMOYbEk.js +1 -0
  37. package/dist/esm/architectureDiagram-ZHVYKT53-D8Cc0szw.js +1 -0
  38. package/dist/esm/basic-setup-DnHlH_GN.js +1 -0
  39. package/dist/esm/blockDiagram-RJAE7QA3-CVAxF28b.js +1 -0
  40. package/dist/esm/c4Diagram-XDPPPE54-DfOddOsg.js +1 -0
  41. package/dist/esm/channel-DaoqdAiW.js +1 -0
  42. package/dist/esm/chunk-2E7WHVMD-DzrxCta9.js +1 -0
  43. package/dist/esm/{chunk-QZHKN3VN-CUifo-Cb.js → chunk-2Q5K7J3B-BAvN2osA.js} +1 -1
  44. package/dist/esm/chunk-4EMNKR2T-WzMQveGn.js +1 -0
  45. package/dist/esm/{chunk-YZCP3GAM-DELqvesl.js → chunk-55XCU76K-Co_JK6zS.js} +1 -1
  46. package/dist/esm/{chunk-FMBD7UC4-DAo4g5fP.js → chunk-5VM5RSS4-2Alz3VU-.js} +1 -1
  47. package/dist/esm/{chunk-4BX2VUAB-Dc1mlsfk.js → chunk-JWPE2WC7-BM31szoD.js} +1 -1
  48. package/dist/esm/chunk-NQOKRVIF-BvuLXPDI.js +1 -0
  49. package/dist/esm/chunk-VQ5W62QI-BM9st1eu.js +1 -0
  50. package/dist/esm/{chunk-55IACEB6-Csh8qgjO.js → chunk-XXDRQBXY-B7eZEtxE.js} +1 -1
  51. package/dist/esm/chunk-ZCHMQSOR-BfEzwJnw.js +1 -0
  52. package/dist/esm/classDiagram-v2-4MYWR3UA-BBYOuONr.js +1 -0
  53. package/dist/esm/commons-BHuDJzTw.js +1 -0
  54. package/dist/esm/cose-bilkent-JH36ORCC-BBL1Y3YR.js +1 -0
  55. package/dist/esm/cynefin-EF2NZ3EQ-CaJSaYBh.js +1 -0
  56. package/dist/esm/cynefinDiagram-WF24UDRP-B6GLAQp-.js +1 -0
  57. package/dist/esm/cytoscape.esm-Bt9_GGFq.js +9 -0
  58. package/dist/esm/dagre-NK4GIZVX-B5sHdjHr.js +1 -0
  59. package/dist/esm/diagram-CBK3MWTC-Dcv51W2u.js +1 -0
  60. package/dist/esm/diagram-I5XIIV2D-BqonTetl.js +1 -0
  61. package/dist/esm/diagram-ODIL2UCW-CriVrDQT.js +1 -0
  62. package/dist/esm/diagram-PFBEJUXE-B03iAEwx.js +1 -0
  63. package/dist/esm/diagram-RJA3I4VV-Dj3xghQ1.js +1 -0
  64. package/dist/esm/diagram-TYUNFSNR-CcvVCW9_.js +1 -0
  65. package/dist/esm/ebnfDiagram-V4P3TTPT-BXu5Kifr.js +1 -0
  66. package/dist/esm/elk-QONTBCTQ-Jkx0FK2o.js +1 -0
  67. package/dist/esm/erDiagram-KYQIGQAA-BF9vCEaf.js +1 -0
  68. package/dist/esm/floating-ui.core-DzsaFWsC.js +1 -0
  69. package/dist/esm/floating-ui.dom-DGDCR4EF.js +1 -0
  70. package/dist/esm/flowDiagram-IUGLLWBU-DDMbhdom.js +1 -0
  71. package/dist/esm/ganttDiagram-R7GPNTJY-CQC15o39.js +1 -0
  72. package/dist/esm/gitGraphDiagram-PDYL7XHY-D_f2t3KD.js +1 -0
  73. package/dist/esm/graph-rGqC_56m.js +1 -0
  74. package/dist/esm/helpers.js +1 -1
  75. package/dist/esm/{index-A0sdG_JC.js → index-2Mitl1QB.js} +1 -1
  76. package/dist/esm/{index-Bw2EofiE.js → index-8mEJamTc.js} +1 -1
  77. package/dist/esm/{index-D_AOS7Yx.js → index-BMPFttUB.js} +1 -1
  78. package/dist/esm/{index-CtTbnbzM.js → index-C4KISU3M.js} +1 -1
  79. package/dist/esm/{index-Y09lLL_e.js → index-C9ua7WYO.js} +1 -1
  80. package/dist/esm/{index-CQbc3KUq.js → index-CAH_9Jug.js} +1 -1
  81. package/dist/esm/{index-D8zPYs0m.js → index-CGmB9AM1.js} +1 -1
  82. package/dist/esm/index-CKBtKrj5.js +1 -0
  83. package/dist/esm/{index-BR16hIbn.js → index-CRj4pqRR.js} +1 -1
  84. package/dist/esm/{index-CB1_GL3t.js → index-CWL6W5WQ.js} +1 -1
  85. package/dist/esm/{index-CpRfyO85.js → index-C_HL-Da-.js} +1 -1
  86. package/dist/esm/{index-Ccq-5wm6.js → index-ChphKFtR.js} +1 -1
  87. package/dist/esm/{index-C9_5xd3V.js → index-CkaLE__v.js} +1 -1
  88. package/dist/esm/{index-Ck9BxS1f.js → index-CoVpfkO8.js} +1 -1
  89. package/dist/esm/index-Cso1rXtQ.js +1 -0
  90. package/dist/esm/{index-D5NvcxPc.js → index-D5FWzr0h.js} +1 -1
  91. package/dist/esm/{index-CRfRlH9U.js → index-D5WiSbCh.js} +1 -1
  92. package/dist/esm/{index-GoUUn3QE.js → index-D5tgPh4d.js} +1 -1
  93. package/dist/esm/{index-33u6FCUW.js → index-DH4SMqQP.js} +1 -1
  94. package/dist/esm/{index-xaEdDd13.js → index-DM4Zc3sU.js} +1 -1
  95. package/dist/esm/{index-DSGuayJy.js → index-DPe-z7ci.js} +1 -1
  96. package/dist/esm/{index-BzjjAmh3.js → index-DRSSYmEF.js} +1 -1
  97. package/dist/esm/{index--PWk-3Ol.js → index-Dx6l5ueb.js} +1 -1
  98. package/dist/esm/{index-BVw40LAx.js → index-Dz8ISdDG.js} +1 -1
  99. package/dist/esm/{index-CtWPxOcn.js → index-ID6vqTYe.js} +1 -1
  100. package/dist/esm/{index-tAJiDyYy.js → index-JPCp_Z3V.js} +1 -1
  101. package/dist/esm/{index-D2mDsVm5.js → index-V9oZCW09.js} +1 -1
  102. package/dist/esm/{index-o2jBRnrQ.js → index-_kF3_0-k.js} +1 -1
  103. package/dist/esm/{index-B3fb7Ita.js → index-bPHO9OeP.js} +1 -1
  104. package/dist/esm/{index-QhLowdpF.js → index-myBmcWfr.js} +1 -1
  105. package/dist/esm/{index-DAJdettS.js → index-nUMXMsLO.js} +1 -1
  106. package/dist/esm/infoDiagram-MVDRKAX5-04QJzIoW.js +1 -0
  107. package/dist/esm/isSymbol-D2gNAbOe.js +1 -0
  108. package/dist/esm/isUndefined--MLpwE__.js +1 -0
  109. package/dist/esm/ishikawaDiagram-HPEHV2GE-4pDsX60A.js +1 -0
  110. package/dist/esm/journeyDiagram-BOSHW7O7-BJFwx5Hu.js +1 -0
  111. package/dist/esm/kanban-definition-FNSA4HC5-MrsniETV.js +1 -0
  112. package/dist/esm/katex-ukrPy3Hx.js +1 -0
  113. package/dist/esm/{linear-BnXjbO66.js → linear-CIPQsvV7.js} +1 -1
  114. package/dist/esm/{lua-8DXOpKDz.js → lua-BvgfYBhq.js} +1 -1
  115. package/dist/esm/main.js +1 -1
  116. package/dist/esm/map-CIDWRbhc.js +1 -0
  117. package/dist/esm/mermaid.core-DBVKQvxW.js +5 -0
  118. package/dist/esm/mindmap-definition-6OY57UG3-DnT4Ihuj.js +1 -0
  119. package/dist/esm/nsis-BFvJq6Vq.js +1 -0
  120. package/dist/esm/pegDiagram-ECIUJNBX-C3s5Vuxq.js +1 -0
  121. package/dist/esm/pieDiagram-GNMPY74T-CTjQZ9yP.js +1 -0
  122. package/dist/esm/quadrantDiagram-D57K4MC3-JTRqBH1z.js +1 -0
  123. package/dist/esm/railroadDiagram-Y72NRBL7-DtAwxQ6F.js +1 -0
  124. package/dist/esm/requirementDiagram-EQYSW5RA-CR7SUMC-.js +1 -0
  125. package/dist/esm/ruby-D9chwFAN.js +1 -0
  126. package/dist/esm/sankeyDiagram-SY24JHO5-DbxpJ7pE.js +1 -0
  127. package/dist/esm/sequenceDiagram-BLEHNHQU-CvZHKbjd.js +1 -0
  128. package/dist/esm/server.js +1 -1
  129. package/dist/esm/settings.js +1 -1
  130. package/dist/esm/sizeCapture-INFHLROL-f_GRBQe5.js +1 -0
  131. package/dist/esm/stateDiagram-v2-A6IESKWZ-DxF8GOQW.js +1 -0
  132. package/dist/esm/string-DPJhNSkw.js +1 -0
  133. package/dist/esm/swimlanes-B3ENRKFQ-YbCv2QO2.js +1 -0
  134. package/dist/esm/swimlanesDiagram-AYQRV4AK-CuclTt9Y.js +1 -0
  135. package/dist/esm/throttle-tEKq3i9o.js +1 -0
  136. package/dist/esm/{time-PiK_t_Re.js → time-DP3lbwAd.js} +1 -1
  137. package/dist/esm/timeline-definition-JXYKGLGB-C1x6bOWf.js +1 -0
  138. package/dist/esm/toNumber-B6ypue5Z.js +1 -0
  139. package/dist/esm/types-C3mmJ376.js +1 -0
  140. package/dist/esm/usecaseDiagram-WPOLBNNX-QdEejhhn.js +1 -0
  141. package/dist/esm/vennDiagram-Q3Y3IDCW-B0EVPCrz.js +1 -0
  142. package/dist/esm/viz-BmmZnl4P.js +9 -0
  143. package/dist/esm/wardleyDiagram-IVAIDKWA-Dlo4JFKg.js +1 -0
  144. package/dist/esm/{websocket-C4G3j9Rm.js → websocket-B2hJys_Q.js} +1 -1
  145. package/dist/esm/{xlsx-XBWnafwQ.js → xlsx-BVrgZ1Ou.js} +2 -2
  146. package/dist/esm/xychartDiagram-4URNHDU4-CU8TcG1V.js +1 -0
  147. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3/node_modules/@milkdown/kit/lib/component/diff.d.ts +1 -0
  148. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3/node_modules/@milkdown/kit/lib/exception.d.ts +1 -0
  149. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/diff.d.ts +1 -0
  150. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/streaming.d.ts +1 -0
  151. package/dist/module-types/src/components/atoms/Client/Client.d.ts +1 -1
  152. package/dist/module-types/src/components/atoms/CopyToClipboard/CopyToClipboard.d.ts +1 -1
  153. package/dist/module-types/src/components/atoms/DateLiteral/DateLiteral.d.ts +1 -1
  154. package/dist/module-types/src/components/atoms/InputCheckbox/InputCheckbox.d.ts +1 -1
  155. package/dist/module-types/src/components/atoms/InputPassword/InputPassword.d.ts +1 -1
  156. package/dist/module-types/src/components/atoms/InputRadio/InputRadio.d.ts +1 -1
  157. package/dist/module-types/src/components/atoms/InputSelect/InputSelect.d.ts +1 -1
  158. package/dist/module-types/src/components/atoms/InputTextArea/InputTextArea.d.ts +1 -1
  159. package/dist/module-types/src/components/atoms/InputToggle/InputToggle.d.ts +1 -1
  160. package/dist/module-types/src/components/atoms/Modal/Modal.d.ts +1 -1
  161. package/dist/module-types/src/components/atoms/MultiSelect/MultiSelect.d.ts +1 -1
  162. package/dist/module-types/src/components/atoms/Select/Select.d.ts +1 -1
  163. package/dist/module-types/src/components/atoms/T/T.d.ts +1 -1
  164. package/dist/module-types/src/components/atoms/_lazy_/Collapse/Collapse.d.ts +1 -1
  165. package/dist/module-types/src/components/atoms/_lazy_/Collapse/index.d.ts +1 -1
  166. package/dist/module-types/src/components/atoms/_lazy_/InputCellPhoneNumber/InputCellPhoneNumber.d.ts +1 -1
  167. package/dist/module-types/src/components/atoms/_lazy_/InputCellPhoneNumber/index.d.ts +1 -1
  168. package/dist/module-types/src/components/atoms/_lazy_/Popover/Popover.d.ts +1 -1
  169. package/dist/module-types/src/components/atoms/_lazy_/Popover/index.d.ts +1 -1
  170. package/dist/module-types/src/components/atoms/_lazy_/Tooltip/Tooltip.d.ts +1 -1
  171. package/dist/module-types/src/components/atoms/_lazy_/Tooltip/index.d.ts +1 -1
  172. package/dist/module-types/src/components/atoms/_lazy_/VirtualizedRowsFixed/VirtualizedRowsFixed.d.ts +1 -1
  173. package/dist/module-types/src/components/atoms/_lazy_/VirtualizedRowsFixed/index.d.ts +1 -1
  174. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/Spin.d.ts +1 -1
  175. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/index.d.ts +1 -1
  176. package/dist/module-types/src/components/atoms/server/icons/google/AcUnitIcon.d.ts +1 -1
  177. package/dist/module-types/src/components/atoms/server/icons/google/AccountCircleIcon.d.ts +1 -1
  178. package/dist/module-types/src/components/atoms/server/icons/google/AcuteIcon.d.ts +1 -1
  179. package/dist/module-types/src/components/atoms/server/icons/google/AddColumnLeftIcon.d.ts +1 -1
  180. package/dist/module-types/src/components/atoms/server/icons/google/AddColumnRightIcon.d.ts +1 -1
  181. package/dist/module-types/src/components/atoms/server/icons/google/AddIcon.d.ts +1 -1
  182. package/dist/module-types/src/components/atoms/server/icons/google/AddPhotoAlternateIcon.d.ts +1 -1
  183. package/dist/module-types/src/components/atoms/server/icons/google/AddReactionIcon.d.ts +1 -1
  184. package/dist/module-types/src/components/atoms/server/icons/google/AddRowAboveIcon.d.ts +1 -1
  185. package/dist/module-types/src/components/atoms/server/icons/google/AddRowBelowIcon.d.ts +1 -1
  186. package/dist/module-types/src/components/atoms/server/icons/google/AdminPanelSettingsIcon.d.ts +1 -1
  187. package/dist/module-types/src/components/atoms/server/icons/google/AlarmIcon.d.ts +1 -1
  188. package/dist/module-types/src/components/atoms/server/icons/google/AppsIcon.d.ts +1 -1
  189. package/dist/module-types/src/components/atoms/server/icons/google/ArrowBackIcon.d.ts +1 -1
  190. package/dist/module-types/src/components/atoms/server/icons/google/ArrowDownwardIcon.d.ts +1 -1
  191. package/dist/module-types/src/components/atoms/server/icons/google/ArrowDropDownIcon.d.ts +1 -1
  192. package/dist/module-types/src/components/atoms/server/icons/google/ArrowDropUpIcon.d.ts +1 -1
  193. package/dist/module-types/src/components/atoms/server/icons/google/ArrowForwardIcon.d.ts +1 -1
  194. package/dist/module-types/src/components/atoms/server/icons/google/ArrowLeftIcon.d.ts +1 -1
  195. package/dist/module-types/src/components/atoms/server/icons/google/ArrowRightIcon.d.ts +1 -1
  196. package/dist/module-types/src/components/atoms/server/icons/google/ArrowUpwardIcon.d.ts +1 -1
  197. package/dist/module-types/src/components/atoms/server/icons/google/ArticleIcon.d.ts +1 -1
  198. package/dist/module-types/src/components/atoms/server/icons/google/AssignmentIcon.d.ts +1 -1
  199. package/dist/module-types/src/components/atoms/server/icons/google/AttachFileIcon.d.ts +1 -1
  200. package/dist/module-types/src/components/atoms/server/icons/google/AttachmentIcon.d.ts +1 -1
  201. package/dist/module-types/src/components/atoms/server/icons/google/AutorenewIcon.d.ts +1 -1
  202. package/dist/module-types/src/components/atoms/server/icons/google/BadgeIcon.d.ts +1 -1
  203. package/dist/module-types/src/components/atoms/server/icons/google/BoltIcon.d.ts +1 -1
  204. package/dist/module-types/src/components/atoms/server/icons/google/BubbleChartIcon.d.ts +1 -1
  205. package/dist/module-types/src/components/atoms/server/icons/google/BuildIcon.d.ts +1 -1
  206. package/dist/module-types/src/components/atoms/server/icons/google/CalendarMonthIcon.d.ts +1 -1
  207. package/dist/module-types/src/components/atoms/server/icons/google/CalendarTodayIcon.d.ts +1 -1
  208. package/dist/module-types/src/components/atoms/server/icons/google/CalendarViewWeekIcon.d.ts +1 -1
  209. package/dist/module-types/src/components/atoms/server/icons/google/CheckIcon.d.ts +1 -1
  210. package/dist/module-types/src/components/atoms/server/icons/google/ChecklistIcon.d.ts +1 -1
  211. package/dist/module-types/src/components/atoms/server/icons/google/CloseIcon.d.ts +1 -1
  212. package/dist/module-types/src/components/atoms/server/icons/google/CloudDownloadIcon.d.ts +1 -1
  213. package/dist/module-types/src/components/atoms/server/icons/google/CloudUploadIcon.d.ts +1 -1
  214. package/dist/module-types/src/components/atoms/server/icons/google/CodeBlocksIcon.d.ts +1 -1
  215. package/dist/module-types/src/components/atoms/server/icons/google/CodeIcon.d.ts +1 -1
  216. package/dist/module-types/src/components/atoms/server/icons/google/CommentIcon.d.ts +1 -1
  217. package/dist/module-types/src/components/atoms/server/icons/google/ContactPhoneIcon.d.ts +1 -1
  218. package/dist/module-types/src/components/atoms/server/icons/google/ContactsIcon.d.ts +1 -1
  219. package/dist/module-types/src/components/atoms/server/icons/google/ContentCopyIcon.d.ts +1 -1
  220. package/dist/module-types/src/components/atoms/server/icons/google/DarkModeIcon.d.ts +1 -1
  221. package/dist/module-types/src/components/atoms/server/icons/google/DashboardIcon.d.ts +1 -1
  222. package/dist/module-types/src/components/atoms/server/icons/google/DeleteIcon.d.ts +1 -1
  223. package/dist/module-types/src/components/atoms/server/icons/google/DemographyIcon.d.ts +1 -1
  224. package/dist/module-types/src/components/atoms/server/icons/google/DescriptionIcon.d.ts +1 -1
  225. package/dist/module-types/src/components/atoms/server/icons/google/DesignServicesIcon.d.ts +1 -1
  226. package/dist/module-types/src/components/atoms/server/icons/google/DoneAllIcon.d.ts +1 -1
  227. package/dist/module-types/src/components/atoms/server/icons/google/DownloadIcon.d.ts +1 -1
  228. package/dist/module-types/src/components/atoms/server/icons/google/DraftIcon.d.ts +1 -1
  229. package/dist/module-types/src/components/atoms/server/icons/google/DragIndicatorIcon.d.ts +1 -1
  230. package/dist/module-types/src/components/atoms/server/icons/google/EditIcon.d.ts +1 -1
  231. package/dist/module-types/src/components/atoms/server/icons/google/EditNoteIcon.d.ts +1 -1
  232. package/dist/module-types/src/components/atoms/server/icons/google/ErrorIcon.d.ts +1 -1
  233. package/dist/module-types/src/components/atoms/server/icons/google/EventIcon.d.ts +1 -1
  234. package/dist/module-types/src/components/atoms/server/icons/google/EventListIcon.d.ts +1 -1
  235. package/dist/module-types/src/components/atoms/server/icons/google/ExclamationIcon.d.ts +1 -1
  236. package/dist/module-types/src/components/atoms/server/icons/google/ExpandLessIcon.d.ts +1 -1
  237. package/dist/module-types/src/components/atoms/server/icons/google/ExpandMoreIcon.d.ts +1 -1
  238. package/dist/module-types/src/components/atoms/server/icons/google/ExtensionIcon.d.ts +1 -1
  239. package/dist/module-types/src/components/atoms/server/icons/google/FileCopyIcon.d.ts +1 -1
  240. package/dist/module-types/src/components/atoms/server/icons/google/FileOpenIcon.d.ts +1 -1
  241. package/dist/module-types/src/components/atoms/server/icons/google/FilterListIcon.d.ts +1 -1
  242. package/dist/module-types/src/components/atoms/server/icons/google/FitnessCenterIcon.d.ts +1 -1
  243. package/dist/module-types/src/components/atoms/server/icons/google/FolderIcon.d.ts +1 -1
  244. package/dist/module-types/src/components/atoms/server/icons/google/FolderManagedIcon.d.ts +1 -1
  245. package/dist/module-types/src/components/atoms/server/icons/google/FolderOpenIcon.d.ts +1 -1
  246. package/dist/module-types/src/components/atoms/server/icons/google/FormatBoldIcon.d.ts +1 -1
  247. package/dist/module-types/src/components/atoms/server/icons/google/FormatH1Icon.d.ts +1 -1
  248. package/dist/module-types/src/components/atoms/server/icons/google/FormatH2Icon.d.ts +1 -1
  249. package/dist/module-types/src/components/atoms/server/icons/google/FormatH3Icon.d.ts +1 -1
  250. package/dist/module-types/src/components/atoms/server/icons/google/FormatH4Icon.d.ts +1 -1
  251. package/dist/module-types/src/components/atoms/server/icons/google/FormatH5Icon.d.ts +1 -1
  252. package/dist/module-types/src/components/atoms/server/icons/google/FormatH6Icon.d.ts +1 -1
  253. package/dist/module-types/src/components/atoms/server/icons/google/FormatInkHighlighterIcon.d.ts +1 -1
  254. package/dist/module-types/src/components/atoms/server/icons/google/FormatItalicIcon.d.ts +1 -1
  255. package/dist/module-types/src/components/atoms/server/icons/google/FormatListBulletedIcon.d.ts +1 -1
  256. package/dist/module-types/src/components/atoms/server/icons/google/FormatListNumberedIcon.d.ts +1 -1
  257. package/dist/module-types/src/components/atoms/server/icons/google/FormatQuoteIcon.d.ts +1 -1
  258. package/dist/module-types/src/components/atoms/server/icons/google/FormatStrikethroughIcon.d.ts +1 -1
  259. package/dist/module-types/src/components/atoms/server/icons/google/ForwardIcon.d.ts +1 -1
  260. package/dist/module-types/src/components/atoms/server/icons/google/FullscreenExitIcon.d.ts +1 -1
  261. package/dist/module-types/src/components/atoms/server/icons/google/FullscreenIcon.d.ts +1 -1
  262. package/dist/module-types/src/components/atoms/server/icons/google/GlobeIcon.d.ts +1 -1
  263. package/dist/module-types/src/components/atoms/server/icons/google/GroupAddIcon.d.ts +1 -1
  264. package/dist/module-types/src/components/atoms/server/icons/google/GroupIcon.d.ts +1 -1
  265. package/dist/module-types/src/components/atoms/server/icons/google/GroupsIcon.d.ts +1 -1
  266. package/dist/module-types/src/components/atoms/server/icons/google/HardDriveIcon.d.ts +1 -1
  267. package/dist/module-types/src/components/atoms/server/icons/google/HelpIcon.d.ts +1 -1
  268. package/dist/module-types/src/components/atoms/server/icons/google/HistoryIcon.d.ts +1 -1
  269. package/dist/module-types/src/components/atoms/server/icons/google/HomeIcon.d.ts +1 -1
  270. package/dist/module-types/src/components/atoms/server/icons/google/HomeStorageIcon.d.ts +1 -1
  271. package/dist/module-types/src/components/atoms/server/icons/google/InfoIIcon.d.ts +1 -1
  272. package/dist/module-types/src/components/atoms/server/icons/google/InkEraserIcon.d.ts +1 -1
  273. package/dist/module-types/src/components/atoms/server/icons/google/InvertColorsIcon.d.ts +1 -1
  274. package/dist/module-types/src/components/atoms/server/icons/google/LanguageIcon.d.ts +1 -1
  275. package/dist/module-types/src/components/atoms/server/icons/google/LeaderboardIcon.d.ts +1 -1
  276. package/dist/module-types/src/components/atoms/server/icons/google/LibraryBooksIcon.d.ts +1 -1
  277. package/dist/module-types/src/components/atoms/server/icons/google/LightModeIcon.d.ts +1 -1
  278. package/dist/module-types/src/components/atoms/server/icons/google/LinkIcon.d.ts +1 -1
  279. package/dist/module-types/src/components/atoms/server/icons/google/LinkOffIcon.d.ts +1 -1
  280. package/dist/module-types/src/components/atoms/server/icons/google/ListIcon.d.ts +1 -1
  281. package/dist/module-types/src/components/atoms/server/icons/google/LoadingIcon.d.ts +1 -1
  282. package/dist/module-types/src/components/atoms/server/icons/google/LocationCityIcon.d.ts +1 -1
  283. package/dist/module-types/src/components/atoms/server/icons/google/LocationOnIcon.d.ts +1 -1
  284. package/dist/module-types/src/components/atoms/server/icons/google/LockClockIcon.d.ts +1 -1
  285. package/dist/module-types/src/components/atoms/server/icons/google/LockIcon.d.ts +1 -1
  286. package/dist/module-types/src/components/atoms/server/icons/google/LockPersonIcon.d.ts +1 -1
  287. package/dist/module-types/src/components/atoms/server/icons/google/LoginIcon.d.ts +1 -1
  288. package/dist/module-types/src/components/atoms/server/icons/google/LogoutIcon.d.ts +1 -1
  289. package/dist/module-types/src/components/atoms/server/icons/google/MailIcon.d.ts +1 -1
  290. package/dist/module-types/src/components/atoms/server/icons/google/ManageAccountsIcon.d.ts +1 -1
  291. package/dist/module-types/src/components/atoms/server/icons/google/ManageSearchIcon.d.ts +1 -1
  292. package/dist/module-types/src/components/atoms/server/icons/google/ManufacturingIcon.d.ts +1 -1
  293. package/dist/module-types/src/components/atoms/server/icons/google/MenuBookIcon.d.ts +1 -1
  294. package/dist/module-types/src/components/atoms/server/icons/google/MenuIcon.d.ts +1 -1
  295. package/dist/module-types/src/components/atoms/server/icons/google/MoreTimeIcon.d.ts +1 -1
  296. package/dist/module-types/src/components/atoms/server/icons/google/MoreVertIcon.d.ts +1 -1
  297. package/dist/module-types/src/components/atoms/server/icons/google/NavigateBeforeIcon.d.ts +1 -1
  298. package/dist/module-types/src/components/atoms/server/icons/google/NavigateNextIcon.d.ts +1 -1
  299. package/dist/module-types/src/components/atoms/server/icons/google/NewReleasesIcon.d.ts +1 -1
  300. package/dist/module-types/src/components/atoms/server/icons/google/NoteAddIcon.d.ts +1 -1
  301. package/dist/module-types/src/components/atoms/server/icons/google/NoteIcon.d.ts +1 -1
  302. package/dist/module-types/src/components/atoms/server/icons/google/NotificationsActiveIcon.d.ts +1 -1
  303. package/dist/module-types/src/components/atoms/server/icons/google/OpenInNewIcon.d.ts +1 -1
  304. package/dist/module-types/src/components/atoms/server/icons/google/PageInfoIcon.d.ts +1 -1
  305. package/dist/module-types/src/components/atoms/server/icons/google/PaletteIcon.d.ts +1 -1
  306. package/dist/module-types/src/components/atoms/server/icons/google/PanToolIcon.d.ts +1 -1
  307. package/dist/module-types/src/components/atoms/server/icons/google/PauseCircleIcon.d.ts +1 -1
  308. package/dist/module-types/src/components/atoms/server/icons/google/PendingActionsIcon.d.ts +1 -1
  309. package/dist/module-types/src/components/atoms/server/icons/google/PendingIcon.d.ts +1 -1
  310. package/dist/module-types/src/components/atoms/server/icons/google/PersonIcon.d.ts +1 -1
  311. package/dist/module-types/src/components/atoms/server/icons/google/PhotoLibraryIcon.d.ts +1 -1
  312. package/dist/module-types/src/components/atoms/server/icons/google/PictureAsPdfIcon.d.ts +1 -1
  313. package/dist/module-types/src/components/atoms/server/icons/google/PlayArrowIcon.d.ts +1 -1
  314. package/dist/module-types/src/components/atoms/server/icons/google/PlayCircleIcon.d.ts +1 -1
  315. package/dist/module-types/src/components/atoms/server/icons/google/PostAddIcon.d.ts +1 -1
  316. package/dist/module-types/src/components/atoms/server/icons/google/PreviewIcon.d.ts +1 -1
  317. package/dist/module-types/src/components/atoms/server/icons/google/PriorityHighIcon.d.ts +1 -1
  318. package/dist/module-types/src/components/atoms/server/icons/google/PublicIcon.d.ts +1 -1
  319. package/dist/module-types/src/components/atoms/server/icons/google/PublishIcon.d.ts +1 -1
  320. package/dist/module-types/src/components/atoms/server/icons/google/RedoIcon.d.ts +1 -1
  321. package/dist/module-types/src/components/atoms/server/icons/google/RefreshIcon.d.ts +1 -1
  322. package/dist/module-types/src/components/atoms/server/icons/google/ReplyAllIcon.d.ts +1 -1
  323. package/dist/module-types/src/components/atoms/server/icons/google/ReplyIcon.d.ts +1 -1
  324. package/dist/module-types/src/components/atoms/server/icons/google/SaveIcon.d.ts +1 -1
  325. package/dist/module-types/src/components/atoms/server/icons/google/ScheduleIcon.d.ts +1 -1
  326. package/dist/module-types/src/components/atoms/server/icons/google/SchoolIcon.d.ts +1 -1
  327. package/dist/module-types/src/components/atoms/server/icons/google/SearchIcon.d.ts +1 -1
  328. package/dist/module-types/src/components/atoms/server/icons/google/SendIcon.d.ts +1 -1
  329. package/dist/module-types/src/components/atoms/server/icons/google/SettingsAlertIcon.d.ts +1 -1
  330. package/dist/module-types/src/components/atoms/server/icons/google/SettingsIcon.d.ts +1 -1
  331. package/dist/module-types/src/components/atoms/server/icons/google/SettingsSuggestIcon.d.ts +1 -1
  332. package/dist/module-types/src/components/atoms/server/icons/google/ShareIcon.d.ts +1 -1
  333. package/dist/module-types/src/components/atoms/server/icons/google/SideNavigationIcon.d.ts +1 -1
  334. package/dist/module-types/src/components/atoms/server/icons/google/SmartToyIcon.d.ts +1 -1
  335. package/dist/module-types/src/components/atoms/server/icons/google/SpeedIcon.d.ts +1 -1
  336. package/dist/module-types/src/components/atoms/server/icons/google/StepIntoIcon.d.ts +1 -1
  337. package/dist/module-types/src/components/atoms/server/icons/google/StepOutIcon.d.ts +1 -1
  338. package/dist/module-types/src/components/atoms/server/icons/google/StopCircleIcon.d.ts +1 -1
  339. package/dist/module-types/src/components/atoms/server/icons/google/StorageIcon.d.ts +1 -1
  340. package/dist/module-types/src/components/atoms/server/icons/google/StylusLaserPointerIcon.d.ts +1 -1
  341. package/dist/module-types/src/components/atoms/server/icons/google/StylusNoteIcon.d.ts +1 -1
  342. package/dist/module-types/src/components/atoms/server/icons/google/SupportAgentIcon.d.ts +1 -1
  343. package/dist/module-types/src/components/atoms/server/icons/google/SyncIcon.d.ts +1 -1
  344. package/dist/module-types/src/components/atoms/server/icons/google/TableEyeIcon.d.ts +1 -1
  345. package/dist/module-types/src/components/atoms/server/icons/google/TableIcon.d.ts +1 -1
  346. package/dist/module-types/src/components/atoms/server/icons/google/TaskIcon.d.ts +1 -1
  347. package/dist/module-types/src/components/atoms/server/icons/google/TimerIcon.d.ts +1 -1
  348. package/dist/module-types/src/components/atoms/server/icons/google/TrendingUpIcon.d.ts +1 -1
  349. package/dist/module-types/src/components/atoms/server/icons/google/TrophyIcon.d.ts +1 -1
  350. package/dist/module-types/src/components/atoms/server/icons/google/UndoIcon.d.ts +1 -1
  351. package/dist/module-types/src/components/atoms/server/icons/google/UpdateIcon.d.ts +1 -1
  352. package/dist/module-types/src/components/atoms/server/icons/google/VerticalSplitIcon.d.ts +1 -1
  353. package/dist/module-types/src/components/atoms/server/icons/google/ViewCozyIcon.d.ts +1 -1
  354. package/dist/module-types/src/components/atoms/server/icons/google/ViewHeadlineIcon.d.ts +1 -1
  355. package/dist/module-types/src/components/atoms/server/icons/google/ViewModuleIcon.d.ts +1 -1
  356. package/dist/module-types/src/components/atoms/server/icons/google/VisibilityIcon.d.ts +1 -1
  357. package/dist/module-types/src/components/atoms/server/icons/google/VisibilityOffIcon.d.ts +1 -1
  358. package/dist/module-types/src/components/atoms/server/icons/google/VoidIcon.d.ts +1 -1
  359. package/dist/module-types/src/components/atoms/server/icons/google/WarningIcon.d.ts +1 -1
  360. package/dist/module-types/src/components/atoms/server/icons/google/WidgetsIcon.d.ts +1 -1
  361. package/dist/module-types/src/components/atoms/server/icons/signs/ArrowIcon_/Arrow.d.ts +1 -1
  362. package/dist/module-types/src/components/atoms/server/icons/signs/ArrowIcon_/NarrowArrow.d.ts +1 -1
  363. package/dist/module-types/src/components/atoms/server/icons/signs/ArrowIcon_/index.d.ts +1 -1
  364. package/dist/module-types/src/components/atoms/server/icons/signs/CheckIcon_/Check.d.ts +1 -1
  365. package/dist/module-types/src/components/atoms/server/icons/signs/CheckIcon_/index.d.ts +1 -1
  366. package/dist/module-types/src/components/atoms/server/icons/signs/CloseIcon_/index.d.ts +1 -1
  367. package/dist/module-types/src/components/atoms/server/icons/signs/DoubleUpIcon/DoubleUp.d.ts +1 -1
  368. package/dist/module-types/src/components/atoms/server/icons/signs/DoubleUpIcon/index.d.ts +1 -1
  369. package/dist/module-types/src/components/atoms/server/icons/signs/ExclamationIcon_/Exclamation.d.ts +1 -1
  370. package/dist/module-types/src/components/atoms/server/icons/signs/ExclamationIcon_/index.d.ts +1 -1
  371. package/dist/module-types/src/components/atoms/server/icons/signs/MinusIcon/Minus.d.ts +1 -1
  372. package/dist/module-types/src/components/atoms/server/icons/signs/MinusIcon/NarrowMinus.d.ts +1 -1
  373. package/dist/module-types/src/components/atoms/server/icons/signs/MinusIcon/index.d.ts +1 -1
  374. package/dist/module-types/src/components/atoms/server/icons/signs/PlusIcon/NarrowPlus.d.ts +1 -1
  375. package/dist/module-types/src/components/atoms/server/icons/signs/PlusIcon/Plus.d.ts +1 -1
  376. package/dist/module-types/src/components/atoms/server/icons/signs/PlusIcon/index.d.ts +1 -1
  377. package/dist/module-types/src/components/atoms/server/icons/signs/UpIcon/Up.d.ts +1 -1
  378. package/dist/module-types/src/components/atoms/server/icons/signs/UpIcon/index.d.ts +1 -1
  379. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/Balloon.d.ts +1 -1
  380. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/index.d.ts +1 -1
  381. package/dist/module-types/src/components/atoms/server/icons/specials/FacebookIcon/Facebook.d.ts +1 -1
  382. package/dist/module-types/src/components/atoms/server/icons/specials/FacebookIcon/index.d.ts +1 -1
  383. package/dist/module-types/src/components/atoms/server/icons/specials/GmailIcon/Gmail.d.ts +1 -1
  384. package/dist/module-types/src/components/atoms/server/icons/specials/GmailIcon/index.d.ts +1 -1
  385. package/dist/module-types/src/components/atoms/server/icons/specials/SortIcon/index.d.ts +1 -1
  386. package/dist/module-types/src/components/atoms/server/icons/specials/TelegramIcon/Telegram.d.ts +1 -1
  387. package/dist/module-types/src/components/atoms/server/icons/specials/TelegramIcon/index.d.ts +1 -1
  388. package/dist/module-types/src/components/atoms/server/icons/utils/CircleFilledFrame.d.ts +1 -1
  389. package/dist/module-types/src/components/atoms/server/icons/utils/CircleFrame.d.ts +1 -1
  390. package/dist/module-types/src/components/atoms/server/icons/utils/CirclePath.d.ts +1 -1
  391. package/dist/module-types/src/components/atoms/server/icons/utils/Segment.d.ts +1 -1
  392. package/dist/module-types/src/components/atoms/server/icons/utils/SquareFilledFrame.d.ts +1 -1
  393. package/dist/module-types/src/components/atoms/server/icons/utils/SquareFrame.d.ts +1 -1
  394. package/dist/module-types/src/components/atoms/server/icons/utils/renderBasicIcon.d.ts +1 -1
  395. package/dist/module-types/src/components/atoms/server/icons/utils/renderSignIcon.d.ts +1 -1
  396. package/dist/module-types/src/components/atoms/server/loaders/LoaderLayer.d.ts +1 -1
  397. package/dist/module-types/src/components/atoms/server/loaders/line-loader/LineLoader.d.ts +1 -1
  398. package/dist/module-types/src/components/mockup/MockupJukiProvider.d.ts +1 -1
  399. package/dist/module-types/src/components/mockup/MockupLoginButton.d.ts +1 -1
  400. package/dist/module-types/src/components/mockup/MockupToggleThemeButton.d.ts +1 -1
  401. package/dist/module-types/src/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  402. package/dist/module-types/src/components/molecules/ButtonAction/ButtonAction.d.ts +1 -1
  403. package/dist/module-types/src/components/molecules/ButtonLoader/ButtonLoader.d.ts +1 -1
  404. package/dist/module-types/src/components/molecules/CheckboxList/CheckboxList.d.ts +1 -1
  405. package/dist/module-types/src/components/molecules/CircularProgress/CircularProgress.d.ts +1 -1
  406. package/dist/module-types/src/components/molecules/DayPicker/DayPicker.d.ts +1 -1
  407. package/dist/module-types/src/components/molecules/Drawer/Drawer.d.ts +1 -1
  408. package/dist/module-types/src/components/molecules/FetcherLayer/FetcherLayer.d.ts +1 -1
  409. package/dist/module-types/src/components/molecules/FloatToolbar/FloatToolbar.d.ts +1 -1
  410. package/dist/module-types/src/components/molecules/HomeLink/HomeLink.d.ts +1 -1
  411. package/dist/module-types/src/components/molecules/InformationPopover/FrozenInformation.d.ts +1 -1
  412. package/dist/module-types/src/components/molecules/InformationPopover/InformationPopover.d.ts +1 -1
  413. package/dist/module-types/src/components/molecules/InformationPopover/NewlineInfo.d.ts +1 -1
  414. package/dist/module-types/src/components/molecules/InformationPopover/QuietInformation.d.ts +1 -1
  415. package/dist/module-types/src/components/molecules/InformationPopover/UpsolvingInformation.d.ts +1 -1
  416. package/dist/module-types/src/components/molecules/InputDate/InputDate.d.ts +1 -1
  417. package/dist/module-types/src/components/molecules/LinkLastPath/LinkLastPath.d.ts +1 -1
  418. package/dist/module-types/src/components/molecules/MonthPicker/MonthPicker.d.ts +1 -1
  419. package/dist/module-types/src/components/molecules/MultiSelectSearchable/MultiSelectSearchable.d.ts +1 -1
  420. package/dist/module-types/src/components/molecules/NextButton/NextButton.d.ts +1 -1
  421. package/dist/module-types/src/components/molecules/Pagination/Pagination.d.ts +1 -1
  422. package/dist/module-types/src/components/molecules/PreviousButton/PreviousButton.d.ts +1 -1
  423. package/dist/module-types/src/components/molecules/ProgressMultiBar/ProgressMultiBar.d.ts +1 -1
  424. package/dist/module-types/src/components/molecules/ProgressSlide/ProgressSlide.d.ts +1 -1
  425. package/dist/module-types/src/components/molecules/SplitModal/SplitModal.d.ts +1 -1
  426. package/dist/module-types/src/components/molecules/SplitPane/SplitPane.d.ts +1 -1
  427. package/dist/module-types/src/components/molecules/SubmissionRejudgeButton/SubmissionRejudgeButton.d.ts +1 -1
  428. package/dist/module-types/src/components/molecules/Tabs/Tabs.d.ts +1 -1
  429. package/dist/module-types/src/components/molecules/Tabs/mocks/JudgeTabs.d.ts +1 -1
  430. package/dist/module-types/src/components/molecules/TabsInline/TabsInline.d.ts +1 -1
  431. package/dist/module-types/src/components/molecules/TabsInline/TabsInline.deprecated.d.ts +1 -1
  432. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
  433. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
  434. package/dist/module-types/src/components/molecules/TabsInlineBody/TabsInlineBody.d.ts +1 -1
  435. package/dist/module-types/src/components/molecules/TabsInlineBody/TabsInlineBody.deprecated.d.ts +1 -1
  436. package/dist/module-types/src/components/molecules/ThemeColorPalette/ThemeColorPalette.d.ts +1 -1
  437. package/dist/module-types/src/components/molecules/TimePicker/TimePicker.d.ts +1 -1
  438. package/dist/module-types/src/components/molecules/Timer/Timer.d.ts +1 -1
  439. package/dist/module-types/src/components/molecules/Timer/TimerDisplay.d.ts +1 -1
  440. package/dist/module-types/src/components/molecules/TimerLabeled/TimerLabeled.d.ts +1 -1
  441. package/dist/module-types/src/components/molecules/TwoActionModal/TwoActionModal.d.ts +1 -1
  442. package/dist/module-types/src/components/molecules/TwoContentSection/TwoContentSection.d.ts +1 -1
  443. package/dist/module-types/src/components/molecules/YearPicker/YearPicker.d.ts +1 -1
  444. package/dist/module-types/src/components/molecules/_lazy_/BarChart/BarChart.d.ts +1 -1
  445. package/dist/module-types/src/components/molecules/_lazy_/BarChart/index.d.ts +1 -1
  446. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/CodeEditor.d.ts +1 -1
  447. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/index.d.ts +1 -1
  448. package/dist/module-types/src/components/molecules/_lazy_/CodeViewer/CodeViewer.d.ts +1 -1
  449. package/dist/module-types/src/components/molecules/_lazy_/CodeViewer/index.d.ts +1 -1
  450. package/dist/module-types/src/components/molecules/_lazy_/DataGrid/DataGrid.d.ts +1 -1
  451. package/dist/module-types/src/components/molecules/_lazy_/DataGrid/index.d.ts +1 -1
  452. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/DrawerView.d.ts +1 -1
  453. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/index.d.ts +1 -1
  454. package/dist/module-types/src/components/molecules/_lazy_/ImageLoaderCropper/ImageLoaderCropper.d.ts +1 -1
  455. package/dist/module-types/src/components/molecules/_lazy_/ImageLoaderCropper/index.d.ts +1 -1
  456. package/dist/module-types/src/components/molecules/_lazy_/InputColor/InputColor.d.ts +1 -1
  457. package/dist/module-types/src/components/molecules/_lazy_/InputColor/index.d.ts +1 -1
  458. package/dist/module-types/src/components/molecules/_lazy_/LineChart/LineChart.d.ts +1 -1
  459. package/dist/module-types/src/components/molecules/_lazy_/LineChart/index.d.ts +1 -1
  460. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/SlideDeck.d.ts +1 -1
  461. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/index.d.ts +1 -1
  462. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/SortableItems.d.ts +1 -1
  463. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/index.d.ts +1 -1
  464. package/dist/module-types/src/components/molecules/layouts/ApplicationLoaderLayout.d.ts +1 -1
  465. package/dist/module-types/src/components/molecules/layouts/JukiLoadingLayout.d.ts +1 -1
  466. package/dist/module-types/src/components/molecules/layouts/PawsLoadingLayout.d.ts +1 -1
  467. package/dist/module-types/src/components/molecules/layouts/TwoContentCardsLayout.d.ts +1 -1
  468. package/dist/module-types/src/components/molecules/layouts/TwoContentLayout.d.ts +1 -1
  469. package/dist/module-types/src/components/molecules/layouts/UserLoaderLayout.d.ts +1 -1
  470. package/dist/module-types/src/components/organisms/AiChatPanel/AiChatPanel.d.ts +1 -1
  471. package/dist/module-types/src/components/organisms/CardNotification/CardNotification.d.ts +1 -1
  472. package/dist/module-types/src/components/organisms/CardNotification/constants.d.ts +4 -4
  473. package/dist/module-types/src/components/organisms/CheckUnsavedChanges/CheckUnsavedChanges.d.ts +1 -1
  474. package/dist/module-types/src/components/organisms/Field/Field.d.ts +1 -1
  475. package/dist/module-types/src/components/organisms/FieldDate/FieldDate.d.ts +1 -1
  476. package/dist/module-types/src/components/organisms/FieldText/FieldText.d.ts +1 -1
  477. package/dist/module-types/src/components/organisms/GraphvizEditor/GraphvizEditor.d.ts +1 -1
  478. package/dist/module-types/src/components/organisms/GraphvizEditorModal/GraphvizEditorModal.d.ts +1 -1
  479. package/dist/module-types/src/components/organisms/GraphvizViewers/GraphvizViewers.d.ts +1 -1
  480. package/dist/module-types/src/components/organisms/HorizontalMenu/HorizontalMenu.d.ts +1 -1
  481. package/dist/module-types/src/components/organisms/ImageUploaderButton/ImageUploaderButton.d.ts +1 -1
  482. package/dist/module-types/src/components/organisms/LoginUser/LoginUser.d.ts +1 -1
  483. package/dist/module-types/src/components/organisms/MdMathViewer/MdFloatToolbar/MdFloatToolbar.d.ts +1 -1
  484. package/dist/module-types/src/components/organisms/MdMathViewer/MdMathViewer.d.ts +1 -1
  485. package/dist/module-types/src/components/organisms/MdMathViewer/MemoMdMath.deprecated.d.ts +1 -1
  486. package/dist/module-types/src/components/organisms/MdMathViewer/MemoMdMathViewer.deprecated.d.ts +1 -1
  487. package/dist/module-types/src/components/organisms/PageNotFound/PageNotFound.d.ts +1 -1
  488. package/dist/module-types/src/components/organisms/PagedDataViewer/PagedDataViewer.d.ts +1 -1
  489. package/dist/module-types/src/components/organisms/PresentationToolButtons/PresentationToolButtons.d.ts +1 -1
  490. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/FullscreenTimerButton.d.ts +1 -1
  491. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/FullscreenToggleButton.d.ts +1 -1
  492. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/PointerButton.d.ts +1 -1
  493. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  494. package/dist/module-types/src/components/organisms/ProblemVerdictTag/ProblemVerdictTag.d.ts +1 -1
  495. package/dist/module-types/src/components/organisms/SubmitView/SubmitView.d.ts +1 -1
  496. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionGroupInfo.d.ts +1 -1
  497. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +1 -1
  498. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionMemory.d.ts +1 -1
  499. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionTime.d.ts +1 -1
  500. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +1 -1
  501. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +1 -1
  502. package/dist/module-types/src/components/organisms/TextHeadCell/TextHeadCell.d.ts +1 -1
  503. package/dist/module-types/src/components/organisms/UserChip/UserChip.d.ts +1 -1
  504. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  505. package/dist/module-types/src/components/organisms/UsersSelector/UsersSelector.d.ts +1 -1
  506. package/dist/module-types/src/components/organisms/VerticalMenu/VerticalMenu.d.ts +1 -1
  507. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/ChangePasswordModal.d.ts +1 -1
  508. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/index.d.ts +1 -1
  509. package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/DataViewerCard.d.ts +1 -1
  510. package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/index.d.ts +1 -1
  511. package/dist/module-types/src/components/organisms/_layz_/DataViewer/DataViewer.d.ts +1 -1
  512. package/dist/module-types/src/components/organisms/_layz_/DataViewer/FilterDrawer/index.d.ts +1 -1
  513. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +1 -1
  514. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +1 -1
  515. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +1 -1
  516. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkUserTableTest/MockJkUserTable.d.ts +1 -1
  517. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/RowVirtualizerFixed.d.ts +1 -1
  518. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/Filter.d.ts +1 -1
  519. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDate.d.ts +1 -1
  520. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDateRange.d.ts +1 -1
  521. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterSelect.d.ts +1 -1
  522. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterText.d.ts +1 -1
  523. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/ViewContainerRows.d.ts +1 -1
  524. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/DataViewerToolbar.d.ts +1 -1
  525. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/DisplayDataViewer.d.ts +1 -1
  526. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/utils.d.ts +1 -1
  527. package/dist/module-types/src/components/organisms/_layz_/DataViewer/index.d.ts +1 -1
  528. package/dist/module-types/src/components/organisms/_layz_/ExcalidrawButton/ExcalidrawButton.d.ts +1 -1
  529. package/dist/module-types/src/components/organisms/_layz_/ExcalidrawButton/index.d.ts +1 -1
  530. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/GraphvizViewer.d.ts +1 -1
  531. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/index.d.ts +1 -1
  532. package/dist/module-types/src/components/organisms/_layz_/MdMath/MdMath.d.ts +1 -1
  533. package/dist/module-types/src/components/organisms/_layz_/MdMath/MermaidInline.d.ts +1 -1
  534. package/dist/module-types/src/components/organisms/_layz_/MdMath/index.d.ts +1 -1
  535. package/dist/module-types/src/components/organisms/_layz_/MdMath/utils.d.ts +1 -1
  536. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.deprecated.d.ts +1 -1
  537. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/TextPlainEditorContent/TextPlainEditorContent.d.ts +1 -1
  538. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/CodeRunnerEditor.d.ts +1 -1
  539. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FileTreePanel/FileTreePanel.d.ts +1 -1
  540. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FirstPane.d.ts +1 -1
  541. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/RunCodeButton.d.ts +1 -1
  542. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/index.d.ts +1 -1
  543. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/MermaidViewer/GraphicToolbar.d.ts +1 -1
  544. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/MermaidViewer/MermaidViewer.d.ts +1 -1
  545. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/SettingsModal/index.d.ts +1 -1
  546. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/TestCases/LogInfo.d.ts +1 -1
  547. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/TestCases/index.d.ts +1 -1
  548. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/WorksheetAsSlides.d.ts +1 -1
  549. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/index.d.ts +1 -1
  550. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/WorksheetContents.d.ts +1 -1
  551. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/index.d.ts +1 -1
  552. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/WorksheetEditor.d.ts +1 -1
  553. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/index.d.ts +1 -1
  554. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/AddNewChild.d.ts +1 -1
  555. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ChunkTitle.d.ts +1 -1
  556. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSection.d.ts +1 -1
  557. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditor.d.ts +1 -1
  558. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditorModal.d.ts +1 -1
  559. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionView.d.ts +1 -1
  560. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/EditSheetModal.d.ts +1 -1
  561. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSection.d.ts +1 -1
  562. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditor.d.ts +1 -1
  563. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditorModal.d.ts +1 -1
  564. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionView.d.ts +1 -1
  565. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.d.ts +1 -1
  566. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.old.d.ts +1 -1
  567. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditor.d.ts +1 -1
  568. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditorModal.d.ts +1 -1
  569. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetRecursiveSection.d.ts +1 -1
  570. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetSection.d.ts +1 -1
  571. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSection.d.ts +1 -1
  572. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditor.d.ts +1 -1
  573. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditorModal.d.ts +1 -1
  574. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionView.d.ts +1 -1
  575. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/ProblemSummary.d.ts +1 -1
  576. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSection.d.ts +1 -1
  577. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditor.d.ts +1 -1
  578. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditorModal.d.ts +1 -1
  579. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionView.d.ts +1 -1
  580. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  581. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContents.d.ts +1 -1
  582. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContentsModal.d.ts +1 -1
  583. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/UpRemoveDownButtons.d.ts +1 -1
  584. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetBodies.d.ts +1 -1
  585. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetNode.d.ts +1 -1
  586. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/upRemoveDownActions.d.ts +4 -4
  587. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/WorksheetViewer.d.ts +1 -1
  588. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/index.d.ts +1 -1
  589. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/ImageUploaderModal.d.ts +1 -1
  590. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +1 -1
  591. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/index.d.ts +1 -1
  592. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/UploadNewImageTab/index.d.ts +1 -1
  593. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +2 -2
  594. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/ForgotPassword/ForgoPasswordModal.d.ts +1 -1
  595. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/ForgotPassword/index.d.ts +1 -1
  596. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/LoginModalTemplate.d.ts +1 -1
  597. package/dist/module-types/src/components/organisms/modals/SignUpModal/SignUpModal.d.ts +1 -1
  598. package/dist/module-types/src/components/organisms/modals/SignUpModal/SignUpModalTemplate/SignUpModalTemplate.d.ts +1 -1
  599. package/dist/module-types/src/components/organisms/modals/SubmissionModal/SubmissionContentModal.d.ts +1 -1
  600. package/dist/module-types/src/components/organisms/modals/SubmissionModal/SubmissionModal.d.ts +1 -1
  601. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +2 -2
  602. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewModal.d.ts +1 -1
  603. package/dist/module-types/src/components/organisms/modals/WelcomeModal/WelcomeModal.d.ts +1 -1
  604. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +2 -2
  605. package/dist/module-types/src/components/providers/JukiProviders.d.ts +1 -1
  606. package/dist/module-types/src/components/providers/JukiUIProvider/Image.d.ts +1 -1
  607. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  608. package/dist/module-types/src/components/providers/JukiUIProvider/Link.d.ts +1 -1
  609. package/dist/module-types/src/components/providers/NotificationProvider/NotificationProvider.d.ts +1 -1
  610. package/dist/module-types/src/components/templates/ContestNameLinkField/ContestNameLinkField.d.ts +1 -1
  611. package/dist/module-types/src/components/templates/EditProfileModal/EditProfileModal.d.ts +1 -1
  612. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  613. package/dist/module-types/src/components/templates/EntityCreateLayout/EntityCreateLayout.d.ts +1 -1
  614. package/dist/module-types/src/components/templates/EntityLogsModal/EntityLogsModal.d.ts +1 -1
  615. package/dist/module-types/src/components/templates/EntityUpdateLayout/EntityUpdateLayout.d.ts +1 -1
  616. package/dist/module-types/src/components/templates/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  617. package/dist/module-types/src/components/templates/HelpSection/HelpSection.d.ts +1 -1
  618. package/dist/module-types/src/components/templates/MainMenu/DrawerViewMenuMobile/DrawerViewMenuMobile.d.ts +1 -1
  619. package/dist/module-types/src/components/templates/MainMenu/MainMenu.d.ts +1 -1
  620. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +3 -3
  621. package/dist/module-types/src/components/templates/NewViersionAvailableModal/NewVersionAvailable.d.ts +1 -1
  622. package/dist/module-types/src/components/templates/NewViersionAvailableModal/NewVersionAvailableModal/NewVersionAvailableModal.d.ts +1 -1
  623. package/dist/module-types/src/components/templates/ProblemView/ProblemInfo.d.ts +6 -6
  624. package/dist/module-types/src/components/templates/ProblemView/ProblemView.d.ts +1 -1
  625. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +1 -1
  626. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemStatementView.d.ts +1 -1
  627. package/dist/module-types/src/components/templates/ProblemView/commons/SampleTest.d.ts +1 -1
  628. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  629. package/dist/module-types/src/components/templates/UserActiveSessions/UserMyActiveSessions.d.ts +1 -1
  630. package/dist/module-types/src/components/templates/UserProfile/UserProfile.d.ts +1 -1
  631. package/dist/module-types/src/components/templates/UserProfile/UserProfileDataContent.d.ts +1 -1
  632. package/dist/module-types/src/components/templates/UserProfileSettings/UserProfileSettings.d.ts +1 -1
  633. package/dist/module-types/src/components/templates/UserViewLayout/ProfileSubmissions.d.ts +1 -1
  634. package/dist/module-types/src/components/templates/UserViewLayout/UserViewLayout.d.ts +1 -1
  635. package/dist/module-types/src/components/templates/members/DocumentCustomMembersContent.d.ts +1 -1
  636. package/dist/module-types/src/components/templates/members/DocumentMembersButton.d.ts +1 -1
  637. package/dist/module-types/src/components/templates/members/DocumentMembersContent.d.ts +1 -1
  638. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +1 -1
  639. package/dist/module-types/src/components/templates/problem/ProblemAdminActionsField.d.ts +1 -1
  640. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  641. package/dist/module-types/src/components/templates/problem/ProblemKeyField.d.ts +1 -1
  642. package/dist/module-types/src/components/templates/problem/ProblemModeField.d.ts +1 -1
  643. package/dist/module-types/src/components/templates/problem/ProblemNameLinkField.d.ts +1 -1
  644. package/dist/module-types/src/components/templates/problem/ProblemNameModalField.d.ts +1 -1
  645. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  646. package/dist/module-types/src/components/templates/problem/ProblemStatus.d.ts +1 -1
  647. package/dist/module-types/src/components/templates/problem/ProblemTypeField.d.ts +1 -1
  648. package/dist/module-types/src/components/templates/problem/TagsField.d.ts +1 -1
  649. package/dist/module-types/src/components/templates/submission/SubmissionContestField.d.ts +1 -1
  650. package/dist/module-types/src/components/templates/submission/SubmissionContestProblemField.d.ts +1 -1
  651. package/dist/module-types/src/components/templates/submission/SubmissionDateField.d.ts +1 -1
  652. package/dist/module-types/src/components/templates/submission/SubmissionLanguageField.d.ts +1 -1
  653. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  654. package/dist/module-types/src/components/templates/submission/SubmissionProblemField.d.ts +1 -1
  655. package/dist/module-types/src/components/templates/submission/SubmissionRetrieveButton.d.ts +1 -1
  656. package/dist/module-types/src/components/templates/submission/SubmissionTimeField.d.ts +1 -1
  657. package/dist/module-types/src/components/templates/submission/commons/SubmissionInfo.d.ts +1 -1
  658. package/dist/module-types/src/stores/user/useUserStore.d.ts +1 -1
  659. package/package.json +82 -87
  660. package/src/styles/components/atoms/_tabs-inline.scss +106 -18
  661. package/src/styles/components/molecules/_layouts.scss +2 -2
  662. package/src/vendor/@milkdown/crepe/lib/theme/common/ai.css +446 -0
  663. package/src/vendor/@milkdown/crepe/lib/theme/common/block-edit.css +3 -3
  664. package/src/vendor/@milkdown/crepe/lib/theme/common/code-mirror.css +19 -5
  665. package/src/vendor/@milkdown/crepe/lib/theme/common/diff.css +177 -0
  666. package/src/vendor/@milkdown/crepe/lib/theme/common/image-block.css +2 -2
  667. package/src/vendor/@milkdown/crepe/lib/theme/common/link-tooltip.css +3 -3
  668. package/src/vendor/@milkdown/crepe/lib/theme/common/reset.css +15 -14
  669. package/src/vendor/@milkdown/crepe/lib/theme/common/style.css +2 -0
  670. package/src/vendor/@milkdown/crepe/lib/theme/common/table.css +1 -1
  671. package/src/vendor/@milkdown/crepe/lib/theme/common/top-bar.css +2 -2
  672. package/src/vendor/@milkdown/crepe/lib/theme/crepe/style.css +1 -0
  673. package/src/vendor/@milkdown/crepe/lib/theme/crepe-dark/style.css +1 -0
  674. package/src/vendor/@milkdown/crepe/lib/theme/frame/style.css +1 -0
  675. package/src/vendor/@milkdown/crepe/lib/theme/frame-dark/style.css +1 -0
  676. package/src/vendor/@milkdown/crepe/lib/theme/nord/style.css +1 -0
  677. package/src/vendor/@milkdown/crepe/lib/theme/nord-dark/style.css +1 -0
  678. package/src/vendor/@milkdown/crepe/src/theme/common/ai.css +430 -0
  679. package/src/vendor/@milkdown/crepe/src/theme/common/block-edit.css +3 -3
  680. package/src/vendor/@milkdown/crepe/src/theme/common/code-mirror.css +19 -5
  681. package/src/vendor/@milkdown/crepe/src/theme/common/diff.css +196 -0
  682. package/src/vendor/@milkdown/crepe/src/theme/common/image-block.css +2 -2
  683. package/src/vendor/@milkdown/crepe/src/theme/common/link-tooltip.css +3 -3
  684. package/src/vendor/@milkdown/crepe/src/theme/common/reset.css +15 -14
  685. package/src/vendor/@milkdown/crepe/src/theme/common/style.css +2 -0
  686. package/src/vendor/@milkdown/crepe/src/theme/common/table.css +1 -1
  687. package/src/vendor/@milkdown/crepe/src/theme/common/top-bar.css +2 -2
  688. package/src/vendor/@milkdown/crepe/src/theme/crepe/style.css +1 -0
  689. package/src/vendor/@milkdown/crepe/src/theme/crepe-dark/style.css +1 -0
  690. package/src/vendor/@milkdown/crepe/src/theme/frame/style.css +1 -0
  691. package/src/vendor/@milkdown/crepe/src/theme/frame-dark/style.css +1 -0
  692. package/src/vendor/@milkdown/crepe/src/theme/nord/style.css +1 -0
  693. package/src/vendor/@milkdown/crepe/src/theme/nord-dark/style.css +1 -0
  694. package/src/vendor/fumadocs-ui/css/generated/docs.css +1 -512
  695. package/src/vendor/fumadocs-ui/css/generated/flux.css +1 -432
  696. package/src/vendor/fumadocs-ui/css/generated/glass.css +1 -0
  697. package/src/vendor/fumadocs-ui/css/generated/home.css +1 -220
  698. package/src/vendor/fumadocs-ui/css/generated/notebook.css +1 -540
  699. package/src/vendor/fumadocs-ui/css/generated/shared.css +1 -1176
  700. package/src/vendor/fumadocs-ui/css/lib/base.css +93 -2
  701. package/src/vendor/fumadocs-ui/css/lib/shiki.css +2 -2
  702. package/src/vendor/fumadocs-ui/css/preset-legacy.css +38 -0
  703. package/src/vendor/fumadocs-ui/css/preset.css +0 -80
  704. package/src/vendor/fumadocs-ui/css/solar.css +10 -20
  705. package/src/vendor/fumadocs-ui/css/vitepress.css +17 -10
  706. package/src/vendor/fumadocs-ui/dist/components/image-zoom2.css +5 -0
  707. package/src/vendor/fumadocs-ui/dist/style.css +1375 -936
  708. package/src/vendor/handsontable/styles/handsontable.css +964 -416
  709. package/src/vendor/handsontable/styles/handsontable.min.css +5 -4
  710. package/src/vendor/handsontable/styles/ht-icons-horizon.css +11 -12
  711. package/src/vendor/handsontable/styles/ht-icons-horizon.min.css +5 -4
  712. package/src/vendor/handsontable/styles/ht-icons-main.css +11 -12
  713. package/src/vendor/handsontable/styles/ht-icons-main.min.css +5 -4
  714. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.css +28 -5
  715. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.min.css +5 -4
  716. package/src/vendor/handsontable/styles/ht-theme-classic.css +39 -17
  717. package/src/vendor/handsontable/styles/ht-theme-classic.min.css +5 -4
  718. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.css +27 -4
  719. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.min.css +5 -4
  720. package/src/vendor/handsontable/styles/ht-theme-horizon.css +38 -16
  721. package/src/vendor/handsontable/styles/ht-theme-horizon.min.css +5 -4
  722. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.css +28 -5
  723. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.min.css +5 -4
  724. package/src/vendor/handsontable/styles/ht-theme-main.css +39 -17
  725. package/src/vendor/handsontable/styles/ht-theme-main.min.css +5 -4
  726. package/src/vendor/highlight.js/scss/cybertopia-cherry.scss +2 -1
  727. package/src/vendor/highlight.js/scss/cybertopia-dimmer.scss +2 -1
  728. package/src/vendor/highlight.js/scss/cybertopia-icecap.scss +2 -1
  729. package/src/vendor/highlight.js/scss/cybertopia-saturated.scss +2 -1
  730. package/src/vendor/highlight.js/scss/equinox.scss +71 -0
  731. package/src/vendor/highlight.js/scss/vs-dark.scss +61 -0
  732. package/src/vendor/highlight.js/styles/cybertopia-cherry.css +2 -1
  733. package/src/vendor/highlight.js/styles/cybertopia-cherry.min.css +1 -1
  734. package/src/vendor/highlight.js/styles/cybertopia-dimmer.css +2 -1
  735. package/src/vendor/highlight.js/styles/cybertopia-dimmer.min.css +1 -1
  736. package/src/vendor/highlight.js/styles/cybertopia-icecap.css +2 -1
  737. package/src/vendor/highlight.js/styles/cybertopia-icecap.min.css +1 -1
  738. package/src/vendor/highlight.js/styles/cybertopia-saturated.css +2 -1
  739. package/src/vendor/highlight.js/styles/cybertopia-saturated.min.css +1 -1
  740. package/src/vendor/highlight.js/styles/equinox.css +71 -0
  741. package/src/vendor/highlight.js/styles/equinox.min.css +1 -0
  742. package/src/vendor/highlight.js/styles/vs-dark.css +61 -0
  743. package/src/vendor/highlight.js/styles/vs-dark.min.css +1 -0
  744. package/src/vendor/katex/dist/katex-swap.css +5 -2
  745. package/src/vendor/katex/dist/katex-swap.min.css +1 -1
  746. package/src/vendor/katex/dist/katex.css +5 -2
  747. package/src/vendor/katex/dist/katex.min.css +1 -1
  748. package/src/vendor/katex/src/styles/katex.scss +3 -1
  749. package/src/vendor/react-image-crop/dist/ReactCrop.css +2 -1
  750. package/src/vendor/reveal.js/css/reveal.scss +15 -0
  751. package/src/vendor/reveal.js/dist/reveal.css +1 -1
  752. package/dist/esm/BarChart-D6H2EH3B.js +0 -1
  753. package/dist/esm/CartesianChart-_EyixekW.js +0 -47
  754. package/dist/esm/CodeViewer-DIncRhD1.js +0 -1
  755. package/dist/esm/DataGrid-CzZsh4gG.js +0 -272
  756. package/dist/esm/DataViewer-CSIcp1dE.js +0 -1
  757. package/dist/esm/ImageLoaderCropper-BjHykYfo.js +0 -1
  758. package/dist/esm/InputCellPhoneNumber-CAi0AXMP.js +0 -1
  759. package/dist/esm/LineChart-BL9HlHkG.js +0 -1
  760. package/dist/esm/MdMathEditor-D0f1McYj.js +0 -28
  761. package/dist/esm/Popover-DPn39FUa.js +0 -6
  762. package/dist/esm/SlideDeck-et5M4lE-.js +0 -1
  763. package/dist/esm/TableOfContents-CLrH5fjb.js +0 -1
  764. package/dist/esm/Tooltip-CEgmNtFX.js +0 -13
  765. package/dist/esm/UserCodeEditor-DlHeWLUu.js +0 -28
  766. package/dist/esm/WorksheetAsSlides-X5Ljvk2t.js +0 -1
  767. package/dist/esm/WorksheetEditor-Dq3apeLg.js +0 -1
  768. package/dist/esm/WorksheetNode-Chf37TwI.js +0 -1
  769. package/dist/esm/WorksheetViewer-B-slMCYv.js +0 -1
  770. package/dist/esm/_baseIteratee-DJNkOVK7.js +0 -1
  771. package/dist/esm/_baseUniq-BJKKUJ6e.js +0 -1
  772. package/dist/esm/arc-BqJSq9Se.js +0 -1
  773. package/dist/esm/architecture-YZFGNWBL-B4qRp-MK.js +0 -1
  774. package/dist/esm/architectureDiagram-Q4EWVU46-MfdUMKWh.js +0 -1
  775. package/dist/esm/basic-setup-UGhpl5jF.js +0 -1
  776. package/dist/esm/blockDiagram-DXYQGD6D-B53ncWj8.js +0 -1
  777. package/dist/esm/c4Diagram-AHTNJAMY-FdREycKs.js +0 -1
  778. package/dist/esm/channel-D_ARZf1V.js +0 -1
  779. package/dist/esm/chunk-4TB4RGXK-DpY00B8-.js +0 -1
  780. package/dist/esm/chunk-EDXVE4YY-DCPe-NtF.js +0 -1
  781. package/dist/esm/chunk-OYMX7WX6-C7RHHgRc.js +0 -1
  782. package/dist/esm/classDiagram-6PBFFD2Q-B7_Zpqtq.js +0 -1
  783. package/dist/esm/classDiagram-v2-HSJHXN6E-B7_Zpqtq.js +0 -1
  784. package/dist/esm/clone-DZNciEx8.js +0 -1
  785. package/dist/esm/commons-D9Mh1s5L.js +0 -1
  786. package/dist/esm/cose-bilkent-S5V4N54A-BOV94ldj.js +0 -1
  787. package/dist/esm/cytoscape.esm-D5qQrGhU.js +0 -9
  788. package/dist/esm/dagre-KV5264BT-BfFz9a4k.js +0 -1
  789. package/dist/esm/diagram-5BDNPKRD-I9IS2ANw.js +0 -1
  790. package/dist/esm/diagram-G4DWMVQ6-BXU7Dvs-.js +0 -1
  791. package/dist/esm/diagram-MMDJMWI5-Csk96FFg.js +0 -1
  792. package/dist/esm/diagram-TYMM5635-DPvqrKRl.js +0 -1
  793. package/dist/esm/erDiagram-SMLLAGMA-Dc1SOwcN.js +0 -1
  794. package/dist/esm/floating-ui.dom-BKnkJW47.js +0 -1
  795. package/dist/esm/flowDiagram-DWJPFMVM-Ck8eEuPh.js +0 -1
  796. package/dist/esm/ganttDiagram-T4ZO3ILL-D5DV1RYK.js +0 -1
  797. package/dist/esm/gitGraph-7Q5UKJZL-AWq1Wmi2.js +0 -1
  798. package/dist/esm/gitGraphDiagram-UUTBAWPF-BWpwlfSt.js +0 -1
  799. package/dist/esm/graph-DcE5swO6.js +0 -1
  800. package/dist/esm/index-Bp7rYslS.js +0 -1
  801. package/dist/esm/index-TeLD_8PN.js +0 -1
  802. package/dist/esm/info-OMHHGYJF-CDJfFYlp.js +0 -1
  803. package/dist/esm/infoDiagram-42DDH7IO-aiwYT7Xb.js +0 -1
  804. package/dist/esm/isSymbol-CATEdeai.js +0 -1
  805. package/dist/esm/isUndefined-DgmxjSXK.js +0 -1
  806. package/dist/esm/ishikawaDiagram-UXIWVN3A-adhn2Hxg.js +0 -1
  807. package/dist/esm/journeyDiagram-VCZTEJTY-w8F4Ngn_.js +0 -1
  808. package/dist/esm/kanban-definition-6JOO6SKY-BUy-pXA5.js +0 -1
  809. package/dist/esm/layout-LXPx6gJv.js +0 -1
  810. package/dist/esm/map-BvlAjF4J.js +0 -1
  811. package/dist/esm/memoize-CPUrcYQl.js +0 -1
  812. package/dist/esm/mermaid-parser.core-_V3e3eig.js +0 -1
  813. package/dist/esm/mermaid.core-C89m9NSM.js +0 -1
  814. package/dist/esm/min-Dc9VrJ6M.js +0 -1
  815. package/dist/esm/mindmap-definition-QFDTVHPH-DQor9UlS.js +0 -1
  816. package/dist/esm/nsis-Cx8FAvMN.js +0 -1
  817. package/dist/esm/packet-4T2RLAQJ-DGgnF4xi.js +0 -1
  818. package/dist/esm/pie-ZZUOXDRM-jgrNXYlk.js +0 -1
  819. package/dist/esm/pieDiagram-DEJITSTG-CFXV-DSu.js +0 -1
  820. package/dist/esm/purify.es-DBOWJxv3.js +0 -2
  821. package/dist/esm/quadrantDiagram-34T5L4WZ-C5PWeOxe.js +0 -1
  822. package/dist/esm/radar-PYXPWWZC-ZVxMZ3XM.js +0 -1
  823. package/dist/esm/requirementDiagram-MS252O5E-CAFUQ1SL.js +0 -1
  824. package/dist/esm/ruby-CR-u2WLS.js +0 -1
  825. package/dist/esm/sankeyDiagram-XADWPNL6-D63_orrT.js +0 -1
  826. package/dist/esm/sequenceDiagram-FGHM5R23-DjI8jxRK.js +0 -1
  827. package/dist/esm/stateDiagram-FHFEXIEX-BeDx2Idm.js +0 -1
  828. package/dist/esm/stateDiagram-v2-QKLJ7IA2-BSzNVn1D.js +0 -1
  829. package/dist/esm/string-LeDn2fkG.js +0 -1
  830. package/dist/esm/throttle-BsCMUG1-.js +0 -1
  831. package/dist/esm/timeline-definition-GMOUNBTQ-BRHpffn4.js +0 -1
  832. package/dist/esm/toNumber-Bh_HTlSx.js +0 -1
  833. package/dist/esm/treeView-SZITEDCU-CMK4b3Hd.js +0 -1
  834. package/dist/esm/treemap-W4RFUUIX-DjdwA0Jd.js +0 -1
  835. package/dist/esm/types-CsXckO56.js +0 -1
  836. package/dist/esm/vennDiagram-DHZGUBPP-Cauja-PK.js +0 -1
  837. package/dist/esm/viz-CFEjElvl.js +0 -9
  838. package/dist/esm/wardley-RL74JXVD-DiOshmTl.js +0 -1
  839. package/dist/esm/wardleyDiagram-NUSXRM2D-CSY5_Vpk.js +0 -1
  840. package/dist/esm/xychartDiagram-5P7HB3ND-Bkd1VEMW.js +0 -1
  841. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/code-block.d.ts +0 -0
  842. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-block.d.ts +0 -0
  843. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-inline.d.ts +0 -0
  844. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/index.d.ts +0 -0
  845. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/link-tooltip.d.ts +0 -0
  846. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/list-item-block.d.ts +0 -0
  847. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/table-block.d.ts +0 -0
  848. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/core.d.ts +0 -0
  849. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/ctx.d.ts +0 -0
  850. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/block.d.ts +0 -0
  851. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/clipboard.d.ts +0 -0
  852. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/cursor.d.ts +0 -0
  853. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/history.d.ts +0 -0
  854. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/indent.d.ts +0 -0
  855. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/listener.d.ts +0 -0
  856. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/slash.d.ts +0 -0
  857. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/tooltip.d.ts +0 -0
  858. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/trailing.d.ts +0 -0
  859. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/upload.d.ts +0 -0
  860. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/commonmark.d.ts +0 -0
  861. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/gfm.d.ts +0 -0
  862. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/history.d.ts +0 -0
  863. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/index.d.ts +0 -0
  864. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/inputrules.d.ts +0 -0
  865. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/keymap.d.ts +0 -0
  866. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/model.d.ts +0 -0
  867. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/state.d.ts +0 -0
  868. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/view.d.ts +0 -0
  869. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+view@6.43.15_typescript@6.0.3}/node_modules/@milkdown/kit/lib/utils.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ import{z as t}from"./index-Cso1rXtQ.js";import{B as e,m as r,i,g as o,j as a,k as s,s as n,o as l,p as h,q as c,t as d,u,v as p,b as g,x as f,y,z as m,A as C,D as x,l as b}from"./string-DPJhNSkw.js";function k(t){return null!=t&&"function"!=typeof t&&function(t){return Number.isSafeInteger(t)&&t>=0}(t.length)}function w(t){return"__proto__"===t}function S(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function T(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function B(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const v="[object RegExp]",F="[object String]",L="[object Number]",_="[object Boolean]",M="[object Arguments]",A="[object Symbol]",E="[object Date]",$="[object Map]",O="[object Set]",I="[object Array]",D="[object ArrayBuffer]",q="[object Object]",P="[object DataView]",z="[object Uint8Array]",R="[object Uint8ClampedArray]",W="[object Uint16Array]",N="[object Uint32Array]",j="[object Int8Array]",H="[object Int16Array]",U="[object Int32Array]",Y="[object Float32Array]",V="[object Float64Array]";function G(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function X(t,e,r,i=new Map,o=void 0){const a=o?.(t,e,r,i);if(void 0!==a)return a;if(S(t))return t;if(i.has(t))return i.get(t);if(Array.isArray(t)){const e=new Array(t.length);i.set(t,e);for(let a=0;a<t.length;a++)e[a]=X(t[a],a,r,i,o);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){const e=new Map;i.set(t,e);for(const[a,s]of t)e.set(a,X(s,a,r,i,o));return e}if(t instanceof Set){const e=new Set;i.set(t,e);for(const a of t)e.add(X(a,void 0,r,i,o));return e}if("undefined"!=typeof Buffer&&Buffer.isBuffer(t))return t.subarray();if(G(t)){const e=new(Object.getPrototypeOf(t).constructor)(t.length);i.set(t,e);for(let a=0;a<t.length;a++)e[a]=X(t[a],a,r,i,o);return e}if(t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){const e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return i.set(t,e),Z(e,t,r,i,o),e}if("undefined"!=typeof File&&t instanceof File){const e=new File([t],t.name,{type:t.type});return i.set(t,e),Z(e,t,r,i,o),e}if("undefined"!=typeof Blob&&t instanceof Blob){const e=new Blob([t],{type:t.type});return i.set(t,e),Z(e,t,r,i,o),e}if(t instanceof Error){const e=structuredClone(t);return i.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,Z(e,t,r,i,o),e}if(t instanceof Boolean){const e=new Boolean(t.valueOf());return i.set(t,e),Z(e,t,r,i,o),e}if(t instanceof Number){const e=new Number(t.valueOf());return i.set(t,e),Z(e,t,r,i,o),e}if(t instanceof String){const e=new String(t.valueOf());return i.set(t,e),Z(e,t,r,i,o),e}if("object"==typeof t&&function(t){switch(B(t)){case M:case I:case D:case P:case _:case E:case Y:case V:case j:case H:case U:case $:case L:case q:case v:case O:case F:case A:case z:case R:case W:case N:return!0;default:return!1}}(t)){const e=Object.create(Object.getPrototypeOf(t));return i.set(t,e),Z(e,t,r,i,o),e}return t}function Z(t,e,r=t,i,o){const a=[...Object.keys(e),...T(e)];for(let s=0;s<a.length;s++){const n=a[s],l=Object.getOwnPropertyDescriptor(t,n);(null==l||l.writable)&&(t[n]=X(e[n],n,r,i,o))}}function Q(t,e){return function(t,e){return X(t,void 0,t,new Map,e)}(t,(e,r,i,o)=>{if("object"==typeof t){if(B(t)===q&&"function"!=typeof t.constructor){const e={};return o.set(t,e),Z(e,t,i,o),e}switch(Object.prototype.toString.call(t)){case L:case F:case _:{const e=new t.constructor(t?.valueOf());return Z(e,t),e}case M:{const e={};return Z(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}})}function K(t){return Q(t)}function J(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===B(t)}function tt(t){return"object"==typeof t&&null!==t}function et(t){return tt(t)&&k(t)}function rt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");const r=function(...i){const o=e?e.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);const s=t.apply(this,i);return r.cache=a.set(o,s)||a,s},i=rt.Cache||Map;return r.cache=new i,r}function it(){}function ot(t){return G(t)}function at(t){if("object"!=typeof t)return!1;if(null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){const e=t[Symbol.toStringTag];if(null==e)return!1;return!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function st(t,e,r,i){if(S(t)&&(t=Object(t)),null==e||"object"!=typeof e)return t;if(i.has(e))return function(t){if(S(t))return t;if(Array.isArray(t)||G(t)||t instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);const r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){const e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause}),e.stack=t.stack,Object.assign(e,t),e}if("undefined"!=typeof File&&t instanceof File)return new r([t],t.name,{type:t.type,lastModified:t.lastModified});if("object"==typeof t){const r=Object.create(e);return Object.assign(r,t)}return t}(i.get(e));if(i.set(e,t),Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]=e[t]??void 0}const o=[...Object.keys(e),...T(e)];for(let a=0;a<o.length;a++){const s=o[a];if(w(s))continue;let n=e[s],l=t[s];if(J(n)&&(n={...n}),J(l)&&(l={...l}),"undefined"!=typeof Buffer&&Buffer.isBuffer(n)&&(n=K(n)),Array.isArray(n))if(Array.isArray(l)){const t=[],e=Reflect.ownKeys(l);for(let r=0;r<e.length;r++){const i=e[r];t[i]=l[i]}l=t}else if(et(l)){const t=[];for(let e=0;e<l.length;e++)t[e]=l[e];l=t}else l=[];const h=r(l,n,s,t,e,i);void 0!==h?t[s]=h:Array.isArray(n)||tt(l)&&tt(n)&&(at(l)||at(n)||ot(l)||ot(n))?t[s]=st(l,n,r,i):null==l&&at(n)?t[s]=st({},n,r,i):null==l&&ot(n)?t[s]=K(n):void 0!==l&&void 0===n||(t[s]=n)}return t}function nt(t,...e){return function(t,...e){const r=e.slice(0,-1),i=e[e.length-1];let o=t;for(let t=0;t<r.length;t++)o=st(o,r[t],i,new Map);return o}(t,...e,it)}function lt(t){if(null==t)return!0;if(k(t))return!!("function"==typeof t.splice||"string"==typeof t||"undefined"!=typeof Buffer&&Buffer.isBuffer(t)||ot(t)||J(t))&&0===t.length;if("object"==typeof t){if(t instanceof Map||t instanceof Set)return 0===t.size;const e=Object.keys(t);return function(t){const e=t?.constructor;return t===("function"==typeof e?e.prototype:Object.prototype)}(t)?0===e.filter(t=>"constructor"!==t).length:0===e.length}return!0}rt.Cache=Map;const ht=Math.abs,ct=Math.atan2,dt=Math.cos,ut=Math.max,pt=Math.min,gt=Math.sin,ft=Math.sqrt,yt=1e-12,mt=Math.PI,Ct=mt/2,xt=2*mt;function bt(t){return t>1?0:t<-1?mt:Math.acos(t)}function kt(t){return t>=1?Ct:t<=-1?-Ct:Math.asin(t)}function wt(t,r){this._basis=new e(t),this._beta=r}wt.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,o=t[0],a=e[0],s=t[r]-o,n=e[r]-a,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+i*s),this._beta*e[l]+(1-this._beta)*(a+i*n));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var St=function t(r){function i(t){return 1===r?new e(t):new wt(t,r)}return i.beta=function(e){return t(+e)},i}(.85);function Tt(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 Bt(t,e){this._context=t,this._k=(1-e)/6}Bt.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:Tt(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Tt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new Bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Ft(t,e){this._context=t,this._k=(1-e)/6}Ft.prototype={areaStart:r,areaEnd:r,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)}},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:Tt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lt=function t(e){function r(t){return new Ft(t,e)}return r.tension=function(e){return t(+e)},r}(0);function _t(t,e){this._context=t,this._k=(1-e)/6}_t.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||0!==this._line&&3===this._point)&&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:Tt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function r(t){return new _t(t,e)}return r.tension=function(e){return t(+e)},r}(0);function At(t,e,r){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>yt){var n=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*n-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*n-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>yt){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/c,s=(s*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function Et(t,e){this._context=t,this._alpha=e}Et.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)}(this._line||0!==this._line&&1===this._point)&&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:At(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $t=function t(e){function r(t){return e?new Et(t,e):new Bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ot(t,e){this._context=t,this._alpha=e}Ot.prototype={areaStart:r,areaEnd:r,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)}},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:At(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var It=function t(e){function r(t){return e?new Ot(t,e):new Ft(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Dt(t,e){this._context=t,this._alpha=e}Dt.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||0!==this._line&&3===this._point)&&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:At(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qt,Pt=function t(e){function r(t){return e?new Dt(t,e):new _t(t,0)}return r.alpha=function(e){return t(+e)},r}(.5),zt=180/Math.PI,Rt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Wt(t,e,r,i,o,a){var s,n,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,l/=n),t*i<e*r&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*zt,skewX:Math.atan(l)*zt,scaleX:s,scaleY:n}}function Nt(t,e,r,o){function a(t){return t.length?t.pop()+" ":""}return function(s,n){var l=[],h=[];return s=t(s),n=t(n),function(t,o,a,s,n,l){if(t!==a||o!==s){var h=n.push("translate(",null,e,null,r);l.push({i:h-4,x:i(t,a)},{i:h-2,x:i(o,s)})}else(a||s)&&n.push("translate("+a+e+s+r)}(s.translateX,s.translateY,n.translateX,n.translateY,l,h),function(t,e,r,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:r.push(a(r)+"rotate(",null,o)-2,x:i(t,e)})):e&&r.push(a(r)+"rotate("+e+o)}(s.rotate,n.rotate,l,h),function(t,e,r,s){t!==e?s.push({i:r.push(a(r)+"skewX(",null,o)-2,x:i(t,e)}):e&&r.push(a(r)+"skewX("+e+o)}(s.skewX,n.skewX,l,h),function(t,e,r,o,s,n){if(t!==r||e!==o){var l=s.push(a(s)+"scale(",null,",",null,")");n.push({i:l-4,x:i(t,r)},{i:l-2,x:i(e,o)})}else 1===r&&1===o||s.push(a(s)+"scale("+r+","+o+")")}(s.scaleX,s.scaleY,n.scaleX,n.scaleY,l,h),s=n=null,function(t){for(var e,r=-1,i=h.length;++r<i;)l[(e=h[r]).i]=e.x(t);return l.join("")}}}var jt,Ht=Nt(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Rt:Wt(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Ut=Nt(function(t){return null==t?Rt:(qt||(qt=document.createElementNS("http://www.w3.org/2000/svg","g")),qt.setAttribute("transform",t),(t=qt.transform.baseVal.consolidate())?Wt((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Rt)},", ",")",")"),Yt=Object.defineProperty,Vt=(t,e)=>Yt(t,"name",{value:e,configurable:!0}),Gt=(t,e)=>{for(var r in e)Yt(t,r,{get:e[r],enumerable:!0})},Xt={exports:{}};var Zt=(jt||(jt=1,Xt.exports=function(){var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",a="minute",s="hour",n="day",l="week",h="month",c="quarter",d="year",u="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={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(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},m=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},C={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+m(i,2,"0")+":"+m(o,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(i,h),a=r-o<0,s=e.clone().add(i+(a?-1:1),h);return+(-(i+(r-o)/(a?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:h,y:d,w:l,d:n,D:u,h:s,m:a,s:o,ms:i,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},x="en",b={};b[x]=y;var k="$isDayjsObject",w=function(t){return t instanceof v||!(!t||!t[k])},S=function t(e,r,i){var o;if(!e)return x;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(o=a),r&&(b[a]=r,o=a);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var n=e.name;b[n]=e,o=n}return!i&&o&&(x=o),o||!i&&x},T=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new v(r)},B=C;B.l=S,B.i=w,B.w=function(t,e){return T(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var v=function(){function y(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[k]=!0}var m=y.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(B.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(g);if(i){var o=i[2]-1||0,a=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return B},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(t,e){var r=T(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return T(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<T(t)},m.$g=function(t,e,r){return B.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,i=!!B.u(e)||e,c=B.p(t),p=function(t,e){var o=B.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return i?o:o.endOf(n)},g=function(t,e){return B.w(r.toDate()[t].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},f=this.$W,y=this.$M,m=this.$D,C="set"+(this.$u?"UTC":"");switch(c){case d:return i?p(1,0):p(31,11);case h:return i?p(1,y):p(0,y+1);case l:var x=this.$locale().weekStart||0,b=(f<x?f+7:f)-x;return p(i?m-b:m+(6-b),y);case n:case u:return g(C+"Hours",0);case s:return g(C+"Minutes",1);case a:return g(C+"Seconds",2);case o:return g(C+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,l=B.p(t),c="set"+(this.$u?"UTC":""),p=(r={},r[n]=c+"Date",r[u]=c+"Date",r[h]=c+"Month",r[d]=c+"FullYear",r[s]=c+"Hours",r[a]=c+"Minutes",r[o]=c+"Seconds",r[i]=c+"Milliseconds",r)[l],g=l===n?this.$D+(e-this.$W):e;if(l===h||l===d){var f=this.clone().set(u,1);f.$d[p](g),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[B.p(t)]()},m.add=function(i,c){var u,p=this;i=Number(i);var g=B.p(c),f=function(t){var e=T(p);return B.w(e.date(e.date()+Math.round(t*i)),p)};if(g===h)return this.set(h,this.$M+i);if(g===d)return this.set(d,this.$y+i);if(g===n)return f(1);if(g===l)return f(7);var y=(u={},u[a]=e,u[s]=r,u[o]=t,u)[g]||1,m=this.$d.getTime()+i*y;return B.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var i=t||"YYYY-MM-DDTHH:mm:ssZ",o=B.z(this),a=this.$H,s=this.$m,n=this.$M,l=r.weekdays,h=r.months,c=r.meridiem,d=function(t,r,o,a){return t&&(t[r]||t(e,i))||o[r].slice(0,a)},u=function(t){return B.s(a%12||12,t,"0")},g=c||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(f,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return B.s(e.$y,4,"0");case"M":return n+1;case"MM":return B.s(n+1,2,"0");case"MMM":return d(r.monthsShort,n,h,3);case"MMMM":return d(h,n);case"D":return e.$D;case"DD":return B.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,l,2);case"ddd":return d(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return B.s(a,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return g(a,s,!0);case"A":return g(a,s,!1);case"m":return String(s);case"mm":return B.s(s,2,"0");case"s":return String(e.$s);case"ss":return B.s(e.$s,2,"0");case"SSS":return B.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,u,p){var g,f=this,y=B.p(u),m=T(i),C=(m.utcOffset()-this.utcOffset())*e,x=this-m,b=function(){return B.m(f,m)};switch(y){case d:g=b()/12;break;case h:g=b();break;case c:g=b()/3;break;case l:g=(x-C)/6048e5;break;case n:g=(x-C)/864e5;break;case s:g=x/r;break;case a:g=x/e;break;case o:g=x/t;break;default:g=x}return p?g:B.a(g)},m.daysInMonth=function(){return this.endOf(h).$D},m.$locale=function(){return b[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=S(t,e,!0);return i&&(r.$L=i),r},m.clone=function(){return B.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()},y}(),F=v.prototype;return T.prototype=F,[["$ms",i],["$s",o],["$m",a],["$H",s],["$W",n],["$M",h],["$y",d],["$D",u]].forEach(function(t){F[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),T.extend=function(t,e){return t.$i||(t(e,v,T),t.$i=!0),T},T.locale=S,T.isDayjs=w,T.unix=function(t){return T(1e3*t)},T.en=b[x],T.Ls=b,T.p={},T}()),Xt.exports),Qt=t(Zt),Kt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Jt={trace:Vt((...t)=>{},"trace"),debug:Vt((...t)=>{},"debug"),info:Vt((...t)=>{},"info"),warn:Vt((...t)=>{},"warn"),error:Vt((...t)=>{},"error"),fatal:Vt((...t)=>{},"fatal")},te=Vt(function(t="fatal"){let e=Kt.fatal;"string"==typeof t?t.toLowerCase()in Kt&&(e=Kt[t]):"number"==typeof t&&(e=t),Jt.trace=()=>{},Jt.debug=()=>{},Jt.info=()=>{},Jt.warn=()=>{},Jt.error=()=>{},Jt.fatal=()=>{},e<=Kt.fatal&&(Jt.fatal=console.error?console.error.bind(console,ee("FATAL"),"color: orange"):console.log.bind(console,"",ee("FATAL"))),e<=Kt.error&&(Jt.error=console.error?console.error.bind(console,ee("ERROR"),"color: orange"):console.log.bind(console,"",ee("ERROR"))),e<=Kt.warn&&(Jt.warn=console.warn?console.warn.bind(console,ee("WARN"),"color: orange"):console.log.bind(console,"",ee("WARN"))),e<=Kt.info&&(Jt.info=console.info?console.info.bind(console,ee("INFO"),"color: lightblue"):console.log.bind(console,"",ee("INFO"))),e<=Kt.debug&&(Jt.debug=console.debug?console.debug.bind(console,ee("DEBUG"),"color: lightgreen"):console.log.bind(console,"",ee("DEBUG"))),e<=Kt.trace&&(Jt.trace=console.debug?console.debug.bind(console,ee("TRACE"),"color: lightgreen"):console.log.bind(console,"",ee("TRACE")))},"setLogLevel"),ee=Vt(t=>`%c${Qt().format("ss.SSS")} : ${t} : `,"format");const re={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+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;const o=(r/=100)<.5?r*(1+e):r+e-r*e,a=2*r-o;switch(i){case"r":return 255*re.hue2rgb(a,o,t+1/3);case"g":return 255*re.hue2rgb(a,o,t);case"b":return 255*re.hue2rgb(a,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const o=Math.max(t,e,r),a=Math.min(t,e,r),s=(o+a)/2;if("l"===i)return 100*s;if(o===a)return 0;const n=o-a;if("s"===i)return 100*(s>.5?n/(2-o-a):n/(o+a));switch(o){case t:return 60*((e-r)/n+(e<r?6:0));case e:return 60*((r-t)/n+2);case r:return 60*((t-e)/n+4);default:return-1}}},ie={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},oe={channel:re,lang:ie,unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},ae={};for(let t=0;t<=255;t++)ae[t]=oe.unit.dec2hex(t);const se=0,ne=1,le=2;let he=class{constructor(){this.type=se}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=se}is(t){return this.type===t}};const ce=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new he}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=se,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=oe.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=oe.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=oe.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=oe.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=oe.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=oe.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(le)||void 0===e?(this._ensureHSL(),oe.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(le)||void 0===e?(this._ensureHSL(),oe.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(le)||void 0===e?(this._ensureHSL(),oe.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(ne)||void 0===e?(this._ensureRGB(),oe.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(ne)||void 0===e?(this._ensureRGB(),oe.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(ne)||void 0===e?(this._ensureRGB(),oe.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(ne),this.changed=!0,this.data.r=t}set g(t){this.type.set(ne),this.changed=!0,this.data.g=t}set b(t){this.type.set(ne),this.changed=!0,this.data.b=t}set h(t){this.type.set(le),this.changed=!0,this.data.h=t}set s(t){this.type.set(le),this.changed=!0,this.data.s=t}set l(t){this.type.set(le),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),de={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(de.re);if(!e)return;const r=e[1],i=parseInt(r,16),o=r.length,a=o%4==0,s=o>4,n=s?1:17,l=s?8:4,h=a?0:-1,c=s?255:15;return ce.set({r:(i>>l*(h+3)&c)*n,g:(i>>l*(h+2)&c)*n,b:(i>>l*(h+1)&c)*n,a:a?(i&c)*n/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:o}=t;return o<1?`#${ae[Math.round(e)]}${ae[Math.round(r)]}${ae[Math.round(i)]}${ae[Math.round(255*o)]}`:`#${ae[Math.round(e)]}${ae[Math.round(r)]}${ae[Math.round(i)]}`}},ue={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(ue.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return oe.channel.clamp.h(.9*parseFloat(t));case"rad":return oe.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return oe.channel.clamp.h(360*parseFloat(t))}}return oe.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const r=t.match(ue.re);if(!r)return;const[,i,o,a,s,n]=r;return ce.set({h:ue._hue2deg(i),s:oe.channel.clamp.s(parseFloat(o)),l:oe.channel.clamp.l(parseFloat(a)),a:s?oe.channel.clamp.a(n?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:o}=t;return o<1?`hsla(${oe.lang.round(e)}, ${oe.lang.round(r)}%, ${oe.lang.round(i)}%, ${o})`:`hsl(${oe.lang.round(e)}, ${oe.lang.round(r)}%, ${oe.lang.round(i)}%)`}},pe={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=pe.colors[t];if(e)return de.parse(e)},stringify:t=>{const e=de.stringify(t);for(const t in pe.colors)if(pe.colors[t]===e)return t}},ge={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(114!==e&&82!==e)return;const r=t.match(ge.re);if(!r)return;const[,i,o,a,s,n,l,h,c]=r;return ce.set({r:oe.channel.clamp.r(o?2.55*parseFloat(i):parseFloat(i)),g:oe.channel.clamp.g(s?2.55*parseFloat(a):parseFloat(a)),b:oe.channel.clamp.b(l?2.55*parseFloat(n):parseFloat(n)),a:h?oe.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:o}=t;return o<1?`rgba(${oe.lang.round(e)}, ${oe.lang.round(r)}, ${oe.lang.round(i)}, ${oe.lang.round(o)})`:`rgb(${oe.lang.round(e)}, ${oe.lang.round(r)}, ${oe.lang.round(i)})`}},fe={format:{keyword:pe,hex:de,rgb:ge,rgba:ge,hsl:ue,hsla:ue},parse:t=>{if("string"!=typeof t)return t;const e=de.parse(t)||ge.parse(t)||ue.parse(t)||pe.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(le)||void 0===t.data.r?ue.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?ge.stringify(t):de.stringify(t)},ye=(t,e)=>{const r=fe.parse(t);for(const t in e)r[t]=oe.channel.clamp[t](e[t]);return fe.stringify(r)},me=(t,e,r=0,i=1)=>{if("number"!=typeof t)return ye(t,{a:e});const o=ce.set({r:oe.channel.clamp.r(t),g:oe.channel.clamp.g(e),b:oe.channel.clamp.b(r),a:oe.channel.clamp.a(i)});return fe.stringify(o)},Ce=t=>(t=>{const{r:e,g:r,b:i}=fe.parse(t),o=.2126*oe.channel.toLinear(e)+.7152*oe.channel.toLinear(r)+.0722*oe.channel.toLinear(i);return oe.lang.round(o)})(t)>=.5,xe=t=>!Ce(t),be=(t,e,r)=>{const i=fe.parse(t),o=i[e],a=oe.channel.clamp[e](o+r);return o!==a&&(i[e]=a),fe.stringify(i)},ke=(t,e)=>be(t,"l",e),we=(t,e)=>be(t,"l",-e),Se=(t,e)=>{const r=fe.parse(t),i={};for(const t in e)e[t]&&(i[t]=r[t]+e[t]);return ye(t,i)},Te=(t,e=100)=>{const r=fe.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{const{r:i,g:o,b:a,a:s}=fe.parse(t),{r:n,g:l,b:h,a:c}=fe.parse(e),d=r/100,u=2*d-1,p=s-c,g=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,f=1-g;return me(i*g+n*f,o*g+l*f,a*g+h*f,s*d+c*(1-d))})(r,t,e)};
2
+ /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
3
+ function Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}
4
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
5
+ function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,o,a,s,n=[],l=!0,h=!1;try{if(a=(r=r.call(t)).next,0===e);else for(;!(l=(i=a.call(r)).done)&&(n.push(i.value),n.length!==e);l=!0);}catch(t){h=!0,o=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Be(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Fe=Object.entries,Le=Object.setPrototypeOf,_e=Object.isFrozen,Me=Object.getPrototypeOf,Ae=Object.getOwnPropertyDescriptor;let Ee=Object.freeze,$e=Object.seal,Oe=Object.create,Ie="undefined"!=typeof Reflect&&Reflect,De=Ie.apply,qe=Ie.construct;Ee||(Ee=function(t){return t}),$e||($e=function(t){return t}),De||(De=function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(e,i)}),qe||(qe=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});const Pe=lr(Array.prototype.forEach),ze=lr(Array.prototype.lastIndexOf),Re=lr(Array.prototype.pop),We=lr(Array.prototype.push),Ne=lr(Array.prototype.slice),je=lr(Array.prototype.splice),He=Array.isArray,Ue=hr(Set),Ye=lr(Set.prototype.add),Ve=lr(Set.prototype.has),Ge=lr(String.prototype.toLowerCase),Xe=lr(String.prototype.toString),Ze=lr(String.prototype.match),Qe=lr(String.prototype.replace),Ke=lr(String.prototype.indexOf),Je=lr(String.prototype.trim),tr=lr(Number.prototype.toString),er=lr(Boolean.prototype.toString),rr="undefined"==typeof BigInt?null:lr(BigInt.prototype.toString),ir="undefined"==typeof Symbol?null:lr(Symbol.prototype.toString),or=lr(Object.prototype.hasOwnProperty),ar=lr(Object.prototype.toString),sr=lr(RegExp.prototype.test),nr=hr(TypeError);function lr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return De(t,e,i)}}function hr(t){return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return qe(t,r)}}function cr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge;if(Le&&Le(t,null),!He(e))return t;let i=e.length;for(;i--;){let o=e[i];if("string"==typeof o){const t=r(o);t!==o&&(_e(e)||(e[i]=t),o=t)}t[o]=!0}return t}function dr(t){for(let e=0;e<t.length;e++)or(t,e)||(t[e]=null);return t}function ur(t){const e=Oe(null);for(const i of Fe(t)){var r=ve(i,2);const o=r[0],a=r[1];or(t,o)&&(He(a)?e[o]=dr(a):a&&"object"==typeof a&&a.constructor===Object?e[o]=ur(a):e[o]=a)}return e}function pr(t,e){for(;null!==t;){const r=Ae(t,e);if(r){if(r.get)return lr(r.get);if("function"==typeof r.value)return lr(r.value)}t=Me(t)}return function(){return null}}const gr=Ee(["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"]),fr=Ee(["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"]),yr=Ee(["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"]),mr=Ee(["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"]),Cr=Ee(["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"]),xr=Ee(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),br=Ee(["#text"]),kr=Ee(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),wr=Ee(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Sr=Ee(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),Tr=Ee(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Br=$e(/{{[\w\W]*|^[\w\W]*}}/g),vr=$e(/<%[\w\W]*|^[\w\W]*%>/g),Fr=$e(/\${[\w\W]*/g),Lr=$e(/^data-[\-\w.\u00B7-\uFFFF]+$/),_r=$e(/^aria-[\-\w]+$/),Mr=$e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ar=$e(/^(?:\w+script|data):/i),Er=$e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$r=$e(/^html$/i),Or=$e(/^[a-z][.\w]*(-[.\w]+)+$/i),Ir=$e(/<[/\w!]/g),Dr=$e(/<[/\w]/g),qr=$e(/<\/no(script|embed|frames)/i),Pr=$e(/\/>/i),zr=1,Rr=3,Wr=7,Nr=8,jr=9,Hr=11,Ur=Ee(cr({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Yr=function(){return"undefined"==typeof window?null:window},Vr=function(t,e,r,i){return or(t,e)&&He(t[e])?cr(i.base?ur(i.base):{},t[e],i.transform):r},Gr=function(t,e,r){const i=or(t,e)?t[e]:void 0;return i&&"object"==typeof i?ur(i):r()};var Xr,Zr,Qr=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yr();const r=e=>t(e);if(r.version="3.4.17",r.removed=[],!e||!e.document||e.document.nodeType!==jr||!e.Element)return r.isSupported=!1,r;let i=e.document;const o=i,a=o.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,n=e.Node,l=e.Element,h=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,d=e.trustedTypes,u=l.prototype,p=pr(u,"cloneNode"),g=pr(u,"remove"),f=pr(u,"removeAttributeNode"),y=pr(u,"nextSibling"),m=pr(u,"childNodes"),C=pr(u,"parentNode"),x=pr(u,"shadowRoot"),b=pr(u,"attributes"),k=n&&n.prototype?pr(n.prototype,"nodeType"):null,w=n&&n.prototype?pr(n.prototype,"nodeName"):null,S=n&&n.prototype?pr(n.prototype,"ownerDocument"):null,T=function(t){return k?k(t):t.nodeType},B=function(t){return w?w(t):t.nodeName},v=function(t,e){for(;null!==t;){const r=Ae(t,e);if(r)return r.get?lr(r.get):null;t=Me(t)}return null}(u,"namespaceURI"),F=function(t){return v?v(t):t.namespaceURI};if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let L,_,M="",A=!1,E=0;const $=function(){if(E>0)throw nr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},O=function(t){$(),E++;try{return L.createHTML(t)}finally{E--}},I=function(){return A||(_=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(d,a),A=!0),_},D=i,q=D.implementation,P=D.createNodeIterator,z=D.createDocumentFragment,R=D.getElementsByTagName,W=o.importNode;let N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof Fe&&"function"==typeof C&&q&&void 0!==q.createHTMLDocument;const j=Br,H=vr,U=Fr,Y=Lr,V=_r,G=Ar,X=Er,Z=Or;let Q=Mr,K=null;const J=cr({},[...gr,...fr,...yr,...Cr,...br]);let tt=null;const et=cr({},[...kr,...wr,...Sr,...Tr]);let rt=Object.seal(Oe(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,ot=null;const at=Object.seal(Oe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let st=!0,nt=!0,lt=!1,ht=!0,ct=!1,dt=!0,ut=!1,pt=!1,gt=null,ft=null,yt=!1,mt=!1,Ct=!1,xt=!1,bt=!0,kt=!1;const wt="user-content-";let St=!0,Tt=!1,Bt=null,vt={},Ft=null;const Lt=cr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _t=null;const Mt=cr({},["audio","video","img","source","image","track"]);let At=null;const Et=cr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$t="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let Dt=It,qt=!1,Pt=null;const zt=cr({},[$t,Ot,It],Xe),Rt=Ee(["mi","mo","mn","ms","mtext"]);let Wt=cr({},Rt);const Nt=Ee(["annotation-xml"]);let jt=cr({},Nt);const Ht=cr({},["title","style","font","a","script"]);let Ut=null;const Yt=["application/xhtml+xml","text/html"];let Vt=null,Gt=null;const Xt=i.createElement("form"),Zt=function(t){return t instanceof RegExp||t instanceof Function},Qt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Gt&&Gt===t)return;t&&"object"==typeof t||(t={}),t=ur(t),Ut=-1===Yt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Vt="application/xhtml+xml"===Ut?Xe:Ge,K=Vr(t,"ALLOWED_TAGS",J,{transform:Vt}),tt=Vr(t,"ALLOWED_ATTR",et,{transform:Vt}),Pt=Vr(t,"ALLOWED_NAMESPACES",zt,{transform:Xe}),At=Vr(t,"ADD_URI_SAFE_ATTR",Et,{transform:Vt,base:Et}),_t=Vr(t,"ADD_DATA_URI_TAGS",Mt,{transform:Vt,base:Mt}),Ft=Vr(t,"FORBID_CONTENTS",Lt,{transform:Vt}),it=Vr(t,"FORBID_TAGS",ur({}),{transform:Vt}),ot=Vr(t,"FORBID_ATTR",ur({}),{transform:Vt}),vt=!!or(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?ur(t.USE_PROFILES):t.USE_PROFILES),st=!1!==t.ALLOW_ARIA_ATTR,nt=!1!==t.ALLOW_DATA_ATTR,lt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ht=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ct=t.SAFE_FOR_TEMPLATES||!1,dt=!1!==t.SAFE_FOR_XML,ut=t.WHOLE_DOCUMENT||!1,mt=t.RETURN_DOM||!1,Ct=t.RETURN_DOM_FRAGMENT||!1,xt=t.RETURN_TRUSTED_TYPE||!1,yt=t.FORCE_BODY||!1,bt=!1!==t.SANITIZE_DOM,kt=t.SANITIZE_NAMED_PROPS||!1,St=!1!==t.KEEP_CONTENT,Tt=t.IN_PLACE||!1,Q=function(t){try{return sr(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Mr,Dt="string"==typeof t.NAMESPACE?t.NAMESPACE:It,Wt=Gr(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>cr({},Rt)),jt=Gr(t,"HTML_INTEGRATION_POINTS",()=>cr({},Nt));const e=Gr(t,"CUSTOM_ELEMENT_HANDLING",()=>Oe(null));if(rt=Oe(null),or(e,"tagNameCheck")&&Zt(e.tagNameCheck)&&(rt.tagNameCheck=e.tagNameCheck),or(e,"attributeNameCheck")&&Zt(e.attributeNameCheck)&&(rt.attributeNameCheck=e.attributeNameCheck),or(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(rt.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),$e(rt),ct&&(nt=!1),Ct&&(mt=!0),vt&&(K=cr({},br),tt=Oe(null),!0===vt.html&&(cr(K,gr),cr(tt,kr)),!0===vt.svg&&(cr(K,fr),cr(tt,wr),cr(tt,Tr)),!0===vt.svgFilters&&(cr(K,yr),cr(tt,wr),cr(tt,Tr)),!0===vt.mathMl&&(cr(K,Cr),cr(tt,Sr),cr(tt,Tr))),at.tagCheck=null,at.attributeCheck=null,or(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?at.tagCheck=t.ADD_TAGS:He(t.ADD_TAGS)&&(K===J&&(K=ur(K)),cr(K,t.ADD_TAGS,Vt))),or(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?at.attributeCheck=t.ADD_ATTR:He(t.ADD_ATTR)&&(tt===et&&(tt=ur(tt)),cr(tt,t.ADD_ATTR,Vt))),or(t,"ADD_FORBID_CONTENTS")&&He(t.ADD_FORBID_CONTENTS)&&(Ft===Lt&&(Ft=ur(Ft)),cr(Ft,t.ADD_FORBID_CONTENTS,Vt)),St&&(K["#text"]=!0),ut&&cr(K,["html","head","body"]),K.table&&(cr(K,["tbody"]),delete it.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw nr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw nr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=L;L=t.TRUSTED_TYPES_POLICY;try{M=O("")}catch(t){throw L=e,t}}else null===t.TRUSTED_TYPES_POLICY?(L=void 0,M=""):(void 0===L&&(L=I()),L&&"string"==typeof M&&(M=O("")));Ee&&Ee(t),Gt=t},Kt=cr({},[...fr,...yr,...mr]),Jt=cr({},[...Cr,...xr]),te=function(t){const e=F(t),r=Ge(B(t)),i=C(t);let o,a;return i&&T(i)===zr?(o={namespaceURI:F(i)},a=Ge(B(i))):(o={namespaceURI:Dt},a="template"),!!Pt[e]&&(e===Ot?function(t,e,r){return e.namespaceURI===It?"svg"===t:e.namespaceURI===$t?"svg"===t&&("annotation-xml"===r||Wt[r]):Boolean(Kt[t])}(r,o,a):e===$t?function(t,e,r){return e.namespaceURI===It?"math"===t:e.namespaceURI===Ot?"math"===t&&jt[r]:Boolean(Jt[t])}(r,o,a):e===It?function(t,e,r){return!(e.namespaceURI===Ot&&!jt[r])&&!(e.namespaceURI===$t&&!Wt[r])&&!Jt[t]&&(Ht[t]||!Kt[t])}(r,o,a):!("application/xhtml+xml"!==Ut||!Pt[e]))},ee=function(t){We(r.removed,{element:t});try{C(t).removeChild(t)}catch(e){if(g(t),!C(t))throw nr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},re=function(t,e,r){try{f(t,e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},ie=function(t){ne(t);const e=m(t);e&&Pe(Ne(e),t=>{try{g(t)}catch(t){}});const r=T(t)===zr?b(t):null;if(r)for(let e=r.length-1;e>=0;--e){const i=r[e],o=i&&i.name;"string"==typeof o&&re(t,i,o)}},oe=function(t,e,i){if(!i)try{i=e.getAttributeNode(t)}catch(t){i=null}We(r.removed,{attribute:i||null,from:e});try{i?f(e,i):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(mt||Ct)try{ee(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ae=function(t){const e=b(t);if(e)for(let r=e.length-1;r>=0;--r){const i=e[r],o=i&&i.name;"string"!=typeof o||tt[Vt(o)]||re(t,i,o)}},se=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=[t];for(;i.length>0;){const t=i.pop();if(!1===e(t))continue;if(r&&T(t)===zr){const e=x(t);Ce(e)&&i.push(e)}const o=m(t);if(o)for(let t=o.length-1;t>=0;--t)i.push(o[t])}},ne=function(t){se(t,t=>{T(t)===zr&&ae(t)})},le=function(t){const e=[];return se(t,t=>{e.push(t)},!0),e},he=function(t,e){let i=!1;return Pe(r.removed,e=>{e.element&&(i=i||e.element===t,ne(e.element))}),function(t,e){const r=Ue();Pe(le(t),t=>{T(t)===zr&&Ye(r,t)}),Pe(e,t=>{T(t)!==zr||Ve(r,t)||ae(t)})}(t,e),i},ce=function(t,e,r,i){const o=pe(t);let a;for(;a=o.nextNode();)Ve(i,a)&&!Ve(Bt,a)&&(e&&be(N.uponSanitizeShadowNode,a,null),Te(a,r),qe(a,r),Ce(a.content)&&hr(a.content))},de=function(t,e){return!!dt&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ue=function(t){let e=null,r=null;if(yt)t="<remove></remove>"+t;else{const e=Ze(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===Ut&&Dt===It&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=L?O(t):t;if(Dt===It)try{e=(new c).parseFromString(o,Ut)}catch(t){}if(!e||!e.documentElement){e=q.createDocument(Dt,"template",null);try{e.documentElement.innerHTML=qt?M:o}catch(t){}}const a=e.body||e.documentElement;return t&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),Dt===It?R.call(e,ut?"html":"body")[0]:ut?e.documentElement:a},pe=function(t){const e=S?S(t):t.ownerDocument;return P.call(e||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ge=function(t){return t=Qe(t,j," "),t=Qe(t,H," "),t=Qe(t,U," ")},fe=function(t){var e;ye(t);const r=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");r&&Pe(r,t=>{Ce(t.content)&&fe(t.content)})},ye=function(t){t.normalize();const e=S?S(t):t.ownerDocument,r=P.call(e||t,t,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null);let i=r.nextNode();for(;i;)i.data=ge(i.data),i=r.nextNode()},me=function(t){const e=w?w(t):null;return"string"==typeof e&&("form"===Vt(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==b(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==k(t)||t.childNodes!==m(t)))},Ce=function(t){if(!k||"object"!=typeof t||null===t)return!1;try{return k(t)===Hr}catch(t){return!1}},xe=function(t){if(!k||"object"!=typeof t||null===t)return!1;try{return"number"==typeof k(t)}catch(t){return!1}};function be(t,e,i){0!==t.length&&Pe(t,t=>{t.call(r,e,i,Gt)})}const ke=function(t,e){if(t instanceof RegExp)return sr(t,e);if(t instanceof Function){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return Boolean(t(e,...i))}return!1},we=function(t,e,r,i){return 0===t.length?e:e===r||e===i?ur(e):e},Se=function(t,e){return t!==e&&null===C(t)&&(Tt&&ne(t),!0)},Te=function(t,e){if(function(t){Bt&&Ye(Bt,t)}(t),be(N.beforeSanitizeElements,t,null),Se(t,e))return!0;if(me(t))return ee(t),!0;const i=Vt(B(t));if(K=we(N.uponSanitizeElement,K,J,gt),be(N.uponSanitizeElement,t,{tagName:i,allowedTags:K}),Se(t,e))return!0;if(function(t,e){return!!(dt&&t.hasChildNodes()&&!xe(t.firstElementChild)&&sr(Ir,t.textContent)&&sr(Ir,t.innerHTML))||!!(dt&&Ur[e]&&T(t)===zr&&F(t)===It&&(xe(t.firstElementChild)||"string"==typeof t.textContent&&sr(Ir,t.textContent)))||t.nodeType===Wr||!(!dt||t.nodeType!==Nr||!sr(Dr,t.data))}(t,i))return ee(t),!0;if(it[i]||!(at.tagCheck instanceof Function&&at.tagCheck(i))&&!K[i]){const r=function(t,e,r){if(!it[e]&&Le(e)&&ke(rt.tagNameCheck,e))return!1;if(St&&!Ft[e]&&!Ft[Ge(e)]){const e=C(t),i=m(t);if(i&&e)for(let o=i.length-1;o>=0;--o){const a=t===r?p(i[o],!0):i[o];e.insertBefore(a,y(t))}}return ee(t),!0}(t,i,e);return!(!1!==r||(be(N.afterSanitizeElements,t,null),!Se(t,e)))||r}if(T(t)===zr&&!te(t))return ee(t),!0;if(("noscript"===i||"noembed"===i||"noframes"===i)&&sr(qr,t.innerHTML))return ee(t),!0;if(ct&&t.nodeType===Rr){const e=ge(t.textContent);t.textContent!==e&&(We(r.removed,{element:t.cloneNode()}),t.textContent=e)}return be(N.afterSanitizeElements,t,null),Se(t,e)},Be=function(t,e,r){if(ot[e])return!1;if(de(e,t))return!1;if(bt&&("id"===e||"name"===e)&&(r in i||r in Xt))return!1;const o=tt[e]||at.attributeCheck instanceof Function&&at.attributeCheck(e,t);return!(!nt||!sr(Y,e))||(!(!st||!sr(V,e))||(o?!!At[e]||(!!sr(Q,Qe(r,X,""))||(!("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Ke(r,"data:")||!_t[t])||(!(!lt||sr(G,Qe(r,X,"")))||!r))):Le(t)&&ke(rt.tagNameCheck,t)&&ke(rt.attributeNameCheck,e,t)||"is"===e&&rt.allowCustomizedBuiltInElements&&ke(rt.tagNameCheck,r)))},ve=cr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Le=function(t){return!ve[Ge(t)]&&sr(Z,t)},_e=function(t,e,r,i){if(L&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!r)switch(d.getAttributeType(t,e)){case"TrustedHTML":return O(i);case"TrustedScriptURL":return function(t){$(),E++;try{return L.createScriptURL(t)}finally{E--}}(i)}return i},Ie=function(t,e,r,i){try{return r?t.setAttributeNS(r,e,i):t.setAttribute(e,i),!me(t)||(ee(t),!1)}catch(r){return oe(e,t),!1}},De=function(t,e){return!(!dt||!sr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===Ge(t)&&null!==Ze(e,"href")},qe=function(t,e){if(be(N.beforeSanitizeAttributes,t,null),Se(t,e))return;const i=t.attributes;if(!i||me(t))return;tt=we(N.uponSanitizeAttribute,tt,et,ft);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tt,forceKeepAttr:void 0};let a=i.length;const s=Vt(t.nodeName);for(;a--;){const e=i[a],n=e.name,l=e.namespaceURI,h=e.value,c=Vt(n),d=h;let u="value"===n?d:Je(d),p=!1;o.attrName=c,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,be(N.uponSanitizeAttribute,t,o),u=o.attrValue,!kt||"id"!==c&&"name"!==c||0===Ke(u,wt)||(oe(n,t,e),u=wt+u,p=!0),De(n,u)?oe(n,t,e):o.forceKeepAttr||(o.keepAttr&&(ht||!sr(Pr,u))?(ct&&(u=ge(u)),Be(s,c,u)?(u=_e(s,c,l,u),u!==d&&Ie(t,n,l,u)&&p&&Re(r.removed)):oe(n,t,e)):oe(n,t,e))}be(N.afterSanitizeAttributes,t,null),Se(t,e)},hr=function(t){let e=null;const r=pe(t);for(be(N.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(be(N.uponSanitizeShadowNode,e,null),Te(e,t),qe(e,t),Ce(e.content)&&hr(e.content),T(e)===zr){const t=x(e);Ce(t)&&(dr(t),hr(t))}ct&&ye(t),be(N.afterSanitizeShadowDOM,t,null)},dr=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){hr(t.shadow);continue}const r=t.node,i=T(r)===zr,o=m(r);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(i){const t=w?w(r):null;if("string"==typeof t&&"template"===Vt(t)){const t=r.content;Ce(t)&&e.push({node:t,shadow:null})}}if(i){const t=x(r);Ce(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,s=null,n=null;if(qt=!t,qt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!xe(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return tr(t);case"boolean":return er(t);case"bigint":return rr?rr(t):"0";case"symbol":return ir?ir(t):"Symbol()";case"undefined":default:return ar(t);case"function":case"object":{if(null===t)return ar(t);const e=t,r=pr(e,"toString");if("function"==typeof r){const t=r(e);return"string"==typeof t?t:ar(t)}return ar(t)}}}(t)))throw nr("dirty is not a string, aborting");if(!r.isSupported)return t;pt?(K=gt,tt=ft):Qt(e),(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&(K=ur(K)),N.uponSanitizeAttribute.length>0&&(tt=ur(tt)),r.removed=[];const l=Tt&&"string"!=typeof t&&xe(t);let h=[];const c=Bt;if(l){!function(t){dt&&se(t,t=>{const e=T(t);if(e===Wr||e===Nr&&sr(Dr,t.data)){try{g(t)}catch(t){}return!1}if(e===zr){const e=t,r=Vt(B(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&de("for",r)&&e.removeAttribute("for")}catch(t){}}return!0})}(t);const e=B(t);if("string"==typeof e){const r=Vt(e);if(!K[r]||it[r])throw ie(t),nr("root node is forbidden and cannot be sanitized in-place")}if(me(t))throw ie(t),nr("root node is clobbered and cannot be sanitized in-place");h=le(t),Bt=Ue()}else if(xe(t))i=ue("\x3c!----\x3e"),a=i.ownerDocument.importNode(t,!0),a.nodeType===zr&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a),dr(i);else{if(!mt&&!ct&&!ut&&-1===t.indexOf("<"))return L&&xt?O(t):t;if(i=ue(t),!i)return mt?null:xt?M:""}i&&yt&&ee(i.firstChild);const d=l?t:i;try{l&&dr(t);const e=pe(d);for(;s=e.nextNode();)Te(s,d),qe(s,d),Ce(s.content)&&hr(s.content);l&&function(t,e){const r=Bt;let i=null;const o=()=>(i||(i=Ue(),Pe(e,t=>{Ye(i,t)})),i);for(let e=0;;e++){const i=le(t),a=[t];let s=!1;if(Pe(i,t=>{T(t)===Hr?We(a,t):s||Ve(r,t)||(s=Ve(o(),t))}),!s)return;if(e>=8)throw nr("the tree kept changing during in-place sanitization; refusing to return it");Pe(a,(e,r)=>{ce(e,r>0,t,o())})}}(t,h)}catch(e){throw l&&(ie(t),he(t,h)),e}finally{Bt=c}if(l){if(he(t,h))throw nr("a node selected for removal could not be safely returned; refusing to sanitize in place");return ct&&fe(t),t}if(mt){if(ct&&fe(i),Ct)for(n=z.call(i.ownerDocument);i.firstChild;)n.appendChild(i.firstChild);else n=i;return(tt.shadowroot||tt.shadowrootmode)&&(n=W.call(o,n,!0)),n}let u=ut?i.outerHTML:i.innerHTML;return ut&&K["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&sr($r,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),ct&&(u=ge(u)),L&&xt?O(u):u},r.setConfig=function(){Qt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),pt=!0,gt=K,ft=tt},r.clearConfig=function(){Gt=null,pt=!1,gt=null,ft=null,L=_,M=""},r.isValidAttribute=function(t,e,r){Gt||Qt({});const i=Vt(t),o=Vt(e);return("string"!=typeof r||!(De(e,r)||!ht&&sr(Pr,r)))&&Be(i,o,r)},r.addHook=function(t,e){"function"==typeof e&&or(N,t)&&We(N[t],e)},r.removeHook=function(t,e){if(or(N,t)){if(void 0!==e){const r=ze(N[t],e);return-1===r?void 0:je(N[t],r,1)[0]}return Re(N[t])}},r.removeHooks=function(t){or(N,t)&&(N[t]=[])},r.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),Kr=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Jr=/\s/,ti=Vt(t=>{let e="",r=0,i=0;for(;i<t.length;){const o=t.indexOf("%%",i);if(-1===o)break;const a=t.indexOf("\n",o);if(-1===a)break;let s=o;for(;s>r&&Jr.test(t[s-1]);)s--;e+=t.slice(r,s)+"\n",r=a+1,i=r}return e+t.slice(r)},"stripAnyComments"),ei=Vt(t=>"\n"===t||"\r"===t,"isLineBreak"),ri=Vt((t,e)=>{let r=-1;for(let i=e;i<t.length&&Jr.test(t[i]);i++)ei(t[i])&&(r=i);return r},"lastLineBreakInWhitespaceRun"),ii=Vt(t=>{let e=0;for(;e<t.length&&Jr.test(t[e])&&!ei(t[e]);)e++;const r=t.slice(0,e);if(!t.startsWith("---",e))return;const i=[];for(let r=e+3;r<t.length&&Jr.test(t[r]);r++)ei(t[r])&&i.push(r);if(0===i.length)return;const o=`${r}---`,a=Vt(e=>ei(t[e])&&t.startsWith(o,e+1)?ri(t,e+1+o.length):-1,"closingEnd");let s=-1;for(let e=i[0]+1;e<t.length;e++)-1!==a(e)&&(s=e);if(-1===s)return;let n=i[0];for(const t of i)t<s&&(n=t);const l=n+1;for(let e=l;e<=s;e++){const i=a(e);if(-1!==i)return{indent:r,body:t.slice(l,e),length:i+1}}},"matchFrontMatter"),oi=class extends Error{static{Vt(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},ai={},si=Vt(function(t,e){const r=ii(t);t=ti((r?t.slice(r.length):t).replace(Kr,""));for(const[r,{detector:i}]of Object.entries(ai)){if(i(t,e))return r}throw new oi(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),ni=Vt((...t)=>{for(const{id:e,detector:r,loader:i}of t)li(e,r,i)},"registerLazyLoadedDiagrams"),li=Vt((t,e,r)=>{ai[t]&&Jt.warn(`Detector with key ${t} already exists. Overwriting.`),ai[t]={detector:e,loader:r},Jt.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),hi=Vt(t=>ai[t].loader,"getDiagramLoader"),ci=Vt((t,e,{depth:r=2}={})=>{const i={depth:r};if(Array.isArray(e)&&!Array.isArray(t))return e.forEach(e=>ci(t,e,i)),t;if(Array.isArray(e)&&Array.isArray(t))return e.forEach(e=>{t.includes(e)||t.push(e)}),t;if(null==t||r<=0)return null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e;if(null!=e&&"object"==typeof t&&"object"==typeof e){const i=t;Object.entries(e).forEach(([e,o])=>{if("object"==typeof o){if(null===o)return;Object.hasOwn(t,e)||Object.defineProperty(t,e,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),void 0===i[e]&&(i[e]=Array.isArray(o)?[]:{}),"object"==typeof i[e]&&(i[e]=ci(i[e],o,{depth:r-1}))}else"object"!=typeof i[e]&&(Object.hasOwn(t,e)?i[e]=o:Object.defineProperty(t,e,{value:o,writable:!0,enumerable:!0,configurable:!0}))})}return t},"assignWithDepth"),di=ci,ui="#ffffff",pi="#f2f2f2",gi=Vt((t,e)=>Se(t,e?{s:-40,l:10}:{s:-40,l:-10}),"mkBorder"),fi=Vt(t=>"object"==typeof t&&null!==t&&!Array.isArray(t),"isPlainObject"),yi=Vt((t,e)=>fi(t)&&fi(e)?{...t,...e}:e,"applyOverride"),mi=class{static{Vt(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Te(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Te(this.tertiaryColor),this.lineColor=this.lineColor||Te(this.background),this.arrowheadColor=this.arrowheadColor||Te(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?we(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||we(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Te(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||ke(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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||we(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||we(this.mainBkg,10)):(this.rowOdd=this.rowOdd||ke(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||ke(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||Se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Se(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Se(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Se(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Se(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Se(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Se(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Se(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Se(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||Se(this.primaryColor,{l:-10}),this.pie5=this.pie5||Se(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Se(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Se(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Se(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Se(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.venn1=this.venn1??Se(this.primaryColor,{l:-30}),this.venn2=this.venn2??Se(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Se(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??Se(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Se(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Se(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Se(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Se(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},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||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?we(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||Se(this.primaryColor,{h:-30}),this.git4=this.git4||Se(this.primaryColor,{h:-60}),this.git5=this.git5||Se(this.primaryColor,{h:-90}),this.git6=this.git6||Se(this.primaryColor,{h:60}),this.git7=this.git7||Se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])}),Object.hasOwn(t,"nodeBorder")&&!Object.hasOwn(t,"useGradient")&&(this.useGradient=!1)}},Ci=Vt(t=>{const e=new mi;return e.calculate(t),e},"getThemeVariables"),xi=class{static{Vt(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ke(this.primaryColor,16),this.tertiaryColor=Se(this.primaryColor,{h:-160}),this.primaryBorderColor=Te(this.background),this.secondaryBorderColor=gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Te(this.primaryColor),this.secondaryTextColor=Te(this.secondaryColor),this.tertiaryTextColor=Te(this.tertiaryColor),this.lineColor=Te(this.background),this.textColor=Te(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ke(Te("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=me(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.radius=5,this.strokeWidth=1,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.clusterBkg="#302F3D",this.sectionBkgColor=we("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=we(this.sectionBkgColor,10),this.taskBorderColor=me(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=me(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||ke(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||we(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=ke(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=ke(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=ke(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=Te(this.doneTaskBkgColor),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=Se(this.primaryColor,{h:64}),this.fillType3=Se(this.secondaryColor,{h:64}),this.fillType4=Se(this.primaryColor,{h:-64}),this.fillType5=Se(this.secondaryColor,{h:-64}),this.fillType6=Se(this.primaryColor,{h:128}),this.fillType7=Se(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||Se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Se(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Se(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Se(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,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";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??ke(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},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?we(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ke(this.secondaryColor,20),this.git1=ke(this.pie2||this.secondaryColor,20),this.git2=ke(this.pie3||this.tertiaryColor,20),this.git3=ke(this.pie4||Se(this.primaryColor,{h:-30}),20),this.git4=ke(this.pie5||Se(this.primaryColor,{h:-60}),20),this.git5=ke(this.pie6||Se(this.primaryColor,{h:-90}),10),this.git6=ke(this.pie7||Se(this.primaryColor,{h:60}),10),this.git7=ke(this.pie8||Se(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Te(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Te(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.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||ke("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||ke("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||ke("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||ke("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||ke(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||ke(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ke(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ke(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},bi=Vt(t=>{const e=new xi;return e.calculate(t),e},"getThemeVariables"),ki=class{static{Vt(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Se(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Se(this.primaryColor,{h:-160}),this.primaryBorderColor=gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Te(this.primaryColor),this.secondaryTextColor=Te(this.secondaryColor),this.tertiaryTextColor=Te(this.tertiaryColor),this.lineColor=Te(this.background),this.textColor=Te(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=gi(this.primaryColor,this.darkMode),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.radius=5,this.strokeWidth=1,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.clusterBkg="#FBFBFF",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=me(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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",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.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Se(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||we(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||we(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Se(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Se(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Se(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||Te(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Te(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||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.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||ke(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||ke(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=Se(this.primaryColor,{h:64}),this.fillType3=Se(this.secondaryColor,{h:64}),this.fillType4=Se(this.primaryColor,{h:-64}),this.fillType5=Se(this.secondaryColor,{h:-64}),this.fillType6=Se(this.primaryColor,{h:128}),this.fillType7=Se(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Se(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Se(this.primaryColor,{l:-10}),this.pie5=this.pie5||Se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Se(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Se(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Se(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Se(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Se(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Se(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Se(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.venn1=this.venn1??Se(this.primaryColor,{l:-30}),this.venn2=this.venn2??Se(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Se(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??Se(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Se(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Se(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Se(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Se(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||Se(this.primaryColor,{h:-30}),this.git4=this.git4||Se(this.primaryColor,{h:-60}),this.git5=this.git5||Se(this.primaryColor,{h:-90}),this.git6=this.git6||Se(this.primaryColor,{h:60}),this.git7=this.git7||Se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||we(Te(this.git0),25),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Te(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Te(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if(Object.keys(this).forEach(t=>{"calculated"===this[t]&&(this[t]=void 0)}),"object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},wi=Vt(t=>{const e=new ki;return e.calculate(t),e},"getThemeVariables"),Si=class{static{Vt(this,"Theme")}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=ke("#cde498",10),this.primaryBorderColor=gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Te(this.primaryColor),this.secondaryTextColor=Te(this.secondaryColor),this.tertiaryTextColor=Te(this.primaryColor),this.lineColor=Te(this.background),this.textColor=Te(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,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.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=we(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Se(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Se(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||we(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||we(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Se(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Se(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Se(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||ke(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||ke(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=Se(this.primaryColor,{h:64}),this.fillType3=Se(this.secondaryColor,{h:64}),this.fillType4=Se(this.primaryColor,{h:-64}),this.fillType5=Se(this.secondaryColor,{h:-64}),this.fillType6=Se(this.primaryColor,{h:128}),this.fillType7=Se(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||Se(this.primaryColor,{l:-30}),this.pie5=this.pie5||Se(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Se(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Se(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Se(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Se(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.venn1=this.venn1??Se(this.primaryColor,{l:-30}),this.venn2=this.venn2??Se(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Se(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??Se(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Se(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Se(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Se(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Se(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||Se(this.primaryColor,{h:-30}),this.git4=this.git4||Se(this.primaryColor,{h:-60}),this.git5=this.git5||Se(this.primaryColor,{h:-90}),this.git6=this.git6||Se(this.primaryColor,{h:60}),this.git7=this.git7||Se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Te(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Te(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},Ti=Vt(t=>{const e=new Si;return e.calculate(t),e},"getThemeVariables"),Bi=class{static{Vt(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=ke(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Se(this.primaryColor,{h:-160}),this.primaryBorderColor=gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Te(this.primaryColor),this.secondaryTextColor=Te(this.secondaryColor),this.tertiaryTextColor=Te(this.tertiaryColor),this.lineColor=Te(this.background),this.textColor=Te(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.radius=5,this.strokeWidth=1,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.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||ke(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=ke(this.contrast,55),this.border2=this.contrast,this.actorBorder=ke(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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 t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Se(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Se(this.mainBkg,{l:-(8+5*t)});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.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.sectionBkgColor=ke(this.contrast,30),this.sectionBkgColor2=ke(this.contrast,30),this.taskBorderColor=we(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=ke(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=we(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=Se(this.primaryColor,{h:64}),this.fillType3=Se(this.secondaryColor,{h:64}),this.fillType4=Se(this.primaryColor,{h:-64}),this.fillType5=Se(this.secondaryColor,{h:-64}),this.fillType6=Se(this.primaryColor,{h:128}),this.fillType7=Se(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];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";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},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=we(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Se(this.primaryColor,{h:-30}),this.git4=this.pie5||Se(this.primaryColor,{h:-60}),this.git5=this.pie6||Se(this.primaryColor,{h:-90}),this.git6=this.pie7||Se(this.primaryColor,{h:60}),this.git7=this.pie8||Se(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},vi=Vt(t=>{const e=new Bi;return e.calculate(t),e},"getThemeVariables"),Fi=class{static{Vt(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=gi(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Te(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Te(this.tertiaryColor),this.lineColor=this.lineColor||Te(this.background),this.arrowheadColor=this.arrowheadColor||Te(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?we(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||we(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Te(this.lineColor),this.rectBkgColor=this.rectBkgColor||(xe(this.background)?ke(this.background,4):we(this.background,4));const t="#ECECFE",e="#E9E9F1",r=Se(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||ke(t,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.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||t,this.cScale1=this.cScale1||e,this.cScale2=this.cScale2||r,this.cScale3=this.cScale3||Se(t,{h:30}),this.cScale4=this.cScale4||Se(t,{h:60}),this.cScale5=this.cScale5||Se(t,{h:90}),this.cScale6=this.cScale6||Se(t,{h:120}),this.cScale7=this.cScale7||Se(t,{h:150}),this.cScale8=this.cScale8||Se(t,{h:210,l:150}),this.cScale9=this.cScale9||Se(t,{h:270}),this.cScale10=this.cScale10||Se(t,{h:300}),this.cScale11=this.cScale11||Se(t,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Se(this.mainBkg,{h:180,s:-15,l:i*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Se(this.mainBkg,{h:180,s:-15,l:i*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||Se(t,{h:64}),this.fillType3=this.fillType3||Se(e,{h:64}),this.fillType4=this.fillType4||Se(t,{h:-64}),this.fillType5=this.fillType5||Se(e,{h:-64}),this.fillType6=this.fillType6||Se(t,{h:128}),this.fillType7=this.fillType7||Se(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||Se(t,{l:-10}),this.pie5=this.pie5||Se(e,{l:-10}),this.pie6=this.pie6||Se(r,{l:-10}),this.pie7=this.pie7||Se(t,{h:60,l:-10}),this.pie8=this.pie8||Se(t,{h:-60,l:-10}),this.pie9=this.pie9||Se(t,{h:120,l:0}),this.pie10=this.pie10||Se(t,{h:60,l:-20}),this.pie11=this.pie11||Se(t,{h:-60,l:-20}),this.pie12=this.pie12||Se(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||Se(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?we(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||Se(t,{h:-30}),this.git4=this.git4||Se(t,{h:-60}),this.git5=this.git5||Se(t,{h:-90}),this.git6=this.git6||Se(t,{h:60}),this.git7=this.git7||Se(t,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},Li=Vt(t=>{const e=new Fi;return e.calculate(t),e},"getThemeVariables"),_i=class{static{Vt(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ke(this.primaryColor,16),this.tertiaryColor=Se(this.primaryColor,{h:-160}),this.primaryBorderColor=Te(this.background),this.secondaryBorderColor=gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Te(this.primaryColor),this.secondaryTextColor=Te(this.secondaryColor),this.tertiaryTextColor=Te(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ke(Te("#323D47"),10),this.border1="#ccc",this.border2=me(255,255,255,.25),this.arrowheadColor=Te(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Te(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Te(this.tertiaryColor),this.lineColor=this.lineColor||Te(this.background),this.arrowheadColor=this.arrowheadColor||Te(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.secondBkg="calculated"===this.secondBkg?ke(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,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?we(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||we(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Te(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||ke(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||Se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Se(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Se(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Se(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Se(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Se(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Se(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Se(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Se(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||Se(this.primaryColor,{l:-10}),this.pie5=this.pie5||Se(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Se(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Se(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Se(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Se(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?we(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},Mi=Vt(t=>{const e=new _i;return e.calculate(t),e},"getThemeVariables"),Ai=class{static{Vt(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=gi("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||Se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Te(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Te(this.tertiaryColor),this.lineColor=this.lineColor||Te(this.background),this.arrowheadColor=this.arrowheadColor||Te(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?we(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,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||we(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Te(this.lineColor),this.rectBkgColor=this.rectBkgColor||(xe(this.background)?ke(this.background,4):we(this.background,4));const t="#ECECFE",e="#E9E9F1",r=Se(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||r,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||e,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||ke(t,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.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,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.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=this.mainBkg;if(this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Se(this.mainBkg,{h:180,s:-15,l:i*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Se(this.mainBkg,{h:180,s:-15,l:i*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||e,this.fillType2=this.fillType2||Se(t,{h:64}),this.fillType3=this.fillType3||Se(e,{h:64}),this.fillType4=this.fillType4||Se(t,{h:-64}),this.fillType5=this.fillType5||Se(e,{h:-64}),this.fillType6=this.fillType6||Se(t,{h:128}),this.fillType7=this.fillType7||Se(e,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||e,this.pie3=this.pie3||r,this.pie4=this.pie4||Se(t,{l:-10}),this.pie5=this.pie5||Se(e,{l:-10}),this.pie6=this.pie6||Se(r,{l:-10}),this.pie7=this.pie7||Se(t,{h:60,l:-10}),this.pie8=this.pie8||Se(t,{h:-60,l:-10}),this.pie9=this.pie9||Se(t,{h:120,l:0}),this.pie10=this.pie10||Se(t,{h:60,l:-20}),this.pie11=this.pie11||Se(t,{h:-60,l:-20}),this.pie12=this.pie12||Se(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||Se(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?we(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||e,this.git2=this.git2||r,this.git3=this.git3||Se(t,{h:-30}),this.git4=this.git4||Se(t,{h:-60}),this.git5=this.git5||Se(t,{h:-90}),this.git6=this.git6||Se(t,{h:60}),this.git7=this.git7||Se(t,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},Ei=Vt(t=>{const e=new Ai;return e.calculate(t),e},"getThemeVariables"),$i=class{static{Vt(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ke(this.primaryColor,16),this.tertiaryColor=Se(this.primaryColor,{h:-160}),this.primaryBorderColor=Te(this.background),this.secondaryBorderColor=gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Te(this.primaryColor),this.secondaryTextColor=Te(this.secondaryColor),this.tertiaryTextColor=Te(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ke(Te("#323D47"),10),this.border1="#ccc",this.border2=me(255,255,255,.25),this.arrowheadColor=Te(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||Se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Te(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Te(this.tertiaryColor),this.lineColor=this.lineColor||Te(this.background),this.arrowheadColor=this.arrowheadColor||Te(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.secondBkg="calculated"===this.secondBkg?ke(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,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?we(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||we(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Te(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||ke(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,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.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||Se(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Se(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Se(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Se(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Se(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Se(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Se(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Se(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Se(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=we(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Se(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Se(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Se(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Se(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Se(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Se(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||Se(this.primaryColor,{l:-10}),this.pie5=this.pie5||Se(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Se(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Se(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Se(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Se(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Se(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Se(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Se(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?we(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Se(this.primaryColor,{h:-30}),this.git4=this.git4||Se(this.primaryColor,{h:-60}),this.git5=this.git5||Se(this.primaryColor,{h:-90}),this.git6=this.git6||Se(this.primaryColor,{h:60}),this.git7=this.git7||Se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},Oi=Vt(t=>{const e=new $i;return e.calculate(t),e},"getThemeVariables"),Ii=class{static{Vt(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=gi("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||Se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Te(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Te(this.tertiaryColor),this.lineColor=this.lineColor||Te(this.background),this.arrowheadColor=this.arrowheadColor||Te(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?we(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,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||we(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Te(this.lineColor),this.rectBkgColor=this.rectBkgColor||(xe(this.background)?ke(this.background,4):we(this.background,4));const t="#ECECFE",e=Se(t,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||ke(t,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.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const r=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Se(this.mainBkg,{h:180,s:-15,l:r*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Se(this.mainBkg,{h:180,s:-15,l:r*(8+3*t)});this.classText=this.classText||this.textColor;for(let t=0;t<8;t++)this["fillType"+t]=this["fillType"+t]||this.bkgColorArray[t];for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+(t+1)]=this["pie"+(t+1)]||this["cScale"+t];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";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this.borderColorArray[t%this.borderColorArray.length];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||Se(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?we(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||"#E9E9F1",this.git2=this.git2||e,this.git3=this.git3||Se(t,{h:-30}),this.git4=this.git4||Se(t,{h:-60}),this.git5=this.git5||Se(t,{h:-90}),this.git6=this.git6||Se(t,{h:60}),this.git7=this.git7||Se(t,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},Di=Vt(t=>{const e=new Ii;return e.calculate(t),e},"getThemeVariables"),qi=class{static{Vt(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ke(this.primaryColor,16),this.tertiaryColor=Se(this.primaryColor,{h:-160}),this.primaryBorderColor=Te(this.background),this.secondaryBorderColor=gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=gi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Te(this.primaryColor),this.secondaryTextColor=Te(this.secondaryColor),this.tertiaryTextColor=Te(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ke(Te("#323D47"),10),this.border1="#ccc",this.border2=me(255,255,255,.25),this.arrowheadColor=Te(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||Se(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Se(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||gi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||gi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||gi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||gi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Te(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Te(this.tertiaryColor),this.lineColor=this.lineColor||Te(this.background),this.arrowheadColor=this.arrowheadColor||Te(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.secondBkg="calculated"===this.secondBkg?ke(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,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?we(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||we(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Te(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",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||ke(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Te(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||we(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=we(this["cScale"+t],75);const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||Se(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor;["#701a75","#134e4a","#7c2d12","#581c87","#14532d","#4c1d95","#7f1d1d","#713f12"].forEach((t,e)=>{this["fillType"+e]=this["fillType"+e]||t});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+(t+1)]=this["pie"+(t+1)]||this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||"#28253D",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";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this.borderColorArray[t%this.borderColorArray.length];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Se(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Se(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Se(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Se(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Se(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Se(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xe(this.quadrant1Fill)?ke(this.quadrant1Fill):we(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?we(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Se(this.primaryColor,{h:-30}),this.git4=this.git4||Se(this.primaryColor,{h:-60}),this.git5=this.git5||Se(this.primaryColor,{h:-90}),this.git6=this.git6||Se(this.primaryColor,{h:60}),this.git7=this.git7||Se(this.primaryColor,{h:120}),this.darkMode?(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)):(this.git0=we(this.git0,25),this.git1=we(this.git1,25),this.git2=we(this.git2,25),this.git3=we(this.git3,25),this.git4=we(this.git4,25),this.git5=we(this.git5,25),this.git6=we(this.git6,25),this.git7=we(this.git7,25)),this.gitInv0=this.gitInv0||Te(this.git0),this.gitInv1=this.gitInv1||Te(this.git1),this.gitInv2=this.gitInv2||Te(this.git2),this.gitInv3=this.gitInv3||Te(this.git3),this.gitInv4=this.gitInv4||Te(this.git4),this.gitInv5=this.gitInv5||Te(this.git5),this.gitInv6=this.gitInv6||Te(this.git6),this.gitInv7=this.gitInv7||Te(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ui,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pi}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=yi(this[e],t[e])})}},Pi={base:{getThemeVariables:Ci},dark:{getThemeVariables:bi},default:{getThemeVariables:wi},forest:{getThemeVariables:Ti},neutral:{getThemeVariables:vi},neo:{getThemeVariables:Li},"neo-dark":{getThemeVariables:Mi},redux:{getThemeVariables:Ei},"redux-dark":{getThemeVariables:Oi},"redux-color":{getThemeVariables:Di},"redux-dark-color":{getThemeVariables:Vt(t=>{const e=new qi;return e.calculate(t),e},"getThemeVariables")}},zi={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",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,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,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},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",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,donutHole:0,legendPosition:"right",highlightSlice:""},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,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,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,labelRotation:0},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,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",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,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},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:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",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},Ri={...zi,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:Pi.default.getThemeVariables(),sequence:{...zi.sequence,messageFont:Vt(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:Vt(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:Vt(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:zi.class?.theme,look:zi.class?.look,layout:zi.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...zi.gantt,tickInterval:void 0,useWidth:void 0},c4:{...zi.c4,useWidth:void 0,personFont:Vt(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...zi.flowchart,inheritDir:!1},external_personFont:Vt(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:Vt(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:Vt(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:Vt(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:Vt(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:Vt(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:Vt(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:Vt(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:Vt(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:Vt(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:Vt(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:Vt(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:Vt(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:Vt(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:Vt(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:Vt(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:Vt(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:Vt(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:Vt(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:Vt(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:Vt(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...zi.pie,useWidth:984},xyChart:{...zi.xyChart,useWidth:void 0},requirement:{...zi.requirement,useWidth:void 0},packet:{...zi.packet},eventmodeling:{...zi.eventmodeling},treeView:{...zi.treeView,useWidth:void 0},radar:{...zi.radar},usecase:{...zi.usecase},railroad:{...zi.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...zi.ishikawa},sankey:{...zi.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...zi.venn},cynefin:{...zi.cynefin}},Wi=Vt((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...Wi(t[i],"")]:[...r,e+i],[]),"keyify"),Ni=new Set(Wi(Ri,"")),ji=Ri,Hi={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},Ui=Vt(t=>Hi[t]??t,"getDiagramConfigKey"),Yi={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},Vi=Vt((t,e)=>{for(const r of Object.keys(t)){const i=t[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||"string"!=typeof i||!e.test(i))&&(Jt.debug("sanitize deleting dictionary entry:",r,i),delete t[r])}},"sanitizeDictionaryConfig"),Gi=Vt(t=>{if(Jt.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach(t=>Gi(t));else{for(const e of Object.keys(t)){if(Jt.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Ni.has(e)||null==t[e]){Jt.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){const r=Yi[e];r?Vi(t[e],r):(Jt.debug("sanitizing object",e),Gi(t[e]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)e.includes(i)&&(Jt.debug("sanitizing css option",e),t[e]=Xi(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}Jt.debug("After sanitization",t)}},"sanitizeDirective"),Xi=Vt(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"),Zi=Object.freeze(ji),Qi=["theme","look","layout"],Ki=new Set(["classic","handDrawn","neo"]),Ji=Vt((t,e)=>"theme"===t?"null"===e||Object.hasOwn(Pi,e):"look"!==t||Ki.has(e),"isUsableAppearance"),to=Vt((t,e,r)=>{if(!t)return;const i=t[e];return[i?.[r],t[r]].find(t=>void 0!==t&&Ji(r,t))},"readAppearance"),eo=Vt(t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase()),"evaluate"),ro=di({},Zi),io={},oo=[],ao=di({},Zi),so=Vt((t,e)=>{if(!Zr)return;const r=[e,...[...oo].reverse(),io,Zi],i=t[Zr];for(const e of Qi)for(const o of r){const r=to(o,Zr,e);if(void 0!==r){t[e]=r,void 0!==i?.[e]&&(i[e]=r);break}}},"resolveAppearance"),no=Vt((t,e)=>{let r=di({},t),i={};for(const t of e)yo(t),i=di(i,t);r=di(r,i),so(r,i);if((Boolean(i.theme)||r.theme!==t.theme)&&r.theme&&Object.hasOwn(Pi,r.theme)){const t=di({},Xr),e=di(t.themeVariables||{},i.themeVariables);r.themeVariables=Pi[r.theme].getThemeVariables(e)}return wo(ao=r),ao},"updateCurrentConfig"),lo=Vt(t=>{Zr=void 0===t?void 0:Ui(t),no(ro,oo)},"setDiagramConfigScope"),ho=Vt(t=>(ro=di({},Zi),ro=di(ro,t),io=di({},t),t.theme&&Object.hasOwn(Pi,t.theme)&&(ro.themeVariables=Pi[t.theme].getThemeVariables(t.themeVariables)),no(ro,oo),ro),"setSiteConfig"),co=Vt(t=>{Xr=di({},t)},"saveConfigFromInitialize"),uo=Vt(t=>(ro=di(ro,t),io=di(io,t),no(ro,oo),ro),"updateSiteConfig"),po=Vt(()=>di({},ro),"getSiteConfig"),go=Vt(t=>(no(ao,[t]),fo()),"setConfig"),fo=Vt(()=>di({},ao),"getConfig"),yo=Vt(t=>{t&&(["secure",...ro.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(Jt.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=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&yo(t[e])}))},"sanitize"),mo=Vt(t=>{Gi(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),oo.push(t),no(ro,oo)},"addDirective"),Co=Vt((t=ro)=>{Zr=void 0,no(t,oo=[])},"reset"),xo={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},bo={},ko=Vt(t=>{bo[t]||(Jt.warn(xo[t]),bo[t]=!0)},"issueWarning"),wo=Vt(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&ko("LAZY_LOAD_DEPRECATED")},"checkConfig"),So=Vt(()=>{let t={};Xr&&(t=di(t,Xr));for(const e of oo)t=di(t,e);return t},"getUserDefinedConfig"),To=Vt(t=>(null!=t.flowchart?.htmlLabels&&ko("FLOWCHART_HTML_LABELS_DEPRECATED"),eo(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),Bo=/<\/?br\s*\/?>/gi,vo=new RegExp(Bo.source,"i"),Fo=Vt(t=>{if(!t)return[""];return qo(t).replace(/\\n/g,"#br#").split("#br#")},"getRows"),Lo=(()=>{let t=!1;return()=>{t||(_o(),t=!0)}})();function _o(){const t="data-temp-href-target";Qr.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Qr.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}Vt(_o,"setupDompurifyHooks");var Mo=Vt(t=>{Lo();return Qr.sanitize(t)},"removeScript"),Ao=Vt((t,e)=>{if(To(e)){const r=e.securityLevel;"antiscript"===r||"strict"===r||"sandbox"===r?t=Mo(t):"loose"!==r&&(t=(t=(t=qo(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=Do(t))}return t},"sanitizeMore"),Eo=Vt((t,e)=>t?t=e.dompurifyConfig?Qr.sanitize(Ao(t,e),e.dompurifyConfig).toString():Qr.sanitize(Ao(t,e),{FORBID_TAGS:["style"]}).toString():t,"sanitizeText"),$o=Vt((t,e)=>"string"==typeof t?Eo(t,e):t.flat().map(t=>Eo(t,e)),"sanitizeTextOrArray"),Oo=Vt(t=>vo.test(t),"hasBreaks"),Io=Vt(t=>t.split(Bo),"splitBreaks"),Do=Vt(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),qo=Vt(t=>t.replace(Bo,"#br#"),"breakToPlaceholder"),Po=Vt(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),zo=Vt(function(...t){const e=t.filter(t=>!isNaN(t));return Math.max(...e)},"getMax"),Ro=Vt(function(...t){const e=t.filter(t=>!isNaN(t));return Math.min(...e)},"getMin"),Wo=Vt(function(t){const e=t.split(/(,)/),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(","===i&&t>0&&t+1<e.length){const o=e[t-1],a=e[t+1];jo(o,a)&&(i=o+","+a,t++,r.pop())}r.push(Ho(i))}return r.join("")},"parseGenericTypes"),No=Vt((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),jo=Vt((t,e)=>{const r=No(t,"~"),i=No(e,"~");return 1===r&&1===i},"shouldCombineSets"),Ho=Vt(t=>{const e=No(t,"~");let r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const i=[...t];let o=i.indexOf("~"),a=i.lastIndexOf("~");for(;-1!==o&&-1!==a&&o!==a;)i[o]="<",i[a]=">",o=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Uo=Vt(()=>void 0!==window.MathMLElement,"isMathMLSupported"),Yo=/\$\$(.*?)\$\$/g,Vo=Vt(t=>(t.match(Yo)?.length??0)>0,"hasKatex"),Go=Vt(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await Zo(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);const o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),Xo=Vt(async(t,e)=>{if(!Vo(t))return t;if(!(Uo()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Yo,"MathML is unsupported in this environment.");{const{default:r}=await(import("./katex-ukrPy3Hx.js")),i=e.forceLegacyMathML||!Uo()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Bo).map(t=>Vo(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`).join("").replace(Yo,(t,e)=>r.renderToString(e,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Zo=Vt(async(t,e)=>Eo(await Xo(t,e),e),"renderKatexSanitized"),Qo={getRows:Fo,sanitizeText:Eo,sanitizeTextOrArray:$o,hasBreaks:Oo,splitBreaks:Io,lineBreakRegex:Bo,removeScript:Mo,getUrl:Po,evaluate:eo,getMax:zo,getMin:Ro},Ko=Vt(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),Jo=Vt(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"),ta=Vt(function(t,e,r,i){const o=Jo(e,r,i);Ko(t,o)},"configureSvgSize"),ea=Vt(function(t,e,r,i){const o=e.node().getBBox(),a=o.width,s=o.height;Jt.info(`SVG bounds: ${a}x${s}`,o);let n=0,l=0;Jt.info(`Graph bounds: ${n}x${l}`,t),n=a+2*r,l=s+2*r,Jt.info(`Calculated bounds: ${n}x${l}`),ta(e,l,n,i);const h=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox"),ra={};function ia(t){return[...t.cssRules].map(t=>t.cssText).join("\n")}Vt(ia,"cssStyleSheetToString");var oa=Vt((t,e,r,i)=>{let o="";return t in ra&&ra[t]?o=ra[t]({...r,svgId:i}):Jt.warn(`No theme found for ${t}`),`& {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: ${r.strokeWidth??1}px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${o}\n .node .neo-node {\n stroke: ${r.nodeBorder};\n }\n\n [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {\n stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};\n }\n [data-look="neo"].swimlane.cluster rect {\n filter: none;\n }\n\n\n [data-look="neo"].node path {\n stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};\n stroke-width: ${r.strokeWidth??1}px;\n }\n\n [data-look="neo"].node .outer-path {\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].node .neo-line path {\n stroke: ${r.nodeBorder};\n filter: none;\n }\n\n [data-look="neo"].node circle{\n stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].node circle .state-start{\n fill: #000000;\n }\n\n [data-look="neo"].icon-shape .icon {\n fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};\n }\n\n [data-look="neo"].icon-shape .icon-neo path {\n stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};\n filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};\n }\n\n ${e}\n`},"getStyles"),aa=Vt((t,e)=>{void 0!==e&&(ra[t]=e)},"addStylesForDiagram"),sa=oa,na={};Gt(na,{clear:()=>ua,getAccDescription:()=>ya,getAccTitle:()=>ga,getDiagramTitle:()=>Ca,setAccDescription:()=>fa,setAccTitle:()=>pa,setDiagramTitle:()=>ma});var la="",ha="",ca="",da=Vt(t=>Eo(t,fo()),"sanitizeText"),ua=Vt(()=>{la="",ca="",ha=""},"clear"),pa=Vt(t=>{la=da(t).replace(/^\s+/g,"")},"setAccTitle"),ga=Vt(()=>la,"getAccTitle"),fa=Vt(t=>{ca=da(t).replace(/\n\s+/g,"\n")},"setAccDescription"),ya=Vt(()=>ca,"getAccDescription"),ma=Vt(t=>{ha=da(t)},"setDiagramTitle"),Ca=Vt(()=>ha,"getDiagramTitle"),xa=Jt,ba=te,ka=fo,wa=go,Sa=Zi,Ta=Vt(t=>Eo(t,ka()),"sanitizeText"),Ba=ea,va=Vt(()=>na,"getCommonDb"),Fa={},La=Vt((t,e,r)=>{Fa[t]&&xa.warn(`Diagram with id ${t} already registered. Overwriting.`),Fa[t]=e,r&&li(t,r),aa(t,e.styles),e.injectUtils?.(xa,ba,ka,Ta,Ba,va(),()=>{})},"registerDiagram"),_a=Vt(t=>{if(t in Fa)return Fa[t];throw new Ma(t)},"getDiagram"),Ma=class extends Error{static{Vt(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}},Aa={value:()=>{}};function Ea(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new $a(i)}function $a(t){this._=t}function Oa(t,e){for(var r,i=0,o=t.length;i<o;++i)if((r=t[i]).name===e)return r.value}function Ia(t,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=Aa,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}$a.prototype=Ea.prototype={constructor:$a,on:function(t,e){var r,i=this._,o=function(t,e){return t.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");if(i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}})}(t+"",i),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(r=(t=o[a]).type)i[r]=Ia(i[r],t.name,e);else if(null==e)for(r in i)i[r]=Ia(i[r],t.name,null);return this}for(;++a<s;)if((r=(t=o[a]).type)&&(r=Oa(i[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new $a(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,i,o=new Array(r),a=0;a<r;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,r=(i=this._[t]).length;a<r;++a)i[a].value.apply(e,o)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],o=0,a=i.length;o<a;++o)i[o].value.apply(e,r)}};var Da="http://www.w3.org/1999/xhtml",qa={svg:"http://www.w3.org/2000/svg",xhtml:Da,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pa(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),qa.hasOwnProperty(e)?{space:qa[e],local:t}:t}function za(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Da&&e.documentElement.namespaceURI===Da?e.createElement(t):e.createElementNS(r,t)}}function Ra(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Wa(t){var e=Pa(t);return(e.local?Ra:za)(e)}function Na(){}function ja(t){return null==t?Na:function(){return this.querySelector(t)}}function Ha(){return[]}function Ua(t){return null==t?Ha:function(){return this.querySelectorAll(t)}}function Ya(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}function Va(t){return function(){return this.matches(t)}}function Ga(t){return function(e){return e.matches(t)}}var Xa=Array.prototype.find;function Za(){return this.firstElementChild}var Qa=Array.prototype.filter;function Ka(){return Array.from(this.children)}function Ja(t){return new Array(t.length)}function ts(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function es(t,e,r,i,o,a){for(var s,n=0,l=e.length,h=a.length;n<h;++n)(s=e[n])?(s.__data__=a[n],i[n]=s):r[n]=new ts(t,a[n]);for(;n<l;++n)(s=e[n])&&(o[n]=s)}function rs(t,e,r,i,o,a,s){var n,l,h,c=new Map,d=e.length,u=a.length,p=new Array(d);for(n=0;n<d;++n)(l=e[n])&&(p[n]=h=s.call(l,l.__data__,n,e)+"",c.has(h)?o[n]=l:c.set(h,l));for(n=0;n<u;++n)h=s.call(t,a[n],n,a)+"",(l=c.get(h))?(i[n]=l,l.__data__=a[n],c.delete(h)):r[n]=new ts(t,a[n]);for(n=0;n<d;++n)(l=e[n])&&c.get(p[n])===l&&(o[n]=l)}function is(t){return t.__data__}function os(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function as(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ss(t){return function(){this.removeAttribute(t)}}function ns(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ls(t,e){return function(){this.setAttribute(t,e)}}function hs(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function cs(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function ds(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function us(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ps(t){return function(){this.style.removeProperty(t)}}function gs(t,e,r){return function(){this.style.setProperty(t,e,r)}}function fs(t,e,r){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function ys(t,e){return t.style.getPropertyValue(e)||us(t).getComputedStyle(t,null).getPropertyValue(e)}function ms(t){return function(){delete this[t]}}function Cs(t,e){return function(){this[t]=e}}function xs(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function bs(t){return t.trim().split(/^|\s+/)}function ks(t){return t.classList||new ws(t)}function ws(t){this._node=t,this._names=bs(t.getAttribute("class")||"")}function Ss(t,e){for(var r=ks(t),i=-1,o=e.length;++i<o;)r.add(e[i])}function Ts(t,e){for(var r=ks(t),i=-1,o=e.length;++i<o;)r.remove(e[i])}function Bs(t){return function(){Ss(this,t)}}function vs(t){return function(){Ts(this,t)}}function Fs(t,e){return function(){(e.apply(this,arguments)?Ss:Ts)(this,t)}}function Ls(){this.textContent=""}function _s(t){return function(){this.textContent=t}}function Ms(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function As(){this.innerHTML=""}function Es(t){return function(){this.innerHTML=t}}function $s(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Os(){this.nextSibling&&this.parentNode.appendChild(this)}function Is(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ds(){return null}function qs(){var t=this.parentNode;t&&t.removeChild(this)}function Ps(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function zs(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Rs(t){return function(){var e=this.__on;if(e){for(var r,i=0,o=-1,a=e.length;i<a;++i)r=e[i],t.type&&r.type!==t.type||r.name!==t.name?e[++o]=r:this.removeEventListener(r.type,r.listener,r.options);++o?e.length=o:delete this.__on}}}function Ws(t,e,r){return function(){var i,o=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(o)for(var s=0,n=o.length;s<n;++s)if((i=o[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),void(i.value=e);this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},o?o.push(i):this.__on=[i]}}function Ns(t,e,r){var i=us(t),o=i.CustomEvent;"function"==typeof o?o=new o(e,r):(o=i.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function js(t,e){return function(){return Ns(this,t,e)}}function Hs(t,e){return function(){return Ns(this,t,e.apply(this,arguments))}}ts.prototype={constructor:ts,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)}},ws.prototype={add:function(t){this._names.indexOf(t)<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}};var Us=[null];function Ys(t,e){this._groups=t,this._parents=e}function Vs(){return new Ys([[document.documentElement]],Us)}function Gs(t){return"string"==typeof t?new Ys([[document.querySelector(t)]],[document.documentElement]):new Ys([[t]],Us)}Ys.prototype=Vs.prototype={constructor:Ys,select:function(t){"function"!=typeof t&&(t=ja(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var a,s,n=e[o],l=n.length,h=i[o]=new Array(l),c=0;c<l;++c)(a=n[c])&&(s=t.call(a,a.__data__,c,n))&&("__data__"in a&&(s.__data__=a.__data__),h[c]=s);return new Ys(i,this._parents)},selectAll:function(t){t="function"==typeof t?Ya(t):Ua(t);for(var e=this._groups,r=e.length,i=[],o=[],a=0;a<r;++a)for(var s,n=e[a],l=n.length,h=0;h<l;++h)(s=n[h])&&(i.push(t.call(s,s.__data__,h,n)),o.push(s));return new Ys(i,o)},selectChild:function(t){return this.select(null==t?Za:function(t){return function(){return Xa.call(this.children,t)}}("function"==typeof t?t:Ga(t)))},selectChildren:function(t){return this.selectAll(null==t?Ka:function(t){return function(){return Qa.call(this.children,t)}}("function"==typeof t?t:Ga(t)))},filter:function(t){"function"!=typeof t&&(t=Va(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var a,s=e[o],n=s.length,l=i[o]=[],h=0;h<n;++h)(a=s[h])&&t.call(a,a.__data__,h,s)&&l.push(a);return new Ys(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,is);var r=e?rs:es,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=o.length,s=new Array(a),n=new Array(a),l=new Array(a),h=0;h<a;++h){var c=i[h],d=o[h],u=d.length,p=os(t.call(c,c&&c.__data__,h,i)),g=p.length,f=n[h]=new Array(g),y=s[h]=new Array(g);r(c,d,f,y,l[h]=new Array(u),p,e);for(var m,C,x=0,b=0;x<g;++x)if(m=f[x]){for(x>=b&&(b=x+1);!(C=y[b])&&++b<g;);m._next=C||null}}return(s=new Ys(s,i))._enter=n,s._exit=l,s},enter:function(){return new Ys(this._enter||this._groups.map(Ja),this._parents)},exit:function(){return new Ys(this._exit||this._groups.map(Ja),this._parents)},join:function(t,e,r){var i=this.enter(),o=this,a=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==r?a.remove():r(a),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,o=r.length,a=i.length,s=Math.min(o,a),n=new Array(o),l=0;l<s;++l)for(var h,c=r[l],d=i[l],u=c.length,p=n[l]=new Array(u),g=0;g<u;++g)(h=c[g]||d[g])&&(p[g]=h);for(;l<o;++l)n[l]=r[l];return new Ys(n,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i,o=t[e],a=o.length-1,s=o[a];--a>=0;)(i=o[a])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=as);for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a){for(var s,n=r[a],l=n.length,h=o[a]=new Array(l),c=0;c<l;++c)(s=n[c])&&(h[c]=s);h.sort(e)}return new Ys(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var o,a=e[r],s=0,n=a.length;s<n;++s)(o=a[s])&&t.call(o,o.__data__,s,a);return this},attr:function(t,e){var r=Pa(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?ns:ss:"function"==typeof e?r.local?ds:cs:r.local?hs:ls)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?ps:"function"==typeof e?fs:gs)(t,e,null==r?"":r)):ys(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?ms:"function"==typeof e?xs:Cs)(t,e)):this.node()[t]},classed:function(t,e){var r=bs(t+"");if(arguments.length<2){for(var i=ks(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each(("function"==typeof e?Fs:e?Bs:vs)(r,e))},text:function(t){return arguments.length?this.each(null==t?Ls:("function"==typeof t?Ms:_s)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?As:("function"==typeof t?$s:Es)(t)):this.node().innerHTML},raise:function(){return this.each(Os)},lower:function(){return this.each(Is)},append:function(t){var e="function"==typeof t?t:Wa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:Wa(t),i=null==e?Ds:"function"==typeof e?e:ja(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(qs)},clone:function(t){return this.select(t?zs:Ps)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var i,o,a=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}})}(t+""),s=a.length;if(!(arguments.length<2)){for(n=e?Ws:Rs,i=0;i<s;++i)this.each(n(a[i],e,r));return this}var n=this.node().__on;if(n)for(var l,h=0,c=n.length;h<c;++h)for(i=0,l=n[h];i<s;++i)if((o=a[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Hs:js)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i,o=t[e],a=0,s=o.length;a<s;++a)(i=o[a])&&(yield i)}};var Xs,Zs,Qs=0,Ks=0,Js=0,tn=0,en=0,rn=0,on="object"==typeof performance&&performance.now?performance:Date,an="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function sn(){return en||(an(nn),en=on.now()+rn)}function nn(){en=0}function ln(){this._call=this._time=this._next=null}function hn(t,e,r){var i=new ln;return i.restart(t,e,r),i}function cn(){en=(tn=on.now())+rn,Qs=Ks=0;try{!function(){sn(),++Qs;for(var t,e=Xs;e;)(t=en-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Qs}()}finally{Qs=0,function(){var t,e,r=Xs,i=1/0;for(;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Xs=e);Zs=t,un(i)}(),en=0}}function dn(){var t=on.now(),e=t-tn;e>1e3&&(rn-=e,tn=t)}function un(t){Qs||(Ks&&(Ks=clearTimeout(Ks)),t-en>24?(t<1/0&&(Ks=setTimeout(cn,t-on.now()-rn)),Js&&(Js=clearInterval(Js))):(Js||(tn=on.now(),Js=setInterval(dn,1e3)),Qs=1,an(cn)))}function pn(t,e,r){var i=new ln;return e=null==e?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,r),i}ln.prototype=hn.prototype={constructor:ln,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?sn():+r)+(null==e?0:+e),this._next||Zs===this||(Zs?Zs._next=this:Xs=this,Zs=this),this._call=t,this._time=r,un()},stop:function(){this._call&&(this._call=null,this._time=1/0,un())}};var gn=Ea("start","end","cancel","interrupt"),fn=[];function yn(t,e,r,i,o,a){var s=t.__transition;if(s){if(r in s)return}else t.__transition={};!function(t,e,r){var i,o=t.__transition;function a(t){r.state=1,r.timer.restart(s,r.delay,r.time),r.delay<=t&&s(t-r.delay)}function s(a){var h,c,d,u;if(1!==r.state)return l();for(h in o)if((u=o[h]).name===r.name){if(3===u.state)return pn(s);4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[h]):+h<e&&(u.state=6,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[h])}if(pn(function(){3===r.state&&(r.state=4,r.timer.restart(n,r.delay,r.time),n(a))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(r.state=3,i=new Array(d=r.tween.length),h=0,c=-1;h<d;++h)(u=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[++c]=u);i.length=c+1}}function n(e){for(var o=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(l),r.state=5,1),a=-1,s=i.length;++a<s;)i[a].call(t,o);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){for(var i in r.state=6,r.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=r,r.timer=hn(a,0,r.time)}(t,r,{name:e,index:i,group:o,on:gn,tween:fn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function mn(t,e){var r=xn(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Cn(t,e){var r=xn(t,e);if(r.state>3)throw new Error("too late; already running");return r}function xn(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function bn(t,e){var r,i;return function(){var o=Cn(this,t),a=o.tween;if(a!==r)for(var s=0,n=(i=r=a).length;s<n;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}o.tween=i}}function kn(t,e,r){var i,o;if("function"!=typeof r)throw new Error;return function(){var a=Cn(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var n={name:e,value:r},l=0,h=o.length;l<h;++l)if(o[l].name===e){o[l]=n;break}l===h&&o.push(n)}a.tween=o}}function wn(t,e,r){var i=t._id;return t.each(function(){var t=Cn(this,i);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return xn(t,i).value[e]}}function Sn(t,e){var r;return("number"==typeof e?i:e instanceof o?a:(r=o(e))?(e=r,a):s)(t,e)}function Tn(t){return function(){this.removeAttribute(t)}}function Bn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vn(t,e,r){var i,o,a=r+"";return function(){var s=this.getAttribute(t);return s===a?null:s===i?o:o=e(i=s,r)}}function Fn(t,e,r){var i,o,a=r+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===a?null:s===i?o:o=e(i=s,r)}}function Ln(t,e,r){var i,o,a;return function(){var s,n,l=r(this);if(null!=l)return(s=this.getAttribute(t))===(n=l+"")?null:s===i&&n===o?a:(o=n,a=e(i=s,l));this.removeAttribute(t)}}function _n(t,e,r){var i,o,a;return function(){var s,n,l=r(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(n=l+"")?null:s===i&&n===o?a:(o=n,a=e(i=s,l));this.removeAttributeNS(t.space,t.local)}}function Mn(t,e){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}(t,o)),r}return o._value=e,o}function An(t,e){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}(t,o)),r}return o._value=e,o}function En(t,e){return function(){mn(this,t).delay=+e.apply(this,arguments)}}function $n(t,e){return e=+e,function(){mn(this,t).delay=e}}function On(t,e){return function(){Cn(this,t).duration=+e.apply(this,arguments)}}function In(t,e){return e=+e,function(){Cn(this,t).duration=e}}var Dn=Vs.prototype.constructor;function qn(t){return function(){this.style.removeProperty(t)}}var Pn=0;function zn(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function Rn(){return++Pn}var Wn=Vs.prototype;zn.prototype={constructor:zn,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=ja(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var n,l,h=i[s],c=h.length,d=a[s]=new Array(c),u=0;u<c;++u)(n=h[u])&&(l=t.call(n,n.__data__,u,h))&&("__data__"in n&&(l.__data__=n.__data__),d[u]=l,yn(d[u],e,r,u,d,xn(n,r)));return new zn(a,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=Ua(t));for(var i=this._groups,o=i.length,a=[],s=[],n=0;n<o;++n)for(var l,h=i[n],c=h.length,d=0;d<c;++d)if(l=h[d]){for(var u,p=t.call(l,l.__data__,d,h),g=xn(l,r),f=0,y=p.length;f<y;++f)(u=p[f])&&yn(u,e,r,f,p,g);a.push(p),s.push(l)}return new zn(a,s,e,r)},selectChild:Wn.selectChild,selectChildren:Wn.selectChildren,filter:function(t){"function"!=typeof t&&(t=Va(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o)for(var a,s=e[o],n=s.length,l=i[o]=[],h=0;h<n;++h)(a=s[h])&&t.call(a,a.__data__,h,s)&&l.push(a);return new zn(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,o=r.length,a=Math.min(i,o),s=new Array(i),n=0;n<a;++n)for(var l,h=e[n],c=r[n],d=h.length,u=s[n]=new Array(d),p=0;p<d;++p)(l=h[p]||c[p])&&(u[p]=l);for(;n<i;++n)s[n]=e[n];return new zn(s,this._parents,this._name,this._id)},selection:function(){return new Dn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Rn(),i=this._groups,o=i.length,a=0;a<o;++a)for(var s,n=i[a],l=n.length,h=0;h<l;++h)if(s=n[h]){var c=xn(s,e);yn(s,t,r,h,n,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new zn(i,this._parents,t,r)},call:Wn.call,nodes:Wn.nodes,node:Wn.node,size:Wn.size,empty:Wn.empty,each:Wn.each,on:function(t,e){var r=this._id;return arguments.length<2?xn(this.node(),r).on.on(t):this.each(function(t,e,r){var i,o,a=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?mn:Cn;return function(){var s=a(this,t),n=s.on;n!==i&&(o=(i=n).copy()).on(e,r),s.on=o}}(r,t,e))},attr:function(t,e){var r=Pa(t),i="transform"===r?Ut:Sn;return this.attrTween(t,"function"==typeof e?(r.local?_n:Ln)(r,i,wn(this,"attr."+t,e)):null==e?(r.local?Bn:Tn)(r):(r.local?Fn:vn)(r,i,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var i=Pa(t);return this.tween(r,(i.local?Mn:An)(i,e))},style:function(t,e,r){var i="transform"==(t+="")?Ht:Sn;return null==e?this.styleTween(t,function(t,e){var r,i,o;return function(){var a=ys(this,t),s=(this.style.removeProperty(t),ys(this,t));return a===s?null:a===r&&s===i?o:o=e(r=a,i=s)}}(t,i)).on("end.style."+t,qn(t)):"function"==typeof e?this.styleTween(t,function(t,e,r){var i,o,a;return function(){var s=ys(this,t),n=r(this),l=n+"";return null==n&&(this.style.removeProperty(t),l=n=ys(this,t)),s===l?null:s===i&&l===o?a:(o=l,a=e(i=s,n))}}(t,i,wn(this,"style."+t,e))).each(function(t,e){var r,i,o,a,s="style."+e,n="end."+s;return function(){var l=Cn(this,t),h=l.on,c=null==l.value[s]?a||(a=qn(e)):void 0;h===r&&o===c||(i=(r=h).copy()).on(n,o=c),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,r){var i,o,a=r+"";return function(){var s=ys(this,t);return s===a?null:s===i?o:o=e(i=s,r)}}(t,i,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,r){var i,o;function a(){var a=e.apply(this,arguments);return a!==o&&(i=(o=a)&&function(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}(t,a,r)),i}return a._value=e,a}(t,e,null==r?"":r))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(wn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,r;function i(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i,o=xn(this.node(),r).tween,a=0,s=o.length;a<s;++a)if((i=o[a]).name===t)return i.value;return null}return this.each((null==e?bn:kn)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?En:$n)(e,t)):xn(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?On:In)(e,t)):xn(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Cn(this,t).ease=e}}(e,t)):xn(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw new Error;Cn(this,t).ease=r}}(this._id,t))},end:function(){var t,e,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var n={value:s},l={value:function(){0===--o&&a()}};r.each(function(){var r=Cn(this,i),o=r.on;o!==t&&((e=(t=o).copy())._.cancel.push(n),e._.interrupt.push(n),e._.end.push(l)),r.on=e}),0===o&&a()})},[Symbol.iterator]:Wn[Symbol.iterator]};var Nn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function jn(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 Hn(t,e,r){this.k=t,this.x=e,this.y=r}Vs.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,i,o,a=t.__transition,s=!0;if(a){for(o in e=null==e?null:e+"",a)(r=a[o]).name===e?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[o]):s=!1;s&&delete t.__transition}}(this,t)})},Vs.prototype.transition=function(t){var e,r;t instanceof zn?(e=t._id,t=t._name):(e=Rn(),(r=Nn).time=sn(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s,n=i[a],l=n.length,h=0;h<l;++h)(s=n[h])&&yn(s,t,e,h,n,r||jn(s,e));return new zn(i,this._parents,t,e)},Hn.prototype={constructor:Hn,scale:function(t){return 1===t?this:new Hn(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Hn(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+")"}},Hn.prototype;var Un=Vt(t=>{const{securityLevel:e}=ka();let r=Gs("body");if("sandbox"===e){const e=Gs(`#i${t}`);r=Gs((e.node()?.contentDocument??document).body)}return r.select(`#${t}`)},"selectSvgElement");function Yn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}Vt(Yn,"getDefaultExportFromCjs");var Vn,Gn,Xn,Zn,Qn,Kn,Jn,tl,el,rl,il,ol,al,sl,nl,ll,hl,cl,dl,ul,pl,gl,fl,yl,ml,Cl,xl,bl,kl,wl,Sl,Tl,Bl,vl,Fl,Ll,_l,Ml,Al,El,$l,Ol,Il,Dl,ql={},Pl={},zl={};function Rl(){if(Vn)return zl;function t(t){return null==t}function e(t){return"object"==typeof t&&null!==t}function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}function i(t,e){if(e){const r=Object.keys(e);for(let i=0,o=r.length;i<o;i+=1){const o=r[i];t[o]=e[o]}}return t}function o(t,e){let r="";for(let i=0;i<e;i+=1)r+=t;return r}function a(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}return Vn=1,Vt(t,"isNothing"),Vt(e,"isObject"),Vt(r,"toArray"),Vt(i,"extend"),Vt(o,"repeat"),Vt(a,"isNegativeZero"),zl.isNothing=t,zl.isObject=e,zl.toArray=r,zl.repeat=o,zl.isNegativeZero=a,zl.extend=i,zl}function Wl(){if(Xn)return Gn;function t(t,e){let r="";const 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+="\n\n"+t.mark.snippet),i+" "+r):i}function e(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return Xn=1,Vt(t,"formatError"),Vt(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=Vt(function(e){return this.name+": "+t(this,e)},"toString"),Gn=e}function Nl(){if(Qn)return Zn;Qn=1;const t=Rl();function e(t,e,r,i,o){let a="",s="";const n=Math.floor(o/2)-1;return i-e>n&&(a=" ... ",e=i-n+a.length),r-i>n&&(s=" ...",r=i+n-s.length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:i-e+a.length}}function r(e,r){return t.repeat(" ",r-e.length)+e}function i(i,o){if(o=Object.create(o||null),!i.buffer)return null;o.maxLength||(o.maxLength=79),"number"!=typeof o.indent&&(o.indent=1),"number"!=typeof o.linesBefore&&(o.linesBefore=3),"number"!=typeof o.linesAfter&&(o.linesAfter=2);const a=/\r?\n|\r|\0/g,s=[0],n=[];let l,h=-1;for(;l=a.exec(i.buffer);)n.push(l.index),s.push(l.index+l[0].length),i.position<=l.index&&h<0&&(h=s.length-2);h<0&&(h=s.length-1);let c="";const d=Math.min(i.line+o.linesAfter,n.length).toString().length,u=o.maxLength-(o.indent+d+3);for(let a=1;a<=o.linesBefore&&!(h-a<0);a++){const l=e(i.buffer,s[h-a],n[h-a],i.position-(s[h]-s[h-a]),u);c=t.repeat(" ",o.indent)+r((i.line-a+1).toString(),d)+" | "+l.str+"\n"+c}const p=e(i.buffer,s[h],n[h],i.position,u);c+=t.repeat(" ",o.indent)+r((i.line+1).toString(),d)+" | "+p.str+"\n",c+=t.repeat("-",o.indent+d+3+p.pos)+"^\n";for(let a=1;a<=o.linesAfter&&!(h+a>=n.length);a++){const l=e(i.buffer,s[h+a],n[h+a],i.position-(s[h]-s[h+a]),u);c+=t.repeat(" ",o.indent)+r((i.line+a+1).toString(),d)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}return Vt(e,"getLine"),Vt(r,"padStart"),Vt(i,"makeSnippet"),Zn=i}function jl(){if(Jn)return Kn;Jn=1;const t=Wl(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(t){const e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function o(o,a){if(a=a||{},Object.keys(a).forEach(function(r){if(-1===e.indexOf(r))throw new t('Unknown option "'+r+'" is met in definition of "'+o+'" YAML type.')}),this.options=a,this.tag=o,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(t){return t},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),-1===r.indexOf(this.kind))throw new t('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}return Vt(i,"compileStyleAliases"),Vt(o,"Type2"),Kn=o}function Hl(){if(el)return tl;el=1;const t=Wl(),e=jl();function r(t,e){const r=[];return t[e].forEach(function(t){let e=r.length;r.forEach(function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)}),r[e]=t}),r}function i(){const t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function e(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}Vt(e,"collectType");for(let t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(e);return t}function o(t){return this.extend(t)}return Vt(r,"compileList"),Vt(i,"compileMap"),Vt(o,"Schema2"),o.prototype.extend=Vt(function(a){let s=[],n=[];if(a instanceof e)n.push(a);else if(Array.isArray(a))n=n.concat(a);else{if(!a||!Array.isArray(a.implicit)&&!Array.isArray(a.explicit))throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");a.implicit&&(s=s.concat(a.implicit)),a.explicit&&(n=n.concat(a.explicit))}s.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const l=Object.create(o.prototype);return l.implicit=(this.implicit||[]).concat(s),l.explicit=(this.explicit||[]).concat(n),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=i(l.compiledImplicit,l.compiledExplicit),l},"extend"),tl=o}function Ul(){if(il)return rl;il=1;const t=jl();return rl=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:Vt(function(t){return null!==t?t:""},"construct")})}function Yl(){if(al)return ol;al=1;const t=jl();return ol=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:Vt(function(t){return null!==t?t:[]},"construct")})}function Vl(){if(nl)return sl;nl=1;const t=jl();return sl=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:Vt(function(t){return null!==t?t:{}},"construct")})}function Gl(){if(hl)return ll;hl=1;const t=Hl();return ll=new t({explicit:[Ul(),Yl(),Vl()]})}function Xl(){if(dl)return cl;dl=1;const t=jl();function e(t){if(null===t)return!0;const e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function r(){return null}function i(t){return null===t}return Vt(e,"resolveYamlNull"),Vt(r,"constructYamlNull"),Vt(i,"isNull"),cl=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:r,predicate:i,represent:{canonical:Vt(function(){return"~"},"canonical"),lowercase:Vt(function(){return"null"},"lowercase"),uppercase:Vt(function(){return"NULL"},"uppercase"),camelcase:Vt(function(){return"Null"},"camelcase"),empty:Vt(function(){return""},"empty")},defaultStyle:"lowercase"})}function Zl(){if(pl)return ul;pl=1;const t=jl();function e(t){if(null===t)return!1;const e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function r(t){return"true"===t||"True"===t||"TRUE"===t}function i(t){return"[object Boolean]"===Object.prototype.toString.call(t)}return Vt(e,"resolveYamlBoolean"),Vt(r,"constructYamlBoolean"),Vt(i,"isBoolean"),ul=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:r,predicate:i,represent:{lowercase:Vt(function(t){return t?"true":"false"},"lowercase"),uppercase:Vt(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:Vt(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"})}function Ql(){if(fl)return gl;fl=1;const t=Rl(),e=jl();function r(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function i(t){return t>=48&&t<=55}function o(t){return t>=48&&t<=57}function a(t){if(null===t)return!1;const e=t.length;let a=0,n=!1;if(!e)return!1;let l=t[a];if("-"!==l&&"+"!==l||(l=t[++a]),"0"===l){if(a+1===e)return!0;if(l=t[++a],"b"===l){for(a++;a<e;a++){if(l=t[a],"0"!==l&&"1"!==l)return!1;n=!0}return n&&isFinite(s(t))}if("x"===l){for(a++;a<e;a++){if(!r(t.charCodeAt(a)))return!1;n=!0}return n&&isFinite(s(t))}if("o"===l){for(a++;a<e;a++){if(!i(t.charCodeAt(a)))return!1;n=!0}return n&&isFinite(s(t))}}for(;a<e;a++){if(!o(t.charCodeAt(a)))return!1;n=!0}return!!n&&isFinite(s(t))}function s(t){let e=t,r=1,i=e[0];if("-"!==i&&"+"!==i||("-"===i&&(r=-1),e=e.slice(1),i=e[0]),"0"===e)return 0;if("0"===i){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function n(t){return s(t)}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!t.isNegativeZero(e)}return Vt(r,"isHexCode"),Vt(i,"isOctCode"),Vt(o,"isDecCode"),Vt(a,"resolveYamlInteger"),Vt(s,"parseYamlInteger"),Vt(n,"constructYamlInteger"),Vt(l,"isInteger"),gl=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:n,predicate:l,represent:{binary:Vt(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:Vt(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:Vt(function(t){return t.toString(10)},"decimal"),hexadecimal:Vt(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"]}})}function Kl(){if(ml)return yl;ml=1;const t=Rl(),e=jl(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(t){return null!==t&&(!!r.test(t)&&(!!isFinite(parseFloat(t,10))||i.test(t)))}function a(t){let e=t.toLowerCase();const r="-"===e[0]?-1:1;return"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}Vt(o,"resolveYamlFloat"),Vt(a,"constructYamlFloat");const s=/^[-+]?[0-9]+e/;function n(e,r){if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";const i=e.toString(10);return s.test(i)?i.replace("e",".e"):i}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))}return Vt(n,"representYamlFloat"),Vt(l,"isFloat"),yl=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:a,predicate:l,represent:n,defaultStyle:"lowercase"})}function Jl(){return xl?Cl:(xl=1,Cl=Gl().extend({implicit:[Xl(),Zl(),Ql(),Kl()]}))}function th(){return kl?bl:(kl=1,bl=Jl())}function eh(){if(Sl)return wl;Sl=1;const t=jl(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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 i(t){return null!==t&&(null!==e.exec(t)||null!==r.exec(t))}function o(t){let i=0,o=null,a=e.exec(t);if(null===a&&(a=r.exec(t)),null===a)throw new Error("Date resolve error");const s=+a[1],n=+a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(s,n,l));const h=+a[4],c=+a[5],d=+a[6];if(a[7]){for(i=a[7].slice(0,3);i.length<3;)i+="0";i=+i}if(a[9]){o=6e4*(60*+a[10]+ +(a[11]||0)),"-"===a[9]&&(o=-o)}const u=new Date(Date.UTC(s,n,l,h,c,d,i));return o&&u.setTime(u.getTime()-o),u}function a(t){return t.toISOString()}return Vt(i,"resolveYamlTimestamp"),Vt(o,"constructYamlTimestamp"),Vt(a,"representYamlTimestamp"),wl=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:o,instanceOf:Date,represent:a})}function rh(){if(Bl)return Tl;Bl=1;const t=jl();function e(t){return"<<"===t||null===t}return Vt(e,"resolveYamlMerge"),Tl=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e})}function ih(){if(Fl)return vl;Fl=1;const t=jl(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function r(t){if(null===t)return!1;let r=0;const i=t.length,o=e;for(let e=0;e<i;e++){const i=o.indexOf(t.charAt(e));if(!(i>64)){if(i<0)return!1;r+=6}}return r%8==0}function i(t){const r=t.replace(/[\r\n=]/g,""),i=r.length,o=e;let a=0;const s=[];for(let t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(r.charAt(t));const n=i%4*6;return 0===n?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)}function o(t){let r="",i=0;const o=t.length,a=e;for(let e=0;e<o;e++)e%3==0&&e&&(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]),i=(i<<8)+t[e];const s=o%3;return 0===s?(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]):2===s?(r+=a[i>>10&63],r+=a[i>>4&63],r+=a[i<<2&63],r+=a[64]):1===s&&(r+=a[i>>2&63],r+=a[i<<4&63],r+=a[64],r+=a[64]),r}function a(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}return Vt(r,"resolveYamlBinary"),Vt(i,"constructYamlBinary"),Vt(o,"representYamlBinary"),Vt(a,"isBinary"),vl=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:a,represent:o})}function oh(){if(_l)return Ll;_l=1;const t=jl(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(t){if(null===t)return!0;const i=[],o=t;for(let t=0,a=o.length;t<a;t+=1){const a=o[t];let s,n=!1;if("[object Object]"!==r.call(a))return!1;for(s in a)if(e.call(a,s)){if(n)return!1;n=!0}if(!n)return!1;if(-1!==i.indexOf(s))return!1;i.push(s)}return!0}function o(t){return null!==t?t:[]}return Vt(i,"resolveYamlOmap"),Vt(o,"constructYamlOmap"),Ll=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:o})}function ah(){if(Al)return Ml;Al=1;const t=jl(),e=Object.prototype.toString;function r(t){if(null===t)return!0;const r=t,i=new Array(r.length);for(let t=0,o=r.length;t<o;t+=1){const o=r[t];if("[object Object]"!==e.call(o))return!1;const a=Object.keys(o);if(1!==a.length)return!1;i[t]=[a[0],o[a[0]]]}return!0}function i(t){if(null===t)return[];const e=t,r=new Array(e.length);for(let t=0,i=e.length;t<i;t+=1){const i=e[t],o=Object.keys(i);r[t]=[o[0],i[o[0]]]}return r}return Vt(r,"resolveYamlPairs"),Vt(i,"constructYamlPairs"),Ml=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i})}function sh(){if($l)return El;$l=1;const t=jl(),e=Object.prototype.hasOwnProperty;function r(t){if(null===t)return!0;const r=t;for(const t in r)if(e.call(r,t)&&null!==r[t])return!1;return!0}function i(t){return null!==t?t:{}}return Vt(r,"resolveYamlSet"),Vt(i,"constructYamlSet"),El=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i})}function nh(){return Il?Ol:(Il=1,Ol=th().extend({implicit:[eh(),rh()],explicit:[ih(),oh(),ah(),sh()]}))}function lh(){if(Dl)return Pl;Dl=1;const t=Rl(),e=Wl(),r=Nl(),i=nh(),o=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,s=/[\x85\u2028\u2029]/,n=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,h=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function c(t){return Object.prototype.toString.call(t)}function d(t){return 10===t||13===t}function u(t){return 9===t||32===t}function p(t){return 9===t||32===t||10===t||13===t}function g(t){return 44===t||91===t||93===t||123===t||125===t}function f(t){if(t>=48&&t<=57)return t-48;const e=32|t;return e>=97&&e<=102?e-97+10:-1}function y(t){return 120===t?2:117===t?4:85===t?8:0}function m(t){return t>=48&&t<=57?t-48:-1}function C(t){switch(t){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function x(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function b(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}Vt(c,"_class"),Vt(d,"isEol"),Vt(u,"isWhiteSpace"),Vt(p,"isWsOrEol"),Vt(g,"isFlowIndicator"),Vt(f,"fromHexCode"),Vt(y,"escapedHexLen"),Vt(m,"fromDecimalCode"),Vt(C,"simpleEscapeSequence"),Vt(x,"charFromCodepoint"),Vt(b,"setProperty");const k=new Array(256),w=new Array(256);for(let t=0;t<256;t++)k[t]=C(t)?1:0,w[t]=C(t);function S(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||i,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:100,this.maxTotalMergeKeys="number"==typeof e.maxTotalMergeKeys?e.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function T(t,i){const o={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return o.snippet=r(o),new e(i,o)}function B(t,e){throw T(t,e)}function v(t,e){t.onWarning&&t.onWarning.call(null,T(t,e))}function F(t,e,r){const i=t.anchorMapTransactions;if(0!==i.length){const r=i[i.length-1];o.call(r,e)||(r[e]={existed:o.call(t.anchorMap,e),value:t.anchorMap[e]})}t.anchorMap[e]=r}function L(t){t.anchorMapTransactions.push(Object.create(null))}function _(t){const e=t.anchorMapTransactions.pop(),r=t.anchorMapTransactions;if(0===r.length)return;const i=r[r.length-1],a=Object.keys(e);for(let t=0,r=a.length;t<r;t+=1){const r=a[t];o.call(i,r)||(i[r]=e[r])}}function M(t){const e=t.anchorMapTransactions.pop(),r=Object.keys(e);for(let i=r.length-1;i>=0;i-=1){const o=e[r[i]];o.existed?t.anchorMap[r[i]]=o.value:delete t.anchorMap[r[i]]}}function A(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,tag:t.tag,anchor:t.anchor,kind:t.kind,result:t.result}}function E(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result}Vt(S,"State"),Vt(T,"generateError"),Vt(B,"throwError"),Vt(v,"throwWarning"),Vt(F,"storeAnchor"),Vt(L,"beginAnchorTransaction"),Vt(_,"commitAnchorTransaction"),Vt(M,"rollbackAnchorTransaction"),Vt(A,"snapshotState"),Vt(E,"restoreState");const $={YAML:Vt(function(t,e,r){null!==t.version&&B(t,"duplication of %YAML directive"),1!==r.length&&B(t,"YAML directive accepts exactly one argument");const i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===i&&B(t,"ill-formed argument of the YAML directive");const o=parseInt(i[1],10),a=parseInt(i[2],10);1!==o&&B(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&v(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:Vt(function(t,e,r){let i;2!==r.length&&B(t,"TAG directive accepts exactly two arguments");const a=r[0];i=r[1],l.test(a)||B(t,"ill-formed tag handle (first argument) of the TAG directive"),o.call(t.tagMap,a)&&B(t,'there is a previously declared suffix for "'+a+'" tag handle'),h.test(i)||B(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(e){B(t,"tag prefix is malformed: "+i)}t.tagMap[a]=i},"handleTagDirective")};function O(t,e,r,i){if(e<r){const o=t.input.slice(e,r);if(i)for(let e=0,r=o.length;e<r;e+=1){const r=o.charCodeAt(e);9===r||r>=32&&r<=1114111||B(t,"expected valid JSON character")}else a.test(o)&&B(t,"the stream contains non-printable characters");t.result+=o}}function I(e,r,i,a){t.isObject(i)||B(e,"cannot merge mappings; the provided source object is unacceptable");const s=Object.keys(i);for(let t=0,n=s.length;t<n;t+=1){const n=s[t];-1!==e.maxTotalMergeKeys&&++e.totalMergeKeys>e.maxTotalMergeKeys&&B(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),o.call(r,n)||(b(r,n,i[n]),a[n]=!0)}}function D(t,e,r,i,a,s,n,l,h){if(Array.isArray(a))for(let e=0,r=(a=Array.prototype.slice.call(a)).length;e<r;e+=1)Array.isArray(a[e])&&B(t,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===c(a[e])&&(a[e]="[object Object]");if("object"==typeof a&&"[object Object]"===c(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(s))for(let i=0,o=s.length;i<o;i+=1)I(t,e,s[i],r);else I(t,e,s,r);else t.json||o.call(r,a)||!o.call(e,a)||(t.line=n||t.line,t.lineStart=l||t.lineStart,t.position=h||t.position,B(t,"duplicated mapping key")),b(e,a,s),delete r[a];return e}function q(t){const e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):B(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function P(t,e,r){let i=0,o=t.input.charCodeAt(t.position);for(;0!==o;){for(;u(o);)9===o&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&35===o)do{o=t.input.charCodeAt(++t.position)}while(10!==o&&13!==o&&0!==o);if(!d(o))break;for(q(t),o=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position)}return-1!==r&&0!==i&&t.lineIndent<r&&v(t,"deficient indentation"),i}function z(t){let e=t.position,r=t.input.charCodeAt(e);return!(45!==r&&46!==r||r!==t.input.charCodeAt(e+1)||r!==t.input.charCodeAt(e+2)||(e+=3,r=t.input.charCodeAt(e),0!==r&&!p(r)))}function R(e,r){1===r?e.result+=" ":r>1&&(e.result+=t.repeat("\n",r-1))}function W(t,e,r){let i,o,a,s,n,l;const h=t.kind,c=t.result;let f=t.input.charCodeAt(t.position);if(p(f)||g(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if(63===f||45===f){const e=t.input.charCodeAt(t.position+1);if(p(e)||r&&g(e))return!1}for(t.kind="scalar",t.result="",i=o=t.position,a=!1;0!==f;){if(58===f){const e=t.input.charCodeAt(t.position+1);if(p(e)||r&&g(e))break}else if(35===f){if(p(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&z(t)||r&&g(f))break;if(d(f)){if(s=t.line,n=t.lineStart,l=t.lineIndent,P(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=n,t.lineIndent=l;break}}a&&(O(t,i,o,!1),R(t,t.line-s),i=o=t.position,a=!1),u(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return O(t,i,o,!1),!!t.result||(t.kind=h,t.result=c,!1)}function N(t,e){let r,i,o=t.input.charCodeAt(t.position);if(39!==o)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(o=t.input.charCodeAt(t.position));)if(39===o){if(O(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),39!==o)return!0;r=t.position,t.position++,i=t.position}else d(o)?(O(t,r,i,!0),R(t,P(t,!1,e)),r=i=t.position):t.position===t.lineStart&&z(t)?B(t,"unexpected end of the document within a single quoted scalar"):(t.position++,u(o)||(i=t.position));B(t,"unexpected end of the stream within a single quoted scalar")}function j(t,e){let r,i,o,a=t.input.charCodeAt(t.position);if(34!==a)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(a=t.input.charCodeAt(t.position));){if(34===a)return O(t,r,t.position,!0),t.position++,!0;if(92===a){if(O(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),d(a))P(t,!1,e);else if(a<256&&k[a])t.result+=w[a],t.position++;else if((o=y(a))>0){let e=o,r=0;for(;e>0;e--)a=t.input.charCodeAt(++t.position),(o=f(a))>=0?r=(r<<4)+o:B(t,"expected hexadecimal character");t.result+=x(r),t.position++}else B(t,"unknown escape sequence");r=i=t.position}else d(a)?(O(t,r,i,!0),R(t,P(t,!1,e)),r=i=t.position):t.position===t.lineStart&&z(t)?B(t,"unexpected end of the document within a double quoted scalar"):(t.position++,u(a)||(i=t.position))}B(t,"unexpected end of the stream within a double quoted scalar")}function H(t,e){let r,i,o,a=!0;const s=t.tag;let n;const l=t.anchor;let h,c,d,u;const g=Object.create(null);let f,y,m,C=t.input.charCodeAt(t.position);if(91===C)h=93,u=!1,n=[];else{if(123!==C)return!1;h=125,u=!0,n={}}for(null!==t.anchor&&F(t,t.anchor,n),C=t.input.charCodeAt(++t.position);0!==C;){if(P(t,!0,e),C=t.input.charCodeAt(t.position),C===h)return t.position++,t.tag=s,t.anchor=l,t.kind=u?"mapping":"sequence",t.result=n,!0;if(a?44===C&&B(t,"expected the node content, but found ','"):B(t,"missed comma between flow collection entries"),y=f=m=null,c=d=!1,63===C){p(t.input.charCodeAt(t.position+1))&&(c=d=!0,t.position++,P(t,!0,e))}r=t.line,i=t.lineStart,o=t.position,K(t,e,1,!1,!0),y=t.tag,f=t.result,P(t,!0,e),C=t.input.charCodeAt(t.position),!d&&t.line!==r||58!==C||(c=!0,C=t.input.charCodeAt(++t.position),P(t,!0,e),K(t,e,1,!1,!0),m=t.result),u?D(t,n,g,y,f,m,r,i,o):c?n.push(D(t,null,g,y,f,m,r,i,o)):n.push(f),P(t,!0,e),C=t.input.charCodeAt(t.position),44===C?(a=!0,C=t.input.charCodeAt(++t.position)):a=!1}B(t,"unexpected end of the stream within a flow collection")}function U(e,r){let i,o,a=1,s=!1,n=!1,l=r,h=0,c=!1,p=e.input.charCodeAt(e.position);if(124===p)i=!1;else{if(62!==p)return!1;i=!0}for(e.kind="scalar",e.result="";0!==p;)if(p=e.input.charCodeAt(++e.position),43===p||45===p)1===a?a=43===p?3:2:B(e,"repeat of a chomping mode identifier");else{if(!((o=m(p))>=0))break;0===o?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):n?B(e,"repeat of an indentation width identifier"):(l=r+o-1,n=!0)}if(u(p)){do{p=e.input.charCodeAt(++e.position)}while(u(p));if(35===p)do{p=e.input.charCodeAt(++e.position)}while(!d(p)&&0!==p)}for(;0!==p;){for(q(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!n||e.lineIndent<l)&&32===p;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!n&&e.lineIndent>l&&(l=e.lineIndent),d(p)){h++;continue}if(n||0!==l||B(e,"missing indentation for block scalar"),e.lineIndent<l){3===a?e.result+=t.repeat("\n",s?1+h:h):1===a&&s&&(e.result+="\n");break}i?u(p)?(c=!0,e.result+=t.repeat("\n",s?1+h:h)):c?(c=!1,e.result+=t.repeat("\n",h+1)):0===h?s&&(e.result+=" "):e.result+=t.repeat("\n",h):e.result+=t.repeat("\n",s?1+h:h),s=!0,n=!0,h=0;const r=e.position;for(;!d(p)&&0!==p;)p=e.input.charCodeAt(++e.position);O(e,r,e.position,!1)}return!0}function Y(t,e){const r=t.tag,i=t.anchor,o=[];let a=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&F(t,t.anchor,o);let s=t.input.charCodeAt(t.position);for(;0!==s&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,B(t,"tab characters must not be used in indentation")),45===s);){if(!p(t.input.charCodeAt(t.position+1)))break;if(a=!0,t.position++,P(t,!0,-1)&&t.lineIndent<=e){o.push(null),s=t.input.charCodeAt(t.position);continue}const r=t.line;if(K(t,e,3,!1,!0),o.push(t.result),P(t,!0,-1),s=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==s)B(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!a&&(t.tag=r,t.anchor=i,t.kind="sequence",t.result=o,!0)}function V(t,e,r){let i,o,a,s;const n=t.tag,l=t.anchor,h={},c=Object.create(null);let d=null,g=null,f=null,y=!1,m=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&F(t,t.anchor,h);let C=t.input.charCodeAt(t.position);for(;0!==C;){y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,B(t,"tab characters must not be used in indentation"));const x=t.input.charCodeAt(t.position+1),b=t.line;if(63!==C&&58!==C||!p(x)){if(o=t.line,a=t.lineStart,s=t.position,!K(t,r,2,!1,!0))break;if(t.line===b){for(C=t.input.charCodeAt(t.position);u(C);)C=t.input.charCodeAt(++t.position);if(58===C)C=t.input.charCodeAt(++t.position),p(C)||B(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(D(t,h,c,d,g,null,o,a,s),d=g=f=null),m=!0,y=!1,i=!1,d=t.tag,g=t.result;else{if(!m)return t.tag=n,t.anchor=l,!0;B(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!m)return t.tag=n,t.anchor=l,!0;B(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===C?(y&&(D(t,h,c,d,g,null,o,a,s),d=g=f=null),m=!0,y=!0,i=!0):y?(y=!1,i=!0):B(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=x;if((t.line===b||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,s=t.position),K(t,e,4,!0,i)&&(y?g=t.result:f=t.result),y||(D(t,h,c,d,g,f,o,a,s),d=g=f=null),P(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===b||t.lineIndent>e)&&0!==C)B(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&D(t,h,c,d,g,null,o,a,s),m&&(t.tag=n,t.anchor=l,t.kind="mapping",t.result=h),m}function G(t){let e,r,i=!1,a=!1,s=t.input.charCodeAt(t.position);if(33!==s)return!1;null!==t.tag&&B(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),60===s?(i=!0,s=t.input.charCodeAt(++t.position)):33===s?(a=!0,e="!!",s=t.input.charCodeAt(++t.position)):e="!";let c=t.position;if(i){do{s=t.input.charCodeAt(++t.position)}while(0!==s&&62!==s);t.position<t.length?(r=t.input.slice(c,t.position),s=t.input.charCodeAt(++t.position)):B(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!p(s);)33===s&&(a?B(t,"tag suffix cannot contain exclamation marks"):(e=t.input.slice(c-1,t.position+1),l.test(e)||B(t,"named tag handle cannot contain such characters"),a=!0,c=t.position+1)),s=t.input.charCodeAt(++t.position);r=t.input.slice(c,t.position),n.test(r)&&B(t,"tag suffix cannot contain flow indicator characters")}r&&!h.test(r)&&B(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){B(t,"tag name is malformed: "+r)}return i?t.tag=r:o.call(t.tagMap,e)?t.tag=t.tagMap[e]+r:"!"===e?t.tag="!"+r:"!!"===e?t.tag="tag:yaml.org,2002:"+r:B(t,'undeclared tag handle "'+e+'"'),!0}function X(t){let e=t.input.charCodeAt(t.position);if(38!==e)return!1;null!==t.anchor&&B(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position);const r=t.position;for(;0!==e&&!p(e)&&!g(e);)e=t.input.charCodeAt(++t.position);return t.position===r&&B(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(r,t.position),!0}function Z(t){let e=t.input.charCodeAt(t.position);if(42!==e)return!1;e=t.input.charCodeAt(++t.position);const r=t.position;for(;0!==e&&!p(e)&&!g(e);)e=t.input.charCodeAt(++t.position);t.position===r&&B(t,"name of an alias node must contain at least one character");const i=t.input.slice(r,t.position);return o.call(t.anchorMap,i)||B(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],P(t,!0,-1),!0}function Q(t,e,r,i){const o=A(t);return L(t),E(t,e),t.tag=null,t.anchor=null,t.kind=null,t.result=null,V(t,r,i)&&"mapping"===t.kind?(_(t),!0):(M(t),E(t,o),!1)}function K(t,e,r,i,a){let s,n,l,h,c,d=1,u=!1,p=!1,g=null;t.depth>=t.maxDepth&&B(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;const f=s=n=4===r||3===r;if(i&&P(t,!0,-1)&&(u=!0,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)),1===d)for(;;){const r=t.input.charCodeAt(t.position),i=A(t);if(u&&(33===r&&null!==t.tag||38===r&&null!==t.anchor))break;if(!G(t)&&!X(t))break;null===g&&(g=i),P(t,!0,-1)?(u=!0,n=f,t.lineIndent>e?d=1:t.lineIndent===e?d=0:t.lineIndent<e&&(d=-1)):n=!1}if(n&&(n=u||a),1===d||4===r)if(h=1===r||2===r?e:e+1,c=t.position-t.lineStart,1===d)if(n&&(Y(t,c)||V(t,c,h))||H(t,h))p=!0;else{const e=t.input.charCodeAt(t.position);null!==g&&f&&!n&&124!==e&&62!==e&&Q(t,g,g.position-g.lineStart,h)||s&&U(t,h)||N(t,h)||j(t,h)?p=!0:Z(t)?(p=!0,null===t.tag&&null===t.anchor||B(t,"alias node should not have any properties")):W(t,h,1===r)&&(p=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&F(t,t.anchor,t.result)}else 0===d&&(p=n&&Y(t,c));if(null===t.tag)null!==t.anchor&&F(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&B(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e<r;e+=1)if(l=t.implicitTypes[e],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&F(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(o.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;const e=t.typeMap.multi[t.kind||"fallback"];for(let r=0,i=e.length;r<i;r+=1)if(t.tag.slice(0,e[r].tag.length)===e[r].tag){l=e[r];break}}l||B(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&B(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&F(t,t.anchor,t.result)):B(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||p}function J(t){const e=t.position;let r,i=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&(P(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){i=!0,r=t.input.charCodeAt(++t.position);let e=t.position;for(;0!==r&&!p(r);)r=t.input.charCodeAt(++t.position);const a=t.input.slice(e,t.position),s=[];for(a.length<1&&B(t,"directive name must not be less than one character in length");0!==r;){for(;u(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&!d(r));break}if(d(r))break;for(e=t.position;0!==r&&!p(r);)r=t.input.charCodeAt(++t.position);s.push(t.input.slice(e,t.position))}0!==r&&q(t),o.call($,a)?$[a](t,a,s):v(t,'unknown document directive "'+a+'"')}P(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,P(t,!0,-1)):i&&B(t,"directives end mark is expected"),K(t,t.lineIndent-1,4,!1,!0),P(t,!0,-1),t.checkLineBreaks&&s.test(t.input.slice(e,t.position))&&v(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&z(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,P(t,!0,-1)):t.position<t.length-1&&B(t,"end of the stream or a document separator is expected")}function tt(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));const r=new S(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,B(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)J(r);return r.documents}function et(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);const i=tt(t,r);if("function"!=typeof e)return i;for(let t=0,r=i.length;t<r;t+=1)e(i[t])}function rt(t,r){const i=tt(t,r);if(0!==i.length){if(1===i.length)return i[0];throw new e("expected a single document in the stream, but found more")}}return Vt(O,"captureSegment"),Vt(I,"mergeMappings"),Vt(D,"storeMappingPair"),Vt(q,"readLineBreak"),Vt(P,"skipSeparationSpace"),Vt(z,"testDocumentSeparator"),Vt(R,"writeFoldedLines"),Vt(W,"readPlainScalar"),Vt(N,"readSingleQuotedScalar"),Vt(j,"readDoubleQuotedScalar"),Vt(H,"readFlowCollection"),Vt(U,"readBlockScalar"),Vt(Y,"readBlockSequence"),Vt(V,"readBlockMapping"),Vt(G,"readTagProperty"),Vt(X,"readAnchorProperty"),Vt(Z,"readAlias"),Vt(Q,"tryReadBlockMappingFromProperty"),Vt(K,"composeNode"),Vt(J,"readDocument"),Vt(tt,"loadDocuments"),Vt(et,"loadAll2"),Vt(rt,"load2"),Pl.loadAll=et,Pl.load=rt,Pl}Vt(Rl,"requireCommon"),Vt(Wl,"requireException"),Vt(Nl,"requireSnippet"),Vt(jl,"requireType"),Vt(Hl,"requireSchema"),Vt(Ul,"requireStr"),Vt(Yl,"requireSeq"),Vt(Vl,"requireMap"),Vt(Gl,"requireFailsafe"),Vt(Xl,"require_null"),Vt(Zl,"requireBool"),Vt(Ql,"requireInt"),Vt(Kl,"requireFloat"),Vt(Jl,"requireJson"),Vt(th,"requireCore"),Vt(eh,"requireTimestamp"),Vt(rh,"requireMerge"),Vt(ih,"requireBinary"),Vt(oh,"requireOmap"),Vt(ah,"requirePairs"),Vt(sh,"requireSet"),Vt(nh,"require_default"),Vt(lh,"requireLoader");var hh,ch,dh={};function uh(){if(hh)return dh;hh=1;const t=Rl(),e=Wl(),r=nh(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=65279,s={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},n=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],l=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function h(t,e){if(null===e)return{};const r={},i=Object.keys(e);for(let a=0,s=i.length;a<s;a+=1){let s=i[a],n=String(e[s]);"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2));const l=t.compiledTypeMap.fallback[s];l&&o.call(l.styleAliases,n)&&(n=l.styleAliases[n]),r[s]=n}return r}function c(r){let i,o;const a=r.toString(16).toUpperCase();if(r<=255)i="x",o=2;else if(r<=65535)i="u",o=4;else{if(!(r<=4294967295))throw new e("code point within a string may not be greater than 0xFFFFFFFF");i="U",o=8}return"\\"+i+t.repeat("0",o-a.length)+a}Vt(h,"compileStyleMap"),Vt(c,"encodeHex");function d(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=h(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u(e,r){const i=t.repeat(" ",r);let o=0,a="";const s=e.length;for(;o<s;){let t;const r=e.indexOf("\n",o);-1===r?(t=e.slice(o),o=s):(t=e.slice(o,r+1),o=r+1),t.length&&"\n"!==t&&(a+=i),a+=t}return a}function p(e,r){return"\n"+t.repeat(" ",e.indent*r)}function g(t,e){for(let r=0,i=t.implicitTypes.length;r<i;r+=1){if(t.implicitTypes[r].resolve(e))return!0}return!1}function f(t){return 32===t||9===t}function y(t){return t>=32&&t<=126||t>=161&&t<=55295&&8232!==t&&8233!==t||t>=57344&&t<=65533&&t!==a||t>=65536&&t<=1114111}function m(t){return y(t)&&t!==a&&13!==t&&10!==t}function C(t,e,r){const i=m(t),o=i&&!f(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!o)||m(e)&&!f(e)&&35===t||58===e&&o}function x(t){return y(t)&&t!==a&&!f(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function b(t){return!f(t)&&58!==t}function k(t,e){const r=t.charCodeAt(e);let i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?1024*(r-55296)+i-56320+65536:r}function w(t){return/^\n* /.test(t)}Vt(d,"State"),Vt(u,"indentString"),Vt(p,"generateNextLine"),Vt(g,"testImplicitResolving"),Vt(f,"isWhitespace"),Vt(y,"isPrintable"),Vt(m,"isNsCharOrWhitespace"),Vt(C,"isPlainSafe"),Vt(x,"isPlainSafeFirst"),Vt(b,"isPlainSafeLast"),Vt(k,"codePointAt"),Vt(w,"needIndentIndicator");function S(t,e,r,i,o,a,s,n){let l,h=0,c=null,d=!1,u=!1;const p=-1!==i;let g=-1,f=x(k(t,0))&&b(k(t,t.length-1));if(e||s)for(l=0;l<t.length;h>=65536?l+=2:l++){if(h=k(t,l),!y(h))return 5;f=f&&C(h,c,n),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(h=k(t,l),10===h)d=!0,p&&(u=u||l-g-1>i&&" "!==t[g+1],g=l);else if(!y(h))return 5;f=f&&C(h,c,n),c=h}u=u||p&&l-g-1>i&&" "!==t[g+1]}return d||u?r>9&&w(t)?5:s?2===a?5:2:u?4:3:!f||s||o(t)?2===a?5:2:1}function T(t,r,i,o,a){t.dump=function(){if(0===r.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==n.indexOf(r)||l.test(r)))return 2===t.quotingType?'"'+r+'"':"'"+r+"'";const s=t.indent*Math.max(1,i),h=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),c=o||t.flowLevel>-1&&i>=t.flowLevel;function d(e){return g(t,e)}switch(Vt(d,"testAmbiguity"),S(r,c,t.indent,h,d,t.quotingType,t.forceQuotes&&!o,a)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+B(r,t.indent)+v(u(r,s));case 4:return">"+B(r,t.indent)+v(u(F(r,h),s));case 5:return'"'+_(r)+'"';default:throw new e("impossible error: invalid scalar style")}}()}function B(t,e){const r=w(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function v(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function F(t,e){const r=/(\n+)([^\n]*)/g;let i,o,a=function(){let i=t.indexOf("\n");return i=-1!==i?i:t.length,r.lastIndex=i,L(t.slice(0,i),e)}(),s="\n"===t[0]||" "===t[0];for(;o=r.exec(t);){const t=o[1],r=o[2];i=" "===r[0],a+=t+(s||i||""===r?"":"\n")+L(r,e),s=i}return a}function L(t,e){if(""===t||" "===t[0])return t;const r=/ [^ ]/g;let i,o,a=0,s=0,n=0,l="";for(;i=r.exec(t);)n=i.index,n-a>e&&(o=s>a?s:n,l+="\n"+t.slice(a,o),a=o+1),s=n;return l+="\n",t.length-a>e&&s>a?l+=t.slice(a,s)+"\n"+t.slice(s+1):l+=t.slice(a),l.slice(1)}function _(t){let e="",r=0;for(let i=0;i<t.length;r>=65536?i+=2:i++){r=k(t,i);const o=s[r];!o&&y(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=o||c(r)}return e}function M(t,e,r){let i="";const o=t.tag;for(let o=0,a=r.length;o<a;o+=1){let a=r[o];t.replacer&&(a=t.replacer.call(r,String(o),a)),(I(t,e,a,!1,!1)||void 0===a&&I(t,e,null,!1,!1))&&(""!==i&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump)}t.tag=o,t.dump="["+i+"]"}function A(t,e,r,i){let o="";const a=t.tag;for(let a=0,s=r.length;a<s;a+=1){let s=r[a];t.replacer&&(s=t.replacer.call(r,String(a),s)),(I(t,e+1,s,!0,!0,!1,!0)||void 0===s&&I(t,e+1,null,!0,!0,!1,!0))&&(i&&""===o||(o+=p(t,e)),t.dump&&10===t.dump.charCodeAt(0)?o+="-":o+="- ",o+=t.dump)}t.tag=a,t.dump=o||"[]"}function E(t,e,r){let i="";const o=t.tag,a=Object.keys(r);for(let o=0,s=a.length;o<s;o+=1){let s="";""!==i&&(s+=", "),t.condenseFlow&&(s+='"');const n=a[o];let l=r[n];t.replacer&&(l=t.replacer.call(r,n,l)),I(t,e,n,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),I(t,e,l,!1,!1)&&(s+=t.dump,i+=s))}t.tag=o,t.dump="{"+i+"}"}function $(t,r,i,o){let a="";const s=t.tag,n=Object.keys(i);if(!0===t.sortKeys)n.sort();else if("function"==typeof t.sortKeys)n.sort(t.sortKeys);else if(t.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let e=0,s=n.length;e<s;e+=1){let s="";o&&""===a||(s+=p(t,r));const l=n[e];let h=i[l];if(t.replacer&&(h=t.replacer.call(i,l,h)),!I(t,r+1,l,!0,!0,!0))continue;const c=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024;c&&(t.dump&&10===t.dump.charCodeAt(0)?s+="?":s+="? "),s+=t.dump,c&&(s+=p(t,r)),I(t,r+1,h,!0,c)&&(t.dump&&10===t.dump.charCodeAt(0)?s+=":":s+=": ",s+=t.dump,a+=s)}t.tag=s,t.dump=a||"{}"}function O(t,r,a){const s=a?t.explicitTypes:t.implicitTypes;for(let n=0,l=s.length;n<l;n+=1){const l=s[n];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof r&&r instanceof l.instanceOf)&&(!l.predicate||l.predicate(r))){if(a?l.multi&&l.representName?t.tag=l.representName(r):t.tag=l.tag:t.tag="?",l.represent){const a=t.styleMap[l.tag]||l.defaultStyle;let s;if("[object Function]"===i.call(l.represent))s=l.represent(r,a);else{if(!o.call(l.represent,a))throw new e("!<"+l.tag+'> tag resolver accepts not "'+a+'" style');s=l.represent[a](r,a)}t.dump=s}return!0}}return!1}function I(t,r,o,a,s,n,l){t.tag=null,t.dump=o,O(t,o,!1)||O(t,o,!0);const h=i.call(t.dump),c=a;a&&(a=t.flowLevel<0||t.flowLevel>r);const d="[object Object]"===h||"[object Array]"===h;let u,p;if(d&&(u=t.duplicates.indexOf(o),p=-1!==u),(null!==t.tag&&"?"!==t.tag||p||2!==t.indent&&r>0)&&(s=!1),p&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(d&&p&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),"[object Object]"===h)a&&0!==Object.keys(t.dump).length?($(t,r,t.dump,s),p&&(t.dump="&ref_"+u+t.dump)):(E(t,r,t.dump),p&&(t.dump="&ref_"+u+" "+t.dump));else if("[object Array]"===h)a&&0!==t.dump.length?(t.noArrayIndent&&!l&&r>0?A(t,r-1,t.dump,s):A(t,r,t.dump,s),p&&(t.dump="&ref_"+u+t.dump)):(M(t,r,t.dump),p&&(t.dump="&ref_"+u+" "+t.dump));else{if("[object String]"!==h){if("[object Undefined]"===h)return!1;if(t.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+h)}"?"!==t.tag&&T(t,t.dump,r,n,c)}if(null!==t.tag&&"?"!==t.tag){let e=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21");e="!"===t.tag[0]?"!"+e:"tag:yaml.org,2002:"===e.slice(0,18)?"!!"+e.slice(18):"!<"+e+">",t.dump=e+" "+t.dump}}return!0}function D(t,e){const r=[],i=[];q(t,r,i);const o=i.length;for(let t=0;t<o;t+=1)e.duplicates.push(r[i[t]]);e.usedDuplicates=new Array(o)}function q(t,e,r){if(null!==t&&"object"==typeof t){const i=e.indexOf(t);if(-1!==i)-1===r.indexOf(i)&&r.push(i);else if(e.push(t),Array.isArray(t))for(let i=0,o=t.length;i<o;i+=1)q(t[i],e,r);else{const i=Object.keys(t);for(let o=0,a=i.length;o<a;o+=1)q(t[i[o]],e,r)}}}function P(t,e){const r=new d(e=e||{});r.noRefs||D(t,r);let i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),I(r,0,i,!0,!0)?r.dump+"\n":""}return Vt(S,"chooseScalarStyle"),Vt(T,"writeScalar"),Vt(B,"blockHeader"),Vt(v,"dropEndingNewline"),Vt(F,"foldString"),Vt(L,"foldLine"),Vt(_,"escapeString"),Vt(M,"writeFlowSequence"),Vt(A,"writeBlockSequence"),Vt(E,"writeFlowMapping"),Vt($,"writeBlockMapping"),Vt(O,"detectType"),Vt(I,"writeNode"),Vt(D,"getDuplicateReferences"),Vt(q,"inspectNode"),Vt(P,"dump2"),dh.dump=P,dh}function ph(){if(ch)return ql;ch=1;const t=lh(),e=uh();function r(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.")}}return Vt(r,"renamed"),ql.Type=jl(),ql.Schema=Hl(),ql.FAILSAFE_SCHEMA=Gl(),ql.JSON_SCHEMA=Jl(),ql.CORE_SCHEMA=th(),ql.DEFAULT_SCHEMA=nh(),ql.load=t.load,ql.loadAll=t.loadAll,ql.dump=e.dump,ql.YAMLException=Wl(),ql.types={binary:ih(),float:Kl(),map:Vl(),null:Xl(),pairs:ah(),set:sh(),timestamp:eh(),bool:Zl(),int:Ql(),merge:rh(),omap:oh(),seq:Yl(),str:Ul()},ql.safeLoad=r("safeLoad","load"),ql.safeLoadAll=r("safeLoadAll","loadAll"),ql.safeDump=r("safeDump","dump"),ql}Vt(uh,"requireDumper"),Vt(ph,"requireJsYaml");var gh=Yn(ph()),{Type:fh,Schema:yh,FAILSAFE_SCHEMA:mh,JSON_SCHEMA:Ch,CORE_SCHEMA:xh,DEFAULT_SCHEMA:bh,load:kh,loadAll:wh,dump:Sh,YAMLException:Th,types:Bh,safeLoad:vh,safeLoadAll:Fh,safeDump:Lh}=gh,_h=Vt((t,e)=>{const{theme:r,themeVariables:i}=e,{useGradient:o,gradientStart:a,gradientStop:s}=i??{},n=t.attr("id"),l=r?.includes("dark")?"#FFFFFF":"#000000",h=Vt((e,r,i)=>t.append("defs").append("filter").attr("id",e).attr("height",r).attr("width",r).append("feDropShadow").attr("dx",i).attr("dy",i).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",l),"dropShadow");if(h(`${n}-drop-shadow`,"130%","4"),h(`${n}-drop-shadow-small`,"150%","2"),!o)return;const c=t.append("linearGradient").attr("id",`${n}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");c.append("svg:stop").attr("offset","0%").attr("stop-color",a).attr("stop-opacity",1),c.append("svg:stop").attr("offset","100%").attr("stop-color",s).attr("stop-opacity",1)},"insertLookDefs"),Mh=Vt(t=>{const{handDrawnSeed:e}=ka();return{fill:t,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:t,seed:e}},"solidStateFill"),Ah=Vt(t=>Array.isArray(t)?t:t?t.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),Eh=Vt(t=>{const e=$h([...t.cssCompiledStyles||[],...t.cssStyles||[],...Ah(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),$h=Vt(t=>{const e=new Map;return t.forEach(t=>{const[r,i]=t.split(":");e.set(r.trim(),i?.trim())}),e},"styles2Map"),Oh=Vt(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"===t,"isLabelStyle"),Ih=Vt(t=>{const{stylesArray:e}=Eh(t),r=[],i=[],o=[],a=[];return e.forEach(t=>{const e=t[0];Oh(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&o.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:o,backgroundStyles:a}},"styles2String"),Dh=Vt((t,e)=>{const{themeVariables:r,handDrawnSeed:i}=ka(),{nodeBorder:o,mainBkg:a}=r,{stylesMap:s}=Eh(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:s.get("stroke")||o,seed:i,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:qh(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),qh=Vt(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(1===e.length){const t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray");const Ph=Object.freeze({left:0,top:0,width:16,height:16}),zh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Rh=Object.freeze({...Ph,...zh}),Wh=Object.freeze({...Rh,body:"",hidden:!1}),Nh=Object.freeze({width:null,height:null}),jh=Object.freeze({...Nh,...zh}),Hh=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name);function Uh(t,e){const r=function(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}(t,e);for(const i in Wh)i in zh?i in t&&!(i in r)&&(r[i]=zh[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function Yh(t,e,r){const i=t.icons,o=t.aliases||Object.create(null);let a={};function s(t){a=Uh(i[t]||o[t],a)}return s(e),r.forEach(s),Uh(t,a)}function Vh(t,e){if(t.icons[e])return Yh(t,e,[]);const r=function(t,e){const r=t.icons,i=t.aliases||Object.create(null),o=Object.create(null);return(e||Object.keys(r).concat(Object.keys(i))).forEach(function t(e){if(r[e])return o[e]=[];if(!(e in o)){o[e]=null;const r=i[e]&&i[e].parent,a=r&&t(r);a&&(o[e]=[r].concat(a))}return o[e]}),o}(t,[e])[e];return r?Yh(t,e,r):null}const Gh=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Xh=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Zh(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;const i=t.split(Gh);if(null===i||!i.length)return t;const o=[];let a=i.shift(),s=Xh.test(a);for(;;){if(s){const t=parseFloat(a);isNaN(t)?o.push(a):o.push(Math.ceil(t*e*r)/r)}else o.push(a);if(a=i.shift(),void 0===a)return o.join("");s=!s}}const Qh=/\sid="(\S+)"/g,Kh=new Map;function Jh(t){const e=[];let r;for(;r=Qh.exec(t);)e.push(r[1]);if(!e.length)return t;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return e.forEach(e=>{const r=function(t){t=t.replace(/[0-9]+$/,"")||"a";const e=Kh.get(t)||0;return Kh.set(t,e+1),e?`${t}${e}`:t}(e),o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),t=t.replace(new RegExp(i,"g"),"")}var tc,ec,rc={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},ic=new Map,oc=new Map,ac=Vt(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(Jt.debug("Registering icon pack:",e.name),"loader"in e)oc.set(e.name,e.loader);else{if(!("icons"in e))throw Jt.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');ic.set(e.name,e.icons)}}},"registerIconPacks"),sc=Vt(async(t,e)=>{const r=((t,e,r,i="")=>{const o=t.split(":");if("@"===t.slice(0,1)){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const t=o.pop(),e=o.pop(),r={provider:o.length>0?o[0]:i,prefix:e,name:t};return Hh(r)?r:null}const a=o[0],s=a.split("-");if(s.length>1){const t={provider:i,prefix:s.shift(),name:s.join("-")};return Hh(t)?t:null}if(r&&""===i){const t={provider:i,prefix:"",name:a};return Hh(t,r)?t:null}return null})(t,0,void 0!==e);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 o=ic.get(i);if(!o){const t=oc.get(i);if(!t)throw new Error(`Icon set not found: ${r.prefix}`);try{o={...await t(),prefix:i},ic.set(i,o)}catch(t){throw Jt.error(t),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=Vh(o,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),nc=Vt(async t=>{try{return await sc(t),!0}catch{return!1}},"isIconAvailable"),lc=Vt(async(t,e,r)=>{let i;try{i=await sc(t,e?.fallbackPrefix)}catch(t){Jt.error(t),i=rc}const o=function(t,e){const r={...Rh,...t},i={...jh,...e},o={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(t=>{const e=[],r=t.hFlip,i=t.vFlip;let s,n=t.rotate;switch(r?i?n+=2:(e.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),e.push("scale(-1 1)"),o.top=o.left=0):i&&(e.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),e.push("scale(1 -1)"),o.top=o.left=0),n<0&&(n-=4*Math.floor(n/4)),n%=4,n){case 1:s=o.height/2+o.top,e.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:e.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:s=o.width/2+o.left,e.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")")}n%2==1&&(o.left!==o.top&&(s=o.left,o.left=o.top,o.top=s),o.width!==o.height&&(s=o.width,o.width=o.height,o.height=s)),e.length&&(a=function(t,e,r){const i=function(t,e="defs"){let r="";const i=t.indexOf("<"+e);for(;i>=0;){const o=t.indexOf(">",i),a=t.indexOf("</"+e);if(-1===o||-1===a)break;const s=t.indexOf(">",a);if(-1===s)break;r+=t.slice(o+1,a).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:r,content:t}}(t);return o=i.defs,a=e+i.content+r,o?"<defs>"+o+"</defs>"+a:a;var o,a}(a,'<g transform="'+e.join(" ")+'">',"</g>"))});const s=i.width,n=i.height,l=o.width,h=o.height;let c,d;null===s?(d=null===n?"1em":"auto"===n?h:n,c=Zh(d,l/h)):(c="auto"===s?l:s,d=null===n?Zh(c,h/l):"auto"===n?h:n);const u={},p=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(u[t]=e.toString())};p("width",c),p("height",d);const g=[o.left,o.top,l,h];return u.viewBox=g.join(" "),{attributes:u,viewBox:g,body:a}}(i,e),a=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(Jh(o.body),{...o.attributes,...r});return Eo(a,fo())},"getIconSVG"),hc={},cc={};var dc=function(){if(ec)return hc;ec=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.sanitizeUrl=function(i){if(!i)return t.BLANK_URL;var o,a=r(i.trim());do{o=(a=r(a=e(a).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim())).match(t.ctrlCharactersRegex)||a.match(t.htmlEntitiesRegex)||a.match(t.htmlCtrlEntityRegex)||a.match(t.whitespaceEscapeCharsRegex)}while(o&&o.length>0);var s=a;if(!s)return t.BLANK_URL;if(function(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}(s))return s;var n=s.trimStart(),l=n.match(t.urlSchemeRegex);if(!l)return s;var h=l[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(h))return t.BLANK_URL;var c=n.replace(/\\/g,"/");if("mailto:"===h||h.includes("://"))return c;if("http:"===h||"https:"===h){if(!function(t){return URL.canParse(t)}(c))return t.BLANK_URL;var d=new URL(c);return d.protocol=d.protocol.toLowerCase(),d.hostname=d.hostname.toLowerCase(),d.toString()}return c};var t=(tc||(tc=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.BLANK_URL=cc.relativeFirstCharacters=cc.whitespaceEscapeCharsRegex=cc.urlSchemeRegex=cc.ctrlCharactersRegex=cc.htmlCtrlEntityRegex=cc.htmlEntitiesRegex=cc.invalidProtocolRegex=void 0,cc.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,cc.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,cc.htmlCtrlEntityRegex=/&(newline|tab);/gi,cc.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,cc.urlSchemeRegex=/^.+(:|&colon;)/gim,cc.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,cc.relativeFirstCharacters=[".","/"],cc.BLANK_URL="about:blank"),cc);function e(e){return e.replace(t.ctrlCharactersRegex,"").replace(t.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)})}function r(t){try{return decodeURIComponent(t)}catch(e){return t}}return hc}(),uc="​",pc={curveBasis:x,curveBasisClosed:C,curveBasisOpen:m,curveBumpX:y,curveBumpY:f,curveBundle:St,curveCardinalClosed:Lt,curveCardinalOpen:Mt,curveCardinal:vt,curveCatmullRomClosed:It,curveCatmullRomOpen:Pt,curveCatmullRom:$t,curveLinear:g,curveLinearClosed:p,curveMonotoneX:u,curveMonotoneY:d,curveNatural:c,curveStep:h,curveStepAfter:l,curveStepBefore:n},gc=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fc=Vt(function(t,e){const r=yc(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const t=r.map(t=>t.args);Gi(t),i=di(i,[...t])}else i=r.args;if(!i)return;let o=si(t,e);const a="config";return void 0!==i[a]&&("flowchart-v2"===o&&(o="flowchart"),i[o]=i[a],delete i[a]),i},"detectInit"),yc=Vt(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${gc.source})(?=[}][%]{2}).*\n`,"ig");let i;t=t.trim().replace(r,"").replace(/'/gm,'"'),Jt.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const o=[];for(;null!==(i=Kr.exec(t));)if(i.index===Kr.lastIndex&&Kr.lastIndex++,i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e)){const t=i[1]?i[1]:i[2],e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:t,args:e})}return 0===o.length?{type:t,args:null}:1===o.length?o[0]:o}catch(r){return Jt.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),mc=Vt(function(t){return t.replace(Kr,"")},"removeDirectives"),Cc=Vt(function(t,e){for(const[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");function xc(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return pc[r]??e}function bc(t,e){const r=t.trim();if(r)return"loose"!==e.securityLevel?dc.sanitizeUrl(r):r}Vt(xc,"interpolateToCurve"),Vt(bc,"formatUrl");var kc=Vt((t,...e)=>{const r=t.split("."),i=r.length-1,o=r[i];let a=window;for(let e=0;e<i;e++)if(a=a[r[e]],!a)return void Jt.error(`Function name: ${t} not found in window`);a[o](...e)},"runFunc");function wc(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function Sc(t){let e,r=0;t.forEach(t=>{r+=wc(t,e),e=t});return vc(t,r/2)}function Tc(t){return 1===t.length?t[0]:Sc(t)}Vt(wc,"distance"),Vt(Sc,"traverseEdge"),Vt(Tc,"calcLabelPosition");var Bc=Vt((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),vc=Vt((t,e)=>{let r,i=e;for(const e of t){if(r){const t=wc(e,r);if(0===t)return r;if(t<i)i-=t;else{const o=i/t;if(o<=0)return r;if(o>=1)return{x:e.x,y:e.y};if(o>0&&o<1)return{x:Bc((1-o)*r.x+o*e.x,5),y:Bc((1-o)*r.y+o*e.y,5)}}}r=e}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Fc=Vt((t,e,r)=>{Jt.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=vc(e,25),o=t?10:5,a=Math.atan2(e[0].y-i.y,e[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(a)*o+(e[0].x+i.x)/2,s.y=-Math.cos(a)*o+(e[0].y+i.y)/2,s},"calcCardinalityPosition");function Lc(t,e,r){const i=structuredClone(r);Jt.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const o=vc(i,25+t),a=10+.5*t,s=Math.atan2(i[0].y-o.y,i[0].x-o.x),n={x:0,y:0};return"start_left"===e?(n.x=Math.sin(s+Math.PI)*a+(i[0].x+o.x)/2,n.y=-Math.cos(s+Math.PI)*a+(i[0].y+o.y)/2):"end_right"===e?(n.x=Math.sin(s-Math.PI)*a+(i[0].x+o.x)/2,n.y=-Math.cos(s-Math.PI)*a+(i[0].y+o.y)/2):(n.x=Math.sin(s)*a+(i[0].x+o.x)/2,n.y=-Math.cos(s)*a+(i[0].y+o.y)/2),n}function _c(t){let e="",r="";for(const i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}Vt(Lc,"calcTerminalLabelPosition"),Vt(_c,"getStylesFromArray");var Mc=0,Ac=Vt(()=>(Mc++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Mc),"generateId");function Ec(t){let e="";const r="0123456789abcdef";for(let i=0;i<t;i++)e+=r.charAt(Math.floor(16*Math.random()));return e}Vt(Ec,"makeRandomHex");var $c=Vt(t=>Ec(t.length),"random"),Oc=Vt(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"),Ic=Vt(function(t,e){const r=e.text.replace(Qo.lineBreakRegex," "),[,i]=Vc(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class);const a=o.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.attr("fill",e.fill),a.text(r),o},"drawSimpleText"),Dc=rt((t,e,r)=>{if(!t)return t;if(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Qo.hasBreaks(t))return t;const i=t.split(" ").filter(Boolean),o=[];let a="";return i.forEach((t,s)=>{const n=zc(`${t} `,r),l=zc(a,r);if(n>e){const{hyphenatedStrings:i,remainingWord:s}=qc(t,e,"-",r);o.push(a,...i),a=s}else l+n>=e?(o.push(a),a=t):a=[a,t].filter(Boolean).join(" ");s+1===i.length&&o.push(a)}),o.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),qc=rt((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const o=[...t],a=[];let s="";return o.forEach((t,n)=>{const l=`${s}${t}`;if(zc(l,i)>=e){const t=n+1,e=o.length===t,i=`${l}${r}`;a.push(e?l:i),s=""}else s=l}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Pc(t,e){return Wc(t,e).height}function zc(t,e){return Wc(t,e).width}Vt(Pc,"calculateTextHeight"),Vt(zc,"calculateTextWidth");var Rc,Wc=rt((t,e)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};const[,a]=Vc(r),s=["sans-serif",i],n=t.split(Qo.lineBreakRegex),l=[],h=Gs("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const t of s){let e=0;const r={width:0,height:0,lineHeight:0};for(const i of n){const s=Oc();s.text=i||"​";const n=Ic(c,s).style("font-size",a).style("font-weight",o).style("font-family",t),l=(n._groups||n)[0][0].getBBox();if(0===l.width&&0===l.height)throw new Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}l.push(r)}c.remove();return l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),Nc=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{Vt(this,"InitIDGenerator")}},jc=Vt(function(t){return Rc=Rc||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Rc.innerHTML=t,unescape(Rc.textContent)},"entityDecode");function Hc(t){return"str"in t}function Uc(t){return t instanceof Error?t.message:String(t)}Vt(Hc,"isDetailedError"),Vt(Uc,"getErrorMessage");var Yc=Vt((t,e,r,i)=>{if(!i)return;const o=t.node()?.getBBox();o&&t.append("text").text(i).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Vc=Vt(t=>{if("number"==typeof t)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 Gc(t,e){return nt({},t,e)}Vt(Gc,"cleanAndMerge");var Xc={assignWithDepth:di,wrapLabel:Dc,calculateTextHeight:Pc,calculateTextWidth:zc,calculateTextDimensions:Wc,cleanAndMerge:Gc,detectInit:fc,detectDirective:yc,isSubstringInArray:Cc,interpolateToCurve:xc,calcLabelPosition:Tc,calcCardinalityPosition:Fc,calcTerminalLabelPosition:Lc,formatUrl:bc,getStylesFromArray:_c,generateId:Ac,random:$c,runFunc:kc,entityDecode:jc,insertTitle:Yc,isLabelCoordinateInPath:td,parseFontSize:Vc,InitIDGenerator:Nc},Zc=Vt(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)}),e=e.replace(/#\w+;/g,function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}),e},"encodeEntities"),Qc=Vt(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Kc=Vt((t,e,{counter:r=0,prefix:i,suffix:o},a)=>a||`${i?`${i}_`:""}${t}_${e}_${r}${o?`_${o}`:""}`,"getEdgeId");function Jc(t){return t??null}function td(t,e){const r=Math.round(t.x),i=Math.round(t.y),o=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return o.includes(r.toString())||o.includes(i.toString())}function ed(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}Vt(Jc,"handleUndefinedAttr"),Vt(td,"isLabelCoordinateInPath");var rd={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function id(t){rd=t}var od={exec:()=>null};function ad(t,e=""){let r="string"==typeof t?t:t.source,i={replace:(t,e)=>{let o="string"==typeof e?e:e.source;return o=o.replace(nd.caret,"$1"),r=r.replace(t,o),i},getRegex:()=>new RegExp(r,e)};return i}var sd=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),nd={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+));?/gi,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})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\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")},ld=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,hd=/(?:[*+-]|\d{1,9}[.)])/,cd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,dd=ad(cd).replace(/bull/g,hd).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(),ud=ad(cd).replace(/bull/g,hd).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(),pd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,gd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,fd=ad(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yd=ad(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hd).getRegex(),md="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",Cd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xd=ad("^ {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[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Cd).replace("tag",md).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bd=ad(pd).replace("hr",ld).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",md).getRegex(),kd={blockquote:ad(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bd).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:fd,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ld,html:xd,lheading:dd,list:yd,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:bd,table:od,text:/^[^\n]+/},wd=ad("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\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",md).getRegex(),Sd={...kd,lheading:ud,table:wd,paragraph:ad(pd).replace("hr",ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",wd).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",md).getRegex()},Td={...kd,html:ad("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Cd).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:od,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ad(pd).replace("hr",ld).replace("heading"," *#{1,6} *[^\n]").replace("lheading",dd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Bd=/^( {2,}|\\)\n(?!\s*$)/,vd=/[\p{P}\p{S}]/u,Fd=/[\s\p{P}\p{S}]/u,Ld=/[^\s\p{P}\p{S}]/u,_d=ad(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Fd).getRegex(),Md=/(?!~)[\p{P}\p{S}]/u,Ad=ad(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",sd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ed=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$d=ad(Ed,"u").replace(/punct/g,vd).getRegex(),Od=ad(Ed,"u").replace(/punct/g,Md).getRegex(),Id="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Dd=ad(Id,"gu").replace(/notPunctSpace/g,Ld).replace(/punctSpace/g,Fd).replace(/punct/g,vd).getRegex(),qd=ad(Id,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Md).getRegex(),Pd=ad("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ld).replace(/punctSpace/g,Fd).replace(/punct/g,vd).getRegex(),zd=ad(/\\(punct)/,"gu").replace(/punct/g,vd).getRegex(),Rd=ad(/^<(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(),Wd=ad(Cd).replace("(?:--\x3e|$)","--\x3e").getRegex(),Nd=ad("^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",Wd).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jd=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Hd=ad(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",jd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ud=ad(/^!?\[(label)\]\[(ref)\]/).replace("label",jd).replace("ref",gd).getRegex(),Yd=ad(/^!?\[(ref)\](?:\[\])?/).replace("ref",gd).getRegex(),Vd=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Gd={_backpedal:od,anyPunctuation:zd,autolink:Rd,blockSkip:Ad,br:Bd,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:od,emStrongLDelim:$d,emStrongRDelimAst:Dd,emStrongRDelimUnd:Pd,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Hd,nolink:Yd,punctuation:_d,reflink:Ud,reflinkSearch:ad("reflink|nolink(?!\\()","g").replace("reflink",Ud).replace("nolink",Yd).getRegex(),tag:Nd,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:od},Xd={...Gd,link:ad(/^!?\[(label)\]\((.*?)\)/).replace("label",jd).getRegex(),reflink:ad(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jd).getRegex()},Zd={...Gd,emStrongRDelimAst:qd,emStrongLDelim:Od,url:ad(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Vd).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:ad(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Vd).getRegex()},Qd={...Zd,br:ad(Bd).replace("{2,}","*").getRegex(),text:ad(Zd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Kd={normal:kd,gfm:Sd,pedantic:Td},Jd={normal:Gd,gfm:Zd,breaks:Qd,pedantic:Xd},tu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eu=t=>tu[t];function ru(t,e){if(e){if(nd.escapeTest.test(t))return t.replace(nd.escapeReplace,eu)}else if(nd.escapeTestNoEncode.test(t))return t.replace(nd.escapeReplaceNoEncode,eu);return t}function iu(t){try{t=encodeURI(t).replace(nd.percentDecode,"%")}catch{return null}return t}function ou(t,e){let r=t.replace(nd.findPipe,(t,e,r)=>{let i=!1,o=e;for(;--o>=0&&"\\"===r[o];)i=!i;return i?"|":" |"}),i=r.split(nd.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(nd.slashPipe,"|");return i}function au(t,e,r){let i=t.length;if(0===i)return"";let o=0;for(;o<i;){if(t.charAt(i-o-1)!==e)break;o++}return t.slice(0,i-o)}function su(t,e,r,i,o){let a=e.href,s=e.title||null,n=t[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:a,title:s,text:n,tokens:i.inlineTokens(n)};return i.state.inLink=!1,l}var nu=class{options;rules;lexer;constructor(t){this.options=t||rd}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:au(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(null===i)return e;let o=i[1];return e.split("\n").map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[i]=e;return i.length>=o.length?t.slice(o.length):t}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=au(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:au(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=au(e[0],"\n").split("\n"),r="",i="",o=[];for(;t.length>0;){let e,a=!1,s=[];for(e=0;e<t.length;e++)if(this.rules.other.blockquoteStart.test(t[e]))s.push(t[e]),a=!0;else{if(a)break;s.push(t[e])}t=t.slice(e);let n=s.join("\n"),l=n.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${n}`:n,i=i?`${i}\n${l}`:l;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,o,!0),this.lexer.state.top=h,0===t.length)break;let c=o.at(-1);if("code"===c?.type)break;if("blockquote"===c?.type){let e=c,a=e.raw+"\n"+t.join("\n"),s=this.blockquote(a);o[o.length-1]=s,r=r.substring(0,r.length-e.raw.length)+s.raw,i=i.substring(0,i.length-e.text.length)+s.text;break}if("list"===c?.type){let e=c,a=e.raw+"\n"+t.join("\n"),s=this.list(a);o[o.length-1]=s,r=r.substring(0,r.length-c.raw.length)+s.raw,i=i.substring(0,i.length-e.raw.length)+s.raw,t=a.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),i=r.length>1,o={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;t;){let r=!1,i="",n="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;i=e[0],t=t.substring(i.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),h=t.split("\n",1)[0],c=!l.trim(),d=0;if(this.options.pedantic?(d=2,n=l.trimStart()):c?d=e[1].length+1:(d=e[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,n=l.slice(d),d+=e[1].length),c&&this.rules.other.blankLine.test(h)&&(i+=h+"\n",t=t.substring(h.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;t;){let u,p=t.split("\n",1)[0];if(h=p,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),u=h):u=h.replace(this.rules.other.tabCharGlobal," "),o.test(h)||a.test(h)||s.test(h)||e.test(h)||r.test(h))break;if(u.search(this.rules.other.nonSpaceChar)>=d||!h.trim())n+="\n"+u.slice(d);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(l)||a.test(l)||r.test(l))break;n+="\n"+h}!c&&!h.trim()&&(c=!0),i+=p+"\n",t=t.substring(p.length+1),l=u.slice(d)}}o.loose||(s?o.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(s=!0));let u,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(n),p&&(u="[ ] "!==p[0],n=n.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:i,task:!!p,checked:u,loose:!1,text:n,tokens:[]}),o.raw+=i}let n=o.items.at(-1);if(!n)return;n.raw=n.raw.trimEnd(),n.text=n.text.trimEnd(),o.raw=o.raw.trimEnd();for(let t=0;t<o.items.length;t++)if(this.lexer.state.top=!1,o.items[t].tokens=this.lexer.blockTokens(o.items[t].text,[]),!o.loose){let e=o.items[t].tokens.filter(t=>"space"===t.type),r=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));o.loose=r}if(o.loose)for(let t=0;t<o.items.length;t++)o.items[t].loose=!0;return o}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:i}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=ou(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let t of i)this.rules.other.tableAlignRight.test(t)?a.align.push("right"):this.rules.other.tableAlignCenter.test(t)?a.align.push("center"):this.rules.other.tableAlignLeft.test(t)?a.align.push("left"):a.align.push(null);for(let t=0;t<r.length;t++)a.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:a.align[t]});for(let t of o)a.rows.push(ou(t,a.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:a.align[e]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=au(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(e[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}(e[2],"()");if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),su(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return su(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!i[1]&&!i[2]||!r||this.rules.inline.punctuation.exec(r))){let r,o,a=[...i[0]].length-1,s=a,n=0,l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+a);null!=(i=l.exec(e));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=[...r].length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&a%3&&!((a+o)%3)){n+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+n);let e=[...i[0]][0].length,l=t.slice(0,a+i.index+e+o);if(Math.min(a,o)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let h=l.slice(2,-2);return{type:"strong",raw:l,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),i=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&i&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return"@"===e[2]?(t=e[1],r="mailto:"+t):(t=e[1],r=t),{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])t=e[0],r="mailto:"+t;else{let i;do{i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(i!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},lu=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||rd,this.options.tokenizer=this.options.tokenizer||new nu,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 e={other:nd,block:Kd.normal,inline:Jd.normal};this.options.pedantic?(e.block=Kd.pedantic,e.inline=Jd.pedantic):this.options.gfm&&(e.block=Kd.gfm,this.options.breaks?e.inline=Jd.breaks:e.inline=Jd.gfm),this.tokenizer.rules=e}static get rules(){return{block:Kd,inline:Jd}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(nd.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(nd.tabCharGlobal," ").replace(nd.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(r=>!!(i=r.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let r=e.at(-1);1===i.raw.length&&void 0!==r?r.raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let r=e.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.text,this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let r=e.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},e.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),e.push(i);continue}let o=t;if(this.options.extensions?.startBlock){let e,r=1/0,i=t.slice(1);this.options.extensions.startBlock.forEach(t=>{e=t.call({lexer:this},i),"number"==typeof e&&e>=0&&(r=Math.min(r,e))}),r<1/0&&r>=0&&(o=t.substring(0,r+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let a=e.at(-1);r&&"paragraph"===a?.type?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+i.raw,a.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(i),r=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let r=e.at(-1);"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,i=t,o=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(i));)t.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(i));)r=o[2]?o[2].length:0,i=i.slice(0,o.index+r)+"["+"a".repeat(o[0].length-r-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,s="";for(;t;){let r;if(a||(s=""),a=!1,this.options.extensions?.inline?.some(i=>!!(r=i.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let i=e.at(-1);"text"===r.type&&"text"===i?.type?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(t,i,s)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let o=t;if(this.options.extensions?.startInline){let e,r=1/0,i=t.slice(1);this.options.extensions.startInline.forEach(t=>{e=t.call({lexer:this},i),"number"==typeof e&&e>=0&&(r=Math.min(r,e))}),r<1/0&&r>=0&&(o=t.substring(0,r+1))}if(r=this.tokenizer.inlineText(o)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),a=!0;let i=e.at(-1);"text"===i?.type?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},hu=class{options;parser;constructor(t){this.options=t||rd}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(nd.notSpaceStart)?.[0],o=t.replace(nd.endingNewline,"")+"\n";return i?'<pre><code class="language-'+ru(i)+'">'+(r?o:ru(o,!0))+"</code></pre>\n":"<pre><code>"+(r?o:ru(o,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,r=t.start,i="";for(let e=0;e<t.items.length;e++){let r=t.items[e];i+=this.listitem(r)}let o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+i+"</"+o+">\n"}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+ru(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",r="";for(let e=0;e<t.header.length;e++)r+=this.tablecell(t.header[e]);e+=this.tablerow({text:r});let i="";for(let e=0;e<t.rows.length;e++){let o=t.rows[e];r="";for(let t=0;t<o.length;t++)r+=this.tablecell(o[t]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+i+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ru(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),o=iu(t);if(null===o)return i;let a='<a href="'+(t=o)+'"';return e&&(a+=' title="'+ru(e)+'"'),a+=">"+i+"</a>",a}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let o=iu(t);if(null===o)return ru(r);let a=`<img src="${t=o}" alt="${r}"`;return e&&(a+=` title="${ru(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ru(t.text)}},cu=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},du=class t{options;renderer;textRenderer;constructor(t){this.options=t||rd,this.options.renderer=this.options.renderer||new hu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new cu}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let i=0;i<t.length;i++){let o=t[i];if(this.options.extensions?.renderers?.[o.type]){let t=o,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){r+=e||"";continue}}let a=o;switch(a.type){case"space":r+=this.renderer.space(a);continue;case"hr":r+=this.renderer.hr(a);continue;case"heading":r+=this.renderer.heading(a);continue;case"code":r+=this.renderer.code(a);continue;case"table":r+=this.renderer.table(a);continue;case"blockquote":r+=this.renderer.blockquote(a);continue;case"list":r+=this.renderer.list(a);continue;case"html":r+=this.renderer.html(a);continue;case"def":r+=this.renderer.def(a);continue;case"paragraph":r+=this.renderer.paragraph(a);continue;case"text":{let o=a,s=this.renderer.text(o);for(;i+1<t.length&&"text"===t[i+1].type;)o=t[++i],s+="\n"+this.renderer.text(o);r+=e?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):s;continue}default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let i=0;i<t.length;i++){let o=t[i];if(this.options.extensions?.renderers?.[o.type]){let t=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=t||"";continue}}let a=o;switch(a.type){case"escape":case"text":r+=e.text(a);break;case"html":r+=e.html(a);break;case"link":r+=e.link(a);break;case"image":r+=e.image(a);break;case"strong":r+=e.strong(a);break;case"em":r+=e.em(a);break;case"codespan":r+=e.codespan(a);break;case"br":r+=e.br(a);break;case"del":r+=e.del(a);break;default:{let t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return r}},uu=class{options;block;constructor(t){this.options=t||rd}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?lu.lex:lu.lexInline}provideParser(){return this.block?du.parse:du.parseInline}},pu=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=du;Renderer=hu;TextRenderer=cu;Lexer=lu;Tokenizer=nu;Hooks=uu;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":{let t=i;for(let i of t.header)r=r.concat(this.walkTokens(i.tokens,e));for(let i of t.rows)for(let t of i)r=r.concat(this.walkTokens(t.tokens,e));break}case"list":{let t=i;r=r.concat(this.walkTokens(t.items,e));break}default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let o=t[i].flat(1/0);r=r.concat(this.walkTokens(o,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];e.renderers[t.name]=r?function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=r.apply(this,e)),i}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new hu(this.defaults);for(let r in t.renderer){if(!(r in e))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let i=r,o=t.renderer[i],a=e[i];e[i]=(...t)=>{let r=o.apply(e,t);return!1===r&&(r=a.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new nu(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let i=r,o=t.tokenizer[i],a=e[i];e[i]=(...t)=>{let r=o.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new uu;for(let r in t.hooks){if(!(r in e))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let i=r,o=t.hooks[i],a=e[i];uu.passThroughHooks.has(r)?e[i]=t=>{if(this.defaults.async&&uu.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await o.call(e,t);return a.call(e,r)})();let i=o.call(e,t);return a.call(e,i)}:e[i]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await o.apply(e,t);return!1===r&&(r=await a.apply(e,t)),r})();let r=o.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,i=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(i.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return lu.lex(t,e??this.defaults)}parser(t,e){return du.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===i.async)return a(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 e>"u"||null===e)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let r=o.hooks?await o.hooks.preprocess(e):e,i=await(o.hooks?await o.hooks.provideLexer():t?lu.lex:lu.lexInline)(r,o),a=o.hooks?await o.hooks.processAllTokens(i):i;o.walkTokens&&await Promise.all(this.walkTokens(a,o.walkTokens));let s=await(o.hooks?await o.hooks.provideParser():t?du.parse:du.parseInline)(a,o);return o.hooks?await o.hooks.postprocess(s):s})().catch(a);try{o.hooks&&(e=o.hooks.preprocess(e));let r=(o.hooks?o.hooks.provideLexer():t?lu.lex:lu.lexInline)(e,o);o.hooks&&(r=o.hooks.processAllTokens(r)),o.walkTokens&&this.walkTokens(r,o.walkTokens);let i=(o.hooks?o.hooks.provideParser():t?du.parse:du.parseInline)(r,o);return o.hooks&&(i=o.hooks.postprocess(i)),i}catch(t){return a(t)}}}onError(t,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+ru(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function gu(t,e){return pu.parse(t,e)}function fu(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!==(r=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==r?r:0})):t},[]);if(o.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,o)+"}","g");i=i.map(function(t){return t.replace(a,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return e.forEach(function(t,e){var r=s.match(/(?:^|\n)( *)$/),o=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map(function(t,e){return 0===e?t:""+o+t}).join("\n")),s+=a+i[e+1]}),s}gu.options=gu.setOptions=function(t){return pu.setOptions(t),gu.defaults=pu.defaults,id(gu.defaults),gu},gu.getDefaults=ed,gu.defaults=rd,gu.use=function(...t){return pu.use(...t),gu.defaults=pu.defaults,id(gu.defaults),gu},gu.walkTokens=function(t,e){return pu.walkTokens(t,e)},gu.parseInline=pu.parseInline,gu.Parser=du,gu.parser=du.parse,gu.Renderer=hu,gu.TextRenderer=cu,gu.Lexer=lu,gu.lexer=lu.lex,gu.Tokenizer=nu,gu.Hooks=uu,gu.parse=gu,gu.options,gu.setOptions,gu.use,gu.walkTokens,gu.parseInline,du.parse,lu.lex;var yu="undefined"!=typeof performance&&"function"==typeof performance.now,mu=Vt(()=>yu?performance.now():0,"now"),Cu="🧜 ",xu={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};function bu(t,{markdownAutoWrap:e}){return fu(t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"))}function ku(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function wu(t,e={}){const r=bu(t,e),i=gu.lexer(r),o=[[]];let a=0;function s(t,e="normal"){if("text"===t.type){t.text.split("\n").forEach((t,r)=>{0!==r&&(a++,o.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&o[a].push({content:t,type:e})})})}else"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&o[a].push({content:t.text,type:"normal"})}return Vt(s,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type?o[a].push({content:t.text,type:"normal"}):o[a].push({content:t.raw,type:"normal"})}),o}function Su(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function Tu(t,{markdownAutoWrap:e}={}){const r=gu.lexer(t);function i(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${t.tokens?.map(i).join("")}</strong>`:"em"===t.type?`<em>${t.tokens?.map(i).join("")}</em>`:"paragraph"===t.type?`<p>${t.tokens?.map(i).join("")}</p>`:"space"===t.type?"":"html"===t.type?`${t.text}`:"escape"===t.type?t.text:(Jt.warn(`Unsupported markdown: ${t.type}`),t.raw)}return Vt(i,"output"),r.map(i).join("")}(class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{Vt(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();const r=mu();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(mu()-r)}}async tick(t,e){if(!this.enabled)return e();const r=mu();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(mu()-r)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;const e={name:t,start:mu(),duration:-1,children:[]},r=this.stack.at(-1);if(r?r.children.push(e):this.roots.push(e),this.stack.push(e),yu&&"function"==typeof performance.mark)try{performance.mark(`${Cu}${t} ▶`)}catch{}}end(){if(!this.enabled)return;const t=this.stack.pop();if(!t)return;const e=mu();if(t.duration=e-t.start,yu&&"function"==typeof performance.measure)try{performance.measure(`${Cu}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:"Mermaid render",trackGroup:"Mermaid",color:xu[t.name]??"primary",tooltipText:`${t.name} — ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;const r=t.duration,i=e&&e!==t.name?`${t.name} [${e}]`:t.name,o=["ms % phase"],a=Vt((t,e)=>{const i=" ".repeat(e),s=t.duration.toFixed(1).padStart(8),n=r>0?`${(t.duration/r*100).toFixed(0).padStart(3)}%`:" -";o.push(`${s} ${n} ${i}${t.name}`);for(const r of t.children)a(r,e+1);if(t.children.length>0){const e=t.children.reduce((t,e)=>t+e.duration,0),r=t.duration-e;if(r>.5){const t=r.toFixed(1).padStart(8);o.push(`${t} ${i} (self)`)}}},"walk");a(t,0);const s=Object.keys(this.buckets);if(s.length>0){o.push("—— buckets (summed) ——");for(const t of s)o.push(`${this.buckets[t].toFixed(1).padStart(8)} ${t}`)}console.log(`${Cu}mermaid render profile · ${i}\n${o.join("\n")}`)}}),globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"},Vt(bu,"preprocessMarkdown"),Vt(ku,"nonMarkdownToLines"),Vt(wu,"markdownToLines"),Vt(Su,"nonMarkdownToHTML"),Vt(Tu,"markdownToHTML");var Bu=function(t){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function r(){var r=this;r.reads=[],r.writes=[],r.raf=e.bind(t)}function i(t){t.scheduled||(t.scheduled=!0,t.raf(o.bind(null,t)))}function o(t){var e,r=t.writes,o=t.reads;try{o.length,t.runTasks(o),r.length,t.runTasks(r)}catch(t){e=t}if(t.scheduled=!1,(o.length||r.length)&&i(t),e){if(e.message,!t.catch)throw e;t.catch(e)}}function a(t,e){var r=t.indexOf(e);return!!~r&&!!t.splice(r,1)}function s(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}return Vt(r,"FastDom"),r.prototype={constructor:r,runTasks:Vt(function(t){for(var e;e=t.shift();)e()},"runTasks"),measure:Vt(function(t,e){var r=e?t.bind(e):t;return this.reads.push(r),i(this),r},"measure"),mutate:Vt(function(t,e){var r=e?t.bind(e):t;return this.writes.push(r),i(this),r},"mutate"),clear:Vt(function(t){return a(this.reads,t)||a(this.writes,t)},"clear"),extend:Vt(function(t){if("object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return s(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},"extend"),catch:null},Vt(i,"scheduleFlush"),Vt(o,"flush"),Vt(a,"remove"),Vt(s,"mixin"),t.fastdom=t.fastdom||new r}("undefined"!=typeof window?window:globalThis),vu={initialize:Vt(function(){this._tasks=new Map},"initialize"),mutate:Vt(function(t,e){return Fu(this,"mutate",t,e)},"mutate"),measure:Vt(function(t,e){return Fu(this,"measure",t,e)},"measure"),clear:Vt(function(t){var e=this._tasks,r=e.get(t);this.fastdom.clear(r),e.delete(t)},"clear")};function Fu(t,e,r,i){var o,a=t._tasks,s=t.fastdom,n=new Promise(function(t,l){o=s[e](function(){a.delete(n);try{t(i?r.call(i):r())}catch(t){l(t)}},i)});return a.set(n,o),n}Vt(Fu,"create");var{initialize:Lu,mutate:_u,measure:Mu,clear:Au}=vu,Eu=vu,$u=Bu.extend({raf(t){"function"==typeof queueMicrotask?queueMicrotask(t):setTimeout(t,0)}}).extend(Eu);function Ou(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map(t=>t.segment):[...t]}function Iu(t,e){return Du(t,[],Ou(e.content),e.type)}function Du(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];const[o,...a]=r,s=[...e,o];return t([{content:s.join(""),type:i}])?Du(t,s,a,i):(0===e.length&&o&&(e.push(o),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function qu(t,e){if(t.some(({content:t})=>t.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return Pu(t,e)}function Pu(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let o="";" "===t[0].content&&(o=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},s=[...i];if(""!==o&&s.push({content:o,type:"normal"}),s.push(a),e(s))return Pu(t,e,r,s);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){const[i,o]=Iu(e,a);r.push([i]),o.content&&t.unshift(o)}return Pu(t,e,r)}function zu(t,e){e&&t.attr("style",e)}Vt(Ou,"splitTextToChars"),Vt(Iu,"splitWordToFitWidth"),Vt(Du,"splitWordToFitWidthRecursion"),Vt(qu,"splitLineToFitWidth"),Vt(Pu,"splitLineToFitWidthRecursion"),Vt(zu,"applyStyle");async function Ru(t,e,r,i,o=!1,a=fo(),s=0){const n=t.append("foreignObject");n.attr("width",`${Math.min(10*r,16384)}px`),n.attr("height",`${Math.min(10*r,16384)}px`);const l=n.append("xhtml:div"),h=Vo(e.label)?await Zo(e.label.replace(Qo.lineBreakRegex,"\n"),a):Eo(e.label,a),c=e.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(h),zu(d,e.labelStyle),d.attr("class",`${c} ${i}`),zu(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&l.attr("class","labelBkg");const u=await $u.measure(()=>l.node().getBoundingClientRect());return u.width===r?(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px")):u.width<s&&(l.style("display","table"),l.style("width",s+"px"),l.style("text-align","center")),n.node()}function Wu(t,e,r,i=!1){const o=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return i&&o.attr("text-anchor","middle"),o}function Nu(t,e,r){const i=t.append("text"),o=Wu(i,1,e);Yu(o,r);const a=o.node().getComputedTextLength();return i.remove(),a}function ju(t,e,r){const i=t.append("text"),o=Wu(i,1,e);Yu(o,[{content:r,type:"normal"}]);const a=o.node()?.getBoundingClientRect();return a&&i.remove(),a}function Hu(t,e,r,i=!1,o=!1){const a=e.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),n=a.append("text").attr("y","-10.1");o&&n.attr("text-anchor","middle");let l=0;for(const e of r){const r=Vt(e=>Nu(a,1.1,e)<=t,"checkWidth"),i=r(e)?[e]:qu(e,r);for(const t of i){Yu(Wu(n,l,1.1,o),t),l++}}if(i){const t=n.node().getBBox(),e=2;return s.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e),a.node()}return n.node()}function Uu(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function Yu(t,e){t.text(""),e.forEach((e,r)=>{const i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(Uu(e.content)):i.text(" "+Uu(e.content))})}async function Vu(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,o)=>(r.push((async()=>{const r=`${i}:${o}`;return await nc(r)?await lc(r,void 0,{class:"label-icon"}):`<i class='${Eo(t,e).replace(":"," ")}'></i>`})()),t));const i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}Vt(Ru,"addHtmlSpan"),Vt(Wu,"createTspan"),Vt(Nu,"computeWidthOfText"),Vt(ju,"computeDimensionOfText"),Vt(Hu,"createFormattedText"),Vt(Uu,"decodeHTMLEntities"),Vt(Yu,"updateTextContentAndStyles"),Vt(Vu,"replaceIconSubstring");var Gu=Vt(async(t,e="",{style:r="",isTitle:i=!1,classes:o="",useHtmlLabels:a=!0,markdown:s=!0,isNode:n=!0,width:l=200,minWidth:h=0,addSvgBackground:c=!1}={},d)=>{if(Jt.debug("XYZ createText",e,r,i,o,a,n,"addSvgBackground: ",c),a){const i=s?Tu(e,d):Su(e),a=await Vu(Qc(i),d),u=e.replace(/\\\\/g,"\\"),p={isNode:n,label:Vo(e)?u:a,labelStyle:r.replace("fill:","color:")};return await Ru(t,p,l,o,c,d,h)}{const o=Qc(e.replace(/<br\s*\/?>/g,"<br/>")),a=Hu(l,t,s?wu(o.replace("<br>","<br/>"),d):ku(o),!!e&&c,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Gs(a).attr("style",t)}else{const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Gs(a).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Gs(a).select("text").attr("style",e)}return i?Gs(a).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Gs(a).selectAll("tspan.text-outer-tspan").classed("row",!0),a}},"createText"),Xu=new Set(["redux-color","redux-dark-color"]),Zu=Vt(t=>Array.isArray(t)&&t.length>0,"hasPalette"),Qu=Vt((t,e)=>null!=t&&Xu.has(t)&&Zu(e),"isColorTheme"),Ku=/^[\w-]+$/,Ju=Vt(t=>{const e="string"==typeof t||"number"==typeof t?String(t):"";return Ku.test(e)?e:"classic"},"safeLook"),tp=Vt(t=>Zu(t)?t.length:0,"paletteSlotCount"),ep=Vt((t,e)=>Zu(e)?tp(e):"number"==typeof t&&Number.isInteger(t)&&t>0&&t<=64?t:12,"colorSlotCount"),rp=Vt((t,e,r,i)=>{if(void 0===e||!Qu(r,i))return;const o=e%tp(i);t.attr("data-color-id",`color-${o}`)},"stampColorSlot");function ip(t,e,r){if(t&&t.length){const[i,o]=e,a=Math.PI/180*r,s=Math.cos(a),n=Math.sin(a);for(const e of t){const[t,r]=e;e[0]=(t-i)*s-(r-o)*n+i,e[1]=(t-i)*n+(r-o)*s+o}}}function op(t,e){return t[0]===e[0]&&t[1]===e[1]}function ap(t,e,r,i=1){const o=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,n=[0,0];if(o)for(const t of s)ip(t,n,o);const l=function(t,e,r){const i=[];for(const e of t){const t=[...e];op(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const o=[];e=Math.max(e,.1);const a=[];for(const t of i)for(let e=0;e<t.length-1;e++){const r=t[e],i=t[e+1];if(r[1]!==i[1]){const t=Math.min(r[1],i[1]);a.push({ymin:t,ymax:Math.max(r[1],i[1]),x:t===r[1]?r[0]:i[0],islope:(i[0]-r[0])/(i[1]-r[1])})}}if(a.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!a.length)return o;let s=[],n=a[0].ymin,l=0;for(;s.length||a.length;){if(a.length){let t=-1;for(let e=0;e<a.length&&!(a[e].ymin>n);e++)t=e;a.splice(0,t+1).forEach(t=>{s.push({s:n,edge:t})})}if(s=s.filter(t=>!(t.edge.ymax<=n)),s.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||l%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const r=s[t].edge,i=s[e].edge;o.push([[Math.round(r.x),n],[Math.round(i.x),n]])}n+=r,s.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),l++}return o}(s,a,i);if(o){for(const t of s)ip(t,n,-o);!function(t,e,r){const i=[];t.forEach(t=>i.push(...t)),ip(i,e,r)}(l,n,-o)}return l}function sp(t,e){var r;const i=e.hachureAngle+90;let o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.round(Math.max(o,.1));let a=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(a=o),ap(t,o,i,a||1)}class np{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const r=sp(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function lp(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 hp extends np{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);const i=sp(t,Object.assign({},e,{hachureGap:r})),o=Math.PI/180*e.hachureAngle,a=[],s=.5*r*Math.cos(o),n=.5*r*Math.sin(o);for(const[t,e]of i)lp([t,e])&&a.push([[t[0]-s,t[1]+n],[...e]],[[t[0]+s,t[1]-n],[...e]]);return{type:"fillSketch",ops:this.renderLines(a,e)}}}class cp extends np{fillPolygons(t,e){const r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),o=this._fillPolygons(t,i);return r.ops=r.ops.concat(o.ops),r}}class dp{constructor(t){this.helper=t}fillPolygons(t,e){const r=sp(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){const r=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let o=e.fillWeight;o<0&&(o=e.strokeWidth/2);const a=i/4;for(const s of t){const t=lp(s),n=t/i,l=Math.ceil(n)-1,h=t-l*i,c=(s[0][0]+s[1][0])/2-i/4,d=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){const s=d+h+t*i,n=c-a+2*Math.random()*a,l=s-a+2*Math.random()*a,u=this.helper.ellipse(n,l,o,o,e);r.push(...u.ops)}}return{type:"fillSketch",ops:r}}}class up{constructor(t){this.helper=t}fillPolygons(t,e){const r=sp(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){const r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,o=[];return t.forEach(t=>{const a=lp(t),s=Math.floor(a/(r+i)),n=(a+i-s*(r+i))/2;let l=t[0],h=t[1];l[0]>h[0]&&(l=t[1],h=t[0]);const c=Math.atan((h[1]-l[1])/(h[0]-l[0]));for(let t=0;t<s;t++){const a=t*(r+i),s=a+r,h=[l[0]+a*Math.cos(c)+n*Math.cos(c),l[1]+a*Math.sin(c)+n*Math.sin(c)],d=[l[0]+s*Math.cos(c)+n*Math.cos(c),l[1]+s*Math.sin(c)+n*Math.sin(c)];o.push(...this.helper.doubleLineOps(h[0],h[1],d[0],d[1],e))}}),o}}class pp{constructor(t){this.helper=t}fillPolygons(t,e){const r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?r:e.zigzagOffset,o=sp(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,e)}}zigzagLines(t,e,r){const i=[];return t.forEach(t=>{const o=lp(t),a=Math.round(o/(2*e));let s=t[0],n=t[1];s[0]>n[0]&&(s=t[1],n=t[0]);const l=Math.atan((n[1]-s[1])/(n[0]-s[0]));for(let t=0;t<a;t++){const o=2*t*e,a=2*(t+1)*e,n=Math.sqrt(2*Math.pow(e,2)),h=[s[0]+o*Math.cos(l),s[1]+o*Math.sin(l)],c=[s[0]+a*Math.cos(l),s[1]+a*Math.sin(l)],d=[h[0]+n*Math.cos(l+Math.PI/4),h[1]+n*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(h[0],h[1],d[0],d[1],r),...this.helper.doubleLineOps(d[0],d[1],c[0],c[1],r))}}),i}}const gp={};class fp{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const yp={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 mp(t,e){return t.type===e}function Cp(t){const e=[],r=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let i="BOD",o=0,a=r[o];for(;!mp(a,2);){let s=0;const n=[];if("BOD"===i){if("M"!==a.text&&"m"!==a.text)return Cp("M0,0"+t);o++,s=yp[a.text],i=a.text}else mp(a,1)?s=yp[i]:(o++,s=yp[a.text],i=a.text);if(!(o+s<r.length))throw new Error("Path data ended short");for(let t=o;t<o+s;t++){const e=r[t];if(!mp(e,1))throw new Error("Param not a number: "+i+","+e.text);n[n.length]=+e.text}if("number"!=typeof yp[i])throw new Error("Bad segment: "+i);{const t={key:i,data:n};e.push(t),o+=s,a=r[o],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function xp(t){let e=0,r=0,i=0,o=0;const a=[];for(const{key:s,data:n}of t)switch(s){case"M":a.push({key:"M",data:[...n]}),[e,r]=n,[i,o]=n;break;case"m":e+=n[0],r+=n[1],a.push({key:"M",data:[e,r]}),i=e,o=r;break;case"L":a.push({key:"L",data:[...n]}),[e,r]=n;break;case"l":e+=n[0],r+=n[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...n]}),e=n[4],r=n[5];break;case"c":{const t=n.map((t,i)=>i%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...n]}),e=n[2],r=n[3];break;case"q":{const t=n.map((t,i)=>i%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...n]}),e=n[5],r=n[6];break;case"a":e+=n[5],r+=n[6],a.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],e,r]});break;case"H":a.push({key:"H",data:[...n]}),e=n[0];break;case"h":e+=n[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...n]}),e=n[2],r=n[3];break;case"s":{const t=n.map((t,i)=>i%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...n]}),e=n[0],r=n[1];break;case"t":e+=n[0],r+=n[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=i,r=o}return a}function bp(t){const e=[];let r="",i=0,o=0,a=0,s=0,n=0,l=0;for(const{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,o]=c,[a,s]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],o=c[5],n=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,o]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,o]});break;case"V":o=c[0],e.push({key:"L",data:[i,o]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=i+(i-n),a=o+(o-l)):(t=i,a=o),e.push({key:"C",data:[t,a,...c]}),n=c[0],l=c[1],i=c[2],o=c[3];break}case"T":{const[t,a]=c;let s=0,h=0;"Q"===r||"T"===r?(s=i+(i-n),h=o+(o-l)):(s=i,h=o);const d=i+2*(s-i)/3,u=o+2*(h-o)/3,p=t+2*(s-t)/3,g=a+2*(h-a)/3;e.push({key:"C",data:[d,u,p,g,t,a]}),n=s,l=h,i=t,o=a;break}case"Q":{const[t,r,a,s]=c,h=i+2*(t-i)/3,d=o+2*(r-o)/3,u=a+2*(t-a)/3,p=s+2*(r-s)/3;e.push({key:"C",data:[h,d,u,p,a,s]}),n=t,l=r,i=a,o=s;break}case"A":{const t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],s=c[3],n=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,o,l,h,l,h]}),i=l,o=h):i===l&&o===h||(wp(i,o,l,h,t,r,a,s,n).forEach(function(t){e.push({key:"C",data:t})}),i=l,o=h);break}case"Z":e.push({key:"Z",data:[]}),i=a,o=s}r=h}return e}function kp(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function wp(t,e,r,i,o,a,s,n,l,h){const c=(d=s,Math.PI*d/180);var d;let u=[],p=0,g=0,f=0,y=0;if(h)[p,g,f,y]=h;else{[t,e]=kp(t,e,-c),[r,i]=kp(r,i,-c);const s=(t-r)/2,h=(e-i)/2;let d=s*s/(o*o)+h*h/(a*a);d>1&&(d=Math.sqrt(d),o*=d,a*=d);const u=o*o,m=a*a,C=u*m-u*h*h-m*s*s,x=u*h*h+m*s*s,b=(n===l?-1:1)*Math.sqrt(Math.abs(C/x));f=b*o*h/a+(t+r)/2,y=b*-a*s/o+(e+i)/2,p=Math.asin(parseFloat(((e-y)/a).toFixed(9))),g=Math.asin(parseFloat(((i-y)/a).toFixed(9))),t<f&&(p=Math.PI-p),r<f&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let m=g-p;if(Math.abs(m)>120*Math.PI/180){const t=g,e=r,n=i;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,u=wp(r=f+o*Math.cos(g),i=y+a*Math.sin(g),e,n,o,a,s,0,l,[g,t,f,y])}m=g-p;const C=Math.cos(p),x=Math.sin(p),b=Math.cos(g),k=Math.sin(g),w=Math.tan(m/4),S=4/3*o*w,T=4/3*a*w,B=[t,e],v=[t+S*x,e-T*C],F=[r+S*k,i-T*b],L=[r,i];if(v[0]=2*B[0]-v[0],v[1]=2*B[1]-v[1],h)return[v,F,L].concat(u);{u=[v,F,L].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const r=kp(u[e][0],u[e][1],c),i=kp(u[e+1][0],u[e+1][1],c),o=kp(u[e+2][0],u[e+2][1],c);t.push([r[0],r[1],i[0],i[1],o[0],o[1]])}return t}}const Sp={randOffset:function(t,e){return Dp(t,e)},randOffsetWithRange:function(t,e,r){return Ip(t,e,r)},ellipse:function(t,e,r,i,o){return Lp(t,e,o,Fp(r,i,o)).opset},doubleLineOps:function(t,e,r,i,o){return qp(t,e,r,i,o,!0)}};function Tp(t,e,r,i,o){return{type:"path",ops:qp(t,e,r,i,o)}}function Bp(t,e,r){const i=(t||[]).length;if(i>2){const o=[];for(let e=0;e<i-1;e++)o.push(...qp(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&o.push(...qp(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:o}}return 2===i?Tp(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function vp(t,e){if(t.length){const r="number"==typeof t[0][0]?[t]:t,i=zp(r[0],1*(1+.2*e.roughness),e),o=e.disableMultiStroke?[]:zp(r[0],1.5*(1+.22*e.roughness),$p(e));for(let t=1;t<r.length;t++){const a=r[t];if(a.length){const t=zp(a,1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:zp(a,1.5*(1+.22*e.roughness),$p(e));for(const e of t)"move"!==e.op&&i.push(e);for(const t of r)"move"!==t.op&&o.push(t)}}return{type:"path",ops:i.concat(o)}}return{type:"path",ops:[]}}function Fp(t,e,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),o=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/o;let s=Math.abs(t/2),n=Math.abs(e/2);const l=1-r.curveFitting;return s+=Dp(s*l,r),n+=Dp(n*l,r),{increment:a,rx:s,ry:n}}function Lp(t,e,r,i){const[o,a]=Wp(i.increment,t,e,i.rx,i.ry,1,i.increment*Ip(.1,Ip(.4,1,r),r),r);let s=Rp(o,null,r);if(!r.disableMultiStroke&&0!==r.roughness){const[o]=Wp(i.increment,t,e,i.rx,i.ry,1.5,0,r),a=Rp(o,null,r);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function _p(t,e,r,i,o,a,s,n,l){const h=t,c=e;let d=Math.abs(r/2),u=Math.abs(i/2);d+=Dp(.01*d,l),u+=Dp(.01*u,l);let p=o,g=a;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const f=2*Math.PI/l.curveStepCount,y=Math.min(f/2,(g-p)/2),m=Np(y,h,c,d,u,p,g,1,l);if(!l.disableMultiStroke){const t=Np(y,h,c,d,u,p,g,1.5,l);m.push(...t)}return s&&(n?m.push(...qp(h,c,h+d*Math.cos(p),c+u*Math.sin(p),l),...qp(h,c,h+d*Math.cos(g),c+u*Math.sin(g),l)):m.push({op:"lineTo",data:[h,c]},{op:"lineTo",data:[h+d*Math.cos(p),c+u*Math.sin(p)]})),{type:"path",ops:m}}function Mp(t,e){const r=bp(xp(Cp(t))),i=[];let o=[0,0],a=[0,0];for(const{key:t,data:s}of r)switch(t){case"M":a=[s[0],s[1]],o=[s[0],s[1]];break;case"L":i.push(...qp(a[0],a[1],s[0],s[1],e)),a=[s[0],s[1]];break;case"C":{const[t,r,o,n,l,h]=s;i.push(...jp(t,r,o,n,l,h,a,e)),a=[l,h];break}case"Z":i.push(...qp(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]]}return{type:"path",ops:i}}function Ap(t,e){const r=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+Dp(t,e),i[0][1]+Dp(t,e)]});for(let a=1;a<o;a++)r.push({op:"lineTo",data:[i[a][0]+Dp(t,e),i[a][1]+Dp(t,e)]})}}return{type:"fillPath",ops:r}}function Ep(t,e){return function(t,e){let r=t.fillStyle||"hachure";if(!gp[r])switch(r){case"zigzag":gp[r]||(gp[r]=new hp(e));break;case"cross-hatch":gp[r]||(gp[r]=new cp(e));break;case"dots":gp[r]||(gp[r]=new dp(e));break;case"dashed":gp[r]||(gp[r]=new up(e));break;case"zigzag-line":gp[r]||(gp[r]=new pp(e));break;default:r="hachure",gp[r]||(gp[r]=new np(e))}return gp[r]}(e,Sp).fillPolygons(t,e)}function $p(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function Op(t){return t.randomizer||(t.randomizer=new fp(t.seed||0)),t.randomizer.next()}function Ip(t,e,r,i=1){return r.roughness*i*(Op(r)*(e-t)+t)}function Dp(t,e,r=1){return Ip(-t,t,e,r)}function qp(t,e,r,i,o,a=!1){const s=a?o.disableMultiStrokeFill:o.disableMultiStroke,n=Pp(t,e,r,i,o,!0,!1);if(s)return n;const l=Pp(t,e,r,i,o,!0,!0);return n.concat(l)}function Pp(t,e,r,i,o,a,s){const n=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(n);let h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=o.maxRandomnessOffset||0;c*c*100>n&&(c=l/10);const d=c/2,u=.2+.2*Op(o);let p=o.bowing*o.maxRandomnessOffset*(i-e)/200,g=o.bowing*o.maxRandomnessOffset*(t-r)/200;p=Dp(p,o,h),g=Dp(g,o,h);const f=[],y=()=>Dp(d,o,h),m=()=>Dp(c,o,h),C=o.preserveVertices;return s?f.push({op:"move",data:[t+(C?0:y()),e+(C?0:y())]}):f.push({op:"move",data:[t+(C?0:Dp(c,o,h)),e+(C?0:Dp(c,o,h))]}),s?f.push({op:"bcurveTo",data:[p+t+(r-t)*u+y(),g+e+(i-e)*u+y(),p+t+2*(r-t)*u+y(),g+e+2*(i-e)*u+y(),r+(C?0:y()),i+(C?0:y())]}):f.push({op:"bcurveTo",data:[p+t+(r-t)*u+m(),g+e+(i-e)*u+m(),p+t+2*(r-t)*u+m(),g+e+2*(i-e)*u+m(),r+(C?0:m()),i+(C?0:m())]}),f}function zp(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+Dp(e,r),t[0][1]+Dp(e,r)]),i.push([t[0][0]+Dp(e,r),t[0][1]+Dp(e,r)]);for(let o=1;o<t.length;o++)i.push([t[o][0]+Dp(e,r),t[o][1]+Dp(e,r)]),o===t.length-1&&i.push([t[o][0]+Dp(e,r),t[o][1]+Dp(e,r)]);return Rp(i,null,r)}function Rp(t,e,r){const i=t.length,o=[];if(i>3){const e=[],a=1-r.curveTightness;o.push({op:"move",data:[t[1][0],t[1][1]]});for(let r=1;r+2<i;r++){const i=t[r];e[0]=[i[0],i[1]],e[1]=[i[0]+(a*t[r+1][0]-a*t[r-1][0])/6,i[1]+(a*t[r+1][1]-a*t[r-1][1])/6],e[2]=[t[r+1][0]+(a*t[r][0]-a*t[r+2][0])/6,t[r+1][1]+(a*t[r][1]-a*t[r+2][1])/6],e[3]=[t[r+1][0],t[r+1][1]],o.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[3][0],e[3][1]]})}}else 3===i?(o.push({op:"move",data:[t[1][0],t[1][1]]}),o.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&o.push(...Pp(t[0][0],t[0][1],t[1][0],t[1][1],r,0,!0));return o}function Wp(t,e,r,i,o,a,s,n){const l=[],h=[];if(0===n.roughness){t/=4,h.push([e+i*Math.cos(-t),r+o*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){const t=[e+i*Math.cos(a),r+o*Math.sin(a)];l.push(t),h.push(t)}h.push([e+i*Math.cos(0),r+o*Math.sin(0)]),h.push([e+i*Math.cos(t),r+o*Math.sin(t)])}else{const c=Dp(.5,n)-Math.PI/2;h.push([Dp(a,n)+e+.9*i*Math.cos(c-t),Dp(a,n)+r+.9*o*Math.sin(c-t)]);const d=2*Math.PI+c-.01;for(let s=c;s<d;s+=t){const t=[Dp(a,n)+e+i*Math.cos(s),Dp(a,n)+r+o*Math.sin(s)];l.push(t),h.push(t)}h.push([Dp(a,n)+e+i*Math.cos(c+2*Math.PI+.5*s),Dp(a,n)+r+o*Math.sin(c+2*Math.PI+.5*s)]),h.push([Dp(a,n)+e+.98*i*Math.cos(c+s),Dp(a,n)+r+.98*o*Math.sin(c+s)]),h.push([Dp(a,n)+e+.9*i*Math.cos(c+.5*s),Dp(a,n)+r+.9*o*Math.sin(c+.5*s)])}return[h,l]}function Np(t,e,r,i,o,a,s,n,l){const h=a+Dp(.1,l),c=[];c.push([Dp(n,l)+e+.9*i*Math.cos(h-t),Dp(n,l)+r+.9*o*Math.sin(h-t)]);for(let a=h;a<=s;a+=t)c.push([Dp(n,l)+e+i*Math.cos(a),Dp(n,l)+r+o*Math.sin(a)]);return c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),c.push([e+i*Math.cos(s),r+o*Math.sin(s)]),Rp(c,0,l)}function jp(t,e,r,i,o,a,s,n){const l=[],h=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3];let c=[0,0];const d=n.disableMultiStroke?1:2,u=n.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(u?0:Dp(h[0],n)),s[1]+(u?0:Dp(h[0],n))]}),c=u?[o,a]:[o+Dp(h[p],n),a+Dp(h[p],n)],l.push({op:"bcurveTo",data:[t+Dp(h[p],n),e+Dp(h[p],n),r+Dp(h[p],n),i+Dp(h[p],n),c[0],c[1]]});return l}function Hp(t){return[...t]}function Up(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(3===r)i.push(Hp(t[0]),Hp(t[1]),Hp(t[2]),Hp(t[2]));else{const r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);const o=[],a=1-e;i.push(Hp(r[0]));for(let t=1;t+2<r.length;t++){const e=r[t];o[0]=[e[0],e[1]],o[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],o[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],o[3]=[r[t+1][0],r[t+1][1]],i.push(o[1],o[2],o[3])}}return i}function Yp(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Vp(t,e,r){const i=Yp(e,r);if(0===i)return Yp(t,e);let o=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return o=Math.max(0,Math.min(1,o)),Yp(t,Gp(e,r,o))}function Gp(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function Xp(t,e,r,i){const o=i||[];if(function(t,e){const r=t[e+0],i=t[e+1],o=t[e+2],a=t[e+3];let s=3*i[0]-2*r[0]-a[0];s*=s;let n=3*i[1]-2*r[1]-a[1];n*=n;let l=3*o[0]-2*a[0]-r[0];l*=l;let h=3*o[1]-2*a[1]-r[1];return h*=h,s<l&&(s=l),n<h&&(n=h),s+n}(t,e)<r){const r=t[e+0];o.length?(a=o[o.length-1],s=r,Math.sqrt(Yp(a,s))>1&&o.push(r)):o.push(r),o.push(t[e+3])}else{const i=.5,a=t[e+0],s=t[e+1],n=t[e+2],l=t[e+3],h=Gp(a,s,i),c=Gp(s,n,i),d=Gp(n,l,i),u=Gp(h,c,i),p=Gp(c,d,i),g=Gp(u,p,i);Xp([a,h,u,g],0,r,o),Xp([g,p,d,l],0,r,o)}var a,s;return o}function Zp(t,e){return Qp(t,0,t.length,e)}function Qp(t,e,r,i,o){const a=o||[],s=t[e],n=t[r-1];let l=0,h=1;for(let i=e+1;i<r-1;++i){const e=Vp(t[i],s,n);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(Qp(t,e,h+1,i,a),Qp(t,h,r,i,a)):(a.length||a.push(s),a.push(n)),a}function Kp(t,e=.15,r){const i=[],o=(t.length-1)/3;for(let r=0;r<o;r++)Xp(t,3*r,e,i);return r&&r>0?Qp(i,0,i.length,r):i}const Jp="none";class tg{constructor(t){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=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,o){const a=this._o(o);return this._d("line",[Tp(t,e,r,i,a)],a)}rectangle(t,e,r,i,o){const a=this._o(o),s=[],n=function(t,e,r,i,o){return function(t,e){return Bp(t,!0,e)}([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],o)}(t,e,r,i,a);if(a.fill){const o=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===a.fillStyle?s.push(Ap([o],a)):s.push(Ep([o],a))}return a.stroke!==Jp&&s.push(n),this._d("rectangle",s,a)}ellipse(t,e,r,i,o){const a=this._o(o),s=[],n=Fp(r,i,a),l=Lp(t,e,a,n);if(a.fill)if("solid"===a.fillStyle){const r=Lp(t,e,a,n).opset;r.type="fillPath",s.push(r)}else s.push(Ep([l.estimatedPoints],a));return a.stroke!==Jp&&s.push(l.opset),this._d("ellipse",s,a)}circle(t,e,r,i){const o=this.ellipse(t,e,r,r,i);return o.shape="circle",o}linearPath(t,e){const r=this._o(e);return this._d("linearPath",[Bp(t,!1,r)],r)}arc(t,e,r,i,o,a,s=!1,n){const l=this._o(n),h=[],c=_p(t,e,r,i,o,a,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){const s=Object.assign({},l);s.disableMultiStroke=!0;const n=_p(t,e,r,i,o,a,!0,!1,s);n.type="fillPath",h.push(n)}else h.push(function(t,e,r,i,o,a,s){const n=t,l=e;let h=Math.abs(r/2),c=Math.abs(i/2);h+=Dp(.01*h,s),c+=Dp(.01*c,s);let d=o,u=a;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);const p=(u-d)/s.curveStepCount,g=[];for(let t=d;t<=u;t+=p)g.push([n+h*Math.cos(t),l+c*Math.sin(t)]);return g.push([n+h*Math.cos(u),l+c*Math.sin(u)]),g.push([n,l]),Ep([g],s)}(t,e,r,i,o,a,l));return l.stroke!==Jp&&h.push(c),this._d("arc",h,l)}curve(t,e){const r=this._o(e),i=[],o=vp(t,r);if(r.fill&&r.fill!==Jp)if("solid"===r.fillStyle){const e=vp(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],o=t;if(o.length){const t="number"==typeof o[0][0]?[o]:o;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...Kp(Up([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...Kp(Up(i),10,(1+r.roughness)/2))}e.length&&i.push(Ep([e],r))}return r.stroke!==Jp&&i.push(o),this._d("curve",i,r)}polygon(t,e){const r=this._o(e),i=[],o=Bp(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(Ap([t],r)):i.push(Ep([t],r))),r.stroke!==Jp&&i.push(o),this._d("polygon",i,r)}path(t,e){const r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&"transparent"!==r.fill&&r.fill!==Jp,a=r.stroke!==Jp,s=!!(r.simplification&&r.simplification<1),n=function(t,e,r){const i=bp(xp(Cp(t))),o=[];let a=[],s=[0,0],n=[];const l=()=>{n.length>=4&&a.push(...Kp(n,1)),n=[]},h=()=>{l(),a.length&&(o.push(a),a=[])};for(const{key:t,data:e}of i)switch(t){case"M":h(),s=[e[0],e[1]],a.push(s);break;case"L":l(),a.push([e[0],e[1]]);break;case"C":if(!n.length){const t=a.length?a[a.length-1]:s;n.push([t[0],t[1]])}n.push([e[0],e[1]]),n.push([e[2],e[3]]),n.push([e[4],e[5]]);break;case"Z":l(),a.push([s[0],s[1]])}if(h(),!r)return o;const c=[];for(const t of o){const e=Zp(t,r);e.length&&c.push(e)}return c}(t,0,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=Mp(t,r);if(o)if("solid"===r.fillStyle)if(1===n.length){const e=Mp(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(Ap(n,r));else i.push(Ep(n,r));return a&&(s?n.forEach(t=>{i.push(Bp(t,!1,r))}):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){const e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Jp};break;case"fillPath":e={d:this.opsToPath(t),stroke:Jp,strokeWidth:0,fill:r.fill||Jp};break;case"fillSketch":e=this.fillSketch(t,r)}e&&i.push(e)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Jp,strokeWidth:r,fill:Jp}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class eg{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new tg(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const a of e)switch(a.type){case"path":i.save(),i.strokeStyle="none"===r.stroke?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,a,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(i,a,o,e),i.restore();break}case"fillSketch":this.fillSketch(i,a,r)}}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,i="nonzero"){t.beginPath();for(const i of e.ops){const e="number"==typeof r&&r>=0?i.data.map(t=>+t.toFixed(r)):i.data;switch(i.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,i,o){const a=this.gen.line(t,e,r,i,o);return this.draw(a),a}rectangle(t,e,r,i,o){const a=this.gen.rectangle(t,e,r,i,o);return this.draw(a),a}ellipse(t,e,r,i,o){const a=this.gen.ellipse(t,e,r,i,o);return this.draw(a),a}circle(t,e,r,i){const o=this.gen.circle(t,e,r,i);return this.draw(o),o}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,i,o,a,s=!1,n){const l=this.gen.arc(t,e,r,i,o,a,s,n);return this.draw(l),l}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){const r=this.gen.path(t,e);return this.draw(r),r}}const rg="http://www.w3.org/2000/svg";class ig{constructor(t,e){this.svg=t,this.gen=new tg(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(rg,"g"),a=t.options.fixedDecimalPlaceDigits;for(const s of e){let e=null;switch(s.type){case"path":e=i.createElementNS(rg,"path"),e.setAttribute("d",this.opsToPath(s,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(rg,"path"),e.setAttribute("d",this.opsToPath(s,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,s,r)}e&&o.appendChild(e)}return o}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=t.createElementNS(rg,"path");return o.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,o){const a=this.gen.line(t,e,r,i,o);return this.draw(a)}rectangle(t,e,r,i,o){const a=this.gen.rectangle(t,e,r,i,o);return this.draw(a)}ellipse(t,e,r,i,o){const a=this.gen.ellipse(t,e,r,i,o);return this.draw(a)}circle(t,e,r,i){const o=this.gen.circle(t,e,r,i);return this.draw(o)}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,o,a,s=!1,n){const l=this.gen.arc(t,e,r,i,o,a,s,n);return this.draw(l)}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r)}path(t,e){const r=this.gen.path(t,e);return this.draw(r)}}var og={canvas:(t,e)=>new eg(t,e),svg:(t,e)=>new ig(t,e),generator:t=>new tg(t),newSeed:()=>tg.newSeed()};async function ag(t){const e=t.getElementsByTagName("img");if(!e||0===e.length)return;const r=!sg(t);await Promise.all([...e].map(t=>new Promise(e=>{function i(){if(t.style.display="flex",t.style.flexDirection="column",r){const e=ka().fontSize?ka().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[i=ji.fontSize]=Vc(e),o=i*r+"px";t.style.minWidth=o,t.style.maxWidth=o}else t.style.width="100%";e(t)}Vt(i,"setupImage"),setTimeout(()=>{t.complete&&i()}),t.addEventListener("error",i),t.addEventListener("load",i)})))}function sg(t){if(3===t.nodeType)return""!==t.textContent?.trim();if(1!==t.nodeType)return!1;return"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(sg)}Vt(ag,"configureLabelImages"),Vt(sg,"hasTextBesidesImages");var ng=Vt(async(t,e,r)=>{const i=ka(),o=t.insert("g").attr("class",r??"node default").attr("id",e.domId||e.id),a=o.insert("g").attr("class","label").attr("style",Jc(e.labelStyle)),s=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),n=e.width?Math.max(e.width-2*(e.padding??0),32):ka().flowchart?.wrappingWidth??200,l=i.c4?.wrap??!0?n:Number.POSITIVE_INFINITY,h=await Promise.all(s.map(async t=>{const r=a.append("g").attr("class",t.cssClass),o=await Gu(r,Eo(Qc(t.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:e.labelStyle},i);return Gs(o).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Gs(o).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:r,box:r.node().getBBox()}})),c=Math.max(...h.map(({box:t})=>t.width),0);let d=0;for(const{el:t,box:e}of h)t.attr("transform",`translate(${c/2-e.x-e.width/2}, ${d-e.y})`),d+=e.height+3;const u=h.length>0?d-3:0;a.insert("rect",":first-child"),a.attr("transform",`translate(${-c/2}, ${-u/2})`);return{shapeSvg:o,bbox:a.node().getBBox(),halfPadding:(e.padding??0)/2,label:a}},"c4LabelHelper"),lg=Vt((t,e)=>{const{x:r,y:i,width:o,height:a}=t;return o>=e?t:"left"in t?{x:r,y:i,width:e,height:a,top:i,left:r,bottom:i+a,right:r+e,toJSON:Vt(()=>({}),"toJSON")}:{x:r-(e-o)/2,y:i,width:e,height:a}},"withMinWidth"),hg=Vt(async(t,e,r,{ignoreMinWidth:i=!1}={})=>{if(void 0!==e.stereotype)return ng(t,e,r);let o;const a=e.useHtmlLabels||eo(ka()?.htmlLabels);o=r||"node default";const s=t.insert("g").attr("class",o).attr("id",e.domId||e.id),n=s.insert("g").attr("class","label").attr("style",Jc(e.labelStyle));let l;l=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];const h=!!e.icon||!!e.img,c="markdown"===e.labelType,d=!l||e.width||i?0:e.minWidth??0,u=await Gu(n,Eo(Qc(l),ka()),{useHtmlLabels:a,width:e.width||e.wrappingWidth||ka().flowchart?.wrappingWidth,minWidth:d,classes:c?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:h,markdown:c},ka()),p=(e?.padding??0)/2;let g;if(a){const t=u.children[0],e=Gs(u);await ag(t),g=await $u.measure(()=>t.getBoundingClientRect()),g=lg(g,d),e.attr("width",g.width),e.attr("height",g.height)}else g=await $u.measure(()=>u.getBBox()),g=lg(g,d);return a?n.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"):n.attr("transform","translate(0, "+-g.height/2+")"),e.centerLabel&&n.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:g,halfPadding:p,label:n}},"labelHelper"),cg=Vt(async(t,e,r)=>{const i=r.useHtmlLabels??To(ka()),o=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Gu(o,Eo(Qc(e),ka()),{useHtmlLabels:i,width:r.width||ka()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),s=r.padding/2;let n;if(To(ka())){const t=a.children[0],e=Gs(a);n=await $u.measure(()=>t.getBoundingClientRect()),e.attr("width",n.width),e.attr("height",n.height)}else n=await $u.measure(()=>a.getBBox());return i?o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):o.attr("transform","translate(0, "+-n.height/2+")"),r.centerLabel&&o.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:t,bbox:n,halfPadding:s,label:o}},"insertLabel"),dg=Vt((t,e,r)=>{if(r)return t.width=r.width,void(t.height=r.height);const i=e.node().getBBox();t.width=i.width,t.height=i.height},"updateNodeBounds"),ug=Vt((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function pg(t){const e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function gg(t,e,r,i,o,a){const s=[],n=r-t,l=i-e,h=n/a,c=2*Math.PI/h,d=e+l/2;for(let e=0;e<=50;e++){const r=t+e/50*n,i=d+o*Math.sin(c*(r-t));s.push({x:r,y:i})}return s}function fg(t,e,r,i,o,a){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){const i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:-a,y:-h})}return s}function yg(t){const e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");r.setAttribute("d",i);const o=e.find(t=>"none"!==t.getAttribute("fill")),a=e.find(t=>"none"!==t.getAttribute("stroke")),s=Vt((t,e)=>t?.getAttribute(e)??void 0,"getAttr");if(o){const t={fill:s(o,"fill"),"fill-opacity":s(o,"fill-opacity")??"1"};Object.entries(t).forEach(([t,e])=>{e&&r.setAttribute(t,e)})}if(a){const t={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(t).forEach(([t,e])=>{e&&r.setAttribute(t,e)})}const n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}Vt(pg,"createPathFromPoints"),Vt(gg,"generateFullSineWavePoints"),Vt(fg,"generateCirclePoints"),Vt(yg,"mergePaths");var mg=Vt((t,e)=>{var r,i,o=t.x,a=t.y,s=e.x-o,n=e.y-a,l=t.width/2,h=t.height/2;return Math.abs(n)*l>Math.abs(s)*h?(n<0&&(h=-h),r=0===n?0:h*s/n,i=h):(s<0&&(l=-l),r=l,i=0===s?0:l*n/s),{x:o+r,y:a+i}},"intersectRect"),Cg=mg;function xg(t,e){return t.intersect(e)}Vt(xg,"intersectNode");var bg=xg;function kg(t,e,r,i){var o=t.x,a=t.y,s=o-i.x,n=a-i.y,l=Math.sqrt(e*e*n*n+r*r*s*s),h=Math.abs(e*r*s/l);i.x<o&&(h=-h);var c=Math.abs(e*r*n/l);return i.y<a&&(c=-c),{x:o+h,y:a+c}}Vt(kg,"intersectEllipse");var wg=kg;function Sg(t,e,r){return wg(t,e,e,r)}Vt(Sg,"intersectCircle");var Tg=Sg;function Bg(t,e,r,i){{const o=e.y-t.y,a=t.x-e.x,s=e.x*t.y-t.x*e.y,n=o*r.x+a*r.y+s,l=o*i.x+a*i.y+s,h=1e-6;if(0!==n&&0!==l&&vg(n,l))return;const c=i.y-r.y,d=r.x-i.x,u=i.x*r.y-r.x*i.y,p=c*t.x+d*t.y+u,g=c*e.x+d*e.y+u;if(Math.abs(p)<h&&Math.abs(g)<h&&vg(p,g))return;const f=o*d-c*a;if(0===f)return;return{x:(a*u-d*s)/f,y:(c*s-o*u)/f}}}function vg(t,e){return t*e>0}Vt(Bg,"intersectLine"),Vt(vg,"sameSign");var Fg=Bg;function Lg(t,e,r){let i=t.x,o=t.y,a=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){s=Math.min(s,t.x),n=Math.min(n,t.y)}):(s=Math.min(s,e.x),n=Math.min(n,e.y));let l=i-t.width/2-s,h=o-t.height/2-n;for(let i=0;i<e.length;i++){let o=e[i],s=e[i<e.length-1?i+1:0],n=Fg(t,r,{x:l+o.x,y:h+o.y},{x:l+s.x,y:h+s.y});n&&a.push(n)}return a.length?(a.length>1&&a.sort(function(t,e){let i=t.x-r.x,o=t.y-r.y,a=Math.sqrt(i*i+o*o),s=e.x-r.x,n=e.y-r.y,l=Math.sqrt(s*s+n*n);return a<l?-1:a===l?0:1}),a[0]):t}Vt(Lg,"intersectPolygon");var _g={node:bg,circle:Tg,ellipse:wg,polygon:Lg,rect:Cg},Mg=Vt((t,e,r,i,o)=>["M",t+o,e,"H",t+r-o,"A",o,o,0,0,1,t+r,e+o,"V",e+i-o,"A",o,o,0,0,1,t+r-o,e+i,"H",t+o,"A",o,o,0,0,1,t,e+i-o,"V",e+o,"A",o,o,0,0,1,t+o,e,"Z"].join(" "),"createRoundedRectPathD"),Ag=Vt(async(t,e,r,i=!1,o=!1)=>{let a=e||"";"object"==typeof a&&(a=a[0]);const s=ka(),n=To(s);return await Gu(t,a,{style:r,isTitle:i,useHtmlLabels:n,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Eg=Ag;function $g(t,e){const{labelStyles:r}=Ih(e);e.labelStyle=r;const i=ug(e);let o=i;i||(o="anchor");const a=t.insert("g").attr("class",o).attr("id",e.domId||e.id),{cssStyles:s}=e,n=og.svg(a),l=Dh(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(l.roughness=0);const h=n.circle(0,0,2,l),c=a.insert(()=>h,":first-child");return c.attr("class","anchor").attr("style",Jc(s)),dg(e,c),e.intersect=function(t){return Jt.info("Circle intersect",e,1,t),_g.circle(e,1,t)},a}function Og(t,e,r,i,o,a,s){const n=(t+r)/2,l=(e+i)/2,h=Math.atan2(i-e,r-t),c=(r-t)/2/o,d=(i-e)/2/a,u=Math.sqrt(c**2+d**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-u**2),g=n+p*a*Math.sin(h)*(s?-1:1),f=l-p*o*Math.cos(h)*(s?-1:1),y=Math.atan2((e-f)/a,(t-g)/o);let m=Math.atan2((i-f)/a,(r-g)/o)-y;s&&m<0&&(m+=2*Math.PI),!s&&m>0&&(m-=2*Math.PI);const C=[];for(let t=0;t<20;t++){const e=y+t/19*m,r=g+o*Math.cos(e),i=f+a*Math.sin(e);C.push({x:r,y:i})}return C}function Ig(t,e,r){const[i,o]=[e,r].sort((t,e)=>e-t);return o*(1-Math.sqrt(1-(t/i/2)**2))}async function Dg(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o,n=Vt(t=>t+s,"calcTotalHeight"),l=Vt(t=>{const e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:h,bbox:c}=await hg(t,e,ug(e)),d=n(e?.height?e?.height:c.height),[u,p]=l(d),g=Ig(d,u,p),f=(e?.width?e?.width:c.width)+2*a+g-g,y=d,{cssStyles:m}=e,C=[{x:f/2,y:-y/2},{x:-f/2,y:-y/2},...Og(-f/2,-y/2,-f/2,y/2,u,p,!1),{x:f/2,y:y/2},...Og(f/2,y/2,f/2,-y/2,u,p,!0)],x=og.svg(h),b=Dh(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const k=pg(C),w=x.path(k,b),S=h.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(${u/2}, 0)`),dg(e,S),e.intersect=function(t){return _g.polygon(e,C,t)},h}async function qg(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;const{shapeSvg:a,bbox:s,label:n}=await hg(t,e,ug(e)),l=r?.nodeBorder??r?.lineColor??"currentColor",h=e.padding??12,c=Math.max(s.width+2*h,e.width??0,80),d=Math.max(Math.min(.08*c,12),5),u=Math.max(s.height+2*h+d,e.height??0),p=-u/2+d,g=u/2,f=.72*c,y=[`M${-c/2},${p}`,`L${-f/2},${g}`,`A${f/2},${d} 0 0 0 ${f/2},${g}`,`L${c/2},${p}`,`A${c/2},${d} 0 0 0 ${-c/2},${p}`,"Z"].join(" "),{cssStyles:m}=e,C=a.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){const t=og.svg(a).path(y,Dh(e,{}));C.node()?.appendChild(t),m&&C.attr("style",m)}else C.append("path").attr("d",y).attr("style",o);C.append("ellipse").attr("cx",0).attr("cy",p).attr("rx",c/2).attr("ry",d).attr("style",`fill:none;stroke:${l};stroke-width:1px`),dg(e,C);const x=p+(g-p)/2;n.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${x-s.height/2-(s.y-(s.top??0))})`);const b=Vt((t,e,r)=>Array.from({length:13},(i,o)=>{const a=Math.PI-o*Math.PI/12;return{x:t*Math.cos(a),y:e+r*d*Math.sin(a)}}),"arc"),k=[...b(c/2,p,-1),...b(f/2,g,1).reverse()];return e.intersect=function(t){return _g.polygon(e,k,t)},a}Vt($g,"anchor"),Vt(Og,"generateArcPoints"),Vt(Ig,"calculateArcSagitta"),Vt(Dg,"bowTieRect"),Vt(qg,"bucket");function Pg(t){const{themeVariables:e}=ka(),r=e.clusterBkg,i=e.clusterBorder;return"flow"===t?{rx:10,fill:"none",stroke:e.flowContainerStroke||e.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:8,fill:r,stroke:i,cssClass:"collapsed-group"}}async function zg(t,e){const r=Pg(e.metadata?.containerType),{fill:i,stroke:o}=r,{nodeStyles:a}=Ih(e),{shapeSvg:s,bbox:n}=await hg(t,e,ug(e)),{theme:l,themeVariables:h}=ka();rp(s,e.colorIndex,l,h.borderColorArray);const c=e.padding??8,d=n.height,u=Math.max(n.width+2*c,80,e?.width??0),p=Math.max(d+8+20+2*c,e?.height??0),g=-u/2,f=-p/2,y=s.select(".label");if(y){e.useHtmlLabels??To(ka())?y.attr("transform",`translate(${-n.width/2}, ${-n.height/2-14})`):y.attr("transform",`translate(0, ${-n.height/2-14})`)}let m;if("handDrawn"===e.look){const t=og.svg(s),a=Dh(e,{fill:i,stroke:o,...void 0===r.strokeWidth?{}:{strokeWidth:r.strokeWidth},..."none"===i?{fillWeight:0}:{fillStyle:"solid"}}),n=t.path(Mg(g,f,u,p,r.rx),a);m=s.insert(()=>n,":first-child"),m.attr("class","basic label-container "+r.cssClass).attr("style",Jc(e.cssStyles))}else m=s.insert("rect",":first-child"),m.attr("class","basic label-container "+r.cssClass).attr("style",a).attr("rx",r.rx).attr("ry",r.rx).attr("x",g).attr("y",f).attr("width",u).attr("height",p).attr("fill",i).attr("stroke",o),void 0!==r.strokeWidth&&m.attr("stroke-width",r.strokeWidth+"px");const C=f+c+d+8;s.append("line").attr("class","collapsed-separator").attr("x1",g+8).attr("y1",C).attr("x2",g+u-8).attr("y2",C).attr("stroke",o).attr("stroke-dasharray","3, 3");const x=C+10;for(let t=-1;t<=1;t++)s.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",x).attr("r",2.5).attr("fill",o);return dg(e,m),e.calcIntersect=function(t,e){return _g.rect(t,e)},e.intersect=function(t){return _g.rect(e,t)},s}function Rg(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}Vt(Pg,"getCollapsedStyle"),Vt(zg,"collapsedGroup"),Vt(Rg,"insertPolygonShape");var Wg=["right","left","up","down"],Ng="point",jg=Vt(t=>{const e=new Set;for(const r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r)}return e},"expandAndDeduplicateDirections"),Hg=Vt(t=>Wg.filter(e=>t.has(e)).join("|")||Ng,"getDirectionKey"),Ug={"right|left|up|down":Vt(({height:t,midpoint:e,padding:r,width:i})=>[{x:0,y:0},{x:e,y:0},{x:i/2,y:2*r},{x:i-e,y:0},{x:i,y:0},{x:i,y:-t/3},{x:i+2*r,y:-t/2},{x:i,y:-2*t/3},{x:i,y:-t},{x:i-e,y:-t},{x:i/2,y:-t-2*r},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*r,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":Vt(({height:t,midpoint:e,width:r})=>[{x:e,y:0},{x:r-e,y:0},{x:r,y:-t/2},{x:r-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":Vt(({height:t,midpoint:e,width:r})=>[{x:0,y:0},{x:e,y:-t},{x:r-e,y:-t},{x:r,y:0}],"right|left|down"),"right|up|down":Vt(({height:t,midpoint:e,width:r})=>[{x:0,y:0},{x:r,y:-e},{x:r,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":Vt(({height:t,midpoint:e,width:r})=>[{x:r,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:r,y:-t}],"left|up|down"),"right|left":Vt(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:0},{x:e,y:-r},{x:i-e,y:-r},{x:i-e,y:0},{x:i,y:-t/2},{x:i-e,y:-t},{x:i-e,y:-t+r},{x:e,y:-t+r},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":Vt(({height:t,midpoint:e,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:e,y:-r},{x:e,y:-t+r},{x:0,y:-t+r},{x:i/2,y:-t},{x:i,y:-t+r},{x:i-e,y:-t+r},{x:i-e,y:-r},{x:i,y:-r}],"up|down"),"right|up":Vt(({height:t,midpoint:e,width:r})=>[{x:0,y:0},{x:r,y:-e},{x:0,y:-t}],"right|up"),"right|down":Vt(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":Vt(({height:t,midpoint:e,width:r})=>[{x:r,y:0},{x:0,y:-e},{x:r,y:-t}],"left|up"),"left|down":Vt(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:Vt(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:-r},{x:e,y:-r},{x:i-e,y:-r},{x:i-e,y:0},{x:i,y:-t/2},{x:i-e,y:-t},{x:i-e,y:-t+r},{x:e,y:-t+r},{x:e,y:-t+r}],"right"),left:Vt(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:0},{x:e,y:-r},{x:i-e,y:-r},{x:i-e,y:-t+r},{x:e,y:-t+r},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:Vt(({height:t,midpoint:e,padding:r,width:i})=>[{x:e,y:-r},{x:e,y:-t+r},{x:0,y:-t+r},{x:i/2,y:-t},{x:i,y:-t+r},{x:i-e,y:-t+r},{x:i-e,y:-r}],"up"),down:Vt(({height:t,midpoint:e,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:e,y:-r},{x:e,y:-t+r},{x:i-e,y:-t+r},{x:i-e,y:-r},{x:i,y:-r}],"down"),[Ng]:()=>[{x:0,y:0}]},Yg=Vt((t,e,r,i)=>{const o=jg(t),a=(r.padding??0)/2,s=e.height+4*a,n=s/2,l=i??e.width+2*n+2*a,h=Hg(o);return(Ug[h]??Ug[Ng])({height:s,midpoint:n,padding:a,width:l})},"getArrowPoints");async function Vg(t,e){const r=e,{shapeSvg:i,bbox:o}=await hg(t,r,ug(r)),a=r.padding??0,s=o.height+2*a,n=s/2,l=o.width+2*n+a,h=r.width??0,c=r.positioned&&(r.widthInColumns??1)>1&&h>l?h:l,d=Yg(r.directions??[],o,r,c),u=Rg(i,c,s,d);return u.attr("style",r.style??null),dg(r,u),r.intersect=function(t){return _g.polygon(r,d,t)},i}async function Gg(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;const{shapeSvg:a,bbox:s,label:n}=await hg(t,e,ug(e)),l=r?.nodeBorder??r?.lineColor??"currentColor",h=e.padding??12,c=18,d=Math.max(s.width+2*h,e.width??0,90),u=Math.max(s.height+2*h+c,e.height??0),p=-u/2,{cssStyles:g}=e,f=a.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){const t=og.svg(a).path(Mg(-d/2,p,d,u,12),Dh(e,{}));f.node()?.appendChild(t),g&&f.attr("style",g)}else f.append("rect").attr("x",-d/2).attr("y",p).attr("width",d).attr("height",u).attr("rx",12).attr("ry",12).attr("style",o);f.append("line").attr("x1",-d/2).attr("y1",p+c).attr("x2",d/2).attr("y2",p+c).attr("style",`stroke:${l};stroke-width:1px`);for(let t=0;t<3;t++)f.append("circle").attr("cx",-d/2+12+9*t).attr("cy",p+9).attr("r",2.5).attr("style",`fill:${l};stroke:none`);f.append("rect").attr("class","browser-address-bar").attr("x",-d/2+44).attr("y",p+4).attr("width",Math.max(d-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),dg(e,f);const y=p+c+(u-c)/2;return n.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${y-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return _g.rect(e,t)},a}Vt(Vg,"block_arrow"),Vt(Gg,"browser");async function Xg(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?28:o,s="neo"===e.look?24:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=(e?.width??l.width)+("neo"===e.look?2*a:a+12),c=(e?.height??l.height)+("neo"===e.look?2*s:s),d=-c,u=[{x:12,y:d},{x:h,y:d},{x:h,y:0},{x:0,y:0},{x:0,y:d+12},{x:12,y:d}];let p;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=og.svg(n),r=Dh(e,{}),i=pg(u),o=t.path(i,r);p=n.insert(()=>o,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),g&&p.attr("style",g)}else p=Rg(n,h,c,u);return i&&p.attr("style",i),dg(e,p),e.intersect=function(t){return _g.polygon(e,u,t)},n}function Zg(t,e){const{nodeStyles:r}=Ih(e);e.label="";const i=t.insert("g").attr("class",ug(e)).attr("id",e.domId??e.id),{cssStyles:o}=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}],n=og.svg(i),l=Dh(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");const h=pg(s),c=n.path(h,l),d=i.insert(()=>c,":first-child");return o&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",o),r&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return _g.polygon(e,s,t)},i}async function Qg(t,e,r){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;const{shapeSvg:a,bbox:s,halfPadding:n}=await hg(t,e,ug(e),{ignoreMinWidth:!0}),l=r?.padding??n,h=Math.sqrt(s.width**2+s.height**2)/2,c="neo"===e.look?h+16:h+l;let d;const{cssStyles:u}=e;if("handDrawn"===e.look){const t=og.svg(a),r=Dh(e,{}),i=t.circle(0,0,2*c,r);d=a.insert(()=>i,":first-child"),d.attr("class","basic label-container").attr("style",Jc(u))}else d=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",c).attr("cx",0).attr("cy",0);return dg(e,d),e.calcIntersect=function(t,e){const r=t.width/2;return _g.circle(t,r,e)},e.intersect=function(t){return Jt.info("Circle intersect",e,c,t),_g.circle(e,c,t)},a}async function Kg(t,e){const r=e,i=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:a,halfPadding:s}=await hg(t,r,i),n=o.insert("rect",":first-child"),l=r.padding??0,h=r.positioned?r.width??0:a.width+l,c=r.positioned?r.height??0:a.height+l,d=r.positioned?-h/2:-a.width/2-s,u=r.positioned?-c/2:-a.height/2-s;return n.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",d).attr("y",u).attr("width",h).attr("height",c),dg(r,n),r.intersect=function(t){return _g.rect(r,t)},o}async function Jg(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;const{shapeSvg:a,bbox:s,label:n}=await hg(t,e,ug(e)),l=r?.nodeBorder??r?.lineColor??"currentColor",h=e.padding??12,c=Math.max(s.width+2*h,e.width??0,90),d=Math.max(s.height+2*h+20,e.height??0),u=-d/2,{cssStyles:p}=e,g=a.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){const t=og.svg(a).path(Mg(-c/2,u,c,d,12),Dh(e,{}));g.node()?.appendChild(t),p&&g.attr("style",p)}else g.append("rect").attr("x",-c/2).attr("y",u).attr("width",c).attr("height",d).attr("rx",12).attr("ry",12).attr("style",o);g.append("text").attr("x",-c/2+12).attr("y",u+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(">_"),dg(e,g);const f=u+20+(d-20)/2;return n.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${f-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return _g.rect(e,t)},a}function tf(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t;return`M ${-i/2*e},${i/2*r} L ${i/2*e},${-i/2*r}\n M ${i/2*e},${i/2*r} L ${-i/2*e},${-i/2*r}`}function ef(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r,e.label="";const o=t.insert("g").attr("class",ug(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,n=og.svg(o),l=Dh(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");const h=n.circle(0,0,2*a,l),c=tf(a),d=n.path(c,l),u=o.insert(()=>h,":first-child");return u.insert(()=>d),u.attr("class","outer-path"),s&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",i),dg(e,u),e.intersect=function(t){Jt.info("crossedCircle intersect",e,{radius:a,point:t});return _g.circle(e,a,t)},o}function rf(t,e,r,i=100,o=0,a=180){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){const i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:-a,y:-h})}return s}async function of(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,label:s}=await hg(t,e,ug(e)),n="neo"===e.look?18:e.padding??0,l="neo"===e.look?12:e.padding??0,h=a.width+n,c=a.height+l,d=Math.max(5,.1*c),{cssStyles:u}=e,p=[...rf(h/2,-c/2,d,30,-90,0),{x:-h/2-d,y:d},...rf(h/2+2*d,-d,d,20,-180,-270),...rf(h/2+2*d,d,d,20,-90,-180),{x:-h/2-d,y:-c/2},...rf(h/2,c/2,d,20,0,90)],g=[{x:h/2,y:-c/2-d},{x:-h/2,y:-c/2-d},...rf(h/2,-c/2,d,20,-90,0),{x:-h/2-d,y:-d},...rf(h/2+.1*h,-d,d,20,-180,-270),...rf(h/2+.1*h,d,d,20,-90,-180),{x:-h/2-d,y:c/2},...rf(h/2,c/2,d,20,0,90),{x:-h/2,y:c/2+d},{x:h/2,y:c/2+d}],f=og.svg(o),y=Dh(e,{fill:"none"});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=pg(p).replace("Z",""),C=f.path(m,y),x=pg(g),b=f.path(x,{...y}),k=o.insert("g",":first-child");return k.insert(()=>b,":first-child").attr("stroke-opacity",0),k.insert(()=>C,":first-child"),k.attr("class","text"),u&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${d}, 0)`),s.attr("transform",`translate(${-h/2+d-(a.x-(a.left??0))},${-c/2+(e.padding??0)/2-(a.y-(a.top??0))})`),dg(e,k),e.intersect=function(t){return _g.polygon(e,g,t)},o}function af(t,e,r,i=100,o=0,a=180){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){const i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:a,y:h})}return s}async function sf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,label:s}=await hg(t,e,ug(e)),n="neo"===e.look?18:e.padding??0,l="neo"===e.look?12:e.padding??0,h=a.width+("neo"===e.look?2*n:n),c=a.height+("neo"===e.look?2*l:l),d=Math.max(5,.1*c),{cssStyles:u}=e,p=[...af(h/2,-c/2,d,20,-90,0),{x:h/2+d,y:-d},...af(h/2+2*d,-d,d,20,-180,-270),...af(h/2+2*d,d,d,20,-90,-180),{x:h/2+d,y:c/2},...af(h/2,c/2,d,20,0,90)],g=[{x:-h/2,y:-c/2-d},{x:h/2,y:-c/2-d},...af(h/2,-c/2,d,20,-90,0),{x:h/2+d,y:-d},...af(h/2+2*d,-d,d,20,-180,-270),...af(h/2+2*d,d,d,20,-90,-180),{x:h/2+d,y:c/2},...af(h/2,c/2,d,20,0,90),{x:h/2,y:c/2+d},{x:-h/2,y:c/2+d}],f=og.svg(o),y=Dh(e,{fill:"none"});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=pg(p).replace("Z",""),C=f.path(m,y),x=pg(g),b=f.path(x,{...y}),k=o.insert("g",":first-child");return k.insert(()=>b,":first-child").attr("stroke-opacity",0),k.insert(()=>C,":first-child"),k.attr("class","text"),u&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${-d}, 0)`),s.attr("transform",`translate(${-h/2+(e.padding??0)/2-(a.x-(a.left??0))},${-c/2+(e.padding??0)/2-(a.y-(a.top??0))})`),dg(e,k),e.intersect=function(t){return _g.polygon(e,g,t)},o}function nf(t,e,r,i=100,o=0,a=180){const s=[],n=o*Math.PI/180,l=(a*Math.PI/180-n)/(i-1);for(let o=0;o<i;o++){const i=n+o*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);s.push({x:-a,y:-h})}return s}async function lf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,label:s}=await hg(t,e,ug(e)),n="neo"===e.look?18:e.padding??0,l="neo"===e.look?12:e.padding??0,h=a.width+("neo"===e.look?2*n:n),c=a.height+("neo"===e.look?2*l:l),d=Math.max(5,.1*c),{cssStyles:u}=e,p=[...nf(h/2,-c/2,d,30,-90,0),{x:-h/2-d,y:d},...nf(h/2+2*d,-d,d,20,-180,-270),...nf(h/2+2*d,d,d,20,-90,-180),{x:-h/2-d,y:-c/2},...nf(h/2,c/2,d,20,0,90)],g=[...nf(-h/2+d+d/2,-c/2,d,20,-90,-180),{x:h/2-d/2,y:d},...nf(-h/2-d/2,-d,d,20,0,90),...nf(-h/2-d/2,d,d,20,-90,0),{x:h/2-d/2,y:-d},...nf(-h/2+d+d/2,c/2,d,30,-180,-270)],f=[{x:h/2,y:-c/2-d},{x:-h/2,y:-c/2-d},...nf(h/2,-c/2,d,20,-90,0),{x:-h/2-d,y:-d},...nf(h/2+2*d,-d,d,20,-180,-270),...nf(h/2+2*d,d,d,20,-90,-180),{x:-h/2-d,y:c/2},...nf(h/2,c/2,d,20,0,90),{x:-h/2,y:c/2+d},{x:h/2-d-d/2,y:c/2+d},...nf(-h/2+d+d/2,-c/2,d,20,-90,-180),{x:h/2-d/2,y:d},...nf(-h/2-d/2,-d,d,20,0,90),...nf(-h/2-d/2,d,d,20,-90,0),{x:h/2-d/2,y:-d},...nf(-h/2+d+d/2,c/2,d,30,-180,-270)],y=og.svg(o),m=Dh(e,{fill:"none"});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const C=pg(p).replace("Z",""),x=y.path(C,m),b=pg(g).replace("Z",""),k=y.path(b,m),w=pg(f),S=y.path(w,{...m}),T=o.insert("g",":first-child");return T.insert(()=>S,":first-child").attr("stroke-opacity",0),T.insert(()=>x,":first-child"),T.insert(()=>k,":first-child"),T.attr("class","text"),u&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${d-d/4}, 0)`),s.attr("transform",`translate(${-h/2+(e.padding??0)/2-(a.x-(a.left??0))},${-c/2+(e.padding??0)/2-(a.y-(a.top??0))})`),dg(e,T),e.intersect=function(t){return _g.polygon(e,f,t)},o}async function hf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=Math.max(5,l.height+2*s,e?.height??0),c=h/2,d=c-Math.sqrt(Math.max(0,c**2-(l.height/2)**2)),u=Math.max(h/4,d),p=Math.max(20,l.width+2*a+2*u,1.25*(l.width+2*a),e?.width??0),{cssStyles:g}=e,f=og.svg(n),y=Dh(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=p-c,C=h/4,x=[{x:m,y:0},{x:C,y:0},{x:0,y:h/2},{x:C,y:h},{x:m,y:h},...fg(-m,-h/2,c,50,270,90)],b=pg(x),k=f.path(b,y),w=n.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",g),i&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",i),w.attr("transform",`translate(${-p/2}, ${-h/2})`),dg(e,w),e.intersect=function(t){return _g.polygon(e,x,t)},n}async function cf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,label:s}=await hg(t,e,ug(e)),n=e.padding??20,l=Math.max(a.width+2*n,e.width??0,100),h=Math.min(Math.max(.23*l,16),56),c=.27*h,d=Math.max(a.height+2*n,e.height?e.height-(2*h-c):0),u=Math.min(.177*l,.45*d),p=d+2*h-c,g=-p/2,f=g+2*h-c,y=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:m}=e;if("handDrawn"===e.look){const t=og.svg(o),r=Dh(e,{}),i=t.path(Mg(-l/2,f,l,d,u),r),a=t.circle(0,g+h,2*h,r);y.insert(()=>a,":first-child"),y.insert(()=>i,":first-child"),m&&y.attr("style",m)}else y.append("rect").attr("x",-l/2).attr("y",f).attr("width",l).attr("height",d).attr("rx",u).attr("ry",u).attr("style",i),y.append("circle").attr("cx",0).attr("cy",g+h).attr("r",h).attr("style",i);dg(e,y);const C=f+d/2;s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${C-a.height/2-(a.y-(a.top??0))})`);const x=g+h,b=180*Math.asin(Math.min(1,(f-x)/h))/Math.PI,k=[...fg(0,-x,h,24,180+b,-b),...fg(-(-l/2+u),-(f+u),u,12,90,0),...fg(-(-l/2+u),-(p/2-u),u,12,360,270),...fg(-(l/2-u),-(p/2-u),u,12,270,180),...fg(-(l/2-u),-(f+u),u,12,180,90)];return e.intersect=function(t){return _g.polygon(e,k,t)},o}Vt(Xg,"card"),Vt(Zg,"choice"),Vt(Qg,"circle"),Vt(Kg,"composite"),Vt(Jg,"consoleWindow"),Vt(tf,"createLine"),Vt(ef,"crossedCircle"),Vt(rf,"generateCirclePoints"),Vt(of,"curlyBraceLeft"),Vt(af,"generateCirclePoints"),Vt(sf,"curlyBraceRight"),Vt(nf,"generateCirclePoints"),Vt(lf,"curlyBraces"),Vt(hf,"curvedTrapezoid"),Vt(cf,"person");var df=Vt((t,e,r,i,o,a)=>[`M${t},${e+a}`,`a${o},${a} 0,0,0 ${r},0`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i].join(" "),"createCylinderPathD"),uf=Vt((t,e,r,i,o,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i].join(" "),"createOuterCylinderPathD"),pf=Vt((t,e,r,i,o,a)=>[`M${t-r/2},${-i/2}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function gf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?24:o,s="neo"===e.look?24:o,n=e.width??0;if(e.width&&(e.width=e.width-s,e.width<8&&(e.width=8)),e.height){const t=n/2/(2.5+n/50);e.height=e.height-a-3*t,e.height<8&&(e.height=8)}const{shapeSvg:l,bbox:h,label:c}=await hg(t,e,ug(e)),d=Math.max(e.width??0,h.width)+s,u=d/2,p=u/(2.5+d/50),g=Math.max(e.height??0,h.height)+a+p;let f;const{cssStyles:y}=e;if("handDrawn"===e.look){const t=og.svg(l),r=uf(0,0,d,g,u,p),i=pf(0,p,d,g,u,p),o=Dh(e,{}),a=t.path(r,o),s=t.path(i,Dh(e,{fill:"none"}));f=l.insert(()=>s,":first-child"),f=l.insert(()=>a,":first-child"),f.attr("class","basic label-container"),y&&f.attr("style",y)}else{const t=df(0,0,d,g,u,p);f=l.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",Jc(y)).attr("style",i)}return f.attr("label-offset-y",p),f.attr("transform",`translate(${-d/2}, ${-(g/2+p)})`),dg(e,f),c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-h.height/2+(e.padding??0)/1.5-(h.y-(h.top??0))})`),e.intersect=function(t){const r=_g.rect(e,t),i=r.x-(e.x??0);if(0!=u&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-p)){let o=p*p*(1-i*i/(u*u));o>0&&(o=Math.sqrt(o)),o=p-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},l}async function ff(t,e,r){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;const{shapeSvg:a,bbox:s}=await hg(t,e,ug(e)),n=Math.max(s.width+2*r.labelPaddingX,e?.width||0),l=Math.max(s.height+2*r.labelPaddingY,e?.height||0),h=-n/2,c=-l/2;let d,{rx:u,ry:p}=e;const{cssStyles:g}=e;if(r?.rx&&r.ry&&(u=r.rx,p=r.ry),"handDrawn"===e.look){const t=og.svg(a),r=Dh(e,{}),i=u||p?t.path(Mg(h,c,n,l,u||0),r):t.rectangle(h,c,n,l,r);d=a.insert(()=>i,":first-child"),d.attr("class","basic label-container").attr("style",Jc(g))}else d=a.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",o).attr("rx",Jc(u)).attr("ry",Jc(p)).attr("x",h).attr("y",c).attr("width",n).attr("height",l);return dg(e,d,"handDrawn"===e.look?void 0:{width:n,height:l}),e.calcIntersect=function(t,e){return _g.rect(t,e)},e.intersect=function(t){return _g.rect(e,t)},a}async function yf(t,e){const{cssClasses:r,labelPaddingX:i,labelPaddingY:o,padding:a,width:s,height:n}=e,l={rx:0,ry:0,labelPaddingX:i??2*(a??0),labelPaddingY:o??a??0},h=await ff(t,e,l);if("handDrawn"===e.look){const t=og.svg(h),r=Dh(e,{}),i=h.select(".basic.label-container > path:nth-child(2)"),o=i.node();if(!o)return h;let a=null;return o instanceof SVGGraphicsElement?(a=o.getBBox(),h.insert(()=>t.line(a.x,a.y,a.x+a.width,a.y,r),".basic.label-container g.label"),h.insert(()=>t.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,r),".basic.label-container g.label"),i.remove(),h):h}const c=h.select(".basic.label-container"),d=(Number(c.attr("width"))||s)??0,u=(Number(c.attr("height"))||n)??0;return d>0&&u>0&&c.attr("stroke-dasharray",`${d} ${u}`),h}async function mf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o="neo"===e.look?16:e.padding??0,a="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:n,label:l}=await hg(t,e,ug(e)),h=n.width+o,c=n.height+a,d=.2*c,u=-h/2,p=-c/2-d/2,{cssStyles:g}=e,f=og.svg(s),y=Dh(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=[{x:u,y:p+d},{x:-u,y:p+d},{x:-u,y:-p},{x:u,y:-p},{x:u,y:p},{x:-u,y:p},{x:-u,y:p+d}],C=f.polygon(m.map(t=>[t.x,t.y]),y),x=s.insert(()=>C,":first-child");return x.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),l.attr("transform",`translate(${u+(e.padding??0)/2-(n.x-(n.left??0))}, ${p+d+(e.padding??0)/2-(n.y-(n.top??0))})`),dg(e,x),e.intersect=function(t){return _g.rect(e,t)},s}async function Cf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e),o="neo"===e.look?12:5;e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?16:a,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e),{ignoreMinWidth:!0}),h=Math.sqrt(l.width**2+l.height**2)/2,c=(e?.width?e?.width/2:h)+(s??0),d=c+o;let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=og.svg(n),r=Dh(e,{roughness:.2,strokeWidth:2.5}),i=Dh(e,{roughness:.2,strokeWidth:1.5}),o=t.circle(0,0,2*d,r),a=t.circle(0,0,2*c,i);u=n.insert("g",":first-child"),u.attr("class",Jc(e.cssClasses)).attr("style",Jc(p)),u.node()?.appendChild(o),u.node()?.appendChild(a)}else{u=n.insert("g",":first-child");const t=u.insert("circle",":first-child"),e=u.insert("circle");u.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return dg(e,u),e.intersect=function(t){return Jt.info("DoubleCircle intersect",e,d,t),_g.circle(e,d,t)},n}async function xf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,halfPadding:s}=await hg(t,e,ug(e)),{theme:n,themeVariables:l}=ka();rp(o,e.colorIndex,n,l.borderColorArray);const h=s??10,c=a.width/2+2*h,d=a.height/2+2*h;let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=og.svg(o),r=Dh(e,{}),i=t.ellipse(0,0,2*c,2*d,r);u=o.insert(()=>i,":first-child"),u.attr("class","basic label-container"),p&&u.attr("style",p)}else u=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",i).attr("rx",c).attr("ry",d).attr("cx",0).attr("cy",0);return e.width=2*c,e.height=2*d,dg(e,u),e.calcIntersect=function(t,e){const r=t.width/2,i=t.height/2;return _g.ellipse(t,r,i,e)},e.intersect=function(t){return _g.ellipse(e,c,d,t)},o}function bf(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=Ih(e);e.label="",e.labelStyle=i;const a=t.insert("g").attr("class",ug(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,n=og.svg(a),{nodeBorder:l}=r,h=Dh(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(h.roughness=0);const c=n.circle(0,0,14,h),d=a.insert(()=>c,":first-child");return d.selectAll("path").attr("style",`fill: ${l} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",s),o&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",o),dg(e,d),e.intersect=function(t){Jt.info("filledCircle intersect",e,{radius:7,point:t});return _g.circle(e,7,t)},a}Vt(gf,"cylinder"),Vt(ff,"drawRect"),Vt(yf,"datastore"),Vt(mf,"dividedRectangle"),Vt(Cf,"doublecircle"),Vt(xf,"usecaseEllipse"),Vt(bf,"filledCircle");async function kf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?2*o:o;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-a-a/2,e.width<10&&(e.width=10));const{shapeSvg:s,bbox:n,label:l}=await hg(t,e,ug(e)),h=(e?.width?e?.width:n.width)+(a??0),c=e?.height?e?.height:h+n.height,d=[{x:0,y:-c},{x:c,y:-c},{x:c/2,y:0}],{cssStyles:u}=e,p=og.svg(s),g=Dh(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=pg(d),y=p.path(f,g),m=s.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`).attr("class","outer-path");return u&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",u),i&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",i),e.width=h,e.height=c,dg(e,m),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-c/2+(e.padding??0)/2+(n.y-(n.top??0))})`),e.intersect=function(t){return Jt.info("Triangle intersect",e,d,t),_g.polygon(e,d,t)},s}async function wf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,label:s}=await hg(t,e,ug(e)),n=e.padding??12,l=Math.max(a.width+2*n,e.width??0,90),h=a.height+2*n,c=Math.max(Math.min(.16*h,14),8),d=Math.max(h+c,e.height??0),u=d-c,p=Math.max(.38*l,28),g=-d/2,f=[{x:-l/2,y:g},{x:-l/2+p,y:g},{x:-l/2+p,y:g+c},{x:l/2,y:g+c},{x:l/2,y:d/2},{x:-l/2,y:d/2}],y=[`M${f[0].x},${f[0].y}`,...f.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:m}=e;let C;if("handDrawn"===e.look){const t=og.svg(o).path(y,Dh(e,{}));C=o.insert(()=>t,":first-child").attr("class","basic label-container"),m&&C.attr("style",m)}else C=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",i);"handDrawn"===e.look?dg(e,C):dg(e,C,{width:l,height:d});const x=g+c+u/2;return s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${x-a.height/2-(a.y-(a.top??0))})`),e.intersect=function(t){return _g.polygon(e,f,t)},o}function Sf(t,e,{dir:r,config:{state:i,themeVariables:o}}){const{nodeStyles:a}=Ih(e);e.label="";const s=t.insert("g").attr("class",ug(e)).attr("id",e.domId??e.id),{cssStyles:n}=e;let l=Math.max(70,e?.width??0),h=Math.max(10,e?.height??0);"LR"!==r&&"RL"!==r||(l=Math.max(10,e?.width??0),h=Math.max(70,e?.height??0));const c=-1*l/2,d=-1*h/2,u=og.svg(s),p=Dh(e,{stroke:o.lineColor,fill:o.lineColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=u.rectangle(c,d,l,h,p),f=s.insert(()=>g,":first-child");n&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",n),a&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",a),dg(e,f);const y=i?.padding??0;return e.width&&e.height&&(e.width+=y/2||0,e.height+=y/2||0),e.intersect=function(t){return _g.rect(e,t)},s}async function Tf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o="neo"===e.look?16:e.padding??0,a="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*a,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*o,e.width<15&&(e.width=15));const{shapeSvg:s,bbox:n}=await hg(t,e,ug(e)),l=(e?.height?e?.height:Math.max(10,n.height))+2*a,h=l/2,c=h-Math.sqrt(Math.max(0,h**2-(n.height/2)**2)),d=(e?.width?e?.width:Math.max(15,n.width)+2*c)+2*o,{cssStyles:u}=e,p=og.svg(s),g=Dh(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=[{x:-d/2,y:-l/2},{x:d/2-h,y:-l/2},...fg(-d/2+h,0,h,50,90,270),{x:d/2-h,y:l/2},{x:-d/2,y:l/2}],y=pg(f),m=p.path(y,g),C=s.insert(()=>m,":first-child");return C.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",u),i&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",i),dg(e,C),e.intersect=function(t){Jt.info("Pill intersect",e,{radius:h,point:t});return _g.polygon(e,f,t)},s}Vt(kf,"flippedTriangle"),Vt(wf,"folder"),Vt(Sf,"forkJoin"),Vt(Tf,"halfRoundedRectangle");var Bf=Vt((t,e,r,i,o)=>[`M${t+o},${e}`,`L${t+r-o},${e}`,`L${t+r},${e-i/2}`,`L${t+r-o},${e-i}`,`L${t+o},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" "),"createHexagonPathD");async function vf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e),o="neo"===e.look?3.5:4;e.labelStyle=r;const a=e.padding??0,s="neo"===e.look?70:a,n="neo"===e.look?32:a;if(e.width||e.height){const t=(e.height??0)/o;e.width=(e?.width??0)-2*t-n,e.height=(e.height??0)-s}const{shapeSvg:l,bbox:h}=await hg(t,e,ug(e)),c=(e?.height?e?.height:h.height)+s,d=c/o,u=(e?.width?e?.width:h.width)+2*d+n,p=[{x:d,y:0},{x:u-d,y:0},{x:u,y:-c/2},{x:u-d,y:-c},{x:d,y:-c},{x:0,y:-c/2}];let g;const{cssStyles:f}=e;if("handDrawn"===e.look){const t=og.svg(l),r=Dh(e,{}),i=Bf(0,0,u,c,d),o=t.path(i,r);g=l.insert(()=>o,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),f&&g.attr("style",f)}else g=Rg(l,u,c,p);return i&&g.attr("style",i),e.width=u,e.height=c,dg(e,g),e.intersect=function(t){return _g.polygon(e,p,t)},l}async function Ff(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.label="",e.labelStyle=r;const{shapeSvg:o}=await hg(t,e,ug(e)),a=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:n}=e,l=og.svg(o),h=Dh(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");const c=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],d=pg(c),u=l.path(d,h),p=o.insert(()=>u,":first-child");return p.attr("class","basic label-container outer-path"),n&&"handDrawn"!==e.look&&p.selectChildren("path").attr("style",n),i&&"handDrawn"!==e.look&&p.selectChildren("path").attr("style",i),p.attr("transform",`translate(${-a/2}, ${-s/2})`),dg(e,p),e.intersect=function(t){Jt.info("Pill intersect",e,{points:c});return _g.polygon(e,c,t)},o}async function Lf(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=Ih(e);e.labelStyle=o;const a=e.assetHeight??48,s=e.assetWidth??48,n=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(n,l??0);const{shapeSvg:h,bbox:c,label:d}=await hg(t,e,"icon-shape default"),u="t"===e.pos,p=n,g=n,{nodeBorder:f}=r,{stylesMap:y}=Eh(e),m=-g/2,C=-p/2,x=e.label?8:0,b=og.svg(h),k=Dh(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const w=b.rectangle(m,C,g,p,k),S=Math.max(g,c.width),T=p+c.height+x,B=b.rectangle(-S/2,-T/2,S,T,{...k,fill:"transparent",stroke:"none"}),v=h.insert(()=>w,":first-child"),F=h.insert(()=>B);if(e.icon){const t=h.append("g");t.html(`<g>${await lc(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,o=r.height,a=r.x,s=r.y;t.attr("transform",`translate(${-i/2-a},${u?c.height/2+x/2-o/2-s:-c.height/2-x/2-o/2-s})`),t.attr("style",`color: ${y.get("stroke")??f};`)}return d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${u?-T/2:T/2-c.height})`),v.attr("transform",`translate(0,${u?c.height/2+x/2:-c.height/2-x/2})`),dg(e,F),e.intersect=function(t){if(Jt.info("iconSquare intersect",e,t),!e.label)return _g.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=u?[{x:r-c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2+c.height+x},{x:r+g/2,y:i-o/2+c.height+x},{x:r+g/2,y:i+o/2},{x:r-g/2,y:i+o/2},{x:r-g/2,y:i-o/2+c.height+x},{x:r-c.width/2,y:i-o/2+c.height+x}]:[{x:r-g/2,y:i-o/2},{x:r+g/2,y:i-o/2},{x:r+g/2,y:i-o/2+p},{x:r+c.width/2,y:i-o/2+p},{x:r+c.width/2/2,y:i+o/2},{x:r-c.width/2,y:i+o/2},{x:r-c.width/2,y:i-o/2+p},{x:r-g/2,y:i-o/2+p}];return _g.polygon(e,a,t)},h}async function _f(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=Ih(e);e.labelStyle=o;const a=e.assetHeight??48,s=e.assetWidth??48,n=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(n,l??0);const{shapeSvg:h,bbox:c,label:d}=await hg(t,e,"icon-shape default"),u=e.label?8:0,p="t"===e.pos,{nodeBorder:g,mainBkg:f}=r,{stylesMap:y}=Eh(e),m=og.svg(h),C=Dh(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const x=y.get("fill");C.stroke=x??f;const b=h.append("g");e.icon&&b.html(`<g>${await lc(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const k=b.node().getBBox(),w=k.width,S=k.height,T=k.x,B=k.y,v=Math.max(w,S)*Math.SQRT2+40,F=m.circle(0,0,v,C),L=Math.max(v,c.width),_=v+c.height+u,M=m.rectangle(-L/2,-_/2,L,_,{...C,fill:"transparent",stroke:"none"}),A=h.insert(()=>F,":first-child"),E=h.insert(()=>M);return b.attr("transform",`translate(${-w/2-T},${p?c.height/2+u/2-S/2-B:-c.height/2-u/2-S/2-B})`),b.attr("style",`color: ${y.get("stroke")??g};`),d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-_/2:_/2-c.height})`),A.attr("transform",`translate(0,${p?c.height/2+u/2:-c.height/2-u/2})`),dg(e,E),e.intersect=function(t){Jt.info("iconSquare intersect",e,t);return _g.rect(e,t)},h}async function Mf(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=Ih(e);e.labelStyle=o;const a=e.assetHeight??48,s=e.assetWidth??48,n=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(n,l??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:u}=await hg(t,e,"icon-shape default"),p="t"===e.pos,g=n+2*d,f=n+2*d,{nodeBorder:y,mainBkg:m}=r,{stylesMap:C}=Eh(e),x=-f/2,b=-g/2,k=e.label?8:0,w=og.svg(h),S=Dh(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const T=C.get("fill");S.stroke=T??m;const B=w.path(Mg(x,b,f,g,5),S),v=Math.max(f,c.width),F=g+c.height+k,L=w.rectangle(-v/2,-F/2,v,F,{...S,fill:"transparent",stroke:"none"}),_=h.insert(()=>B,":first-child").attr("class","icon-shape2"),M=h.insert(()=>L);if(e.icon){const t=h.append("g");t.html(`<g>${await lc(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,o=r.height,a=r.x,s=r.y;t.attr("transform",`translate(${-i/2-a},${p?c.height/2+k/2-o/2-s:-c.height/2-k/2-o/2-s})`),t.attr("style",`color: ${C.get("stroke")??y};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-F/2:F/2-c.height})`),_.attr("transform",`translate(0,${p?c.height/2+k/2:-c.height/2-k/2})`),dg(e,M),e.intersect=function(t){if(Jt.info("iconSquare intersect",e,t),!e.label)return _g.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=p?[{x:r-c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2+c.height+k},{x:r+f/2,y:i-o/2+c.height+k},{x:r+f/2,y:i+o/2},{x:r-f/2,y:i+o/2},{x:r-f/2,y:i-o/2+c.height+k},{x:r-c.width/2,y:i-o/2+c.height+k}]:[{x:r-f/2,y:i-o/2},{x:r+f/2,y:i-o/2},{x:r+f/2,y:i-o/2+g},{x:r+c.width/2,y:i-o/2+g},{x:r+c.width/2/2,y:i+o/2},{x:r-c.width/2,y:i+o/2},{x:r-c.width/2,y:i-o/2+g},{x:r-f/2,y:i-o/2+g}];return _g.polygon(e,a,t)},h}async function Af(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=Ih(e);e.labelStyle=o;const a=e.assetHeight??48,s=e.assetWidth??48,n=Math.max(a,s),l=i?.wrappingWidth;e.width=Math.max(n,l??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:u}=await hg(t,e,"icon-shape default"),p="t"===e.pos,g=n+2*d,f=n+2*d,{nodeBorder:y,mainBkg:m}=r,{stylesMap:C}=Eh(e),x=-f/2,b=-g/2,k=e.label?8:0,w=og.svg(h),S=Dh(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const T=C.get("fill");S.stroke=T??m;const B=w.path(Mg(x,b,f,g,.1),S),v=Math.max(f,c.width),F=g+c.height+k,L=w.rectangle(-v/2,-F/2,v,F,{...S,fill:"transparent",stroke:"none"}),_=h.insert(()=>B,":first-child"),M=h.insert(()=>L);if(e.icon){const t=h.append("g");t.html(`<g>${await lc(e.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,o=r.height,a=r.x,s=r.y;t.attr("transform",`translate(${-i/2-a},${p?c.height/2+k/2-o/2-s:-c.height/2-k/2-o/2-s})`),t.attr("style",`color: ${C.get("stroke")??y};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-F/2:F/2-c.height})`),_.attr("transform",`translate(0,${p?c.height/2+k/2:-c.height/2-k/2})`),dg(e,M),e.intersect=function(t){if(Jt.info("iconSquare intersect",e,t),!e.label)return _g.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=p?[{x:r-c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2},{x:r+c.width/2,y:i-o/2+c.height+k},{x:r+f/2,y:i-o/2+c.height+k},{x:r+f/2,y:i+o/2},{x:r-f/2,y:i+o/2},{x:r-f/2,y:i-o/2+c.height+k},{x:r-c.width/2,y:i-o/2+c.height+k}]:[{x:r-f/2,y:i-o/2},{x:r+f/2,y:i-o/2},{x:r+f/2,y:i-o/2+g},{x:r+c.width/2,y:i-o/2+g},{x:r+c.width/2/2,y:i+o/2},{x:r-c.width/2,y:i+o/2},{x:r-c.width/2,y:i-o/2+g},{x:r-f/2,y:i-o/2+g}];return _g.polygon(e,a,t)},h}async function Ef(t,e,{config:{flowchart:r}}){const i=new Image;i.src=e?.img??"",await i.decode();const o=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=o/a;const{labelStyles:s}=Ih(e);e.labelStyle=s;const n=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const l=Math.max(e.label?n??0:0,e?.assetWidth??o),h="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,c="on"===e.constraint?h/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(h,n??0);const{shapeSvg:d,bbox:u,label:p}=await hg(t,e,"image-shape default"),g="t"===e.pos,f=-h/2,y=-c/2,m=e.label?8:0,C=og.svg(d),x=Dh(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=C.rectangle(f,y,h,c,x),k=Math.max(h,u.width),w=c+u.height+m,S=C.rectangle(-k/2,-w/2,k,w,{...x,fill:"none",stroke:"none"}),T=d.insert(()=>b,":first-child"),B=d.insert(()=>S);if(e.img){const t=d.append("image");t.attr("href",e.img),t.attr("width",h),t.attr("height",c),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-h/2},${g?w/2-c:-w/2})`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${g?-c/2-u.height/2-m/2:c/2-u.height/2+m/2})`),T.attr("transform",`translate(0,${g?u.height/2+m/2:-u.height/2-m/2})`),dg(e,B),e.intersect=function(t){if(Jt.info("iconSquare intersect",e,t),!e.label)return _g.rect(e,t);const r=e.x??0,i=e.y??0,o=e.height??0;let a=[];a=g?[{x:r-u.width/2,y:i-o/2},{x:r+u.width/2,y:i-o/2},{x:r+u.width/2,y:i-o/2+u.height+m},{x:r+h/2,y:i-o/2+u.height+m},{x:r+h/2,y:i+o/2},{x:r-h/2,y:i+o/2},{x:r-h/2,y:i-o/2+u.height+m},{x:r-u.width/2,y:i-o/2+u.height+m}]:[{x:r-h/2,y:i-o/2},{x:r+h/2,y:i-o/2},{x:r+h/2,y:i-o/2+c},{x:r+u.width/2,y:i-o/2+c},{x:r+u.width/2/2,y:i+o/2},{x:r-u.width/2,y:i+o/2},{x:r-u.width/2,y:i-o/2+c},{x:r-h/2,y:i-o/2+c}];return _g.polygon(e,a,t)},d}async function $f(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a=o,s="neo"===e.look?2*o:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=Math.max(l.height+2*a,e.height??0),c=Math.max(l.width+2*s,(e.width??0)-h),d=[{x:0,y:0},{x:c,y:0},{x:c+3*h/6,y:-h},{x:-3*h/6,y:-h}];let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=og.svg(n),r=Dh(e,{}),i=pg(d),o=t.path(i,r);u=n.insert(()=>o,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),p&&u.attr("style",p)}else u=Rg(n,c,h,d);return i&&u.attr("style",i),e.width=c,e.height=h,dg(e,u),e.intersect=function(t){return _g.polygon(e,d,t)},n}async function Of(t,e){const{shapeSvg:r,bbox:i,label:o}=await hg(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),o.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-i.height/2-(i.y-(i.top??0))})`),dg(e,a),e.intersect=function(t){return _g.rect(e,t)},r}async function If(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a=o,s="neo"===e.look?2*o:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=Math.max(l.height+a,e.height??0),c=Math.max(l.width+s,(e.width??0)-h),d=[{x:0,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:-3*h/6,y:-h}];let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=og.svg(n),r=Dh(e,{}),i=pg(d),o=t.path(i,r);u=n.insert(()=>o,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),p&&u.attr("style",p)}else u=Rg(n,c,h,d);return i&&u.attr("style",i),e.width=c,e.height=h,dg(e,u),e.intersect=function(t){return _g.polygon(e,d,t)},n}async function Df(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a=o,s="neo"===e.look?2*o:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=Math.max(l.height+a,e.height??0),c=Math.max(l.width+s,(e.width??0)-h),d=[{x:-3*h/6,y:0},{x:c,y:0},{x:c+3*h/6,y:-h},{x:0,y:-h}];let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=og.svg(n),r=Dh(e,{}),i=pg(d),o=t.path(i,r);u=n.insert(()=>o,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),p&&u.attr("style",p)}else u=Rg(n,c,h,d);return i&&u.attr("style",i),e.width=c,e.height=h,dg(e,u),e.intersect=function(t){return _g.polygon(e,d,t)},n}function qf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.label="",e.labelStyle=r;const o=t.insert("g").attr("class",ug(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,e?.width??0),n=Math.max(35,e?.height??0),l=[{x:s,y:0},{x:0,y:n+3.5},{x:s-14,y:n+3.5},{x:0,y:2*n},{x:s,y:n-3.5},{x:14,y:n-3.5}],h=og.svg(o),c=Dh(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");const d=pg(l),u=h.path(d,c),p=o.insert(()=>u,":first-child");return p.attr("class","outer-path"),a&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",a),i&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${s/2},${-n})`),dg(e,p),e.intersect=function(t){Jt.info("lightningBolt intersect",e,t);return _g.polygon(e,l,t)},o}Vt(vf,"hexagon"),Vt(Ff,"hourglass"),Vt(Lf,"icon"),Vt(_f,"iconCircle"),Vt(Mf,"iconRounded"),Vt(Af,"iconSquare"),Vt(Ef,"imageSquare"),Vt($f,"inv_trapezoid"),Vt(Of,"labelRect"),Vt(If,"lean_left"),Vt(Df,"lean_right"),Vt(qf,"lightningBolt");var Pf=Vt((t,e,r,i,o,a,s)=>[`M${t},${e+a}`,`a${o},${a} 0,0,0 ${r},0`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+a+s}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),zf=Vt((t,e,r,i,o,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${o},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${o},${a} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+a+s}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Rf=Vt((t,e,r,i,o,a)=>[`M${t-r/2},${-i/2}`,`a${o},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function Wf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?24:o;if(e.width||e.height){const t=e.width??0;e.width=(e.width??0)-a,e.width<10&&(e.width=10);const r=t/2/(2.5+t/50);e.height=(e.height??0)-s-3*r,e.height<10&&(e.height=10)}const{shapeSvg:n,bbox:l,label:h}=await hg(t,e,ug(e)),c=(e?.width?e?.width:l.width)+2*a,d=c/2,u=d/(2.5+c/50),p=(e?.height?e?.height:l.height)+u+2*s,g=.1*p;let f;const{cssStyles:y}=e;if("handDrawn"===e.look){const t=og.svg(n),r=zf(0,0,c,p,d,u,g),i=Rf(0,u,c,p,d,u),o=Dh(e,{}),a=t.path(r,o),s=t.path(i,o);n.insert(()=>s,":first-child").attr("class","line"),f=n.insert(()=>a,":first-child"),f.attr("class","basic label-container"),y&&f.attr("style",y)}else{const t=Pf(0,0,c,p,d,u,g);f=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",Jc(y)).attr("style",i)}return f.attr("label-offset-y",u),f.attr("transform",`translate(${-c/2}, ${-(p/2+u)})`),dg(e,f),h.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-l.height/2+u-(l.y-(l.top??0))})`),e.intersect=function(t){const r=_g.rect(e,t),i=r.x-(e.x??0);if(0!=d&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-u)){let o=u*u*(1-i*i/(d*d));o>0&&(o=Math.sqrt(o)),o=u-o,t.y-(e.y??0)>0&&(o=-o),r.y+=o}return r},n}async function Nf(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o;if(e.width||e.height){const t=e.width;e.width=10*(t??0)/11-2*a,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}const{shapeSvg:n,bbox:l,label:h}=await hg(t,e,ug(e)),c=(e?.width?e?.width:l.width)+2*(a??0),d=(e?.height?e?.height:l.height)+2*(s??0),u="neo"===e.look?d/4:d/8,p=d+u,{cssStyles:g}=e,f=og.svg(n),y=Dh(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=[{x:-c/2-c/2*.1,y:-p/2},{x:-c/2-c/2*.1,y:p/2},...gg(-c/2-c/2*.1,p/2,c/2+c/2*.1,p/2,u,.8),{x:c/2+c/2*.1,y:-p/2},{x:-c/2-c/2*.1,y:-p/2},{x:-c/2,y:-p/2},{x:-c/2,y:p/2*1.1},{x:-c/2,y:-p/2}],C=f.polygon(m.map(t=>[t.x,t.y]),y),x=n.insert(()=>C,":first-child");return x.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",g),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(0,${-u/2})`),h.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*.1/2-(l.x-(l.left??0))},${-d/2+(e.padding??0)-u-(l.y-(l.top??0))})`),dg(e,x),e.intersect=function(t){return _g.polygon(e,m,t)},n}Vt(Wf,"linedCylinder"),Vt(Nf,"linedWaveEdgedRect");var jf={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},Hf=Math.PI/3,Uf=Vt((t,e)=>{const r=.6*e,i=e*Math.sqrt(.64),o=Math.cos(Hf),a=-Math.sin(Hf),s=r*-a,n=t+r*o,l=i*o,h=i*a;return`M ${s-l} ${n-h} L ${s+l} ${n+h}`},"businessMarkerPathForCircle"),Yf={normal:Uf(-24,12),hollow:Uf(-23,9),awesome:Uf(-21,13),icon:"M 12 -8 L 26 -26"},Vf=Vt((t,e,r)=>{const i=(e.x??0)-(e.left??0),o=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-i},${r-e.height/2-o})`)},"positionLabel"),Gf=Vt((t,e,r,i,o=!1)=>{if("handDrawn"===e.look){const a=og.svg(t).path(r,Dh(e,o?{fill:"none"}:{}));return t.insert(()=>a,":first-child").attr("class",i)}const a=t.append("path").attr("class",i).attr("d",r);return o&&a.attr("fill","none"),a},"appendActorPath"),Xf=Vt((t,e,r,i,o,a,s=!1)=>{if("handDrawn"===e.look){const n=og.svg(t).circle(r,i,2*o,Dh(e,s?{fill:"none"}:{}));return t.insert(()=>n,":first-child").attr("class",a)}const n=t.append("circle").attr("class",a).attr("cx",r).attr("cy",i).attr("r",o);return s&&n.attr("fill","none"),n},"appendActorCircle"),Zf=Vt((t,e,r)=>{e.business&&t.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",Yf[r]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function Qf(t,e,r,i){const{labelStyles:o,nodeStyles:a}=Ih(e);e.labelStyle=o;const s="icon"===r||void 0!==e.stereotype?{...e,icon:"icon"===r?void 0:e.icon,stereotype:void 0}:e,{shapeSvg:n,bbox:l,label:h}=await hg(t,s,ug(e,`usecase-actor-variant usecase-actor-${r}`)),c=e.accessibleName??e.label;c&&n.attr("role","img").attr("aria-label",c),h.attr("class","label actor-label usecase-actor-label");const{theme:d,themeVariables:u}=ka();let p,g;if(rp(n,e.colorIndex,d,u.borderColorArray),e.stereotype){const t=await cg(n,`«${e.stereotype}»`,{labelStyle:o,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});p=t.label.attr("class","label usecase-stereotype"),g=t.bbox}const f=n.append("g").attr("class",`usecase-actor-glyph ${jf[r]}`).attr("style",a||null);await i(f,e),Zf(f,e,r);const y=e.padding??8,m=g?.height??0,C=80+l.height+(g?m+2:0),x=Math.max(56,l.width,g?.width??0)+2*y,b=C+2*y,k=-C/2;f.attr("transform",`translate(0,${k+36})`);let w=k+72+8;p&&g&&(w+=m/2,Vf(p,g,w),w+=m/2+2),Vf(h,l,w+l.height/2);const S=n.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-x/2).attr("y",-b/2).attr("width",x).attr("height",b).attr("opacity",0).attr("aria-hidden","true");return dg(e,S),e.intersect=t=>_g.rect(e,t),n}Vt(Qf,"renderUsecaseActor");var Kf=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function Jf(t,e){return Qf(t,e,"normal",(t,e)=>{Gf(t,e,Kf,"usecase-actor-stick")})}Vt(Jf,"usecaseActor");var ty=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function ey(t,e){return Qf(t,e,"awesome",(t,e)=>{Gf(t,e,ty,"usecase-actor-awesome-silhouette")})}Vt(ey,"usecaseActorAwesome");var ry=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function iy(t,e){return Qf(t,e,"hollow",(t,e)=>{Xf(t,e,0,-23,9,"usecase-actor-hollow-head",!0),Gf(t,e,ry,"usecase-actor-hollow-body",!0)})}Vt(iy,"usecaseActorHollow");var oy=52,ay=Vt(async(t,e)=>{if("handDrawn"===e.look){const r=og.svg(t).rectangle(-26,-28,oy,oy,Dh(e,{}));t.insert(()=>r,":first-child").attr("class","usecase-actor-icon-frame")}else t.append("rect").attr("class","usecase-actor-icon-frame").attr("x",-26).attr("y",-28).attr("width",oy).attr("height",oy).attr("rx",4).attr("ry",4);const r=e.icon??"",i=await nc(r.includes(":")?r:`fa:${r}`),o=await lc(r,{height:42,width:42,fallbackPrefix:"fa"}),a=t.append("g").attr("class","usecase-actor-icon-symbol"+(i?"":" usecase-actor-icon-fallback")).attr("aria-hidden","true").html(`<g>${o}</g>`),s=a.node()?.getBBox();s&&a.attr("transform",`translate(${-s.width/2-s.x},${-2-s.height/2-s.y})`)},"drawIconActor");async function sy(t,e){return Qf(t,e,"icon",ay)}Vt(sy,"usecaseActorIcon");var ny=Vt((t,e,r)=>{const i=(e.x??0)-(e.left??0),o=(e.y??0)-(e.top??0);t.attr("transform",`translate(${-e.width/2-i},${r-e.height/2-o})`)},"positionLabel");async function ly(t,e){const r=e,{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;const a=r.stereotype?{...e,stereotype:void 0}:e,{shapeSvg:s,bbox:n,halfPadding:l,label:h}=await hg(t,a,ug(e,"usecase-business-shape"));h.attr("class","label usecase-label");const{theme:c,themeVariables:d}=ka();let u,p;if(rp(s,e.colorIndex,c,d.borderColorArray),r.stereotype){const t=await cg(s,`«${r.stereotype}»`,{labelStyle:i,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0,width:e.wrappingWidth});u=t.label.attr("class","label usecase-stereotype"),p=t.bbox}const g=p?2:0,f=n.height+(p?.height??0)+g,y=Math.max(n.width,p?.width??0),m=l??10,C=y/2+2*m,x=f/2+2*m,b=Math.min(Math.max(m/5,1),m/2),k=y/2+b,w=C-b,S=k/C,T=w/C,B=x*Math.sqrt(Math.max(0,1-S*S)),v=-x*Math.sqrt(Math.max(0,1-T*T));let F;if(u&&p&&ny(u,p,-f/2+p.height/2),ny(h,n,f/2-n.height/2),"handDrawn"===e.look){const t=og.svg(s).ellipse(0,0,2*C,2*x,Dh(e,{}));F=s.insert(()=>t,":first-child").attr("class","basic label-container usecase-business-ellipse")}else F=s.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",C).attr("ry",x).attr("cx",0).attr("cy",0);s.append("path").attr("class","usecase-business-marker").attr("d",`M ${k} ${B} L ${w} ${v}`).attr("fill","none").attr("style",o||null);const L=r.accessibleName??r.label;return L&&s.attr("role","img").attr("aria-label",L),dg(e,F),e.calcIntersect=(t,e)=>_g.ellipse(t,t.width/2,t.height/2,e),e.intersect=t=>_g.ellipse(e,C,x,t),s}Vt(ly,"usecaseBusiness");var hy=Vt((t,e,r,i)=>{const o=(e.x??0)-(e.left??0),a=(e.y??0)-(e.top??0);t.attr("transform",`translate(${r-e.width/2-o},${i-e.height/2-a})`)},"positionLabel"),cy=Vt(t=>{const e=Number.parseFloat(t??"");return Number.isFinite(e)&&e>=0?e:1},"numericStrokeWidth");async function dy(t,e){const r=e,{labelStyles:i,nodeStyles:o}=Ih(e),{stylesMap:a}=Eh(e);e.labelStyle=i;const{shapeSvg:s,bbox:n,label:l}=await hg(t,e,ug(e,"usecase-json-table"));s.attr("role","img"),r.accessibleName&&s.attr("aria-label",r.accessibleName),l.attr("class","label usecase-json-title");const h=s.append("g").attr("class","usecase-json-table-grid"),c=[];for(const t of r.jsonRows??[]){const r=await cg(h,t.key,{labelStyle:i,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0}),o=await cg(h,t.value,{labelStyle:i,useHtmlLabels:e.useHtmlLabels,padding:0,centerLabel:!0});c.push({key:{label:r.label.attr("class","label usecase-json-key"),bbox:r.bbox},value:{label:o.label.attr("class","label usecase-json-value"),bbox:o.bbox}})}const d=Math.max(0,...c.map(({key:t})=>t.bbox.width))+16,u=Math.max(0,...c.map(({value:t})=>t.bbox.width))+16,p=n.width+16,g=Math.max(p,d+u),f=u+Math.max(0,g-d-u),y=n.height+8,m=c.map(({key:t,value:e})=>Math.max(t.bbox.height,e.bbox.height)+8),C=y+m.reduce((t,e)=>t+e,0),x=cy(a.get("stroke-width")),b=g+2*x,k=C+2*x,w=-g/2,S=-C/2,T="handDrawn"===e.look?og.svg(s):void 0,B=T?Dh(e,{}):void 0,v=Vt((t,e,r,i,a,s)=>{if(T&&B){const o=T.rectangle(r,i,a,s,B);return t.insert(()=>o,":first-child").attr("class",e)}return t.insert("rect",":first-child").attr("class",e).attr("x",r).attr("y",i).attr("width",a).attr("height",s).attr("style",o)},"insertCell"),F=v(s,"label-container usecase-json-border",-b/2,-k/2,b,k);v(h,"usecase-json-cell usecase-json-title-cell",w,S,g,y),h.node()?.append(l.node()),hy(l,n,0,S+y/2);let L=S+y;return c.forEach(({key:t,value:e},r)=>{const i=m[r],o=h.append("g").attr("class","usecase-json-row").attr("data-row-index",r).attr("transform",`translate(0,${L})`);v(o,"usecase-json-cell usecase-json-key-cell",w,0,d,i),v(o,"usecase-json-cell usecase-json-value-cell",w+d,0,f,i),o.node()?.append(t.label.node(),e.label.node()),hy(t.label,t.bbox,w+d/2,i/2),hy(e.label,e.bbox,w+d+f/2,i/2),L+=i}),dg(e,F),e.intersect=t=>_g.rect(e,t),s}async function uy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o,n="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*a-2*n,10),e.height=Math.max((e?.height??0)-2*s-2*n,10));const{shapeSvg:l,bbox:h,label:c}=await hg(t,e,ug(e)),d=(e?.width?e?.width:h.width)+2*a+2*n-2*n,u=(e?.height?e?.height:h.height)+2*s+2*n-2*n,p=-d/2,g=-u/2,{cssStyles:f}=e,y=og.svg(l),m=Dh(e,{}),C=[{x:p-n,y:g+n},{x:p-n,y:g+u+n},{x:p+d-n,y:g+u+n},{x:p+d-n,y:g+u},{x:p+d,y:g+u},{x:p+d,y:g+u-n},{x:p+d+n,y:g+u-n},{x:p+d+n,y:g-n},{x:p+n,y:g-n},{x:p+n,y:g},{x:p,y:g},{x:p,y:g+n}],x=[{x:p,y:g+n},{x:p+d-n,y:g+n},{x:p+d-n,y:g+u},{x:p+d,y:g+u},{x:p+d,y:g},{x:p,y:g}];"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const b=pg(C);let k=y.path(b,m);const w=pg(x);let S=y.path(w,m);"handDrawn"!==e.look&&(k=yg(k),S=yg(S));const T=l.insert("g",":first-child");return T.insert(()=>k),T.insert(()=>S),T.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",f),i&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",i),c.attr("transform",`translate(${-h.width/2-n-(h.x-(h.left??0))}, ${-h.height/2+n-(h.y-(h.top??0))})`),dg(e,T),e.intersect=function(t){return _g.polygon(e,C,t)},l}async function py(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,label:s}=await hg(t,e,ug(e)),n=e.padding??0,l="neo"===e.look?16:n,h="neo"===e.look?12:n;let c=!0;(e.width||e.height)&&(c=!1,e.width=(e?.width??0)-2*l,e.height=(e?.height??0)-3*h);const d=Math.max(a.width,e?.width??0)+2*l,u=Math.max(a.height,e?.height??0)+3*h,p="neo"===e.look?u/4:u/8,g=u+(c?p/2:-p/2),f=-d/2,y=-g/2,m=10,{cssStyles:C}=e,x=gg(f-m,y+g+m,f+d-m,y+g+m,p,.8),b=x?.[x.length-1],k=[{x:f-m,y:y+m},{x:f-m,y:y+g+m},...x,{x:f+d-m,y:b.y-m},{x:f+d,y:b.y-m},{x:f+d,y:b.y-20},{x:f+d+m,y:b.y-20},{x:f+d+m,y:y-m},{x:f+m,y:y-m},{x:f+m,y:y},{x:f,y:y},{x:f,y:y+m}],w=[{x:f,y:y+m},{x:f+d-m,y:y+m},{x:f+d-m,y:b.y-m},{x:f+d,y:b.y-m},{x:f+d,y:y},{x:f,y:y}],S=og.svg(o),T=Dh(e,{});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const B=pg(k),v=S.path(B,T),F=pg(w),L=S.path(F,T),_=o.insert(()=>v,":first-child");return _.insert(()=>L),_.attr("class","basic label-container outer-path"),C&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",C),i&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(0,${-p/2})`),s.attr("transform",`translate(${-a.width/2-m-(a.x-(a.left??0))}, ${-a.height/2+m-p-(a.y-(a.top??0))})`),dg(e,_),e.intersect=function(t){return _g.polygon(e,k,t)},o}async function gy(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;e.useHtmlLabels||To(fo())||(e.centerLabel=!0);const{shapeSvg:a,bbox:s,label:n}=await hg(t,e,ug(e)),l=Math.max(s.width+2*(e.padding??0),e?.width??0),h=Math.max(s.height+2*(e.padding??0),e?.height??0),c=-l/2,d=-h/2,{cssStyles:u}=e,p=og.svg(a),g=Dh(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=p.rectangle(c,d,l,h,g),y=a.insert(()=>f,":first-child");return y.attr("class","basic label-container outer-path"),n.attr("class","label noteLabel"),u&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",u),o&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",o),n.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),dg(e,y),e.intersect=function(t){return _g.rect(e,t)},a}Vt(dy,"usecaseJsonTable"),Vt(uy,"multiRect"),Vt(py,"multiWaveEdgedRectangle"),Vt(gy,"note");var fy=Vt((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 yy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a}=await hg(t,e,ug(e)),s=a.width+(e.padding??0)+(a.height+(e.padding??0)),n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];let l;const{cssStyles:h}=e;if("handDrawn"===e.look){const t=og.svg(o),r=Dh(e,{}),i=fy(0,0,s),a=t.path(i,r);l=o.insert(()=>a,":first-child").attr("transform",`translate(${-s/2+.5}, ${s/2})`),h&&l.attr("style",h)}else l=Rg(o,s,s,n),l.attr("transform",`translate(${-s/2+.5}, ${s/2})`);return i&&l.attr("style",i),dg(e,l),e.calcIntersect=function(t,e){const r=t.width,i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];return _g.polygon(t,i,e)},e.intersect=function(t){return this.calcIntersect(e,t)},o}async function my(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?21:o??0,s="neo"===e.look?12:o??0,{shapeSvg:n,bbox:l,label:h}=await hg(t,e,ug(e)),c=l.width+("neo"===e.look?2*a:a),d=Math.max(l.height+("neo"===e.look?2*s:s),e.height??0),u=d/4,p=-Math.max(c,(e.width??0)-u)/2,g=-d/2,f=g/2,y=[{x:p+f,y:g},{x:p,y:0},{x:p+f,y:-g},{x:-p,y:-g},{x:-p,y:g}],{cssStyles:m}=e,C=og.svg(n),x=Dh(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=pg(y),k=C.path(b,x),w=n.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${-f/2},0)`),h.attr("transform",`translate(${-f/2-l.width/2-(l.x-(l.left??0))}, ${-l.height/2-(l.y-(l.top??0))})`),dg(e,w),e.intersect=function(t){return _g.polygon(e,y,t)},n}async function Cy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);let o;e.labelStyle=r,o=e.cssClasses?"node "+e.cssClasses:"node default";const a=t.insert("g").attr("class",o).attr("id",e.domId||e.id),s=a.insert("g"),n=a.insert("g").attr("class","label").attr("style",i),l=e.description,h=e.label,c=await Eg(n,h,e.labelStyle,!0,!0);let d={width:0,height:0};if(To(ka())){const t=c.children[0],e=Gs(c);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}Jt.info("Text 2",l);const u=l||[],p=c.getBBox(),g=await Eg(n,Array.isArray(u)?u.join("<br/>"):u,e.labelStyle,!0,!0),f=g.children[0],y=Gs(g);d=f.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height);const m=(e.padding||0)/2;Gs(g).attr("transform","translate( "+(d.width>p.width?0:(p.width-d.width)/2)+", "+(p.height+m+5)+")"),Gs(c).attr("transform","translate( "+(d.width<p.width?0:-(p.width-d.width)/2)+", 0)"),d=n.node().getBBox(),n.attr("transform","translate("+-d.width/2+", "+(-d.height/2-m+3)+")");const C=d.width+(e.padding||0),x=d.height+(e.padding||0),b=-d.width/2-m,k=-d.height/2-m;let w,S;if("handDrawn"===e.look){const t=og.svg(a),r=Dh(e,{}),i=t.path(Mg(b,k,C,x,e.rx||0),r),o=t.line(-d.width/2-m,-d.height/2-m+p.height+m,d.width/2+m,-d.height/2-m+p.height+m,r);S=a.insert(()=>(Jt.debug("Rough node insert CXC",i),o),":first-child"),w=a.insert(()=>(Jt.debug("Rough node insert CXC",i),i),":first-child")}else w=s.insert("rect",":first-child"),S=s.insert("line"),w.attr("class","outer title-state").attr("style",i).attr("x",-d.width/2-m).attr("y",-d.height/2-m).attr("width",d.width+(e.padding||0)).attr("height",d.height+(e.padding||0)),S.attr("class","divider").attr("x1",-d.width/2-m).attr("x2",d.width/2+m).attr("y1",-d.height/2-m+p.height+m).attr("y2",-d.height/2-m+p.height+m);return dg(e,w),e.intersect=function(t){return _g.rect(e,t)},a}async function xy(t,e,{config:{themeVariables:r}}){const i=r?.radius??5;return ff(t,e,{rx:i,ry:i,labelPaddingX:1*(e?.padding??0),labelPaddingY:1*(e?.padding??0)})}Vt(yy,"question"),Vt(my,"rect_left_inv_arrow"),Vt(Cy,"rectWithTitle"),Vt(xy,"roundedRect");async function by(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o="neo"===e.look?16:e.padding??0,a="neo"===e.look?12:e.padding??0,{shapeSvg:s,bbox:n,label:l}=await hg(t,e,ug(e)),h=(e?.width??n.width)+2*o+("neo"===e.look?8:16),c=(e?.height??n.height)+2*a,d=h-8,u=c,p=8-h/2,g=-c/2,{cssStyles:f}=e,y=og.svg(s),m=Dh(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const C=[{x:p,y:g},{x:p+d,y:g},{x:p+d,y:g+u},{x:p-8,y:g+u},{x:p-8,y:g},{x:p,y:g},{x:p,y:g+u}],x=y.polygon(C.map(t=>[t.x,t.y]),m),b=s.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path").attr("style",Jc(f)),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),f&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),l.attr("transform",`translate(${4-n.width/2-(n.x-(n.left??0))}, ${-n.height/2-(n.y-(n.top??0))})`),dg(e,b),e.intersect=function(t){return _g.rect(e,t)},s}async function ky(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*a,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));const{shapeSvg:n,bbox:l,label:h}=await hg(t,e,ug(e)),c=(e?.width?e?.width:l.width)+2*a,d=1.5*((e?.height?e?.height:l.height)+2*s)/1.5,u=-c/2,p=-d/2,{cssStyles:g}=e,f=og.svg(n),y=Dh(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=[{x:u,y:p},{x:u,y:p+d},{x:u+c,y:p+d},{x:u+c,y:p-d/2}],C=pg(m),x=f.path(C,y),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),g&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",g),i&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",i),b.attr("transform",`translate(0, ${d/4})`),h.attr("transform",`translate(${-c/2+(e.padding??0)-(l.x-(l.left??0))}, ${-d/4+(e.padding??0)-(l.y-(l.top??0))})`),dg(e,b),e.intersect=function(t){return _g.polygon(e,m,t)},n}async function wy(t,e){const r=e.padding??0,i="neo"===e.look?16:2*r,o="neo"===e.look?12:r,a={rx:0,ry:0,labelPaddingX:e.labelPaddingX??i,labelPaddingY:o},s=await ff(t,e,a);if(void 0!==e.colorIndex){const{theme:t,themeVariables:r}=ka();rp(s,e.colorIndex,t,r.borderColorArray)}return s}Vt(by,"shadedProcess"),Vt(ky,"slopedRect"),Vt(wy,"squareRect");var Sy=Vt((t,e,r)=>{const i=t.height+r,o=i*Math.cos(Math.PI/98),a=Math.sqrt(Math.max(0,o**2-t.height**2));return{w:Math.max(t.width+i/4+e,1.5*i+(i-o),t.width+e+i-a),h:i}},"stadiumDimensions");async function Ty(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?40:o,s="neo"===e.look?24:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),{w:h,h:c}=Sy(l,a,s),d=c/2,{cssStyles:u}=e,p=og.svg(n),g=Dh(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=[{x:-h/2+d,y:-c/2},{x:h/2-d,y:-c/2},...fg(-h/2+d,0,d,50,90,270),{x:h/2-d,y:c/2},...fg(h/2-d,0,d,50,270,450)],y=pg(f),m=p.path(y,g),C=n.insert(()=>m,":first-child");return C.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",u),i&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",i),dg(e,C),e.intersect=function(t){return _g.polygon(e,f,t)},n}async function By(t,e){return ff(t,e,{rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5})}function vy(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i;const{cssStyles:a}=e,{lineColor:s,stateBorder:n,nodeBorder:l,nodeShadow:h}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const c=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),d=og.svg(c),u=Dh(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");const p=d.circle(0,0,e.width,{...u,stroke:s,strokeWidth:2}),g=n??l,f=5*(e.width??0)/14,y=d.circle(0,0,f,{...u,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),m=c.insert(()=>p,":first-child");if(m.insert(()=>y),"handDrawn"!==e.look&&m.attr("class","outer-path"),a&&m.selectAll("path").attr("style",a),o&&m.selectAll("path").attr("style",o),e.width<25&&h&&"handDrawn"!==e.look){const e=t.node()?.ownerSVGElement?.id??"",r=e?`${e}-drop-shadow-small`:"drop-shadow-small";m.attr("style",`filter:url(#${r})`)}return dg(e,m),e.intersect=function(t){return _g.circle(e,(e.width??0)/2,t)},c}function Fy(t,e,{config:{themeVariables:r}}){const{lineColor:i,nodeShadow:o}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if("handDrawn"===e.look){const t=og.svg(a).circle(0,0,e.width,Mh(i));s=a.insert(()=>t),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&o&&"handDrawn"!==e.look){const e=t.node()?.ownerSVGElement?.id??"",r=e?`${e}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${r})`)}return dg(e,s),e.intersect=function(t){return _g.circle(e,(e.width??7)/2,t)},a}Vt(Ty,"stadium"),Vt(By,"state"),Vt(vy,"stateEnd"),Vt(Fy,"stateStart");async function Ly(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e?.padding??8,a="neo"===e.look?28:o,s="neo"===e.look?12:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=Math.max(l.width+16+a,e.width??0),c=Math.max(l.height+s,e.height??0),d=h-16,u=c,p=-h/2,g=-c/2,f=[{x:0,y:0},{x:d,y:0},{x:d,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if("handDrawn"===e.look){const t=og.svg(n),r=Dh(e,{}),i=t.rectangle(p,g,d+16,u,r),o=t.line(p+8,g,p+8,g+u,r),a=t.line(p+8+d,g,p+8+d,g+u,r);n.insert(()=>o,":first-child"),n.insert(()=>a,":first-child");const s=n.insert(()=>i,":first-child"),{cssStyles:l}=e;s.attr("class","basic label-container").attr("style",Jc(l)),dg(e,s)}else{const t=Rg(n,d,u,f);i&&t.attr("style",i),dg(e,t)}return e.intersect=function(t){return _g.polygon(e,f,t)},n}Vt(Ly,"subroutine");async function _y(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*a-.2*(e.height+2*s),10));const{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=(e?.height?e?.height:l.height)+2*s,c=.2*h,d=.2*h,u=(e?.width?e?.width:l.width)+2*a+c-c,p=h,g=-u/2,f=-p/2,{cssStyles:y}=e,m=og.svg(n),C=Dh(e,{}),x=[{x:g-c/2,y:f},{x:g+u+c/2,y:f},{x:g+u+c/2,y:f+p},{x:g-c/2,y:f+p}],b=[{x:g+u-c/2,y:f+p},{x:g+u+c/2,y:f+p},{x:g+u+c/2,y:f+p-d}];"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const k=pg(x),w=m.path(k,C),S=pg(b),T=m.path(S,{...C,fillStyle:"solid"}),B=n.insert(()=>T,":first-child");return B.insert(()=>w,":first-child"),B.attr("class","basic label-container outer-path"),y&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),dg(e,B),e.intersect=function(t){return _g.polygon(e,x,t)},n}async function My(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,label:s}=await hg(t,e,ug(e)),n=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),h=l/8,c=.2*n,d=.2*l,u=l+h,{cssStyles:p}=e,g=og.svg(o),f=Dh(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const y=[{x:-n/2-n/2*.1,y:u/2},...gg(-n/2-n/2*.1,u/2,n/2+n/2*.1,u/2,h,.8),{x:n/2+n/2*.1,y:-u/2},{x:-n/2-n/2*.1,y:-u/2}],m=-n/2+n/2*.1,C=-u/2-.4*d,x=[{x:m+n-c,y:1.3*(C+l)},{x:m+n,y:C+l-d},{x:m+n,y:.9*(C+l)},...gg(m+n,1.25*(C+l),m+n-c,1.3*(C+l),.02*-l,.5)],b=pg(y),k=g.path(b,f),w=pg(x),S=g.path(w,{...f,fillStyle:"solid"}),T=o.insert(()=>S,":first-child");return T.insert(()=>k,":first-child"),T.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-n/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-h/2-(a.y-(a.top??0))})`),dg(e,T),e.intersect=function(t){return _g.polygon(e,y,t)},o}async function Ay(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a}=await hg(t,e,ug(e)),s=Math.max(a.width+(e.padding??0),e?.width||0),n=Math.max(a.height+(e.padding??0),e?.height||0),l=-s/2,h=-n/2,c=o.insert("rect",":first-child");return c.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",h).attr("width",s).attr("height",n),dg(e,c),e.intersect=function(t){return _g.rect(e,t)},o}Vt(_y,"taggedRect"),Vt(My,"taggedWaveEdgedRectangle"),Vt(Ay,"text");var Ey=Vt((t,e,r,i,o,a)=>`M${t},${e}\n a${o},${a} 0,0,1 0,${-i}\n l${r},0\n a${o},${a} 0,0,1 0,${i}\n M${r},${-i}\n a${o},${a} 0,0,0 0,${i}\n l${-r},0`,"createCylinderPathD"),$y=Vt((t,e,r,i,o,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${o},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${o},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),Oy=Vt((t,e,r,i,o,a)=>[`M${t+r/2},${-i/2}`,`a${o},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function Iy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?12:o/2,s=e.height??0;if(e.height&&(e.height=e.height-a,e.height<5&&(e.height=5)),e.width){const t=s/2/(2.5+s/50);e.width=e.width-a-3*t,e.width<10&&(e.width=10)}const{shapeSvg:n,bbox:l,label:h}=await hg(t,e,ug(e)),c=Math.max(e.height??0,l.height)+a,d=c/2,u=d/(2.5+c/50),p=Math.max(e.width??0,l.width)+u+a,{cssStyles:g}=e;let f;if("handDrawn"===e.look){const t=og.svg(n),r=$y(0,0,p,c,u,d),i=Oy(0,0,p,c,u,d),o=t.path(r,Dh(e,{})),a=t.path(i,Dh(e,{fill:"none"}));f=n.insert(()=>a,":first-child"),f=n.insert(()=>o,":first-child"),f.attr("class","basic label-container"),g&&f.attr("style",g)}else{const t=Ey(0,0,p,c,u,d);f=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",Jc(g)).attr("style",i),f.attr("class","basic label-container outer-path"),g&&f.selectAll("path").attr("style",g),i&&f.selectAll("path").attr("style",i)}return f.attr("label-offset-x",u),f.attr("transform",`translate(${-p/2}, ${c/2} )`),h.attr("transform",`translate(${-l.width/2-u-(l.x-(l.left??0))}, ${-l.height/2-(l.y-(l.top??0))})`),dg(e,f),e.intersect=function(t){const r=_g.rect(e,t),i=r.y-(e.y??0);if(0!=d&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-u)){let o=u*u*(1-i*i/(d*d));0!=o&&(o=Math.sqrt(Math.abs(o))),o=u-o,t.x-(e.x??0)>0&&(o=-o),r.x+=o}return r},n}async function Dy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a=(e.look,o),s="neo"===e.look?2*o:o,{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=Math.max(l.height+a,e.height??0),c=Math.max(l.width+s,(e.width??0)-h),d=[{x:-3*h/6,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:0,y:-h}];let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=og.svg(n),r=Dh(e,{}),i=pg(d),o=t.path(i,r);u=n.insert(()=>o,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),p&&u.attr("style",p)}else u=Rg(n,c,h,d);return i&&u.attr("style",i),e.width=c,e.height=h,dg(e,u),e.intersect=function(t){return _g.polygon(e,d,t)},n}async function qy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*a,e.width<15&&(e.width=15));const{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=(e?.width?e?.width:l.width)+2*a,c=(e?.height?e?.height:l.height)+2*s,{cssStyles:d}=e,u=og.svg(n),p=Dh(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-h/2*.8,y:-c/2},{x:h/2*.8,y:-c/2},{x:h/2,y:-c/2*.6},{x:h/2,y:c/2},{x:-h/2,y:c/2},{x:-h/2,y:-c/2*.6}],f=pg(g),y=u.path(f,p),m=n.insert(()=>y,":first-child");return m.attr("class","basic label-container outer-path"),d&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",i),dg(e,m),e.intersect=function(t){return _g.polygon(e,g,t)},n}Vt(Iy,"tiltedCylinder"),Vt(Dy,"trapezoid"),Vt(qy,"trapezoidalPentagon");async function Py(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?2*o:o;(e.width||e.height)&&(e.width=((e?.width??0)-a)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));const{shapeSvg:s,bbox:n,label:l}=await hg(t,e,ug(e)),h=eo(ka().flowchart?.htmlLabels),c=(e?.width?e?.width:n.width)+a,d=e?.height?e?.height:c+n.height,u=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-d}],{cssStyles:p}=e,g=og.svg(s),f=Dh(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const y=pg(u),m=g.path(y,f),C=s.insert(()=>m,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return p&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",p),i&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",i),e.width=c,e.height=d,dg(e,C),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${d/2-(n.height+(e.padding??0)/(h?2:1)-(n.y-(n.top??0)))})`),e.intersect=function(t){return Jt.info("Triangle intersect",e,u,t),_g.polygon(e,u,t)},s}async function zy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?12:o;let n=!0;(e.width||e.height)&&(n=!1,e.width=(e?.width??0)-2*a,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));const{shapeSvg:l,bbox:h,label:c}=await hg(t,e,ug(e)),d=(e?.width?e?.width:h.width)+2*(a??0),u=(e?.height?e?.height:h.height)+2*(s??0),p="neo"===e.look?u/4:u/8,g=u+(n?p:-p),{cssStyles:f}=e,y=14-d,m=y>0?y/2:0,C=og.svg(l),x=Dh(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-d/2-m,y:g/2},...gg(-d/2-m,g/2,d/2+m,g/2,p,.8),{x:d/2+m,y:-g/2},{x:-d/2-m,y:-g/2}],k=pg(b),w=C.path(k,x),S=l.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",f),i&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(0,${-p/2})`),c.attr("transform",`translate(${-d/2+(e.padding??0)-(h.x-(h.left??0))},${-u/2+(e.padding??0)-p-(h.y-(h.top??0))})`),dg(e,S),e.intersect=function(t){return _g.polygon(e,b,t)},l}async function Ry(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e.padding??0,a="neo"===e.look?16:o,s="neo"===e.look?20:o;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);const t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-t*(20/9)),e.width=e.width-2*a}const{shapeSvg:n,bbox:l}=await hg(t,e,ug(e)),h=(e?.width?e?.width:l.width)+2*a,c=(e?.height?e?.height:l.height)+s,d=c/8,u=c+2*d,{cssStyles:p}=e,g=og.svg(n),f=Dh(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const y=[{x:-h/2,y:u/2},...gg(-h/2,u/2,h/2,u/2,d,1),{x:h/2,y:-u/2},...gg(h/2,-u/2,-h/2,-u/2,d,-1)],m=pg(y),C=g.path(m,f),x=n.insert(()=>C,":first-child");return x.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),dg(e,x),e.intersect=function(t){return _g.polygon(e,y,t)},n}Vt(Py,"triangle"),Vt(zy,"waveEdgedRectangle"),Vt(Ry,"waveRectangle");var Wy=10;async function Ny(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o="neo"===e.look?16:e.padding??0,a="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*o-Wy,10),e.height=Math.max((e?.height??0)-2*a-Wy,10));const{shapeSvg:s,bbox:n,label:l}=await hg(t,e,ug(e)),h=(e?.width?e?.width:n.width)+2*o+Wy,c=(e?.height?e?.height:n.height)+2*a+Wy,d=h-Wy,u=c-Wy,p=-d/2,g=-u/2,{cssStyles:f}=e,y=og.svg(s),m=Dh(e,{}),C=[{x:p-Wy,y:g-Wy},{x:p-Wy,y:g+u},{x:p+d,y:g+u},{x:p+d,y:g-Wy}],x=`M${p-Wy},${g-Wy} L${p+d},${g-Wy} L${p+d},${g+u} L${p-Wy},${g+u} L${p-Wy},${g-Wy}\n M${p-Wy},${g} L${p+d},${g}\n M${p},${g-Wy} L${p},${g+u}`;"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const b=y.path(x,m),k=s.insert(()=>b,":first-child");return k.attr("transform","translate(5, 5)"),k.attr("class","basic label-container outer-path"),f&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",f),i&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",i),l.attr("transform",`translate(${-n.width/2+5-(n.x-(n.left??0))}, ${-n.height/2+5-(n.y-(n.top??0))})`),dg(e,k),e.intersect=function(t){return _g.polygon(e,C,t)},s}Vt(Ny,"windowPane");var jy=new Set(["redux-color","redux-dark-color"]),Hy=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Uy(t,e){const r=e;r.alias&&(e.label=r.alias);const{theme:i,themeVariables:o}=fo(),{rowEven:a,rowOdd:s,nodeBorder:n,borderColorArray:l}=o;if("handDrawn"===e.look){const{themeVariables:r}=fo(),{background:i}=r,o={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await Uy(t,o)}const h=fo();e.useHtmlLabels=h.htmlLabels;let c=h.er?.diagramPadding??10,d=h.er?.entityPadding??6;const{cssStyles:u}=e,{labelStyles:p,nodeStyles:g}=Ih(e);if(0===r.attributes.length&&e.label){const o={rx:0,ry:0,labelPaddingX:c,labelPaddingY:1.5*c};zc(e.label,h)+2*o.labelPaddingX<h.er.minEntityWidth&&(e.width=h.er.minEntityWidth);const a=await ff(t,e,o);if(null!=i&&jy.has(i)){const t=r.colorIndex??0;a.attr("data-color-id","color-"+t%l.length)}if(!eo(h.htmlLabels)){const t=a.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return a}h.htmlLabels||(c*=1.25,d*=1.25);let f=ug(e);f||(f="node default");const y=t.insert("g").attr("class",f).attr("id",e.domId||e.id),m=await Yy(y,e.label??"",h,0,0,["name"],p);m.height+=d;let C=0;const x=[],b=[];let k=0,w=0,S=0,T=0,B=!0,v=!0;for(const t of r.attributes){const e=await Yy(y,t.type,h,0,C,["attribute-type"],p);k=Math.max(k,e.width+c);const r=await Yy(y,t.name,h,0,C,["attribute-name"],p);w=Math.max(w,r.width+c);const i=await Yy(y,t.keys.join(),h,0,C,["attribute-keys"],p);S=Math.max(S,i.width+c);const o=await Yy(y,t.comment,h,0,C,["attribute-comment"],p);T=Math.max(T,o.width+c);const a=Math.max(e.height,r.height,i.height,o.height)+d;b.push({yOffset:C,rowHeight:a}),C+=a}let F=4;S<=c&&(B=!1,S=0,F--),T<=c&&(v=!1,T=0,F--);const L=y.node().getBBox();if(m.width+2*c-(k+w+S+T)>0){const t=m.width+2*c-(k+w+S+T);k+=t/F,w+=t/F,S>0&&(S+=t/F),T>0&&(T+=t/F)}const _=k+w+S+T,M=og.svg(y),A=Dh(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let E=0;b.length>0&&(E=b.reduce((t,e)=>t+(e?.rowHeight??0),0));const $=Math.max(L.width+2*c,e?.width||0,_),O=Math.max((E??0)+m.height,e?.height||0),I=-$/2,D=-O/2;if(y.selectAll("g:not(:first-child)").each((t,e,r)=>{const i=Gs(r[e]),o=i.attr("transform");let a=0,s=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(a=parseFloat(t[1]),s=parseFloat(t[2]),i.attr("class").includes("attribute-name")?a+=k:i.attr("class").includes("attribute-keys")?a+=k+w:i.attr("class").includes("attribute-comment")&&(a+=k+w+S))}i.attr("transform",`translate(${I+c/2+a}, ${s+D+m.height+d/2})`)}),y.select(".name").attr("transform","translate("+-m.width/2+", "+(D+d/2)+")"),null!=i&&jy.has(i)){const t=r.colorIndex??0;y.attr("data-color-id","color-"+t%l.length)}const q=M.rectangle(I,D,$,O,A),P=y.insert(()=>q,":first-child").attr("class","outer-path").attr("style",u.join(""));x.push(0);for(const[t,e]of b.entries()){const r=(t+1)%2==0&&0!==e.yOffset,i=M.rectangle(I,m.height+D+e?.yOffset,$,e?.rowHeight,{...A,fill:r?a:s,stroke:n});y.insert(()=>i,"g.label").attr("style",u.join("")).attr("class","row-rect-"+(r?"even":"odd"))}const z=1e-4;let R=Vy(I,m.height+D,$+I,m.height+D,z),W=M.polygon(R.map(t=>[t.x,t.y]),A);if(y.insert(()=>W).attr("class","divider"),R=Vy(k+I,m.height+D,k+I,O+D,z),W=M.polygon(R.map(t=>[t.x,t.y]),A),y.insert(()=>W).attr("class","divider"),B){const t=k+w+I;R=Vy(t,m.height+D,t,O+D,z),W=M.polygon(R.map(t=>[t.x,t.y]),A),y.insert(()=>W).attr("class","divider")}if(v){const t=k+w+S+I;R=Vy(t,m.height+D,t,O+D,z),W=M.polygon(R.map(t=>[t.x,t.y]),A),y.insert(()=>W).attr("class","divider")}for(const t of x){const e=m.height+D+t;R=Vy(I,e,$+I,e,z),W=M.polygon(R.map(t=>[t.x,t.y]),A),y.insert(()=>W).attr("class","divider")}if(dg(e,P),g&&"handDrawn"!==e.look)if(null!=i&&Hy.has(i))y.selectAll("path").attr("style",g);else{const t=g.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");y.selectAll("path").attr("style",e??""),y.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(t){return _g.rect(e,t)},y}async function Yy(t,e,r,i=0,o=0,a=[],s=""){const n=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${o})`).attr("style",s);e!==Wo(e)&&(e=(e=Wo(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=n.node().appendChild(await Gu(n,e,{width:zc(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("&lt;")||e.includes("&gt;")){let t=l.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)t=t.childNodes[0],t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let h=l.getBBox();if(eo(r.htmlLabels)){const t=l.children[0];t.style.textAlign="start";const e=Gs(l);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return h}function Vy(t,e,r,i,o){return t===r?[{x:t-o/2,y:e},{x:t+o/2,y:e},{x:r+o/2,y:i},{x:r-o/2,y:i}]:[{x:t,y:e-o/2},{x:t,y:e+o/2},{x:r,y:i+o/2},{x:r,y:i-o/2}]}async function Gy(t,e,r,i,o=r.class.padding??12){const a=i?0:3,s=t.insert("g").attr("class",ug(e)).attr("id",e.domId||e.id);let n=null,l=null,h=null,c=null,d=0,u=0,p=0;if(n=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const t=e.annotations[0];await Xy(n,{text:`«${t}»`},0);d=n.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await Xy(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();u=g.height,h=s.insert("g").attr("class","members-group text");let f=0;for(const t of e.members){f+=await Xy(h,t,f,[t.parseClassifier()])+a}p=h.node().getBBox().height,p<=0&&(p=o/2),c=s.insert("g").attr("class","methods-group text");let y=0;for(const t of e.methods){y+=await Xy(c,t,y,[t.parseClassifier()])+a}let m=s.node().getBBox();if(null!==n){const t=n.node().getBBox();n.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${d})`),m=s.node().getBBox(),h.attr("transform",`translate(0, ${d+u+2*o})`),m=s.node().getBBox(),c.attr("transform",`translate(0, ${d+u+(p?p+4*o:2*o)})`),m=s.node().getBBox(),{shapeSvg:s,bbox:m}}async function Xy(t,e,r,i=[]){const o=t.insert("g").attr("class","label").attr("style",i.join("; ")),a=fo();let s="useHtmlLabels"in e?e.useHtmlLabels:eo(a.htmlLabels)??!0,n="";n="text"in e?e.text:e.label,!s&&n.startsWith("\\")&&(n=n.substring(1)),Vo(n)&&(s=!0);const l=await Gu(o,Ta(Qc(n)),{width:zc(n,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let h,c=1;if(s){const t=l.children[0],e=Gs(l);c=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(c+=t.innerHTML.split("<mrow>").length-1),await ag(t),h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{i.includes("font-weight: bolder")&&Gs(l).selectAll("tspan").attr("font-weight",""),c=l.children.length;const t=l.children[0];if(""===l.textContent||l.textContent.includes("&gt")){t.textContent=n[0]+n.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim();" "===n[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))}"undefined"===t.textContent&&(t.textContent=""),h=l.getBBox()}return o.attr("transform","translate(0,"+(-h.height/(2*c)+r)+")"),h.height}async function Zy(t,e){const r=ka(),{theme:i,themeVariables:o}=r,{useGradient:a,borderColorArray:s}=o,n=r.class.padding??12,l=n,h=e.useHtmlLabels??eo(r.htmlLabels)??!0,c=e;c.annotations=c.annotations??[],c.members=c.members??[],c.methods=c.methods??[];const{shapeSvg:d,bbox:u}=await Gy(t,e,r,h,l);rp(d,e.colorIndex,i,s);const{labelStyles:p,nodeStyles:g}=Ih(e);e.labelStyle=p,e.cssStyles=c.styles||"";const f=c.styles?.join(";")||g||"";e.cssStyles||(e.cssStyles=f.replaceAll("!important","").split(";"));const y=0===c.members.length&&0===c.methods.length&&!r.class?.hideEmptyMembersBox,m=og.svg(d),C=Dh(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const x=Math.max(e.width??0,u.width);let b=Math.max(e.height??0,u.height);const k=(e.height??0)>u.height;0===c.members.length&&0===c.methods.length?b+=l:c.members.length>0&&0===c.methods.length&&(b+=2*l);const w=-x/2,S=-b/2;let T=y?2*n:0===c.members.length&&0===c.methods.length?-n:0;k&&(T=2*n);const B=m.rectangle(w-n,S-n-(y?n:0===c.members.length&&0===c.methods.length?-n/2:0),x+2*n,b+2*n+T,C),v=d.insert(()=>B,":first-child");v.attr("class","basic label-container outer-path");const F=v.node().getBBox(),L=d.select(".annotation-group").node().getBBox().height-(y?n/2:0)||0,_=d.select(".label-group").node().getBBox().height-(y?n/2:0)||0,M=d.select(".members-group").node().getBBox().height-(y?n/2:0)||0,A=(L+_+S+n-(S-n-(y?n:0===c.members.length&&0===c.methods.length?-n/2:0)))/2;if(d.selectAll(".text").each((t,e,i)=>{const o=Gs(i[e]),a=o.attr("transform");let s=0;if(a){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);t&&(s=parseFloat(t[2]))}let u=s+S+n-(y?n:0===c.members.length&&0===c.methods.length?-n/2:0);if(o.attr("class").includes("methods-group")){const t=Math.max(M,l/2);u=k?Math.max(A,L+_+t+S+2*l+n)+2*l:L+_+t+S+4*l+n}0===c.members.length&&0===c.methods.length&&r.class?.hideEmptyMembersBox&&(u=c.annotations.length>0?s-l:s),h||(u-=4);let p=w;(o.attr("class").includes("label-group")||o.attr("class").includes("annotation-group"))&&(p=-o.node()?.getBBox().width/2||0,d.selectAll("text").each(function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(p=0)})),o.attr("transform",`translate(${p}, ${u})`)}),c.members.length>0||c.methods.length>0||y){const t=L+_+S+n,r=m.line(F.x,t,F.x+F.width,t+.001,C);d.insert(()=>r).attr("class","divider"+("neo"!==e.look||a?"":" neo-line")).attr("style",f)}if(y||c.members.length>0||c.methods.length>0){const t=L+_+M+S+2*l+n,r=m.line(F.x,k?Math.max(A,t):t,F.x+F.width,(k?Math.max(A,t):t)+.001,C);d.insert(()=>r).attr("class","divider"+("neo"!==e.look||a?"":" neo-line")).attr("style",f)}if("handDrawn"!==c.look&&d.selectAll("path").attr("style",f),v.select(":nth-child(2)").attr("style",f),d.selectAll(".divider").select("path").attr("style",f),e.labelStyle?d.selectAll("span").attr("style",e.labelStyle):d.selectAll("span").attr("style",f),!h){const t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(f);if(e){const t=e[0].replace("color","fill");d.selectAll("tspan").attr("style",t)}else if(p){const e=t.exec(p);if(e){const t=e[0].replace("color","fill");d.selectAll("tspan").attr("style",t)}}}return dg(e,v),e.intersect=function(t){return _g.rect(e,t)},d}async function Qy(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const o=e,a=e,s="verifyMethod"in e,n=ug(e),l=ka(),{themeVariables:h}=l,{borderColorArray:c,requirementEdgeLabelBackground:d}=h,u="elk"===l.layout?"start":"center",p=t.insert("g").attr("class",n).attr("id",e.domId??e.id);let g;g=s?await Ky(p,`&lt;&lt;${o.type}&gt;&gt;`,0,e.labelStyle):await Ky(p,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let f=g;const y=await Ky(p,o.name,f,e.labelStyle+"; font-weight: bold;");if(f+=y+20,s){f+=await Ky(p,""+(o.requirementId?`ID: ${o.requirementId}`:""),f,e.labelStyle,u);f+=await Ky(p,""+(o.text?`Text: ${o.text}`:""),f,e.labelStyle,u);f+=await Ky(p,""+(o.risk?`Risk: ${o.risk}`:""),f,e.labelStyle,u),await Ky(p,""+(o.verifyMethod?`Verification: ${o.verifyMethod}`:""),f,e.labelStyle,u)}else{f+=await Ky(p,""+(a.type?`Type: ${a.type}`:""),f,e.labelStyle,u),await Ky(p,""+(a.docRef?`Doc Ref: ${a.docRef}`:""),f,e.labelStyle,u)}const m=(p.node()?.getBBox().width??200)+20,C=(p.node()?.getBBox().height??200)+20,x=-m/2,b=-C/2,k=og.svg(p),w=Dh(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");const S=k.rectangle(x,b,m,C,w),T=p.insert(()=>S,":first-child");if(T.attr("class","basic label-container outer-path").attr("style",i),c?.length){const t=e.colorIndex??0;p.attr("data-color-id","color-"+t%c.length)}if(p.selectAll(".label").each((t,e,r)=>{const i=Gs(r[e]),o=i.attr("transform");let a=0,s=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(a=parseFloat(t[1]),s=parseFloat(t[2]))}const n=s-C/2;let l=x+10;0!==e&&1!==e||(l=a),i.attr("transform",`translate(${l}, ${n+20})`)}),f>g+y+20){const t=b+g+y+20;let r;if("neo"===e.look){const e=.001,i=[[x,t],[x+m,t],[x+m,t+e],[x,t+e]];r=k.polygon(i,w)}else r=k.line(x,t,x+m,t,w);p.insert(()=>r).attr("class","divider")}return dg(e,T),e.intersect=function(t){return _g.rect(e,t)},i&&"handDrawn"!==e.look&&(d||c?.length)&&p.selectAll("path").attr("style",i),p}async function Ky(t,e,r,i="",o="center"){if(""===e)return 0;const a=t.insert("g").attr("class","label").attr("style",i),s=ka(),n=s.htmlLabels??!0,l=await Gu(a,Ta(Qc(e)),{width:zc(e,s)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},s);let h;if(n){const t=l.children[0],e=Gs(l);"start"===o&&Gs(t).style("text-align","left"),h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{const t=l.children[0];for(const e of t.children)i&&e.setAttribute("style",i);if("start"===o){t.setAttribute("text-anchor","start");for(const e of t.children)e.setAttribute("text-anchor","start")}h=l.getBBox(),h.height+=6}return a.attr("transform",`translate(${-h.width/2},${-h.height/2+r})`),h.height}Vt(Uy,"erBox"),Vt(Yy,"addText"),Vt(Vy,"lineToPolygon"),Vt(Gy,"textHelper"),Vt(Xy,"addText"),Vt(Zy,"classBox"),Vt(Qy,"requirementBox"),Vt(Ky,"addText");var Jy=Vt(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 tm(t,e,{config:r}){const{labelStyles:i,nodeStyles:o}=Ih(e);e.labelStyle=i||"";const a=e.width;e.width=(e.width??200)-10;const{shapeSvg:s,bbox:n,label:l}=await hg(t,e,ug(e)),h=e.padding||10;let c,d="";"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(d=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),c=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",d).attr("target","_blank"));const u={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let p,g;({label:p,bbox:g}=c?await cg(c,"ticket"in e&&e.ticket||"",u):await cg(s,"ticket"in e&&e.ticket||"",u));const{label:f,bbox:y}=await cg(s,"assigned"in e&&e.assigned||"",u);e.width=a;const m=e?.width||0,C=Math.max(g.height,y.height)/2,x=Math.max(n.height+20,e?.height||0)+C,b=-m/2,k=-x/2;let w;l.attr("transform","translate("+(h-m/2)+", "+(-C-n.height/2)+")"),p.attr("transform","translate("+(h-m/2)+", "+(-C+n.height/2)+")"),f.attr("transform","translate("+(h+m/2-y.width-20)+", "+(-C+n.height/2)+")");const{rx:S,ry:T}=e,{cssStyles:B}=e;if("handDrawn"===e.look){const t=og.svg(s),r=Dh(e,{}),i=S||T?t.path(Mg(b,k,m,x,S||0),r):t.rectangle(b,k,m,x,r);w=s.insert(()=>i,":first-child"),w.attr("class","basic label-container").attr("style",B||null)}else{w=s.insert("rect",":first-child"),w.attr("class","basic label-container __APA__").attr("style",o).attr("rx",S??5).attr("ry",T??5).attr("x",b).attr("y",k).attr("width",m).attr("height",x);const t="priority"in e&&e.priority;if(t){const e=s.append("line"),r=b+2,i=k+Math.floor((S??0)/2),o=k+x-Math.floor((S??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",o).attr("stroke-width","4").attr("stroke",Jy(t))}}return dg(e,w),e.height=x,e.intersect=function(t){return _g.rect(e,t)},s}async function em(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,halfPadding:s,label:n}=await hg(t,e,ug(e)),l=a.width+10*s,h=a.height+8*s,c=.15*l,{cssStyles:d}=e,u=a.width+20,p=a.height+20,g=Math.max(l,u),f=Math.max(h,p);let y;n.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);const m=`M0 0 \n a${c},${c} 1 0,0 ${.25*g},${-1*f*.1}\n a${c},${c} 1 0,0 ${.25*g},0\n a${c},${c} 1 0,0 ${.25*g},0\n a${c},${c} 1 0,0 ${.25*g},${.1*f}\n\n a${c},${c} 1 0,0 ${.15*g},${.33*f}\n a${.8*c},${.8*c} 1 0,0 0,${.34*f}\n a${c},${c} 1 0,0 ${-1*g*.15},${.33*f}\n\n a${c},${c} 1 0,0 ${-1*g*.25},${.15*f}\n a${c},${c} 1 0,0 ${-1*g*.25},0\n a${c},${c} 1 0,0 ${-1*g*.25},0\n a${c},${c} 1 0,0 ${-1*g*.25},${-1*f*.15}\n\n a${c},${c} 1 0,0 ${-1*g*.1},${-1*f*.33}\n a${.8*c},${.8*c} 1 0,0 0,${-1*f*.34}\n a${c},${c} 1 0,0 ${.1*g},${-1*f*.33}\n H0 V0 Z`;if("handDrawn"===e.look){const t=og.svg(o),r=Dh(e,{}),i=t.path(m,r);y=o.insert(()=>i,":first-child"),y.attr("class","basic label-container").attr("style",Jc(d))}else y=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",m);return y.attr("transform",`translate(${-g/2}, ${-f/2})`),dg(e,y),e.calcIntersect=function(t,e){return _g.rect(t,e)},e.intersect=function(t){return Jt.info("Bang intersect",e,t),_g.rect(e,t)},o}async function rm(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,halfPadding:s,label:n}=await hg(t,e,ug(e)),l=a.width+2*s,h=a.height+2*s,c=.15*l,d=.25*l,u=.35*l,p=.2*l,{cssStyles:g}=e;let f;const y=`M0 0 \n a${c},${c} 0 0,1 ${.25*l},${-1*l*.1}\n a${u},${u} 1 0,1 ${.4*l},${-1*l*.1}\n a${d},${d} 1 0,1 ${.35*l},${.2*l}\n\n a${c},${c} 1 0,1 ${.15*l},${.35*h}\n a${p},${p} 1 0,1 ${-1*l*.15},${.65*h}\n\n a${d},${c} 1 0,1 ${-1*l*.25},${.15*l}\n a${u},${u} 1 0,1 ${-1*l*.5},0\n a${c},${c} 1 0,1 ${-1*l*.25},${-1*l*.15}\n\n a${c},${c} 1 0,1 ${-1*l*.1},${-1*h*.35}\n a${p},${p} 1 0,1 ${.1*l},${-1*h*.65}\n H0 V0 Z`;if("handDrawn"===e.look){const t=og.svg(o),r=Dh(e,{}),i=t.path(y,r);f=o.insert(()=>i,":first-child"),f.attr("class","basic label-container").attr("style",Jc(g))}else f=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return n.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),f.attr("transform",`translate(${-l/2}, ${-h/2})`),dg(e,f),e.calcIntersect=function(t,e){return _g.rect(t,e)},e.intersect=function(t){return Jt.info("Cloud intersect",e,t),_g.rect(e,t)},o}async function im(t,e){const{labelStyles:r,nodeStyles:i}=Ih(e);e.labelStyle=r;const{shapeSvg:o,bbox:a,halfPadding:s,label:n}=await hg(t,e,ug(e)),l=a.width+8*s,h=a.height+2*s,c="neo"===e.look?`\n M${-l/2} ${h/2-5}\n v${10-h}\n q0,-5 5,-5\n h${l-10}\n q5,0 5,5\n v${h-5}\n H${-l/2}\n Z\n `:`\n M${-l/2} ${h/2-5}\n v${10-h}\n q0,-5 5,-5\n h${l-10}\n q5,0 5,5\n v${h-10}\n q0,5 -5,5\n h${-(l-10)}\n q-5,0 -5,-5\n Z\n `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);const d=o.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",c);return o.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",h/2).attr("x2",l/2).attr("y2",h/2),n.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),o.append(()=>n.node()),dg(e,d),e.calcIntersect=function(t,e){return _g.rect(t,e)},e.intersect=function(t){return _g.rect(e,t)},o}async function om(t,e){return Qg(t,e,{padding:e.padding??0})}Vt(tm,"kanbanItem"),Vt(em,"bang"),Vt(rm,"cloud"),Vt(im,"defaultMindmapNode"),Vt(om,"mindmapCircle");var am=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:wy},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:xy},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Ty},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Ly},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:gf},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:yf},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:wf},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:qg},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Jg},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Gg},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:cf},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Qg},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:em},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:rm},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:yy},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:vf},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Df},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:If},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Dy},{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:$f},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Cf},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Ay},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Xg},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:by},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Fy},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:vy},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Sf},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Ff},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:of},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:sf},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:lf},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:qf},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:zy},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Tf},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Iy},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Wf},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:hf},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:mf},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Py},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Ny},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:bf},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:qy},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:kf},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:ky},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:py},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:uy},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Dg},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:ef},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:My},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:_y},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Ry},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:my},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Nf}],sm=Vt(()=>{const t={state:By,choice:Zg,note:gy,composite:Kg,rectWithTitle:Cy,labelRect:Of,block_arrow:Vg,collapsedGroup:zg,iconSquare:Af,iconCircle:_f,icon:Lf,iconRounded:Mf,imageSquare:Ef,anchor:$g,kanbanItem:tm,mindmapCircle:om,defaultMindmapNode:im,classBox:Zy,erBox:Uy,requirementBox:Qy,usecaseActor:Jf,usecaseActorHollow:iy,usecaseActorAwesome:ey,usecaseActorIcon:sy,usecaseBusiness:ly,usecaseEllipse:xf,usecaseJsonTable:dy},e=[...Object.entries(t),...am.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))];return Object.fromEntries(e)},"generateShapeMap"),nm=sm();function lm(t){return t in nm}Vt(lm,"isValidShape");var hm=Vt(({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),cm=new Map;async function dm(t,e,r){let i,o;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?nm[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===r.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),o=await a(i,e,r)}else o=await a(t,e,r),i=o;return i.attr("data-look",Jc(e.look)),e.tooltip&&o.attr("title",e.tooltip),cm.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}Vt(dm,"insertNode");var um=Vt((t,e)=>{cm.set(e.id,t)},"setNodeElem"),pm=Vt(()=>{cm.clear()},"clear"),gm=Vt(t=>{const e=cm.get(t.id);Jt.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode"),fm=Vt(async(t,e)=>{const r=ka(),{theme:i,themeVariables:o,handDrawnSeed:a}=r,{clusterBkg:s,clusterBorder:n,borderColorArray:l}=o,h=n,{labelStyles:c,nodeStyles:d,borderStyles:u,backgroundStyles:p}=Ih(e),g=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.domId??e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look);rp(g,e.colorIndex,i,l);const f=eo(r.flowchart.htmlLabels),y="LR"===e.direction,m=g.insert("g").attr("class","cluster-label swimlane-label"),C=await Gu(m,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let x=C.getBBox();if(f){const t=C.children[0],e=Gs(C);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}const b=e.padding??0,k=e.width<=x.width+b?x.width+b:e.width;e.width<=x.width+b?e.diff=(k-e.width)/2-b:e.diff=-b;const w=e.height,S=e.y-w/2,T=e.y+w/2,B=e.x-k/2,v=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:S+w/3,F=y?4:0,L=x.height+2*F;let _,M;if(y){const t=Math.max(L,x.height+2*F),r=B+t,i=Math.max(0,k-t);if("handDrawn"===e.look){const o=og.svg(g),n=Dh(e,{roughness:.7,fill:s,stroke:h,seed:a}),l=Dh(e,{roughness:.7,fill:"none",stroke:h,seed:a}),c=o.rectangle(B,S,t,w,n);_=g.insert(()=>c,":first-child").attr("class","swimlane-title");const d=o.rectangle(r,S,i,w,l);M=g.insert(()=>d,":first-child").attr("class","swimlane-body"),_.select("path:nth-child(2)").attr("style",u.join(";")),_.select("path").attr("style",p.join(";").replace("fill","stroke"))}else _=g.insert("rect",":first-child"),M=g.insert("rect",":first-child"),_.attr("class","swimlane-title").attr("style",d).attr("x",B).attr("y",S).attr("width",t).attr("height",w).attr("fill",s).attr("stroke",h),M.attr("class","swimlane-body").attr("style",d).attr("x",r).attr("y",S).attr("width",i).attr("height",w).attr("fill","none").attr("stroke",h);const o=B+t/2,n=e.y;m.attr("transform",`translate(${o}, ${n}) rotate(-90) translate(${-x.width/2}, ${-x.height/2})`)}else{const t=Math.max(0,v-S),r=Math.min(L,t),i=S+r,o=Math.max(0,T-i),n=e.x-k/2;if("handDrawn"===e.look){const t=og.svg(g),l=Dh(e,{roughness:.7,fill:s,stroke:h,fillWeight:3,seed:a}),c=Dh(e,{roughness:.7,fill:"none",stroke:h,seed:a}),d=t.rectangle(n,S,k,r,l);_=g.insert(()=>d,":first-child").attr("class","swimlane-title");const f=t.rectangle(n,i,k,o,c);M=g.insert(()=>f,":first-child").attr("class","swimlane-body"),_.select("path:nth-child(2)").attr("style",u.join(";")),_.select("path").attr("style",p.join(";").replace("fill","stroke"))}else _=g.insert("rect",":first-child"),M=g.insert("rect",":first-child"),_.attr("class","swimlane-title").attr("style",d).attr("x",n).attr("y",S).attr("width",k).attr("height",r).attr("fill",s).attr("stroke",h),M.attr("class","swimlane-body").attr("style",d).attr("x",n).attr("y",i).attr("width",k).attr("height",o).attr("fill","none").attr("stroke",h);const l=e.x-x.width/2,c=S+(r-x.height)/2;m.attr("transform",`translate(${l}, ${c})`)}if(Jt.trace("Swimlane data ",e,JSON.stringify(e)),c){const t=m.select("span");t&&t.attr("style",c)}return e.offsetX=0,e.width=k,e.height=w,e.offsetY=x.height-b/2,e.intersect=function(t){return Cg(e,t)},{cluster:g,labelBBox:x}},"swimlane"),ym=Vt(async(t,e)=>{Jt.info("Creating subgraph rect for ",e.id,e);const r=ka(),{theme:i,themeVariables:o,handDrawnSeed:a}=r,{clusterBkg:s,clusterBorder:n,borderColorArray:l}=o,{labelStyles:h,nodeStyles:c,borderStyles:d,backgroundStyles:u}=Ih(e),p=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);rp(p,e.colorIndex,i,l);const g=To(r),f=p.insert("g").attr("class","cluster-label ");let y;y="markdown"===e.labelType?await Gu(f,e.label,{style:e.labelStyle,useHtmlLabels:g,isNode:!0,width:e.width}):await Eg(f,e.label,e.labelStyle||"",!1,!0);let m=y.getBBox();if(To(r)){const t=y.children[0],e=Gs(y);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}const C=e.width<=m.width+e.padding?m.width+e.padding:e.width;e.width<=m.width+e.padding?e.diff=(C-e.width)/2-e.padding:e.diff=-e.padding;const x=e.height,b=e.x-C/2,k=e.y-x/2;let w;if(Jt.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=og.svg(p),r=Dh(e,{roughness:.7,fill:s,stroke:n,fillWeight:3,seed:a}),i=t.path(Mg(b,k,C,x,0),r);w=p.insert(()=>(Jt.debug("Rough node insert CXC",i),i),":first-child"),w.select("path:nth-child(2)").attr("style",d.join(";")),w.select("path").attr("style",u.join(";").replace("fill","stroke"))}else w=p.insert("rect",":first-child"),w.attr("style",c).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",k).attr("width",C).attr("height",x);const{subGraphTitleTopMargin:S}=hm(r);if(f.attr("transform",`translate(${e.x-m.width/2}, ${e.y-e.height/2+S})`),h){const t=f.select("span");t&&t.attr("style",h)}const T=w.node().getBBox();return e.offsetX=0,e.width=T.width,e.height=T.height,e.offsetY=m.height-e.padding/2,e.intersect=function(t){return Cg(e,t)},{cluster:p,labelBBox:m}},"rect"),mm=Vt((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),o=0*e.padding,a=o/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+o).attr("height",e.height+o).attr("fill","none");const s=i.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return Cg(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Cm=Vt(async(t,e)=>{const r=ka(),{theme:i,themeVariables:o,handDrawnSeed:a}=r,{altBackground:s,borderColorArray:n,compositeBackground:l,compositeTitleBackground:h,nodeBorder:c}=o,d=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);rp(d,e.colorIndex,i,n);const u=d.insert("g",":first-child"),p=d.insert("g").attr("class","cluster-label");let g=d.append("rect");const f=await Eg(p,e.label,e.labelStyle,void 0,!0);let y=f.getBBox();if(To(r)){const t=f.children[0],e=Gs(f);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}const m=0*e.padding,C=m/2,x=(e.width<=y.width+e.padding?y.width+e.padding:e.width)+m;e.width<=y.width+e.padding?e.diff=(x-e.width)/2-e.padding:e.diff=-e.padding;const b=e.height+m,k=e.height+m-y.height-6,w=e.x-x/2,S=e.y-b/2;e.width=x;const T=e.y-e.height/2-C+y.height+2;let B;if("handDrawn"===e.look){const t=e.cssClasses.includes("statediagram-cluster-alt"),r=og.svg(d),i=e.rx||e.ry?r.path(Mg(w,S,x,b,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:c,seed:a}):r.rectangle(w,S,x,b,{seed:a});B=d.insert(()=>i,":first-child");const o=r.rectangle(w,T,x,k,{fill:t?s:l,fillStyle:t?"hachure":"solid",stroke:c,seed:a});B=d.insert(()=>i,":first-child"),g=d.insert(()=>o),B.attr("class","outer"),g.attr("class","inner")}else{B=u.insert("rect",":first-child");const t="outer";B.attr("class",t).attr("x",w).attr("y",S).attr("width",x).attr("height",b).attr("data-look",e.look),g.attr("class","inner").attr("x",w).attr("y",T).attr("width",x).attr("height",k)}p.attr("transform",`translate(${e.x-y.width/2}, ${S+1-(To(r)?0:3)})`);const v=B.node().getBBox();return e.height=v.height,e.offsetX=0,e.offsetY=y.height-e.padding/2,e.labelBBox=y,e.intersect=function(t){return Cg(e,t)},{cluster:d,labelBBox:y}},"roundedWithTitle"),xm=Vt(async(t,e)=>{Jt.info("Creating subgraph rect for ",e.id,e);const r=ka(),{themeVariables:i,handDrawnSeed:o}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:n,nodeStyles:l,borderStyles:h,backgroundStyles:c}=Ih(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),u=To(r),p=d.insert("g").attr("class","cluster-label "),g=await Gu(p,e.label,{style:e.labelStyle,useHtmlLabels:u,isNode:!0,width:e.width});let f=g.getBBox();if(To(r)){const t=g.children[0],e=Gs(g);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}const y=e.width<=f.width+e.padding?f.width+e.padding:e.width;e.width<=f.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const m=e.height,C=e.x-y/2,x=e.y-m/2;let b;if(Jt.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=og.svg(d),r=Dh(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:o}),i=t.path(Mg(C,x,y,m,e.rx),r);b=d.insert(()=>(Jt.debug("Rough node insert CXC",i),i),":first-child"),b.select("path:nth-child(2)").attr("style",h.join(";")),b.select("path").attr("style",c.join(";").replace("fill","stroke"))}else b=d.insert("rect",":first-child"),b.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",C).attr("y",x).attr("width",y).attr("height",m);const{subGraphTitleTopMargin:k}=hm(r);if(p.attr("transform",`translate(${e.x-f.width/2}, ${e.y-e.height/2+k})`),n){const t=p.select("span");t&&t.attr("style",n)}const w=b.node().getBBox();return e.offsetX=0,e.width=w.width,e.height=w.height,e.offsetY=f.height-e.padding/2,e.intersect=function(t){return Cg(e,t)},{cluster:d,labelBBox:f}},"kanbanSection"),bm=Vt((t,e)=>{const r=ka(),{theme:i,themeVariables:o,handDrawnSeed:a}=r,{altBackground:s,nodeBorder:n,borderColorArray:l}=o,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);rp(h,e.colorIndex,i,l);const c=h.insert("g",":first-child"),d=0*e.padding,u=e.width+d;e.diff=-e.padding;const p=e.height+d,g=e.x-u/2,f=e.y-p/2;let y;if(e.width=u,"handDrawn"===e.look){const t=og.svg(h).rectangle(g,f,u,p,{fill:s??"#efefef",fillStyle:"solid",roughness:.5,strokeLineDash:[5],stroke:n,seed:a});y=h.insert(()=>t,":first-child").attr("class","divider")}else{y=c.insert("rect",":first-child");let t="outer";t=(e.look,"divider"),y.attr("class",t).attr("x",g).attr("y",f).attr("width",u).attr("height",p).attr("data-look",e.look)}const m=y.node().getBBox();return e.height=m.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return Cg(e,t)},{cluster:h,labelBBox:{}}},"divider"),km=Vt(async(t,e,r)=>{Jt.info(`Creating ${r.cssClass} for `,e.id,e);const i=ka(),{theme:o,themeVariables:a,handDrawnSeed:s}=i,{borderColorArray:n}=a,{labelStyles:l,borderStyles:h}=Ih(e),c=t.insert("g").attr("class","cluster "+r.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);rp(c,e.colorIndex,o,n);const d=To(i),u=c.insert("g").attr("class","cluster-label");let p={width:0,height:0};const g=e.label?.trim();if(g){let t;if(t="markdown"===e.labelType?await Gu(u,e.label,{style:e.labelStyle,useHtmlLabels:d,isNode:!0,width:e.width}):await Eg(u,e.label,e.labelStyle||"",!1,!0),p=t.getBBox(),d){const e=t.children[0],r=Gs(t);p=e.getBoundingClientRect(),r.attr("width",p.width),r.attr("height",p.height)}}const f=e.width<=p.width+e.padding?p.width+e.padding:e.width;e.width<=p.width+e.padding?e.diff=(f-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,m=e.x-f/2,C=e.y-y/2;let x;if("handDrawn"===e.look){const t=og.svg(c),i=Dh(e,{roughness:r.roughness,fill:r.fill,stroke:r.stroke,strokeWidth:r.strokeWidth,seed:s,..."none"===r.fill?{fillWeight:0}:{fillStyle:"solid"},...r.strokeDash?{strokeLineDash:r.strokeDash}:{}}),o=t.path(Mg(m,C,f,y,r.rx),i);x=c.insert(()=>o,":first-child"),x.select("path:nth-child(2)").attr("style",h.join(";"))}else x=c.insert("rect",":first-child"),x.attr("rx",r.rx).attr("ry",r.rx).attr("x",m).attr("y",C).attr("width",f).attr("height",y).attr("fill",r.fill).attr("stroke",r.stroke).attr("stroke-width",r.strokeWidth+"px"),r.strokeDash&&x.attr("stroke-dasharray",r.strokeDash.join(", "));if(g){const{subGraphTitleTopMargin:t}=hm(i);if(u.attr("transform",`translate(${e.x-p.width/2}, ${e.y-e.height/2+t})`),l){const t=u.select("span");t&&t.attr("style",l)}}const b=x.node().getBBox();return e.offsetX=0,e.width=b.width,e.height=b.height,e.offsetY=p.height-e.padding/2,e.intersect=function(t){return Cg(e,t)},{cluster:c,labelBBox:p}},"createContainerGroup"),wm=Vt(async(t,e)=>{const{themeVariables:r}=ka(),i=r.flowContainerStroke||r.secondaryBorderColor;return km(t,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:i,strokeWidth:.75,roughness:.7})},"flowGroup"),Sm=Vt((t,e)=>{const r=t.boundaryType||"rect",i="package"===r?20:t.padding,o="package"===r?e.height+10:0,a=Math.max(t.width,e.width+i),s="package"===r?Math.max(t.height,o+2*t.padding):t.height,n=t.x-a/2,l=t.y-s/2;return{boundaryType:r,width:a,height:s,x:n,y:l,bodyY:l+o,bodyHeight:s-o,tabHeight:o,tabWidth:"package"===r?Math.min(a,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),Tm=Vt(async(t,e)=>{Jt.info("Creating usecase system boundary for ",e.id,e);const r=ka(),{theme:i,themeVariables:o,handDrawnSeed:a}=r,{clusterBkg:s,clusterBorder:n,borderColorArray:l}=o,{labelStyles:h,nodeStyles:c}=Ih(e),{stylesMap:d}=Eh(e),u=e.boundaryType||"rect",p=t.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${u} ${e.cssClasses}`).attr("id","string"==typeof e.domId?e.domId:e.id).attr("data-boundary-type",u).attr("data-look",e.look);rp(p,e.colorIndex,i,l);const g=To(r),f=p.insert("g").attr("class","cluster-label system-boundary-title"),y=await Gu(f,e.label,{style:h,useHtmlLabels:g,isNode:!0});let m=y.getBBox();if(g){const t=y.children[0],e=Gs(y);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}const C=Sm(e,m),{width:x,height:b,x:k,y:w,bodyY:S,bodyHeight:T,tabHeight:B,tabWidth:v}=C;e.diff=e.width<=m.width+e.padding?(x-e.width)/2-e.padding:-e.padding;const F=Dh(e,{fill:d.get("fill")||s,stroke:d.get("stroke")||n,strokeWidth:d.get("stroke-width")?.replace("px","")||1,seed:a});if("handDrawn"===e.look){const t=og.svg(p),e=t.rectangle(k,S,x,T,F);if(p.insert(()=>e,":first-child").attr("class","boundary-body label-container"),"package"===u){const e=t.rectangle(k,w,v,B,F);p.insert(()=>e,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else p.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",c).attr("x",k).attr("y",S).attr("width",x).attr("height",T),"package"===u&&p.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",c).attr("x",k).attr("y",w).attr("width",v).attr("height",B);const{subGraphTitleTopMargin:L}=hm(r);return"package"===u?f.attr("transform",`translate(${k+(v-m.width)/2}, ${w+(B-m.height)/2})`):f.attr("transform",`translate(${e.x-m.width/2}, ${w+L})`),h&&(f.attr("style",h),f.select("span").attr("style",h)),e.offsetX=0,e.width=x,e.height=b,e.offsetY=m.height-e.padding/2,e.labelBBox=m,e.intersect=function(t){return Cg(e,t)},{cluster:p,labelBBox:m}},"usecaseSystemBoundary"),Bm={rect:ym,squareRect:ym,roundedWithTitle:Cm,noteGroup:mm,divider:bm,kanbanSection:xm,flowGroup:wm,usecaseSystemBoundary:Tm,swimlane:fm},vm=new Set(["noteGroup","divider"]),Fm=Vt(t=>!vm.has(t??"rect"),"clusterPaintsTitle"),Lm=new Map,_m=Vt(async(t,e)=>{const r=e.shape||"rect",i=await Bm[r](t,e);return Lm.set(e.id,i),i},"insertCluster"),Mm=Vt(()=>{Lm=new Map},"clear"),Am=Vt((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";const r=t.x??0,i=t.y??0;return"translate("+-(r+t.width/2)+", "+-(i+t.height/2)+")"},"computeLabelTransform"),Em={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},$m={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Om(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=Im(t),e=Im(e);const[r,i]=[t.x,t.y],[o,a]=[e.x,e.y],s=o-r,n=a-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}Vt(Om,"calculateDeltaAndAngle");var Im=Vt(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),Dm=Vt(t=>({x:Vt(function(e,r,i){let o=0;const a=Im(i[0]).x<Im(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(Em,t.arrowTypeStart)){const{angle:e,deltaX:r}=Om(i[0],i[1]);o=Em[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Em,t.arrowTypeEnd)){const{angle:e,deltaX:r}=Om(i[i.length-1],i[i.length-2]);o=Em[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}const s=Math.abs(Im(e).x-Im(i[i.length-1]).x),n=Math.abs(Im(e).y-Im(i[i.length-1]).y),l=Math.abs(Im(e).x-Im(i[0]).x),h=Math.abs(Im(e).y-Im(i[0]).y),c=Em[t.arrowTypeStart],d=Em[t.arrowTypeEnd];if(s<d&&s>0&&n<d){let t=d+1-s;t*="right"===a?-1:1,o-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="right"===a?-1:1,o+=t}return Im(e).x+o},"x"),y:Vt(function(e,r,i){let o=0;const a=Im(i[0]).y<Im(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(Em,t.arrowTypeStart)){const{angle:e,deltaY:r}=Om(i[0],i[1]);o=Em[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Em,t.arrowTypeEnd)){const{angle:e,deltaY:r}=Om(i[i.length-1],i[i.length-2]);o=Em[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}const s=Math.abs(Im(e).y-Im(i[i.length-1]).y),n=Math.abs(Im(e).x-Im(i[i.length-1]).x),l=Math.abs(Im(e).y-Im(i[0]).y),h=Math.abs(Im(e).x-Im(i[0]).x),c=Em[t.arrowTypeStart],d=Em[t.arrowTypeEnd];if(s<d&&s>0&&n<d){let t=d+1-s;t*="up"===a?-1:1,o-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="up"===a?-1:1,o+=t}return Im(e).y+o},"y")}),"getLineFunctionsWithOffset"),qm=Vt((t,e,r,i,o,a=!1,s)=>{e.arrowTypeStart&&Rm(t,"start",e.arrowTypeStart,r,i,o,a,s),e.arrowTypeEnd&&Rm(t,"end",e.arrowTypeEnd,r,i,o,a,s)},"addEdgeMarkers"),Pm={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},zm=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Rm=Vt((t,e,r,i,o,a,s=!1,n)=>{if(!r||"none"===r)return;const l=Pm[r],h=l&&zm.includes(l.type);if(!l)return void Jt.warn(`Unknown arrow type: ${r}`);const c=`${o}_${a}-${l.type}${"start"===e?"Start":"End"}${s&&h?"-margin":""}`;if(n&&""!==n.trim()){const r=`${c}_${n.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(r)){const t=document.getElementById(c);if(t){const e=t.cloneNode(!0);e.id=r;e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",n),l.fill&&t.setAttribute("fill",n)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${r})`)}else t.attr(`marker-${e}`,`url(${i}#${c})`)},"addEdgeMarker"),Wm=Vt(t=>"string"==typeof t?t:ka()?.flowchart?.curve,"resolveEdgeCurveType"),Nm=new Map,jm=new Map,Hm=Vt(()=>{Nm.clear(),jm.clear()},"clear"),Um=Vt(t=>Boolean(t.label||t.startLabelLeft||t.startLabelRight||t.endLabelLeft||t.endLabelRight),"hasEdgeLabel"),Ym=Vt(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),Vm=Vt(async(t,e)=>{const r=ka();let i=To(r);const{labelStyles:o}=Ih(e);e.labelStyle=o;const a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",e.id),n="markdown"===e.labelType,l=await Gu(t,e.label,{style:Ym(e.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:n,width:void 0},r);let h,c,d;if(s.node().appendChild(l),Jt.info("abc82",e,e.labelType),i){const t=l.children[0],e=Gs(l);h=await $u.measure(()=>t.getBoundingClientRect()),c=h,e.attr("width",h.width),e.attr("height",h.height)}else{const t=Gs(l).select("text").node();await $u.measure(()=>{h=l.getBBox(),c=t&&"function"==typeof t.getBBox?t.getBBox():h})}if(s.attr("transform",Am(c,i)),Nm.set(e.id,a),e.width=h.width,e.height=h.height,e.startLabelLeft){const r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner"),a=await Eg(o,e.startLabelLeft,Ym(e.labelStyle)||"",!1,!1);d=a;let s=a.getBBox();if(i){const t=a.children[0],e=Gs(a);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}o.attr("transform",Am(s,i)),jm.get(e.id)||jm.set(e.id,{}),jm.get(e.id).startLeft=r,Xm(d,e.startLabelLeft,s),Gm(e,"startLeft",s)}if(e.startLabelRight){const r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner"),a=await Eg(o,e.startLabelRight,Ym(e.labelStyle)||"",!1,!1);d=a;let s=a.getBBox();if(i){const t=a.children[0],e=Gs(a);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}o.attr("transform",Am(s,i)),jm.get(e.id)||jm.set(e.id,{}),jm.get(e.id).startRight=r,Xm(d,e.startLabelRight,s),Gm(e,"startRight",s)}if(e.endLabelLeft){const r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner"),a=await Eg(o,e.endLabelLeft,Ym(e.labelStyle)||"",!1,!1);d=a;let s=a.getBBox();if(i){const t=a.children[0],e=Gs(a);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}o.attr("transform",Am(s,i)),jm.get(e.id)||jm.set(e.id,{}),jm.get(e.id).endLeft=r,Xm(d,e.endLabelLeft,s),Gm(e,"endLeft",s)}if(e.endLabelRight){const r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner"),a=await Eg(o,e.endLabelRight,Ym(e.labelStyle)||"",!1,!1);d=a;let s=a.getBBox();if(i){const t=a.children[0],e=Gs(a);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}o.attr("transform",Am(s,i)),jm.get(e.id)||jm.set(e.id,{}),jm.get(e.id).endRight=r,Xm(d,e.endLabelRight,s),Gm(e,"endRight",s)}return l},"insertEdgeLabel");function Gm(t,e,r){t.terminalLabelSizes??={},t.terminalLabelSizes[e]={width:r.width,height:r.height}}function Xm(t,e,r){To(ka())&&t&&(t.style.width=Math.max(9*e.length,r.width)+"px",t.style.height=r.height+"px")}Vt(Gm,"recordTerminalLabelSize"),Vt(Xm,"setTerminalWidth");var Zm=Vt((t,e)=>{let r=t.x,i=t.y;if(e?.updatedPath){const o=Xc.calcLabelPosition(e.updatedPath);if(e.originalPath){const a=Xc.calcLabelPosition(e.originalPath);r=t.x+(o.x-a.x),i=t.y+(o.y-a.y)}else r=o.x,i=o.y}return{x:r,y:i}},"resolveEdgeLabelPosition"),Qm=Vt((t,e)=>{Jt.debug("Moving label abc88 ",t.id,t.label,Nm.get(t.id),e);const r=ka(),{subGraphTitleTotalMargin:i}=hm(r);if(t.label){const r=Nm.get(t.id),{x:o,y:a}=Zm(t,e);Jt.debug("Moving label "+t.label+" from (",t.x,",",t.y,") to (",o,",",a,") abc88"),r.attr("transform",`translate(${o}, ${a+i/2})`)}const o=e.updatedPath?e.updatedPath:e.originalPath;if(t.startLabelLeft){const e=jm.get(t.id).startLeft;let r=t.x,i=t.y;if(o){const e=Xc.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",o);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.startLabelRight){const e=jm.get(t.id).startRight;let r=t.x,i=t.y;if(o){const e=Xc.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",o);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.endLabelLeft){const e=jm.get(t.id).endLeft;let r=t.x,i=t.y;if(o){const e=Xc.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",o);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.endLabelRight){const e=jm.get(t.id).endRight;let r=t.x,i=t.y;if(o){const e=Xc.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",o);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}},"positionEdgeLabel"),Km=Vt((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e))return e;if(2!==e.length)return e;const[r,i]=e,o=Math.abs(i.x-r.x),a=Math.abs(i.y-r.y);return o<.001||a<.001?e:a>=o?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),Jm=Vt((t,e)=>{const r=t.x,i=t.y,o=Math.abs(e.x-r),a=Math.abs(e.y-i),s=t.width/2,n=t.height/2;return o>=s||a>=n},"outsideNode"),tC=Vt((t,e,r)=>{Jt.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,o=t.y,a=Math.abs(i-r.x),s=t.width/2;let n=r.x<e.x?s-a:s+a;const l=t.height/2,h=Math.abs(e.y-r.y),c=Math.abs(e.x-r.x);if(Math.abs(o-e.y)*s>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-o:o-l-e.y;n=c*t/h;const i={x:r.x<e.x?r.x+n:r.x-c+n,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===n&&(i.x=e.x,i.y=e.y),0===c&&(i.x=e.x),0===h&&(i.y=e.y),Jt.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${c}, r ${n}`,i),i}{n=r.x<e.x?e.x-s-i:i-s-e.x;let t=h*n/c,o=r.x<e.x?r.x+c-n:r.x-c+n,a=r.y<e.y?r.y+t:r.y-t;return Jt.debug(`sides calc abc89, Q ${h}, q ${t}, R ${c}, r ${n}`,{_x:o,_y:a}),0===n&&(o=e.x,a=e.y),0===c&&(o=e.x),0===h&&(a=e.y),{x:o,y:a}}},"intersection"),eC=Vt((t,e)=>{Jt.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],o=!1;return t.forEach(t=>{if(Jt.info("abc88 checking point",t,e),Jm(e,t)||o)Jt.warn("abc88 outside",t,i),i=t,o||r.push(t);else{const a=tC(e,i,t);Jt.debug("abc88 inside",t,i,a),Jt.debug("abc88 intersection",a,e);let s=!1;r.forEach(t=>{s=s||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?Jt.warn("abc88 no intersect",a,r):r.push(a),o=!0}}),Jt.debug("returning points",r),r},"cutPathAtIntersect");function rC(t){const e=[],r=[];for(let i=1;i<t.length-1;i++){const o=t[i-1],a=t[i],s=t[i+1];(o.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-o.y)>5||o.y===a.y&&a.x===s.x&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}Vt(rC,"extractCornerPoints");var iC=Vt(function(t,e,r){const i=e.x-t.x,o=e.y-t.y,a=r/Math.sqrt(i*i+o*o);return{x:e.x-a*i,y:e.y-a*o}},"findAdjacentPoint"),oC=Vt(function(t){const{cornerPointPositions:e}=rC(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){const e=t[i-1],o=t[i+1],a=t[i],s=iC(e,a,5),n=iC(o,a,5),l=n.x-s.x,h=n.y-s.y;r.push(s);const c=2*Math.sqrt(2);let d={x:a.x,y:a.y};if(Math.abs(o.x-e.x)>10&&Math.abs(o.y-e.y)>=10){Jt.debug("Corner point fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y));const t=5;d=a.x===s.x?{x:l<0?s.x-t+c:s.x+t-c,y:h<0?s.y-c:s.y+c}:{x:l<0?s.x-c:s.x+c,y:h<0?s.y-t+c:s.y+t-c}}else Jt.debug("Corner point skipping fixing",Math.abs(o.x-e.x),Math.abs(o.y-e.y));r.push(d,n)}else r.push(t[i]);return r},"fixCorners"),aC=Vt((t,e,r)=>{const i=t-e-r,o=Math.floor(i/4),a=Number.isFinite(o)?Math.max(0,o):0;return`0 ${e} ${Array(a).fill("2 2").join(" ")} ${r}`},"generateDashArray"),sC=Vt(function(t,e,r,i,o,a,s,p=!1,m=void 0){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:C,layout:k}=ka(),w=m??k;let S=e.points,T=!1;const B=o;var v=a;const F=[];for(const t in e.cssCompiledStyles)Oh(t)||F.push(e.cssCompiledStyles[t]);if("swimlane"===w){if(!p&&v.intersect&&B.intersect&&Array.isArray(S)&&S.length>=2)if(2===S.length)S=[B.intersect(S[0]),v.intersect(S[1])];else{const t=S.slice(1,-1),e=t[0],r=t[t.length-1],i=.5,o=Math.abs(S[S.length-1].x-r.x)<i&&Math.abs(S[S.length-1].y-r.y)<i,a=B.intersect(e),s=o?r:v.intersect(r),n=Math.abs(s.x-r.x)<i&&Math.abs(s.y-r.y)<i?[]:[s];S=[...Math.abs(a.x-e.x)<i&&Math.abs(a.y-e.y)<i?[]:[a],...t,...n]}S=Km(e,S)}else v.intersect&&B.intersect&&!p&&(S=S.slice(1,e.points.length-1),S.unshift(B.intersect(S[0])),S.push(v.intersect(S[S.length-1])));const L=btoa(JSON.stringify(S));e.toCluster&&(Jt.info("to cluster abc88",r.get(e.toCluster)),S=eC(e.points,r.get(e.toCluster).node),T=!0),e.fromCluster&&(Jt.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(S,null,2)),S=eC(S.reverse(),r.get(e.fromCluster).node).reverse(),T=!0);let _=S.filter(t=>!Number.isNaN(t.y));const M=Wm(e.curve);"rounded"!==M&&(_=oC(_));let A=g;switch(M){case"linear":case"rounded":A=g;break;case"basis":default:A=x;break;case"cardinal":A=vt;break;case"bumpX":A=y;break;case"bumpY":A=f;break;case"catmullRom":A=$t;break;case"monotoneX":A=u;break;case"monotoneY":A=d;break;case"natural":A=c;break;case"step":A=h;break;case"stepAfter":A=l;break;case"stepBefore":A=n}const{x:E,y:$}=Dm(e),O=b().x(E).y($).curve(A);let I,D;switch(e.thickness){case"normal":default:I="edge-thickness-normal";break;case"thick":I="edge-thickness-thick";break;case"invisible":I="edge-thickness-invisible"}switch(e.pattern){case"solid":default:I+=" edge-pattern-solid";break;case"dotted":I+=" edge-pattern-dotted";break;case"dashed":I+=" edge-pattern-dashed"}let q="rounded"===M?nC(hC(_,e),5):O(_);const P=Array.isArray(e.style)?e.style:[e.style];let z=P.find(t=>t?.startsWith("stroke:")),R="";e.animate&&(R="edge-animation-fast"),e.animation&&(R="edge-animation-"+e.animation);let W=!1;if("handDrawn"===e.look){const r=og.svg(t);Object.assign([],_);I+=" transition",D=Gs(r.path(q,{roughness:.3,seed:C})).select("path").attr("id",`${s}-${e.id}`).attr("class"," "+I+(e.classes?" "+e.classes:"")+(R?" "+R:"")).attr("style",P?P.reduce((t,e)=>t+";"+e,""):"");let i=D.attr("d");D.attr("d",i),t.node().appendChild(D.node())}else{const r=F.join(";"),i=P?P.reduce((t,e)=>t+e+";",""):"",o=(r?r+";"+i+";":i)+";"+(P?P.reduce((t,e)=>t+";"+e,""):"");D=t.append("path").attr("d",q).attr("id",`${s}-${e.id}`).attr("class"," "+I+(e.classes?" "+e.classes:"")+(R?" "+R:"")).attr("style",o),z=o.match(/stroke:([^;]+)/)?.[1],W=!0===e.animate||!!e.animation||r.includes("animation");const a=D.node(),n="function"==typeof a.getTotalLength?a.getTotalLength():0,l=$m[e.arrowTypeStart]||0,h=$m[e.arrowTypeEnd]||0;if("neo"===e.look&&!W){const t=`stroke-dasharray: ${"dotted"===e.pattern||"dashed"===e.pattern?aC(n,l,h):`0 ${l} ${n-l-h} ${h}`}; stroke-dashoffset: 0;`;D.attr("style",t+D.attr("style"))}}D.attr("data-edge",!0),D.attr("data-et","edge"),D.attr("data-id",e.id),D.attr("data-points",L),D.attr("data-look",Jc(e.look)),e.showPoints&&_.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let N="";(ka().flowchart.arrowMarkerAbsolute||ka().state.arrowMarkerAbsolute)&&(N=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,N=N.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Jt.info("arrowTypeStart",e.arrowTypeStart),Jt.info("arrowTypeEnd",e.arrowTypeEnd);qm(D,e,N,s,i,!W&&"neo"===e?.look,z);const j=S[Math.floor(S.length/2)];Xc.isLabelCoordinateInPath(j,D.attr("d"))||(T=!0);let H={};return T&&(H.updatedPath=S),H.originalPath=e.points,H},"insertEdge");function nC(t,e){if(t.length<2)return"";let r="";const i=t.length,o=1e-5;for(let a=0;a<i;a++){const s=t[a],n=t[a-1],l=t[a+1];if(0===a)r+=`M${s.x},${s.y}`;else if(a===i-1)r+=`L${s.x},${s.y}`;else{const t=s.x-n.x,i=s.y-n.y,a=l.x-s.x,h=l.y-s.y,c=Math.hypot(t,i),d=Math.hypot(a,h);if(c<o||d<o){r+=`L${s.x},${s.y}`;continue}const u=t/c,p=i/c,g=a/d,f=h/d,y=u*g+p*f,m=Math.max(-1,Math.min(1,y)),C=Math.acos(m);if(C<o||Math.abs(Math.PI-C)<o){r+=`L${s.x},${s.y}`;continue}const x=Math.min(e/Math.sin(C/2),c/2,d/2),b=s.x-u*x,k=s.y-p*x,w=s.x+g*x,S=s.y+f*x;r+=`L${b},${k}`,r+=`Q${s.x},${s.y} ${w},${S}`}}return r}function lC(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}}function hC(t,e){const r=t.map(t=>({...t}));if(t.length>=2&&Em[e.arrowTypeStart]){const i=Em[e.arrowTypeStart],o=t[0],a=t[1],{angle:s}=lC(o,a),n=i*Math.cos(s),l=i*Math.sin(s);r[0].x=o.x+n,r[0].y=o.y+l}const i=t.length;if(i>=2&&Em[e.arrowTypeEnd]){const o=Em[e.arrowTypeEnd],a=t[i-1],s=t[i-2],{angle:n}=lC(s,a),l=o*Math.cos(n),h=o*Math.sin(n);r[i-1].x=a.x-l,r[i-1].y=a.y-h}return r}Vt(nC,"generateRoundedPath"),Vt(lC,"calculateDeltaAndAngle"),Vt(hC,"applyMarkerOffsetsToPoints");var cC=Vt((t,e,r,i)=>{e.forEach(e=>{OC[e](t,r,i)})},"insertMarkers"),dC=Vt((t,e,r)=>{Jt.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",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),uC=Vt((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),pC=Vt((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),gC=Vt((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),fC=Vt((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").attr("markerUnits","userSpaceOnUse").append("circle").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").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),yC=Vt((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"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),mC=Vt((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"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),CC=Vt((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"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),xC=Vt((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"),bC=Vt((t,e,r)=>{const i=fo(),{themeVariables:o}=i,{transitionColor:a}=o;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),kC=Vt((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"),wC=Vt((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 o=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");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),SC=Vt((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"),TC=Vt((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 o=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");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),BC=Vt((t,e,r)=>{const i=fo(),{themeVariables:o}=i,{strokeWidth:a}=o;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),vC=Vt((t,e,r)=>{const i=fo(),{themeVariables:o}=i,{strokeWidth:a,mainBkg:s}=o,n=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").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),n.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const l=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("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),FC=Vt((t,e,r)=>{const i=fo(),{themeVariables:o}=i,{strokeWidth:a}=o;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),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("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),LC=Vt((t,e,r)=>{const i=fo(),{themeVariables:o}=i,{strokeWidth:a,mainBkg:s}=o,n=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("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const l=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").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),_C=Vt((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\n L20,10\n M20,10\n L0,20")},"requirement_arrow"),MC=Vt((t,e,r)=>{const i=fo(),{themeVariables:o}=i,{strokeWidth:a}=o;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").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin","miter")},"requirement_arrow_neo"),AC=Vt((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"),EC=Vt((t,e,r)=>{const i=fo(),{themeVariables:o}=i,{strokeWidth:a}=o,s=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").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),$C=Vt((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),t.append("marker").attr("id",r+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),OC={extension:dC,composition:uC,aggregation:pC,dependency:gC,lollipop:fC,point:yC,circle:mC,cross:CC,barb:xC,barbNeo:bC,hierarchy:$C,only_one:kC,zero_or_one:wC,one_or_more:SC,zero_or_more:TC,only_one_neo:BC,zero_or_one_neo:vC,one_or_more_neo:FC,zero_or_more_neo:LC,requirement_arrow:_C,requirement_contains:AC,requirement_arrow_neo:MC,requirement_contains_neo:EC},IC=cC,DC={common:Qo,getConfig:fo,insertCluster:_m,insertEdge:sC,insertEdgeLabel:Vm,insertMarkers:IC,insertNode:dm,interpolateToCurve:xc,labelHelper:hg,log:Jt,positionEdgeLabel:Qm},qC=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],PC=Object.create(null),zC=Vt(t=>{for(const e of t)PC[e.name]=e},"registerLayoutLoaders"),RC=Vt(()=>{const t=Vt(async()=>await(import("./elk-QONTBCTQ-Jkx0FK2o.js")),"loader");return[{name:"elk",loader:t,algorithm:"elk.layered"},...qC.map(e=>({name:e,loader:t,algorithm:e}))]},"elkLayoutLoaders");Vt(()=>{zC([{name:"dagre",loader:Vt(async()=>await(import("./dagre-NK4GIZVX-B5sHdjHr.js")),"loader")},{name:"swimlane",loader:Vt(async()=>await(import("./swimlanes-B3ENRKFQ-YbCv2QO2.js")),"loader")},{name:"cose-bilkent",loader:Vt(async()=>await(import("./cose-bilkent-JH36ORCC-BBL1Y3YR.js")),"loader")},...RC()])},"registerDefaultLayoutLoaders")();var WC=Vt(async(t,e)=>{if(!Object.hasOwn(PC,t.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const e of t.nodes){const r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}const r=PC[t.layoutAlgorithm],i=await r.loader();return _h(e,t.config),i.render(t,e,DC,{algorithm:r.algorithm})},"render"),NC="dagre",jC=Vt((t="",{fallback:e=NC}={})=>{if(Object.hasOwn(PC,t))return t;for(const r of[e,NC])if(Object.hasOwn(PC,r))return Jt.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${t}, ${e}, nor ${NC} is registered.`)},"getRegisteredLayoutAlgorithm"),HC="comm",UC="rule",YC="decl",VC="@keyframes",GC="@layer",XC=Math.abs,ZC=String.fromCharCode;function QC(t){return t.trim()}function KC(t,e,r){return t.replace(e,r)}function JC(t,e,r){return t.indexOf(e,r)}function tx(t,e){return 0|t.charCodeAt(e)}function ex(t,e,r){return t.slice(e,r)}function rx(t){return t.length}function ix(t){return t.length}function ox(t,e){return e.push(t),t}var ax=1,sx=1,nx=0,lx=0,hx=0,cx="";function dx(t,e,r,i,o,a,s,n){return{value:t,root:e,parent:r,type:i,props:o,children:a,line:ax,column:sx,length:s,return:"",siblings:n}}function ux(){return hx=lx>0?tx(cx,--lx):0,sx--,10===hx&&(sx=1,ax--),hx}function px(){return hx=lx<nx?tx(cx,lx++):0,sx++,10===hx&&(sx=1,ax++),hx}function gx(){return tx(cx,lx)}function fx(){return lx}function yx(t,e){return ex(cx,t,e)}function mx(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 Cx(t){return QC(yx(lx-1,kx(91===t?t+2:40===t?t+1:t)))}function xx(t){for(;(hx=gx())&&hx<33;)px();return mx(t)>2||mx(hx)>3?"":" "}function bx(t,e){for(;--e&&px()&&!(hx<48||hx>102||hx>57&&hx<65||hx>70&&hx<97););return yx(t,fx()+(e<6&&32==gx()&&32==px()))}function kx(t){for(;px();)switch(hx){case t:return lx;case 34:case 39:34!==t&&39!==t&&kx(hx);break;case 40:41===t&&kx(t);break;case 92:px()}return lx}function wx(t,e){for(;px()&&t+hx!==57&&(t+hx!==84||47!==gx()););return"/*"+yx(e,lx-1)+"*"+ZC(47===t?t:px())}function Sx(t){for(;!mx(gx());)px();return yx(t,lx)}function Tx(t){return function(t){return cx="",t}(Bx("",null,null,null,[""],t=function(t){return ax=sx=1,nx=rx(cx=t),lx=0,[]}(t),0,[0],t))}function Bx(t,e,r,i,o,a,s,n,l){for(var h=0,c=0,d=s,u=0,p=0,g=0,f=1,y=1,m=1,C=0,x="",b=o,k=a,w=i,S=x;y;)switch(g=C,C=px()){case 40:if(108!=g&&58==tx(S,d-1)){-1!=JC(S+=KC(Cx(C),"&","&\f"),"&\f",XC(h?n[h-1]:0))&&(m=-1);break}case 34:case 39:case 91:S+=Cx(C);break;case 9:case 10:case 13:case 32:S+=xx(g);break;case 92:S+=bx(fx()-1,7);continue;case 47:switch(gx()){case 42:case 47:ox(Fx(wx(px(),fx()),e,r,l),l),5!=mx(g||1)&&5!=mx(gx()||1)||!rx(S)||" "===ex(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*f:n[h++]=rx(S)*m;case 125*f:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+c:-1==m&&(S=KC(S,/\f/g,"")),p>0&&(rx(S)-d||0===f&&47===g)&&ox(p>32?Lx(S+";",i,r,d-1,l):Lx(KC(S," ","")+";",i,r,d-2,l),l);break;case 59:S+=";";default:if(ox(w=vx(S,e,r,h,c,o,n,x,b=[],k=[],d,a),a),123===C)if(0===c)Bx(S,e,w,w,b,a,d,n,k);else{switch(u){case 99:if(110===tx(S,3))break;case 108:if(97===tx(S,2))break;default:c=0;case 100:case 109:case 115:}c?Bx(t,w,w,i&&ox(vx(t,w,w,0,0,o,n,x,o,b=[],d,k),k),o,k,d,n,i?b:k):Bx(S,w,w,w,[""],k,0,n,k)}}h=c=p=0,f=m=1,x=S="",d=s;break;case 58:d=1+rx(S),p=g;default:if(f<1)if(123==C)--f;else if(125==C&&0==f++&&125==ux())continue;switch(S+=ZC(C),C*f){case 38:m=c>0?1:(S+="\f",-1);break;case 44:n[h++]=(rx(S)-1)*m,m=1;break;case 64:45===gx()&&(S+=Cx(px())),u=gx(),c=d=rx(x=S+=Sx(fx())),C++;break;case 45:45===g&&2==rx(S)&&(f=0)}}return a}function vx(t,e,r,i,o,a,s,n,l,h,c,d){for(var u=o-1,p=0===o?a:[""],g=ix(p),f=0,y=0,m=0;f<i;++f)for(var C=0,x=ex(t,u+1,u=XC(y=s[f])),b=t;C<g;++C)(b=QC(y>0?p[C]+" "+x:KC(x,/&\f/g,p[C])))&&(l[m++]=b);return dx(t,e,r,0===o?UC:n,l,h,c,d)}function Fx(t,e,r,i){return dx(t,e,r,HC,ZC(hx),ex(t,2,-2),0,i)}function Lx(t,e,r,i,o){return dx(t,e,r,YC,ex(t,0,i),ex(t,i+1,-1),i,o)}function _x(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function Mx(t,e,r,i){switch(t.type){case GC:if(t.children.length)break;case"@import":case"@namespace":case YC:return t.return=t.return||t.value;case HC:return"";case VC:return t.return=t.value+"{"+_x(t.children,i)+"}";case UC:if(!rx(t.value=t.props.join(",")))return""}return rx(r=_x(t.children,i))?t.return=t.value+"{"+r+"}":""}var Ax,Ex={id:"c4",detector:Vt(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./c4Diagram-XDPPPE54-DfOddOsg.js"));return{id:"c4",diagram:t}},"loader")},$x="flowchart-v2",Ox={id:$x,detector:Vt(t=>/^\s*(graph|flowchart)/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./flowDiagram-IUGLLWBU-DDMbhdom.js"));return{id:$x,diagram:t}},"loader")},Ix="agentflow",Dx={id:Ix,detector:Vt(t=>/^\s*agentflow-beta\b/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./diagram-TYUNFSNR-CcvVCW9_.js"));return{id:Ix,diagram:t}},"loader")},qx="swimlane",Px={id:qx,detector:Vt(t=>/^\s*swimlane-beta\b/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./swimlanesDiagram-AYQRV4AK-CuclTt9Y.js"));return{id:qx,diagram:t}},"loader")},zx={id:"er",detector:Vt(t=>/^\s*erDiagram/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./erDiagram-KYQIGQAA-BF9vCEaf.js"));return{id:"er",diagram:t}},"loader")},Rx="gitGraph",Wx={id:Rx,detector:Vt(t=>/^\s*gitGraph/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./gitGraphDiagram-PDYL7XHY-D_f2t3KD.js"));return{id:Rx,diagram:t}},"loader")},Nx="gantt",jx={id:Nx,detector:Vt(t=>/^\s*gantt/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./ganttDiagram-R7GPNTJY-CQC15o39.js"));return{id:Nx,diagram:t}},"loader")},Hx="info",Ux={id:Hx,detector:Vt(t=>/^\s*info/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./infoDiagram-MVDRKAX5-04QJzIoW.js"));return{id:Hx,diagram:t}},"loader")},Yx={id:"pie",detector:Vt(t=>/^\s*pie/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./pieDiagram-GNMPY74T-CTjQZ9yP.js"));return{id:"pie",diagram:t}},"loader")},Vx="quadrantChart",Gx={id:Vx,detector:Vt(t=>/^\s*quadrantChart/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./quadrantDiagram-D57K4MC3-JTRqBH1z.js"));return{id:Vx,diagram:t}},"loader")},Xx="xychart",Zx={id:Xx,detector:Vt(t=>/^\s*xychart(-beta)?/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./xychartDiagram-4URNHDU4-CU8TcG1V.js"));return{id:Xx,diagram:t}},"loader")},Qx="requirement",Kx={id:Qx,detector:Vt(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./requirementDiagram-EQYSW5RA-CR7SUMC-.js"));return{id:Qx,diagram:t}},"loader")},Jx="sequence",tb={id:Jx,detector:Vt(t=>/^\s*sequenceDiagram/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./sequenceDiagram-BLEHNHQU-CvZHKbjd.js"));return{id:Jx,diagram:t}},"loader")},eb="classDiagram",rb={id:eb,detector:Vt(t=>/^\s*classDiagram/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./classDiagram-v2-4MYWR3UA-BBYOuONr.js"));return{id:eb,diagram:t}},"loader")},ib="stateDiagram",ob={id:ib,detector:Vt(t=>/^\s*stateDiagram/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./stateDiagram-v2-A6IESKWZ-DxF8GOQW.js"));return{id:ib,diagram:t}},"loader")},ab="journey",sb={id:ab,detector:Vt(t=>/^\s*journey/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./journeyDiagram-BOSHW7O7-BJFwx5Hu.js"));return{id:ab,diagram:t}},"loader")},nb=Vt(t=>{const e=[];for(const r of t.split(/\s+/)){let t=[...r];for(;t.length>75;)e.push(t.slice(0,75).join("")),t=t.slice(75);t.length>0&&e.push(t.join(""))}const r=[];let i="";for(const t of e){const e=i?`${i} ${t}`:t;[...e].length>75?(r.push(i),i=t):i=e}if(i&&r.push(i),r.length>4){r.length=4;const t=r[3]??"";r[3]=`${[...t].slice(0,72).join("")}...`}return r},"wrapErrorMessage"),lb=Vt((t,e,r,i)=>{Jt.debug("rendering svg for syntax error\n");const o=Un(e),a=o.append("g"),s=nb(i?.db.getErrorMessage?.()??""),n=s.length>0?500+56*s.length:512;o.attr("viewBox",`0 0 2412 ${n}`),ta(o,100,n,!0),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((t,e)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+56*e).attr("font-size","42px").style("text-anchor","middle").text(t)})},"draw"),hb={draw:lb},cb=hb,db={db:{clear(){Ax=void 0},setErrorMessage(t){Ax=t},getErrorMessage:()=>Ax},renderer:hb,parser:{parse:Vt(()=>{},"parse")}},ub="flowchart-elk",pb=Vt((t,e={})=>!!/^\s*flowchart-elk/.test(t)&&(e.layout="elk",!0),"detector"),gb={id:ub,detector:pb,loader:Vt(async()=>{const{diagram:t}=await(import("./flowDiagram-IUGLLWBU-DDMbhdom.js"));return{id:ub,diagram:t}},"loader")},fb="timeline",yb={id:fb,detector:Vt(t=>/^\s*timeline/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./timeline-definition-JXYKGLGB-C1x6bOWf.js"));return{id:fb,diagram:t}},"loader")},mb="mindmap",Cb={id:mb,detector:Vt(t=>/^\s*mindmap/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./mindmap-definition-6OY57UG3-DnT4Ihuj.js"));return{id:mb,diagram:t}},"loader")},xb="kanban",bb={id:xb,detector:Vt(t=>/^\s*kanban/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./kanban-definition-FNSA4HC5-MrsniETV.js"));return{id:xb,diagram:t}},"loader")},kb="sankey",wb={id:kb,detector:Vt(t=>/^\s*sankey(-beta)?/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./sankeyDiagram-SY24JHO5-DbxpJ7pE.js"));return{id:kb,diagram:t}},"loader")},Sb="packet",Tb={id:Sb,detector:Vt(t=>/^\s*packet(-beta)?/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./diagram-I5XIIV2D-BqonTetl.js"));return{id:Sb,diagram:t}},"loader")},Bb="radar",vb={id:Bb,detector:Vt(t=>/^\s*radar-beta/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./diagram-RJA3I4VV-Dj3xghQ1.js"));return{id:Bb,diagram:t}},"loader")},Fb="block",Lb={id:Fb,detector:Vt(t=>/^\s*block(-beta)?/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./blockDiagram-RJAE7QA3-CVAxF28b.js"));return{id:Fb,diagram:t}},"loader")},_b="treeView",Mb={id:_b,detector:Vt(t=>/^\s*treeView-beta/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./diagram-ODIL2UCW-CriVrDQT.js"));return{id:_b,diagram:t}},"loader")},Ab="architecture",Eb={id:Ab,detector:Vt(t=>/^\s*architecture/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./architectureDiagram-ZHVYKT53-D8Cc0szw.js"));return{id:Ab,diagram:t}},"loader")},$b="eventmodeling",Ob={id:$b,detector:Vt(t=>/^\s*eventmodeling/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./diagram-PFBEJUXE-B03iAEwx.js"));return{id:$b,diagram:t}},"loader")},Ib="ishikawa",Db={id:Ib,detector:Vt(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./ishikawaDiagram-HPEHV2GE-4pDsX60A.js"));return{id:Ib,diagram:t}},"loader")},qb="venn",Pb={id:qb,detector:Vt(t=>/^\s*venn-beta/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./vennDiagram-Q3Y3IDCW-B0EVPCrz.js"));return{id:qb,diagram:t}},"loader")},zb="treemap",Rb={id:zb,detector:Vt(t=>/^\s*treemap/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./diagram-CBK3MWTC-Dcv51W2u.js"));return{id:zb,diagram:t}},"loader")},Wb="usecase",Nb={id:Wb,detector:Vt(t=>/^\s*usecase-beta(?:\s|$)/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./usecaseDiagram-WPOLBNNX-QdEejhhn.js"));return{id:Wb,diagram:t}},"loader")},jb="wardley",Hb=Vt(t=>/^\s*wardley-beta/i.test(t),"detector"),Ub={id:jb,detector:Hb,loader:Vt(async()=>{const{diagram:t}=await(import("./wardleyDiagram-IVAIDKWA-Dlo4JFKg.js"));return{id:jb,diagram:t}},"loader")},Yb="cynefin",Vb={id:Yb,detector:Vt(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./cynefinDiagram-WF24UDRP-B6GLAQp-.js"));return{id:Yb,diagram:t}},"loader")},Gb="railroad",Xb={id:Gb,detector:Vt(t=>/^\s*railroad-beta/i.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./railroadDiagram-Y72NRBL7-DtAwxQ6F.js"));return{id:Gb,diagram:t}},"loader")},Zb="railroadEbnf",Qb={id:Zb,detector:Vt(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./ebnfDiagram-V4P3TTPT-BXu5Kifr.js"));return{id:Zb,diagram:t}},"loader")},Kb="railroadAbnf",Jb={id:Kb,detector:Vt(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./abnfDiagram-WEYOIA3C-DEKNEQ23.js"));return{id:Kb,diagram:t}},"loader")},tk="railroadPeg",ek={id:tk,detector:Vt(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),loader:Vt(async()=>{const{diagram:t}=await(import("./pegDiagram-ECIUJNBX-C3s5Vuxq.js"));return{id:tk,diagram:t}},"loader")},rk=!1,ik=Vt(()=>{rk||(rk=!0,La("error",db,t=>"error"===t.toLowerCase().trim()),La("---",{db:{clear:Vt(()=>{},"clear")},styles:{},renderer:{draw:Vt(()=>{},"draw")},parser:{parse:Vt(()=>{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:Vt(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),ni(gb,Cb,Eb),ni(Dx,Ex,bb,rb,zx,jx,Ux,Yx,Kx,tb,Px,Ox,yb,Wx,ob,sb,Gx,wb,Tb,Zx,Lb,Ob,Mb,vb,Db,Rb,Xb,Qb,Jb,ek,Pb,Ub,Vb,Nb))},"addDiagrams"),ok=Vt(async()=>{Jt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ai).map(async([t,{detector:e,loader:r}])=>{if(r)try{_a(t)}catch{try{const{diagram:t,id:i}=await r();La(i,t,e)}catch(e){throw Jt.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete ai[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){Jt.error(`Failed to load ${t.length} external diagrams`);for(const e of t)Jt.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function ak(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function sk(t,e,r,i){if(void 0!==t.insert){if(r){const e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}Vt(ak,"setA11yDiagramInfo"),Vt(sk,"addSVGa11yTitleDescription");var nk=class t{constructor(t,e,r,i,o){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=o}static{Vt(this,"Diagram")}static async fromText(e,r={}){const i="string"==typeof e?{cleaned:e}:e,o=fo(),a=si(i.cleaned,o);try{_a(a)}catch{const t=hi(a);if(!t)throw new oi(`Diagram ${a} not found.`);const{id:e,diagram:r}=await t();La(e,r)}const{db:s,parser:n,renderer:l,init:h}=_a(a);n.parser&&(n.parser.yy=s),s.clear?.(),h?.(o),r.title&&s.setDiagramTitle?.(r.title);let c=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const t=o.maxTextSize??ji.maxTextSize;i.withComments.length>t?Jt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${t}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):c=i.withComments}const d=Zc(c)+"\n";return i.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await n.parse(d),new t(a,d,s,n,l)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},lk=[],hk=Vt(()=>{lk.forEach(t=>{t()}),lk=[]},"attachFunctions"),ck=Vt(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function dk(t){const e=ii(t);if(!e)return{text:t,metadata:{}};const r=e.indent,i=r?e.body.split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e.body;let o=kh(i,{schema:Ch})??{};o="object"!=typeof o||Array.isArray(o)?{}:o;const a={};return o.displayMode&&(a.displayMode=o.displayMode.toString()),o.title&&(a.title=o.title.toString()),o.config&&(a.config=o.config),{text:t.slice(e.length),metadata:a}}Vt(dk,"extractFrontMatter");var uk=Vt(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),pk=Vt(t=>{const{text:e,metadata:r}=dk(t),{displayMode:i,title:o,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:o,config:a,text:e}},"processFrontmatter"),gk=Vt(t=>{const e=Xc.detectInit(t)??{},r=Xc.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):"wrap"===r?.type&&(e.wrap=!0),{text:mc(t),directive:e}},"processDirectives");function fk(t){const e=t,r=uk(t),i=pk(r),o=gk(i.text),a=Gc(i.config,o.directive),s=o.text;return{code:{raw:e,cleaned:ck(s),withComments:s,frontmatterLineOffset:r.length>i.text.length?(r.substring(0,r.length-i.text.length).match(/\n/g)??[]).length:0},title:i.title,config:a}}function yk(t){const e=(new TextEncoder).encode(t),r=Array.from(e,t=>String.fromCodePoint(t)).join("");return btoa(r)}Vt(fk,"preprocessDiagram"),Vt(yk,"toBase64");var mk=["foreignobject"],Ck=["dominant-baseline"];function xk(t){const e=fk(t);let r;Co();try{r=si(e.code.cleaned,fo())}catch{r=void 0}return lo(r),mo(e.config??{}),e}async function bk(t,e){ik();try{const{code:e,config:r}=xk(t);return{diagramType:(await nk.fromText(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}finally{lo(void 0)}}Vt(xk,"processAndSetConfigs"),Vt(bk,"parse");var kk=Vt((t,e,r=[])=>`.${t} ${e} ${Xi(`{ ${r.join(" !important; ")} !important; }`)}`,"cssImportantStyles"),wk=Vt((t,e=new Map)=>{const r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){const i=To(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{lt(t.styles)||i.forEach(e=>{r.insertRule(kk(t.id,e,t.styles),r.cssRules.length)}),lt(t.textStyles)||r.insertRule(kk(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let i="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){const e=new CSSStyleSheet;e.replaceSync(t.themeCSS),i=ia(e)+"\n"}else i+=`${t.themeCSS}\n`;return i+ia(r)},"createCssStyles"),Sk=Vt((t,e)=>_x(Tx(`${t}{${e}}`),function(t){var e=ix(t);return function(r,i,o,a){for(var s="",n=0;n<e;n++)s+=t[n](r,i,o,a)||"";return s}}([Vt(function(e,r,i,o){if("rule"===e.type&&Array.isArray(e.props)){if(e.parent&&e.parent.type===VC)return;e.props=e.props.map(r=>{if(r===t&&Array.isArray(e.children)&&e.children.every(t=>{if("decl"!==t.type)return!1;return new Set(["font-family","font-size","fill"]).has(t.props)}))return r;return(r.startsWith(`${t} `)||r.startsWith(`${t}>`))&&!r.startsWith(`${t} ||`)?r:`${t} ${r}`})}else if(e.type.startsWith("@")){[...["@media","@supports",GC,"@scope","@container","@starting-style"],VC].includes(e.type)||(Jt.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=HC)}},"addNamespace"),Mx])),"compileCSS"),Tk=Vt((t,e,r,i)=>{const o=wk(t,r),a=sa(e,o,{...t.themeVariables,theme:t.theme,look:t.look},i);return Sk(i,a)},"createUserStyles"),Bk=Vt((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Qc(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),vk=Vt((t="",e)=>`<iframe style="width:100%;height:${e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${yk(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`,"putIntoIFrame"),Fk=Vt((t,e,r,i,o)=>{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","http://www.w3.org/2000/svg");return o&&s.attr("xmlns:xlink",o),s.append("g"),t},"appendDivSvgG");function Lk(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}Vt(Lk,"sandboxedIframe");var _k=Vt((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),Mk=Vt(async function(t,e,r){ik();const i=xk(e);let o=i.code;e=o.cleaned;const a=fo();Jt.debug(a),e.length>(a?.maxTextSize??5e4)&&(o={raw:e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",cleaned:e});const s=`#${t}`,n="i"+t,l="#"+n,h="d"+t,c="#"+h,d=Vt(()=>{const t=Gs(p?l:c).node();t&&"remove"in t&&t.remove()},"removeTempElements");let u=Gs(document.body);const p="sandbox"===a.securityLevel,g="loose"===a.securityLevel,f=a.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),p){const t=Lk(Gs(r),n);u=Gs(t.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Gs(r);Fk(u,t,h,`font-family: ${f}`,"http://www.w3.org/1999/xlink")}else{if(_k(document,t,h,n),p){const t=Lk(Gs(document.body),n);u=Gs(t.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Gs("body");Fk(u,t,h)}let y,m;try{y=await nk.fromText(o,{title:i.title})}catch(t){if(a.suppressErrorRendering)throw d(),t;y=await nk.fromText("error"),m=t,y.db.setErrorMessage?.(Uc(t))}const C=u.select(c).node(),x=y.type,b=C.firstChild,k=b.firstChild,w=y.renderer.getClasses?.(e,y),S=Tk(a,x,w,s),T=document.createElement("style");T.innerHTML=S,b.insertBefore(T,k);try{await y.renderer.draw(e,t,"12.2.0",y)}catch(r){throw a.suppressErrorRendering?d():cb.draw(e,t,"12.2.0"),r}const B=u.select(`${c} svg`),v=y.db.getAccTitle?.(),F=y.db.getAccDescription?.();Ok(x,B,v,F);const L=Vt(()=>{u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let e=u.select(c).node().innerHTML;if(Jt.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),e=Bk(e,p,eo(a.arrowMarkerAbsolute)),p){const t=u.select(c+" svg").node();e=vk(e,t)}else g||(e=Qr.sanitize(e,{ADD_TAGS:mk,ADD_ATTR:Ck,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return hk(),e},"serializeSvg")();if(m)throw m;return d(),{diagramType:x,svg:L,bindFunctions:y.db.bindFunctions}},"renderDiagram"),Ak=Vt(async function(t,e,r){try{return await Mk(t,e,r)}finally{lo(void 0)}},"render");function Ek(t={}){const e=di({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),co(e);const r=Zi.theme;e?.theme&&Object.hasOwn(Pi,e.theme)?e.themeVariables=Pi[e.theme].getThemeVariables(e.themeVariables):e&&(null!=e.theme&&"null"!==e.theme&&(e.theme=r),e.themeVariables=Pi[r].getThemeVariables(e.themeVariables));const i="object"==typeof e?ho(e):po();te(i.logLevel),ik()}Vt(Ek,"initialize");var $k=Vt((t,e={})=>{const{code:r}=fk(t);return nk.fromText(r,e)},"getDiagramFromText");function Ok(t,e,r,i){ak(e,t),sk(e,r,i,e.attr("id"))}Vt(Ok,"addA11yInfo");var Ik=Object.freeze({render:Ak,parse:bk,getDiagramFromText:$k,initialize:Ek,getConfig:fo,setConfig:go,getSiteConfig:po,updateSiteConfig:uo,reset:Vt(()=>{Co()},"reset"),globalReset:Vt(()=>{Co(Zi)},"globalReset"),defaultConfig:Zi});te(fo().logLevel),Co(fo());var Dk=Vt((t,e,r)=>{Jt.warn(t),Hc(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"),qk=Vt(async function(t={querySelector:".mermaid"}){try{await Pk(t)}catch(e){if(Hc(e)&&Jt.error(e.str),Xk.parseError&&Xk.parseError(e),!t.suppressErrors)throw Jt.error("Use the suppressErrors option to suppress these errors"),e}},"run"),Pk=Vt(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=Ik.getConfig();let o;if(Jt.debug((t?"":"No ")+"Callback function found"),r)o=r;else{if(!e)throw new Error("Nodes and querySelector are both undefined");o=document.querySelectorAll(e)}Jt.debug(`Found ${o.length} diagrams`),void 0!==i?.startOnLoad&&(Jt.debug("Start On Load: "+i?.startOnLoad),Ik.updateSiteConfig({startOnLoad:i?.startOnLoad}));const a=new Xc.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const n=[];for(const e of Array.from(o)){if(Jt.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const r=`mermaid-${a.next()}`;s=e.innerHTML,s=fu(Xc.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const i=Xc.detectInit(s);i&&Jt.debug("Detected early reinit: ",i);try{const{svg:i,bindFunctions:o}=await Gk(r,s,e);e.innerHTML=i,t&&await t(r),o&&o(e)}catch(t){Dk(t,n,Xk.parseError)}}if(n.length>0)throw n[0]},"runThrowsErrors"),zk=Vt(function(t){Ik.initialize(t)},"initialize"),Rk=Vt(async function(t,e,r){Jt.warn("mermaid.init is deprecated. Please use run instead."),t&&zk(t);const i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await qk(i)},"init"),Wk=Vt(async(t,{lazyLoad:e=!0}={})=>{ik(),ni(...t),!1===e&&await ok()},"registerExternalDiagrams"),Nk=Vt(function(){if(Xk.startOnLoad){const{startOnLoad:t}=Ik.getConfig();t&&Xk.run().catch(t=>Jt.error("Mermaid failed to initialize",t))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",Nk,!1);var jk=Vt(function(t){Xk.parseError=t},"setParseErrorHandler"),Hk=[],Uk=!1,Yk=Vt(async()=>{if(!Uk){for(Uk=!0;Hk.length>0;){const t=Hk.shift();if(t)try{await t()}catch(t){Jt.error("Error executing queue",t)}}Uk=!1}},"executeQueue"),Vk=Vt(async(t,e)=>new Promise((r,i)=>{const o=Vt(()=>new Promise((o,a)=>{Ik.parse(t,e).then(t=>{o(t),r(t)},t=>{Jt.error("Error parsing",t),Xk.parseError?.(t),a(t),i(t)})}),"performCall");Hk.push(o),Yk().catch(i)}),"parse"),Gk=Vt((t,e,r)=>new Promise((i,o)=>{const a=Vt(()=>new Promise((a,s)=>{Ik.render(t,e,r).then(t=>{a(t),i(t)},t=>{Jt.error("Error parsing",t),Xk.parseError?.(t),s(t),o(t)})}),"performCall");Hk.push(a),Yk().catch(o)}),"render"),Xk={startOnLoad:!0,mermaidAPI:Ik,parse:Vk,render:Gk,init:Rk,run:qk,registerExternalDiagrams:Wk,registerLayoutLoaders:zC,initialize:zk,parseError:void 0,contentLoaded:Nk,setParseErrorHandler:jk,detectType:si,registerIconPacks:ac,getRegisteredDiagramsMetadata:Vt(()=>Object.keys(ai).map(t=>({id:t})),"getRegisteredDiagramsMetadata")},Zk=Xk,Qk=Object.freeze({__proto__:null,default:Zk});export{pt as $,Kc as A,Qr as B,ua as C,Sa as D,Qu as E,Ju as F,Zu as G,ep as H,me as I,Ch as J,fe as K,Xu as L,tp as M,Gt as N,fo as O,Ba as P,Gc as Q,ji as R,$c as S,Un as T,oe as U,Ct as V,yt as W,xt as X,dt as Y,gt as Z,Vt as _,ga as a,H as a$,ht as a0,mt as a1,ft as a2,ct as a3,kt as a4,bt as a5,ut as a6,wi as a7,ju as a8,Vo as a9,Um as aA,Nm as aB,Vm as aC,hm as aD,Zm as aE,jm as aF,hg as aG,S as aH,B as aI,ot as aJ,D as aK,P as aL,_ as aM,L as aN,F as aO,E as aP,v as aQ,A as aR,$ as aS,O as aT,M as aU,N as aV,W as aW,R as aX,z as aY,q as aZ,U as a_,Go as aa,Vc as ab,uc as ac,Po as ad,Zo as ae,Wo as af,Ac as ag,xe as ah,ke as ai,we as aj,ea as ak,na as al,So as am,_m as an,dm as ao,gm as ap,lc as aq,ac as ar,Wc as as,og as at,Em as au,IC as av,pm as aw,Hm as ax,Mm as ay,sC as az,pa as b,j as b0,V as b1,Y as b2,I as b3,_h as b4,Qm as b5,_c as b6,rp as b7,be as b8,Fm as b9,$m as ba,Gu as bb,rc as bc,Qt as bd,Ih as be,Oh as bf,wu as bg,dg as bh,um as bi,Zk as bj,Qk as bk,ka as c,ta as d,di as e,zc as f,ya as g,nm as h,_g as i,Eo as j,Gs as k,Jt as l,Qo as m,Pc as n,Bo as o,dc as p,wa as q,jC as r,fa as s,WC as t,Xc as u,ma as v,Dc as w,Ca as x,kh as y,lm as z};