@verdocs/web-sdk 5.0.73 → 5.0.75

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 (156) hide show
  1. package/dist/cjs/{utils-Bxil_g6M.js → utils-DCB8q98B.js} +6 -2
  2. package/dist/cjs/utils-DCB8q98B.js.map +1 -0
  3. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  4. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  5. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +4 -1
  6. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -1
  7. package/dist/cjs/verdocs-envelope-sidebar.entry.cjs.js.map +1 -1
  8. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +1 -5
  10. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -1
  11. package/dist/cjs/verdocs-kba-dialog_3.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  16. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +4 -1
  17. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -1
  18. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js.map +1 -1
  19. package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.js.map +1 -1
  20. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +1 -5
  21. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js.map +1 -1
  22. package/dist/collection/utils/utils.js +4 -0
  23. package/dist/collection/utils/utils.js.map +1 -1
  24. package/dist/components/{p-Clok0sKa.js → p-BqWxusTA.js} +4 -4
  25. package/dist/components/{p-Clok0sKa.js.map → p-BqWxusTA.js.map} +1 -1
  26. package/dist/components/p-CDTU_UJD.js.map +1 -1
  27. package/dist/components/{p-CG2DS0Ct.js → p-CLHwiJsu.js} +3 -3
  28. package/dist/components/{p-CG2DS0Ct.js.map → p-CLHwiJsu.js.map} +1 -1
  29. package/dist/components/{p-B3KdiIa6.js → p-CWHHlD3o.js} +3 -3
  30. package/dist/components/{p-B3KdiIa6.js.map → p-CWHHlD3o.js.map} +1 -1
  31. package/dist/components/{p-rafg8cJv.js → p-Cfx8TNcj.js} +4 -4
  32. package/dist/components/{p-rafg8cJv.js.map → p-Cfx8TNcj.js.map} +1 -1
  33. package/dist/components/{p-D-4uVyuT.js → p-CpHTrnj5.js} +3 -3
  34. package/dist/components/{p-D-4uVyuT.js.map → p-CpHTrnj5.js.map} +1 -1
  35. package/dist/components/{p-DDMPZ6xr.js → p-D38Lnu3J.js} +3 -3
  36. package/dist/components/{p-DDMPZ6xr.js.map → p-D38Lnu3J.js.map} +1 -1
  37. package/dist/components/{p-DA5NR945.js → p-De7UWCgq.js} +3 -7
  38. package/dist/components/p-De7UWCgq.js.map +1 -0
  39. package/dist/components/{p-rIIybUCF.js → p-DsBOZHKo.js} +6 -2
  40. package/dist/components/{p-rIIybUCF.js.map → p-DsBOZHKo.js.map} +1 -1
  41. package/dist/components/{p-DcAnGvC8.js → p-eiHT7SZQ.js} +5 -5
  42. package/dist/components/{p-DcAnGvC8.js.map → p-eiHT7SZQ.js.map} +1 -1
  43. package/dist/components/{p-BFgewNxB.js → p-iOb94GB3.js} +4 -4
  44. package/dist/components/{p-BFgewNxB.js.map → p-iOb94GB3.js.map} +1 -1
  45. package/dist/components/p-z0ZD30Bi.js.map +1 -1
  46. package/dist/components/verdocs-build.js +6 -6
  47. package/dist/components/verdocs-contact-picker.js +1 -1
  48. package/dist/components/verdocs-envelope-document-page.js +1 -1
  49. package/dist/components/verdocs-envelope-sidebar.js +4 -1
  50. package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
  51. package/dist/components/verdocs-envelopes-list.js +2 -2
  52. package/dist/components/verdocs-field-textbox.js +1 -1
  53. package/dist/components/verdocs-preview.js +1 -1
  54. package/dist/components/verdocs-quick-filter.js +1 -1
  55. package/dist/components/verdocs-send.js +1 -1
  56. package/dist/components/verdocs-sign.js +3 -3
  57. package/dist/components/verdocs-template-document-page.js +1 -1
  58. package/dist/components/verdocs-template-fields.js +1 -1
  59. package/dist/components/verdocs-templates-list.js +1 -1
  60. package/dist/components/verdocs-view.js +1 -1
  61. package/dist/esm/{utils-CbfXTNEw.js → utils-DmfOx9Ey.js} +6 -2
  62. package/dist/esm/utils-DmfOx9Ey.js.map +1 -0
  63. package/dist/esm/verdocs-contact-picker.entry.js +1 -1
  64. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  65. package/dist/esm/verdocs-envelope-sidebar.entry.js +4 -1
  66. package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -1
  67. package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
  68. package/dist/esm/verdocs-field-attachment_13.entry.js +1 -5
  69. package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -1
  70. package/dist/esm/verdocs-kba-dialog_3.entry.js +1 -1
  71. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  72. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  73. package/dist/esm/verdocs-sign.entry.js +1 -1
  74. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  75. package/dist/esm-es5/{utils-CbfXTNEw.js → utils-DmfOx9Ey.js} +2 -2
  76. package/dist/esm-es5/utils-DmfOx9Ey.js.map +1 -0
  77. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  78. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  79. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  80. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -1
  81. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  82. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  83. package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
  84. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js +1 -1
  85. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  86. package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
  87. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  88. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  89. package/dist/verdocs-web-sdk/{p-cfbef482.system.entry.js → p-03c76a24.system.entry.js} +2 -2
  90. package/dist/verdocs-web-sdk/{p-cfbef482.system.entry.js.map → p-03c76a24.system.entry.js.map} +1 -1
  91. package/dist/verdocs-web-sdk/{p-5af5bd43.entry.js → p-0bb8015d.entry.js} +2 -2
  92. package/dist/verdocs-web-sdk/{p-7e91292a.entry.js → p-13c9ac73.entry.js} +2 -2
  93. package/dist/verdocs-web-sdk/{p-3bf5dfcb.system.entry.js → p-1653b309.system.entry.js} +2 -2
  94. package/dist/verdocs-web-sdk/{p-8bee83ad.entry.js → p-1718b823.entry.js} +2 -2
  95. package/dist/verdocs-web-sdk/{p-3e4a6587.system.entry.js → p-2a183b90.system.entry.js} +3 -3
  96. package/dist/verdocs-web-sdk/{p-b78fa925.entry.js → p-3b68bc50.entry.js} +2 -2
  97. package/dist/verdocs-web-sdk/p-3b68bc50.entry.js.map +1 -0
  98. package/dist/verdocs-web-sdk/{p-ff182af0.entry.js → p-43326217.entry.js} +2 -2
  99. package/dist/verdocs-web-sdk/{p-77cb64e8.system.entry.js → p-44de70af.system.entry.js} +2 -2
  100. package/dist/verdocs-web-sdk/{p-04421e78.system.entry.js → p-524c1693.system.entry.js} +2 -2
  101. package/dist/verdocs-web-sdk/{p-7926e0ed.entry.js → p-5d4a9e54.entry.js} +2 -2
  102. package/dist/verdocs-web-sdk/{p-5f2740be.entry.js → p-65f4a435.entry.js} +2 -2
  103. package/dist/verdocs-web-sdk/{p-ba007f95.system.entry.js → p-68b0e020.system.entry.js} +2 -2
  104. package/dist/verdocs-web-sdk/{p-db22e373.system.entry.js → p-6d8c780d.system.entry.js} +2 -2
  105. package/dist/verdocs-web-sdk/{p-d73e5d98.system.entry.js → p-9f2bde83.system.entry.js} +2 -2
  106. package/dist/verdocs-web-sdk/{p-DwVINdLf.system.js.map → p-BEa6VFpF.system.js.map} +1 -1
  107. package/dist/verdocs-web-sdk/{p-DFxwv7XE.system.js.map → p-Bh0IfLXk.system.js.map} +1 -1
  108. package/dist/verdocs-web-sdk/{p-BxWHy8GG.system.js.map → p-BqV2sLyM.system.js.map} +1 -1
  109. package/dist/verdocs-web-sdk/p-C4Tt0CYc.system.js.map +1 -0
  110. package/dist/verdocs-web-sdk/{p-8wtUCSj6.system.js.map → p-C99h0Uet.system.js.map} +1 -1
  111. package/dist/verdocs-web-sdk/{p-CalyeRmL.system.js → p-CD5uiThi.system.js} +3 -3
  112. package/dist/verdocs-web-sdk/p-CD5uiThi.system.js.map +1 -0
  113. package/dist/verdocs-web-sdk/{p-Bf0islHu.system.js.map → p-CWs7NRzr.system.js.map} +1 -1
  114. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
  115. package/dist/verdocs-web-sdk/{p-CTKsneFq.system.js.map → p-Cz3XayQm.system.js.map} +1 -1
  116. package/dist/verdocs-web-sdk/{p-CeQPkjRM.system.js.map → p-DRzyvgiA.system.js.map} +1 -1
  117. package/dist/verdocs-web-sdk/{p-SFqGy6JR.system.js.map → p-EQbSTcUE.system.js.map} +1 -1
  118. package/dist/verdocs-web-sdk/p-UTpMOeny.system.js.map +1 -0
  119. package/dist/verdocs-web-sdk/{p-7c58a33b.system.entry.js → p-a2ba1316.system.entry.js} +2 -2
  120. package/dist/verdocs-web-sdk/p-a2ba1316.system.entry.js.map +1 -0
  121. package/dist/verdocs-web-sdk/{p-6331769c.entry.js → p-aaf3cb2c.entry.js} +2 -2
  122. package/dist/verdocs-web-sdk/{p-6331769c.entry.js.map → p-aaf3cb2c.entry.js.map} +1 -1
  123. package/dist/verdocs-web-sdk/{p-d8a89fb3.entry.js → p-bb96a9af.entry.js} +2 -2
  124. package/dist/verdocs-web-sdk/{p-aa3436c1.entry.js → p-d3d531e3.entry.js} +2 -2
  125. package/dist/verdocs-web-sdk/{p-b29ae6dd.system.entry.js → p-e5f90a18.system.entry.js} +2 -2
  126. package/dist/verdocs-web-sdk/{p-Bf-kinKl.js → p-fL0BKEnm.js} +2 -2
  127. package/dist/verdocs-web-sdk/p-fL0BKEnm.js.map +1 -0
  128. package/dist/verdocs-web-sdk/verdocs-envelope-sidebar.entry.esm.js.map +1 -1
  129. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  130. package/package.json +2 -2
  131. package/dist/cjs/utils-Bxil_g6M.js.map +0 -1
  132. package/dist/components/p-DA5NR945.js.map +0 -1
  133. package/dist/esm/utils-CbfXTNEw.js.map +0 -1
  134. package/dist/esm-es5/utils-CbfXTNEw.js.map +0 -1
  135. package/dist/verdocs-web-sdk/p-7c58a33b.system.entry.js.map +0 -1
  136. package/dist/verdocs-web-sdk/p-Bf-kinKl.js.map +0 -1
  137. package/dist/verdocs-web-sdk/p-CalyeRmL.system.js.map +0 -1
  138. package/dist/verdocs-web-sdk/p-CuaH0Jft.system.js.map +0 -1
  139. package/dist/verdocs-web-sdk/p-b78fa925.entry.js.map +0 -1
  140. package/dist/verdocs-web-sdk/p-vPV-UVh5.system.js.map +0 -1
  141. /package/dist/verdocs-web-sdk/{p-5af5bd43.entry.js.map → p-0bb8015d.entry.js.map} +0 -0
  142. /package/dist/verdocs-web-sdk/{p-7e91292a.entry.js.map → p-13c9ac73.entry.js.map} +0 -0
  143. /package/dist/verdocs-web-sdk/{p-3bf5dfcb.system.entry.js.map → p-1653b309.system.entry.js.map} +0 -0
  144. /package/dist/verdocs-web-sdk/{p-8bee83ad.entry.js.map → p-1718b823.entry.js.map} +0 -0
  145. /package/dist/verdocs-web-sdk/{p-3e4a6587.system.entry.js.map → p-2a183b90.system.entry.js.map} +0 -0
  146. /package/dist/verdocs-web-sdk/{p-ff182af0.entry.js.map → p-43326217.entry.js.map} +0 -0
  147. /package/dist/verdocs-web-sdk/{p-77cb64e8.system.entry.js.map → p-44de70af.system.entry.js.map} +0 -0
  148. /package/dist/verdocs-web-sdk/{p-04421e78.system.entry.js.map → p-524c1693.system.entry.js.map} +0 -0
  149. /package/dist/verdocs-web-sdk/{p-7926e0ed.entry.js.map → p-5d4a9e54.entry.js.map} +0 -0
  150. /package/dist/verdocs-web-sdk/{p-5f2740be.entry.js.map → p-65f4a435.entry.js.map} +0 -0
  151. /package/dist/verdocs-web-sdk/{p-ba007f95.system.entry.js.map → p-68b0e020.system.entry.js.map} +0 -0
  152. /package/dist/verdocs-web-sdk/{p-db22e373.system.entry.js.map → p-6d8c780d.system.entry.js.map} +0 -0
  153. /package/dist/verdocs-web-sdk/{p-d73e5d98.system.entry.js.map → p-9f2bde83.system.entry.js.map} +0 -0
  154. /package/dist/verdocs-web-sdk/{p-d8a89fb3.entry.js.map → p-bb96a9af.entry.js.map} +0 -0
  155. /package/dist/verdocs-web-sdk/{p-aa3436c1.entry.js.map → p-d3d531e3.entry.js.map} +0 -0
  156. /package/dist/verdocs-web-sdk/{p-b29ae6dd.system.entry.js.map → p-e5f90a18.system.entry.js.map} +0 -0
@@ -1,3 +1,3 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,o){r=e[t](r),i(n,o,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(e){return function(t){return Promise.resolve(t).then(e,l)}}function u(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))};if(t)i[e]=t(i[e])}}function s(e,t){try{c(n[e](t))}catch(e){d(o[0][3],e)}}function c(e){e.value instanceof __await?Promise.resolve(e.value.v).then(f,l):d(o[0][2],e)}function f(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){if(e(t),o.shift(),o.length)s(o[0][0],o[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};import{r as registerInstance,c as createEvent,h,F as Fragment}from"./index-CF7i8guW.js";import{VerdocsEndpoint,formatFullName,getActiveEntitlements,isValidEmail}from"@verdocs/js-sdk";import{c as commonjsGlobal,g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";import{B as BETA_ORIGINS}from"./Environment-C_Xku1v2.js";import{d as convertToE164}from"./utils-CbfXTNEw.js";import"./index-dzBXqXlK.js";import"./Types-Dl7Xw8F0.js";
2
- /*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors */var axios_1;var hasRequiredAxios;function requireAxios(){var e=this;if(hasRequiredAxios)return axios_1;hasRequiredAxios=1;function t(e,t){return function r(){return e.apply(t,arguments)}}var r=Object.prototype.toString;var n=Object.getPrototypeOf;var i=Symbol.iterator,o=Symbol.toStringTag;var a=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));var u=function(e){e=e.toLowerCase();return function(t){return a(t)===e}};var s=function(e){return function(t){return typeof t===e}};var c=Array.isArray;var f=s("undefined");function l(e){return e!==null&&!f(e)&&e.constructor!==null&&!f(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var d=u("ArrayBuffer");function v(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&d(e.buffer)}return t}var h=s("string");var p=s("function");var m=s("number");var b=function(e){return e!==null&&typeof e==="object"};var w=function(e){return e===true||e===false};var g=function(e){if(a(e)!=="object"){return false}var t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(o in e)&&!(i in e)};var y=u("Date");var x=u("File");var _=u("Blob");var k=u("FileList");var E=function(e){return b(e)&&p(e.pipe)};var R=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||p(e.append)&&((t=a(e))==="formdata"||t==="object"&&p(e.toString)&&e.toString()==="[object FormData]"))};var O=u("URLSearchParams");var S=["ReadableStream","Request","Response","Headers"].map(u),A=S[0],T=S[1],j=S[2],C=S[3];var F=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function N(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,o=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var a;var u;if(typeof e!=="object"){e=[e]}if(c(e)){for(a=0,u=e.length;a<u;a++){t.call(null,e[a],a,e)}}else{var s=o?Object.getOwnPropertyNames(e):Object.keys(e);var f=s.length;var l=void 0;for(a=0;a<f;a++){l=s[a];t.call(null,e[l],l,e)}}}function P(e,t){t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var I=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:commonjsGlobal}();var B=function(e){return!f(e)&&e!==I};function U(){var e=(B(this)&&this||{}).caseless;var t={};var r=function(r,n){var i=e&&P(t,n)||n;if(g(t[i])&&g(r)){t[i]=U(t[i],r)}else if(g(r)){t[i]=U({},r)}else if(c(r)){t[i]=r.slice()}else{t[i]=r}};for(var n=0,i=arguments.length;n<i;n++){arguments[n]&&N(arguments[n],r)}return t}var D=function(e,r,n,i){var o=i===void 0?{}:i,a=o.allOwnKeys;N(r,(function(r,i){if(n&&p(r)){e[i]=t(r,n)}else{e[i]=r}}),{allOwnKeys:a});return e};var q=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var L=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var M=function(e,t,r,i){var o;var a;var u;var s={};t=t||{};if(e==null)return t;do{o=Object.getOwnPropertyNames(e);a=o.length;while(a-- >0){u=o[a];if((!i||i(u,e,t))&&!s[u]){t[u]=e[u];s[u]=true}}e=r!==false&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var z=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var H=function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!m(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var V=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&n(Uint8Array));var K=function(e,t){var r=e&&e[i];var n=r.call(e);var o;while((o=n.next())&&!o.done){var a=o.value;t.call(e,a[0],a[1])}};var G=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var X=u("HTMLFormElement");var J=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var W=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var $=u("RegExp");var Y=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};N(r,(function(r,i){var o;if((o=t(r,i,e))!==false){n[i]=o||r}}));Object.defineProperties(e,n)};var Z=function(e){Y(e,(function(t,r){if(p(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!p(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var Q=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};c(e)?n(e):n(String(e).split(t));return r};var ee=function(){};var te=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};function re(e){return!!(e&&p(e.append)&&e[o]==="FormData"&&e[i])}var ne=function(e){var t=new Array(10);var r=function(e,n){if(b(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[n]=e;var i=c(e)?[]:{};N(e,(function(e,t){var o=r(e,n+1);!f(o)&&(i[t]=o)}));t[n]=undefined;return i}}return e};return r(e,0)};var ie=u("AsyncFunction");var oe=function(e){return e&&(b(e)||p(e))&&p(e.then)&&p(e.catch)};var ae=function(e,t){if(e){return setImmediate}return t?function(e,t){I.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===I&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);I.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",p(I.postMessage));var ue=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(I):typeof process!=="undefined"&&process.nextTick||ae;var se=function(e){return e!=null&&p(e[i])};var ce={isArray:c,isArrayBuffer:d,isBuffer:l,isFormData:R,isArrayBufferView:v,isString:h,isNumber:m,isBoolean:w,isObject:b,isPlainObject:g,isReadableStream:A,isRequest:T,isResponse:j,isHeaders:C,isUndefined:f,isDate:y,isFile:x,isBlob:_,isRegExp:$,isFunction:p,isStream:E,isURLSearchParams:O,isTypedArray:V,isFileList:k,forEach:N,merge:U,extend:D,trim:F,stripBOM:q,inherits:L,toFlatObject:M,kindOf:a,kindOfTest:u,endsWith:z,toArray:H,forEachEntry:K,matchAll:G,isHTMLForm:X,hasOwnProperty:W,hasOwnProp:W,reduceDescriptors:Y,freezeMethods:Z,toObjectSet:Q,toCamelCase:J,noop:ee,toFiniteNumber:te,findKey:P,global:I,isContextDefined:B,isSpecCompliantForm:re,toJSONObject:ne,isAsyncFn:ie,isThenable:oe,setImmediate:ae,asap:ue,isIterable:se};function fe(e,t,r,n,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);if(i){this.response=i;this.status=i.status?i.status:null}}ce.inherits(fe,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.status}}});var le=fe.prototype;var de={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){de[e]={value:e}}));Object.defineProperties(fe,de);Object.defineProperty(le,"isAxiosError",{value:true});fe.from=function(e,t,r,n,i,o){var a=Object.create(le);ce.toFlatObject(e,a,(function e(t){return t!==Error.prototype}),(function(e){return e!=="isAxiosError"}));fe.call(a,e.message,t,r,n,i);a.cause=e;a.name=e.name;o&&Object.assign(a,o);return a};var ve=null;function he(e){return ce.isPlainObject(e)||ce.isArray(e)}function pe(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=pe(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function be(e){return ce.isArray(e)&&!e.some(he)}var we=ce.toFlatObject(ce,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ge(e,t,r){if(!ce.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=ce.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!ce.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var o=r.dots;var a=r.indexes;var u=r.Blob||typeof Blob!=="undefined"&&Blob;var s=u&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(ce.isDate(e)){return e.toISOString()}if(!s&&ce.isBlob(e)){throw new fe("Blob is not supported. Use a Buffer instead.")}if(ce.isArrayBuffer(e)||ce.isTypedArray(e)){return s&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var u=e;if(e&&!i&&typeof e==="object"){if(ce.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(ce.isArray(e)&&be(e)||(ce.isFileList(e)||ce.endsWith(r,"[]"))&&(u=ce.toArray(e))){r=pe(r);u.forEach((function e(n,i){!(ce.isUndefined(n)||n===null)&&t.append(a===true?me([r],i,o):a===null?r:r+"[]",c(n))}));return false}}if(he(e)){return true}t.append(me(i,r,o),c(e));return false}var l=[];var d=Object.assign(we,{defaultVisitor:f,convertValue:c,isVisitable:he});function v(e,r){if(ce.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);ce.forEach(e,(function e(n,o){var a=!(ce.isUndefined(n)||n===null)&&i.call(t,n,ce.isString(o)?o.trim():o,r,d);if(a===true){v(n,r?r.concat(o):[o])}}));l.pop()}if(!ce.isObject(e)){throw new TypeError("data must be an object")}v(e);return t}function ye(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function xe(e,t){this._pairs=[];e&&ge(e,this,t)}var _e=xe.prototype;_e.append=function e(t,r){this._pairs.push([t,r])};_e.toString=function e(t){var r=t?function(e){return t.call(this,e,ye)}:ye;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function ke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ee(e,t,r){if(!t){return e}var n=r&&r.encode||ke;if(ce.isFunction(r)){r={serialize:r}}var i=r&&r.serialize;var o;if(i){o=i(t,r)}else{o=ce.isURLSearchParams(t)?t.toString():new xe(t,r).toString(n)}if(o){var a=e.indexOf("#");if(a!==-1){e=e.slice(0,a)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var Re=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){ce.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var Oe=Re;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ae=typeof URLSearchParams!=="undefined"?URLSearchParams:xe;var Te=typeof FormData!=="undefined"?FormData:null;var je=typeof Blob!=="undefined"?Blob:null;var Ce={isBrowser:true,classes:{URLSearchParams:Ae,FormData:Te,Blob:je},protocols:["http","https","file","blob","url","data"]};var Fe=typeof window!=="undefined"&&typeof document!=="undefined";var Ne=typeof navigator==="object"&&navigator||undefined;var Pe=Fe&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0);var Ie=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var Be=Fe&&window.location.href||"http://localhost";var Ue=Object.freeze({__proto__:null,hasBrowserEnv:Fe,hasStandardBrowserWebWorkerEnv:Ie,hasStandardBrowserEnv:Pe,navigator:Ne,origin:Be});var De=__assign(__assign({},Ue),Ce);function qe(e,t){return ge(e,new De.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){if(De.isNode&&ce.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function Le(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function Me(e){var t={};var r=Object.keys(e);var n;var i=r.length;var o;for(n=0;n<i;n++){o=r[n];t[o]=e[o]}return t}function ze(e){function t(e,r,n,i){var o=e[i++];if(o==="__proto__")return true;var a=Number.isFinite(+o);var u=i>=e.length;o=!o&&ce.isArray(n)?n.length:o;if(u){if(ce.hasOwnProp(n,o)){n[o]=[n[o],r]}else{n[o]=r}return!a}if(!n[o]||!ce.isObject(n[o])){n[o]=[]}var s=t(e,r,n[o],i);if(s&&ce.isArray(n[o])){n[o]=Me(n[o])}return!a}if(ce.isFormData(e)&&ce.isFunction(e.entries)){var r={};ce.forEachEntry(e,(function(e,n){t(Le(e),n,r,0)}));return r}return null}function He(e,t,r){if(ce.isString(e)){try{(0,JSON.parse)(e);return ce.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var Ve={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var o=ce.isObject(t);if(o&&ce.isHTMLForm(t)){t=new FormData(t)}var a=ce.isFormData(t);if(a){return i?JSON.stringify(ze(t)):t}if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t)){return t}if(ce.isArrayBufferView(t)){return t.buffer}if(ce.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){return qe(t,this.formSerializer).toString()}if((u=ce.isFileList(t))||n.indexOf("multipart/form-data")>-1){var s=this.env&&this.env.FormData;return ge(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}if(o||i){r.setContentType("application/json",false);return He(t)}return t}],transformResponse:[function e(t){var r=this.transitional||Ve.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t)){return t}if(t&&ce.isString(t)&&(n&&!this.responseType||i)){var o=r&&r.silentJSONParsing;var a=!o&&i;try{return JSON.parse(t)}catch(e){if(a){if(e.name==="SyntaxError"){throw fe.from(e,fe.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ce.forEach(["delete","get","head","post","put","patch"],(function(e){Ve.headers[e]={}}));var Ke=Ve;var Ge=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Xe=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(o){i=o.indexOf(":");r=o.substring(0,i).trim().toLowerCase();n=o.substring(i+1).trim();if(!r||t[r]&&Ge[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var Je=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function $e(e){if(e===false||e==null){return e}return ce.isArray(e)?e.map($e):String(e)}function Ye(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var Ze=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Qe(e,t,r,n,i){if(ce.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!ce.isString(t))return;if(ce.isString(n)){return t.indexOf(n)!==-1}if(ce.isRegExp(n)){return n.test(t)}}function et(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function tt(e,t){var r=ce.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var rt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=We(t);if(!i){throw new Error("header name must be a non-empty string")}var o=ce.findKey(n,i);if(!o||n[o]===undefined||r===true||r===undefined&&n[o]!==false){n[o||t]=$e(e)}}var o=function(e,t){return ce.forEach(e,(function(e,r){return i(e,r,t)}))};if(ce.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(ce.isString(e)&&(e=e.trim())&&!Ze(e)){o(Xe(e),t)}else if(ce.isObject(e)&&ce.isIterable(e)){var a={},u=void 0,s=void 0;for(var c=0,f=e;c<f.length;c++){var l=f[c];if(!ce.isArray(l)){throw TypeError("Object iterator must return a key-value pair")}a[s=l[0]]=(u=a[s])?ce.isArray(u)?__spreadArray(__spreadArray([],u,true),[l[1]],false):[u,l[1]]:l[1]}o(a,t)}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=We(e);if(e){var r=ce.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return Ye(n)}if(ce.isFunction(t)){return t.call(this,n,r)}if(ce.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=We(e);if(e){var r=ce.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||Qe(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=We(e);if(e){var i=ce.findKey(r,e);if(i&&(!t||Qe(r,r[i],i,t))){delete r[i];n=true}}}if(ce.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||Qe(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};ce.forEach(this,(function(n,i){var o=ce.findKey(r,i);if(o){t[o]=$e(n);delete t[i];return}var a=e?et(i):String(i).trim();if(a!==i){delete t[i]}t[a]=$e(n);r[a]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);ce.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&ce.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};e.prototype.getSetCookie=function(){return this.get("set-cookie")||[]};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[Je]=this[Je]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=We(e);if(!r[t]){tt(n,e);r[t]=true}}ce.isArray(e)?e.forEach(i):i(e);return this};return e}();rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(rt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));ce.freezeMethods(rt);var nt=rt;function it(e,t){var r=this||Ke;var n=t||r;var i=nt.from(n.headers);var o=n.data;ce.forEach(e,(function e(n){o=n.call(r,o,i.normalize(),t?t.status:undefined)}));i.normalize();return o}function ot(e){return!!(e&&e.__CANCEL__)}function at(e,t,r){fe.call(this,e==null?"canceled":e,fe.ERR_CANCELED,t,r);this.name="CanceledError"}ce.inherits(at,fe,{__CANCEL__:true});function ut(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new fe("Request failed with status code "+r.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}function st(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ct(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var o=0;var a;t=t!==undefined?t:1e3;return function u(s){var c=Date.now();var f=n[o];if(!a){a=c}r[i]=s;n[i]=c;var l=o;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(c-a<t){return}var v=f&&c-f;return v?Math.round(d*1e3/v):undefined}}function ft(e,t){var r=0;var n=1e3/t;var i;var o;var a=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(o){clearTimeout(o);o=null}e.apply(null,t)};var u=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var u=Date.now();var s=u-r;if(s>=n){a(e,u)}else{i=e;if(!o){o=setTimeout((function(){o=null;a(i)}),n-s)}}};var s=function(){return i&&a(i)};return[u,s]}var lt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=ct(50,250);return ft((function(r){var o;var a=r.loaded;var u=r.lengthComputable?r.total:undefined;var s=a-n;var c=i(s);var f=a<=u;n=a;var l=(o={loaded:a,total:u,progress:u?a/u:undefined,bytes:s,rate:c?c:undefined,estimated:c&&u&&f?(u-a)/c:undefined,event:r,lengthComputable:u!=null},o[t?"download":"upload"]=true,o);e(l)}),r)};var dt=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var vt=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return ce.asap((function(){return e.apply(void 0,t)}))}};var ht=De.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,De.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):function(){return true};var pt=De.hasStandardBrowserEnv?{write:function(e,t,r,n,i,o){var a=[e+"="+encodeURIComponent(t)];ce.isNumber(r)&&a.push("expires="+new Date(r).toGMTString());ce.isString(n)&&a.push("path="+n);ce.isString(i)&&a.push("domain="+i);o===true&&a.push("secure");document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function mt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wt(e,t,r){var n=!mt(t);if(e&&(n||r==false)){return bt(e,t)}return t}var gt=function(e){return e instanceof nt?__assign({},e):e};function yt(e,t){t=t||{};var r={};function n(e,t,r,n){if(ce.isPlainObject(e)&&ce.isPlainObject(t)){return ce.merge.call({caseless:n},e,t)}else if(ce.isPlainObject(t)){return ce.merge({},t)}else if(ce.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!ce.isUndefined(t)){return n(e,t,r,i)}else if(!ce.isUndefined(e)){return n(undefined,e,r,i)}}function o(e,t){if(!ce.isUndefined(t)){return n(undefined,t)}}function a(e,t){if(!ce.isUndefined(t)){return n(undefined,t)}else if(!ce.isUndefined(e)){return n(undefined,e)}}function u(r,i,o){if(o in t){return n(r,i)}else if(o in e){return n(undefined,r)}}var s={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:function(e,t,r){return i(gt(e),gt(t),r,true)}};ce.forEach(Object.keys(Object.assign({},e,t)),(function n(o){var a=s[o]||i;var c=a(e[o],t[o],o);ce.isUndefined(c)&&a!==u||(r[o]=c)}));return r}var xt=function(e){var t=yt({},e);var r=t.data,n=t.withXSRFToken,i=t.xsrfHeaderName,o=t.xsrfCookieName,a=t.headers,u=t.auth;t.headers=a=nt.from(a);t.url=Ee(wt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(u){a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")))}var s;if(ce.isFormData(r)){if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv){a.setContentType(undefined)}else if((s=a.getContentType())!==false){var c=s?s.split(";").map((function(e){return e.trim()})).filter(Boolean):[],f=c[0],l=c.slice(1);a.setContentType(__spreadArray([f||"multipart/form-data"],l,true).join("; "))}}if(De.hasStandardBrowserEnv){n&&ce.isFunction(n)&&(n=n(t));if(n||n!==false&&ht(t.url)){var d=i&&o&&pt.read(o);if(d){a.set(i,d)}}}return t};var _t=typeof XMLHttpRequest!=="undefined";var kt=_t&&function(e){return new Promise((function t(r,n){var i,o;var a=xt(e);var u=a.data;var s=nt.from(a.headers).normalize();var c=a.responseType,f=a.onUploadProgress,l=a.onDownloadProgress;var d;var v,h;var p,m;function b(){p&&p();m&&m();a.cancelToken&&a.cancelToken.unsubscribe(d);a.signal&&a.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,true);w.timeout=a.timeout;function g(){if(!w){return}var t=nt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!c||c==="text"||c==="json"?w.responseText:w.response;var o={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};ut((function e(t){r(t);b()}),(function e(t){n(t);b()}),o);w=null}if("onloadend"in w){w.onloadend=g}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}w.onabort=function t(){if(!w){return}n(new fe("Request aborted",fe.ECONNABORTED,e,w));w=null};w.onerror=function t(){n(new fe("Network Error",fe.ERR_NETWORK,e,w));w=null};w.ontimeout=function t(){var r=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";var i=a.transitional||Se;if(a.timeoutErrorMessage){r=a.timeoutErrorMessage}n(new fe(r,i.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,w));w=null};u===undefined&&s.setContentType(null);if("setRequestHeader"in w){ce.forEach(s.toJSON(),(function e(t,r){w.setRequestHeader(r,t)}))}if(!ce.isUndefined(a.withCredentials)){w.withCredentials=!!a.withCredentials}if(c&&c!=="json"){w.responseType=a.responseType}if(l){i=lt(l,true),h=i[0],m=i[1];w.addEventListener("progress",h)}if(f&&w.upload){o=lt(f),v=o[0],p=o[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(a.cancelToken||a.signal){d=function(t){if(!w){return}n(!t||t.type?new at(null,e,w):t);w.abort();w=null};a.cancelToken&&a.cancelToken.subscribe(d);if(a.signal){a.signal.aborted?d():a.signal.addEventListener("abort",d)}}var y=st(a.url);if(y&&De.protocols.indexOf(y)===-1){n(new fe("Unsupported protocol "+y+":",fe.ERR_BAD_REQUEST,e));return}w.send(u||null)}))};var Et=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n=new AbortController;var i;var o=function(e){if(!i){i=true;u();var t=e instanceof Error?e:this.reason;n.abort(t instanceof fe?t:new at(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;o(new fe("timeout ".concat(t," of ms exceeded"),fe.ETIMEDOUT))}),t);var u=function(){if(e){a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}));e=null}};e.forEach((function(e){return e.addEventListener("abort",o)}));var s=n.signal;s.unsubscribe=function(){return ce.asap(u)};return s}};var Rt=Et;var Ot=function(e,t){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=e.byteLength;if(!(r<t))return[3,2];return[4,e];case 1:o.sent();return[2];case 2:n=0;o.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:o.sent();n=i;return[3,3];case 5:return[2]}}))};var St=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,o,a;var u,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(At(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),u=i.done,!u))return[3,6];f=i.value;r=false;o=f;return[5,__values(__asyncDelegator(__asyncValues(Ot(o,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:a=l.sent();s={error:a};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!u&&(c=n.return)))return[3,10];return[4,__await(c.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var At=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[o.sent()])];case 2:o.sent();return[4,__await(void 0)];case 3:return[2,o.sent()];case 4:t=e.getReader();o.label=5;case 5:o.trys.push([5,,12,14]);o.label=6;case 6:return[4,__await(t.read())];case 7:r=o.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,o.sent()];case 9:o.sent();o.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:o.sent();return[7];case 14:return[2]}}))}))};var Tt=function(e,t,r,n){var i=St(e,t);var o=0;var a;var u=function(e){if(!a){a=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,a=t.value;if(n){u();e.close();return[2]}s=a.byteLength;if(r){c=o+=s;r(c)}e.enqueue(new Uint8Array(a));return[3,3];case 2:f=l.sent();u(f);throw f;case 3:return[2]}}))}))},cancel:function(e){u(e);return i.return()}},{highWaterMark:2})};var jt=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";var Ct=jt&&typeof ReadableStream==="function";var Ft=jt&&(typeof TextEncoder==="function"?function(e){return function(t){return e.encode(t)}}(new TextEncoder):function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:e=Uint8Array.bind;return[4,new Response(t).arrayBuffer()];case 1:return[2,new(e.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var Nt=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Pt=Ct&&Nt((function(){var e=false;var t=new Request(De.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));var It=64*1024;var Bt=Ct&&Nt((function(){return ce.isReadableStream(new Response("").body)}));var Ut={stream:Bt&&function(e){return e.body}};jt&&function(e){["text","arrayBuffer","blob","formData","stream"].forEach((function(t){!Ut[t]&&(Ut[t]=ce.isFunction(e[t])?function(e){return e[t]()}:function(e,r){throw new fe("Response type '".concat(t,"' is not supported"),fe.ERR_NOT_SUPPORT,r)})}))}(new Response);var Dt=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(t==null){return[2,0]}if(ce.isBlob(t)){return[2,t.size]}if(!ce.isSpecCompliantForm(t))return[3,2];e=new Request(De.origin,{method:"POST",body:t});return[4,e.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(ce.isArrayBufferView(t)||ce.isArrayBuffer(t)){return[2,t.byteLength]}if(ce.isURLSearchParams(t)){t=t+""}if(!ce.isString(t))return[3,4];return[4,Ft(t)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var qt=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=ce.toFiniteNumber(t.getContentLength());return[2,e==null?Dt(r):e]}))}))};var Lt=jt&&function(t){return __awaiter(e,void 0,void 0,(function(){var e,r,n,i,o,a,u,s,c,f,l,d,v,h,p,m,b,w,g,y,x,_,k,E,R,O,S,A,T,j,k,C,F,N;return __generator(this,(function(P){switch(P.label){case 0:e=xt(t),r=e.url,n=e.method,i=e.data,o=e.signal,a=e.cancelToken,u=e.timeout,s=e.onDownloadProgress,c=e.onUploadProgress,f=e.responseType,l=e.headers,d=e.withCredentials,v=d===void 0?"same-origin":d,h=e.fetchOptions;f=f?(f+"").toLowerCase():"text";p=Rt([o,a&&a.toAbortSignal()],u);b=p&&p.unsubscribe&&function(){p.unsubscribe()};P.label=1;case 1:P.trys.push([1,7,,8]);g=c&&Pt&&n!=="get"&&n!=="head";if(!g)return[3,3];return[4,qt(l,i)];case 2:g=(w=P.sent())!==0;P.label=3;case 3:if(g){y=new Request(r,{method:"POST",body:i,duplex:"half"});x=void 0;if(ce.isFormData(i)&&(x=y.headers.get("content-type"))){l.setContentType(x)}if(y.body){_=dt(w,lt(vt(c))),k=_[0],E=_[1];i=Tt(y.body,It,k,E)}}if(!ce.isString(v)){v=v?"include":"omit"}R="credentials"in Request.prototype;m=new Request(r,__assign(__assign({},h),{signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:R?v:undefined}));return[4,fetch(m)];case 4:O=P.sent();S=Bt&&(f==="stream"||f==="response");if(Bt&&(s||S&&b)){A={};["status","statusText","headers"].forEach((function(e){A[e]=O[e]}));T=ce.toFiniteNumber(O.headers.get("content-length"));j=s&&dt(T,lt(vt(s),true))||[],k=j[0],C=j[1];O=new Response(Tt(O.body,It,k,(function(){C&&C();b&&b()})),A)}f=f||"text";return[4,Ut[ce.findKey(Ut,f)||"text"](O,t)];case 5:F=P.sent();!S&&b&&b();return[4,new Promise((function(e,r){ut(e,r,{data:F,headers:nt.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:m})}))];case 6:return[2,P.sent()];case 7:N=P.sent();b&&b();if(N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)){throw Object.assign(new fe("Network Error",fe.ERR_NETWORK,t,m),{cause:N.cause||N})}throw fe.from(N,N&&N.code,t,m);case 8:return[2]}}))}))};var Mt={http:ve,xhr:kt,fetch:Lt};ce.forEach(Mt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var zt=function(e){return"- ".concat(e)};var Ht=function(e){return ce.isFunction(e)||e===null||e===false};var Vt={getAdapter:function(e){e=ce.isArray(e)?e:[e];var t=e.length;var r;var n;var i={};for(var o=0;o<t;o++){r=e[o];var a=void 0;n=r;if(!Ht(r)){n=Mt[(a=String(r)).toLowerCase()];if(n===undefined){throw new fe("Unknown adapter '".concat(a,"'"))}}if(n){break}i[a||"#"+o]=n}if(!n){var u=Object.entries(i).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var s=t?u.length>1?"since :\n"+u.map(zt).join("\n"):" "+zt(u[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Mt};function Kt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new at(null,e)}}function Gt(e){Kt(e);e.headers=nt.from(e.headers);e.data=it.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=Vt.getAdapter(e.adapter||Ke.adapter);return t(e).then((function t(r){Kt(e);r.data=it.call(e,e.transformResponse,r);r.headers=nt.from(r.headers);return r}),(function t(r){if(!ot(r)){Kt(e);if(r&&r.response){r.response.data=it.call(e,e.transformResponse,r.response);r.response.headers=nt.from(r.response.headers)}}return Promise.reject(r)}))}var Xt="1.9.0";var Jt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Jt[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Wt={};Jt.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+Xt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new fe(i(n," has been removed"+(r?" in "+r:"")),fe.ERR_DEPRECATED)}if(r&&!Wt[n]){Wt[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};Jt.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function $t(e,t,r){if(typeof e!=="object"){throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var u=e[o];var s=u===undefined||a(u,o,e);if(s!==true){throw new fe("option "+o+" must be "+s,fe.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}}}var Yt={assertOptions:$t,validators:Jt};var Zt=Yt.validators;var Qt=function(){function e(e){this.defaults=e||{};this.interceptors={request:new Oe,response:new Oe}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,o.sent()];case 2:r=o.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=n.stack?n.stack.replace(/^.+\n/,""):"";try{if(!r.stack){r.stack=i}else if(i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))){r.stack+="\n"+i}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=yt(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){Yt.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean)},false)}if(n!=null){if(ce.isFunction(n)){t.paramsSerializer={serialize:n}}else{Yt.assertOptions(n,{encode:Zt.function,serialize:Zt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Yt.assertOptions(t,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=i&&ce.merge(i.common,i[t.method]);i&&ce.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=nt.concat(o,i);var a=[];var u=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}u=u&&r.synchronous;a.unshift(r.fulfilled,r.rejected)}));var s=[];this.interceptors.response.forEach((function e(t){s.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!u){var d=[Gt.bind(this),undefined];d.unshift.apply(d,a);d.push.apply(d,s);l=d.length;c=Promise.resolve(t);while(f<l){c=c.then(d[f++],d[f++])}return c}l=a.length;var v=t;f=0;while(f<l){var h=a[f++];var p=a[f++];try{v=h(v)}catch(e){p.call(this,e);break}}try{c=Gt.call(this,v)}catch(e){return Promise.reject(e)}f=0;l=s.length;while(f<l){c=c.then(s[f++],s[f++])}return c};e.prototype.getUri=function(e){e=yt(this.defaults,e);var t=wt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ee(t,e.params,e.paramsSerializer)};return e}();ce.forEach(["delete","get","head","options"],(function e(t){Qt.prototype[t]=function(e,r){return this.request(yt(r||{},{method:t,url:e,data:(r||{}).data}))}}));ce.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(yt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Qt.prototype[t]=r();Qt.prototype[t+"Form"]=r(true)}));var er=Qt;var tr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,o){if(r.reason){return}r.reason=new at(n,i,o);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();var rr=tr;function nr(e){return function t(r){return e.apply(null,r)}}function ir(e){return ce.isObject(e)&&e.isAxiosError===true}var or={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(or).forEach((function(e){var t=e[0],r=e[1];or[r]=t}));var ar=or;function ur(e){var r=new er(e);var n=t(er.prototype.request,r);ce.extend(n,er.prototype,r,{allOwnKeys:true});ce.extend(n,r,null,{allOwnKeys:true});n.create=function t(r){return ur(yt(e,r))};return n}var sr=ur(Ke);sr.Axios=er;sr.CanceledError=at;sr.CancelToken=rr;sr.isCancel=ot;sr.VERSION=Xt;sr.toFormData=ge;sr.AxiosError=fe;sr.Cancel=sr.CanceledError;sr.all=function e(t){return Promise.all(t)};sr.spread=nr;sr.isAxiosError=ir;sr.mergeConfig=yt;sr.AxiosHeaders=nt;sr.formToJSON=function(e){return ze(ce.isHTMLForm(e)?new FormData(e):e)};sr.getAdapter=Vt.getAdapter;sr.HttpStatusCode=ar;sr.default=sr;axios_1=sr;return axios_1}var axiosExports=requireAxios();var axios=getDefaultExportFromCjs(axiosExports);var API_KEY=BETA_ORIGINS.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var getFeatureFlags=function(){return axios.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:API_KEY}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var verdocsContactPickerCss='@-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-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';var addrBookIcon='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var VerdocsContactPicker=function(){function e(e){registerInstance(this,e);this.searchContacts=createEvent(this,"searchContacts");this.exit=createEvent(this,"exit");this.next=createEvent(this,"next");this.endpoint=VerdocsEndpoint.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=formatFullName(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}getActiveEntitlements(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));getFeatureFlags().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,n,i,o,a,u,s,c,f,l,d,v,p,m,b,w,g;var y=this.first_name&&this.last_name&&isValidEmail(this.email);var x=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var _=y&&x;var k=((n=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||n===void 0?void 0:n.enabled)===true;var E=[];if(((a=(o=(i=this.featureFlags)===null||i===void 0?void 0:i.toggles)===null||o===void 0?void 0:o.find((function(e){return e.name==="passcode-verification"})))===null||a===void 0?void 0:a.enabled)===true){E.push({label:"Passcode",value:"passcode"})}if(((c=(s=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||s===void 0?void 0:s.find((function(e){return e.name==="email-verification"})))===null||c===void 0?void 0:c.enabled)===true){E.push({label:"Email",value:"email"})}if(k&&((d=(l=(f=this.featureFlags)===null||f===void 0?void 0:f.toggles)===null||l===void 0?void 0:l.find((function(e){return e.name==="sms-verification"})))===null||d===void 0?void 0:d.enabled)===true&&!!this.activeEntitlements.sms_auth){E.push({label:"SMS (One-Time Code)",value:"sms"})}if(((m=(p=(v=this.featureFlags)===null||v===void 0?void 0:v.toggles)===null||p===void 0?void 0:p.find((function(e){return e.name==="kba-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.kba_auth){E.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((g=(w=(b=this.featureFlags)===null||b===void 0?void 0:b.toggles)===null||w===void 0?void 0:w.find((function(e){return e.name==="id-verification"})))===null||g===void 0?void 0:g.enabled)===true&&!!this.activeEntitlements.id_auth){E.push({label:"ID Check",value:"id"})}return h("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},h("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},h("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),h("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},h("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),h("input",{key:"30ae8e6b5c52c45bad07572a9357c575fd248df1",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&h("verdocs-portal",{key:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},h("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return h("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?h("img",{alt:"Avatar",class:"avatar",src:t.picture}):h("div",{class:"avatar",innerHTML:addrBookIcon}),h("div",{class:"details"},h("div",{class:"name"},formatFullName(t)),t.email&&h("div",{class:"destination"},t.email),t.phone&&h("div",{class:"destination"},t.phone)))}))))),h("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},h("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),h("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),k&&h("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},h("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),h("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=convertToE164(t.target.value)}})),h(Fragment,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},E.length>0&&h("div",{key:"f1248b2c40c1cfb22cfa577bc1f5c5895362ded2",class:"row pin-code"},h("label",{key:"d782f794fa6a8d2ca18835db9e8d6e510038f212"},"Recipient Verification:"),h("div",{key:"36f6d36272f71f6f2169e5b4e6446c6e969e36af"},E.map((function(t,r){return h("div",{class:"option"},h("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.auth_methods.includes(t.value),onInput:function(r){if(r.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[t.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==t.value}))}}}),h("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))})))),this.auth_methods.includes("passcode")&&h("div",{key:"bf631ef781e2bb9ad1bc35e56a51a66db24ebf33",class:"row pin-code"},h("label",{key:"6528152b13591a3843edc004fde4948e6c44d153",htmlFor:this.phoneFieldId},"Passcode:"),h("input",{key:"5aa95a7185e8a4ef5e3f071c6cac4d98e8d0d6ce",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),h("div",{key:"b162036266114dbce2520a6c006804a5a4929531",class:"row message"},h("label",{key:"47d04957126e80fcb346c0359dc3bcf9d64c1749",htmlFor:"verdocs-contact-picker-message"},"Message:"),h("textarea",{key:"0d830b39376684620b43281cf014e2ba386b7bf0",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),h("div",{key:"65466e83bbc1f5045f8efa7c200cfd7dd9898d9f",class:"buttons"},h("div",{key:"07776d2f5ede2a0b6d0b786bcf6b8ed44811e248",class:"flex-fill"}),h("verdocs-button",{key:"2eb20966d5b97cc3fec25de0e0c47af802bca7dd",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),h("verdocs-button",{key:"1329cd0da977ad1b00444cccf034b2cd3f6f634f",label:"OK",size:"small",disabled:!_,onClick:!_?function(){}:function(t){return e.handleSubmit(t)}})))};return e}();VerdocsContactPicker.style=verdocsContactPickerCss;export{VerdocsContactPicker as verdocs_contact_picker};
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,o){r=e[t](r),i(n,o,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(e){return function(t){return Promise.resolve(t).then(e,l)}}function u(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))};if(t)i[e]=t(i[e])}}function s(e,t){try{c(n[e](t))}catch(e){d(o[0][3],e)}}function c(e){e.value instanceof __await?Promise.resolve(e.value.v).then(f,l):d(o[0][2],e)}function f(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){if(e(t),o.shift(),o.length)s(o[0][0],o[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};import{r as registerInstance,c as createEvent,h,F as Fragment}from"./index-CF7i8guW.js";import{VerdocsEndpoint,formatFullName,getActiveEntitlements,isValidEmail}from"@verdocs/js-sdk";import{c as commonjsGlobal,g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";import{B as BETA_ORIGINS}from"./Environment-C_Xku1v2.js";import{d as convertToE164}from"./utils-DmfOx9Ey.js";import"./index-dzBXqXlK.js";import"./Types-Dl7Xw8F0.js";
2
+ /*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors */var axios_1;var hasRequiredAxios;function requireAxios(){var e=this;if(hasRequiredAxios)return axios_1;hasRequiredAxios=1;function t(e,t){return function r(){return e.apply(t,arguments)}}var r=Object.prototype.toString;var n=Object.getPrototypeOf;var i=Symbol.iterator,o=Symbol.toStringTag;var a=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));var u=function(e){e=e.toLowerCase();return function(t){return a(t)===e}};var s=function(e){return function(t){return typeof t===e}};var c=Array.isArray;var f=s("undefined");function l(e){return e!==null&&!f(e)&&e.constructor!==null&&!f(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var d=u("ArrayBuffer");function v(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&d(e.buffer)}return t}var h=s("string");var p=s("function");var m=s("number");var b=function(e){return e!==null&&typeof e==="object"};var w=function(e){return e===true||e===false};var y=function(e){if(a(e)!=="object"){return false}var t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(o in e)&&!(i in e)};var g=u("Date");var x=u("File");var _=u("Blob");var k=u("FileList");var E=function(e){return b(e)&&p(e.pipe)};var R=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||p(e.append)&&((t=a(e))==="formdata"||t==="object"&&p(e.toString)&&e.toString()==="[object FormData]"))};var O=u("URLSearchParams");var S=["ReadableStream","Request","Response","Headers"].map(u),A=S[0],T=S[1],j=S[2],C=S[3];var F=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function N(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,o=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var a;var u;if(typeof e!=="object"){e=[e]}if(c(e)){for(a=0,u=e.length;a<u;a++){t.call(null,e[a],a,e)}}else{var s=o?Object.getOwnPropertyNames(e):Object.keys(e);var f=s.length;var l=void 0;for(a=0;a<f;a++){l=s[a];t.call(null,e[l],l,e)}}}function P(e,t){t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var I=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:commonjsGlobal}();var B=function(e){return!f(e)&&e!==I};function U(){var e=(B(this)&&this||{}).caseless;var t={};var r=function(r,n){var i=e&&P(t,n)||n;if(y(t[i])&&y(r)){t[i]=U(t[i],r)}else if(y(r)){t[i]=U({},r)}else if(c(r)){t[i]=r.slice()}else{t[i]=r}};for(var n=0,i=arguments.length;n<i;n++){arguments[n]&&N(arguments[n],r)}return t}var D=function(e,r,n,i){var o=i===void 0?{}:i,a=o.allOwnKeys;N(r,(function(r,i){if(n&&p(r)){e[i]=t(r,n)}else{e[i]=r}}),{allOwnKeys:a});return e};var q=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var L=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var M=function(e,t,r,i){var o;var a;var u;var s={};t=t||{};if(e==null)return t;do{o=Object.getOwnPropertyNames(e);a=o.length;while(a-- >0){u=o[a];if((!i||i(u,e,t))&&!s[u]){t[u]=e[u];s[u]=true}}e=r!==false&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var z=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var H=function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!m(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var V=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&n(Uint8Array));var K=function(e,t){var r=e&&e[i];var n=r.call(e);var o;while((o=n.next())&&!o.done){var a=o.value;t.call(e,a[0],a[1])}};var G=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var J=u("HTMLFormElement");var X=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var W=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var $=u("RegExp");var Y=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};N(r,(function(r,i){var o;if((o=t(r,i,e))!==false){n[i]=o||r}}));Object.defineProperties(e,n)};var Z=function(e){Y(e,(function(t,r){if(p(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!p(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var Q=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};c(e)?n(e):n(String(e).split(t));return r};var ee=function(){};var te=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};function re(e){return!!(e&&p(e.append)&&e[o]==="FormData"&&e[i])}var ne=function(e){var t=new Array(10);var r=function(e,n){if(b(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[n]=e;var i=c(e)?[]:{};N(e,(function(e,t){var o=r(e,n+1);!f(o)&&(i[t]=o)}));t[n]=undefined;return i}}return e};return r(e,0)};var ie=u("AsyncFunction");var oe=function(e){return e&&(b(e)||p(e))&&p(e.then)&&p(e.catch)};var ae=function(e,t){if(e){return setImmediate}return t?function(e,t){I.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===I&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);I.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",p(I.postMessage));var ue=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(I):typeof process!=="undefined"&&process.nextTick||ae;var se=function(e){return e!=null&&p(e[i])};var ce={isArray:c,isArrayBuffer:d,isBuffer:l,isFormData:R,isArrayBufferView:v,isString:h,isNumber:m,isBoolean:w,isObject:b,isPlainObject:y,isReadableStream:A,isRequest:T,isResponse:j,isHeaders:C,isUndefined:f,isDate:g,isFile:x,isBlob:_,isRegExp:$,isFunction:p,isStream:E,isURLSearchParams:O,isTypedArray:V,isFileList:k,forEach:N,merge:U,extend:D,trim:F,stripBOM:q,inherits:L,toFlatObject:M,kindOf:a,kindOfTest:u,endsWith:z,toArray:H,forEachEntry:K,matchAll:G,isHTMLForm:J,hasOwnProperty:W,hasOwnProp:W,reduceDescriptors:Y,freezeMethods:Z,toObjectSet:Q,toCamelCase:X,noop:ee,toFiniteNumber:te,findKey:P,global:I,isContextDefined:B,isSpecCompliantForm:re,toJSONObject:ne,isAsyncFn:ie,isThenable:oe,setImmediate:ae,asap:ue,isIterable:se};function fe(e,t,r,n,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);if(i){this.response=i;this.status=i.status?i.status:null}}ce.inherits(fe,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.status}}});var le=fe.prototype;var de={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){de[e]={value:e}}));Object.defineProperties(fe,de);Object.defineProperty(le,"isAxiosError",{value:true});fe.from=function(e,t,r,n,i,o){var a=Object.create(le);ce.toFlatObject(e,a,(function e(t){return t!==Error.prototype}),(function(e){return e!=="isAxiosError"}));fe.call(a,e.message,t,r,n,i);a.cause=e;a.name=e.name;o&&Object.assign(a,o);return a};var ve=null;function he(e){return ce.isPlainObject(e)||ce.isArray(e)}function pe(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=pe(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function be(e){return ce.isArray(e)&&!e.some(he)}var we=ce.toFlatObject(ce,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ye(e,t,r){if(!ce.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=ce.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!ce.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var o=r.dots;var a=r.indexes;var u=r.Blob||typeof Blob!=="undefined"&&Blob;var s=u&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(ce.isDate(e)){return e.toISOString()}if(!s&&ce.isBlob(e)){throw new fe("Blob is not supported. Use a Buffer instead.")}if(ce.isArrayBuffer(e)||ce.isTypedArray(e)){return s&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var u=e;if(e&&!i&&typeof e==="object"){if(ce.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(ce.isArray(e)&&be(e)||(ce.isFileList(e)||ce.endsWith(r,"[]"))&&(u=ce.toArray(e))){r=pe(r);u.forEach((function e(n,i){!(ce.isUndefined(n)||n===null)&&t.append(a===true?me([r],i,o):a===null?r:r+"[]",c(n))}));return false}}if(he(e)){return true}t.append(me(i,r,o),c(e));return false}var l=[];var d=Object.assign(we,{defaultVisitor:f,convertValue:c,isVisitable:he});function v(e,r){if(ce.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);ce.forEach(e,(function e(n,o){var a=!(ce.isUndefined(n)||n===null)&&i.call(t,n,ce.isString(o)?o.trim():o,r,d);if(a===true){v(n,r?r.concat(o):[o])}}));l.pop()}if(!ce.isObject(e)){throw new TypeError("data must be an object")}v(e);return t}function ge(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function xe(e,t){this._pairs=[];e&&ye(e,this,t)}var _e=xe.prototype;_e.append=function e(t,r){this._pairs.push([t,r])};_e.toString=function e(t){var r=t?function(e){return t.call(this,e,ge)}:ge;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function ke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ee(e,t,r){if(!t){return e}var n=r&&r.encode||ke;if(ce.isFunction(r)){r={serialize:r}}var i=r&&r.serialize;var o;if(i){o=i(t,r)}else{o=ce.isURLSearchParams(t)?t.toString():new xe(t,r).toString(n)}if(o){var a=e.indexOf("#");if(a!==-1){e=e.slice(0,a)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var Re=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){ce.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var Oe=Re;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ae=typeof URLSearchParams!=="undefined"?URLSearchParams:xe;var Te=typeof FormData!=="undefined"?FormData:null;var je=typeof Blob!=="undefined"?Blob:null;var Ce={isBrowser:true,classes:{URLSearchParams:Ae,FormData:Te,Blob:je},protocols:["http","https","file","blob","url","data"]};var Fe=typeof window!=="undefined"&&typeof document!=="undefined";var Ne=typeof navigator==="object"&&navigator||undefined;var Pe=Fe&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0);var Ie=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var Be=Fe&&window.location.href||"http://localhost";var Ue=Object.freeze({__proto__:null,hasBrowserEnv:Fe,hasStandardBrowserWebWorkerEnv:Ie,hasStandardBrowserEnv:Pe,navigator:Ne,origin:Be});var De=__assign(__assign({},Ue),Ce);function qe(e,t){return ye(e,new De.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){if(De.isNode&&ce.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function Le(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function Me(e){var t={};var r=Object.keys(e);var n;var i=r.length;var o;for(n=0;n<i;n++){o=r[n];t[o]=e[o]}return t}function ze(e){function t(e,r,n,i){var o=e[i++];if(o==="__proto__")return true;var a=Number.isFinite(+o);var u=i>=e.length;o=!o&&ce.isArray(n)?n.length:o;if(u){if(ce.hasOwnProp(n,o)){n[o]=[n[o],r]}else{n[o]=r}return!a}if(!n[o]||!ce.isObject(n[o])){n[o]=[]}var s=t(e,r,n[o],i);if(s&&ce.isArray(n[o])){n[o]=Me(n[o])}return!a}if(ce.isFormData(e)&&ce.isFunction(e.entries)){var r={};ce.forEachEntry(e,(function(e,n){t(Le(e),n,r,0)}));return r}return null}function He(e,t,r){if(ce.isString(e)){try{(0,JSON.parse)(e);return ce.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var Ve={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var o=ce.isObject(t);if(o&&ce.isHTMLForm(t)){t=new FormData(t)}var a=ce.isFormData(t);if(a){return i?JSON.stringify(ze(t)):t}if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t)){return t}if(ce.isArrayBufferView(t)){return t.buffer}if(ce.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){return qe(t,this.formSerializer).toString()}if((u=ce.isFileList(t))||n.indexOf("multipart/form-data")>-1){var s=this.env&&this.env.FormData;return ye(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}if(o||i){r.setContentType("application/json",false);return He(t)}return t}],transformResponse:[function e(t){var r=this.transitional||Ve.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t)){return t}if(t&&ce.isString(t)&&(n&&!this.responseType||i)){var o=r&&r.silentJSONParsing;var a=!o&&i;try{return JSON.parse(t)}catch(e){if(a){if(e.name==="SyntaxError"){throw fe.from(e,fe.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ce.forEach(["delete","get","head","post","put","patch"],(function(e){Ve.headers[e]={}}));var Ke=Ve;var Ge=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Je=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(o){i=o.indexOf(":");r=o.substring(0,i).trim().toLowerCase();n=o.substring(i+1).trim();if(!r||t[r]&&Ge[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var Xe=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function $e(e){if(e===false||e==null){return e}return ce.isArray(e)?e.map($e):String(e)}function Ye(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var Ze=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Qe(e,t,r,n,i){if(ce.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!ce.isString(t))return;if(ce.isString(n)){return t.indexOf(n)!==-1}if(ce.isRegExp(n)){return n.test(t)}}function et(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function tt(e,t){var r=ce.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var rt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=We(t);if(!i){throw new Error("header name must be a non-empty string")}var o=ce.findKey(n,i);if(!o||n[o]===undefined||r===true||r===undefined&&n[o]!==false){n[o||t]=$e(e)}}var o=function(e,t){return ce.forEach(e,(function(e,r){return i(e,r,t)}))};if(ce.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(ce.isString(e)&&(e=e.trim())&&!Ze(e)){o(Je(e),t)}else if(ce.isObject(e)&&ce.isIterable(e)){var a={},u=void 0,s=void 0;for(var c=0,f=e;c<f.length;c++){var l=f[c];if(!ce.isArray(l)){throw TypeError("Object iterator must return a key-value pair")}a[s=l[0]]=(u=a[s])?ce.isArray(u)?__spreadArray(__spreadArray([],u,true),[l[1]],false):[u,l[1]]:l[1]}o(a,t)}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=We(e);if(e){var r=ce.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return Ye(n)}if(ce.isFunction(t)){return t.call(this,n,r)}if(ce.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=We(e);if(e){var r=ce.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||Qe(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=We(e);if(e){var i=ce.findKey(r,e);if(i&&(!t||Qe(r,r[i],i,t))){delete r[i];n=true}}}if(ce.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||Qe(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};ce.forEach(this,(function(n,i){var o=ce.findKey(r,i);if(o){t[o]=$e(n);delete t[i];return}var a=e?et(i):String(i).trim();if(a!==i){delete t[i]}t[a]=$e(n);r[a]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);ce.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&ce.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};e.prototype.getSetCookie=function(){return this.get("set-cookie")||[]};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[Xe]=this[Xe]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=We(e);if(!r[t]){tt(n,e);r[t]=true}}ce.isArray(e)?e.forEach(i):i(e);return this};return e}();rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(rt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));ce.freezeMethods(rt);var nt=rt;function it(e,t){var r=this||Ke;var n=t||r;var i=nt.from(n.headers);var o=n.data;ce.forEach(e,(function e(n){o=n.call(r,o,i.normalize(),t?t.status:undefined)}));i.normalize();return o}function ot(e){return!!(e&&e.__CANCEL__)}function at(e,t,r){fe.call(this,e==null?"canceled":e,fe.ERR_CANCELED,t,r);this.name="CanceledError"}ce.inherits(at,fe,{__CANCEL__:true});function ut(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new fe("Request failed with status code "+r.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}function st(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ct(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var o=0;var a;t=t!==undefined?t:1e3;return function u(s){var c=Date.now();var f=n[o];if(!a){a=c}r[i]=s;n[i]=c;var l=o;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(c-a<t){return}var v=f&&c-f;return v?Math.round(d*1e3/v):undefined}}function ft(e,t){var r=0;var n=1e3/t;var i;var o;var a=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(o){clearTimeout(o);o=null}e.apply(null,t)};var u=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var u=Date.now();var s=u-r;if(s>=n){a(e,u)}else{i=e;if(!o){o=setTimeout((function(){o=null;a(i)}),n-s)}}};var s=function(){return i&&a(i)};return[u,s]}var lt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=ct(50,250);return ft((function(r){var o;var a=r.loaded;var u=r.lengthComputable?r.total:undefined;var s=a-n;var c=i(s);var f=a<=u;n=a;var l=(o={loaded:a,total:u,progress:u?a/u:undefined,bytes:s,rate:c?c:undefined,estimated:c&&u&&f?(u-a)/c:undefined,event:r,lengthComputable:u!=null},o[t?"download":"upload"]=true,o);e(l)}),r)};var dt=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var vt=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return ce.asap((function(){return e.apply(void 0,t)}))}};var ht=De.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,De.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):function(){return true};var pt=De.hasStandardBrowserEnv?{write:function(e,t,r,n,i,o){var a=[e+"="+encodeURIComponent(t)];ce.isNumber(r)&&a.push("expires="+new Date(r).toGMTString());ce.isString(n)&&a.push("path="+n);ce.isString(i)&&a.push("domain="+i);o===true&&a.push("secure");document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function mt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wt(e,t,r){var n=!mt(t);if(e&&(n||r==false)){return bt(e,t)}return t}var yt=function(e){return e instanceof nt?__assign({},e):e};function gt(e,t){t=t||{};var r={};function n(e,t,r,n){if(ce.isPlainObject(e)&&ce.isPlainObject(t)){return ce.merge.call({caseless:n},e,t)}else if(ce.isPlainObject(t)){return ce.merge({},t)}else if(ce.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!ce.isUndefined(t)){return n(e,t,r,i)}else if(!ce.isUndefined(e)){return n(undefined,e,r,i)}}function o(e,t){if(!ce.isUndefined(t)){return n(undefined,t)}}function a(e,t){if(!ce.isUndefined(t)){return n(undefined,t)}else if(!ce.isUndefined(e)){return n(undefined,e)}}function u(r,i,o){if(o in t){return n(r,i)}else if(o in e){return n(undefined,r)}}var s={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:function(e,t,r){return i(yt(e),yt(t),r,true)}};ce.forEach(Object.keys(Object.assign({},e,t)),(function n(o){var a=s[o]||i;var c=a(e[o],t[o],o);ce.isUndefined(c)&&a!==u||(r[o]=c)}));return r}var xt=function(e){var t=gt({},e);var r=t.data,n=t.withXSRFToken,i=t.xsrfHeaderName,o=t.xsrfCookieName,a=t.headers,u=t.auth;t.headers=a=nt.from(a);t.url=Ee(wt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(u){a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")))}var s;if(ce.isFormData(r)){if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv){a.setContentType(undefined)}else if((s=a.getContentType())!==false){var c=s?s.split(";").map((function(e){return e.trim()})).filter(Boolean):[],f=c[0],l=c.slice(1);a.setContentType(__spreadArray([f||"multipart/form-data"],l,true).join("; "))}}if(De.hasStandardBrowserEnv){n&&ce.isFunction(n)&&(n=n(t));if(n||n!==false&&ht(t.url)){var d=i&&o&&pt.read(o);if(d){a.set(i,d)}}}return t};var _t=typeof XMLHttpRequest!=="undefined";var kt=_t&&function(e){return new Promise((function t(r,n){var i,o;var a=xt(e);var u=a.data;var s=nt.from(a.headers).normalize();var c=a.responseType,f=a.onUploadProgress,l=a.onDownloadProgress;var d;var v,h;var p,m;function b(){p&&p();m&&m();a.cancelToken&&a.cancelToken.unsubscribe(d);a.signal&&a.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,true);w.timeout=a.timeout;function y(){if(!w){return}var t=nt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!c||c==="text"||c==="json"?w.responseText:w.response;var o={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};ut((function e(t){r(t);b()}),(function e(t){n(t);b()}),o);w=null}if("onloadend"in w){w.onloadend=y}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)){return}setTimeout(y)}}w.onabort=function t(){if(!w){return}n(new fe("Request aborted",fe.ECONNABORTED,e,w));w=null};w.onerror=function t(){n(new fe("Network Error",fe.ERR_NETWORK,e,w));w=null};w.ontimeout=function t(){var r=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";var i=a.transitional||Se;if(a.timeoutErrorMessage){r=a.timeoutErrorMessage}n(new fe(r,i.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,w));w=null};u===undefined&&s.setContentType(null);if("setRequestHeader"in w){ce.forEach(s.toJSON(),(function e(t,r){w.setRequestHeader(r,t)}))}if(!ce.isUndefined(a.withCredentials)){w.withCredentials=!!a.withCredentials}if(c&&c!=="json"){w.responseType=a.responseType}if(l){i=lt(l,true),h=i[0],m=i[1];w.addEventListener("progress",h)}if(f&&w.upload){o=lt(f),v=o[0],p=o[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(a.cancelToken||a.signal){d=function(t){if(!w){return}n(!t||t.type?new at(null,e,w):t);w.abort();w=null};a.cancelToken&&a.cancelToken.subscribe(d);if(a.signal){a.signal.aborted?d():a.signal.addEventListener("abort",d)}}var g=st(a.url);if(g&&De.protocols.indexOf(g)===-1){n(new fe("Unsupported protocol "+g+":",fe.ERR_BAD_REQUEST,e));return}w.send(u||null)}))};var Et=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n=new AbortController;var i;var o=function(e){if(!i){i=true;u();var t=e instanceof Error?e:this.reason;n.abort(t instanceof fe?t:new at(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;o(new fe("timeout ".concat(t," of ms exceeded"),fe.ETIMEDOUT))}),t);var u=function(){if(e){a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}));e=null}};e.forEach((function(e){return e.addEventListener("abort",o)}));var s=n.signal;s.unsubscribe=function(){return ce.asap(u)};return s}};var Rt=Et;var Ot=function(e,t){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=e.byteLength;if(!(r<t))return[3,2];return[4,e];case 1:o.sent();return[2];case 2:n=0;o.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:o.sent();n=i;return[3,3];case 5:return[2]}}))};var St=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,o,a;var u,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(At(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),u=i.done,!u))return[3,6];f=i.value;r=false;o=f;return[5,__values(__asyncDelegator(__asyncValues(Ot(o,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:a=l.sent();s={error:a};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!u&&(c=n.return)))return[3,10];return[4,__await(c.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var At=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[o.sent()])];case 2:o.sent();return[4,__await(void 0)];case 3:return[2,o.sent()];case 4:t=e.getReader();o.label=5;case 5:o.trys.push([5,,12,14]);o.label=6;case 6:return[4,__await(t.read())];case 7:r=o.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,o.sent()];case 9:o.sent();o.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:o.sent();return[7];case 14:return[2]}}))}))};var Tt=function(e,t,r,n){var i=St(e,t);var o=0;var a;var u=function(e){if(!a){a=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,a=t.value;if(n){u();e.close();return[2]}s=a.byteLength;if(r){c=o+=s;r(c)}e.enqueue(new Uint8Array(a));return[3,3];case 2:f=l.sent();u(f);throw f;case 3:return[2]}}))}))},cancel:function(e){u(e);return i.return()}},{highWaterMark:2})};var jt=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";var Ct=jt&&typeof ReadableStream==="function";var Ft=jt&&(typeof TextEncoder==="function"?function(e){return function(t){return e.encode(t)}}(new TextEncoder):function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:e=Uint8Array.bind;return[4,new Response(t).arrayBuffer()];case 1:return[2,new(e.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var Nt=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Pt=Ct&&Nt((function(){var e=false;var t=new Request(De.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));var It=64*1024;var Bt=Ct&&Nt((function(){return ce.isReadableStream(new Response("").body)}));var Ut={stream:Bt&&function(e){return e.body}};jt&&function(e){["text","arrayBuffer","blob","formData","stream"].forEach((function(t){!Ut[t]&&(Ut[t]=ce.isFunction(e[t])?function(e){return e[t]()}:function(e,r){throw new fe("Response type '".concat(t,"' is not supported"),fe.ERR_NOT_SUPPORT,r)})}))}(new Response);var Dt=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(t==null){return[2,0]}if(ce.isBlob(t)){return[2,t.size]}if(!ce.isSpecCompliantForm(t))return[3,2];e=new Request(De.origin,{method:"POST",body:t});return[4,e.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(ce.isArrayBufferView(t)||ce.isArrayBuffer(t)){return[2,t.byteLength]}if(ce.isURLSearchParams(t)){t=t+""}if(!ce.isString(t))return[3,4];return[4,Ft(t)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var qt=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=ce.toFiniteNumber(t.getContentLength());return[2,e==null?Dt(r):e]}))}))};var Lt=jt&&function(t){return __awaiter(e,void 0,void 0,(function(){var e,r,n,i,o,a,u,s,c,f,l,d,v,h,p,m,b,w,y,g,x,_,k,E,R,O,S,A,T,j,k,C,F,N;return __generator(this,(function(P){switch(P.label){case 0:e=xt(t),r=e.url,n=e.method,i=e.data,o=e.signal,a=e.cancelToken,u=e.timeout,s=e.onDownloadProgress,c=e.onUploadProgress,f=e.responseType,l=e.headers,d=e.withCredentials,v=d===void 0?"same-origin":d,h=e.fetchOptions;f=f?(f+"").toLowerCase():"text";p=Rt([o,a&&a.toAbortSignal()],u);b=p&&p.unsubscribe&&function(){p.unsubscribe()};P.label=1;case 1:P.trys.push([1,7,,8]);y=c&&Pt&&n!=="get"&&n!=="head";if(!y)return[3,3];return[4,qt(l,i)];case 2:y=(w=P.sent())!==0;P.label=3;case 3:if(y){g=new Request(r,{method:"POST",body:i,duplex:"half"});x=void 0;if(ce.isFormData(i)&&(x=g.headers.get("content-type"))){l.setContentType(x)}if(g.body){_=dt(w,lt(vt(c))),k=_[0],E=_[1];i=Tt(g.body,It,k,E)}}if(!ce.isString(v)){v=v?"include":"omit"}R="credentials"in Request.prototype;m=new Request(r,__assign(__assign({},h),{signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:R?v:undefined}));return[4,fetch(m)];case 4:O=P.sent();S=Bt&&(f==="stream"||f==="response");if(Bt&&(s||S&&b)){A={};["status","statusText","headers"].forEach((function(e){A[e]=O[e]}));T=ce.toFiniteNumber(O.headers.get("content-length"));j=s&&dt(T,lt(vt(s),true))||[],k=j[0],C=j[1];O=new Response(Tt(O.body,It,k,(function(){C&&C();b&&b()})),A)}f=f||"text";return[4,Ut[ce.findKey(Ut,f)||"text"](O,t)];case 5:F=P.sent();!S&&b&&b();return[4,new Promise((function(e,r){ut(e,r,{data:F,headers:nt.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:m})}))];case 6:return[2,P.sent()];case 7:N=P.sent();b&&b();if(N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)){throw Object.assign(new fe("Network Error",fe.ERR_NETWORK,t,m),{cause:N.cause||N})}throw fe.from(N,N&&N.code,t,m);case 8:return[2]}}))}))};var Mt={http:ve,xhr:kt,fetch:Lt};ce.forEach(Mt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var zt=function(e){return"- ".concat(e)};var Ht=function(e){return ce.isFunction(e)||e===null||e===false};var Vt={getAdapter:function(e){e=ce.isArray(e)?e:[e];var t=e.length;var r;var n;var i={};for(var o=0;o<t;o++){r=e[o];var a=void 0;n=r;if(!Ht(r)){n=Mt[(a=String(r)).toLowerCase()];if(n===undefined){throw new fe("Unknown adapter '".concat(a,"'"))}}if(n){break}i[a||"#"+o]=n}if(!n){var u=Object.entries(i).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var s=t?u.length>1?"since :\n"+u.map(zt).join("\n"):" "+zt(u[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Mt};function Kt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new at(null,e)}}function Gt(e){Kt(e);e.headers=nt.from(e.headers);e.data=it.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=Vt.getAdapter(e.adapter||Ke.adapter);return t(e).then((function t(r){Kt(e);r.data=it.call(e,e.transformResponse,r);r.headers=nt.from(r.headers);return r}),(function t(r){if(!ot(r)){Kt(e);if(r&&r.response){r.response.data=it.call(e,e.transformResponse,r.response);r.response.headers=nt.from(r.response.headers)}}return Promise.reject(r)}))}var Jt="1.9.0";var Xt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Xt[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Wt={};Xt.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+Jt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new fe(i(n," has been removed"+(r?" in "+r:"")),fe.ERR_DEPRECATED)}if(r&&!Wt[n]){Wt[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};Xt.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function $t(e,t,r){if(typeof e!=="object"){throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var u=e[o];var s=u===undefined||a(u,o,e);if(s!==true){throw new fe("option "+o+" must be "+s,fe.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}}}var Yt={assertOptions:$t,validators:Xt};var Zt=Yt.validators;var Qt=function(){function e(e){this.defaults=e||{};this.interceptors={request:new Oe,response:new Oe}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,o.sent()];case 2:r=o.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=n.stack?n.stack.replace(/^.+\n/,""):"";try{if(!r.stack){r.stack=i}else if(i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))){r.stack+="\n"+i}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=gt(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){Yt.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean)},false)}if(n!=null){if(ce.isFunction(n)){t.paramsSerializer={serialize:n}}else{Yt.assertOptions(n,{encode:Zt.function,serialize:Zt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Yt.assertOptions(t,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=i&&ce.merge(i.common,i[t.method]);i&&ce.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=nt.concat(o,i);var a=[];var u=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}u=u&&r.synchronous;a.unshift(r.fulfilled,r.rejected)}));var s=[];this.interceptors.response.forEach((function e(t){s.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!u){var d=[Gt.bind(this),undefined];d.unshift.apply(d,a);d.push.apply(d,s);l=d.length;c=Promise.resolve(t);while(f<l){c=c.then(d[f++],d[f++])}return c}l=a.length;var v=t;f=0;while(f<l){var h=a[f++];var p=a[f++];try{v=h(v)}catch(e){p.call(this,e);break}}try{c=Gt.call(this,v)}catch(e){return Promise.reject(e)}f=0;l=s.length;while(f<l){c=c.then(s[f++],s[f++])}return c};e.prototype.getUri=function(e){e=gt(this.defaults,e);var t=wt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ee(t,e.params,e.paramsSerializer)};return e}();ce.forEach(["delete","get","head","options"],(function e(t){Qt.prototype[t]=function(e,r){return this.request(gt(r||{},{method:t,url:e,data:(r||{}).data}))}}));ce.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(gt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Qt.prototype[t]=r();Qt.prototype[t+"Form"]=r(true)}));var er=Qt;var tr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,o){if(r.reason){return}r.reason=new at(n,i,o);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();var rr=tr;function nr(e){return function t(r){return e.apply(null,r)}}function ir(e){return ce.isObject(e)&&e.isAxiosError===true}var or={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(or).forEach((function(e){var t=e[0],r=e[1];or[r]=t}));var ar=or;function ur(e){var r=new er(e);var n=t(er.prototype.request,r);ce.extend(n,er.prototype,r,{allOwnKeys:true});ce.extend(n,r,null,{allOwnKeys:true});n.create=function t(r){return ur(gt(e,r))};return n}var sr=ur(Ke);sr.Axios=er;sr.CanceledError=at;sr.CancelToken=rr;sr.isCancel=ot;sr.VERSION=Jt;sr.toFormData=ye;sr.AxiosError=fe;sr.Cancel=sr.CanceledError;sr.all=function e(t){return Promise.all(t)};sr.spread=nr;sr.isAxiosError=ir;sr.mergeConfig=gt;sr.AxiosHeaders=nt;sr.formToJSON=function(e){return ze(ce.isHTMLForm(e)?new FormData(e):e)};sr.getAdapter=Vt.getAdapter;sr.HttpStatusCode=ar;sr.default=sr;axios_1=sr;return axios_1}var axiosExports=requireAxios();var axios=getDefaultExportFromCjs(axiosExports);var API_KEY=BETA_ORIGINS.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var getFeatureFlags=function(){return axios.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:API_KEY}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var verdocsContactPickerCss='@-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-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';var addrBookIcon='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var VerdocsContactPicker=function(){function e(e){registerInstance(this,e);this.searchContacts=createEvent(this,"searchContacts");this.exit=createEvent(this,"exit");this.next=createEvent(this,"next");this.endpoint=VerdocsEndpoint.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=formatFullName(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}getActiveEntitlements(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));getFeatureFlags().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,n,i,o,a,u,s,c,f,l,d,v,p,m,b,w,y;var g=this.first_name&&this.last_name&&isValidEmail(this.email);var x=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var _=g&&x;var k=((n=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||n===void 0?void 0:n.enabled)===true;var E=[];if(((a=(o=(i=this.featureFlags)===null||i===void 0?void 0:i.toggles)===null||o===void 0?void 0:o.find((function(e){return e.name==="passcode-verification"})))===null||a===void 0?void 0:a.enabled)===true){E.push({label:"Passcode",value:"passcode"})}if(((c=(s=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||s===void 0?void 0:s.find((function(e){return e.name==="email-verification"})))===null||c===void 0?void 0:c.enabled)===true){E.push({label:"Email",value:"email"})}if(k&&((d=(l=(f=this.featureFlags)===null||f===void 0?void 0:f.toggles)===null||l===void 0?void 0:l.find((function(e){return e.name==="sms-verification"})))===null||d===void 0?void 0:d.enabled)===true&&!!this.activeEntitlements.sms_auth){E.push({label:"SMS (One-Time Code)",value:"sms"})}if(((m=(p=(v=this.featureFlags)===null||v===void 0?void 0:v.toggles)===null||p===void 0?void 0:p.find((function(e){return e.name==="kba-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.kba_auth){E.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((y=(w=(b=this.featureFlags)===null||b===void 0?void 0:b.toggles)===null||w===void 0?void 0:w.find((function(e){return e.name==="id-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.id_auth){E.push({label:"ID Check",value:"id"})}return h("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},h("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},h("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),h("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},h("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),h("input",{key:"30ae8e6b5c52c45bad07572a9357c575fd248df1",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&h("verdocs-portal",{key:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},h("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return h("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?h("img",{alt:"Avatar",class:"avatar",src:t.picture}):h("div",{class:"avatar",innerHTML:addrBookIcon}),h("div",{class:"details"},h("div",{class:"name"},formatFullName(t)),t.email&&h("div",{class:"destination"},t.email),t.phone&&h("div",{class:"destination"},t.phone)))}))))),h("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},h("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),h("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),k&&h("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},h("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),h("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=convertToE164(t.target.value)}})),h(Fragment,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},E.length>0&&h("div",{key:"f1248b2c40c1cfb22cfa577bc1f5c5895362ded2",class:"row pin-code"},h("label",{key:"d782f794fa6a8d2ca18835db9e8d6e510038f212"},"Recipient Verification:"),h("div",{key:"36f6d36272f71f6f2169e5b4e6446c6e969e36af"},E.map((function(t,r){return h("div",{class:"option"},h("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.auth_methods.includes(t.value),onInput:function(r){if(r.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[t.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==t.value}))}}}),h("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))})))),this.auth_methods.includes("passcode")&&h("div",{key:"bf631ef781e2bb9ad1bc35e56a51a66db24ebf33",class:"row pin-code"},h("label",{key:"6528152b13591a3843edc004fde4948e6c44d153",htmlFor:this.phoneFieldId},"Passcode:"),h("input",{key:"5aa95a7185e8a4ef5e3f071c6cac4d98e8d0d6ce",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),h("div",{key:"b162036266114dbce2520a6c006804a5a4929531",class:"row message"},h("label",{key:"47d04957126e80fcb346c0359dc3bcf9d64c1749",htmlFor:"verdocs-contact-picker-message"},"Message:"),h("textarea",{key:"0d830b39376684620b43281cf014e2ba386b7bf0",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),h("div",{key:"65466e83bbc1f5045f8efa7c200cfd7dd9898d9f",class:"buttons"},h("div",{key:"07776d2f5ede2a0b6d0b786bcf6b8ed44811e248",class:"flex-fill"}),h("verdocs-button",{key:"2eb20966d5b97cc3fec25de0e0c47af802bca7dd",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),h("verdocs-button",{key:"1329cd0da977ad1b00444cccf034b2cd3f6f634f",label:"OK",size:"small",disabled:!_,onClick:!_?function(){}:function(t){return e.handleSubmit(t)}})))};return e}();VerdocsContactPicker.style=verdocsContactPickerCss;export{VerdocsContactPicker as verdocs_contact_picker};
3
3
  //# sourceMappingURL=verdocs-contact-picker.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?i(e.value):r(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CF7i8guW.js";import{VerdocsEndpoint,getEnvelopeDocumentPageDisplayUri}from"@verdocs/js-sdk";import{t as throttle}from"./utils-CbfXTNEw.js";import"./_commonjsHelpers-BFTU3MAI.js";import"./index-dzBXqXlK.js";import"./Types-Dl7Xw8F0.js";var verdocsEnvelopeDocumentPageCss="@-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-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";var VerdocsEnvelopeDocumentPage=function(){function e(e){registerInstance(this,e);this.pageRendered=createEvent(this,"pageRendered");this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId="verdocs-envelope-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,getEnvelopeDocumentPageDisplayUri(this.endpoint,this.documentId,this.pageNumber,this.type)];case 1:e.pageDisplayUri=t.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(throttle((function(t){for(var i=0,n=t;i<n.length;i++){var r=n[i];var o=r.contentRect.width;e.renderedWidth=o;e.renderedHeight=e.virtualHeight*(o/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};e.prototype.render=function(){var e=this;var t="".concat(this.renderedHeight,"px");return h(Host,{key:"52fea0a651da570fe851a27db144ae889c4301ad",id:"".concat(this.containerId),style:{height:t,flex:"0 0 ".concat(t)}},this.layers.map((function(i){return i.type==="div"?h("div",{class:"verdocs-envelope-document-page-layer",id:"".concat(e.containerId,"-").concat(i.name),style:{height:t}}):e.pageDisplayUri?h("img",{class:"verdocs-envelope-document-page-layer img",id:"".concat(e.containerId,"-").concat(i.name),src:e.pageDisplayUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(t){e.naturalWidth=t.target.naturalWidth;e.naturalHeight=t.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio;e.renderedHeight=t.target.offsetWidth/e.aspectRatio}}):h("div",null)})))};Object.defineProperty(e.prototype,"container",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsEnvelopeDocumentPage.style=verdocsEnvelopeDocumentPageCss;export{VerdocsEnvelopeDocumentPage as verdocs_envelope_document_page};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?i(e.value):r(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CF7i8guW.js";import{VerdocsEndpoint,getEnvelopeDocumentPageDisplayUri}from"@verdocs/js-sdk";import{t as throttle}from"./utils-DmfOx9Ey.js";import"./_commonjsHelpers-BFTU3MAI.js";import"./index-dzBXqXlK.js";import"./Types-Dl7Xw8F0.js";var verdocsEnvelopeDocumentPageCss="@-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-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";var VerdocsEnvelopeDocumentPage=function(){function e(e){registerInstance(this,e);this.pageRendered=createEvent(this,"pageRendered");this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId="verdocs-envelope-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,getEnvelopeDocumentPageDisplayUri(this.endpoint,this.documentId,this.pageNumber,this.type)];case 1:e.pageDisplayUri=t.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(throttle((function(t){for(var i=0,n=t;i<n.length;i++){var r=n[i];var o=r.contentRect.width;e.renderedWidth=o;e.renderedHeight=e.virtualHeight*(o/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};e.prototype.render=function(){var e=this;var t="".concat(this.renderedHeight,"px");return h(Host,{key:"52fea0a651da570fe851a27db144ae889c4301ad",id:"".concat(this.containerId),style:{height:t,flex:"0 0 ".concat(t)}},this.layers.map((function(i){return i.type==="div"?h("div",{class:"verdocs-envelope-document-page-layer",id:"".concat(e.containerId,"-").concat(i.name),style:{height:t}}):e.pageDisplayUri?h("img",{class:"verdocs-envelope-document-page-layer img",id:"".concat(e.containerId,"-").concat(i.name),src:e.pageDisplayUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(t){e.naturalWidth=t.target.naturalWidth;e.naturalHeight=t.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio;e.renderedHeight=t.target.offsetWidth/e.aspectRatio}}):h("div",null)})))};Object.defineProperty(e.prototype,"container",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsEnvelopeDocumentPage.style=verdocsEnvelopeDocumentPageCss;export{VerdocsEnvelopeDocumentPage as verdocs_envelope_document_page};
2
2
  //# sourceMappingURL=verdocs-envelope-document-page.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,i,t,n){function s(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,o){function r(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?t(e.value):s(e.value).then(r,a)}l((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(i){return l([e,i])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;s=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=i.call(e,t)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment}from"./index-CF7i8guW.js";import{d as dateFnsExports}from"./index-dzBXqXlK.js";import{VerdocsEndpoint,getEnvelope,resendInvitation,cancelEnvelope,formatFullName,updateEnvelope,userIsEnvelopeOwner,capitalize}from"@verdocs/js-sdk";import{F as FORMAT_TIMESTAMP}from"./Types-Dl7Xw8F0.js";import{V as VerdocsToast}from"./Toast-CyvDgtoV.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-C_IIZj49.js";var verdocsEnvelopeSidebarCss='@-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-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;font-size:14px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:6px;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-name{-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:0 0 100px;flex:0 0 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}verdocs-envelope-sidebar .reminders{margin:15px 0 30px 0}verdocs-envelope-sidebar .reminders .form-row{margin:8px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-sidebar .reminders .form-row .reminders-label{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row .form-label{-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row verdocs-text-input{margin:0;width:100px}';var MS_PER_DAY=24*60*60*1e3;var InformationCircle='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>';var Users='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var ClipboardDocuments='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var ActivityIcons={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>',idcard:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',idcardslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',key:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',keyslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pin:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pinslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'};var VerdocsEnvelopeSidebar=function(){function e(e){registerInstance(this,e);this.sdkError=createEvent(this,"sdkError");this.envelopeUpdated=createEvent(this,"envelopeUpdated");this.toggle=createEvent(this,"toggle");this.another=createEvent(this,"another");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showRecipientDialog="";this.showCancelDialog=false;this.showReinviteDialog="";this.remindersEnabled=false;this.updatingReminders=false;this.initialReminder=null;this.followupReminders=null;this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t;return __generator(this,(function(n){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[SIDEBAR] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(n){console.log("[SIDEBAR] Error loading envelope",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(t=n.response)===null||t===void 0?void 0:t.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var t,n;e.envelope=i;e.loading=false;e.sortEnvelopeRecipients();e.initialReminder=(t=e.envelope)===null||t===void 0?void 0:t.initial_reminder;e.followupReminders=(n=e.envelope)===null||n===void 0?void 0:n.followup_reminders;e.remindersEnabled=!!e.initialReminder}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.setTab=function(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen;(i=this.toggle)===null||i===void 0?void 0:i.emit({open:this.panelOpen});this.activeTab=e};e.prototype.canResendRecipient=function(e){var i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=this.envelope)===null||i===void 0?void 0:i.status)};e.prototype.handleRecipientAction=function(e,i){var t;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"reminder":resendInvitation(this.endpoint,this.envelopeId,e.role_name).then((function(){VerdocsToast("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);VerdocsToast("Error resending invitation: "+e.message,{style:"error"})}));break;case"reinvite":this.showReinviteDialog=e.role_name;break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})};e.prototype.handleCancelEnvelope=function(){var e=this;this.loading=true;cancelEnvelope(this.endpoint,this.envelopeId).then((function(i){return __awaiter(e,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){console.log("[SIDEBAR] Envelope canceled",i);VerdocsToast("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";Store.updateEnvelope(this.envelopeId,t);this.loading=false;this.panelOpen=false;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:t,event:"canceled"});return[2]}))}))})).catch((function(i){console.log("[SIDEBAR] Error canceling envelope",i);e.loading=false;VerdocsToast("Error canceling envelope: "+i.message,{style:"error"})}))};e.prototype.prepareHistoryEntries=function(){var e=this;var i,t,n,s,o,r;var a=[];var l=((i=this.envelope)===null||i===void 0?void 0:i.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.created_at)});if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((s=this.envelope)===null||s===void 0?void 0:s.updated_at)})}var d=l.some((function(e){return e.event==="owner:canceled"}));if(((o=this.envelope)===null||o===void 0?void 0:o.status)==="canceled"&&!d){a.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date((r=this.envelope)===null||r===void 0?void 0:r.canceled_at)})}l.forEach((function(i){var t;var n=(((t=e.envelope)===null||t===void 0?void 0:t.recipients)||[]).find((function(e){return e.role_name===i.role_name}));var s=formatFullName(n);switch(i.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:"KBA verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:"KBA verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:"ID verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:"ID verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:"PIN verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:"PIN verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:declined":a.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:opened":switch(i.event_detail){case"email":case"mail":a.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(i.created_at)});break;case"sms":a.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(i.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(i.created_at)});break;case"in_app":a.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(i.created_at)});break;default:a.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(i.created_at)})}break;case"recipient:submitted":switch(i.event_detail){case"approver":a.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(i.created_at)});break;default:a.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(i.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:claimed":if(i.event_detail==="guest"){a.push({icon:"account_circle",message:"".concat(s," claimed the Envelope as a guest."),date:new Date(i.created_at)})}else if(i.event_detail==="profile"){a.push({icon:"verified_user",message:"".concat(s," claimed the Envelope as a verified user."),date:new Date(i.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(i.created_at)});break;case"recipient:invited":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(i.created_at)})}break;case"recipient:reminder":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," sent a reminder via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," sent a reminder via email."),date:new Date(i.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:"Invitation was resent to ".concat(s).concat(i.event_detail==="reminder"?" by reminder":"","."),date:new Date(i.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:i.event_detail,date:new Date(i.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"created":a.push({icon:"create",message:"Envelope was created.",date:new Date(i.created_at)});break;case"completed":a.push({icon:"done_all",message:"Envelope was completed.",date:new Date(i.created_at)});break;case"envelope:canceled":case"envelope_canceled":case"canceled":case"owner:canceled":a.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(i.created_at)});break;case"owner:get_in_person_link":a.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(i.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",i);break}}));a.sort((function(e,i){return i.date.getTime()-e.date.getTime()}));return a};e.prototype.handleToggleReminders=function(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(MS_PER_DAY,3*MS_PER_DAY)}};e.prototype.handleSetReminders=function(e,i){var t=this;console.log("Updating reminders...");this.updatingReminders=true;updateEnvelope(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((function(e){console.log("Updated",e);Store.updateEnvelope(t.envelopeId,e);t.initialReminder=e.initial_reminder;t.followupReminders=e.followup_reminders;t.remindersEnabled=!!e.initial_reminder;t.updatingReminders=false})).catch((function(e){var i,n,s;console.log("Error updating envelope",e);t.initialReminder=(i=t.envelope)===null||i===void 0?void 0:i.initial_reminder;t.followupReminders=(n=t.envelope)===null||n===void 0?void 0:n.followup_reminders;t.remindersEnabled=!!((s=t.envelope)===null||s===void 0?void 0:s.initial_reminder);t.updatingReminders=false;VerdocsToast(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,n,s,o,r,a,l,d,c,v,p;if(this.loading){return h(Host,null)}var u=userIsEnvelopeOwner(this.endpoint.profile,this.envelope);var f=this.prepareHistoryEntries();var w=((i=this.envelope)===null||i===void 0?void 0:i.status)!=="pending"&&((t=this.envelope)===null||t===void 0?void 0:t.status)!=="in progress";return h(Host,{class:this.panelOpen?"open":""},h("div",{class:"side-buttons"},h("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:InformationCircle}),h("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:Users}),h("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:ClipboardDocuments})),this.activeTab===1&&h("div",{class:"content"},h("div",{class:"title"},"Details"),h("div",{class:"label"},"Envelope ID"),h("div",{class:"value"},(n=this.envelope)===null||n===void 0?void 0:n.id),h("div",{class:"label"},"Date Created"),h("div",{class:"value"},dateFnsExports.format(new Date((s=this.envelope)===null||s===void 0?void 0:s.created_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Last Modified"),h("div",{class:"value"},dateFnsExports.format(new Date((o=this.envelope)===null||o===void 0?void 0:o.updated_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Status"),h("div",{class:"value"},capitalize((r=this.envelope)===null||r===void 0?void 0:r.status)),h("div",{class:"label"},"Owner ID"),h("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.profile_id),h("div",{class:"label"},"Owner Name"),h("div",{class:"value"},formatFullName((l=this.envelope)===null||l===void 0?void 0:l.profile)),h("div",{class:"label"},"Owner Email"),h("div",{class:"value"},(c=(d=this.envelope)===null||d===void 0?void 0:d.profile)===null||c===void 0?void 0:c.email)),this.activeTab===2&&h("div",{class:"content"},h("div",{class:"title"},"Recipients"),(v=this.envelope)===null||v===void 0?void 0:v.recipients.map((function(i,t){var n;var s=i.status!=="submitted"&&i.status!=="canceled"&&i.status!=="declined";var o=e.canResendRecipient(i);var r=formatFullName(i);return h("div",{class:"recipient-detail"},h("div",{class:"recipient-header"},h("div",{class:"recipient-number"},t+1),h("div",{class:"recipient-name"},i.role_name),h("div",{class:(n={"recipient-status":true},n[i.status]=true,n)},i.status),u&&!w&&h("verdocs-dropdown",{onOptionSelected:function(t){return e.handleRecipientAction(i,t.detail.id)},options:[{id:"reminder",label:"Send Reminder",disabled:!o},{id:"inperson",label:"Get In-Person Link",disabled:!s},{id:"reinvite",label:"Re-invite",disabled:!o}]})),h("dic",{class:"recipient-content"},h("div",{class:"recipient-name"},r),h("div",{class:"recipient-name"},i.email),h("div",{class:"recipient-name"},i.phone)))})),u&&h("div",{class:"reminders"},h("div",{class:"form-row"},h("div",{class:"reminders-label"},"Reminders"),h("verdocs-switch",{disabled:w||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:function(){return e.handleToggleReminders()}})),this.remindersEnabled&&h(Fragment,null,h("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),h("div",{class:"form-row"},h("div",{class:"form-label"},"Initial Reminder (days):"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.initialReminder/MS_PER_DAY)),onBlur:function(i){e.initialReminder=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Follow-up Reminders:"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.followupReminders/MS_PER_DAY)),onBlur:function(i){e.followupReminders=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Next Reminder:"),h("div",{style:{color:"#dddddd"}},dateFnsExports.format(new Date((p=this.envelope)===null||p===void 0?void 0:p.next_reminder),"P p"))))),u&&h("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!w},disabled:w})),this.activeTab===3&&h("div",{class:"content"},h("div",{class:"title"},"History"),f.map((function(e){return h("div",{class:"history-entry"},h("div",{class:"activity-icon",innerHTML:ActivityIcons[e.icon]||e.icon}),h("div",{class:"activity-details"},h("div",{class:"activity-text"},e.message),h("div",{class:"activity-date"},dateFnsExports.format(e.date,FORMAT_TIMESTAMP))))}))),this.showRecipientDialog&&h("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:function(){return e.showRecipientDialog=""}}),this.showCancelDialog&&h("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:function(){e.showCancelDialog=false;e.handleCancelEnvelope()}}),this.showReinviteDialog&&h("verdocs-ok-dialog",{heading:"Re-invite Recipient?",message:'This will reset the recipient\'s KBA status and send a new signing invitation. If you just want to send a reminder, please click "Send Reminder" instead.',onNext:function(){e.showReinviteDialog=""}}))};return e}();VerdocsEnvelopeSidebar.style=verdocsEnvelopeSidebarCss;export{VerdocsEnvelopeSidebar as verdocs_envelope_sidebar};
1
+ var __awaiter=this&&this.__awaiter||function(e,i,t,n){function s(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,o){function r(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?t(e.value):s(e.value).then(r,a)}l((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(i){return l([e,i])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;s=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=i.call(e,t)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment}from"./index-CF7i8guW.js";import{d as dateFnsExports}from"./index-dzBXqXlK.js";import{VerdocsEndpoint,getEnvelope,resendInvitation,cancelEnvelope,formatFullName,updateEnvelope,userIsEnvelopeOwner,capitalize}from"@verdocs/js-sdk";import{F as FORMAT_TIMESTAMP}from"./Types-Dl7Xw8F0.js";import{V as VerdocsToast}from"./Toast-CyvDgtoV.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-C_IIZj49.js";var verdocsEnvelopeSidebarCss='@-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-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;font-size:14px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:6px;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-name{-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:0 0 100px;flex:0 0 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}verdocs-envelope-sidebar .reminders{margin:15px 0 30px 0}verdocs-envelope-sidebar .reminders .form-row{margin:8px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-sidebar .reminders .form-row .reminders-label{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row .form-label{-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row verdocs-text-input{margin:0;width:100px}';var MS_PER_DAY=24*60*60*1e3;var InformationCircle='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>';var Users='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var ClipboardDocuments='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var ActivityIcons={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>',idcard:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',idcardslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',key:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',keyslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pin:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pinslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'};var VerdocsEnvelopeSidebar=function(){function e(e){registerInstance(this,e);this.sdkError=createEvent(this,"sdkError");this.envelopeUpdated=createEvent(this,"envelopeUpdated");this.toggle=createEvent(this,"toggle");this.another=createEvent(this,"another");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showRecipientDialog="";this.showCancelDialog=false;this.showReinviteDialog="";this.remindersEnabled=false;this.updatingReminders=false;this.initialReminder=null;this.followupReminders=null;this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t;return __generator(this,(function(n){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[SIDEBAR] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(n){console.log("[SIDEBAR] Error loading envelope",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(t=n.response)===null||t===void 0?void 0:t.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var t,n;e.envelope=i;e.loading=false;e.sortEnvelopeRecipients();e.initialReminder=(t=e.envelope)===null||t===void 0?void 0:t.initial_reminder;e.followupReminders=(n=e.envelope)===null||n===void 0?void 0:n.followup_reminders;e.remindersEnabled=!!e.initialReminder}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.setTab=function(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen;(i=this.toggle)===null||i===void 0?void 0:i.emit({open:this.panelOpen});this.activeTab=e};e.prototype.canResendRecipient=function(e){var i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=this.envelope)===null||i===void 0?void 0:i.status)};e.prototype.handleRecipientAction=function(e,i){var t;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"reminder":resendInvitation(this.endpoint,this.envelopeId,e.role_name).then((function(){VerdocsToast("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);VerdocsToast("Error resending invitation: "+e.message,{style:"error"})}));break;case"reinvite":this.showReinviteDialog=e.role_name;break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})};e.prototype.handleCancelEnvelope=function(){var e=this;this.loading=true;cancelEnvelope(this.endpoint,this.envelopeId).then((function(i){return __awaiter(e,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){console.log("[SIDEBAR] Envelope canceled",i);VerdocsToast("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";Store.updateEnvelope(this.envelopeId,t);this.loading=false;this.panelOpen=false;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:t,event:"canceled"});return[2]}))}))})).catch((function(i){console.log("[SIDEBAR] Error canceling envelope",i);e.loading=false;VerdocsToast("Error canceling envelope: "+i.message,{style:"error"})}))};e.prototype.prepareHistoryEntries=function(){var e=this;var i,t,n,s,o,r;var a=[];var l=((i=this.envelope)===null||i===void 0?void 0:i.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.created_at)});if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((s=this.envelope)===null||s===void 0?void 0:s.updated_at)})}var d=l.some((function(e){return e.event==="owner:canceled"}));if(((o=this.envelope)===null||o===void 0?void 0:o.status)==="canceled"&&!d){a.push({icon:"pencil",message:"Envelope Canceled.",date:new Date((r=this.envelope)===null||r===void 0?void 0:r.canceled_at)})}l.forEach((function(i){var t;var n=(((t=e.envelope)===null||t===void 0?void 0:t.recipients)||[]).find((function(e){return e.role_name===i.role_name}));var s=formatFullName(n);switch(i.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:"KBA verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:"KBA verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:"ID verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:"ID verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:"PIN verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:"PIN verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:declined":a.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:opened":switch(i.event_detail){case"email":case"mail":a.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(i.created_at)});break;case"sms":a.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(i.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(i.created_at)});break;case"in_app":a.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(i.created_at)});break;default:a.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(i.created_at)})}break;case"recipient:submitted":switch(i.event_detail){case"approver":a.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(i.created_at)});break;default:a.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(i.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:claimed":if(i.event_detail==="guest"){a.push({icon:"account_circle",message:"".concat(s," claimed the Envelope as a guest."),date:new Date(i.created_at)})}else if(i.event_detail==="profile"){a.push({icon:"verified_user",message:"".concat(s," claimed the Envelope as a verified user."),date:new Date(i.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(i.created_at)});break;case"recipient:invited":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(i.created_at)})}break;case"recipient:reminder":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," sent a reminder via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," sent a reminder via email."),date:new Date(i.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:"Invitation was resent to ".concat(s).concat(i.event_detail==="reminder"?" by reminder":"","."),date:new Date(i.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:i.event_detail,date:new Date(i.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"created":a.push({icon:"create",message:"Envelope was created.",date:new Date(i.created_at)});break;case"completed":a.push({icon:"done_all",message:"Envelope was completed.",date:new Date(i.created_at)});break;case"envelope:canceled":case"envelope_canceled":case"canceled":case"owner:canceled":a.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(i.created_at)});break;case"envelope:expired":a.push({icon:"cancel",message:"Envelope expired.",date:new Date(i.created_at)});break;case"owner:get_in_person_link":a.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(i.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",i);break}}));a.sort((function(e,i){return i.date.getTime()-e.date.getTime()}));return a};e.prototype.handleToggleReminders=function(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(MS_PER_DAY,3*MS_PER_DAY)}};e.prototype.handleSetReminders=function(e,i){var t=this;console.log("Updating reminders...");this.updatingReminders=true;updateEnvelope(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((function(e){console.log("Updated",e);Store.updateEnvelope(t.envelopeId,e);t.initialReminder=e.initial_reminder;t.followupReminders=e.followup_reminders;t.remindersEnabled=!!e.initial_reminder;t.updatingReminders=false})).catch((function(e){var i,n,s;console.log("Error updating envelope",e);t.initialReminder=(i=t.envelope)===null||i===void 0?void 0:i.initial_reminder;t.followupReminders=(n=t.envelope)===null||n===void 0?void 0:n.followup_reminders;t.remindersEnabled=!!((s=t.envelope)===null||s===void 0?void 0:s.initial_reminder);t.updatingReminders=false;VerdocsToast(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,n,s,o,r,a,l,d,c,v,p;if(this.loading){return h(Host,null)}var u=userIsEnvelopeOwner(this.endpoint.profile,this.envelope);var f=this.prepareHistoryEntries();var w=((i=this.envelope)===null||i===void 0?void 0:i.status)!=="pending"&&((t=this.envelope)===null||t===void 0?void 0:t.status)!=="in progress";return h(Host,{class:this.panelOpen?"open":""},h("div",{class:"side-buttons"},h("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:InformationCircle}),h("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:Users}),h("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:ClipboardDocuments})),this.activeTab===1&&h("div",{class:"content"},h("div",{class:"title"},"Details"),h("div",{class:"label"},"Envelope ID"),h("div",{class:"value"},(n=this.envelope)===null||n===void 0?void 0:n.id),h("div",{class:"label"},"Date Created"),h("div",{class:"value"},dateFnsExports.format(new Date((s=this.envelope)===null||s===void 0?void 0:s.created_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Last Modified"),h("div",{class:"value"},dateFnsExports.format(new Date((o=this.envelope)===null||o===void 0?void 0:o.updated_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Status"),h("div",{class:"value"},capitalize((r=this.envelope)===null||r===void 0?void 0:r.status)),h("div",{class:"label"},"Owner ID"),h("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.profile_id),h("div",{class:"label"},"Owner Name"),h("div",{class:"value"},formatFullName((l=this.envelope)===null||l===void 0?void 0:l.profile)),h("div",{class:"label"},"Owner Email"),h("div",{class:"value"},(c=(d=this.envelope)===null||d===void 0?void 0:d.profile)===null||c===void 0?void 0:c.email)),this.activeTab===2&&h("div",{class:"content"},h("div",{class:"title"},"Recipients"),(v=this.envelope)===null||v===void 0?void 0:v.recipients.map((function(i,t){var n;var s=i.status!=="submitted"&&i.status!=="canceled"&&i.status!=="declined";var o=e.canResendRecipient(i);var r=formatFullName(i);return h("div",{class:"recipient-detail"},h("div",{class:"recipient-header"},h("div",{class:"recipient-number"},t+1),h("div",{class:"recipient-name"},i.role_name),h("div",{class:(n={"recipient-status":true},n[i.status]=true,n)},i.status),u&&!w&&h("verdocs-dropdown",{onOptionSelected:function(t){return e.handleRecipientAction(i,t.detail.id)},options:[{id:"reminder",label:"Send Reminder",disabled:!o},{id:"inperson",label:"Get In-Person Link",disabled:!s},{id:"reinvite",label:"Re-invite",disabled:!o}]})),h("dic",{class:"recipient-content"},h("div",{class:"recipient-name"},r),h("div",{class:"recipient-name"},i.email),h("div",{class:"recipient-name"},i.phone)))})),u&&h("div",{class:"reminders"},h("div",{class:"form-row"},h("div",{class:"reminders-label"},"Reminders"),h("verdocs-switch",{disabled:w||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:function(){return e.handleToggleReminders()}})),this.remindersEnabled&&h(Fragment,null,h("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),h("div",{class:"form-row"},h("div",{class:"form-label"},"Initial Reminder (days):"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.initialReminder/MS_PER_DAY)),onBlur:function(i){e.initialReminder=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Follow-up Reminders:"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.followupReminders/MS_PER_DAY)),onBlur:function(i){e.followupReminders=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Next Reminder:"),h("div",{style:{color:"#dddddd"}},dateFnsExports.format(new Date((p=this.envelope)===null||p===void 0?void 0:p.next_reminder),"P p"))))),u&&h("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!w},disabled:w})),this.activeTab===3&&h("div",{class:"content"},h("div",{class:"title"},"History"),f.map((function(e){return h("div",{class:"history-entry"},h("div",{class:"activity-icon",innerHTML:ActivityIcons[e.icon]||e.icon}),h("div",{class:"activity-details"},h("div",{class:"activity-text"},e.message),h("div",{class:"activity-date"},dateFnsExports.format(e.date,FORMAT_TIMESTAMP))))}))),this.showRecipientDialog&&h("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:function(){return e.showRecipientDialog=""}}),this.showCancelDialog&&h("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:function(){e.showCancelDialog=false;e.handleCancelEnvelope()}}),this.showReinviteDialog&&h("verdocs-ok-dialog",{heading:"Re-invite Recipient?",message:'This will reset the recipient\'s KBA status and send a new signing invitation. If you just want to send a reminder, please click "Send Reminder" instead.',onNext:function(){e.showReinviteDialog=""}}))};return e}();VerdocsEnvelopeSidebar.style=verdocsEnvelopeSidebarCss;export{VerdocsEnvelopeSidebar as verdocs_envelope_sidebar};
2
2
  //# sourceMappingURL=verdocs-envelope-sidebar.entry.js.map