@eid-easy/eideasy-widget 2.80.0 → 2.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ return /******/ (function() { // webpackBootstrap
15
15
  /***/ (function(module) {
16
16
 
17
17
  /*! For license information please see eideasy-browser-client.js.LICENSE.txt */
18
- !function(t,e){ true?module.exports=e():0}(self,(function(){return function(){var t,e,n={9669:function(t,e,n){t.exports=n(1609)},5448:function(t,e,n){"use strict";var r=n(4867),i=n(6026),o=n(4372),a=n(5327),s=n(4097),c=n(4109),u=n(7985),d=n(5061);t.exports=function(t){return new Promise((function(e,n){var l=t.data,p=t.headers,f=t.responseType;r.isFormData(l)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(g+":"+v)}var y=s(t.baseURL,t.url);function m(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}}if(h.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(n(d("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(d("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var I=(t.withCredentials||u(y))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;I&&(p[t.xsrfHeaderName]=I)}"setRequestHeader"in h&&r.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),f&&"json"!==f&&(h.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),l||(l=null),h.send(l)}))}},1609:function(t,e,n){"use strict";var r=n(4867),i=n(1849),o=n(321),a=n(7185);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var c=s(n(5655));c.Axios=o,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.all=function(t){return Promise.all(t)},c.spread=n(8713),c.isAxiosError=n(6268),t.exports=c,t.exports.default=c},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,n){"use strict";var r=n(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,n){"use strict";var r=n(4867),i=n(5327),o=n(782),a=n(3572),s=n(7185),c=n(4875),u=c.validators;function d(t){this.defaults=t,this.interceptors={request:new o,response:new o}}d.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(o),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var l=t;n.length;){var p=n.shift(),f=n.shift();try{l=p(l)}catch(t){f(t);break}}try{i=a(l)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},d.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){d.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){d.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=d},782:function(t,e,n){"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},4097:function(t,e,n){"use strict";var r=n(1793),i=n(7303);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},5061:function(t,e,n){"use strict";var r=n(481);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},3572:function(t,e,n){"use strict";var r=n(4867),i=n(8527),o=n(6502),a=n(5655);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},7185:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function u(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var d=i.concat(o).concat(a).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===d.indexOf(t)}));return r.forEach(l,u),n}},6026:function(t,e,n){"use strict";var r=n(5061);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:function(t,e,n){"use strict";var r=n(4867),i=n(5655);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},5655:function(t,e,n){"use strict";var r=n(4867),i=n(6016),o=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},5327:function(t,e,n){"use strict";var r=n(4867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:function(t,e,n){"use strict";var r=n(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:function(t,e,n){"use strict";var r=n(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},a=r.version.split(".");function s(t,e){for(var n=e?e.split("."):a,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(t,e,n){var i=e&&s(e);function a(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw new Error(a(r," has been removed in "+e));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={isOlderVersion:s,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],a=e[o];if(a){var s=t[o],c=void 0===s||a(s,o,t);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4867:function(t,e,n){"use strict";var r=n(1849),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function t(){var e={};function n(n,r){c(e[r])&&c(n)?e[r]=t(e[r],n):c(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},8407:function(t,e,n){var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),c=n(4309);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,t.exports=u},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},4636:function(t,e,n){var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),c=n(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),d=!n&&i(t),l=!n&&!d&&a(t),p=!n&&!d&&!l&&c(t),f=n||d||l||p,h=f?r(t.length,String):[],g=h.length;for(var v in t)!e&&!u.call(t,v)||f&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||h.push(v);return h}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:function(t,e,n){var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:function(t,e,n){var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),c=n(4626),u=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),h=n(4160),g=n(3824),v=n(9148),y=n(8517),m=n(1469),I=n(4144),b=n(6688),S=n(3218),E=n(2928),T=n(3674),C=n(1704),w="[object Arguments]",_="[object Function]",A="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[A]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[_]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,x,N,D,R){var k,U=1&n,M=2&n,j=4&n;if(x&&(k=D?x(e,N,D,R):x(e)),void 0!==k)return k;if(!S(e))return e;var L=m(e);if(L){if(k=g(e),!U)return u(e,k)}else{var P=h(e),B=P==_||"[object GeneratorFunction]"==P;if(I(e))return c(e,U);if(P==A||P==w||B&&!D){if(k=M||B?{}:y(e),!U)return M?l(e,s(k,e)):d(e,a(k,e))}else{if(!O[P])return D?e:{};k=v(e,P,U)}}R||(R=new r);var G=R.get(e);if(G)return G;R.set(e,k),E(e)?e.forEach((function(r){k.add(t(r,n,x,r,e,R))})):b(e)&&e.forEach((function(r,i){k.set(i,t(r,n,x,i,e,R))}));var F=L?void 0:(j?M?f:p:M?C:T)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(k,i,t(r,n,x,i,e,R))})),k}},3118:function(t,e,n){var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:function(t,e,n){var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},9454:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,l=u.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?p:s).test(a(t))}},9221:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},2980:function(t,e,n){var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),c=n(1704),u=n(6390);t.exports=function t(e,n,d,l,p){e!==n&&o(n,(function(o,c){if(p||(p=new r),s(o))a(e,n,c,d,t,l,p);else{var f=l?l(u(e,c),o,c+"",e,n,p):void 0;void 0===f&&(f=o),i(e,c,f)}}),c)}},9783:function(t,e,n){var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),c=n(5694),u=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),h=n(8630),g=n(6719),v=n(6390),y=n(9881);t.exports=function(t,e,n,m,I,b,S){var E=v(t,n),T=v(e,n),C=S.get(T);if(C)r(t,n,C);else{var w=b?b(E,T,n+"",t,e,S):void 0,_=void 0===w;if(_){var A=u(T),O=!A&&l(T),x=!A&&!O&&g(T);w=T,A||O||x?u(E)?w=E:d(E)?w=a(E):O?(_=!1,w=i(T,!0)):x?(_=!1,w=o(T,!0)):w=[]:h(T)||c(T)?(w=E,c(E)?w=y(E):f(E)&&!p(E)||(w=s(T))):_=!1}_&&(S.set(T,w),I(w,T,m,b,S),S.delete(T)),r(t,n,w)}}},5976:function(t,e,n){var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),i=n(8777),o=n(6557),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,n){var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:function(t,e,n){t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:function(t,e,n){var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:function(t,e,n){var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var u=e[s],d=o?o(n[u],t[u],u,n,t):void 0;void 0===d&&(d=t[u]),a?i(n,u,d):r(n,u,d)}return n}},8805:function(t,e,n){var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:function(t,e,n){var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}},8777:function(t,e,n){var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:function(t,e,n){var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:function(t,e,n){var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:function(t,e,n){var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:function(t,e,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:function(t,e,n){var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},1442:function(t,e,n){var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},4160:function(t,e,n){var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),c=n(4239),u=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=u(r),v=u(i),y=u(o),m=u(a),I=u(s),b=c;(r&&b(new r(new ArrayBuffer(1)))!=h||i&&b(new i)!=d||o&&b(o.resolve())!=l||a&&b(new a)!=p||s&&b(new s)!=f)&&(b=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case v:return d;case y:return l;case m:return p;case I:return f}return e}),t.exports=b},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:function(t,e,n){var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),i=n(8612),o=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:function(t,e,n){var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),c=Array(s);++a<s;)c[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(c),r(t,this,u)}}},5639:function(t,e,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,n){var r=n(6560),i=n(1275)(r);t.exports=i},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:function(t,e,n){var r=n(5990);t.exports=function(t){return r(t,5)}},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},3560:function(t,e,n){var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,n){var r=n(5588),i=n(1717),o=n(1167),a=o&&o.isMap,s=a?i(a):r;t.exports=s},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},8630:function(t,e,n){var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,d=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},2928:function(t,e,n){var r=n(9221),i=n(1717),o=n(1167),a=o&&o.isSet,s=a?i(a):r;t.exports=s},6719:function(t,e,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},3674:function(t,e,n){var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:function(t,e,n){var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},2492:function(t,e,n){var r=n(2980),i=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=i},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},7061:function(t,e,n){var r=n(8698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new O(r||[]);return a(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function g(){}function v(){}function y(){}var m={};l(m,c,(function(){return this}));var I=Object.getPrototypeOf,b=I&&I(I(x([])));b&&b!==n&&o.call(b,c)&&(m=b);var S=y.prototype=g.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(i,a,s,c){var u=f(t[i],t,a);if("throw"!==u.type){var d=u.arg,l=d.value;return l&&"object"==r(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(l).then((function(t){d.value=t,s(d)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function x(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return v.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,d,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(T.prototype),l(T.prototype,u,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new T(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,d,"Generator"),l(S,c,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=x,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},8698:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:function(t,e,n){var r=n(7061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},8593:function(t){"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,i),o.loaded=!0,o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},i.d(o,a),o},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var o={};return function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}function n(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var r;i.r(o),i.d(o,{allMethods:function(){return u},createClient:function(){return wo},default:function(){return _o},getMethodByHandlingModule:function(){return d},methodActionTypes:function(){return s},methodTypes:function(){return a},moduleNames:function(){return c}});var a={IDENTIFICATION:"identification",SIGNATURE:"signature"},s={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",FTN_LOGIN:"ftn-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",HR_IDCARD_SIGNATURE:"hr-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",FI_FTN_QUALIFIED_SIGNATURE:"fi-ftn-qes-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",norwegianBankId:"norwegianBankId",ftn:"ftn",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature"},u=Object.freeze((n(r={},a.IDENTIFICATION,[{actionType:s.BE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["BE"]},{actionType:s.EE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["EE"]},{actionType:s.FI_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["FI"]},{actionType:s.LV_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LV"]},{actionType:s.LT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LT"]},{actionType:s.PT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["PT"]},{actionType:s.RS_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["RS"]},{actionType:s.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,supportedCountries:["LV"]},{actionType:s.LV_EPARAKSTS_ID_LOGIN,handlingModule:c.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:s.LT_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["LT"]},{actionType:s.EE_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["EE"]},{actionType:s.SMART_ID,handlingModule:c.smartId,supportedCountries:["EE","LV","LT"]},{actionType:s.FREJA_EID_LOGIN,handlingModule:c.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:s.ZEALID_LOGIN,handlingModule:c.zealId,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:s.CZ_MOJEID,handlingModule:c.mojeId,supportedCountries:["CZ"]},{actionType:s.EDOAPP_EID_LOGIN,handlingModule:c.edoAppEid,supportedCountries:["PL"]},{actionType:s.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:s.AT_HANDY_SIGNATUR_LOGIN,handlingModule:c.atHandy,supportedCountries:["AT"]},{actionType:s.ITSME_LOGIN,handlingModule:c.itsme,supportedCountries:["BE"]},{actionType:s.ITSME_LOGIN_BASIC,handlingModule:c.itsmeBasic,supportedCountries:["BE"]},{actionType:s.ITSME_LOGIN_STANDARD,handlingModule:c.itsmeStandard,supportedCountries:["BE"]},{actionType:s.SE_BANKID_LOGIN,handlingModule:c.seBankId,supportedCountries:["SE"]},{actionType:s.IDIN_LOGIN,handlingModule:c.idin,supportedCountries:["NL"]},{actionType:s.VERIFAI_LOGIN,handlingModule:c.verifai,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:s.YOONIK_LOGIN,handlingModule:c.yoonik,supportedCountries:["WORLD"]},{actionType:s.PL_MOJEID_LOGIN,handlingModule:c.plMojeId,supportedCountries:["PL"]},{actionType:s.MIT_ID_LOGIN,handlingModule:c.mitId,supportedCountries:["DK"]},{actionType:s.NORWEGIAN_BANKID_LOGIN,handlingModule:c.norwegianBankId,supportedCountries:["NO"]},{actionType:s.FTN_LOGIN,handlingModule:c.ftn,supportedCountries:["FI"]}]),n(r,a.SIGNATURE,[{actionType:s.EE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["EE"]},{actionType:s.LV_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LV"]},{actionType:s.LT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LT"]},{actionType:s.FI_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["FI","AX"]},{actionType:s.PT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["PT"]},{actionType:s.BE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["BE"]},{actionType:s.HR_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["HR"]},{actionType:s.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:c.certEuropeUsbTokenSignature,supportedCountries:["FR"]},{actionType:s.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:c.certSignUsbTokenSignature,supportedCountries:["RO"]},{actionType:s.EE_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["EE"]},{actionType:s.LT_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["LT"]},{actionType:s.SMARTID_SIGNATURE,handlingModule:c.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:s.EVROTRUST_SIGNATURE,handlingModule:c.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:s.ITSME_QES_SIGNATURE,handlingModule:c.itsmeQesSignature,supportedCountries:["BE"]},{actionType:s.OTP_EMAIL,handlingModule:c.otpSignature,supportedCountries:["WORLD"]},{actionType:s.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:c.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:s.FI_FTN_ADVANCED_SIGNATURE,handlingModule:c.ftnSignature,supportedCountries:["FI","AX"]},{actionType:s.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:c.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:s.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:c.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:s.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:c.atHandySignature,supportedCountries:["AT"]},{actionType:s.ZEAL_ID_SIGNATURE,handlingModule:c.zealIdSignature,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:s.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:c.mojeIdSignature,supportedCountries:["CZ"]},{actionType:s.GOOGLE_SIGNATURE,handlingModule:c.googleSignature,supportedCountries:["WORLD"]},{actionType:s.SE_BANKID_SIGNATURE,handlingModule:c.seBankIdSignature,supportedCountries:["SE"]},{actionType:s.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:c.dTrustSignMeSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","US","BG","HU","LT","LV","EE","HR","SI","IT","RO","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:s.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:c.chaveMovelSignature,supportedCountries:["PT"]},{actionType:s.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:c.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:s.MIT_ID_SIMPLE_SIGNATURE,handlingModule:c.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:s.IDIN_SIMPLE_SIGNATURE,handlingModule:c.idinSignature,supportedCountries:["NL"]},{actionType:s.SPID_QUALIFIED_SIGNATURE,handlingModule:c.spidQesSignature,supportedCountries:["IT"]},{actionType:s.VERIFAI_SIMPLE_SIGNATURE,handlingModule:c.verifaiSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:s.FREJA_SIMPLE_SIGNATURE,handlingModule:c.frejaSimpleSignature,supportedCountries:["DK","EE","FI","LV","LT","NO","PL","RO","SK","SE","GL","AX"]},{actionType:s.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:c.audkenniQesSignature,supportedCountries:["IS"]},{actionType:s.YES_COM_QUALIFIED_SIGNATURE,handlingModule:c.yesComQesSignature,supportedCountries:["DE"]},{actionType:s.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:c.simplySignQesSignature,supportedCountries:["PL"]},{actionType:s.UANATACA_QUALIFIED_SIGNATURE,handlingModule:c.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:s.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:c.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:s.HALCOM_QUALIFIED_SIGNATURE,handlingModule:c.halcomQesSignature,supportedCountries:["SI"]},{actionType:s.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:c.swissIdQesSignature,supportedCountries:["CH"]},{actionType:s.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:c.swissComQesSignature,supportedCountries:["CH"]},{actionType:s.DK_MITID_ADVANCED_SIGNATURE,handlingModule:c.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:s.DK_MITID_QES_SIGNATURE,handlingModule:c.mitIdQesSignature,supportedCountries:["DK"]},{actionType:s.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:c.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:s.SE_BANK_ID_QES_SIGNATURE,handlingModule:c.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:s.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:c.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:s.SE_FREJA_EID_QES_SIGNATURE,handlingModule:c.frejaQesSignature,supportedCountries:["SE"]}]),r)),d=function(t,e,n){var r=u[t];if(e&&n){var i=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("WORLD"))}));if(!i){if(0===r.filter((function(t){return t.handlingModule===e})).length)throw new Error("Could not find matching method configuration for ".concat(t,' module "').concat(e,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(t,'\n module "').concat(e,'".'))}return i}return r.find((function(t){return t.handlingModule===e}))},l=i(2492),p=i.n(l),f=i(9669),h=i.n(f),g=h().CancelToken,v=h().isCancel;h().Cancel,h().interceptors.response.use((function(t){return(e=t.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,i=t.request,o=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(t.status),config:t.config,request:t.request,response:t})):t;var e}));var y=function(t){return h()(t)};function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=p()(i,n)),i},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(I({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(I({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))};return Object.freeze({get:e,post:n,CancelToken:g})};function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,i=void 0===r?[]:r,o=t.settings,a=void 0===o?{}:o,s=t.i18n,c=t.apiEndpoints,d=t.monitoringService,l=T({},a);l.apiEndpoints=c,s.setLanguage(l.language);var p=function(t){l.countryCode=t},f=function(){return l.countryCode},h=function(){return u},g={};n.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:S({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var v={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:S({modifyRequestSettings:l.modifyRequestSettings})});v[e.MODULE_NAME]=e})),Object.freeze({identification:T({},g),signature:T({},v),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var _=function(e){var r=e.rawSettings,i=e.schema,o=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r);return Object.keys(i).forEach((function(e){var n=i[e],a=r[e];if(n.required&&void 0===a)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===a&&(o[e]=n.default),void 0!==o[e]&&void 0!==n.type&&n.type!==t(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(t(o[e]),'"'))})),o},A={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(t){var e=t.data&&t.data.redirect_uri;return e?(window.location!==window.top.location?window.top.location.href=e:window.location.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"}},O=JSON.parse('{"id-card-read-timeout":"Das Auslesen des Ausweises hat zu lange gedauert. Bitte schließen Sie alle geöffneten Browserfenster und versuchen Sie es erneut.","no_certificates":"Zertifikate konnten nicht gelesen werden. Stellen Sie sicher, dass sich die Karte im Lesegerät befindet und das Lesegerät richtig funktioniert."}'),x=i.t(O,2),N=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}'),D=i.t(N,2),R=JSON.parse('{"id-card-read-timeout":"ID kaardi lugemine võttis liiga kaua aega. Palun sulge kõik brauseri aknad ja proovi uuesti.","no_certificates":"Sertfikaatide lugemine ebaõnnestus. Veendu, et ID kaart on lugejas ning lugeja on arvutiga ühendatud."}'),k=i.t(R,2),U=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}'),M=i.t(U,2),j=JSON.parse('{"id-card-read-timeout":"ID kartes lasīšana aizņēma pārāk ilgu laiku. Lūdzu, aizveriet visus atvērtos pārlūkprogrammas logus un pēc tam mēģiniet vēlreiz.","no_certificates":"Nevarēja nolasīt sertifikātus. Pārliecinieties, vai karte ir lasītājā un lasītājs darbojas pareizi."}'),L=i.t(j,2),P=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),B={de:x,en:D,et:k,lt:M,lv:L,ru:i.t(P,2)},G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,n=void 0===e?"en":e,r=t.locales,i=void 0===r?B:r,o={currentLanguage:n},a="en",s=function(t){o.currentLanguage=t},c=function(){return o.currentLanguage},u=function(t){var e=i[o.currentLanguage];e||(e=i[a]);var n=e[t]||i[a][t];return n||(n=t),n};return Object.freeze({setLanguage:s,t:u,getCurrentLanguage:c})},F=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&y({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function V(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function q(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){V(o,r,i,a,s,"next",t)}function s(t){V(o,r,i,a,s,"throw",t)}a(void 0)}))}}var H=i(4687),K=i.n(H),Q=i(361),z=i.n(Q)(),Z=function(t){var e=t;return v(t)&&(e.isCancel=!0),e.response&&e.response.data&&(e.response.data.message&&(e.userMessage=e.response.data.message),e.response.data.errors&&(e.userDetails=e.response.data.errors)),e},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=z({message:n});if(e)r.data=e;else{if(!t.result||!t.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=t.result.data}return r},W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldFormatResult,r=void 0===n||n;return function(){var e=q(K().mark((function e(){var n,i,o=arguments;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,o);case 2:if(n=e.sent,!(i=W(n))){e.next=6;break}throw Z(i);case 6:return e.abrupt("return",r?J(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X(t,e){if(t){if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}function tt(t){return function(t){if(Array.isArray(t))return $(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||X(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Error;var et=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],nt=Symbol(".toJSON was called"),rt=function e(n){var r,i,o=n.from,a=n.seen,s=n.to_,c=n.forceEnumerable,u=n.maxDepth,d=n.depth,l=s||(Array.isArray(o)?[]:{});if(a.push(o),d>=u)return l;if("function"==typeof o.toJSON&&!0!==o[nt])return function(t){t[nt]=!0;var e=t.toJSON();return delete t[nt],e}(o);for(var p=0,f=Object.entries(o);p<f.length;p++){var h=(r=f[p],i=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,i)||X(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=h[0],v=h[1];"function"==typeof Buffer&&Buffer.isBuffer(v)?l[g]="[object Buffer]":null===v||"object"!==t(v)||"function"!=typeof v.pipe?"function"!=typeof v&&(v&&"object"===t(v)?a.includes(o[g])?l[g]="[Circular]":(d++,l[g]=e({from:o[g],seen:tt(a),forceEnumerable:c,maxDepth:u,depth:d})):l[g]=v):l[g]="[object Stream]"}for(var y=0,m=et;y<m.length;y++){var I=m[y],b=I.property,S=I.enumerable;"string"==typeof o[b]&&Object.defineProperty(l,b,{value:o[b],enumerable:!!c||S,configurable:!0,writable:!0})}return l};function it(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.maxDepth,i=void 0===r?Number.POSITIVE_INFINITY:r;return"object"===t(e)&&null!==e?rt({from:e,seen:[],forceEnumerable:!0,maxDepth:i,depth:0}):"function"==typeof e?"[Function: ".concat(e.name||"anonymous","]"):e}function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var st=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=r.coreContext,o=r.apiClient,a=i.i18n,s=i.config,c=i.monitoringService;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=at(at({},A),n),i=at(at({},s),t),u=_({rawSettings:i,schema:r}),d=u.success,l=u.fail,p=u.finished,f=t.language||a.getCurrentLanguage(),h=o.CancelToken.source(),g=h.token,v={onCancelByUser:function(){}},y=function(t){v.onCancelByUser=t},m=function(){h.cancel()},I=function(){v.onCancelByUser(),m()},b=function(){var t=q(K().mark((function t(){return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(at(at({},u),{},{language:f,i18n:a,monitoringService:c,cancelToken:g,cancel:m,setOnCancelByUser:y,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(it(t))}),l(Z(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return b().catch(console.error),Object.freeze({cancel:I})}})}};function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var dt=c.idCard,lt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.i18n,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.apiEndpoints.inCurrentMode.readCard({countryCode:t.countryCode,clientId:t.clientId});return t.nonce&&(e+="?nonce=".concat(t.nonce)),i.get({url:e,cancelToken:t.cancelToken})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=d(a.IDENTIFICATION,dt,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},t.next=5,Y(s)(ut(ut({},e),{},{language:r,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=o.t("id-card-read-timeout")),t}));case 5:return u=t.sent,t.next=8,Y(c)(ut(ut({},e),{},{cancelToken:n,language:r,data:u.data}));case 8:return u=t.sent,t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pt=st(dt,lt,{countryCode:{type:"string",required:!0}}),ft=function(){var t=q((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return K().mark((function t(){var i,o;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=q(K().mark((function t(a,s){var c,u;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,e();case 4:c=t.sent,u=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),c=void 0,u=t.t0;case 12:if(!n({result:c,attempts:i,error:u})){t.next=14;break}return t.abrupt("return",setTimeout(o,r,a,s));case 14:return t.abrupt("return",a({result:c,error:u}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(o));case 3:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ht=ft;function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var yt=c.smartId,mt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,s=void 0===o?1e3:o,c=e.cancelToken,u=e.language,l=e.apiClient,p=function(t){var e=d(a.IDENTIFICATION,yt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=d(a.IDENTIFICATION,yt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},h=function(t){var e=1e5/t.pollInterval,n=0;return ht({fn:function(){return f(vt(vt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,Y(p)(vt(vt({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Y(h)({config:e,data:vt({},g.data),cancelToken:c,pollInterval:s,language:u});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),It=st(yt,mt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function St(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Et=c.mobileId,Tt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.started,s=void 0===o?function(){}:o,c=e.idcode,u=e.phone,l=e.pollInterval,p=void 0===l?1e3:l,f=function(t){var e=d(a.IDENTIFICATION,Et,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,phone:t.phone,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},h=function(t){var e=d(a.IDENTIFICATION,Et,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=12e4/p,n=0;return ht({fn:function(){return h(St(St({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})},t.next=6,Y(f)(St(St({},e),{},{cancelToken:n,language:r,idcode:c,phone:u}));case 6:return y=t.sent,s(y),t.next=10,Y(g)({config:e,data:y.data,cancelToken:n,language:r,pollInterval:p});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ct=st(Et,Tt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),wt=c.eParakstsMobile,_t=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},At=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(_t)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ot=st(wt,At);function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Dt=c.frejaEid,Rt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u,l,p,f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,s=void 0===o?1e3:o,c=e.cancelToken,u=e.language,l=e.apiClient,p=function(t){var e=d(a.IDENTIFICATION,Dt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=d(a.IDENTIFICATION,Dt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},h=function(t){var e=1e5/t.pollInterval,n=0;return ht({fn:function(){return f(Nt(Nt({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,Y(p)(Nt(Nt({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Y(h)({config:e,data:Nt({},g.data),cancelToken:c,language:u,pollInterval:s});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),kt=st(Dt,Rt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var jt=c.zealId,Lt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,c,u;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.apiClient,i=e.language,o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,n=document.createElement("iframe"),r=t.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",e.innerHTML="";var i=function(t,e,n){var r=new URL(t.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?e({data:{code:o}}):n(t.data)},o=new Promise((function(t,e){window.addEventListener("message",(function(n){var o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,t,e))}))}));return e.appendChild(n),o},c=function(t){var e=d(a.IDENTIFICATION,jt);return r.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,Y(o)(Mt(Mt({},e),{},{cancelToken:n}));case 6:return u=t.sent,t.next=9,Y(s)(Mt(Mt({},e),{},{cancelToken:n,iframeUrl:u.data.url}));case 9:return u=t.sent,t.next=12,Y(c)(Mt(Mt({},e),{},{cancelToken:n,language:i},u));case 12:return u=t.sent,t.abrupt("return",u);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Pt=st(jt,Lt,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),Bt=c.mojeId,Gt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Ft=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Gt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Vt=st(Bt,Ft),qt=c.edoAppEid,Ht=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Kt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Ht)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Qt=st(qt,Kt),zt=c.finnishTrustNetwork,Zt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},Jt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Zt)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Wt=st(zt,Jt),Yt=c.atHandy,$t=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Xt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y($t)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),te=st(Yt,Xt),ee=c.itsme,ne=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsme({clientId:n,redirectUri:r,language:i})}}},re=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(ne)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ie=st(ee,re),oe=c.itsmeBasic,ae=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},se=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(ae)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ce=st(oe,se),ue=c.itsmeStandard,de=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},le=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(de)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pe=st(ue,le),fe=c.seBankId,he=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.seBankId({clientId:n,redirectUri:r,language:i})}}},ge=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(he)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ve=st(fe,ge),ye=c.idin,me=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idin({clientId:n,redirectUri:r,language:i})}}},Ie=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(me)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),be=st(ye,Ie),Se=c.verifai,Ee=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},Te=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ee)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ce=st(Se,Te),we=c.yoonik,_e=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},Ae=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(_e)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Oe=st(we,Ae),xe=c.plMojeId,Ne=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},De=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Ne)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Re=st(xe,De),ke=c.mitId,Ue=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.mitId({clientId:n,redirectUri:r,language:i})}}},Me=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ue)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),je=st(ke,Me),Le=c.norwegianBankId,Pe=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.norwegianBankId({clientId:n,redirectUri:r,language:i})}}},Be=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Pe)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ge=st(Le,Be),Fe=c.ftn,Ve=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.ftn({clientId:n,redirectUri:r,language:i})}}},qe=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ve)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),He=st(Fe,qe),Ke=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.userMessage,i=void 0===r?"":r,o=t.details,a=void 0===o?{}:o;this.message=n,this.userMessage=i,this.details=a,this.stack=(new Error).stack};(Ke.prototype=new Error).name="MethodException";var Qe=Ke,ze={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},Ze=function(t){var e=t.monitoringService,n=t.moduleName;return Object.freeze({log:function(t){e.dispatch({message:"".concat(n,": ").concat(t)})},logError:function(t,r){var i=JSON.stringify(it(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},Je=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},i=function(t){return t.data&&"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender},o=function(t){var n=t.countryCode,r=t.clientId,i=t.apiEndpoints,o=d(a.SIGNATURE,e,n);return i.inCurrentMode.idCardIframe({clientId:r,actionType:o.actionType})},s=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new Qe({userMessage:n,message:t.message,details:t})},c=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,o=t.monitor,a=document.createElement("iframe");a.setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.style.width="0",a.style.height="0",a.style.position="absolute",a.style.border="0",e.innerHTML="";var s={resolve:null,reject:null};function c(t){if(!i(t))return!1;var e=t.data,n=e.operation,r=e.error,o=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==o?s.reject(t.data):s.resolve(a),window.removeEventListener("message",c,!1)}o.log("Trying to create iframe with src: ".concat(n));var u=new Promise((function(t,e){s.resolve=t,s.reject=function(t){e(t),o.logError("Iframe creation failed",t)},window.addEventListener("message",c,!1),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(a),u},u=function(t){var e=t.messenger,n=t.monitor,r={resolve:null,reject:null};function o(t){if(!i(t))return!1;var e=t.data.certificate||t.data.cert;if(e)r.resolve({data:{certificate:e}}),n.log("Got certificate: ".concat(e));else{var a={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?a=t.data:a.isCancel=!0,r.reject(a)}window.removeEventListener("message",o,!1)}var a=new Promise((function(t,e){r.resolve=t,r.reject=function(t){e(t),n.logError("Failed to get the certificate",t)},window.addEventListener("message",o,!1)}));return e.post({operation:"getCertificate"}),a},l=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=(t.monitor,o.inCurrentMode.startSigning());return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:i})},p=function(t){var e=t.messenger,n=t.hexDigest,r=t.monitor,o={resolve:null,reject:null};function a(t){if(!i(t))return!1;var e=t.data.signature_value||t.data.signature;if(e)o.resolve({signature:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,o.reject(n)}window.removeEventListener("message",a,!1)}r.log("Trying to sign the hexDigest: ".concat(n));var s=new Promise((function(t,e){o.resolve=t,o.reject=function(t){e(t),r.logError("Failed to sign the hexdigest",t)},window.addEventListener("message",a,!1)}));return e.post({operation:"getSignature",hexDigest:n}),s},f=function(t){var e=t.signature,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.completeSignatureIdCard();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:i})},h=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"id-card",certificate:e,country:n},cancelToken:r})},g=function(){var t=q((function(t){var n=t.countryCode,i=t.clientId,a=t.apiEndpoints,d=t.iframeHolder,g=t.i18n,v=t.docId,y=t.cancelToken,m=t.apiClient,I=t.monitoringService,b=t.action,S=t.redirect;return K().mark((function t(){var E,T,C,w,_,A,O,x;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E=Ze({monitoringService:I,moduleName:e}),t.next=3,Y(o,{shouldFormatResult:!1})({countryCode:n,clientId:i,apiEndpoints:a});case 3:return T=t.sent,t.next=6,Y(c,{shouldFormatResult:!1})({iframeUrl:T,iframeHolder:d,i18n:g,monitor:E}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,Y(r,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,Y(u)({messenger:w,monitor:E}).catch((function(t){return s(t,g)}));case 12:if(_=t.sent,"cscApiAuthorizeCredential"!==b){t.next=18;break}return t.next=16,Y(h)({certificate:_.data.certificate,actionType:"id-card",country:n,cancelToken:y,apiEndpoints:a,apiClient:m});case 16:return A=t.sent,t.abrupt("return",Y(S,{shouldFormatResult:!1})(A));case 18:return t.next=20,Y(l)({certificate:_.data.certificate,clientId:i,docId:v,cancelToken:y,apiEndpoints:a,apiClient:m,monitor:E});case 20:return O=t.sent,t.next=23,Y(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:E}).catch((function(t){return s(t,g)}));case 23:return x=t.sent,t.abrupt("return",Y(f)({signature:x.signature,clientId:i,docId:v,cancelToken:y,apiEndpoints:a,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,ze)},We=Je({moduleName:c.idCardSignature,createModuleCreator:st}),Ye=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,i=t.maxPollDuration,o=t.fn,a=t.fnArgs;i&&(e=i/r);var s=0;return{start:function(){return ht({fn:function(){return o.apply(void 0,tt(a))},shouldContinue:function(t){var n=t.result,r=n&&n.data&&n.data.status,i=v(t.error),o=t.error&&!t.error.response&&!i;o&&(s+=1);var a,c,u=!1;return a=t.attempts,(!(c=e)||a<c)&&s<3&&(u=o||"RUNNING"===r),u},interval:r})}}},$e=c.mobileIdSignature,Xe=function(t){var e=t.phone,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:c,lang:u},cancelToken:o})},tn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},en=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,maxPollDuration:12e4,fn:tn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},nn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.language,u=t.idcode,l=t.phone,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,$e,p),s.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Xe)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,idcode:u,phone:l,countryCode:p});case 4:return g=t.sent,f(g),t.abrupt("return",Y(en)({data:g.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),rn=st($e,nn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),on=c.smartIdSignature,an=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u},cancelToken:o})},sn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},cn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,maxPollDuration:12e4,fn:sn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},un=function(t){var e=t.country,n=t.cancelToken,r=t.apiEndpoints,i=t.apiClient,o=t.idcode,a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:e,idcode:o},cancelToken:n})},dn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.idcode,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return K().mark((function t(){var v,y,m;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=d(a.SIGNATURE,on,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,Y(un)({country:p,idcode:l,cancelToken:i,apiEndpoints:o,apiClient:s});case 4:return y=t.sent,t.abrupt("return",Y(g,{shouldFormatResult:!1})(y));case 6:return c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,Y(an)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,idcode:l,countryCode:p,contractId:r});case 9:return m=t.sent,f(m),t.abrupt("return",Y(cn)({data:m.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ln=st(on,dn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),pn=c.evroTrustSignature,fn=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},hn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},gn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,fn:hn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},vn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.idcode,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,pn,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(fn)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,idcode:l,phone:p,email:f,countryCode:h,contractId:r,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",Y(gn)({data:y.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),yn=st(pn,vn,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),mn=c.otpSignature,In=function(){var t=q((function(t){var e=t.language,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.actionType;return K().mark((function t(){var c;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=o.inCurrentMode.startSigning(),t.abrupt("return",a.post({url:c,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:e},cancelToken:i}));case 2:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),bn=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Sn=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,i=t.cancelToken,o=t.docId,a=t.clientId,s=t.emailToken,c=t.smsToken,u=t.handwrittenSignatureData,d=t.handwrittenSignatureDataUrl;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:d},cancelToken:i})},En=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.language,u=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl,g=t.started,v=t.confirmationCodeRequest,y=t.setOnCancelByUser;return K().mark((function t(){var m,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=d(a.SIGNATURE,mn,u),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,Y(In)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,actionType:m.actionType});case 6:return I=t.sent,g(I),t.next=10,Y(bn,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:v,setOnCancelByUser:y});case 10:b=t.sent,p=b.smsToken,l=b.emailToken;case 13:return t.abrupt("return",Y(Sn)({apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 14:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Tn=st(mn,En,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),Cn={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},wn=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.confirmedBySigner,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,confirmed_by_signer:u},cancelToken:i})},i=function(){var t=q((function(t){var n=t.clientId,i=t.docId,o=t.contractId,s=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,l=t.monitoringService,p=t.language,f=t.countryCode,h=t.redirect,g=t.confirmedBySigner;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,e,f),l.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(r)({contractId:o,clientId:n,docId:i,cancelToken:s,apiEndpoints:c,apiClient:u,language:p,actionType:v.actionType,confirmedBySigner:g});case 4:return y=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,i,Cn)},_n=wn({moduleName:c.eParakstsMobileSignature,createModuleCreator:st}),An=wn({moduleName:c.ftnAdvancedFullSignature,createModuleCreator:st}),On=wn({moduleName:c.ftnSignature,createModuleCreator:st}),xn=wn({moduleName:c.atHandySignature,createModuleCreator:st}),Nn=c.zealIdSignature,Dn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},Rn=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.docId,t.next=3,Y(Dn)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),kn=st(Nn,Rn),Un=wn({moduleName:c.mojeIdSignature,createModuleCreator:st}),Mn=wn({moduleName:c.googleSignature,createModuleCreator:st}),jn=wn({moduleName:c.seBankIdSignature,createModuleCreator:st}),Ln=c.dTrustSignMeSignature,Pn=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Bn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.username,f=t.redirect;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Ln,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Pn)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",Y(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Gn=st(Ln,Bn,{username:{type:"string",required:!0}});function Fn(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Vn(t,e){return t&e}function qn(t,e){return t|e}function Hn(t,e){return t^e}function Kn(t,e){return t&~e}function Qn(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function zn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Zn,Jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Wn(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Jn.charAt(n>>6)+Jn.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Jn.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Jn.charAt(n>>2)+Jn.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Yn(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Jn.indexOf(t.charAt(e));o<0||(0==r?(n+=Fn(o>>2),i=3&o,r=1):1==r?(n+=Fn(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Fn(i),n+=Fn(o>>2),i=3&o,r=3):(n+=Fn(i<<2|o>>4),n+=Fn(15&o),r=0))}return 1==r&&(n+=Fn(i<<2)),n}var $n,Xn={decode:function(t){var e;if(void 0===$n){var n="= \f\n\r\t \u2028\u2029";for($n=Object.create(null),e=0;e<64;++e)$n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for($n["-"]=62,$n._=63,e=0;e<n.length;++e)$n[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=$n[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=Xn.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return Xn.decode(t)}},tr=1e13,er=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<tr?e=0:r-=(e=0|r/tr)*tr,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=tr,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(tr+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*tr+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),nr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,rr=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function ir(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var or,ar=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?nr:rr).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,o=i?255:0,a="";r==o&&++t<e;)r=this.get(t);if(0==(n=e-t))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new er(r),c=t+1;c<e;++c)s.mulAdd(256,this.get(c));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),c=a==e-1?r:0,u=7;u>=c;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+ir(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ir(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new er,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof er)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return ir(r,n);i=new er,o=0}}return o>0&&(r+=".incomplete"),r},t}(),sr=function(){function t(t,e,n,r,i){if(!(r instanceof cr))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return ir(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ir(this.stream.parseStringISO(e,e+n),t);case 30:return ir(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof ar?e:new ar(e,0);var r=new ar(n),i=new cr(n),o=t.decodeLength(n),a=n.pos,s=a-r.pos,c=null,u=function(){var e=[];if(null!==o){for(var r=a+o;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=a-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var d=0;d<c.length;++d)if(c[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(r,s,o,i,c)},t}(),cr=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new er;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),ur=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],dr=(1<<26)/ur[ur.length-1],lr=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=Fn(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Fn(n));return i?o:"0"},t.prototype.negate=function(){var e=vr();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Cr(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=vr();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new fr(e):new hr(e),this.exp(t,n)},t.prototype.clone=function(){var t=vr();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=vr();return this.bitwiseTo(t,Vn,e),e},t.prototype.or=function(t){var e=vr();return this.bitwiseTo(t,qn,e),e},t.prototype.xor=function(t){var e=vr();return this.bitwiseTo(t,Hn,e),e},t.prototype.andNot=function(t){var e=vr();return this.bitwiseTo(t,Kn,e),e},t.prototype.not=function(){for(var t=vr(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=vr();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=vr();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Qn(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=zn(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,qn)},t.prototype.clearBit=function(t){return this.changeBit(t,Kn)},t.prototype.flipBit=function(t){return this.changeBit(t,Hn)},t.prototype.add=function(t){var e=vr();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=vr();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=vr();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=vr();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=vr();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=vr(),n=vr();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=Tr(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new fr(e):e.isEven()?new gr(e):new hr(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=vr();for(r.sqrTo(a[1],d);s<=u;)a[s]=vr(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=vr();for(i=Cr(t[f])-1;f>=0;){for(i>=c?l=t[f]>>i-c&u:(l=(t[f]&(1<<i+1)-1)<<c-i,f>0&&(l|=t[f-1]>>this.DB+i-c)),s=n;0==(1&l);)l>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),h)a[l].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[l],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=Tr(1),a=Tr(0),s=Tr(0),c=Tr(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(e,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(c,a)):(i.subTo(r,i),n&&s.subTo(o,s),c.subTo(a,c))}return 0!=i.compareTo(t.ONE)?t.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},t.prototype.pow=function(t){return this.exp(t,new pr)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=ur[ur.length-1]){for(e=0;e<ur.length;++e)if(n[0]==ur[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<ur.length;){for(var r=ur[e],i=e+1;i<ur.length&&r<dr;)r*=ur[i++];for(r=n.modInt(r);e<i;)if(r%ur[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&+e[i]:Er(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=vr());var a=vr(),s=this.s,c=e.s,u=this.DB-Cr(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var d=a.t,l=a[d-1];if(0!=l){var p=l*(1<<this.F1)+(d>1?a[d-2]>>this.F2:0),f=this.FV/p,h=(1<<this.F1)/p,g=1<<this.F2,v=r.t,y=v-d,m=null==n?vr():n;for(a.dlShiftTo(y,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),t.ONE.dlShiftTo(d,m),m.subTo(a,a);a.t<d;)a[a.t++]=0;for(;--y>=0;){var I=r[--v]==l?this.DM:Math.floor(r[v]*f+(r[v-1]+g)*h);if((r[v]+=a.am(0,I,r,y,0,d))<I)for(a.dlShiftTo(y,m),r.subTo(m,r);r[v]<--I;)r.subTo(m,r)}null!=n&&(r.drShiftTo(d,n),s!=c&&t.ZERO.subTo(n,n)),r.t=d,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=vr(),i=vr(),o=n.convert(this),a=Cr(e)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(e&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Tr(n),i=vr(),o=vr(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,c=0;c<e.length;++c){var u=Er(e,c);u<0?"-"==e.charAt(c)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),qn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>ur.length&&(e=ur.length);for(var o=vr(),a=0;a<e;++a){o.fromInt(ur[Math.floor(Math.random()*ur.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var c=1;c++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=vr();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),qn,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],c=7&e;s.length=1+(e>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},t}(),pr=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),fr=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),hr=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=vr();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(lr.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=vr();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),gr=function(){function t(t){this.m=t,this.r2=vr(),this.q3=vr(),lr.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=vr();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function vr(){return new lr(null)}function yr(t,e){return new lr(t,e)}var mr="undefined"!=typeof navigator;mr&&"Microsoft Internet Explorer"==navigator.appName?(lr.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var c=32767&this[t],u=this[t++]>>15,d=s*c+u*a;i=((c=a*c+((32767&d)<<15)+n[r]+(1073741823&i))>>>30)+(d>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},or=30):mr&&"Netscape"!=navigator.appName?(lr.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},or=26):(lr.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>14,d=s*c+u*a;i=((c=a*c+((16383&d)<<14)+n[r]+i)>>28)+(d>>14)+s*u,n[r++]=268435455&c}return i},or=28),lr.prototype.DB=or,lr.prototype.DM=(1<<or)-1,lr.prototype.DV=1<<or,lr.prototype.FV=Math.pow(2,52),lr.prototype.F1=52-or,lr.prototype.F2=2*or-52;var Ir,br,Sr=[];for(Ir="0".charCodeAt(0),br=0;br<=9;++br)Sr[Ir++]=br;for(Ir="a".charCodeAt(0),br=10;br<36;++br)Sr[Ir++]=br;for(Ir="A".charCodeAt(0),br=10;br<36;++br)Sr[Ir++]=br;function Er(t,e){var n=Sr[t.charCodeAt(e)];return null==n?-1:n}function Tr(t){var e=vr();return e.fromInt(t),e}function Cr(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}lr.ZERO=Tr(0),lr.ONE=Tr(1);var wr,_r,Ar=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),Or=null;if(null==Or){Or=[],_r=0;var xr=void 0;if(window.crypto&&window.crypto.getRandomValues){var Nr=new Uint32Array(256);for(window.crypto.getRandomValues(Nr),xr=0;xr<Nr.length;++xr)Or[_r++]=255&Nr[xr]}var Dr=0,Rr=function(t){if((Dr=Dr||0)>=256||_r>=256)window.removeEventListener?window.removeEventListener("mousemove",Rr,!1):window.detachEvent&&window.detachEvent("onmousemove",Rr);else try{var e=t.x+t.y;Or[_r++]=255&e,Dr+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Rr,!1):window.attachEvent&&window.attachEvent("onmousemove",Rr)}function kr(){if(null==wr){for(wr=new Ar;_r<256;){var t=Math.floor(65536*Math.random());Or[_r++]=255&t}for(wr.init(Or),_r=0;_r<Or.length;++_r)Or[_r]=0;_r=0}return wr.next()}var Ur=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=kr()},t}(),Mr=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=yr(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var o=new Ur,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new lr(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*e-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=yr(t,16),this.e=parseInt(e,16),this.d=yr(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=yr(t,16),this.e=parseInt(e,16),this.d=yr(n,16),this.p=yr(r,16),this.q=yr(i,16),this.dmp1=yr(o,16),this.dmq1=yr(a,16),this.coeff=yr(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Ur,r=t>>1;this.e=parseInt(e,16);for(var i=new lr(e,16);;){for(;this.p=new lr(t-r,1,n),0!=this.p.subtract(lr.ONE).gcd(i).compareTo(lr.ONE)||!this.p.isProbablePrime(10););for(;this.q=new lr(r,1,n),0!=this.q.subtract(lr.ONE).gcd(i).compareTo(lr.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(lr.ONE),s=this.q.subtract(lr.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(lr.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=yr(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Ur,i=t>>1;this.e=parseInt(e,16);var o=new lr(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(lr.ONE),r=a.q.subtract(lr.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(lr.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},c=function(){a.q=vr(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(lr.ONE).gcda(o,(function(t){0==t.compareTo(lr.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=vr(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(lr.ONE).gcda(o,(function(t){0==t.compareTo(lr.ONE)&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return yr("0001"+r+"00"+t,16)}((jr[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=yr(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in jr)if(jr.hasOwnProperty(e)){var n=jr[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}(),jr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Lr={};Lr.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<a.length;i+=1){var n=a[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};var Pr={};void 0!==Pr.asn1&&Pr.asn1||(Pr.asn1={}),Pr.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new lr(r,16).xor(t).add(lr.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Pr.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,d=e.DERNumericString,l=e.DERPrintableString,p=e.DERTeletexString,f=e.DERIA5String,h=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,y=e.DERSet,m=e.DERTaggedObject,I=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var S=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new n(t[S]);if("int"==S)return new r(t[S]);if("bitstr"==S)return new i(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new a(t[S]);if("oid"==S)return new s(t[S]);if("enum"==S)return new c(t[S]);if("utf8str"==S)return new u(t[S]);if("numstr"==S)return new d(t[S]);if("prnstr"==S)return new l(t[S]);if("telstr"==S)return new p(t[S]);if("ia5str"==S)return new f(t[S]);if("utctime"==S)return new h(t[S]);if("gentime"==S)return new g(t[S]);if("seq"==S){for(var E=t[S],T=[],C=0;C<E.length;C++){var w=I(E[C]);T.push(w)}return new v({array:T})}if("set"==S){for(E=t[S],T=[],C=0;C<E.length;C++)w=I(E[C]),T.push(w);return new y({array:T})}if("tag"==S){var _=t[S];if("[object Array]"===Object.prototype.toString.call(_)&&3==_.length){var A=I(_[2]);return new m({tag:_[0],explicit:_[1],obj:A})}var O={};if(void 0!==_.explicit&&(O.explicit=_.explicit),void 0!==_.tag&&(O.tag=_.tag),void 0===_.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(_.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Pr.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);r+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new lr(r,2).toString(10),r="")}return e},Pr.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new lr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},Pr.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Pr.asn1.DERAbstractString=function(t){Pr.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Lr.lang.extend(Pr.asn1.DERAbstractString,Pr.asn1.ASN1Object),Pr.asn1.DERAbstractTime=function(t){Pr.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var c=r(String(s),3);a=a+"."+(c=c.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var a=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Lr.lang.extend(Pr.asn1.DERAbstractTime,Pr.asn1.ASN1Object),Pr.asn1.DERAbstractStructured=function(t){Pr.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Lr.lang.extend(Pr.asn1.DERAbstractStructured,Pr.asn1.ASN1Object),Pr.asn1.DERBoolean=function(){Pr.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Lr.lang.extend(Pr.asn1.DERBoolean,Pr.asn1.ASN1Object),Pr.asn1.DERInteger=function(t){Pr.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Pr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new lr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Lr.lang.extend(Pr.asn1.DERInteger,Pr.asn1.ASN1Object),Pr.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Pr.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Pr.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Lr.lang.extend(Pr.asn1.DERBitString,Pr.asn1.ASN1Object),Pr.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Pr.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Pr.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Lr.lang.extend(Pr.asn1.DEROctetString,Pr.asn1.DERAbstractString),Pr.asn1.DERNull=function(){Pr.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Lr.lang.extend(Pr.asn1.DERNull,Pr.asn1.ASN1Object),Pr.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new lr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};Pr.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Pr.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Lr.lang.extend(Pr.asn1.DERObjectIdentifier,Pr.asn1.ASN1Object),Pr.asn1.DEREnumerated=function(t){Pr.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Pr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new lr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Lr.lang.extend(Pr.asn1.DEREnumerated,Pr.asn1.ASN1Object),Pr.asn1.DERUTF8String=function(t){Pr.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Lr.lang.extend(Pr.asn1.DERUTF8String,Pr.asn1.DERAbstractString),Pr.asn1.DERNumericString=function(t){Pr.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Lr.lang.extend(Pr.asn1.DERNumericString,Pr.asn1.DERAbstractString),Pr.asn1.DERPrintableString=function(t){Pr.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Lr.lang.extend(Pr.asn1.DERPrintableString,Pr.asn1.DERAbstractString),Pr.asn1.DERTeletexString=function(t){Pr.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Lr.lang.extend(Pr.asn1.DERTeletexString,Pr.asn1.DERAbstractString),Pr.asn1.DERIA5String=function(t){Pr.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Lr.lang.extend(Pr.asn1.DERIA5String,Pr.asn1.DERAbstractString),Pr.asn1.DERUTCTime=function(t){Pr.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Lr.lang.extend(Pr.asn1.DERUTCTime,Pr.asn1.DERAbstractTime),Pr.asn1.DERGeneralizedTime=function(t){Pr.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Lr.lang.extend(Pr.asn1.DERGeneralizedTime,Pr.asn1.DERAbstractTime),Pr.asn1.DERSequence=function(t){Pr.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},Lr.lang.extend(Pr.asn1.DERSequence,Pr.asn1.DERAbstractStructured),Pr.asn1.DERSet=function(t){Pr.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Lr.lang.extend(Pr.asn1.DERSet,Pr.asn1.DERAbstractStructured),Pr.asn1.DERTaggedObject=function(t){Pr.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Lr.lang.extend(Pr.asn1.DERTaggedObject,Pr.asn1.ASN1Object);var Br,Gr=(Br=function(t,e){return Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Br(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Br(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Fr=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Gr(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===Zn){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Zn={},e=0;e<16;++e)Zn[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Zn[n.charAt(e)]=e;for(e=0;e<r.length;++e)Zn[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=Zn[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(t):Xn.unarmor(t),i=sr.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=yr(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=yr(o,16);var a=i.sub[4].getHexStringValue();this.p=yr(a,16);var s=i.sub[5].getHexStringValue();this.q=yr(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=yr(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=yr(u,16);var d=i.sub[8].getHexStringValue();this.coeff=yr(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=yr(e,16),n=l.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Pr.asn1.DERInteger({int:0}),new Pr.asn1.DERInteger({bigint:this.n}),new Pr.asn1.DERInteger({int:this.e}),new Pr.asn1.DERInteger({bigint:this.d}),new Pr.asn1.DERInteger({bigint:this.p}),new Pr.asn1.DERInteger({bigint:this.q}),new Pr.asn1.DERInteger({bigint:this.dmp1}),new Pr.asn1.DERInteger({bigint:this.dmq1}),new Pr.asn1.DERInteger({bigint:this.coeff})]};return new Pr.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Wn(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Pr.asn1.DERSequence({array:[new Pr.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Pr.asn1.DERNull]}),e=new Pr.asn1.DERSequence({array:[new Pr.asn1.DERInteger({bigint:this.n}),new Pr.asn1.DERInteger({int:this.e})]}),n=new Pr.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Pr.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Wn(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Mr),Vr=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Fr(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(Yn(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return Wn(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return Wn(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Yn(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Fr,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.2.1",t}(),qr=c.chaveMovelSignature,Hr={publicKey:null},Kr=function(){var t=q((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return K().mark((function t(){var i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.inCurrentMode.getChaveMovelPublicKey(),t.next=3,e.get({url:i,withCredentials:!1,cancelToken:r});case 3:if((o=t.sent).data.publicKey){t.next=6;break}return t.abrupt("return",{});case 6:return a=atob(o.data.publicKey),Hr.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Qr=function(){var t=q((function(t){var e=t.signingPin,n=t.phone,r=t.language,i=t.clientId,o=t.docId,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=t.actionType;return K().mark((function t(){var d,l,p;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Kr({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Vr).setPublicKey(l),t.abrupt("return",c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,signing_pin:p.encrypt(e),phone:p.encrypt(n)},cancelToken:a}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),zr=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Zr=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode,u=new Vr;return u.setPublicKey(Hr.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:u.encrypt(c)},cancelToken:o})},Jr=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.countryCode,u=t.language,l=t.started,p=t.confirmationCodeRequest,f=t.signingPin,h=t.phone,g=t.setOnCancelByUser;return K().mark((function t(){var v,y,m;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,qr,c),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(Qr)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:u,actionType:v.actionType,signingPin:f,phone:h});case 4:return y=t.sent,l(y),t.next=8,Y(zr,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",Y(Zr)({token:y.data.token,apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:e,confirmationCode:m}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wr=st(qr,Jr,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Yr=wn({moduleName:c.mitIdSignature,createModuleCreator:st}),$r=c.ftnQesSignature,Xr=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},ti=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return K().mark((function t(){var g,v;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,$r,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(Xr)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ei=st($r,ti,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),ni=c.noBankIdAdvSignature,ri=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.name,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,name:u},cancelToken:i})},ii=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.name,f=t.redirect;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,ni,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(ri)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,name:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",Y(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),oi=st(ni,ii,{name:{type:"string",required:!0}}),ai=Je({moduleName:c.certEuropeUsbTokenSignature,createModuleCreator:st}),si=Je({moduleName:c.certSignUsbTokenSignature,createModuleCreator:st}),ci=wn({moduleName:c.idinSignature,createModuleCreator:st}),ui=wn({moduleName:c.verifaiSignature,createModuleCreator:st}),di=c.spidQesSignature,li=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},pi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return K().mark((function t(){var g,v;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,di,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(li)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),fi=st(di,pi,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),hi=c.frejaSimpleSignature,gi=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},vi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},yi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,fn:vi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},mi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.started;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,hi,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(gi)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,p(h),t.abrupt("return",Y(yi)({data:h.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ii=st(hi,mi,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),bi=c.audkenniQesSignature,Si=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},Ei=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ti=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ci=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,fn:Ei,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},wi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,fn:Ti,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},_i=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.started;return K().mark((function t(){var f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,bi,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(Si)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,t.next=7,Y(Ci)({data:h.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e});case 7:return g=t.sent,p(g),t.abrupt("return",Y(wi)({data:g.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ai=st(bi,_i,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Oi=wn({moduleName:c.yesComQesSignature,createModuleCreator:st}),xi=wn({moduleName:c.simplySignQesSignature,createModuleCreator:st}),Ni=c.uanatacaQesSignature,Di=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=t.password,l=t.pin,p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u,password:d,pin:l},cancelToken:i})},Ri=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},ki=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:c},cancelToken:o})},Ui=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.countryCode,p=t.username,f=t.password,h=t.pin,g=t.confirmationCodeRequest,v=t.setOnCancelByUser,y=t.started;return K().mark((function t(){var m,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=d(a.SIGNATURE,Ni,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,Y(Di)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,username:p,password:f,pin:h,actionType:m.actionType});case 4:return I=t.sent,y(I),t.next=8,Y(Ri,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:v});case 8:return b=t.sent,t.abrupt("return",Y(ki)({token:I.data.token,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,confirmationCode:b}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Mi=st(Ni,Ui,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),ji=wn({moduleName:c.certsignWebapiQesSignature,createModuleCreator:st}),Li=c.halcomQesSignature,Pi=function(t){var e=t.contractId,n=t.username,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,username:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},Bi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Gi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,fn:Bi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Fi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.username,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,Li,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(Pi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,username:l,phone:p,email:f,countryCode:h,contractId:r,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",Y(Gi)({data:y.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Vi=st(Li,Fi,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),qi=c.swissIdQesSignature,Hi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.email,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,email:u,country:s,lang:c},cancelToken:i})},Ki=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Qi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,fn:Ki,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},zi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.email,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,qi,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Hi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,email:l,countryCode:p,contractId:r,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",Y(Qi)({data:g.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Zi=st(qi,zi,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ji=c.swissComQesSignature,Wi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.phone,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,phone:u,country:s,lang:c},cancelToken:i})},Yi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},$i=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Ye({pollInterval:2e3,fn:Yi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Xi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,u=t.language,l=t.phone,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Ji,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Wi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,phone:l,countryCode:p,contractId:r,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",Y($i)({data:g.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),to=st(Ji,Xi,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),eo=wn({moduleName:c.mitIdAdvancedSignature,createModuleCreator:st}),no=wn({moduleName:c.mitIdQesSignature,createModuleCreator:st}),ro=wn({moduleName:c.seBankIdAdvancedSignature,createModuleCreator:st}),io=wn({moduleName:c.seBankIdQesSignature,createModuleCreator:st}),oo=c.frejaAdvancedSignature,ao=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},so=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.redirect;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,oo,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(ao)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,t.abrupt("return",Y(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),co=st(oo,so,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),uo=c.frejaQesSignature,lo=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},po=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,c=t.idcode,u=t.countryCode,l=t.language,p=t.redirect;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,uo,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(lo)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:l,actionType:f.actionType,countryCode:u});case 4:return h=t.sent,t.abrupt("return",Y(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),fo=st(uo,po,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ho=Object.freeze({sandbox:"sandbox",production:"production"});function go(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?go(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):go(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var yo=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=vo(vo({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},mo=function(t){var e=t.method,n=t.baseUrl,r=t.clientId,i=t.redirectUri,o=t.state,a=t.language,s="".concat(n,"/oauth/start/").concat(e,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(s+="&lang=".concat(a)),o&&(s+="&state=".concat(o)),s},Io=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=vo({base:function(t){return t.baseUrl},readCard:function(t){var n=t.countryCode,r=void 0===n?e.countryCode.toLowerCase():n,i=t.clientId,o="eideasy.com";return e.sandbox&&["EE","BE"].includes(r)&&(o="test.eideasy.com"),"https://".concat(r,".").concat(o,"/api/identity/").concat(i,"/read-card")},zealIdIframeUrl:function(t){var e=t.baseUrl,n=t.clientId;return"".concat(e,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"lv-eparaksts-mobile-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"lv-eparaksts-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"mojeid",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"edoapp-eid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"itsme-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"itsme-login-basic",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"itsme-login-standard",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"swedish-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"finnish-ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idin:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"idin-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"verifai-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"yoonik-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"pl-mojeid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"mit-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"norwegian-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri,i=t.state,o="".concat(e,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mo({method:"ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idCardIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType;return"".concat(e,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/id-card/complete")},completeSignatureMobileId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-smart-id/complete")},completeSignatureEvrotrust:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/evrotrust-signature/complete")},completeSignatureHalcom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureDTrustSignMe:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureFrejaSimple:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/uanataca-qes-signature/complete")},completeOtp:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/non-qualified/complete")},eideasyMonitoring:function(t){var e=t.baseUrl;return"".concat(e,"/api/monitor")},startZealIdSignature:function(t){var e=t.baseUrl,n=t.clientId,r=t.docId;return"".concat(e,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(t){var e=t.baseUrl;return"".concat(e,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential")}},r),o=(n(t={},ho.production,vo({},yo(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),n(t,ho.sandbox,vo({},yo(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?ho.sandbox:ho.production;return o[t]}}},bo=c.eParakstsSmartCard,So=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Eo=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(So)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),To=st(bo,Eo),Co=wn({moduleName:c.itsmeQesSignature,createModuleCreator:st}),wo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_({rawSettings:t,schema:A}),n=G({currentLanguage:"en"}),r=Io({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=F({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return C({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[pt,It,Ct,Ot,To,kt,Pt,Vt,Qt,Wt,te,ie,ce,pe,ve,be,Ce,Oe,Re,je,Ge,He],signingModules:[We,rn,ln,yn,Tn,_n,An,On,ei,xn,kn,Un,Mn,jn,Gn,Wr,Yr,oi,ai,si,ci,ui,fi,Ii,Ai,Oi,xi,Mi,ji,Vi,Zi,to,eo,no,ro,io,co,fo,Co]})},_o=wo}(),o}()}));
18
+ !function(t,e){ true?module.exports=e():0}(self,(function(){return function(){var t,e,n={9669:function(t,e,n){t.exports=n(1609)},5448:function(t,e,n){"use strict";var r=n(4867),i=n(6026),o=n(4372),a=n(5327),s=n(4097),u=n(4109),c=n(7985),d=n(5061);t.exports=function(t){return new Promise((function(e,n){var l=t.data,p=t.headers,f=t.responseType;r.isFormData(l)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(g+":"+v)}var y=s(t.baseURL,t.url);function m(){if(h){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}}if(h.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(n(d("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(d("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var I=(t.withCredentials||c(y))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;I&&(p[t.xsrfHeaderName]=I)}"setRequestHeader"in h&&r.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),f&&"json"!==f&&(h.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),l||(l=null),h.send(l)}))}},1609:function(t,e,n){"use strict";var r=n(4867),i=n(1849),o=n(321),a=n(7185);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(5655));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(t){return Promise.all(t)},u.spread=n(8713),u.isAxiosError=n(6268),t.exports=u,t.exports.default=u},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,n){"use strict";var r=n(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,n){"use strict";var r=n(4867),i=n(5327),o=n(782),a=n(3572),s=n(7185),u=n(4875),c=u.validators;function d(t){this.defaults=t,this.interceptors={request:new o,response:new o}}d.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(o),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var l=t;n.length;){var p=n.shift(),f=n.shift();try{l=p(l)}catch(t){f(t);break}}try{i=a(l)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},d.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){d.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){d.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=d},782:function(t,e,n){"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},4097:function(t,e,n){"use strict";var r=n(1793),i=n(7303);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},5061:function(t,e,n){"use strict";var r=n(481);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},3572:function(t,e,n){"use strict";var r=n(4867),i=n(8527),o=n(6502),a=n(5655);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},7185:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var d=i.concat(o).concat(a).concat(s),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===d.indexOf(t)}));return r.forEach(l,c),n}},6026:function(t,e,n){"use strict";var r=n(5061);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:function(t,e,n){"use strict";var r=n(4867),i=n(5655);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},5655:function(t,e,n){"use strict";var r=n(4867),i=n(6016),o=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(5448)),u),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(a)})),t.exports=c},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},5327:function(t,e,n){"use strict";var r=n(4867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:function(t,e,n){"use strict";var r=n(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:function(t,e,n){"use strict";var r=n(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},a=r.version.split(".");function s(t,e){for(var n=e?e.split("."):a,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(t,e,n){var i=e&&s(e);function a(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw new Error(a(r," has been removed in "+e));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={isOlderVersion:s,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],a=e[o];if(a){var s=t[o],u=void 0===s||a(s,o,t);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4867:function(t,e,n){"use strict";var r=n(1849),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},8407:function(t,e,n){var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),u=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},4636:function(t,e,n){var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),d=!n&&i(t),l=!n&&!d&&a(t),p=!n&&!d&&!l&&u(t),f=n||d||l||p,h=f?r(t.length,String):[],g=h.length;for(var v in t)!e&&!c.call(t,v)||f&&("length"==v||l&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||h.push(v);return h}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:function(t,e,n){var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:function(t,e,n){var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),u=n(4626),c=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),h=n(4160),g=n(3824),v=n(9148),y=n(8517),m=n(1469),I=n(4144),b=n(6688),S=n(3218),E=n(2928),T=n(3674),C=n(1704),w="[object Arguments]",_="[object Function]",A="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[A]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[_]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,x,N,D,R){var k,U=1&n,M=2&n,j=4&n;if(x&&(k=D?x(e,N,D,R):x(e)),void 0!==k)return k;if(!S(e))return e;var L=m(e);if(L){if(k=g(e),!U)return c(e,k)}else{var P=h(e),B=P==_||"[object GeneratorFunction]"==P;if(I(e))return u(e,U);if(P==A||P==w||B&&!D){if(k=M||B?{}:y(e),!U)return M?l(e,s(k,e)):d(e,a(k,e))}else{if(!O[P])return D?e:{};k=v(e,P,U)}}R||(R=new r);var G=R.get(e);if(G)return G;R.set(e,k),E(e)?e.forEach((function(r){k.add(t(r,n,x,r,e,R))})):b(e)&&e.forEach((function(r,i){k.set(i,t(r,n,x,i,e,R))}));var F=L?void 0:(j?M?f:p:M?C:T)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(k,i,t(r,n,x,i,e,R))})),k}},3118:function(t,e,n){var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:function(t,e,n){var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},9454:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,d=u.toString,l=c.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?p:s).test(a(t))}},9221:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},2980:function(t,e,n){var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),u=n(1704),c=n(6390);t.exports=function t(e,n,d,l,p){e!==n&&o(n,(function(o,u){if(p||(p=new r),s(o))a(e,n,u,d,t,l,p);else{var f=l?l(c(e,u),o,u+"",e,n,p):void 0;void 0===f&&(f=o),i(e,u,f)}}),u)}},9783:function(t,e,n){var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),u=n(5694),c=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),h=n(8630),g=n(6719),v=n(6390),y=n(9881);t.exports=function(t,e,n,m,I,b,S){var E=v(t,n),T=v(e,n),C=S.get(T);if(C)r(t,n,C);else{var w=b?b(E,T,n+"",t,e,S):void 0,_=void 0===w;if(_){var A=c(T),O=!A&&l(T),x=!A&&!O&&g(T);w=T,A||O||x?c(E)?w=E:d(E)?w=a(E):O?(_=!1,w=i(T,!0)):x?(_=!1,w=o(T,!0)):w=[]:h(T)||u(T)?(w=E,u(E)?w=y(E):f(E)&&!p(E)||(w=s(T))):_=!1}_&&(S.set(T,w),I(w,T,m,b,S),S.delete(T)),r(t,n,w)}}},5976:function(t,e,n){var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),i=n(8777),o=n(6557),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,n){var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:function(t,e,n){t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:function(t,e,n){var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:function(t,e,n){var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],d=o?o(n[c],t[c],c,n,t):void 0;void 0===d&&(d=t[c]),a?i(n,c,d):r(n,c,d)}return n}},8805:function(t,e,n){var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:function(t,e,n){var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},8777:function(t,e,n){var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:function(t,e,n){var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:function(t,e,n){var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:function(t,e,n){var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:function(t,e,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:function(t,e,n){var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},1442:function(t,e,n){var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},4160:function(t,e,n){var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),u=n(4239),c=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=c(r),v=c(i),y=c(o),m=c(a),I=c(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=h||i&&b(new i)!=d||o&&b(o.resolve())!=l||a&&b(new a)!=p||s&&b(new s)!=f)&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return h;case v:return d;case y:return l;case m:return p;case I:return f}return e}),t.exports=b},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:function(t,e,n){var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),i=n(8612),o=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:function(t,e,n){var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}},5639:function(t,e,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,n){var r=n(6560),i=n(1275)(r);t.exports=i},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:function(t,e,n){var r=n(5990);t.exports=function(t){return r(t,5)}},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u},3560:function(t,e,n){var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,n){var r=n(5588),i=n(1717),o=n(1167),a=o&&o.isMap,s=a?i(a):r;t.exports=s},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},8630:function(t,e,n){var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,d=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}},2928:function(t,e,n){var r=n(9221),i=n(1717),o=n(1167),a=o&&o.isSet,s=a?i(a):r;t.exports=s},6719:function(t,e,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},3674:function(t,e,n){var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:function(t,e,n){var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},2492:function(t,e,n){var r=n(2980),i=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=i},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},7061:function(t,e,n){var r=n(8698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new O(r||[]);return a(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h={};function g(){}function v(){}function y(){}var m={};l(m,u,(function(){return this}));var I=Object.getPrototypeOf,b=I&&I(I(x([])));b&&b!==n&&o.call(b,u)&&(m=b);var S=y.prototype=g.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(i,a,s,u){var c=f(t[i],t,a);if("throw"!==c.type){var d=c.arg,l=d.value;return l&&"object"==r(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(l).then((function(t){d.value=t,s(d)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function x(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return v.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,d,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(T.prototype),l(T.prototype,c,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new T(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,d,"Generator"),l(S,u,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=x,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},8698:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:function(t,e,n){var r=n(7061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},8593:function(t){"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,i),o.loaded=!0,o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},i.d(o,a),o},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var o={};return function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}function n(t,n,r){return(n=e(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var r;i.r(o),i.d(o,{allMethods:function(){return c},createClient:function(){return No},default:function(){return Do},getMethodByHandlingModule:function(){return d},methodActionTypes:function(){return s},methodTypes:function(){return a},moduleNames:function(){return u}});var a={IDENTIFICATION:"identification",SIGNATURE:"signature"},s={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",FTN_LOGIN:"ftn-login",IDIN_CUSTOMER_ID_LOGIN:"idin-customer-id-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",HR_IDCARD_SIGNATURE:"hr-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",FI_FTN_QUALIFIED_SIGNATURE:"fi-ftn-qes-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature",FR_IDENT_ADVANCED_SIGNATURE:"fr-ident-advanced-signature"},u={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",idinCustomerId:"idinCustomerId",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",norwegianBankId:"norwegianBankId",ftn:"ftn",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature"},c=Object.freeze((n(r={},a.IDENTIFICATION,[{actionType:s.BE_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["BE"]},{actionType:s.EE_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["EE"]},{actionType:s.FI_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["FI"]},{actionType:s.LV_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["LV"]},{actionType:s.LT_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["LT"]},{actionType:s.PT_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["PT"]},{actionType:s.RS_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["RS"]},{actionType:s.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:u.eParakstsMobile,supportedCountries:["LV"]},{actionType:s.LV_EPARAKSTS_ID_LOGIN,handlingModule:u.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:s.LT_MOBILE_ID,handlingModule:u.mobileId,supportedCountries:["LT"]},{actionType:s.EE_MOBILE_ID,handlingModule:u.mobileId,supportedCountries:["EE"]},{actionType:s.SMART_ID,handlingModule:u.smartId,supportedCountries:["EE","LV","LT"]},{actionType:s.FREJA_EID_LOGIN,handlingModule:u.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:s.ZEALID_LOGIN,handlingModule:u.zealId,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:s.CZ_MOJEID,handlingModule:u.mojeId,supportedCountries:["CZ"]},{actionType:s.EDOAPP_EID_LOGIN,handlingModule:u.edoAppEid,supportedCountries:["PL"]},{actionType:s.FI_FTN_LOGIN,handlingModule:u.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:s.AT_HANDY_SIGNATUR_LOGIN,handlingModule:u.atHandy,supportedCountries:["AT"]},{actionType:s.ITSME_LOGIN,handlingModule:u.itsme,supportedCountries:["BE"]},{actionType:s.ITSME_LOGIN_BASIC,handlingModule:u.itsmeBasic,supportedCountries:["BE"]},{actionType:s.ITSME_LOGIN_STANDARD,handlingModule:u.itsmeStandard,supportedCountries:["BE"]},{actionType:s.SE_BANKID_LOGIN,handlingModule:u.seBankId,supportedCountries:["SE"]},{actionType:s.IDIN_LOGIN,handlingModule:u.idin,supportedCountries:["NL"]},{actionType:s.IDIN_CUSTOMER_ID_LOGIN,handlingModule:u.idinCustomerId,supportedCountries:["NL"]},{actionType:s.VERIFAI_LOGIN,handlingModule:u.verifai,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:s.YOONIK_LOGIN,handlingModule:u.yoonik,supportedCountries:["WORLD"]},{actionType:s.PL_MOJEID_LOGIN,handlingModule:u.plMojeId,supportedCountries:["PL"]},{actionType:s.MIT_ID_LOGIN,handlingModule:u.mitId,supportedCountries:["DK"]},{actionType:s.NORWEGIAN_BANKID_LOGIN,handlingModule:u.norwegianBankId,supportedCountries:["NO"]},{actionType:s.FTN_LOGIN,handlingModule:u.ftn,supportedCountries:["FI"]}]),n(r,a.SIGNATURE,[{actionType:s.EE_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["EE"]},{actionType:s.LV_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["LV"]},{actionType:s.LT_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["LT"]},{actionType:s.FI_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["FI","AX"]},{actionType:s.PT_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["PT"]},{actionType:s.BE_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["BE"]},{actionType:s.HR_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["HR"]},{actionType:s.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:u.certEuropeUsbTokenSignature,supportedCountries:["FR"]},{actionType:s.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:u.certSignUsbTokenSignature,supportedCountries:["RO"]},{actionType:s.EE_MOBILEID_SIGNATURE,handlingModule:u.mobileIdSignature,supportedCountries:["EE"]},{actionType:s.LT_MOBILEID_SIGNATURE,handlingModule:u.mobileIdSignature,supportedCountries:["LT"]},{actionType:s.SMARTID_SIGNATURE,handlingModule:u.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:s.EVROTRUST_SIGNATURE,handlingModule:u.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:s.ITSME_QES_SIGNATURE,handlingModule:u.itsmeQesSignature,supportedCountries:["BE"]},{actionType:s.OTP_EMAIL,handlingModule:u.otpSignature,supportedCountries:["WORLD"]},{actionType:s.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:u.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:s.FI_FTN_ADVANCED_SIGNATURE,handlingModule:u.ftnSignature,supportedCountries:["FI","AX"]},{actionType:s.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:u.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:s.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:u.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:s.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:u.atHandySignature,supportedCountries:["AT"]},{actionType:s.ZEAL_ID_SIGNATURE,handlingModule:u.zealIdSignature,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:s.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:u.mojeIdSignature,supportedCountries:["CZ"]},{actionType:s.GOOGLE_SIGNATURE,handlingModule:u.googleSignature,supportedCountries:["WORLD"]},{actionType:s.SE_BANKID_SIGNATURE,handlingModule:u.seBankIdSignature,supportedCountries:["SE"]},{actionType:s.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:u.dTrustSignMeSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","US","BG","HU","LT","LV","EE","HR","SI","IT","RO","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:s.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:u.chaveMovelSignature,supportedCountries:["PT"]},{actionType:s.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:u.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:s.MIT_ID_SIMPLE_SIGNATURE,handlingModule:u.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:s.IDIN_SIMPLE_SIGNATURE,handlingModule:u.idinSignature,supportedCountries:["NL"]},{actionType:s.SPID_QUALIFIED_SIGNATURE,handlingModule:u.spidQesSignature,supportedCountries:["IT"]},{actionType:s.VERIFAI_SIMPLE_SIGNATURE,handlingModule:u.verifaiSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:s.FREJA_SIMPLE_SIGNATURE,handlingModule:u.frejaSimpleSignature,supportedCountries:["DK","EE","FI","LV","LT","NO","PL","RO","SK","SE","GL","AX"]},{actionType:s.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:u.audkenniQesSignature,supportedCountries:["IS"]},{actionType:s.YES_COM_QUALIFIED_SIGNATURE,handlingModule:u.yesComQesSignature,supportedCountries:["DE"]},{actionType:s.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:u.simplySignQesSignature,supportedCountries:["PL"]},{actionType:s.UANATACA_QUALIFIED_SIGNATURE,handlingModule:u.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:s.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:u.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:s.HALCOM_QUALIFIED_SIGNATURE,handlingModule:u.halcomQesSignature,supportedCountries:["SI"]},{actionType:s.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:u.swissIdQesSignature,supportedCountries:["CH"]},{actionType:s.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:u.swissComQesSignature,supportedCountries:["CH"]},{actionType:s.DK_MITID_ADVANCED_SIGNATURE,handlingModule:u.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:s.DK_MITID_QES_SIGNATURE,handlingModule:u.mitIdQesSignature,supportedCountries:["DK"]},{actionType:s.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:u.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:s.SE_BANK_ID_QES_SIGNATURE,handlingModule:u.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:s.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:u.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:s.SE_FREJA_EID_QES_SIGNATURE,handlingModule:u.frejaQesSignature,supportedCountries:["SE"]},{actionType:s.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:u.frIdentAdvancedSignature,supportedCountries:["FR"]}]),r)),d=function(t,e,n){var r=c[t];if(e&&n){var i=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("WORLD"))}));if(!i){if(0===r.filter((function(t){return t.handlingModule===e})).length)throw new Error("Could not find matching method configuration for ".concat(t,' module "').concat(e,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(t,'\n module "').concat(e,'".'))}return i}return r.find((function(t){return t.handlingModule===e}))},l=i(2492),p=i.n(l),f=i(9669),h=i.n(f),g=h().CancelToken,v=h().isCancel;h().Cancel,h().interceptors.response.use((function(t){return(e=t.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,i=t.request,o=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(t.status),config:t.config,request:t.request,response:t})):t;var e}));var y=function(t){return h()(t)};function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=p()(i,n)),i},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(I({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(I({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))};return Object.freeze({get:e,post:n,CancelToken:g})};function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,i=void 0===r?[]:r,o=t.settings,a=void 0===o?{}:o,s=t.i18n,u=t.apiEndpoints,d=t.monitoringService,l=T({},a);l.apiEndpoints=u,s.setLanguage(l.language);var p=function(t){l.countryCode=t},f=function(){return l.countryCode},h=function(){return c},g={};n.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:S({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var v={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:S({modifyRequestSettings:l.modifyRequestSettings})});v[e.MODULE_NAME]=e})),Object.freeze({identification:T({},g),signature:T({},v),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var _=function(e){var r=e.rawSettings,i=e.schema,o=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r);return Object.keys(i).forEach((function(e){var n=i[e],a=r[e];if(n.required&&void 0===a)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===a&&(o[e]=n.default),void 0!==o[e]&&void 0!==n.type&&n.type!==t(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(t(o[e]),'"'))})),o},A={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(t){var e=t.data&&t.data.redirect_uri;return e?(window.location!==window.top.location?window.top.location.href=e:window.location.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"}},O=JSON.parse('{"id-card-read-timeout":"Das Auslesen des Ausweises hat zu lange gedauert. Bitte schließen Sie alle geöffneten Browserfenster und versuchen Sie es erneut.","no_certificates":"Zertifikate konnten nicht gelesen werden. Stellen Sie sicher, dass sich die Karte im Lesegerät befindet und das Lesegerät richtig funktioniert."}'),x=i.t(O,2),N=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}'),D=i.t(N,2),R=JSON.parse('{"id-card-read-timeout":"ID kaardi lugemine võttis liiga kaua aega. Palun sulge kõik brauseri aknad ja proovi uuesti.","no_certificates":"Sertfikaatide lugemine ebaõnnestus. Veendu, et ID kaart on lugejas ning lugeja on arvutiga ühendatud."}'),k=i.t(R,2),U=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}'),M=i.t(U,2),j=JSON.parse('{"id-card-read-timeout":"ID kartes lasīšana aizņēma pārāk ilgu laiku. Lūdzu, aizveriet visus atvērtos pārlūkprogrammas logus un pēc tam mēģiniet vēlreiz.","no_certificates":"Nevarēja nolasīt sertifikātus. Pārliecinieties, vai karte ir lasītājā un lasītājs darbojas pareizi."}'),L=i.t(j,2),P=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),B={de:x,en:D,et:k,lt:M,lv:L,ru:i.t(P,2)},G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,n=void 0===e?"en":e,r=t.locales,i=void 0===r?B:r,o={currentLanguage:n},a="en",s=function(t){o.currentLanguage=t},u=function(){return o.currentLanguage},c=function(t){var e=i[o.currentLanguage];e||(e=i[a]);var n=e[t]||i[a][t];return n||(n=t),n};return Object.freeze({setLanguage:s,t:c,getCurrentLanguage:u})},F=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&y({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function V(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function q(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){V(o,r,i,a,s,"next",t)}function s(t){V(o,r,i,a,s,"throw",t)}a(void 0)}))}}var H=i(4687),K=i.n(H),Q=i(361),z=i.n(Q)(),Z=function(t){var e=t;return v(t)&&(e.isCancel=!0),e.response&&e.response.data&&(e.response.data.message&&(e.userMessage=e.response.data.message),e.response.data.errors&&(e.userDetails=e.response.data.errors)),e},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=z({message:n});if(e)r.data=e;else{if(!t.result||!t.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=t.result.data}return r},W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldFormatResult,r=void 0===n||n;return function(){var e=q(K().mark((function e(){var n,i,o=arguments;return K().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,o);case 2:if(n=e.sent,!(i=W(n))){e.next=6;break}throw Z(i);case 6:return e.abrupt("return",r?J(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X(t,e){if(t){if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}function tt(t){return function(t){if(Array.isArray(t))return $(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||X(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Error;var et=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],nt=Symbol(".toJSON was called"),rt=function e(n){var r,i,o=n.from,a=n.seen,s=n.to_,u=n.forceEnumerable,c=n.maxDepth,d=n.depth,l=s||(Array.isArray(o)?[]:{});if(a.push(o),d>=c)return l;if("function"==typeof o.toJSON&&!0!==o[nt])return function(t){t[nt]=!0;var e=t.toJSON();return delete t[nt],e}(o);for(var p=0,f=Object.entries(o);p<f.length;p++){var h=(r=f[p],i=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(r,i)||X(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=h[0],v=h[1];"function"==typeof Buffer&&Buffer.isBuffer(v)?l[g]="[object Buffer]":null===v||"object"!==t(v)||"function"!=typeof v.pipe?"function"!=typeof v&&(v&&"object"===t(v)?a.includes(o[g])?l[g]="[Circular]":(d++,l[g]=e({from:o[g],seen:tt(a),forceEnumerable:u,maxDepth:c,depth:d})):l[g]=v):l[g]="[object Stream]"}for(var y=0,m=et;y<m.length;y++){var I=m[y],b=I.property,S=I.enumerable;"string"==typeof o[b]&&Object.defineProperty(l,b,{value:o[b],enumerable:!!u||S,configurable:!0,writable:!0})}return l};function it(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.maxDepth,i=void 0===r?Number.POSITIVE_INFINITY:r;return"object"===t(e)&&null!==e?rt({from:e,seen:[],forceEnumerable:!0,maxDepth:i,depth:0}):"function"==typeof e?"[Function: ".concat(e.name||"anonymous","]"):e}function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var st=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=r.coreContext,o=r.apiClient,a=i.i18n,s=i.config,u=i.monitoringService;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=at(at({},A),n),i=at(at({},s),t),c=_({rawSettings:i,schema:r}),d=c.success,l=c.fail,p=c.finished,f=t.language||a.getCurrentLanguage(),h=o.CancelToken.source(),g=h.token,v={onCancelByUser:function(){}},y=function(t){v.onCancelByUser=t},m=function(){h.cancel()},I=function(){v.onCancelByUser(),m()},b=function(){var t=q(K().mark((function t(){return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(at(at({},c),{},{language:f,i18n:a,monitoringService:u,cancelToken:g,cancel:m,setOnCancelByUser:y,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),u.dispatch({message:JSON.stringify(it(t))}),l(Z(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return b().catch(console.error),Object.freeze({cancel:I})}})}};function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var dt=u.idCard,lt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,u,c;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.i18n,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.apiEndpoints.inCurrentMode.readCard({countryCode:t.countryCode,clientId:t.clientId});return t.nonce&&(e+="?nonce=".concat(t.nonce)),i.get({url:e,cancelToken:t.cancelToken})},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=d(a.IDENTIFICATION,dt,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},t.next=5,Y(s)(ct(ct({},e),{},{language:r,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=o.t("id-card-read-timeout")),t}));case 5:return c=t.sent,t.next=8,Y(u)(ct(ct({},e),{},{cancelToken:n,language:r,data:c.data}));case 8:return c=t.sent,t.abrupt("return",c);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pt=st(dt,lt,{countryCode:{type:"string",required:!0}}),ft=function(){var t=q((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return K().mark((function t(){var i,o;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=q(K().mark((function t(a,s){var u,c;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,e();case 4:u=t.sent,c=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),u=void 0,c=t.t0;case 12:if(!n({result:u,attempts:i,error:c})){t.next=14;break}return t.abrupt("return",setTimeout(o,r,a,s));case 14:return t.abrupt("return",a({result:u,error:c}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(o));case 3:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ht=ft;function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var yt=u.smartId,mt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,u,c,l,p,f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,s=void 0===o?1e3:o,u=e.cancelToken,c=e.language,l=e.apiClient,p=function(t){var e=d(a.IDENTIFICATION,yt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=d(a.IDENTIFICATION,yt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},h=function(t){var e=1e5/t.pollInterval,n=0;return ht({fn:function(){return f(vt(vt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,Y(p)(vt(vt({},e),{},{cancelToken:u,language:c,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Y(h)({config:e,data:vt({},g.data),cancelToken:u,pollInterval:s,language:c});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),It=st(yt,mt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function St(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Et=u.mobileId,Tt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,u,c,l,p,f,h,g,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.started,s=void 0===o?function(){}:o,u=e.idcode,c=e.phone,l=e.pollInterval,p=void 0===l?1e3:l,f=function(t){var e=d(a.IDENTIFICATION,Et,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,phone:t.phone,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},h=function(t){var e=d(a.IDENTIFICATION,Et,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=12e4/p,n=0;return ht({fn:function(){return h(St(St({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})},t.next=6,Y(f)(St(St({},e),{},{cancelToken:n,language:r,idcode:u,phone:c}));case 6:return y=t.sent,s(y),t.next=10,Y(g)({config:e,data:y.data,cancelToken:n,language:r,pollInterval:p});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ct=st(Et,Tt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),wt=u.eParakstsMobile,_t=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},At=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(_t)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ot=st(wt,At);function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Dt=u.frejaEid,Rt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,u,c,l,p,f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,s=void 0===o?1e3:o,u=e.cancelToken,c=e.language,l=e.apiClient,p=function(t){var e=d(a.IDENTIFICATION,Dt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=d(a.IDENTIFICATION,Dt);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},h=function(t){var e=1e5/t.pollInterval,n=0;return ht({fn:function(){return f(Nt(Nt({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=v(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,Y(p)(Nt(Nt({},e),{},{cancelToken:u,language:c,idcode:i}));case 6:return g=t.sent,r(g),t.next=10,Y(h)({config:e,data:Nt({},g.data),cancelToken:u,language:c,pollInterval:s});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),kt=st(Dt,Rt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ut(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var jt=u.zealId,Lt=function(){var t=q(K().mark((function t(e){var n,r,i,o,s,u,c;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.apiClient,i=e.language,o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,n=document.createElement("iframe"),r=t.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",e.innerHTML="";var i=function(t,e,n){var r=new URL(t.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?e({data:{code:o}}):n(t.data)},o=new Promise((function(t,e){window.addEventListener("message",(function(n){var o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,t,e))}))}));return e.appendChild(n),o},u=function(t){var e=d(a.IDENTIFICATION,jt);return r.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,Y(o)(Mt(Mt({},e),{},{cancelToken:n}));case 6:return c=t.sent,t.next=9,Y(s)(Mt(Mt({},e),{},{cancelToken:n,iframeUrl:c.data.url}));case 9:return c=t.sent,t.next=12,Y(u)(Mt(Mt({},e),{},{cancelToken:n,language:i},c));case 12:return c=t.sent,t.abrupt("return",c);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Pt=st(jt,Lt,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),Bt=u.mojeId,Gt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Ft=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Gt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Vt=st(Bt,Ft),qt=u.edoAppEid,Ht=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Kt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Ht)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Qt=st(qt,Kt),zt=u.finnishTrustNetwork,Zt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},Jt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Zt)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Wt=st(zt,Jt),Yt=u.atHandy,$t=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Xt=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y($t)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),te=st(Yt,Xt),ee=u.itsme,ne=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsme({clientId:n,redirectUri:r,language:i})}}},re=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(ne)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ie=st(ee,re),oe=u.itsmeBasic,ae=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},se=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(ae)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ue=st(oe,se),ce=u.itsmeStandard,de=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},le=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(de)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pe=st(ce,le),fe=u.seBankId,he=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.seBankId({clientId:n,redirectUri:r,language:i})}}},ge=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(he)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ve=st(fe,ge),ye=u.idin,me=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idin({clientId:n,redirectUri:r,language:i})}}},Ie=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(me)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),be=st(ye,Ie),Se=u.idinCustomerId,Ee=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idinCustomerId({clientId:n,redirectUri:r,language:i})}}},Te=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ee)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ce=st(Se,Te),we=u.verifai,_e=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},Ae=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(_e)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Oe=st(we,Ae),xe=u.yoonik,Ne=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},De=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ne)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Re=st(xe,De),ke=u.plMojeId,Ue=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},Me=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(Ue)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),je=st(ke,Me),Le=u.mitId,Pe=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.mitId({clientId:n,redirectUri:r,language:i})}}},Be=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Pe)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ge=st(Le,Be),Fe=u.norwegianBankId,Ve=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.norwegianBankId({clientId:n,redirectUri:r,language:i})}}},qe=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Ve)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),He=st(Fe,qe),Ke=u.ftn,Qe=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.ftn({clientId:n,redirectUri:r,language:i})}}},ze=function(){var t=q(K().mark((function t(e){var n,r,i,o,a,s;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,Y(Qe)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ze=st(Ke,ze),Je=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.userMessage,i=void 0===r?"":r,o=t.details,a=void 0===o?{}:o;this.message=n,this.userMessage=i,this.details=a,this.stack=(new Error).stack};(Je.prototype=new Error).name="MethodException";var We=Je,Ye={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},$e=function(t){var e=t.monitoringService,n=t.moduleName;return Object.freeze({log:function(t){e.dispatch({message:"".concat(n,": ").concat(t)})},logError:function(t,r){var i=JSON.stringify(it(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},Xe=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},i=function(t){return t.data&&"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender},o=function(t){var n=t.countryCode,r=t.clientId,i=t.apiEndpoints,o=d(a.SIGNATURE,e,n);return i.inCurrentMode.idCardIframe({clientId:r,actionType:o.actionType})},s=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new We({userMessage:n,message:t.message,details:t})},u=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,o=t.monitor,a=document.createElement("iframe");a.setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.style.width="0",a.style.height="0",a.style.position="absolute",a.style.border="0",e.innerHTML="";var s={resolve:null,reject:null};function u(t){if(!i(t))return!1;var e=t.data,n=e.operation,r=e.error,o=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==o?s.reject(t.data):s.resolve(a),window.removeEventListener("message",u,!1)}o.log("Trying to create iframe with src: ".concat(n));var c=new Promise((function(t,e){s.resolve=t,s.reject=function(t){e(t),o.logError("Iframe creation failed",t)},window.addEventListener("message",u,!1),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(a),c},c=function(t){var e=t.messenger,n=t.monitor,r={resolve:null,reject:null};function o(t){if(!i(t))return!1;var e=t.data.certificate||t.data.cert;if(e)r.resolve({data:{certificate:e}}),n.log("Got certificate: ".concat(e));else{var a={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?a=t.data:a.isCancel=!0,r.reject(a)}window.removeEventListener("message",o,!1)}var a=new Promise((function(t,e){r.resolve=t,r.reject=function(t){e(t),n.logError("Failed to get the certificate",t)},window.addEventListener("message",o,!1)}));return e.post({operation:"getCertificate"}),a},l=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=(t.monitor,o.inCurrentMode.startSigning());return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:i})},p=function(t){var e=t.messenger,n=t.hexDigest,r=t.monitor,o={resolve:null,reject:null};function a(t){if(!i(t))return!1;var e=t.data.signature_value||t.data.signature;if(e)o.resolve({signature:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,o.reject(n)}window.removeEventListener("message",a,!1)}r.log("Trying to sign the hexDigest: ".concat(n));var s=new Promise((function(t,e){o.resolve=t,o.reject=function(t){e(t),r.logError("Failed to sign the hexdigest",t)},window.addEventListener("message",a,!1)}));return e.post({operation:"getSignature",hexDigest:n}),s},f=function(t){var e=t.signature,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.completeSignatureIdCard();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:i})},h=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"id-card",certificate:e,country:n},cancelToken:r})},g=function(){var t=q((function(t){var n=t.countryCode,i=t.clientId,a=t.apiEndpoints,d=t.iframeHolder,g=t.i18n,v=t.docId,y=t.cancelToken,m=t.apiClient,I=t.monitoringService,b=t.action,S=t.redirect;return K().mark((function t(){var E,T,C,w,_,A,O,x;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E=$e({monitoringService:I,moduleName:e}),t.next=3,Y(o,{shouldFormatResult:!1})({countryCode:n,clientId:i,apiEndpoints:a});case 3:return T=t.sent,t.next=6,Y(u,{shouldFormatResult:!1})({iframeUrl:T,iframeHolder:d,i18n:g,monitor:E}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,Y(r,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,Y(c)({messenger:w,monitor:E}).catch((function(t){return s(t,g)}));case 12:if(_=t.sent,"cscApiAuthorizeCredential"!==b){t.next=18;break}return t.next=16,Y(h)({certificate:_.data.certificate,actionType:"id-card",country:n,cancelToken:y,apiEndpoints:a,apiClient:m});case 16:return A=t.sent,t.abrupt("return",Y(S,{shouldFormatResult:!1})(A));case 18:return t.next=20,Y(l)({certificate:_.data.certificate,clientId:i,docId:v,cancelToken:y,apiEndpoints:a,apiClient:m,monitor:E});case 20:return O=t.sent,t.next=23,Y(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:E}).catch((function(t){return s(t,g)}));case 23:return x=t.sent,t.abrupt("return",Y(f)({signature:x.signature,clientId:i,docId:v,cancelToken:y,apiEndpoints:a,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Ye)},tn=Xe({moduleName:u.idCardSignature,createModuleCreator:st}),en=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,i=t.maxPollDuration,o=t.fn,a=t.fnArgs;i&&(e=i/r);var s=0;return{start:function(){return ht({fn:function(){return o.apply(void 0,tt(a))},shouldContinue:function(t){var n=t.result,r=n&&n.data&&n.data.status,i=v(t.error),o=t.error&&!t.error.response&&!i;o&&(s+=1);var a,u,c=!1;return a=t.attempts,(!(u=e)||a<u)&&s<3&&(c=o||"RUNNING"===r),c},interval:r})}}},nn=u.mobileIdSignature,rn=function(t){var e=t.phone,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.countryCode,c=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:u,lang:c},cancelToken:o})},on=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},an=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,maxPollDuration:12e4,fn:on,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},sn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,u=t.language,c=t.idcode,l=t.phone,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,nn,p),s.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(rn)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:u,idcode:c,phone:l,countryCode:p});case 4:return g=t.sent,f(g),t.abrupt("return",Y(an)({data:g.data,apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),un=st(nn,sn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),cn=u.smartIdSignature,dn=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.countryCode,c=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:u,lang:c},cancelToken:o})},ln=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},pn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,maxPollDuration:12e4,fn:ln,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},fn=function(t){var e=t.country,n=t.cancelToken,r=t.apiEndpoints,i=t.apiClient,o=t.idcode,a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:e,idcode:o},cancelToken:n})},hn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.idcode,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return K().mark((function t(){var v,y,m;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=d(a.SIGNATURE,cn,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,Y(fn)({country:p,idcode:l,cancelToken:i,apiEndpoints:o,apiClient:s});case 4:return y=t.sent,t.abrupt("return",Y(g,{shouldFormatResult:!1})(y));case 6:return u.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,Y(dn)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,idcode:l,countryCode:p,contractId:r});case 9:return m=t.sent,f(m),t.abrupt("return",Y(pn)({data:m.data,apiClient:s,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),gn=st(cn,hn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),vn=u.evroTrustSignature,yn=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.countryCode,c=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:u,lang:c},cancelToken:o})},mn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},In=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:mn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},bn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.idcode,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,vn,h),u.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(yn)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,idcode:l,phone:p,email:f,countryCode:h,contractId:r,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",Y(In)({data:y.data,apiClient:s,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Sn=st(vn,bn,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),En=u.otpSignature,Tn=function(){var t=q((function(t){var e=t.language,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.actionType;return K().mark((function t(){var u;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=o.inCurrentMode.startSigning(),t.abrupt("return",a.post({url:u,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:e},cancelToken:i}));case 2:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Cn=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},wn=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,i=t.cancelToken,o=t.docId,a=t.clientId,s=t.emailToken,u=t.smsToken,c=t.handwrittenSignatureData,d=t.handwrittenSignatureDataUrl;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:u,handwritten_signature_data:c,handwritten_signature_data_url:d},cancelToken:i})},_n=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,u=t.language,c=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl,g=t.started,v=t.confirmationCodeRequest,y=t.setOnCancelByUser;return K().mark((function t(){var m,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=d(a.SIGNATURE,En,c),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,Y(Tn)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:u,actionType:m.actionType});case 6:return I=t.sent,g(I),t.next=10,Y(Cn,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:v,setOnCancelByUser:y});case 10:b=t.sent,p=b.smsToken,l=b.emailToken;case 13:return t.abrupt("return",Y(wn)({apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 14:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),An=st(En,_n,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),On={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},xn=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,u=t.actionType,c=t.confirmedBySigner,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:s,confirmed_by_signer:c},cancelToken:i})},i=function(){var t=q((function(t){var n=t.clientId,i=t.docId,o=t.contractId,s=t.cancelToken,u=t.apiEndpoints,c=t.apiClient,l=t.monitoringService,p=t.language,f=t.countryCode,h=t.redirect,g=t.confirmedBySigner;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,e,f),l.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(r)({contractId:o,clientId:n,docId:i,cancelToken:s,apiEndpoints:u,apiClient:c,language:p,actionType:v.actionType,confirmedBySigner:g});case 4:return y=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,i,On)},Nn=xn({moduleName:u.eParakstsMobileSignature,createModuleCreator:st}),Dn=xn({moduleName:u.ftnAdvancedFullSignature,createModuleCreator:st}),Rn=xn({moduleName:u.ftnSignature,createModuleCreator:st}),kn=xn({moduleName:u.atHandySignature,createModuleCreator:st}),Un=u.zealIdSignature,Mn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},jn=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.docId,t.next=3,Y(Mn)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ln=st(Un,jn),Pn=xn({moduleName:u.mojeIdSignature,createModuleCreator:st}),Bn=xn({moduleName:u.googleSignature,createModuleCreator:st}),Gn=xn({moduleName:u.seBankIdSignature,createModuleCreator:st}),Fn=u.dTrustSignMeSignature,Vn=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,u=t.actionType,c=t.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:s,username:c},cancelToken:i})},qn=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.countryCode,p=t.username,f=t.redirect;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Fn,l),u.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Vn)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",Y(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Hn=st(Fn,qn,{username:{type:"string",required:!0}});function Kn(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Qn(t,e){return t&e}function zn(t,e){return t|e}function Zn(t,e){return t^e}function Jn(t,e){return t&~e}function Wn(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Yn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var $n,Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function tr(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Xn.charAt(n>>6)+Xn.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Xn.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Xn.charAt(n>>2)+Xn.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function er(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Xn.indexOf(t.charAt(e));o<0||(0==r?(n+=Kn(o>>2),i=3&o,r=1):1==r?(n+=Kn(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Kn(i),n+=Kn(o>>2),i=3&o,r=3):(n+=Kn(i<<2|o>>4),n+=Kn(15&o),r=0))}return 1==r&&(n+=Kn(i<<2)),n}var nr,rr={decode:function(t){var e;if(void 0===nr){var n="= \f\n\r\t \u2028\u2029";for(nr=Object.create(null),e=0;e<64;++e)nr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(nr["-"]=62,nr._=63,e=0;e<n.length;++e)nr[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=nr[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=rr.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return rr.decode(t)}},ir=1e13,or=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<ir?e=0:r-=(e=0|r/ir)*ir,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=ir,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(ir+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*ir+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ar=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,sr=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function ur(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var cr,dr=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?ar:sr).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,o=i?255:0,a="";r==o&&++t<e;)r=this.get(t);if(0==(n=e-t))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new or(r),u=t+1;u<e;++u)s.mulAdd(256,this.get(u));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),u=a==e-1?r:0,c=7;c>=u;--c)o+=s>>c&1?"1":"0";if(o.length>n)return i+ur(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ur(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new or,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof or)i.sub(80),r="2."+i.toString();else{var u=i<80?i<40?0:1:2;r=u+"."+(i-40*u)}else r+="."+i.toString();if(r.length>n)return ur(r,n);i=new or,o=0}}return o>0&&(r+=".incomplete"),r},t}(),lr=function(){function t(t,e,n,r,i){if(!(r instanceof pr))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return ur(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ur(this.stream.parseStringISO(e,e+n),t);case 30:return ur(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof dr?e:new dr(e,0);var r=new dr(n),i=new pr(n),o=t.decodeLength(n),a=n.pos,s=a-r.pos,u=null,c=function(){var e=[];if(null!==o){for(var r=a+o;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=a-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var d=0;d<u.length;++d)if(u[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(r,s,o,i,u)},t}(),pr=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new or;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),fr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],hr=(1<<26)/fr[fr.length-1],gr=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=Kn(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Kn(n));return i?o:"0"},t.prototype.negate=function(){var e=br();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Or(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=br();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new yr(e):new mr(e),this.exp(t,n)},t.prototype.clone=function(){var t=br();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=br();return this.bitwiseTo(t,Qn,e),e},t.prototype.or=function(t){var e=br();return this.bitwiseTo(t,zn,e),e},t.prototype.xor=function(t){var e=br();return this.bitwiseTo(t,Zn,e),e},t.prototype.andNot=function(t){var e=br();return this.bitwiseTo(t,Jn,e),e},t.prototype.not=function(){for(var t=br(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=br();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=br();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Wn(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=Yn(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,zn)},t.prototype.clearBit=function(t){return this.changeBit(t,Jn)},t.prototype.flipBit=function(t){return this.changeBit(t,Zn)},t.prototype.add=function(t){var e=br();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=br();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=br();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=br();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=br();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=br(),n=br();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=Ar(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new yr(e):e.isEven()?new Ir(e):new mr(e);var a=[],s=3,u=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=br();for(r.sqrTo(a[1],d);s<=c;)a[s]=br(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=br();for(i=Or(t[f])-1;f>=0;){for(i>=u?l=t[f]>>i-u&c:(l=(t[f]&(1<<i+1)-1)<<u-i,f>0&&(l|=t[f-1]>>this.DB+i-u)),s=n;0==(1&l);)l>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),h)a[l].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[l],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=Ar(1),a=Ar(0),s=Ar(0),u=Ar(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(r,i),n&&s.subTo(o,s),u.subTo(a,u))}return 0!=i.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new vr)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=fr[fr.length-1]){for(e=0;e<fr.length;++e)if(n[0]==fr[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<fr.length;){for(var r=fr[e],i=e+1;i<fr.length&&r<hr;)r*=fr[i++];for(r=n.modInt(r);e<i;)if(r%fr[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&+e[i]:_r(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=br());var a=br(),s=this.s,u=e.s,c=this.DB-Or(i[i.t-1]);c>0?(i.lShiftTo(c,a),o.lShiftTo(c,r)):(i.copyTo(a),o.copyTo(r));var d=a.t,l=a[d-1];if(0!=l){var p=l*(1<<this.F1)+(d>1?a[d-2]>>this.F2:0),f=this.FV/p,h=(1<<this.F1)/p,g=1<<this.F2,v=r.t,y=v-d,m=null==n?br():n;for(a.dlShiftTo(y,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),t.ONE.dlShiftTo(d,m),m.subTo(a,a);a.t<d;)a[a.t++]=0;for(;--y>=0;){var I=r[--v]==l?this.DM:Math.floor(r[v]*f+(r[v-1]+g)*h);if((r[v]+=a.am(0,I,r,y,0,d))<I)for(a.dlShiftTo(y,m),r.subTo(m,r);r[v]<--I;)r.subTo(m,r)}null!=n&&(r.drShiftTo(d,n),s!=u&&t.ZERO.subTo(n,n)),r.t=d,r.clamp(),c>0&&r.rShiftTo(c,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=br(),i=br(),o=n.convert(this),a=Or(e)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(e&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Ar(n),i=br(),o=br(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,u=0;u<e.length;++u){var c=_r(e,u);c<0?"-"==e.charAt(u)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),zn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>fr.length&&(e=fr.length);for(var o=br(),a=0;a<e;++a){o.fromInt(fr[Math.floor(Math.random()*fr.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var u=1;u++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=br();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),zn,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],u=7&e;s.length=1+(e>>3),n.nextBytes(s),u>0?s[0]&=(1<<u)-1:s[0]=0,this.fromString(s,256)}},t}(),vr=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),yr=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),mr=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=br();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(gr.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=br();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Ir=function(){function t(t){this.m=t,this.r2=br(),this.q3=br(),gr.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=br();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function br(){return new gr(null)}function Sr(t,e){return new gr(t,e)}var Er="undefined"!=typeof navigator;Er&&"Microsoft Internet Explorer"==navigator.appName?(gr.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,d=s*u+c*a;i=((u=a*u+((32767&d)<<15)+n[r]+(1073741823&i))>>>30)+(d>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},cr=30):Er&&"Netscape"!=navigator.appName?(gr.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},cr=26):(gr.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,d=s*u+c*a;i=((u=a*u+((16383&d)<<14)+n[r]+i)>>28)+(d>>14)+s*c,n[r++]=268435455&u}return i},cr=28),gr.prototype.DB=cr,gr.prototype.DM=(1<<cr)-1,gr.prototype.DV=1<<cr,gr.prototype.FV=Math.pow(2,52),gr.prototype.F1=52-cr,gr.prototype.F2=2*cr-52;var Tr,Cr,wr=[];for(Tr="0".charCodeAt(0),Cr=0;Cr<=9;++Cr)wr[Tr++]=Cr;for(Tr="a".charCodeAt(0),Cr=10;Cr<36;++Cr)wr[Tr++]=Cr;for(Tr="A".charCodeAt(0),Cr=10;Cr<36;++Cr)wr[Tr++]=Cr;function _r(t,e){var n=wr[t.charCodeAt(e)];return null==n?-1:n}function Ar(t){var e=br();return e.fromInt(t),e}function Or(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}gr.ZERO=Ar(0),gr.ONE=Ar(1);var xr,Nr,Dr=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),Rr=null;if(null==Rr){Rr=[],Nr=0;var kr=void 0;if(window.crypto&&window.crypto.getRandomValues){var Ur=new Uint32Array(256);for(window.crypto.getRandomValues(Ur),kr=0;kr<Ur.length;++kr)Rr[Nr++]=255&Ur[kr]}var Mr=0,jr=function(t){if((Mr=Mr||0)>=256||Nr>=256)window.removeEventListener?window.removeEventListener("mousemove",jr,!1):window.detachEvent&&window.detachEvent("onmousemove",jr);else try{var e=t.x+t.y;Rr[Nr++]=255&e,Mr+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",jr,!1):window.attachEvent&&window.attachEvent("onmousemove",jr)}function Lr(){if(null==xr){for(xr=new Dr;Nr<256;){var t=Math.floor(65536*Math.random());Rr[Nr++]=255&t}for(xr.init(Rr),Nr=0;Nr<Rr.length;++Nr)Rr[Nr]=0;Nr=0}return xr.next()}var Pr=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Lr()},t}(),Br=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Sr(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var o=new Pr,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new gr(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*e-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Sr(t,16),this.e=parseInt(e,16),this.d=Sr(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Sr(t,16),this.e=parseInt(e,16),this.d=Sr(n,16),this.p=Sr(r,16),this.q=Sr(i,16),this.dmp1=Sr(o,16),this.dmq1=Sr(a,16),this.coeff=Sr(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Pr,r=t>>1;this.e=parseInt(e,16);for(var i=new gr(e,16);;){for(;this.p=new gr(t-r,1,n),0!=this.p.subtract(gr.ONE).gcd(i).compareTo(gr.ONE)||!this.p.isProbablePrime(10););for(;this.q=new gr(r,1,n),0!=this.q.subtract(gr.ONE).gcd(i).compareTo(gr.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(gr.ONE),s=this.q.subtract(gr.ONE),u=a.multiply(s);if(0==u.gcd(i).compareTo(gr.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Sr(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Pr,i=t>>1;this.e=parseInt(e,16);var o=new gr(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(gr.ONE),r=a.q.subtract(gr.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(gr.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},u=function(){a.q=br(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(gr.ONE).gcda(o,(function(t){0==t.compareTo(gr.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},c=function(){a.p=br(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(gr.ONE).gcda(o,(function(t){0==t.compareTo(gr.ONE)&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return Sr("0001"+r+"00"+t,16)}((Gr[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=Sr(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Gr)if(Gr.hasOwnProperty(e)){var n=Gr[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}(),Gr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Fr={};Fr.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<a.length;i+=1){var n=a[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};var Vr={};void 0!==Vr.asn1&&Vr.asn1||(Vr.asn1={}),Vr.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new gr(r,16).xor(t).add(gr.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Vr.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,u=e.DEREnumerated,c=e.DERUTF8String,d=e.DERNumericString,l=e.DERPrintableString,p=e.DERTeletexString,f=e.DERIA5String,h=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,y=e.DERSet,m=e.DERTaggedObject,I=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var S=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new n(t[S]);if("int"==S)return new r(t[S]);if("bitstr"==S)return new i(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new a(t[S]);if("oid"==S)return new s(t[S]);if("enum"==S)return new u(t[S]);if("utf8str"==S)return new c(t[S]);if("numstr"==S)return new d(t[S]);if("prnstr"==S)return new l(t[S]);if("telstr"==S)return new p(t[S]);if("ia5str"==S)return new f(t[S]);if("utctime"==S)return new h(t[S]);if("gentime"==S)return new g(t[S]);if("seq"==S){for(var E=t[S],T=[],C=0;C<E.length;C++){var w=I(E[C]);T.push(w)}return new v({array:T})}if("set"==S){for(E=t[S],T=[],C=0;C<E.length;C++)w=I(E[C]),T.push(w);return new y({array:T})}if("tag"==S){var _=t[S];if("[object Array]"===Object.prototype.toString.call(_)&&3==_.length){var A=I(_[2]);return new m({tag:_[0],explicit:_[1],obj:A})}var O={};if(void 0!==_.explicit&&(O.explicit=_.explicit),void 0!==_.tag&&(O.tag=_.tag),void 0===_.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(_.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Vr.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);r+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new gr(r,2).toString(10),r="")}return e},Vr.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new gr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},Vr.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Vr.asn1.DERAbstractString=function(t){Vr.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Fr.lang.extend(Vr.asn1.DERAbstractString,Vr.asn1.ASN1Object),Vr.asn1.DERAbstractTime=function(t){Vr.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var u=r(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var a=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Fr.lang.extend(Vr.asn1.DERAbstractTime,Vr.asn1.ASN1Object),Vr.asn1.DERAbstractStructured=function(t){Vr.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Fr.lang.extend(Vr.asn1.DERAbstractStructured,Vr.asn1.ASN1Object),Vr.asn1.DERBoolean=function(){Vr.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Fr.lang.extend(Vr.asn1.DERBoolean,Vr.asn1.ASN1Object),Vr.asn1.DERInteger=function(t){Vr.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Vr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new gr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Fr.lang.extend(Vr.asn1.DERInteger,Vr.asn1.ASN1Object),Vr.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Vr.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Vr.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Fr.lang.extend(Vr.asn1.DERBitString,Vr.asn1.ASN1Object),Vr.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Vr.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Vr.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Fr.lang.extend(Vr.asn1.DEROctetString,Vr.asn1.DERAbstractString),Vr.asn1.DERNull=function(){Vr.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Fr.lang.extend(Vr.asn1.DERNull,Vr.asn1.ASN1Object),Vr.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new gr(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};Vr.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Vr.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Fr.lang.extend(Vr.asn1.DERObjectIdentifier,Vr.asn1.ASN1Object),Vr.asn1.DEREnumerated=function(t){Vr.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Vr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new gr(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Fr.lang.extend(Vr.asn1.DEREnumerated,Vr.asn1.ASN1Object),Vr.asn1.DERUTF8String=function(t){Vr.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Fr.lang.extend(Vr.asn1.DERUTF8String,Vr.asn1.DERAbstractString),Vr.asn1.DERNumericString=function(t){Vr.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Fr.lang.extend(Vr.asn1.DERNumericString,Vr.asn1.DERAbstractString),Vr.asn1.DERPrintableString=function(t){Vr.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Fr.lang.extend(Vr.asn1.DERPrintableString,Vr.asn1.DERAbstractString),Vr.asn1.DERTeletexString=function(t){Vr.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Fr.lang.extend(Vr.asn1.DERTeletexString,Vr.asn1.DERAbstractString),Vr.asn1.DERIA5String=function(t){Vr.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Fr.lang.extend(Vr.asn1.DERIA5String,Vr.asn1.DERAbstractString),Vr.asn1.DERUTCTime=function(t){Vr.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Fr.lang.extend(Vr.asn1.DERUTCTime,Vr.asn1.DERAbstractTime),Vr.asn1.DERGeneralizedTime=function(t){Vr.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Fr.lang.extend(Vr.asn1.DERGeneralizedTime,Vr.asn1.DERAbstractTime),Vr.asn1.DERSequence=function(t){Vr.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},Fr.lang.extend(Vr.asn1.DERSequence,Vr.asn1.DERAbstractStructured),Vr.asn1.DERSet=function(t){Vr.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Fr.lang.extend(Vr.asn1.DERSet,Vr.asn1.DERAbstractStructured),Vr.asn1.DERTaggedObject=function(t){Vr.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Fr.lang.extend(Vr.asn1.DERTaggedObject,Vr.asn1.ASN1Object);var qr,Hr=(qr=function(t,e){return qr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},qr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}qr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Kr=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Hr(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===$n){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for($n={},e=0;e<16;++e)$n[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)$n[n.charAt(e)]=e;for(e=0;e<r.length;++e)$n[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=$n[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(t):rr.unarmor(t),i=lr.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Sr(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Sr(o,16);var a=i.sub[4].getHexStringValue();this.p=Sr(a,16);var s=i.sub[5].getHexStringValue();this.q=Sr(s,16);var u=i.sub[6].getHexStringValue();this.dmp1=Sr(u,16);var c=i.sub[7].getHexStringValue();this.dmq1=Sr(c,16);var d=i.sub[8].getHexStringValue();this.coeff=Sr(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=Sr(e,16),n=l.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Vr.asn1.DERInteger({int:0}),new Vr.asn1.DERInteger({bigint:this.n}),new Vr.asn1.DERInteger({int:this.e}),new Vr.asn1.DERInteger({bigint:this.d}),new Vr.asn1.DERInteger({bigint:this.p}),new Vr.asn1.DERInteger({bigint:this.q}),new Vr.asn1.DERInteger({bigint:this.dmp1}),new Vr.asn1.DERInteger({bigint:this.dmq1}),new Vr.asn1.DERInteger({bigint:this.coeff})]};return new Vr.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return tr(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Vr.asn1.DERSequence({array:[new Vr.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Vr.asn1.DERNull]}),e=new Vr.asn1.DERSequence({array:[new Vr.asn1.DERInteger({bigint:this.n}),new Vr.asn1.DERInteger({int:this.e})]}),n=new Vr.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Vr.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return tr(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Br),Qr=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Kr(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(er(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return tr(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return tr(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,er(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Kr,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.2.1",t}(),zr=u.chaveMovelSignature,Zr={publicKey:null},Jr=function(){var t=q((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return K().mark((function t(){var i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.inCurrentMode.getChaveMovelPublicKey(),t.next=3,e.get({url:i,withCredentials:!1,cancelToken:r});case 3:if((o=t.sent).data.publicKey){t.next=6;break}return t.abrupt("return",{});case 6:return a=atob(o.data.publicKey),Zr.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wr=function(){var t=q((function(t){var e=t.signingPin,n=t.phone,r=t.language,i=t.clientId,o=t.docId,a=t.cancelToken,s=t.apiEndpoints,u=t.apiClient,c=t.actionType;return K().mark((function t(){var d,l,p;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Jr({apiClient:u,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Qr).setPublicKey(l),t.abrupt("return",u.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:c,lang:r,signing_pin:p.encrypt(e),phone:p.encrypt(n)},cancelToken:a}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Yr=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},$r=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,u=t.confirmationCode,c=new Qr;return c.setPublicKey(Zr.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:c.encrypt(u)},cancelToken:o})},Xr=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,u=t.countryCode,c=t.language,l=t.started,p=t.confirmationCodeRequest,f=t.signingPin,h=t.phone,g=t.setOnCancelByUser;return K().mark((function t(){var v,y,m;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,zr,u),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(Wr)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,actionType:v.actionType,signingPin:f,phone:h});case 4:return y=t.sent,l(y),t.next=8,Y(Yr,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",Y($r)({token:y.data.token,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,confirmationCode:m}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ti=st(zr,Xr,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ei=xn({moduleName:u.mitIdSignature,createModuleCreator:st}),ni=u.ftnQesSignature,ri=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,u=t.actionType,c=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:s,phone:c,email:d},cancelToken:i})},ii=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return K().mark((function t(){var g,v;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,ni,l),u.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(ri)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),oi=st(ni,ii,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),ai=u.noBankIdAdvSignature,si=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,u=t.actionType,c=t.name,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:s,name:c},cancelToken:i})},ui=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.countryCode,p=t.name,f=t.redirect;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,ai,l),u.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(si)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,name:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",Y(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ci=st(ai,ui,{name:{type:"string",required:!0}}),di=Xe({moduleName:u.certEuropeUsbTokenSignature,createModuleCreator:st}),li=Xe({moduleName:u.certSignUsbTokenSignature,createModuleCreator:st}),pi=xn({moduleName:u.idinSignature,createModuleCreator:st}),fi=xn({moduleName:u.verifaiSignature,createModuleCreator:st}),hi=u.spidQesSignature,gi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,u=t.actionType,c=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:s,phone:c,email:d},cancelToken:i})},vi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return K().mark((function t(){var g,v;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=d(a.SIGNATURE,hi,l),u.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(gi)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),yi=st(hi,vi,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),mi=u.frejaSimpleSignature,Ii=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.actionType,c=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:u,lang:n,country:c,idcode:e},cancelToken:o})},bi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Si=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:bi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ei=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,u=t.idcode,c=t.countryCode,l=t.language,p=t.started;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,mi,c),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(Ii)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:u,language:l,actionType:f.actionType,countryCode:c});case 4:return h=t.sent,p(h),t.abrupt("return",Y(Si)({data:h.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ti=st(mi,Ei,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ci=u.audkenniQesSignature,wi=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.actionType,c=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:u,lang:n,country:c,idcode:e},cancelToken:o})},_i=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ai=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Oi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:_i,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},xi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:Ai,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ni=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,u=t.idcode,c=t.countryCode,l=t.language,p=t.started;return K().mark((function t(){var f,h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,Ci,c),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(wi)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:u,language:l,actionType:f.actionType,countryCode:c});case 4:return h=t.sent,t.next=7,Y(Oi)({data:h.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e});case 7:return g=t.sent,p(g),t.abrupt("return",Y(xi)({data:g.data,apiClient:o,apiEndpoints:i,language:l,cancelToken:r,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Di=st(Ci,Ni,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ri=xn({moduleName:u.yesComQesSignature,createModuleCreator:st}),ki=xn({moduleName:u.simplySignQesSignature,createModuleCreator:st}),Ui=u.uanatacaQesSignature,Mi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,u=t.actionType,c=t.username,d=t.password,l=t.pin,p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:s,username:c,password:d,pin:l},cancelToken:i})},ji=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Li=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,u=t.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:u},cancelToken:o})},Pi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.countryCode,p=t.username,f=t.password,h=t.pin,g=t.confirmationCodeRequest,v=t.setOnCancelByUser,y=t.started;return K().mark((function t(){var m,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=d(a.SIGNATURE,Ui,l),u.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,Y(Mi)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,username:p,password:f,pin:h,actionType:m.actionType});case 4:return I=t.sent,y(I),t.next=8,Y(ji,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:v});case 8:return b=t.sent,t.abrupt("return",Y(Li)({token:I.data.token,apiClient:s,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,confirmationCode:b}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Bi=st(Ui,Pi,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Gi=xn({moduleName:u.certsignWebapiQesSignature,createModuleCreator:st}),Fi=u.halcomQesSignature,Vi=function(t){var e=t.contractId,n=t.username,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.countryCode,c=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,username:n,email:d,phone:l,country:u,lang:c},cancelToken:o})},qi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Hi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:qi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ki=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.username,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return K().mark((function t(){var v,y;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=d(a.SIGNATURE,Fi,h),u.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(Vi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,username:l,phone:p,email:f,countryCode:h,contractId:r,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",Y(Hi)({data:y.data,apiClient:s,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Qi=st(Fi,Ki,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),zi=u.swissIdQesSignature,Zi=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,u=t.language,c=t.email,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,email:c,country:s,lang:u},cancelToken:i})},Ji=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Wi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:Ji,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Yi=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.email,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,zi,p),u.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Zi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,email:l,countryCode:p,contractId:r,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",Y(Wi)({data:g.data,apiClient:s,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),$i=st(zi,Yi,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Xi=u.swissComQesSignature,to=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,u=t.language,c=t.phone,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,phone:c,country:s,lang:u},cancelToken:i})},eo=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},no=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return en({pollInterval:2e3,fn:eo,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ro=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,u=t.monitoringService,c=t.language,l=t.phone,p=t.countryCode,f=t.started;return K().mark((function t(){var h,g;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=d(a.SIGNATURE,Xi,p),u.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(to)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:c,phone:l,countryCode:p,contractId:r,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",Y(no)({data:g.data,apiClient:s,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),io=st(Xi,ro,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),oo=xn({moduleName:u.mitIdAdvancedSignature,createModuleCreator:st}),ao=xn({moduleName:u.mitIdQesSignature,createModuleCreator:st}),so=xn({moduleName:u.seBankIdAdvancedSignature,createModuleCreator:st}),uo=xn({moduleName:u.seBankIdQesSignature,createModuleCreator:st}),co=u.frejaAdvancedSignature,lo=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.actionType,c=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:u,lang:n,country:c,idcode:e},cancelToken:o})},po=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,u=t.idcode,c=t.countryCode,l=t.language,p=t.redirect;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,co,c),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(lo)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:u,language:l,actionType:f.actionType,countryCode:c});case 4:return h=t.sent,t.abrupt("return",Y(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),fo=st(co,po,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ho=u.frejaQesSignature,go=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,u=t.actionType,c=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:u,lang:n,country:c,idcode:e},cancelToken:o})},vo=function(){var t=q((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=t.monitoringService,u=t.idcode,c=t.countryCode,l=t.language,p=t.redirect;return K().mark((function t(){var f,h;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=d(a.SIGNATURE,ho,c),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(go)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:u,language:l,actionType:f.actionType,countryCode:c});case 4:return h=t.sent,t.abrupt("return",Y(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),yo=st(ho,vo,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),mo=Object.freeze({sandbox:"sandbox",production:"production"});function Io(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Io(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Io(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var So=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=bo(bo({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},Eo=function(t){var e=t.method,n=t.baseUrl,r=t.clientId,i=t.redirectUri,o=t.state,a=t.language,s="".concat(n,"/oauth/start/").concat(e,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(s+="&lang=".concat(a)),o&&(s+="&state=".concat(o)),s},To=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=bo({base:function(t){return t.baseUrl},readCard:function(t){var n=t.countryCode,r=void 0===n?e.countryCode.toLowerCase():n,i=t.clientId,o="eideasy.com";return e.sandbox&&["EE","BE"].includes(r)&&(o="test.eideasy.com"),"https://".concat(r,".").concat(o,"/api/identity/").concat(i,"/read-card")},zealIdIframeUrl:function(t){var e=t.baseUrl,n=t.clientId;return"".concat(e,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"lv-eparaksts-mobile-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"lv-eparaksts-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"mojeid",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"edoapp-eid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"itsme-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"itsme-login-basic",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"itsme-login-standard",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"swedish-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"finnish-ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idin:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"idin-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idinCustomerId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"idin-customer-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"verifai-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"yoonik-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"pl-mojeid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"mit-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"norwegian-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri,i=t.state,o="".concat(e,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return Eo({method:"ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idCardIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType;return"".concat(e,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/id-card/complete")},completeSignatureMobileId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-smart-id/complete")},completeSignatureEvrotrust:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/evrotrust-signature/complete")},completeSignatureHalcom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureDTrustSignMe:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureFrejaSimple:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/uanataca-qes-signature/complete")},completeOtp:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/non-qualified/complete")},eideasyMonitoring:function(t){var e=t.baseUrl;return"".concat(e,"/api/monitor")},startZealIdSignature:function(t){var e=t.baseUrl,n=t.clientId,r=t.docId;return"".concat(e,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(t){var e=t.baseUrl;return"".concat(e,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential")}},r),o=(n(t={},mo.production,bo({},So(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),n(t,mo.sandbox,bo({},So(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?mo.sandbox:mo.production;return o[t]}}},Co=u.eParakstsSmartCard,wo=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},_o=function(){var t=q(K().mark((function t(e){var n,r,i,o,a;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,Y(wo)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",Y(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ao=st(Co,_o),Oo=xn({moduleName:u.itsmeQesSignature,createModuleCreator:st}),xo=xn({moduleName:u.frIdentAdvancedSignature,createModuleCreator:st}),No=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_({rawSettings:t,schema:A}),n=G({currentLanguage:"en"}),r=To({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=F({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return C({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[pt,It,Ct,Ot,Ao,kt,Pt,Vt,Qt,Wt,te,ie,ue,pe,ve,be,Ce,Oe,Re,je,Ge,He,Ze],signingModules:[tn,un,gn,Sn,An,Nn,Dn,Rn,oi,kn,Ln,Pn,Bn,Gn,Hn,ti,ei,ci,di,li,pi,fi,yi,Ti,Di,Ri,ki,Bi,Gi,Qi,$i,io,oo,ao,so,uo,fo,yo,Oo,xo]})},Do=No}(),o}()}));
19
19
 
20
20
  /***/ }),
21
21
 
@@ -16592,6 +16592,92 @@ module.exports = {
16592
16592
 
16593
16593
  /***/ }),
16594
16594
 
16595
+ /***/ 94344:
16596
+ /***/ (function(module) {
16597
+
16598
+ module.exports = {
16599
+ functional: true,
16600
+ render(_h, _vm) {
16601
+ const {
16602
+ _c,
16603
+ _v,
16604
+ data,
16605
+ children = []
16606
+ } = _vm;
16607
+ const {
16608
+ class: classNames,
16609
+ staticClass,
16610
+ style,
16611
+ staticStyle,
16612
+ attrs = {},
16613
+ ...rest
16614
+ } = data;
16615
+ return _c('svg', {
16616
+ class: [classNames, staticClass],
16617
+ style: [style, staticStyle],
16618
+ attrs: Object.assign({
16619
+ "viewBox": "0 0 216 60",
16620
+ "fill": "none",
16621
+ "xmlns": "http://www.w3.org/2000/svg"
16622
+ }, attrs),
16623
+ ...rest
16624
+ }, children.concat([_c('path', {
16625
+ attrs: {
16626
+ "fill": "#000091",
16627
+ "d": "M0 0h216v60H0z"
16628
+ }
16629
+ }), _c('path', {
16630
+ attrs: {
16631
+ "d": "M74.085 26.3c.517 0 .998-.08 1.443-.237a3.332 3.332 0 001.147-.675c.321-.293.574-.644.76-1.055.186-.41.279-.864.279-1.359 0-.945-.293-1.67-.878-2.177a9.61 9.61 0 00-1.916-1.291 30.797 30.797 0 01-1.916-1.064c-.585-.354-.877-.846-.877-1.477 0-.483.166-.891.498-1.223.332-.332.773-.498 1.325-.498a2.6 2.6 0 011.409.396c.422.265.807.645 1.156 1.14l1.182-1.03a5.289 5.289 0 00-1.587-1.392c-.619-.355-1.345-.532-2.177-.532a3.67 3.67 0 00-1.376.253 3.411 3.411 0 00-1.089.684c-.303.287-.54.624-.709 1.012A3.038 3.038 0 0070.507 17c0 .934.293 1.654.878 2.16a9.619 9.619 0 001.916 1.292c.692.354 1.33.709 1.916 1.063.585.355.877.847.877 1.477 0 .54-.177.99-.532 1.35-.354.36-.852.54-1.493.54a3.184 3.184 0 01-1.561-.405c-.49-.27-.943-.663-1.36-1.181L70 24.358c.518.642 1.108 1.125 1.772 1.452.664.326 1.435.49 2.313.49zm6.65-7.613l1.738-4.524h-1.637l-1.434 4.524h1.333zm4.793-3.426a.95.95 0 00.71-.296.991.991 0 00.286-.717.971.971 0 00-.287-.7.95.95 0 00-.709-.296.977.977 0 00-.717.295.957.957 0 00-.295.7c0 .282.098.521.295.718a.977.977 0 00.717.296zm.71 10.718v-8.507h-1.435v8.507h1.434zm6.683.337a4.22 4.22 0 001.68-.329c.512-.22.959-.537 1.342-.954v.946h1.434v-12.66h-1.434v5.098a3.885 3.885 0 00-1.342-.954 4.22 4.22 0 00-1.68-.329c-.664 0-1.266.124-1.806.371-.54.248-.998.58-1.375.996-.377.417-.67.903-.878 1.46a4.996 4.996 0 00-.312 1.764c0 .619.104 1.207.312 1.764.208.557.5 1.044.878 1.46a4.18 4.18 0 001.375.996c.54.247 1.142.371 1.806.371zm.169-1.35c-.45 0-.861-.085-1.232-.253a2.87 2.87 0 01-.954-.692 3.156 3.156 0 01-.616-1.03 3.608 3.608 0 01-.22-1.266c0-.45.074-.872.22-1.266.147-.394.352-.737.616-1.03.265-.292.583-.523.954-.691a2.941 2.941 0 011.232-.254 3.3 3.3 0 011.604.405c.495.27.911.664 1.249 1.182v3.308a3.456 3.456 0 01-1.233 1.173 3.274 3.274 0 01-1.62.414zm11.224 1.35c.788 0 1.494-.157 2.119-.473a4.268 4.268 0 001.527-1.265l-1.063-.827a3.117 3.117 0 01-2.549 1.265c-.945 0-1.713-.306-2.304-.92-.59-.613-.886-1.386-.886-2.32v-.034h6.515c.023-.113.045-.25.068-.414a3.984 3.984 0 00-.236-1.975 3.345 3.345 0 00-.768-1.172 3.555 3.555 0 00-1.207-.768 4.26 4.26 0 00-1.57-.279c-.653 0-1.246.118-1.781.355-.534.236-.984.56-1.35.97-.366.41-.65.898-.852 1.46a5.28 5.28 0 00-.304 1.806c0 .619.107 1.207.321 1.764.213.557.52 1.044.919 1.46.4.416.889.748 1.469.996.579.247 1.224.371 1.932.371zm2.009-5.705h-5.047c.169-.731.49-1.288.962-1.67.473-.383 1.052-.575 1.739-.575.698 0 1.257.223 1.679.667.422.444.645.97.667 1.578zm5.317 5.368v-5.891c.27-.45.61-.83 1.021-1.14.411-.309.92-.464 1.528-.464.652 0 1.175.211 1.569.633.394.422.591 1.01.591 1.764v5.098h1.452V20.83c0-1.204-.318-2.122-.954-2.752-.636-.63-1.426-.945-2.372-.945-.63 0-1.173.121-1.628.363a4.436 4.436 0 00-1.207.937v-.962h-1.435v8.507h1.435zm12.49.168c.304 0 .574-.02.81-.059.237-.04.456-.098.659-.177v-1.283a2.363 2.363 0 01-.541.152 4.48 4.48 0 01-.725.05c-.518 0-.931-.117-1.241-.354-.309-.236-.464-.686-.464-1.35v-4.338h2.954v-1.316h-2.954v-2.127h-1.452v2.127h-1.603v1.316h1.603v4.338c0 1.035.256 1.798.768 2.287.512.49 1.241.734 2.186.734zm4.372-10.886a.95.95 0 00.709-.296.993.993 0 00.287-.717.972.972 0 00-.287-.7.95.95 0 00-.709-.296.977.977 0 00-.718.295.956.956 0 00-.295.7c0 .282.098.521.295.718a.977.977 0 00.718.296zm.709 10.718v-8.507h-1.435v8.507h1.435zm4.979 0v-7.19h2.954v-1.317h-2.954v-1.08c0-.552.149-.985.447-1.3.298-.315.678-.473 1.139-.473.293 0 .543.054.752.16.208.107.385.245.531.414l.895-1.046a2.784 2.784 0 00-.929-.6 3.315 3.315 0 00-1.265-.228c-.912 0-1.643.29-2.195.87-.551.58-.827 1.325-.827 2.236v1.047h-1.603v1.316h1.603v7.19h1.452zm5.435-10.718a.95.95 0 00.709-.296.993.993 0 00.287-.717.972.972 0 00-.287-.7.95.95 0 00-.709-.296.977.977 0 00-.718.295.96.96 0 00-.295.7c0 .282.099.521.295.718a.977.977 0 00.718.296zm.709 10.718v-8.507h-1.435v8.507h1.435zm6.954.337c.787 0 1.493-.157 2.118-.473a4.263 4.263 0 001.528-1.265l-1.064-.827a3.117 3.117 0 01-2.549 1.265c-.945 0-1.713-.306-2.303-.92-.591-.613-.887-1.386-.887-2.32v-.034h6.516a7.17 7.17 0 00.067-.414 3.984 3.984 0 00-.236-1.975 3.345 3.345 0 00-.768-1.172 3.546 3.546 0 00-1.207-.768 4.26 4.26 0 00-1.57-.279c-.652 0-1.246.118-1.78.355-.535.236-.985.56-1.351.97-.365.41-.65.898-.852 1.46a5.28 5.28 0 00-.304 1.806c0 .619.107 1.207.321 1.764.214.557.52 1.044.92 1.46.399.416.889.748 1.468.996.58.247 1.224.371 1.933.371zm2.008-5.705h-5.046c.168-.731.489-1.288.962-1.67.472-.383 1.052-.575 1.738-.575.698 0 1.258.223 1.68.667.422.444.644.97.666 1.578zm5.317 5.368v-5.773c.259-.428.58-.774.962-1.038.383-.264.85-.397 1.401-.397.169 0 .321.012.456.034.135.023.264.05.388.085v-1.486a1.859 1.859 0 00-.338-.076 2.858 2.858 0 00-.388-.025c-.54 0-1.01.112-1.409.337-.4.226-.757.524-1.072.895v-1.063h-1.435v8.507h1.435zm12.153.337c.574 0 1.114-.124 1.62-.371a3.185 3.185 0 001.232-1.047v1.08h1.435v-5.705c0-.933-.304-1.69-.911-2.27-.608-.58-1.452-.869-2.532-.869-.743 0-1.407.146-1.992.439a3.931 3.931 0 00-1.435 1.198l1.081.827c.247-.37.571-.66.97-.869.4-.208.847-.312 1.342-.312.596 0 1.086.163 1.468.49.383.326.574.781.574 1.366v.591l-2.852.473c-.912.146-1.607.444-2.085.895a2.184 2.184 0 00-.717 1.654c0 .742.259 1.333.776 1.772.518.439 1.193.658 2.026.658zm.236-1.198c-.484 0-.872-.124-1.165-.372-.292-.247-.438-.551-.438-.911 0-.371.137-.686.413-.945.276-.26.706-.434 1.291-.524l2.515-.438v1.62a3.43 3.43 0 01-1.105 1.148 2.766 2.766 0 01-1.511.422zm10.802.86l3.326-8.506h-1.553l-2.718 7.004-2.717-7.004h-1.553l3.325 8.507h1.89zm8.862.338c.787 0 1.494-.157 2.118-.473a4.263 4.263 0 001.528-1.265l-1.064-.827a3.117 3.117 0 01-2.548 1.265c-.946 0-1.714-.306-2.304-.92-.591-.613-.887-1.386-.887-2.32v-.034h6.516a7.17 7.17 0 00.067-.414 3.984 3.984 0 00-.236-1.975 3.345 3.345 0 00-.768-1.172 3.546 3.546 0 00-1.207-.768 4.26 4.26 0 00-1.57-.279c-.652 0-1.246.118-1.78.355-.535.236-.985.56-1.351.97-.365.41-.649.898-.852 1.46a5.28 5.28 0 00-.304 1.806c0 .619.107 1.207.321 1.764.214.557.52 1.044.92 1.46.399.416.889.748 1.468.996.58.247 1.224.371 1.933.371zm2.008-5.705h-5.046c.168-.731.489-1.288.962-1.67.472-.383 1.052-.575 1.738-.575.698 0 1.258.223 1.68.667.422.444.644.97.666 1.578zm7.748 5.705c.776 0 1.468-.157 2.076-.473A4.331 4.331 0 00200 24.578l-1.148-.878a2.9 2.9 0 01-1.012.92c-.417.23-.884.346-1.401.346a3.074 3.074 0 01-2.254-.937 3.138 3.138 0 01-.65-1.03 3.453 3.453 0 01-.236-1.274 3.387 3.387 0 01.878-2.295c.27-.293.599-.524.987-.692a3.121 3.121 0 011.258-.254 2.89 2.89 0 012.43 1.266l1.148-.877a4.464 4.464 0 00-1.511-1.258c-.613-.32-1.302-.48-2.067-.48a4.77 4.77 0 00-1.908.37c-.573.248-1.06.58-1.46.996a4.43 4.43 0 00-.928 1.46 4.777 4.777 0 00-.329 1.764c0 .619.11 1.207.329 1.764a4.43 4.43 0 00.928 1.46c.4.416.887.748 1.46.996.574.247 1.21.371 1.908.371zM72.56 45.018v-5.335h4.073v-2.181H72.56v-2.92h4.794V32.4H70v12.617h2.56zm8.652 0v-5.696c.168-.276.435-.54.802-.793.367-.252.826-.378 1.379-.378.204 0 .388.012.55.036.162.024.315.054.46.09v-2.398a2.426 2.426 0 00-.793-.126c-.517 0-.971.105-1.362.316-.39.21-.736.465-1.036.766v-.901h-2.29v9.084h2.29zm7.192.36c.529 0 1.04-.11 1.532-.333.493-.222.883-.513 1.172-.874v.847h2.307v-5.876c0-.493-.084-.958-.252-1.397a3.099 3.099 0 00-.748-1.136 3.553 3.553 0 00-1.253-.757c-.505-.186-1.082-.279-1.73-.279-.818 0-1.554.162-2.209.487a4.344 4.344 0 00-1.595 1.316l1.695 1.28a2.07 2.07 0 01.838-.803c.354-.186.754-.28 1.198-.28.517 0 .938.142 1.262.425.325.282.487.663.487 1.144v.234l-2.74.47c-.973.155-1.721.486-2.244.99-.523.505-.784 1.1-.784 1.785 0 .853.285 1.526.856 2.019.57.493 1.307.739 2.208.739zm.469-1.838c-.385 0-.691-.096-.92-.288a.905.905 0 01-.342-.721c0-.288.105-.529.315-.721.21-.192.556-.33 1.037-.415l2.145-.378v1.243a2.862 2.862 0 01-.901.92c-.373.24-.818.36-1.334.36zm9.445 1.478v-5.93c.168-.288.418-.586.748-.892.331-.307.784-.46 1.361-.46.553 0 .988.177 1.307.532.318.354.478.832.478 1.433v5.317h2.325v-5.407c0-.673-.093-1.262-.28-1.767a3.629 3.629 0 00-.757-1.261 3.074 3.074 0 00-1.117-.758 3.726 3.726 0 00-1.379-.252c-.601 0-1.121.105-1.559.316a4.28 4.28 0 00-1.127.766v-.721h-2.289v9.084h2.289zm13.177.36c.829 0 1.571-.167 2.226-.504a4.673 4.673 0 001.613-1.334l-1.82-1.388a2.573 2.573 0 01-.839.766 2.311 2.311 0 01-1.18.298c-.757 0-1.385-.258-1.884-.775-.499-.517-.748-1.172-.748-1.965 0-.793.246-1.448.739-1.965.493-.517 1.112-.775 1.857-.775.468 0 .874.1 1.216.297.343.199.622.454.839.767l1.82-1.388a4.673 4.673 0 00-1.613-1.334c-.655-.337-1.397-.505-2.226-.505-.781 0-1.484.132-2.109.397a4.673 4.673 0 00-1.577 1.063 4.605 4.605 0 00-.983 1.56 5.218 5.218 0 00-.342 1.883c0 .66.114 1.289.342 1.884.228.595.556 1.114.983 1.559.426.445.952.799 1.577 1.063.625.265 1.328.397 2.109.397zm9.589 0c.854 0 1.623-.164 2.308-.495a4.42 4.42 0 001.658-1.343l-1.64-1.297a2.63 2.63 0 01-.956.784 2.939 2.939 0 01-1.334.297c-.769 0-1.4-.21-1.892-.63-.493-.422-.775-1.004-.848-1.75h6.363a5.902 5.902 0 00.145-1.297c0-1.19-.385-2.166-1.154-2.93-.769-.762-1.778-1.144-3.028-1.144-.745 0-1.406.13-1.983.388a4.254 4.254 0 00-1.46 1.054c-.397.445-.7.964-.91 1.56a5.646 5.646 0 00-.316 1.901c0 .66.111 1.289.334 1.884a4.49 4.49 0 00.973 1.559c.427.445.955.799 1.586 1.063.631.265 1.349.397 2.154.397zm1.532-6.164h-4.091c.156-.589.42-1.024.793-1.307.372-.282.835-.423 1.388-.423.601 0 1.066.177 1.397.532.33.354.501.754.513 1.198zm10.69 6.165c1.141 0 2.169-.234 3.082-.703a6.313 6.313 0 002.235-1.875l-2.019-1.55c-.36.517-.82.934-1.379 1.253-.558.318-1.198.477-1.919.477a4.027 4.027 0 01-1.641-.333 3.905 3.905 0 01-1.289-.901 4.2 4.2 0 01-.838-1.352 4.595 4.595 0 01-.306-1.686c0-.6.102-1.162.306-1.685.205-.523.484-.973.838-1.352a3.902 3.902 0 011.289-.901 4.027 4.027 0 011.641-.334c.721 0 1.361.16 1.919.478a4.176 4.176 0 011.379 1.253l2.019-1.568c-.577-.757-1.322-1.373-2.235-1.848-.913-.475-1.941-.712-3.082-.712-.986 0-1.893.18-2.722.54a6.659 6.659 0 00-2.127 1.443 6.362 6.362 0 00-1.37 2.118 6.842 6.842 0 00-.487 2.569c0 .9.162 1.757.487 2.568a6.36 6.36 0 001.37 2.118 6.66 6.66 0 002.127 1.442c.829.36 1.736.54 2.722.54zm11.374 0c.733 0 1.406-.13 2.019-.388a4.9 4.9 0 001.577-1.045 4.59 4.59 0 001.018-1.56c.241-.6.361-1.237.361-1.91 0-.673-.12-1.31-.361-1.91-.24-.602-.58-1.121-1.018-1.56a4.898 4.898 0 00-1.577-1.045 5.146 5.146 0 00-2.019-.388c-.733 0-1.406.13-2.019.388a4.877 4.877 0 00-1.577 1.045 4.59 4.59 0 00-1.019 1.56c-.24.6-.36 1.237-.36 1.91 0 .673.12 1.31.36 1.91.241.601.58 1.121 1.019 1.56.438.439.964.787 1.577 1.045a5.148 5.148 0 002.019.388zm.036-2.163c-.757 0-1.385-.258-1.884-.775-.499-.517-.748-1.172-.748-1.965 0-.793.249-1.448.748-1.965.499-.517 1.127-.775 1.884-.775.721 0 1.328.259 1.82.775.493.517.739 1.172.739 1.965 0 .781-.246 1.433-.739 1.956a2.4 2.4 0 01-1.82.784zm9.319 1.802v-5.93c.168-.288.418-.586.748-.892.33-.307.784-.46 1.361-.46.553 0 .988.177 1.307.532.318.354.477.832.477 1.433v5.317h2.326v-5.407c0-.673-.093-1.262-.28-1.767a3.629 3.629 0 00-.757-1.261 3.074 3.074 0 00-1.117-.758 3.73 3.73 0 00-1.379-.252c-.601 0-1.121.105-1.559.316-.439.21-.815.465-1.127.766v-.721h-2.289v9.084h2.289zm11.104 0v-5.93c.168-.288.417-.586.748-.892.33-.307.784-.46 1.361-.46.552 0 .988.177 1.306.532.319.354.478.832.478 1.433v5.317h2.325v-5.407c0-.673-.093-1.262-.279-1.767a3.644 3.644 0 00-.757-1.261 3.069 3.069 0 00-1.118-.758 3.722 3.722 0 00-1.379-.252c-.6 0-1.12.105-1.559.316-.438.21-.814.465-1.126.766v-.721h-2.29v9.084h2.29zm13.212.36c.854 0 1.623-.164 2.308-.495a4.42 4.42 0 001.658-1.343l-1.64-1.297a2.63 2.63 0 01-.956.784 2.939 2.939 0 01-1.334.297c-.769 0-1.4-.21-1.892-.63-.493-.422-.775-1.004-.847-1.75h6.363a6.257 6.257 0 00.144-1.297c0-1.19-.385-2.166-1.154-2.93-.769-.762-1.778-1.144-3.028-1.144-.745 0-1.406.13-1.983.388a4.264 4.264 0 00-1.46 1.054c-.397.445-.7.964-.91 1.56a5.646 5.646 0 00-.316 1.901c0 .66.111 1.289.334 1.884a4.49 4.49 0 00.973 1.559c.427.445.955.799 1.586 1.063.631.265 1.349.397 2.154.397zm1.533-6.164h-4.092c.156-.589.42-1.024.793-1.307.372-.282.835-.423 1.388-.423.601 0 1.066.177 1.397.532.33.354.502.754.514 1.198zm8.796 6.165c.829 0 1.571-.168 2.226-.505a4.673 4.673 0 001.613-1.334l-1.82-1.388a2.57 2.57 0 01-.838.766 2.315 2.315 0 01-1.181.298c-.757 0-1.385-.258-1.884-.775-.498-.517-.748-1.172-.748-1.965 0-.793.247-1.448.739-1.965.493-.517 1.112-.775 1.857-.775.469 0 .874.1 1.217.297.342.199.622.454.838.767l1.82-1.388a4.673 4.673 0 00-1.613-1.334c-.655-.337-1.397-.505-2.226-.505-.781 0-1.484.132-2.109.397a4.673 4.673 0 00-1.577 1.063 4.62 4.62 0 00-.983 1.56 5.218 5.218 0 00-.342 1.883c0 .66.114 1.289.342 1.884a4.62 4.62 0 00.983 1.559c.426.445.952.799 1.577 1.063.625.265 1.328.397 2.109.397zm9.572-.18c.372 0 .7-.024.982-.072.282-.049.538-.12.766-.217v-2c-.156.06-.342.108-.559.144a4.91 4.91 0 01-.793.054c-.445 0-.796-.108-1.054-.325-.259-.216-.388-.577-.388-1.081v-3.677h2.776v-2.091h-2.776v-2.272h-2.307v2.272h-1.695v2.09h1.695v3.678c0 1.105.276 1.965.829 2.577.553.613 1.394.92 2.524.92zM35.365 4.867c-.243-.144-.679-.144-.921 0L13.212 17.06a.98.98 0 00-.436.771V42.17c0 .289.194.626.436.77l21.232 12.194c.242.144.678.144.92 0L56.598 42.94a.98.98 0 00.436-.771V17.83a.98.98 0 00-.436-.77L35.365 4.866z",
16632
+ "fill": "#fff"
16633
+ }
16634
+ }), _c('path', {
16635
+ attrs: {
16636
+ "d": "M34.872 49.678l-16.59-9.52c-.193-.097-.338-.387-.338-.58V20.826c0-.242.145-.483.338-.58l16.59-9.694",
16637
+ "fill": "#0063CB"
16638
+ }
16639
+ }), _c('path', {
16640
+ attrs: {
16641
+ "d": "M17.946 39.493l-.002-18.777c0-.242.145-.484.338-.58l16.59-9.583",
16642
+ "fill": "#000091"
16643
+ }
16644
+ }), _c('path', {
16645
+ attrs: {
16646
+ "fill-rule": "evenodd",
16647
+ "clip-rule": "evenodd",
16648
+ "d": "M28.945 20.711l-5.564 9.54-5.042-10.15 5.964-3.445 4.966 3.494-.324.561z",
16649
+ "fill": "#E1000F"
16650
+ }
16651
+ }), _c('path', {
16652
+ attrs: {
16653
+ "d": "M34.87 49.679l16.592-9.634c.193-.096.338-.386.338-.58V20.738a.67.67 0 00-.338-.579l-16.59-9.606",
16654
+ "fill": "#000091"
16655
+ }
16656
+ }), _c('path', {
16657
+ attrs: {
16658
+ "d": "M51.8 39.493V20.73a.669.669 0 00-.338-.579l-16.59-9.598",
16659
+ "fill": "#E1000F"
16660
+ }
16661
+ }), _c('path', {
16662
+ attrs: {
16663
+ "fill-rule": "evenodd",
16664
+ "clip-rule": "evenodd",
16665
+ "d": "M40.355 19.951l5.96 10.22 4.967-10.124-6.041-3.495-4.886 3.4z",
16666
+ "fill": "#0063CB"
16667
+ }
16668
+ }), _c('path', {
16669
+ attrs: {
16670
+ "fill-rule": "evenodd",
16671
+ "clip-rule": "evenodd",
16672
+ "d": "M41.16 19.567c.39.195.751.446 1.002.837.11.167.25.474.167.698-.112.25-.167.697-.418.78-.306.168-.724.168-1.113.112-.223 0-.418-.055-.64-.111.779.307 1.53.697 2.06 1.423.055.111.25.167.472.167.056 0 .056.112.056.168-.111.111-.223.167-.167.306h.167c.25-.111.223-.641.584-.474.251.168.362.53.223.782-.223.223-.417.362-.64.53a.414.414 0 000 .362c.167.224.223.419.25.642.167.363.223.781.363 1.172.222.781.417 1.59.361 2.372 0 .418-.222.78-.055 1.2.11.418.361.725.584 1.115.223.308.417.53.584.838.068.117.15.235.234.354l.083.119c.263.378.5.769.324 1.2-.167.364-.724.308-1.114.53-.306.252-.055.699.111.95.251.474-.305.78-.695.948.111.168.306.112.361.223.056.251.307.419.168.698-.064.088-.16.164-.256.24l-.073.056c-.214.17-.397.347-.2.653.222.363.083.78-.056 1.172-.167.474-.584.697-.946.781-.306.111-.696.111-1.002.056-.111-.056-.223-.112-.306-.112-.891-.112-1.782-.363-2.672-.363-.25.056-.529.112-.724.196-.25.167-.445.362-.64.558-.028.056-.084.083-.111.14-.028.027-.056.055-.056.083l-.016.016-.023.023-.017.017c-.166.195-.278.39-.417.613 0 .028-.028.028-.028.028 0 .028-.028.056-.055.084a4.197 4.197 0 00-.39.977c-.362 1.2-.195 2.232.055 2.483.167.168 2.172.788 3.934 1.364-3.08 2.567-5.569 3.85-7.468 3.85-2.622 0-7.02-1.738-13.194-5.216 1.494 0 1.282.598 2.673-.098.668-.278 2.171-.974 2.672-1.475.306-.306.612-.612.89-.946a17.658 17.658 0 011.754-1.78c.195-.167.39-.334.585-.446.055-.056.055-.167.111-.222-.25.11-.418.306-.696.417-.056 0-.111-.056-.056-.111.195-.14.39-.278.557-.418h-.028c-.055 0-.055-.055-.055-.111-.696-.111-1.197.362-1.67.779-.112.056-.223-.055-.25-.055-.78.25-1.365.946-2.144 1.252v-.112c-.306.112-.612.306-.946.362-.473.111-.89.056-1.308.056-.64.055-1.28.195-1.92.334-.029 0-.029 0-.056.027a4.187 4.187 0 00-.974.39l-.028.028-.084.083c-.111.111-.222.25-.362.306-.333.167-.584.446-.862.696-.028.028-.056.028-.084.028-.278.278.056-.557.362-.752-.028 0-.084-.027-.056-.055.028-.056.056-.084.084-.14 0-.027 0-.027.027-.055l-.004-.016-.019-.023a.028.028 0 01-.004-.016l-.25.166c-.14.112-.084-.528.055-.611h-.028c.195-.112.418-.223.613-.335l.083-.083c-.306.111-.557.25-.835.417 0 0 0-.194.084-.278.055 0 .111 0 .111.056 1.01-.778 2.235-.985 3.473-1.165l.338-.05c.731-.106 1.46-.22 2.145-.455.167-.111.306-.222.473-.306.25-.111.473-.362.78-.529.417-.306.723-.695.89-1.196 0-.056-.055-.111-.055-.111a8.502 8.502 0 01-2.31 1.725c-1.114.584-2.31.473-3.48.64.056-.112.167-.112.25-.112 0-.166.112-.222.223-.306h.168c.055 0 .055-.11.11-.11.112 0 .279-.056.223-.056-.167-.223-.473.166-.723 0 .11-.112.055-.251.167-.307h.223c0-.11.11-.222.11-.222.78-.473 1.532-.835 2.255-1.252-.167 0-.25.167-.418.055.112 0 0-.167.112-.167.584-.166 1.058-.473 1.642-.695-.223 0-.362.167-.584 0 .11-.056.166-.167.306-.167v-.167c0-.056.055-.056.111-.056-.055 0-.111-.055-.111-.055.055-.112.223-.056.306-.167-.056 0-.167 0-.167-.056.167-.223.417-.25.696-.306-.056-.111-.223 0-.223-.111 0-.048.04-.055.088-.056h-.088c-.111-.056-.056-.167-.056-.223.306-.361.306-.835.474-1.252-.056 0-.112 0-.112-.055-.529.584-1.364.779-2.143 1.001h-.362c-.25.111-.64.111-.89-.056-.223-.11-.307-.25-.53-.417a7.111 7.111 0 00-1.307-.64c-1.308-.417-2.672-.64-4.036-.584.584-.306 1.225-.334 1.837-.529.89-.25 1.726-.584 2.672-.529-.167-.055-.362 0-.529 0-.724-.055-1.475.167-2.255.307-.528.11-1.002.306-1.53.417-.306.111-.473.417-.835.362v-.167c.529-.64 1.169-1.252 2.004-1.308.946-.167 1.837 0 2.783.111.696.056 1.308.223 2.004.362.25 0 .306.417.529.473.306.111.64 0 .946.222 0-.11-.056-.222 0-.305.223-.223.473.055.696-.056.417-.25-.362-.724-.585-1.113 0-.056.056-.111.056-.111.417.361.724.779 1.253 1.057.25.111.89.25.779-.056-.25-.584-.78-1.057-1.225-1.586v-.222c-.11 0-.11-.056-.167-.112v-.222c-.223-.112-.167-.306-.25-.473-.167-.25-.056-.64-.167-.946a5.162 5.162 0 01-.223-.89c-.167-.891-.362-1.67-.473-2.533-.111-1.002.584-1.78 1.057-2.671.362-.64.78-1.252 1.476-1.67.167-.64.584-1.168 1.001-1.67.418-.5 1.114-.834 1.615-1.057a9.119 9.119 0 011.382-.525l.01-.003c.514-.226 7.267-1.643 10.548 0 .07.035.056 0 .278.14.25.139.557.306.752.39zM15.677 34.828a.525.525 0 01-.412.517c.412.109.823.109 1.235.3-.055.108-.164.054-.22.054.248.163.577.054.825.245-.165.163-.302 0-.467 0 1.62.462 3.321.816 4.667 1.85-1.153.571-2.334.816-3.569 1.088-.165 0-.247 0-.412-.055 0 .055 0 .163-.055.163-.22 0-.357 0-.521.11-.193.163-.494.217-.66.054-.054-.055.166 0 .22-.109h-.411c-.055 0-.055-.055-.055-.109-.248.054-.577.163-.824.218-.357.108-.192-1.66.055-1.769-.055-.054-.165-.054-.165-.163-.22 0-.302-.544-.165-.571.22-.055.467-.055.632-.218-.357-.054-.467-1.333.137-1.66.055 0 .165 0 .165.055zm2.391 4.806c-.333.34-.75.186-1.11.34-.11 0-.305.063-.25-.061.036-.175.19-.24.354-.294l.1-.033c.065-.022.13-.045.185-.076.11-.062.25-.186.36-.124.111.186.25.124.361.248zm-1.889-7.128c-.055 0-.112 0-.168-.056.056-.056.056-.112.056-.168-.532.588-1.736.392-.616-.14.42-.168.952-.112 1.372.056-.168.224-.42.168-.644.308zm25.633-3.497a4.55 4.55 0 01-.146.028c-.255 0-.539.165-.794.22-.369.11-.709.301-1.02.52.368-.164.736-.219 1.162-.301.312-.055.567-.11.907-.055.227.055.54.055.54.165-.114.411-.738.52-1.078.932h-.17c-.17.11-.114.357-.256.357-.17-.055-.312 0-.482.055.227.22.482.356.794.301.057 0 .17.11.17.22 0 0 .057 0 .114-.055.056 0 .113 0 .113.055v.219c-.102.131-.235.145-.373.146h-.094a.8.8 0 00-.185.018c.425.11.85.11 1.247 0 .313-.11 0-.63.228-.877-.114 0 0-.165-.114-.165.114-.11.227-.247.312-.301.113 0 .255-.055.312-.165 0-.11-.227-.164-.17-.246.312-.22.596-.521.482-.823-.057-.165-.482-.165-.737-.274-.177-.076-.394-.047-.615-.004l-.148.03z",
16673
+ "fill": "#fff"
16674
+ }
16675
+ })]));
16676
+ }
16677
+ };
16678
+
16679
+ /***/ }),
16680
+
16595
16681
  /***/ 37069:
16596
16682
  /***/ (function(module) {
16597
16683
 
@@ -17243,7 +17329,7 @@ module.exports = {
17243
17329
  ...rest
17244
17330
  }, children.concat([_c('defs', [_c('linearGradient', {
17245
17331
  attrs: {
17246
- "id": "id-3a",
17332
+ "id": "id-0a",
17247
17333
  "x1": "124.883",
17248
17334
  "y1": "17.983",
17249
17335
  "x2": "117.483",
@@ -17272,7 +17358,7 @@ module.exports = {
17272
17358
  }
17273
17359
  })]), _c('linearGradient', {
17274
17360
  attrs: {
17275
- "id": "id-4b",
17361
+ "id": "id-1b",
17276
17362
  "x1": "116.71",
17277
17363
  "y1": "31.343",
17278
17364
  "x2": "102.594",
@@ -17301,7 +17387,7 @@ module.exports = {
17301
17387
  }
17302
17388
  })]), _c('linearGradient', {
17303
17389
  attrs: {
17304
- "id": "id-5c",
17390
+ "id": "id-2c",
17305
17391
  "x1": "106.335",
17306
17392
  "y1": "23.516",
17307
17393
  "x2": "140.192",
@@ -17325,18 +17411,18 @@ module.exports = {
17325
17411
  }
17326
17412
  }), _c('path', {
17327
17413
  attrs: {
17328
- "fill": "url(#id-3a)",
17414
+ "fill": "url(#id-0a)",
17329
17415
  "d": "M126.585 16.359l-6.919 4.057V1.094l6.919 6.917v8.348z"
17330
17416
  }
17331
17417
  }), _c('path', {
17332
17418
  attrs: {
17333
- "fill": "url(#id-4b)",
17419
+ "fill": "url(#id-1b)",
17334
17420
  "d": "M106.335 11.382h6.634v23.101h-6.634z"
17335
17421
  }
17336
17422
  }), _c('path', {
17337
17423
  attrs: {
17338
17424
  "d": "M140.191 13.257a.789.789 0 00-.2-.505.935.935 0 00-.82-.191 42.336 42.336 0 00-32.84 21.922h6.634c7.037-12.392 17.369-17.99 26.691-20.609.416-.138.544-.391.535-.617z",
17339
- "fill": "url(#id-5c)"
17425
+ "fill": "url(#id-2c)"
17340
17426
  }
17341
17427
  }), _c('path', {
17342
17428
  attrs: {
@@ -18293,7 +18379,7 @@ module.exports = {
18293
18379
  ...rest
18294
18380
  }, children.concat([_c('defs', [_c('linearGradient', {
18295
18381
  attrs: {
18296
- "id": "id-0a",
18382
+ "id": "id-3a",
18297
18383
  "x1": "45.313%",
18298
18384
  "x2": "33.822%",
18299
18385
  "y1": "69.296%",
@@ -18311,7 +18397,7 @@ module.exports = {
18311
18397
  }
18312
18398
  })]), _c('linearGradient', {
18313
18399
  attrs: {
18314
- "id": "id-2c",
18400
+ "id": "id-5c",
18315
18401
  "x1": "17.248%",
18316
18402
  "x2": "58.688%",
18317
18403
  "y1": "34.281%",
@@ -18329,7 +18415,7 @@ module.exports = {
18329
18415
  }
18330
18416
  })]), _c('path', {
18331
18417
  attrs: {
18332
- "id": "id-1b",
18418
+ "id": "id-4b",
18333
18419
  "d": "M75.617 68.105a21.83 21.83 0 002.601 5.096c9.291 13.456 23.041 10.092 28.616 9.344 5.574-.747 13.007-1.121 17.094 2.243 4.088 3.364 6.352 6.033 14.441 8.532 2.602.373 1.911 1.185.796 1.933-8.547 5.606-15.608 3.737-24.527 0-8.92-3.738-12.264-.748-18.21 0-19.325 2.99-35.676 1.121-49.055-5.606a46.935 46.935 0 01-2.198-1.804c-3.08 3.497-5.197 5.593-6.35 6.289-1.857 1.12-8.546 4.11-17.094 4.11-5.698 0-10.53-.622-14.493-1.868-3.634-1.163-5.616-1.91-5.946-2.242-.744-.748-1.292-2.03 2.742-2.435 14.52-1.922 27.079-6.737 32.47-14.862-2.721-5.544-3.682-11.738-2.88-18.584C35.38 43.895 40.09 42 51.232 30.431c7.665-8.521 1.458-17.002-1.547-20.327a304.822 304.822 0 01-1.301-1.454c-1.174-1.359-1.17-1.35-2.76-.563a299.293 299.293 0 01-4.228 2.039c-.25.117-.938.46-.842.097.214-.822 6.12-3.842 6.014-4.07-.106-.23-7.504 1.596-7.67 1.608-.165.013-.315-.439-.108-.51.206-.076 2.191-.754 3.292-1.119 1.094-.362 3.5-1.141 3.283-1.262-.216-.124-8.341-.632-8.458-.64-.03-.002-.052-.028-.067-.066v-.297c.015-.038.039-.066.07-.073 1.92-.462 8.359-.207 8.507-.363.148-.157-.193-1.103-.231-1.657-.069-1.026.35-1.762 1.12-1.774h.04c.092.001.19.013.292.036 1.866.41 3.704 1.01 5.535 1.605 1.665.54 2.59.639 3.883.313 1.292-.326 2.034-.737 3.231-.651 4.516.009 9.529 2.096 14.536 6s12.49 16.84 9.198 25.28c-4.97 12.74-5.177 10.025-7.662 17.126-.18.814-.354 1.581-.517 2.312-.919 4.871-1.048 10.056.381 14.88.044.117.09.234.136.352.12.309.206.593.257.852z"
18334
18420
  }
18335
18421
  })]), _c('g', {
@@ -18344,12 +18430,12 @@ module.exports = {
18344
18430
  }
18345
18431
  }), _c('use', {
18346
18432
  attrs: {
18347
- "fill": "url(#id-0a)",
18348
- "xlink:href": "#id-1b"
18433
+ "fill": "url(#id-3a)",
18434
+ "xlink:href": "#id-4b"
18349
18435
  }
18350
18436
  }), _c('path', {
18351
18437
  attrs: {
18352
- "fill": "url(#id-2c)",
18438
+ "fill": "url(#id-5c)",
18353
18439
  "d": "M140.16 94.148c-9.194 1.408-11.705 1.1-14.296-.017-5.142-2.01-9.086-7.663-25.24-5.574-16.152 2.089-46.802-2.089-54.671-15.873-5.247-9.19-.586-18.872 13.981-29.046 5.452-3.472 9.006-9.315 10.663-17.53C72.25 17.904 64.062 9.215 46.03.039A1.13 1.13 0 0146.308 0h.038c.093.001.19.013.293.036 1.866.41 3.704 1.01 5.535 1.605 1.665.54 2.59.639 3.883.313 1.292-.326 2.034-.737 3.231-.651 4.516.009 9.529 2.096 14.536 6s12.49 16.84 9.198 25.28c-4.97 12.74-5.177 10.025-7.662 17.126-.18.814-.354 1.581-.517 2.312-.919 4.871-1.048 10.056.381 14.88.044.117.09.234.136.352.12.309.206.593.257.852a21.83 21.83 0 002.601 5.096c9.291 13.456 23.041 10.092 28.616 9.344 5.574-.747 13.007-1.121 17.094 2.243 4.088 3.364 6.352 6.033 14.441 8.532 1.303.187 1.78.484 1.792.828z"
18354
18440
  }
18355
18441
  }), _c('g', {
@@ -21346,6 +21432,33 @@ ___CSS_LOADER_EXPORT___.locals = {
21346
21432
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21347
21433
 
21348
21434
 
21435
+ /***/ }),
21436
+
21437
+ /***/ 5656:
21438
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21439
+
21440
+ "use strict";
21441
+ __webpack_require__.r(__webpack_exports__);
21442
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8081);
21443
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
21444
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23645);
21445
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
21446
+ // Imports
21447
+
21448
+
21449
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21450
+ // Module
21451
+ ___CSS_LOADER_EXPORT___.push([module.id, ".FranceConnectButton_reset-list_l5wLm{margin:0;padding:0;list-style:none;display:block}.FranceConnectButton_uppercase-sm_a2Rx_{font-size:12px;text-transform:uppercase;letter-spacing:.03667em}.FranceConnectButton_icon_ZRzsI{display:block;width:188px;height:46px}.FranceConnectButton_methodButton_daSgd{background:#04048d}", ""]);
21452
+ // Exports
21453
+ ___CSS_LOADER_EXPORT___.locals = {
21454
+ "reset-list": "FranceConnectButton_reset-list_l5wLm",
21455
+ "uppercase-sm": "FranceConnectButton_uppercase-sm_a2Rx_",
21456
+ "icon": "FranceConnectButton_icon_ZRzsI",
21457
+ "methodButton": "FranceConnectButton_methodButton_daSgd"
21458
+ };
21459
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21460
+
21461
+
21349
21462
  /***/ }),
21350
21463
 
21351
21464
  /***/ 21073:
@@ -24347,6 +24460,22 @@ var update = add("e11f0950", content, true, {"sourceMap":false,"shadowMode":fals
24347
24460
 
24348
24461
  /***/ }),
24349
24462
 
24463
+ /***/ 96729:
24464
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
24465
+
24466
+ // style-loader: Adds some css to the DOM by adding a <style> tag
24467
+
24468
+ // load the styles
24469
+ var content = __webpack_require__(5656);
24470
+ if(content.__esModule) content = content.default;
24471
+ if(typeof content === 'string') content = [[module.id, content, '']];
24472
+ if(content.locals) module.exports = content.locals;
24473
+ // add the styles to the DOM
24474
+ var add = (__webpack_require__(54402)/* ["default"] */ .Z)
24475
+ var update = add("a126d512", content, true, {"sourceMap":false,"shadowMode":false});
24476
+
24477
+ /***/ }),
24478
+
24350
24479
  /***/ 85745:
24351
24480
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
24352
24481
 
@@ -38701,6 +38830,74 @@ var SwissComButton_component = normalizeComponent(
38701
38830
  )
38702
38831
 
38703
38832
  /* harmony default export */ var SwissComButton = (SwissComButton_component.exports);
38833
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/methodButtons/FranceConnectButton.vue?vue&type=template&id=29b90258&
38834
+ var FranceConnectButtonvue_type_template_id_29b90258_render = function render() {
38835
+ var _vm = this,
38836
+ _c = _vm._self._c;
38837
+ return _c('MethodButtonBase', {
38838
+ class: _vm.$style.methodButton,
38839
+ scopedSlots: _vm._u([{
38840
+ key: "slot1",
38841
+ fn: function () {
38842
+ return [_c('IconFranceConnect', {
38843
+ class: _vm.$style.icon
38844
+ })];
38845
+ },
38846
+ proxy: true
38847
+ }])
38848
+ });
38849
+ };
38850
+ var FranceConnectButtonvue_type_template_id_29b90258_staticRenderFns = [];
38851
+
38852
+ // EXTERNAL MODULE: ./src/assets/svg/franceconnect-btn.svg
38853
+ var franceconnect_btn = __webpack_require__(94344);
38854
+ var franceconnect_btn_default = /*#__PURE__*/__webpack_require__.n(franceconnect_btn);
38855
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/methodButtons/FranceConnectButton.vue?vue&type=script&lang=js&
38856
+
38857
+
38858
+ /* harmony default export */ var FranceConnectButtonvue_type_script_lang_js_ = ({
38859
+ name: 'FranceConnectButton',
38860
+ components: {
38861
+ MethodButtonBase: MethodButtonBase,
38862
+ IconFranceConnect: (franceconnect_btn_default())
38863
+ }
38864
+ });
38865
+ ;// CONCATENATED MODULE: ./src/components/methodButtons/FranceConnectButton.vue?vue&type=script&lang=js&
38866
+ /* harmony default export */ var methodButtons_FranceConnectButtonvue_type_script_lang_js_ = (FranceConnectButtonvue_type_script_lang_js_);
38867
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-63.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/methodButtons/FranceConnectButton.vue?vue&type=style&index=0&id=29b90258&prod&lang=scss&module=true&
38868
+ var FranceConnectButtonvue_type_style_index_0_id_29b90258_prod_lang_scss_module_true_ = __webpack_require__(96729);
38869
+ var FranceConnectButtonvue_type_style_index_0_id_29b90258_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(FranceConnectButtonvue_type_style_index_0_id_29b90258_prod_lang_scss_module_true_);
38870
+ ;// CONCATENATED MODULE: ./src/components/methodButtons/FranceConnectButton.vue?vue&type=style&index=0&id=29b90258&prod&lang=scss&module=true&
38871
+
38872
+ ;// CONCATENATED MODULE: ./src/components/methodButtons/FranceConnectButton.vue
38873
+
38874
+
38875
+
38876
+ ;
38877
+
38878
+
38879
+
38880
+
38881
+ function FranceConnectButton_injectStyles (context) {
38882
+
38883
+ this["$style"] = ((FranceConnectButtonvue_type_style_index_0_id_29b90258_prod_lang_scss_module_true_default()).locals || (FranceConnectButtonvue_type_style_index_0_id_29b90258_prod_lang_scss_module_true_default()))
38884
+
38885
+ }
38886
+
38887
+ /* normalize component */
38888
+
38889
+ var FranceConnectButton_component = normalizeComponent(
38890
+ methodButtons_FranceConnectButtonvue_type_script_lang_js_,
38891
+ FranceConnectButtonvue_type_template_id_29b90258_render,
38892
+ FranceConnectButtonvue_type_template_id_29b90258_staticRenderFns,
38893
+ false,
38894
+ FranceConnectButton_injectStyles,
38895
+ null,
38896
+ null
38897
+
38898
+ )
38899
+
38900
+ /* harmony default export */ var FranceConnectButton = (FranceConnectButton_component.exports);
38704
38901
  ;// CONCATENATED MODULE: ./src/components/methodButtons/methodButtons.js
38705
38902
 
38706
38903
 
@@ -38744,6 +38941,7 @@ var SwissComButton_component = normalizeComponent(
38744
38941
 
38745
38942
 
38746
38943
 
38944
+
38747
38945
 
38748
38946
 
38749
38947
  const methodButtons = Object.freeze({
@@ -38790,7 +38988,8 @@ const methodButtons = Object.freeze({
38790
38988
  PlMojeIdButton: PlMojeIdButton,
38791
38989
  HalcomButton: HalcomButton,
38792
38990
  SwissIdButton: SwissIdButton,
38793
- SwissComButton: SwissComButton
38991
+ SwissComButton: SwissComButton,
38992
+ FranceConnectButton: FranceConnectButton
38794
38993
  });
38795
38994
  /* harmony default export */ var methodButtons_methodButtons = (methodButtons);
38796
38995
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/methodButtons/MethodButton.vue?vue&type=script&lang=js&
@@ -49740,7 +49939,8 @@ const methodButtonNames = {
49740
49939
  PlMojeIdButton: 'PlMojeIdButton',
49741
49940
  HalcomButton: 'HalcomButton',
49742
49941
  SwissIdButton: 'SwissIdButton',
49743
- SwissComButton: 'SwissComButton'
49942
+ SwissComButton: 'SwissComButton',
49943
+ FranceConnectButton: 'FranceConnectButton'
49744
49944
  };
49745
49945
  /* harmony default export */ var methodButtons_methodButtonNames = (methodButtonNames);
49746
49946
  ;// CONCATENATED MODULE: ./src/createMethodsConfig.js
@@ -49880,6 +50080,12 @@ const allWidgetMethods = Object.freeze({
49880
50080
  translationKeys: {
49881
50081
  title: 'iDIN'
49882
50082
  }
50083
+ }, {
50084
+ actionType: eideasy_browser_client.methodActionTypes.IDIN_CUSTOMER_ID_LOGIN,
50085
+ buttonName: methodButtons_methodButtonNames.IdinButton,
50086
+ translationKeys: {
50087
+ title: 'iDIN'
50088
+ }
49883
50089
  }, {
49884
50090
  actionType: eideasy_browser_client.methodActionTypes.LV_EPARAKSTS_ID_LOGIN,
49885
50091
  buttonName: methodButtons_methodButtonNames.EparakstsSmartCardButton,
@@ -50225,6 +50431,12 @@ const allWidgetMethods = Object.freeze({
50225
50431
  translationKeys: {
50226
50432
  title: 'itsme'
50227
50433
  }
50434
+ }, {
50435
+ actionType: eideasy_browser_client.methodActionTypes.FR_IDENT_ADVANCED_SIGNATURE,
50436
+ buttonName: methodButtons_methodButtonNames.FranceConnectButton,
50437
+ translationKeys: {
50438
+ title: 'FR Ident Signature'
50439
+ }
50228
50440
  }]
50229
50441
  });
50230
50442
  const getAvailableMethods = function getAvailableMethods(clientMethods, widgetMethods) {