hellosign-embedded
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.1.0"></a> | ||
# [2.1.0](https://github.com/hellosign/hellosign-embedded/compare/v2.0.1...v2.1.0) (2018-11-19) | ||
### Features | ||
* **DEV-4831:** Adds close confirmation dialog message when `beforeunload` fires. ([4ac9cca](https://github.com/hellosign/hellosign-embedded/commit/4ac9cca)) | ||
<a name="2.0.1"></a> | ||
@@ -7,0 +17,0 @@ ## [2.0.1](https://github.com/hellosign/hellosign-embedded/compare/v2.0.0...v2.0.1) (2018-10-17) |
{ | ||
"name": "hellosign-embedded", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Embed HelloSign signature requests and templates from within your web application.", | ||
@@ -35,11 +35,11 @@ "main": "index.js", | ||
"common-tags": "^1.8.0", | ||
"debug": "^3.2.5", | ||
"debug": "^4.1.0", | ||
"tiny-emitter": "^2.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.1.2", | ||
"@babel/core": "^7.1.6", | ||
"@babel/plugin-proposal-class-properties": "^7.1.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@hellosign/eslint-config": "^1.3.1", | ||
"@babel/preset-env": "^7.1.6", | ||
"@hellosign/eslint-config": "^1.4.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -49,14 +49,14 @@ "babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.4", | ||
"css-loader": "^1.0.0", | ||
"eslint": "^5.6.1", | ||
"eslint-plugin-compat": "^2.6.1", | ||
"css-loader": "^1.0.1", | ||
"eslint": "^5.9.0", | ||
"eslint-plugin-compat": "^2.6.3", | ||
"jest": "^23.6.0", | ||
"jest-runner-eslint": "^0.6.0", | ||
"node-sass": "^4.9.3", | ||
"jest-runner-eslint": "^0.7.1", | ||
"node-sass": "^4.11.0", | ||
"sass-loader": "^7.1.0", | ||
"standard-version": "^4.4.0", | ||
"style-loader": "^0.23.0", | ||
"url-polyfill": "^1.0.14", | ||
"style-loader": "^0.23.1", | ||
"url-polyfill": "^1.1.0", | ||
"url-search-params-polyfill": "^5.0.0", | ||
"webpack": "^4.20.2", | ||
"webpack": "^4.26.0", | ||
"webpack-cli": "^3.1.2" | ||
@@ -63,0 +63,0 @@ }, |
@@ -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 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"),M=h("toPrimitive"),D={}.propertyIsEnumerable,I=f("symbol-registry"),U=f("symbols"),N=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=U[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(N,t,n),v(e),t=E(t,!0),v(n),i(U,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=D.call(this,e=E(e,!0));return!(this===q&&i(U,e)&&!i(N,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,P)&&this[P][e])||t)},Y=function(e,t){if(e=_(e),t=E(t,!0),e!==q||!i(U,t)||i(N,t)){var n=T(e,t);return!n||!i(U,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(U,t=n[o++])||t==P||t==u||r.push(t);return r},K=function(e){for(var t,n=e===q,r=F(n?N:_(e)),o=[],a=0;r.length>a;)!i(U,t=r[a++])||n&&!i(q,t)||o.push(U[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(N,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[M]||n(7)(L.prototype,M,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=M(['\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n </div>\n ']);return L=function(){return e},e}function A(){var e=M(["\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=M(['\n <div class="'," ",'">\n <div class="','"></div>\n <div class="','">\n ']);return j=function(){return e},e}function P(){var e=M(['\n <div class="','">\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n ']);return P=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 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=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,i.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(!["Save","Send","Continue"].includes(t))throw new TypeError('"finalButtonText" must be one of "Save", "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:"_applyUxVersion",value:function(e){e.append("ux_version","2")}},{key:"_applyVersion",value:function(e){e.append("js_version","2.0.1")}},{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._applyUxVersion(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:"_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._config.allowCancel?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=D({},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=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(H,"classNames",C),z(H,"events",x),z(H,"locales",O),z(H,"messages",T),z(H,"version","2.0.1");t.default=H}]).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,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?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),s=n(10),a=n(33),u=function(e,t,n){var c,f,l,p,h=e&u.F,d=e&u.G,g=e&u.S,m=e&u.P,y=e&u.B,v=d?r:g?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?a(l,r):m&&"function"==typeof l?a(Function.call,l):l,v&&s(v,c,l,e&u.U),b[c]!=l&&o(b,c,p),m&&_[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),s=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(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),s=n(13)("src"),a=Function.toString,u=(""+a).split("toString");n(14).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?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[s]||a.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(null==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){(function(r){t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},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;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%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(){let 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);const{formatters:i}=e.exports;i.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),s=n(20),a=n(3),u=n(30),c=Object.getOwnPropertyDescriptor;t.f=n(5)?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(a(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),s=n(8).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(9)(function(){return u(Object.preventExtensions({}))}),f=function(e){s(e,r,{value:{i:"O"+ ++a,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],s={};s[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},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),s=n(22)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;t.length>u;)r(a,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,s){var a,u=r(t),c=i(u.length),f=o(s,c);if(e&&n!=n){for(;c>f;)if((a=u[f++])!=a)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),s=n(39),a=n(8).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.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),s=n(22)("IE_PROTO"),a=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?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=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"),s=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?s:null}},function(e,t,n){"use strict";var r=n(7),i=n(10),o=n(9),s=n(16),a=n(0);e.exports=function(e,t,n){var u=a(e),c=n(s,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),s=n(11);e.exports=n(80)(Array,"Array",function(e,t){this._t=s(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;null==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,s=r.length;o<s;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",{writable:!0,value:{}}),"string"==typeof e)""!==e&&this._fromString(e);else if(e instanceof o){var t=this;e.forEach(function(e,n){t.append(n,e)})}},s=o.prototype;s.append=function(e,t){e in this._entries?this._entries[e].push(t.toString()):this._entries[e]=[t.toString()]},s.delete=function(e){delete this._entries[e]},s.get=function(e){return e in this._entries?this._entries[e][0]:null},s.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},s.has=function(e){return e in this._entries},s.set=function(e,t){this._entries[e]=[t.toString()]},s.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)}},s.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),n(e)},s.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},s.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),n(e)},t&&(s[Symbol.iterator]=s.entries),s.toString=function(){var e=[];return this.forEach(function(t,n){e.push(r(n)+"="+r(t))}),e.join("&")},Object.defineProperty(s,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){this._entries={};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]):"")}}),e.URLSearchParams=o}(),"function"!=typeof URLSearchParams.prototype.sort&&(URLSearchParams.prototype.sort=function(){var e=this,t=[];this.forEach(function(n,r){t.push([r,n]),e._entries||e.delete(r)}),t.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])})}(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});var s=new URLSearchParams(this.search),a=!0,u=!0,c=this;["append","delete","set"].forEach(function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),a&&(u=!1,c.search=s.toString(),u=!0)}}),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,u&&(a=!1,this.searchParams._fromString(this.search),a=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].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.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),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,this._updateSearchParams()},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}}),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,n=e.URLSearchParams?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),i=n&&"+"===new n("s=%2B").get("s"),o="__URLSearchParams__",s=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=l.prototype,u=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&i&&s)){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],s=[];for(t in i)for(n=p(t),e=0,r=i[t];e<r.length;e++)s.push(n+"="+p(r[e]));return s.join("&")};var c=!!i&&n&&!r&&e.Proxy;e.URLSearchParams=c?new Proxy(n,{construct:function(e,t){return new e(new l(t[0]).toString())}}):l;var f=e.URLSearchParams.prototype;f.polyfill=!0,f.forEach=f.forEach||function(e,t){var n=g(this.toString());Object.getOwnPropertyNames(n).forEach(function(r){n[r].forEach(function(n){e.call(t,n,r,this)},this)},this)},f.sort=f.sort||function(){var e,t,n,r=g(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],s=r[o];for(n=0;n<s.length;n++)this.append(o,s[n])}},f.keys=f.keys||function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d(e)},f.values=f.values||function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},f.entries=f.entries||function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(e)},u&&(f[e.Symbol.iterator]=f[e.Symbol.iterator]||f.entries)}function l(e){((e=e||"")instanceof URLSearchParams||e instanceof l)&&(e=e.toString()),this[o]=g(e)}function p(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function h(e){return decodeURIComponent(e.replace(/\+/g," "))}function d(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return u&&(n[e.Symbol.iterator]=function(){return n}),n}function g(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],s=o.indexOf("=");-1<s?m(t,h(o.slice(0,s)),h(o.slice(s+1))):o&&m(t,h(o),"")}}return t}function m(e,t,n){var r="string"==typeof n?n:null!=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=(s=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}var s;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 s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){var r,i,o={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),a=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]}}(),u=null,c=0,f=[],l=n(56);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(v(r.parts[s],t))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(v(r.parts[s],t));o[r.id]={id:r.id,refs:1,parts:a}}}}function h(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=t.base?o[0]+t.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function d(e,t){var n=a(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=f[f.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),f.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=a(e.insertAt.before,n);n.insertBefore(t,i)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=f.indexOf(e);t>=0&&f.splice(t,1)}function m(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 y(t,e.attrs),d(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var s=c++;n=u||(u=m(t)),r=E.bind(null,n,s,!1),i=E.bind(null,n,s,!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",y(t,e.attrs),d(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=l(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,n,t),i=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(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(){g(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=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return p(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var s=n[i];(a=o[s.id]).refs--,r.push(a)}e&&p(h(e,t),t);for(i=0;i<r.length;i++){var a;if(0===(a=r[i]).refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete o[a.id]}}}};var b,_=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function E(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[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),s=n(6),a=n(10),u=n(29).KEY,c=n(9),f=n(23),l=n(25),p=n(13),h=n(0),d=n(39),g=n(38),m=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),R=n(26),x=n(8),O=n(12),T=R.f,k=x.f,L=C.f,F=r.Symbol,P=r.JSON,j=P&&P.stringify,A=h("_hidden"),M=h("toPrimitive"),U={}.propertyIsEnumerable,I=f("symbol-registry"),N=f("symbols"),D=f("op-symbols"),q=Object.prototype,B="function"==typeof F,V=r.QObject,z=!V||!V.prototype||!V.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,G=function(e){var t=N[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},$=function(e,t,n){return e===q&&$(D,t,n),v(e),t=E(t,!0),v(n),i(N,t)?(n.enumerable?(i(e,A)&&e[A][t]&&(e[A][t]=!1),n=S(n,{enumerable:w(0,!1)})):(i(e,A)||k(e,A,w(1,{})),e[A][t]=!0),H(e,t,n)):k(e,t,n)},J=function(e,t){v(e);for(var n,r=m(t=_(t)),i=0,o=r.length;o>i;)$(e,n=r[i++],t[n]);return e},Y=function(e){var t=U.call(this,e=E(e,!0));return!(this===q&&i(N,e)&&!i(D,e))&&(!(t||!i(this,e)||!i(N,e)||i(this,A)&&this[A][e])||t)},W=function(e,t){if(e=_(e),t=E(t,!0),e!==q||!i(N,t)||i(D,t)){var n=T(e,t);return!n||!i(N,t)||i(e,A)&&e[A][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=L(_(e)),r=[],o=0;n.length>o;)i(N,t=n[o++])||t==A||t==u||r.push(t);return r},K=function(e){for(var t,n=e===q,r=L(n?D:_(e)),o=[],s=0;r.length>s;)!i(N,t=r[s++])||n&&!i(q,t)||o.push(N[t]);return o};B||(a((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(D,n),i(this,A)&&i(this[A],e)&&(this[A][e]=!1),H(this,e,w(1,n))};return o&&z&&H(q,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),R.f=W,x.f=$,n(42).f=C.f=Z,n(18).f=Y,n(40).f=K,o&&!n(17)&&a(q,"propertyIsEnumerable",Y,!0),d.f=function(e){return G(h(e))}),s(s.G+s.W+s.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=O(h.store),ne=0;te.length>ne;)g(te[ne++]);s(s.S+s.F*!B,"Symbol",{for:function(e){return i(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}}),s(s.S+s.F*!B,"Object",{create:function(e,t){return void 0===t?S(e):J(S(e),t)},defineProperty:$,defineProperties:J,getOwnPropertyDescriptor:W,getOwnPropertyNames:Z,getOwnPropertySymbols:K}),P&&s(s.S+s.F*(!B||c(function(){var e=F();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(P,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),i=n(40),o=n(18);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var s,a=n(e),u=o.f,c=0;a.length>c;)u.call(e,s=a[c++])&&t.push(s);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,s=o(t),a=s.length,u=0;a>u;)r.f(e,n=s[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,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return s.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(26),i=n(43),o=n(3),s=n(6),a=n(1),u=n(4);s(s.S,"Reflect",{get:function e(t,n){var s,c,f=arguments.length<3?t:arguments[2];return u(t)===f?t[n]:(s=r.f(t,n))?o(s,"value")?s.value:void 0!==s.get?s.get.call(f):void 0:a(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),s=null==r?void 0:r[t];return void 0!==s?s.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),s=/./.toString,a=function(e){n(10)(RegExp.prototype,"toString",e,!0)};n(9)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=s.name&&a(function(){return s.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=null==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),s=n(2),a=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),g=0;g<d.length;g++){var m,y=d[g],v=h[y],b=s[y],_=b&&b.prototype;if(_&&(_[f]||a(_,f,p),_[l]||a(_,l,y),u[y]=p,v))for(m in r)_[m]||o(_,m,r[m],!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),s=n(7),a=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,g,m,y){u(n,t,d);var v,b,_,E=function(e){if(!p&&e in R)return R[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"==g,C=!1,R=e.prototype,x=R[l]||R["@@iterator"]||g&&R[g],O=x||E(g),T=g?S?E("entries"):O:void 0,k="Array"==t&&R.entries||x;if(k&&(_=f(k.call(new e)))!==Object.prototype&&_.next&&(c(_,w,!0),r||"function"==typeof _[l]||s(_,l,h)),S&&x&&"values"!==x.name&&(C=!0,O=function(){return x.call(this)}),r&&!y||!p&&!C&&R[l]||s(R,l,O),a[t]=O,a[w]=h,g)if(v={values:S?O:E("values"),keys:m?O:E("keys"),entries:T},y)for(b in v)b in R||o(R,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),s={};n(7)(s,n(0)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{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,s=i(t),a=r(s),u=a.length,c=0,f=[];u>c;)o.call(s,n=a[c++])&&f.push(e?[n,s[n]]:s[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 s(){throw new Error("clearTimeout has not been defined")}function a(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:s}catch(e){r=s}}();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=a(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===s||!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 g(){}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||a(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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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){e.exports=function(e){function t(e){let t=0;for(let 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){let n;function s(...e){if(!s.enabled)return;const t=s,i=Number(new Date),o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return n;a++;const o=r.formatters[i];if("function"==typeof o){const r=e[a];n=o.call(t,r),e.splice(a,1),a--}return n}),r.formatArgs.call(t,e),(t.log||r.log).apply(t,e)}return s.namespace=e,s.enabled=r.enabled(e),s.useColors=r.useColors(),s.color=t(e),s.destroy=i,s.extend=o,"function"==typeof r.init&&r.init(s),r.instances.push(s),s}function i(){const 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)}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){const e=[...r.names.map(s),...r.skips.map(s).map(e=>"-"+e)].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const 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++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;let 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(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,s=7*o,a=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*a;case"weeks":case"week":case"w":return u*s;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,i,o=n(48),s=n.n(o),a=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}}(),u=(r=["",""],i=["",""],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}})));var c=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 a(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(u,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}(),f=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 l=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)}}},p=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)}}},h=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)}}},d={separator:"",conjunction:"",serial:!1},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,i=e.separator,o=e.conjunction,s=e.serial,a=n.match(/(\n?[^\S\n]+)$/);if(t=a?t.join(i+a[1]):t.join(i+" "),o&&r>1){var u=t.lastIndexOf(i);t=t.slice(0,u)+(s?i:"")+" "+o+t.slice(u+1)}}return t}}},m=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}}},y=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e},v=function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(y):y(e)?e:""}}},b=(new c(g({separator:","}),l,f),new c(g({separator:",",conjunction:"and"}),l,f),new c(g({separator:",",conjunction:"or"}),l,f),new c(m("\n"),v,g,l,f),new c(m("\n"),g,l,f,h(/&/g,"&"),h(/</g,"<"),h(/>/g,">"),h(/"/g,"""),h(/'/g,"'"),h(/`/g,"`"))),_=(new c(p(/(?:\n(?:\s*))+/g," "),f),new c(p(/(?:\n\s*)/g,""),f),new c(g({separator:","}),p(/(?:\s+)/g," "),f),new c(g({separator:",",conjunction:"or"}),p(/(?:\s+)/g," "),f),new c(g({separator:",",conjunction:"and"}),p(/(?:\s+)/g," "),f),new c(g,l,f),new c(g,p(/(?:\s+)/g," "),f),new c(l,f),new c(l("all"),f),n(19)),E=n.n(_),w=E()("".concat("hellosign-embedded",":info")),S=E()("".concat("hellosign-embedded",":warn")),C=E()("".concat("hellosign-embedded",":error"));w.log=console.log.bind(console),S.log=console.warn.bind(console);var R={info:w,warn:S,error:C},x={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"},O={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"},T={NAME:"x-hellosign-embedded"},k={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"},L={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"},F={allowCancel:!0,debug:!1,locale:k.EN_US,skipDomainVerification:!1,timeout:3e4};function P(){var e=U(['\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n </div>\n ']);return P=function(){return e},e}function j(){var e=U(["\n <div class=",">\n <button class=",' role="button" title="Close signature request"></button>\n </div>\n ']);return j=function(){return e},e}function A(){var e=U(['\n <div class="'," ",'">\n <div class="','"></div>\n <div class="','">\n ']);return A=function(){return e},e}function M(){var e=U(['\n <div class="','">\n <iframe class="','" name="','" src="','" scrolling="no" />\n </div>\n ']);return M=function(){return e},e}function U(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function I(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){H(e,t,n[t])})}return e}function N(e){return(N="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 D(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 q(e,t,n){return(q="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=B(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 B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(e){function t(){var e,n,r,i=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),n=this,e=!(r=B(t).call(this))||"object"!==N(r)&&"function"!=typeof r?z(n):r,H(z(z(e)),"_baseConfig",null),H(z(z(e)),"_baseEl",null),H(z(z(e)),"_config",null),H(z(z(e)),"_iFrameURL",null),H(z(z(e)),"_iFrameEl",null),H(z(z(e)),"_initTimeout",null),H(z(z(e)),"_isOpen",!1),H(z(z(e)),"_isReady",!1),H(z(z(e)),"_onEmbeddedClick",e._onEmbeddedClick.bind(z(z(e)))),H(z(z(e)),"_onInitTimeout",e._onInitTimeout.bind(z(z(e)))),H(z(z(e)),"_onBeforeUnload",e._onBeforeUnload.bind(z(z(e)))),H(z(z(e)),"_onMessage",e._onMessage.bind(z(z(e)))),R.info("created new HelloSign instance with options",i),!i||"object"!==N(i))throw new TypeError("Configuration must be an object");return e._baseConfig=I({},i),e}var n,r,i;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&&V(e,t)}(t,s.a),n=t,(r=[{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(!["Save","Send","Continue"].includes(t))throw new TypeError('"finalButtonText" must be one of "Save", "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(k).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"!==N(t))throw new TypeError('"whiteLabeling" must be an object');e.append("white_labeling_options",JSON.stringify(t))}}},{key:"_applyUxVersion",value:function(e){e.append("ux_version","2")}},{key:"_applyVersion",value:function(e){e.append("js_version","2.1.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._applyUxVersion(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:"_renderMarkup",value:function(){var e=document.createElement("div");return this._config.container?e.innerHTML=b(M(),x.BASE,x.IFRAME,T.NAME,this._iFrameURL.href):e.innerHTML=b(A(),x.BASE,x.BASE_IN_MODAL,x.MODAL_SCREEN,x.MODAL_CONTENT)+(this._config.allowCancel?b(j(),x.MODAL_CLOSE,x.MODAL_CLOSE_BTN):"")+b(P(),x.IFRAME,T.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(x.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){R.info("posting message",e);var t=this._iFrameURL.href;this._iFrameEl.contentWindow.postMessage(e,t)}},{key:"_sendCancelRequestMessage",value:function(){R.info("sending cancel request message"),this._sendMessage({type:L.USER_CANCEL_REQUEST})}},{key:"_sendConfigurationMessage",value:function(){R.info("sending app configuration message"),this._sendMessage({type:L.APP_CONFIGURE,payload:{allowCancel:this._config.allowCancel}})}},{key:"_sendDomainVerificationMessage",value:function(e){R.info("sending domain verification message",e),this._sendMessage({type:L.APP_VERIFY_DOMAIN_RESPONSE,payload:{token:e}})}},{key:"_sendInitializationErrorMessage",value:function(){R.info("sending initialization error message"),this._sendMessage({type:L.APP_ERROR,payload:{message:"App failed to initialize before timeout"}})}},{key:"_clearInitTimeout",value:function(){this._initTimeout&&(R.info("clearing initialization timeout"),clearTimeout(this._initTimeout),this._initTimeout=null)}},{key:"_startInitTimeout",value:function(){R.info("starting initialization timeout"),this._clearInitTimeout(),this._initTimeout=setTimeout(this._onInitTimeout,this._config.timeout)}},{key:"_maybeStartInitTimeout",value:function(){this._iFrameURL.href.includes("embeddedSign")&&this._startInitTimeout()}},{key:"_appDidError",value:function(e){R.error("app encountered an error with code:",e.code),this.emit(O.ERROR,e)}},{key:"_appDidInitialize",value:function(e){R.info("app was initialized"),this._isReady=!0,this._sendConfigurationMessage(),this._clearInitTimeout(),this.emit(O.READY,e)}},{key:"_appDidRequestDomainVerification",value:function(e){var t=e.token;R.info("app requested domain verification",t),this._sendDomainVerificationMessage(t)}},{key:"_appDidSendMessage",value:function(e){var t=e.data,n=e.origin;R.info("received message",t,n),this.emit(O.MESSAGE,t),this._delegateMessage(t)}},{key:"_userDidCancelRequest",value:function(){R.info("user canceled the signature request"),this.emit(O.CANCEL),this.close()}},{key:"_userDidCreateTemplate",value:function(e){R.info("user created the signature request template"),this.emit(O.CREATE_TEMPLATE,e)}},{key:"_userDidDeclineRequest",value:function(e){R.info("user declined the signature request"),this.emit(O.DECLINE,e)}},{key:"_userDidFinishRequest",value:function(){R.info("user finished the signature request"),this.emit(O.FINISH),this.close()}},{key:"_userDidReassignRequest",value:function(e){R.info("user reassigned the signature request with reason:",e.reason),this.emit(O.REASSIGN,e)}},{key:"_userDidSendRequest",value:function(e){R.info("user sent the signature request"),this.emit(O.SEND,e)}},{key:"_userDidSignRequest",value:function(e){R.info("user signed the signature request"),this.emit(O.SIGN,e)}},{key:"_onEmbeddedClick",value:function(e){e.srcElement.classList.contains(x.MODAL_CLOSE_BTN)&&(e.preventDefault(),this._isReady?this._sendCancelRequestMessage():this.close())}},{key:"_onInitTimeout",value:function(){R.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:"_onBeforeUnload",value:function(e){this._isReady&&(confirm("Are you sure you want to close this signature request? You will lose your changes.")||(e.preventDefault(),e.returnValue=""))}},{key:"_onMessage",value:function(e){e.origin.replace(/\/$/,"")===this._iFrameURL.origin&&"object"===N(e.data)&&this._appDidSendMessage(e)}},{key:"_delegateMessage",value:function(e){var t=e.type,n=e.payload;switch(t){case L.APP_ERROR:this._appDidError(n);break;case L.APP_INITIALIZE:this._appDidInitialize(n);break;case L.APP_VERIFY_DOMAIN_REQUEST:this._appDidRequestDomainVerification(n);break;case L.USER_CANCEL_REQUEST:this._userDidCancelRequest();break;case L.USER_CREATE_TEMPLATE:this._userDidCreateTemplate(n);break;case L.USER_DECLINE_REQUEST:this._userDidDeclineRequest(n);break;case L.USER_FINISH_REQUEST:this._userDidFinishRequest();break;case L.USER_REASSIGN_REQUEST:this._userDidReassignRequest(n);break;case L.USER_SEND_REQUEST:this._userDidSendRequest(n);break;case L.USER_SIGN_REQUEST:this._userDidSignRequest(n);break;default:R.warn("unhandled cross-origin window message",t)}}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(R.info("open()",e,t),this._isOpen&&this.close(),this._config=I({},F,this._baseConfig,t),this._config.container&&!(this._config.container instanceof HTMLElement))throw new TypeError('"container" must be an element');this._updateFrameUrl(e),this._appendMarkup(),this._maybeStartInitTimeout(),this._isOpen=!0,window.addEventListener("message",this._onMessage),window.addEventListener("beforeunload",this._onBeforeUnload),this.emit(O.OPEN,{url:this._iFrameURL.href})}},{key:"close",value:function(){R.info("close()"),this._isOpen&&(this._clearInitTimeout(),this._clearMarkup(),this._baseEl.removeEventListener("click",this._onEmbeddedClick),this._config=null,this._baseEl=null,this._iFrameEl=null,this._iFrameURL=null,this._isOpen=!1,this._isReady=!1,window.removeEventListener("message",this._onMessage),window.removeEventListener("beforeunload",this._onBeforeUnload),this.emit(O.CLOSE))}},{key:"emit",value:function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];R.info.apply(R,["emit()"].concat(r)),(e=q(B(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}},{key:"isReady",get:function(){return this._isReady}}])&&D(n.prototype,r),i&&D(n,i),t}();H(G,"classNames",x),H(G,"events",O),H(G,"locales",k),H(G,"messages",L),H(G,"version","2.1.0");t.default=G}]).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
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
802869
6379
+ Addeddebug@4.4.0(transitive)
- Removeddebug@3.2.7(transitive)
Updateddebug@^4.1.0