hellosign-embedded
Advanced tools
Comparing version 2.0.0-15 to 2.0.0
{ | ||
"name": "hellosign-embedded", | ||
"version": "2.0.0-15", | ||
"version": "2.0.0", | ||
"description": "Embed HelloSign signature requests and templates from within your web application.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -72,5 +72,5 @@ # HelloSign Embedded | ||
[external_david]: https://david-dm.org/hellosign/hellosign-embedded | ||
[external_demo]: https://github.com/hellosign/hellosign-embedded-demo | ||
[external_demo]: https://app.hellosign.com/api/embeddedTest | ||
[external_hellosign]: https://hellosign.com | ||
[external_npm]: https://npmjs.org/package/hellosign-embedded | ||
[external_travis]: https://travis-ci.org/hellosign/hellosign-embedded.svg?branch=master |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HelloSign=t():e.HelloSign=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=49)}([function(e,t,n){var r=n(23)("wks"),o=n(13),i=n(2).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(1);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2),o=n(14),i=n(7),a=n(10),s=n(33),u=function(e,t,n){var c,f,l,p,h=e&u.F,d=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,v=d?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=d?o:o[t]||(o[t]={}),_=b.prototype||(b.prototype={});for(c in d&&(n=t),n)l=((f=!h&&v&&void 0!==v[c])?v:n)[c],p=y&&f?s(l,r):g&&"function"==typeof l?s(Function.call,l):l,v&&a(v,c,l,e&u.U),b[c]!=l&&i(b,c,p),g&&_[c]!=l&&(_[c]=l)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(8),o=n(15);e.exports=n(5)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(4),o=n(30),i=n(20),a=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),o=n(7),i=n(3),a=n(13)("src"),s=Function.toString,u=(""+s).split("toString");n(14).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(60),o=n(16);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(35),o=n(24);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=!1},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";(function(r){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":o(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++r)}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(90)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(89))},function(e,t,n){var r=n(1);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(23)("keys"),o=n(13);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(14),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(17)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(8).f,o=n(3),i=n(0)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(18),o=n(15),i=n(11),a=n(20),s=n(3),u=n(30),c=Object.getOwnPropertyDescriptor;t.f=n(5)?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){e.exports={}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(13)("meta"),o=n(1),i=n(3),a=n(8).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(9)(function(){return u(Object.preventExtensions({}))}),f=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},l=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";f(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;f(e)}return e[r].w},onFreeze:function(e){return c&&l.NEED&&u(e)&&!i(e,r)&&f(e),e}}},function(e,t,n){e.exports=!n(5)&&!n(9)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1),o=n(2).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(6),o=n(14),i=n(9);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(58);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(3),o=n(11),i=n(36)(!1),a=n(22)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(11),o=n(61),i=n(62);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),f=i(a,c);if(e&&n!=n){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((e||f in u)&&u[f]===n)return e||f||0;return!e&&-1}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(2),o=n(14),i=n(17),a=n(39),s=n(8).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(0)},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4),o=n(67),i=n(24),a=n(22)("IE_PROTO"),s=function(){},u=function(){var e,t=n(31)("iframe"),r=i.length;for(t.style.display="none",n(68).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(35),o=n(24).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(3),o=n(34),i=n(22)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(7),o=n(10),i=n(9),a=n(16),s=n(0);e.exports=function(e,t,n){var u=s(e),c=n(a,u,""[e]),f=c[0],l=c[1];i(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,f),r(RegExp.prototype,u,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)}))}},function(e,t,n){"use strict";var r=n(4);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(47),o=n(79),i=n(27),a=n(11);e.exports=n(80)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(0)("unscopables"),o=Array.prototype;void 0==o[r]&&n(7)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=n},function(e,t,n){n(50),n(51),n(52),e.exports=n(92)},function(e,t,n){(function(e){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},o=function(e){return decodeURIComponent(e).replace(/\+/g," ")};"URLSearchParams"in e&&"a=1"===new URLSearchParams("?a=1").toString()||function(){var i=function(e){if(Object.defineProperty(this,"_entries",{value:{}}),"string"==typeof e){if(""!==e)for(var t,n=(e=e.replace(/^\?/,"")).split("&"),r=0;r<n.length;r++)t=n[r].split("="),this.append(o(t[0]),t.length>1?o(t[1]):"")}else if(e instanceof i){var a=this;e.forEach(function(e,t){a.append(e,t)})}},a=i.prototype;a.append=function(e,t){e in this._entries?this._entries[e].push(t.toString()):this._entries[e]=[t.toString()]},a.delete=function(e){delete this._entries[e]},a.get=function(e){return e in this._entries?this._entries[e][0]:null},a.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},a.has=function(e){return e in this._entries},a.set=function(e,t){this._entries[e]=[t.toString()]},a.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var o=0;o<n.length;o++)e.call(t,n[o],r,this)}},a.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),n(e)},a.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},a.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),n(e)},t&&(a[Symbol.iterator]=a.entries),a.toString=function(){var e=[];return this.forEach(function(t,n){e.push(r(n)+"="+r(t))}),e.join("&")},e.URLSearchParams=i}()}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,o=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var i=o.createElement("a");if(i.href=t,r&&(o.body.appendChild(i),i.href=i.href),":"===i.protocol||!/:/.test(i.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i})},r=n.prototype;["hash","host","hostname","port","protocol","search"].forEach(function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0},searchParams:{get:function(){var e=new URLSearchParams(this.search),t=this;return["append","delete","set"].forEach(function(n){var r=e[n];e[n]=function(){r.apply(e,arguments),t.search=e.toString()}}),e},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval(function(){e.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(28))},function(e,t,n){(function(e){!function(e){"use strict";var t=e.URLSearchParams?e.URLSearchParams:null,n=t&&"a=1"===new t({a:1}).toString(),r=t&&"+"===new t("s=%2B").get("s"),o="__URLSearchParams__",i=!t||function(){var e=new t;return e.append("s"," &"),"s=+%26"===e.toString()}(),a=f.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(t&&n&&r&&i)){a.append=function(e,t){m(this[o],e,t)},a.delete=function(e){delete this[o][e]},a.get=function(e){var t=this[o];return e in t?t[e][0]:null},a.getAll=function(e){var t=this[o];return e in t?t[e].slice(0):[]},a.has=function(e){return e in this[o]},a.set=function(e,t){this[o][e]=[""+t]},a.toString=function(){var e,t,n,r,i=this[o],a=[];for(t in i)for(n=l(t),e=0,r=i[t];e<r.length;e++)a.push(n+"="+l(r[e]));return a.join("&")};var u=!!r&&t&&!n&&e.Proxy;e.URLSearchParams=u?new Proxy(t,{construct:function(e,t){return new e(new f(t[0]).toString())}}):f;var c=e.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(e,t){var n=d(this.toString());Object.getOwnPropertyNames(n).forEach(function(r){n[r].forEach(function(n){e.call(t,n,r,this)},this)},this)},c.sort=c.sort||function(){var e,t,n,r=d(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},c.keys=c.keys||function(){var e=[];return this.forEach(function(t,n){e.push(n)}),h(e)},c.values=c.values||function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},c.entries=c.entries||function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),h(e)},s&&(c[e.Symbol.iterator]=c[e.Symbol.iterator]||c.entries)}function f(e){((e=e||"")instanceof URLSearchParams||e instanceof f)&&(e=e.toString()),this[o]=d(e)}function l(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function p(e){return decodeURIComponent(e.replace(/\+/g," "))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function d(e){var t={};if("object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&m(t,n,e[n]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),o=0;o<r.length;o++){var i=r[o],a=i.indexOf("=");-1<a?m(t,p(i.slice(0,a)),p(i.slice(a+1))):i&&m(t,p(i),"")}}return t}function m(e,t,n){var r="string"==typeof n?n:null!==n&&void 0!==n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}}(void 0!==e?e:"undefined"!=typeof window?window:this)}).call(this,n(28))},function(e,t,n){var r=n(53);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(55)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(54)(!1)).push([e.i,".x-hellosign-embedded {\n height: 100%; }\n .x-hellosign-embedded--in-modal {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%; }\n\n.x-hellosign-embedded__modal-screen {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-screen {\n display: none; } }\n\n.x-hellosign-embedded__modal-content {\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.25);\n position: absolute;\n top: 5vh;\n left: 50%;\n transform: translateX(-50%);\n height: 90vh;\n min-height: 400px;\n width: 80vw;\n min-width: 512px;\n max-width: 1024px; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-content {\n overflow: hidden;\n box-shadow: none;\n height: 100%;\n min-height: 0;\n width: 100%;\n min-width: 0;\n transform: none;\n left: 0;\n top: 0; } }\n\n.x-hellosign-embedded__modal-close {\n position: absolute;\n top: 0;\n right: -60px;\n height: 40px;\n width: 40px; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-close {\n display: none; } }\n\n.x-hellosign-embedded__modal-close-button {\n -webkit-appearance: none;\n height: 100%;\n width: 100%;\n border: none;\n background-color: #1a1a1a;\n transition: background-color 0.35s ease;\n will-change: background-color;\n box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.25);\n cursor: pointer; }\n .x-hellosign-embedded__modal-close-button:hover {\n background-color: #00B3E6; }\n .x-hellosign-embedded__modal-close-button::before, .x-hellosign-embedded__modal-close-button::after {\n content: '';\n position: absolute;\n width: 1px;\n background-color: white;\n height: 20px;\n top: 10px; }\n .x-hellosign-embedded__modal-close-button::before {\n transform: rotateZ(45deg); }\n .x-hellosign-embedded__modal-close-button::after {\n transform: rotateZ(-45deg); }\n\n.x-hellosign-embedded__iframe {\n min-height: 400px;\n background-color: #F7F8F9;\n height: 100%;\n border: none;\n min-width: 100%;\n width: 100px;\n *width: 100%; }\n",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r={},o=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),i=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),a=null,s=0,u=[],c=n(56);function f(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=r[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(g(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(g(o.parts[a],t));r[o.id]={id:o.id,refs:1,parts:s}}}}function l(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function p(e,t){var n=i(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=i(e.insertAt.before,n);n.insertBefore(t,o)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function d(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return m(t,e.attrs),p(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var u=s++;n=a||(a=d(t)),r=v.bind(null,n,u,!1),o=v.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=c(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=l(e,t);return f(n,t),function(e){for(var o=[],i=0;i<n.length;i++){var a=n[i];(s=r[a.id]).refs--,o.push(s)}e&&f(l(e,t),t);for(i=0;i<o.length;i++){var s;if(0===(s=o[i]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete r[s.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function v(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r=n(1),o=n(29).onFreeze;n(32)("freeze",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(34),o=n(12);n(32)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(37),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(37),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){n(38)("asyncIterator")},function(e,t,n){"use strict";var r=n(2),o=n(3),i=n(5),a=n(6),s=n(10),u=n(29).KEY,c=n(9),f=n(23),l=n(25),p=n(13),h=n(0),d=n(39),m=n(38),g=n(65),y=n(66),v=n(4),b=n(1),_=n(11),E=n(20),w=n(15),S=n(41),C=n(69),x=n(26),O=n(8),R=n(12),T=x.f,k=O.f,L=C.f,F=r.Symbol,j=r.JSON,P=j&&j.stringify,A=h("_hidden"),M=h("toPrimitive"),D={}.propertyIsEnumerable,I=f("symbol-registry"),U=f("symbols"),N=f("op-symbols"),q=Object.prototype,B="function"==typeof F,G=r.QObject,z=!G||!G.prototype||!G.prototype.findChild,V=i&&c(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(q,t);r&&delete q[t],k(e,t,n),r&&e!==q&&k(q,t,r)}:k,H=function(e){var t=U[e]=S(F.prototype);return t._k=e,t},Q=B&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof F},J=function(e,t,n){return e===q&&J(N,t,n),v(e),t=E(t,!0),v(n),o(U,t)?(n.enumerable?(o(e,A)&&e[A][t]&&(e[A][t]=!1),n=S(n,{enumerable:w(0,!1)})):(o(e,A)||k(e,A,w(1,{})),e[A][t]=!0),V(e,t,n)):k(e,t,n)},$=function(e,t){v(e);for(var n,r=g(t=_(t)),o=0,i=r.length;i>o;)J(e,n=r[o++],t[n]);return e},W=function(e){var t=D.call(this,e=E(e,!0));return!(this===q&&o(U,e)&&!o(N,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,A)&&this[A][e])||t)},Y=function(e,t){if(e=_(e),t=E(t,!0),e!==q||!o(U,t)||o(N,t)){var n=T(e,t);return!n||!o(U,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=L(_(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==A||t==u||r.push(t);return r},K=function(e){for(var t,n=e===q,r=L(n?N:_(e)),i=[],a=0;r.length>a;)!o(U,t=r[a++])||n&&!o(q,t)||i.push(U[t]);return i};B||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(N,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),V(this,e,w(1,n))};return i&&z&&V(q,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),x.f=Y,O.f=J,n(42).f=C.f=Z,n(18).f=W,n(40).f=K,i&&!n(17)&&s(q,"propertyIsEnumerable",W,!0),d.f=function(e){return H(h(e))}),a(a.G+a.W+a.F*!B,{Symbol:F});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;X.length>ee;)h(X[ee++]);for(var te=R(h.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return o(I,e+="")?I[e]:I[e]=F(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?S(e):$(S(e),t)},defineProperty:J,defineProperties:$,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:K}),j&&a(a.S+a.F*(!B||c(function(){var e=F();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,P.apply(j,r)}}),F.prototype[M]||n(7)(F.prototype,M,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(e,t,n){var r=n(12),o=n(40),i=n(18);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),u=i.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(8),o=n(4),i=n(12);e.exports=n(5)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(11),o=n(42).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(26),o=n(43),i=n(3),a=n(6),s=n(1),u=n(4);a(a.S,"Reflect",{get:function e(t,n){var a,c,f=arguments.length<3?t:arguments[2];return u(t)===f?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:s(c=o(t))?e(c,n,f):void 0}})},function(e,t,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(72).set})},function(e,t,n){var r=n(1),o=n(4),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(33)(Function.call,n(26).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){n(44)("replace",2,function(e,t,n){return[function(r,o){"use strict";var i=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]})},function(e,t,n){"use strict";n(75);var r=n(4),o=n(45),i=n(5),a=/./.toString,s=function(e){n(10)(RegExp.prototype,"toString",e,!0)};n(9)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,n){n(5)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(45)})},function(e,t,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(10)(r,"toString",function(){var e=i.call(this);return e==e?o.call(this):"Invalid Date"})},function(e,t,n){n(44)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){for(var r=n(46),o=n(12),i=n(10),a=n(2),s=n(7),u=n(27),c=n(0),f=c("iterator"),l=c("toStringTag"),p=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),m=0;m<d.length;m++){var g,y=d[m],v=h[y],b=a[y],_=b&&b.prototype;if(_&&(_[f]||s(_,f,p),_[l]||s(_,l,y),u[y]=p,v))for(g in r)_[g]||i(_,g,r[g],!0)}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(17),o=n(6),i=n(10),a=n(7),s=n(27),u=n(81),c=n(25),f=n(43),l=n(0)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,d,m,g,y){u(n,t,d);var v,b,_,E=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",S="values"==m,C=!1,x=e.prototype,O=x[l]||x["@@iterator"]||m&&x[m],R=O||E(m),T=m?S?E("entries"):R:void 0,k="Array"==t&&x.entries||O;if(k&&(_=f(k.call(new e)))!==Object.prototype&&_.next&&(c(_,w,!0),r||"function"==typeof _[l]||a(_,l,h)),S&&O&&"values"!==O.name&&(C=!0,R=function(){return O.call(this)}),r&&!y||!p&&!C&&x[l]||a(x,l,R),s[t]=R,s[w]=h,m)if(v={values:S?R:E("values"),keys:g?R:E("keys"),entries:T},y)for(b in v)b in x||i(x,b,v[b]);else o(o.P+o.F*(p||C),t,v);return v}},function(e,t,n){"use strict";var r=n(41),o=n(15),i=n(25),a={};n(7)(a,n(0)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(6),o=n(83)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(12),o=n(11),i=n(18).f;e.exports=function(e){return function(t){for(var n,a=o(t),s=r(a),u=s.length,c=0,f=[];u>c;)i.call(a,n=s[c++])&&f.push(e?[n,a[n]]:a[n]);return f}}},function(e,t,n){"use strict";var r=n(6),o=n(36)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(47)("includes")},function(e,t,n){"use strict";var r=n(6),o=n(86);r(r.P+r.F*n(88)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(87),o=n(16);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(1),o=n(21),i=n(0)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(0)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],f=!1,l=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++l<t;)u&&u[l].run();l=-1,t=c.length}u=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||f||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(a.enabled){var i=a,s=Number(new Date),u=s-(n||s);i.diff=u,i.prev=n,i.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;c++;var o=r.formatters[n];if("function"==typeof o){var a=t[c];e=o.call(i,a),t.splice(c,1),c--}return e}),r.formatArgs.call(i,t),(i.log||r.log).apply(i,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=o,a.extend=i,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function o(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(91),Object.keys(e).forEach(function(t){r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";n.r(t);n(57),n(59),n(63),n(64),n(70),n(71),n(73),n(74),n(76),n(77),n(78),n(46),n(82),n(84),n(85);var r=n(48),o=n.n(r),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["",""],["",""]);var s=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map(function(e){return"function"==typeof e?e():e}),this.tag}return i(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return this.tag(a,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,t){return t.onString?t.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce(function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,t){return t.onEndResult?t.onEndResult(e):e},e)}}]),e}(),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n.map(function(e){return e.length})));if(r){var o=new RegExp("^.{"+r+"}","gm");return t.replace(o,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},f=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},l=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}},p={separator:"",conjunction:"",serial:!1},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,o=e.separator,i=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(o+s[1]):t.join(o+" "),i&&r>1){var u=t.lastIndexOf(o);t=t.slice(0,u)+(a?o:"")+" "+i+t.slice(u+1)}}return t}}},d=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}},m=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},g=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(m):m(e)?e:""}}},y=(new s(h({separator:","}),c,u),new s(h({separator:",",conjunction:"and"}),c,u),new s(h({separator:",",conjunction:"or"}),c,u),new s(d("\n"),g,h,c,u),new s(d("\n"),h,c,u,l(/&/g,"&"),l(/</g,"<"),l(/>/g,">"),l(/"/g,"""),l(/'/g,"'"),l(/`/g,"`"))),v=(new s(f(/(?:\n(?:\s*))+/g," "),u),new s(f(/(?:\n\s*)/g,""),u),new s(h({separator:","}),f(/(?:\s+)/g," "),u),new s(h({separator:",",conjunction:"or"}),f(/(?:\s+)/g," "),u),new s(h({separator:",",conjunction:"and"}),f(/(?:\s+)/g," "),u),new s(h,c,u),new s(h,f(/(?:\s+)/g," "),u),new s(c,u),new s(c("all"),u),n(19)),b=n.n(v),_=b()("".concat("hellosign-embedded",":info")),E=b()("".concat("hellosign-embedded",":warn")),w=b()("".concat("hellosign-embedded",":error"));_.log=console.log.bind(console),E.log=console.warn.bind(console);var S={info:_,warn:E,error:w},C={BASE:"x-hellosign-embedded",BASE_IN_MODAL:"x-hellosign-embedded--in-modal",IFRAME:"x-hellosign-embedded__iframe",MODAL_CLOSE:"x-hellosign-embedded__modal-close",MODAL_CLOSE_BTN:"x-hellosign-embedded__modal-close-button",MODAL_CONTENT:"x-hellosign-embedded__modal-content",MODAL_SCREEN:"x-hellosign-embedded__modal-screen"},x={ERROR:"error",SEND:"send",CLOSE:"close",CREATE_TEMPLATE:"createTemplate",DECLINE:"decline",MESSAGE:"message",OPEN:"open",READY:"ready",REASSIGN:"reassign",SIGN:"sign"},O={NAME:"x-hellosign-embedded"},R={DA_DK:"da_DK",DE_DE:"de_DE",EN_US:"en_US",ES_ES:"es_ES",ES_MX:"es_MX",FR_FR:"fr_FR",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",SV_SE:"sv_SE",ZH_CN:"zh_CN"},T={APP_CONFIGURE:"hellosign:configure",APP_ERROR:"hellosign:error",APP_INITIALIZE:"hellosign:initialize",APP_VERIFY_DOMAIN_REQUEST:"hellosign:verifyDomainRequest",APP_VERIFY_DOMAIN_RESPONSE:"hellosign:verifyDomainResponse",USER_CLOSE_REQUEST:"hellosign:userCloseRequest",USER_CREATE_TEMPLATE:"hellosign:userCreateTemplate",USER_DECLINE_REQUEST:"hellosign:userDeclineRequest",USER_REASSIGN_REQUEST:"hellosign:userReassignRequest",USER_SEND_REQUEST:"hellosign:userSendRequest",USER_SIGN_REQUEST:"hellosign:userSignRequest"},k={EMBEDDED_SIGN:"embeddedSign",EMBEDDED_TEMPLATE:"embeddedTemplate",EMBEDDED_REQUEST:"embeddedRequest"},L={allowCancel:!0,debug:!1,locale:R.EN_US,skipDomainVerification:!1,timeout:3e4};function F(){var e=M(['\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n </div>\n ']);return F=function(){return e},e}function j(){var e=M(["\n <div class=",">\n <button class=",' role="button" title="Close signature request"></button>\n </div>\n ']);return j=function(){return e},e}function P(){var e=M(['\n <div class="'," ",'">\n <div class="','"></div>\n <div class="','">\n ']);return P=function(){return e},e}function A(){var e=M(['\n <div class="','">\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n ']);return A=function(){return e},e}function M(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){z(e,t,n[t])})}return e}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t,n){return(N="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=q(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),z(G(G(e=function(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?G(e):t}(this,q(t).call(this)))),"_baseConfig",null),z(G(G(e)),"_baseEl",null),z(G(G(e)),"_config",null),z(G(G(e)),"_embeddedType",null),z(G(G(e)),"_iFrameURL",null),z(G(G(e)),"_iFrameEl",null),z(G(G(e)),"_initTimeout",null),z(G(G(e)),"_isOpen",!1),z(G(G(e)),"_onEmbeddedClick",e._onEmbeddedClick.bind(G(G(e)))),z(G(G(e)),"_onInitTimeout",e._onInitTimeout.bind(G(G(e)))),z(G(G(e)),"_onMessage",e._onMessage.bind(G(G(e)))),S.info("created new HelloSign instance with options",n),!n||"object"!==I(n))throw new TypeError("Configuration must be an object");return e._baseConfig=D({},n),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(t,o.a),function(e,t,n){t&&U(e.prototype,t),n&&U(e,n)}(t,[{key:"_applyClientId",value:function(e){var t=this._config.clientId;if(!t)throw new TypeError('"clientId" is required');if("string"!=typeof t)throw new TypeError('"clientId" must be a string');e.append("client_id",t)}},{key:"_applyDebug",value:function(e){var t=this._config.debug;if("boolean"!=typeof t)throw new TypeError('"debug" must be a boolean');e.append("debug",t?1:0)}},{key:"_applyFinalButtonText",value:function(e){if("finalButtonText"in this._config){var t=this._config.finalButtonText;if("string"!=typeof t)throw new TypeError('"finalButtonText" must be a string');if(!["Send","Continue"].includes(t))throw new TypeError('"finalButtonText" must be either "Send" or "Continue"');e.append("final_button_text",t)}}},{key:"_applyHideHeader",value:function(e){if("hideHeader"in this._config){var t=this._config.hideHeader;if("boolean"!=typeof t)throw new TypeError('"hideHeader" must be a boolean');e.append("hide_header",t)}}},{key:"_applyLocale",value:function(e){var t=this._config.locale;if("string"!=typeof t)throw new TypeError('"locale" must be a string');if(!Object.values(R).includes(t))throw new TypeError('"'.concat(t,'" is not a supported locale'));e.append("user_culture",t)}},{key:"_applyParentURL",value:function(e){e.append("parent_url",document.location.href)}},{key:"_applyRedirectTo",value:function(e){if("redirectTo"in this._config){var t=this._config.redirectTo;if("string"!=typeof t)throw new TypeError('"redirectTo" must be a string');e.append("redirect_url",t)}}},{key:"_applyRequestingEmail",value:function(e){if("requestingEmail"in this._config){var t=this._config.requestingEmail;if("string"!=typeof t)throw new TypeError('"requestingEmail" must be a string');e.append("requester",t)}}},{key:"_applySkipDomainVerification",value:function(e){var t=this._config.skipDomainVerification;if("boolean"!=typeof t)throw new TypeError('"skipDomainVerification" must be a boolean');e.append("skip_domain_verification",t?1:0)}},{key:"_applyWhiteLabeling",value:function(e){if("whiteLabeling"in this._config){var t=this._config.whiteLabeling;if("object"!==I(t))throw new TypeError('"whiteLabeling" must be an object');e.append("white_labeling_options",JSON.stringify(t))}}},{key:"_applyVersion",value:function(e){e.append("js_version","2.0.0-15")}},{key:"_getFrameParams",value:function(e){var t=new URLSearchParams(e.search);return this._applyClientId(t),this._applyDebug(t),this._applyFinalButtonText(t),this._applyHideHeader(t),this._applyLocale(t),this._applyParentURL(t),this._applyRedirectTo(t),this._applyRequestingEmail(t),this._applySkipDomainVerification(t),this._applyVersion(t),this._applyWhiteLabeling(t),t}},{key:"_updateFrameUrl",value:function(e){var t=new URL(e),n=this._getFrameParams(t);t.search=n.toString(),this._iFrameURL=t}},{key:"_updateEmbeddedType",value:function(e){e.includes("embeddedSign")?this._embeddedType=k.EMBEDDED_SIGN:e.includes("embeddedTemplate")?this._embeddedType=k.EMBEDDED_TEMPLATE:e.includes("embeddedRequest")&&(this._embeddedType=k.EMBEDDED_REQUEST)}},{key:"_shouldShowCancelButton",value:function(){return this._config.allowCancel&&this._embeddedType!==k.EMBEDDED_SIGN}},{key:"_renderMarkup",value:function(){var e=document.createElement("div");return this._config.container?e.innerHTML=y(A(),C.BASE,C.IFRAME,O.NAME,this._iFrameURL.href):e.innerHTML=y(P(),C.BASE,C.BASE_IN_MODAL,C.MODAL_SCREEN,C.MODAL_CONTENT)+(this._shouldShowCancelButton()?y(j(),C.MODAL_CLOSE,C.MODAL_CLOSE_BTN):"")+y(F(),C.IFRAME,O.NAME,this._iFrameURL.href),e.firstChild}},{key:"_appendMarkup",value:function(){this._baseEl=this._renderMarkup(),this._baseEl.addEventListener("click",this._onEmbeddedClick),this._iFrameEl=this._baseEl.getElementsByClassName(C.IFRAME).item(0),this._config.container?this._config.container.appendChild(this._baseEl):document.body.appendChild(this._baseEl)}},{key:"_clearMarkup",value:function(){this._baseEl.parentElement.removeChild(this._baseEl)}},{key:"_sendMessage",value:function(e){S.info("posting message",e);var t=this._iFrameURL.href;this._iFrameEl.contentWindow.postMessage(e,t)}},{key:"_sendConfigurationMessage",value:function(){S.info("sending app configuration message"),this._sendMessage({type:T.APP_CONFIGURE,payload:{allowCancel:this._config.allowCancel}})}},{key:"_sendDomainVerificationMessage",value:function(e){S.info("sending domain verification message",e),this._sendMessage({type:T.APP_VERIFY_DOMAIN_RESPONSE,payload:{token:e}})}},{key:"_sendInitializationErrorMessage",value:function(){S.info("sending initialization error message"),this._sendMessage({type:T.APP_ERROR,payload:{message:"App failed to initialize before timeout"}})}},{key:"_clearInitTimeout",value:function(){this._initTimeout&&(S.info("clearing initialization timeout"),clearTimeout(this._initTimeout),this._initTimeout=null)}},{key:"_startInitTimeout",value:function(){S.info("starting initialization timeout"),this._clearInitTimeout(),this._initTimeout=setTimeout(this._onInitTimeout,this._config.timeout)}},{key:"_maybeStartInitTimeout",value:function(){this._embeddedType===k.EMBEDDED_SIGN&&this._startInitTimeout()}},{key:"_appDidError",value:function(e){S.error("app encountered an error with code:",e.code),this.emit(x.ERROR,e)}},{key:"_appDidInitialize",value:function(e){S.info("app was initialized"),this.emit(x.READY,e),this._sendConfigurationMessage(),this._clearInitTimeout()}},{key:"_appDidRequestDomainVerification",value:function(e){var t=e.token;S.info("app requested domain verification",t),this._sendDomainVerificationMessage(t)}},{key:"_appDidSendMessage",value:function(e){var t=e.data,n=e.origin;S.info("received message",t,n),this.emit(x.MESSAGE,t),this._delegateMessage(t)}},{key:"_userDidCloseRequest",value:function(){S.info("user requested that the window be closed"),this.close()}},{key:"_userDidCreateTemplate",value:function(e){S.info("user created the signature request template"),this.emit(x.CREATE_TEMPLATE,e)}},{key:"_userDidDeclineRequest",value:function(e){S.info("user declined the signature request"),this.emit(x.DECLINE,e)}},{key:"_userDidReassignRequest",value:function(e){S.info("user reassigned the signature request with reason:",e.reason),this.emit(x.REASSIGN,e)}},{key:"_userDidSendRequest",value:function(e){S.info("user sent the signature request"),this.emit(x.SEND,e)}},{key:"_userDidSignRequest",value:function(e){S.info("user signed the signature request"),this.emit(x.SIGN,e)}},{key:"_onEmbeddedClick",value:function(e){e.srcElement.classList.contains(C.MODAL_CLOSE_BTN)&&(e.preventDefault(),this.close())}},{key:"_onInitTimeout",value:function(){S.error("app failed to initialize before timeout"),alert("Something went wrong when preparing your signature request. Please try again."),this._sendInitializationErrorMessage(),this._clearInitTimeout(),this.close()}},{key:"_onMessage",value:function(e){e.origin.replace(/\/$/,"")===this._iFrameURL.origin&&"object"===I(e.data)&&this._appDidSendMessage(e)}},{key:"_delegateMessage",value:function(e){var t=e.type,n=e.payload;switch(t){case T.APP_ERROR:this._appDidError(n);break;case T.APP_INITIALIZE:this._appDidInitialize(n);break;case T.APP_VERIFY_DOMAIN_REQUEST:this._appDidRequestDomainVerification(n);break;case T.USER_CLOSE_REQUEST:this._userDidCloseRequest(n);break;case T.USER_CREATE_TEMPLATE:this._userDidCreateTemplate(n);break;case T.USER_DECLINE_REQUEST:this._userDidDeclineRequest(n);break;case T.USER_REASSIGN_REQUEST:this._userDidReassignRequest(n);break;case T.USER_SEND_REQUEST:this._userDidSendRequest(n);break;case T.USER_SIGN_REQUEST:this._userDidSignRequest(n);break;default:S.warn("unhandled cross-origin window message")}}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S.info("open()",e,t),this._isOpen&&this.close(),this._config=D({},L,this._baseConfig,t),this._config.container&&!(this._config.container instanceof HTMLElement))throw new TypeError('"container" must be an element');this._updateFrameUrl(e),this._updateEmbeddedType(e),this._appendMarkup(),this._maybeStartInitTimeout(),this._isOpen=!0,window.addEventListener("message",this._onMessage),this.emit(x.OPEN,{iFrameUrl:this._iFrameURL.href,url:e})}},{key:"close",value:function(){S.info("close()"),this._isOpen&&(this._clearInitTimeout(),this._clearMarkup(),this._baseEl.removeEventListener("click",this._onEmbeddedClick),this._config=null,this._baseEl=null,this._embeddedType=null,this._iFrameEl=null,this._iFrameURL=null,this._isOpen=!1,window.removeEventListener("message",this._onMessage),this.emit(x.CLOSE))}},{key:"emit",value:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];S.info.apply(S,["emit()"].concat(r)),(e=N(q(t.prototype),"emit",this)).call.apply(e,[this].concat(r))}},{key:"element",get:function(){return this._baseEl}},{key:"iFrame",get:function(){return this._iFrameEl}},{key:"isOpen",get:function(){return this._isOpen}}]),t}();z(V,"classNames",C),z(V,"events",x),z(V,"locales",R),z(V,"messages",T),z(V,"version","2.0.0-15");t.default=V}]).default}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HelloSign=t():e.HelloSign=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=49)}([function(e,t,n){var r=n(23)("wks"),i=n(13),o=n(2).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(1);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2),i=n(14),o=n(7),a=n(10),s=n(33),u=function(e,t,n){var c,f,l,p,h=e&u.F,d=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,v=d?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=d?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(c in d&&(n=t),n)l=((f=!h&&v&&void 0!==v[c])?v:n)[c],p=y&&f?s(l,r):g&&"function"==typeof l?s(Function.call,l):l,v&&a(v,c,l,e&u.U),b[c]!=l&&o(b,c,p),g&&_[c]!=l&&(_[c]=l)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(8),i=n(15);e.exports=n(5)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(4),i=n(30),o=n(20),a=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),i=n(7),o=n(3),a=n(13)("src"),s=Function.toString,u=(""+s).split("toString");n(14).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(60),i=n(16);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(35),i=n(24);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=!1},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";(function(r){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":i(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(i=++r)}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(90)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(89))},function(e,t,n){var r=n(1);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(23)("keys"),i=n(13);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(14),i=n(2),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(17)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(8).f,i=n(3),o=n(0)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(18),i=n(15),o=n(11),a=n(20),s=n(3),u=n(30),c=Object.getOwnPropertyDescriptor;t.f=n(5)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){e.exports={}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(13)("meta"),i=n(1),o=n(3),a=n(8).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(9)(function(){return u(Object.preventExtensions({}))}),f=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},l=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";f(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;f(e)}return e[r].w},onFreeze:function(e){return c&&l.NEED&&u(e)&&!o(e,r)&&f(e),e}}},function(e,t,n){e.exports=!n(5)&&!n(9)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1),i=n(2).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(6),i=n(14),o=n(9);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(58);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(3),i=n(11),o=n(36)(!1),a=n(22)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(11),i=n(61),o=n(62);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),f=o(a,c);if(e&&n!=n){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((e||f in u)&&u[f]===n)return e||f||0;return!e&&-1}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(2),i=n(14),o=n(17),a=n(39),s=n(8).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(0)},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4),i=n(67),o=n(24),a=n(22)("IE_PROTO"),s=function(){},u=function(){var e,t=n(31)("iframe"),r=o.length;for(t.style.display="none",n(68).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(35),i=n(24).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(3),i=n(34),o=n(22)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(7),i=n(10),o=n(9),a=n(16),s=n(0);e.exports=function(e,t,n){var u=s(e),c=n(a,u,""[e]),f=c[0],l=c[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,f),r(RegExp.prototype,u,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)}))}},function(e,t,n){"use strict";var r=n(4);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(47),i=n(79),o=n(27),a=n(11);e.exports=n(80)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(0)("unscopables"),i=Array.prototype;void 0==i[r]&&n(7)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){n(50),n(51),n(52),e.exports=n(92)},function(e,t,n){(function(e){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(e).replace(/\+/g," ")};"URLSearchParams"in e&&"a=1"===new URLSearchParams("?a=1").toString()||function(){var o=function(e){if(Object.defineProperty(this,"_entries",{value:{}}),"string"==typeof e){if(""!==e)for(var t,n=(e=e.replace(/^\?/,"")).split("&"),r=0;r<n.length;r++)t=n[r].split("="),this.append(i(t[0]),t.length>1?i(t[1]):"")}else if(e instanceof o){var a=this;e.forEach(function(e,t){a.append(e,t)})}},a=o.prototype;a.append=function(e,t){e in this._entries?this._entries[e].push(t.toString()):this._entries[e]=[t.toString()]},a.delete=function(e){delete this._entries[e]},a.get=function(e){return e in this._entries?this._entries[e][0]:null},a.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},a.has=function(e){return e in this._entries},a.set=function(e,t){this._entries[e]=[t.toString()]},a.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},a.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),n(e)},a.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},a.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),n(e)},t&&(a[Symbol.iterator]=a.entries),a.toString=function(){var e=[];return this.forEach(function(t,n){e.push(r(n)+"="+r(t))}),e.join("&")},e.URLSearchParams=o}()}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");if(o.href=t,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o})},r=n.prototype;["hash","host","hostname","port","protocol","search"].forEach(function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0},searchParams:{get:function(){var e=new URLSearchParams(this.search),t=this;return["append","delete","set"].forEach(function(n){var r=e[n];e[n]=function(){r.apply(e,arguments),t.search=e.toString()}}),e},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval(function(){e.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(28))},function(e,t,n){(function(e){!function(e){"use strict";var t=e.URLSearchParams?e.URLSearchParams:null,n=t&&"a=1"===new t({a:1}).toString(),r=t&&"+"===new t("s=%2B").get("s"),i="__URLSearchParams__",o=!t||function(){var e=new t;return e.append("s"," &"),"s=+%26"===e.toString()}(),a=f.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(t&&n&&r&&o)){a.append=function(e,t){m(this[i],e,t)},a.delete=function(e){delete this[i][e]},a.get=function(e){var t=this[i];return e in t?t[e][0]:null},a.getAll=function(e){var t=this[i];return e in t?t[e].slice(0):[]},a.has=function(e){return e in this[i]},a.set=function(e,t){this[i][e]=[""+t]},a.toString=function(){var e,t,n,r,o=this[i],a=[];for(t in o)for(n=l(t),e=0,r=o[t];e<r.length;e++)a.push(n+"="+l(r[e]));return a.join("&")};var u=!!r&&t&&!n&&e.Proxy;e.URLSearchParams=u?new Proxy(t,{construct:function(e,t){return new e(new f(t[0]).toString())}}):f;var c=e.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(e,t){var n=d(this.toString());Object.getOwnPropertyNames(n).forEach(function(r){n[r].forEach(function(n){e.call(t,n,r,this)},this)},this)},c.sort=c.sort||function(){var e,t,n,r=d(this.toString()),i=[];for(e in r)i.push(e);for(i.sort(),t=0;t<i.length;t++)this.delete(i[t]);for(t=0;t<i.length;t++){var o=i[t],a=r[o];for(n=0;n<a.length;n++)this.append(o,a[n])}},c.keys=c.keys||function(){var e=[];return this.forEach(function(t,n){e.push(n)}),h(e)},c.values=c.values||function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},c.entries=c.entries||function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),h(e)},s&&(c[e.Symbol.iterator]=c[e.Symbol.iterator]||c.entries)}function f(e){((e=e||"")instanceof URLSearchParams||e instanceof f)&&(e=e.toString()),this[i]=d(e)}function l(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function p(e){return decodeURIComponent(e.replace(/\+/g," "))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function d(e){var t={};if("object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&m(t,n,e[n]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var r=e.split("&"),i=0;i<r.length;i++){var o=r[i],a=o.indexOf("=");-1<a?m(t,p(o.slice(0,a)),p(o.slice(a+1))):o&&m(t,p(o),"")}}return t}function m(e,t,n){var r="string"==typeof n?n:null!==n&&void 0!==n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}}(void 0!==e?e:"undefined"!=typeof window?window:this)}).call(this,n(28))},function(e,t,n){var r=n(53);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(55)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(54)(!1)).push([e.i,".x-hellosign-embedded {\n height: 100%; }\n .x-hellosign-embedded--in-modal {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%; }\n\n.x-hellosign-embedded__modal-screen {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-screen {\n display: none; } }\n\n.x-hellosign-embedded__modal-content {\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.25);\n position: absolute;\n top: 5vh;\n left: 50%;\n transform: translateX(-50%);\n height: 90vh;\n min-height: 400px;\n width: 80vw;\n min-width: 512px;\n max-width: 1024px; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-content {\n overflow: hidden;\n box-shadow: none;\n height: 100%;\n min-height: 0;\n width: 100%;\n min-width: 0;\n transform: none;\n left: 0;\n top: 0; } }\n\n.x-hellosign-embedded__modal-close {\n position: absolute;\n top: 0;\n right: -60px;\n height: 40px;\n width: 40px; }\n @media screen and (max-width: 767px) {\n .x-hellosign-embedded__modal-close {\n display: none; } }\n\n.x-hellosign-embedded__modal-close-button {\n -webkit-appearance: none;\n height: 100%;\n width: 100%;\n border: none;\n background-color: #1a1a1a;\n transition: background-color 0.35s ease;\n will-change: background-color;\n box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.25);\n cursor: pointer; }\n .x-hellosign-embedded__modal-close-button:hover {\n background-color: #00B3E6; }\n .x-hellosign-embedded__modal-close-button::before, .x-hellosign-embedded__modal-close-button::after {\n content: '';\n position: absolute;\n width: 1px;\n background-color: white;\n height: 20px;\n top: 10px; }\n .x-hellosign-embedded__modal-close-button::before {\n transform: rotateZ(45deg); }\n .x-hellosign-embedded__modal-close-button::after {\n transform: rotateZ(-45deg); }\n\n.x-hellosign-embedded__iframe {\n min-height: 400px;\n background-color: #F7F8F9;\n height: 100%;\n border: none;\n min-width: 100%;\n width: 100px;\n *width: 100%; }\n",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),o=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),a=null,s=0,u=[],c=n(56);function f(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=r[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(g(i.parts[a],t))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(g(i.parts[a],t));r[i.id]={id:i.id,refs:1,parts:s}}}}function l(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function p(e,t){var n=o(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=o(e.insertAt.before,n);n.insertBefore(t,i)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function d(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return m(t,e.attrs),p(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=s++;n=a||(a=d(t)),r=v.bind(null,n,u,!1),i=v.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=c(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=l(e,t);return f(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var a=n[o];(s=r[a.id]).refs--,i.push(s)}e&&f(l(e,t),t);for(o=0;o<i.length;o++){var s;if(0===(s=i[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete r[s.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function v(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){var r=n(1),i=n(29).onFreeze;n(32)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(34),i=n(12);n(32)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(37),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(37),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){n(38)("asyncIterator")},function(e,t,n){"use strict";var r=n(2),i=n(3),o=n(5),a=n(6),s=n(10),u=n(29).KEY,c=n(9),f=n(23),l=n(25),p=n(13),h=n(0),d=n(39),m=n(38),g=n(65),y=n(66),v=n(4),b=n(1),_=n(11),E=n(20),w=n(15),S=n(41),C=n(69),x=n(26),R=n(8),O=n(12),T=x.f,k=R.f,F=C.f,L=r.Symbol,A=r.JSON,j=A&&A.stringify,P=h("_hidden"),D=h("toPrimitive"),M={}.propertyIsEnumerable,I=f("symbol-registry"),N=f("symbols"),U=f("op-symbols"),q=Object.prototype,B="function"==typeof L,G=r.QObject,z=!G||!G.prototype||!G.prototype.findChild,H=o&&c(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(q,t);r&&delete q[t],k(e,t,n),r&&e!==q&&k(q,t,r)}:k,V=function(e){var t=N[e]=S(L.prototype);return t._k=e,t},Q=B&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},J=function(e,t,n){return e===q&&J(U,t,n),v(e),t=E(t,!0),v(n),i(N,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=S(n,{enumerable:w(0,!1)})):(i(e,P)||k(e,P,w(1,{})),e[P][t]=!0),H(e,t,n)):k(e,t,n)},$=function(e,t){v(e);for(var n,r=g(t=_(t)),i=0,o=r.length;o>i;)J(e,n=r[i++],t[n]);return e},W=function(e){var t=M.call(this,e=E(e,!0));return!(this===q&&i(N,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(N,e)||i(this,P)&&this[P][e])||t)},Y=function(e,t){if(e=_(e),t=E(t,!0),e!==q||!i(N,t)||i(U,t)){var n=T(e,t);return!n||!i(N,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=F(_(e)),r=[],o=0;n.length>o;)i(N,t=n[o++])||t==P||t==u||r.push(t);return r},K=function(e){for(var t,n=e===q,r=F(n?U:_(e)),o=[],a=0;r.length>a;)!i(N,t=r[a++])||n&&!i(q,t)||o.push(N[t]);return o};B||(s((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(U,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),H(this,e,w(1,n))};return o&&z&&H(q,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",function(){return this._k}),x.f=Y,R.f=J,n(42).f=C.f=Z,n(18).f=W,n(40).f=K,o&&!n(17)&&s(q,"propertyIsEnumerable",W,!0),d.f=function(e){return V(h(e))}),a(a.G+a.W+a.F*!B,{Symbol:L});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;X.length>ee;)h(X[ee++]);for(var te=O(h.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return i(I,e+="")?I[e]:I[e]=L(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?S(e):$(S(e),t)},defineProperty:J,defineProperties:$,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:K}),A&&a(a.S+a.F*(!B||c(function(){var e=L();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,j.apply(A,r)}}),L.prototype[D]||n(7)(L.prototype,D,L.prototype.valueOf),l(L,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(e,t,n){var r=n(12),i=n(40),o=n(18);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(8),i=n(4),o=n(12);e.exports=n(5)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(11),i=n(42).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(26),i=n(43),o=n(3),a=n(6),s=n(1),u=n(4);a(a.S,"Reflect",{get:function e(t,n){var a,c,f=arguments.length<3?t:arguments[2];return u(t)===f?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:s(c=i(t))?e(c,n,f):void 0}})},function(e,t,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(72).set})},function(e,t,n){var r=n(1),i=n(4),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(33)(Function.call,n(26).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){n(44)("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},function(e,t,n){"use strict";n(75);var r=n(4),i=n(45),o=n(5),a=/./.toString,s=function(e){n(10)(RegExp.prototype,"toString",e,!0)};n(9)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,n){n(5)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(45)})},function(e,t,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(10)(r,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},function(e,t,n){n(44)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){for(var r=n(46),i=n(12),o=n(10),a=n(2),s=n(7),u=n(27),c=n(0),f=c("iterator"),l=c("toStringTag"),p=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(h),m=0;m<d.length;m++){var g,y=d[m],v=h[y],b=a[y],_=b&&b.prototype;if(_&&(_[f]||s(_,f,p),_[l]||s(_,l,y),u[y]=p,v))for(g in r)_[g]||o(_,g,r[g],!0)}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(17),i=n(6),o=n(10),a=n(7),s=n(27),u=n(81),c=n(25),f=n(43),l=n(0)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,d,m,g,y){u(n,t,d);var v,b,_,E=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",S="values"==m,C=!1,x=e.prototype,R=x[l]||x["@@iterator"]||m&&x[m],O=R||E(m),T=m?S?E("entries"):O:void 0,k="Array"==t&&x.entries||R;if(k&&(_=f(k.call(new e)))!==Object.prototype&&_.next&&(c(_,w,!0),r||"function"==typeof _[l]||a(_,l,h)),S&&R&&"values"!==R.name&&(C=!0,O=function(){return R.call(this)}),r&&!y||!p&&!C&&x[l]||a(x,l,O),s[t]=O,s[w]=h,m)if(v={values:S?O:E("values"),keys:g?O:E("keys"),entries:T},y)for(b in v)b in x||o(x,b,v[b]);else i(i.P+i.F*(p||C),t,v);return v}},function(e,t,n){"use strict";var r=n(41),i=n(15),o=n(25),a={};n(7)(a,n(0)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(6),i=n(83)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(12),i=n(11),o=n(18).f;e.exports=function(e){return function(t){for(var n,a=i(t),s=r(a),u=s.length,c=0,f=[];u>c;)o.call(a,n=s[c++])&&f.push(e?[n,a[n]]:a[n]);return f}}},function(e,t,n){"use strict";var r=n(6),i=n(36)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(47)("includes")},function(e,t,n){"use strict";var r=n(6),i=n(86);r(r.P+r.F*n(88)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(87),i=n(16);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(1),i=n(21),o=n(0)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(0)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],f=!1,l=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++l<t;)u&&u[l].run();l=-1,t=c.length}u=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||f||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(a.enabled){var o=a,s=Number(new Date),u=s-(n||s);o.diff=u,o.prev=n,o.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;c++;var i=r.formatters[n];if("function"==typeof i){var a=t[c];e=i.call(o,a),t.splice(c,1),c--}return e}),r.formatArgs.call(o,t),(o.log||r.log).apply(o,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=i,a.extend=o,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function i(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function o(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var o=r.instances[t];o.enabled=r.enabled(o.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(91),Object.keys(e).forEach(function(t){r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t){var n=1e3,r=60*n,i=60*r,o=24*i,a=7*o,s=365.25*o;function u(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*i;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return u(e,t,o,"day");if(t>=i)return u(e,t,i,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";n.r(t);n(57),n(59),n(63),n(64),n(70),n(71),n(73),n(74),n(76),n(77),n(78),n(46),n(82),n(84),n(85);var r=n(48),i=n.n(r),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["",""],["",""]);var s=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map(function(e){return"function"==typeof e?e():e}),this.tag}return o(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return this.tag(a,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,t){return t.onString?t.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce(function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,t){return t.onEndResult?t.onEndResult(e):e},e)}}]),e}(),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n.map(function(e){return e.length})));if(r){var i=new RegExp("^.{"+r+"}","gm");return t.replace(i,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}},f=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},l=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}},p={separator:"",conjunction:"",serial:!1},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(i+s[1]):t.join(i+" "),o&&r>1){var u=t.lastIndexOf(i);t=t.slice(0,u)+(a?i:"")+" "+o+t.slice(u+1)}}return t}}},d=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}},m=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},g=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(m):m(e)?e:""}}},y=(new s(h({separator:","}),c,u),new s(h({separator:",",conjunction:"and"}),c,u),new s(h({separator:",",conjunction:"or"}),c,u),new s(d("\n"),g,h,c,u),new s(d("\n"),h,c,u,l(/&/g,"&"),l(/</g,"<"),l(/>/g,">"),l(/"/g,"""),l(/'/g,"'"),l(/`/g,"`"))),v=(new s(f(/(?:\n(?:\s*))+/g," "),u),new s(f(/(?:\n\s*)/g,""),u),new s(h({separator:","}),f(/(?:\s+)/g," "),u),new s(h({separator:",",conjunction:"or"}),f(/(?:\s+)/g," "),u),new s(h({separator:",",conjunction:"and"}),f(/(?:\s+)/g," "),u),new s(h,c,u),new s(h,f(/(?:\s+)/g," "),u),new s(c,u),new s(c("all"),u),n(19)),b=n.n(v),_=b()("".concat("hellosign-embedded",":info")),E=b()("".concat("hellosign-embedded",":warn")),w=b()("".concat("hellosign-embedded",":error"));_.log=console.log.bind(console),E.log=console.warn.bind(console);var S={info:_,warn:E,error:w},C={BASE:"x-hellosign-embedded",BASE_IN_MODAL:"x-hellosign-embedded--in-modal",IFRAME:"x-hellosign-embedded__iframe",MODAL_CLOSE:"x-hellosign-embedded__modal-close",MODAL_CLOSE_BTN:"x-hellosign-embedded__modal-close-button",MODAL_CONTENT:"x-hellosign-embedded__modal-content",MODAL_SCREEN:"x-hellosign-embedded__modal-screen"},x={ERROR:"error",SEND:"send",CANCEL:"cancel",CLOSE:"close",CREATE_TEMPLATE:"createTemplate",DECLINE:"decline",FINISH:"finish",MESSAGE:"message",OPEN:"open",READY:"ready",REASSIGN:"reassign",SIGN:"sign"},R={NAME:"x-hellosign-embedded"},O={DA_DK:"da_DK",DE_DE:"de_DE",EN_US:"en_US",ES_ES:"es_ES",ES_MX:"es_MX",FR_FR:"fr_FR",NL_NL:"nl_NL",PL_PL:"pl_PL",PT_BR:"pt_BR",SV_SE:"sv_SE",ZH_CN:"zh_CN"},T={APP_CONFIGURE:"hellosign:configure",APP_ERROR:"hellosign:error",APP_INITIALIZE:"hellosign:initialize",APP_VERIFY_DOMAIN_REQUEST:"hellosign:verifyDomainRequest",APP_VERIFY_DOMAIN_RESPONSE:"hellosign:verifyDomainResponse",USER_CANCEL_REQUEST:"hellosign:userCancelRequest",USER_CREATE_TEMPLATE:"hellosign:userCreateTemplate",USER_DECLINE_REQUEST:"hellosign:userDeclineRequest",USER_FINISH_REQUEST:"hellosign:userFinishRequest",USER_REASSIGN_REQUEST:"hellosign:userReassignRequest",USER_SEND_REQUEST:"hellosign:userSendRequest",USER_SIGN_REQUEST:"hellosign:userSignRequest"},k={EMBEDDED_SIGN:"embeddedSign",EMBEDDED_TEMPLATE:"embeddedTemplate",EMBEDDED_REQUEST:"embeddedRequest"},F={allowCancel:!0,debug:!1,locale:O.EN_US,skipDomainVerification:!1,timeout:3e4};function L(){var e=D(['\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n </div>\n ']);return L=function(){return e},e}function A(){var e=D(["\n <div class=",">\n <button class=",' role="button" title="Close signature request"></button>\n </div>\n ']);return A=function(){return e},e}function j(){var e=D(['\n <div class="'," ",'">\n <div class="','"></div>\n <div class="','">\n ']);return j=function(){return e},e}function P(){var e=D(['\n <div class="','">\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n ']);return P=function(){return e},e}function D(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){z(e,t,n[t])})}return e}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,n){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=q(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),z(G(G(e=function(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?G(e):t}(this,q(t).call(this)))),"_baseConfig",null),z(G(G(e)),"_baseEl",null),z(G(G(e)),"_config",null),z(G(G(e)),"_embeddedType",null),z(G(G(e)),"_iFrameURL",null),z(G(G(e)),"_iFrameEl",null),z(G(G(e)),"_initTimeout",null),z(G(G(e)),"_isOpen",!1),z(G(G(e)),"_onEmbeddedClick",e._onEmbeddedClick.bind(G(G(e)))),z(G(G(e)),"_onInitTimeout",e._onInitTimeout.bind(G(G(e)))),z(G(G(e)),"_onMessage",e._onMessage.bind(G(G(e)))),S.info("created new HelloSign instance with options",n),!n||"object"!==I(n))throw new TypeError("Configuration must be an object");return e._baseConfig=M({},n),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(t,i.a),function(e,t,n){t&&N(e.prototype,t),n&&N(e,n)}(t,[{key:"_applyClientId",value:function(e){var t=this._config.clientId;if(!t)throw new TypeError('"clientId" is required');if("string"!=typeof t)throw new TypeError('"clientId" must be a string');e.append("client_id",t)}},{key:"_applyDebug",value:function(e){var t=this._config.debug;if("boolean"!=typeof t)throw new TypeError('"debug" must be a boolean');e.append("debug",t?1:0)}},{key:"_applyFinalButtonText",value:function(e){if("finalButtonText"in this._config){var t=this._config.finalButtonText;if("string"!=typeof t)throw new TypeError('"finalButtonText" must be a string');if(!["Send","Continue"].includes(t))throw new TypeError('"finalButtonText" must be either "Send" or "Continue"');e.append("final_button_text",t)}}},{key:"_applyHideHeader",value:function(e){if("hideHeader"in this._config){var t=this._config.hideHeader;if("boolean"!=typeof t)throw new TypeError('"hideHeader" must be a boolean');e.append("hide_header",t)}}},{key:"_applyLocale",value:function(e){var t=this._config.locale;if("string"!=typeof t)throw new TypeError('"locale" must be a string');if(!Object.values(O).includes(t))throw new TypeError('"'.concat(t,'" is not a supported locale'));e.append("user_culture",t)}},{key:"_applyParentURL",value:function(e){e.append("parent_url",document.location.href)}},{key:"_applyRedirectTo",value:function(e){if("redirectTo"in this._config){var t=this._config.redirectTo;if("string"!=typeof t)throw new TypeError('"redirectTo" must be a string');e.append("redirect_url",t)}}},{key:"_applyRequestingEmail",value:function(e){if("requestingEmail"in this._config){var t=this._config.requestingEmail;if("string"!=typeof t)throw new TypeError('"requestingEmail" must be a string');e.append("requester",t)}}},{key:"_applySkipDomainVerification",value:function(e){var t=this._config.skipDomainVerification;if("boolean"!=typeof t)throw new TypeError('"skipDomainVerification" must be a boolean');e.append("skip_domain_verification",t?1:0)}},{key:"_applyWhiteLabeling",value:function(e){if("whiteLabeling"in this._config){var t=this._config.whiteLabeling;if("object"!==I(t))throw new TypeError('"whiteLabeling" must be an object');e.append("white_labeling_options",JSON.stringify(t))}}},{key:"_applyVersion",value:function(e){e.append("js_version","2.0.0")}},{key:"_getFrameParams",value:function(e){var t=new URLSearchParams(e.search);return this._applyClientId(t),this._applyDebug(t),this._applyFinalButtonText(t),this._applyHideHeader(t),this._applyLocale(t),this._applyParentURL(t),this._applyRedirectTo(t),this._applyRequestingEmail(t),this._applySkipDomainVerification(t),this._applyVersion(t),this._applyWhiteLabeling(t),t}},{key:"_updateFrameUrl",value:function(e){var t=new URL(e),n=this._getFrameParams(t);t.search=n.toString(),this._iFrameURL=t}},{key:"_updateEmbeddedType",value:function(e){e.includes("embeddedSign")?this._embeddedType=k.EMBEDDED_SIGN:e.includes("embeddedTemplate")?this._embeddedType=k.EMBEDDED_TEMPLATE:e.includes("embeddedRequest")&&(this._embeddedType=k.EMBEDDED_REQUEST)}},{key:"_shouldShowCancelButton",value:function(){return this._config.allowCancel&&this._embeddedType!==k.EMBEDDED_SIGN}},{key:"_renderMarkup",value:function(){var e=document.createElement("div");return this._config.container?e.innerHTML=y(P(),C.BASE,C.IFRAME,R.NAME,this._iFrameURL.href):e.innerHTML=y(j(),C.BASE,C.BASE_IN_MODAL,C.MODAL_SCREEN,C.MODAL_CONTENT)+(this._shouldShowCancelButton()?y(A(),C.MODAL_CLOSE,C.MODAL_CLOSE_BTN):"")+y(L(),C.IFRAME,R.NAME,this._iFrameURL.href),e.firstChild}},{key:"_appendMarkup",value:function(){this._baseEl=this._renderMarkup(),this._baseEl.addEventListener("click",this._onEmbeddedClick),this._iFrameEl=this._baseEl.getElementsByClassName(C.IFRAME).item(0),this._config.container?this._config.container.appendChild(this._baseEl):document.body.appendChild(this._baseEl)}},{key:"_clearMarkup",value:function(){this._baseEl.parentElement.removeChild(this._baseEl)}},{key:"_sendMessage",value:function(e){S.info("posting message",e);var t=this._iFrameURL.href;this._iFrameEl.contentWindow.postMessage(e,t)}},{key:"_sendConfigurationMessage",value:function(){S.info("sending app configuration message"),this._sendMessage({type:T.APP_CONFIGURE,payload:{allowCancel:this._config.allowCancel}})}},{key:"_sendDomainVerificationMessage",value:function(e){S.info("sending domain verification message",e),this._sendMessage({type:T.APP_VERIFY_DOMAIN_RESPONSE,payload:{token:e}})}},{key:"_sendInitializationErrorMessage",value:function(){S.info("sending initialization error message"),this._sendMessage({type:T.APP_ERROR,payload:{message:"App failed to initialize before timeout"}})}},{key:"_clearInitTimeout",value:function(){this._initTimeout&&(S.info("clearing initialization timeout"),clearTimeout(this._initTimeout),this._initTimeout=null)}},{key:"_startInitTimeout",value:function(){S.info("starting initialization timeout"),this._clearInitTimeout(),this._initTimeout=setTimeout(this._onInitTimeout,this._config.timeout)}},{key:"_maybeStartInitTimeout",value:function(){this._embeddedType===k.EMBEDDED_SIGN&&this._startInitTimeout()}},{key:"_appDidError",value:function(e){S.error("app encountered an error with code:",e.code),this.emit(x.ERROR,e)}},{key:"_appDidInitialize",value:function(e){S.info("app was initialized"),this.emit(x.READY,e),this._sendConfigurationMessage(),this._clearInitTimeout()}},{key:"_appDidRequestDomainVerification",value:function(e){var t=e.token;S.info("app requested domain verification",t),this._sendDomainVerificationMessage(t)}},{key:"_appDidSendMessage",value:function(e){var t=e.data,n=e.origin;S.info("received message",t,n),this.emit(x.MESSAGE,t),this._delegateMessage(t)}},{key:"_userDidCancelRequest",value:function(){S.info("user canceled the signature request"),this.emit(x.CANCEL),this.close()}},{key:"_userDidCreateTemplate",value:function(e){S.info("user created the signature request template"),this.emit(x.CREATE_TEMPLATE,e)}},{key:"_userDidDeclineRequest",value:function(e){S.info("user declined the signature request"),this.emit(x.DECLINE,e)}},{key:"_userDidFinishRequest",value:function(){S.info("user finished the signature request"),this.emit(x.FINISH),this.close()}},{key:"_userDidReassignRequest",value:function(e){S.info("user reassigned the signature request with reason:",e.reason),this.emit(x.REASSIGN,e)}},{key:"_userDidSendRequest",value:function(e){S.info("user sent the signature request"),this.emit(x.SEND,e)}},{key:"_userDidSignRequest",value:function(e){S.info("user signed the signature request"),this.emit(x.SIGN,e)}},{key:"_onEmbeddedClick",value:function(e){e.srcElement.classList.contains(C.MODAL_CLOSE_BTN)&&(e.preventDefault(),this._userDidCancelRequest())}},{key:"_onInitTimeout",value:function(){S.error("app failed to initialize before timeout"),alert("Something went wrong when preparing your signature request. Please try again."),this._sendInitializationErrorMessage(),this._clearInitTimeout(),this.close()}},{key:"_onMessage",value:function(e){e.origin.replace(/\/$/,"")===this._iFrameURL.origin&&"object"===I(e.data)&&this._appDidSendMessage(e)}},{key:"_delegateMessage",value:function(e){var t=e.type,n=e.payload;switch(t){case T.APP_ERROR:this._appDidError(n);break;case T.APP_INITIALIZE:this._appDidInitialize(n);break;case T.APP_VERIFY_DOMAIN_REQUEST:this._appDidRequestDomainVerification(n);break;case T.USER_CANCEL_REQUEST:this._userDidCancelRequest();break;case T.USER_CREATE_TEMPLATE:this._userDidCreateTemplate(n);break;case T.USER_DECLINE_REQUEST:this._userDidDeclineRequest(n);break;case T.USER_FINISH_REQUEST:this._userDidFinishRequest();break;case T.USER_REASSIGN_REQUEST:this._userDidReassignRequest(n);break;case T.USER_SEND_REQUEST:this._userDidSendRequest(n);break;case T.USER_SIGN_REQUEST:this._userDidSignRequest(n);break;default:S.warn("unhandled cross-origin window message",t)}}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S.info("open()",e,t),this._isOpen&&this.close(),this._config=M({},F,this._baseConfig,t),this._config.container&&!(this._config.container instanceof HTMLElement))throw new TypeError('"container" must be an element');this._updateFrameUrl(e),this._updateEmbeddedType(e),this._appendMarkup(),this._maybeStartInitTimeout(),this._isOpen=!0,window.addEventListener("message",this._onMessage),this.emit(x.OPEN,{iFrameUrl:this._iFrameURL.href,url:e})}},{key:"close",value:function(){S.info("close()"),this._isOpen&&(this._clearInitTimeout(),this._clearMarkup(),this._baseEl.removeEventListener("click",this._onEmbeddedClick),this._config=null,this._baseEl=null,this._embeddedType=null,this._iFrameEl=null,this._iFrameURL=null,this._isOpen=!1,window.removeEventListener("message",this._onMessage),this.emit(x.CLOSE))}},{key:"emit",value:function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];S.info.apply(S,["emit()"].concat(r)),(e=U(q(t.prototype),"emit",this)).call.apply(e,[this].concat(r))}},{key:"element",get:function(){return this._baseEl}},{key:"iFrame",get:function(){return this._iFrameEl}},{key:"isOpen",get:function(){return this._isOpen}}]),t}();z(H,"classNames",C),z(H,"events",x),z(H,"locales",O),z(H,"messages",T),z(H,"version","2.0.0");t.default=H}]).default}); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
792866
6171
0
1