hermes-web-ui 0.6.30-beta.2 → 0.6.30

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 (257) hide show
  1. package/dist/client/assets/js/AppSidebar-B8eJvJ5L.js +1 -0
  2. package/dist/client/assets/js/{ChannelsView-DMyeoPl6.js → ChannelsView-rBs9Ylzp.js} +1 -1
  3. package/dist/client/assets/js/{ChatPanel-YZZNE2mg.js → ChatPanel-BjHQvYcw.js} +1 -1
  4. package/dist/client/assets/js/{ChatView-BSWI-pr1.js → ChatView-xEwjnXLo.js} +1 -1
  5. package/dist/client/assets/js/{CodingAgentsView-DGweBEVs.js → CodingAgentsView-DcVwegsz.js} +1 -1
  6. package/dist/client/assets/js/{DefaultCredentialPrompt-DwS2g874.js → DefaultCredentialPrompt-sFeH1odX.js} +1 -1
  7. package/dist/client/assets/js/{DesktopPetView-C2QyaxNu.js → DesktopPetView-DKYjal2v.js} +1 -1
  8. package/dist/client/assets/js/{DesktopTitleBar-CMvwjOsN.js → DesktopTitleBar-YzhbwcwX.js} +1 -1
  9. package/dist/client/assets/js/{DevicesView-3VMSlXCt.js → DevicesView-CnAjn0fI.js} +1 -1
  10. package/dist/client/assets/js/{FileEditor-Dkxlmokr.js → FileEditor-C_tmKjxI.js} +3 -3
  11. package/dist/client/assets/js/{FileRenameModal-o3oS6tv2.js → FileRenameModal-BlqJ8jgZ.js} +2 -2
  12. package/dist/client/assets/js/{FilesView-BlJtiYU7.js → FilesView-Dy8G_exi.js} +1 -1
  13. package/dist/client/assets/js/{FolderPicker-DYQaj8Cc.js → FolderPicker-DEUyd_JU.js} +1 -1
  14. package/dist/client/assets/js/{GlobalAgentView-CGRn1ucS.js → GlobalAgentView-C0NgWvKP.js} +1 -1
  15. package/dist/client/assets/js/{GroupChatView-GXbwwUn9.js → GroupChatView-Mr8SR7nA.js} +2 -2
  16. package/dist/client/assets/js/{HistoryMessageList-B1UsdtzR.js → HistoryMessageList--MuOQ24m.js} +1 -1
  17. package/dist/client/assets/js/{HistoryView-DukXpB7A.js → HistoryView-Boy6KWxz.js} +1 -1
  18. package/dist/client/assets/js/{JobsView-C2IfX4Oo.js → JobsView-5Jun6EjM.js} +2 -2
  19. package/dist/client/assets/js/{JourneyView-UX14Uvsk.js → JourneyView-DAU7N8iU.js} +1 -1
  20. package/dist/client/assets/js/{KanbanView-BFLDXNmq.js → KanbanView-CQOeRquP.js} +1 -1
  21. package/dist/client/assets/js/{LoginView-BMnZx434.js → LoginView-DTdp1xsa.js} +1 -1
  22. package/dist/client/assets/js/{LogsView-CFxOjMBB.js → LogsView-Dr6gD_kA.js} +1 -1
  23. package/dist/client/assets/js/{MarkdownRenderer-RUGb4sbQ.js → MarkdownRenderer-DpSiF5gl.js} +3 -3
  24. package/dist/client/assets/js/{McpManagerView-D46nhm85.js → McpManagerView-BzGj5qqQ.js} +1 -1
  25. package/dist/client/assets/js/{MemoryView-CGvbW1Yq.js → MemoryView-2gPDgre_.js} +2 -2
  26. package/dist/client/assets/js/{MessageItem-rIbgU0g3.js → MessageItem-D91t-tiL.js} +2 -2
  27. package/dist/client/assets/js/{MessageList-7o_1_iPw.js → MessageList-KgA7oDKg.js} +1 -1
  28. package/dist/client/assets/js/{ModelsView-Cdl5HVlO.js → ModelsView-GVgHBsyL.js} +1 -1
  29. package/dist/client/assets/js/{OutlinePanel-BmsAdxB0.js → OutlinePanel-DD6XxWAu.js} +1 -1
  30. package/dist/client/assets/js/{PageSidebarFooter-fp9dcg3s.js → PageSidebarFooter-DFaGG_bk.js} +1 -1
  31. package/dist/client/assets/js/{PerformanceView-asJG1CAC.js → PerformanceView-YI2ecC28.js} +1 -1
  32. package/dist/client/assets/js/{PetdexView-CgsImZ2C.js → PetdexView-Bt4e1TDL.js} +1 -1
  33. package/dist/client/assets/js/{PluginsView-CiiHUv8H.js → PluginsView-BZHzh6V0.js} +1 -1
  34. package/dist/client/assets/js/{ProfileAvatar-CeGhJamd.js → ProfileAvatar-Du1XMoe0.js} +1 -1
  35. package/dist/client/assets/js/{ProfilesView-CPcFsEMn.js → ProfilesView-C02GlAXO.js} +1 -1
  36. package/dist/client/assets/js/{ProviderConfigurationPrompt-CCXQ_nqY.js → ProviderConfigurationPrompt-DbD_q_xl.js} +1 -1
  37. package/dist/client/assets/js/{SessionSearchModal-Chmtohb_.js → SessionSearchModal-CRoerPzU.js} +1 -1
  38. package/dist/client/assets/js/{SettingRow-CxdhcC5J.js → SettingRow-CZ1bK2YG.js} +1 -1
  39. package/dist/client/assets/js/{SettingsCircuitBadge-DmwONg4K.js → SettingsCircuitBadge-2VINGRjT.js} +1 -1
  40. package/dist/client/assets/js/{SettingsView-Bd02BnM7.js → SettingsView-C63TriKv.js} +1 -1
  41. package/dist/client/assets/js/{SkillsUsageView-Cvk_dctX.js → SkillsUsageView-DufR6RDh.js} +1 -1
  42. package/dist/client/assets/js/{SkillsView-BrS15WHY.js → SkillsView-LzeD-ReE.js} +2 -2
  43. package/dist/client/assets/js/{TerminalView-Betjhhzm.js → TerminalView-j3wokVwS.js} +1 -1
  44. package/dist/client/assets/js/{UsageView-gENmuPca.js → UsageView-BVdos-wH.js} +1 -1
  45. package/dist/client/assets/js/{VersionPreviewView-D4wMkRdU.js → VersionPreviewView-D46YOdsc.js} +1 -1
  46. package/dist/client/assets/js/{WebPet-C-F5hsmU.js → WebPet-PrNf1KLw.js} +1 -1
  47. package/dist/client/assets/js/{WorkflowView-DCQycw5y.js → WorkflowView-BWG_o4Lg.js} +1 -1
  48. package/dist/client/assets/js/{abap-Bpce3YCc.js → abap-B5rRrPlH.js} +1 -1
  49. package/dist/client/assets/js/{apex-BZWMlx8R.js → apex-kxpOZZnW.js} +1 -1
  50. package/dist/client/assets/js/architecture-7EHR7CIX-BsCtaKPb.js +1 -0
  51. package/dist/client/assets/js/{architectureDiagram-3BPJPVTR-DgYZW-VJ.js → architectureDiagram-3BPJPVTR-CGR0-xeM.js} +1 -1
  52. package/dist/client/assets/js/{auth-DAz8TLhP.js → auth-QlZVq-Mb.js} +1 -1
  53. package/dist/client/assets/js/{azcli-CU70G-wD.js → azcli-BinA5kBH.js} +1 -1
  54. package/dist/client/assets/js/{bat-_PVMPuXp.js → bat-Cr0qo7tY.js} +1 -1
  55. package/dist/client/assets/js/{bicep-B1C-nHUL.js → bicep-B4C1_29j.js} +1 -1
  56. package/dist/client/assets/js/{blockDiagram-GPEHLZMM-D9eCcYUu.js → blockDiagram-GPEHLZMM-DMRT9qE7.js} +1 -1
  57. package/dist/client/assets/js/{c4Diagram-AAUBKEIU-Cc2j_5Hk.js → c4Diagram-AAUBKEIU-BS013lHX.js} +1 -1
  58. package/dist/client/assets/js/{cameligo-BRxFWUB9.js → cameligo-DQKQuDHg.js} +1 -1
  59. package/dist/client/assets/js/{chat-DASgRGiI.js → chat-BHkNRr2D.js} +1 -1
  60. package/dist/client/assets/js/{chat-input-height-xMpE0zfj.js → chat-input-height-C9XyOGPU.js} +1 -1
  61. package/dist/client/assets/js/{chat-timestamp-B4kSmeEg.js → chat-timestamp-sj8rR29x.js} +1 -1
  62. package/dist/client/assets/js/{chunk-2J33WTMH-CIWIJ3Vy.js → chunk-2J33WTMH-BuvstStb.js} +1 -1
  63. package/dist/client/assets/js/{chunk-3OPIFGDE-D8rNjXTj.js → chunk-3OPIFGDE-DFuFb6Dn.js} +1 -1
  64. package/dist/client/assets/js/{chunk-4BX2VUAB-Be1NT72j.js → chunk-4BX2VUAB-C8f7FKlW.js} +1 -1
  65. package/dist/client/assets/js/{chunk-55IACEB6-D9jngYNS.js → chunk-55IACEB6-DoNUYELD.js} +1 -1
  66. package/dist/client/assets/js/{chunk-5ZQYHXKU-DsBTFfjP.js → chunk-5ZQYHXKU-D0RIlhMr.js} +1 -1
  67. package/dist/client/assets/js/{chunk-727SXJPM-B4ElG_Of.js → chunk-727SXJPM-Dcg9rcP1.js} +1 -1
  68. package/dist/client/assets/js/{chunk-AQP2D5EJ-DqmSdc2v.js → chunk-AQP2D5EJ-BrEs3845.js} +1 -1
  69. package/dist/client/assets/js/{chunk-BSJP7CBP-Dwbw_lcd.js → chunk-BSJP7CBP-2t71L2nD.js} +1 -1
  70. package/dist/client/assets/js/{chunk-CSCIHK7Q-D0eX0NV1.js → chunk-CSCIHK7Q-jw9fZDC9.js} +3 -3
  71. package/dist/client/assets/js/{chunk-FMBD7UC4-Ifok5gk4.js → chunk-FMBD7UC4-CC_5MTtl.js} +1 -1
  72. package/dist/client/assets/js/{chunk-KSCS5N6A-D6b_0Rnx.js → chunk-KSCS5N6A-Ctj260fA.js} +1 -1
  73. package/dist/client/assets/js/{chunk-L5ZTLDWV-eR6nltId.js → chunk-L5ZTLDWV-CF8sc4Ay.js} +1 -1
  74. package/dist/client/assets/js/{chunk-LZXEDZCA-h6nPcsB6.js → chunk-LZXEDZCA-BsmuMR5Z.js} +2 -2
  75. package/dist/client/assets/js/{chunk-ND2GUHAM-vGFiX1jf.js → chunk-ND2GUHAM-CvXXD5FC.js} +1 -1
  76. package/dist/client/assets/js/{chunk-NZK2D7GU-BQcgYAVF.js → chunk-NZK2D7GU-BQeu8oaR.js} +1 -1
  77. package/dist/client/assets/js/{chunk-O5CBEL6O-DqGyu-Fq.js → chunk-O5CBEL6O-D9XUSNoV.js} +1 -1
  78. package/dist/client/assets/js/{chunk-QZHKN3VN-Bf_cn5Px.js → chunk-QZHKN3VN-qz6ukpCd.js} +1 -1
  79. package/dist/client/assets/js/{chunk-WU5MYG2G-3I1ZwKkc.js → chunk-WU5MYG2G-Cv_QOL8q.js} +1 -1
  80. package/dist/client/assets/js/{chunk-XPW4576I-DDUD-9JS.js → chunk-XPW4576I-BQK5_1lO.js} +1 -1
  81. package/dist/client/assets/js/classDiagram-4FO5ZUOK-DudE54ap.js +1 -0
  82. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-7vuaSqRj.js +1 -0
  83. package/dist/client/assets/js/{clipboard-DbIDy3AT.js → clipboard-DYlTCW_e.js} +1 -1
  84. package/dist/client/assets/js/{clojure-Dcj6e71m.js → clojure-CdqoJung.js} +1 -1
  85. package/dist/client/assets/js/{coding-agents-CaDRq0na.js → coding-agents-6iW0O8m3.js} +1 -1
  86. package/dist/client/assets/js/{codingAgentProviders-D561caSN.js → codingAgentProviders-CcodfSH-.js} +1 -1
  87. package/dist/client/assets/js/{coffee-CbYrIyIn.js → coffee-BWTAEena.js} +1 -1
  88. package/dist/client/assets/js/{completion-notification-DsOPieYQ.js → completion-notification-BAmmQT0D.js} +1 -1
  89. package/dist/client/assets/js/{cose-bilkent-S5V4N54A-DMeSp3o-.js → cose-bilkent-S5V4N54A-DRKeHjkL.js} +1 -1
  90. package/dist/client/assets/js/{cpp-C285XCcy.js → cpp-BVlDwaOY.js} +1 -1
  91. package/dist/client/assets/js/{csharp-AOA29tQw.js → csharp-BJ8TvX5x.js} +1 -1
  92. package/dist/client/assets/js/{csp-BH3dEG6O.js → csp-C4M5VPIw.js} +1 -1
  93. package/dist/client/assets/js/{css-B57baUKb.js → css-I3bSR4aB.js} +1 -1
  94. package/dist/client/assets/js/{cssMode-BL-figOg.js → cssMode-D4KFuV7w.js} +1 -1
  95. package/dist/client/assets/js/{cypher-WtS-OVKo.js → cypher-CRdq7Gis.js} +1 -1
  96. package/dist/client/assets/js/{cytoscape.esm-D5tsfvvu.js → cytoscape.esm-DkgBNPTq.js} +1 -1
  97. package/dist/client/assets/js/{dagre-BM42HDAG-ZT4Tyhdh.js → dagre-BM42HDAG-CaadqbBP.js} +1 -1
  98. package/dist/client/assets/js/{dagre-B9R_qlQx.js → dagre-C8VfHmP4.js} +1 -1
  99. package/dist/client/assets/js/{dart-DF9gqEcq.js → dart-dwyDElLm.js} +1 -1
  100. package/dist/client/assets/js/{de-EFWp16Qh.js → de--4CNgQuL.js} +1 -1
  101. package/dist/client/assets/js/{defineProperty-DuJZezkY.js → defineProperty-BDo2HL0q.js} +1 -1
  102. package/dist/client/assets/js/{diagram-2AECGRRQ-xaP4EEEl.js → diagram-2AECGRRQ-Cun81Ans.js} +1 -1
  103. package/dist/client/assets/js/{diagram-5GNKFQAL-DIyCvoeX.js → diagram-5GNKFQAL-CQzVKYOI.js} +1 -1
  104. package/dist/client/assets/js/{diagram-KO2AKTUF-DUgBO_lP.js → diagram-KO2AKTUF-BPfQv40Z.js} +1 -1
  105. package/dist/client/assets/js/{diagram-LMA3HP47-7BPLQ2mh.js → diagram-LMA3HP47-D8TC5VV0.js} +1 -1
  106. package/dist/client/assets/js/{diagram-OG6HWLK6-Bf3loU_i.js → diagram-OG6HWLK6-CRHwtHSe.js} +1 -1
  107. package/dist/client/assets/js/{dist-B5dYmTWx.js → dist-CfFdo9r8.js} +1 -1
  108. package/dist/client/assets/js/{dockerfile-Czh5hcPx.js → dockerfile-CILemvfU.js} +1 -1
  109. package/dist/client/assets/js/{download-D8EaUX1d.js → download-48rHoTgx.js} +1 -1
  110. package/dist/client/assets/js/{ecl-CX15-2F3.js → ecl-Ealz99xU.js} +1 -1
  111. package/dist/client/assets/js/{elixir-DAeHVhZ1.js → elixir-shrM9Xh9.js} +1 -1
  112. package/dist/client/assets/js/{en-Be915fg0.js → en-CJJ1jL_Y.js} +1 -1
  113. package/dist/client/assets/js/{erDiagram-TEJ5UH35-Cohr37bj.js → erDiagram-TEJ5UH35-BPm-r9Hg.js} +1 -1
  114. package/dist/client/assets/js/{es-CifdmPsf.js → es-DzGYbRQj.js} +1 -1
  115. package/dist/client/assets/js/{esm-BnjT8clq.js → esm-BMJNKLtg.js} +1 -1
  116. package/dist/client/assets/js/eventmodeling-FCH6USID-C3kT7Z0E.js +1 -0
  117. package/dist/client/assets/js/{files-DaoyoU6g.js → files-hTAbTvaX.js} +1 -1
  118. package/dist/client/assets/js/{flow9-DbPITgDY.js → flow9-BcjKeG3-.js} +1 -1
  119. package/dist/client/assets/js/{flowDiagram-I6XJVG4X-B264a192.js → flowDiagram-I6XJVG4X-_BaH5aHT.js} +1 -1
  120. package/dist/client/assets/js/{fr-cOjPUfRx.js → fr-DcCzCkCs.js} +1 -1
  121. package/dist/client/assets/js/{freemarker2-DOLmB9KN.js → freemarker2-BNKS-Izq.js} +1 -1
  122. package/dist/client/assets/js/{fsharp-B-Yt6zK9.js → fsharp-CkihMS6p.js} +1 -1
  123. package/dist/client/assets/js/{ganttDiagram-6RSMTGT7-Ci7dhsnY.js → ganttDiagram-6RSMTGT7-Cbdw-Bcw.js} +1 -1
  124. package/dist/client/assets/js/gitGraph-WXDBUCRP-6wOXvHzD.js +1 -0
  125. package/dist/client/assets/js/{gitGraphDiagram-PVQCEYII-BlLk9eYS.js → gitGraphDiagram-PVQCEYII-B-bpVVPE.js} +1 -1
  126. package/dist/client/assets/js/{go-BOK2cgny.js → go-T3wwW6GT.js} +1 -1
  127. package/dist/client/assets/js/{graphlib-D2Mw_i7z.js → graphlib-zy-xgTNe.js} +1 -1
  128. package/dist/client/assets/js/{graphql-lNO0dhfX.js → graphql-efIwdE3z.js} +1 -1
  129. package/dist/client/assets/js/{handlebars-CVZmi01T.js → handlebars-I50ARPXc.js} +1 -1
  130. package/dist/client/assets/js/{hcl-DzR879Fw.js → hcl-1nBprOUg.js} +1 -1
  131. package/dist/client/assets/js/{highlight-Dj4_XEnA.js → highlight-CEOB4aIv.js} +1 -1
  132. package/dist/client/assets/js/{html-PlnnXcHR.js → html-Dj-ePZ46.js} +1 -1
  133. package/dist/client/assets/js/{htmlMode-Fmdr8cyl.js → htmlMode-CaN3hz4S.js} +1 -1
  134. package/dist/client/assets/js/{http-error-DN0Q0NIV.js → http-error-DzA5OQEf.js} +1 -1
  135. package/dist/client/assets/js/{index-B41wzfl2.js → index-RJQqJC6n.js} +4 -4
  136. package/dist/client/assets/js/info-J43DQDTF-BIWBwu_u.js +1 -0
  137. package/dist/client/assets/js/{infoDiagram-5YYISTIA-NDi7uRio.js → infoDiagram-5YYISTIA-BNXSec0Z.js} +1 -1
  138. package/dist/client/assets/js/{ini-DrTE-Qjw.js → ini-3Ot_KNDr.js} +1 -1
  139. package/dist/client/assets/js/{ishikawaDiagram-YF4QCWOH-Bqr4yRKd.js → ishikawaDiagram-YF4QCWOH-g75yRzDd.js} +1 -1
  140. package/dist/client/assets/js/{ja-24otYQMe.js → ja-CQvWYnv9.js} +1 -1
  141. package/dist/client/assets/js/{java-M1cOm-yu.js → java-BnfIG6C2.js} +1 -1
  142. package/dist/client/assets/js/{javascript-BNXq8PNf.js → javascript-CsnYKLbf.js} +1 -1
  143. package/dist/client/assets/js/{journeyDiagram-JHISSGLW-BEtti5_h.js → journeyDiagram-JHISSGLW-Pz71rJgC.js} +1 -1
  144. package/dist/client/assets/js/{jsonMode-1QUqmLF3.js → jsonMode-C075GWTu.js} +1 -1
  145. package/dist/client/assets/js/{julia-dLq8Su3c.js → julia-BZ-d031P.js} +1 -1
  146. package/dist/client/assets/js/{kanban-definition-UN3LZRKU-B0OINhQN.js → kanban-definition-UN3LZRKU-CM65a4ke.js} +1 -1
  147. package/dist/client/assets/js/{katex-RcNO5wwe.js → katex-CdfrrN4N.js} +1 -1
  148. package/dist/client/assets/js/{ko-BAFhhHmu.js → ko-CJGntapN.js} +1 -1
  149. package/dist/client/assets/js/{kotlin-u5eqp-HC.js → kotlin-Bvrb8ISQ.js} +1 -1
  150. package/dist/client/assets/js/{less-Bmv3Gp2t.js → less-BmSBm_Oo.js} +1 -1
  151. package/dist/client/assets/js/{lexon-D4tsg7Zx.js → lexon-DuK8nBv2.js} +1 -1
  152. package/dist/client/assets/js/{liquid-Bk2yC9hm.js → liquid-BWAc_45a.js} +1 -1
  153. package/dist/client/assets/js/{lspLanguageFeatures-D43hcBWA.js → lspLanguageFeatures-BiQVZMg4.js} +1 -1
  154. package/dist/client/assets/js/{lua-p9IseoQp.js → lua-CyRtU9wL.js} +1 -1
  155. package/dist/client/assets/js/{m3-CP_UPhUb.js → m3-Ew9Azayo.js} +1 -1
  156. package/dist/client/assets/js/{markdown-EMkhjbsA.js → markdown-DTnF9Yaz.js} +1 -1
  157. package/dist/client/assets/js/{mdx-CTIqsEU_.js → mdx-B5cGu-wW.js} +1 -1
  158. package/dist/client/assets/js/{mermaid-parser.core-Ct7VvVNd.js → mermaid-parser.core-H0g6x_iH.js} +3 -3
  159. package/dist/client/assets/js/{mermaid.core-bZP2CdTT.js → mermaid.core-Diknpn0Z.js} +3 -3
  160. package/dist/client/assets/js/{mindmap-definition-RKZ34NQL-HwEZyOHT.js → mindmap-definition-RKZ34NQL-CaunhL_H.js} +1 -1
  161. package/dist/client/assets/js/{mips-CkjAOBJ1.js → mips-Dxi7_29p.js} +1 -1
  162. package/dist/client/assets/js/{models-IOA_Ybyo.js → models-C1Vzhn4J.js} +1 -1
  163. package/dist/client/assets/js/{msdax-D3cfIob3.js → msdax-B6Bgb3AK.js} +1 -1
  164. package/dist/client/assets/js/{mysql-4uHNth4i.js → mysql-BL2x9OzM.js} +1 -1
  165. package/dist/client/assets/js/{objective-c-CJlpUpN6.js → objective-c-BrRFV0XK.js} +1 -1
  166. package/dist/client/assets/js/packet-YPE3B663-DQbqBYnW.js +1 -0
  167. package/dist/client/assets/js/{pascal-CQPmydYD.js → pascal-WA4C_PKB.js} +1 -1
  168. package/dist/client/assets/js/{pascaligo-BpcHvwdj.js → pascaligo-CJbWHnUY.js} +1 -1
  169. package/dist/client/assets/js/{perl-CPq40M_6.js → perl-BI9Huzvv.js} +1 -1
  170. package/dist/client/assets/js/{pets-C2oDgwB5.js → pets-B_-nzG9F.js} +1 -1
  171. package/dist/client/assets/js/{pgsql-CSQ1ge3t.js → pgsql-CzbvRnWT.js} +1 -1
  172. package/dist/client/assets/js/{php-DK0RYdED.js → php-CXAgA_El.js} +1 -1
  173. package/dist/client/assets/js/pie-LRSECV5Y-CIUK74nZ.js +1 -0
  174. package/dist/client/assets/js/{pieDiagram-4H26LBE5-BmAWShfi.js → pieDiagram-4H26LBE5-CCUnlpIr.js} +1 -1
  175. package/dist/client/assets/js/{pla-DWm3Ssta.js → pla-C0RuKVEY.js} +1 -1
  176. package/dist/client/assets/js/{postiats-D6U5CAH_.js → postiats-DrGBuYen.js} +1 -1
  177. package/dist/client/assets/js/{powerquery-luT1PmkC.js → powerquery-C2Rk0MWx.js} +1 -1
  178. package/dist/client/assets/js/{powershell-DqsTi5Tp.js → powershell-Co9Oecz_.js} +1 -1
  179. package/dist/client/assets/js/{profiles-DDKFPE0r.js → profiles-BtECgqqD.js} +1 -1
  180. package/dist/client/assets/js/{protobuf-xWgh_gwl.js → protobuf-BYEreCAs.js} +1 -1
  181. package/dist/client/assets/js/{pt-DPgTOGuO.js → pt-BLQB3VhC.js} +1 -1
  182. package/dist/client/assets/js/{pug-d0a6hBgd.js → pug-DYMxpfbA.js} +1 -1
  183. package/dist/client/assets/js/{python-SkkpZGKb.js → python-D14JG4Tf.js} +1 -1
  184. package/dist/client/assets/js/{qsharp-B4xC_SYh.js → qsharp-eGQdTxCC.js} +1 -1
  185. package/dist/client/assets/js/{quadrantDiagram-W4KKPZXB-DRn55Dz7.js → quadrantDiagram-W4KKPZXB-Do1jBZkB.js} +1 -1
  186. package/dist/client/assets/js/{r-qamn5sfb.js → r-BpBEd0qf.js} +1 -1
  187. package/dist/client/assets/js/radar-GUYGQ44K-DamlzFJn.js +1 -0
  188. package/dist/client/assets/js/{razor-DR9b_EzP.js → razor-DAKZoZ5s.js} +1 -1
  189. package/dist/client/assets/js/{redis-C46kUKug.js → redis-CecBwldA.js} +1 -1
  190. package/dist/client/assets/js/{redshift-DI_dWPgP.js → redshift-DxeKWFdZ.js} +1 -1
  191. package/dist/client/assets/js/{requirementDiagram-4Y6WPE33-Do_KEl0k.js → requirementDiagram-4Y6WPE33-Ccn1EcY0.js} +1 -1
  192. package/dist/client/assets/js/{restructuredtext-oYQfsBYX.js → restructuredtext-BBhjK4w8.js} +1 -1
  193. package/dist/client/assets/js/{rough.esm-BjtdUJeF.js → rough.esm-DKpVfK-g.js} +1 -1
  194. package/dist/client/assets/js/{ru-BGBuhe8j.js → ru-BXep69sk.js} +1 -1
  195. package/dist/client/assets/js/{ruby-Da1TZ4HB.js → ruby-9YJv-z0v.js} +1 -1
  196. package/dist/client/assets/js/{rust-GT6xUobW.js → rust-BihIDWCY.js} +1 -1
  197. package/dist/client/assets/js/{sankeyDiagram-5OEKKPKP-BRnR4W8h.js → sankeyDiagram-5OEKKPKP-BZF9SKVm.js} +1 -1
  198. package/dist/client/assets/js/{sb-D4kxpCPJ.js → sb-DSz7OJbn.js} +1 -1
  199. package/dist/client/assets/js/{scala-CY3U_fvs.js → scala-DrL9oxhs.js} +1 -1
  200. package/dist/client/assets/js/{scheme-DzdFAWU_.js → scheme-Bc0QxXW_.js} +1 -1
  201. package/dist/client/assets/js/{scss-CTwgV3JD.js → scss-BTsIuYyg.js} +1 -1
  202. package/dist/client/assets/js/{sequenceDiagram-3UESZ5HK-CoemgPYx.js → sequenceDiagram-3UESZ5HK-BplvirR_.js} +1 -1
  203. package/dist/client/assets/js/{session-browser-prefs-D3fgv9Yr.js → session-browser-prefs-DnMXaw-N.js} +1 -1
  204. package/dist/client/assets/js/{sessions-BeO9QOJY.js → sessions-wVroPs5k.js} +1 -1
  205. package/dist/client/assets/js/{settings-DM3CNjqC.js → settings-Bzod_9RQ.js} +1 -1
  206. package/dist/client/assets/js/{shell-CUF2wd73.js → shell-DG7-xFwe.js} +1 -1
  207. package/dist/client/assets/js/{skills-3O8WlKlI.js → skills-CQr0eeFF.js} +1 -1
  208. package/dist/client/assets/js/{solidity-C3RnBLh_.js → solidity-COxKdecX.js} +1 -1
  209. package/dist/client/assets/js/{sophia-BA8mP4aY.js → sophia-DtFj5ZDz.js} +1 -1
  210. package/dist/client/assets/js/{sparql-DcwhST_l.js → sparql-B1TD00SE.js} +1 -1
  211. package/dist/client/assets/js/{sql-CjGghxho.js → sql-b7qwDUco.js} +1 -1
  212. package/dist/client/assets/js/{src-Cz8NyTG1.js → src-Ra8Cw6Gr.js} +1 -1
  213. package/dist/client/assets/js/{st-B8Q32toW.js → st-BtSqB0Hh.js} +1 -1
  214. package/dist/client/assets/js/{stateDiagram-AJRCARHV-I4DYKB3q.js → stateDiagram-AJRCARHV-DhJkFuW8.js} +1 -1
  215. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-CqTRINz_.js +1 -0
  216. package/dist/client/assets/js/{swift-Br8oKRCi.js → swift-T2X4Cn4t.js} +1 -1
  217. package/dist/client/assets/js/{systemverilog-DIL7pkd5.js → systemverilog-DeuLbp4J.js} +1 -1
  218. package/dist/client/assets/js/{tcl-C7A4eFCv.js → tcl-ZVjhRcKc.js} +1 -1
  219. package/dist/client/assets/js/{timeline-definition-PNZ67QCA-BnfftsIx.js → timeline-definition-PNZ67QCA-BFAfAvjz.js} +1 -1
  220. package/dist/client/assets/js/treeView-BLDUP644-H8OPaX_2.js +1 -0
  221. package/dist/client/assets/js/treemap-LRROVOQU-BhsUhAW8.js +1 -0
  222. package/dist/client/assets/js/{tsMode-BmS5yGbl.js → tsMode-BK8igQe0.js} +1 -1
  223. package/dist/client/assets/js/{ttsHelpers-DpzPhrib.js → ttsHelpers-CUglUfpM.js} +1 -1
  224. package/dist/client/assets/js/{twig-CxeEoeDi.js → twig-B2I_zOb5.js} +1 -1
  225. package/dist/client/assets/js/{typescript-BPw3e1LN.js → typescript-DqxcEPol.js} +1 -1
  226. package/dist/client/assets/js/{typespec-dQqbgDyW.js → typespec-DYubob7r.js} +1 -1
  227. package/dist/client/assets/js/{useSttSettings-Dd2zPJU6.js → useSttSettings-BAz3MWB_.js} +1 -1
  228. package/dist/client/assets/js/{vb-DpmkDtUb.js → vb-DulIu0AM.js} +1 -1
  229. package/dist/client/assets/js/{vennDiagram-CIIHVFJN-Bu76Q1QQ.js → vennDiagram-CIIHVFJN-BTMh4zH0.js} +1 -1
  230. package/dist/client/assets/js/wardley-L42UT6IY-w2cdSduy.js +1 -0
  231. package/dist/client/assets/js/{wardleyDiagram-YWT4CUSO-BQ7KDw3c.js → wardleyDiagram-YWT4CUSO-CjApV8-0.js} +1 -1
  232. package/dist/client/assets/js/{wgsl-BzEo-Lwp.js → wgsl-DiXzOVd2.js} +1 -1
  233. package/dist/client/assets/js/{xml-CNMAb3tW.js → xml-DtDrXyok.js} +1 -1
  234. package/dist/client/assets/js/{xterm-B-CU1LD3.js → xterm-CdfgdkPC.js} +1 -1
  235. package/dist/client/assets/js/{xychartDiagram-2RQKCTM6-B1x6n3B3.js → xychartDiagram-2RQKCTM6-DuaP4Pnm.js} +1 -1
  236. package/dist/client/assets/js/{yaml-DpwMHYi6.js → yaml-9_m3OBnv.js} +1 -1
  237. package/dist/client/assets/js/{zh-TW-BJY5MjsC.js → zh-TW-CLhifuOg.js} +1 -1
  238. package/dist/client/assets/js/{zh-CoPU4mYG.js → zh-gGY9f4WM.js} +1 -1
  239. package/dist/client/index.html +1 -1
  240. package/dist/server/index.js +3 -3
  241. package/dist/server/index.js.map +1 -1
  242. package/dist/server/openapi.json +1 -1
  243. package/package.json +1 -1
  244. package/dist/client/assets/js/AppSidebar-BHfH59vK.js +0 -1
  245. package/dist/client/assets/js/architecture-7EHR7CIX-CCBUg0GR.js +0 -1
  246. package/dist/client/assets/js/classDiagram-4FO5ZUOK-Dr5SR3PA.js +0 -1
  247. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-BeYcryNa.js +0 -1
  248. package/dist/client/assets/js/eventmodeling-FCH6USID-Cd6TFrci.js +0 -1
  249. package/dist/client/assets/js/gitGraph-WXDBUCRP-CG4qC9Jw.js +0 -1
  250. package/dist/client/assets/js/info-J43DQDTF-CFtOWOWw.js +0 -1
  251. package/dist/client/assets/js/packet-YPE3B663-C0Vs_oOB.js +0 -1
  252. package/dist/client/assets/js/pie-LRSECV5Y-CAscu7sk.js +0 -1
  253. package/dist/client/assets/js/radar-GUYGQ44K-CfxS0DQE.js +0 -1
  254. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-BHJGHZeG.js +0 -1
  255. package/dist/client/assets/js/treeView-BLDUP644-wNgfMdO5.js +0 -1
  256. package/dist/client/assets/js/treemap-LRROVOQU-Dy2LkAdg.js +0 -1
  257. package/dist/client/assets/js/wardley-L42UT6IY-BGLmswxh.js +0 -1
@@ -1 +1 @@
1
- import{aa as Et}from"./index-B41wzfl2.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{aa as Et}from"./index-RJQqJC6n.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};