hermes-web-ui 0.6.40 → 0.6.41

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 (287) hide show
  1. package/dist/client/assets/js/{AppSidebar-CaSVcbCW.js → AppSidebar-CNkSiv3l.js} +1 -1
  2. package/dist/client/assets/js/{ChannelsView-hdAXa1hf.js → ChannelsView-6rEo6RBl.js} +1 -1
  3. package/dist/client/assets/js/{ChatPanel-C6sX6idm.js → ChatPanel-ANAZWluc.js} +3 -3
  4. package/dist/client/assets/js/{ChatView-B68k_-D9.js → ChatView-DFcPsmRF.js} +1 -1
  5. package/dist/client/assets/js/{CodingAgentsView-CsIjwbXR.js → CodingAgentsView-CpIY0SHT.js} +1 -1
  6. package/dist/client/assets/js/{DefaultCredentialPrompt-BRhb4DOa.js → DefaultCredentialPrompt-DmNeotSW.js} +1 -1
  7. package/dist/client/assets/js/{DesktopBrowserPanel-BlBfS64w.js → DesktopBrowserPanel-CWjTU-3y.js} +1 -1
  8. package/dist/client/assets/js/{DesktopBrowserView-JukL0QuS.js → DesktopBrowserView-D9Qb3fIV.js} +1 -1
  9. package/dist/client/assets/js/{DesktopPetView-DWq4EiRU.js → DesktopPetView-B7REtC57.js} +1 -1
  10. package/dist/client/assets/js/{DesktopTitleBar-DphP4oa6.js → DesktopTitleBar-Dej_16hB.js} +1 -1
  11. package/dist/client/assets/js/{DevicesView-BFtrfqJs.js → DevicesView--d4HCkch.js} +1 -1
  12. package/dist/client/assets/js/{DocxFilePreview-CmVJ9Jxx.js → DocxFilePreview-BQz6WC7r.js} +2 -2
  13. package/dist/client/assets/js/{FileEditor-CdkNYp7b.js → FileEditor-BBegs-5i.js} +2 -2
  14. package/dist/client/assets/js/{FilePreview-CJrVRPRs.js → FilePreview-B7WqYvZs.js} +2 -2
  15. package/dist/client/assets/js/{FileRenameModal-mghyEXU4.js → FileRenameModal-82RkAZkd.js} +1 -1
  16. package/dist/client/assets/js/{FilesPanel-B9cKB5lX.js → FilesPanel-BHcg6CpC.js} +2 -2
  17. package/dist/client/assets/js/{FilesView-iKZu70E9.js → FilesView-Dl15WTar.js} +2 -2
  18. package/dist/client/assets/js/{GlobalAgentView-JZsss0gx.js → GlobalAgentView-dxEX611f.js} +1 -1
  19. package/dist/client/assets/js/{GlobalPendingActions-BRQIt5vl.js → GlobalPendingActions-CeK96C3G.js} +1 -1
  20. package/dist/client/assets/js/{GroupChatLinkView-CNrV8lnT.js → GroupChatLinkView-CJhI9DVE.js} +1 -1
  21. package/dist/client/assets/js/{GroupChatPanel-WK4zBasl.js → GroupChatPanel-CLa3s08V.js} +3 -3
  22. package/dist/client/assets/js/{GroupChatView-BlMUD1MW.js → GroupChatView-CUwvu-6F.js} +1 -1
  23. package/dist/client/assets/js/{HistoryMessageList-D8zoQ1Zs.js → HistoryMessageList-BdD8GJYM.js} +1 -1
  24. package/dist/client/assets/js/{HistoryView-Bpr8N2lC.js → HistoryView-Ro92tP5R.js} +1 -1
  25. package/dist/client/assets/js/{HtmlFilePreview-Bj3_-hMo.js → HtmlFilePreview-xYn7YtmC.js} +1 -1
  26. package/dist/client/assets/js/{JobsView-CZK26gTw.js → JobsView-BaNA1Yaa.js} +2 -2
  27. package/dist/client/assets/js/{JourneyView-BPUsLj4o.js → JourneyView-Bw-05mCF.js} +1 -1
  28. package/dist/client/assets/js/{KanbanView-B7d-2_z9.js → KanbanView-BYC32l2Q.js} +1 -1
  29. package/dist/client/assets/js/{LoginView-BpYyv831.js → LoginView-KrpCkwOr.js} +1 -1
  30. package/dist/client/assets/js/{LogsView-CabFHk0v.js → LogsView-Dgm4v5sN.js} +1 -1
  31. package/dist/client/assets/js/{MarkdownRenderer-CVtmHZwc.js → MarkdownRenderer-BIPowjr-.js} +3 -3
  32. package/dist/client/assets/js/{McpManagerView-C-ou8vf3.js → McpManagerView-DTtkUIvq.js} +1 -1
  33. package/dist/client/assets/js/{MemoryView-QGFW4iZo.js → MemoryView-BnL7xzux.js} +2 -2
  34. package/dist/client/assets/js/{MessageList-DZR-TFjD.js → MessageList-5tytzhb0.js} +3 -3
  35. package/dist/client/assets/js/{ModelsView-DiWdSWOW.js → ModelsView-ComCz0Ce.js} +1 -1
  36. package/dist/client/assets/js/{OutlinePanel-Dlr5svMY.js → OutlinePanel-CF_XPCRn.js} +1 -1
  37. package/dist/client/assets/js/{PageSidebarFooter-Bic1fUmG.js → PageSidebarFooter-dvLzcTIm.js} +1 -1
  38. package/dist/client/assets/js/{PdfFilePreview-Dkpan1ay.js → PdfFilePreview-COOAoJ4V.js} +2 -2
  39. package/dist/client/assets/js/{PerformanceView-LrZaED_Z.js → PerformanceView-D6dKifJh.js} +1 -1
  40. package/dist/client/assets/js/{PetdexView-Bv8RioGL.js → PetdexView-CmvzDYwf.js} +1 -1
  41. package/dist/client/assets/js/{PluginsView-CbtdIGlq.js → PluginsView-zJV9FE9c.js} +1 -1
  42. package/dist/client/assets/js/{PptxFilePreview-5if_GbU6.js → PptxFilePreview-dC4JxV6j.js} +2 -2
  43. package/dist/client/assets/js/{ProfileAvatar-DI9ciJxS.js → ProfileAvatar-C8xoALCI.js} +1 -1
  44. package/dist/client/assets/js/{ProfilesView-C-FSiKMU.js → ProfilesView-CxVxJRN_.js} +1 -1
  45. package/dist/client/assets/js/{ProviderConfigurationPrompt-BUoWC41Y.js → ProviderConfigurationPrompt-zwk1UwoP.js} +1 -1
  46. package/dist/client/assets/js/{SessionSearchModal-CEKvSihp.js → SessionSearchModal-DhwGsV-i.js} +1 -1
  47. package/dist/client/assets/js/{SettingRow-CSfiJmxx.js → SettingRow-DHqhLX3M.js} +1 -1
  48. package/dist/client/assets/js/{SettingsCircuitBadge-DHIEFyTR.js → SettingsCircuitBadge-CnWSfQZd.js} +1 -1
  49. package/dist/client/assets/js/{SettingsView-DbNJroV3.js → SettingsView-Cbroga25.js} +1 -1
  50. package/dist/client/assets/js/{SharedGroupChatView-CTYjqWcO.js → SharedGroupChatView-DXfqtQ33.js} +1 -1
  51. package/dist/client/assets/js/{SkillsUsageView-BqZ3GtfT.js → SkillsUsageView-C34i3lOQ.js} +1 -1
  52. package/dist/client/assets/js/{SkillsView-Bhla7821.js → SkillsView-DRG_1esx.js} +2 -2
  53. package/dist/client/assets/js/{SpreadsheetFilePreview-CGK8HDAx.js → SpreadsheetFilePreview-DRw4kIx5.js} +1 -1
  54. package/dist/client/assets/js/{TerminalPanel-CtBTLOwq.js → TerminalPanel-Da1nL9P8.js} +1 -1
  55. package/dist/client/assets/js/{TerminalView-BID7fupB.js → TerminalView-B6z-VaGq.js} +1 -1
  56. package/dist/client/assets/js/{ThemeView-Cx3ucIus.js → ThemeView-CAaJ9MH-.js} +1 -1
  57. package/dist/client/assets/js/{UsageView-ByGCsw7o.js → UsageView-B_hLsp0k.js} +1 -1
  58. package/dist/client/assets/js/{VersionPreviewView-DiAK1ind.js → VersionPreviewView-DKXL6anl.js} +1 -1
  59. package/dist/client/assets/js/{WebPet-CdIqrnp1.js → WebPet-BUvrfjpq.js} +1 -1
  60. package/dist/client/assets/js/{WorkflowView-DmBOhSuq.js → WorkflowView-r46Ap9FY.js} +1 -1
  61. package/dist/client/assets/js/{WorkspaceDiffPreview-dHIGp-9F.js → WorkspaceDiffPreview-EwZAE18F.js} +2 -2
  62. package/dist/client/assets/js/{abap-Dj8IFKiF.js → abap-C7gkFu-A.js} +1 -1
  63. package/dist/client/assets/js/{aiden0z-pptx-renderer.es-6vi5-jAN.js → aiden0z-pptx-renderer.es-DOpVaH_k.js} +1 -1
  64. package/dist/client/assets/js/{apex-C3INPUEt.js → apex-DZOtRowu.js} +1 -1
  65. package/dist/client/assets/js/{ar-Gk9y3ZfO.js → ar-8iThLSJQ.js} +1 -1
  66. package/dist/client/assets/js/architecture-7EHR7CIX-BrfhYGuP.js +1 -0
  67. package/dist/client/assets/js/{architectureDiagram-3BPJPVTR-DLZYeivB.js → architectureDiagram-3BPJPVTR-DEsTTzKd.js} +1 -1
  68. package/dist/client/assets/js/{auth-D1ZFqv22.js → auth-B52zm2Ir.js} +1 -1
  69. package/dist/client/assets/js/{azcli-UBzLhJq5.js → azcli-KxuicZQh.js} +1 -1
  70. package/dist/client/assets/js/{bat-P3O4jldt.js → bat-DfFP4HF-.js} +1 -1
  71. package/dist/client/assets/js/{bicep-DdQR9RxE.js → bicep-Co4bntVh.js} +1 -1
  72. package/dist/client/assets/js/{blockDiagram-GPEHLZMM-UWFo8sm5.js → blockDiagram-GPEHLZMM-NsxYeUKd.js} +1 -1
  73. package/dist/client/assets/js/{c4Diagram-AAUBKEIU-jgyj0wOb.js → c4Diagram-AAUBKEIU-D68asSzm.js} +1 -1
  74. package/dist/client/assets/js/{cameligo-Bb4ubW_C.js → cameligo-Xi0l_9Wr.js} +1 -1
  75. package/dist/client/assets/js/{chat-DdHii4Qz.js → chat-fUZW3YFa.js} +1 -1
  76. package/dist/client/assets/js/{chat-input-height-CSPwB9it.js → chat-input-height-lvFawuv9.js} +1 -1
  77. package/dist/client/assets/js/{chat-timestamp-DGQ8fmtT.js → chat-timestamp-4wWFcZWv.js} +1 -1
  78. package/dist/client/assets/js/{chunk-2J33WTMH-Br9OWF5a.js → chunk-2J33WTMH-CEU5sLIh.js} +1 -1
  79. package/dist/client/assets/js/{chunk-3OPIFGDE-Cb40LuI4.js → chunk-3OPIFGDE-DEhbKkCl.js} +1 -1
  80. package/dist/client/assets/js/{chunk-4BX2VUAB-jYtdiafd.js → chunk-4BX2VUAB-OIZUstuy.js} +1 -1
  81. package/dist/client/assets/js/{chunk-55IACEB6-CBtymeHY.js → chunk-55IACEB6-DQHKZCBG.js} +1 -1
  82. package/dist/client/assets/js/{chunk-5ZQYHXKU-yj9xqmex.js → chunk-5ZQYHXKU-BU3pQVVl.js} +1 -1
  83. package/dist/client/assets/js/{chunk-727SXJPM-er_5tB5X.js → chunk-727SXJPM-jj97gdnP.js} +1 -1
  84. package/dist/client/assets/js/{chunk-AQP2D5EJ-C4mDD6xK.js → chunk-AQP2D5EJ-jv-oWlkb.js} +1 -1
  85. package/dist/client/assets/js/{chunk-BSJP7CBP-QZesZe57.js → chunk-BSJP7CBP-DkKsepNF.js} +1 -1
  86. package/dist/client/assets/js/{chunk-CSCIHK7Q-5LH118bT.js → chunk-CSCIHK7Q-CLgoBoCF.js} +3 -3
  87. package/dist/client/assets/js/{chunk-FMBD7UC4-CQho6QZ5.js → chunk-FMBD7UC4-Bx1bCKUR.js} +1 -1
  88. package/dist/client/assets/js/{chunk-KSCS5N6A-DONM1Omv.js → chunk-KSCS5N6A-CZHZ6pBd.js} +1 -1
  89. package/dist/client/assets/js/{chunk-L5ZTLDWV-FN_zFWkp.js → chunk-L5ZTLDWV-dz9D3kOb.js} +1 -1
  90. package/dist/client/assets/js/{chunk-LZXEDZCA-CEEUVvpS.js → chunk-LZXEDZCA-CQiSQehC.js} +2 -2
  91. package/dist/client/assets/js/{chunk-ND2GUHAM-DWckpxQD.js → chunk-ND2GUHAM-mWODKb8v.js} +1 -1
  92. package/dist/client/assets/js/{chunk-NZK2D7GU-0mKZmkuV.js → chunk-NZK2D7GU-ivCkjCOR.js} +1 -1
  93. package/dist/client/assets/js/{chunk-O5CBEL6O-DIDAOkT_.js → chunk-O5CBEL6O-BRUisK47.js} +1 -1
  94. package/dist/client/assets/js/{chunk-QZHKN3VN-D3c-TMz-.js → chunk-QZHKN3VN-BHjgTrzY.js} +1 -1
  95. package/dist/client/assets/js/{chunk-WU5MYG2G-BZvSpwm4.js → chunk-WU5MYG2G-CNW1rcpL.js} +1 -1
  96. package/dist/client/assets/js/{chunk-XPW4576I-xdyJtk-s.js → chunk-XPW4576I-DP3dJbOu.js} +1 -1
  97. package/dist/client/assets/js/classDiagram-4FO5ZUOK-BVBBe3DQ.js +1 -0
  98. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-DJUe3i9Y.js +1 -0
  99. package/dist/client/assets/js/{clipboard-DQ_A8ns-.js → clipboard-DHZFaAvO.js} +1 -1
  100. package/dist/client/assets/js/{clipboard-files-bDrcGKPe.js → clipboard-files-CBDy-02Y.js} +1 -1
  101. package/dist/client/assets/js/{clojure-ku7aCU1_.js → clojure-DuyGwS8X.js} +1 -1
  102. package/dist/client/assets/js/{coding-agents-DfHyBvky.js → coding-agents-BNTHD6kd.js} +1 -1
  103. package/dist/client/assets/js/{codingAgentProviders-BM18FAW9.js → codingAgentProviders-DM_ouxbL.js} +1 -1
  104. package/dist/client/assets/js/{coffee-DnRIdJlY.js → coffee-C5p7vzpa.js} +1 -1
  105. package/dist/client/assets/js/{completion-notification-XxjbntI8.js → completion-notification-CzdnhuX3.js} +1 -1
  106. package/dist/client/assets/js/{cose-bilkent-S5V4N54A-w891sIF1.js → cose-bilkent-S5V4N54A-De_ZdqY0.js} +1 -1
  107. package/dist/client/assets/js/{cpp-CN8i6ISX.js → cpp-II5hDbTe.js} +1 -1
  108. package/dist/client/assets/js/{csharp-B-fxig7O.js → csharp-D0POzSpv.js} +1 -1
  109. package/dist/client/assets/js/{csp-Bar9LGt4.js → csp-CwtuRkR3.js} +1 -1
  110. package/dist/client/assets/js/{css-DFtC5xZN.js → css-Dc2fJIqQ.js} +1 -1
  111. package/dist/client/assets/js/{cssMode-DH5XKKL2.js → cssMode-CC6jRvHF.js} +1 -1
  112. package/dist/client/assets/js/{cypher-BkJexWsv.js → cypher-DBcQoWDH.js} +1 -1
  113. package/dist/client/assets/js/{cytoscape.esm-BDsvr8Aq.js → cytoscape.esm-C9FMRqxM.js} +1 -1
  114. package/dist/client/assets/js/{dagre-BM42HDAG-BuT885pa.js → dagre-BM42HDAG-CvJIC410.js} +1 -1
  115. package/dist/client/assets/js/{dagre-BVUDh8Sh.js → dagre-BtgEsAtK.js} +1 -1
  116. package/dist/client/assets/js/{dart-B7W8hAtN.js → dart-Jf_Hmp2o.js} +1 -1
  117. package/dist/client/assets/js/{de-LDpd8WHJ.js → de-7hLSwCEx.js} +1 -1
  118. package/dist/client/assets/js/{defineProperty-DdPu4ZVv.js → defineProperty-DHkErCmG.js} +1 -1
  119. package/dist/client/assets/js/{desktop-browser-xrRFPNUg.js → desktop-browser-C6AhY0uu.js} +1 -1
  120. package/dist/client/assets/js/{diagram-2AECGRRQ-B1sSf-09.js → diagram-2AECGRRQ-CvPeU5Lm.js} +1 -1
  121. package/dist/client/assets/js/{diagram-5GNKFQAL-BffX22pf.js → diagram-5GNKFQAL-CBniYlkH.js} +1 -1
  122. package/dist/client/assets/js/{diagram-KO2AKTUF-D8QvpUpn.js → diagram-KO2AKTUF-C_yFaVRj.js} +1 -1
  123. package/dist/client/assets/js/{diagram-LMA3HP47-DkG7p3lQ.js → diagram-LMA3HP47-BzM1IxNe.js} +1 -1
  124. package/dist/client/assets/js/{diagram-OG6HWLK6-RjvNNvXM.js → diagram-OG6HWLK6-yvmf_3ax.js} +1 -1
  125. package/dist/client/assets/js/{dist-Bk0VKtV3.js → dist-BHzBn3v7.js} +1 -1
  126. package/dist/client/assets/js/{dockerfile-C4m7j8sy.js → dockerfile-J3d6ZPDJ.js} +1 -1
  127. package/dist/client/assets/js/{docx-preview-BpTW-GN7.js → docx-preview-Rqt8wMjQ.js} +1 -1
  128. package/dist/client/assets/js/{download-CX8EG48r.js → download-xhRMWMda.js} +1 -1
  129. package/dist/client/assets/js/{ecl-EHV358Ls.js → ecl-XnlT0p97.js} +1 -1
  130. package/dist/client/assets/js/{editor.api2-CnHBqh_d.js → editor.api2-ChO5nUQb.js} +1 -1
  131. package/dist/client/assets/js/{elixir-DLfp2Dwn.js → elixir-BEJbxH-B.js} +1 -1
  132. package/dist/client/assets/js/{en-D6VVFwFU.js → en-D2WSXgkM.js} +1 -1
  133. package/dist/client/assets/js/{erDiagram-TEJ5UH35-CLlLC6xx.js → erDiagram-TEJ5UH35-DZysD9r9.js} +1 -1
  134. package/dist/client/assets/js/{es-BIMLuyVP.js → es-B7Mq1P0U.js} +1 -1
  135. package/dist/client/assets/js/{esm-C8D4M0Yn.js → esm-DnZPPtmx.js} +1 -1
  136. package/dist/client/assets/js/eventmodeling-FCH6USID-vlE3-g2j.js +1 -0
  137. package/dist/client/assets/js/{file-preview-BvgwVZXh.js → file-preview-C417aixJ.js} +1 -1
  138. package/dist/client/assets/js/{files-CJkCqsUx.js → files-DjI-npgn.js} +1 -1
  139. package/dist/client/assets/js/{flow9-CtBaUnAi.js → flow9-j5XT_8TQ.js} +1 -1
  140. package/dist/client/assets/js/{flowDiagram-I6XJVG4X-VTRTPnqD.js → flowDiagram-I6XJVG4X-Dt5ZtyHz.js} +1 -1
  141. package/dist/client/assets/js/{fr-C2lf0cY2.js → fr-DvClrDOw.js} +1 -1
  142. package/dist/client/assets/js/{freemarker2-XLeMvhl_.js → freemarker2-BzCf_0SN.js} +1 -1
  143. package/dist/client/assets/js/{fsharp-Db0uaBQv.js → fsharp-ClU_Sdjr.js} +1 -1
  144. package/dist/client/assets/js/{ganttDiagram-6RSMTGT7-CdKcIZ8_.js → ganttDiagram-6RSMTGT7-Bca3rPWi.js} +1 -1
  145. package/dist/client/assets/js/gitGraph-WXDBUCRP-Cyd4P6XH.js +1 -0
  146. package/dist/client/assets/js/{gitGraphDiagram-PVQCEYII-Bcuyw6fo.js → gitGraphDiagram-PVQCEYII-Co29qnTg.js} +1 -1
  147. package/dist/client/assets/js/{go-DwaTlB-B.js → go-D3iUyCM0.js} +1 -1
  148. package/dist/client/assets/js/{graphlib-vAI4Pw7R.js → graphlib-Bln6qd-Z.js} +1 -1
  149. package/dist/client/assets/js/{graphql-Cf2XhNJR.js → graphql-z8koqyyL.js} +1 -1
  150. package/dist/client/assets/js/{group-agent-avatar-CPehpiK0.js → group-agent-avatar-CwqtaKGw.js} +1 -1
  151. package/dist/client/assets/js/{group-chat-CY62vc77.js → group-chat-Buz8HP-N.js} +1 -1
  152. package/dist/client/assets/js/{group-chat-xkdjC2Jt.js → group-chat-CgFAwCtr.js} +1 -1
  153. package/dist/client/assets/js/{group-chat-agent-link-DdSNKasF.js → group-chat-agent-link-N5IFeN_j.js} +1 -1
  154. package/dist/client/assets/js/{handlebars-CNEKu_p8.js → handlebars-C_JvhUYs.js} +1 -1
  155. package/dist/client/assets/js/{hcl-6UZbq6h2.js → hcl-X7TzviIX.js} +1 -1
  156. package/dist/client/assets/js/{highlight-DwtBT6t1.js → highlight-C4yUBxwQ.js} +1 -1
  157. package/dist/client/assets/js/{html-DfSIHhKA.js → html-B-rCQB0N.js} +1 -1
  158. package/dist/client/assets/js/{htmlMode-iGw9-O-W.js → htmlMode-CAeEf_yf.js} +1 -1
  159. package/dist/client/assets/js/{index-DnjQJzX4.js → index-DN4SafrP.js} +5 -5
  160. package/dist/client/assets/js/info-J43DQDTF-B9tkQ2Sb.js +1 -0
  161. package/dist/client/assets/js/{infoDiagram-5YYISTIA-85450Zam.js → infoDiagram-5YYISTIA-BWQGayms.js} +1 -1
  162. package/dist/client/assets/js/{ini-8em8V_Af.js → ini-LTHHN4J-.js} +1 -1
  163. package/dist/client/assets/js/{ishikawaDiagram-YF4QCWOH-BZ4az7UA.js → ishikawaDiagram-YF4QCWOH-Dhuplz_z.js} +1 -1
  164. package/dist/client/assets/js/{ja-C1bBXgr_.js → ja-D7BeX2_D.js} +1 -1
  165. package/dist/client/assets/js/{java-CP1MdIkO.js → java-BRFX-ya0.js} +1 -1
  166. package/dist/client/assets/js/{javascript-Cr8_LHYa.js → javascript-ZXiVmjXn.js} +1 -1
  167. package/dist/client/assets/js/{journeyDiagram-JHISSGLW-DGMB8Tgc.js → journeyDiagram-JHISSGLW-CJeatAU9.js} +1 -1
  168. package/dist/client/assets/js/{jsonMode-HCZ-1lFH.js → jsonMode-C6FcMe0o.js} +1 -1
  169. package/dist/client/assets/js/{jszip.min-BkR6b8DY.js → jszip.min-skZCUzWf.js} +1 -1
  170. package/dist/client/assets/js/{julia-DMTMxa5q.js → julia-Bph8N3CL.js} +1 -1
  171. package/dist/client/assets/js/{kanban-definition-UN3LZRKU-F5cH_RpB.js → kanban-definition-UN3LZRKU-tvWuOdSr.js} +1 -1
  172. package/dist/client/assets/js/{katex-CYbEJAbZ.js → katex-hSGJNERm.js} +1 -1
  173. package/dist/client/assets/js/{ko-qgOeHd8L.js → ko-BsVa-If_.js} +1 -1
  174. package/dist/client/assets/js/{kotlin-Blzus47W.js → kotlin-_c4-tPQp.js} +1 -1
  175. package/dist/client/assets/js/{less-DWCHpDyf.js → less-5oVo4jfQ.js} +1 -1
  176. package/dist/client/assets/js/{lexon-YXdlYGbJ.js → lexon-DE4YtGwF.js} +1 -1
  177. package/dist/client/assets/js/{liquid-DSQgvRwe.js → liquid-BGfieGMG.js} +1 -1
  178. package/dist/client/assets/js/{lspLanguageFeatures-0Hx2Vnc-.js → lspLanguageFeatures-DU_1H2uW.js} +1 -1
  179. package/dist/client/assets/js/{lua-Cyv3mTkg.js → lua-7WJSZJqD.js} +1 -1
  180. package/dist/client/assets/js/{m3-CPY3Ym7_.js → m3-gZlfoR19.js} +1 -1
  181. package/dist/client/assets/js/{markdown-DaPQ1nuG.js → markdown-BYF71orA.js} +1 -1
  182. package/dist/client/assets/js/{mdx-BqA6Xr9V.js → mdx-CunEIV3g.js} +1 -1
  183. package/dist/client/assets/js/{mermaid-parser.core-D4HRUOce.js → mermaid-parser.core-DU_SX15F.js} +3 -3
  184. package/dist/client/assets/js/{mermaid.core-w6kHmgOG.js → mermaid.core-8vsbhG5J.js} +3 -3
  185. package/dist/client/assets/js/{message-scroll-position-C5yRCyBU.js → message-scroll-position-C9_YO3pX.js} +2 -2
  186. package/dist/client/assets/js/{mindmap-definition-RKZ34NQL-CnzhnJ7Z.js → mindmap-definition-RKZ34NQL-HPtlKqL1.js} +1 -1
  187. package/dist/client/assets/js/{mips-BfqBfLvN.js → mips-DXkvw9aZ.js} +1 -1
  188. package/dist/client/assets/js/{models-wrytxWnf.js → models-BILDy2sV.js} +1 -1
  189. package/dist/client/assets/js/{monaco.contribution-Bc-DesyO.js → monaco.contribution-DDqeHGl3.js} +2 -2
  190. package/dist/client/assets/js/{msdax-DgMip49g.js → msdax-BbHEBDvP.js} +1 -1
  191. package/dist/client/assets/js/{mysql-DPUvF1g2.js → mysql-7I1rlwh7.js} +1 -1
  192. package/dist/client/assets/js/{objective-c-BQ3llrPW.js → objective-c-Dk03REAv.js} +1 -1
  193. package/dist/client/assets/js/packet-YPE3B663-DlTFK3Wo.js +1 -0
  194. package/dist/client/assets/js/{pascal-bFWHV7MZ.js → pascal-BCfNkzYY.js} +1 -1
  195. package/dist/client/assets/js/{pascaligo-C8Qza2pK.js → pascaligo-D-DslS98.js} +1 -1
  196. package/dist/client/assets/js/{pdf-Cb7x495t.js → pdf-B_OYWxSy.js} +1 -1
  197. package/dist/client/assets/js/{pdf.worker.min-DDUKJ6cJ.js → pdf.worker.min--q2RLEHa.js} +1 -1
  198. package/dist/client/assets/js/{perl-x25gw0_p.js → perl-MUnuTclx.js} +1 -1
  199. package/dist/client/assets/js/{pets-BfRsvl7D.js → pets-D74G2jqA.js} +1 -1
  200. package/dist/client/assets/js/{pgsql-DAUcGeRq.js → pgsql-BxCBktNe.js} +1 -1
  201. package/dist/client/assets/js/{php-nri1eqb2.js → php-zp9UgH03.js} +1 -1
  202. package/dist/client/assets/js/pie-LRSECV5Y-BtnBGhFZ.js +1 -0
  203. package/dist/client/assets/js/{pieDiagram-4H26LBE5-4LODdtT_.js → pieDiagram-4H26LBE5-CG8_pcHr.js} +1 -1
  204. package/dist/client/assets/js/{pla-CHi5LWNL.js → pla-DGCtmYZC.js} +1 -1
  205. package/dist/client/assets/js/{postiats-Bk7jD0AA.js → postiats-DHSW8gnY.js} +1 -1
  206. package/dist/client/assets/js/{powerquery-UTqJ0Vs7.js → powerquery-BGsPEmJe.js} +1 -1
  207. package/dist/client/assets/js/{powershell-CuPY3Rqk.js → powershell-BItlb0hE.js} +1 -1
  208. package/dist/client/assets/js/{profiles-D-vlI-Ec.js → profiles-BK5JKD7h.js} +1 -1
  209. package/dist/client/assets/js/{protobuf-Be4AIz9j.js → protobuf-BIhm6JYx.js} +1 -1
  210. package/dist/client/assets/js/{pt-D7_udWb3.js → pt-BSORCDMm.js} +1 -1
  211. package/dist/client/assets/js/{pug-CZFx15Ey.js → pug-BtnM7KZj.js} +1 -1
  212. package/dist/client/assets/js/{python-BgRg6Ez6.js → python-DxzTx1Q_.js} +1 -1
  213. package/dist/client/assets/js/{qsharp-BiBiLhRS.js → qsharp-B_8MSfaB.js} +1 -1
  214. package/dist/client/assets/js/{quadrantDiagram-W4KKPZXB-g_q9-dXx.js → quadrantDiagram-W4KKPZXB-CsbkMYuV.js} +1 -1
  215. package/dist/client/assets/js/{r-DM7NVSbZ.js → r-kvKC59jk.js} +1 -1
  216. package/dist/client/assets/js/radar-GUYGQ44K-BTKMKX4G.js +1 -0
  217. package/dist/client/assets/js/{razor-CiWy0jCW.js → razor-BwZ0MkaL.js} +1 -1
  218. package/dist/client/assets/js/{redis-BR2LPmFL.js → redis-5j1U_i85.js} +1 -1
  219. package/dist/client/assets/js/{redshift-B0sdAV16.js → redshift-CX1dFLA1.js} +1 -1
  220. package/dist/client/assets/js/{requirementDiagram-4Y6WPE33-EedCclad.js → requirementDiagram-4Y6WPE33-CKC7CQCX.js} +1 -1
  221. package/dist/client/assets/js/{restructuredtext-kQOBLN1M.js → restructuredtext-MV0-Naya.js} +1 -1
  222. package/dist/client/assets/js/{rough.esm-Dyx_2DON.js → rough.esm-CV1rL6PC.js} +1 -1
  223. package/dist/client/assets/js/{ru-CVQQmreT.js → ru-JsH6TKyg.js} +1 -1
  224. package/dist/client/assets/js/{ruby-CbdJXy6J.js → ruby-Bhyejf9X.js} +1 -1
  225. package/dist/client/assets/js/{rust-DZanYksk.js → rust-CR8d_FC1.js} +1 -1
  226. package/dist/client/assets/js/{sankeyDiagram-5OEKKPKP-DFC0nzsd.js → sankeyDiagram-5OEKKPKP-CKlqlvAe.js} +1 -1
  227. package/dist/client/assets/js/{sb-C5-WiqDZ.js → sb-hLW2EM2L.js} +1 -1
  228. package/dist/client/assets/js/{scala-Bk7i9nV-.js → scala-DVUhALEZ.js} +1 -1
  229. package/dist/client/assets/js/{scheme-CaZSWmJ2.js → scheme-BS6yNanr.js} +1 -1
  230. package/dist/client/assets/js/{scss-ByOYuc7K.js → scss-BfoRsElt.js} +1 -1
  231. package/dist/client/assets/js/{sequenceDiagram-3UESZ5HK-hWjPfqXt.js → sequenceDiagram-3UESZ5HK-CTimhD6H.js} +1 -1
  232. package/dist/client/assets/js/{session-browser-prefs-Br8OYA4_.js → session-browser-prefs-BT1woDux.js} +1 -1
  233. package/dist/client/assets/js/{sessions-iGK9S6zk.js → sessions-IkLKgnN6.js} +1 -1
  234. package/dist/client/assets/js/{settings-pbanANH0.js → settings-roYY6G3W.js} +1 -1
  235. package/dist/client/assets/js/{shell-Di0TEySc.js → shell-BO_Lyczz.js} +1 -1
  236. package/dist/client/assets/js/{skills-DC-UPcXj.js → skills-a5LPwmiT.js} +1 -1
  237. package/dist/client/assets/js/{solidity-BNTjAuuA.js → solidity-D3T2Ki4l.js} +1 -1
  238. package/dist/client/assets/js/{sophia-LY__8Yob.js → sophia-iJmIEvi8.js} +1 -1
  239. package/dist/client/assets/js/{sparql-CWnLfgGS.js → sparql-C2HCEExr.js} +1 -1
  240. package/dist/client/assets/js/{sql-B0ypQ9lR.js → sql-DM6_3GBc.js} +1 -1
  241. package/dist/client/assets/js/{src-BihFroE7.js → src-DD_TpJde.js} +1 -1
  242. package/dist/client/assets/js/{st-CqVFKTbZ.js → st-DSb39Fm5.js} +1 -1
  243. package/dist/client/assets/js/{stateDiagram-AJRCARHV-B7wEnYVe.js → stateDiagram-AJRCARHV-DwBGmBj6.js} +1 -1
  244. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-5bNcwBne.js +1 -0
  245. package/dist/client/assets/js/{style-DDAg_jVj.js → style-B5xXhBlp.js} +1 -1
  246. package/dist/client/assets/js/{swift-B4ZZmDxc.js → swift-DrZYSZK3.js} +1 -1
  247. package/dist/client/assets/js/{systemverilog-zLt-O1mT.js → systemverilog-BAWNCaf6.js} +1 -1
  248. package/dist/client/assets/js/{tcl-DCSZmA-l.js → tcl-DY15ex6v.js} +1 -1
  249. package/dist/client/assets/js/{timeline-definition-PNZ67QCA-BN_LfleE.js → timeline-definition-PNZ67QCA-B8xuIu6g.js} +1 -1
  250. package/dist/client/assets/js/treeView-BLDUP644-DvZPUnGM.js +1 -0
  251. package/dist/client/assets/js/treemap-LRROVOQU-Bis1djYh.js +1 -0
  252. package/dist/client/assets/js/{tsMode-BjUcuHrq.js → tsMode-BE8JCSCE.js} +1 -1
  253. package/dist/client/assets/js/{ttsHelpers-BLunFYsq.js → ttsHelpers-BLNiQExI.js} +1 -1
  254. package/dist/client/assets/js/{twig-CuJlVpUG.js → twig-BpHF_18K.js} +1 -1
  255. package/dist/client/assets/js/{typescript-De40YVFt.js → typescript-FQ3z9hVG.js} +1 -1
  256. package/dist/client/assets/js/{typespec-8QcsIc3c.js → typespec-BKvcn6aE.js} +1 -1
  257. package/dist/client/assets/js/{useSttSettings-B1-KXN44.js → useSttSettings-DHX06G8A.js} +1 -1
  258. package/dist/client/assets/js/{vb-DEGTdhxf.js → vb-B74ucE43.js} +1 -1
  259. package/dist/client/assets/js/{vennDiagram-CIIHVFJN-hL8ax7wF.js → vennDiagram-CIIHVFJN-DtEu04QR.js} +1 -1
  260. package/dist/client/assets/js/wardley-L42UT6IY-CD4dIN63.js +1 -0
  261. package/dist/client/assets/js/{wardleyDiagram-YWT4CUSO-BIR-RA6Y.js → wardleyDiagram-YWT4CUSO-DdNKCPsp.js} +1 -1
  262. package/dist/client/assets/js/{wgsl-CmbiucmY.js → wgsl-DEf5Vdqv.js} +1 -1
  263. package/dist/client/assets/js/{workers-BgWBq4qY.js → workers-BbaiLVxx.js} +1 -1
  264. package/dist/client/assets/js/{workflow-socket-DZ9Ceffc.js → workflow-socket-DH402vxO.js} +1 -1
  265. package/dist/client/assets/js/{xml-SZLdwDmk.js → xml-zjE51I7v.js} +1 -1
  266. package/dist/client/assets/js/{xterm-D6CotCNH.js → xterm-Djy4rCx0.js} +1 -1
  267. package/dist/client/assets/js/{xychartDiagram-2RQKCTM6-DHa486uP.js → xychartDiagram-2RQKCTM6-CKqN7g7r.js} +1 -1
  268. package/dist/client/assets/js/{yaml-CgQpCgM5.js → yaml-DabeGoTc.js} +1 -1
  269. package/dist/client/assets/js/{zh-BDlMioZr.js → zh-CI4-L3JY.js} +1 -1
  270. package/dist/client/assets/js/{zh-TW-DTbLWR1A.js → zh-TW-wYlj-uOZ.js} +1 -1
  271. package/dist/client/index.html +1 -1
  272. package/dist/server/index.js +3 -3
  273. package/dist/server/openapi.json +1 -1
  274. package/package.json +9 -1
  275. package/dist/client/assets/js/architecture-7EHR7CIX-Cl4Qi40R.js +0 -1
  276. package/dist/client/assets/js/classDiagram-4FO5ZUOK-DC0BcY8x.js +0 -1
  277. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-BfDDH_fm.js +0 -1
  278. package/dist/client/assets/js/eventmodeling-FCH6USID-Bgzwnvkn.js +0 -1
  279. package/dist/client/assets/js/gitGraph-WXDBUCRP-CwFrpI3e.js +0 -1
  280. package/dist/client/assets/js/info-J43DQDTF-wMwkmIWM.js +0 -1
  281. package/dist/client/assets/js/packet-YPE3B663-DYmKXJOE.js +0 -1
  282. package/dist/client/assets/js/pie-LRSECV5Y-Dx0hbcjV.js +0 -1
  283. package/dist/client/assets/js/radar-GUYGQ44K-D-t-QJhi.js +0 -1
  284. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-CoMhBVvo.js +0 -1
  285. package/dist/client/assets/js/treeView-BLDUP644-CMJGhbWk.js +0 -1
  286. package/dist/client/assets/js/treemap-LRROVOQU-_j4KoVDh.js +0 -1
  287. package/dist/client/assets/js/wardley-L42UT6IY-BeOvmJoM.js +0 -1
@@ -1 +1 @@
1
- import{wa as Et}from"./index-DnjQJzX4.js";function Y(t,s,e){if(t&&t.length){const[a,n]=s,o=Math.PI/180*e,r=Math.cos(o),h=Math.sin(o);for(const i of t){const[c,l]=i;i[0]=(c-a)*r-(l-n)*h+a,i[1]=(c-a)*h+(l-n)*r+n}}}function Gt(t,s){return t[0]===s[0]&&t[1]===s[1]}function $t(t,s,e,a=1){const n=e,o=Math.max(s,.1),r=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,h=[0,0];if(n)for(const c of r)Y(c,h,n);const i=(function(c,l,d){const f=[];for(const M of c){const m=[...M];Gt(m[0],m[m.length-1])||m.push([m[0][0],m[0][1]]),m.length>2&&f.push(m)}const u=[];l=Math.max(l,.1);const p=[];for(const M of f)for(let m=0;m<M.length-1;m++){const x=M[m],w=M[m+1];if(x[1]!==w[1]){const v=Math.min(x[1],w[1]);p.push({ymin:v,ymax:Math.max(x[1],w[1]),x:v===x[1]?x[0]:w[0],islope:(w[0]-x[0])/(w[1]-x[1])})}}if(p.sort(((M,m)=>M.ymin<m.ymin?-1:M.ymin>m.ymin?1:M.x<m.x?-1:M.x>m.x?1:M.ymax===m.ymax?0:(M.ymax-m.ymax)/Math.abs(M.ymax-m.ymax))),!p.length)return u;let k=[],g=p[0].ymin,y=0;for(;k.length||p.length;){if(p.length){let M=-1;for(let m=0;m<p.length&&!(p[m].ymin>g);m++)M=m;p.splice(0,M+1).forEach((m=>{k.push({s:g,edge:m})}))}if(k=k.filter((M=>!(M.edge.ymax<=g))),k.sort(((M,m)=>M.edge.x===m.edge.x?0:(M.edge.x-m.edge.x)/Math.abs(M.edge.x-m.edge.x))),(d!==1||y%l==0)&&k.length>1)for(let M=0;M<k.length;M+=2){const m=M+1;if(m>=k.length)break;const x=k[M].edge,w=k[m].edge;u.push([[Math.round(x.x),g],[Math.round(w.x),g]])}g+=d,k.forEach((M=>{M.edge.x=M.edge.x+d*M.edge.islope})),y++}return u})(r,o,a);if(n){for(const c of r)Y(c,h,-n);(function(c,l,d){const f=[];c.forEach((u=>f.push(...u))),Y(f,l,d)})(i,h,-n)}return i}function G(t,s){var e;const a=s.hachureAngle+90;let n=s.hachureGap;n<0&&(n=4*s.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return s.roughness>=1&&(((e=s.randomizer)===null||e===void 0?void 0:e.next())||Math.random())>.7&&(o=n),$t(t,n,a,o||1)}function Z(t){const s=t[0],e=t[1];return Math.sqrt(Math.pow(s[0]-e[0],2)+Math.pow(s[1]-e[1],2))}function tt(t,s){return t.type===s}function rt(t){const s=[],e=(function(r){const h=new Array;for(;r!=="";)if(r.match(/^([ \t\r\n,]+)/))r=r.substr(RegExp.$1.length);else if(r.match(/^([aAcChHlLmMqQsStTvVzZ])/))h[h.length]={type:It,text:RegExp.$1},r=r.substr(RegExp.$1.length);else{if(!r.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];h[h.length]={type:J,text:`${parseFloat(RegExp.$1)}`},r=r.substr(RegExp.$1.length)}return h[h.length]={type:ht,text:""},h})(t);let a="BOD",n=0,o=e[n];for(;!tt(o,ht);){let r=0;const h=[];if(a==="BOD"){if(o.text!=="M"&&o.text!=="m")return rt("M0,0"+t);n++,r=F[o.text],a=o.text}else tt(o,J)?r=F[a]:(n++,r=F[o.text],a=o.text);if(!(n+r<e.length))throw new Error("Path data ended short");for(let i=n;i<n+r;i++){const c=e[i];if(!tt(c,J))throw new Error("Param not a number: "+a+","+c.text);h[h.length]=+c.text}if(typeof F[a]!="number")throw new Error("Bad segment: "+a);{const i={key:a,data:h};s.push(i),n+=r,o=e[n],a==="M"&&(a="L"),a==="m"&&(a="l")}}return s}function wt(t){let s=0,e=0,a=0,n=0;const o=[];for(const{key:r,data:h}of t)switch(r){case"M":o.push({key:"M",data:[...h]}),[s,e]=h,[a,n]=h;break;case"m":s+=h[0],e+=h[1],o.push({key:"M",data:[s,e]}),a=s,n=e;break;case"L":o.push({key:"L",data:[...h]}),[s,e]=h;break;case"l":s+=h[0],e+=h[1],o.push({key:"L",data:[s,e]});break;case"C":o.push({key:"C",data:[...h]}),s=h[4],e=h[5];break;case"c":{const i=h.map(((c,l)=>l%2?c+e:c+s));o.push({key:"C",data:i}),s=i[4],e=i[5];break}case"Q":o.push({key:"Q",data:[...h]}),s=h[2],e=h[3];break;case"q":{const i=h.map(((c,l)=>l%2?c+e:c+s));o.push({key:"Q",data:i}),s=i[2],e=i[3];break}case"A":o.push({key:"A",data:[...h]}),s=h[5],e=h[6];break;case"a":s+=h[5],e+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],s,e]});break;case"H":o.push({key:"H",data:[...h]}),s=h[0];break;case"h":s+=h[0],o.push({key:"H",data:[s]});break;case"V":o.push({key:"V",data:[...h]}),e=h[0];break;case"v":e+=h[0],o.push({key:"V",data:[e]});break;case"S":o.push({key:"S",data:[...h]}),s=h[2],e=h[3];break;case"s":{const i=h.map(((c,l)=>l%2?c+e:c+s));o.push({key:"S",data:i}),s=i[2],e=i[3];break}case"T":o.push({key:"T",data:[...h]}),s=h[0],e=h[1];break;case"t":s+=h[0],e+=h[1],o.push({key:"T",data:[s,e]});break;case"Z":case"z":o.push({key:"Z",data:[]}),s=a,e=n}return o}function xt(t){const s=[];let e="",a=0,n=0,o=0,r=0,h=0,i=0;for(const{key:c,data:l}of t){switch(c){case"M":s.push({key:"M",data:[...l]}),[a,n]=l,[o,r]=l;break;case"C":s.push({key:"C",data:[...l]}),a=l[4],n=l[5],h=l[2],i=l[3];break;case"L":s.push({key:"L",data:[...l]}),[a,n]=l;break;case"H":a=l[0],s.push({key:"L",data:[a,n]});break;case"V":n=l[0],s.push({key:"L",data:[a,n]});break;case"S":{let d=0,f=0;e==="C"||e==="S"?(d=a+(a-h),f=n+(n-i)):(d=a,f=n),s.push({key:"C",data:[d,f,...l]}),h=l[0],i=l[1],a=l[2],n=l[3];break}case"T":{const[d,f]=l;let u=0,p=0;e==="Q"||e==="T"?(u=a+(a-h),p=n+(n-i)):(u=a,p=n);const k=a+2*(u-a)/3,g=n+2*(p-n)/3,y=d+2*(u-d)/3,M=f+2*(p-f)/3;s.push({key:"C",data:[k,g,y,M,d,f]}),h=u,i=p,a=d,n=f;break}case"Q":{const[d,f,u,p]=l,k=a+2*(d-a)/3,g=n+2*(f-n)/3,y=u+2*(d-u)/3,M=p+2*(f-p)/3;s.push({key:"C",data:[k,g,y,M,u,p]}),h=d,i=f,a=u,n=p;break}case"A":{const d=Math.abs(l[0]),f=Math.abs(l[1]),u=l[2],p=l[3],k=l[4],g=l[5],y=l[6];d===0||f===0?(s.push({key:"C",data:[a,n,g,y,g,y]}),a=g,n=y):(a!==g||n!==y)&&(Pt(a,n,g,y,d,f,u,p,k).forEach((function(M){s.push({key:"C",data:M})})),a=g,n=y);break}case"Z":s.push({key:"Z",data:[]}),a=o,n=r}e=c}return s}function $(t,s,e){return[t*Math.cos(e)-s*Math.sin(e),t*Math.sin(e)+s*Math.cos(e)]}function Pt(t,s,e,a,n,o,r,h,i,c){const l=(d=r,Math.PI*d/180);var d;let f=[],u=0,p=0,k=0,g=0;if(c)[u,p,k,g]=c;else{[t,s]=$(t,s,-l),[e,a]=$(e,a,-l);const L=(t-e)/2,P=(s-a)/2;let _=L*L/(n*n)+P*P/(o*o);_>1&&(_=Math.sqrt(_),n*=_,o*=_);const z=n*n,W=o*o,zt=z*W-z*P*P-W*L*L,Wt=z*P*P+W*L*L,lt=(h===i?-1:1)*Math.sqrt(Math.abs(zt/Wt));k=lt*n*P/o+(t+e)/2,g=lt*-o*L/n+(s+a)/2,u=Math.asin(parseFloat(((s-g)/o).toFixed(9))),p=Math.asin(parseFloat(((a-g)/o).toFixed(9))),t<k&&(u=Math.PI-u),e<k&&(p=Math.PI-p),u<0&&(u=2*Math.PI+u),p<0&&(p=2*Math.PI+p),i&&u>p&&(u-=2*Math.PI),!i&&p>u&&(p-=2*Math.PI)}let y=p-u;if(Math.abs(y)>120*Math.PI/180){const L=p,P=e,_=a;p=i&&p>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,f=Pt(e=k+n*Math.cos(p),a=g+o*Math.sin(p),P,_,n,o,r,0,i,[p,L,k,g])}y=p-u;const M=Math.cos(u),m=Math.sin(u),x=Math.cos(p),w=Math.sin(p),v=Math.tan(y/4),D=4/3*n*v,V=4/3*o*v,I=[t,s],T=[t+D*m,s-V*M],it=[e+D*w,a-V*x],ct=[e,a];if(T[0]=2*I[0]-T[0],T[1]=2*I[1]-T[1],c)return[T,it,ct].concat(f);{f=[T,it,ct].concat(f);const L=[];for(let P=0;P<f.length;P+=3){const _=$(f[P][0],f[P][1],l),z=$(f[P+1][0],f[P+1][1],l),W=$(f[P+2][0],f[P+2][1],l);L.push([_[0],_[1],z[0],z[1],W[0],W[1]])}return L}}function vt(t,s,e,a,n){return{type:"path",ops:A(t,s,e,a,n)}}function H(t,s,e){const a=(t||[]).length;if(a>2){const n=[];for(let o=0;o<a-1;o++)n.push(...A(t[o][0],t[o][1],t[o+1][0],t[o+1][1],e));return s&&n.push(...A(t[a-1][0],t[a-1][1],t[0][0],t[0][1],e)),{type:"path",ops:n}}return a===2?vt(t[0][0],t[0][1],t[1][0],t[1][1],e):{type:"path",ops:[]}}function Rt(t,s,e,a,n){return(function(o,r){return H(o,!0,r)})([[t,s],[t+e,s],[t+e,s+a],[t,s+a]],n)}function ut(t,s){if(t.length){const e=typeof t[0][0]=="number"?[t]:t,a=Q(e[0],1*(1+.2*s.roughness),s),n=s.disableMultiStroke?[]:Q(e[0],1.5*(1+.22*s.roughness),gt(s));for(let o=1;o<e.length;o++){const r=e[o];if(r.length){const h=Q(r,1*(1+.2*s.roughness),s),i=s.disableMultiStroke?[]:Q(r,1.5*(1+.22*s.roughness),gt(s));for(const c of h)c.op!=="move"&&a.push(c);for(const c of i)c.op!=="move"&&n.push(c)}}return{type:"path",ops:a.concat(n)}}return{type:"path",ops:[]}}function pt(t,s,e){const a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(s/2,2))/2)),n=Math.ceil(Math.max(e.curveStepCount,e.curveStepCount/Math.sqrt(200)*a)),o=2*Math.PI/n;let r=Math.abs(t/2),h=Math.abs(s/2);const i=1-e.curveFitting;return r+=b(r*i,e),h+=b(h*i,e),{increment:o,rx:r,ry:h}}function et(t,s,e,a){const[n,o]=Mt(a.increment,t,s,a.rx,a.ry,1,a.increment*K(.1,K(.4,1,e),e),e);let r=U(n,null,e);if(!e.disableMultiStroke&&e.roughness!==0){const[h]=Mt(a.increment,t,s,a.rx,a.ry,1.5,0,e),i=U(h,null,e);r=r.concat(i)}return{estimatedPoints:o,opset:{type:"path",ops:r}}}function ft(t,s,e,a,n,o,r,h,i){const c=t,l=s;let d=Math.abs(e/2),f=Math.abs(a/2);d+=b(.01*d,i),f+=b(.01*f,i);let u=n,p=o;for(;u<0;)u+=2*Math.PI,p+=2*Math.PI;p-u>2*Math.PI&&(u=0,p=2*Math.PI);const k=2*Math.PI/i.curveStepCount,g=Math.min(k/2,(p-u)/2),y=kt(g,c,l,d,f,u,p,1,i);if(!i.disableMultiStroke){const M=kt(g,c,l,d,f,u,p,1.5,i);y.push(...M)}return r&&(h?y.push(...A(c,l,c+d*Math.cos(u),l+f*Math.sin(u),i),...A(c,l,c+d*Math.cos(p),l+f*Math.sin(p),i)):y.push({op:"lineTo",data:[c,l]},{op:"lineTo",data:[c+d*Math.cos(u),l+f*Math.sin(u)]})),{type:"path",ops:y}}function dt(t,s){const e=xt(wt(rt(t))),a=[];let n=[0,0],o=[0,0];for(const{key:r,data:h}of e)switch(r){case"M":o=[h[0],h[1]],n=[h[0],h[1]];break;case"L":a.push(...A(o[0],o[1],h[0],h[1],s)),o=[h[0],h[1]];break;case"C":{const[i,c,l,d,f,u]=h;a.push(...jt(i,c,l,d,f,u,o,s)),o=[f,u];break}case"Z":a.push(...A(o[0],o[1],n[0],n[1],s)),o=[n[0],n[1]]}return{type:"path",ops:a}}function st(t,s){const e=[];for(const a of t)if(a.length){const n=s.maxRandomnessOffset||0,o=a.length;if(o>2){e.push({op:"move",data:[a[0][0]+b(n,s),a[0][1]+b(n,s)]});for(let r=1;r<o;r++)e.push({op:"lineTo",data:[a[r][0]+b(n,s),a[r][1]+b(n,s)]})}}return{type:"fillPath",ops:e}}function E(t,s){return(function(e,a){let n=e.fillStyle||"hachure";if(!S[n])switch(n){case"zigzag":S[n]||(S[n]=new Ot(a));break;case"cross-hatch":S[n]||(S[n]=new Lt(a));break;case"dots":S[n]||(S[n]=new Tt(a));break;case"dashed":S[n]||(S[n]=new Dt(a));break;case"zigzag-line":S[n]||(S[n]=new _t(a));break;default:n="hachure",S[n]||(S[n]=new B(a))}return S[n]})(s,Ct).fillPolygons(t,s)}function gt(t){const s=Object.assign({},t);return s.randomizer=void 0,t.seed&&(s.seed=t.seed+1),s}function St(t){return t.randomizer||(t.randomizer=new At(t.seed||0)),t.randomizer.next()}function K(t,s,e,a=1){return e.roughness*a*(St(e)*(s-t)+t)}function b(t,s,e=1){return K(-t,t,s,e)}function A(t,s,e,a,n,o=!1){const r=o?n.disableMultiStrokeFill:n.disableMultiStroke,h=at(t,s,e,a,n,!0,!1);if(r)return h;const i=at(t,s,e,a,n,!0,!0);return h.concat(i)}function at(t,s,e,a,n,o,r){const h=Math.pow(t-e,2)+Math.pow(s-a,2),i=Math.sqrt(h);let c=1;c=i<200?1:i>500?.4:-.0016668*i+1.233334;let l=n.maxRandomnessOffset||0;l*l*100>h&&(l=i/10);const d=l/2,f=.2+.2*St(n);let u=n.bowing*n.maxRandomnessOffset*(a-s)/200,p=n.bowing*n.maxRandomnessOffset*(t-e)/200;u=b(u,n,c),p=b(p,n,c);const k=[],g=()=>b(d,n,c),y=()=>b(l,n,c),M=n.preserveVertices;return o&&(r?k.push({op:"move",data:[t+(M?0:g()),s+(M?0:g())]}):k.push({op:"move",data:[t+(M?0:b(l,n,c)),s+(M?0:b(l,n,c))]})),r?k.push({op:"bcurveTo",data:[u+t+(e-t)*f+g(),p+s+(a-s)*f+g(),u+t+2*(e-t)*f+g(),p+s+2*(a-s)*f+g(),e+(M?0:g()),a+(M?0:g())]}):k.push({op:"bcurveTo",data:[u+t+(e-t)*f+y(),p+s+(a-s)*f+y(),u+t+2*(e-t)*f+y(),p+s+2*(a-s)*f+y(),e+(M?0:y()),a+(M?0:y())]}),k}function Q(t,s,e){if(!t.length)return[];const a=[];a.push([t[0][0]+b(s,e),t[0][1]+b(s,e)]),a.push([t[0][0]+b(s,e),t[0][1]+b(s,e)]);for(let n=1;n<t.length;n++)a.push([t[n][0]+b(s,e),t[n][1]+b(s,e)]),n===t.length-1&&a.push([t[n][0]+b(s,e),t[n][1]+b(s,e)]);return U(a,null,e)}function U(t,s,e){const a=t.length,n=[];if(a>3){const o=[],r=1-e.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let h=1;h+2<a;h++){const i=t[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*t[h+1][0]-r*t[h-1][0])/6,i[1]+(r*t[h+1][1]-r*t[h-1][1])/6],o[2]=[t[h+1][0]+(r*t[h][0]-r*t[h+2][0])/6,t[h+1][1]+(r*t[h][1]-r*t[h+2][1])/6],o[3]=[t[h+1][0],t[h+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(s&&s.length===2){const h=e.maxRandomnessOffset;n.push({op:"lineTo",data:[s[0]+b(h,e),s[1]+b(h,e)]})}}else a===3?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):a===2&&n.push(...at(t[0][0],t[0][1],t[1][0],t[1][1],e,!0,!0));return n}function Mt(t,s,e,a,n,o,r,h){const i=[],c=[];if(h.roughness===0){t/=4,c.push([s+a*Math.cos(-t),e+n*Math.sin(-t)]);for(let l=0;l<=2*Math.PI;l+=t){const d=[s+a*Math.cos(l),e+n*Math.sin(l)];i.push(d),c.push(d)}c.push([s+a*Math.cos(0),e+n*Math.sin(0)]),c.push([s+a*Math.cos(t),e+n*Math.sin(t)])}else{const l=b(.5,h)-Math.PI/2;c.push([b(o,h)+s+.9*a*Math.cos(l-t),b(o,h)+e+.9*n*Math.sin(l-t)]);const d=2*Math.PI+l-.01;for(let f=l;f<d;f+=t){const u=[b(o,h)+s+a*Math.cos(f),b(o,h)+e+n*Math.sin(f)];i.push(u),c.push(u)}c.push([b(o,h)+s+a*Math.cos(l+2*Math.PI+.5*r),b(o,h)+e+n*Math.sin(l+2*Math.PI+.5*r)]),c.push([b(o,h)+s+.98*a*Math.cos(l+r),b(o,h)+e+.98*n*Math.sin(l+r)]),c.push([b(o,h)+s+.9*a*Math.cos(l+.5*r),b(o,h)+e+.9*n*Math.sin(l+.5*r)])}return[c,i]}function kt(t,s,e,a,n,o,r,h,i){const c=o+b(.1,i),l=[];l.push([b(h,i)+s+.9*a*Math.cos(c-t),b(h,i)+e+.9*n*Math.sin(c-t)]);for(let d=c;d<=r;d+=t)l.push([b(h,i)+s+a*Math.cos(d),b(h,i)+e+n*Math.sin(d)]);return l.push([s+a*Math.cos(r),e+n*Math.sin(r)]),l.push([s+a*Math.cos(r),e+n*Math.sin(r)]),U(l,null,i)}function jt(t,s,e,a,n,o,r,h){const i=[],c=[h.maxRandomnessOffset||1,(h.maxRandomnessOffset||1)+.3];let l=[0,0];const d=h.disableMultiStroke?1:2,f=h.preserveVertices;for(let u=0;u<d;u++)u===0?i.push({op:"move",data:[r[0],r[1]]}):i.push({op:"move",data:[r[0]+(f?0:b(c[0],h)),r[1]+(f?0:b(c[0],h))]}),l=f?[n,o]:[n+b(c[u],h),o+b(c[u],h)],i.push({op:"bcurveTo",data:[t+b(c[u],h),s+b(c[u],h),e+b(c[u],h),a+b(c[u],h),l[0],l[1]]});return i}function R(t){return[...t]}function bt(t,s=0){const e=t.length;if(e<3)throw new Error("A curve must have at least three points.");const a=[];if(e===3)a.push(R(t[0]),R(t[1]),R(t[2]),R(t[2]));else{const n=[];n.push(t[0],t[0]);for(let h=1;h<t.length;h++)n.push(t[h]),h===t.length-1&&n.push(t[h]);const o=[],r=1-s;a.push(R(n[0]));for(let h=1;h+2<n.length;h++){const i=n[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*n[h+1][0]-r*n[h-1][0])/6,i[1]+(r*n[h+1][1]-r*n[h-1][1])/6],o[2]=[n[h+1][0]+(r*n[h][0]-r*n[h+2][0])/6,n[h+1][1]+(r*n[h][1]-r*n[h+2][1])/6],o[3]=[n[h+1][0],n[h+1][1]],a.push(o[1],o[2],o[3])}}return a}function N(t,s){return Math.pow(t[0]-s[0],2)+Math.pow(t[1]-s[1],2)}function qt(t,s,e){const a=N(s,e);if(a===0)return N(t,s);let n=((t[0]-s[0])*(e[0]-s[0])+(t[1]-s[1])*(e[1]-s[1]))/a;return n=Math.max(0,Math.min(1,n)),N(t,C(s,e,n))}function C(t,s,e){return[t[0]+(s[0]-t[0])*e,t[1]+(s[1]-t[1])*e]}function ot(t,s,e,a){const n=a||[];if((function(h,i){const c=h[i+0],l=h[i+1],d=h[i+2],f=h[i+3];let u=3*l[0]-2*c[0]-f[0];u*=u;let p=3*l[1]-2*c[1]-f[1];p*=p;let k=3*d[0]-2*f[0]-c[0];k*=k;let g=3*d[1]-2*f[1]-c[1];return g*=g,u<k&&(u=k),p<g&&(p=g),u+p})(t,s)<e){const h=t[s+0];n.length?(o=n[n.length-1],r=h,Math.sqrt(N(o,r))>1&&n.push(h)):n.push(h),n.push(t[s+3])}else{const i=t[s+0],c=t[s+1],l=t[s+2],d=t[s+3],f=C(i,c,.5),u=C(c,l,.5),p=C(l,d,.5),k=C(f,u,.5),g=C(u,p,.5),y=C(k,g,.5);ot([i,f,k,y],0,e,n),ot([y,g,p,d],0,e,n)}var o,r;return n}function Ft(t,s){return X(t,0,t.length,s)}function X(t,s,e,a,n){const o=n||[],r=t[s],h=t[e-1];let i=0,c=1;for(let l=s+1;l<e-1;++l){const d=qt(t[l],r,h);d>i&&(i=d,c=l)}return Math.sqrt(i)>a?(X(t,s,c+1,a,o),X(t,c,e,a,o)):(o.length||o.push(r),o.push(h)),o}function nt(t,s=.15,e){const a=[],n=(t.length-1)/3;for(let o=0;o<n;o++)ot(t,3*o,s,a);return e&&e>0?X(a,0,a.length,e):a}var B,Ot,Lt,Tt,Dt,_t,S,At,It,J,ht,F,Ct,O,j,mt,q,yt,Vt,Qt=Et((()=>{B=class{constructor(t){this.helper=t}fillPolygons(t,s){return this._fillPolygons(t,s)}_fillPolygons(t,s){const e=G(t,s);return{type:"fillSketch",ops:this.renderLines(e,s)}}renderLines(t,s){const e=[];for(const a of t)e.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],s));return e}},Ot=class extends B{fillPolygons(t,s){let e=s.hachureGap;e<0&&(e=4*s.strokeWidth),e=Math.max(e,.1);const a=G(t,Object.assign({},s,{hachureGap:e})),n=Math.PI/180*s.hachureAngle,o=[],r=.5*e*Math.cos(n),h=.5*e*Math.sin(n);for(const[i,c]of a)Z([i,c])&&o.push([[i[0]-r,i[1]+h],[...c]],[[i[0]+r,i[1]-h],[...c]]);return{type:"fillSketch",ops:this.renderLines(o,s)}}},Lt=class extends B{fillPolygons(t,s){const e=this._fillPolygons(t,s),a=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),n=this._fillPolygons(t,a);return e.ops=e.ops.concat(n.ops),e}},Tt=class{constructor(t){this.helper=t}fillPolygons(t,s){const e=G(t,s=Object.assign({},s,{hachureAngle:0}));return this.dotsOnLines(e,s)}dotsOnLines(t,s){const e=[];let a=s.hachureGap;a<0&&(a=4*s.strokeWidth),a=Math.max(a,.1);let n=s.fillWeight;n<0&&(n=s.strokeWidth/2);const o=a/4;for(const r of t){const h=Z(r),i=h/a,c=Math.ceil(i)-1,l=h-c*a,d=(r[0][0]+r[1][0])/2-a/4,f=Math.min(r[0][1],r[1][1]);for(let u=0;u<c;u++){const p=f+l+u*a,k=d-o+2*Math.random()*o,g=p-o+2*Math.random()*o,y=this.helper.ellipse(k,g,n,n,s);e.push(...y.ops)}}return{type:"fillSketch",ops:e}}},Dt=class{constructor(t){this.helper=t}fillPolygons(t,s){const e=G(t,s);return{type:"fillSketch",ops:this.dashedLine(e,s)}}dashedLine(t,s){const e=s.dashOffset<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashOffset,a=s.dashGap<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashGap,n=[];return t.forEach((o=>{const r=Z(o),h=Math.floor(r/(e+a)),i=(r+a-h*(e+a))/2;let c=o[0],l=o[1];c[0]>l[0]&&(c=o[1],l=o[0]);const d=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let f=0;f<h;f++){const u=f*(e+a),p=u+e,k=[c[0]+u*Math.cos(d)+i*Math.cos(d),c[1]+u*Math.sin(d)+i*Math.sin(d)],g=[c[0]+p*Math.cos(d)+i*Math.cos(d),c[1]+p*Math.sin(d)+i*Math.sin(d)];n.push(...this.helper.doubleLineOps(k[0],k[1],g[0],g[1],s))}})),n}},_t=class{constructor(t){this.helper=t}fillPolygons(t,s){const e=s.hachureGap<0?4*s.strokeWidth:s.hachureGap,a=s.zigzagOffset<0?e:s.zigzagOffset,n=G(t,s=Object.assign({},s,{hachureGap:e+a}));return{type:"fillSketch",ops:this.zigzagLines(n,a,s)}}zigzagLines(t,s,e){const a=[];return t.forEach((n=>{const o=Z(n),r=Math.round(o/(2*s));let h=n[0],i=n[1];h[0]>i[0]&&(h=n[1],i=n[0]);const c=Math.atan((i[1]-h[1])/(i[0]-h[0]));for(let l=0;l<r;l++){const d=2*l*s,f=2*(l+1)*s,u=Math.sqrt(2*Math.pow(s,2)),p=[h[0]+d*Math.cos(c),h[1]+d*Math.sin(c)],k=[h[0]+f*Math.cos(c),h[1]+f*Math.sin(c)],g=[p[0]+u*Math.cos(c+Math.PI/4),p[1]+u*Math.sin(c+Math.PI/4)];a.push(...this.helper.doubleLineOps(p[0],p[1],g[0],g[1],e),...this.helper.doubleLineOps(g[0],g[1],k[0],k[1],e))}})),a}},S={},At=class{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},It=0,J=1,ht=2,F={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},Ct={randOffset:function(t,s){return b(t,s)},randOffsetWithRange:function(t,s,e){return K(t,s,e)},ellipse:function(t,s,e,a,n){return et(t,s,n,pt(e,a,n)).opset},doubleLineOps:function(t,s,e,a,n){return A(t,s,e,a,n,!0)}},O="none",j=class{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,s,e){return{shape:t,sets:s||[],options:e||this.defaultOptions}}line(t,s,e,a,n){const o=this._o(n);return this._d("line",[vt(t,s,e,a,o)],o)}rectangle(t,s,e,a,n){const o=this._o(n),r=[],h=Rt(t,s,e,a,o);if(o.fill){const i=[[t,s],[t+e,s],[t+e,s+a],[t,s+a]];o.fillStyle==="solid"?r.push(st([i],o)):r.push(E([i],o))}return o.stroke!==O&&r.push(h),this._d("rectangle",r,o)}ellipse(t,s,e,a,n){const o=this._o(n),r=[],h=pt(e,a,o),i=et(t,s,o,h);if(o.fill)if(o.fillStyle==="solid"){const c=et(t,s,o,h).opset;c.type="fillPath",r.push(c)}else r.push(E([i.estimatedPoints],o));return o.stroke!==O&&r.push(i.opset),this._d("ellipse",r,o)}circle(t,s,e,a){const n=this.ellipse(t,s,e,e,a);return n.shape="circle",n}linearPath(t,s){const e=this._o(s);return this._d("linearPath",[H(t,!1,e)],e)}arc(t,s,e,a,n,o,r=!1,h){const i=this._o(h),c=[],l=ft(t,s,e,a,n,o,r,!0,i);if(r&&i.fill)if(i.fillStyle==="solid"){const d=Object.assign({},i);d.disableMultiStroke=!0;const f=ft(t,s,e,a,n,o,!0,!1,d);f.type="fillPath",c.push(f)}else c.push((function(d,f,u,p,k,g,y){const M=d,m=f;let x=Math.abs(u/2),w=Math.abs(p/2);x+=b(.01*x,y),w+=b(.01*w,y);let v=k,D=g;for(;v<0;)v+=2*Math.PI,D+=2*Math.PI;D-v>2*Math.PI&&(v=0,D=2*Math.PI);const V=(D-v)/y.curveStepCount,I=[];for(let T=v;T<=D;T+=V)I.push([M+x*Math.cos(T),m+w*Math.sin(T)]);return I.push([M+x*Math.cos(D),m+w*Math.sin(D)]),I.push([M,m]),E([I],y)})(t,s,e,a,n,o,i));return i.stroke!==O&&c.push(l),this._d("arc",c,i)}curve(t,s){const e=this._o(s),a=[],n=ut(t,e);if(e.fill&&e.fill!==O)if(e.fillStyle==="solid"){const o=ut(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],r=t;if(r.length){const h=typeof r[0][0]=="number"?[r]:r;for(const i of h)i.length<3?o.push(...i):i.length===3?o.push(...nt(bt([i[0],i[0],i[1],i[2]]),10,(1+e.roughness)/2)):o.push(...nt(bt(i),10,(1+e.roughness)/2))}o.length&&a.push(E([o],e))}return e.stroke!==O&&a.push(n),this._d("curve",a,e)}polygon(t,s){const e=this._o(s),a=[],n=H(t,!0,e);return e.fill&&(e.fillStyle==="solid"?a.push(st([t],e)):a.push(E([t],e))),e.stroke!==O&&a.push(n),this._d("polygon",a,e)}path(t,s){const e=this._o(s),a=[];if(!t)return this._d("path",a,e);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const n=e.fill&&e.fill!=="transparent"&&e.fill!==O,o=e.stroke!==O,r=!!(e.simplification&&e.simplification<1),h=(function(c,l,d){const f=xt(wt(rt(c))),u=[];let p=[],k=[0,0],g=[];const y=()=>{g.length>=4&&p.push(...nt(g,l)),g=[]},M=()=>{y(),p.length&&(u.push(p),p=[])};for(const{key:x,data:w}of f)switch(x){case"M":M(),k=[w[0],w[1]],p.push(k);break;case"L":y(),p.push([w[0],w[1]]);break;case"C":if(!g.length){const v=p.length?p[p.length-1]:k;g.push([v[0],v[1]])}g.push([w[0],w[1]]),g.push([w[2],w[3]]),g.push([w[4],w[5]]);break;case"Z":y(),p.push([k[0],k[1]])}if(M(),!d)return u;const m=[];for(const x of u){const w=Ft(x,d);w.length&&m.push(w)}return m})(t,1,r?4-4*(e.simplification||1):(1+e.roughness)/2),i=dt(t,e);if(n)if(e.fillStyle==="solid")if(h.length===1){const c=dt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else a.push(st(h,e));else a.push(E(h,e));return o&&(r?h.forEach((c=>{a.push(H(c,!1,e))})):a.push(i)),this._d("path",a,e)}opsToPath(t,s){let e="";for(const a of t.ops){const n=typeof s=="number"&&s>=0?a.data.map((o=>+o.toFixed(s))):a.data;switch(a.op){case"move":e+=`M${n[0]} ${n[1]} `;break;case"bcurveTo":e+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case"lineTo":e+=`L${n[0]} ${n[1]} `}}return e.trim()}toPaths(t){const s=t.sets||[],e=t.options||this.defaultOptions,a=[];for(const n of s){let o=null;switch(n.type){case"path":o={d:this.opsToPath(n),stroke:e.stroke,strokeWidth:e.strokeWidth,fill:O};break;case"fillPath":o={d:this.opsToPath(n),stroke:O,strokeWidth:0,fill:e.fill||O};break;case"fillSketch":o=this.fillSketch(n,e)}o&&a.push(o)}return a}fillSketch(t,s){let e=s.fillWeight;return e<0&&(e=s.strokeWidth/2),{d:this.opsToPath(t),stroke:s.fill||O,strokeWidth:e,fill:O}}_mergedShape(t){return t.filter(((s,e)=>e===0||s.op!=="move"))}},mt=class{constructor(t,s){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new j(s)}draw(t){const s=t.sets||[],e=t.options||this.getDefaultOptions(),a=this.ctx,n=t.options.fixedDecimalPlaceDigits;for(const o of s)switch(o.type){case"path":a.save(),a.strokeStyle=e.stroke==="none"?"transparent":e.stroke,a.lineWidth=e.strokeWidth,e.strokeLineDash&&a.setLineDash(e.strokeLineDash),e.strokeLineDashOffset&&(a.lineDashOffset=e.strokeLineDashOffset),this._drawToContext(a,o,n),a.restore();break;case"fillPath":{a.save(),a.fillStyle=e.fill||"";const r=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,o,n,r),a.restore();break}case"fillSketch":this.fillSketch(a,o,e)}}fillSketch(t,s,e){let a=e.fillWeight;a<0&&(a=e.strokeWidth/2),t.save(),e.fillLineDash&&t.setLineDash(e.fillLineDash),e.fillLineDashOffset&&(t.lineDashOffset=e.fillLineDashOffset),t.strokeStyle=e.fill||"",t.lineWidth=a,this._drawToContext(t,s,e.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,s,e,a="nonzero"){t.beginPath();for(const n of s.ops){const o=typeof e=="number"&&e>=0?n.data.map((r=>+r.toFixed(e))):n.data;switch(n.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}s.type==="fillPath"?t.fill(a):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,s,e,a,n){const o=this.gen.line(t,s,e,a,n);return this.draw(o),o}rectangle(t,s,e,a,n){const o=this.gen.rectangle(t,s,e,a,n);return this.draw(o),o}ellipse(t,s,e,a,n){const o=this.gen.ellipse(t,s,e,a,n);return this.draw(o),o}circle(t,s,e,a){const n=this.gen.circle(t,s,e,a);return this.draw(n),n}linearPath(t,s){const e=this.gen.linearPath(t,s);return this.draw(e),e}polygon(t,s){const e=this.gen.polygon(t,s);return this.draw(e),e}arc(t,s,e,a,n,o,r=!1,h){const i=this.gen.arc(t,s,e,a,n,o,r,h);return this.draw(i),i}curve(t,s){const e=this.gen.curve(t,s);return this.draw(e),e}path(t,s){const e=this.gen.path(t,s);return this.draw(e),e}},q="http://www.w3.org/2000/svg",yt=class{constructor(t,s){this.svg=t,this.gen=new j(s)}draw(t){const s=t.sets||[],e=t.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,n=a.createElementNS(q,"g"),o=t.options.fixedDecimalPlaceDigits;for(const r of s){let h=null;switch(r.type){case"path":h=a.createElementNS(q,"path"),h.setAttribute("d",this.opsToPath(r,o)),h.setAttribute("stroke",e.stroke),h.setAttribute("stroke-width",e.strokeWidth+""),h.setAttribute("fill","none"),e.strokeLineDash&&h.setAttribute("stroke-dasharray",e.strokeLineDash.join(" ").trim()),e.strokeLineDashOffset&&h.setAttribute("stroke-dashoffset",`${e.strokeLineDashOffset}`);break;case"fillPath":h=a.createElementNS(q,"path"),h.setAttribute("d",this.opsToPath(r,o)),h.setAttribute("stroke","none"),h.setAttribute("stroke-width","0"),h.setAttribute("fill",e.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||h.setAttribute("fill-rule","evenodd");break;case"fillSketch":h=this.fillSketch(a,r,e)}h&&n.appendChild(h)}return n}fillSketch(t,s,e){let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);const n=t.createElementNS(q,"path");return n.setAttribute("d",this.opsToPath(s,e.fixedDecimalPlaceDigits)),n.setAttribute("stroke",e.fill||""),n.setAttribute("stroke-width",a+""),n.setAttribute("fill","none"),e.fillLineDash&&n.setAttribute("stroke-dasharray",e.fillLineDash.join(" ").trim()),e.fillLineDashOffset&&n.setAttribute("stroke-dashoffset",`${e.fillLineDashOffset}`),n}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,s){return this.gen.opsToPath(t,s)}line(t,s,e,a,n){const o=this.gen.line(t,s,e,a,n);return this.draw(o)}rectangle(t,s,e,a,n){const o=this.gen.rectangle(t,s,e,a,n);return this.draw(o)}ellipse(t,s,e,a,n){const o=this.gen.ellipse(t,s,e,a,n);return this.draw(o)}circle(t,s,e,a){const n=this.gen.circle(t,s,e,a);return this.draw(n)}linearPath(t,s){const e=this.gen.linearPath(t,s);return this.draw(e)}polygon(t,s){const e=this.gen.polygon(t,s);return this.draw(e)}arc(t,s,e,a,n,o,r=!1,h){const i=this.gen.arc(t,s,e,a,n,o,r,h);return this.draw(i)}curve(t,s){const e=this.gen.curve(t,s);return this.draw(e)}path(t,s){const e=this.gen.path(t,s);return this.draw(e)}},Vt={canvas:(t,s)=>new mt(t,s),svg:(t,s)=>new yt(t,s),generator:t=>new j(t),newSeed:()=>j.newSeed()}}));export{Qt as n,Vt as t};
1
+ import{wa as Et}from"./index-DN4SafrP.js";function Y(t,s,e){if(t&&t.length){const[a,n]=s,o=Math.PI/180*e,r=Math.cos(o),h=Math.sin(o);for(const i of t){const[c,l]=i;i[0]=(c-a)*r-(l-n)*h+a,i[1]=(c-a)*h+(l-n)*r+n}}}function Gt(t,s){return t[0]===s[0]&&t[1]===s[1]}function $t(t,s,e,a=1){const n=e,o=Math.max(s,.1),r=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,h=[0,0];if(n)for(const c of r)Y(c,h,n);const i=(function(c,l,d){const f=[];for(const M of c){const m=[...M];Gt(m[0],m[m.length-1])||m.push([m[0][0],m[0][1]]),m.length>2&&f.push(m)}const u=[];l=Math.max(l,.1);const p=[];for(const M of f)for(let m=0;m<M.length-1;m++){const x=M[m],w=M[m+1];if(x[1]!==w[1]){const v=Math.min(x[1],w[1]);p.push({ymin:v,ymax:Math.max(x[1],w[1]),x:v===x[1]?x[0]:w[0],islope:(w[0]-x[0])/(w[1]-x[1])})}}if(p.sort(((M,m)=>M.ymin<m.ymin?-1:M.ymin>m.ymin?1:M.x<m.x?-1:M.x>m.x?1:M.ymax===m.ymax?0:(M.ymax-m.ymax)/Math.abs(M.ymax-m.ymax))),!p.length)return u;let k=[],g=p[0].ymin,y=0;for(;k.length||p.length;){if(p.length){let M=-1;for(let m=0;m<p.length&&!(p[m].ymin>g);m++)M=m;p.splice(0,M+1).forEach((m=>{k.push({s:g,edge:m})}))}if(k=k.filter((M=>!(M.edge.ymax<=g))),k.sort(((M,m)=>M.edge.x===m.edge.x?0:(M.edge.x-m.edge.x)/Math.abs(M.edge.x-m.edge.x))),(d!==1||y%l==0)&&k.length>1)for(let M=0;M<k.length;M+=2){const m=M+1;if(m>=k.length)break;const x=k[M].edge,w=k[m].edge;u.push([[Math.round(x.x),g],[Math.round(w.x),g]])}g+=d,k.forEach((M=>{M.edge.x=M.edge.x+d*M.edge.islope})),y++}return u})(r,o,a);if(n){for(const c of r)Y(c,h,-n);(function(c,l,d){const f=[];c.forEach((u=>f.push(...u))),Y(f,l,d)})(i,h,-n)}return i}function G(t,s){var e;const a=s.hachureAngle+90;let n=s.hachureGap;n<0&&(n=4*s.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return s.roughness>=1&&(((e=s.randomizer)===null||e===void 0?void 0:e.next())||Math.random())>.7&&(o=n),$t(t,n,a,o||1)}function Z(t){const s=t[0],e=t[1];return Math.sqrt(Math.pow(s[0]-e[0],2)+Math.pow(s[1]-e[1],2))}function tt(t,s){return t.type===s}function rt(t){const s=[],e=(function(r){const h=new Array;for(;r!=="";)if(r.match(/^([ \t\r\n,]+)/))r=r.substr(RegExp.$1.length);else if(r.match(/^([aAcChHlLmMqQsStTvVzZ])/))h[h.length]={type:It,text:RegExp.$1},r=r.substr(RegExp.$1.length);else{if(!r.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];h[h.length]={type:J,text:`${parseFloat(RegExp.$1)}`},r=r.substr(RegExp.$1.length)}return h[h.length]={type:ht,text:""},h})(t);let a="BOD",n=0,o=e[n];for(;!tt(o,ht);){let r=0;const h=[];if(a==="BOD"){if(o.text!=="M"&&o.text!=="m")return rt("M0,0"+t);n++,r=F[o.text],a=o.text}else tt(o,J)?r=F[a]:(n++,r=F[o.text],a=o.text);if(!(n+r<e.length))throw new Error("Path data ended short");for(let i=n;i<n+r;i++){const c=e[i];if(!tt(c,J))throw new Error("Param not a number: "+a+","+c.text);h[h.length]=+c.text}if(typeof F[a]!="number")throw new Error("Bad segment: "+a);{const i={key:a,data:h};s.push(i),n+=r,o=e[n],a==="M"&&(a="L"),a==="m"&&(a="l")}}return s}function wt(t){let s=0,e=0,a=0,n=0;const o=[];for(const{key:r,data:h}of t)switch(r){case"M":o.push({key:"M",data:[...h]}),[s,e]=h,[a,n]=h;break;case"m":s+=h[0],e+=h[1],o.push({key:"M",data:[s,e]}),a=s,n=e;break;case"L":o.push({key:"L",data:[...h]}),[s,e]=h;break;case"l":s+=h[0],e+=h[1],o.push({key:"L",data:[s,e]});break;case"C":o.push({key:"C",data:[...h]}),s=h[4],e=h[5];break;case"c":{const i=h.map(((c,l)=>l%2?c+e:c+s));o.push({key:"C",data:i}),s=i[4],e=i[5];break}case"Q":o.push({key:"Q",data:[...h]}),s=h[2],e=h[3];break;case"q":{const i=h.map(((c,l)=>l%2?c+e:c+s));o.push({key:"Q",data:i}),s=i[2],e=i[3];break}case"A":o.push({key:"A",data:[...h]}),s=h[5],e=h[6];break;case"a":s+=h[5],e+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],s,e]});break;case"H":o.push({key:"H",data:[...h]}),s=h[0];break;case"h":s+=h[0],o.push({key:"H",data:[s]});break;case"V":o.push({key:"V",data:[...h]}),e=h[0];break;case"v":e+=h[0],o.push({key:"V",data:[e]});break;case"S":o.push({key:"S",data:[...h]}),s=h[2],e=h[3];break;case"s":{const i=h.map(((c,l)=>l%2?c+e:c+s));o.push({key:"S",data:i}),s=i[2],e=i[3];break}case"T":o.push({key:"T",data:[...h]}),s=h[0],e=h[1];break;case"t":s+=h[0],e+=h[1],o.push({key:"T",data:[s,e]});break;case"Z":case"z":o.push({key:"Z",data:[]}),s=a,e=n}return o}function xt(t){const s=[];let e="",a=0,n=0,o=0,r=0,h=0,i=0;for(const{key:c,data:l}of t){switch(c){case"M":s.push({key:"M",data:[...l]}),[a,n]=l,[o,r]=l;break;case"C":s.push({key:"C",data:[...l]}),a=l[4],n=l[5],h=l[2],i=l[3];break;case"L":s.push({key:"L",data:[...l]}),[a,n]=l;break;case"H":a=l[0],s.push({key:"L",data:[a,n]});break;case"V":n=l[0],s.push({key:"L",data:[a,n]});break;case"S":{let d=0,f=0;e==="C"||e==="S"?(d=a+(a-h),f=n+(n-i)):(d=a,f=n),s.push({key:"C",data:[d,f,...l]}),h=l[0],i=l[1],a=l[2],n=l[3];break}case"T":{const[d,f]=l;let u=0,p=0;e==="Q"||e==="T"?(u=a+(a-h),p=n+(n-i)):(u=a,p=n);const k=a+2*(u-a)/3,g=n+2*(p-n)/3,y=d+2*(u-d)/3,M=f+2*(p-f)/3;s.push({key:"C",data:[k,g,y,M,d,f]}),h=u,i=p,a=d,n=f;break}case"Q":{const[d,f,u,p]=l,k=a+2*(d-a)/3,g=n+2*(f-n)/3,y=u+2*(d-u)/3,M=p+2*(f-p)/3;s.push({key:"C",data:[k,g,y,M,u,p]}),h=d,i=f,a=u,n=p;break}case"A":{const d=Math.abs(l[0]),f=Math.abs(l[1]),u=l[2],p=l[3],k=l[4],g=l[5],y=l[6];d===0||f===0?(s.push({key:"C",data:[a,n,g,y,g,y]}),a=g,n=y):(a!==g||n!==y)&&(Pt(a,n,g,y,d,f,u,p,k).forEach((function(M){s.push({key:"C",data:M})})),a=g,n=y);break}case"Z":s.push({key:"Z",data:[]}),a=o,n=r}e=c}return s}function $(t,s,e){return[t*Math.cos(e)-s*Math.sin(e),t*Math.sin(e)+s*Math.cos(e)]}function Pt(t,s,e,a,n,o,r,h,i,c){const l=(d=r,Math.PI*d/180);var d;let f=[],u=0,p=0,k=0,g=0;if(c)[u,p,k,g]=c;else{[t,s]=$(t,s,-l),[e,a]=$(e,a,-l);const L=(t-e)/2,P=(s-a)/2;let _=L*L/(n*n)+P*P/(o*o);_>1&&(_=Math.sqrt(_),n*=_,o*=_);const z=n*n,W=o*o,zt=z*W-z*P*P-W*L*L,Wt=z*P*P+W*L*L,lt=(h===i?-1:1)*Math.sqrt(Math.abs(zt/Wt));k=lt*n*P/o+(t+e)/2,g=lt*-o*L/n+(s+a)/2,u=Math.asin(parseFloat(((s-g)/o).toFixed(9))),p=Math.asin(parseFloat(((a-g)/o).toFixed(9))),t<k&&(u=Math.PI-u),e<k&&(p=Math.PI-p),u<0&&(u=2*Math.PI+u),p<0&&(p=2*Math.PI+p),i&&u>p&&(u-=2*Math.PI),!i&&p>u&&(p-=2*Math.PI)}let y=p-u;if(Math.abs(y)>120*Math.PI/180){const L=p,P=e,_=a;p=i&&p>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,f=Pt(e=k+n*Math.cos(p),a=g+o*Math.sin(p),P,_,n,o,r,0,i,[p,L,k,g])}y=p-u;const M=Math.cos(u),m=Math.sin(u),x=Math.cos(p),w=Math.sin(p),v=Math.tan(y/4),D=4/3*n*v,V=4/3*o*v,I=[t,s],T=[t+D*m,s-V*M],it=[e+D*w,a-V*x],ct=[e,a];if(T[0]=2*I[0]-T[0],T[1]=2*I[1]-T[1],c)return[T,it,ct].concat(f);{f=[T,it,ct].concat(f);const L=[];for(let P=0;P<f.length;P+=3){const _=$(f[P][0],f[P][1],l),z=$(f[P+1][0],f[P+1][1],l),W=$(f[P+2][0],f[P+2][1],l);L.push([_[0],_[1],z[0],z[1],W[0],W[1]])}return L}}function vt(t,s,e,a,n){return{type:"path",ops:A(t,s,e,a,n)}}function H(t,s,e){const a=(t||[]).length;if(a>2){const n=[];for(let o=0;o<a-1;o++)n.push(...A(t[o][0],t[o][1],t[o+1][0],t[o+1][1],e));return s&&n.push(...A(t[a-1][0],t[a-1][1],t[0][0],t[0][1],e)),{type:"path",ops:n}}return a===2?vt(t[0][0],t[0][1],t[1][0],t[1][1],e):{type:"path",ops:[]}}function Rt(t,s,e,a,n){return(function(o,r){return H(o,!0,r)})([[t,s],[t+e,s],[t+e,s+a],[t,s+a]],n)}function ut(t,s){if(t.length){const e=typeof t[0][0]=="number"?[t]:t,a=Q(e[0],1*(1+.2*s.roughness),s),n=s.disableMultiStroke?[]:Q(e[0],1.5*(1+.22*s.roughness),gt(s));for(let o=1;o<e.length;o++){const r=e[o];if(r.length){const h=Q(r,1*(1+.2*s.roughness),s),i=s.disableMultiStroke?[]:Q(r,1.5*(1+.22*s.roughness),gt(s));for(const c of h)c.op!=="move"&&a.push(c);for(const c of i)c.op!=="move"&&n.push(c)}}return{type:"path",ops:a.concat(n)}}return{type:"path",ops:[]}}function pt(t,s,e){const a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(s/2,2))/2)),n=Math.ceil(Math.max(e.curveStepCount,e.curveStepCount/Math.sqrt(200)*a)),o=2*Math.PI/n;let r=Math.abs(t/2),h=Math.abs(s/2);const i=1-e.curveFitting;return r+=b(r*i,e),h+=b(h*i,e),{increment:o,rx:r,ry:h}}function et(t,s,e,a){const[n,o]=Mt(a.increment,t,s,a.rx,a.ry,1,a.increment*K(.1,K(.4,1,e),e),e);let r=U(n,null,e);if(!e.disableMultiStroke&&e.roughness!==0){const[h]=Mt(a.increment,t,s,a.rx,a.ry,1.5,0,e),i=U(h,null,e);r=r.concat(i)}return{estimatedPoints:o,opset:{type:"path",ops:r}}}function ft(t,s,e,a,n,o,r,h,i){const c=t,l=s;let d=Math.abs(e/2),f=Math.abs(a/2);d+=b(.01*d,i),f+=b(.01*f,i);let u=n,p=o;for(;u<0;)u+=2*Math.PI,p+=2*Math.PI;p-u>2*Math.PI&&(u=0,p=2*Math.PI);const k=2*Math.PI/i.curveStepCount,g=Math.min(k/2,(p-u)/2),y=kt(g,c,l,d,f,u,p,1,i);if(!i.disableMultiStroke){const M=kt(g,c,l,d,f,u,p,1.5,i);y.push(...M)}return r&&(h?y.push(...A(c,l,c+d*Math.cos(u),l+f*Math.sin(u),i),...A(c,l,c+d*Math.cos(p),l+f*Math.sin(p),i)):y.push({op:"lineTo",data:[c,l]},{op:"lineTo",data:[c+d*Math.cos(u),l+f*Math.sin(u)]})),{type:"path",ops:y}}function dt(t,s){const e=xt(wt(rt(t))),a=[];let n=[0,0],o=[0,0];for(const{key:r,data:h}of e)switch(r){case"M":o=[h[0],h[1]],n=[h[0],h[1]];break;case"L":a.push(...A(o[0],o[1],h[0],h[1],s)),o=[h[0],h[1]];break;case"C":{const[i,c,l,d,f,u]=h;a.push(...jt(i,c,l,d,f,u,o,s)),o=[f,u];break}case"Z":a.push(...A(o[0],o[1],n[0],n[1],s)),o=[n[0],n[1]]}return{type:"path",ops:a}}function st(t,s){const e=[];for(const a of t)if(a.length){const n=s.maxRandomnessOffset||0,o=a.length;if(o>2){e.push({op:"move",data:[a[0][0]+b(n,s),a[0][1]+b(n,s)]});for(let r=1;r<o;r++)e.push({op:"lineTo",data:[a[r][0]+b(n,s),a[r][1]+b(n,s)]})}}return{type:"fillPath",ops:e}}function E(t,s){return(function(e,a){let n=e.fillStyle||"hachure";if(!S[n])switch(n){case"zigzag":S[n]||(S[n]=new Ot(a));break;case"cross-hatch":S[n]||(S[n]=new Lt(a));break;case"dots":S[n]||(S[n]=new Tt(a));break;case"dashed":S[n]||(S[n]=new Dt(a));break;case"zigzag-line":S[n]||(S[n]=new _t(a));break;default:n="hachure",S[n]||(S[n]=new B(a))}return S[n]})(s,Ct).fillPolygons(t,s)}function gt(t){const s=Object.assign({},t);return s.randomizer=void 0,t.seed&&(s.seed=t.seed+1),s}function St(t){return t.randomizer||(t.randomizer=new At(t.seed||0)),t.randomizer.next()}function K(t,s,e,a=1){return e.roughness*a*(St(e)*(s-t)+t)}function b(t,s,e=1){return K(-t,t,s,e)}function A(t,s,e,a,n,o=!1){const r=o?n.disableMultiStrokeFill:n.disableMultiStroke,h=at(t,s,e,a,n,!0,!1);if(r)return h;const i=at(t,s,e,a,n,!0,!0);return h.concat(i)}function at(t,s,e,a,n,o,r){const h=Math.pow(t-e,2)+Math.pow(s-a,2),i=Math.sqrt(h);let c=1;c=i<200?1:i>500?.4:-.0016668*i+1.233334;let l=n.maxRandomnessOffset||0;l*l*100>h&&(l=i/10);const d=l/2,f=.2+.2*St(n);let u=n.bowing*n.maxRandomnessOffset*(a-s)/200,p=n.bowing*n.maxRandomnessOffset*(t-e)/200;u=b(u,n,c),p=b(p,n,c);const k=[],g=()=>b(d,n,c),y=()=>b(l,n,c),M=n.preserveVertices;return o&&(r?k.push({op:"move",data:[t+(M?0:g()),s+(M?0:g())]}):k.push({op:"move",data:[t+(M?0:b(l,n,c)),s+(M?0:b(l,n,c))]})),r?k.push({op:"bcurveTo",data:[u+t+(e-t)*f+g(),p+s+(a-s)*f+g(),u+t+2*(e-t)*f+g(),p+s+2*(a-s)*f+g(),e+(M?0:g()),a+(M?0:g())]}):k.push({op:"bcurveTo",data:[u+t+(e-t)*f+y(),p+s+(a-s)*f+y(),u+t+2*(e-t)*f+y(),p+s+2*(a-s)*f+y(),e+(M?0:y()),a+(M?0:y())]}),k}function Q(t,s,e){if(!t.length)return[];const a=[];a.push([t[0][0]+b(s,e),t[0][1]+b(s,e)]),a.push([t[0][0]+b(s,e),t[0][1]+b(s,e)]);for(let n=1;n<t.length;n++)a.push([t[n][0]+b(s,e),t[n][1]+b(s,e)]),n===t.length-1&&a.push([t[n][0]+b(s,e),t[n][1]+b(s,e)]);return U(a,null,e)}function U(t,s,e){const a=t.length,n=[];if(a>3){const o=[],r=1-e.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let h=1;h+2<a;h++){const i=t[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*t[h+1][0]-r*t[h-1][0])/6,i[1]+(r*t[h+1][1]-r*t[h-1][1])/6],o[2]=[t[h+1][0]+(r*t[h][0]-r*t[h+2][0])/6,t[h+1][1]+(r*t[h][1]-r*t[h+2][1])/6],o[3]=[t[h+1][0],t[h+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(s&&s.length===2){const h=e.maxRandomnessOffset;n.push({op:"lineTo",data:[s[0]+b(h,e),s[1]+b(h,e)]})}}else a===3?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):a===2&&n.push(...at(t[0][0],t[0][1],t[1][0],t[1][1],e,!0,!0));return n}function Mt(t,s,e,a,n,o,r,h){const i=[],c=[];if(h.roughness===0){t/=4,c.push([s+a*Math.cos(-t),e+n*Math.sin(-t)]);for(let l=0;l<=2*Math.PI;l+=t){const d=[s+a*Math.cos(l),e+n*Math.sin(l)];i.push(d),c.push(d)}c.push([s+a*Math.cos(0),e+n*Math.sin(0)]),c.push([s+a*Math.cos(t),e+n*Math.sin(t)])}else{const l=b(.5,h)-Math.PI/2;c.push([b(o,h)+s+.9*a*Math.cos(l-t),b(o,h)+e+.9*n*Math.sin(l-t)]);const d=2*Math.PI+l-.01;for(let f=l;f<d;f+=t){const u=[b(o,h)+s+a*Math.cos(f),b(o,h)+e+n*Math.sin(f)];i.push(u),c.push(u)}c.push([b(o,h)+s+a*Math.cos(l+2*Math.PI+.5*r),b(o,h)+e+n*Math.sin(l+2*Math.PI+.5*r)]),c.push([b(o,h)+s+.98*a*Math.cos(l+r),b(o,h)+e+.98*n*Math.sin(l+r)]),c.push([b(o,h)+s+.9*a*Math.cos(l+.5*r),b(o,h)+e+.9*n*Math.sin(l+.5*r)])}return[c,i]}function kt(t,s,e,a,n,o,r,h,i){const c=o+b(.1,i),l=[];l.push([b(h,i)+s+.9*a*Math.cos(c-t),b(h,i)+e+.9*n*Math.sin(c-t)]);for(let d=c;d<=r;d+=t)l.push([b(h,i)+s+a*Math.cos(d),b(h,i)+e+n*Math.sin(d)]);return l.push([s+a*Math.cos(r),e+n*Math.sin(r)]),l.push([s+a*Math.cos(r),e+n*Math.sin(r)]),U(l,null,i)}function jt(t,s,e,a,n,o,r,h){const i=[],c=[h.maxRandomnessOffset||1,(h.maxRandomnessOffset||1)+.3];let l=[0,0];const d=h.disableMultiStroke?1:2,f=h.preserveVertices;for(let u=0;u<d;u++)u===0?i.push({op:"move",data:[r[0],r[1]]}):i.push({op:"move",data:[r[0]+(f?0:b(c[0],h)),r[1]+(f?0:b(c[0],h))]}),l=f?[n,o]:[n+b(c[u],h),o+b(c[u],h)],i.push({op:"bcurveTo",data:[t+b(c[u],h),s+b(c[u],h),e+b(c[u],h),a+b(c[u],h),l[0],l[1]]});return i}function R(t){return[...t]}function bt(t,s=0){const e=t.length;if(e<3)throw new Error("A curve must have at least three points.");const a=[];if(e===3)a.push(R(t[0]),R(t[1]),R(t[2]),R(t[2]));else{const n=[];n.push(t[0],t[0]);for(let h=1;h<t.length;h++)n.push(t[h]),h===t.length-1&&n.push(t[h]);const o=[],r=1-s;a.push(R(n[0]));for(let h=1;h+2<n.length;h++){const i=n[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*n[h+1][0]-r*n[h-1][0])/6,i[1]+(r*n[h+1][1]-r*n[h-1][1])/6],o[2]=[n[h+1][0]+(r*n[h][0]-r*n[h+2][0])/6,n[h+1][1]+(r*n[h][1]-r*n[h+2][1])/6],o[3]=[n[h+1][0],n[h+1][1]],a.push(o[1],o[2],o[3])}}return a}function N(t,s){return Math.pow(t[0]-s[0],2)+Math.pow(t[1]-s[1],2)}function qt(t,s,e){const a=N(s,e);if(a===0)return N(t,s);let n=((t[0]-s[0])*(e[0]-s[0])+(t[1]-s[1])*(e[1]-s[1]))/a;return n=Math.max(0,Math.min(1,n)),N(t,C(s,e,n))}function C(t,s,e){return[t[0]+(s[0]-t[0])*e,t[1]+(s[1]-t[1])*e]}function ot(t,s,e,a){const n=a||[];if((function(h,i){const c=h[i+0],l=h[i+1],d=h[i+2],f=h[i+3];let u=3*l[0]-2*c[0]-f[0];u*=u;let p=3*l[1]-2*c[1]-f[1];p*=p;let k=3*d[0]-2*f[0]-c[0];k*=k;let g=3*d[1]-2*f[1]-c[1];return g*=g,u<k&&(u=k),p<g&&(p=g),u+p})(t,s)<e){const h=t[s+0];n.length?(o=n[n.length-1],r=h,Math.sqrt(N(o,r))>1&&n.push(h)):n.push(h),n.push(t[s+3])}else{const i=t[s+0],c=t[s+1],l=t[s+2],d=t[s+3],f=C(i,c,.5),u=C(c,l,.5),p=C(l,d,.5),k=C(f,u,.5),g=C(u,p,.5),y=C(k,g,.5);ot([i,f,k,y],0,e,n),ot([y,g,p,d],0,e,n)}var o,r;return n}function Ft(t,s){return X(t,0,t.length,s)}function X(t,s,e,a,n){const o=n||[],r=t[s],h=t[e-1];let i=0,c=1;for(let l=s+1;l<e-1;++l){const d=qt(t[l],r,h);d>i&&(i=d,c=l)}return Math.sqrt(i)>a?(X(t,s,c+1,a,o),X(t,c,e,a,o)):(o.length||o.push(r),o.push(h)),o}function nt(t,s=.15,e){const a=[],n=(t.length-1)/3;for(let o=0;o<n;o++)ot(t,3*o,s,a);return e&&e>0?X(a,0,a.length,e):a}var B,Ot,Lt,Tt,Dt,_t,S,At,It,J,ht,F,Ct,O,j,mt,q,yt,Vt,Qt=Et((()=>{B=class{constructor(t){this.helper=t}fillPolygons(t,s){return this._fillPolygons(t,s)}_fillPolygons(t,s){const e=G(t,s);return{type:"fillSketch",ops:this.renderLines(e,s)}}renderLines(t,s){const e=[];for(const a of t)e.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],s));return e}},Ot=class extends B{fillPolygons(t,s){let e=s.hachureGap;e<0&&(e=4*s.strokeWidth),e=Math.max(e,.1);const a=G(t,Object.assign({},s,{hachureGap:e})),n=Math.PI/180*s.hachureAngle,o=[],r=.5*e*Math.cos(n),h=.5*e*Math.sin(n);for(const[i,c]of a)Z([i,c])&&o.push([[i[0]-r,i[1]+h],[...c]],[[i[0]+r,i[1]-h],[...c]]);return{type:"fillSketch",ops:this.renderLines(o,s)}}},Lt=class extends B{fillPolygons(t,s){const e=this._fillPolygons(t,s),a=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),n=this._fillPolygons(t,a);return e.ops=e.ops.concat(n.ops),e}},Tt=class{constructor(t){this.helper=t}fillPolygons(t,s){const e=G(t,s=Object.assign({},s,{hachureAngle:0}));return this.dotsOnLines(e,s)}dotsOnLines(t,s){const e=[];let a=s.hachureGap;a<0&&(a=4*s.strokeWidth),a=Math.max(a,.1);let n=s.fillWeight;n<0&&(n=s.strokeWidth/2);const o=a/4;for(const r of t){const h=Z(r),i=h/a,c=Math.ceil(i)-1,l=h-c*a,d=(r[0][0]+r[1][0])/2-a/4,f=Math.min(r[0][1],r[1][1]);for(let u=0;u<c;u++){const p=f+l+u*a,k=d-o+2*Math.random()*o,g=p-o+2*Math.random()*o,y=this.helper.ellipse(k,g,n,n,s);e.push(...y.ops)}}return{type:"fillSketch",ops:e}}},Dt=class{constructor(t){this.helper=t}fillPolygons(t,s){const e=G(t,s);return{type:"fillSketch",ops:this.dashedLine(e,s)}}dashedLine(t,s){const e=s.dashOffset<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashOffset,a=s.dashGap<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashGap,n=[];return t.forEach((o=>{const r=Z(o),h=Math.floor(r/(e+a)),i=(r+a-h*(e+a))/2;let c=o[0],l=o[1];c[0]>l[0]&&(c=o[1],l=o[0]);const d=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let f=0;f<h;f++){const u=f*(e+a),p=u+e,k=[c[0]+u*Math.cos(d)+i*Math.cos(d),c[1]+u*Math.sin(d)+i*Math.sin(d)],g=[c[0]+p*Math.cos(d)+i*Math.cos(d),c[1]+p*Math.sin(d)+i*Math.sin(d)];n.push(...this.helper.doubleLineOps(k[0],k[1],g[0],g[1],s))}})),n}},_t=class{constructor(t){this.helper=t}fillPolygons(t,s){const e=s.hachureGap<0?4*s.strokeWidth:s.hachureGap,a=s.zigzagOffset<0?e:s.zigzagOffset,n=G(t,s=Object.assign({},s,{hachureGap:e+a}));return{type:"fillSketch",ops:this.zigzagLines(n,a,s)}}zigzagLines(t,s,e){const a=[];return t.forEach((n=>{const o=Z(n),r=Math.round(o/(2*s));let h=n[0],i=n[1];h[0]>i[0]&&(h=n[1],i=n[0]);const c=Math.atan((i[1]-h[1])/(i[0]-h[0]));for(let l=0;l<r;l++){const d=2*l*s,f=2*(l+1)*s,u=Math.sqrt(2*Math.pow(s,2)),p=[h[0]+d*Math.cos(c),h[1]+d*Math.sin(c)],k=[h[0]+f*Math.cos(c),h[1]+f*Math.sin(c)],g=[p[0]+u*Math.cos(c+Math.PI/4),p[1]+u*Math.sin(c+Math.PI/4)];a.push(...this.helper.doubleLineOps(p[0],p[1],g[0],g[1],e),...this.helper.doubleLineOps(g[0],g[1],k[0],k[1],e))}})),a}},S={},At=class{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},It=0,J=1,ht=2,F={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},Ct={randOffset:function(t,s){return b(t,s)},randOffsetWithRange:function(t,s,e){return K(t,s,e)},ellipse:function(t,s,e,a,n){return et(t,s,n,pt(e,a,n)).opset},doubleLineOps:function(t,s,e,a,n){return A(t,s,e,a,n,!0)}},O="none",j=class{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,s,e){return{shape:t,sets:s||[],options:e||this.defaultOptions}}line(t,s,e,a,n){const o=this._o(n);return this._d("line",[vt(t,s,e,a,o)],o)}rectangle(t,s,e,a,n){const o=this._o(n),r=[],h=Rt(t,s,e,a,o);if(o.fill){const i=[[t,s],[t+e,s],[t+e,s+a],[t,s+a]];o.fillStyle==="solid"?r.push(st([i],o)):r.push(E([i],o))}return o.stroke!==O&&r.push(h),this._d("rectangle",r,o)}ellipse(t,s,e,a,n){const o=this._o(n),r=[],h=pt(e,a,o),i=et(t,s,o,h);if(o.fill)if(o.fillStyle==="solid"){const c=et(t,s,o,h).opset;c.type="fillPath",r.push(c)}else r.push(E([i.estimatedPoints],o));return o.stroke!==O&&r.push(i.opset),this._d("ellipse",r,o)}circle(t,s,e,a){const n=this.ellipse(t,s,e,e,a);return n.shape="circle",n}linearPath(t,s){const e=this._o(s);return this._d("linearPath",[H(t,!1,e)],e)}arc(t,s,e,a,n,o,r=!1,h){const i=this._o(h),c=[],l=ft(t,s,e,a,n,o,r,!0,i);if(r&&i.fill)if(i.fillStyle==="solid"){const d=Object.assign({},i);d.disableMultiStroke=!0;const f=ft(t,s,e,a,n,o,!0,!1,d);f.type="fillPath",c.push(f)}else c.push((function(d,f,u,p,k,g,y){const M=d,m=f;let x=Math.abs(u/2),w=Math.abs(p/2);x+=b(.01*x,y),w+=b(.01*w,y);let v=k,D=g;for(;v<0;)v+=2*Math.PI,D+=2*Math.PI;D-v>2*Math.PI&&(v=0,D=2*Math.PI);const V=(D-v)/y.curveStepCount,I=[];for(let T=v;T<=D;T+=V)I.push([M+x*Math.cos(T),m+w*Math.sin(T)]);return I.push([M+x*Math.cos(D),m+w*Math.sin(D)]),I.push([M,m]),E([I],y)})(t,s,e,a,n,o,i));return i.stroke!==O&&c.push(l),this._d("arc",c,i)}curve(t,s){const e=this._o(s),a=[],n=ut(t,e);if(e.fill&&e.fill!==O)if(e.fillStyle==="solid"){const o=ut(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],r=t;if(r.length){const h=typeof r[0][0]=="number"?[r]:r;for(const i of h)i.length<3?o.push(...i):i.length===3?o.push(...nt(bt([i[0],i[0],i[1],i[2]]),10,(1+e.roughness)/2)):o.push(...nt(bt(i),10,(1+e.roughness)/2))}o.length&&a.push(E([o],e))}return e.stroke!==O&&a.push(n),this._d("curve",a,e)}polygon(t,s){const e=this._o(s),a=[],n=H(t,!0,e);return e.fill&&(e.fillStyle==="solid"?a.push(st([t],e)):a.push(E([t],e))),e.stroke!==O&&a.push(n),this._d("polygon",a,e)}path(t,s){const e=this._o(s),a=[];if(!t)return this._d("path",a,e);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const n=e.fill&&e.fill!=="transparent"&&e.fill!==O,o=e.stroke!==O,r=!!(e.simplification&&e.simplification<1),h=(function(c,l,d){const f=xt(wt(rt(c))),u=[];let p=[],k=[0,0],g=[];const y=()=>{g.length>=4&&p.push(...nt(g,l)),g=[]},M=()=>{y(),p.length&&(u.push(p),p=[])};for(const{key:x,data:w}of f)switch(x){case"M":M(),k=[w[0],w[1]],p.push(k);break;case"L":y(),p.push([w[0],w[1]]);break;case"C":if(!g.length){const v=p.length?p[p.length-1]:k;g.push([v[0],v[1]])}g.push([w[0],w[1]]),g.push([w[2],w[3]]),g.push([w[4],w[5]]);break;case"Z":y(),p.push([k[0],k[1]])}if(M(),!d)return u;const m=[];for(const x of u){const w=Ft(x,d);w.length&&m.push(w)}return m})(t,1,r?4-4*(e.simplification||1):(1+e.roughness)/2),i=dt(t,e);if(n)if(e.fillStyle==="solid")if(h.length===1){const c=dt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else a.push(st(h,e));else a.push(E(h,e));return o&&(r?h.forEach((c=>{a.push(H(c,!1,e))})):a.push(i)),this._d("path",a,e)}opsToPath(t,s){let e="";for(const a of t.ops){const n=typeof s=="number"&&s>=0?a.data.map((o=>+o.toFixed(s))):a.data;switch(a.op){case"move":e+=`M${n[0]} ${n[1]} `;break;case"bcurveTo":e+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case"lineTo":e+=`L${n[0]} ${n[1]} `}}return e.trim()}toPaths(t){const s=t.sets||[],e=t.options||this.defaultOptions,a=[];for(const n of s){let o=null;switch(n.type){case"path":o={d:this.opsToPath(n),stroke:e.stroke,strokeWidth:e.strokeWidth,fill:O};break;case"fillPath":o={d:this.opsToPath(n),stroke:O,strokeWidth:0,fill:e.fill||O};break;case"fillSketch":o=this.fillSketch(n,e)}o&&a.push(o)}return a}fillSketch(t,s){let e=s.fillWeight;return e<0&&(e=s.strokeWidth/2),{d:this.opsToPath(t),stroke:s.fill||O,strokeWidth:e,fill:O}}_mergedShape(t){return t.filter(((s,e)=>e===0||s.op!=="move"))}},mt=class{constructor(t,s){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new j(s)}draw(t){const s=t.sets||[],e=t.options||this.getDefaultOptions(),a=this.ctx,n=t.options.fixedDecimalPlaceDigits;for(const o of s)switch(o.type){case"path":a.save(),a.strokeStyle=e.stroke==="none"?"transparent":e.stroke,a.lineWidth=e.strokeWidth,e.strokeLineDash&&a.setLineDash(e.strokeLineDash),e.strokeLineDashOffset&&(a.lineDashOffset=e.strokeLineDashOffset),this._drawToContext(a,o,n),a.restore();break;case"fillPath":{a.save(),a.fillStyle=e.fill||"";const r=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,o,n,r),a.restore();break}case"fillSketch":this.fillSketch(a,o,e)}}fillSketch(t,s,e){let a=e.fillWeight;a<0&&(a=e.strokeWidth/2),t.save(),e.fillLineDash&&t.setLineDash(e.fillLineDash),e.fillLineDashOffset&&(t.lineDashOffset=e.fillLineDashOffset),t.strokeStyle=e.fill||"",t.lineWidth=a,this._drawToContext(t,s,e.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,s,e,a="nonzero"){t.beginPath();for(const n of s.ops){const o=typeof e=="number"&&e>=0?n.data.map((r=>+r.toFixed(e))):n.data;switch(n.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}s.type==="fillPath"?t.fill(a):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,s,e,a,n){const o=this.gen.line(t,s,e,a,n);return this.draw(o),o}rectangle(t,s,e,a,n){const o=this.gen.rectangle(t,s,e,a,n);return this.draw(o),o}ellipse(t,s,e,a,n){const o=this.gen.ellipse(t,s,e,a,n);return this.draw(o),o}circle(t,s,e,a){const n=this.gen.circle(t,s,e,a);return this.draw(n),n}linearPath(t,s){const e=this.gen.linearPath(t,s);return this.draw(e),e}polygon(t,s){const e=this.gen.polygon(t,s);return this.draw(e),e}arc(t,s,e,a,n,o,r=!1,h){const i=this.gen.arc(t,s,e,a,n,o,r,h);return this.draw(i),i}curve(t,s){const e=this.gen.curve(t,s);return this.draw(e),e}path(t,s){const e=this.gen.path(t,s);return this.draw(e),e}},q="http://www.w3.org/2000/svg",yt=class{constructor(t,s){this.svg=t,this.gen=new j(s)}draw(t){const s=t.sets||[],e=t.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,n=a.createElementNS(q,"g"),o=t.options.fixedDecimalPlaceDigits;for(const r of s){let h=null;switch(r.type){case"path":h=a.createElementNS(q,"path"),h.setAttribute("d",this.opsToPath(r,o)),h.setAttribute("stroke",e.stroke),h.setAttribute("stroke-width",e.strokeWidth+""),h.setAttribute("fill","none"),e.strokeLineDash&&h.setAttribute("stroke-dasharray",e.strokeLineDash.join(" ").trim()),e.strokeLineDashOffset&&h.setAttribute("stroke-dashoffset",`${e.strokeLineDashOffset}`);break;case"fillPath":h=a.createElementNS(q,"path"),h.setAttribute("d",this.opsToPath(r,o)),h.setAttribute("stroke","none"),h.setAttribute("stroke-width","0"),h.setAttribute("fill",e.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||h.setAttribute("fill-rule","evenodd");break;case"fillSketch":h=this.fillSketch(a,r,e)}h&&n.appendChild(h)}return n}fillSketch(t,s,e){let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);const n=t.createElementNS(q,"path");return n.setAttribute("d",this.opsToPath(s,e.fixedDecimalPlaceDigits)),n.setAttribute("stroke",e.fill||""),n.setAttribute("stroke-width",a+""),n.setAttribute("fill","none"),e.fillLineDash&&n.setAttribute("stroke-dasharray",e.fillLineDash.join(" ").trim()),e.fillLineDashOffset&&n.setAttribute("stroke-dashoffset",`${e.fillLineDashOffset}`),n}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,s){return this.gen.opsToPath(t,s)}line(t,s,e,a,n){const o=this.gen.line(t,s,e,a,n);return this.draw(o)}rectangle(t,s,e,a,n){const o=this.gen.rectangle(t,s,e,a,n);return this.draw(o)}ellipse(t,s,e,a,n){const o=this.gen.ellipse(t,s,e,a,n);return this.draw(o)}circle(t,s,e,a){const n=this.gen.circle(t,s,e,a);return this.draw(n)}linearPath(t,s){const e=this.gen.linearPath(t,s);return this.draw(e)}polygon(t,s){const e=this.gen.polygon(t,s);return this.draw(e)}arc(t,s,e,a,n,o,r=!1,h){const i=this.gen.arc(t,s,e,a,n,o,r,h);return this.draw(i)}curve(t,s){const e=this.gen.curve(t,s);return this.draw(e)}path(t,s){const e=this.gen.path(t,s);return this.draw(e)}},Vt={canvas:(t,s)=>new mt(t,s),svg:(t,s)=>new yt(t,s),generator:t=>new j(t),newSeed:()=>j.newSeed()}}));export{Qt as n,Vt as t};