@verdocs/web-sdk 5.0.49 → 5.0.51

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 (508) hide show
  1. package/dist/cjs/{index-01ae8e85.js → index-2b9aa26f.js} +213 -133
  2. package/dist/cjs/index-2b9aa26f.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  5. package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-button_2.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-checkbox_6.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-date-input.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-envelope-recipient-link.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-sign.cjs.entry.js +48 -45
  32. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  33. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-switch.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-table.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-template-create.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  43. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
  46. package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
  47. package/dist/collection/collection-manifest.json +1 -1
  48. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +48 -46
  49. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  50. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +1 -1
  51. package/dist/components/index.js +1 -1
  52. package/dist/components/{p-06bacd3b.js → p-03b81b12.js} +2 -2
  53. package/dist/components/{p-06bacd3b.js.map → p-03b81b12.js.map} +1 -1
  54. package/dist/components/{p-acb41a2e.js → p-062e67e6.js} +2 -2
  55. package/dist/components/{p-acb41a2e.js.map → p-062e67e6.js.map} +1 -1
  56. package/dist/components/{p-4a4de8d8.js → p-07214348.js} +11 -11
  57. package/dist/components/{p-4a4de8d8.js.map → p-07214348.js.map} +1 -1
  58. package/dist/components/{p-4fb8b22d.js → p-15ac7314.js} +10 -10
  59. package/dist/components/{p-4fb8b22d.js.map → p-15ac7314.js.map} +1 -1
  60. package/dist/components/{p-9c650a78.js → p-1c3c3f01.js} +11 -11
  61. package/dist/components/{p-9c650a78.js.map → p-1c3c3f01.js.map} +1 -1
  62. package/dist/components/{p-a5c69199.js → p-200b75fc.js} +3 -3
  63. package/dist/components/{p-a5c69199.js.map → p-200b75fc.js.map} +1 -1
  64. package/dist/components/{p-cf95858b.js → p-207fff69.js} +11 -11
  65. package/dist/components/{p-cf95858b.js.map → p-207fff69.js.map} +1 -1
  66. package/dist/components/{p-1f51246d.js → p-20f1beff.js} +198 -136
  67. package/dist/components/p-20f1beff.js.map +1 -0
  68. package/dist/components/{p-ef2df3fa.js → p-27f3b733.js} +2 -2
  69. package/dist/components/{p-ef2df3fa.js.map → p-27f3b733.js.map} +1 -1
  70. package/dist/components/{p-8e44cb14.js → p-31e18593.js} +4 -4
  71. package/dist/components/{p-8e44cb14.js.map → p-31e18593.js.map} +1 -1
  72. package/dist/components/{p-968df95c.js → p-43fb3b33.js} +27 -27
  73. package/dist/components/{p-968df95c.js.map → p-43fb3b33.js.map} +1 -1
  74. package/dist/components/{p-a8f59e9d.js → p-44712551.js} +11 -11
  75. package/dist/components/{p-a8f59e9d.js.map → p-44712551.js.map} +1 -1
  76. package/dist/components/{p-18086502.js → p-44853d05.js} +6 -6
  77. package/dist/components/{p-18086502.js.map → p-44853d05.js.map} +1 -1
  78. package/dist/components/{p-ed777fb7.js → p-4b831194.js} +3 -3
  79. package/dist/components/{p-ed777fb7.js.map → p-4b831194.js.map} +1 -1
  80. package/dist/components/{p-96774726.js → p-4f96a7dc.js} +2 -2
  81. package/dist/components/{p-96774726.js.map → p-4f96a7dc.js.map} +1 -1
  82. package/dist/components/{p-1d98c6e0.js → p-50bc76e3.js} +2 -2
  83. package/dist/components/{p-1d98c6e0.js.map → p-50bc76e3.js.map} +1 -1
  84. package/dist/components/{p-497ceba2.js → p-53900f81.js} +2 -2
  85. package/dist/components/{p-497ceba2.js.map → p-53900f81.js.map} +1 -1
  86. package/dist/components/{p-71b30a91.js → p-571fe280.js} +13 -13
  87. package/dist/components/{p-71b30a91.js.map → p-571fe280.js.map} +1 -1
  88. package/dist/components/{p-84929e4a.js → p-5d0a3040.js} +2 -2
  89. package/dist/components/{p-84929e4a.js.map → p-5d0a3040.js.map} +1 -1
  90. package/dist/components/{p-4fff9f15.js → p-62c5c0fe.js} +11 -11
  91. package/dist/components/{p-4fff9f15.js.map → p-62c5c0fe.js.map} +1 -1
  92. package/dist/components/{p-1354c984.js → p-6a4881ef.js} +2 -2
  93. package/dist/components/{p-1354c984.js.map → p-6a4881ef.js.map} +1 -1
  94. package/dist/components/{p-0d7860de.js → p-73ed27aa.js} +5 -5
  95. package/dist/components/{p-0d7860de.js.map → p-73ed27aa.js.map} +1 -1
  96. package/dist/components/{p-f5ccf125.js → p-77b37d23.js} +2 -2
  97. package/dist/components/{p-f5ccf125.js.map → p-77b37d23.js.map} +1 -1
  98. package/dist/components/{p-01c8196b.js → p-7957064d.js} +6 -6
  99. package/dist/components/{p-01c8196b.js.map → p-7957064d.js.map} +1 -1
  100. package/dist/components/{p-728ec158.js → p-7b258587.js} +3 -3
  101. package/dist/components/{p-728ec158.js.map → p-7b258587.js.map} +1 -1
  102. package/dist/components/{p-cb2e0f23.js → p-7cfaefe1.js} +2 -2
  103. package/dist/components/{p-cb2e0f23.js.map → p-7cfaefe1.js.map} +1 -1
  104. package/dist/components/{p-2b0d2fbd.js → p-8203a6af.js} +5 -5
  105. package/dist/components/{p-2b0d2fbd.js.map → p-8203a6af.js.map} +1 -1
  106. package/dist/components/{p-39480096.js → p-82c79267.js} +2 -2
  107. package/dist/components/{p-39480096.js.map → p-82c79267.js.map} +1 -1
  108. package/dist/components/{p-83ecee53.js → p-83430ada.js} +2 -2
  109. package/dist/components/{p-83ecee53.js.map → p-83430ada.js.map} +1 -1
  110. package/dist/components/{p-bcbe0f6b.js → p-843f0198.js} +12 -12
  111. package/dist/components/{p-bcbe0f6b.js.map → p-843f0198.js.map} +1 -1
  112. package/dist/components/{p-fcfbb327.js → p-937de867.js} +9 -9
  113. package/dist/components/{p-fcfbb327.js.map → p-937de867.js.map} +1 -1
  114. package/dist/components/{p-6507fba9.js → p-998e0ccd.js} +8 -8
  115. package/dist/components/{p-6507fba9.js.map → p-998e0ccd.js.map} +1 -1
  116. package/dist/components/{p-2985ae11.js → p-a45f6086.js} +2 -2
  117. package/dist/components/{p-2985ae11.js.map → p-a45f6086.js.map} +1 -1
  118. package/dist/components/{p-f303f8bf.js → p-a61ffe46.js} +4 -4
  119. package/dist/components/{p-f303f8bf.js.map → p-a61ffe46.js.map} +1 -1
  120. package/dist/components/{p-008472ce.js → p-a7f85081.js} +6 -6
  121. package/dist/components/{p-008472ce.js.map → p-a7f85081.js.map} +1 -1
  122. package/dist/components/{p-c5fc58ab.js → p-b61d0bd7.js} +4 -4
  123. package/dist/components/{p-c5fc58ab.js.map → p-b61d0bd7.js.map} +1 -1
  124. package/dist/components/{p-3d027cc9.js → p-ba5ba657.js} +2 -2
  125. package/dist/components/{p-3d027cc9.js.map → p-ba5ba657.js.map} +1 -1
  126. package/dist/components/{p-4bcb364c.js → p-bae61eb2.js} +2 -2
  127. package/dist/components/{p-4bcb364c.js.map → p-bae61eb2.js.map} +1 -1
  128. package/dist/components/{p-d5eae4db.js → p-bbf082ec.js} +2 -2
  129. package/dist/components/{p-d5eae4db.js.map → p-bbf082ec.js.map} +1 -1
  130. package/dist/components/{p-73629a90.js → p-c0e75957.js} +2 -2
  131. package/dist/components/{p-73629a90.js.map → p-c0e75957.js.map} +1 -1
  132. package/dist/components/{p-1c5981db.js → p-cd5b046b.js} +3 -3
  133. package/dist/components/{p-1c5981db.js.map → p-cd5b046b.js.map} +1 -1
  134. package/dist/components/{p-7f6c97d5.js → p-cd8c3571.js} +2 -2
  135. package/dist/components/{p-7f6c97d5.js.map → p-cd8c3571.js.map} +1 -1
  136. package/dist/components/{p-162ae711.js → p-d666322a.js} +11 -11
  137. package/dist/components/{p-162ae711.js.map → p-d666322a.js.map} +1 -1
  138. package/dist/components/{p-e098ba1d.js → p-d9fd90cc.js} +8 -8
  139. package/dist/components/{p-e098ba1d.js.map → p-d9fd90cc.js.map} +1 -1
  140. package/dist/components/{p-ec06fbd7.js → p-db50e7f0.js} +3 -3
  141. package/dist/components/{p-ec06fbd7.js.map → p-db50e7f0.js.map} +1 -1
  142. package/dist/components/{p-02f67734.js → p-debf0a8a.js} +2 -2
  143. package/dist/components/{p-02f67734.js.map → p-debf0a8a.js.map} +1 -1
  144. package/dist/components/{p-c696e5d7.js → p-e8f6e5b7.js} +9 -9
  145. package/dist/components/{p-c696e5d7.js.map → p-e8f6e5b7.js.map} +1 -1
  146. package/dist/components/{p-3077aff3.js → p-e90316c8.js} +12 -12
  147. package/dist/components/{p-3077aff3.js.map → p-e90316c8.js.map} +1 -1
  148. package/dist/components/{p-d47ac4f2.js → p-f1ccb5e1.js} +11 -11
  149. package/dist/components/{p-d47ac4f2.js.map → p-f1ccb5e1.js.map} +1 -1
  150. package/dist/components/{p-515f8afb.js → p-f3d501b9.js} +10 -10
  151. package/dist/components/{p-515f8afb.js.map → p-f3d501b9.js.map} +1 -1
  152. package/dist/components/{p-956fb355.js → p-f9789855.js} +26 -26
  153. package/dist/components/{p-956fb355.js.map → p-f9789855.js.map} +1 -1
  154. package/dist/components/{p-c83a272f.js → p-ffa430d4.js} +25 -25
  155. package/dist/components/{p-c83a272f.js.map → p-ffa430d4.js.map} +1 -1
  156. package/dist/components/verdocs-auth.js +4 -4
  157. package/dist/components/verdocs-build.js +43 -43
  158. package/dist/components/verdocs-button-panel.js +1 -1
  159. package/dist/components/verdocs-button.js +1 -1
  160. package/dist/components/verdocs-checkbox.js +1 -1
  161. package/dist/components/verdocs-component-error.js +1 -1
  162. package/dist/components/verdocs-contact-picker.js +1 -1
  163. package/dist/components/verdocs-date-input.js +2 -2
  164. package/dist/components/verdocs-dialog.js +1 -1
  165. package/dist/components/verdocs-dropdown.js +1 -1
  166. package/dist/components/verdocs-envelope-document-page.js +1 -1
  167. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  168. package/dist/components/verdocs-envelope-recipient-summary.js +2 -2
  169. package/dist/components/verdocs-envelope-sidebar.js +9 -9
  170. package/dist/components/verdocs-envelopes-list.js +11 -11
  171. package/dist/components/verdocs-field-attachment.js +1 -1
  172. package/dist/components/verdocs-field-checkbox.js +1 -1
  173. package/dist/components/verdocs-field-date.js +1 -1
  174. package/dist/components/verdocs-field-dropdown.js +1 -1
  175. package/dist/components/verdocs-field-initial.js +1 -1
  176. package/dist/components/verdocs-field-payment.js +10 -10
  177. package/dist/components/verdocs-field-radio.js +1 -1
  178. package/dist/components/verdocs-field-signature.js +1 -1
  179. package/dist/components/verdocs-field-textarea.js +1 -1
  180. package/dist/components/verdocs-field-textbox.js +1 -1
  181. package/dist/components/verdocs-field-timestamp.js +1 -1
  182. package/dist/components/verdocs-file-chooser.js +1 -1
  183. package/dist/components/verdocs-help-icon.js +1 -1
  184. package/dist/components/verdocs-initial-dialog.js +1 -1
  185. package/dist/components/verdocs-kba-dialog.js +1 -1
  186. package/dist/components/verdocs-loader.js +1 -1
  187. package/dist/components/verdocs-menu-panel.js +1 -1
  188. package/dist/components/verdocs-multiselect.js +1 -1
  189. package/dist/components/verdocs-ok-dialog.js +1 -1
  190. package/dist/components/verdocs-organization-card.js +2 -2
  191. package/dist/components/verdocs-pagination.js +1 -1
  192. package/dist/components/verdocs-portal.js +1 -1
  193. package/dist/components/verdocs-preview.js +1 -1
  194. package/dist/components/verdocs-progress-bar.js +1 -1
  195. package/dist/components/verdocs-quick-filter.js +1 -1
  196. package/dist/components/verdocs-quick-functions.js +1 -1
  197. package/dist/components/verdocs-radio-button.js +1 -1
  198. package/dist/components/verdocs-search-box.js +1 -1
  199. package/dist/components/verdocs-search-tabs.js +1 -1
  200. package/dist/components/verdocs-select-input.js +1 -1
  201. package/dist/components/verdocs-send.js +1 -1
  202. package/dist/components/verdocs-sign.js +60 -58
  203. package/dist/components/verdocs-sign.js.map +1 -1
  204. package/dist/components/verdocs-signature-dialog.js +1 -1
  205. package/dist/components/verdocs-spinner.js +1 -1
  206. package/dist/components/verdocs-status-indicator.js +1 -1
  207. package/dist/components/verdocs-switch.js +1 -1
  208. package/dist/components/verdocs-table.js +1 -1
  209. package/dist/components/verdocs-tabs.js +1 -1
  210. package/dist/components/verdocs-template-attachments.js +1 -1
  211. package/dist/components/verdocs-template-build-tabs.js +1 -1
  212. package/dist/components/verdocs-template-card.js +1 -1
  213. package/dist/components/verdocs-template-create.js +5 -5
  214. package/dist/components/verdocs-template-document-page.js +1 -1
  215. package/dist/components/verdocs-template-field-properties.js +1 -1
  216. package/dist/components/verdocs-template-fields.js +1 -1
  217. package/dist/components/verdocs-template-role-properties.js +1 -1
  218. package/dist/components/verdocs-template-roles.js +1 -1
  219. package/dist/components/verdocs-template-settings.js +1 -1
  220. package/dist/components/verdocs-template-star.js +1 -1
  221. package/dist/components/verdocs-template-tags.js +1 -1
  222. package/dist/components/verdocs-templates-list.js +11 -11
  223. package/dist/components/verdocs-text-input.js +1 -1
  224. package/dist/components/verdocs-toggle-button.js +1 -1
  225. package/dist/components/verdocs-toggle.js +1 -1
  226. package/dist/components/verdocs-toolbar-icon.js +1 -1
  227. package/dist/components/verdocs-upload-dialog.js +1 -1
  228. package/dist/components/verdocs-view.js +1 -1
  229. package/dist/esm/{index-2cd5f887.js → index-24c3207f.js} +213 -133
  230. package/dist/esm/index-24c3207f.js.map +1 -0
  231. package/dist/esm/loader.js +3 -3
  232. package/dist/esm/verdocs-auth.entry.js +1 -1
  233. package/dist/esm/verdocs-build.entry.js +1 -1
  234. package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
  235. package/dist/esm/verdocs-button_2.entry.js +1 -1
  236. package/dist/esm/verdocs-checkbox_6.entry.js +1 -1
  237. package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
  238. package/dist/esm/verdocs-date-input.entry.js +1 -1
  239. package/dist/esm/verdocs-dialog.entry.js +1 -1
  240. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  241. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  242. package/dist/esm/verdocs-envelope-recipient-link.entry.js +1 -1
  243. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
  244. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  245. package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
  246. package/dist/esm/verdocs-field-attachment_13.entry.js +1 -1
  247. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  248. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  249. package/dist/esm/verdocs-kba-dialog_2.entry.js +1 -1
  250. package/dist/esm/verdocs-menu-panel_2.entry.js +1 -1
  251. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  252. package/dist/esm/verdocs-organization-card_2.entry.js +1 -1
  253. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  254. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  255. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  256. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  257. package/dist/esm/verdocs-search-box.entry.js +1 -1
  258. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  259. package/dist/esm/verdocs-sign.entry.js +49 -46
  260. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  261. package/dist/esm/verdocs-spinner.entry.js +1 -1
  262. package/dist/esm/verdocs-status-indicator.entry.js +1 -1
  263. package/dist/esm/verdocs-switch.entry.js +1 -1
  264. package/dist/esm/verdocs-table.entry.js +1 -1
  265. package/dist/esm/verdocs-template-card.entry.js +1 -1
  266. package/dist/esm/verdocs-template-create.entry.js +1 -1
  267. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  268. package/dist/esm/verdocs-template-star.entry.js +1 -1
  269. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  270. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  271. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  272. package/dist/esm/verdocs-toggle.entry.js +1 -1
  273. package/dist/esm/verdocs-web-sdk.js +4 -4
  274. package/dist/esm/verdocs-web-sdk.js.map +1 -1
  275. package/dist/esm-es5/index-24c3207f.js +2 -0
  276. package/dist/esm-es5/index-24c3207f.js.map +1 -0
  277. package/dist/esm-es5/loader.js +1 -1
  278. package/dist/esm-es5/loader.js.map +1 -1
  279. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  280. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  281. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  282. package/dist/esm-es5/verdocs-button_2.entry.js +1 -1
  283. package/dist/esm-es5/verdocs-checkbox_6.entry.js +1 -1
  284. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  285. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  286. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  287. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  288. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  289. package/dist/esm-es5/verdocs-envelope-recipient-link.entry.js +1 -1
  290. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  291. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  292. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  293. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  294. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  295. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  296. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
  297. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  298. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  299. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  300. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  301. package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
  302. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  303. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  304. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  305. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  306. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  307. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  308. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  309. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  310. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  311. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  312. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  313. package/dist/esm-es5/verdocs-template-create.entry.js +1 -1
  314. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  315. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  316. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  317. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  318. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  319. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  320. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  321. package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
  322. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -2
  323. package/dist/verdocs-web-sdk/{p-0fd9da1e.entry.js → p-017ae3bc.entry.js} +2 -2
  324. package/dist/verdocs-web-sdk/{p-471dd447.entry.js → p-0b5effa9.entry.js} +2 -2
  325. package/dist/verdocs-web-sdk/{p-5239a35e.system.entry.js → p-10cbb44d.system.entry.js} +2 -2
  326. package/dist/verdocs-web-sdk/{p-2d35f678.system.entry.js → p-19655c9c.system.entry.js} +2 -2
  327. package/dist/verdocs-web-sdk/{p-2e23e747.system.entry.js → p-1bbd9c7f.system.entry.js} +2 -2
  328. package/dist/verdocs-web-sdk/{p-1247fd39.entry.js → p-219bf34b.entry.js} +2 -2
  329. package/dist/verdocs-web-sdk/{p-ebec3bc1.system.entry.js → p-227fdd3a.system.entry.js} +2 -2
  330. package/dist/verdocs-web-sdk/{p-7e0fa3ae.entry.js → p-2386d60c.entry.js} +2 -2
  331. package/dist/verdocs-web-sdk/{p-79d2f425.system.entry.js → p-23a9bd36.system.entry.js} +2 -2
  332. package/dist/verdocs-web-sdk/{p-d63b3dc0.system.entry.js → p-267c78f0.system.entry.js} +2 -2
  333. package/dist/verdocs-web-sdk/{p-2d2c8ad7.system.entry.js → p-299bb90e.system.entry.js} +2 -2
  334. package/dist/verdocs-web-sdk/{p-2edf05fe.entry.js → p-2cc55fbf.entry.js} +2 -2
  335. package/dist/verdocs-web-sdk/{p-f3d09408.system.entry.js → p-2d892f93.system.entry.js} +2 -2
  336. package/dist/verdocs-web-sdk/{p-4c5b836b.entry.js → p-2f9ba82a.entry.js} +2 -2
  337. package/dist/verdocs-web-sdk/{p-d444d37b.system.entry.js → p-307e74f5.system.entry.js} +2 -2
  338. package/dist/verdocs-web-sdk/{p-d33c2b26.entry.js → p-315286a7.entry.js} +2 -2
  339. package/dist/verdocs-web-sdk/{p-04790b68.entry.js → p-32253c51.entry.js} +2 -2
  340. package/dist/verdocs-web-sdk/{p-e3687c26.system.entry.js → p-3630f3f8.system.entry.js} +2 -2
  341. package/dist/verdocs-web-sdk/{p-c3e2d722.entry.js → p-3645b498.entry.js} +2 -2
  342. package/dist/verdocs-web-sdk/{p-245bdf6f.system.entry.js → p-366c2acc.system.entry.js} +2 -2
  343. package/dist/verdocs-web-sdk/p-39d89ec1.system.entry.js +2 -0
  344. package/dist/verdocs-web-sdk/p-39d89ec1.system.entry.js.map +1 -0
  345. package/dist/verdocs-web-sdk/{p-7b7451fb.entry.js → p-3ab01b3c.entry.js} +2 -2
  346. package/dist/verdocs-web-sdk/{p-e8184f76.system.entry.js → p-3c045101.system.entry.js} +2 -2
  347. package/dist/verdocs-web-sdk/{p-b0220f11.system.entry.js → p-410a6003.system.entry.js} +2 -2
  348. package/dist/verdocs-web-sdk/{p-2f5b24db.entry.js → p-46001697.entry.js} +2 -2
  349. package/dist/verdocs-web-sdk/{p-840b6fbe.entry.js → p-4e022197.entry.js} +2 -2
  350. package/dist/verdocs-web-sdk/{p-fc79bf91.entry.js → p-538d5113.entry.js} +2 -2
  351. package/dist/verdocs-web-sdk/{p-66feba8c.entry.js → p-55a9d59f.entry.js} +2 -2
  352. package/dist/verdocs-web-sdk/p-576f984d.js +3 -0
  353. package/dist/verdocs-web-sdk/p-576f984d.js.map +1 -0
  354. package/dist/verdocs-web-sdk/{p-a75f7e9e.system.entry.js → p-594d3edb.system.entry.js} +2 -2
  355. package/dist/verdocs-web-sdk/{p-6ddcf3fe.system.entry.js → p-5eedc1ec.system.entry.js} +2 -2
  356. package/dist/verdocs-web-sdk/{p-88f4ee7b.system.entry.js → p-61228412.system.entry.js} +2 -2
  357. package/dist/verdocs-web-sdk/{p-8ec57eff.entry.js → p-6136bba2.entry.js} +2 -2
  358. package/dist/verdocs-web-sdk/{p-9f684d65.entry.js → p-6b716052.entry.js} +2 -2
  359. package/dist/verdocs-web-sdk/{p-3cc309a8.entry.js → p-6c54aa71.entry.js} +2 -2
  360. package/dist/verdocs-web-sdk/{p-f406e916.entry.js → p-6ccb6567.entry.js} +2 -2
  361. package/dist/verdocs-web-sdk/{p-19ee9379.system.entry.js → p-6fe49e4a.system.entry.js} +2 -2
  362. package/dist/verdocs-web-sdk/p-72152009.entry.js +2 -0
  363. package/dist/verdocs-web-sdk/p-72152009.entry.js.map +1 -0
  364. package/dist/verdocs-web-sdk/{p-d6f70ede.entry.js → p-76d1f275.entry.js} +2 -2
  365. package/dist/verdocs-web-sdk/{p-e388f2eb.entry.js → p-7b7be644.entry.js} +2 -2
  366. package/dist/verdocs-web-sdk/{p-cf413e96.entry.js → p-7b84d96d.entry.js} +2 -2
  367. package/dist/verdocs-web-sdk/{p-296b3f1d.system.entry.js → p-7cb92285.system.entry.js} +2 -2
  368. package/dist/verdocs-web-sdk/{p-11a30de3.entry.js → p-7d394848.entry.js} +2 -2
  369. package/dist/verdocs-web-sdk/{p-b198c703.system.entry.js → p-825259ba.system.entry.js} +2 -2
  370. package/dist/verdocs-web-sdk/{p-7f1edca3.entry.js → p-8669ce44.entry.js} +2 -2
  371. package/dist/verdocs-web-sdk/{p-ed106cc9.entry.js → p-8691ca6d.entry.js} +2 -2
  372. package/dist/verdocs-web-sdk/{p-0974b1cf.system.entry.js → p-8721cc28.system.entry.js} +2 -2
  373. package/dist/verdocs-web-sdk/{p-b43ede8b.system.entry.js → p-8982eb1c.system.entry.js} +2 -2
  374. package/dist/verdocs-web-sdk/p-8a6c7f95.system.js +2 -0
  375. package/dist/verdocs-web-sdk/p-8a6c7f95.system.js.map +1 -0
  376. package/dist/verdocs-web-sdk/{p-9880e3e4.system.entry.js → p-937ca715.system.entry.js} +2 -2
  377. package/dist/verdocs-web-sdk/{p-c9ec99df.system.entry.js → p-9440be53.system.entry.js} +2 -2
  378. package/dist/verdocs-web-sdk/{p-2d33195d.system.entry.js → p-94e05472.system.entry.js} +2 -2
  379. package/dist/verdocs-web-sdk/{p-c242e25e.entry.js → p-96031d13.entry.js} +2 -2
  380. package/dist/verdocs-web-sdk/p-99ed75fb.system.js +3 -0
  381. package/dist/verdocs-web-sdk/p-99ed75fb.system.js.map +1 -0
  382. package/dist/verdocs-web-sdk/{p-ad9dd116.system.entry.js → p-9b13c31e.system.entry.js} +2 -2
  383. package/dist/verdocs-web-sdk/{p-2e2e6d95.entry.js → p-9b66d3c4.entry.js} +2 -2
  384. package/dist/verdocs-web-sdk/{p-d7cafbfe.entry.js → p-9c6cb6c8.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/{p-35384b77.entry.js → p-9f7cf5ad.entry.js} +2 -2
  386. package/dist/verdocs-web-sdk/{p-50e49464.system.entry.js → p-a058e16b.system.entry.js} +2 -2
  387. package/dist/verdocs-web-sdk/{p-bd7b3d7b.system.entry.js → p-a7a02f3a.system.entry.js} +2 -2
  388. package/dist/verdocs-web-sdk/{p-0e8bbe05.system.entry.js → p-b1017ac3.system.entry.js} +2 -2
  389. package/dist/verdocs-web-sdk/{p-4f16d741.system.entry.js → p-b74625c3.system.entry.js} +2 -2
  390. package/dist/verdocs-web-sdk/{p-3a2bd43c.entry.js → p-b8ccd4e5.entry.js} +2 -2
  391. package/dist/verdocs-web-sdk/{p-45dd5527.system.entry.js → p-ba50bdcf.system.entry.js} +2 -2
  392. package/dist/verdocs-web-sdk/{p-248ffe5c.system.entry.js → p-c26ae935.system.entry.js} +2 -2
  393. package/dist/verdocs-web-sdk/{p-35fc5f53.entry.js → p-ca822ac7.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/{p-05a1dce1.system.entry.js → p-cf962273.system.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/{p-dea4b888.entry.js → p-d032fa7b.entry.js} +2 -2
  396. package/dist/verdocs-web-sdk/{p-e8c4cb36.entry.js → p-d0c3630f.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/{p-b4441084.system.entry.js → p-d5bba6f8.system.entry.js} +2 -2
  398. package/dist/verdocs-web-sdk/{p-158808e1.entry.js → p-d99ddf68.entry.js} +2 -2
  399. package/dist/verdocs-web-sdk/{p-06775d41.entry.js → p-db2dc75e.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/{p-9363cc19.system.entry.js → p-e06a796b.system.entry.js} +2 -2
  401. package/dist/verdocs-web-sdk/{p-d67c3a58.system.entry.js → p-e39d4e16.system.entry.js} +2 -2
  402. package/dist/verdocs-web-sdk/{p-344ff0ba.entry.js → p-e46ccb3d.entry.js} +2 -2
  403. package/dist/verdocs-web-sdk/{p-efda4a21.entry.js → p-e4a8707d.entry.js} +2 -2
  404. package/dist/verdocs-web-sdk/{p-db383816.system.entry.js → p-e4a9ac73.system.entry.js} +2 -2
  405. package/dist/verdocs-web-sdk/{p-b17b12c5.entry.js → p-e7cf98ed.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-dcf0049c.entry.js → p-eb70e2b3.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-d3dea986.system.entry.js → p-f2ff2588.system.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/{p-2d0e964b.system.entry.js → p-f3b22922.system.entry.js} +2 -2
  409. package/dist/verdocs-web-sdk/{p-7b0281af.entry.js → p-f4a233b8.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/{p-a175597c.system.entry.js → p-f63a9489.system.entry.js} +2 -2
  411. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  412. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
  413. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  414. package/package.json +5 -5
  415. package/dist/cjs/index-01ae8e85.js.map +0 -1
  416. package/dist/components/p-1f51246d.js.map +0 -1
  417. package/dist/custom-elements.json +0 -2231
  418. package/dist/esm/index-2cd5f887.js.map +0 -1
  419. package/dist/esm-es5/index-2cd5f887.js +0 -2
  420. package/dist/esm-es5/index-2cd5f887.js.map +0 -1
  421. package/dist/verdocs-web-sdk/p-0c1898f6.system.js +0 -2
  422. package/dist/verdocs-web-sdk/p-0c1898f6.system.js.map +0 -1
  423. package/dist/verdocs-web-sdk/p-60387e15.system.js +0 -3
  424. package/dist/verdocs-web-sdk/p-60387e15.system.js.map +0 -1
  425. package/dist/verdocs-web-sdk/p-696b8b3e.entry.js +0 -2
  426. package/dist/verdocs-web-sdk/p-696b8b3e.entry.js.map +0 -1
  427. package/dist/verdocs-web-sdk/p-ddadabfb.js +0 -3
  428. package/dist/verdocs-web-sdk/p-ddadabfb.js.map +0 -1
  429. package/dist/verdocs-web-sdk/p-f32e0f32.system.entry.js +0 -2
  430. package/dist/verdocs-web-sdk/p-f32e0f32.system.entry.js.map +0 -1
  431. /package/dist/verdocs-web-sdk/{p-0fd9da1e.entry.js.map → p-017ae3bc.entry.js.map} +0 -0
  432. /package/dist/verdocs-web-sdk/{p-471dd447.entry.js.map → p-0b5effa9.entry.js.map} +0 -0
  433. /package/dist/verdocs-web-sdk/{p-5239a35e.system.entry.js.map → p-10cbb44d.system.entry.js.map} +0 -0
  434. /package/dist/verdocs-web-sdk/{p-2d35f678.system.entry.js.map → p-19655c9c.system.entry.js.map} +0 -0
  435. /package/dist/verdocs-web-sdk/{p-2e23e747.system.entry.js.map → p-1bbd9c7f.system.entry.js.map} +0 -0
  436. /package/dist/verdocs-web-sdk/{p-1247fd39.entry.js.map → p-219bf34b.entry.js.map} +0 -0
  437. /package/dist/verdocs-web-sdk/{p-ebec3bc1.system.entry.js.map → p-227fdd3a.system.entry.js.map} +0 -0
  438. /package/dist/verdocs-web-sdk/{p-7e0fa3ae.entry.js.map → p-2386d60c.entry.js.map} +0 -0
  439. /package/dist/verdocs-web-sdk/{p-79d2f425.system.entry.js.map → p-23a9bd36.system.entry.js.map} +0 -0
  440. /package/dist/verdocs-web-sdk/{p-d63b3dc0.system.entry.js.map → p-267c78f0.system.entry.js.map} +0 -0
  441. /package/dist/verdocs-web-sdk/{p-2d2c8ad7.system.entry.js.map → p-299bb90e.system.entry.js.map} +0 -0
  442. /package/dist/verdocs-web-sdk/{p-2edf05fe.entry.js.map → p-2cc55fbf.entry.js.map} +0 -0
  443. /package/dist/verdocs-web-sdk/{p-f3d09408.system.entry.js.map → p-2d892f93.system.entry.js.map} +0 -0
  444. /package/dist/verdocs-web-sdk/{p-4c5b836b.entry.js.map → p-2f9ba82a.entry.js.map} +0 -0
  445. /package/dist/verdocs-web-sdk/{p-d444d37b.system.entry.js.map → p-307e74f5.system.entry.js.map} +0 -0
  446. /package/dist/verdocs-web-sdk/{p-d33c2b26.entry.js.map → p-315286a7.entry.js.map} +0 -0
  447. /package/dist/verdocs-web-sdk/{p-04790b68.entry.js.map → p-32253c51.entry.js.map} +0 -0
  448. /package/dist/verdocs-web-sdk/{p-e3687c26.system.entry.js.map → p-3630f3f8.system.entry.js.map} +0 -0
  449. /package/dist/verdocs-web-sdk/{p-c3e2d722.entry.js.map → p-3645b498.entry.js.map} +0 -0
  450. /package/dist/verdocs-web-sdk/{p-245bdf6f.system.entry.js.map → p-366c2acc.system.entry.js.map} +0 -0
  451. /package/dist/verdocs-web-sdk/{p-7b7451fb.entry.js.map → p-3ab01b3c.entry.js.map} +0 -0
  452. /package/dist/verdocs-web-sdk/{p-e8184f76.system.entry.js.map → p-3c045101.system.entry.js.map} +0 -0
  453. /package/dist/verdocs-web-sdk/{p-b0220f11.system.entry.js.map → p-410a6003.system.entry.js.map} +0 -0
  454. /package/dist/verdocs-web-sdk/{p-2f5b24db.entry.js.map → p-46001697.entry.js.map} +0 -0
  455. /package/dist/verdocs-web-sdk/{p-840b6fbe.entry.js.map → p-4e022197.entry.js.map} +0 -0
  456. /package/dist/verdocs-web-sdk/{p-fc79bf91.entry.js.map → p-538d5113.entry.js.map} +0 -0
  457. /package/dist/verdocs-web-sdk/{p-66feba8c.entry.js.map → p-55a9d59f.entry.js.map} +0 -0
  458. /package/dist/verdocs-web-sdk/{p-a75f7e9e.system.entry.js.map → p-594d3edb.system.entry.js.map} +0 -0
  459. /package/dist/verdocs-web-sdk/{p-6ddcf3fe.system.entry.js.map → p-5eedc1ec.system.entry.js.map} +0 -0
  460. /package/dist/verdocs-web-sdk/{p-88f4ee7b.system.entry.js.map → p-61228412.system.entry.js.map} +0 -0
  461. /package/dist/verdocs-web-sdk/{p-8ec57eff.entry.js.map → p-6136bba2.entry.js.map} +0 -0
  462. /package/dist/verdocs-web-sdk/{p-9f684d65.entry.js.map → p-6b716052.entry.js.map} +0 -0
  463. /package/dist/verdocs-web-sdk/{p-3cc309a8.entry.js.map → p-6c54aa71.entry.js.map} +0 -0
  464. /package/dist/verdocs-web-sdk/{p-f406e916.entry.js.map → p-6ccb6567.entry.js.map} +0 -0
  465. /package/dist/verdocs-web-sdk/{p-19ee9379.system.entry.js.map → p-6fe49e4a.system.entry.js.map} +0 -0
  466. /package/dist/verdocs-web-sdk/{p-d6f70ede.entry.js.map → p-76d1f275.entry.js.map} +0 -0
  467. /package/dist/verdocs-web-sdk/{p-e388f2eb.entry.js.map → p-7b7be644.entry.js.map} +0 -0
  468. /package/dist/verdocs-web-sdk/{p-cf413e96.entry.js.map → p-7b84d96d.entry.js.map} +0 -0
  469. /package/dist/verdocs-web-sdk/{p-296b3f1d.system.entry.js.map → p-7cb92285.system.entry.js.map} +0 -0
  470. /package/dist/verdocs-web-sdk/{p-11a30de3.entry.js.map → p-7d394848.entry.js.map} +0 -0
  471. /package/dist/verdocs-web-sdk/{p-b198c703.system.entry.js.map → p-825259ba.system.entry.js.map} +0 -0
  472. /package/dist/verdocs-web-sdk/{p-7f1edca3.entry.js.map → p-8669ce44.entry.js.map} +0 -0
  473. /package/dist/verdocs-web-sdk/{p-ed106cc9.entry.js.map → p-8691ca6d.entry.js.map} +0 -0
  474. /package/dist/verdocs-web-sdk/{p-0974b1cf.system.entry.js.map → p-8721cc28.system.entry.js.map} +0 -0
  475. /package/dist/verdocs-web-sdk/{p-b43ede8b.system.entry.js.map → p-8982eb1c.system.entry.js.map} +0 -0
  476. /package/dist/verdocs-web-sdk/{p-9880e3e4.system.entry.js.map → p-937ca715.system.entry.js.map} +0 -0
  477. /package/dist/verdocs-web-sdk/{p-c9ec99df.system.entry.js.map → p-9440be53.system.entry.js.map} +0 -0
  478. /package/dist/verdocs-web-sdk/{p-2d33195d.system.entry.js.map → p-94e05472.system.entry.js.map} +0 -0
  479. /package/dist/verdocs-web-sdk/{p-c242e25e.entry.js.map → p-96031d13.entry.js.map} +0 -0
  480. /package/dist/verdocs-web-sdk/{p-ad9dd116.system.entry.js.map → p-9b13c31e.system.entry.js.map} +0 -0
  481. /package/dist/verdocs-web-sdk/{p-2e2e6d95.entry.js.map → p-9b66d3c4.entry.js.map} +0 -0
  482. /package/dist/verdocs-web-sdk/{p-d7cafbfe.entry.js.map → p-9c6cb6c8.entry.js.map} +0 -0
  483. /package/dist/verdocs-web-sdk/{p-35384b77.entry.js.map → p-9f7cf5ad.entry.js.map} +0 -0
  484. /package/dist/verdocs-web-sdk/{p-50e49464.system.entry.js.map → p-a058e16b.system.entry.js.map} +0 -0
  485. /package/dist/verdocs-web-sdk/{p-bd7b3d7b.system.entry.js.map → p-a7a02f3a.system.entry.js.map} +0 -0
  486. /package/dist/verdocs-web-sdk/{p-0e8bbe05.system.entry.js.map → p-b1017ac3.system.entry.js.map} +0 -0
  487. /package/dist/verdocs-web-sdk/{p-4f16d741.system.entry.js.map → p-b74625c3.system.entry.js.map} +0 -0
  488. /package/dist/verdocs-web-sdk/{p-3a2bd43c.entry.js.map → p-b8ccd4e5.entry.js.map} +0 -0
  489. /package/dist/verdocs-web-sdk/{p-45dd5527.system.entry.js.map → p-ba50bdcf.system.entry.js.map} +0 -0
  490. /package/dist/verdocs-web-sdk/{p-248ffe5c.system.entry.js.map → p-c26ae935.system.entry.js.map} +0 -0
  491. /package/dist/verdocs-web-sdk/{p-35fc5f53.entry.js.map → p-ca822ac7.entry.js.map} +0 -0
  492. /package/dist/verdocs-web-sdk/{p-05a1dce1.system.entry.js.map → p-cf962273.system.entry.js.map} +0 -0
  493. /package/dist/verdocs-web-sdk/{p-dea4b888.entry.js.map → p-d032fa7b.entry.js.map} +0 -0
  494. /package/dist/verdocs-web-sdk/{p-e8c4cb36.entry.js.map → p-d0c3630f.entry.js.map} +0 -0
  495. /package/dist/verdocs-web-sdk/{p-b4441084.system.entry.js.map → p-d5bba6f8.system.entry.js.map} +0 -0
  496. /package/dist/verdocs-web-sdk/{p-158808e1.entry.js.map → p-d99ddf68.entry.js.map} +0 -0
  497. /package/dist/verdocs-web-sdk/{p-06775d41.entry.js.map → p-db2dc75e.entry.js.map} +0 -0
  498. /package/dist/verdocs-web-sdk/{p-9363cc19.system.entry.js.map → p-e06a796b.system.entry.js.map} +0 -0
  499. /package/dist/verdocs-web-sdk/{p-d67c3a58.system.entry.js.map → p-e39d4e16.system.entry.js.map} +0 -0
  500. /package/dist/verdocs-web-sdk/{p-344ff0ba.entry.js.map → p-e46ccb3d.entry.js.map} +0 -0
  501. /package/dist/verdocs-web-sdk/{p-efda4a21.entry.js.map → p-e4a8707d.entry.js.map} +0 -0
  502. /package/dist/verdocs-web-sdk/{p-db383816.system.entry.js.map → p-e4a9ac73.system.entry.js.map} +0 -0
  503. /package/dist/verdocs-web-sdk/{p-b17b12c5.entry.js.map → p-e7cf98ed.entry.js.map} +0 -0
  504. /package/dist/verdocs-web-sdk/{p-dcf0049c.entry.js.map → p-eb70e2b3.entry.js.map} +0 -0
  505. /package/dist/verdocs-web-sdk/{p-d3dea986.system.entry.js.map → p-f2ff2588.system.entry.js.map} +0 -0
  506. /package/dist/verdocs-web-sdk/{p-2d0e964b.system.entry.js.map → p-f3b22922.system.entry.js.map} +0 -0
  507. /package/dist/verdocs-web-sdk/{p-7b0281af.entry.js.map → p-f4a233b8.entry.js.map} +0 -0
  508. /package/dist/verdocs-web-sdk/{p-a175597c.system.entry.js.map → p-f63a9489.system.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as s,F as e,H as r,g as n}from"./p-ddadabfb.js";import{VerdocsEndpoint as u,getEnvelope as h,getDocumentDownloadLink as o,cancelEnvelope as a,userCanCancelEnvelope as l,integerSequence as d}from"@verdocs/js-sdk";import{s as c}from"./p-0c45b79c.js";import{S as f}from"./p-fd97809c.js";import{S as p}from"./p-33300e3a.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";function v(t){return typeof t==="string"||t instanceof String}function g(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function m(t,i){if(Array.isArray(i))return m(t,((t,s)=>i.includes(s)));return Object.entries(t).reduce(((t,s)=>{let[e,r]=s;if(i(r,e))t[e]=r;return t}),{})}const b={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function x(t){switch(t){case b.LEFT:return b.FORCE_LEFT;case b.RIGHT:return b.FORCE_RIGHT;default:return t}}function A(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function w(t,i){if(i===t)return true;const s=Array.isArray(i),e=Array.isArray(t);let r;if(s&&e){if(i.length!=t.length)return false;for(r=0;r<i.length;r++)if(!w(i[r],t[r]))return false;return true}if(s!=e)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){const s=i instanceof Date,e=t instanceof Date;if(s&&e)return i.getTime()==t.getTime();if(s!=e)return false;const n=i instanceof RegExp,u=t instanceof RegExp;if(n&&u)return i.toString()==t.toString();if(n!=u)return false;const h=Object.keys(i);for(r=0;r<h.length;r++)if(!Object.prototype.hasOwnProperty.call(t,h[r]))return false;for(r=0;r<h.length;r++)if(!w(t[h[r]],i[h[r]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}class C{constructor(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){if(!this.removedCount||this.insertedCount)return b.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?b.RIGHT:b.LEFT}}function F(t,i){return new F.InputMask(t,i)}function k(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return F.MaskedRegExp;if(v(t))return F.MaskedPattern;if(t===Date)return F.MaskedDate;if(t===Number)return F.MaskedNumber;if(Array.isArray(t)||t===Array)return F.MaskedDynamic;if(F.Masked&&t.prototype instanceof F.Masked)return t;if(F.Masked&&t instanceof F.Masked)return t.constructor;if(t instanceof Function)return F.MaskedFunction;console.warn("Mask not found for mask",t);return F.Masked}function D(t){if(!t)throw new Error("Options in not defined");if(F.Masked){if(t.prototype instanceof F.Masked)return{mask:t};const{mask:i=undefined,...s}=t instanceof F.Masked?{mask:t}:g(t)&&t.mask instanceof F.Masked?t:{};if(i){const t=i.mask;return{...m(i,((t,i)=>!i.startsWith("_"))),mask:i.constructor,_mask:t,...s}}}if(!g(t))return{mask:t};return{...t}}function B(t){if(F.Masked&&t instanceof F.Masked)return t;const i=D(t);const s=k(i.mask);if(!s)throw new Error("Masked class is not found for provided mask "+i.mask+", appropriate module needs to be imported manually before creating mask.");if(i.mask===s)delete i.mask;if(i._mask){i.mask=i._mask;delete i._mask}return new s(i)}F.createMask=B;class E{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch{}}get isActive(){return false}}F.MaskElement=E;const y=90;const I=89;class _ extends E{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,i,s;return(t=(i=(s=this.input).getRootNode)==null?void 0:i.call(s))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===y&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===I&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===y&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){if(!t.isComposing)this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}}}F.HTMLMaskElement=_;class S extends _{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,i){this.input.setSelectionRange(t,i)}get value(){return this.input.value}set value(t){this.input.value=t}}F.HTMLMaskElement=_;class V extends _{get _unsafeSelectionStart(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s<e){return s}return e}get _unsafeSelectionEnd(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s>e){return s}return e}_unsafeSelect(t,i){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,t);s.setEnd(this.input.lastChild||this.input,i);const e=this.rootElement;const r=e.getSelection&&e.getSelection();if(r){r.removeAllRanges();r.addRange(s)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}F.HTMLContenteditableMaskElement=V;class M{constructor(){this.states=[];this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(t);if(this.states.length>M.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1}go(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState}undo(){return this.go(-1)}redo(){return this.go(+1)}clear(){this.states.length=0;this.currentIndex=0}}M.MAX_LENGTH=100;class O{constructor(t,i){this.el=t instanceof E?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new V(t):new S(t);this.masked=B(i);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new M;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}maskEquals(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof F.Masked)&&this.masked.constructor===k(t)){this.masked.updateOptions({mask:t});return}const i=t instanceof F.Masked?t:B({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,i){const s=this._listeners[t];if(!s)return;s.forEach((t=>t(i)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const i=this.masked.unmaskedValue;const s=this.masked.value;const e=this.masked.rawInputValue;const r=this.displayValue;const n=this.unmaskedValue!==i||this.value!==s||this._rawInputValue!==e;this._unmaskedValue=i;this._value=s;this._rawInputValue=e;if(this.el.value!==r)this.el.value=r;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:i,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:i,...s}=t;const e=!this.maskEquals(i);const r=this.masked.optionsIsChanged(s);if(e)this.mask=i;if(r)this.masked.updateOptions(s);if(e||r)this.updateControl()}updateCursor(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)}_delayUpdateCursor(t){this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((()=>{if(!this.el)return;this.cursorPos=this._changingCursorPos;this._abortUpdateCursor()}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,b.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this}off(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}const s=this._listeners[t].indexOf(i);if(s>=0)this._listeners[t].splice(s,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const i=new C({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const s=this.masked.rawInputValue;const e=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;const r=s===this.masked.rawInputValue?i.removeDirection:b.NONE;let n=this.masked.nearestInputPos(i.startChangePos+e,r);if(r!==b.NONE)n=this.masked.nearestInputPos(n,b.NONE);this.updateControl(n);delete this._inputEvent}_onChange(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()}_onDrop(t){t.preventDefault();t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false}destroy(){this._unbindEvents();this._listeners.length=0;delete this.el}}F.InputMask=O;class T{static normalize(t){return Array.isArray(t)?t:[t,new T]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}aggregate(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return Boolean(this.rawInserted)||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}}F.ChangeDetails=T;class R{constructor(t,i,s){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=s}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const i=this.value[0];this.value=this.value.slice(1);return i}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class P{constructor(t){this._value="";this._update({...P.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,i){return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new R(this.extractInput(t,i),t)}appendTail(t){if(v(t))t=new R(String(t));return t.appendTo(this)}_appendCharRaw(t,i){if(!t)return new T;this._value+=t;return new T({inserted:t,rawInserted:t})}_appendChar(t,i,s){if(i===void 0){i={}}const e=this.state;let r;[t,r]=this.doPrepareChar(t,i);if(t){r=r.aggregate(this._appendCharRaw(t,i));if(!r.rawInserted&&this.autofix==="pad"){const s=this.state;this.state=e;let n=this.pad(i);const u=this._appendCharRaw(t,i);n=n.aggregate(u);if(u.rawInserted||n.equals(r)){r=n}else{this.state=s}}}if(r.inserted){let t;let n=this.doValidate(i)!==false;if(n&&s!=null){const i=this.state;if(this.overwrite===true){t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.unshift(this.displayValue.length-r.tailShift)}}let e=this.appendTail(s);n=e.rawInserted.length===s.toString().length;if(!(n&&e.inserted)&&this.overwrite==="shift"){this.state=i;t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.shift()}e=this.appendTail(s);n=e.rawInserted.length===s.toString().length}if(n&&e.inserted)this.state=i}if(!n){r=new T;this.state=e;if(s&&t)s.state=t}}return r}_appendPlaceholder(){return new T}_appendEager(){return new T}append(t,i,s){if(!v(t))throw new Error("value should be string");const e=v(s)?new R(String(s)):s;if(i!=null&&i.tail)i._beforeTailState=this.state;let r;[t,r]=this.doPrepare(t,i);for(let s=0;s<t.length;++s){const n=this._appendChar(t[s],i,e);if(!n.rawInserted&&!this.doSkipInvalid(t[s],i,e))break;r.aggregate(n)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){r.aggregate(this._appendEager())}if(e!=null){r.tailShift+=this.appendTail(e).tailShift}return r}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(i);return new T}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const i=this.rawInputValue;const s=this.value;const e=t();this.rawInputValue=i;if(this.value&&this.value!==s&&s.indexOf(this.value)===0){this.append(s.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return e}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const i=this.state;const s=t(this);this.state=i;delete this._isolated;return s}doSkipInvalid(t,i,s){return Boolean(this.skipInvalid)}doPrepare(t,i){if(i===void 0){i={}}return T.normalize(this.prepare?this.prepare(t,this,i):t)}doPrepareChar(t,i){if(i===void 0){i={}}return T.normalize(this.prepareChar?this.prepareChar(t,this,i):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,i,s,e,r){if(s===void 0){s=""}if(e===void 0){e=b.NONE}if(r===void 0){r={input:true}}const n=t+i;const u=this.extractTail(n);const h=this.eager===true||this.eager==="remove";let o;if(h){e=x(e);o=this.extractInput(0,n,{raw:true})}let a=t;const l=new T;if(e!==b.NONE){a=this.nearestInputPos(t,i>1&&t!==0&&!h?b.NONE:e);l.tailShift=a-t}l.aggregate(this.remove(a));if(h&&e!==b.NONE&&o===this.rawInputValue){if(e===b.FORCE_LEFT){let t;while(o===this.rawInputValue&&(t=this.displayValue.length)){l.aggregate(new T({tailShift:-1})).aggregate(this.remove(t-1))}}else if(e===b.FORCE_RIGHT){u.unshift()}}return l.aggregate(this.append(s,r,u))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!w(this,t)}typedValueEquals(t){const i=this.typedValue;return t===i||P.EMPTY_VALUES.includes(t)&&P.EMPTY_VALUES.includes(i)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new T}}P.DEFAULTS={skipInvalid:true};P.EMPTY_VALUES=[undefined,null,""];F.Masked=P;class N{constructor(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=v(t)?new R(String(t)):t;const i=this.chunks[this.chunks.length-1];const s=i&&(i.stop===t.stop||t.stop==null)&&t.from===i.from+i.toString().length;if(t instanceof R){if(s){i.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof N){if(t.stop==null){let i;while(t.chunks.length&&t.chunks[0].stop==null){i=t.chunks.shift();i.from+=t.from;this.extend(i)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof F.MaskedPattern)){const i=new R(this.toString());return i.appendTo(t)}const i=new T;for(let s=0;s<this.chunks.length;++s){const e=this.chunks[s];const r=t._mapPosToBlock(t.displayValue.length);const n=e.stop;let u;if(n!=null&&(!r||r.index<=n)){if(e instanceof N||t._stops.indexOf(n)>=0){i.aggregate(t._appendPlaceholder(n))}u=e instanceof N&&t._blocks[n]}if(u){const s=u.appendTail(e);i.aggregate(s);const r=e.toString().slice(s.rawInserted.length);if(r)i.aggregate(t.append(r,{tail:true}))}else{i.aggregate(t.append(e.toString(),{tail:true}))}}return i}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:i,...s}=t;Object.assign(this,s);this.chunks=i.map((t=>{const i="chunks"in t?new N:new R;i.state=t;return i}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const i=t!=null?t-this.from:t;let s=0;while(s<this.chunks.length){const t=this.chunks[s];const e=t.unshift(i);if(t.toString()){if(!e)break;++s}else{this.chunks.splice(s,1)}if(e)return e}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const i=this.chunks[t];const s=i.shift();if(i.toString()){if(!s)break;--t}else{this.chunks.splice(t,1)}if(s)return s}return""}}class z{constructor(t,i){this.masked=t;this._log=[];const{offset:s,index:e}=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s;this.index=e;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}}_pushLeft(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(t())return this.ok=true}return this.ok=false}_pushRight(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,b.LEFT);return true}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.FORCE_RIGHT);if(this.offset!==this.block.value.length)return true}))}pushRightBeforeInput(){return this._pushRight((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,b.NONE);return true}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.NONE);return true}))}}class j{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(i);if(!this._value)this._isRawInput=false;return new T}nearestInputPos(t,i){if(i===void 0){i=b.NONE}const s=0;const e=this._value.length;switch(i){case b.LEFT:case b.FORCE_LEFT:return s;case b.NONE:case b.RIGHT:case b.FORCE_RIGHT:default:return e}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this._value.length}if(s===void 0){s={}}return s.raw&&this._isRawInput&&this._value.slice(t,i)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new T;const s=this.eager===true||this.eager==="append";const e=this.char===t;const r=e&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!s)&&!i.tail;const n=new T({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(i.raw||i.input);return n}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new T;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new R("")}appendTail(t){if(v(t))t=new R(String(t));return t.appendTo(this)}append(t,i,s){const e=this._appendChar(t[0],i);if(s!=null){e.tailShift+=this.appendTail(s).tailShift}return e}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)}pad(t){return this._appendPlaceholder()}}class L{constructor(t){const{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u,...h}=t;this.masked=B(h);Object.assign(this,{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u})}reset(){this.isFilled=false;this.masked.reset()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}if(t===0&&i>=1){this.isFilled=false;return this.masked.remove(t,i)}return new T}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new T;const s=this.masked.state;let e=this.masked._appendChar(t,this.currentMaskFlags(i));if(e.inserted&&this.doValidate(i)===false){e=new T;this.masked.state=s}if(!e.inserted&&!this.isOptional&&!this.lazy&&!i.input){e.inserted=this.placeholderChar}e.skip=!e.inserted&&!this.isOptional;this.isFilled=Boolean(e.inserted);return e}append(t,i,s){return this.masked.append(t,this.currentMaskFlags(i),s)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new T;this.isFilled=true;return new T({inserted:this.placeholderChar})}_appendEager(){return new T}extractTail(t,i){return this.masked.extractTail(t,i)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,s)}nearestInputPos(t,i){if(i===void 0){i=b.NONE}const s=0;const e=this.value.length;const r=Math.min(Math.max(t,s),e);switch(i){case b.LEFT:case b.FORCE_LEFT:return this.isComplete?r:s;case b.RIGHT:case b.FORCE_RIGHT:return this.isComplete?r:e;case b.NONE:default:return r}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var i;return{...t,_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new T}}L.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class q extends P{updateOptions(t){super.updateOptions(t)}_update(t){const i=t.mask;if(i)t.validate=t=>t.search(i)>=0;super._update(t)}}F.MaskedRegExp=q;class W extends P{constructor(t){super({...W.DEFAULTS,...t,definitions:Object.assign({},L.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const i=this.mask;if(!i||!t)return;let s=false;let e=false;for(let r=0;r<i.length;++r){if(this.blocks){const t=i.slice(r);const s=Object.keys(this.blocks).filter((i=>t.indexOf(i)===0));s.sort(((t,i)=>i.length-t.length));const e=s[0];if(e){const{expose:t,repeat:i,...s}=D(this.blocks[e]);const n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...s,repeat:i,parent:this};const u=i!=null?new F.RepeatBlock(n):B(n);if(u){this._blocks.push(u);if(t)this.exposeBlock=u;if(!this._maskedBlocks[e])this._maskedBlocks[e]=[];this._maskedBlocks[e].push(this._blocks.length-1)}r+=e.length-1;continue}}let n=i[r];let u=n in t;if(n===W.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(n==="{"||n==="}"){s=!s;continue}if(n==="["||n==="]"){e=!e;continue}if(n===W.ESCAPE_CHAR){++r;n=i[r];if(!n)break;u=false}const h=u?new L({isOptional:e,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...D(t[n]),parent:this}):new j({char:n,eager:this.eager,isUnmasking:s});this._blocks.push(h)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:i,...s}=t;this._blocks.forEach(((t,s)=>t.state=i[s]));super.state=s}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,i)=>t+=i.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(i);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,i)=>t+=i.value),"")}set value(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(i);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(i);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,i)=>t+=i.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const i=new T;let s=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(s==null)return i;if(this._blocks[s].isFilled)++s;for(let t=s;t<this._blocks.length;++t){const s=this._blocks[t]._appendEager();if(!s.inserted)break;i.aggregate(s)}return i}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._mapPosToBlock(this.displayValue.length);const e=new T;if(!s)return e;for(let n=s.index,u;u=this._blocks[n];++n){var r;const s=u._appendChar(t,{...i,_beforeTailState:(r=i._beforeTailState)==null||(r=r._blocks)==null?void 0:r[n]});e.aggregate(s);if(s.consumed)break}return e}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=new N;if(t===i)return s;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{const n=t.extractTail(e,r);n.stop=this._findStopBefore(i);n.from=this._blockStartPos(i);if(n instanceof N)n.blockIndex=i;s.extend(n)}));return s}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(s===void 0){s={}}if(t===i)return"";let e="";this._forEachBlocksInRange(t,i,((t,i,r,n)=>{e+=t.extractInput(r,n,s)}));return e}_findStopBefore(t){let i;for(let s=0;s<this._stops.length;++s){const e=this._stops[s];if(e<=t)i=e;else break}return i}_appendPlaceholder(t){const i=new T;if(this.lazy&&t==null)return i;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return i;const e=s.index;const r=t!=null?t:this._blocks.length;this._blocks.slice(e,r).forEach((s=>{if(!s.lazy||t!=null){var e;i.aggregate(s._appendPlaceholder((e=s._blocks)==null?void 0:e.length))}}));return i}_mapPosToBlock(t){let i="";for(let s=0;s<this._blocks.length;++s){const e=this._blocks[s];const r=i.length;i+=e.displayValue;if(t<=i.length){return{index:s,offset:t-r}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,i)=>t+=i.displayValue.length),0)}_forEachBlocksInRange(t,i,s){if(i===void 0){i=this.displayValue.length}const e=this._mapPosToBlock(t);if(e){const t=this._mapPosToBlock(i);const r=t&&e.index===t.index;const n=e.offset;const u=t&&r?t.offset:this._blocks[e.index].displayValue.length;s(this._blocks[e.index],e.index,n,u);if(t&&!r){for(let i=e.index+1;i<t.index;++i){s(this._blocks[i],i,0,this._blocks[i].displayValue.length)}s(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s.aggregate(t.remove(e,r))}));return s}nearestInputPos(t,i){if(i===void 0){i=b.NONE}if(!this._blocks.length)return 0;const s=new z(this,t);if(i===b.NONE){if(s.pushRightBeforeInput())return s.pos;s.popState();if(s.pushLeftBeforeInput())return s.pos;return this.displayValue.length}if(i===b.LEFT||i===b.FORCE_LEFT){if(i===b.LEFT){s.pushRightBeforeFilled();if(s.ok&&s.pos===t)return t;s.popState()}s.pushLeftBeforeInput();s.pushLeftBeforeRequired();s.pushLeftBeforeFilled();if(i===b.LEFT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.ok&&s.pos<=t)return s.pos;s.popState();if(s.ok&&s.pos<=t)return s.pos;s.popState()}if(s.ok)return s.pos;if(i===b.FORCE_LEFT)return 0;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return 0}if(i===b.RIGHT||i===b.FORCE_RIGHT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.pushRightBeforeFilled())return s.pos;if(i===b.FORCE_RIGHT)return this.displayValue.length;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return this.nearestInputPos(t,b.LEFT)}return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}let s=0;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s+=t.totalInputPositions(e,r)}));return s}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const i=this._maskedBlocks[t];if(!i)return[];return i.map((t=>this._blocks[t]))}pad(t){const i=new T;this._forEachBlocksInRange(0,this.displayValue.length,(s=>i.aggregate(s.pad(t))));return i}}W.DEFAULTS={...P.DEFAULTS,lazy:true,placeholderChar:"_"};W.STOP_CHAR="`";W.ESCAPE_CHAR="\\";W.InputDefinition=L;W.FixedDefinition=j;F.MaskedPattern=W;class H extends W{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:i=this.to||0,from:s=this.from||0,maxLength:e=this.maxLength||0,autofix:r=this.autofix,...n}=t;this.to=i;this.from=s;this.maxLength=Math.max(String(i).length,e);this.autofix=r;const u=String(this.from).padStart(this.maxLength,"0");const h=String(this.to).padStart(this.maxLength,"0");let o=0;while(o<h.length&&h[o]===u[o])++o;n.mask=h.slice(0,o).replace(/0/g,"\\0")+"0".repeat(this.maxLength-o);super._update(n)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let i="";let s="";const[,e,r]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(r){i="0".repeat(e.length)+r;s="9".repeat(e.length)+r}i=i.padEnd(this.maxLength,"0");s=s.padEnd(this.maxLength,"9");return[i,s]}doPrepareChar(t,i){if(i===void 0){i={}}let s;[t,s]=super.doPrepareChar(t.replace(/\D/g,""),i);if(!t)s.skip=!this.isComplete;return[t,s]}_appendCharRaw(t,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,i);const s=String(this.from).padStart(this.maxLength,"0");const e=String(this.to).padStart(this.maxLength,"0");const[r,n]=this.boundaries(this.value+t);if(Number(n)<this.from)return super._appendCharRaw(s[this.value.length],i);if(Number(r)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(s[this.value.length],i).aggregate(this._appendCharRaw(t,i))}return super._appendCharRaw(e[this.value.length],i)}return super._appendCharRaw(t,i)}doValidate(t){const i=this.value;const s=i.search(/[^0]/);if(s===-1&&i.length<=this._matchFrom)return true;const[e,r]=this.boundaries(i);return this.from<=Number(r)&&Number(e)<=this.to&&super.doValidate(t)}pad(t){const i=new T;if(this.value.length===this.maxLength)return i;const s=this.value;const e=this.maxLength-this.value.length;if(e){this.reset();for(let s=0;s<e;++s){i.aggregate(super._appendCharRaw("0",t))}s.split("").forEach((t=>this._appendCharRaw(t)))}return i}}F.MaskedRange=H;const U="d{.}`m{.}`Y";class Y extends W{static extractPatternOptions(t){const{mask:i,pattern:s,...e}=t;return{...e,mask:v(i)?i:s}}constructor(t){super(Y.extractPatternOptions({...Y.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:i,pattern:s,blocks:e,...r}={...Y.DEFAULTS,...t};const n=Object.assign({},Y.GET_DEFAULT_BLOCKS());if(t.min)n.Y.from=t.min.getFullYear();if(t.max)n.Y.to=t.max.getFullYear();if(t.min&&t.max&&n.Y.from===n.Y.to){n.m.from=t.min.getMonth()+1;n.m.to=t.max.getMonth()+1;if(n.m.from===n.m.to){n.d.from=t.min.getDate();n.d.to=t.max.getDate()}}Object.assign(n,this.blocks,e);super._update({...r,mask:v(i)?i:s,blocks:n})}doValidate(t){const i=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(Y.extractPatternOptions(t))}}Y.GET_DEFAULT_BLOCKS=()=>({d:{mask:H,from:1,to:31,maxLength:2},m:{mask:H,from:1,to:12,maxLength:2},Y:{mask:H,from:1900,to:9999}});Y.DEFAULTS={...W.DEFAULTS,mask:Date,pattern:U,format:(t,i)=>{if(!t)return"";const s=String(t.getDate()).padStart(2,"0");const e=String(t.getMonth()+1).padStart(2,"0");const r=t.getFullYear();return[s,e,r].join(".")},parse:(t,i)=>{const[s,e,r]=t.split(".").map(Number);return new Date(r,e-1,s)}};F.MaskedDate=Y;class Z extends P{constructor(t){super({...Z.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:i,...s}=D(t);const e=B({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...s});if(i)this.exposeMask=e;return e})):[]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._applyDispatch(t,i);if(this.currentMask){s.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return s}_applyDispatch(t,i,s){if(t===void 0){t=""}if(i===void 0){i={}}if(s===void 0){s=""}const e=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;const r=this.rawInputValue;const n=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:r;const u=r.slice(n.length);const h=this.currentMask;const o=new T;const a=h==null?void 0:h.state;this.currentMask=this.doDispatch(t,{...i},s);if(this.currentMask){if(this.currentMask!==h){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});o.tailShift=this.currentMask.value.length-e.length}if(u){o.tailShift+=this.currentMask.append(u,{raw:true,tail:true}).tailShift}}else if(a){this.currentMask.state=a}}return o}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const i=new T;if(t)i.aggregate(this._applyDispatch("",{},t));return i.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var i,s;return{...t,_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((s=t._beforeTailState)==null?void 0:s.currentMask)||t._beforeTailState}}doDispatch(t,i,s){if(i===void 0){i={}}if(s===void 0){s=""}return this.dispatch(t,this,i,s)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepare(t,i);if(this.currentMask){let t;[s,t]=super.doPrepare(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}doPrepareChar(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepareChar(t,i);if(this.currentMask){let t;[s,t]=super.doPrepareChar(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,i){const s=new T;if(this.currentMask){s.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return s}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:i,currentMaskRef:s,currentMask:e,...r}=t;if(i)this.compiledMasks.forEach(((t,s)=>t.state=i[s]));if(s!=null){this.currentMask=s;this.currentMask.state=e}super.state=r}extractInput(t,i,s){return this.currentMask?this.currentMask.extractInput(t,i,s):""}extractTail(t,i){return this.currentMask?this.currentMask.extractTail(t,i):super.extractTail(t,i)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,i){return this.currentMask?this.currentMask.nearestInputPos(t,i):super.nearestInputPos(t,i)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((i,s)=>{if(!t[s])return;const{mask:e,...r}=t[s];return w(i,r)&&i.maskEquals(e)})):super.maskEquals(t)}typedValueEquals(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))}}Z.DEFAULTS={...P.DEFAULTS,dispatch:(t,i,s,e)=>{if(!i.compiledMasks.length)return;const r=i.rawInputValue;const n=i.compiledMasks.map(((n,u)=>{const h=i.currentMask===n;const o=h?n.displayValue.length:n.nearestInputPos(n.displayValue.length,b.FORCE_LEFT);if(n.rawInputValue!==r){n.reset();n.append(r,{raw:true})}else if(!h){n.remove(o)}n.append(t,i.currentMaskFlags(s));n.appendTail(e);return{index:u,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(o,n.nearestInputPos(n.displayValue.length,b.FORCE_LEFT)))}}));n.sort(((t,i)=>i.weight-t.weight||i.totalInputPositions-t.totalInputPositions));return i.compiledMasks[n[0].index]}};F.MaskedDynamic=Z;class K extends W{constructor(t){super({...K.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:i,...s}=t;if(i){const t=i.map((t=>t.length));const e=Math.min(...t);const r=Math.max(...t)-e;s.mask="*".repeat(e);if(r)s.mask+="["+"*".repeat(r)+"]";this.enum=i}super._update(s)}_appendCharRaw(t,i){if(i===void 0){i={}}const s=Math.min(this.nearestInputPos(0,b.FORCE_RIGHT),this.value.length);const e=this.enum.filter((i=>this.matchValue(i,this.unmaskedValue+t,s)));if(e.length){if(e.length===1){this._forEachBlocksInRange(0,this.value.length,((t,s)=>{const r=e[0][s];if(s>=this.value.length||r===t.value)return;t.reset();t._appendChar(r,i)}))}const t=super._appendCharRaw(e[0][this.value.length],i);if(e.length===1){e[0].slice(this.unmaskedValue.length).split("").forEach((i=>t.aggregate(super._appendCharRaw(i))))}return t}return new T({skip:!this.isComplete})}extractTail(t,i){if(t===void 0){t=0}return new R("",t)}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(t===i)return new T;const s=Math.min(super.nearestInputPos(0,b.FORCE_RIGHT),this.value.length);let e;for(e=t;e>=0;--e){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(s,e),s)));if(t.length>1)break}const r=super.remove(e,i);r.tailShift+=e-t;return r}get isComplete(){return this.enum.indexOf(this.value)>=0}}K.DEFAULTS={...W.DEFAULTS,matchValue:(t,i,s)=>t.indexOf(i,s)===s};F.MaskedEnum=K;class G extends P{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}F.MaskedFunction=G;var $;class J extends P{constructor(t){super({...J.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const i="\\d*";const s=(this.scale?"("+A(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+s);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(A).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(A(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)}doPrepareChar(t,i){if(i===void 0){i={}}const[s,e]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),i);if(t&&!s)e.skip=true;if(s&&!this.allowPositive&&!this.value&&s!=="-")e.aggregate(this._appendChar("-"));return[s,e]}_separatorsCount(t,i){if(i===void 0){i=false}let s=0;for(let e=0;e<t;++e){if(this._value.indexOf(this.thousandsSeparator,e)===e){++s;if(i)t+=this.thousandsSeparator.length}}return s}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);return this._removeThousandsSeparators(super.extractInput(t,i,s))}_appendCharRaw(t,i){if(i===void 0){i={}}const s=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const e=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=t;const n=this.number;let u=!isNaN(n);let h=false;if(u){let t;if(this.min!=null&&this.min<0&&this.number<this.min)t=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)t=this.max;if(t!=null){if(this.autofix){this._value=this.format(t,this).replace(J.UNMASKED_RADIX,this.radix);h||(h=r===this._value&&!i.tail)}else{u=false}}u&&(u=Boolean(this._value.match(this._numberRegExp)))}let o;if(!u){this._value=r;o=new T}else{o=new T({inserted:this._value.slice(r.length),rawInserted:h?"":t,skip:h})}this._value=this._insertThousandsSeparators(this._value);const a=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const l=this._separatorsCountFromSlice(a);o.tailShift+=(l-e)*this.thousandsSeparator.length;return o}_findSeparatorAround(t){if(this.thousandsSeparator){const i=t-this.thousandsSeparator.length+1;const s=this.value.indexOf(this.thousandsSeparator,i);if(s<=t)return s}return-1}_adjustRangeWithSeparators(t,i){const s=this._findSeparatorAround(t);if(s>=0)t=s;const e=this._findSeparatorAround(i);if(e>=0)i=e+this.thousandsSeparator.length;return[t,i]}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);const s=this.value.slice(0,t);const e=this.value.slice(i);const r=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+e));const n=this._separatorsCountFromSlice(s);return new T({tailShift:(n-r)*this.thousandsSeparator.length})}nearestInputPos(t,i){if(!this.thousandsSeparator)return t;switch(i){case b.NONE:case b.LEFT:case b.FORCE_LEFT:{const s=this._findSeparatorAround(t-1);if(s>=0){const e=s+this.thousandsSeparator.length;if(t<e||this.value.length<=e||i===b.FORCE_LEFT){return s}}break}case b.RIGHT:case b.FORCE_RIGHT:{const i=this._findSeparatorAround(t);if(i>=0){return i+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let i=t;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==t)this.unmaskedValue=this.format(i,this);let s=this.value;if(this.normalizeZeros)s=this._normalizeZeros(s);if(this.padFractionalZeros&&this.scale>0)s=this._padFractionalZeros(s);this._value=s}super.doCommit()}_normalizeZeros(t){const i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,((t,i,s,e)=>i+e));if(t.length&&!/\d$/.test(i[0]))i[0]=i[0]+"0";if(i.length>1){i[1]=i[1].replace(/0*$/,"");if(!i[1].length)i.length=1}return this._insertThousandsSeparators(i.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)}doSkipInvalid(t,i,s){if(i===void 0){i={}}const e=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===J.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,i,s)&&!e}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,J.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(J.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||J.EMPTY_VALUES.includes(t)&&J.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}$=J;J.UNMASKED_RADIX=".";J.EMPTY_VALUES=[...P.EMPTY_VALUES,0];J.DEFAULTS={...P.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[$.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})};F.MaskedNumber=J;const X={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Q(t,i,s){if(i===void 0){i=X.MASKED}if(s===void 0){s=X.MASKED}const e=B(t);return t=>e.runIsolated((e=>{e[i]=t;return e[s]}))}function tt(t,i,s,e){return Q(i,s,e)(t)}F.PIPE_TYPE=X;F.createPipe=Q;F.pipe=tt;class it extends W{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var i,s,e;const{repeat:r,...n}=D(t);this._blockOpts=Object.assign({},this._blockOpts,n);const u=B(this._blockOpts);this.repeat=(i=(s=r!=null?r:u.repeat)!=null?s:this.repeat)!=null?i:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((e=this._blocks)==null?void 0:e.length)||0,this.repeatFrom)),blocks:{m:u},eager:u.eager,overwrite:u.overwrite,skipInvalid:u.skipInvalid,lazy:u.lazy,placeholderChar:u.placeholderChar,displayChar:u.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(B(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=new T;for(let h=(e=(r=this._mapPosToBlock(this.displayValue.length))==null?void 0:r.index)!=null?e:Math.max(this._blocks.length-1,0),o,a;o=(n=this._blocks[h])!=null?n:a=!a&&this._allocateBlock(h);++h){var e,r,n,u;const l=o._appendChar(t,{...i,_beforeTailState:(u=i._beforeTailState)==null||(u=u._blocks)==null?void 0:u[h]});if(l.skip&&a){this._blocks.pop();this.mask=this.mask.slice(1);break}s.aggregate(l);if(l.consumed)break}return s}_trimEmptyTail(t,i){var s,e;if(t===void 0){t=0}const r=Math.max(((s=this._mapPosToBlock(t))==null?void 0:s.index)||0,this.repeatFrom,0);let n;if(i!=null)n=(e=this._mapPosToBlock(i))==null?void 0:e.index;if(n==null)n=this._blocks.length-1;let u=0;for(let t=n;r<=t;--t,++u){if(this._blocks[t].unmaskedValue)break}if(u){this._blocks.splice(n-u+1,u);this.mask=this.mask.slice(u)}}reset(){super.reset();this._trimEmptyTail()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._trimEmptyTail(t,i);return s}totalInputPositions(t,i){if(t===void 0){t=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,i)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}F.RepeatBlock=it;try{globalThis.IMask=F}catch{}const st='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;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:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-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-kba-dialog .buttons verdocs-button{margin-left:16px}';const et=st;const rt={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};const nt=Object.entries(rt).map((([t,i])=>({value:t,label:i})));const ut=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const ht=class{constructor(s){t(this,s);this.exit=i(this,"exit",7);this.pinEntered=i(this,"pinEntered",7);this.next=i(this,"next",7);this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){F(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var s=t.getMonth()+1;var e=t.getFullYear();if(i<10)i="0"+i;if(s<10)s="0"+s;return[s,i,e].join("/")},parse:function(t){var i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,i,n,u,h,o,a,l,d,c,f,p;if(this.mode==="choice"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ut}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"choices"},this.choices.map((t=>s("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t)))),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity"),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ut}),s("div",{class:"help-details"},s("div",{class:"help-title"},"Identity verification is required"),s("div",{class:"help-text"},"NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly."))),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-first"},"Your Name:",s("span",{class:"required"},"*")),s("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(t=this.updatedRecipient)===null||t===void 0?void 0:t.first_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,first_name:t.target.value}}),s("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-address"},"Address:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.address,onInput:t=>this.updatedRecipient={...this.updatedRecipient,address:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-city"},"City:"),s("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-state"},"State:"),s("verdocs-select-input",{options:nt,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:this.dobContainerId},"Date of Birth:",s("span",{class:"required"},"*")),s("input",{type:"text",value:((a=this.updatedRecipient)===null||a===void 0?void 0:a.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:t=>this.updatedRecipient={...this.updatedRecipient,dob:t.target.value}})),s("div",{class:"buttons"},s("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!((l=this.updatedRecipient)===null||l===void 0?void 0:l.first_name)||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.last_name)||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.address)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.zip)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.dob)})))))}return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ut}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};ht.style=et;const ot='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;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)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const at=ot;const lt=class{constructor(s){t(this,s);this.sdkError=i(this,"sdkError",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.another=i(this,"another",7);this.view=i(this,"view",7);this.next=i(this,"next",7);this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,i,s;if(!this.endpoint){this.endpoint=u.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await h(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(e){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new f(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(s=e.response)===null||s===void 0?void 0:s.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();p.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){p.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var i,s;switch(t.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;a(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var i,s,e;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new f(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(e=t.response)===null||e===void 0?void 0:e.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":{const t=this.envelope.documents.find((t=>t.type==="attachment"));if(t){const i=await o(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const i=await o(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-all":c(this.endpoint,[this.envelope]).then((()=>{var t;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((t=>{console.log("Error downloading Zip",t)}));break}}render(){var t;if(this.loading){return s(r,null,s("verdocs-loader",null))}if(this.showLoadError){return s(r,null,s("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return s(r,null,s("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const i=[{id:"print",label:"Print"}];if(l(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const n=this.envelope.documents.length>0;const u=this.envelope.documents.filter((t=>t.type==="attachment")).length;const h=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||h){i.push({label:""});if(n){i.push({id:"download-attachments",label:u>1?"Download Documents":"Download Document"})}if(h){i.push({id:"download-certificate",label:"Download Certificate"})}if(n&&h){i.push({id:"download-all",label:"Download All Files"})}}return s(r,null,s("div",{id:"verdocs-view-header"},s("div",{class:"inner"},s("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),s("div",{class:"title"},this.envelope.name),s("div",{style:{flex:"1"}}),s("div",{style:{marginLeft:"10px"}}),s("verdocs-dropdown",{options:i,onOptionSelected:t=>this.handleOptionSelected(t)}))),s("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const i=d(1,t.pages);return s(e,null,i.map((i=>{var e;const r=((e=t.page_sizes)===null||e===void 0?void 0:e[i])||{width:612,height:792};return s("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:r.width,virtualHeight:r.height,pageNumber:i,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&s("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&s("div",{class:"loading-indicator"},s("verdocs-loader",null)))}get component(){return n(this)}};lt.style=at;export{ht as verdocs_kba_dialog,lt as verdocs_view};
2
- //# sourceMappingURL=p-b17b12c5.entry.js.map
1
+ import{r as t,c as i,h as s,F as e,H as r,g as n}from"./p-576f984d.js";import{VerdocsEndpoint as u,getEnvelope as h,getDocumentDownloadLink as o,cancelEnvelope as a,userCanCancelEnvelope as l,integerSequence as d}from"@verdocs/js-sdk";import{s as c}from"./p-0c45b79c.js";import{S as f}from"./p-fd97809c.js";import{S as p}from"./p-33300e3a.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";function v(t){return typeof t==="string"||t instanceof String}function g(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function m(t,i){if(Array.isArray(i))return m(t,((t,s)=>i.includes(s)));return Object.entries(t).reduce(((t,s)=>{let[e,r]=s;if(i(r,e))t[e]=r;return t}),{})}const b={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function x(t){switch(t){case b.LEFT:return b.FORCE_LEFT;case b.RIGHT:return b.FORCE_RIGHT;default:return t}}function A(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function w(t,i){if(i===t)return true;const s=Array.isArray(i),e=Array.isArray(t);let r;if(s&&e){if(i.length!=t.length)return false;for(r=0;r<i.length;r++)if(!w(i[r],t[r]))return false;return true}if(s!=e)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){const s=i instanceof Date,e=t instanceof Date;if(s&&e)return i.getTime()==t.getTime();if(s!=e)return false;const n=i instanceof RegExp,u=t instanceof RegExp;if(n&&u)return i.toString()==t.toString();if(n!=u)return false;const h=Object.keys(i);for(r=0;r<h.length;r++)if(!Object.prototype.hasOwnProperty.call(t,h[r]))return false;for(r=0;r<h.length;r++)if(!w(t[h[r]],i[h[r]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}class C{constructor(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){if(!this.removedCount||this.insertedCount)return b.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?b.RIGHT:b.LEFT}}function F(t,i){return new F.InputMask(t,i)}function k(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return F.MaskedRegExp;if(v(t))return F.MaskedPattern;if(t===Date)return F.MaskedDate;if(t===Number)return F.MaskedNumber;if(Array.isArray(t)||t===Array)return F.MaskedDynamic;if(F.Masked&&t.prototype instanceof F.Masked)return t;if(F.Masked&&t instanceof F.Masked)return t.constructor;if(t instanceof Function)return F.MaskedFunction;console.warn("Mask not found for mask",t);return F.Masked}function D(t){if(!t)throw new Error("Options in not defined");if(F.Masked){if(t.prototype instanceof F.Masked)return{mask:t};const{mask:i=undefined,...s}=t instanceof F.Masked?{mask:t}:g(t)&&t.mask instanceof F.Masked?t:{};if(i){const t=i.mask;return{...m(i,((t,i)=>!i.startsWith("_"))),mask:i.constructor,_mask:t,...s}}}if(!g(t))return{mask:t};return{...t}}function B(t){if(F.Masked&&t instanceof F.Masked)return t;const i=D(t);const s=k(i.mask);if(!s)throw new Error("Masked class is not found for provided mask "+i.mask+", appropriate module needs to be imported manually before creating mask.");if(i.mask===s)delete i.mask;if(i._mask){i.mask=i._mask;delete i._mask}return new s(i)}F.createMask=B;class E{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch{}}get isActive(){return false}}F.MaskElement=E;const y=90;const I=89;class _ extends E{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,i,s;return(t=(i=(s=this.input).getRootNode)==null?void 0:i.call(s))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===y&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===I&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===y&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){if(!t.isComposing)this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}}}F.HTMLMaskElement=_;class S extends _{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,i){this.input.setSelectionRange(t,i)}get value(){return this.input.value}set value(t){this.input.value=t}}F.HTMLMaskElement=_;class V extends _{get _unsafeSelectionStart(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s<e){return s}return e}get _unsafeSelectionEnd(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s>e){return s}return e}_unsafeSelect(t,i){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,t);s.setEnd(this.input.lastChild||this.input,i);const e=this.rootElement;const r=e.getSelection&&e.getSelection();if(r){r.removeAllRanges();r.addRange(s)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}F.HTMLContenteditableMaskElement=V;class M{constructor(){this.states=[];this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(t);if(this.states.length>M.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1}go(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState}undo(){return this.go(-1)}redo(){return this.go(+1)}clear(){this.states.length=0;this.currentIndex=0}}M.MAX_LENGTH=100;class O{constructor(t,i){this.el=t instanceof E?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new V(t):new S(t);this.masked=B(i);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new M;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}maskEquals(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof F.Masked)&&this.masked.constructor===k(t)){this.masked.updateOptions({mask:t});return}const i=t instanceof F.Masked?t:B({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,i){const s=this._listeners[t];if(!s)return;s.forEach((t=>t(i)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const i=this.masked.unmaskedValue;const s=this.masked.value;const e=this.masked.rawInputValue;const r=this.displayValue;const n=this.unmaskedValue!==i||this.value!==s||this._rawInputValue!==e;this._unmaskedValue=i;this._value=s;this._rawInputValue=e;if(this.el.value!==r)this.el.value=r;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:i,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:i,...s}=t;const e=!this.maskEquals(i);const r=this.masked.optionsIsChanged(s);if(e)this.mask=i;if(r)this.masked.updateOptions(s);if(e||r)this.updateControl()}updateCursor(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)}_delayUpdateCursor(t){this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((()=>{if(!this.el)return;this.cursorPos=this._changingCursorPos;this._abortUpdateCursor()}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,b.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this}off(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}const s=this._listeners[t].indexOf(i);if(s>=0)this._listeners[t].splice(s,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const i=new C({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const s=this.masked.rawInputValue;const e=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;const r=s===this.masked.rawInputValue?i.removeDirection:b.NONE;let n=this.masked.nearestInputPos(i.startChangePos+e,r);if(r!==b.NONE)n=this.masked.nearestInputPos(n,b.NONE);this.updateControl(n);delete this._inputEvent}_onChange(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()}_onDrop(t){t.preventDefault();t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false}destroy(){this._unbindEvents();this._listeners.length=0;delete this.el}}F.InputMask=O;class T{static normalize(t){return Array.isArray(t)?t:[t,new T]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}aggregate(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return Boolean(this.rawInserted)||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}}F.ChangeDetails=T;class R{constructor(t,i,s){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=s}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const i=this.value[0];this.value=this.value.slice(1);return i}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class P{constructor(t){this._value="";this._update({...P.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,i){return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new R(this.extractInput(t,i),t)}appendTail(t){if(v(t))t=new R(String(t));return t.appendTo(this)}_appendCharRaw(t,i){if(!t)return new T;this._value+=t;return new T({inserted:t,rawInserted:t})}_appendChar(t,i,s){if(i===void 0){i={}}const e=this.state;let r;[t,r]=this.doPrepareChar(t,i);if(t){r=r.aggregate(this._appendCharRaw(t,i));if(!r.rawInserted&&this.autofix==="pad"){const s=this.state;this.state=e;let n=this.pad(i);const u=this._appendCharRaw(t,i);n=n.aggregate(u);if(u.rawInserted||n.equals(r)){r=n}else{this.state=s}}}if(r.inserted){let t;let n=this.doValidate(i)!==false;if(n&&s!=null){const i=this.state;if(this.overwrite===true){t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.unshift(this.displayValue.length-r.tailShift)}}let e=this.appendTail(s);n=e.rawInserted.length===s.toString().length;if(!(n&&e.inserted)&&this.overwrite==="shift"){this.state=i;t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.shift()}e=this.appendTail(s);n=e.rawInserted.length===s.toString().length}if(n&&e.inserted)this.state=i}if(!n){r=new T;this.state=e;if(s&&t)s.state=t}}return r}_appendPlaceholder(){return new T}_appendEager(){return new T}append(t,i,s){if(!v(t))throw new Error("value should be string");const e=v(s)?new R(String(s)):s;if(i!=null&&i.tail)i._beforeTailState=this.state;let r;[t,r]=this.doPrepare(t,i);for(let s=0;s<t.length;++s){const n=this._appendChar(t[s],i,e);if(!n.rawInserted&&!this.doSkipInvalid(t[s],i,e))break;r.aggregate(n)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){r.aggregate(this._appendEager())}if(e!=null){r.tailShift+=this.appendTail(e).tailShift}return r}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(i);return new T}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const i=this.rawInputValue;const s=this.value;const e=t();this.rawInputValue=i;if(this.value&&this.value!==s&&s.indexOf(this.value)===0){this.append(s.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return e}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const i=this.state;const s=t(this);this.state=i;delete this._isolated;return s}doSkipInvalid(t,i,s){return Boolean(this.skipInvalid)}doPrepare(t,i){if(i===void 0){i={}}return T.normalize(this.prepare?this.prepare(t,this,i):t)}doPrepareChar(t,i){if(i===void 0){i={}}return T.normalize(this.prepareChar?this.prepareChar(t,this,i):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,i,s,e,r){if(s===void 0){s=""}if(e===void 0){e=b.NONE}if(r===void 0){r={input:true}}const n=t+i;const u=this.extractTail(n);const h=this.eager===true||this.eager==="remove";let o;if(h){e=x(e);o=this.extractInput(0,n,{raw:true})}let a=t;const l=new T;if(e!==b.NONE){a=this.nearestInputPos(t,i>1&&t!==0&&!h?b.NONE:e);l.tailShift=a-t}l.aggregate(this.remove(a));if(h&&e!==b.NONE&&o===this.rawInputValue){if(e===b.FORCE_LEFT){let t;while(o===this.rawInputValue&&(t=this.displayValue.length)){l.aggregate(new T({tailShift:-1})).aggregate(this.remove(t-1))}}else if(e===b.FORCE_RIGHT){u.unshift()}}return l.aggregate(this.append(s,r,u))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!w(this,t)}typedValueEquals(t){const i=this.typedValue;return t===i||P.EMPTY_VALUES.includes(t)&&P.EMPTY_VALUES.includes(i)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new T}}P.DEFAULTS={skipInvalid:true};P.EMPTY_VALUES=[undefined,null,""];F.Masked=P;class N{constructor(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=v(t)?new R(String(t)):t;const i=this.chunks[this.chunks.length-1];const s=i&&(i.stop===t.stop||t.stop==null)&&t.from===i.from+i.toString().length;if(t instanceof R){if(s){i.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof N){if(t.stop==null){let i;while(t.chunks.length&&t.chunks[0].stop==null){i=t.chunks.shift();i.from+=t.from;this.extend(i)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof F.MaskedPattern)){const i=new R(this.toString());return i.appendTo(t)}const i=new T;for(let s=0;s<this.chunks.length;++s){const e=this.chunks[s];const r=t._mapPosToBlock(t.displayValue.length);const n=e.stop;let u;if(n!=null&&(!r||r.index<=n)){if(e instanceof N||t._stops.indexOf(n)>=0){i.aggregate(t._appendPlaceholder(n))}u=e instanceof N&&t._blocks[n]}if(u){const s=u.appendTail(e);i.aggregate(s);const r=e.toString().slice(s.rawInserted.length);if(r)i.aggregate(t.append(r,{tail:true}))}else{i.aggregate(t.append(e.toString(),{tail:true}))}}return i}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:i,...s}=t;Object.assign(this,s);this.chunks=i.map((t=>{const i="chunks"in t?new N:new R;i.state=t;return i}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const i=t!=null?t-this.from:t;let s=0;while(s<this.chunks.length){const t=this.chunks[s];const e=t.unshift(i);if(t.toString()){if(!e)break;++s}else{this.chunks.splice(s,1)}if(e)return e}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const i=this.chunks[t];const s=i.shift();if(i.toString()){if(!s)break;--t}else{this.chunks.splice(t,1)}if(s)return s}return""}}class z{constructor(t,i){this.masked=t;this._log=[];const{offset:s,index:e}=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s;this.index=e;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}}_pushLeft(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(t())return this.ok=true}return this.ok=false}_pushRight(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,b.LEFT);return true}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.FORCE_RIGHT);if(this.offset!==this.block.value.length)return true}))}pushRightBeforeInput(){return this._pushRight((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,b.NONE);return true}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,b.NONE);return true}))}}class j{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(i);if(!this._value)this._isRawInput=false;return new T}nearestInputPos(t,i){if(i===void 0){i=b.NONE}const s=0;const e=this._value.length;switch(i){case b.LEFT:case b.FORCE_LEFT:return s;case b.NONE:case b.RIGHT:case b.FORCE_RIGHT:default:return e}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this._value.length}if(s===void 0){s={}}return s.raw&&this._isRawInput&&this._value.slice(t,i)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new T;const s=this.eager===true||this.eager==="append";const e=this.char===t;const r=e&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!s)&&!i.tail;const n=new T({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(i.raw||i.input);return n}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new T;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new R("")}appendTail(t){if(v(t))t=new R(String(t));return t.appendTo(this)}append(t,i,s){const e=this._appendChar(t[0],i);if(s!=null){e.tailShift+=this.appendTail(s).tailShift}return e}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)}pad(t){return this._appendPlaceholder()}}class L{constructor(t){const{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u,...h}=t;this.masked=B(h);Object.assign(this,{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u})}reset(){this.isFilled=false;this.masked.reset()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}if(t===0&&i>=1){this.isFilled=false;return this.masked.remove(t,i)}return new T}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new T;const s=this.masked.state;let e=this.masked._appendChar(t,this.currentMaskFlags(i));if(e.inserted&&this.doValidate(i)===false){e=new T;this.masked.state=s}if(!e.inserted&&!this.isOptional&&!this.lazy&&!i.input){e.inserted=this.placeholderChar}e.skip=!e.inserted&&!this.isOptional;this.isFilled=Boolean(e.inserted);return e}append(t,i,s){return this.masked.append(t,this.currentMaskFlags(i),s)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new T;this.isFilled=true;return new T({inserted:this.placeholderChar})}_appendEager(){return new T}extractTail(t,i){return this.masked.extractTail(t,i)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,s)}nearestInputPos(t,i){if(i===void 0){i=b.NONE}const s=0;const e=this.value.length;const r=Math.min(Math.max(t,s),e);switch(i){case b.LEFT:case b.FORCE_LEFT:return this.isComplete?r:s;case b.RIGHT:case b.FORCE_RIGHT:return this.isComplete?r:e;case b.NONE:default:return r}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var i;return{...t,_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new T}}L.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class q extends P{updateOptions(t){super.updateOptions(t)}_update(t){const i=t.mask;if(i)t.validate=t=>t.search(i)>=0;super._update(t)}}F.MaskedRegExp=q;class W extends P{constructor(t){super({...W.DEFAULTS,...t,definitions:Object.assign({},L.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const i=this.mask;if(!i||!t)return;let s=false;let e=false;for(let r=0;r<i.length;++r){if(this.blocks){const t=i.slice(r);const s=Object.keys(this.blocks).filter((i=>t.indexOf(i)===0));s.sort(((t,i)=>i.length-t.length));const e=s[0];if(e){const{expose:t,repeat:i,...s}=D(this.blocks[e]);const n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...s,repeat:i,parent:this};const u=i!=null?new F.RepeatBlock(n):B(n);if(u){this._blocks.push(u);if(t)this.exposeBlock=u;if(!this._maskedBlocks[e])this._maskedBlocks[e]=[];this._maskedBlocks[e].push(this._blocks.length-1)}r+=e.length-1;continue}}let n=i[r];let u=n in t;if(n===W.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(n==="{"||n==="}"){s=!s;continue}if(n==="["||n==="]"){e=!e;continue}if(n===W.ESCAPE_CHAR){++r;n=i[r];if(!n)break;u=false}const h=u?new L({isOptional:e,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...D(t[n]),parent:this}):new j({char:n,eager:this.eager,isUnmasking:s});this._blocks.push(h)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:i,...s}=t;this._blocks.forEach(((t,s)=>t.state=i[s]));super.state=s}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,i)=>t+=i.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(i);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,i)=>t+=i.value),"")}set value(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(i);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(i);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,i)=>t+=i.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const i=new T;let s=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(s==null)return i;if(this._blocks[s].isFilled)++s;for(let t=s;t<this._blocks.length;++t){const s=this._blocks[t]._appendEager();if(!s.inserted)break;i.aggregate(s)}return i}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._mapPosToBlock(this.displayValue.length);const e=new T;if(!s)return e;for(let n=s.index,u;u=this._blocks[n];++n){var r;const s=u._appendChar(t,{...i,_beforeTailState:(r=i._beforeTailState)==null||(r=r._blocks)==null?void 0:r[n]});e.aggregate(s);if(s.consumed)break}return e}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=new N;if(t===i)return s;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{const n=t.extractTail(e,r);n.stop=this._findStopBefore(i);n.from=this._blockStartPos(i);if(n instanceof N)n.blockIndex=i;s.extend(n)}));return s}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(s===void 0){s={}}if(t===i)return"";let e="";this._forEachBlocksInRange(t,i,((t,i,r,n)=>{e+=t.extractInput(r,n,s)}));return e}_findStopBefore(t){let i;for(let s=0;s<this._stops.length;++s){const e=this._stops[s];if(e<=t)i=e;else break}return i}_appendPlaceholder(t){const i=new T;if(this.lazy&&t==null)return i;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return i;const e=s.index;const r=t!=null?t:this._blocks.length;this._blocks.slice(e,r).forEach((s=>{if(!s.lazy||t!=null){var e;i.aggregate(s._appendPlaceholder((e=s._blocks)==null?void 0:e.length))}}));return i}_mapPosToBlock(t){let i="";for(let s=0;s<this._blocks.length;++s){const e=this._blocks[s];const r=i.length;i+=e.displayValue;if(t<=i.length){return{index:s,offset:t-r}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,i)=>t+=i.displayValue.length),0)}_forEachBlocksInRange(t,i,s){if(i===void 0){i=this.displayValue.length}const e=this._mapPosToBlock(t);if(e){const t=this._mapPosToBlock(i);const r=t&&e.index===t.index;const n=e.offset;const u=t&&r?t.offset:this._blocks[e.index].displayValue.length;s(this._blocks[e.index],e.index,n,u);if(t&&!r){for(let i=e.index+1;i<t.index;++i){s(this._blocks[i],i,0,this._blocks[i].displayValue.length)}s(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s.aggregate(t.remove(e,r))}));return s}nearestInputPos(t,i){if(i===void 0){i=b.NONE}if(!this._blocks.length)return 0;const s=new z(this,t);if(i===b.NONE){if(s.pushRightBeforeInput())return s.pos;s.popState();if(s.pushLeftBeforeInput())return s.pos;return this.displayValue.length}if(i===b.LEFT||i===b.FORCE_LEFT){if(i===b.LEFT){s.pushRightBeforeFilled();if(s.ok&&s.pos===t)return t;s.popState()}s.pushLeftBeforeInput();s.pushLeftBeforeRequired();s.pushLeftBeforeFilled();if(i===b.LEFT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.ok&&s.pos<=t)return s.pos;s.popState();if(s.ok&&s.pos<=t)return s.pos;s.popState()}if(s.ok)return s.pos;if(i===b.FORCE_LEFT)return 0;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return 0}if(i===b.RIGHT||i===b.FORCE_RIGHT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.pushRightBeforeFilled())return s.pos;if(i===b.FORCE_RIGHT)return this.displayValue.length;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return this.nearestInputPos(t,b.LEFT)}return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}let s=0;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s+=t.totalInputPositions(e,r)}));return s}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const i=this._maskedBlocks[t];if(!i)return[];return i.map((t=>this._blocks[t]))}pad(t){const i=new T;this._forEachBlocksInRange(0,this.displayValue.length,(s=>i.aggregate(s.pad(t))));return i}}W.DEFAULTS={...P.DEFAULTS,lazy:true,placeholderChar:"_"};W.STOP_CHAR="`";W.ESCAPE_CHAR="\\";W.InputDefinition=L;W.FixedDefinition=j;F.MaskedPattern=W;class H extends W{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:i=this.to||0,from:s=this.from||0,maxLength:e=this.maxLength||0,autofix:r=this.autofix,...n}=t;this.to=i;this.from=s;this.maxLength=Math.max(String(i).length,e);this.autofix=r;const u=String(this.from).padStart(this.maxLength,"0");const h=String(this.to).padStart(this.maxLength,"0");let o=0;while(o<h.length&&h[o]===u[o])++o;n.mask=h.slice(0,o).replace(/0/g,"\\0")+"0".repeat(this.maxLength-o);super._update(n)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let i="";let s="";const[,e,r]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(r){i="0".repeat(e.length)+r;s="9".repeat(e.length)+r}i=i.padEnd(this.maxLength,"0");s=s.padEnd(this.maxLength,"9");return[i,s]}doPrepareChar(t,i){if(i===void 0){i={}}let s;[t,s]=super.doPrepareChar(t.replace(/\D/g,""),i);if(!t)s.skip=!this.isComplete;return[t,s]}_appendCharRaw(t,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,i);const s=String(this.from).padStart(this.maxLength,"0");const e=String(this.to).padStart(this.maxLength,"0");const[r,n]=this.boundaries(this.value+t);if(Number(n)<this.from)return super._appendCharRaw(s[this.value.length],i);if(Number(r)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(s[this.value.length],i).aggregate(this._appendCharRaw(t,i))}return super._appendCharRaw(e[this.value.length],i)}return super._appendCharRaw(t,i)}doValidate(t){const i=this.value;const s=i.search(/[^0]/);if(s===-1&&i.length<=this._matchFrom)return true;const[e,r]=this.boundaries(i);return this.from<=Number(r)&&Number(e)<=this.to&&super.doValidate(t)}pad(t){const i=new T;if(this.value.length===this.maxLength)return i;const s=this.value;const e=this.maxLength-this.value.length;if(e){this.reset();for(let s=0;s<e;++s){i.aggregate(super._appendCharRaw("0",t))}s.split("").forEach((t=>this._appendCharRaw(t)))}return i}}F.MaskedRange=H;const U="d{.}`m{.}`Y";class Y extends W{static extractPatternOptions(t){const{mask:i,pattern:s,...e}=t;return{...e,mask:v(i)?i:s}}constructor(t){super(Y.extractPatternOptions({...Y.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:i,pattern:s,blocks:e,...r}={...Y.DEFAULTS,...t};const n=Object.assign({},Y.GET_DEFAULT_BLOCKS());if(t.min)n.Y.from=t.min.getFullYear();if(t.max)n.Y.to=t.max.getFullYear();if(t.min&&t.max&&n.Y.from===n.Y.to){n.m.from=t.min.getMonth()+1;n.m.to=t.max.getMonth()+1;if(n.m.from===n.m.to){n.d.from=t.min.getDate();n.d.to=t.max.getDate()}}Object.assign(n,this.blocks,e);super._update({...r,mask:v(i)?i:s,blocks:n})}doValidate(t){const i=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(Y.extractPatternOptions(t))}}Y.GET_DEFAULT_BLOCKS=()=>({d:{mask:H,from:1,to:31,maxLength:2},m:{mask:H,from:1,to:12,maxLength:2},Y:{mask:H,from:1900,to:9999}});Y.DEFAULTS={...W.DEFAULTS,mask:Date,pattern:U,format:(t,i)=>{if(!t)return"";const s=String(t.getDate()).padStart(2,"0");const e=String(t.getMonth()+1).padStart(2,"0");const r=t.getFullYear();return[s,e,r].join(".")},parse:(t,i)=>{const[s,e,r]=t.split(".").map(Number);return new Date(r,e-1,s)}};F.MaskedDate=Y;class Z extends P{constructor(t){super({...Z.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:i,...s}=D(t);const e=B({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...s});if(i)this.exposeMask=e;return e})):[]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._applyDispatch(t,i);if(this.currentMask){s.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return s}_applyDispatch(t,i,s){if(t===void 0){t=""}if(i===void 0){i={}}if(s===void 0){s=""}const e=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;const r=this.rawInputValue;const n=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:r;const u=r.slice(n.length);const h=this.currentMask;const o=new T;const a=h==null?void 0:h.state;this.currentMask=this.doDispatch(t,{...i},s);if(this.currentMask){if(this.currentMask!==h){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});o.tailShift=this.currentMask.value.length-e.length}if(u){o.tailShift+=this.currentMask.append(u,{raw:true,tail:true}).tailShift}}else if(a){this.currentMask.state=a}}return o}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const i=new T;if(t)i.aggregate(this._applyDispatch("",{},t));return i.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var i,s;return{...t,_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((s=t._beforeTailState)==null?void 0:s.currentMask)||t._beforeTailState}}doDispatch(t,i,s){if(i===void 0){i={}}if(s===void 0){s=""}return this.dispatch(t,this,i,s)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepare(t,i);if(this.currentMask){let t;[s,t]=super.doPrepare(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}doPrepareChar(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepareChar(t,i);if(this.currentMask){let t;[s,t]=super.doPrepareChar(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,i){const s=new T;if(this.currentMask){s.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return s}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:i,currentMaskRef:s,currentMask:e,...r}=t;if(i)this.compiledMasks.forEach(((t,s)=>t.state=i[s]));if(s!=null){this.currentMask=s;this.currentMask.state=e}super.state=r}extractInput(t,i,s){return this.currentMask?this.currentMask.extractInput(t,i,s):""}extractTail(t,i){return this.currentMask?this.currentMask.extractTail(t,i):super.extractTail(t,i)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,i){return this.currentMask?this.currentMask.nearestInputPos(t,i):super.nearestInputPos(t,i)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((i,s)=>{if(!t[s])return;const{mask:e,...r}=t[s];return w(i,r)&&i.maskEquals(e)})):super.maskEquals(t)}typedValueEquals(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))}}Z.DEFAULTS={...P.DEFAULTS,dispatch:(t,i,s,e)=>{if(!i.compiledMasks.length)return;const r=i.rawInputValue;const n=i.compiledMasks.map(((n,u)=>{const h=i.currentMask===n;const o=h?n.displayValue.length:n.nearestInputPos(n.displayValue.length,b.FORCE_LEFT);if(n.rawInputValue!==r){n.reset();n.append(r,{raw:true})}else if(!h){n.remove(o)}n.append(t,i.currentMaskFlags(s));n.appendTail(e);return{index:u,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(o,n.nearestInputPos(n.displayValue.length,b.FORCE_LEFT)))}}));n.sort(((t,i)=>i.weight-t.weight||i.totalInputPositions-t.totalInputPositions));return i.compiledMasks[n[0].index]}};F.MaskedDynamic=Z;class K extends W{constructor(t){super({...K.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:i,...s}=t;if(i){const t=i.map((t=>t.length));const e=Math.min(...t);const r=Math.max(...t)-e;s.mask="*".repeat(e);if(r)s.mask+="["+"*".repeat(r)+"]";this.enum=i}super._update(s)}_appendCharRaw(t,i){if(i===void 0){i={}}const s=Math.min(this.nearestInputPos(0,b.FORCE_RIGHT),this.value.length);const e=this.enum.filter((i=>this.matchValue(i,this.unmaskedValue+t,s)));if(e.length){if(e.length===1){this._forEachBlocksInRange(0,this.value.length,((t,s)=>{const r=e[0][s];if(s>=this.value.length||r===t.value)return;t.reset();t._appendChar(r,i)}))}const t=super._appendCharRaw(e[0][this.value.length],i);if(e.length===1){e[0].slice(this.unmaskedValue.length).split("").forEach((i=>t.aggregate(super._appendCharRaw(i))))}return t}return new T({skip:!this.isComplete})}extractTail(t,i){if(t===void 0){t=0}return new R("",t)}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(t===i)return new T;const s=Math.min(super.nearestInputPos(0,b.FORCE_RIGHT),this.value.length);let e;for(e=t;e>=0;--e){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(s,e),s)));if(t.length>1)break}const r=super.remove(e,i);r.tailShift+=e-t;return r}get isComplete(){return this.enum.indexOf(this.value)>=0}}K.DEFAULTS={...W.DEFAULTS,matchValue:(t,i,s)=>t.indexOf(i,s)===s};F.MaskedEnum=K;class G extends P{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}F.MaskedFunction=G;var $;class J extends P{constructor(t){super({...J.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const i="\\d*";const s=(this.scale?"("+A(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+s);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(A).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(A(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)}doPrepareChar(t,i){if(i===void 0){i={}}const[s,e]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),i);if(t&&!s)e.skip=true;if(s&&!this.allowPositive&&!this.value&&s!=="-")e.aggregate(this._appendChar("-"));return[s,e]}_separatorsCount(t,i){if(i===void 0){i=false}let s=0;for(let e=0;e<t;++e){if(this._value.indexOf(this.thousandsSeparator,e)===e){++s;if(i)t+=this.thousandsSeparator.length}}return s}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);return this._removeThousandsSeparators(super.extractInput(t,i,s))}_appendCharRaw(t,i){if(i===void 0){i={}}const s=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const e=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=t;const n=this.number;let u=!isNaN(n);let h=false;if(u){let t;if(this.min!=null&&this.min<0&&this.number<this.min)t=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)t=this.max;if(t!=null){if(this.autofix){this._value=this.format(t,this).replace(J.UNMASKED_RADIX,this.radix);h||(h=r===this._value&&!i.tail)}else{u=false}}u&&(u=Boolean(this._value.match(this._numberRegExp)))}let o;if(!u){this._value=r;o=new T}else{o=new T({inserted:this._value.slice(r.length),rawInserted:h?"":t,skip:h})}this._value=this._insertThousandsSeparators(this._value);const a=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const l=this._separatorsCountFromSlice(a);o.tailShift+=(l-e)*this.thousandsSeparator.length;return o}_findSeparatorAround(t){if(this.thousandsSeparator){const i=t-this.thousandsSeparator.length+1;const s=this.value.indexOf(this.thousandsSeparator,i);if(s<=t)return s}return-1}_adjustRangeWithSeparators(t,i){const s=this._findSeparatorAround(t);if(s>=0)t=s;const e=this._findSeparatorAround(i);if(e>=0)i=e+this.thousandsSeparator.length;return[t,i]}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);const s=this.value.slice(0,t);const e=this.value.slice(i);const r=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+e));const n=this._separatorsCountFromSlice(s);return new T({tailShift:(n-r)*this.thousandsSeparator.length})}nearestInputPos(t,i){if(!this.thousandsSeparator)return t;switch(i){case b.NONE:case b.LEFT:case b.FORCE_LEFT:{const s=this._findSeparatorAround(t-1);if(s>=0){const e=s+this.thousandsSeparator.length;if(t<e||this.value.length<=e||i===b.FORCE_LEFT){return s}}break}case b.RIGHT:case b.FORCE_RIGHT:{const i=this._findSeparatorAround(t);if(i>=0){return i+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let i=t;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==t)this.unmaskedValue=this.format(i,this);let s=this.value;if(this.normalizeZeros)s=this._normalizeZeros(s);if(this.padFractionalZeros&&this.scale>0)s=this._padFractionalZeros(s);this._value=s}super.doCommit()}_normalizeZeros(t){const i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,((t,i,s,e)=>i+e));if(t.length&&!/\d$/.test(i[0]))i[0]=i[0]+"0";if(i.length>1){i[1]=i[1].replace(/0*$/,"");if(!i[1].length)i.length=1}return this._insertThousandsSeparators(i.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)}doSkipInvalid(t,i,s){if(i===void 0){i={}}const e=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===J.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,i,s)&&!e}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,J.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(J.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||J.EMPTY_VALUES.includes(t)&&J.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}$=J;J.UNMASKED_RADIX=".";J.EMPTY_VALUES=[...P.EMPTY_VALUES,0];J.DEFAULTS={...P.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[$.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})};F.MaskedNumber=J;const X={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Q(t,i,s){if(i===void 0){i=X.MASKED}if(s===void 0){s=X.MASKED}const e=B(t);return t=>e.runIsolated((e=>{e[i]=t;return e[s]}))}function tt(t,i,s,e){return Q(i,s,e)(t)}F.PIPE_TYPE=X;F.createPipe=Q;F.pipe=tt;class it extends W{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var i,s,e;const{repeat:r,...n}=D(t);this._blockOpts=Object.assign({},this._blockOpts,n);const u=B(this._blockOpts);this.repeat=(i=(s=r!=null?r:u.repeat)!=null?s:this.repeat)!=null?i:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((e=this._blocks)==null?void 0:e.length)||0,this.repeatFrom)),blocks:{m:u},eager:u.eager,overwrite:u.overwrite,skipInvalid:u.skipInvalid,lazy:u.lazy,placeholderChar:u.placeholderChar,displayChar:u.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(B(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=new T;for(let h=(e=(r=this._mapPosToBlock(this.displayValue.length))==null?void 0:r.index)!=null?e:Math.max(this._blocks.length-1,0),o,a;o=(n=this._blocks[h])!=null?n:a=!a&&this._allocateBlock(h);++h){var e,r,n,u;const l=o._appendChar(t,{...i,_beforeTailState:(u=i._beforeTailState)==null||(u=u._blocks)==null?void 0:u[h]});if(l.skip&&a){this._blocks.pop();this.mask=this.mask.slice(1);break}s.aggregate(l);if(l.consumed)break}return s}_trimEmptyTail(t,i){var s,e;if(t===void 0){t=0}const r=Math.max(((s=this._mapPosToBlock(t))==null?void 0:s.index)||0,this.repeatFrom,0);let n;if(i!=null)n=(e=this._mapPosToBlock(i))==null?void 0:e.index;if(n==null)n=this._blocks.length-1;let u=0;for(let t=n;r<=t;--t,++u){if(this._blocks[t].unmaskedValue)break}if(u){this._blocks.splice(n-u+1,u);this.mask=this.mask.slice(u)}}reset(){super.reset();this._trimEmptyTail()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._trimEmptyTail(t,i);return s}totalInputPositions(t,i){if(t===void 0){t=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,i)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}F.RepeatBlock=it;try{globalThis.IMask=F}catch{}const st='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;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:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-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-kba-dialog .buttons verdocs-button{margin-left:16px}';const et=st;const rt={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};const nt=Object.entries(rt).map((([t,i])=>({value:t,label:i})));const ut=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const ht=class{constructor(s){t(this,s);this.exit=i(this,"exit",7);this.pinEntered=i(this,"pinEntered",7);this.next=i(this,"next",7);this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){F(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var s=t.getMonth()+1;var e=t.getFullYear();if(i<10)i="0"+i;if(s<10)s="0"+s;return[s,i,e].join("/")},parse:function(t){var i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,i,n,u,h,o,a,l,d,c,f,p;if(this.mode==="choice"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ut}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"choices"},this.choices.map((t=>s("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t)))),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity"),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ut}),s("div",{class:"help-details"},s("div",{class:"help-title"},"Identity verification is required"),s("div",{class:"help-text"},"NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly."))),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-first"},"Your Name:",s("span",{class:"required"},"*")),s("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(t=this.updatedRecipient)===null||t===void 0?void 0:t.first_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,first_name:t.target.value}}),s("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-address"},"Address:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.address,onInput:t=>this.updatedRecipient={...this.updatedRecipient,address:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-city"},"City:"),s("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-state"},"State:"),s("verdocs-select-input",{options:nt,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:this.dobContainerId},"Date of Birth:",s("span",{class:"required"},"*")),s("input",{type:"text",value:((a=this.updatedRecipient)===null||a===void 0?void 0:a.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:t=>this.updatedRecipient={...this.updatedRecipient,dob:t.target.value}})),s("div",{class:"buttons"},s("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!((l=this.updatedRecipient)===null||l===void 0?void 0:l.first_name)||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.last_name)||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.address)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.zip)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.dob)})))))}return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ut}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};ht.style=et;const ot='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;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)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const at=ot;const lt=class{constructor(s){t(this,s);this.sdkError=i(this,"sdkError",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.another=i(this,"another",7);this.view=i(this,"view",7);this.next=i(this,"next",7);this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,i,s;if(!this.endpoint){this.endpoint=u.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await h(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(e){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new f(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(s=e.response)===null||s===void 0?void 0:s.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();p.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){p.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var i,s;switch(t.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;a(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var i,s,e;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new f(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(e=t.response)===null||e===void 0?void 0:e.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":{const t=this.envelope.documents.find((t=>t.type==="attachment"));if(t){const i=await o(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const i=await o(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-all":c(this.endpoint,[this.envelope]).then((()=>{var t;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((t=>{console.log("Error downloading Zip",t)}));break}}render(){var t;if(this.loading){return s(r,null,s("verdocs-loader",null))}if(this.showLoadError){return s(r,null,s("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return s(r,null,s("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const i=[{id:"print",label:"Print"}];if(l(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const n=this.envelope.documents.length>0;const u=this.envelope.documents.filter((t=>t.type==="attachment")).length;const h=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||h){i.push({label:""});if(n){i.push({id:"download-attachments",label:u>1?"Download Documents":"Download Document"})}if(h){i.push({id:"download-certificate",label:"Download Certificate"})}if(n&&h){i.push({id:"download-all",label:"Download All Files"})}}return s(r,null,s("div",{id:"verdocs-view-header"},s("div",{class:"inner"},s("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),s("div",{class:"title"},this.envelope.name),s("div",{style:{flex:"1"}}),s("div",{style:{marginLeft:"10px"}}),s("verdocs-dropdown",{options:i,onOptionSelected:t=>this.handleOptionSelected(t)}))),s("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const i=d(1,t.pages);return s(e,null,i.map((i=>{var e;const r=((e=t.page_sizes)===null||e===void 0?void 0:e[i])||{width:612,height:792};return s("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:r.width,virtualHeight:r.height,pageNumber:i,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&s("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&s("div",{class:"loading-indicator"},s("verdocs-loader",null)))}get component(){return n(this)}};lt.style=at;export{ht as verdocs_kba_dialog,lt as verdocs_view};
2
+ //# sourceMappingURL=p-e7cf98ed.entry.js.map