@verdocs/web-sdk 4.2.157 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/dist/cjs/Datastore-b1742da2.js +1783 -0
  2. package/dist/cjs/Icons-02a47df1.js +7 -0
  3. package/dist/cjs/{index-2589e4d1.js → index-ccac8641.js} +19 -31
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{utils-5accd019.js → utils-ba1e95e0.js} +4 -2
  6. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-build.cjs.entry.js +22 -13
  8. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
  9. package/dist/cjs/{verdocs-button_3.cjs.entry.js → verdocs-button_2.cjs.entry.js} +1 -56
  10. package/dist/cjs/{verdocs-checkbox_4.cjs.entry.js → verdocs-checkbox_6.cjs.entry.js} +115 -24
  11. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +30 -15
  16. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +32 -17
  17. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +64 -45
  18. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +105 -156
  20. package/dist/cjs/verdocs-field-payment.cjs.entry.js +38 -25
  21. package/dist/cjs/{verdocs-file-chooser_2.cjs.entry.js → verdocs-file-chooser.cjs.entry.js} +2 -21
  22. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +27 -5
  23. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  26. package/dist/cjs/{verdocs-preview_9.cjs.entry.js → verdocs-preview_5.cjs.entry.js} +220 -593
  27. package/dist/cjs/verdocs-progress-bar.cjs.entry.js +25 -0
  28. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-sign.cjs.entry.js +11 -12
  33. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-table.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-template-create.cjs.entry.js +108 -0
  38. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +78 -63
  39. package/dist/cjs/verdocs-template-role-properties.cjs.entry.js +58 -37
  40. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  41. package/dist/cjs/verdocs-template-tags.cjs.entry.js +2 -2
  42. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  43. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
  45. package/dist/collection/collection-manifest.json +2 -5
  46. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +5 -21
  47. package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +27 -40
  48. package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js +27 -28
  49. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +45 -44
  50. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +12 -11
  51. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +28 -28
  52. package/dist/collection/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.js +34 -15
  53. package/dist/collection/components/envelopes/verdocs-envelope-recipient-summary/verdocs-envelope-recipient-summary.js +35 -17
  54. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +67 -45
  55. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +29 -18
  56. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +30 -20
  57. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +30 -22
  58. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +29 -17
  59. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +30 -18
  60. package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js +192 -139
  61. package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.js +30 -20
  62. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +30 -18
  63. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +31 -19
  64. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +31 -0
  65. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +44 -44
  66. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +29 -17
  67. package/dist/collection/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.js +37 -32
  68. package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +7 -15
  69. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.css +6 -0
  70. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +79 -61
  71. package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +48 -24
  72. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +65 -64
  73. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +61 -36
  74. package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +63 -46
  75. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  76. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  77. package/dist/collection/utils/Datastore.js +141 -0
  78. package/dist/collection/utils/Templates.js +2 -0
  79. package/dist/collection/utils/utils.js +3 -2
  80. package/dist/components/index.js +1 -7
  81. package/dist/components/{p-3044c9cb.js → p-070bebd7.js} +1 -1
  82. package/dist/components/{p-69881420.js → p-0ca7012b.js} +1 -1
  83. package/dist/components/{p-b2bf338f.js → p-0d063bf9.js} +65 -35
  84. package/dist/components/{p-ac7578f6.js → p-0e332769.js} +1 -1
  85. package/dist/components/{p-12594438.js → p-1030e0b1.js} +32 -32
  86. package/dist/components/{p-b11eb119.js → p-15d530b8.js} +6 -6
  87. package/dist/components/{p-71dd305b.js → p-18999830.js} +2 -2
  88. package/dist/components/{p-90540412.js → p-1ae5d7e0.js} +1 -1
  89. package/dist/components/{p-4d2f2954.js → p-1e2e8b1c.js} +1 -1
  90. package/dist/components/{p-c7a21595.js → p-1e67ebdf.js} +67 -42
  91. package/dist/components/{p-72e959a7.js → p-1fc15f94.js} +31 -32
  92. package/dist/components/{p-85ef4d07.js → p-2548f3f0.js} +49 -38
  93. package/dist/components/{p-9a85b700.js → p-258c3c53.js} +125 -101
  94. package/dist/components/{p-263dc67d.js → p-315d6592.js} +1 -1
  95. package/dist/components/{p-4dc4418a.js → p-3201d529.js} +1 -1
  96. package/dist/components/{p-7786799a.js → p-324ed895.js} +8 -4
  97. package/dist/components/{p-4c8548d4.js → p-4bc5ac82.js} +4 -3
  98. package/dist/components/{p-ffe8b41d.js → p-4dd750e9.js} +1 -1
  99. package/dist/components/{p-b679d760.js → p-4e08dcdd.js} +33 -32
  100. package/dist/components/{p-82fb3284.js → p-58c2bd5d.js} +1 -1
  101. package/dist/components/{p-d3170dcd.js → p-5a9cea40.js} +4 -4
  102. package/dist/components/{p-76282bf0.js → p-5d1dec61.js} +52 -53
  103. package/dist/components/{p-8b27ce22.js → p-5d4bbcd0.js} +1 -1
  104. package/dist/components/{p-8cd2e08d.js → p-5d82a9f3.js} +64 -57
  105. package/dist/components/{p-877eaf65.js → p-5eb45a4f.js} +1 -1
  106. package/dist/components/{p-cbb20d7a.js → p-6400f542.js} +36 -14
  107. package/dist/components/{p-6e8c00bc.js → p-642af221.js} +32 -31
  108. package/dist/components/{p-03660739.js → p-649a2ae7.js} +31 -32
  109. package/dist/components/{p-e4ac6259.js → p-6fcd99d1.js} +2 -2
  110. package/dist/components/p-7e9c499e.js +4 -0
  111. package/dist/components/{p-cdf871dd.js → p-81794664.js} +30 -29
  112. package/dist/components/{p-1b60debe.js → p-82a3f92e.js} +30 -29
  113. package/dist/components/{p-921297ba.js → p-84ae0283.js} +1 -1
  114. package/dist/components/{p-fbc69665.js → p-8d3c0b4c.js} +2 -2
  115. package/dist/components/{p-83a2fa2f.js → p-8fbc64e9.js} +72 -55
  116. package/dist/components/{p-761eefa9.js → p-94065def.js} +91 -90
  117. package/dist/components/{p-0e64ccc3.js → p-9bb47a5a.js} +1 -1
  118. package/dist/components/{p-df4ac086.js → p-a3e12c74.js} +2 -2
  119. package/dist/components/{p-6b369b14.js → p-b16c202a.js} +1 -1
  120. package/dist/components/{p-3518350d.js → p-b9034018.js} +4 -4
  121. package/dist/components/{p-b8cd75c0.js → p-b9a18099.js} +56 -46
  122. package/dist/components/{p-8f942993.js → p-bdc03b91.js} +32 -31
  123. package/dist/components/{p-4535a9fd.js → p-c7b00ce6.js} +36 -17
  124. package/dist/components/{p-e4a852b5.js → p-c8fedb4e.js} +7 -6
  125. package/dist/components/{p-0162bdd3.js → p-caa41754.js} +31 -34
  126. package/dist/components/{p-83245875.js → p-cf6ea837.js} +2 -2
  127. package/dist/components/p-da4d4eed.js +1781 -0
  128. package/dist/components/p-ea5954bd.js +4 -0
  129. package/dist/components/{p-1e63fb14.js → p-ec894daf.js} +2 -2
  130. package/dist/components/{p-556596e4.js → p-f72b9c45.js} +1 -1
  131. package/dist/components/{p-a7bbe96b.js → p-f990140a.js} +3 -3
  132. package/dist/components/{p-db4a15fd.js → p-fcad60f5.js} +1 -1
  133. package/dist/components/verdocs-auth.js +4 -4
  134. package/dist/components/verdocs-build.js +93 -115
  135. package/dist/components/verdocs-button-panel.js +1 -1
  136. package/dist/components/verdocs-button.js +1 -1
  137. package/dist/components/verdocs-checkbox.js +1 -1
  138. package/dist/components/verdocs-component-error.js +1 -1
  139. package/dist/components/verdocs-contact-picker.js +1 -1
  140. package/dist/components/verdocs-dialog.js +1 -1
  141. package/dist/components/verdocs-dropdown.js +1 -1
  142. package/dist/components/verdocs-envelope-document-page.js +1 -1
  143. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  144. package/dist/components/verdocs-envelope-recipient-summary.js +37 -19
  145. package/dist/components/verdocs-envelope-sidebar.js +76 -54
  146. package/dist/components/verdocs-envelopes-list.js +12 -12
  147. package/dist/components/verdocs-field-attachment.js +1 -1
  148. package/dist/components/verdocs-field-checkbox.js +1 -1
  149. package/dist/components/verdocs-field-date.js +1 -1
  150. package/dist/components/verdocs-field-dropdown.js +1 -1
  151. package/dist/components/verdocs-field-initial.js +1 -1
  152. package/dist/components/verdocs-field-payment.js +106 -33
  153. package/dist/components/verdocs-field-radio.js +1 -1
  154. package/dist/components/verdocs-field-signature.js +1 -1
  155. package/dist/components/verdocs-field-textarea.js +1 -1
  156. package/dist/components/verdocs-field-textbox.js +1 -1
  157. package/dist/components/verdocs-field-timestamp.js +1 -1
  158. package/dist/components/verdocs-file-chooser.js +56 -1
  159. package/dist/components/verdocs-help-icon.js +1 -1
  160. package/dist/components/verdocs-initial-dialog.js +1 -1
  161. package/dist/components/verdocs-kba-dialog.js +1 -1
  162. package/dist/components/verdocs-loader.js +1 -1
  163. package/dist/components/verdocs-ok-dialog.js +1 -1
  164. package/dist/components/verdocs-organization-card.js +2 -2
  165. package/dist/components/verdocs-pagination.js +1 -1
  166. package/dist/components/verdocs-portal.js +1 -1
  167. package/dist/components/verdocs-preview.js +1 -1
  168. package/dist/components/verdocs-progress-bar.js +1 -1
  169. package/dist/components/verdocs-quick-filter.js +1 -1
  170. package/dist/components/verdocs-quick-functions.js +1 -1
  171. package/dist/components/verdocs-radio-button.js +1 -1
  172. package/dist/components/verdocs-search-box.js +1 -1
  173. package/dist/components/verdocs-search-tabs.js +1 -1
  174. package/dist/components/verdocs-select-input.js +1 -1
  175. package/dist/components/verdocs-send.js +1 -1
  176. package/dist/components/verdocs-sign.js +24 -23
  177. package/dist/components/verdocs-signature-dialog.js +1 -1
  178. package/dist/components/verdocs-spinner.js +1 -1
  179. package/dist/components/verdocs-status-indicator.js +1 -1
  180. package/dist/components/verdocs-switch.js +1 -1
  181. package/dist/components/verdocs-table.js +1 -1
  182. package/dist/components/verdocs-tabs.js +1 -1
  183. package/dist/components/verdocs-template-build-tabs.js +1 -1
  184. package/dist/components/verdocs-template-card.js +1 -1
  185. package/dist/components/verdocs-template-create.js +148 -1
  186. package/dist/components/verdocs-template-document-page.js +1 -1
  187. package/dist/components/verdocs-template-field-properties.js +1 -1
  188. package/dist/components/verdocs-template-fields.js +1 -1
  189. package/dist/components/verdocs-template-role-properties.js +1 -1
  190. package/dist/components/verdocs-template-roles.js +1 -1
  191. package/dist/components/verdocs-template-star.js +1 -1
  192. package/dist/components/verdocs-template-tags.js +2 -2
  193. package/dist/components/verdocs-templates-list.js +11 -11
  194. package/dist/components/verdocs-text-input.js +1 -1
  195. package/dist/components/verdocs-toggle-button.js +1 -1
  196. package/dist/components/verdocs-toggle.js +1 -1
  197. package/dist/components/verdocs-toolbar-icon.js +1 -1
  198. package/dist/components/verdocs-upload-dialog.js +1 -1
  199. package/dist/components/verdocs-view.js +1 -1
  200. package/dist/custom-elements.json +2114 -0
  201. package/dist/esm/Datastore-52fcbac6.js +1781 -0
  202. package/dist/esm/Icons-190fd11d.js +4 -0
  203. package/dist/esm/{index-c8587076.js → index-272d51a4.js} +20 -30
  204. package/dist/esm/loader.js +3 -3
  205. package/dist/esm/{utils-6ecd6558.js → utils-47de6f79.js} +4 -3
  206. package/dist/esm/verdocs-auth.entry.js +1 -1
  207. package/dist/esm/verdocs-build.entry.js +23 -14
  208. package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
  209. package/dist/esm/{verdocs-button_3.entry.js → verdocs-button_2.entry.js} +2 -56
  210. package/dist/esm/{verdocs-checkbox_4.entry.js → verdocs-checkbox_6.entry.js} +115 -26
  211. package/dist/esm/verdocs-contact-picker_2.entry.js +2 -2
  212. package/dist/esm/verdocs-dialog.entry.js +1 -1
  213. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  214. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  215. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +31 -16
  216. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +33 -18
  217. package/dist/esm/verdocs-envelope-sidebar.entry.js +65 -46
  218. package/dist/esm/verdocs-envelopes-list.entry.js +2 -2
  219. package/dist/esm/verdocs-field-attachment_13.entry.js +105 -156
  220. package/dist/esm/verdocs-field-payment.entry.js +38 -25
  221. package/dist/{components/p-fe2dca8c.js → esm/verdocs-file-chooser.entry.js} +8 -31
  222. package/dist/esm/verdocs-kba-dialog_2.entry.js +27 -5
  223. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  224. package/dist/esm/verdocs-organization-card_2.entry.js +1 -1
  225. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  226. package/dist/esm/{verdocs-preview_9.entry.js → verdocs-preview_5.entry.js} +222 -591
  227. package/dist/esm/verdocs-progress-bar.entry.js +21 -0
  228. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  229. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  230. package/dist/esm/verdocs-search-box.entry.js +1 -1
  231. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  232. package/dist/esm/verdocs-sign.entry.js +11 -12
  233. package/dist/esm/verdocs-spinner.entry.js +1 -1
  234. package/dist/esm/verdocs-status-indicator.entry.js +1 -1
  235. package/dist/esm/verdocs-table.entry.js +1 -1
  236. package/dist/esm/verdocs-template-card.entry.js +1 -1
  237. package/dist/{components/p-f9cc62a7.js → esm/verdocs-template-create.entry.js} +15 -69
  238. package/dist/esm/verdocs-template-document-page_2.entry.js +79 -64
  239. package/dist/esm/verdocs-template-role-properties.entry.js +59 -38
  240. package/dist/esm/verdocs-template-star.entry.js +2 -2
  241. package/dist/esm/verdocs-template-tags.entry.js +2 -2
  242. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  243. package/dist/esm/verdocs-toggle.entry.js +1 -1
  244. package/dist/esm/verdocs-web-sdk.js +4 -4
  245. package/dist/esm-es5/Datastore-52fcbac6.js +1 -0
  246. package/dist/esm-es5/Icons-190fd11d.js +1 -0
  247. package/dist/esm-es5/index-272d51a4.js +1 -0
  248. package/dist/esm-es5/loader.js +1 -1
  249. package/dist/esm-es5/{utils-6ecd6558.js → utils-47de6f79.js} +1 -1
  250. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  251. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  252. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  253. package/dist/esm-es5/verdocs-button_2.entry.js +1 -0
  254. package/dist/esm-es5/verdocs-checkbox_6.entry.js +1 -0
  255. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  256. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  257. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  258. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  259. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  260. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  261. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  262. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  263. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  264. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  265. package/dist/esm-es5/verdocs-file-chooser.entry.js +1 -0
  266. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
  267. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  268. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  269. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  270. package/dist/esm-es5/verdocs-preview_5.entry.js +1 -0
  271. package/dist/esm-es5/verdocs-progress-bar.entry.js +1 -0
  272. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  273. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  274. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  275. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  276. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  277. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  278. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  279. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  280. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  281. package/dist/esm-es5/verdocs-template-create.entry.js +1 -0
  282. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  283. package/dist/esm-es5/verdocs-template-role-properties.entry.js +1 -1
  284. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  285. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  286. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  287. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  288. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  289. package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +0 -2
  290. package/dist/types/components/embeds/verdocs-build/verdocs-build.d.ts +8 -32
  291. package/dist/types/components/embeds/verdocs-preview/verdocs-preview.d.ts +6 -8
  292. package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +7 -6
  293. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -3
  294. package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +6 -5
  295. package/dist/types/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.d.ts +6 -3
  296. package/dist/types/components/envelopes/verdocs-envelope-recipient-summary/verdocs-envelope-recipient-summary.d.ts +6 -3
  297. package/dist/types/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +8 -4
  298. package/dist/types/components/fields/verdocs-field-attachment/verdocs-field-attachment.d.ts +6 -7
  299. package/dist/types/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.d.ts +6 -7
  300. package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +6 -7
  301. package/dist/types/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.d.ts +6 -7
  302. package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +6 -7
  303. package/dist/types/components/fields/verdocs-field-payment/verdocs-field-payment.d.ts +44 -30
  304. package/dist/types/components/fields/verdocs-field-radio/verdocs-field-radio.d.ts +6 -7
  305. package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +6 -7
  306. package/dist/types/components/fields/verdocs-field-textarea/verdocs-field-textarea.d.ts +6 -7
  307. package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +5 -12
  308. package/dist/types/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.d.ts +6 -7
  309. package/dist/types/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.d.ts +7 -4
  310. package/dist/types/components/templates/verdocs-template-document-page/verdocs-template-document-page.d.ts +7 -4
  311. package/dist/types/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.d.ts +7 -8
  312. package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +6 -8
  313. package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.d.ts +7 -7
  314. package/dist/types/components/templates/verdocs-template-roles/verdocs-template-roles.d.ts +7 -6
  315. package/dist/types/components.d.ts +176 -409
  316. package/dist/types/utils/Datastore.d.ts +24 -0
  317. package/dist/types/utils/Templates.d.ts +3 -0
  318. package/dist/types/utils/utils.d.ts +1 -1
  319. package/dist/verdocs-web-sdk/{p-efcbb3cf.entry.js → p-0ca1e87c.entry.js} +1 -1
  320. package/dist/verdocs-web-sdk/{p-dc271457.entry.js → p-167e3d7e.entry.js} +1 -1
  321. package/dist/verdocs-web-sdk/p-1efce6e0.entry.js +1 -0
  322. package/dist/verdocs-web-sdk/{p-7bd37bca.entry.js → p-2a1287ec.entry.js} +1 -1
  323. package/dist/verdocs-web-sdk/{p-5381847c.system.js → p-2be751c4.system.js} +1 -1
  324. package/dist/verdocs-web-sdk/{p-cb30f11e.entry.js → p-2f73c9de.entry.js} +1 -1
  325. package/dist/verdocs-web-sdk/p-3364cc13.system.entry.js +1 -0
  326. package/dist/verdocs-web-sdk/{p-03d40eb5.system.entry.js → p-37d747fb.system.entry.js} +1 -1
  327. package/dist/verdocs-web-sdk/p-386d789c.system.entry.js +1 -0
  328. package/dist/verdocs-web-sdk/p-3a1fa556.system.entry.js +1 -0
  329. package/dist/verdocs-web-sdk/{p-0fd57194.entry.js → p-41cbf650.entry.js} +1 -1
  330. package/dist/verdocs-web-sdk/{p-26715b8b.entry.js → p-4b36ca30.entry.js} +1 -1
  331. package/dist/verdocs-web-sdk/{p-98501408.system.entry.js → p-4e9e154f.system.entry.js} +1 -1
  332. package/dist/verdocs-web-sdk/{p-a3778013.system.entry.js → p-511a4ecc.system.entry.js} +1 -1
  333. package/dist/verdocs-web-sdk/{p-65a4e01e.entry.js → p-524f37a0.entry.js} +1 -1
  334. package/dist/verdocs-web-sdk/{p-13fe8650.system.entry.js → p-53f4c7c3.system.entry.js} +1 -1
  335. package/dist/verdocs-web-sdk/p-54f085d1.entry.js +1 -0
  336. package/dist/verdocs-web-sdk/{p-d1e64207.entry.js → p-584113d1.entry.js} +1 -1
  337. package/dist/verdocs-web-sdk/{p-f8cad58e.entry.js → p-5f1a000c.entry.js} +1 -1
  338. package/dist/verdocs-web-sdk/{p-256f07fd.system.entry.js → p-62f15675.system.entry.js} +1 -1
  339. package/dist/verdocs-web-sdk/{p-fae63f89.js → p-650697bd.js} +1 -1
  340. package/dist/verdocs-web-sdk/{p-c06d2604.entry.js → p-65c5398e.entry.js} +1 -1
  341. package/dist/verdocs-web-sdk/p-6a95ce12.system.entry.js +1 -0
  342. package/dist/verdocs-web-sdk/{p-0446030b.entry.js → p-6ced37ed.entry.js} +1 -1
  343. package/dist/verdocs-web-sdk/{p-16619383.entry.js → p-7464b84f.entry.js} +1 -1
  344. package/dist/verdocs-web-sdk/{p-6e3fa0c4.system.entry.js → p-761f6656.system.entry.js} +1 -1
  345. package/dist/verdocs-web-sdk/{p-30bc5986.entry.js → p-76cc40fe.entry.js} +1 -1
  346. package/dist/verdocs-web-sdk/{p-c45dc777.entry.js → p-771c2f92.entry.js} +1 -1
  347. package/dist/verdocs-web-sdk/p-78191329.system.entry.js +1 -0
  348. package/dist/verdocs-web-sdk/p-79f842b4.system.entry.js +1 -0
  349. package/dist/verdocs-web-sdk/{p-f3c995d8.system.entry.js → p-7c8938e7.system.entry.js} +1 -1
  350. package/dist/verdocs-web-sdk/p-7e9c499e.js +1 -0
  351. package/dist/verdocs-web-sdk/p-8221a48f.entry.js +1 -0
  352. package/dist/verdocs-web-sdk/p-860b9f94.system.entry.js +1 -0
  353. package/dist/verdocs-web-sdk/p-89cdecac.system.entry.js +1 -0
  354. package/dist/verdocs-web-sdk/p-8a2ff048.entry.js +1 -0
  355. package/dist/verdocs-web-sdk/{p-921b56fd.system.entry.js → p-914e131c.system.entry.js} +1 -1
  356. package/dist/verdocs-web-sdk/{p-5737f0ae.system.js → p-9186f42e.system.js} +1 -1
  357. package/dist/verdocs-web-sdk/{p-8e233a6b.system.entry.js → p-9227d400.system.entry.js} +1 -1
  358. package/dist/verdocs-web-sdk/p-92ce6180.entry.js +1 -0
  359. package/dist/verdocs-web-sdk/p-9567cb7d.system.entry.js +1 -0
  360. package/dist/verdocs-web-sdk/p-9812e99d.system.entry.js +1 -0
  361. package/dist/verdocs-web-sdk/{p-4b4801ad.system.entry.js → p-982f1b36.system.entry.js} +1 -1
  362. package/dist/verdocs-web-sdk/{p-ed6a5478.system.entry.js → p-9d0b0e36.system.entry.js} +1 -1
  363. package/dist/verdocs-web-sdk/{p-4266e717.system.entry.js → p-a08886c1.system.entry.js} +1 -1
  364. package/dist/verdocs-web-sdk/{p-e25e1dcf.entry.js → p-a165607e.entry.js} +1 -1
  365. package/dist/verdocs-web-sdk/p-a242aa80.system.entry.js +1 -0
  366. package/dist/verdocs-web-sdk/p-a7db9f1f.system.entry.js +1 -0
  367. package/dist/verdocs-web-sdk/{p-5d6a2fda.system.entry.js → p-a9635106.system.entry.js} +1 -1
  368. package/dist/verdocs-web-sdk/p-aebb0cd9.system.entry.js +1 -0
  369. package/dist/verdocs-web-sdk/p-b00ef194.system.entry.js +1 -0
  370. package/dist/verdocs-web-sdk/p-b0b958a0.entry.js +1 -0
  371. package/dist/verdocs-web-sdk/p-b8737f7b.entry.js +1 -0
  372. package/dist/verdocs-web-sdk/{p-49988769.js → p-b9654a5e.js} +2 -2
  373. package/dist/verdocs-web-sdk/p-bb0effe1.entry.js +1 -0
  374. package/dist/verdocs-web-sdk/p-bcc23811.entry.js +1 -0
  375. package/dist/verdocs-web-sdk/{p-281e63e5.entry.js → p-bd7406ae.entry.js} +1 -1
  376. package/dist/verdocs-web-sdk/{p-e8d91957.entry.js → p-bdd7b3d3.entry.js} +1 -1
  377. package/dist/verdocs-web-sdk/{p-c5818330.entry.js → p-c1728f5c.entry.js} +1 -1
  378. package/dist/verdocs-web-sdk/p-c18c718f.system.js +1 -0
  379. package/dist/verdocs-web-sdk/{p-731066de.system.entry.js → p-c6fd3e53.system.entry.js} +1 -1
  380. package/dist/verdocs-web-sdk/p-c7cd6843.entry.js +1 -0
  381. package/dist/verdocs-web-sdk/{p-4f7c72f9.system.entry.js → p-c9f40726.system.entry.js} +1 -1
  382. package/dist/verdocs-web-sdk/p-ca712f40.system.entry.js +1 -0
  383. package/dist/verdocs-web-sdk/p-cbb75c5e.system.entry.js +1 -0
  384. package/dist/verdocs-web-sdk/{p-751b0280.entry.js → p-d475fff3.entry.js} +1 -1
  385. package/dist/verdocs-web-sdk/{p-91c4298b.system.entry.js → p-d5870e33.system.entry.js} +1 -1
  386. package/dist/verdocs-web-sdk/{p-e5126f26.system.entry.js → p-d8dae4e9.system.entry.js} +1 -1
  387. package/dist/verdocs-web-sdk/p-d93c7661.entry.js +1 -0
  388. package/dist/verdocs-web-sdk/{p-93093a7a.system.entry.js → p-d98cbd0f.system.entry.js} +1 -1
  389. package/dist/verdocs-web-sdk/p-da4d4eed.js +1 -0
  390. package/dist/verdocs-web-sdk/{p-2298c22e.entry.js → p-ddb17b3e.entry.js} +1 -1
  391. package/dist/verdocs-web-sdk/p-df04f0ca.entry.js +1 -0
  392. package/dist/verdocs-web-sdk/p-e2b70dfb.system.js +1 -0
  393. package/dist/verdocs-web-sdk/{p-2aea0c7b.system.entry.js → p-e438bd02.system.entry.js} +1 -1
  394. package/dist/verdocs-web-sdk/p-e5044463.entry.js +1 -0
  395. package/dist/verdocs-web-sdk/{p-b066c4f2.system.entry.js → p-e5d291f3.system.entry.js} +1 -1
  396. package/dist/verdocs-web-sdk/{p-7f1e0c5e.entry.js → p-e6dbb0f7.entry.js} +1 -1
  397. package/dist/verdocs-web-sdk/{p-c4d61c66.entry.js → p-e83cd333.entry.js} +1 -1
  398. package/dist/verdocs-web-sdk/p-efd8149f.system.js +1 -0
  399. package/dist/verdocs-web-sdk/p-f4fcf7a5.entry.js +1 -0
  400. package/dist/verdocs-web-sdk/{p-97b951e6.system.entry.js → p-f5d01982.system.entry.js} +1 -1
  401. package/dist/verdocs-web-sdk/p-f65a9b03.entry.js +1 -0
  402. package/dist/verdocs-web-sdk/p-f7abe6e2.entry.js +1 -0
  403. package/dist/verdocs-web-sdk/{p-6e55af26.system.entry.js → p-f9b37af2.system.entry.js} +1 -1
  404. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  405. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  406. package/package.json +3 -3
  407. package/dist/cjs/EnvelopeStore-f1cd9bd3.js +0 -96
  408. package/dist/cjs/Icons-9a6f2f7c.js +0 -86
  409. package/dist/cjs/TemplateFieldStore-7bcc0f7a.js +0 -44
  410. package/dist/cjs/TemplateRoleStore-e8bb00ec.js +0 -51
  411. package/dist/cjs/TemplateStore-db21be4d.js +0 -99
  412. package/dist/cjs/index-2a189d85.js +0 -3721
  413. package/dist/cjs/index-76d03a35.js +0 -196
  414. package/dist/cjs/verdocs-loader.cjs.entry.js +0 -20
  415. package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.css +0 -120
  416. package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js +0 -284
  417. package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.css +0 -0
  418. package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.js +0 -196
  419. package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.css +0 -86
  420. package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.js +0 -203
  421. package/dist/collection/utils/EnvelopeStore.js +0 -90
  422. package/dist/collection/utils/TemplateFieldStore.js +0 -36
  423. package/dist/collection/utils/TemplateRoleStore.js +0 -41
  424. package/dist/collection/utils/TemplateStore.js +0 -94
  425. package/dist/components/p-00d39dca.js +0 -39
  426. package/dist/components/p-0933fb2d.js +0 -127
  427. package/dist/components/p-09d28afd.js +0 -97
  428. package/dist/components/p-3555cef1.js +0 -122
  429. package/dist/components/p-474b6663.js +0 -1314
  430. package/dist/components/p-821f2345.js +0 -93
  431. package/dist/components/p-9b5a4f9e.js +0 -44
  432. package/dist/components/p-a706bac9.js +0 -3719
  433. package/dist/components/p-b0766439.js +0 -76
  434. package/dist/components/p-ed9a1a21.js +0 -200
  435. package/dist/components/verdocs-template-attachments.d.ts +0 -11
  436. package/dist/components/verdocs-template-attachments.js +0 -6
  437. package/dist/components/verdocs-template-name.d.ts +0 -11
  438. package/dist/components/verdocs-template-name.js +0 -6
  439. package/dist/components/verdocs-template-visibility.d.ts +0 -11
  440. package/dist/components/verdocs-template-visibility.js +0 -6
  441. package/dist/esm/EnvelopeStore-4599b7d3.js +0 -93
  442. package/dist/esm/Icons-faf0377f.js +0 -76
  443. package/dist/esm/TemplateFieldStore-909147d8.js +0 -39
  444. package/dist/esm/TemplateRoleStore-2fef1fdb.js +0 -44
  445. package/dist/esm/TemplateStore-ace14a8b.js +0 -97
  446. package/dist/esm/index-24d8ae6a.js +0 -194
  447. package/dist/esm/index-7588a071.js +0 -3719
  448. package/dist/esm/verdocs-file-chooser_2.entry.js +0 -53
  449. package/dist/esm/verdocs-loader.entry.js +0 -16
  450. package/dist/esm-es5/EnvelopeStore-4599b7d3.js +0 -1
  451. package/dist/esm-es5/Icons-faf0377f.js +0 -1
  452. package/dist/esm-es5/TemplateFieldStore-909147d8.js +0 -1
  453. package/dist/esm-es5/TemplateRoleStore-2fef1fdb.js +0 -1
  454. package/dist/esm-es5/TemplateStore-ace14a8b.js +0 -1
  455. package/dist/esm-es5/index-24d8ae6a.js +0 -1
  456. package/dist/esm-es5/index-7588a071.js +0 -1
  457. package/dist/esm-es5/index-c8587076.js +0 -1
  458. package/dist/esm-es5/verdocs-button_3.entry.js +0 -1
  459. package/dist/esm-es5/verdocs-checkbox_4.entry.js +0 -1
  460. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +0 -1
  461. package/dist/esm-es5/verdocs-loader.entry.js +0 -1
  462. package/dist/esm-es5/verdocs-preview_9.entry.js +0 -1
  463. package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.d.ts +0 -56
  464. package/dist/types/components/templates/verdocs-template-name/verdocs-template-name.d.ts +0 -41
  465. package/dist/types/components/templates/verdocs-template-visibillity/verdocs-template-visibility.d.ts +0 -42
  466. package/dist/types/utils/EnvelopeStore.d.ts +0 -12
  467. package/dist/types/utils/TemplateFieldStore.d.ts +0 -9
  468. package/dist/types/utils/TemplateRoleStore.d.ts +0 -11
  469. package/dist/types/utils/TemplateStore.d.ts +0 -16
  470. package/dist/verdocs-web-sdk/p-0c51c5be.entry.js +0 -1
  471. package/dist/verdocs-web-sdk/p-194f9f4d.entry.js +0 -1
  472. package/dist/verdocs-web-sdk/p-1ce2f724.system.entry.js +0 -1
  473. package/dist/verdocs-web-sdk/p-2211234d.system.js +0 -1
  474. package/dist/verdocs-web-sdk/p-2305c1e8.system.entry.js +0 -1
  475. package/dist/verdocs-web-sdk/p-261d5b4a.system.entry.js +0 -1
  476. package/dist/verdocs-web-sdk/p-341d540f.system.entry.js +0 -1
  477. package/dist/verdocs-web-sdk/p-368a36ea.system.js +0 -1
  478. package/dist/verdocs-web-sdk/p-36b5d46e.entry.js +0 -1
  479. package/dist/verdocs-web-sdk/p-569434fb.system.js +0 -1
  480. package/dist/verdocs-web-sdk/p-56c1ebd6.entry.js +0 -1
  481. package/dist/verdocs-web-sdk/p-5bf2910c.system.entry.js +0 -1
  482. package/dist/verdocs-web-sdk/p-6bc1b9f4.entry.js +0 -1
  483. package/dist/verdocs-web-sdk/p-6fda3817.js +0 -1
  484. package/dist/verdocs-web-sdk/p-77ec43a3.system.entry.js +0 -1
  485. package/dist/verdocs-web-sdk/p-79e222f8.entry.js +0 -1
  486. package/dist/verdocs-web-sdk/p-7a5b80f8.entry.js +0 -1
  487. package/dist/verdocs-web-sdk/p-7d18cb23.system.entry.js +0 -1
  488. package/dist/verdocs-web-sdk/p-7d593603.system.js +0 -1
  489. package/dist/verdocs-web-sdk/p-9fabdbb1.system.entry.js +0 -1
  490. package/dist/verdocs-web-sdk/p-9ff1be63.entry.js +0 -1
  491. package/dist/verdocs-web-sdk/p-a04aac80.entry.js +0 -1
  492. package/dist/verdocs-web-sdk/p-a1a2c13b.entry.js +0 -1
  493. package/dist/verdocs-web-sdk/p-a706bac9.js +0 -1
  494. package/dist/verdocs-web-sdk/p-b0766439.js +0 -1
  495. package/dist/verdocs-web-sdk/p-b0bc8c15.system.entry.js +0 -1
  496. package/dist/verdocs-web-sdk/p-b17843d9.system.js +0 -1
  497. package/dist/verdocs-web-sdk/p-b1fcc883.entry.js +0 -1
  498. package/dist/verdocs-web-sdk/p-b56793c4.entry.js +0 -1
  499. package/dist/verdocs-web-sdk/p-b84d1a25.system.entry.js +0 -1
  500. package/dist/verdocs-web-sdk/p-bb253149.js +0 -1
  501. package/dist/verdocs-web-sdk/p-bd642df2.js +0 -1
  502. package/dist/verdocs-web-sdk/p-c7115b35.system.entry.js +0 -1
  503. package/dist/verdocs-web-sdk/p-cd546dbe.system.js +0 -1
  504. package/dist/verdocs-web-sdk/p-cde4c155.js +0 -1
  505. package/dist/verdocs-web-sdk/p-d3ddc7c8.system.entry.js +0 -1
  506. package/dist/verdocs-web-sdk/p-d86c8c1a.entry.js +0 -1
  507. package/dist/verdocs-web-sdk/p-dbddb752.system.entry.js +0 -1
  508. package/dist/verdocs-web-sdk/p-dcd3eb1b.js +0 -1
  509. package/dist/verdocs-web-sdk/p-e123f19c.entry.js +0 -1
  510. package/dist/verdocs-web-sdk/p-e294b6c2.system.entry.js +0 -1
  511. package/dist/verdocs-web-sdk/p-e48b387d.system.entry.js +0 -1
  512. package/dist/verdocs-web-sdk/p-e83a163d.entry.js +0 -1
  513. package/dist/verdocs-web-sdk/p-f5064e0c.system.js +0 -1
  514. package/dist/verdocs-web-sdk/p-f79b8537.system.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as i,H as n}from"./p-49988769.js";import{formatFullName as s}from"@verdocs/js-sdk";import{c as e}from"./p-68a5aaff.js";const r={},h=[];function o(t,i){if(Array.isArray(t))for(const n of t)o(n,i);else if("object"!=typeof t)c(Object.getOwnPropertyNames(i)),r[t]=Object.assign(r[t]||{},i);else for(const i in t)o(i,t[i])}function u(t){return r[t]||{}}function c(t){h.push(...t)}function l(t,i){let n;const s=t.length,e=[];for(n=0;n<s;n++)e.push(i(t[n]));return e}function a(t){return t%360*Math.PI/180}function f(t){return t.charAt(0).toUpperCase()+t.slice(1)}function d(t,i,n,s){return null!=i&&null!=n||(s=s||t.bbox(),null==i?i=s.width/s.height*n:null==n&&(n=s.height/s.width*i)),{width:i,height:n}}function w(t,i){const n=t.origin;let s=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",e=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([s,e]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const r="string"==typeof s,h="string"==typeof e;if(r||h){const{height:t,width:n,x:o,y:u}=i.bbox();r&&(s=s.includes("left")?o:s.includes("right")?o+n:o+n/2),h&&(e=e.includes("top")?u:e.includes("bottom")?u+t:u+t/2)}return[s,e]}const p=new Set(["desc","metadata","title"]),C=t=>p.has(t.nodeName),g=(t,i,n={})=>{const s={...i};for(const t in s)s[t].valueOf()===n[t]&&delete s[t];Object.keys(s).length?t.node.setAttribute("data-svgjs",JSON.stringify(s)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},m="http://www.w3.org/2000/svg",y="http://www.w3.org/2000/xmlns/",x="http://www.w3.org/1999/xlink",v={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class b{}const M={},k="___SYMBOL___ROOT___";function _(t,i=m){return v.document.createElementNS(i,t)}function j(t,i=!1){if(t instanceof b)return t;if("object"==typeof t)return L(t);if(null==t)return new M[k];if("string"==typeof t&&"<"!==t.charAt(0))return L(v.document.querySelector(t));const n=i?v.document.createElement("div"):_("svg");return n.innerHTML=t,t=L(n.firstChild),n.removeChild(n.firstChild),t}function A(t,i){return i&&(i instanceof v.window.Node||i.ownerDocument&&i instanceof i.ownerDocument.defaultView.Node)?i:_(t)}function O(t){if(!t)return null;if(t.instance instanceof b)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let i=f(t.nodeName||"Dom");return"LinearGradient"===i||"RadialGradient"===i?i="Gradient":M[i]||(i="Dom"),new M[i](t)}let L=O;function S(t,i=t.name,n=!1){return M[i]=t,n&&(M[k]=t),c(Object.getOwnPropertyNames(t.prototype)),t}let E=1e3;function T(t){return"Svgjs"+f(t)+E++}function H(t){for(let i=t.children.length-1;i>=0;i--)H(t.children[i]);return t.id?(t.id=T(t.nodeName),t):t}function V(t,i){let n,s;for(s=(t=Array.isArray(t)?t:[t]).length-1;s>=0;s--)for(n in i)t[s].prototype[n]=i[n]}function D(t){return function(...i){const n=i[i.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,i):t.apply(this,i.slice(0,-1)).attr(n)}}o("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=j(t)).remove();const i=this.position();return this.parent().add(t,i),this},after:function(t){(t=j(t)).remove();const i=this.position();return this.parent().add(t,i+1),this},insertBefore:function(t){return(t=j(t)).before(this),this},insertAfter:function(t){return(t=j(t)).after(this),this}});const B=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,Z=/(#[a-z_][a-z0-9\-_]*)/i,$=/\)\s*,?\s*/,N=/\s/g,P=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,I=/^rgb\(/,R=/^(\s+)?$/,G=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Y=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,X=/[\s,]+/,Q=/[MLHVCSQTAZ]/i;function q(t){const i=Math.round(t),n=Math.max(0,Math.min(255,i)).toString(16);return 1===n.length?"0"+n:n}function J(t,i){for(let n=i.length;n--;)if(null==t[i[n]])return!1;return!0}function U(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t}o("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(X)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const i=this.classes();i.push(t),this.attr("class",i.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(i){return i!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),o("Dom",{css:function(t,i){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const i=t.split(/\s*:\s*/);n[i[0]]=i[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const i of t)n[i]=this.node.style.getPropertyValue(i);return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const i in t)this.node.style.setProperty(i,null==t[i]||R.test(t[i])?"":t[i])}return 2===arguments.length&&this.node.style.setProperty(t,null==i||R.test(i)?"":i),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),o("Dom",{data:function(t,i,n){if(null==t)return this.data(l(function(t){let i;const n=t.length,s=[];for(i=0;i<n;i++)0===t[i].nodeName.indexOf("data-")&&s.push(t[i]);return s}(this.node.attributes),(t=>t.nodeName.slice(5))));if(t instanceof Array){const i={};for(const n of t)i[n]=this.data(n);return i}if("object"==typeof t)for(i in t)this.data(i,t[i]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}else this.attr("data-"+t,null===i?null:!0===n||"string"==typeof i||"number"==typeof i?i:JSON.stringify(i));return this}}),o("Dom",{remember:function(t,i){if("object"==typeof arguments[0])for(const i in t)this.remember(i,t[i]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=i}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class W{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof W||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",i){const{random:n,round:s,sin:e,PI:r}=Math;if("vibrant"===t){const t=24*n()+57,i=38*n()+45,s=360*n();return new W(t,i,s,"lch")}if("sine"===t){const t=s(80*e(2*r*(i=null==i?n():i)/.5+.01)+150),h=s(50*e(2*r*i/.5+4.6)+200),o=s(100*e(2*r*i/.5+2.3)+150);return new W(t,h,o)}if("pastel"===t){const t=8*n()+86,i=17*n()+9,s=360*n();return new W(t,i,s,"lch")}if("dark"===t){const t=10+10*n(),i=50*n()+86,s=360*n();return new W(t,i,s,"lch")}if("rgb"===t){const t=255*n(),i=255*n(),s=255*n();return new W(t,i,s)}if("lab"===t){const t=100*n(),i=256*n()-128,s=256*n()-128;return new W(t,i,s,"lab")}if("grey"===t){const t=255*n();return new W(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(P.test(t)||I.test(t))}cmyk(){const{_a:t,_b:i,_c:n}=this.rgb(),[s,e,r]=[t,i,n].map((t=>t/255)),h=Math.min(1-s,1-e,1-r);return 1===h?new W(0,0,0,1,"cmyk"):new W((1-s-h)/(1-h),(1-e-h)/(1-h),(1-r-h)/(1-h),h,"cmyk")}hsl(){const{_a:t,_b:i,_c:n}=this.rgb(),[s,e,r]=[t,i,n].map((t=>t/255)),h=Math.max(s,e,r),o=Math.min(s,e,r),u=(h+o)/2,c=h===o,l=h-o;return new W(360*(c?0:h===s?((e-r)/l+(e<r?6:0))/6:h===e?((r-s)/l+2)/6:h===r?((s-e)/l+4)/6:0),100*(c?0:u>.5?l/(2-h-o):l/(h+o)),100*u,"hsl")}init(t=0,i=0,n=0,s=0,e="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)e="string"==typeof s?s:e,s="string"==typeof s?0:s,Object.assign(this,{_a:t,_b:i,_c:n,_d:s,space:e});else if(t instanceof Array)this.space=i||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,i){const n=J(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:J(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:J(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:J(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:J(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:J(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=i||n.space,n}(t,i);Object.assign(this,n)}else if("string"==typeof t)if(I.test(t)){const i=t.replace(N,""),[n,s,e]=F.exec(i).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:s,_c:e,_d:0,space:"rgb"})}else{if(!P.test(t))throw Error("Unsupported string format, can't construct Color");{const i=t=>parseInt(t,16),[,n,s,e]=z.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(i);Object.assign(this,{_a:n,_b:s,_c:e,_d:0,space:"rgb"})}}const{_a:r,_b:h,_c:o,_d:u}=this;Object.assign(this,"rgb"===this.space?{r,g:h,b:o}:"xyz"===this.space?{x:r,y:h,z:o}:"hsl"===this.space?{h:r,s:h,l:o}:"lab"===this.space?{l:r,a:h,b:o}:"lch"===this.space?{l:r,c:h,h:o}:"cmyk"===this.space?{c:r,m:h,y:o,k:u}:{})}lab(){const{x:t,y:i,z:n}=this.xyz();return new W(116*i-16,500*(t-i),200*(i-n),"lab")}lch(){const{l:t,a:i,b:n}=this.lab(),s=Math.sqrt(i**2+n**2);let e=180*Math.atan2(n,i)/Math.PI;return e<0&&(e*=-1,e=360-e),new W(t,s,e,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:i,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:s,a:e,b:r}=this;if("lch"===this.space){const{c:t,h:i}=this,n=Math.PI/180;e=t*Math.cos(n*i),r=t*Math.sin(n*i)}const h=(s+16)/116,o=e/500+h,u=h-r/200,c=16/116,l=.008856,a=7.787;t=.95047*(o**3>l?o**3:(o-c)/a),i=1*(h**3>l?h**3:(h-c)/a),n=1.08883*(u**3>l?u**3:(u-c)/a)}const s=3.2406*t+-1.5372*i+-.4986*n,e=-.9689*t+1.8758*i+.0415*n,r=.0557*t+-.204*i+1.057*n,h=Math.pow,o=.0031308,u=s>o?1.055*h(s,1/2.4)-.055:12.92*s,c=e>o?1.055*h(e,1/2.4)-.055:12.92*e,l=r>o?1.055*h(r,1/2.4)-.055:12.92*r;return new W(255*u,255*c,255*l)}if("hsl"===this.space){let{h:t,s:i,l:n}=this;if(t/=360,i/=100,n/=100,0===i)return n*=255,new W(n,n,n);const s=n<.5?n*(1+i):n+i-n*i,e=2*n-s,r=255*U(e,s,t+1/3),h=255*U(e,s,t),o=255*U(e,s,t-1/3);return new W(r,h,o)}if("cmyk"===this.space){const{c:t,m:i,y:n,k:s}=this,e=255*(1-Math.min(1,t*(1-s)+s)),r=255*(1-Math.min(1,i*(1-s)+s)),h=255*(1-Math.min(1,n*(1-s)+s));return new W(e,r,h)}return this;var t}toArray(){const{_a:t,_b:i,_c:n,_d:s,space:e}=this;return[t,i,n,s,e]}toHex(){const[t,i,n]=this._clamped().map(q);return`#${t}${i}${n}`}toRgb(){const[t,i,n]=this._clamped();return`rgb(${t},${i},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:i,_c:n}=this.rgb(),[s,e,r]=[t,i,n].map((t=>t/255)),h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,o=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,u=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,c=(.4124*h+.3576*o+.1805*u)/.95047,l=(.2126*h+.7152*o+.0722*u)/1,a=(.0193*h+.1192*o+.9505*u)/1.08883,f=c>.008856?Math.pow(c,1/3):7.787*c+16/116,d=l>.008856?Math.pow(l,1/3):7.787*l+16/116,w=a>.008856?Math.pow(a,1/3):7.787*a+16/116;return new W(f,d,w,"xyz")}_clamped(){const{_a:t,_b:i,_c:n}=this.rgb(),{max:s,min:e,round:r}=Math;return[t,i,n].map((t=>s(0,e(r(t),255))))}}class K{constructor(...t){this.init(...t)}clone(){return new K(this)}init(t,i){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:i};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){it.isMatrixLike(t)||(t=new it(t));const{x:i,y:n}=this;return this.x=t.a*i+t.c*n+t.e,this.y=t.b*i+t.d*n+t.f,this}}function tt(t,i){return Math.abs(i-t)<1e-6}class it{constructor(...t){this.init(...t)}static formatTransforms(t){const i="both"===t.flip||!0===t.flip,n=t.flip&&(i||"x"===t.flip)?-1:1,s=t.flip&&(i||"y"===t.flip)?-1:1,e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,r=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,h=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,o=t.scale&&t.scale.length?t.scale[1]*s:isFinite(t.scale)?t.scale*s:isFinite(t.scaleY)?t.scaleY*s:s,u=t.shear||0,c=t.rotate||t.theta||0,l=new K(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),a=l.x,f=l.y,d=new K(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),w=d.x,p=d.y,C=new K(t.translate||t.tx||t.translateX,t.ty||t.translateY),g=C.x,m=C.y,y=new K(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:h,scaleY:o,skewX:e,skewY:r,shear:u,theta:c,rx:y.x,ry:y.y,tx:g,ty:m,ox:a,oy:f,px:w,py:p}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,i,n){const s=t.b*i.a+t.d*i.b,e=t.a*i.c+t.c*i.d,r=t.b*i.c+t.d*i.d,h=t.e+t.a*i.e+t.c*i.f,o=t.f+t.b*i.e+t.d*i.f;return n.a=t.a*i.a+t.c*i.b,n.b=s,n.c=e,n.d=r,n.e=h,n.f=o,n}around(t,i,n){return this.clone().aroundO(t,i,n)}aroundO(t,i,n){const s=t||0,e=i||0;return this.translateO(-s,-e).lmultiplyO(n).translateO(s,e)}clone(){return new it(this)}decompose(t=0,i=0){const n=this.a,s=this.b,e=this.c,r=this.d,h=this.e,o=this.f,u=n*r-s*e,c=u>0?1:-1,l=c*Math.sqrt(n*n+s*s),a=Math.atan2(c*s,c*n),f=180/Math.PI*a,d=Math.cos(a),w=Math.sin(a),p=(n*e+s*r)/u,C=e*l/(p*n-s)||r*l/(p*s+n);return{scaleX:l,scaleY:C,shear:p,rotate:f,translateX:h-t+t*d*l+i*(p*d*l-w*C),translateY:o-i+t*w*l+i*(p*w*l+d*C),originX:t,originY:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const i=new it(t);return tt(this.a,i.a)&&tt(this.b,i.b)&&tt(this.c,i.c)&&tt(this.d,i.d)&&tt(this.e,i.e)&&tt(this.f,i.f)}flip(t,i){return this.clone().flipO(t,i)}flipO(t,i){return"x"===t?this.scaleO(-1,1,i,0):"y"===t?this.scaleO(1,-1,0,i):this.scaleO(-1,-1,t,i||t)}init(t){const i=it.fromArray([1,0,0,1,0,0]);return t=t instanceof Mt?t.matrixify():"string"==typeof t?it.fromArray(t.split(X).map(parseFloat)):Array.isArray(t)?it.fromArray(t):"object"==typeof t&&it.isMatrixLike(t)?t:"object"==typeof t?(new it).transform(t):6===arguments.length?it.fromArray([].slice.call(arguments)):i,this.a=null!=t.a?t.a:i.a,this.b=null!=t.b?t.b:i.b,this.c=null!=t.c?t.c:i.c,this.d=null!=t.d?t.d:i.d,this.e=null!=t.e?t.e:i.e,this.f=null!=t.f?t.f:i.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,i=this.b,n=this.c,s=this.d,e=this.e,r=this.f,h=t*s-i*n;if(!h)throw new Error("Cannot invert "+this);const o=s/h,u=-i/h,c=-n/h,l=t/h,a=-(o*e+c*r),f=-(u*e+l*r);return this.a=o,this.b=u,this.c=c,this.d=l,this.e=a,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const i=t instanceof it?t:new it(t);return it.matrixMultiply(i,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const i=t instanceof it?t:new it(t);return it.matrixMultiply(this,i,this)}rotate(t,i,n){return this.clone().rotateO(t,i,n)}rotateO(t,i=0,n=0){t=a(t);const s=Math.cos(t),e=Math.sin(t),{a:r,b:h,c:o,d:u,e:c,f:l}=this;return this.a=r*s-h*e,this.b=h*s+r*e,this.c=o*s-u*e,this.d=u*s+o*e,this.e=c*s-l*e+n*e-i*s+i,this.f=l*s+c*e-i*e-n*s+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,i=t,n=0,s=0){3===arguments.length&&(s=n,n=i,i=t);const{a:e,b:r,c:h,d:o,e:u,f:c}=this;return this.a=e*t,this.b=r*i,this.c=h*t,this.d=o*i,this.e=u*t-n*t+n,this.f=c*i-s*i+s,this}shear(t,i,n){return this.clone().shearO(t,i,n)}shearO(t,i=0,n=0){const{a:s,b:e,c:r,d:h,e:o,f:u}=this;return this.a=s+e*t,this.c=r+h*t,this.e=o+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,i=t,n=0,s=0){3===arguments.length&&(s=n,n=i,i=t),t=a(t),i=a(i);const e=Math.tan(t),r=Math.tan(i),{a:h,b:o,c:u,d:c,e:l,f}=this;return this.a=h+o*e,this.b=o+h*r,this.c=u+c*e,this.d=c+u*r,this.e=l+f*e-s*e,this.f=f+l*r-n*r,this}skewX(t,i,n){return this.skew(t,0,i,n)}skewY(t,i,n){return this.skew(0,t,i,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(it.isMatrixLike(t))return new it(t).multiplyO(this);const i=it.formatTransforms(t),{x:n,y:s}=new K(i.ox,i.oy).transform(this),e=(new it).translateO(i.rx,i.ry).lmultiplyO(this).translateO(-n,-s).scaleO(i.scaleX,i.scaleY).skewO(i.skewX,i.skewY).shearO(i.shear).rotateO(i.theta).translateO(n,s);if(isFinite(i.px)||isFinite(i.py)){const t=new K(n,s).transform(e),r=isFinite(i.px)?i.px-t.x:0,h=isFinite(i.py)?i.py-t.y:0;e.translateO(r,h)}return e.translateO(i.tx,i.ty),e}translate(t,i){return this.clone().translateO(t,i)}translateO(t,i){return this.e+=t||0,this.f+=i||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function nt(){if(!nt.nodes){const t=j().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const i=t.path().node;nt.nodes={svg:t,path:i}}return nt.nodes.svg.node.parentNode||nt.nodes.svg.addTo(v.document.body||v.document.documentElement),nt.nodes}function st(t){return!(t.width||t.height||t.x||t.y)}S(it,"Matrix");class et{constructor(...t){this.init(...t)}addOffset(){return this.x+=v.window.pageXOffset,this.y+=v.window.pageYOffset,new et(this)}init(t){return t="string"==typeof t?t.split(X).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return st(this)}merge(t){const i=Math.min(this.x,t.x),n=Math.min(this.y,t.y),s=Math.max(this.x+this.width,t.x+t.width)-i,e=Math.max(this.y+this.height,t.y+t.height)-n;return new et(i,n,s,e)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof it||(t=new it(t));let i=1/0,n=-1/0,s=1/0,e=-1/0;return[new K(this.x,this.y),new K(this.x2,this.y),new K(this.x,this.y2),new K(this.x2,this.y2)].forEach((function(r){r=r.transform(t),i=Math.min(i,r.x),n=Math.max(n,r.x),s=Math.min(s,r.y),e=Math.max(e,r.y)})),new et(i,s,n-i,e-s)}}function rt(t,i,n){let s;try{if(s=i(t.node),st(s)&&(e=t.node)!==v.document&&!(v.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===v.document}).call(v.document.documentElement,e))throw new Error("Element not in the dom")}catch(i){s=n(t)}var e;return s}o({viewbox:{viewbox(t,i,n,s){return null==t?new et(this.attr("viewBox")):this.attr("viewBox",new et(t,i,n,s))},zoom(t,i){let{width:n,height:s}=this.attr(["width","height"]);if((n||s)&&"string"!=typeof n&&"string"!=typeof s||(n=this.node.clientWidth,s=this.node.clientHeight),!n||!s)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const e=this.viewbox(),r=n/e.width,h=s/e.height,o=Math.min(r,h);if(null==t)return o;let u=o/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),i=i||new K(n/2/r+e.x,s/2/h+e.y);const c=new et(e).transform(new it({scale:u,origin:i}));return this.viewbox(c)}}}),S(et,"Box");class ht extends Array{constructor(t=[],...i){if(super(t,...i),"number"==typeof t)return this;this.length=0,this.push(...t)}}V([ht],{each(t,...i){return this.map("function"==typeof t?(i,n,s)=>t.call(i,i,n,s):n=>n[t](...i))},toArray(){return Array.prototype.concat.apply([],this)}});const ot=["toArray","constructor","each"];function ut(t,i){return new ht(l((i||v.document).querySelectorAll(t),(function(t){return O(t)})))}ht.extend=function(t){t=t.reduce(((t,i)=>(ot.includes(i)||"_"===i[0]||(i in Array.prototype&&(t["$"+i]=Array.prototype[i]),t[i]=function(...t){return this.each(i,...t)}),t)),{}),V([ht],t)};let ct=0;const lt={};function at(t){let i=t.getEventHolder();return i===v.window&&(i=lt),i.events||(i.events={}),i.events}function ft(t){return t.getEventTarget()}function dt(t,i,n,s,e){const r=n.bind(s||t),h=j(t),o=at(h),u=ft(h);i=Array.isArray(i)?i:i.split(X),n._svgjsListenerId||(n._svgjsListenerId=++ct),i.forEach((function(t){const i=t.split(".")[0],s=t.split(".")[1]||"*";o[i]=o[i]||{},o[i][s]=o[i][s]||{},o[i][s][n._svgjsListenerId]=r,u.addEventListener(i,r,e||!1)}))}function wt(t,i,n,s){const e=j(t),r=at(e),h=ft(e);("function"!=typeof n||(n=n._svgjsListenerId))&&(i=Array.isArray(i)?i:(i||"").split(X)).forEach((function(t){const i=t&&t.split(".")[0],o=t&&t.split(".")[1];let u,c;if(n)r[i]&&r[i][o||"*"]&&(h.removeEventListener(i,r[i][o||"*"][n],s||!1),delete r[i][o||"*"][n]);else if(i&&o){if(r[i]&&r[i][o]){for(c in r[i][o])wt(h,[i,o].join("."),c);delete r[i][o]}}else if(o)for(t in r)for(u in r[t])o===u&&wt(h,[t,o].join("."));else if(i){if(r[i]){for(u in r[i])wt(h,[i,u].join("."));delete r[i]}}else{for(t in r)wt(h,t);!function(t){let i=t.getEventHolder();i===v.window&&(i=lt),i.events&&(i.events={})}(e)}}))}class pt extends b{addEventListener(){}dispatch(t,i,n){return function(t,i,n,s){const e=ft(t);return i instanceof v.window.Event||(i=new v.window.CustomEvent(i,{detail:n,cancelable:!0,...s})),e.dispatchEvent(i),i}(this,t,i,n)}dispatchEvent(t){const i=this.getEventHolder().events;if(!i)return!0;const n=i[t.type];for(const i in n)for(const s in n[i])n[i][s](t);return!t.defaultPrevented}fire(t,i,n){return this.dispatch(t,i,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,i,n){return wt(this,t,i,n),this}on(t,i,n,s){return dt(this,t,i,n,s),this}removeEventListener(){}}function Ct(){}S(pt,"EventTarget");const gt={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class mt extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(X).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class yt{constructor(...t){this.init(...t)}convert(t){return new yt(this.value,t)}divide(t){return t=new yt(t),new yt(this/t,this.unit||t.unit)}init(t,i){return i=Array.isArray(t)?t[1]:i,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=i||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(i=t.match(B))&&(this.value=parseFloat(i[1]),"%"===i[5]?this.value/=100:"s"===i[5]&&(this.value*=1e3),this.unit=i[5]):t instanceof yt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new yt(t),new yt(this-t,this.unit||t.unit)}plus(t){return t=new yt(t),new yt(this+t,this.unit||t.unit)}times(t){return t=new yt(t),new yt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const xt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),vt=[];class bt extends pt{constructor(t,i){super(),this.node=t,this.type=t.nodeName,i&&t!==i&&this.attr(i)}add(t,i){return(t=j(t)).removeNamespace&&this.node instanceof v.window.SVGElement&&t.removeNamespace(),null==i?this.node.appendChild(t.node):t.node!==this.node.childNodes[i]&&this.node.insertBefore(t.node,this.node.childNodes[i]),this}addTo(t,i){return j(t).put(this,i)}children(){return new ht(l(this.node.children,(function(t){return O(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,i=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return i&&(n=H(n)),new this.constructor(n)}each(t,i){const n=this.children();let s,e;for(s=0,e=n.length;s<e;s++)t.apply(n[s],[s,n]),i&&n[s].each(t,i);return this}element(t,i){return this.put(new bt(_(t),i))}first(){return O(this.node.firstChild)}get(t){return O(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,i){return this.xml(t,i,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=T(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(this.node.lastChild)}matches(t){const i=this.node,n=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||null;return n&&n.call(i,t)}parent(t){let i=this;if(!i.node.parentNode)return null;if(i=O(i.node.parentNode),!t)return i;do{if("string"==typeof t?i.matches(t):i instanceof t)return i}while(i=O(i.node.parentNode));return i}put(t,i){return t=j(t),this.add(t,i),t}putIn(t,i){return j(t).add(this,i)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=j(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,i=null){const n=10**t,s=this.attr(i);for(const t in s)"number"==typeof s[t]&&(s[t]=Math.round(s[t]*n)/n);return this.attr(s),this}svg(t,i){return this.xml(t,i,m)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const i=this.parent();if(!i)return this.addTo(t);const n=i.index(this);return i.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,i,n){if("boolean"==typeof t&&(n=i,i=t,t=null),null==t||"function"==typeof t){i=null==i||i,this.writeDataToDom();let n=this;if(null!=t){if(n=O(n.node.cloneNode(!0)),i){const i=t(n);if(n=i||n,!1===i)return""}n.each((function(){const i=t(this),n=i||this;!1===i?this.remove():i&&this!==n&&this.replace(n)}),!0)}return i?n.node.outerHTML:n.node.innerHTML}i=null!=i&&i;const s=_("wrapper",n),e=v.document.createDocumentFragment();s.innerHTML=t;for(let t=s.children.length;t--;)e.appendChild(s.firstElementChild);const r=this.parent();return i?this.replace(e)&&r:this.add(e)}}V(bt,{attr:function(t,i,n){if(null==t){t={},i=this.node.attributes;for(const n of i)t[n.nodeName]=G.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,i)=>(t[i]=this.attr(i),t)),{});if("object"==typeof t&&t.constructor===Object)for(i in t)this.attr(i,t[i]);else if(null===i)this.node.removeAttribute(t);else{if(null==i)return null==(i=this.node.getAttribute(t))?gt[t]:G.test(i)?parseFloat(i):i;"number"==typeof(i=vt.reduce(((i,n)=>n(t,i,this)),i))?i=new yt(i):xt.has(t)&&W.isColor(i)?i=new W(i):i.constructor===Array&&(i=new mt(i)),"leading"===t?this.leading&&this.leading(i):"string"==typeof n?this.node.setAttributeNS(n,t,i.toString()):this.node.setAttribute(t,i.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ut(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),S(bt,"Dom");class Mt extends bt{constructor(t,i){super(t,i),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,i){return this.cx(t).cy(i)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,i){return this.dx(t).dy(i)}dx(t=0){return this.x(new yt(t).plus(this.x()))}dy(t=0){return this.y(new yt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,i){return this.x(t).y(i)}parents(t=this.root()){const i="string"==typeof t;i||(t=j(t));const n=new ht;let s=this;for(;(s=s.parent())&&s.node!==v.document&&"#document-fragment"!==s.nodeName&&(n.push(s),i||s.node!==t.node)&&(!i||!s.matches(t));)if(s.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const i=(t+"").match(Z);return i?j(i[1]):null}root(){const t=this.parent(M[k]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,i){const n=d(this,t,i);return this.width(new yt(n.width)).height(new yt(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return g(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}V(Mt,{bbox:function(){const t=rt(this,(t=>t.getBBox()),(t=>{try{const i=t.clone().addTo(nt().svg).show(),n=i.node.getBBox();return i.remove(),n}catch(i){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${i.toString()}`)}}));return new et(t)},rbox:function(t){const i=rt(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new et(i);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,i){const n=this.bbox();return t>n.x&&i>n.y&&t<n.x+n.width&&i<n.y+n.height},point:function(t,i){return new K(t,i).transformO(this.screenCTM().inverseO())},ctm:function(){return new it(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),i=t.node.getScreenCTM();return t.remove(),new it(i)}return new it(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new it}}}),S(Mt,"Element");const kt={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,i){return"color"===i?t:t+"-"+i}};["fill","stroke"].forEach((function(t){const i={};let n;i[t]=function(i){if(void 0===i)return this.attr(t);if("string"==typeof i||i instanceof W||W.isRgb(i)||i instanceof Mt)this.attr(t,i);else for(n=kt[t].length-1;n>=0;n--)null!=i[kt[t][n]]&&this.attr(kt.prefix(t,kt[t][n]),i[kt[t][n]]);return this},o(["Element","Runner"],i)})),o(["Element","Runner"],{matrix:function(t,i,n,s,e,r){return null==t?new it(this):this.attr("transform",new it(t,i,n,s,e,r))},rotate:function(t,i,n){return this.transform({rotate:t,ox:i,oy:n},!0)},skew:function(t,i,n,s){return this.transform(1===arguments.length||3===arguments.length?{skew:t,ox:i,oy:n}:{skew:[t,i],ox:n,oy:s},!0)},shear:function(t,i,n){return this.transform({shear:t,ox:i,oy:n},!0)},scale:function(t,i,n,s){return this.transform(1===arguments.length||3===arguments.length?{scale:t,ox:i,oy:n}:{scale:[t,i],ox:n,oy:s},!0)},translate:function(t,i){return this.transform({translate:[t,i]},!0)},relative:function(t,i){return this.transform({relative:[t,i]},!0)},flip:function(t="both",i="center"){return-1==="xybothtrue".indexOf(t)&&(i=t,t="both"),this.transform({flip:t,origin:i},!0)},opacity:function(t){return this.attr("opacity",t)}}),o("radius",{radius:function(t,i=t){return"radialGradient"===(this._element||this).type?this.attr("r",new yt(t)):this.rx(t).ry(i)}}),o("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new K(this.node.getPointAtLength(t))}}),o(["Element","Runner"],{font:function(t,i){if("object"==typeof t){for(i in t)this.font(i,t[i]);return this}return"leading"===t?this.leading(i):this.attr("anchor"===t?"text-anchor":"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?"font-"+t:t,i)}}),o("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,i){return t[i]=function(t){return null===t?this.off(i):this.on(i,t),this},t}),{})),o("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split($).slice(0,-1).map((function(t){const i=t.trim().split("(");return[i[0],i[1].split(X).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,i){return"matrix"===i[0]?t.lmultiply(it.fromArray(i[1])):t[i[0]].apply(t,i[1])}),new it)},toParent:function(t,i){if(this===t)return this;if(C(this.node))return this.addTo(t,i);const n=this.screenCTM(),s=t.screenCTM().inverse();return this.addTo(t,i).untransform().transform(s.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,i){if(null==t||"string"==typeof t){const i=new it(this).decompose();return null==t?i:i[t]}it.isMatrixLike(t)||(t={...t,origin:w(t,this)});const n=new it(!0===i?this:i||!1).transform(t);return this.attr("transform",n)}});class _t extends Mt{flatten(){return this.each((function(){if(this instanceof _t)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),i=t.index(this)){return i=-1===i?t.children().length:i,this.each((function(n,s){return s[s.length-n-1].toParent(t,i)})),this.remove()}}S(_t,"Container");class jt extends _t{constructor(t,i=t){super(A("defs",t),i)}flatten(){return this}ungroup(){return this}}S(jt,"Defs");class At extends Mt{}function Ot(t){return this.attr("rx",t)}function Lt(t){return this.attr("ry",t)}function St(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Et(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Tt(t){return this.attr("cx",t)}function Ht(t){return this.attr("cy",t)}function Vt(t){return null==t?2*this.rx():this.rx(new yt(t).divide(2))}function Dt(t){return null==t?2*this.ry():this.ry(new yt(t).divide(2))}S(At,"Shape");var Bt={__proto__:null,cx:Tt,cy:Ht,height:Dt,rx:Ot,ry:Lt,width:Vt,x:St,y:Et};class zt extends At{constructor(t,i=t){super(A("ellipse",t),i)}size(t,i){const n=d(this,t,i);return this.rx(new yt(n.width).divide(2)).ry(new yt(n.height).divide(2))}}V(zt,Bt),o("Container",{ellipse:D((function(t=0,i=t){return this.put(new zt).size(t,i).move(0,0)}))}),S(zt,"Ellipse");class Ft extends bt{constructor(t=v.document.createDocumentFragment()){super(t)}xml(t,i,n){if("boolean"==typeof t&&(n=i,i=t,t=null),null==t||"function"==typeof t){const t=new bt(_("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}function Zt(t,i){return this.attr("radialGradient"===(this._element||this).type?{fx:new yt(t),fy:new yt(i)}:{x1:new yt(t),y1:new yt(i)})}function $t(t,i){return this.attr("radialGradient"===(this._element||this).type?{cx:new yt(t),cy:new yt(i)}:{x2:new yt(t),y2:new yt(i)})}S(Ft,"Fragment");var Nt={__proto__:null,from:Zt,to:$t};class Pt extends _t{constructor(t,i){super(A(t+"Gradient","string"==typeof t?null:t),i)}attr(t,i,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,i,n)}bbox(){return new et}targets(){return ut("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}V(Pt,Nt),o({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:D((function(t,i){return this.put(new Pt(t)).update(i)}))}}),S(Pt,"Gradient");class It extends _t{constructor(t,i=t){super(A("pattern",t),i)}attr(t,i,n){return"transform"===t&&(t="patternTransform"),super.attr(t,i,n)}bbox(){return new et}targets(){return ut("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}o({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:D((function(t,i,n){return this.put(new It).update(n).attr({x:0,y:0,width:t,height:i,patternUnits:"userSpaceOnUse"})}))}}),S(It,"Pattern");class Rt extends At{constructor(t,i=t){super(A("image",t),i)}load(t,i){if(!t)return this;const n=new v.window.Image;return dt(n,"load",(function(t){const s=this.parent(It);0===this.width()&&0===this.height()&&this.size(n.width,n.height),s instanceof It&&0===s.width()&&0===s.height()&&s.size(this.width(),this.height()),"function"==typeof i&&i.call(this,t)}),this),dt(n,"load error",(function(){wt(n)})),this.attr("href",n.src=t,x)}}vt.push((function(t,i,n){return"fill"!==t&&"stroke"!==t||Y.test(i)&&(i=n.root().defs().image(i)),i instanceof Rt&&(i=n.root().defs().pattern(0,0,(t=>{t.add(i)}))),i})),o({Container:{image:D((function(t,i){return this.put(new Rt).size(0,0).load(t,i)}))}}),S(Rt,"Image");class Gt extends mt{bbox(){let t=-1/0,i=-1/0,n=1/0,s=1/0;return this.forEach((function(e){t=Math.max(e[0],t),i=Math.max(e[1],i),n=Math.min(e[0],n),s=Math.min(e[1],s)})),new et(n,s,t-n,i-s)}move(t,i){const n=this.bbox();if(t-=n.x,i-=n.y,!isNaN(t)&&!isNaN(i))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+i];return this}parse(t=[0,0]){const i=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(X).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,s=t.length;n<s;n+=2)i.push([t[n],t[n+1]]);return i}size(t,i){let n;const s=this.bbox();for(n=this.length-1;n>=0;n--)s.width&&(this[n][0]=(this[n][0]-s.x)*t/s.width+s.x),s.height&&(this[n][1]=(this[n][1]-s.y)*i/s.height+s.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let i=0,n=this.length;i<n;i++)t.push(this[i].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){it.isMatrixLike(t)||(t=new it(t));for(let i=this.length;i--;){const[n,s]=this[i];this[i][0]=t.a*n+t.c*s+t.e,this[i][1]=t.b*n+t.d*s+t.f}return this}}var Yt={__proto__:null,MorphArray:Gt,height:function(t){const i=this.bbox();return null==t?i.height:this.size(i.width,t)},width:function(t){const i=this.bbox();return null==t?i.width:this.size(t,i.height)},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}};class Xt extends At{constructor(t,i=t){super(A("line",t),i)}array(){return new Gt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,i){return this.attr(this.array().move(t,i).toLine())}plot(t,i,n,s){return null==t?this.array():(t=void 0!==i?{x1:t,y1:i,x2:n,y2:s}:new Gt(t).toLine(),this.attr(t))}size(t,i){const n=d(this,t,i);return this.attr(this.array().size(n.width,n.height).toLine())}}V(Xt,Yt),o({Container:{line:D((function(...t){return Xt.prototype.plot.apply(this.put(new Xt),null!=t[0]?t:[0,0,0,0])}))}}),S(Xt,"Line");class Qt extends _t{constructor(t,i=t){super(A("marker",t),i)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,i){return this.attr("refX",t).attr("refY",i)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function qt(t,i){return function(n){return null==n?this[t]:(this[t]=n,i&&i.call(this),this)}}o({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:D((function(t,i,n){return this.put(new Qt).size(t,i).ref(t/2,i/2).viewbox(0,0,t,i).attr("orient","auto").update(n)}))},marker:{marker(t,i,n,s){let e=["marker"];return"all"!==t&&e.push(t),e=e.join("-"),t=arguments[1]instanceof Qt?arguments[1]:this.defs().marker(i,n,s),this.attr(e,t)}}}),S(Qt,"Marker");const Jt={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,i,n,s){return function(e){return e<0?t>0?i/t*e:n>0?s/n*e:0:e>1?n<1?(1-s)/(1-n)*e+(s-n)/(1-n):t<1?(1-i)/(1-t)*e+(i-t)/(1-t):1:3*e*(1-e)**2*i+3*e**2*(1-e)*s+e**3}},steps:function(t,i="end"){i=i.split("-").reverse()[0];let n=t;return"none"===i?--n:"both"===i&&++n,(s,e=!1)=>{let r=Math.floor(s*t);const h=s*r%1==0;return"start"!==i&&"both"!==i||++r,e&&h&&--r,s>=0&&r<0&&(r=0),s<=1&&r>n&&(r=n),r/n}}};class Ut{done(){return!1}}class Wt extends Ut{constructor(t=">"){super(),this.ease=Jt[t]||t}step(t,i,n){return"number"!=typeof t?n<1?t:i:t+(i-t)*this.ease(n)}}class Kt extends Ut{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,i,n,s){return this.stepper(t,i,n,s)}}function ti(){const t=(this._duration||500)/1e3,i=Math.PI,n=Math.log((this._overshoot||0)/100+1e-10),s=-n/Math.sqrt(i*i+n*n),e=3.9/(s*t);this.d=2*s*e,this.k=e*e}V(class extends Kt{constructor(t=500,i=0){super(),this.duration(t).overshoot(i)}step(t,i,n,s){if("string"==typeof t)return t;if(s.done=n===1/0,n===1/0)return i;if(0===n)return t;n>100&&(n=16);const e=s.velocity||0,r=-this.d*e-this.k*(t-i),h=t+e*(n/=1e3)+r*n*n/2;return s.velocity=e+r*n,s.done=Math.abs(i-h)+Math.abs(e)<.002,s.done?i:h}},{duration:qt("_duration",ti),overshoot:qt("_overshoot",ti)}),V(class extends Kt{constructor(t=.1,i=.01,n=0,s=1e3){super(),this.p(t).i(i).d(n).windup(s)}step(t,i,n,s){if("string"==typeof t)return t;if(s.done=n===1/0,n===1/0)return i;if(0===n)return t;const e=i-t;let r=(s.integral||0)+e*n;const h=(e-(s.error||0))/n,o=this._windup;return!1!==o&&(r=Math.max(-o,Math.min(r,o))),s.error=e,s.integral=r,s.done=Math.abs(e)<.001,s.done?i:t+(this.P*e+this.I*r+this.D*h)}},{windup:qt("_windup"),p:qt("P"),i:qt("I"),d:qt("D")});const ii={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},ni={M:function(t,i,n){return i.x=n.x=t[0],i.y=n.y=t[1],["M",i.x,i.y]},L:function(t,i){return i.x=t[0],i.y=t[1],["L",t[0],t[1]]},H:function(t,i){return i.x=t[0],["H",t[0]]},V:function(t,i){return i.y=t[0],["V",t[0]]},C:function(t,i){return i.x=t[4],i.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,i){return i.x=t[2],i.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,i){return i.x=t[2],i.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,i){return i.x=t[0],i.y=t[1],["T",t[0],t[1]]},Z:function(t,i,n){return i.x=n.x,i.y=n.y,["Z"]},A:function(t,i){return i.x=t[5],i.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},si="mlhvqtcsaz".split("");for(let t=0,i=si.length;t<i;++t)ni[si[t]]=function(t){return function(i,n,s){if("H"===t)i[0]=i[0]+n.x;else if("V"===t)i[0]=i[0]+n.y;else if("A"===t)i[5]=i[5]+n.x,i[6]=i[6]+n.y;else for(let t=0,s=i.length;t<s;++t)i[t]=i[t]+(t%2?n.y:n.x);return ni[t](i,n,s)}}(si[t].toUpperCase());function ei(t){return t.segment.length&&t.segment.length-1===ii[t.segment[0].toUpperCase()]}function ri(t,i){t.inNumber&&hi(t,!1);const n=Q.test(i);if(n)t.segment=[i];else{const i=t.lastCommand,n=i.toLowerCase();t.segment=["m"===n?i===n?"l":"L":i]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function hi(t,i){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=i,t.number="",t.pointSeen=!1,t.hasExponent=!1,ei(t)&&oi(t)}function oi(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){return ni[t.segment[0]](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ui(t){if(!t.segment.length)return!1;const i="A"===t.segment[0].toUpperCase(),n=t.segment.length;return i&&(4===n||5===n)}function ci(t){return"E"===t.lastToken.toUpperCase()}const li=new Set([" ",",","\t","\n","\r","\f"]);class ai extends mt{bbox(){return nt().path.setAttribute("d",this.toString()),new et(nt.nodes.path.getBBox())}move(t,i){const n=this.bbox();if(t-=n.x,i-=n.y,!isNaN(t)&&!isNaN(i))for(let n,s=this.length-1;s>=0;s--)n=this[s][0],"M"===n||"L"===n||"T"===n?(this[s][1]+=t,this[s][2]+=i):"H"===n?this[s][1]+=t:"V"===n?this[s][1]+=i:"C"===n||"S"===n||"Q"===n?(this[s][1]+=t,this[s][2]+=i,this[s][3]+=t,this[s][4]+=i,"C"===n&&(this[s][5]+=t,this[s][6]+=i)):"A"===n&&(this[s][6]+=t,this[s][7]+=i);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,i=!0){let n=0,s="";const e={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:i,p0:new K,p:new K};for(;e.lastToken=s,s=t.charAt(n++);)if(e.inSegment||!ri(e,s))if("."!==s)if(isNaN(parseInt(s)))if(li.has(s))e.inNumber&&hi(e,!1);else if("-"!==s&&"+"!==s)if("E"!==s.toUpperCase()){if(Q.test(s)){if(e.inNumber)hi(e,!1);else{if(!ei(e))throw new Error("parser Error");oi(e)}--n}}else e.number+=s,e.hasExponent=!0;else{if(e.inNumber&&!ci(e)){hi(e,!1),--n;continue}e.number+=s,e.inNumber=!0}else{if("0"===e.number||ui(e)){e.inNumber=!0,e.number=s,hi(e,!0);continue}e.inNumber=!0,e.number+=s}else{if(e.pointSeen||e.hasExponent){hi(e,!1),--n;continue}e.inNumber=!0,e.pointSeen=!0,e.number+=s}return e.inNumber&&hi(e,!1),e.inSegment&&ei(e)&&oi(e),e.segments}(t)}size(t,i){const n=this.bbox();let s,e;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,s=this.length-1;s>=0;s--)e=this[s][0],"M"===e||"L"===e||"T"===e?(this[s][1]=(this[s][1]-n.x)*t/n.width+n.x,this[s][2]=(this[s][2]-n.y)*i/n.height+n.y):"H"===e?this[s][1]=(this[s][1]-n.x)*t/n.width+n.x:"V"===e?this[s][1]=(this[s][1]-n.y)*i/n.height+n.y:"C"===e||"S"===e||"Q"===e?(this[s][1]=(this[s][1]-n.x)*t/n.width+n.x,this[s][2]=(this[s][2]-n.y)*i/n.height+n.y,this[s][3]=(this[s][3]-n.x)*t/n.width+n.x,this[s][4]=(this[s][4]-n.y)*i/n.height+n.y,"C"===e&&(this[s][5]=(this[s][5]-n.x)*t/n.width+n.x,this[s][6]=(this[s][6]-n.y)*i/n.height+n.y)):"A"===e&&(this[s][1]=this[s][1]*t/n.width,this[s][2]=this[s][2]*i/n.height,this[s][6]=(this[s][6]-n.x)*t/n.width+n.x,this[s][7]=(this[s][7]-n.y)*i/n.height+n.y);return this}toString(){return function(t){let i="";for(let n=0,s=t.length;n<s;n++)i+=t[n][0],null!=t[n][1]&&(i+=t[n][1],null!=t[n][2]&&(i+=" ",i+=t[n][2],null!=t[n][3]&&(i+=" ",i+=t[n][3],i+=" ",i+=t[n][4],null!=t[n][5]&&(i+=" ",i+=t[n][5],i+=" ",i+=t[n][6],null!=t[n][7]&&(i+=" ",i+=t[n][7])))));return i+" "}(this)}}const fi=t=>{const i=typeof t;return"number"===i?yt:"string"===i?W.isColor(t)?W:X.test(t)?Q.test(t)?ai:mt:B.test(t)?yt:wi:mi.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?mt:"object"===i?gi:wi};class di{constructor(t){this._stepper=t||new Wt("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,i){return t&&i}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(fi(t));let i=new this._type(t);return this._type===W&&(i=this._to?i[this._to[4]]():this._from?i[this._from[4]]():i),this._type===gi&&(i=this._to?i.align(this._to):this._from?i.align(this._from):i),i=i.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(i.length)).map(Object).map((function(t){return t.done=!0,t})),i}}class wi{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class pi{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,pi.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}pi.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Ci=(t,i)=>t[0]<i[0]?-1:t[0]>i[0]?1:0;class gi{constructor(...t){this.init(...t)}align(t){const i=this.values;for(let n=0,s=i.length;n<s;++n){if(i[n+1]===t[n+1]){if(i[n+1]===W&&t[n+7]!==i[n+7]){const i=t[n+7],s=new W(this.values.splice(n+3,5))[i]().toArray();this.values.splice(n+3,0,...s)}n+=i[n+2]+2;continue}if(!t[n+1])return this;const s=(new t[n+1]).toArray();i.splice(n,i[n+2]+3,t[n],t[n+1],t[n+2],...s),n+=i[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const i=[];for(const n in t){const s=fi(t[n]),e=new s(t[n]).toArray();i.push([n,s,e.length,...e])}return i.sort(Ci),this.values=i.reduce(((t,i)=>t.concat(i)),[]),this}toArray(){return this.values}valueOf(){const t={},i=this.values;for(;i.length;){const n=i.shift(),s=i.shift(),e=i.shift(),r=i.splice(0,e);t[n]=new s(r)}return t}}const mi=[wi,pi,gi];class yi extends At{constructor(t,i=t){super(A("path",t),i)}array(){return this._array||(this._array=new ai(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,i){return this.attr("d",this.array().move(t,i))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new ai(t))}size(t,i){const n=d(this,t,i);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}yi.prototype.MorphArray=ai,o({Container:{path:D((function(t){return this.put(new yi).plot(t||new ai)}))}}),S(yi,"Path");var xi={__proto__:null,array:function(){return this._array||(this._array=new Gt(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,i){return this.attr("points",this.array().move(t,i))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Gt(t))},size:function(t,i){const n=d(this,t,i);return this.attr("points",this.array().size(n.width,n.height))}};class vi extends At{constructor(t,i=t){super(A("polygon",t),i)}}o({Container:{polygon:D((function(t){return this.put(new vi).plot(t||new Gt)}))}}),V(vi,Yt),V(vi,xi),S(vi,"Polygon");class bi extends At{constructor(t,i=t){super(A("polyline",t),i)}}o({Container:{polyline:D((function(t){return this.put(new bi).plot(t||new Gt)}))}}),V(bi,Yt),V(bi,xi),S(bi,"Polyline");class Mi extends At{constructor(t,i=t){super(A("rect",t),i)}}V(Mi,{rx:Ot,ry:Lt}),o({Container:{rect:D((function(t,i){return this.put(new Mi).size(t,i)}))}}),S(Mi,"Rect");class ki{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const i=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(i.prev=this._last,this._last.next=i,this._last=i):(this._last=i,this._first=i),i}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const _i={nextDraw:null,frames:new ki,timeouts:new ki,immediates:new ki,timer:()=>v.window.performance||v.window.Date,transforms:[],frame(t){const i=_i.frames.push({run:t});return null===_i.nextDraw&&(_i.nextDraw=v.window.requestAnimationFrame(_i._draw)),i},timeout(t,i){i=i||0;const n=_i.timer().now()+i,s=_i.timeouts.push({run:t,time:n});return null===_i.nextDraw&&(_i.nextDraw=v.window.requestAnimationFrame(_i._draw)),s},immediate(t){const i=_i.immediates.push(t);return null===_i.nextDraw&&(_i.nextDraw=v.window.requestAnimationFrame(_i._draw)),i},cancelFrame(t){null!=t&&_i.frames.remove(t)},clearTimeout(t){null!=t&&_i.timeouts.remove(t)},cancelImmediate(t){null!=t&&_i.immediates.remove(t)},_draw(t){let i=null;const n=_i.timeouts.last();for(;(i=_i.timeouts.shift())&&(t>=i.time?i.run():_i.timeouts.push(i),i!==n););let s=null;const e=_i.frames.last();for(;s!==e&&(s=_i.frames.shift());)s.run(t);let r=null;for(;r=_i.immediates.shift();)r();_i.nextDraw=_i.timeouts.first()||_i.frames.first()?v.window.requestAnimationFrame(_i._draw):null}},ji=function(t){const i=t.start,n=t.runner.duration();return{start:i,duration:n,end:i+n,runner:t.runner}},Ai=function(){const t=v.window;return(t.performance||t.Date).now()};class Oi extends pt{constructor(t=Ai){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),i=t?t.runner.duration():0;return(t?t.start:this._time)+i}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const i=this.speed();if(null==t)return this.speed(-i);const n=Math.abs(i);return this.speed(t?-n:n)}schedule(t,i,n){if(null==t)return this._runners.map(ji);let s=0;const e=this.getEndTime();if(i=i||0,null==n||"last"===n||"after"===n)s=e;else if("absolute"===n||"start"===n)s=i,i=0;else if("now"===n)s=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(s=n.start+i,i=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();s=t?t.start:this._time}}t.unschedule(),t.timeline(this);const r=t.persist(),h={persist:null===r?this._persist:r,start:s+i,runner:t};return this._lastRunnerId=t.id,this._runners.push(h),this._runners.sort(((t,i)=>t.start-i.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const i=this._runnerIds.indexOf(t.id);return i<0||(this._runners.splice(i,1),this._runnerIds.splice(i,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return _i.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=_i.frame(this._step)),this)}_stepFn(t=!1){const i=this._timeSource();let n=i-this._lastSourceTime;t&&(n=0);const s=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=i,t||(this._time+=s,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const i=this._runners[t];this._time-i.start<=0&&i.runner.reset()}let e=!1;for(let t=0,i=this._runners.length;t<i;t++){const n=this._runners[t],r=n.runner;let h=s;const o=this._time-n.start;o<=0?e=!0:(o<h&&(h=o),r.active()&&(r.step(h).done?!0!==n.persist&&r.duration()-r.time()+this._time+n.persist<this._time&&(r.unschedule(),--t,--i):e=!0))}return e&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}o({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Oi,this._timeline):(this._timeline=t,this)}}});class Li extends pt{constructor(t){super(),this.id=Li.id++,t="function"==typeof(t=null==t?400:t)?new Kt(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof Kt,this._stepper=this._isDeclarative?t:new Wt,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,i,n){let s=1,e=!1,r=0;return i=i??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof Ut||(i=t.delay??i,n=t.when??n,e=t.swing||e,s=t.times??s,r=t.wait??r,t=t.duration??400),{duration:t,delay:i,swing:e,times:s,wait:r,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,i,n){const s=Li.sanitise(t,i,n),e=new Li(s.duration);return this._timeline&&e.timeline(this._timeline),this._element&&e.element(this._element),e.loop(s).schedule(s.delay,s.when)}clearTransform(){return this.transforms=new it,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Wt(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,i,n){return"object"==typeof t&&(i=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=i||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const i=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/i);return Math.min(t+(this._time-t*i)/this._duration,this._times)}const n=Math.floor(t);return this.time(i*n+this._duration*(t%1))}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const i=this._time,n=this._duration,s=this._wait,e=this._swing,r=this._reverse;let h;if(null==t){const t=function(t){const i=e*Math.floor(t%(2*(s+n))/(s+n)),h=i&&!r||!i&&r,o=Math.pow(-1,h)*(t%(s+n))/n+h;return Math.max(Math.min(o,1),0)},o=this._times*(s+n)-s;return h=i<=0?Math.round(t(1e-5)):i<o?t(i):Math.round(t(o-1e-5)),h}const o=Math.floor(this.loops()),u=e&&o%2==0;return h=o+(u&&!r||r&&u?t:1-t),this.loops(h)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,i,n,s){return this._queue.push({initialiser:t||Ct,runner:i||Ct,retarget:n,isTransform:s,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,i,n){if(t instanceof Oi||(n=i,i=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,i,n),this}step(t){if(!this.enabled)return this;this._time+=t=null==t?16:t;const i=this.position(),n=this._lastPosition!==i&&this._time>=0;this._lastPosition=i;const s=this.duration(),e=this._lastTime<=0&&this._time>0,r=this._lastTime<s&&this._time>=s;this._lastTime=this._time,e&&this.fire("start",this);const h=this._isDeclarative;this.done=!h&&!r&&this._time>=s,this._reseted=!1;let o=!1;return(n||h)&&(this._initialise(n),this.transforms=new it,o=this._run(h?t:i),this.fire("step",this)),this.done=this.done||o&&h,r&&this.fire("finished",this),this}time(t){return null==t?this._time:(this.step(t-this._time),this)}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let i=0,n=this._queue.length;i<n;++i){const n=this._queue[i],s=this._isDeclarative||!n.initialised&&t;t=!n.finished,s&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,i){if(this._history[t]={morpher:i,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let i=!0;for(let n=0,s=this._queue.length;n<s;++n){const s=this._queue[n],e=s.runner.call(this,t);s.finished=s.finished||!0===e,i=i&&s.finished}return i}_tryRetarget(t,i,n){if(this._history[t]){if(!this._history[t].caller.initialised){const i=this._queue.indexOf(this._history[t].caller);return this._queue.splice(i,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,i,n):this._history[t].morpher.to(i),this._history[t].caller.finished=!1;const s=this.timeline();return s&&s.play(),!0}return!1}}Li.id=0;class Si{constructor(t=new it,i=-1,n=!0){this.transforms=t,this.id=i,this.done=n}clearTransformsFromQueue(){}}V([Li,Si],{mergeWith(t){return new Si(t.transforms.lmultiply(this.transforms),t.id)}});const Ei=(t,i)=>t.lmultiplyO(i),Ti=t=>t.transforms;function Hi(){const t=this._transformationRunners.runners.map(Ti).reduce(Ei,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Vi{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const i=t.id+1;return this.runners.push(t),this.ids.push(i),this}clearBefore(t){const i=this.ids.indexOf(t+1)||1;return this.ids.splice(0,i,0),this.runners.splice(0,i,new Si).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,i){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,i),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let i=0;i<this.runners.length;++i){const n=this.runners[i];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const s=n.mergeWith(t);this.edit(t.id,s),t=s,--i}}return this}remove(t){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1),this.runners.splice(i,1),this}}o({Element:{animate(t,i,n){const s=Li.sanitise(t,i,n),e=this.timeline();return new Li(s.duration).loop(s).element(this).timeline(e.play()).schedule(s.delay,s.when)},delay(t,i){return this.animate(0,t,i)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((i=>i.id<=t.id)).map(Ti).reduce(Ei,new it)},_addRunner(t){this._transformationRunners.add(t),_i.cancelImmediate(this._frameId),this._frameId=_i.immediate(Hi.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Vi).add(new Si(new it(this))))}}}),V(Li,{attr(t,i){return this.styleAttr("attr",t,i)},css(t,i){return this.styleAttr("css",t,i)},styleAttr(t,i,n){if("string"==typeof i)return this.styleAttr(t,{[i]:n});let s=i;if(this._tryRetarget(t,s))return this;let e=new di(this._stepper).to(s),r=Object.keys(s);return this.queue((function(){e=e.from(this.element()[t](r))}),(function(i){return this.element()[t](e.at(i).valueOf()),e.done()}),(function(i){const n=Object.keys(i),h=(o=r,n.filter((t=>!o.includes(t))));var o;if(h.length){const i=this.element()[t](h),n=new gi(e.from()).valueOf();Object.assign(n,i),e.from(n)}const u=new gi(e.to()).valueOf();Object.assign(u,i),e.to(u),r=n,s=i})),this._rememberMorpher(t,e),this},zoom(t,i){if(this._tryRetarget("zoom",t,i))return this;let n=new di(this._stepper).to(new yt(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),i),n.done()}),(function(t,s){i=s,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,i,n){if(i=t.relative||i,this._isDeclarative&&!i&&this._tryRetarget("transform",t))return this;const s=it.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!s;const e=new di(this._stepper).type(n?pi:it);let r,h,o,u,c;return this.queue((function(){h=h||this.element(),r=r||w(t,h),c=new it(i?void 0:h),h._addRunner(this),i||h._clearTransformRunnersBefore(this)}),(function(l){i||this.clearTransform();const{x:a,y:f}=new K(r).transform(h._currentTransform(this));let d=new it({...t,origin:[a,f]}),w=this._isDeclarative&&o?o:c;if(n){d=d.decompose(a,f),w=w.decompose(a,f);const t=d.rotate,i=w.rotate,n=[t-360,t,t+360],s=n.map((t=>Math.abs(t-i))),e=Math.min(...s),r=s.indexOf(e);d.rotate=n[r]}i&&(s||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(w.rotate=u)),e.from(w),e.to(d);const p=e.at(l);return u=p.rotate,o=new it(p),this.addTransform(o),h._addRunner(this),e.done()}),(function(i){(i.origin||"center").toString()!==(t.origin||"center").toString()&&(r=w(i,h)),t={...i,origin:r}}),!0),this._isDeclarative&&this._rememberMorpher("transform",e),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,i){return this.dx(t).dy(i)},_queueNumberDelta(t,i){if(i=new yt(i),this._tryRetarget(t,i))return this;const n=new di(this._stepper).to(i);let s=null;return this.queue((function(){s=this.element()[t](),n.from(s),n.to(s+i)}),(function(i){return this.element()[t](n.at(i)),n.done()}),(function(t){n.to(s+new yt(t))})),this._rememberMorpher(t,n),this},_queueObject(t,i){if(this._tryRetarget(t,i))return this;const n=new di(this._stepper).to(i);return this.queue((function(){n.from(this.element()[t]())}),(function(i){return this.element()[t](n.at(i)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,i){return this._queueObject(t,new yt(i))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,i){return this.x(t).y(i)},amove(t,i){return this.ax(t).ay(i)},center(t,i){return this.cx(t).cy(i)},size(t,i){let n;return t&&i||(n=this._element.bbox()),t||(t=n.width/n.height*i),i||(i=n.height/n.width*t),this.width(t).height(i)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,i,n,s){if(4===arguments.length)return this.plot([t,i,n,s]);if(this._tryRetarget("plot",t))return this;const e=new di(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){e.from(this._element.array())}),(function(t){return this._element.plot(e.at(t)),e.done()})),this._rememberMorpher("plot",e),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,i,n,s){return this._queueObject("viewbox",new et(t,i,n,s))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),V(Li,{rx:Ot,ry:Lt,from:Zt,to:$t}),S(Li,"Runner");class Di extends _t{constructor(t,i=t){super(A("svg",t),i),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new jt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof v.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:m,version:"1.1"}).attr("xmlns:xlink",x,y):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,y).attr("xmlns:svgjs",null,y)}root(){return this.isRoot()?this:super.root()}}o({Container:{nested:D((function(){return this.put(new Di)}))}}),S(Di,"Svg",!0);class Bi extends _t{constructor(t,i=t){super(A("symbol",t),i)}}o({Container:{symbol:D((function(){return this.put(new Bi)}))}}),S(Bi,"Symbol");var zi={__proto__:null,amove:function(t,i){return this.ax(t).ay(i)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},build:function(t){return this._build=!!t,this},center:function(t,i,n=this.bbox()){return this.cx(t,n).cy(i,n)},cx:function(t,i=this.bbox()){return null==t?i.cx:this.attr("x",this.attr("x")+t-i.cx)},cy:function(t,i=this.bbox()){return null==t?i.cy:this.attr("y",this.attr("y")+t-i.cy)},length:function(){return this.node.getComputedTextLength()},move:function(t,i,n=this.bbox()){return this.x(t,n).y(i,n)},plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(v.document.createTextNode(t)),this},x:function(t,i=this.bbox()){return null==t?i.x:this.attr("x",this.attr("x")+t-i.x)},y:function(t,i=this.bbox()){return null==t?i.y:this.attr("y",this.attr("y")+t-i.y)}};class Fi extends At{constructor(t,i=t){super(A("text",t),i),this.dom.leading=this.dom.leading??new yt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new yt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let i=0;const n=this.dom.leading;this.each((function(s){if(C(this.node))return;const e=v.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=n*new yt(e);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?i+=r:(this.attr("dy",s?r+i:0),i=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new yt(t.leading||1.3),this}writeDataToDom(){return g(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const i=this.node.childNodes;let n=0;t="";for(let s=0,e=i.length;s<e;++s)"textPath"===i[s].nodeName||C(i[s])?0===s&&(n=s+1):(s!==n&&3!==i[s].nodeType&&!0===O(i[s]).dom.newLined&&(t+="\n"),t+=i[s].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let i=0,n=(t=(t+"").split("\n")).length;i<n;i++)this.newLine(t[i]);return this.build(!1).rebuild()}}V(Fi,zi),o({Container:{text:D((function(t=""){return this.put(new Fi).text(t)})),plain:D((function(t=""){return this.put(new Fi).plain(t)}))}}),S(Fi,"Text");class Zi extends At{constructor(t,i=t){super(A("tspan",t),i),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Fi))return this;const i=t.index(this),n=v.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=t.dom.leading*new yt(n);return this.dy(i?s:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}V(Zi,zi),o({Tspan:{tspan:D((function(t=""){const i=new Zi;return this._build||this.clear(),this.put(i).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),S(Zi,"Tspan");class $i extends At{constructor(t,i=t){super(A("circle",t),i)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new yt(t).divide(2))}}V($i,{x:St,y:Et,cx:Tt,cy:Ht,width:Vt,height:Dt}),o({Container:{circle:D((function(t=0){return this.put(new $i).size(t).move(0,0)}))}}),S($i,"Circle");class Ni extends _t{constructor(t,i=t){super(A("clipPath",t),i)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ut("svg [clip-path*="+this.id()+"]")}}o({Container:{clip:D((function(){return this.defs().put(new Ni)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const i=t instanceof Ni?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+i.id()+")")},unclip(){return this.attr("clip-path",null)}}}),S(Ni,"ClipPath");class Pi extends Mt{constructor(t,i=t){super(A("foreignObject",t),i)}}o({Container:{foreignObject:D((function(t,i){return this.put(new Pi).size(t,i)}))}}),S(Pi,"ForeignObject");var Ii={__proto__:null,dmove:function(t,i){return this.children().forEach((n=>{let s;try{s=n.node instanceof v.window.SVGSVGElement?new et(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const e=new it(n),r=e.translate(t,i).transform(e.inverse()),h=new K(s.x,s.y).transform(r);n.move(h.x,h.y)})),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,i=this.bbox()){return null==t?i.height:this.size(i.width,t,i)},move:function(t=0,i=0,n=this.bbox()){return this.dmove(t-n.x,i-n.y)},size:function(t,i,n=this.bbox()){const s=d(this,t,i,n),e=s.width/n.width,r=s.height/n.height;return this.children().forEach((t=>{const i=new K(n).transform(new it(t).inverse());t.scale(e,r,i.x,i.y)})),this},width:function(t,i=this.bbox()){return null==t?i.width:this.size(t,i.height,i)},x:function(t,i=this.bbox()){return null==t?i.x:this.move(t,i.y,i)},y:function(t,i=this.bbox()){return null==t?i.y:this.move(i.x,t,i)}};class Ri extends _t{constructor(t,i=t){super(A("g",t),i)}}V(Ri,Ii),o({Container:{group:D((function(){return this.put(new Ri)}))}}),S(Ri,"G");class Gi extends _t{constructor(t,i=t){super(A("a",t),i)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,x)}}V(Gi,Ii),o({Container:{link:D((function(t){return this.put(new Gi).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const i=t.parent();if(!i)return this.remove();const n=i.index(t);return i.add(this,n),t.remove(),this},linkTo(t){let i=this.linker();return i||(i=new Gi,this.wrap(i)),"function"==typeof t?t.call(i,i):i.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),S(Gi,"A");class Yi extends _t{constructor(t,i=t){super(A("mask",t),i)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ut("svg [mask*="+this.id()+"]")}}o({Container:{mask:D((function(){return this.defs().put(new Yi)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const i=t instanceof Yi?t:this.parent().mask().add(t);return this.attr("mask","url(#"+i.id()+")")},unmask(){return this.attr("mask",null)}}}),S(Yi,"Mask");class Xi extends Mt{constructor(t,i=t){super(A("stop",t),i)}update(t){return("number"==typeof t||t instanceof yt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new yt(t.offset)),this}}o({Gradient:{stop:function(t,i,n){return this.put(new Xi).update(t,i,n)}}}),S(Xi,"Stop");class Qi extends Mt{constructor(t,i=t){super(A("style",t),i)}addText(t=""){return this.node.textContent+=t,this}font(t,i,n={}){return this.rule("@font-face",{fontFamily:t,src:i,...n})}rule(t,i){return this.addText(function(t,i){if(!t)return"";if(!i)return t;let n=t+"{";for(const t in i)n+=t.replace(/([A-Z])/g,(function(t,i){return"-"+i.toLowerCase()}))+":"+i[t]+";";return n+="}",n}(t,i))}}o("Dom",{style(t,i){return this.put(new Qi).rule(t,i)},fontface(t,i,n){return this.put(new Qi).font(t,i,n)}}),S(Qi,"Style");class qi extends Fi{constructor(t,i=t){super(A("textPath",t),i)}array(){const t=this.track();return t?t.array():null}plot(t){const i=this.track();let n=null;return i&&(n=i.plot(t)),null==t?n:this}track(){return this.reference("href")}}o({Container:{textPath:D((function(t,i){return t instanceof Fi||(t=this.text(t)),t.path(i)}))},Text:{path:D((function(t,i=!0){const n=new qi;let s;if(t instanceof yi||(t=this.defs().path(t)),n.attr("href","#"+t,x),i)for(;s=this.node.firstChild;)n.node.appendChild(s);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:D((function(t){return t instanceof Fi||(t=(new Fi).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ut("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),qi.prototype.MorphArray=ai,S(qi,"TextPath");class Ji extends At{constructor(t,i=t){super(A("use",t),i)}use(t,i){return this.attr("href",(i||"")+"#"+t,x)}}o({Container:{use:D((function(t,i){return this.put(new Ji).use(t,i)}))}}),S(Ji,"Use");const Ui=j;function Wi(){let t,i={entities:[]},n=[];function s(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function e(t,i){const n=t.entity.attr("width"),s=t.entity.attr("x");switch(i){case"top":case"bottom":return s+n/2;default:return s-n/2}}function r(t,i){const n=t.entity.attr("height"),s=t.entity.attr("y");switch(i){case"top":default:return s;case"bottom":return s+n}}function h(){t.entities.forEach((t=>t.remove())),t.entities=[],n=[],i.labels||(i.labels=[]),i.labels=i.labels.map((t=>({id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"}))),i.entities.map((t=>{t.type=t.type?t.type:"entity","operation"===t.type&&(t.height=t.width)})),i.labels&&i.labels.length>0&&i.labels.forEach((i=>{t.labels.text(i.value).x(i.x).y(i.y)})),i.entities.forEach((i=>function(t,i){const n=t.group().attr({id:i.id});t.entities.push(n),i.background_color=i.background_color?i.background_color:"#f06",i.color=i.color?i.color:"#ffffff",i.radius=i.radius?i.radius:0,n.entity=n.rect(i.width,i.height).cx(i.width/2).cy(i.height/2).attr({fill:"#ffffff",stroke:i.color,"stroke-width":2}).radius(i.radius),i.class&&n.entity.attr("class",i.class),n.plain(i.text).cx(14).cy(i.height/2+6).attr({fill:i.color}),n.move(i.x,i.y)}(t,i))),n=i.lines,function(t,i){i.forEach((i=>function(t,i){let n="";const h=i.color||"#4c56cb",o=t.findOne("#"+i.from.element),u=t.findOne("#"+i.to.element),c=function(t,i,n){const h=[],o=r(i,t.from.point),u=r(n,t.to.point),c=e(i,t.from.point),l=e(n,t.to.point),a=s(t.from.point)-s(t.to.point);return 0===a&&("top"===t.from.point?o<=u?(h.push({x:c,y:o-20}),h.push({x:l,y:o-20})):(h.push({x:c,y:u-20}),h.push({x:l,y:u-20})):"bottom"===t.from.point?o<=u?(h.push({x:c,y:u+20}),h.push({x:l,y:u+20})):(h.push({x:c,y:o+20}),h.push({x:l,y:o+20})):c<=l?(h.push({x:l+20,y:o}),h.push({x:l+20,y:u})):(h.push({x:c+20,y:o}),h.push({x:c+20,y:u}))),2!==a&&-2!==a||c!==l&&(h.push({x:c,y:u+(o-u)/2}),h.push({x:l,y:u+(o-u)/2})),1!==a&&-1!==a&&3!==a&&-3!==a||("top"===t.from.point&&(o<u+20?(h.push({x:c,y:o-20}),h.push({x:l+20,y:o-20}),h.push({x:l+20,y:u})):h.push({x:c,y:u})),"bottom"===t.from.point&&(o>u-20?(h.push({x:c,y:o+20}),h.push({x:l+20,y:o+20}),h.push({x:l+20,y:u})):h.push({x:c,y:u}))),h}(i,o,u);n+=e(o,i.from.point)+","+r(o,i.from.point)+" ",c.forEach((t=>n+=t.x+","+t.y+" ")),n+=e(u,i.to.point)+","+r(u,i.to.point)+" ",i.polyline?i.polyline.plot(n):i.polyline=t.lines.polyline(n).fill("none").stroke({color:h,width:2,linecap:"round",linejoin:"round"}).attr("id",i.id)}(t,i)))}(t,n)}return{initalize:function(i,n,s){t=Ui().addTo(i).size(n,s),t.entities=[],t.lines=t.group(),t.labels=t.group()},update:function(t){i=t,h()}}}V([Di,Bi,Rt,It,Qt],u("viewbox")),V([Xt,bi,vi,yi],u("marker")),V(Fi,u("Text")),V(yi,u("Path")),V(jt,u("Defs")),V([Fi,Zi],u("Tspan")),V([Mi,zt,Pt,Li],u("radius")),V(pt,u("EventTarget")),V(bt,u("Dom")),V(Mt,u("Element")),V(At,u("Shape")),V([_t,Ft],u("Container")),V(Pt,u("Gradient")),V(Li,u("Runner")),ht.extend([...new Set(h)]),function(t=[]){mi.push(...[].concat(t))}([yt,W,et,it,mt,Gt,ai,K]),V(mi,{to(t){return(new di).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,i,n,s,e){return this.fromArray(t.map((function(t,r){return s.step(t,i[r],n,e[r],e)})))}});const Ki=class{constructor(i){t(this,i),this.recipientStatusIcons=[],this.size="normal",this.theme="light",this.status=void 0,this.envelope=void 0,this.isOpen=void 0,this.containerId=`verdocs-status-indicator-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){var t;if(this.popper=e(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]}),null===(t=this.envelope)||void 0===t?void 0:t.recipients){const t=[];this.envelope.recipients.forEach((i=>{const n=i.sequence-1;t[n]||(t[n]=[]);const s=`r-${n}-${t[n].length}`;t[n].push({...i,id:s})}));const i=Object.keys(t).length,n=40*i+40*(i+1);let e=0;Object.values(t).forEach((t=>{let i=140*t.length+40*(t.length+1);i>e&&(e=i)}));const r=[],h=[],o=[];let u=40;Object.entries(t).forEach((([i,n])=>{const c=20+(e-180*n.length)/2;n.forEach(((n,e)=>{var l;const a=s(n),f={id:n.id,text:a,icon:this.getStatusIcon(n.status),x:180*e+c,y:u,width:140,height:40,color:this.getStatusColor(n.status),radius:8};r.push(f),o.push({icon:this.getStatusIcon(n.status),x:180*e+c+108,y:u+20-13}),null===(l=t[+i-1])||void 0===l||l.forEach((t=>{const i={id:`line-${t.id}-${f.id}`,from:{element:t.id,point:"bottom"},to:{element:f.id,point:"top"},color:this.getStatusColor(n.status)};h.push(i)}))})),u+=80})),this.recipientStatusIcons=o;const c=Wi();c.initalize(`#${this.containerId}`,e,n),c.update({entities:r,lines:h})}}showDropdown(){var t,i;this.isOpen=!0,this.detailPanel.setAttribute("data-show",""),this.detailPanel.removeAttribute("aria-hidden"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),null===(i=this.popper)||void 0===i||i.update()}handleHideDropdown(t){var i,n;"button"===(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.localName)&&"arrow"===(null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.className)||this.hide()}toggleDropdown(){this.isOpen?this.hide():this.showDropdown()}hide(){var t;this.isOpen=!1,this.detailPanel.removeAttribute("data-show"),this.detailPanel.setAttribute("aria-hidden","true"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})))}getStatusColor(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";default:return"#999999"}}getStatusIcon(t){switch(t){case"accepted":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>';case"complete":case"submitted":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';case"in progress":case"invited":return"light"===this.theme?'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';case"canceled":return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';case"declined":return"light"===this.theme?'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>';case"opened":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>';case"signed":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>';case"some-signed":return"light"===this.theme?'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';default:return"light"===this.theme?'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'}}getStatusMessage(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}}render(){var t,s;let e=this.status||(null===(t=this.envelope)||void 0===t?void 0:t.status)||"pending";if(!this.status&&(null===(s=this.envelope)||void 0===s?void 0:s.recipients)){const t=this.envelope.recipients.filter((t=>"submitted"===t.status));t.length>0&&t.length!==this.envelope.recipients.length&&(e="some-signed")}const r=this.getStatusIcon(e),h=this.getStatusMessage(e);return i(n,{key:"0d3a55cf87f1a0dba7e235e3b3fb19b7b44e67f5",ref:t=>this.summaryComponent=t,class:`${this.theme} ${this.size} ${this.envelope?"has-document":""}`,"aria-label":"Click to View Details",onClick:t=>{t.stopPropagation(),t.preventDefault(),this.envelope&&this.toggleDropdown()},onBlur:t=>this.envelope&&this.handleHideDropdown(t)},i("span",{key:"9d1812f322823609640bbdcde955123f4dfb294e",class:"icon",innerHTML:r}),i("span",{key:"3db7a2eca6b3a6894a56daace7a367726feb508e",class:"content"},h),i("div",{key:"a0b31ee1a68c854dc781ba6fa729fbde485db23e",class:"detail-panel",ref:t=>this.detailPanel=t},i("div",{key:"2eab9e497070e97fe917ccc76d7c43ab2ae508f7",id:`${this.containerId}`}),this.recipientStatusIcons.map((t=>i("span",{innerHTML:t.icon,style:{position:"absolute",top:`${t.y}px`,left:`${t.x}px`}})))))}};Ki.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}';export{Ki as verdocs_status_indicator}
1
+ import{r as t,h as i,H as n}from"./p-b9654a5e.js";import{formatFullName as s}from"@verdocs/js-sdk";import{c as e}from"./p-68a5aaff.js";const r={},h=[];function o(t,i){if(Array.isArray(t))for(const n of t)o(n,i);else if("object"!=typeof t)c(Object.getOwnPropertyNames(i)),r[t]=Object.assign(r[t]||{},i);else for(const i in t)o(i,t[i])}function u(t){return r[t]||{}}function c(t){h.push(...t)}function l(t,i){let n;const s=t.length,e=[];for(n=0;n<s;n++)e.push(i(t[n]));return e}function a(t){return t%360*Math.PI/180}function f(t){return t.charAt(0).toUpperCase()+t.slice(1)}function d(t,i,n,s){return null!=i&&null!=n||(s=s||t.bbox(),null==i?i=s.width/s.height*n:null==n&&(n=s.height/s.width*i)),{width:i,height:n}}function w(t,i){const n=t.origin;let s=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",e=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([s,e]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const r="string"==typeof s,h="string"==typeof e;if(r||h){const{height:t,width:n,x:o,y:u}=i.bbox();r&&(s=s.includes("left")?o:s.includes("right")?o+n:o+n/2),h&&(e=e.includes("top")?u:e.includes("bottom")?u+t:u+t/2)}return[s,e]}const p=new Set(["desc","metadata","title"]),C=t=>p.has(t.nodeName),g=(t,i,n={})=>{const s={...i};for(const t in s)s[t].valueOf()===n[t]&&delete s[t];Object.keys(s).length?t.node.setAttribute("data-svgjs",JSON.stringify(s)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},m="http://www.w3.org/2000/svg",y="http://www.w3.org/2000/xmlns/",x="http://www.w3.org/1999/xlink",v={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class b{}const M={},k="___SYMBOL___ROOT___";function _(t,i=m){return v.document.createElementNS(i,t)}function j(t,i=!1){if(t instanceof b)return t;if("object"==typeof t)return L(t);if(null==t)return new M[k];if("string"==typeof t&&"<"!==t.charAt(0))return L(v.document.querySelector(t));const n=i?v.document.createElement("div"):_("svg");return n.innerHTML=t,t=L(n.firstChild),n.removeChild(n.firstChild),t}function A(t,i){return i&&(i instanceof v.window.Node||i.ownerDocument&&i instanceof i.ownerDocument.defaultView.Node)?i:_(t)}function O(t){if(!t)return null;if(t.instance instanceof b)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let i=f(t.nodeName||"Dom");return"LinearGradient"===i||"RadialGradient"===i?i="Gradient":M[i]||(i="Dom"),new M[i](t)}let L=O;function S(t,i=t.name,n=!1){return M[i]=t,n&&(M[k]=t),c(Object.getOwnPropertyNames(t.prototype)),t}let E=1e3;function T(t){return"Svgjs"+f(t)+E++}function H(t){for(let i=t.children.length-1;i>=0;i--)H(t.children[i]);return t.id?(t.id=T(t.nodeName),t):t}function V(t,i){let n,s;for(s=(t=Array.isArray(t)?t:[t]).length-1;s>=0;s--)for(n in i)t[s].prototype[n]=i[n]}function D(t){return function(...i){const n=i[i.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,i):t.apply(this,i.slice(0,-1)).attr(n)}}o("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=j(t)).remove();const i=this.position();return this.parent().add(t,i),this},after:function(t){(t=j(t)).remove();const i=this.position();return this.parent().add(t,i+1),this},insertBefore:function(t){return(t=j(t)).before(this),this},insertAfter:function(t){return(t=j(t)).after(this),this}});const B=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,Z=/(#[a-z_][a-z0-9\-_]*)/i,$=/\)\s*,?\s*/,N=/\s/g,P=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,I=/^rgb\(/,R=/^(\s+)?$/,G=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Y=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,X=/[\s,]+/,Q=/[MLHVCSQTAZ]/i;function q(t){const i=Math.round(t),n=Math.max(0,Math.min(255,i)).toString(16);return 1===n.length?"0"+n:n}function J(t,i){for(let n=i.length;n--;)if(null==t[i[n]])return!1;return!0}function U(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t}o("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(X)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const i=this.classes();i.push(t),this.attr("class",i.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(i){return i!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),o("Dom",{css:function(t,i){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const i=t.split(/\s*:\s*/);n[i[0]]=i[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const i of t)n[i]=this.node.style.getPropertyValue(i);return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const i in t)this.node.style.setProperty(i,null==t[i]||R.test(t[i])?"":t[i])}return 2===arguments.length&&this.node.style.setProperty(t,null==i||R.test(i)?"":i),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),o("Dom",{data:function(t,i,n){if(null==t)return this.data(l(function(t){let i;const n=t.length,s=[];for(i=0;i<n;i++)0===t[i].nodeName.indexOf("data-")&&s.push(t[i]);return s}(this.node.attributes),(t=>t.nodeName.slice(5))));if(t instanceof Array){const i={};for(const n of t)i[n]=this.data(n);return i}if("object"==typeof t)for(i in t)this.data(i,t[i]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}else this.attr("data-"+t,null===i?null:!0===n||"string"==typeof i||"number"==typeof i?i:JSON.stringify(i));return this}}),o("Dom",{remember:function(t,i){if("object"==typeof arguments[0])for(const i in t)this.remember(i,t[i]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=i}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class W{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof W||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",i){const{random:n,round:s,sin:e,PI:r}=Math;if("vibrant"===t){const t=24*n()+57,i=38*n()+45,s=360*n();return new W(t,i,s,"lch")}if("sine"===t){const t=s(80*e(2*r*(i=null==i?n():i)/.5+.01)+150),h=s(50*e(2*r*i/.5+4.6)+200),o=s(100*e(2*r*i/.5+2.3)+150);return new W(t,h,o)}if("pastel"===t){const t=8*n()+86,i=17*n()+9,s=360*n();return new W(t,i,s,"lch")}if("dark"===t){const t=10+10*n(),i=50*n()+86,s=360*n();return new W(t,i,s,"lch")}if("rgb"===t){const t=255*n(),i=255*n(),s=255*n();return new W(t,i,s)}if("lab"===t){const t=100*n(),i=256*n()-128,s=256*n()-128;return new W(t,i,s,"lab")}if("grey"===t){const t=255*n();return new W(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(P.test(t)||I.test(t))}cmyk(){const{_a:t,_b:i,_c:n}=this.rgb(),[s,e,r]=[t,i,n].map((t=>t/255)),h=Math.min(1-s,1-e,1-r);return 1===h?new W(0,0,0,1,"cmyk"):new W((1-s-h)/(1-h),(1-e-h)/(1-h),(1-r-h)/(1-h),h,"cmyk")}hsl(){const{_a:t,_b:i,_c:n}=this.rgb(),[s,e,r]=[t,i,n].map((t=>t/255)),h=Math.max(s,e,r),o=Math.min(s,e,r),u=(h+o)/2,c=h===o,l=h-o;return new W(360*(c?0:h===s?((e-r)/l+(e<r?6:0))/6:h===e?((r-s)/l+2)/6:h===r?((s-e)/l+4)/6:0),100*(c?0:u>.5?l/(2-h-o):l/(h+o)),100*u,"hsl")}init(t=0,i=0,n=0,s=0,e="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)e="string"==typeof s?s:e,s="string"==typeof s?0:s,Object.assign(this,{_a:t,_b:i,_c:n,_d:s,space:e});else if(t instanceof Array)this.space=i||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,i){const n=J(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:J(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:J(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:J(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:J(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:J(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=i||n.space,n}(t,i);Object.assign(this,n)}else if("string"==typeof t)if(I.test(t)){const i=t.replace(N,""),[n,s,e]=F.exec(i).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:s,_c:e,_d:0,space:"rgb"})}else{if(!P.test(t))throw Error("Unsupported string format, can't construct Color");{const i=t=>parseInt(t,16),[,n,s,e]=z.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(i);Object.assign(this,{_a:n,_b:s,_c:e,_d:0,space:"rgb"})}}const{_a:r,_b:h,_c:o,_d:u}=this;Object.assign(this,"rgb"===this.space?{r,g:h,b:o}:"xyz"===this.space?{x:r,y:h,z:o}:"hsl"===this.space?{h:r,s:h,l:o}:"lab"===this.space?{l:r,a:h,b:o}:"lch"===this.space?{l:r,c:h,h:o}:"cmyk"===this.space?{c:r,m:h,y:o,k:u}:{})}lab(){const{x:t,y:i,z:n}=this.xyz();return new W(116*i-16,500*(t-i),200*(i-n),"lab")}lch(){const{l:t,a:i,b:n}=this.lab(),s=Math.sqrt(i**2+n**2);let e=180*Math.atan2(n,i)/Math.PI;return e<0&&(e*=-1,e=360-e),new W(t,s,e,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:i,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:s,a:e,b:r}=this;if("lch"===this.space){const{c:t,h:i}=this,n=Math.PI/180;e=t*Math.cos(n*i),r=t*Math.sin(n*i)}const h=(s+16)/116,o=e/500+h,u=h-r/200,c=16/116,l=.008856,a=7.787;t=.95047*(o**3>l?o**3:(o-c)/a),i=1*(h**3>l?h**3:(h-c)/a),n=1.08883*(u**3>l?u**3:(u-c)/a)}const s=3.2406*t+-1.5372*i+-.4986*n,e=-.9689*t+1.8758*i+.0415*n,r=.0557*t+-.204*i+1.057*n,h=Math.pow,o=.0031308,u=s>o?1.055*h(s,1/2.4)-.055:12.92*s,c=e>o?1.055*h(e,1/2.4)-.055:12.92*e,l=r>o?1.055*h(r,1/2.4)-.055:12.92*r;return new W(255*u,255*c,255*l)}if("hsl"===this.space){let{h:t,s:i,l:n}=this;if(t/=360,i/=100,n/=100,0===i)return n*=255,new W(n,n,n);const s=n<.5?n*(1+i):n+i-n*i,e=2*n-s,r=255*U(e,s,t+1/3),h=255*U(e,s,t),o=255*U(e,s,t-1/3);return new W(r,h,o)}if("cmyk"===this.space){const{c:t,m:i,y:n,k:s}=this,e=255*(1-Math.min(1,t*(1-s)+s)),r=255*(1-Math.min(1,i*(1-s)+s)),h=255*(1-Math.min(1,n*(1-s)+s));return new W(e,r,h)}return this;var t}toArray(){const{_a:t,_b:i,_c:n,_d:s,space:e}=this;return[t,i,n,s,e]}toHex(){const[t,i,n]=this._clamped().map(q);return`#${t}${i}${n}`}toRgb(){const[t,i,n]=this._clamped();return`rgb(${t},${i},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:i,_c:n}=this.rgb(),[s,e,r]=[t,i,n].map((t=>t/255)),h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,o=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,u=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,c=(.4124*h+.3576*o+.1805*u)/.95047,l=(.2126*h+.7152*o+.0722*u)/1,a=(.0193*h+.1192*o+.9505*u)/1.08883,f=c>.008856?Math.pow(c,1/3):7.787*c+16/116,d=l>.008856?Math.pow(l,1/3):7.787*l+16/116,w=a>.008856?Math.pow(a,1/3):7.787*a+16/116;return new W(f,d,w,"xyz")}_clamped(){const{_a:t,_b:i,_c:n}=this.rgb(),{max:s,min:e,round:r}=Math;return[t,i,n].map((t=>s(0,e(r(t),255))))}}class K{constructor(...t){this.init(...t)}clone(){return new K(this)}init(t,i){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:i};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){it.isMatrixLike(t)||(t=new it(t));const{x:i,y:n}=this;return this.x=t.a*i+t.c*n+t.e,this.y=t.b*i+t.d*n+t.f,this}}function tt(t,i){return Math.abs(i-t)<1e-6}class it{constructor(...t){this.init(...t)}static formatTransforms(t){const i="both"===t.flip||!0===t.flip,n=t.flip&&(i||"x"===t.flip)?-1:1,s=t.flip&&(i||"y"===t.flip)?-1:1,e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,r=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,h=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,o=t.scale&&t.scale.length?t.scale[1]*s:isFinite(t.scale)?t.scale*s:isFinite(t.scaleY)?t.scaleY*s:s,u=t.shear||0,c=t.rotate||t.theta||0,l=new K(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),a=l.x,f=l.y,d=new K(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),w=d.x,p=d.y,C=new K(t.translate||t.tx||t.translateX,t.ty||t.translateY),g=C.x,m=C.y,y=new K(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:h,scaleY:o,skewX:e,skewY:r,shear:u,theta:c,rx:y.x,ry:y.y,tx:g,ty:m,ox:a,oy:f,px:w,py:p}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,i,n){const s=t.b*i.a+t.d*i.b,e=t.a*i.c+t.c*i.d,r=t.b*i.c+t.d*i.d,h=t.e+t.a*i.e+t.c*i.f,o=t.f+t.b*i.e+t.d*i.f;return n.a=t.a*i.a+t.c*i.b,n.b=s,n.c=e,n.d=r,n.e=h,n.f=o,n}around(t,i,n){return this.clone().aroundO(t,i,n)}aroundO(t,i,n){const s=t||0,e=i||0;return this.translateO(-s,-e).lmultiplyO(n).translateO(s,e)}clone(){return new it(this)}decompose(t=0,i=0){const n=this.a,s=this.b,e=this.c,r=this.d,h=this.e,o=this.f,u=n*r-s*e,c=u>0?1:-1,l=c*Math.sqrt(n*n+s*s),a=Math.atan2(c*s,c*n),f=180/Math.PI*a,d=Math.cos(a),w=Math.sin(a),p=(n*e+s*r)/u,C=e*l/(p*n-s)||r*l/(p*s+n);return{scaleX:l,scaleY:C,shear:p,rotate:f,translateX:h-t+t*d*l+i*(p*d*l-w*C),translateY:o-i+t*w*l+i*(p*w*l+d*C),originX:t,originY:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const i=new it(t);return tt(this.a,i.a)&&tt(this.b,i.b)&&tt(this.c,i.c)&&tt(this.d,i.d)&&tt(this.e,i.e)&&tt(this.f,i.f)}flip(t,i){return this.clone().flipO(t,i)}flipO(t,i){return"x"===t?this.scaleO(-1,1,i,0):"y"===t?this.scaleO(1,-1,0,i):this.scaleO(-1,-1,t,i||t)}init(t){const i=it.fromArray([1,0,0,1,0,0]);return t=t instanceof Mt?t.matrixify():"string"==typeof t?it.fromArray(t.split(X).map(parseFloat)):Array.isArray(t)?it.fromArray(t):"object"==typeof t&&it.isMatrixLike(t)?t:"object"==typeof t?(new it).transform(t):6===arguments.length?it.fromArray([].slice.call(arguments)):i,this.a=null!=t.a?t.a:i.a,this.b=null!=t.b?t.b:i.b,this.c=null!=t.c?t.c:i.c,this.d=null!=t.d?t.d:i.d,this.e=null!=t.e?t.e:i.e,this.f=null!=t.f?t.f:i.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,i=this.b,n=this.c,s=this.d,e=this.e,r=this.f,h=t*s-i*n;if(!h)throw new Error("Cannot invert "+this);const o=s/h,u=-i/h,c=-n/h,l=t/h,a=-(o*e+c*r),f=-(u*e+l*r);return this.a=o,this.b=u,this.c=c,this.d=l,this.e=a,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const i=t instanceof it?t:new it(t);return it.matrixMultiply(i,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const i=t instanceof it?t:new it(t);return it.matrixMultiply(this,i,this)}rotate(t,i,n){return this.clone().rotateO(t,i,n)}rotateO(t,i=0,n=0){t=a(t);const s=Math.cos(t),e=Math.sin(t),{a:r,b:h,c:o,d:u,e:c,f:l}=this;return this.a=r*s-h*e,this.b=h*s+r*e,this.c=o*s-u*e,this.d=u*s+o*e,this.e=c*s-l*e+n*e-i*s+i,this.f=l*s+c*e-i*e-n*s+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,i=t,n=0,s=0){3===arguments.length&&(s=n,n=i,i=t);const{a:e,b:r,c:h,d:o,e:u,f:c}=this;return this.a=e*t,this.b=r*i,this.c=h*t,this.d=o*i,this.e=u*t-n*t+n,this.f=c*i-s*i+s,this}shear(t,i,n){return this.clone().shearO(t,i,n)}shearO(t,i=0,n=0){const{a:s,b:e,c:r,d:h,e:o,f:u}=this;return this.a=s+e*t,this.c=r+h*t,this.e=o+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,i=t,n=0,s=0){3===arguments.length&&(s=n,n=i,i=t),t=a(t),i=a(i);const e=Math.tan(t),r=Math.tan(i),{a:h,b:o,c:u,d:c,e:l,f}=this;return this.a=h+o*e,this.b=o+h*r,this.c=u+c*e,this.d=c+u*r,this.e=l+f*e-s*e,this.f=f+l*r-n*r,this}skewX(t,i,n){return this.skew(t,0,i,n)}skewY(t,i,n){return this.skew(0,t,i,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(it.isMatrixLike(t))return new it(t).multiplyO(this);const i=it.formatTransforms(t),{x:n,y:s}=new K(i.ox,i.oy).transform(this),e=(new it).translateO(i.rx,i.ry).lmultiplyO(this).translateO(-n,-s).scaleO(i.scaleX,i.scaleY).skewO(i.skewX,i.skewY).shearO(i.shear).rotateO(i.theta).translateO(n,s);if(isFinite(i.px)||isFinite(i.py)){const t=new K(n,s).transform(e),r=isFinite(i.px)?i.px-t.x:0,h=isFinite(i.py)?i.py-t.y:0;e.translateO(r,h)}return e.translateO(i.tx,i.ty),e}translate(t,i){return this.clone().translateO(t,i)}translateO(t,i){return this.e+=t||0,this.f+=i||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function nt(){if(!nt.nodes){const t=j().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const i=t.path().node;nt.nodes={svg:t,path:i}}return nt.nodes.svg.node.parentNode||nt.nodes.svg.addTo(v.document.body||v.document.documentElement),nt.nodes}function st(t){return!(t.width||t.height||t.x||t.y)}S(it,"Matrix");class et{constructor(...t){this.init(...t)}addOffset(){return this.x+=v.window.pageXOffset,this.y+=v.window.pageYOffset,new et(this)}init(t){return t="string"==typeof t?t.split(X).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return st(this)}merge(t){const i=Math.min(this.x,t.x),n=Math.min(this.y,t.y),s=Math.max(this.x+this.width,t.x+t.width)-i,e=Math.max(this.y+this.height,t.y+t.height)-n;return new et(i,n,s,e)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof it||(t=new it(t));let i=1/0,n=-1/0,s=1/0,e=-1/0;return[new K(this.x,this.y),new K(this.x2,this.y),new K(this.x,this.y2),new K(this.x2,this.y2)].forEach((function(r){r=r.transform(t),i=Math.min(i,r.x),n=Math.max(n,r.x),s=Math.min(s,r.y),e=Math.max(e,r.y)})),new et(i,s,n-i,e-s)}}function rt(t,i,n){let s;try{if(s=i(t.node),st(s)&&(e=t.node)!==v.document&&!(v.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===v.document}).call(v.document.documentElement,e))throw new Error("Element not in the dom")}catch(i){s=n(t)}var e;return s}o({viewbox:{viewbox(t,i,n,s){return null==t?new et(this.attr("viewBox")):this.attr("viewBox",new et(t,i,n,s))},zoom(t,i){let{width:n,height:s}=this.attr(["width","height"]);if((n||s)&&"string"!=typeof n&&"string"!=typeof s||(n=this.node.clientWidth,s=this.node.clientHeight),!n||!s)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const e=this.viewbox(),r=n/e.width,h=s/e.height,o=Math.min(r,h);if(null==t)return o;let u=o/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),i=i||new K(n/2/r+e.x,s/2/h+e.y);const c=new et(e).transform(new it({scale:u,origin:i}));return this.viewbox(c)}}}),S(et,"Box");class ht extends Array{constructor(t=[],...i){if(super(t,...i),"number"==typeof t)return this;this.length=0,this.push(...t)}}V([ht],{each(t,...i){return this.map("function"==typeof t?(i,n,s)=>t.call(i,i,n,s):n=>n[t](...i))},toArray(){return Array.prototype.concat.apply([],this)}});const ot=["toArray","constructor","each"];function ut(t,i){return new ht(l((i||v.document).querySelectorAll(t),(function(t){return O(t)})))}ht.extend=function(t){t=t.reduce(((t,i)=>(ot.includes(i)||"_"===i[0]||(i in Array.prototype&&(t["$"+i]=Array.prototype[i]),t[i]=function(...t){return this.each(i,...t)}),t)),{}),V([ht],t)};let ct=0;const lt={};function at(t){let i=t.getEventHolder();return i===v.window&&(i=lt),i.events||(i.events={}),i.events}function ft(t){return t.getEventTarget()}function dt(t,i,n,s,e){const r=n.bind(s||t),h=j(t),o=at(h),u=ft(h);i=Array.isArray(i)?i:i.split(X),n._svgjsListenerId||(n._svgjsListenerId=++ct),i.forEach((function(t){const i=t.split(".")[0],s=t.split(".")[1]||"*";o[i]=o[i]||{},o[i][s]=o[i][s]||{},o[i][s][n._svgjsListenerId]=r,u.addEventListener(i,r,e||!1)}))}function wt(t,i,n,s){const e=j(t),r=at(e),h=ft(e);("function"!=typeof n||(n=n._svgjsListenerId))&&(i=Array.isArray(i)?i:(i||"").split(X)).forEach((function(t){const i=t&&t.split(".")[0],o=t&&t.split(".")[1];let u,c;if(n)r[i]&&r[i][o||"*"]&&(h.removeEventListener(i,r[i][o||"*"][n],s||!1),delete r[i][o||"*"][n]);else if(i&&o){if(r[i]&&r[i][o]){for(c in r[i][o])wt(h,[i,o].join("."),c);delete r[i][o]}}else if(o)for(t in r)for(u in r[t])o===u&&wt(h,[t,o].join("."));else if(i){if(r[i]){for(u in r[i])wt(h,[i,u].join("."));delete r[i]}}else{for(t in r)wt(h,t);!function(t){let i=t.getEventHolder();i===v.window&&(i=lt),i.events&&(i.events={})}(e)}}))}class pt extends b{addEventListener(){}dispatch(t,i,n){return function(t,i,n,s){const e=ft(t);return i instanceof v.window.Event||(i=new v.window.CustomEvent(i,{detail:n,cancelable:!0,...s})),e.dispatchEvent(i),i}(this,t,i,n)}dispatchEvent(t){const i=this.getEventHolder().events;if(!i)return!0;const n=i[t.type];for(const i in n)for(const s in n[i])n[i][s](t);return!t.defaultPrevented}fire(t,i,n){return this.dispatch(t,i,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,i,n){return wt(this,t,i,n),this}on(t,i,n,s){return dt(this,t,i,n,s),this}removeEventListener(){}}function Ct(){}S(pt,"EventTarget");const gt={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class mt extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(X).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class yt{constructor(...t){this.init(...t)}convert(t){return new yt(this.value,t)}divide(t){return t=new yt(t),new yt(this/t,this.unit||t.unit)}init(t,i){return i=Array.isArray(t)?t[1]:i,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=i||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(i=t.match(B))&&(this.value=parseFloat(i[1]),"%"===i[5]?this.value/=100:"s"===i[5]&&(this.value*=1e3),this.unit=i[5]):t instanceof yt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new yt(t),new yt(this-t,this.unit||t.unit)}plus(t){return t=new yt(t),new yt(this+t,this.unit||t.unit)}times(t){return t=new yt(t),new yt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const xt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),vt=[];class bt extends pt{constructor(t,i){super(),this.node=t,this.type=t.nodeName,i&&t!==i&&this.attr(i)}add(t,i){return(t=j(t)).removeNamespace&&this.node instanceof v.window.SVGElement&&t.removeNamespace(),null==i?this.node.appendChild(t.node):t.node!==this.node.childNodes[i]&&this.node.insertBefore(t.node,this.node.childNodes[i]),this}addTo(t,i){return j(t).put(this,i)}children(){return new ht(l(this.node.children,(function(t){return O(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,i=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return i&&(n=H(n)),new this.constructor(n)}each(t,i){const n=this.children();let s,e;for(s=0,e=n.length;s<e;s++)t.apply(n[s],[s,n]),i&&n[s].each(t,i);return this}element(t,i){return this.put(new bt(_(t),i))}first(){return O(this.node.firstChild)}get(t){return O(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,i){return this.xml(t,i,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=T(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(this.node.lastChild)}matches(t){const i=this.node,n=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||null;return n&&n.call(i,t)}parent(t){let i=this;if(!i.node.parentNode)return null;if(i=O(i.node.parentNode),!t)return i;do{if("string"==typeof t?i.matches(t):i instanceof t)return i}while(i=O(i.node.parentNode));return i}put(t,i){return t=j(t),this.add(t,i),t}putIn(t,i){return j(t).add(this,i)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=j(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,i=null){const n=10**t,s=this.attr(i);for(const t in s)"number"==typeof s[t]&&(s[t]=Math.round(s[t]*n)/n);return this.attr(s),this}svg(t,i){return this.xml(t,i,m)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const i=this.parent();if(!i)return this.addTo(t);const n=i.index(this);return i.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,i,n){if("boolean"==typeof t&&(n=i,i=t,t=null),null==t||"function"==typeof t){i=null==i||i,this.writeDataToDom();let n=this;if(null!=t){if(n=O(n.node.cloneNode(!0)),i){const i=t(n);if(n=i||n,!1===i)return""}n.each((function(){const i=t(this),n=i||this;!1===i?this.remove():i&&this!==n&&this.replace(n)}),!0)}return i?n.node.outerHTML:n.node.innerHTML}i=null!=i&&i;const s=_("wrapper",n),e=v.document.createDocumentFragment();s.innerHTML=t;for(let t=s.children.length;t--;)e.appendChild(s.firstElementChild);const r=this.parent();return i?this.replace(e)&&r:this.add(e)}}V(bt,{attr:function(t,i,n){if(null==t){t={},i=this.node.attributes;for(const n of i)t[n.nodeName]=G.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,i)=>(t[i]=this.attr(i),t)),{});if("object"==typeof t&&t.constructor===Object)for(i in t)this.attr(i,t[i]);else if(null===i)this.node.removeAttribute(t);else{if(null==i)return null==(i=this.node.getAttribute(t))?gt[t]:G.test(i)?parseFloat(i):i;"number"==typeof(i=vt.reduce(((i,n)=>n(t,i,this)),i))?i=new yt(i):xt.has(t)&&W.isColor(i)?i=new W(i):i.constructor===Array&&(i=new mt(i)),"leading"===t?this.leading&&this.leading(i):"string"==typeof n?this.node.setAttributeNS(n,t,i.toString()):this.node.setAttribute(t,i.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ut(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),S(bt,"Dom");class Mt extends bt{constructor(t,i){super(t,i),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,i){return this.cx(t).cy(i)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,i){return this.dx(t).dy(i)}dx(t=0){return this.x(new yt(t).plus(this.x()))}dy(t=0){return this.y(new yt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,i){return this.x(t).y(i)}parents(t=this.root()){const i="string"==typeof t;i||(t=j(t));const n=new ht;let s=this;for(;(s=s.parent())&&s.node!==v.document&&"#document-fragment"!==s.nodeName&&(n.push(s),i||s.node!==t.node)&&(!i||!s.matches(t));)if(s.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const i=(t+"").match(Z);return i?j(i[1]):null}root(){const t=this.parent(M[k]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,i){const n=d(this,t,i);return this.width(new yt(n.width)).height(new yt(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return g(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}V(Mt,{bbox:function(){const t=rt(this,(t=>t.getBBox()),(t=>{try{const i=t.clone().addTo(nt().svg).show(),n=i.node.getBBox();return i.remove(),n}catch(i){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${i.toString()}`)}}));return new et(t)},rbox:function(t){const i=rt(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new et(i);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,i){const n=this.bbox();return t>n.x&&i>n.y&&t<n.x+n.width&&i<n.y+n.height},point:function(t,i){return new K(t,i).transformO(this.screenCTM().inverseO())},ctm:function(){return new it(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),i=t.node.getScreenCTM();return t.remove(),new it(i)}return new it(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new it}}}),S(Mt,"Element");const kt={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,i){return"color"===i?t:t+"-"+i}};["fill","stroke"].forEach((function(t){const i={};let n;i[t]=function(i){if(void 0===i)return this.attr(t);if("string"==typeof i||i instanceof W||W.isRgb(i)||i instanceof Mt)this.attr(t,i);else for(n=kt[t].length-1;n>=0;n--)null!=i[kt[t][n]]&&this.attr(kt.prefix(t,kt[t][n]),i[kt[t][n]]);return this},o(["Element","Runner"],i)})),o(["Element","Runner"],{matrix:function(t,i,n,s,e,r){return null==t?new it(this):this.attr("transform",new it(t,i,n,s,e,r))},rotate:function(t,i,n){return this.transform({rotate:t,ox:i,oy:n},!0)},skew:function(t,i,n,s){return this.transform(1===arguments.length||3===arguments.length?{skew:t,ox:i,oy:n}:{skew:[t,i],ox:n,oy:s},!0)},shear:function(t,i,n){return this.transform({shear:t,ox:i,oy:n},!0)},scale:function(t,i,n,s){return this.transform(1===arguments.length||3===arguments.length?{scale:t,ox:i,oy:n}:{scale:[t,i],ox:n,oy:s},!0)},translate:function(t,i){return this.transform({translate:[t,i]},!0)},relative:function(t,i){return this.transform({relative:[t,i]},!0)},flip:function(t="both",i="center"){return-1==="xybothtrue".indexOf(t)&&(i=t,t="both"),this.transform({flip:t,origin:i},!0)},opacity:function(t){return this.attr("opacity",t)}}),o("radius",{radius:function(t,i=t){return"radialGradient"===(this._element||this).type?this.attr("r",new yt(t)):this.rx(t).ry(i)}}),o("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new K(this.node.getPointAtLength(t))}}),o(["Element","Runner"],{font:function(t,i){if("object"==typeof t){for(i in t)this.font(i,t[i]);return this}return"leading"===t?this.leading(i):this.attr("anchor"===t?"text-anchor":"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?"font-"+t:t,i)}}),o("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,i){return t[i]=function(t){return null===t?this.off(i):this.on(i,t),this},t}),{})),o("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split($).slice(0,-1).map((function(t){const i=t.trim().split("(");return[i[0],i[1].split(X).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,i){return"matrix"===i[0]?t.lmultiply(it.fromArray(i[1])):t[i[0]].apply(t,i[1])}),new it)},toParent:function(t,i){if(this===t)return this;if(C(this.node))return this.addTo(t,i);const n=this.screenCTM(),s=t.screenCTM().inverse();return this.addTo(t,i).untransform().transform(s.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,i){if(null==t||"string"==typeof t){const i=new it(this).decompose();return null==t?i:i[t]}it.isMatrixLike(t)||(t={...t,origin:w(t,this)});const n=new it(!0===i?this:i||!1).transform(t);return this.attr("transform",n)}});class _t extends Mt{flatten(){return this.each((function(){if(this instanceof _t)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),i=t.index(this)){return i=-1===i?t.children().length:i,this.each((function(n,s){return s[s.length-n-1].toParent(t,i)})),this.remove()}}S(_t,"Container");class jt extends _t{constructor(t,i=t){super(A("defs",t),i)}flatten(){return this}ungroup(){return this}}S(jt,"Defs");class At extends Mt{}function Ot(t){return this.attr("rx",t)}function Lt(t){return this.attr("ry",t)}function St(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Et(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Tt(t){return this.attr("cx",t)}function Ht(t){return this.attr("cy",t)}function Vt(t){return null==t?2*this.rx():this.rx(new yt(t).divide(2))}function Dt(t){return null==t?2*this.ry():this.ry(new yt(t).divide(2))}S(At,"Shape");var Bt={__proto__:null,cx:Tt,cy:Ht,height:Dt,rx:Ot,ry:Lt,width:Vt,x:St,y:Et};class zt extends At{constructor(t,i=t){super(A("ellipse",t),i)}size(t,i){const n=d(this,t,i);return this.rx(new yt(n.width).divide(2)).ry(new yt(n.height).divide(2))}}V(zt,Bt),o("Container",{ellipse:D((function(t=0,i=t){return this.put(new zt).size(t,i).move(0,0)}))}),S(zt,"Ellipse");class Ft extends bt{constructor(t=v.document.createDocumentFragment()){super(t)}xml(t,i,n){if("boolean"==typeof t&&(n=i,i=t,t=null),null==t||"function"==typeof t){const t=new bt(_("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}function Zt(t,i){return this.attr("radialGradient"===(this._element||this).type?{fx:new yt(t),fy:new yt(i)}:{x1:new yt(t),y1:new yt(i)})}function $t(t,i){return this.attr("radialGradient"===(this._element||this).type?{cx:new yt(t),cy:new yt(i)}:{x2:new yt(t),y2:new yt(i)})}S(Ft,"Fragment");var Nt={__proto__:null,from:Zt,to:$t};class Pt extends _t{constructor(t,i){super(A(t+"Gradient","string"==typeof t?null:t),i)}attr(t,i,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,i,n)}bbox(){return new et}targets(){return ut("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}V(Pt,Nt),o({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:D((function(t,i){return this.put(new Pt(t)).update(i)}))}}),S(Pt,"Gradient");class It extends _t{constructor(t,i=t){super(A("pattern",t),i)}attr(t,i,n){return"transform"===t&&(t="patternTransform"),super.attr(t,i,n)}bbox(){return new et}targets(){return ut("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}o({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:D((function(t,i,n){return this.put(new It).update(n).attr({x:0,y:0,width:t,height:i,patternUnits:"userSpaceOnUse"})}))}}),S(It,"Pattern");class Rt extends At{constructor(t,i=t){super(A("image",t),i)}load(t,i){if(!t)return this;const n=new v.window.Image;return dt(n,"load",(function(t){const s=this.parent(It);0===this.width()&&0===this.height()&&this.size(n.width,n.height),s instanceof It&&0===s.width()&&0===s.height()&&s.size(this.width(),this.height()),"function"==typeof i&&i.call(this,t)}),this),dt(n,"load error",(function(){wt(n)})),this.attr("href",n.src=t,x)}}vt.push((function(t,i,n){return"fill"!==t&&"stroke"!==t||Y.test(i)&&(i=n.root().defs().image(i)),i instanceof Rt&&(i=n.root().defs().pattern(0,0,(t=>{t.add(i)}))),i})),o({Container:{image:D((function(t,i){return this.put(new Rt).size(0,0).load(t,i)}))}}),S(Rt,"Image");class Gt extends mt{bbox(){let t=-1/0,i=-1/0,n=1/0,s=1/0;return this.forEach((function(e){t=Math.max(e[0],t),i=Math.max(e[1],i),n=Math.min(e[0],n),s=Math.min(e[1],s)})),new et(n,s,t-n,i-s)}move(t,i){const n=this.bbox();if(t-=n.x,i-=n.y,!isNaN(t)&&!isNaN(i))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+i];return this}parse(t=[0,0]){const i=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(X).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,s=t.length;n<s;n+=2)i.push([t[n],t[n+1]]);return i}size(t,i){let n;const s=this.bbox();for(n=this.length-1;n>=0;n--)s.width&&(this[n][0]=(this[n][0]-s.x)*t/s.width+s.x),s.height&&(this[n][1]=(this[n][1]-s.y)*i/s.height+s.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let i=0,n=this.length;i<n;i++)t.push(this[i].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){it.isMatrixLike(t)||(t=new it(t));for(let i=this.length;i--;){const[n,s]=this[i];this[i][0]=t.a*n+t.c*s+t.e,this[i][1]=t.b*n+t.d*s+t.f}return this}}var Yt={__proto__:null,MorphArray:Gt,height:function(t){const i=this.bbox();return null==t?i.height:this.size(i.width,t)},width:function(t){const i=this.bbox();return null==t?i.width:this.size(t,i.height)},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}};class Xt extends At{constructor(t,i=t){super(A("line",t),i)}array(){return new Gt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,i){return this.attr(this.array().move(t,i).toLine())}plot(t,i,n,s){return null==t?this.array():(t=void 0!==i?{x1:t,y1:i,x2:n,y2:s}:new Gt(t).toLine(),this.attr(t))}size(t,i){const n=d(this,t,i);return this.attr(this.array().size(n.width,n.height).toLine())}}V(Xt,Yt),o({Container:{line:D((function(...t){return Xt.prototype.plot.apply(this.put(new Xt),null!=t[0]?t:[0,0,0,0])}))}}),S(Xt,"Line");class Qt extends _t{constructor(t,i=t){super(A("marker",t),i)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,i){return this.attr("refX",t).attr("refY",i)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function qt(t,i){return function(n){return null==n?this[t]:(this[t]=n,i&&i.call(this),this)}}o({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:D((function(t,i,n){return this.put(new Qt).size(t,i).ref(t/2,i/2).viewbox(0,0,t,i).attr("orient","auto").update(n)}))},marker:{marker(t,i,n,s){let e=["marker"];return"all"!==t&&e.push(t),e=e.join("-"),t=arguments[1]instanceof Qt?arguments[1]:this.defs().marker(i,n,s),this.attr(e,t)}}}),S(Qt,"Marker");const Jt={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,i,n,s){return function(e){return e<0?t>0?i/t*e:n>0?s/n*e:0:e>1?n<1?(1-s)/(1-n)*e+(s-n)/(1-n):t<1?(1-i)/(1-t)*e+(i-t)/(1-t):1:3*e*(1-e)**2*i+3*e**2*(1-e)*s+e**3}},steps:function(t,i="end"){i=i.split("-").reverse()[0];let n=t;return"none"===i?--n:"both"===i&&++n,(s,e=!1)=>{let r=Math.floor(s*t);const h=s*r%1==0;return"start"!==i&&"both"!==i||++r,e&&h&&--r,s>=0&&r<0&&(r=0),s<=1&&r>n&&(r=n),r/n}}};class Ut{done(){return!1}}class Wt extends Ut{constructor(t=">"){super(),this.ease=Jt[t]||t}step(t,i,n){return"number"!=typeof t?n<1?t:i:t+(i-t)*this.ease(n)}}class Kt extends Ut{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,i,n,s){return this.stepper(t,i,n,s)}}function ti(){const t=(this._duration||500)/1e3,i=Math.PI,n=Math.log((this._overshoot||0)/100+1e-10),s=-n/Math.sqrt(i*i+n*n),e=3.9/(s*t);this.d=2*s*e,this.k=e*e}V(class extends Kt{constructor(t=500,i=0){super(),this.duration(t).overshoot(i)}step(t,i,n,s){if("string"==typeof t)return t;if(s.done=n===1/0,n===1/0)return i;if(0===n)return t;n>100&&(n=16);const e=s.velocity||0,r=-this.d*e-this.k*(t-i),h=t+e*(n/=1e3)+r*n*n/2;return s.velocity=e+r*n,s.done=Math.abs(i-h)+Math.abs(e)<.002,s.done?i:h}},{duration:qt("_duration",ti),overshoot:qt("_overshoot",ti)}),V(class extends Kt{constructor(t=.1,i=.01,n=0,s=1e3){super(),this.p(t).i(i).d(n).windup(s)}step(t,i,n,s){if("string"==typeof t)return t;if(s.done=n===1/0,n===1/0)return i;if(0===n)return t;const e=i-t;let r=(s.integral||0)+e*n;const h=(e-(s.error||0))/n,o=this._windup;return!1!==o&&(r=Math.max(-o,Math.min(r,o))),s.error=e,s.integral=r,s.done=Math.abs(e)<.001,s.done?i:t+(this.P*e+this.I*r+this.D*h)}},{windup:qt("_windup"),p:qt("P"),i:qt("I"),d:qt("D")});const ii={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},ni={M:function(t,i,n){return i.x=n.x=t[0],i.y=n.y=t[1],["M",i.x,i.y]},L:function(t,i){return i.x=t[0],i.y=t[1],["L",t[0],t[1]]},H:function(t,i){return i.x=t[0],["H",t[0]]},V:function(t,i){return i.y=t[0],["V",t[0]]},C:function(t,i){return i.x=t[4],i.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,i){return i.x=t[2],i.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,i){return i.x=t[2],i.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,i){return i.x=t[0],i.y=t[1],["T",t[0],t[1]]},Z:function(t,i,n){return i.x=n.x,i.y=n.y,["Z"]},A:function(t,i){return i.x=t[5],i.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},si="mlhvqtcsaz".split("");for(let t=0,i=si.length;t<i;++t)ni[si[t]]=function(t){return function(i,n,s){if("H"===t)i[0]=i[0]+n.x;else if("V"===t)i[0]=i[0]+n.y;else if("A"===t)i[5]=i[5]+n.x,i[6]=i[6]+n.y;else for(let t=0,s=i.length;t<s;++t)i[t]=i[t]+(t%2?n.y:n.x);return ni[t](i,n,s)}}(si[t].toUpperCase());function ei(t){return t.segment.length&&t.segment.length-1===ii[t.segment[0].toUpperCase()]}function ri(t,i){t.inNumber&&hi(t,!1);const n=Q.test(i);if(n)t.segment=[i];else{const i=t.lastCommand,n=i.toLowerCase();t.segment=["m"===n?i===n?"l":"L":i]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function hi(t,i){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=i,t.number="",t.pointSeen=!1,t.hasExponent=!1,ei(t)&&oi(t)}function oi(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){return ni[t.segment[0]](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ui(t){if(!t.segment.length)return!1;const i="A"===t.segment[0].toUpperCase(),n=t.segment.length;return i&&(4===n||5===n)}function ci(t){return"E"===t.lastToken.toUpperCase()}const li=new Set([" ",",","\t","\n","\r","\f"]);class ai extends mt{bbox(){return nt().path.setAttribute("d",this.toString()),new et(nt.nodes.path.getBBox())}move(t,i){const n=this.bbox();if(t-=n.x,i-=n.y,!isNaN(t)&&!isNaN(i))for(let n,s=this.length-1;s>=0;s--)n=this[s][0],"M"===n||"L"===n||"T"===n?(this[s][1]+=t,this[s][2]+=i):"H"===n?this[s][1]+=t:"V"===n?this[s][1]+=i:"C"===n||"S"===n||"Q"===n?(this[s][1]+=t,this[s][2]+=i,this[s][3]+=t,this[s][4]+=i,"C"===n&&(this[s][5]+=t,this[s][6]+=i)):"A"===n&&(this[s][6]+=t,this[s][7]+=i);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,i=!0){let n=0,s="";const e={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:i,p0:new K,p:new K};for(;e.lastToken=s,s=t.charAt(n++);)if(e.inSegment||!ri(e,s))if("."!==s)if(isNaN(parseInt(s)))if(li.has(s))e.inNumber&&hi(e,!1);else if("-"!==s&&"+"!==s)if("E"!==s.toUpperCase()){if(Q.test(s)){if(e.inNumber)hi(e,!1);else{if(!ei(e))throw new Error("parser Error");oi(e)}--n}}else e.number+=s,e.hasExponent=!0;else{if(e.inNumber&&!ci(e)){hi(e,!1),--n;continue}e.number+=s,e.inNumber=!0}else{if("0"===e.number||ui(e)){e.inNumber=!0,e.number=s,hi(e,!0);continue}e.inNumber=!0,e.number+=s}else{if(e.pointSeen||e.hasExponent){hi(e,!1),--n;continue}e.inNumber=!0,e.pointSeen=!0,e.number+=s}return e.inNumber&&hi(e,!1),e.inSegment&&ei(e)&&oi(e),e.segments}(t)}size(t,i){const n=this.bbox();let s,e;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,s=this.length-1;s>=0;s--)e=this[s][0],"M"===e||"L"===e||"T"===e?(this[s][1]=(this[s][1]-n.x)*t/n.width+n.x,this[s][2]=(this[s][2]-n.y)*i/n.height+n.y):"H"===e?this[s][1]=(this[s][1]-n.x)*t/n.width+n.x:"V"===e?this[s][1]=(this[s][1]-n.y)*i/n.height+n.y:"C"===e||"S"===e||"Q"===e?(this[s][1]=(this[s][1]-n.x)*t/n.width+n.x,this[s][2]=(this[s][2]-n.y)*i/n.height+n.y,this[s][3]=(this[s][3]-n.x)*t/n.width+n.x,this[s][4]=(this[s][4]-n.y)*i/n.height+n.y,"C"===e&&(this[s][5]=(this[s][5]-n.x)*t/n.width+n.x,this[s][6]=(this[s][6]-n.y)*i/n.height+n.y)):"A"===e&&(this[s][1]=this[s][1]*t/n.width,this[s][2]=this[s][2]*i/n.height,this[s][6]=(this[s][6]-n.x)*t/n.width+n.x,this[s][7]=(this[s][7]-n.y)*i/n.height+n.y);return this}toString(){return function(t){let i="";for(let n=0,s=t.length;n<s;n++)i+=t[n][0],null!=t[n][1]&&(i+=t[n][1],null!=t[n][2]&&(i+=" ",i+=t[n][2],null!=t[n][3]&&(i+=" ",i+=t[n][3],i+=" ",i+=t[n][4],null!=t[n][5]&&(i+=" ",i+=t[n][5],i+=" ",i+=t[n][6],null!=t[n][7]&&(i+=" ",i+=t[n][7])))));return i+" "}(this)}}const fi=t=>{const i=typeof t;return"number"===i?yt:"string"===i?W.isColor(t)?W:X.test(t)?Q.test(t)?ai:mt:B.test(t)?yt:wi:mi.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?mt:"object"===i?gi:wi};class di{constructor(t){this._stepper=t||new Wt("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,i){return t&&i}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(fi(t));let i=new this._type(t);return this._type===W&&(i=this._to?i[this._to[4]]():this._from?i[this._from[4]]():i),this._type===gi&&(i=this._to?i.align(this._to):this._from?i.align(this._from):i),i=i.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(i.length)).map(Object).map((function(t){return t.done=!0,t})),i}}class wi{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class pi{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,pi.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}pi.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Ci=(t,i)=>t[0]<i[0]?-1:t[0]>i[0]?1:0;class gi{constructor(...t){this.init(...t)}align(t){const i=this.values;for(let n=0,s=i.length;n<s;++n){if(i[n+1]===t[n+1]){if(i[n+1]===W&&t[n+7]!==i[n+7]){const i=t[n+7],s=new W(this.values.splice(n+3,5))[i]().toArray();this.values.splice(n+3,0,...s)}n+=i[n+2]+2;continue}if(!t[n+1])return this;const s=(new t[n+1]).toArray();i.splice(n,i[n+2]+3,t[n],t[n+1],t[n+2],...s),n+=i[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const i=[];for(const n in t){const s=fi(t[n]),e=new s(t[n]).toArray();i.push([n,s,e.length,...e])}return i.sort(Ci),this.values=i.reduce(((t,i)=>t.concat(i)),[]),this}toArray(){return this.values}valueOf(){const t={},i=this.values;for(;i.length;){const n=i.shift(),s=i.shift(),e=i.shift(),r=i.splice(0,e);t[n]=new s(r)}return t}}const mi=[wi,pi,gi];class yi extends At{constructor(t,i=t){super(A("path",t),i)}array(){return this._array||(this._array=new ai(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,i){return this.attr("d",this.array().move(t,i))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new ai(t))}size(t,i){const n=d(this,t,i);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}yi.prototype.MorphArray=ai,o({Container:{path:D((function(t){return this.put(new yi).plot(t||new ai)}))}}),S(yi,"Path");var xi={__proto__:null,array:function(){return this._array||(this._array=new Gt(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,i){return this.attr("points",this.array().move(t,i))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Gt(t))},size:function(t,i){const n=d(this,t,i);return this.attr("points",this.array().size(n.width,n.height))}};class vi extends At{constructor(t,i=t){super(A("polygon",t),i)}}o({Container:{polygon:D((function(t){return this.put(new vi).plot(t||new Gt)}))}}),V(vi,Yt),V(vi,xi),S(vi,"Polygon");class bi extends At{constructor(t,i=t){super(A("polyline",t),i)}}o({Container:{polyline:D((function(t){return this.put(new bi).plot(t||new Gt)}))}}),V(bi,Yt),V(bi,xi),S(bi,"Polyline");class Mi extends At{constructor(t,i=t){super(A("rect",t),i)}}V(Mi,{rx:Ot,ry:Lt}),o({Container:{rect:D((function(t,i){return this.put(new Mi).size(t,i)}))}}),S(Mi,"Rect");class ki{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const i=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(i.prev=this._last,this._last.next=i,this._last=i):(this._last=i,this._first=i),i}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const _i={nextDraw:null,frames:new ki,timeouts:new ki,immediates:new ki,timer:()=>v.window.performance||v.window.Date,transforms:[],frame(t){const i=_i.frames.push({run:t});return null===_i.nextDraw&&(_i.nextDraw=v.window.requestAnimationFrame(_i._draw)),i},timeout(t,i){i=i||0;const n=_i.timer().now()+i,s=_i.timeouts.push({run:t,time:n});return null===_i.nextDraw&&(_i.nextDraw=v.window.requestAnimationFrame(_i._draw)),s},immediate(t){const i=_i.immediates.push(t);return null===_i.nextDraw&&(_i.nextDraw=v.window.requestAnimationFrame(_i._draw)),i},cancelFrame(t){null!=t&&_i.frames.remove(t)},clearTimeout(t){null!=t&&_i.timeouts.remove(t)},cancelImmediate(t){null!=t&&_i.immediates.remove(t)},_draw(t){let i=null;const n=_i.timeouts.last();for(;(i=_i.timeouts.shift())&&(t>=i.time?i.run():_i.timeouts.push(i),i!==n););let s=null;const e=_i.frames.last();for(;s!==e&&(s=_i.frames.shift());)s.run(t);let r=null;for(;r=_i.immediates.shift();)r();_i.nextDraw=_i.timeouts.first()||_i.frames.first()?v.window.requestAnimationFrame(_i._draw):null}},ji=function(t){const i=t.start,n=t.runner.duration();return{start:i,duration:n,end:i+n,runner:t.runner}},Ai=function(){const t=v.window;return(t.performance||t.Date).now()};class Oi extends pt{constructor(t=Ai){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),i=t?t.runner.duration():0;return(t?t.start:this._time)+i}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const i=this.speed();if(null==t)return this.speed(-i);const n=Math.abs(i);return this.speed(t?-n:n)}schedule(t,i,n){if(null==t)return this._runners.map(ji);let s=0;const e=this.getEndTime();if(i=i||0,null==n||"last"===n||"after"===n)s=e;else if("absolute"===n||"start"===n)s=i,i=0;else if("now"===n)s=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(s=n.start+i,i=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();s=t?t.start:this._time}}t.unschedule(),t.timeline(this);const r=t.persist(),h={persist:null===r?this._persist:r,start:s+i,runner:t};return this._lastRunnerId=t.id,this._runners.push(h),this._runners.sort(((t,i)=>t.start-i.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const i=this._runnerIds.indexOf(t.id);return i<0||(this._runners.splice(i,1),this._runnerIds.splice(i,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return _i.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=_i.frame(this._step)),this)}_stepFn(t=!1){const i=this._timeSource();let n=i-this._lastSourceTime;t&&(n=0);const s=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=i,t||(this._time+=s,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const i=this._runners[t];this._time-i.start<=0&&i.runner.reset()}let e=!1;for(let t=0,i=this._runners.length;t<i;t++){const n=this._runners[t],r=n.runner;let h=s;const o=this._time-n.start;o<=0?e=!0:(o<h&&(h=o),r.active()&&(r.step(h).done?!0!==n.persist&&r.duration()-r.time()+this._time+n.persist<this._time&&(r.unschedule(),--t,--i):e=!0))}return e&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}o({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Oi,this._timeline):(this._timeline=t,this)}}});class Li extends pt{constructor(t){super(),this.id=Li.id++,t="function"==typeof(t=null==t?400:t)?new Kt(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof Kt,this._stepper=this._isDeclarative?t:new Wt,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,i,n){let s=1,e=!1,r=0;return i=i??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof Ut||(i=t.delay??i,n=t.when??n,e=t.swing||e,s=t.times??s,r=t.wait??r,t=t.duration??400),{duration:t,delay:i,swing:e,times:s,wait:r,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,i,n){const s=Li.sanitise(t,i,n),e=new Li(s.duration);return this._timeline&&e.timeline(this._timeline),this._element&&e.element(this._element),e.loop(s).schedule(s.delay,s.when)}clearTransform(){return this.transforms=new it,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Wt(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,i,n){return"object"==typeof t&&(i=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=i||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const i=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/i);return Math.min(t+(this._time-t*i)/this._duration,this._times)}const n=Math.floor(t);return this.time(i*n+this._duration*(t%1))}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const i=this._time,n=this._duration,s=this._wait,e=this._swing,r=this._reverse;let h;if(null==t){const t=function(t){const i=e*Math.floor(t%(2*(s+n))/(s+n)),h=i&&!r||!i&&r,o=Math.pow(-1,h)*(t%(s+n))/n+h;return Math.max(Math.min(o,1),0)},o=this._times*(s+n)-s;return h=i<=0?Math.round(t(1e-5)):i<o?t(i):Math.round(t(o-1e-5)),h}const o=Math.floor(this.loops()),u=e&&o%2==0;return h=o+(u&&!r||r&&u?t:1-t),this.loops(h)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,i,n,s){return this._queue.push({initialiser:t||Ct,runner:i||Ct,retarget:n,isTransform:s,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,i,n){if(t instanceof Oi||(n=i,i=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,i,n),this}step(t){if(!this.enabled)return this;this._time+=t=null==t?16:t;const i=this.position(),n=this._lastPosition!==i&&this._time>=0;this._lastPosition=i;const s=this.duration(),e=this._lastTime<=0&&this._time>0,r=this._lastTime<s&&this._time>=s;this._lastTime=this._time,e&&this.fire("start",this);const h=this._isDeclarative;this.done=!h&&!r&&this._time>=s,this._reseted=!1;let o=!1;return(n||h)&&(this._initialise(n),this.transforms=new it,o=this._run(h?t:i),this.fire("step",this)),this.done=this.done||o&&h,r&&this.fire("finished",this),this}time(t){return null==t?this._time:(this.step(t-this._time),this)}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let i=0,n=this._queue.length;i<n;++i){const n=this._queue[i],s=this._isDeclarative||!n.initialised&&t;t=!n.finished,s&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,i){if(this._history[t]={morpher:i,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let i=!0;for(let n=0,s=this._queue.length;n<s;++n){const s=this._queue[n],e=s.runner.call(this,t);s.finished=s.finished||!0===e,i=i&&s.finished}return i}_tryRetarget(t,i,n){if(this._history[t]){if(!this._history[t].caller.initialised){const i=this._queue.indexOf(this._history[t].caller);return this._queue.splice(i,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,i,n):this._history[t].morpher.to(i),this._history[t].caller.finished=!1;const s=this.timeline();return s&&s.play(),!0}return!1}}Li.id=0;class Si{constructor(t=new it,i=-1,n=!0){this.transforms=t,this.id=i,this.done=n}clearTransformsFromQueue(){}}V([Li,Si],{mergeWith(t){return new Si(t.transforms.lmultiply(this.transforms),t.id)}});const Ei=(t,i)=>t.lmultiplyO(i),Ti=t=>t.transforms;function Hi(){const t=this._transformationRunners.runners.map(Ti).reduce(Ei,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Vi{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const i=t.id+1;return this.runners.push(t),this.ids.push(i),this}clearBefore(t){const i=this.ids.indexOf(t+1)||1;return this.ids.splice(0,i,0),this.runners.splice(0,i,new Si).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,i){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,i),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let i=0;i<this.runners.length;++i){const n=this.runners[i];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const s=n.mergeWith(t);this.edit(t.id,s),t=s,--i}}return this}remove(t){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1),this.runners.splice(i,1),this}}o({Element:{animate(t,i,n){const s=Li.sanitise(t,i,n),e=this.timeline();return new Li(s.duration).loop(s).element(this).timeline(e.play()).schedule(s.delay,s.when)},delay(t,i){return this.animate(0,t,i)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((i=>i.id<=t.id)).map(Ti).reduce(Ei,new it)},_addRunner(t){this._transformationRunners.add(t),_i.cancelImmediate(this._frameId),this._frameId=_i.immediate(Hi.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Vi).add(new Si(new it(this))))}}}),V(Li,{attr(t,i){return this.styleAttr("attr",t,i)},css(t,i){return this.styleAttr("css",t,i)},styleAttr(t,i,n){if("string"==typeof i)return this.styleAttr(t,{[i]:n});let s=i;if(this._tryRetarget(t,s))return this;let e=new di(this._stepper).to(s),r=Object.keys(s);return this.queue((function(){e=e.from(this.element()[t](r))}),(function(i){return this.element()[t](e.at(i).valueOf()),e.done()}),(function(i){const n=Object.keys(i),h=(o=r,n.filter((t=>!o.includes(t))));var o;if(h.length){const i=this.element()[t](h),n=new gi(e.from()).valueOf();Object.assign(n,i),e.from(n)}const u=new gi(e.to()).valueOf();Object.assign(u,i),e.to(u),r=n,s=i})),this._rememberMorpher(t,e),this},zoom(t,i){if(this._tryRetarget("zoom",t,i))return this;let n=new di(this._stepper).to(new yt(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),i),n.done()}),(function(t,s){i=s,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,i,n){if(i=t.relative||i,this._isDeclarative&&!i&&this._tryRetarget("transform",t))return this;const s=it.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!s;const e=new di(this._stepper).type(n?pi:it);let r,h,o,u,c;return this.queue((function(){h=h||this.element(),r=r||w(t,h),c=new it(i?void 0:h),h._addRunner(this),i||h._clearTransformRunnersBefore(this)}),(function(l){i||this.clearTransform();const{x:a,y:f}=new K(r).transform(h._currentTransform(this));let d=new it({...t,origin:[a,f]}),w=this._isDeclarative&&o?o:c;if(n){d=d.decompose(a,f),w=w.decompose(a,f);const t=d.rotate,i=w.rotate,n=[t-360,t,t+360],s=n.map((t=>Math.abs(t-i))),e=Math.min(...s),r=s.indexOf(e);d.rotate=n[r]}i&&(s||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(w.rotate=u)),e.from(w),e.to(d);const p=e.at(l);return u=p.rotate,o=new it(p),this.addTransform(o),h._addRunner(this),e.done()}),(function(i){(i.origin||"center").toString()!==(t.origin||"center").toString()&&(r=w(i,h)),t={...i,origin:r}}),!0),this._isDeclarative&&this._rememberMorpher("transform",e),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,i){return this.dx(t).dy(i)},_queueNumberDelta(t,i){if(i=new yt(i),this._tryRetarget(t,i))return this;const n=new di(this._stepper).to(i);let s=null;return this.queue((function(){s=this.element()[t](),n.from(s),n.to(s+i)}),(function(i){return this.element()[t](n.at(i)),n.done()}),(function(t){n.to(s+new yt(t))})),this._rememberMorpher(t,n),this},_queueObject(t,i){if(this._tryRetarget(t,i))return this;const n=new di(this._stepper).to(i);return this.queue((function(){n.from(this.element()[t]())}),(function(i){return this.element()[t](n.at(i)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,i){return this._queueObject(t,new yt(i))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,i){return this.x(t).y(i)},amove(t,i){return this.ax(t).ay(i)},center(t,i){return this.cx(t).cy(i)},size(t,i){let n;return t&&i||(n=this._element.bbox()),t||(t=n.width/n.height*i),i||(i=n.height/n.width*t),this.width(t).height(i)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,i,n,s){if(4===arguments.length)return this.plot([t,i,n,s]);if(this._tryRetarget("plot",t))return this;const e=new di(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){e.from(this._element.array())}),(function(t){return this._element.plot(e.at(t)),e.done()})),this._rememberMorpher("plot",e),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,i,n,s){return this._queueObject("viewbox",new et(t,i,n,s))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),V(Li,{rx:Ot,ry:Lt,from:Zt,to:$t}),S(Li,"Runner");class Di extends _t{constructor(t,i=t){super(A("svg",t),i),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new jt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof v.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:m,version:"1.1"}).attr("xmlns:xlink",x,y):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,y).attr("xmlns:svgjs",null,y)}root(){return this.isRoot()?this:super.root()}}o({Container:{nested:D((function(){return this.put(new Di)}))}}),S(Di,"Svg",!0);class Bi extends _t{constructor(t,i=t){super(A("symbol",t),i)}}o({Container:{symbol:D((function(){return this.put(new Bi)}))}}),S(Bi,"Symbol");var zi={__proto__:null,amove:function(t,i){return this.ax(t).ay(i)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},build:function(t){return this._build=!!t,this},center:function(t,i,n=this.bbox()){return this.cx(t,n).cy(i,n)},cx:function(t,i=this.bbox()){return null==t?i.cx:this.attr("x",this.attr("x")+t-i.cx)},cy:function(t,i=this.bbox()){return null==t?i.cy:this.attr("y",this.attr("y")+t-i.cy)},length:function(){return this.node.getComputedTextLength()},move:function(t,i,n=this.bbox()){return this.x(t,n).y(i,n)},plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(v.document.createTextNode(t)),this},x:function(t,i=this.bbox()){return null==t?i.x:this.attr("x",this.attr("x")+t-i.x)},y:function(t,i=this.bbox()){return null==t?i.y:this.attr("y",this.attr("y")+t-i.y)}};class Fi extends At{constructor(t,i=t){super(A("text",t),i),this.dom.leading=this.dom.leading??new yt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new yt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let i=0;const n=this.dom.leading;this.each((function(s){if(C(this.node))return;const e=v.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=n*new yt(e);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?i+=r:(this.attr("dy",s?r+i:0),i=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new yt(t.leading||1.3),this}writeDataToDom(){return g(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const i=this.node.childNodes;let n=0;t="";for(let s=0,e=i.length;s<e;++s)"textPath"===i[s].nodeName||C(i[s])?0===s&&(n=s+1):(s!==n&&3!==i[s].nodeType&&!0===O(i[s]).dom.newLined&&(t+="\n"),t+=i[s].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let i=0,n=(t=(t+"").split("\n")).length;i<n;i++)this.newLine(t[i]);return this.build(!1).rebuild()}}V(Fi,zi),o({Container:{text:D((function(t=""){return this.put(new Fi).text(t)})),plain:D((function(t=""){return this.put(new Fi).plain(t)}))}}),S(Fi,"Text");class Zi extends At{constructor(t,i=t){super(A("tspan",t),i),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Fi))return this;const i=t.index(this),n=v.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=t.dom.leading*new yt(n);return this.dy(i?s:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}V(Zi,zi),o({Tspan:{tspan:D((function(t=""){const i=new Zi;return this._build||this.clear(),this.put(i).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),S(Zi,"Tspan");class $i extends At{constructor(t,i=t){super(A("circle",t),i)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new yt(t).divide(2))}}V($i,{x:St,y:Et,cx:Tt,cy:Ht,width:Vt,height:Dt}),o({Container:{circle:D((function(t=0){return this.put(new $i).size(t).move(0,0)}))}}),S($i,"Circle");class Ni extends _t{constructor(t,i=t){super(A("clipPath",t),i)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ut("svg [clip-path*="+this.id()+"]")}}o({Container:{clip:D((function(){return this.defs().put(new Ni)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const i=t instanceof Ni?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+i.id()+")")},unclip(){return this.attr("clip-path",null)}}}),S(Ni,"ClipPath");class Pi extends Mt{constructor(t,i=t){super(A("foreignObject",t),i)}}o({Container:{foreignObject:D((function(t,i){return this.put(new Pi).size(t,i)}))}}),S(Pi,"ForeignObject");var Ii={__proto__:null,dmove:function(t,i){return this.children().forEach((n=>{let s;try{s=n.node instanceof v.window.SVGSVGElement?new et(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const e=new it(n),r=e.translate(t,i).transform(e.inverse()),h=new K(s.x,s.y).transform(r);n.move(h.x,h.y)})),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,i=this.bbox()){return null==t?i.height:this.size(i.width,t,i)},move:function(t=0,i=0,n=this.bbox()){return this.dmove(t-n.x,i-n.y)},size:function(t,i,n=this.bbox()){const s=d(this,t,i,n),e=s.width/n.width,r=s.height/n.height;return this.children().forEach((t=>{const i=new K(n).transform(new it(t).inverse());t.scale(e,r,i.x,i.y)})),this},width:function(t,i=this.bbox()){return null==t?i.width:this.size(t,i.height,i)},x:function(t,i=this.bbox()){return null==t?i.x:this.move(t,i.y,i)},y:function(t,i=this.bbox()){return null==t?i.y:this.move(i.x,t,i)}};class Ri extends _t{constructor(t,i=t){super(A("g",t),i)}}V(Ri,Ii),o({Container:{group:D((function(){return this.put(new Ri)}))}}),S(Ri,"G");class Gi extends _t{constructor(t,i=t){super(A("a",t),i)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,x)}}V(Gi,Ii),o({Container:{link:D((function(t){return this.put(new Gi).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const i=t.parent();if(!i)return this.remove();const n=i.index(t);return i.add(this,n),t.remove(),this},linkTo(t){let i=this.linker();return i||(i=new Gi,this.wrap(i)),"function"==typeof t?t.call(i,i):i.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),S(Gi,"A");class Yi extends _t{constructor(t,i=t){super(A("mask",t),i)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ut("svg [mask*="+this.id()+"]")}}o({Container:{mask:D((function(){return this.defs().put(new Yi)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const i=t instanceof Yi?t:this.parent().mask().add(t);return this.attr("mask","url(#"+i.id()+")")},unmask(){return this.attr("mask",null)}}}),S(Yi,"Mask");class Xi extends Mt{constructor(t,i=t){super(A("stop",t),i)}update(t){return("number"==typeof t||t instanceof yt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new yt(t.offset)),this}}o({Gradient:{stop:function(t,i,n){return this.put(new Xi).update(t,i,n)}}}),S(Xi,"Stop");class Qi extends Mt{constructor(t,i=t){super(A("style",t),i)}addText(t=""){return this.node.textContent+=t,this}font(t,i,n={}){return this.rule("@font-face",{fontFamily:t,src:i,...n})}rule(t,i){return this.addText(function(t,i){if(!t)return"";if(!i)return t;let n=t+"{";for(const t in i)n+=t.replace(/([A-Z])/g,(function(t,i){return"-"+i.toLowerCase()}))+":"+i[t]+";";return n+="}",n}(t,i))}}o("Dom",{style(t,i){return this.put(new Qi).rule(t,i)},fontface(t,i,n){return this.put(new Qi).font(t,i,n)}}),S(Qi,"Style");class qi extends Fi{constructor(t,i=t){super(A("textPath",t),i)}array(){const t=this.track();return t?t.array():null}plot(t){const i=this.track();let n=null;return i&&(n=i.plot(t)),null==t?n:this}track(){return this.reference("href")}}o({Container:{textPath:D((function(t,i){return t instanceof Fi||(t=this.text(t)),t.path(i)}))},Text:{path:D((function(t,i=!0){const n=new qi;let s;if(t instanceof yi||(t=this.defs().path(t)),n.attr("href","#"+t,x),i)for(;s=this.node.firstChild;)n.node.appendChild(s);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:D((function(t){return t instanceof Fi||(t=(new Fi).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ut("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),qi.prototype.MorphArray=ai,S(qi,"TextPath");class Ji extends At{constructor(t,i=t){super(A("use",t),i)}use(t,i){return this.attr("href",(i||"")+"#"+t,x)}}o({Container:{use:D((function(t,i){return this.put(new Ji).use(t,i)}))}}),S(Ji,"Use");const Ui=j;function Wi(){let t,i={entities:[]},n=[];function s(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function e(t,i){const n=t.entity.attr("width"),s=t.entity.attr("x");switch(i){case"top":case"bottom":return s+n/2;default:return s-n/2}}function r(t,i){const n=t.entity.attr("height"),s=t.entity.attr("y");switch(i){case"top":default:return s;case"bottom":return s+n}}function h(){t.entities.forEach((t=>t.remove())),t.entities=[],n=[],i.labels||(i.labels=[]),i.labels=i.labels.map((t=>({id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"}))),i.entities.map((t=>{t.type=t.type?t.type:"entity","operation"===t.type&&(t.height=t.width)})),i.labels&&i.labels.length>0&&i.labels.forEach((i=>{t.labels.text(i.value).x(i.x).y(i.y)})),i.entities.forEach((i=>function(t,i){const n=t.group().attr({id:i.id});t.entities.push(n),i.background_color=i.background_color?i.background_color:"#f06",i.color=i.color?i.color:"#ffffff",i.radius=i.radius?i.radius:0,n.entity=n.rect(i.width,i.height).cx(i.width/2).cy(i.height/2).attr({fill:"#ffffff",stroke:i.color,"stroke-width":2}).radius(i.radius),i.class&&n.entity.attr("class",i.class),n.plain(i.text).cx(14).cy(i.height/2+6).attr({fill:i.color}),n.move(i.x,i.y)}(t,i))),n=i.lines,function(t,i){i.forEach((i=>function(t,i){let n="";const h=i.color||"#4c56cb",o=t.findOne("#"+i.from.element),u=t.findOne("#"+i.to.element),c=function(t,i,n){const h=[],o=r(i,t.from.point),u=r(n,t.to.point),c=e(i,t.from.point),l=e(n,t.to.point),a=s(t.from.point)-s(t.to.point);return 0===a&&("top"===t.from.point?o<=u?(h.push({x:c,y:o-20}),h.push({x:l,y:o-20})):(h.push({x:c,y:u-20}),h.push({x:l,y:u-20})):"bottom"===t.from.point?o<=u?(h.push({x:c,y:u+20}),h.push({x:l,y:u+20})):(h.push({x:c,y:o+20}),h.push({x:l,y:o+20})):c<=l?(h.push({x:l+20,y:o}),h.push({x:l+20,y:u})):(h.push({x:c+20,y:o}),h.push({x:c+20,y:u}))),2!==a&&-2!==a||c!==l&&(h.push({x:c,y:u+(o-u)/2}),h.push({x:l,y:u+(o-u)/2})),1!==a&&-1!==a&&3!==a&&-3!==a||("top"===t.from.point&&(o<u+20?(h.push({x:c,y:o-20}),h.push({x:l+20,y:o-20}),h.push({x:l+20,y:u})):h.push({x:c,y:u})),"bottom"===t.from.point&&(o>u-20?(h.push({x:c,y:o+20}),h.push({x:l+20,y:o+20}),h.push({x:l+20,y:u})):h.push({x:c,y:u}))),h}(i,o,u);n+=e(o,i.from.point)+","+r(o,i.from.point)+" ",c.forEach((t=>n+=t.x+","+t.y+" ")),n+=e(u,i.to.point)+","+r(u,i.to.point)+" ",i.polyline?i.polyline.plot(n):i.polyline=t.lines.polyline(n).fill("none").stroke({color:h,width:2,linecap:"round",linejoin:"round"}).attr("id",i.id)}(t,i)))}(t,n)}return{initalize:function(i,n,s){t=Ui().addTo(i).size(n,s),t.entities=[],t.lines=t.group(),t.labels=t.group()},update:function(t){i=t,h()}}}V([Di,Bi,Rt,It,Qt],u("viewbox")),V([Xt,bi,vi,yi],u("marker")),V(Fi,u("Text")),V(yi,u("Path")),V(jt,u("Defs")),V([Fi,Zi],u("Tspan")),V([Mi,zt,Pt,Li],u("radius")),V(pt,u("EventTarget")),V(bt,u("Dom")),V(Mt,u("Element")),V(At,u("Shape")),V([_t,Ft],u("Container")),V(Pt,u("Gradient")),V(Li,u("Runner")),ht.extend([...new Set(h)]),function(t=[]){mi.push(...[].concat(t))}([yt,W,et,it,mt,Gt,ai,K]),V(mi,{to(t){return(new di).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,i,n,s,e){return this.fromArray(t.map((function(t,r){return s.step(t,i[r],n,e[r],e)})))}});const Ki=class{constructor(i){t(this,i),this.recipientStatusIcons=[],this.size="normal",this.theme="light",this.status=void 0,this.envelope=void 0,this.isOpen=void 0,this.containerId=`verdocs-status-indicator-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){var t;if(this.popper=e(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]}),null===(t=this.envelope)||void 0===t?void 0:t.recipients){const t=[];this.envelope.recipients.forEach((i=>{const n=i.sequence-1;t[n]||(t[n]=[]);const s=`r-${n}-${t[n].length}`;t[n].push({...i,id:s})}));const i=Object.keys(t).length,n=40*i+40*(i+1);let e=0;Object.values(t).forEach((t=>{let i=140*t.length+40*(t.length+1);i>e&&(e=i)}));const r=[],h=[],o=[];let u=40;Object.entries(t).forEach((([i,n])=>{const c=20+(e-180*n.length)/2;n.forEach(((n,e)=>{var l;const a=s(n),f={id:n.id,text:a,icon:this.getStatusIcon(n.status),x:180*e+c,y:u,width:140,height:40,color:this.getStatusColor(n.status),radius:8};r.push(f),o.push({icon:this.getStatusIcon(n.status),x:180*e+c+108,y:u+20-13}),null===(l=t[+i-1])||void 0===l||l.forEach((t=>{const i={id:`line-${t.id}-${f.id}`,from:{element:t.id,point:"bottom"},to:{element:f.id,point:"top"},color:this.getStatusColor(n.status)};h.push(i)}))})),u+=80})),this.recipientStatusIcons=o;const c=Wi();c.initalize(`#${this.containerId}`,e,n),c.update({entities:r,lines:h})}}showDropdown(){var t,i;this.isOpen=!0,this.detailPanel.setAttribute("data-show",""),this.detailPanel.removeAttribute("aria-hidden"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),null===(i=this.popper)||void 0===i||i.update()}handleHideDropdown(t){var i,n;"button"===(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.localName)&&"arrow"===(null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.className)||this.hide()}toggleDropdown(){this.isOpen?this.hide():this.showDropdown()}hide(){var t;this.isOpen=!1,this.detailPanel.removeAttribute("data-show"),this.detailPanel.setAttribute("aria-hidden","true"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})))}getStatusColor(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";default:return"#999999"}}getStatusIcon(t){switch(t){case"accepted":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>';case"complete":case"submitted":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';case"in progress":case"invited":return"light"===this.theme?'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';case"canceled":return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';case"declined":return"light"===this.theme?'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>';case"opened":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>';case"signed":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>';case"some-signed":return"light"===this.theme?'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';default:return"light"===this.theme?'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'}}getStatusMessage(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}}render(){var t,s;let e=this.status||(null===(t=this.envelope)||void 0===t?void 0:t.status)||"pending";if(!this.status&&(null===(s=this.envelope)||void 0===s?void 0:s.recipients)){const t=this.envelope.recipients.filter((t=>"submitted"===t.status));t.length>0&&t.length!==this.envelope.recipients.length&&(e="some-signed")}const r=this.getStatusIcon(e),h=this.getStatusMessage(e);return i(n,{key:"0d3a55cf87f1a0dba7e235e3b3fb19b7b44e67f5",ref:t=>this.summaryComponent=t,class:`${this.theme} ${this.size} ${this.envelope?"has-document":""}`,"aria-label":"Click to View Details",onClick:t=>{t.stopPropagation(),t.preventDefault(),this.envelope&&this.toggleDropdown()},onBlur:t=>this.envelope&&this.handleHideDropdown(t)},i("span",{key:"9d1812f322823609640bbdcde955123f4dfb294e",class:"icon",innerHTML:r}),i("span",{key:"3db7a2eca6b3a6894a56daace7a367726feb508e",class:"content"},h),i("div",{key:"a0b31ee1a68c854dc781ba6fa729fbde485db23e",class:"detail-panel",ref:t=>this.detailPanel=t},i("div",{key:"2eab9e497070e97fe917ccc76d7c43ab2ae508f7",id:`${this.containerId}`}),this.recipientStatusIcons.map((t=>i("span",{innerHTML:t.icon,style:{position:"absolute",top:`${t.y}px`,left:`${t.x}px`}})))))}};Ki.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}';export{Ki as verdocs_status_indicator}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function c(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):o(e.value).then(c,s)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(r){return a([e,r])}}function a(s){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(t=0)),t)try{if(n=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-5737f0ae.system.js","@verdocs/js-sdk"],(function(e){"use strict";var r,t,n,o;return{setters:[function(e){r=e.r;t=e.c;n=e.h},function(e){o=e.VerdocsEndpoint}],execute:function(){var i='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var c=i;var s='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>';var a='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>';var f=e("verdocs_search_box",function(){function e(e){r(this,e);this.searchClicked=t(this,"searchClicked",7);this.typeChanged=t(this,"typeChanged",7);this.queryChanged=t(this,"queryChanged",7);this.endpoint=o.getDefault();this.placeholder="Search envelopes, templates, organizations...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return n("form",{key:"0a0ff0dfa9ee6be3ded1c6b169d28d7a35804336",onSubmit:function(r){return e.handleSearch(r)}},this.type!==undefined&&this.type!=="all"&&n("span",{key:"1bc2808c678e4502a8a91dcb5cc4130ff433847a",class:"type"},this.type,"s ",n("button",{key:"d86c649ef1b0c18513474c85e62d362993fe13e7",class:"remove",innerHTML:a,onClick:function(){return e.handleClearFilter()}})),n("input",{key:"848235e32539c294c4be6969cabc523a786c9524",type:"text",value:this.query,placeholder:this.placeholder,onInput:function(r){return e.handleChange(r)},onKeyUp:function(r){return e.handleKeyUp(r)},ref:function(r){return e.inputEl=r}}),n("button",{key:"8679d4b98adbfdc8b7b45c6faab5b6a7a8e18d95",onClick:function(r){return e.handleSearch(r)},class:"search"},n("span",{key:"06d492ec322302918ac8e497eb83accd77812267",innerHTML:s}),"Search"))};return e}());f.style=c}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function c(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):o(e.value).then(c,s)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(r){return a([e,r])}}function a(s){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(t=0)),t)try{if(n=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-9186f42e.system.js","@verdocs/js-sdk"],(function(e){"use strict";var r,t,n,o;return{setters:[function(e){r=e.r;t=e.c;n=e.h},function(e){o=e.VerdocsEndpoint}],execute:function(){var i='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var c=i;var s='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>';var a='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>';var f=e("verdocs_search_box",function(){function e(e){r(this,e);this.searchClicked=t(this,"searchClicked",7);this.typeChanged=t(this,"typeChanged",7);this.queryChanged=t(this,"queryChanged",7);this.endpoint=o.getDefault();this.placeholder="Search envelopes, templates, organizations...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return n("form",{key:"0a0ff0dfa9ee6be3ded1c6b169d28d7a35804336",onSubmit:function(r){return e.handleSearch(r)}},this.type!==undefined&&this.type!=="all"&&n("span",{key:"1bc2808c678e4502a8a91dcb5cc4130ff433847a",class:"type"},this.type,"s ",n("button",{key:"d86c649ef1b0c18513474c85e62d362993fe13e7",class:"remove",innerHTML:a,onClick:function(){return e.handleClearFilter()}})),n("input",{key:"848235e32539c294c4be6969cabc523a786c9524",type:"text",value:this.query,placeholder:this.placeholder,onInput:function(r){return e.handleChange(r)},onKeyUp:function(r){return e.handleKeyUp(r)},ref:function(r){return e.inputEl=r}}),n("button",{key:"8679d4b98adbfdc8b7b45c6faab5b6a7a8e18d95",onClick:function(r){return e.handleSearch(r)},class:"search"},n("span",{key:"06d492ec322302918ac8e497eb83accd77812267",innerHTML:s}),"Search"))};return e}());f.style=c}}}));