@verdocs/web-sdk 1.4.0 → 1.4.7

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 (361) hide show
  1. package/dist/cjs/Auth-4ec35ac7.js +97 -0
  2. package/dist/cjs/{Token-b86e5335.js → Token-ac80819a.js} +3 -135
  3. package/dist/{verdocs-web-sdk/buffer-es6-5cef4368.js → cjs/buffer-es6-bc8199b1.js} +47 -14
  4. package/dist/cjs/index-589f3be8.js +1356 -0
  5. package/dist/cjs/loader.cjs.js +3 -19
  6. package/dist/cjs/{index-9c6e5f50.js → popper-71bf3058.js} +0 -186
  7. package/dist/cjs/verdocs-auth.cjs.entry.js +10 -206
  8. package/dist/cjs/verdocs-button_2.cjs.entry.js +104 -0
  9. package/dist/cjs/{verdocs-view.cjs.entry.js → verdocs-dropdown_12.cjs.entry.js} +3314 -51
  10. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  16. package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +228 -0
  17. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -1512
  20. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +4 -90
  22. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +2 -2
  26. package/dist/cjs/verdocs-web-sdk.cjs.js +5 -117
  27. package/dist/collection/collection-manifest.json +1 -1
  28. package/dist/collection/components/controls/verdocs-button/verdocs-button.css +2 -2
  29. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +0 -1
  30. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +1 -1
  31. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +2 -2
  32. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +4 -4
  33. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +2 -2
  34. package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.css +2 -4
  35. package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.css +1 -3
  36. package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +1 -3
  37. package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -3
  38. package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.css +1 -3
  39. package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.css +1 -3
  40. package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -3
  41. package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.css +1 -3
  42. package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.css +1 -3
  43. package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -3
  44. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.css +1 -3
  45. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +1 -3
  46. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.css +1 -3
  47. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.css +1 -0
  48. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +1 -1
  49. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +7 -9
  50. package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +1 -1
  51. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +1 -1
  52. package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -1
  53. package/dist/components/Auth.js +23 -88
  54. package/dist/components/Token.js +2 -135
  55. package/dist/components/buffer-es6.js +39 -14
  56. package/dist/components/index.js +0 -4
  57. package/dist/components/{index3.js → popper.js} +0 -186
  58. package/dist/components/verdocs-auth.js +6 -201
  59. package/dist/components/verdocs-button2.js +2 -3
  60. package/dist/components/verdocs-dropdown2.js +2 -2
  61. package/dist/components/verdocs-field-attachment2.js +2 -2
  62. package/dist/components/verdocs-field-checkbox2.js +2 -2
  63. package/dist/components/verdocs-field-date2.js +2 -214
  64. package/dist/components/verdocs-field-dropdown2.js +2 -2
  65. package/dist/components/verdocs-field-initial2.js +2 -2
  66. package/dist/components/verdocs-field-payment2.js +2 -2
  67. package/dist/components/verdocs-field-radio-button2.js +2 -2
  68. package/dist/components/verdocs-field-signature2.js +2 -2
  69. package/dist/components/verdocs-field-textarea2.js +2 -2
  70. package/dist/components/verdocs-field-textbox2.js +2 -2
  71. package/dist/components/verdocs-initial-dialog2.js +1 -1
  72. package/dist/components/verdocs-kba-dialog.js +2 -2
  73. package/dist/components/verdocs-loader2.js +1 -1
  74. package/dist/components/verdocs-ok-dialog2.js +2 -2
  75. package/dist/components/verdocs-organization-card.js +1 -1
  76. package/dist/components/verdocs-quick-functions.js +2 -2
  77. package/dist/components/verdocs-search-activity2.js +16 -104
  78. package/dist/components/verdocs-search-box2.js +2 -2
  79. package/dist/components/verdocs-search-tabs.js +2 -2
  80. package/dist/components/verdocs-search.js +2 -2
  81. package/dist/components/verdocs-sign.js +2 -1509
  82. package/dist/components/verdocs-signature-dialog2.js +2 -2
  83. package/dist/components/verdocs-status-indicator.js +3 -88
  84. package/dist/components/verdocs-template-card.js +1 -1
  85. package/dist/components/verdocs-template-tags.js +1 -1
  86. package/dist/components/verdocs-text-input2.js +1 -1
  87. package/dist/components/verdocs-toggle.js +1 -1
  88. package/dist/components/verdocs-upload-dialog2.js +2 -2
  89. package/dist/components/verdocs-view2.js +7 -34
  90. package/dist/docs.json +3 -3
  91. package/dist/esm/Auth-15cd42a8.js +92 -0
  92. package/dist/{verdocs-web-sdk/Token-29eea56d.js → esm/Token-ce37bd9d.js} +2 -135
  93. package/dist/{cjs/buffer-es6-b2c1c885.js → esm/buffer-es6-136673c8.js} +38 -15
  94. package/dist/esm/index-859bc689.js +1327 -0
  95. package/dist/esm/loader.js +3 -19
  96. package/dist/esm/{index-432c65a6.js → popper-93ecb064.js} +0 -186
  97. package/dist/esm/verdocs-auth.entry.js +7 -203
  98. package/dist/esm/verdocs-button_2.entry.js +99 -0
  99. package/dist/esm/{verdocs-view.entry.js → verdocs-dropdown_12.entry.js} +3287 -35
  100. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  101. package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
  102. package/dist/esm/verdocs-loader.entry.js +1 -1
  103. package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
  104. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  105. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  106. package/dist/esm/verdocs-search-activity_2.entry.js +223 -0
  107. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  108. package/dist/esm/verdocs-search.entry.js +2 -2
  109. package/dist/esm/verdocs-sign.entry.js +4 -1512
  110. package/dist/esm/verdocs-signature-dialog.entry.js +2 -2
  111. package/dist/esm/verdocs-status-indicator.entry.js +3 -89
  112. package/dist/esm/verdocs-template-card.entry.js +1 -1
  113. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  114. package/dist/esm/verdocs-toggle.entry.js +1 -1
  115. package/dist/esm/verdocs-upload-dialog.entry.js +2 -2
  116. package/dist/esm/verdocs-web-sdk.js +5 -117
  117. package/dist/esm-es5/Auth-15cd42a8.js +1 -0
  118. package/dist/esm-es5/Token-ce37bd9d.js +1 -0
  119. package/dist/esm-es5/buffer-es6-136673c8.js +7 -0
  120. package/dist/esm-es5/index-859bc689.js +2 -0
  121. package/dist/esm-es5/loader.js +1 -1
  122. package/dist/esm-es5/popper-93ecb064.js +1 -0
  123. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-button_2.entry.js +1 -0
  125. package/dist/esm-es5/verdocs-dropdown_12.entry.js +23 -0
  126. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  131. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  132. package/dist/esm-es5/verdocs-search-activity_2.entry.js +1 -0
  133. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  136. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -11
  138. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  139. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  140. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  141. package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  143. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +4 -2
  144. package/dist/verdocs-web-sdk/index.esm.js +0 -1
  145. package/dist/verdocs-web-sdk/p-0353c423.entry.js +1 -0
  146. package/dist/verdocs-web-sdk/p-0c0b4a10.system.entry.js +1 -0
  147. package/dist/verdocs-web-sdk/p-144e0842.system.entry.js +1 -0
  148. package/dist/verdocs-web-sdk/p-15b7ed4d.entry.js +1 -0
  149. package/dist/verdocs-web-sdk/p-1f55d8ac.system.entry.js +1 -0
  150. package/dist/verdocs-web-sdk/p-2b57857d.system.entry.js +1 -0
  151. package/dist/verdocs-web-sdk/p-2bc58746.js +2 -0
  152. package/dist/verdocs-web-sdk/p-2c161242.system.entry.js +1 -0
  153. package/dist/verdocs-web-sdk/p-39633a02.entry.js +1 -0
  154. package/dist/verdocs-web-sdk/p-432c3151.system.entry.js +1 -0
  155. package/dist/verdocs-web-sdk/p-4368df79.system.entry.js +23 -0
  156. package/dist/verdocs-web-sdk/p-4c66f794.js +1 -0
  157. package/dist/verdocs-web-sdk/{index.system.js → p-50ea2036.system.js} +0 -0
  158. package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +7 -0
  159. package/dist/verdocs-web-sdk/p-6393b2b4.entry.js +1 -0
  160. package/dist/verdocs-web-sdk/p-66b19637.entry.js +1 -0
  161. package/dist/verdocs-web-sdk/p-6802ef91.system.entry.js +1 -0
  162. package/dist/verdocs-web-sdk/p-69ef22bd.entry.js +1 -0
  163. package/dist/verdocs-web-sdk/p-6fa6fb3c.entry.js +1 -0
  164. package/dist/verdocs-web-sdk/p-737b2e99.js +1 -0
  165. package/dist/verdocs-web-sdk/p-829b235c.entry.js +1 -0
  166. package/dist/verdocs-web-sdk/p-8730dc92.system.js +1 -0
  167. package/dist/verdocs-web-sdk/p-88a300c5.system.js +1 -0
  168. package/dist/verdocs-web-sdk/p-96c0bf40.system.js +1 -0
  169. package/dist/verdocs-web-sdk/p-9b34c794.entry.js +1 -0
  170. package/dist/verdocs-web-sdk/p-9d8d8c78.entry.js +1 -0
  171. package/dist/verdocs-web-sdk/p-a1143ddb.entry.js +23 -0
  172. package/dist/verdocs-web-sdk/p-a7cfe6fc.entry.js +1 -0
  173. package/dist/verdocs-web-sdk/p-b9164c4b.system.entry.js +1 -0
  174. package/dist/verdocs-web-sdk/p-bf2620cb.entry.js +1 -0
  175. package/dist/verdocs-web-sdk/p-c2f97ef9.system.entry.js +1 -0
  176. package/dist/verdocs-web-sdk/p-caed7818.system.js +2 -0
  177. package/dist/verdocs-web-sdk/p-cc127684.system.entry.js +1 -0
  178. package/dist/verdocs-web-sdk/p-cd6a2c40.system.entry.js +1 -0
  179. package/dist/verdocs-web-sdk/p-cec13589.system.js +1 -0
  180. package/dist/verdocs-web-sdk/p-d14a6057.system.entry.js +1 -0
  181. package/dist/verdocs-web-sdk/p-d6206c17.system.entry.js +1 -0
  182. package/dist/verdocs-web-sdk/p-da667373.entry.js +1 -0
  183. package/dist/verdocs-web-sdk/p-e2e643c5.system.entry.js +1 -0
  184. package/dist/verdocs-web-sdk/p-e6e2894e.js +1 -0
  185. package/dist/verdocs-web-sdk/p-e719f9ca.system.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/p-ea6d6dc7.entry.js +1 -0
  187. package/dist/verdocs-web-sdk/p-ed5baeb4.entry.js +1 -0
  188. package/dist/verdocs-web-sdk/p-ef932a87.js +1 -0
  189. package/dist/verdocs-web-sdk/p-f0d0f959.system.entry.js +1 -0
  190. package/dist/verdocs-web-sdk/p-f0e6fde0.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/p-f4219236.entry.js +1 -0
  192. package/dist/verdocs-web-sdk/p-f7e26fbd.entry.js +1 -0
  193. package/dist/verdocs-web-sdk/p-f814d5cc.system.entry.js +1 -0
  194. package/dist/verdocs-web-sdk/p-fd853e54.system.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/verdocs-web-sdk.css +1 -57
  196. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -129
  197. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +2 -1
  198. package/package.json +4 -4
  199. package/dist/cjs/Auth-0146ddd8.js +0 -161
  200. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  201. package/dist/cjs/css-shim-e9231523.js +0 -6
  202. package/dist/cjs/dom-7fb93981.js +0 -75
  203. package/dist/cjs/index-a24f3b6a.js +0 -3096
  204. package/dist/cjs/index-b5a86b04.js +0 -4
  205. package/dist/cjs/index-c4be37e1.js +0 -54
  206. package/dist/cjs/shadow-css-abc19485.js +0 -389
  207. package/dist/cjs/verdocs-button.cjs.entry.js +0 -49
  208. package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -80
  209. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +0 -59
  210. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +0 -39
  211. package/dist/cjs/verdocs-field-date.cjs.entry.js +0 -2968
  212. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +0 -59
  213. package/dist/cjs/verdocs-field-initial.cjs.entry.js +0 -52
  214. package/dist/cjs/verdocs-field-payment.cjs.entry.js +0 -86
  215. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +0 -48
  216. package/dist/cjs/verdocs-field-signature.cjs.entry.js +0 -52
  217. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +0 -63
  218. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +0 -63
  219. package/dist/cjs/verdocs-search-activity.cjs.entry.js +0 -263
  220. package/dist/cjs/verdocs-search-box.cjs.entry.js +0 -60
  221. package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -62
  222. package/dist/components/index2.js +0 -1
  223. package/dist/components/index4.js +0 -47
  224. package/dist/custom-elements.json +0 -830
  225. package/dist/esm/Auth-4b21fced.js +0 -157
  226. package/dist/esm/Token-29eea56d.js +0 -2458
  227. package/dist/esm/app-globals-0f993ce5.js +0 -3
  228. package/dist/esm/buffer-es6-5cef4368.js +0 -1985
  229. package/dist/esm/css-shim-60f618b9.js +0 -4
  230. package/dist/esm/dom-4eeb3fee.js +0 -73
  231. package/dist/esm/index-97ec070b.js +0 -47
  232. package/dist/esm/index-ddbd60b5.js +0 -3059
  233. package/dist/esm/index-ef172650.js +0 -1
  234. package/dist/esm/shadow-css-02866686.js +0 -387
  235. package/dist/esm/verdocs-button.entry.js +0 -45
  236. package/dist/esm/verdocs-dropdown.entry.js +0 -76
  237. package/dist/esm/verdocs-field-attachment.entry.js +0 -55
  238. package/dist/esm/verdocs-field-checkbox.entry.js +0 -35
  239. package/dist/esm/verdocs-field-date.entry.js +0 -2964
  240. package/dist/esm/verdocs-field-dropdown.entry.js +0 -55
  241. package/dist/esm/verdocs-field-initial.entry.js +0 -48
  242. package/dist/esm/verdocs-field-payment.entry.js +0 -82
  243. package/dist/esm/verdocs-field-radio-button.entry.js +0 -44
  244. package/dist/esm/verdocs-field-signature.entry.js +0 -48
  245. package/dist/esm/verdocs-field-textarea.entry.js +0 -59
  246. package/dist/esm/verdocs-field-textbox.entry.js +0 -59
  247. package/dist/esm/verdocs-search-activity.entry.js +0 -259
  248. package/dist/esm/verdocs-search-box.entry.js +0 -56
  249. package/dist/esm/verdocs-text-input.entry.js +0 -58
  250. package/dist/esm-es5/Auth-4b21fced.js +0 -1
  251. package/dist/esm-es5/Token-29eea56d.js +0 -1
  252. package/dist/esm-es5/app-globals-0f993ce5.js +0 -1
  253. package/dist/esm-es5/buffer-es6-5cef4368.js +0 -7
  254. package/dist/esm-es5/css-shim-60f618b9.js +0 -1
  255. package/dist/esm-es5/dom-4eeb3fee.js +0 -21
  256. package/dist/esm-es5/index-432c65a6.js +0 -1
  257. package/dist/esm-es5/index-97ec070b.js +0 -1
  258. package/dist/esm-es5/index-ddbd60b5.js +0 -2
  259. package/dist/esm-es5/index-ef172650.js +0 -1
  260. package/dist/esm-es5/shadow-css-02866686.js +0 -12
  261. package/dist/esm-es5/verdocs-button.entry.js +0 -1
  262. package/dist/esm-es5/verdocs-dropdown.entry.js +0 -1
  263. package/dist/esm-es5/verdocs-field-attachment.entry.js +0 -1
  264. package/dist/esm-es5/verdocs-field-checkbox.entry.js +0 -1
  265. package/dist/esm-es5/verdocs-field-date.entry.js +0 -1
  266. package/dist/esm-es5/verdocs-field-dropdown.entry.js +0 -1
  267. package/dist/esm-es5/verdocs-field-initial.entry.js +0 -1
  268. package/dist/esm-es5/verdocs-field-payment.entry.js +0 -1
  269. package/dist/esm-es5/verdocs-field-radio-button.entry.js +0 -1
  270. package/dist/esm-es5/verdocs-field-signature.entry.js +0 -1
  271. package/dist/esm-es5/verdocs-field-textarea.entry.js +0 -1
  272. package/dist/esm-es5/verdocs-field-textbox.entry.js +0 -1
  273. package/dist/esm-es5/verdocs-search-activity.entry.js +0 -1
  274. package/dist/esm-es5/verdocs-search-box.entry.js +0 -1
  275. package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
  276. package/dist/esm-es5/verdocs-view.entry.js +0 -23
  277. package/dist/verdocs-web-sdk/Auth-4b21fced.js +0 -157
  278. package/dist/verdocs-web-sdk/Auth-82e38539.system.js +0 -1
  279. package/dist/verdocs-web-sdk/Token-c1cf309e.system.js +0 -1
  280. package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +0 -3
  281. package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +0 -1
  282. package/dist/verdocs-web-sdk/buffer-es6-aa11181b.system.js +0 -7
  283. package/dist/verdocs-web-sdk/css-shim-60f618b9.js +0 -4
  284. package/dist/verdocs-web-sdk/css-shim-e41ceccc.system.js +0 -1
  285. package/dist/verdocs-web-sdk/dom-4eeb3fee.js +0 -73
  286. package/dist/verdocs-web-sdk/dom-89b5deb7.system.js +0 -21
  287. package/dist/verdocs-web-sdk/index-027b383e.system.js +0 -1
  288. package/dist/verdocs-web-sdk/index-06e036a1.system.js +0 -1
  289. package/dist/verdocs-web-sdk/index-432c65a6.js +0 -1974
  290. package/dist/verdocs-web-sdk/index-5d49316f.system.js +0 -1
  291. package/dist/verdocs-web-sdk/index-6465280a.system.js +0 -2
  292. package/dist/verdocs-web-sdk/index-97ec070b.js +0 -47
  293. package/dist/verdocs-web-sdk/index-ddbd60b5.js +0 -3059
  294. package/dist/verdocs-web-sdk/index-ef172650.js +0 -1
  295. package/dist/verdocs-web-sdk/shadow-css-02866686.js +0 -387
  296. package/dist/verdocs-web-sdk/shadow-css-6207e159.system.js +0 -13
  297. package/dist/verdocs-web-sdk/verdocs-auth.entry.js +0 -302
  298. package/dist/verdocs-web-sdk/verdocs-auth.system.entry.js +0 -1
  299. package/dist/verdocs-web-sdk/verdocs-button.entry.js +0 -45
  300. package/dist/verdocs-web-sdk/verdocs-button.system.entry.js +0 -1
  301. package/dist/verdocs-web-sdk/verdocs-dropdown.entry.js +0 -76
  302. package/dist/verdocs-web-sdk/verdocs-dropdown.system.entry.js +0 -1
  303. package/dist/verdocs-web-sdk/verdocs-field-attachment.entry.js +0 -55
  304. package/dist/verdocs-web-sdk/verdocs-field-attachment.system.entry.js +0 -1
  305. package/dist/verdocs-web-sdk/verdocs-field-checkbox.entry.js +0 -35
  306. package/dist/verdocs-web-sdk/verdocs-field-checkbox.system.entry.js +0 -1
  307. package/dist/verdocs-web-sdk/verdocs-field-date.entry.js +0 -2964
  308. package/dist/verdocs-web-sdk/verdocs-field-date.system.entry.js +0 -1
  309. package/dist/verdocs-web-sdk/verdocs-field-dropdown.entry.js +0 -55
  310. package/dist/verdocs-web-sdk/verdocs-field-dropdown.system.entry.js +0 -1
  311. package/dist/verdocs-web-sdk/verdocs-field-initial.entry.js +0 -48
  312. package/dist/verdocs-web-sdk/verdocs-field-initial.system.entry.js +0 -1
  313. package/dist/verdocs-web-sdk/verdocs-field-payment.entry.js +0 -82
  314. package/dist/verdocs-web-sdk/verdocs-field-payment.system.entry.js +0 -1
  315. package/dist/verdocs-web-sdk/verdocs-field-radio-button.entry.js +0 -44
  316. package/dist/verdocs-web-sdk/verdocs-field-radio-button.system.entry.js +0 -1
  317. package/dist/verdocs-web-sdk/verdocs-field-signature.entry.js +0 -48
  318. package/dist/verdocs-web-sdk/verdocs-field-signature.system.entry.js +0 -1
  319. package/dist/verdocs-web-sdk/verdocs-field-textarea.entry.js +0 -59
  320. package/dist/verdocs-web-sdk/verdocs-field-textarea.system.entry.js +0 -1
  321. package/dist/verdocs-web-sdk/verdocs-field-textbox.entry.js +0 -59
  322. package/dist/verdocs-web-sdk/verdocs-field-textbox.system.entry.js +0 -1
  323. package/dist/verdocs-web-sdk/verdocs-initial-dialog.entry.js +0 -239
  324. package/dist/verdocs-web-sdk/verdocs-initial-dialog.system.entry.js +0 -1
  325. package/dist/verdocs-web-sdk/verdocs-kba-dialog.entry.js +0 -77
  326. package/dist/verdocs-web-sdk/verdocs-kba-dialog.system.entry.js +0 -1
  327. package/dist/verdocs-web-sdk/verdocs-loader.entry.js +0 -15
  328. package/dist/verdocs-web-sdk/verdocs-loader.system.entry.js +0 -1
  329. package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.js +0 -44
  330. package/dist/verdocs-web-sdk/verdocs-ok-dialog.system.entry.js +0 -1
  331. package/dist/verdocs-web-sdk/verdocs-organization-card.entry.js +0 -18
  332. package/dist/verdocs-web-sdk/verdocs-organization-card.system.entry.js +0 -1
  333. package/dist/verdocs-web-sdk/verdocs-quick-functions.entry.js +0 -27
  334. package/dist/verdocs-web-sdk/verdocs-quick-functions.system.entry.js +0 -1
  335. package/dist/verdocs-web-sdk/verdocs-search-activity.entry.js +0 -259
  336. package/dist/verdocs-web-sdk/verdocs-search-activity.system.entry.js +0 -1
  337. package/dist/verdocs-web-sdk/verdocs-search-box.entry.js +0 -56
  338. package/dist/verdocs-web-sdk/verdocs-search-box.system.entry.js +0 -1
  339. package/dist/verdocs-web-sdk/verdocs-search-tabs.entry.js +0 -16
  340. package/dist/verdocs-web-sdk/verdocs-search-tabs.system.entry.js +0 -1
  341. package/dist/verdocs-web-sdk/verdocs-search.entry.js +0 -15
  342. package/dist/verdocs-web-sdk/verdocs-search.system.entry.js +0 -1
  343. package/dist/verdocs-web-sdk/verdocs-sign.entry.js +0 -1995
  344. package/dist/verdocs-web-sdk/verdocs-sign.system.entry.js +0 -1
  345. package/dist/verdocs-web-sdk/verdocs-signature-dialog.entry.js +0 -235
  346. package/dist/verdocs-web-sdk/verdocs-signature-dialog.system.entry.js +0 -1
  347. package/dist/verdocs-web-sdk/verdocs-status-indicator.entry.js +0 -7611
  348. package/dist/verdocs-web-sdk/verdocs-status-indicator.system.entry.js +0 -1
  349. package/dist/verdocs-web-sdk/verdocs-template-card.entry.js +0 -34
  350. package/dist/verdocs-web-sdk/verdocs-template-card.system.entry.js +0 -1
  351. package/dist/verdocs-web-sdk/verdocs-template-tags.entry.js +0 -16
  352. package/dist/verdocs-web-sdk/verdocs-template-tags.system.entry.js +0 -1
  353. package/dist/verdocs-web-sdk/verdocs-text-input.entry.js +0 -58
  354. package/dist/verdocs-web-sdk/verdocs-text-input.system.entry.js +0 -1
  355. package/dist/verdocs-web-sdk/verdocs-toggle.entry.js +0 -32
  356. package/dist/verdocs-web-sdk/verdocs-toggle.system.entry.js +0 -1
  357. package/dist/verdocs-web-sdk/verdocs-upload-dialog.entry.js +0 -119
  358. package/dist/verdocs-web-sdk/verdocs-upload-dialog.system.entry.js +0 -1
  359. package/dist/verdocs-web-sdk/verdocs-view.entry.js +0 -16118
  360. package/dist/verdocs-web-sdk/verdocs-view.system.entry.js +0 -23
  361. package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +0 -1
@@ -1 +1 @@
1
- import{r as registerInstance,h,f as Host}from"./index-ddbd60b5.js";var ActionsIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var EmailIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var PagesIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var StarIcon='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_31553_1553)">\n<path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/>\n</g>\n<defs>\n<clipPath id="clip0_31553_1553">\n<rect width="30" height="29" fill="white" transform="translate(0.886719)"/>\n</clipPath>\n</defs>\n</svg>\n';var verdocsTemplateCardCss='verdocs-template-card{font-family:"Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var VerdocsTemplateCard=function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){var t,e,a,o,s;return h(Host,null,h("img",{src:((e=(t=this.template)===null||t===void 0?void 0:t.template_document)===null||e===void 0?void 0:e.thumbnail_url)||"",alt:"Template Thumbnail",class:"thumbnail"}),h("span",{class:"name"},this.template.name),h("span",{class:"org-name"},((a=this.template.organization)===null||a===void 0?void 0:a.name)||"Public"),h("hr",null),h("div",{class:"controls"},h("div",{class:"control"},h("span",{class:"icon",innerHTML:StarIcon}),h("span",{class:"value"},this.template.star_counter)),h("div",{class:"control secondary"},h("span",{class:"icon",innerHTML:PagesIcon}),h("span",{class:"value"},((s=(o=this.template)===null||o===void 0?void 0:o.template_document)===null||s===void 0?void 0:s.page_numbers)||1)),h("div",{class:"control secondary"},h("span",{class:"icon",innerHTML:EmailIcon}),h("span",{class:"value"},this.template.counter)),h("span",{class:"additional-controls",innerHTML:ActionsIcon})))};return t}();VerdocsTemplateCard.style=verdocsTemplateCardCss;export{VerdocsTemplateCard as verdocs_template_card};
1
+ import{r as registerInstance,h,H as Host}from"./index-859bc689.js";var ActionsIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var EmailIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var PagesIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var StarIcon='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_31553_1553)">\n<path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/>\n</g>\n<defs>\n<clipPath id="clip0_31553_1553">\n<rect width="30" height="29" fill="white" transform="translate(0.886719)"/>\n</clipPath>\n</defs>\n</svg>\n';var verdocsTemplateCardCss='verdocs-template-card{font-family:"Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var VerdocsTemplateCard=function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){var t,e,a,o,s;return h(Host,null,h("img",{src:((e=(t=this.template)===null||t===void 0?void 0:t.template_document)===null||e===void 0?void 0:e.thumbnail_url)||"",alt:"Template Thumbnail",class:"thumbnail"}),h("span",{class:"name"},this.template.name),h("span",{class:"org-name"},((a=this.template.organization)===null||a===void 0?void 0:a.name)||"Public"),h("hr",null),h("div",{class:"controls"},h("div",{class:"control"},h("span",{class:"icon",innerHTML:StarIcon}),h("span",{class:"value"},this.template.star_counter)),h("div",{class:"control secondary"},h("span",{class:"icon",innerHTML:PagesIcon}),h("span",{class:"value"},((s=(o=this.template)===null||o===void 0?void 0:o.template_document)===null||s===void 0?void 0:s.page_numbers)||1)),h("div",{class:"control secondary"},h("span",{class:"icon",innerHTML:EmailIcon}),h("span",{class:"value"},this.template.counter)),h("span",{class:"additional-controls",innerHTML:ActionsIcon})))};return t}();VerdocsTemplateCard.style=verdocsTemplateCardCss;export{VerdocsTemplateCard as verdocs_template_card};
@@ -1 +1 @@
1
- import{r as registerInstance,h,f as Host}from"./index-ddbd60b5.js";var verdocsTemplateTagsCss='verdocs-template-tags{font-family:"Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var VerdocsTemplateTags=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e;return h(Host,null,(e=this.tags)===null||e===void 0?void 0:e.map((function(e){return h("span",null,e)})))};return e}();VerdocsTemplateTags.style=verdocsTemplateTagsCss;export{VerdocsTemplateTags as verdocs_template_tags};
1
+ import{r as registerInstance,h,H as Host}from"./index-859bc689.js";var verdocsTemplateTagsCss='verdocs-template-tags{font-family:"Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var VerdocsTemplateTags=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e;return h(Host,null,(e=this.tags)===null||e===void 0?void 0:e.map((function(e){return h("span",null,e)})))};return e}();VerdocsTemplateTags.style=verdocsTemplateTagsCss;export{VerdocsTemplateTags as verdocs_template_tags};
@@ -1 +1 @@
1
- import{r as registerInstance,h}from"./index-ddbd60b5.js";var verdocsToggleCss='verdocs-toggle{font-family:"Barlow", sans-serif}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f5f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33354c;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f5f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}';var VerdocsToggle=function(){function t(t){registerInstance(this,t)}t.prototype.handleClick=function(t){t.preventDefault();var e=t.target;if(e.matches("toggle-icon-buttons")){e=t.target.shadowRoot;var o=e.activeElement;var s=Array.from(o.parentElement.children).filter((function(t){return t!==o}));s.map((function(t){return t.classList.remove("selected")}));if(!o.classList.contains("selected")){o.classList.add("selected")}}};t.prototype.render=function(){var t=this;return h("div",{class:"container"},h("span",{class:"label"},"".concat(this.options.label,":")),h("div",{class:"buttons"},this.options.buttons.map((function(e,o){return h("button",{id:e.id,key:e.id,innerHTML:e.icon,class:o===t.options.defaultSelection?"selected":""})}))))};return t}();VerdocsToggle.style=verdocsToggleCss;export{VerdocsToggle as verdocs_toggle};
1
+ import{r as registerInstance,h}from"./index-859bc689.js";var verdocsToggleCss='verdocs-toggle{font-family:"Barlow", sans-serif}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f5f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33354c;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f5f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}';var VerdocsToggle=function(){function t(t){registerInstance(this,t)}t.prototype.handleClick=function(t){t.preventDefault();var e=t.target;if(e.matches("toggle-icon-buttons")){e=t.target.shadowRoot;var o=e.activeElement;var s=Array.from(o.parentElement.children).filter((function(t){return t!==o}));s.map((function(t){return t.classList.remove("selected")}));if(!o.classList.contains("selected")){o.classList.add("selected")}}};t.prototype.render=function(){var t=this;return h("div",{class:"container"},h("span",{class:"label"},"".concat(this.options.label,":")),h("div",{class:"buttons"},this.options.buttons.map((function(e,o){return h("button",{id:e.id,key:e.id,innerHTML:e.icon,class:o===t.options.defaultSelection?"selected":""})}))))};return t}();VerdocsToggle.style=verdocsToggleCss;export{VerdocsToggle as verdocs_toggle};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{s(o.next(e))}catch(e){a(e)}}function l(e){try{s(o["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):r(e.value).then(i,l)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return s([e,t])}}function s(i){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(a=i[0]&2?r["return"]:i[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;if(r=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];r=0}finally{o=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,e as createEvent,h,f as Host}from"./index-ddbd60b5.js";var fileToDataUrl=function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(){return t({lastModified:e.lastModified,size:e.size,type:e.type,name:e.name,data:o.result})};o.onerror=n;if(e){o.readAsDataURL(e)}else{n(new Error("Invalid file"))}}))};var Paperclip='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />\n</svg>\n';var Trash='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n</svg>\n';var verdocsUploadDialogCss='verdocs-upload-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-upload-dialog .dialog{width:300px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .drop-target{padding:30px 15px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5f5;border:2px dashed #979797;min-height:260px;text-align:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:rgba(0, 0, 0, 0.54);opacity:1;margin:20px 0}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid blue}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:0 8px;font-size:14px;font-weight:400}';var VerdocsUploadDialog=function(){function e(e){registerInstance(this,e);this.cancel=createEvent(this,"cancel",7);this.done=createEvent(this,"done",7);this.open=false;this.draggingOver=false;this.decodedFiles=[]}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.decodedFiles);this.open=false};e.prototype.handleDragOver=function(e){e.preventDefault();this.draggingOver=true};e.prototype.handleDragLeave=function(e){e.preventDefault();this.draggingOver=false};e.prototype.handleDrop=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r;return __generator(this,(function(a){switch(a.label){case 0:e.preventDefault();this.draggingOver=false;t=[];if(e.dataTransfer.items){for(n=0;n<e.dataTransfer.items.length;n++){if(e.dataTransfer.items[n].kind==="file"){o=e.dataTransfer.items[n].getAsFile();t.push(o)}}}else{t=e.dataTransfer.files}r=this;return[4,Promise.all(t.map(fileToDataUrl))];case 1:r.decodedFiles=a.sent();return[2]}}))}))};e.prototype.handleRemoveAttachment=function(e){var t=__spreadArray([],this.decodedFiles,true);t.splice(e,1);this.decodedFiles=t};e.prototype.handleSelectFile=function(){var e;(e=this.fileInput)===null||e===void 0?void 0:e.click()};e.prototype.handleFileChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r,a,i;return __generator(this,(function(l){switch(l.label){case 0:console.log("fileChange",e);console.log("files",(t=this.fileInput)===null||t===void 0?void 0:t.files);r=[];for(a=0;a<((n=this.fileInput)===null||n===void 0?void 0:n.files.length);a++){r.push((o=this.fileInput)===null||o===void 0?void 0:o.files[a])}i=this;return[4,Promise.all(r.map(fileToDataUrl))];case 1:i.decodedFiles=l.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Upload attachment"),this.decodedFiles.length<1?h("div",{class:{"drop-target":true,"dragging-over":this.draggingOver},onDragOver:function(t){return e.handleDragOver(t)},onDragLeave:function(t){return e.handleDragLeave(t)},onDrop:function(t){return e.handleDrop(t)}},h("p",null,"Drag and drop a file here..."),h("p",null,"- or -"),h("verdocs-button",{label:"Select a file...",onPress:function(){return e.handleSelectFile()}}),h("input",{type:"file",ref:function(t){return e.fileInput=t},style:{display:"none"},onChange:function(t){return e.handleFileChange(t)}})):h("div",{class:"attachments"},this.decodedFiles.map((function(t,n){return h("div",{class:"attachment"},h("div",{class:"icon",innerHTML:Paperclip}),h("div",{class:"name"},t.name),h("div",{class:"icon trash",innerHTML:Trash,onClick:function(){return e.handleRemoveAttachment(n)}}))}))),h("div",{class:"buttons"},h("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:this.decodedFiles.length<1})))))};return e}();VerdocsUploadDialog.style=verdocsUploadDialogCss;export{VerdocsUploadDialog as verdocs_upload_dialog};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{s(o.next(e))}catch(e){a(e)}}function l(e){try{s(o["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):r(e.value).then(i,l)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return s([e,t])}}function s(i){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(a=i[0]&2?r["return"]:i[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;if(r=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];r=0}finally{o=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-859bc689.js";var fileToDataUrl=function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(){return t({lastModified:e.lastModified,size:e.size,type:e.type,name:e.name,data:o.result})};o.onerror=n;if(e){o.readAsDataURL(e)}else{n(new Error("Invalid file"))}}))};var Paperclip='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />\n</svg>\n';var Trash='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n</svg>\n';var verdocsUploadDialogCss='verdocs-upload-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-upload-dialog .dialog{width:300px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .drop-target{padding:30px 15px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5f5;border:2px dashed #979797;min-height:260px;text-align:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:rgba(0, 0, 0, 0.54);opacity:1;margin:20px 0}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid #4c56cb}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:0 8px;font-size:14px;font-weight:400}';var VerdocsUploadDialog=function(){function e(e){registerInstance(this,e);this.cancel=createEvent(this,"cancel",7);this.done=createEvent(this,"done",7);this.open=false;this.draggingOver=false;this.decodedFiles=[]}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.decodedFiles);this.open=false};e.prototype.handleDragOver=function(e){e.preventDefault();this.draggingOver=true};e.prototype.handleDragLeave=function(e){e.preventDefault();this.draggingOver=false};e.prototype.handleDrop=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r;return __generator(this,(function(a){switch(a.label){case 0:e.preventDefault();this.draggingOver=false;t=[];if(e.dataTransfer.items){for(n=0;n<e.dataTransfer.items.length;n++){if(e.dataTransfer.items[n].kind==="file"){o=e.dataTransfer.items[n].getAsFile();t.push(o)}}}else{t=e.dataTransfer.files}r=this;return[4,Promise.all(t.map(fileToDataUrl))];case 1:r.decodedFiles=a.sent();return[2]}}))}))};e.prototype.handleRemoveAttachment=function(e){var t=__spreadArray([],this.decodedFiles,true);t.splice(e,1);this.decodedFiles=t};e.prototype.handleSelectFile=function(){var e;(e=this.fileInput)===null||e===void 0?void 0:e.click()};e.prototype.handleFileChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r,a,i;return __generator(this,(function(l){switch(l.label){case 0:console.log("fileChange",e);console.log("files",(t=this.fileInput)===null||t===void 0?void 0:t.files);r=[];for(a=0;a<((n=this.fileInput)===null||n===void 0?void 0:n.files.length);a++){r.push((o=this.fileInput)===null||o===void 0?void 0:o.files[a])}i=this;return[4,Promise.all(r.map(fileToDataUrl))];case 1:i.decodedFiles=l.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Upload attachment"),this.decodedFiles.length<1?h("div",{class:{"drop-target":true,"dragging-over":this.draggingOver},onDragOver:function(t){return e.handleDragOver(t)},onDragLeave:function(t){return e.handleDragLeave(t)},onDrop:function(t){return e.handleDrop(t)}},h("p",null,"Drag and drop a file here..."),h("p",null,"- or -"),h("verdocs-button",{label:"Select a file...",onPress:function(){return e.handleSelectFile()}}),h("input",{type:"file",ref:function(t){return e.fileInput=t},style:{display:"none"},onChange:function(t){return e.handleFileChange(t)}})):h("div",{class:"attachments"},this.decodedFiles.map((function(t,n){return h("div",{class:"attachment"},h("div",{class:"icon",innerHTML:Paperclip}),h("div",{class:"name"},t.name),h("div",{class:"icon trash",innerHTML:Trash,onClick:function(){return e.handleRemoveAttachment(n)}}))}))),h("div",{class:"buttons"},h("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:this.decodedFiles.length<1})))))};return e}();VerdocsUploadDialog.style=verdocsUploadDialogCss;export{VerdocsUploadDialog as verdocs_upload_dialog};
@@ -1 +1 @@
1
- import{B as BUILD,c as consoleDevInfo,p as plt,w as win,H,d as doc,N as NAMESPACE,a as promiseResolve,b as bootstrapLazy}from"./index-ddbd60b5.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var getDynamicImportFunction=function(e){return"__sc_import_".concat(e.replace(/\s|-/g,"_"))};var patchBrowser=function(){if(BUILD.isDev&&!BUILD.isTesting){consoleDevInfo("Running in development mode.")}if(BUILD.cssVarShim){plt.$cssShim$=win.__cssshim}if(BUILD.cloneNodeFix){patchCloneNodeFix(H.prototype)}if(BUILD.profile&&!performance.mark){performance.mark=performance.measure=function(){};performance.getEntriesByName=function(){return[]}}var e=BUILD.scriptDataOpts||BUILD.safari10||BUILD.dynamicImportShim?Array.from(doc.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(NAMESPACE,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===NAMESPACE})):null;var r=import.meta.url;var o=BUILD.scriptDataOpts?e["data-opts"]||{}:{};if(BUILD.safari10&&"onbeforeload"in e&&!history.scrollRestoration){return{then:function(){}}}if(!BUILD.safari10&&r!==""){o.resourcesUrl=new URL(".",r).href}else if(BUILD.dynamicImportShim||BUILD.safari10){o.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,win.location.href)).href;if(BUILD.dynamicImportShim){patchDynamicImport(o.resourcesUrl,e)}if(BUILD.dynamicImportShim&&!win.customElements){return import("./dom-4eeb3fee.js").then((function(){return o}))}}return promiseResolve(o)};var patchDynamicImport=function(e,r){var o=getDynamicImportFunction(NAMESPACE);try{win[o]=new Function("w","return import(w);//".concat(Math.random()))}catch(i){var t=new Map;win[o]=function(i){var a=new URL(i,e).href;var d=t.get(a);if(!d){var s=doc.createElement("script");s.type="module";s.crossOrigin=r.crossOrigin;s.src=URL.createObjectURL(new Blob(["import * as m from '".concat(a,"'; window.").concat(o,".m = m;")],{type:"application/javascript"}));d=new Promise((function(e){s.onload=function(){e(win[o].m);s.remove()}}));t.set(a,d);doc.head.appendChild(s)}return d}}};var patchCloneNodeFix=function(e){var r=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return r.call(this,e)}var o=r.call(this,false);var t=this.childNodes;if(e){for(var i=0;i<t.length;i++){if(t[i].nodeType!==2){o.appendChild(t[i].cloneNode(true))}}}return o}};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["verdocs-sign",[[0,"verdocs-sign",{documentid:[1],roleid:[1],invitecode:[1],endpoint:[32],recipient:[32],signerToken:[32],pdfUrl:[32],recipientIndex:[32],document:[32],fields:[32],pdfPageInfo:[32],hasSignature:[32],nextButtonLabel:[32],focusedField:[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{visible:[4],logo:[1],debug:[4],isAuthenticated:[32],displayMode:[32],username:[32],password:[32],loggingIn:[32],activeSession:[32],loginError:[32]}]]],["verdocs-search",[[0,"verdocs-search"]]],["verdocs-kba-dialog",[[0,"verdocs-kba-dialog",{step:[2],steps:[2],helptitle:[1],helptext:[1],mode:[1],label:[1],placeholder:[1],choices:[16],open:[4],response:[32]}]]],["verdocs-organization-card",[[0,"verdocs-organization-card",{organization:[16]}]]],["verdocs-quick-functions",[[0,"verdocs-quick-functions"]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{selected:[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],document:[16],isOpen:[32],recipientStatusIcons:[32]}]]],["verdocs-template-card",[[0,"verdocs-template-card",{template:[16]}]]],["verdocs-template-tags",[[0,"verdocs-template-tags",{tags:[16]}]]],["verdocs-toggle",[[0,"verdocs-toggle",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]],["verdocs-field-initial",[[0,"verdocs-field-initial",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}]]],["verdocs-field-signature",[[0,"verdocs-field-signature",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}]]],["verdocs-field-attachment",[[0,"verdocs-field-attachment",{order:[2],value:[1],required:[4],disabled:[4],focusField:[64]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],open:[4],cancel:[4]}]]],["verdocs-view",[[0,"verdocs-view",{rotation:[2],source:[1],token:[1],loadProgress:[32]}]]],["verdocs-dropdown",[[0,"verdocs-dropdown",{options:[16],open:[4],isOpen:[32]}]]],["verdocs-field-checkbox",[[0,"verdocs-field-checkbox",{order:[2],value:[4],required:[4],disabled:[4]}]]],["verdocs-field-date",[[0,"verdocs-field-date",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]],["verdocs-field-dropdown",[[0,"verdocs-field-dropdown",{options:[16],required:[4],order:[2],disabled:[4],value:[1],focused:[32],focusField:[64]}]]],["verdocs-field-payment",[[0,"verdocs-field-payment",{field:[16],fields:[16],pageNum:[2,"page-num"],roleName:[1,"role-name"],fieldId:[1,"field-id"],recipients:[8],selectedRoleName:[1,"selected-role-name"],pdfPages:[16],currentSignature:[1,"current-signature"],currentSignatureId:[1,"current-signature-id"],currentInitial:[1,"current-initial"],currentInitialId:[1,"current-initial-id"],focused:[4],signed:[4],preparedMessage:[32],signatureUrl:[32]}]]],["verdocs-field-radio-button",[[0,"verdocs-field-radio-button",{order:[2],checked:[4],value:[1],name:[1],required:[4],disabled:[4]}]]],["verdocs-field-textarea",[[0,"verdocs-field-textarea",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]],["verdocs-field-textbox",[[0,"verdocs-field-textbox",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]],["verdocs-search-activity",[[0,"verdocs-search-activity",{type:[1],options:[8],emptyMessage:[32],authFailure:[32],title:[32],recent:[32],saved:[32],starred:[32]}]]],["verdocs-search-box",[[0,"verdocs-search-box",{placeholder:[1],type:[1],query:[1]}]]],["verdocs-text-input",[[0,"verdocs-text-input",{value:[1],label:[1],placeholder:[1],autocomplete:[1],type:[1],disabled:[4],_value:[32]}]]],["verdocs-button",[[0,"verdocs-button",{label:[1],startIcon:[1,"start-icon"],endIcon:[1,"end-icon"],size:[1],type:[1],variant:[1],disabled:[4]}]]],["verdocs-initial-dialog",[[0,"verdocs-initial-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["verdocs-signature-dialog",[[0,"verdocs-signature-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["verdocs-upload-dialog",[[0,"verdocs-upload-dialog",{open:[4],draggingOver:[32],decodedFiles:[32]}]]],["verdocs-loader",[[0,"verdocs-loader"]]]],e)}));
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-859bc689.js";var patchBrowser=function(){var e=import.meta.url;var d={};if(e!==""){d.resourcesUrl=new URL(".",e).href}return promiseResolve(d)};patchBrowser().then((function(e){return bootstrapLazy([["verdocs-sign",[[0,"verdocs-sign",{documentid:[1],roleid:[1],invitecode:[1],endpoint:[32],recipient:[32],signerToken:[32],pdfUrl:[32],recipientIndex:[32],document:[32],fields:[32],pdfPageInfo:[32],hasSignature:[32],nextButtonLabel:[32],focusedField:[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{visible:[4],logo:[1],debug:[4],isAuthenticated:[32],displayMode:[32],username:[32],password:[32],loggingIn:[32],activeSession:[32],loginError:[32]}]]],["verdocs-search",[[0,"verdocs-search"]]],["verdocs-kba-dialog",[[0,"verdocs-kba-dialog",{step:[2],steps:[2],helptitle:[1],helptext:[1],mode:[1],label:[1],placeholder:[1],choices:[16],open:[4],response:[32]}]]],["verdocs-organization-card",[[0,"verdocs-organization-card",{organization:[16]}]]],["verdocs-quick-functions",[[0,"verdocs-quick-functions"]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{selected:[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],document:[16],isOpen:[32],recipientStatusIcons:[32]}]]],["verdocs-template-card",[[0,"verdocs-template-card",{template:[16]}]]],["verdocs-template-tags",[[0,"verdocs-template-tags",{tags:[16]}]]],["verdocs-toggle",[[0,"verdocs-toggle",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]],["verdocs-button_2",[[0,"verdocs-text-input",{value:[1],label:[1],placeholder:[1],autocomplete:[1],type:[1],disabled:[4],_value:[32]}],[0,"verdocs-button",{label:[1],startIcon:[1,"start-icon"],endIcon:[1,"end-icon"],size:[1],type:[1],variant:[1],disabled:[4]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],open:[4],cancel:[4]}]]],["verdocs-initial-dialog",[[0,"verdocs-initial-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["verdocs-signature-dialog",[[0,"verdocs-signature-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["verdocs-upload-dialog",[[0,"verdocs-upload-dialog",{open:[4],draggingOver:[32],decodedFiles:[32]}]]],["verdocs-search-activity_2",[[0,"verdocs-search-activity",{type:[1],options:[8],emptyMessage:[32],authFailure:[32],title:[32],recent:[32],saved:[32],starred:[32]}],[0,"verdocs-search-box",{placeholder:[1],type:[1],query:[1]}]]],["verdocs-loader",[[0,"verdocs-loader"]]],["verdocs-dropdown_12",[[0,"verdocs-field-initial",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}],[0,"verdocs-field-signature",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}],[0,"verdocs-field-attachment",{order:[2],value:[1],required:[4],disabled:[4],focusField:[64]}],[0,"verdocs-view",{rotation:[2],source:[1],token:[1],loadProgress:[32]}],[0,"verdocs-dropdown",{options:[16],open:[4],isOpen:[32]}],[0,"verdocs-field-checkbox",{order:[2],value:[4],required:[4],disabled:[4]}],[0,"verdocs-field-date",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}],[0,"verdocs-field-dropdown",{options:[16],required:[4],order:[2],disabled:[4],value:[1],focused:[32],focusField:[64]}],[0,"verdocs-field-payment",{field:[16],fields:[16],pageNum:[2,"page-num"],roleName:[1,"role-name"],fieldId:[1,"field-id"],recipients:[8],selectedRoleName:[1,"selected-role-name"],pdfPages:[16],currentSignature:[1,"current-signature"],currentSignatureId:[1,"current-signature-id"],currentInitial:[1,"current-initial"],currentInitialId:[1,"current-initial-id"],focused:[4],signed:[4],preparedMessage:[32],signatureUrl:[32]}],[0,"verdocs-field-radio-button",{order:[2],checked:[4],value:[1],name:[1],required:[4],disabled:[4]}],[0,"verdocs-field-textarea",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}],[0,"verdocs-field-textbox",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]]],e)}));
@@ -7,8 +7,10 @@ export interface IAuthStatus {
7
7
  /**
8
8
  * Display an authentication dialog that allows the user to login or sign up. Callbacks are provided for events that
9
9
  * occur during the process (especially successful completion). The success callback will be fired immediately if the
10
- * user is already authenticated with a valid session, so this component may not always display visibly. To simplify
11
- * some types of authentication flows, a visibility flag can force this component to never display.
10
+ * user is already authenticated with a valid session, so this component may not always display visibly.
11
+ *
12
+ * To simplify some types of authentication flows, a visibility flag can force this component to never display. This
13
+ * allows you to susbcribe to notifications from the
12
14
  *
13
15
  * This embed is responsive / mobile-friendly, but the calling application should provide at least a 300px wide
14
16
  * container to allow sufficient space for the required forms.
@@ -1 +0,0 @@
1
-
@@ -0,0 +1 @@
1
+ import{r as o,c as s,h as e,H as i}from"./p-2bc58746.js";const t=class{constructor(e){o(this,e),this.closed=s(this,"closed",7),this.heading="",this.message="",this.open=!1,this.cancel=!1}handleClose(o){this.closed.emit(o),this.open=!1}handleDismiss(o){"background-overlay"===o.target.className&&(o.preventDefault(),this.handleClose("cancel"))}render(){return e(i,{style:{display:this.open?"block":"none"}},e("div",{class:"background-overlay",onClick:o=>this.handleDismiss(o)},e("div",{class:"dialog"},e("div",{class:"heading"},this.heading),e("div",{class:"content"},this.message,e("div",{class:"buttons"},this.cancel?e("verdocs-button",{label:"CANCEL",variant:"outline",onPress:()=>this.handleClose("cancel")}):e("div",{style:{display:"none"}}),e("verdocs-button",{label:"OK",onPress:()=>this.handleClose("ok")}))))))}};t.style='verdocs-ok-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;background:#444444;padding:8px 16px;color:#ffffff}verdocs-ok-dialog .content{font-size:14px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';export{t as verdocs_ok_dialog}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-caed7818.system.js","./p-cec13589.system.js","./p-5dfd73f9.system.js"],(function(e){"use strict";var t,n,o,i,r,a,c,s;return{setters:[function(e){t=e.r;n=e.h;o=e.H},function(e){i=e.a;r=e.d;a=e.V;c=e.s},function(e){s=e.B}],execute:function(){function l(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function d(e,t){return e*t}var u=undefined&&undefined.__assign||function(){u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return u.apply(this,arguments)};var f=undefined&&undefined.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var p=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var h=function(e,t,n,o){return f(void 0,void 0,void 0,(function(){return p(this,(function(r){return[2,i().api.put("/documents/".concat(e,"/recipients/").concat(t),u({role_name:t,action:n},o||{})).then((function(e){return e.data}))]}))}))};var v=new RegExp(/\+[1-9]\d{6,14}/g);function g(e){return e!==null&&e.length<16&&e.length>6&&v.test(e)||e===""||e===null}var b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var x=function(e){return b.test(e)};var m=function(e){return g(e)};var y=undefined&&undefined.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var w=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var k=function(e){return y(void 0,void 0,void 0,(function(){return w(this,(function(t){return[2,i().api.get("/documents/".concat(e.documentId,"/recipients/").concat(encodeURIComponent(e.roleId),"/invitation/").concat(e.inviteCode)).then((function(e){var t,n;var o=((t=e.headers)===null||t===void 0?void 0:t.signer_token)||"";var a=r(o);i().setAuthorization((n=e.headers)===null||n===void 0?void 0:n.signer_token);return{recipient:e.data,session:a,signerToken:o}}))]}))}))};var _=function(e){return y(void 0,void 0,void 0,(function(){return w(this,(function(t){return[2,i().api.get("/documents/".concat(e)).then((function(e){return e.data}))]}))}))};var I=function(e,t){return y(void 0,void 0,void 0,(function(){return w(this,(function(n){return[2,i().api.get("/documents/".concat(e,"/envelope_documents/").concat(t,"?file=true"),{responseType:"arraybuffer"}).then((function(e){return s.from(e.data,"binary").toString("base64")}))]}))}))};var R=function(e,t,n){return y(void 0,void 0,void 0,(function(){return w(this,(function(o){return[2,i().api.put("/documents/".concat(e,"/fields/").concat(t),n).then((function(e){return e.data}))]}))}))};var S='verdocs-sign{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 20px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree-checkbox{-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;background:#ffffff;position:relative;margin:0 10px 0 30px}verdocs-sign .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign.agreed .intro{display:none}verdocs-sign.agreed .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign.agreed .agree-checkbox{background:#ccc}verdocs-sign.agreed .agree-checkbox label{cursor:default}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}';var C="https://stage-api.verdocs.com";var F=e("verdocs_sign",function(){function e(e){t(this,e);this.documentid=null;this.roleid=null;this.invitecode=null;this.endpoint=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}e.prototype.componentWillLoad=function(){var e=(new a).setBaseURL(C);c(e)};e.prototype.componentDidLoad=function(){return y(this,void 0,void 0,(function(){var e,t,n,o,r,a;var c=this;return w(this,(function(s){switch(s.label){case 0:s.trys.push([0,3,,4]);console.log("[SIGN] Processing invite code",this.documentid,this.roleid,this.invitecode);return[4,k({documentId:this.documentid,roleId:this.roleid,inviteCode:this.invitecode})];case 1:e=s.sent(),t=e.session,n=e.recipient,o=e.signerToken;console.log("[SIGN] Got signing session",t);console.log("[SIGN] Recipient",n);this.recipient=n;this.signerToken=o;i().setSigningAuthorization(o);if(this.recipient.agreed){this.nextButtonLabel="Next"}return[4,_(this.documentid)];case 2:r=s.sent();this.document=r;console.log("[SIGN] Document",r);this.pdfUrl="".concat(C,"/documents/").concat(this.documentid,"/envelope_documents/").concat(r.envelope_document_id,"?file=true");this.recipientIndex=this.document.recipients.findIndex((function(e){return e.role_name==c.roleid}));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((function(e){return e.recipient_role===c.roleid}));console.log("Loaded fields",this.fields);return[3,4];case 3:a=s.sent();console.log("Error with signing session",a);return[3,4];case 4:return[2]}}))}))};e.prototype.handleClickAgree=function(){var e=this;console.log("agree clicked");h(this.documentid,this.roleid,"update",{agreed:true}).then((function(t){console.log("update result",t);e.nextButtonLabel="Next";e.recipient=t})).catch((function(e){console.log("update failure",e)}))};e.prototype.savePDF=function(){return y(this,void 0,void 0,(function(){var e,t,n,o;return w(this,(function(i){switch(i.label){case 0:e="".concat(this.document.name," - ").concat(this.document.updated_at.split("T")[0],".pdf");return[4,I(this.documentid,this.document.envelope_document_id)];case 1:t=i.sent();n=new XMLHttpRequest;n.responseType="blob";n.onload=function(){var t=document.createElement("a");t.href=window.URL.createObjectURL(n.response);t.download=e;t.style.display="none";document.body.appendChild(t);t.click();t.remove()};o="data:application/pdf;base64,".concat(t);console.log("url",o.length,o);n.open("GET","data:application/pdf;base64,".concat(t));n.send();return[2]}}))}))};e.prototype.handleOptionSelected=function(e){return y(this,void 0,void 0,(function(){return w(this,(function(t){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((function(){}));break}return[2]}))}))};e.prototype.handleFieldChange=function(e,t,n){return y(this,void 0,void 0,(function(){var o;return w(this,(function(i){console.log("fieldChange",e,t.detail);switch(e.type){case"textbox":R(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"checkbox_group":R(this.documentid,e.name,{prepared:false,value:{options:[{id:n,checked:t.detail}]}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"radio_button_group":o=e.settings.options.map((function(e){return{id:e.id,selected:n===e.id}}));R(this.documentid,e.name,{prepared:false,value:{options:o}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"dropdown":R(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"initial":console.log("Got initial",t.detail);break;case"signature":console.log("Got signature",t.detail);break}return[2]}))}))};e.prototype.renderCheckboxGroupOption=function(e,t,o,i){var r=this;var a=d(e.xRatio,o.x);var c=d(e.yRatio,o.y);var s={left:"".concat(a,"px"),bottom:"".concat(c,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:l(this.recipientIndex)};return n("verdocs-field-checkbox",{style:s,order:i,value:o.checked,onFieldChange:function(e){return r.handleFieldChange(t,e,o.id)}})};e.prototype.renderRadioGroupOption=function(e,t,o,i){var r=this;var a=d(e.xRatio,o.x);var c=d(e.yRatio,o.y);var s={left:"".concat(a,"px"),bottom:"".concat(c,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:l(this.recipientIndex)};return n("verdocs-field-radio-button",{style:s,order:i,value:o.id,name:t.name,checked:o.selected,onFieldChange:function(e){return r.handleFieldChange(t,e,o.id)}})};e.prototype.renderField=function(e,t){var o=this;var i=e.required,r=i===void 0?false:i,a=e.settings,c=a===void 0?{}:a;var s=c.x,u=s===void 0?0:s,f=c.y,p=f===void 0?0:f,h=c.base64,v=h===void 0?"":h,g=c.placeholder,b=g===void 0?"":g,x=c.options,m=x===void 0?[]:x,y=c.value,w=y===void 0?"":y,k=c.result,_=k===void 0?"":k;var I=this.pdfPageInfo.pages.find((function(t){return t.pageNumber===e.page}));if(!I){console.log("Unable to render invalid field",e);return n("div",{class:"invalid-field"},"Invalid field.")}var R=d(I.xRatio,u);var S=d(I.yRatio,p);var C={left:"".concat(R,"px"),bottom:"".concat(S,"px"),position:"absolute",transform:"scale(".concat(I.xRatio,", ").concat(I.yRatio,")"),backgroundColor:e.settings.rgba||l(this.recipientIndex)};if(e.settings.height){C.height="".concat(e.settings.height,"px")}if(e.settings.width){C.width="".concat(e.settings.width,"px")}console.log("rendering field",e.type,e);var F="field-".concat(e.name);switch(e.type){case"signature":return n("verdocs-field-signature",{style:C,value:v,required:r,id:F});case"initial":return n("verdocs-field-initial",{style:C,required:r,id:F});case"textbox":return n("verdocs-field-textbox",{style:C,order:t,value:_||"",placeholder:b,id:F,onFieldChange:function(t){return o.handleFieldChange(e,t)}});case"textarea":return n("verdocs-field-textarea",{style:C,placeholder:b||"",id:F});case"date":return n("verdocs-field-date",{style:C,order:t,value:_||"",placeholder:b,required:r,id:F});case"dropdown":return n("verdocs-field-dropdown",{style:C,options:m,value:w,required:r,id:F,onFieldChange:function(t){return o.handleFieldChange(e,t)}});case"checkbox":return n("verdocs-field-checkbox",{style:C,value:_||"",id:F});case"checkbox_group":return e.settings.options.map((function(t,n){return o.renderCheckboxGroupOption(I,e,t,n)}));case"radio_button_group":return e.settings.options.map((function(t,n){return o.renderRadioGroupOption(I,e,t,n)}));case"attachment":return n("verdocs-field-attachment",{style:C,value:_||"",id:F});case"payment":return n("verdocs-field-payment",{style:C,field:e,id:F});default:console.log("[SIGN] Skipping unsupported field type",e)}return n("div",{style:{display:"none"}},'Unsupported field type "',e.type,'"')};e.prototype.isFieldValid=function(e){var t,n,o,i,r,a,c,s,l,d,u,f;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return x(((n=e.settings)===null||n===void 0?void 0:n.result)||"");case"phone":return m(((o=e.settings)===null||o===void 0?void 0:o.result)||"");default:return!!((i=e.settings)===null||i===void 0?void 0:i.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((r=e.settings)===null||r===void 0?void 0:r.result);case"dropdown":return!!((a=e.settings)===null||a===void 0?void 0:a.value);case"checkbox_group":var p=(((s=(c=e.settings)===null||c===void 0?void 0:c.options)===null||s===void 0?void 0:s.filter((function(e){return e.checked})))||[]).length;return p>=(((l=e.settings)===null||l===void 0?void 0:l.minimum_checked)||0)&&p<=(((d=e.settings)===null||d===void 0?void 0:d.maximum_checked)||999);case"radio_button_group":return(((f=(u=e.settings)===null||u===void 0?void 0:u.options)===null||f===void 0?void 0:f.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleDocumentRendered=function(e){console.log("[SIGN] Document rendered",e.detail);this.pdfPageInfo=e.detail};e.prototype.handleNext=function(){var e=this;var t=this.fields.filter((function(e){return e.required}));console.log("required Fields",t);var n=t.findIndex((function(t){return t.name===e.focusedField}));console.log("focused Index",n);var o=n+1;if(o>=t.length){o=0}var i=t[o];console.log("next required fielod",i);if(i){var r=document.getElementById("field-".concat(i.name));r===null||r===void 0?void 0:r.focusField();this.focusedField=i.name}};e.prototype.render=function(){var e=this;var t,i,r,a,c;var s=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return n(o,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(t=this.recipient)===null||t===void 0?void 0:t.agreed}},n("div",{class:"header"},n("div",{class:"intro"},"Please review and act on these documents."),n("div",{class:"toolbar"},n("div",{class:"tools"},n("verdocs-dropdown",{options:s,onOptionSelected:function(t){return e.handleOptionSelected(t)}}),!((i=this.recipient)===null||i===void 0?void 0:i.agreed)?n("div",{style:{flex:"1",flexDirection:"row",display:"flex",alignItems:"center"}},n("div",{class:"agree-checkbox"},n("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:function(){return e.handleClickAgree()}}),n("label",{htmlFor:"agree-checkbox-element"})),"I agree to use electronic records and signatures."):n("div",{style:{flex:"1"}}),n("verdocs-button",{label:this.nextButtonLabel,disabled:!((r=this.recipient)===null||r===void 0?void 0:r.agreed),onClick:function(){return e.handleNext()}})))),!((a=this.recipient)===null||a===void 0?void 0:a.agreed)?n("div",{class:"cover"}):n("div",{style:{display:"none"}}),n("div",{class:"document"},this.pdfUrl?n("verdocs-view",{source:this.pdfUrl,token:this.signerToken,onDocumentRendered:function(t){return e.handleDocumentRendered(t)}}):n("verdocs-loader",null),(((c=this.pdfPageInfo)===null||c===void 0?void 0:c.pages)||[]).map((function(t){var o;return n("div",{class:"page-controls",style:{height:"".concat(t.height,"px"),width:"".concat(t.width,"px"),top:"".concat(t.canvasTop,"px"),margin:"0 auto"}},((o=e.pdfPageInfo)===null||o===void 0?void 0:o.numRendered)>0?e.fields.filter((function(e){return e.page===t.pageNumber})).map((function(t,n){return e.renderField(t,n)})):n("div",{style:{display:"none"}},"Waiting for PDF to render..."))}))))};return e}());F.style=S}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-caed7818.system.js"],(function(e){"use strict";var m,a,b;return{setters:[function(e){m=e.r;a=e.h;b=e.H}],execute:function(){var r="verdocs-loader{display:block;position:absolute;top:50%;left:50%;margin-left:-20px;margin-top:-20px;font-size:24px;width:24px;height:24px;border-radius:50%;text-indent:-9999em;-webkit-animation:load5 1.1s infinite ease;animation:verdocs-loader-kf 1.1s infinite ease;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}@keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}";var g=e("verdocs_loader",function(){function e(e){m(this,e)}e.prototype.render=function(){return a(b,null)};return e}());g.style=r}}}));
@@ -0,0 +1 @@
1
+ import{r as t,h as n,H as i}from"./p-2bc58746.js";import{c as s}from"./p-4c66f794.js";const e={},r=[];function h(t,n){if(Array.isArray(t))for(const i of t)h(i,n);else if("object"!=typeof t)u(Object.getOwnPropertyNames(n)),e[t]=Object.assign(e[t]||{},n);else for(const n in t)h(n,t[n])}function o(t){return e[t]||{}}function u(t){r.push(...t)}function c(t,n){let i;const s=t.length,e=[];for(i=0;i<s;i++)e.push(n(t[i]));return e}function l(t,n){let i;const s=t.length,e=[];for(i=0;i<s;i++)n(t[i])&&e.push(t[i]);return e}function a(t){return t%360*Math.PI/180}function f(t){return t.toLowerCase().replace(/-(.)/g,(function(t,n){return n.toUpperCase()}))}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function C(t,n,i,s){return null!=n&&null!=i||(s=s||t.bbox(),null==n?n=s.width/s.height*i:null==i&&(i=s.height/s.width*n)),{width:n,height:i}}function w(t,n){const i=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!=i&&([s,e]=Array.isArray(i)?i:"object"==typeof i?[i.x,i.y]:[i,i]);const r="string"==typeof s,h="string"==typeof e;if(r||h){const{height:t,width:i,x:o,y:u}=n.bbox();r&&(s=s.includes("left")?o:s.includes("right")?o+i:o+i/2),h&&(e=e.includes("top")?u:e.includes("bottom")?u+t:u+t/2)}return[s,e]}const p="http://www.w3.org/2000/svg",g="http://www.w3.org/2000/xmlns/",m="http://www.w3.org/1999/xlink",y={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class x{}const v={},b="___SYMBOL___ROOT___";function M(t,n=p){return y.document.createElementNS(n,t)}function _(t,n=!1){if(t instanceof x)return t;if("object"==typeof t)return L(t);if(null==t)return new v[b];if("string"==typeof t&&"<"!==t.charAt(0))return L(y.document.querySelector(t));const i=n?y.document.createElement("div"):M("svg");return i.innerHTML=t,t=L(i.firstChild),i.removeChild(i.firstChild),t}function k(t,n){return n&&n.ownerDocument&&n instanceof n.ownerDocument.defaultView.Node?n:M(t)}function j(t){if(!t)return null;if(t.instance instanceof x)return t.instance;if("#document-fragment"===t.nodeName)return new v.Fragment(t);let n=d(t.nodeName||"Dom");return"LinearGradient"===n||"RadialGradient"===n?n="Gradient":v[n]||(n="Dom"),new v[n](t)}let L=j;function A(t,n=t.name,i=!1){return v[n]=t,i&&(v[b]=t),u(Object.getOwnPropertyNames(t.prototype)),t}let O=1e3;function E(t){return"Svgjs"+d(t)+O++}function V(t){for(let n=t.children.length-1;n>=0;n--)V(t.children[n]);return t.id?(t.id=E(t.nodeName),t):t}function T(t,n){let i,s;for(s=(t=Array.isArray(t)?t:[t]).length-1;s>=0;s--)for(i in n)t[s].prototype[i]=n[i]}function H(t){return function(...n){const i=n[n.length-1];return!i||i.constructor!==Object||i instanceof Array?t.apply(this,n):t.apply(this,n.slice(0,-1)).attr(i)}}h("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=_(t)).remove();const n=this.position();return this.parent().add(t,n),this},after:function(t){(t=_(t)).remove();const n=this.position();return this.parent().add(t,n+1),this},insertBefore:function(t){return(t=_(t)).before(this),this},insertAfter:function(t){return(t=_(t)).after(this),this}});const S=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,B=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,D=/rgb\((\d+),(\d+),(\d+)\)/,z=/(#[a-z_][a-z0-9\-_]*)/i,Z=/\)\s*,?\s*/,F=/\s/g,N=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,$=/^rgb\(/,P=/^(\s+)?$/,R=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,I=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Y=/[\s,]+/,G=/[MLHVCSQTAZ]/i;function X(t){const n=Math.round(t),i=Math.max(0,Math.min(255,n)).toString(16);return 1===i.length?"0"+i:i}function Q(t,n){for(let i=n.length;i--;)if(null==t[n[i]])return!1;return!0}function q(t,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(n-t)*i:i<.5?n:i<2/3?t+(n-t)*(2/3-i)*6:t}h("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Y)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const n=this.classes();n.push(t),this.attr("class",n.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(n){return n!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),h("Dom",{css:function(t,n){const i={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const n=t.split(/\s*:\s*/);i[n[0]]=n[1]})),i;if(arguments.length<2){if(Array.isArray(t)){for(const n of t){const t=f(n);i[n]=this.node.style[t]}return i}if("string"==typeof t)return this.node.style[f(t)];if("object"==typeof t)for(const n in t)this.node.style[f(n)]=null==t[n]||P.test(t[n])?"":t[n]}return 2===arguments.length&&(this.node.style[f(t)]=null==n||P.test(n)?"":n),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),h("Dom",{data:function(t,n,i){if(null==t)return this.data(c(l(this.node.attributes,(t=>0===t.nodeName.indexOf("data-"))),(t=>t.nodeName.slice(5))));if(t instanceof Array){const n={};for(const i of t)n[i]=this.data(i);return n}if("object"==typeof t)for(n in t)this.data(n,t[n]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(n){return this.attr("data-"+t)}else this.attr("data-"+t,null===n?null:!0===i||"string"==typeof n||"number"==typeof n?n:JSON.stringify(n));return this}}),h("Dom",{remember:function(t,n){if("object"==typeof arguments[0])for(const n in t)this.remember(n,t[n]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=n}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 U{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof U||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",n,i){const{random:s,round:e,sin:r,PI:h}=Math;if("vibrant"===t){const t=24*s()+57,n=38*s()+45,i=360*s();return new U(t,n,i,"lch")}if("sine"===t){const t=e(80*r(2*h*(n=null==n?s():n)/.5+.01)+150),i=e(50*r(2*h*n/.5+4.6)+200),o=e(100*r(2*h*n/.5+2.3)+150);return new U(t,i,o)}if("pastel"===t){const t=8*s()+86,n=17*s()+9,i=360*s();return new U(t,n,i,"lch")}if("dark"===t){const t=10+10*s(),n=50*s()+86,i=360*s();return new U(t,n,i,"lch")}if("rgb"===t){const t=255*s(),n=255*s(),i=255*s();return new U(t,n,i)}if("lab"===t){const t=100*s(),n=256*s()-128,i=256*s()-128;return new U(t,n,i,"lab")}if("grey"===t){const t=255*s();return new U(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(N.test(t)||$.test(t))}cmyk(){const{_a:t,_b:n,_c:i}=this.rgb(),[s,e,r]=[t,n,i].map((t=>t/255)),h=Math.min(1-s,1-e,1-r);return 1===h?new U(0,0,0,1,"cmyk"):new U((1-s-h)/(1-h),(1-e-h)/(1-h),(1-r-h)/(1-h),h,"cmyk")}hsl(){const{_a:t,_b:n,_c:i}=this.rgb(),[s,e,r]=[t,n,i].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 U(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,n=0,i=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:n,_c:i,_d:s,space:e});else if(t instanceof Array)this.space=n||("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 i=function(t,n){const i=Q(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:Q(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:Q(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:Q(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:Q(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:Q(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 i.space=n||i.space,i}(t,n);Object.assign(this,i)}else if("string"==typeof t)if($.test(t)){const n=t.replace(F,""),[i,s,e]=D.exec(n).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:i,_b:s,_c:e,_d:0,space:"rgb"})}else{if(!N.test(t))throw Error("Unsupported string format, can't construct Color");{const n=t=>parseInt(t,16),[,i,s,e]=B.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(n);Object.assign(this,{_a:i,_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:n,z:i}=this.xyz();return new U(116*n-16,500*(t-n),200*(n-i),"lab")}lch(){const{l:t,a:n,b:i}=this.lab(),s=Math.sqrt(n**2+i**2);let e=180*Math.atan2(i,n)/Math.PI;return e<0&&(e*=-1,e=360-e),new U(t,s,e,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:n,z:i}=this;if("lab"===this.space||"lch"===this.space){let{l:s,a:e,b:r}=this;if("lch"===this.space){const{c:t,h:n}=this,i=Math.PI/180;e=t*Math.cos(i*n),r=t*Math.sin(i*n)}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),n=1*(h**3>l?h**3:(h-c)/a),i=1.08883*(u**3>l?u**3:(u-c)/a)}const s=3.2406*t+-1.5372*n+-.4986*i,e=-.9689*t+1.8758*n+.0415*i,r=.0557*t+-.204*n+1.057*i,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 U(255*u,255*c,255*l)}if("hsl"===this.space){let{h:t,s:n,l:i}=this;if(t/=360,n/=100,i/=100,0===n)return i*=255,new U(i,i,i);const s=i<.5?i*(1+n):i+n-i*n,e=2*i-s,r=255*q(e,s,t+1/3),h=255*q(e,s,t),o=255*q(e,s,t-1/3);return new U(r,h,o)}if("cmyk"===this.space){const{c:t,m:n,y:i,k:s}=this,e=255*(1-Math.min(1,t*(1-s)+s)),r=255*(1-Math.min(1,n*(1-s)+s)),h=255*(1-Math.min(1,i*(1-s)+s));return new U(e,r,h)}return this;var t}toArray(){const{_a:t,_b:n,_c:i,_d:s,space:e}=this;return[t,n,i,s,e]}toHex(){const[t,n,i]=this._clamped().map(X);return`#${t}${n}${i}`}toRgb(){const[t,n,i]=this._clamped();return`rgb(${t},${n},${i})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:n,_c:i}=this.rgb(),[s,e,r]=[t,n,i].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,C=a>.008856?Math.pow(a,1/3):7.787*a+16/116;return new U(f,d,C,"xyz")}_clamped(){const{_a:t,_b:n,_c:i}=this.rgb(),{max:s,min:e,round:r}=Math;return[t,n,i].map((t=>s(0,e(r(t),255))))}}class J{constructor(...t){this.init(...t)}clone(){return new J(this)}init(t,n){const i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:n};return this.x=null==i.x?0:i.x,this.y=null==i.y?0:i.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){K.isMatrixLike(t)||(t=new K(t));const{x:n,y:i}=this;return this.x=t.a*n+t.c*i+t.e,this.y=t.b*n+t.d*i+t.f,this}}function W(t,n,i){return Math.abs(n-t)<(i||1e-6)}class K{constructor(...t){this.init(...t)}static formatTransforms(t){const n="both"===t.flip||!0===t.flip,i=t.flip&&(n||"x"===t.flip)?-1:1,s=t.flip&&(n||"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]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleX)?t.scaleX*i:i,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 J(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),a=l.x,f=l.y,d=new J(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),C=d.x,w=d.y,p=new J(t.translate||t.tx||t.translateX,t.ty||t.translateY),g=p.x,m=p.y,y=new J(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:C,py:w}}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,n,i){const s=t.b*n.a+t.d*n.b,e=t.a*n.c+t.c*n.d,r=t.b*n.c+t.d*n.d,h=t.e+t.a*n.e+t.c*n.f,o=t.f+t.b*n.e+t.d*n.f;return i.a=t.a*n.a+t.c*n.b,i.b=s,i.c=e,i.d=r,i.e=h,i.f=o,i}around(t,n,i){return this.clone().aroundO(t,n,i)}aroundO(t,n,i){const s=t||0,e=n||0;return this.translateO(-s,-e).lmultiplyO(i).translateO(s,e)}clone(){return new K(this)}decompose(t=0,n=0){const i=this.a,s=this.b,e=this.c,r=this.d,h=this.e,o=this.f,u=i*r-s*e,c=u>0?1:-1,l=c*Math.sqrt(i*i+s*s),a=Math.atan2(c*s,c*i),f=180/Math.PI*a,d=Math.cos(a),C=Math.sin(a),w=(i*e+s*r)/u,p=e*l/(w*i-s)||r*l/(w*s+i);return{scaleX:l,scaleY:p,shear:w,rotate:f,translateX:h-t+t*d*l+n*(w*d*l-C*p),translateY:o-n+t*C*l+n*(w*C*l+d*p),originX:t,originY:n,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 n=new K(t);return W(this.a,n.a)&&W(this.b,n.b)&&W(this.c,n.c)&&W(this.d,n.d)&&W(this.e,n.e)&&W(this.f,n.f)}flip(t,n){return this.clone().flipO(t,n)}flipO(t,n){return"x"===t?this.scaleO(-1,1,n,0):"y"===t?this.scaleO(1,-1,0,n):this.scaleO(-1,-1,t,n||t)}init(t){const n=K.fromArray([1,0,0,1,0,0]);return t=t instanceof xt?t.matrixify():"string"==typeof t?K.fromArray(t.split(Y).map(parseFloat)):Array.isArray(t)?K.fromArray(t):"object"==typeof t&&K.isMatrixLike(t)?t:"object"==typeof t?(new K).transform(t):6===arguments.length?K.fromArray([].slice.call(arguments)):n,this.a=null!=t.a?t.a:n.a,this.b=null!=t.b?t.b:n.b,this.c=null!=t.c?t.c:n.c,this.d=null!=t.d?t.d:n.d,this.e=null!=t.e?t.e:n.e,this.f=null!=t.f?t.f:n.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,n=this.b,i=this.c,s=this.d,e=this.e,r=this.f,h=t*s-n*i;if(!h)throw new Error("Cannot invert "+this);const o=s/h,u=-n/h,c=-i/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 n=t instanceof K?t:new K(t);return K.matrixMultiply(n,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const n=t instanceof K?t:new K(t);return K.matrixMultiply(this,n,this)}rotate(t,n,i){return this.clone().rotateO(t,n,i)}rotateO(t,n=0,i=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+i*e-n*s+n,this.f=l*s+c*e-n*e-i*s+i,this}scale(t,n,i,s){return this.clone().scaleO(...arguments)}scaleO(t,n=t,i=0,s=0){3===arguments.length&&(s=i,i=n,n=t);const{a:e,b:r,c:h,d:o,e:u,f:c}=this;return this.a=e*t,this.b=r*n,this.c=h*t,this.d=o*n,this.e=u*t-i*t+i,this.f=c*n-s*n+s,this}shear(t,n,i){return this.clone().shearO(t,n,i)}shearO(t,n=0,i=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-i*t,this}skew(t,n,i,s){return this.clone().skewO(...arguments)}skewO(t,n=t,i=0,s=0){3===arguments.length&&(s=i,i=n,n=t),t=a(t),n=a(n);const e=Math.tan(t),r=Math.tan(n),{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-i*r,this}skewX(t,n,i){return this.skew(t,0,n,i)}skewY(t,n,i){return this.skew(0,t,n,i)}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(K.isMatrixLike(t))return new K(t).multiplyO(this);const n=K.formatTransforms(t),{x:i,y:s}=new J(n.ox,n.oy).transform(this),e=(new K).translateO(n.rx,n.ry).lmultiplyO(this).translateO(-i,-s).scaleO(n.scaleX,n.scaleY).skewO(n.skewX,n.skewY).shearO(n.shear).rotateO(n.theta).translateO(i,s);if(isFinite(n.px)||isFinite(n.py)){const t=new J(i,s).transform(e),r=isFinite(n.px)?n.px-t.x:0,h=isFinite(n.py)?n.py-t.y:0;e.translateO(r,h)}return e.translateO(n.tx,n.ty),e}translate(t,n){return this.clone().translateO(t,n)}translateO(t,n){return this.e+=t||0,this.f+=n||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function tt(){if(!tt.nodes){const t=_().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 n=t.path().node;tt.nodes={svg:t,path:n}}return tt.nodes.svg.node.parentNode||tt.nodes.svg.addTo(y.document.body||y.document.documentElement),tt.nodes}function nt(t){return!(t.width||t.height||t.x||t.y)}A(K,"Matrix");class it{constructor(...t){this.init(...t)}addOffset(){return this.x+=y.window.pageXOffset,this.y+=y.window.pageYOffset,new it(this)}init(t){return t="string"==typeof t?t.split(Y).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 nt(this)}merge(t){const n=Math.min(this.x,t.x),i=Math.min(this.y,t.y),s=Math.max(this.x+this.width,t.x+t.width)-n,e=Math.max(this.y+this.height,t.y+t.height)-i;return new it(n,i,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 K||(t=new K(t));let n=1/0,i=-1/0,s=1/0,e=-1/0;return[new J(this.x,this.y),new J(this.x2,this.y),new J(this.x,this.y2),new J(this.x2,this.y2)].forEach((function(r){r=r.transform(t),n=Math.min(n,r.x),i=Math.max(i,r.x),s=Math.min(s,r.y),e=Math.max(e,r.y)})),new it(n,s,i-n,e-s)}}function st(t,n,i){let s;try{if(s=n(t.node),nt(s)&&(e=t.node)!==y.document&&!(y.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===y.document}).call(y.document.documentElement,e))throw new Error("Element not in the dom")}catch(n){s=i(t)}var e;return s}h({viewbox:{viewbox(t,n,i,s){return null==t?new it(this.attr("viewBox")):this.attr("viewBox",new it(t,n,i,s))},zoom(t,n){let{width:i,height:s}=this.attr(["width","height"]);if((i||s)&&"string"!=typeof i&&"string"!=typeof s||(i=this.node.clientWidth,s=this.node.clientHeight),!i||!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=i/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),n=n||new J(i/2/r+e.x,s/2/h+e.y);const c=new it(e).transform(new K({scale:u,origin:n}));return this.viewbox(c)}}}),A(it,"Box");class et extends Array{constructor(t=[],...n){if(super(t,...n),"number"==typeof t)return this;this.length=0,this.push(...t)}}T([et],{each(t,...n){return this.map("function"==typeof t?(n,i,s)=>t.call(n,n,i,s):i=>i[t](...n))},toArray(){return Array.prototype.concat.apply([],this)}});const rt=["toArray","constructor","each"];function ht(t,n){return new et(c((n||y.document).querySelectorAll(t),(function(t){return j(t)})))}et.extend=function(t){t=t.reduce(((t,n)=>(rt.includes(n)||"_"===n[0]||(t[n]=function(...t){return this.each(n,...t)}),t)),{}),T([et],t)};let ot=0;const ut={};function ct(t){let n=t.getEventHolder();return n===y.window&&(n=ut),n.events||(n.events={}),n.events}function lt(t){return t.getEventTarget()}function at(t,n,i,s,e){const r=i.bind(s||t),h=_(t),o=ct(h),u=lt(h);n=Array.isArray(n)?n:n.split(Y),i._svgjsListenerId||(i._svgjsListenerId=++ot),n.forEach((function(t){const n=t.split(".")[0],s=t.split(".")[1]||"*";o[n]=o[n]||{},o[n][s]=o[n][s]||{},o[n][s][i._svgjsListenerId]=r,u.addEventListener(n,r,e||!1)}))}function ft(t,n,i,s){const e=_(t),r=ct(e),h=lt(e);("function"!=typeof i||(i=i._svgjsListenerId))&&(n=Array.isArray(n)?n:(n||"").split(Y)).forEach((function(t){const n=t&&t.split(".")[0],o=t&&t.split(".")[1];let u,c;if(i)r[n]&&r[n][o||"*"]&&(h.removeEventListener(n,r[n][o||"*"][i],s||!1),delete r[n][o||"*"][i]);else if(n&&o){if(r[n]&&r[n][o]){for(c in r[n][o])ft(h,[n,o].join("."),c);delete r[n][o]}}else if(o)for(t in r)for(u in r[t])o===u&&ft(h,[t,o].join("."));else if(n){if(r[n]){for(u in r[n])ft(h,[n,u].join("."));delete r[n]}}else{for(t in r)ft(h,t);!function(t){let n=t.getEventHolder();n===y.window&&(n=ut),n.events&&(n.events={})}(e)}}))}class dt extends x{addEventListener(){}dispatch(t,n,i){return function(t,n,i,s){const e=lt(t);return n instanceof y.window.Event||(n=new y.window.CustomEvent(n,{detail:i,cancelable:!0,...s})),e.dispatchEvent(n),n}(this,t,n,i)}dispatchEvent(t){const n=this.getEventHolder().events;if(!n)return!0;const i=n[t.type];for(const n in i)for(const s in i[n])i[n][s](t);return!t.defaultPrevented}fire(t,n,i){return this.dispatch(t,n,i),this}getEventHolder(){return this}getEventTarget(){return this}off(t,n,i){return ft(this,t,n,i),this}on(t,n,i,s){return at(this,t,n,i,s),this}removeEventListener(){}}function Ct(){}A(dt,"EventTarget");const wt={"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 pt 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(Y).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 gt{constructor(...t){this.init(...t)}convert(t){return new gt(this.value,t)}divide(t){return t=new gt(t),new gt(this/t,this.unit||t.unit)}init(t,n){return n=Array.isArray(t)?t[1]:n,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=n||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(n=t.match(S))&&(this.value=parseFloat(n[1]),"%"===n[5]?this.value/=100:"s"===n[5]&&(this.value*=1e3),this.unit=n[5]):t instanceof gt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new gt(t),new gt(this-t,this.unit||t.unit)}plus(t){return t=new gt(t),new gt(this+t,this.unit||t.unit)}times(t){return t=new gt(t),new gt(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 mt=[];class yt extends dt{constructor(t,n){super(),this.node=t,this.type=t.nodeName,n&&t!==n&&this.attr(n)}add(t,n){return(t=_(t)).removeNamespace&&this.node instanceof y.window.SVGElement&&t.removeNamespace(),null==n?this.node.appendChild(t.node):t.node!==this.node.childNodes[n]&&this.node.insertBefore(t.node,this.node.childNodes[n]),this}addTo(t,n){return _(t).put(this,n)}children(){return new et(c(this.node.children,(function(t){return j(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0){return this.writeDataToDom(),new this.constructor(V(this.node.cloneNode(t)))}each(t,n){const i=this.children();let s,e;for(s=0,e=i.length;s<e;s++)t.apply(i[s],[s,i]),n&&i[s].each(t,n);return this}element(t,n){return this.put(new yt(M(t),n))}first(){return j(this.node.firstChild)}get(t){return j(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,n){return this.xml(t,n,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=E(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return j(this.node.lastChild)}matches(t){const n=this.node,i=n.matches||n.matchesSelector||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector||null;return i&&i.call(n,t)}parent(t){let n=this;if(!n.node.parentNode)return null;if(n=j(n.node.parentNode),!t)return n;do{if("string"==typeof t?n.matches(t):n instanceof t)return n}while(n=j(n.node.parentNode));return n}put(t,n){return t=_(t),this.add(t,n),t}putIn(t,n){return _(t).add(this,n)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=_(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,n=null){const i=10**t,s=this.attr(n);for(const t in s)"number"==typeof s[t]&&(s[t]=Math.round(s[t]*i)/i);return this.attr(s),this}svg(t,n){return this.xml(t,n,p)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const n=this.parent();if(!n)return this.addTo(t);const i=n.index(this);return n.put(t,i).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,n,i){if("boolean"==typeof t&&(i=n,n=t,t=null),null==t||"function"==typeof t){n=null==n||n,this.writeDataToDom();let i=this;if(null!=t){if(i=j(i.node.cloneNode(!0)),n){const n=t(i);if(i=n||i,!1===n)return""}i.each((function(){const n=t(this),i=n||this;!1===n?this.remove():n&&this!==i&&this.replace(i)}),!0)}return n?i.node.outerHTML:i.node.innerHTML}n=null!=n&&n;const s=M("wrapper",i),e=y.document.createDocumentFragment();s.innerHTML=t;for(let t=s.children.length;t--;)e.appendChild(s.firstElementChild);const r=this.parent();return n?this.replace(e)&&r:this.add(e)}}T(yt,{attr:function(t,n,i){if(null==t){t={},n=this.node.attributes;for(const i of n)t[i.nodeName]=R.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,n)=>(t[n]=this.attr(n),t)),{});if("object"==typeof t&&t.constructor===Object)for(n in t)this.attr(n,t[n]);else if(null===n)this.node.removeAttribute(t);else{if(null==n)return null==(n=this.node.getAttribute(t))?wt[t]:R.test(n)?parseFloat(n):n;"number"==typeof(n=mt.reduce(((n,i)=>i(t,n,this)),n))?n=new gt(n):U.isColor(n)?n=new U(n):n.constructor===Array&&(n=new pt(n)),"leading"===t?this.leading&&this.leading(n):"string"==typeof i?this.node.setAttributeNS(i,t,n.toString()):this.node.setAttribute(t,n.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ht(t,this.node)},findOne:function(t){return j(this.node.querySelector(t))}}),A(yt,"Dom");class xt extends yt{constructor(t,n){super(t,n),this.dom={},this.node.instance=this,t.hasAttribute("svgjs:data")&&this.setData(JSON.parse(t.getAttribute("svgjs:data"))||{})}center(t,n){return this.cx(t).cy(n)}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,n){return this.dx(t).dy(n)}dx(t=0){return this.x(new gt(t).plus(this.x()))}dy(t=0){return this.y(new gt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,n){return this.x(t).y(n)}parents(t=this.root()){const n="string"==typeof t;n||(t=_(t));const i=new et;let s=this;for(;(s=s.parent())&&s.node!==y.document&&"#document-fragment"!==s.nodeName&&(i.push(s),n||s.node!==t.node)&&(!n||!s.matches(t));)if(s.node===this.root().node)return null;return i}reference(t){if(!(t=this.attr(t)))return null;const n=(t+"").match(z);return n?_(n[1]):null}root(){const t=this.parent(v[b]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,n){const i=C(this,t,n);return this.width(new gt(i.width)).height(new gt(i.height))}width(t){return this.attr("width",t)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}T(xt,{bbox:function(){const t=st(this,(t=>t.getBBox()),(t=>{try{const n=t.clone().addTo(tt().svg).show(),i=n.node.getBBox();return n.remove(),i}catch(n){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${n.toString()}`)}}));return new it(t)},rbox:function(t){const n=st(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),i=new it(n);return t?i.transform(t.screenCTM().inverseO()):i.addOffset()},inside:function(t,n){const i=this.bbox();return t>i.x&&n>i.y&&t<i.x+i.width&&n<i.y+i.height},point:function(t,n){return new J(t,n).transform(this.screenCTM().inverse())},ctm:function(){return new K(this.node.getCTM())},screenCTM:function(){if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),n=t.node.getScreenCTM();return t.remove(),new K(n)}return new K(this.node.getScreenCTM())}}),A(xt,"Element");const vt={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,n){return"color"===n?t:t+"-"+n}};["fill","stroke"].forEach((function(t){const n={};let i;n[t]=function(n){if(void 0===n)return this.attr(t);if("string"==typeof n||n instanceof U||U.isRgb(n)||n instanceof xt)this.attr(t,n);else for(i=vt[t].length-1;i>=0;i--)null!=n[vt[t][i]]&&this.attr(vt.prefix(t,vt[t][i]),n[vt[t][i]]);return this},h(["Element","Runner"],n)})),h(["Element","Runner"],{matrix:function(t,n,i,s,e,r){return null==t?new K(this):this.attr("transform",new K(t,n,i,s,e,r))},rotate:function(t,n,i){return this.transform({rotate:t,ox:n,oy:i},!0)},skew:function(t,n,i,s){return this.transform(1===arguments.length||3===arguments.length?{skew:t,ox:n,oy:i}:{skew:[t,n],ox:i,oy:s},!0)},shear:function(t,n,i){return this.transform({shear:t,ox:n,oy:i},!0)},scale:function(t,n,i,s){return this.transform(1===arguments.length||3===arguments.length?{scale:t,ox:n,oy:i}:{scale:[t,n],ox:i,oy:s},!0)},translate:function(t,n){return this.transform({translate:[t,n]},!0)},relative:function(t,n){return this.transform({relative:[t,n]},!0)},flip:function(t="both",n="center"){return-1==="xybothtrue".indexOf(t)&&(n=t,t="both"),this.transform({flip:t,origin:n},!0)},opacity:function(t){return this.attr("opacity",t)}}),h("radius",{radius:function(t,n=t){return"radialGradient"===(this._element||this).type?this.attr("r",new gt(t)):this.rx(t).ry(n)}}),h("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new J(this.node.getPointAtLength(t))}}),h(["Element","Runner"],{font:function(t,n){if("object"==typeof t){for(n in t)this.font(n,t[n]);return this}return"leading"===t?this.leading(n):this.attr("anchor"===t?"text-anchor":"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?"font-"+t:t,n)}}),h("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(t,n){return t[n]=function(t){return null===t?this.off(n):this.on(n,t),this},t}),{})),h("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Z).slice(0,-1).map((function(t){const n=t.trim().split("(");return[n[0],n[1].split(Y).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,n){return"matrix"===n[0]?t.lmultiply(K.fromArray(n[1])):t[n[0]].apply(t,n[1])}),new K)},toParent:function(t,n){if(this===t)return this;const i=this.screenCTM(),s=t.screenCTM().inverse();return this.addTo(t,n).untransform().transform(s.multiply(i)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,n){if(null==t||"string"==typeof t){const n=new K(this).decompose();return null==t?n:n[t]}K.isMatrixLike(t)||(t={...t,origin:w(t,this)});const i=new K(!0===n?this:n||!1).transform(t);return this.attr("transform",i)}});class bt extends xt{flatten(t=this,n){return this.each((function(){if(this instanceof bt)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),n=t.index(this)){return n=-1===n?t.children().length:n,this.each((function(i,s){return s[s.length-i-1].toParent(t,n)})),this.remove()}}A(bt,"Container");class Mt extends bt{constructor(t,n=t){super(k("defs",t),n)}flatten(){return this}ungroup(){return this}}A(Mt,"Defs");class _t extends xt{}function kt(t){return this.attr("rx",t)}function jt(t){return this.attr("ry",t)}function Lt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function At(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ot(t){return this.attr("cx",t)}function Et(t){return this.attr("cy",t)}function Vt(t){return null==t?2*this.rx():this.rx(new gt(t).divide(2))}function Tt(t){return null==t?2*this.ry():this.ry(new gt(t).divide(2))}A(_t,"Shape");var Ht={__proto__:null,rx:kt,ry:jt,x:Lt,y:At,cx:Ot,cy:Et,width:Vt,height:Tt};class St extends _t{constructor(t,n=t){super(k("ellipse",t),n)}size(t,n){const i=C(this,t,n);return this.rx(new gt(i.width).divide(2)).ry(new gt(i.height).divide(2))}}T(St,Ht),h("Container",{ellipse:H((function(t=0,n=t){return this.put(new St).size(t,n).move(0,0)}))}),A(St,"Ellipse");class Bt extends yt{constructor(t=y.document.createDocumentFragment()){super(t)}xml(t,n,i){if("boolean"==typeof t&&(i=n,n=t,t=null),null==t||"function"==typeof t){const t=new yt(M("wrapper",i));return t.add(this.node.cloneNode(!0)),t.xml(!1,i)}return super.xml(t,!1,i)}}function Dt(t,n){return this.attr("radialGradient"===(this._element||this).type?{fx:new gt(t),fy:new gt(n)}:{x1:new gt(t),y1:new gt(n)})}function zt(t,n){return this.attr("radialGradient"===(this._element||this).type?{cx:new gt(t),cy:new gt(n)}:{x2:new gt(t),y2:new gt(n)})}A(Bt,"Fragment");var Zt={__proto__:null,from:Dt,to:zt};class Ft extends bt{constructor(t,n){super(k(t+"Gradient","string"==typeof t?null:t),n)}attr(t,n,i){return"transform"===t&&(t="gradientTransform"),super.attr(t,n,i)}bbox(){return new it}targets(){return ht('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()+'")'}}T(Ft,Zt),h({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:H((function(t,n){return this.put(new Ft(t)).update(n)}))}}),A(Ft,"Gradient");class Nt extends bt{constructor(t,n=t){super(k("pattern",t),n)}attr(t,n,i){return"transform"===t&&(t="patternTransform"),super.attr(t,n,i)}bbox(){return new it}targets(){return ht('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()+'")'}}h({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:H((function(t,n,i){return this.put(new Nt).update(i).attr({x:0,y:0,width:t,height:n,patternUnits:"userSpaceOnUse"})}))}}),A(Nt,"Pattern");class $t extends _t{constructor(t,n=t){super(k("image",t),n)}load(t,n){if(!t)return this;const i=new y.window.Image;return at(i,"load",(function(t){const s=this.parent(Nt);0===this.width()&&0===this.height()&&this.size(i.width,i.height),s instanceof Nt&&0===s.width()&&0===s.height()&&s.size(this.width(),this.height()),"function"==typeof n&&n.call(this,t)}),this),at(i,"load error",(function(){ft(i)})),this.attr("href",i.src=t,m)}}mt.push((function(t,n,i){return"fill"!==t&&"stroke"!==t||I.test(n)&&(n=i.root().defs().image(n)),n instanceof $t&&(n=i.root().defs().pattern(0,0,(t=>{t.add(n)}))),n})),h({Container:{image:H((function(t,n){return this.put(new $t).size(0,0).load(t,n)}))}}),A($t,"Image");class Pt extends pt{bbox(){let t=-1/0,n=-1/0,i=1/0,s=1/0;return this.forEach((function(e){t=Math.max(e[0],t),n=Math.max(e[1],n),i=Math.min(e[0],i),s=Math.min(e[1],s)})),new it(i,s,t-i,n-s)}move(t,n){const i=this.bbox();if(t-=i.x,n-=i.y,!isNaN(t)&&!isNaN(n))for(let i=this.length-1;i>=0;i--)this[i]=[this[i][0]+t,this[i][1]+n];return this}parse(t=[0,0]){const n=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Y).map(parseFloat)).length%2!=0&&t.pop();for(let i=0,s=t.length;i<s;i+=2)n.push([t[i],t[i+1]]);return n}size(t,n){let i;const s=this.bbox();for(i=this.length-1;i>=0;i--)s.width&&(this[i][0]=(this[i][0]-s.x)*t/s.width+s.x),s.height&&(this[i][1]=(this[i][1]-s.y)*n/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 n=0,i=this.length;n<i;n++)t.push(this[n].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){K.isMatrixLike(t)||(t=new K(t));for(let n=this.length;n--;){const[i,s]=this[n];this[n][0]=t.a*i+t.c*s+t.e,this[n][1]=t.b*i+t.d*s+t.f}return this}}var Rt={__proto__:null,MorphArray:Pt,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)},width:function(t){const n=this.bbox();return null==t?n.width:this.size(t,n.height)},height:function(t){const n=this.bbox();return null==t?n.height:this.size(n.width,t)}};class It extends _t{constructor(t,n=t){super(k("line",t),n)}array(){return new Pt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,n){return this.attr(this.array().move(t,n).toLine())}plot(t,n,i,s){return null==t?this.array():(t=void 0!==n?{x1:t,y1:n,x2:i,y2:s}:new Pt(t).toLine(),this.attr(t))}size(t,n){const i=C(this,t,n);return this.attr(this.array().size(i.width,i.height).toLine())}}T(It,Rt),h({Container:{line:H((function(...t){return It.prototype.plot.apply(this.put(new It),null!=t[0]?t:[0,0,0,0])}))}}),A(It,"Line");class Yt extends bt{constructor(t,n=t){super(k("marker",t),n)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,n){return this.attr("refX",t).attr("refY",n)}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 Gt(t,n){return function(i){return null==i?this[t]:(this[t]=i,n&&n.call(this),this)}}h({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:H((function(t,n,i){return this.put(new Yt).size(t,n).ref(t/2,n/2).viewbox(0,0,t,n).attr("orient","auto").update(i)}))},marker:{marker(t,n,i,s){let e=["marker"];return"all"!==t&&e.push(t),e=e.join("-"),t=arguments[1]instanceof Yt?arguments[1]:this.defs().marker(n,i,s),this.attr(e,t)}}}),A(Yt,"Marker");const Xt={"-":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,n,i,s){return function(e){return e<0?t>0?n/t*e:i>0?s/i*e:0:e>1?i<1?(1-s)/(1-i)*e+(s-i)/(1-i):t<1?(1-n)/(1-t)*e+(n-t)/(1-t):1:3*e*(1-e)**2*n+3*e**2*(1-e)*s+e**3}},steps:function(t,n="end"){n=n.split("-").reverse()[0];let i=t;return"none"===n?--i:"both"===n&&++i,(s,e=!1)=>{let r=Math.floor(s*t);const h=s*r%1==0;return"start"!==n&&"both"!==n||++r,e&&h&&--r,s>=0&&r<0&&(r=0),s<=1&&r>i&&(r=i),r/i}}};class Qt{done(){return!1}}class qt extends Qt{constructor(t=">"){super(),this.ease=Xt[t]||t}step(t,n,i){return"number"!=typeof t?i<1?t:n:t+(n-t)*this.ease(i)}}class Ut extends Qt{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,n,i,s){return this.stepper(t,n,i,s)}}function Jt(){const t=(this._duration||500)/1e3,n=Math.PI,i=Math.log((this._overshoot||0)/100+1e-10),s=-i/Math.sqrt(n*n+i*i),e=3.9/(s*t);this.d=2*s*e,this.k=e*e}T(class extends Ut{constructor(t=500,n=0){super(),this.duration(t).overshoot(n)}step(t,n,i,s){if("string"==typeof t)return t;if(s.done=i===1/0,i===1/0)return n;if(0===i)return t;i>100&&(i=16);const e=s.velocity||0,r=-this.d*e-this.k*(t-n),h=t+e*(i/=1e3)+r*i*i/2;return s.velocity=e+r*i,s.done=Math.abs(n-h)+Math.abs(e)<.002,s.done?n:h}},{duration:Gt("_duration",Jt),overshoot:Gt("_overshoot",Jt)}),T(class extends Ut{constructor(t=.1,n=.01,i=0,s=1e3){super(),this.p(t).i(n).d(i).windup(s)}step(t,n,i,s){if("string"==typeof t)return t;if(s.done=i===1/0,i===1/0)return n;if(0===i)return t;const e=n-t;let r=(s.integral||0)+e*i;const h=(e-(s.error||0))/i,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?n:t+(this.P*e+this.I*r+this.D*h)}},{windup:Gt("_windup"),p:Gt("P"),i:Gt("I"),d:Gt("D")});const Wt={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Kt={M:function(t,n,i){return n.x=i.x=t[0],n.y=i.y=t[1],["M",n.x,n.y]},L:function(t,n){return n.x=t[0],n.y=t[1],["L",t[0],t[1]]},H:function(t,n){return n.x=t[0],["H",t[0]]},V:function(t,n){return n.y=t[0],["V",t[0]]},C:function(t,n){return n.x=t[4],n.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,n){return n.x=t[2],n.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,n){return n.x=t[2],n.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,n){return n.x=t[0],n.y=t[1],["T",t[0],t[1]]},Z:function(t,n,i){return n.x=i.x,n.y=i.y,["Z"]},A:function(t,n){return n.x=t[5],n.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},tn="mlhvqtcsaz".split("");for(let t=0,n=tn.length;t<n;++t)Kt[tn[t]]=function(t){return function(n,i,s){if("H"===t)n[0]=n[0]+i.x;else if("V"===t)n[0]=n[0]+i.y;else if("A"===t)n[5]=n[5]+i.x,n[6]=n[6]+i.y;else for(let t=0,s=n.length;t<s;++t)n[t]=n[t]+(t%2?i.y:i.x);return Kt[t](n,i,s)}}(tn[t].toUpperCase());function nn(t){return t.segment.length&&t.segment.length-1===Wt[t.segment[0].toUpperCase()]}function sn(t,n){t.inNumber&&en(t,!1);const i=G.test(n);if(i)t.segment=[n];else{const n=t.lastCommand,i=n.toLowerCase(),s=n===i;t.segment=["m"===i?s?"l":"L":n]}return t.inSegment=!0,t.lastCommand=t.segment[0],i}function en(t,n){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=n,t.number="",t.pointSeen=!1,t.hasExponent=!1,nn(t)&&rn(t)}function rn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){return Kt[t.segment[0]](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function hn(t){if(!t.segment.length)return!1;const n="A"===t.segment[0].toUpperCase(),i=t.segment.length;return n&&(4===i||5===i)}function on(t){return"E"===t.lastToken.toUpperCase()}class un extends pt{bbox(){return tt().path.setAttribute("d",this.toString()),new it(tt.nodes.path.getBBox())}move(t,n){const i=this.bbox();if(t-=i.x,n-=i.y,!isNaN(t)&&!isNaN(n))for(let i,s=this.length-1;s>=0;s--)i=this[s][0],"M"===i||"L"===i||"T"===i?(this[s][1]+=t,this[s][2]+=n):"H"===i?this[s][1]+=t:"V"===i?this[s][1]+=n:"C"===i||"S"===i||"Q"===i?(this[s][1]+=t,this[s][2]+=n,this[s][3]+=t,this[s][4]+=n,"C"===i&&(this[s][5]+=t,this[s][6]+=n)):"A"===i&&(this[s][6]+=t,this[s][7]+=n);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,n=!0){let i=0,s="";const e={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:n,p0:new J,p:new J};for(;e.lastToken=s,s=t.charAt(i++);)if(e.inSegment||!sn(e,s))if("."!==s)if(isNaN(parseInt(s)))if(" "!==s&&","!==s)if("-"!==s)if("E"!==s.toUpperCase()){if(G.test(s)){if(e.inNumber)en(e,!1);else{if(!nn(e))throw new Error("parser Error");rn(e)}--i}}else e.number+=s,e.hasExponent=!0;else{if(e.inNumber&&!on(e)){en(e,!1),--i;continue}e.number+=s,e.inNumber=!0}else e.inNumber&&en(e,!1);else{if("0"===e.number||hn(e)){e.inNumber=!0,e.number=s,en(e,!0);continue}e.inNumber=!0,e.number+=s}else{if(e.pointSeen||e.hasExponent){en(e,!1),--i;continue}e.inNumber=!0,e.pointSeen=!0,e.number+=s}return e.inNumber&&en(e,!1),e.inSegment&&nn(e)&&rn(e),e.segments}(t)}size(t,n){const i=this.bbox();let s,e;for(i.width=0===i.width?1:i.width,i.height=0===i.height?1:i.height,s=this.length-1;s>=0;s--)e=this[s][0],"M"===e||"L"===e||"T"===e?(this[s][1]=(this[s][1]-i.x)*t/i.width+i.x,this[s][2]=(this[s][2]-i.y)*n/i.height+i.y):"H"===e?this[s][1]=(this[s][1]-i.x)*t/i.width+i.x:"V"===e?this[s][1]=(this[s][1]-i.y)*n/i.height+i.y:"C"===e||"S"===e||"Q"===e?(this[s][1]=(this[s][1]-i.x)*t/i.width+i.x,this[s][2]=(this[s][2]-i.y)*n/i.height+i.y,this[s][3]=(this[s][3]-i.x)*t/i.width+i.x,this[s][4]=(this[s][4]-i.y)*n/i.height+i.y,"C"===e&&(this[s][5]=(this[s][5]-i.x)*t/i.width+i.x,this[s][6]=(this[s][6]-i.y)*n/i.height+i.y)):"A"===e&&(this[s][1]=this[s][1]*t/i.width,this[s][2]=this[s][2]*n/i.height,this[s][6]=(this[s][6]-i.x)*t/i.width+i.x,this[s][7]=(this[s][7]-i.y)*n/i.height+i.y);return this}toString(){return function(t){let n="";for(let i=0,s=t.length;i<s;i++)n+=t[i][0],null!=t[i][1]&&(n+=t[i][1],null!=t[i][2]&&(n+=" ",n+=t[i][2],null!=t[i][3]&&(n+=" ",n+=t[i][3],n+=" ",n+=t[i][4],null!=t[i][5]&&(n+=" ",n+=t[i][5],n+=" ",n+=t[i][6],null!=t[i][7]&&(n+=" ",n+=t[i][7])))));return n+" "}(this)}}const cn=t=>{const n=typeof t;return"number"===n?gt:"string"===n?U.isColor(t)?U:Y.test(t)?G.test(t)?un:pt:S.test(t)?gt:an:wn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?pt:"object"===n?Cn:an};class ln{constructor(t){this._stepper=t||new qt("-"),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,n){return t&&n}),!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(cn(t));let n=new this._type(t);return this._type===U&&(n=this._to?n[this._to[4]]():this._from?n[this._from[4]]():n),this._type===Cn&&(n=this._to?n.align(this._to):this._from?n.align(this._from):n),n=n.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(n.length)).map(Object).map((function(t){return t.done=!0,t})),n}}class an{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 fn{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,fn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}fn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const dn=(t,n)=>t[0]<n[0]?-1:t[0]>n[0]?1:0;class Cn{constructor(...t){this.init(...t)}align(t){const n=this.values;for(let i=0,s=n.length;i<s;++i){if(n[i+1]===t[i+1]){if(n[i+1]===U&&t[i+7]!==n[i+7]){const n=t[i+7],s=new U(this.values.splice(i+3,5))[n]().toArray();this.values.splice(i+3,0,...s)}i+=n[i+2]+2;continue}if(!t[i+1])return this;const s=(new t[i+1]).toArray();n.splice(i,n[i+2]+3,t[i],t[i+1],t[i+2],...s),i+=n[i+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const n=[];for(const i in t){const s=cn(t[i]),e=new s(t[i]).toArray();n.push([i,s,e.length,...e])}return n.sort(dn),this.values=n.reduce(((t,n)=>t.concat(n)),[]),this}toArray(){return this.values}valueOf(){const t={},n=this.values;for(;n.length;){const i=n.shift(),s=n.shift(),e=n.shift(),r=n.splice(0,e);t[i]=new s(r)}return t}}const wn=[an,fn,Cn];class pn extends _t{constructor(t,n=t){super(k("path",t),n)}array(){return this._array||(this._array=new un(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,n){return this.attr("d",this.array().move(t,n))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new un(t))}size(t,n){const i=C(this,t,n);return this.attr("d",this.array().size(i.width,i.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)}}pn.prototype.MorphArray=un,h({Container:{path:H((function(t){return this.put(new pn).plot(t||new un)}))}}),A(pn,"Path");var gn={__proto__:null,array:function(){return this._array||(this._array=new Pt(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,n){return this.attr("points",this.array().move(t,n))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Pt(t))},size:function(t,n){const i=C(this,t,n);return this.attr("points",this.array().size(i.width,i.height))}};class mn extends _t{constructor(t,n=t){super(k("polygon",t),n)}}h({Container:{polygon:H((function(t){return this.put(new mn).plot(t||new Pt)}))}}),T(mn,Rt),T(mn,gn),A(mn,"Polygon");class yn extends _t{constructor(t,n=t){super(k("polyline",t),n)}}h({Container:{polyline:H((function(t){return this.put(new yn).plot(t||new Pt)}))}}),T(yn,Rt),T(yn,gn),A(yn,"Polyline");class xn extends _t{constructor(t,n=t){super(k("rect",t),n)}}T(xn,{rx:kt,ry:jt}),h({Container:{rect:H((function(t,n){return this.put(new xn).size(t,n)}))}}),A(xn,"Rect");class vn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const n=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(n.prev=this._last,this._last.next=n,this._last=n):(this._last=n,this._first=n),n}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 bn={nextDraw:null,frames:new vn,timeouts:new vn,immediates:new vn,timer:()=>y.window.performance||y.window.Date,transforms:[],frame(t){const n=bn.frames.push({run:t});return null===bn.nextDraw&&(bn.nextDraw=y.window.requestAnimationFrame(bn._draw)),n},timeout(t,n){n=n||0;const i=bn.timer().now()+n,s=bn.timeouts.push({run:t,time:i});return null===bn.nextDraw&&(bn.nextDraw=y.window.requestAnimationFrame(bn._draw)),s},immediate(t){const n=bn.immediates.push(t);return null===bn.nextDraw&&(bn.nextDraw=y.window.requestAnimationFrame(bn._draw)),n},cancelFrame(t){null!=t&&bn.frames.remove(t)},clearTimeout(t){null!=t&&bn.timeouts.remove(t)},cancelImmediate(t){null!=t&&bn.immediates.remove(t)},_draw(t){let n=null;const i=bn.timeouts.last();for(;(n=bn.timeouts.shift())&&(t>=n.time?n.run():bn.timeouts.push(n),n!==i););let s=null;const e=bn.frames.last();for(;s!==e&&(s=bn.frames.shift());)s.run(t);let r=null;for(;r=bn.immediates.shift();)r();bn.nextDraw=bn.timeouts.first()||bn.frames.first()?y.window.requestAnimationFrame(bn._draw):null}},Mn=function(t){const n=t.start,i=t.runner.duration();return{start:n,duration:i,end:n+i,runner:t.runner}},_n=function(){const t=y.window;return(t.performance||t.Date).now()};class kn extends dt{constructor(t=_n){super(),this._timeSource=t,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)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),n=t?t.runner.duration():0;return(t?t.start:this._time)+n}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 n=this.speed();if(null==t)return this.speed(-n);const i=Math.abs(n);return this.speed(t?-i:i)}schedule(t,n,i){if(null==t)return this._runners.map(Mn);let s=0;const e=this.getEndTime();if(n=n||0,null==i||"last"===i||"after"===i)s=e;else if("absolute"===i||"start"===i)s=n,n=0;else if("now"===i)s=this._time;else if("relative"===i){const i=this.getRunnerInfoById(t.id);i&&(s=i.start+n,n=0)}else{if("with-last"!==i)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+n,runner:t};return this._lastRunnerId=t.id,this._runners.push(h),this._runners.sort(((t,n)=>t.start-n.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 n=this._runnerIds.indexOf(t.id);return n<0||(this._runners.splice(n,1),this._runnerIds.splice(n,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return bn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=bn.frame(this._step)),this)}_stepFn(t=!1){const n=this._timeSource();let i=n-this._lastSourceTime;t&&(i=0);const s=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=n,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 n=this._runners[t],i=n.runner;this._time-n.start<=0&&i.reset()}let e=!1;for(let t=0,n=this._runners.length;t<n;t++){const i=this._runners[t],r=i.runner;let h=s;const o=this._time-i.start;o<=0?e=!0:(o<h&&(h=o),r.active()&&(r.step(h).done?!0!==i.persist&&r.duration()-r.time()+this._time+i.persist<this._time&&(r.unschedule(),--t,--n):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}}h({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new kn,this._timeline):(this._timeline=t,this)}}});class jn extends dt{constructor(t){super(),this.id=jn.id++,t="function"==typeof(t=null==t?400:t)?new Ut(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof Ut,this._stepper=this._isDeclarative?t:new qt,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new K,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,n,i){let s=1,e=!1,r=0;return n=n||0,i=i||"last","object"!=typeof(t=t||400)||t instanceof Qt||(n=t.delay||n,i=t.when||i,e=t.swing||e,s=t.times||s,r=t.wait||r,t=t.duration||400),{duration:t,delay:n,swing:e,times:s,wait:r,when:i}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t,n){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,n,i){const s=jn.sanitise(t,n,i),e=new jn(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 K,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 qt(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,n,i){return"object"==typeof t&&(n=t.swing,i=t.wait,t=t.times),this._times=t||1/0,this._swing=n||!1,this._wait=i||0,!0===this._times&&(this._times=1/0),this}loops(t){const n=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/n);return Math.min(t+(this._time-t*n)/this._duration,this._times)}const i=Math.floor(t);return this.time(n*i+this._duration*(t%1))}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const n=this._time,i=this._duration,s=this._wait,e=this._swing,r=this._reverse;let h;if(null==t){const t=function(t){const n=e*Math.floor(t%(2*(s+i))/(s+i)),h=n&&!r||!n&&r,o=Math.pow(-1,h)*(t%(s+i))/i+h;return Math.max(Math.min(o,1),0)},o=this._times*(s+i)-s;return h=n<=0?Math.round(t(1e-5)):n<o?t(n):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,n,i,s){return this._queue.push({initialiser:t||Ct,runner:n||Ct,retarget:i,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,n,i){if(t instanceof kn||(i=n,n=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,n,i),this}step(t){if(!this.enabled)return this;this._time+=t=null==t?16:t;const n=this.position(),i=this._lastPosition!==n&&this._time>=0;this._lastPosition=n;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(i||h)&&(this._initialise(i),this.transforms=new K,o=this._run(h?t:n),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 n=0,i=this._queue.length;n<i;++n){const i=this._queue[n],s=this._isDeclarative||!i.initialised&&t;t=!i.finished,s&&t&&(i.initialiser.call(this),i.initialised=!0)}}_rememberMorpher(t,n){if(this._history[t]={morpher:n,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let n=!0;for(let i=0,s=this._queue.length;i<s;++i){const s=this._queue[i],e=s.runner.call(this,t);s.finished=s.finished||!0===e,n=n&&s.finished}return n}_tryRetarget(t,n,i){if(this._history[t]){if(!this._history[t].caller.initialised){const n=this._queue.indexOf(this._history[t].caller);return this._queue.splice(n,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,n,i):this._history[t].morpher.to(n),this._history[t].caller.finished=!1;const s=this.timeline();return s&&s.play(),!0}return!1}}jn.id=0;class Ln{constructor(t=new K,n=-1,i=!0){this.transforms=t,this.id=n,this.done=i}clearTransformsFromQueue(){}}T([jn,Ln],{mergeWith(t){return new Ln(t.transforms.lmultiply(this.transforms),t.id)}});const An=(t,n)=>t.lmultiplyO(n),On=t=>t.transforms;function En(){const t=this._transformationRunners.runners.map(On).reduce(An,new K);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Vn{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const n=t.id+1;return this.runners.push(t),this.ids.push(n),this}clearBefore(t){const n=this.ids.indexOf(t+1)||1;return this.ids.splice(0,n,0),this.runners.splice(0,n,new Ln).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,n){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1,t+1),this.runners.splice(i,1,n),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let n=0;n<this.runners.length;++n){const i=this.runners[n];if(!(t&&i.done&&t.done)||i._timeline&&i._timeline._runnerIds.includes(i.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=i;else{this.remove(i.id);const s=i.mergeWith(t);this.edit(t.id,s),t=s,--n}}return this}remove(t){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1),this.runners.splice(n,1),this}}h({Element:{animate(t,n,i){const s=jn.sanitise(t,n,i),e=this.timeline();return new jn(s.duration).loop(s).element(this).timeline(e.play()).schedule(s.delay,s.when)},delay(t,n){return this.animate(0,t,n)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((n=>n.id<=t.id)).map(On).reduce(An,new K)},_addRunner(t){this._transformationRunners.add(t),bn.cancelImmediate(this._frameId),this._frameId=bn.immediate(En.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Vn).add(new Ln(new K(this))))}}}),T(jn,{attr(t,n){return this.styleAttr("attr",t,n)},css(t,n){return this.styleAttr("css",t,n)},styleAttr(t,n,i){if("string"==typeof n)return this.styleAttr(t,{[n]:i});let s=n;if(this._tryRetarget(t,s))return this;let e=new ln(this._stepper).to(s),r=Object.keys(s);return this.queue((function(){e=e.from(this.element()[t](r))}),(function(n){return this.element()[t](e.at(n).valueOf()),e.done()}),(function(n){const i=Object.keys(n),h=(o=r,i.filter((t=>!o.includes(t))));var o;if(h.length){const n=this.element()[t](h),i=new Cn(e.from()).valueOf();Object.assign(i,n),e.from(i)}const u=new Cn(e.to()).valueOf();Object.assign(u,n),e.to(u),r=i,s=n})),this._rememberMorpher(t,e),this},zoom(t,n){if(this._tryRetarget("zoom",t,n))return this;let i=new ln(this._stepper).to(new gt(t));return this.queue((function(){i=i.from(this.element().zoom())}),(function(t){return this.element().zoom(i.at(t),n),i.done()}),(function(t,s){n=s,i.to(t)})),this._rememberMorpher("zoom",i),this},transform(t,n,i){if(n=t.relative||n,this._isDeclarative&&!n&&this._tryRetarget("transform",t))return this;const s=K.isMatrixLike(t);i=null!=t.affine?t.affine:null!=i?i:!s;const e=new ln(this._stepper).type(i?fn:K);let r,h,o,u,c;return this.queue((function(){h=h||this.element(),r=r||w(t,h),c=new K(n?void 0:h),h._addRunner(this),n||h._clearTransformRunnersBefore(this)}),(function(l){n||this.clearTransform();const{x:a,y:f}=new J(r).transform(h._currentTransform(this));let d=new K({...t,origin:[a,f]}),C=this._isDeclarative&&o?o:c;if(i){d=d.decompose(a,f),C=C.decompose(a,f);const t=d.rotate,n=C.rotate,i=[t-360,t,t+360],s=i.map((t=>Math.abs(t-n))),e=Math.min(...s),r=s.indexOf(e);d.rotate=i[r]}n&&(s||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(C.rotate=u)),e.from(C),e.to(d);const w=e.at(l);return u=w.rotate,o=new K(w),this.addTransform(o),h._addRunner(this),e.done()}),(function(n){(n.origin||"center").toString()!==(t.origin||"center").toString()&&(r=w(n,h)),t={...n,origin:r}}),!0),this._isDeclarative&&this._rememberMorpher("transform",e),this},x(t,n){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,n){return this.dx(t).dy(n)},_queueNumberDelta(t,n){if(n=new gt(n),this._tryRetarget(t,n))return this;const i=new ln(this._stepper).to(n);let s=null;return this.queue((function(){s=this.element()[t](),i.from(s),i.to(s+n)}),(function(n){return this.element()[t](i.at(n)),i.done()}),(function(t){i.to(s+new gt(t))})),this._rememberMorpher(t,i),this},_queueObject(t,n){if(this._tryRetarget(t,n))return this;const i=new ln(this._stepper).to(n);return this.queue((function(){i.from(this.element()[t]())}),(function(n){return this.element()[t](i.at(n)),i.done()})),this._rememberMorpher(t,i),this},_queueNumber(t,n){return this._queueObject(t,new gt(n))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,n){return this.x(t).y(n)},center(t,n){return this.cx(t).cy(n)},size(t,n){let i;return t&&n||(i=this._element.bbox()),t||(t=i.width/i.height*n),n||(n=i.height/i.width*t),this.width(t).height(n)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,n,i,s){if(4===arguments.length)return this.plot([t,n,i,s]);if(this._tryRetarget("plot",t))return this;const e=new ln(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,n,i,s){return this._queueObject("viewbox",new it(t,n,i,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)}}),T(jn,{rx:kt,ry:jt,from:Dt,to:zt}),A(jn,"Runner");class Tn extends bt{constructor(t,n=t){super(k("svg",t),n),this.namespace()}defs(){return this.isRoot()?j(this.node.querySelector("defs"))||this.put(new Mt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof y.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:p,version:"1.1"}).attr("xmlns:xlink",m,g).attr("xmlns:svgjs","http://svgjs.dev/svgjs",g):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,g).attr("xmlns:svgjs",null,g)}root(){return this.isRoot()?this:super.root()}}h({Container:{nested:H((function(){return this.put(new Tn)}))}}),A(Tn,"Svg",!0);class Hn extends bt{constructor(t,n=t){super(k("symbol",t),n)}}h({Container:{symbol:H((function(){return this.put(new Hn)}))}}),A(Hn,"Symbol");var Sn={__proto__:null,plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(y.document.createTextNode(t)),this},length:function(){return this.node.getComputedTextLength()},x:function(t,n=this.bbox()){return null==t?n.x:this.attr("x",this.attr("x")+t-n.x)},y:function(t,n=this.bbox()){return null==t?n.y:this.attr("y",this.attr("y")+t-n.y)},move:function(t,n,i=this.bbox()){return this.x(t,i).y(n,i)},cx:function(t,n=this.bbox()){return null==t?n.cx:this.attr("x",this.attr("x")+t-n.cx)},cy:function(t,n=this.bbox()){return null==t?n.cy:this.attr("y",this.attr("y")+t-n.cy)},center:function(t,n,i=this.bbox()){return this.cx(t,i).cy(n,i)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},amove:function(t,n){return this.ax(t).ay(n)},build:function(t){return this._build=!!t,this}};class Bn extends _t{constructor(t,n=t){super(k("text",t),n),this.dom.leading=new gt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new gt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let n=0;const i=this.dom.leading;this.each((function(s){const e=y.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=i*new gt(e);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?n+=r:(this.attr("dy",s?r+n:0),n=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new gt(t.leading||1.3),this}text(t){if(void 0===t){const n=this.node.childNodes;let i=0;t="";for(let s=0,e=n.length;s<e;++s)"textPath"!==n[s].nodeName?(s!==i&&3!==n[s].nodeType&&!0===j(n[s]).dom.newLined&&(t+="\n"),t+=n[s].textContent):0===s&&(i=1);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let n=0,i=(t=(t+"").split("\n")).length;n<i;n++)this.newLine(t[n]);return this.build(!1).rebuild()}}T(Bn,Sn),h({Container:{text:H((function(t=""){return this.put(new Bn).text(t)})),plain:H((function(t=""){return this.put(new Bn).plain(t)}))}}),A(Bn,"Text");class Dn extends _t{constructor(t,n=t){super(k("tspan",t),n),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 Bn))return this;const n=t.index(this),i=y.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=t.dom.leading*new gt(i);return this.dy(n?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)}}T(Dn,Sn),h({Tspan:{tspan:H((function(t=""){const n=new Dn;return this._build||this.clear(),this.put(n).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),A(Dn,"Tspan");class zn extends _t{constructor(t,n=t){super(k("circle",t),n)}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 gt(t).divide(2))}}T(zn,{x:Lt,y:At,cx:Ot,cy:Et,width:Vt,height:Tt}),h({Container:{circle:H((function(t=0){return this.put(new zn).size(t).move(0,0)}))}}),A(zn,"Circle");class Zn extends bt{constructor(t,n=t){super(k("clipPath",t),n)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ht('svg [clip-path*="'+this.id()+'"]')}}h({Container:{clip:H((function(){return this.defs().put(new Zn)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const n=t instanceof Zn?t:this.parent().clip().add(t);return this.attr("clip-path",'url("#'+n.id()+'")')},unclip(){return this.attr("clip-path",null)}}}),A(Zn,"ClipPath");class Fn extends xt{constructor(t,n=t){super(k("foreignObject",t),n)}}h({Container:{foreignObject:H((function(t,n){return this.put(new Fn).size(t,n)}))}}),A(Fn,"ForeignObject");var Nn={__proto__:null,dmove:function(t,n){return this.children().forEach((i=>{let s;try{s=i.bbox()}catch(t){return}const e=new K(i),r=e.translate(t,n).transform(e.inverse()),h=new J(s.x,s.y).transform(r);i.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,n=this.bbox()){return null==t?n.height:this.size(n.width,t,n)},move:function(t=0,n=0,i=this.bbox()){return this.dmove(t-i.x,n-i.y)},size:function(t,n,i=this.bbox()){const s=C(this,t,n,i),e=s.width/i.width,r=s.height/i.height;return this.children().forEach((t=>{const n=new J(i).transform(new K(t).inverse());t.scale(e,r,n.x,n.y)})),this},width:function(t,n=this.bbox()){return null==t?n.width:this.size(t,n.height,n)},x:function(t,n=this.bbox()){return null==t?n.x:this.move(t,n.y,n)},y:function(t,n=this.bbox()){return null==t?n.y:this.move(n.x,t,n)}};class $n extends bt{constructor(t,n=t){super(k("g",t),n)}}T($n,Nn),h({Container:{group:H((function(){return this.put(new $n)}))}}),A($n,"G");class Pn extends bt{constructor(t,n=t){super(k("a",t),n)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,m)}}T(Pn,Nn),h({Container:{link:H((function(t){return this.put(new Pn).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const n=t.parent();if(!n)return this.remove();const i=n.index(t);return n.add(this,i),t.remove(),this},linkTo(t){let n=this.linker();return n||(n=new Pn,this.wrap(n)),"function"==typeof t?t.call(n,n):n.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),A(Pn,"A");class Rn extends bt{constructor(t,n=t){super(k("mask",t),n)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ht('svg [mask*="'+this.id()+'"]')}}h({Container:{mask:H((function(){return this.defs().put(new Rn)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const n=t instanceof Rn?t:this.parent().mask().add(t);return this.attr("mask",'url("#'+n.id()+'")')},unmask(){return this.attr("mask",null)}}}),A(Rn,"Mask");class In extends xt{constructor(t,n=t){super(k("stop",t),n)}update(t){return("number"==typeof t||t instanceof gt)&&(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 gt(t.offset)),this}}h({Gradient:{stop:function(t,n,i){return this.put(new In).update(t,n,i)}}}),A(In,"Stop");class Yn extends xt{constructor(t,n=t){super(k("style",t),n)}addText(t=""){return this.node.textContent+=t,this}font(t,n,i={}){return this.rule("@font-face",{fontFamily:t,src:n,...i})}rule(t,n){return this.addText(function(t,n){if(!t)return"";if(!n)return t;let i=t+"{";for(const t in n)i+=t.replace(/([A-Z])/g,(function(t,n){return"-"+n.toLowerCase()}))+":"+n[t]+";";return i+="}",i}(t,n))}}h("Dom",{style(t,n){return this.put(new Yn).rule(t,n)},fontface(t,n,i){return this.put(new Yn).font(t,n,i)}}),A(Yn,"Style");class Gn extends Bn{constructor(t,n=t){super(k("textPath",t),n)}array(){const t=this.track();return t?t.array():null}plot(t){const n=this.track();let i=null;return n&&(i=n.plot(t)),null==t?i:this}track(){return this.reference("href")}}h({Container:{textPath:H((function(t,n){return t instanceof Bn||(t=this.text(t)),t.path(n)}))},Text:{path:H((function(t,n=!0){const i=new Gn;let s;if(t instanceof pn||(t=this.defs().path(t)),i.attr("href","#"+t,m),n)for(;s=this.node.firstChild;)i.node.appendChild(s);return this.put(i)})),textPath(){return this.findOne("textPath")}},Path:{text:H((function(t){return t instanceof Bn||(t=(new Bn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ht("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Gn.prototype.MorphArray=un,A(Gn,"TextPath");class Xn extends _t{constructor(t,n=t){super(k("use",t),n)}use(t,n){return this.attr("href",(n||"")+"#"+t,m)}}h({Container:{use:H((function(t,n){return this.put(new Xn).use(t,n)}))}}),A(Xn,"Use");const Qn=_;function qn(){let t,n={entities:[]},i=[];function s(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function e(t,n){const i=t.entity.attr("width"),s=t.entity.attr("x");switch(n){case"top":case"bottom":return s+i/2;default:return s-i/2}}function r(t,n){const i=t.entity.attr("height"),s=t.entity.attr("y");switch(n){case"top":return s;case"bottom":return s+i;default:return s}}function h(){t.entities.forEach((t=>t.remove())),t.entities=[],i=[],n.labels||(n.labels=[]),n.labels=n.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"}))),n.entities.map((t=>{t.type=t.type?t.type:"entity","operation"===t.type&&(t.height=t.width)})),n.labels&&n.labels.length>0&&n.labels.forEach((n=>{t.labels.text(n.value).x(n.x).y(n.y)})),n.entities.forEach((n=>function(t,n){const i=t.group().attr({id:n.id});t.entities.push(i),n.background_color=n.background_color?n.background_color:"#f06",n.color=n.color?n.color:"#ffffff",n.radius=n.radius?n.radius:0,i.entity=i.rect(n.width,n.height).cx(n.width/2).cy(n.height/2).attr({fill:"#ffffff",stroke:n.color,"stroke-width":2}).radius(n.radius),n.class&&i.entity.attr("class",n.class),i.plain(n.text).cx(14).cy(n.height/2+6).attr({fill:n.color}),i.move(n.x,n.y)}(t,n))),i=n.lines,function(t,n){n.forEach((n=>function(t,n){let i="";const h=n.color||"#4c56cb",o=t.findOne("#"+n.from.element),u=t.findOne("#"+n.to.element),c=function(t,n,i){const h=[],o=r(n,t.from.point),u=r(i,t.to.point),c=e(n,t.from.point),l=e(i,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}(n,o,u);i+=e(o,n.from.point)+","+r(o,n.from.point)+" ",c.forEach((t=>i+=t.x+","+t.y+" ")),i+=e(u,n.to.point)+","+r(u,n.to.point)+" ",n.polyline?n.polyline.plot(i):n.polyline=t.lines.polyline(i).fill("none").stroke({color:h,width:2,linecap:"round",linejoin:"round"}).attr("id",n.id)}(t,n)))}(t,i)}return{initalize:function(n,i,s){t=Qn().addTo(n).size(i,s),t.entities=[],t.lines=t.group(),t.labels=t.group()},update:function(t){n=t,h()}}}T([Tn,Hn,$t,Nt,Yt],o("viewbox")),T([It,yn,mn,pn],o("marker")),T(Bn,o("Text")),T(pn,o("Path")),T(Mt,o("Defs")),T([Bn,Dn],o("Tspan")),T([xn,St,Ft,jn],o("radius")),T(dt,o("EventTarget")),T(yt,o("Dom")),T(xt,o("Element")),T(_t,o("Shape")),T([bt,Bt],o("Container")),T(Ft,o("Gradient")),T(jn,o("Runner")),et.extend([...new Set(r)]),function(t=[]){wn.push(...[].concat(t))}([gt,U,it,K,pt,Pt,un,J]),T(wn,{to(t){return(new ln).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,n,i,s,e){return this.fromArray(t.map((function(t,r){return s.step(t,n[r],i,e[r],e)})))}});const Un='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n',Jn='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n',Wn=class{constructor(n){t(this,n),this.size="normal",this.theme="light",this.recipientStatusIcons=[]}componentDidLoad(){var t;if(this.popper=s(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]}),null===(t=this.document)||void 0===t?void 0:t.recipients){const t=[];this.document.recipients.forEach((n=>{const i=n.sequence-1;t[i]||(t[i]=[]);const s=`r-${i}-${t[i].length}`;t[i].push({...n,id:s})}));const n=Object.keys(t).length,i=40*n+40*(n+1);let s=0;Object.values(t).forEach((t=>{let n=140*t.length+40*(t.length+1);n>s&&(s=n)}));const e=[],r=[],h=[];let o=40;Object.entries(t).forEach((([n,i])=>{const u=20+(s-180*i.length)/2;i.forEach(((i,s)=>{var c;const[l,a]=(i.full_name||"Unknown").toUpperCase().split(" "),f=`${l} ${null==a?void 0:a.substring(0,1)}`,d={id:i.id,text:f,icon:this.getStatusIcon(i.status),x:180*s+u,y:o,width:140,height:40,color:this.getStatusColor(i.status),radius:8};e.push(d),h.push({icon:this.getStatusIcon(i.status),x:180*s+u+108,y:o+20-13}),null===(c=t[+n-1])||void 0===c||c.forEach((t=>{const n={id:`line-${t.id}-${d.id}`,from:{element:t.id,point:"bottom"},to:{element:d.id,point:"top"},color:this.getStatusColor(i.status)};r.push(n)}))})),o+=80})),this.recipientStatusIcons=h;const u=qn();u.initalize("#verdocs-recipient-status-diagram",s,i),u.update({entities:e,lines:r})}}showDropdown(){var t,n;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===(n=this.popper)||void 0===n||n.update()}handleHideDropdown(t){var n,i;"button"===(null===(n=null==t?void 0:t.target)||void 0===n?void 0:n.localName)&&"arrow"===(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.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";case"canceled":case"in progress":case"pending":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">\n<circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/>\n<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"/>\n</svg>\n':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/>\n<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"/>\n</svg>\n';case"complete":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n';case"in progress":return"light"===this.theme?Un:Jn;case"canceled":return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n';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">\n<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"/>\n</svg>\n':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n';case"invited":return"light"===this.theme?Un:Jn;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">\n<circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/>\n<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"/>\n</svg>\n':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/>\n<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"/>\n</svg>\n';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">\n<circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/>\n<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"/>\n</svg>\n':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/>\n<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"/>\n</svg>\n';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">\n<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"/>\n</svg>\n':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n';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">\n<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"/>\n</svg>\n':'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n';default:case"pending":return"light"===this.theme?'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<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"/>\n</svg>\n'}}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";default:case"pending":return"Pending"}}render(){var t,s;let e=this.status||(null===(t=this.document)||void 0===t?void 0:t.status)||"pending";if(!this.status&&(null===(s=this.document)||void 0===s?void 0:s.recipients)){const t=this.document.recipients.filter((t=>"submitted"===t.status));t.length>0&&t.length!==this.document.recipients.length&&(e="some-signed")}const r=this.getStatusIcon(e),h=this.getStatusMessage(e);return n(i,{ref:t=>this.summaryComponent=t,class:`${this.theme} ${this.size} ${this.document?"has-document":""}`,"aria-label":"Click to View Details",onClick:()=>this.document&&this.toggleDropdown(),onBlur:t=>this.document&&this.handleHideDropdown(t)},n("span",{class:"icon",innerHTML:r}),n("span",{class:"content"},h),n("div",{class:"detail-panel",ref:t=>this.detailPanel=t},n("div",{id:"verdocs-recipient-status-diagram"}),this.recipientStatusIcons.map((t=>n("span",{innerHTML:t.icon,style:{position:"absolute",top:`${t.y}px`,left:`${t.x}px`}})))))}};Wn.style='verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding:4px 12px;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"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 -4px 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 -4px 0}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{Wn as verdocs_status_indicator}
@@ -0,0 +1 @@
1
+ System.register(["./p-caed7818.system.js"],(function(t){"use strict";var e,l,o;return{setters:[function(t){e=t.r;l=t.h;o=t.H}],execute:function(){var a='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var n='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var s='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var i='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_31553_1553)">\n<path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/>\n</g>\n<defs>\n<clipPath id="clip0_31553_1553">\n<rect width="30" height="29" fill="white" transform="translate(0.886719)"/>\n</clipPath>\n</defs>\n</svg>\n';var r='verdocs-template-card{font-family:"Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var c=t("verdocs_template_card",function(){function t(t){e(this,t)}t.prototype.render=function(){var t,e,r,c,p;return l(o,null,l("img",{src:((e=(t=this.template)===null||t===void 0?void 0:t.template_document)===null||e===void 0?void 0:e.thumbnail_url)||"",alt:"Template Thumbnail",class:"thumbnail"}),l("span",{class:"name"},this.template.name),l("span",{class:"org-name"},((r=this.template.organization)===null||r===void 0?void 0:r.name)||"Public"),l("hr",null),l("div",{class:"controls"},l("div",{class:"control"},l("span",{class:"icon",innerHTML:i}),l("span",{class:"value"},this.template.star_counter)),l("div",{class:"control secondary"},l("span",{class:"icon",innerHTML:s}),l("span",{class:"value"},((p=(c=this.template)===null||c===void 0?void 0:c.template_document)===null||p===void 0?void 0:p.page_numbers)||1)),l("div",{class:"control secondary"},l("span",{class:"icon",innerHTML:n}),l("span",{class:"value"},this.template.counter)),l("span",{class:"additional-controls",innerHTML:a})))};return t}());c.style=r}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-caed7818.system.js","./p-8730dc92.system.js","./p-cec13589.system.js","./p-5dfd73f9.system.js"],(function(t){"use strict";var e,n,s,i,o,a,r,l,u;return{setters:[function(t){e=t.r;n=t.c;s=t.h},function(t){i=t.l;o=t.a;a=t.s;r=t.e},function(t){l=t.V;u=t.s},function(){}],execute:function(){var d='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;background-color:#4c56cb;padding:40px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .login-form,verdocs-auth .signup-form{background:#f5f5fa;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}';var c="https://stage-api.verdocs.com/";var g="verdocs-stage";var h=t("verdocs_auth",function(){function t(t){e(this,t);this.authenticated=n(this,"authenticated",7);this.visible=true;this.logo="https://verdocs.com/assets/blue-logo.svg";this.debug=false;this.isAuthenticated=false;this.displayMode="login";this.username="";this.password="";this.loggingIn=false;this.activeSession=null;this.loginError=null}t.prototype.componentWillLoad=function(){var t=(new l).setBaseURL(c);u(t)};t.prototype.componentDidLoad=function(){var t=i(g);if(t!==null){this.isAuthenticated=true;this.activeSession=t;this.authenticated.emit({authenticated:true,session:t})}else{this.authenticated.emit({authenticated:false,session:null})}};t.prototype.handleLogin=function(){var t=this;this.loggingIn=true;o({username:this.username,password:this.password}).then((function(e){t.loggingIn=false;var n=a(g,e.accessToken,true);t.activeSession=n;t.isAuthenticated=true;t.authenticated.emit({authenticated:true,session:n})})).catch((function(e){var n;console.log("[VERDOCS] Login error",e.response,JSON.stringify(e));t.loggingIn=false;t.activeSession=null;t.authenticated.emit({authenticated:false,session:null});if(((n=e===null||e===void 0?void 0:e.response)===null||n===void 0?void 0:n.status)===403){t.loginError="Please check your username and password and try again."}}))};t.prototype.handleLogout=function(){r(g);this.isAuthenticated=false;this.authenticated.emit({authenticated:false,session:null})};t.prototype.handleClearError=function(){this.loginError=null};t.prototype.render=function(){var t=this;if(!this.visible){return s("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}if(this.isAuthenticated){if(this.debug){return s("div",{class:"status-result debug"},s("verdocs-button",{label:"Logout",disabled:this.loggingIn,onPress:function(){return t.handleLogout()}}))}return s("div",{class:"status-result"},"Authenticated")}if(this.displayMode==="signup"){return s("div",{class:"signup-form"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),s("h3",null,"Sign up for an account"),s("h4",null,"Already have an account?",s("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return t.displayMode="login"},disabled:this.loggingIn})),s("form",{onSubmit:function(){return t.handleLogin()}},s("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(e){return t.username=e.detail},disabled:this.loggingIn}),s("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(e){return t.password=e.detail},disabled:this.loggingIn}),s("verdocs-button",{label:"Signup",disabled:this.loggingIn,onPress:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}return s("div",{class:"login-form"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),s("h3",null,"Log in to your account"),s("h4",null,"Don't have an account?",s("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn})),s("form",{onSubmit:function(){return t.handleLogin()}},s("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(e){return t.username=e.detail},disabled:this.loggingIn}),s("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(e){return t.password=e.detail},disabled:this.loggingIn}),s("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),s("verdocs-button",{label:"Login",disabled:this.loggingIn,onPress:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?s("verdocs-ok-dialog",{open:true,heading:"Login Error",message:this.loginError,onClosed:function(){return t.handleClearError()}}):s("div",null))};return t}());h.style=d}}}));