@eid-easy/eideasy-widget 2.87.0 → 2.89.0-beta.1
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.
- package/CHANGELOG-LATEST.md +2 -2
- package/CHANGELOG.md +18 -0
- package/dist/full/eideasy-widget.common.js +1322 -52
- package/dist/full/eideasy-widget.umd.js +1300 -30
- package/dist/full/eideasy-widget.umd.min.js +3 -3
- package/dist/index.html +6 -4
- package/package.json +7 -6
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/***/ (function(module) {
|
|
6
6
|
|
|
7
7
|
/*! For license information please see eideasy-browser-client.js.LICENSE.txt */
|
|
8
|
-
!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),S=n(6688),T=n(3218),E=n(2928),b=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(!T(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))})):S(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:b)(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,S,T){var E=v(t,n),b=v(e,n),C=T.get(b);if(C)r(t,n,C);else{var w=S?S(E,b,n+"",t,e,T):void 0,_=void 0===w;if(_){var A=u(b),O=!A&&l(b),x=!A&&!O&&g(b);w=b,A||O||x?u(E)?w=E:d(E)?w=a(E):O?(_=!1,w=i(b,!0)):x?(_=!1,w=o(b,!0)):w=[]:h(b)||c(b)?(w=E,c(E)?w=y(E):f(E)&&!p(E)||(w=s(b))):_=!1}_&&(T.set(b,w),I(w,b,m,S,T),T.delete(b)),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),S=c;(r&&S(new r(new ArrayBuffer(1)))!=h||i&&S(new i)!=d||o&&S(o.resolve())!=l||a&&S(new a)!=p||s&&S(new s)!=f)&&(S=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=S},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,S=I&&I(I(x([])));S&&S!==n&&o.call(S,c)&&(m=S);var T=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 b(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(T,"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(T),t},e.awrap=function(t){return{__await:t}},E(b.prototype),l(b.prototype,u,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(T),l(T,d,"Generator"),l(T,c,(function(){return this})),l(T,"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,n,r){return(n=function(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)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var n;i.r(o),i.d(o,{allMethods:function(){return c},createClient:function(){return No},default:function(){return Do},getMethodByHandlingModule:function(){return u},methodActionTypes:function(){return a},methodTypes:function(){return r},moduleNames:function(){return s}});var r={IDENTIFICATION:"identification",SIGNATURE:"signature"},a={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"},s={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((e(n={},r.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:s.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LV_EPARAKSTS_ID_LOGIN,handlingModule:s.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:s.smartId,supportedCountries:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:s.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:s.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:a.CZ_MOJEID,handlingModule:s.mojeId,supportedCountries:["CZ"]},{actionType:a.EDOAPP_EID_LOGIN,handlingModule:s.edoAppEid,supportedCountries:["PL"]},{actionType:a.FI_FTN_LOGIN,handlingModule:s.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:s.atHandy,supportedCountries:["AT"]},{actionType:a.ITSME_LOGIN,handlingModule:s.itsme,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_BASIC,handlingModule:s.itsmeBasic,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_STANDARD,handlingModule:s.itsmeStandard,supportedCountries:["BE","LU","NL"]},{actionType:a.SE_BANKID_LOGIN,handlingModule:s.seBankId,supportedCountries:["SE"]},{actionType:a.IDIN_LOGIN,handlingModule:s.idin,supportedCountries:["NL"]},{actionType:a.IDIN_CUSTOMER_ID_LOGIN,handlingModule:s.idinCustomerId,supportedCountries:["NL"]},{actionType:a.VERIFAI_LOGIN,handlingModule:s.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:a.YOONIK_LOGIN,handlingModule:s.yoonik,supportedCountries:["WORLD"]},{actionType:a.PL_MOJEID_LOGIN,handlingModule:s.plMojeId,supportedCountries:["PL"]},{actionType:a.MIT_ID_LOGIN,handlingModule:s.mitId,supportedCountries:["DK"]},{actionType:a.NORWEGIAN_BANKID_LOGIN,handlingModule:s.norwegianBankId,supportedCountries:["NO"]},{actionType:a.FTN_LOGIN,handlingModule:s.ftn,supportedCountries:["FI"]}]),e(n,r.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["FI","AX"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["BE"]},{actionType:a.HR_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["HR"]},{actionType:a.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:s.certEuropeUsbTokenSignature,supportedCountries:["FR"]},{actionType:a.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:s.certSignUsbTokenSignature,supportedCountries:["RO"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:s.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:s.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:a.ITSME_QES_SIGNATURE,handlingModule:s.itsmeQesSignature,supportedCountries:["BE","LU","NL"]},{actionType:a.OTP_EMAIL,handlingModule:s.otpSignature,supportedCountries:["WORLD"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:s.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:s.ftnSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:s.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:s.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:a.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:s.atHandySignature,supportedCountries:["AT"]},{actionType:a.ZEAL_ID_SIGNATURE,handlingModule:s.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:a.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:s.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.GOOGLE_SIGNATURE,handlingModule:s.googleSignature,supportedCountries:["WORLD"]},{actionType:a.SE_BANKID_SIGNATURE,handlingModule:s.seBankIdSignature,supportedCountries:["SE"]},{actionType:a.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:s.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:a.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:s.chaveMovelSignature,supportedCountries:["PT"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:s.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:a.MIT_ID_SIMPLE_SIGNATURE,handlingModule:s.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:a.IDIN_SIMPLE_SIGNATURE,handlingModule:s.idinSignature,supportedCountries:["NL"]},{actionType:a.SPID_QUALIFIED_SIGNATURE,handlingModule:s.spidQesSignature,supportedCountries:["IT"]},{actionType:a.VERIFAI_SIMPLE_SIGNATURE,handlingModule:s.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:a.FREJA_SIMPLE_SIGNATURE,handlingModule:s.frejaSimpleSignature,supportedCountries:["DK","EE","FI","LV","LT","NO","PL","RO","SK","SE","GL","AX"]},{actionType:a.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:s.audkenniQesSignature,supportedCountries:["IS"]},{actionType:a.YES_COM_QUALIFIED_SIGNATURE,handlingModule:s.yesComQesSignature,supportedCountries:["DE"]},{actionType:a.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:s.simplySignQesSignature,supportedCountries:["PL"]},{actionType:a.UANATACA_QUALIFIED_SIGNATURE,handlingModule:s.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:a.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:s.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:a.HALCOM_QUALIFIED_SIGNATURE,handlingModule:s.halcomQesSignature,supportedCountries:["SI"]},{actionType:a.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:s.swissIdQesSignature,supportedCountries:["CH"]},{actionType:a.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:s.swissComQesSignature,supportedCountries:["CH"]},{actionType:a.DK_MITID_ADVANCED_SIGNATURE,handlingModule:s.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:a.DK_MITID_QES_SIGNATURE,handlingModule:s.mitIdQesSignature,supportedCountries:["DK"]},{actionType:a.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:s.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_BANK_ID_QES_SIGNATURE,handlingModule:s.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:s.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_QES_SIGNATURE,handlingModule:s.frejaQesSignature,supportedCountries:["SE"]},{actionType:a.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:s.frIdentAdvancedSignature,supportedCountries:["FR"]}]),n)),u=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}))},d=i(2492),l=i.n(d),p=i(9669),f=i.n(p),h=f().CancelToken,g=f().isCancel;f().Cancel,f().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 v=function(t){return f()(t)};function y(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 m(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var I=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=l()(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 v(I(m({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 v(I(m({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:h})};function T(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 E(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?T(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b=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=E({},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:E({},g),signature:E({},v),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function C(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 w=function(n){var r=n.rawSettings,i=n.schema,o=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?C(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(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},_={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"}},A=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."}'),O=i.t(A,2),x=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."}'),N=i.t(x,2),D=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."}'),R=i.t(D,2),k=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."}'),U=i.t(k,2),M=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."}'),j=i.t(M,2),L=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),P={de:O,en:N,et:R,lt:U,lv:j,ru:i.t(L,2)},B=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?P: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})},G=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&v({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function F(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 V(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){F(o,r,i,a,s,"next",t)}function s(t){F(o,r,i,a,s,"throw",t)}a(void 0)}))}}var q=i(4687),H=i.n(q),K=i(361),Q=i.n(K)(),z=function(t){var e=t;return g(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},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=Q({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},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},W=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=V(H().mark((function e(){var n,i,o=arguments;return H().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=J(n))){e.next=6;break}throw z(i);case 6:return e.abrupt("return",r?Z(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};class Y extends Error{name="NonError";constructor(t){super(Y._prepareSuperMessage(t))}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const $=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],X=Symbol(".toJSON was called"),tt=({from:t,seen:e,to_:n,forceEnumerable:r,maxDepth:i,depth:o})=>{const a=n||(Array.isArray(t)?[]:{});if(e.push(t),o>=i)return a;if("function"==typeof t.toJSON&&!0!==t[X])return(t=>{t[X]=!0;const e=t.toJSON();return delete t[X],e})(t);for(const[n,s]of Object.entries(t))"function"==typeof Buffer&&Buffer.isBuffer(s)?a[n]="[object Buffer]":null===s||"object"!=typeof s||"function"!=typeof s.pipe?"function"!=typeof s&&(s&&"object"==typeof s?e.includes(t[n])?a[n]="[Circular]":(o++,a[n]=tt({from:t[n],seen:[...e],forceEnumerable:r,maxDepth:i,depth:o})):a[n]=s):a[n]="[object Stream]";for(const{property:e,enumerable:n}of $)"string"==typeof t[e]&&Object.defineProperty(a,e,{value:t[e],enumerable:!!r||n,configurable:!0,writable:!0});return a};function et(t,e={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=e;return"object"==typeof t&&null!==t?tt({from:t,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):"function"==typeof t?`[Function: ${t.name||"anonymous"}]`:t}function nt(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 rt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?nt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var it=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=rt(rt({},_),n),i=rt(rt({},s),t),u=w({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()},S=function(){var t=V(H().mark((function t(){return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(rt(rt({},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(et(t))}),l(z(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return S().catch(console.error),Object.freeze({cancel:I})}})}};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 n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ot(Object(r),!0).forEach((function(n){e(t,n,r[n])})):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=s.idCard,ct=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=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)),o.get({url:e,cancelToken:t.cancelToken})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u(r.IDENTIFICATION,st,t.countryCode);return o.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,W(s)(at(at({},e),{},{language:i,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=a.t("id-card-read-timeout")),t}));case 5:return d=t.sent,t.next=8,W(c)(at(at({},e),{},{cancelToken:n,language:i,data:d.data}));case 8:return d=t.sent,t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ut=it(st,ct,{countryCode:{type:"string",required:!0}}),dt=function(){var t=V((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return H().mark((function t(){var i,o;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=V(H().mark((function t(a,s){var c,u;return H().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)}}(),lt=dt;function pt(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 ft(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ht=s.smartId,gt=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,ht);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=u(r.IDENTIFICATION,ht);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 lt({fn:function(){return f(ft(ft({},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=g(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,W(p)(ft(ft({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return v=t.sent,i(v),t.next=10,W(h)({config:e,data:ft({},v.data),cancelToken:c,pollInterval:s,language:d});case 10:return v=t.sent,t.abrupt("return",v);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),vt=it(ht,gt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function yt(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 n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?yt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var It=s.mobileId,St=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,v,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=e.started,s=void 0===a?function(){}:a,c=e.idcode,d=e.phone,l=e.pollInterval,p=void 0===l?1e3:l,f=function(t){var e=u(r.IDENTIFICATION,It,t.countryCode);return o.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=u(r.IDENTIFICATION,It,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},v=function(t){var e=12e4/p,n=0;return lt({fn:function(){return h(mt(mt({},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=g(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,W(f)(mt(mt({},e),{},{cancelToken:n,language:i,idcode:c,phone:d}));case 6:return y=t.sent,s(y),t.next=10,W(v)({config:e,data:y.data,cancelToken:n,language:i,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)}}(),Tt=it(It,St,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Et=s.eParakstsMobile,bt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},Ct=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().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,W(bt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),wt=it(Et,Ct);function _t(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 n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_t(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ot=s.frejaEid,xt=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,Ot);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=u(r.IDENTIFICATION,Ot);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 lt({fn:function(){return f(At(At({},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=g(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,W(p)(At(At({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return v=t.sent,i(v),t.next=10,W(h)({config:e,data:At({},v.data),cancelToken:c,language:d,pollInterval:s});case 10:return v=t.sent,t.abrupt("return",v);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Nt=it(Ot,xt,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Dt(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 Rt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Dt(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var kt=s.zealId,Ut=function(){var t=V(H().mark((function t(e){var n,i,o,a,s,c,d;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.apiClient,o=e.language,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.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=u(r.IDENTIFICATION,kt);return i.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,W(a)(Rt(Rt({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,W(s)(Rt(Rt({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,W(c)(Rt(Rt({},e),{},{cancelToken:n,language:o},d));case 12:return d=t.sent,t.abrupt("return",d);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Mt=it(kt,Ut,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),jt=s.mojeId,Lt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Pt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().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,W(Lt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Bt=it(jt,Pt),Gt=s.edoAppEid,Ft=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Vt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().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,W(Ft)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),qt=it(Gt,Vt),Ht=s.finnishTrustNetwork,Kt=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})}}},Qt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(Kt)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),zt=it(Ht,Qt),Zt=s.atHandy,Jt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Wt=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().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,W(Jt)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Yt=it(Zt,Wt),$t=s.itsme,Xt=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})}}},te=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(Xt)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ee=it($t,te),ne=s.itsmeBasic,re=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})}}},ie=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(re)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),oe=it(ne,ie),ae=s.itsmeStandard,se=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})}}},ce=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(se)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ue=it(ae,ce),de=s.seBankId,le=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})}}},pe=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(le)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fe=it(de,pe),he=s.idin,ge=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})}}},ve=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(ge)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ye=it(he,ve),me=s.idinCustomerId,Ie=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})}}},Se=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(Ie)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Te=it(me,Se),Ee=s.verifai,be=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})}}},Ce=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(be)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),we=it(Ee,Ce),_e=s.yoonik,Ae=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})}}},Oe=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(Ae)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),xe=it(_e,Oe),Ne=s.plMojeId,De=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},Re=function(){var t=V(H().mark((function t(e){var n,r,i,o,a;return H().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,W(De)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ke=it(Ne,Re),Ue=s.mitId,Me=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})}}},je=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(Me)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Le=it(Ue,je),Pe=s.norwegianBankId,Be=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})}}},Ge=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(Be)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Fe=it(Pe,Ge),Ve=s.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})}}},He=function(){var t=V(H().mark((function t(e){var n,r,i,o,a,s;return H().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,W(qe)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ke=it(Ve,He),Qe=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};(Qe.prototype=new Error).name="MethodException";var ze=Qe,Ze={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},Je=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(et(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},We=function(t){var e=t.moduleName,n=t.createModuleCreator,i=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},o=function(t){return t.data&&"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender},a=function(t){var n=t.countryCode,i=t.clientId,o=t.apiEndpoints,a=u(r.SIGNATURE,e,n);return o.inCurrentMode.idCardIframe({clientId:i,actionType:a.actionType})},s=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new ze({userMessage:n,message:t.message,details:t})},c=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,i=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(!o(t))return!1;var e=t.data,n=e.operation,r=e.error,i=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==i?s.reject(t.data):s.resolve(a),window.removeEventListener("message",c,!1)}i.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),i.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},d=function(t){var e=t.messenger,n=t.monitor,r={resolve:null,reject:null};function i(t){if(!o(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",i,!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",i,!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,i={resolve:null,reject:null};function a(t){if(!o(t))return!1;var e=t.data.signature_value||t.data.signature;if(e)i.resolve({signature:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,i.reject(n)}window.removeEventListener("message",a,!1)}r.log("Trying to sign the hexDigest: ".concat(n));var s=new Promise((function(t,e){i.resolve=t,i.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=V((function(t){var n=t.countryCode,r=t.clientId,o=t.apiEndpoints,u=t.iframeHolder,g=t.i18n,v=t.docId,y=t.cancelToken,m=t.apiClient,I=t.monitoringService,S=t.action,T=t.redirect;return H().mark((function t(){var E,b,C,w,_,A,O,x;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E=Je({monitoringService:I,moduleName:e}),t.next=3,W(a,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o});case 3:return b=t.sent,t.next=6,W(c,{shouldFormatResult:!1})({iframeUrl:b,iframeHolder:u,i18n:g,monitor:E}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,W(i,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,W(d)({messenger:w,monitor:E}).catch((function(t){return s(t,g)}));case 12:if(_=t.sent,"cscApiAuthorizeCredential"!==S){t.next=18;break}return t.next=16,W(h)({certificate:_.data.certificate,actionType:"id-card",country:n,cancelToken:y,apiEndpoints:o,apiClient:m});case 16:return A=t.sent,t.abrupt("return",W(T,{shouldFormatResult:!1})(A));case 18:return t.next=20,W(l)({certificate:_.data.certificate,clientId:r,docId:v,cancelToken:y,apiEndpoints:o,apiClient:m,monitor:E});case 20:return O=t.sent,t.next=23,W(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",W(f)({signature:x.signature,clientId:r,docId:v,cancelToken:y,apiEndpoints:o,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Ze)},Ye=We({moduleName:s.idCardSignature,createModuleCreator:it});function $e(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}var Xe=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 lt({fn:function(){return o.apply(void 0,function(t){if(Array.isArray(t))return $e(t)}(t=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $e(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)?$e(t,e):void 0}}(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.")}());var t},shouldContinue:function(t){var n=t.result,r=n&&n.data&&n.data.status,i=g(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})}}},tn=s.mobileIdSignature,en=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.idcode,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:e,country:n,phone:r,idcode:i},cancelToken:o})},nn=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})},rn=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})},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 Xe({pollInterval:2e3,maxPollDuration:12e4,fn:rn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},an=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.idcode,l=t.phone,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return H().mark((function t(){var v,y,m;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,W(en)({country:p,idcode:d,phone:l,cancelToken:i,apiEndpoints:o,apiClient:a});case 3:return v=t.sent,t.abrupt("return",W(g,{shouldFormatResult:!1})(v));case 5:return y=u(r.SIGNATURE,tn,p),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,W(nn)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,idcode:d,phone:l,countryCode:p});case 9:return m=t.sent,f(m),t.abrupt("return",W(on)({data:m.data,apiClient:a,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)}}(),sn=it(tn,an,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),cn=s.smartIdSignature,un=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})},dn=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})},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 Xe({pollInterval:2e3,maxPollDuration:12e4,fn:dn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},pn=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})},fn=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return H().mark((function t(){var v,y,m;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,cn,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,W(pn)({country:p,idcode:l,cancelToken:o,apiEndpoints:a,apiClient:s});case 4:return y=t.sent,t.abrupt("return",W(g,{shouldFormatResult:!1})(y));case 6:return c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,W(un)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,countryCode:p,contractId:i});case 9:return m=t.sent,f(m),t.abrupt("return",W(ln)({data:m.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),hn=it(cn,fn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),gn=s.evroTrustSignature,vn=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})},yn=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})},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 Xe({pollInterval:2e3,fn:yn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},In=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return H().mark((function t(){var v,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=u(r.SIGNATURE,gn,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,W(vn)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,phone:p,email:f,countryCode:h,contractId:i,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",W(mn)({data:y.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Sn=it(gn,In,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Tn=s.otpSignature,En=function(){var t=V((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 H().mark((function t(){var c;return H().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)}))},Cn=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})},wn=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl,g=t.started,v=t.confirmationCodeRequest,y=t.setOnCancelByUser;return H().mark((function t(){var m,I,S;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,Tn,d),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,W(En)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,actionType:m.actionType});case 6:return I=t.sent,g(I),t.next=10,W(bn,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:v,setOnCancelByUser:y});case 10:S=t.sent,p=S.smsToken,l=S.emailToken;case 13:return t.abrupt("return",W(Cn)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,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)}}(),_n=it(Tn,wn,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),An={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},On=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:e,country:n},cancelToken:r})},xn=function(t){var e=t.moduleName,n=t.createModuleCreator,i=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})},o=function(){var t=V((function(t){var n=t.clientId,o=t.docId,a=t.contractId,s=t.cancelToken,c=t.apiEndpoints,d=t.apiClient,l=t.monitoringService,p=t.language,f=t.countryCode,h=t.redirect,g=t.confirmedBySigner,v=t.action;return H().mark((function t(){var y,m,I;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y=u(r.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==v){t.next=6;break}return t.next=4,W(On)({country:f,cancelToken:s,apiEndpoints:c,apiClient:d,actionType:y.actionType});case 4:return m=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(m));case 6:return l.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,W(i)({contractId:a,clientId:n,docId:o,cancelToken:s,apiEndpoints:c,apiClient:d,language:p,actionType:y.actionType,confirmedBySigner:g});case 9:return I=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,o,An)},Nn=xn({moduleName:s.eParakstsMobileSignature,createModuleCreator:it}),Dn=xn({moduleName:s.ftnAdvancedFullSignature,createModuleCreator:it}),Rn=xn({moduleName:s.ftnSignature,createModuleCreator:it}),kn=xn({moduleName:s.atHandySignature,createModuleCreator:it}),Un=s.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=V(H().mark((function t(e){var n,r,i,o,a;return H().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,W(Mn)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ln=it(Un,jn),Pn=xn({moduleName:s.mojeIdSignature,createModuleCreator:it}),Bn=xn({moduleName:s.googleSignature,createModuleCreator:it}),Gn=xn({moduleName:s.seBankIdSignature,createModuleCreator:it}),Fn=s.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,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})},qn=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.redirect;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Fn,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(Vn)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Hn=it(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 cr(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ur,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),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+cr(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return cr(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 c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return cr(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 cr(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return cr(this.stream.parseStringISO(e,e+n),t);case 30:return cr(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,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}(),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=Sr();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=Sr();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=Sr();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=Sr();return this.bitwiseTo(t,Qn,e),e},t.prototype.or=function(t){var e=Sr();return this.bitwiseTo(t,zn,e),e},t.prototype.xor=function(t){var e=Sr();return this.bitwiseTo(t,Zn,e),e},t.prototype.andNot=function(t){var e=Sr();return this.bitwiseTo(t,Jn,e),e},t.prototype.not=function(){for(var t=Sr(),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=Sr();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=Sr();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=Sr();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=Sr();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=Sr();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=Sr();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=Sr();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=Sr(),n=Sr();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,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=Sr();for(r.sqrTo(a[1],d);s<=u;)a[s]=Sr(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=Sr();for(i=Or(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=Ar(1),a=Ar(0),s=Ar(0),c=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()&&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 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=Sr());var a=Sr(),s=this.s,c=e.s,u=this.DB-Or(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?Sr():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=Sr(),i=Sr(),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=Sr(),o=Sr(),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=_r(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),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=Sr(),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 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=Sr();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=[],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}(),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=Sr();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=Sr();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=Sr(),this.q3=Sr(),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=Sr();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 Sr(){return new gr(null)}function Tr(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 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},ur=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},ur=26):(gr.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},ur=28),gr.prototype.DB=ur,gr.prototype.DM=(1<<ur)-1,gr.prototype.DV=1<<ur,gr.prototype.FV=Math.pow(2,52),gr.prototype.F1=52-ur,gr.prototype.F2=2*ur-52;var br,Cr,wr=[];for(br="0".charCodeAt(0),Cr=0;Cr<=9;++Cr)wr[br++]=Cr;for(br="a".charCodeAt(0),Cr=10;Cr<36;++Cr)wr[br++]=Cr;for(br="A".charCodeAt(0),Cr=10;Cr<36;++Cr)wr[br++]=Cr;function _r(t,e){var n=wr[t.charCodeAt(e)];return null==n?-1:n}function Ar(t){var e=Sr();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=Tr(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=Tr(t,16),this.e=parseInt(e,16),this.d=Tr(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=Tr(t,16),this.e=parseInt(e,16),this.d=Tr(n,16),this.p=Tr(r,16),this.q=Tr(i,16),this.dmp1=Tr(o,16),this.dmq1=Tr(a,16),this.coeff=Tr(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),c=a.multiply(s);if(0==c.gcd(i).compareTo(gr.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=Tr(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)},c=function(){a.q=Sr(),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(c,0)}))}))},u=function(){a.p=Sr(),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(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 Tr("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=Tr(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,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,S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var T=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new n(t[T]);if("int"==T)return new r(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new c(t[T]);if("utf8str"==T)return new u(t[T]);if("numstr"==T)return new d(t[T]);if("prnstr"==T)return new l(t[T]);if("telstr"==T)return new p(t[T]);if("ia5str"==T)return new f(t[T]);if("utctime"==T)return new h(t[T]);if("gentime"==T)return new g(t[T]);if("seq"==T){for(var E=t[T],b=[],C=0;C<E.length;C++){var w=I(E[C]);b.push(w)}return new v({array:b})}if("set"==T){for(E=t[T],b=[],C=0;C<E.length;C++)w=I(E[C]),b.push(w);return new y({array:b})}if("tag"==T){var _=t[T];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 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}},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=Tr(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Tr(o,16);var a=i.sub[4].getHexStringValue();this.p=Tr(a,16);var s=i.sub[5].getHexStringValue();this.q=Tr(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=Tr(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=Tr(u,16);var d=i.sub[8].getHexStringValue();this.coeff=Tr(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=Tr(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=s.chaveMovelSignature,Zr={publicKey:null},Jr=function(){var t=V((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return H().mark((function t(){var i,o,a;return H().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=V((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 H().mark((function t(){var d,l,p;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Jr({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Qr).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)}}(),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,c=t.confirmationCode,u=new Qr;return u.setPublicKey(Zr.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})},Xr=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.countryCode,d=t.language,l=t.started,p=t.confirmationCodeRequest,f=t.signingPin,h=t.phone,g=t.setOnCancelByUser;return H().mark((function t(){var v,y,m;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=u(r.SIGNATURE,zr,c),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,W(Wr)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:d,actionType:v.actionType,signingPin:f,phone:h});case 4:return y=t.sent,l(y),t.next=8,W(Yr,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",W($r)({token:y.data.token,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:e,confirmationCode:m}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ti=it(zr,Xr,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ei=xn({moduleName:s.mitIdSignature,createModuleCreator:it}),ni=s.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,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})},ii=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return H().mark((function t(){var g,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,ni,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,W(ri)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),oi=it(ni,ii,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),ai=s.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,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})},ci=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.name,f=t.redirect;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,ai,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(si)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,name:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ui=it(ai,ci,{name:{type:"string",required:!0}}),di=We({moduleName:s.certEuropeUsbTokenSignature,createModuleCreator:it}),li=We({moduleName:s.certSignUsbTokenSignature,createModuleCreator:it}),pi=xn({moduleName:s.idinSignature,createModuleCreator:it}),fi=xn({moduleName:s.verifaiSignature,createModuleCreator:it}),hi=s.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,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})},vi=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return H().mark((function t(){var g,v;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,hi,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,W(gi)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return v=t.sent,t.abrupt("return",W(h,{shouldFormatResult:!1})(v));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),yi=it(hi,vi,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),mi=s.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,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})},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 n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),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 Xe({pollInterval:2e3,fn:Si,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ei=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return H().mark((function t(){var f,h;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,mi,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(Ii)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,p(h),t.abrupt("return",W(Ti)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),bi=it(mi,Ei,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ci=s.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,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})},_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 Xe({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 Xe({pollInterval:2e3,fn:Ai,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ni=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return H().mark((function t(){var f,h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,Ci,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(wi)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.next=7,W(Oi)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e});case 7:return g=t.sent,p(g),t.abrupt("return",W(xi)({data:g.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Di=it(Ci,Ni,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ri=xn({moduleName:s.yesComQesSignature,createModuleCreator:it}),ki=xn({moduleName:s.simplySignQesSignature,createModuleCreator:it}),Ui=s.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,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})},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,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})},Pi=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.password,h=t.pin,g=t.confirmationCodeRequest,v=t.setOnCancelByUser,y=t.started;return H().mark((function t(){var m,I,S;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=u(r.SIGNATURE,Ui,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,W(Mi)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,password:f,pin:h,actionType:m.actionType});case 4:return I=t.sent,y(I),t.next=8,W(ji,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:v});case 8:return S=t.sent,t.abrupt("return",W(Li)({token:I.data.token,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,confirmationCode:S}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Bi=it(Ui,Pi,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Gi=xn({moduleName:s.certsignWebapiQesSignature,createModuleCreator:it}),Fi=s.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,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})},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 Xe({pollInterval:2e3,fn:qi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ki=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.username,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return H().mark((function t(){var v,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=u(r.SIGNATURE,Fi,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,W(Vi)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:l,phone:p,email:f,countryCode:h,contractId:i,actionType:v.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",W(Hi)({data:y.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Qi=it(Fi,Ki,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),zi=s.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,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})},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 Xe({pollInterval:2e3,fn:Ji,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Yi=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.email,p=t.countryCode,f=t.started;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,zi,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(Zi)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,email:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",W(Wi)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),$i=it(zi,Yi,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Xi=s.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,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})},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 Xe({pollInterval:2e3,fn:eo,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ro=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.phone,p=t.countryCode,f=t.started;return H().mark((function t(){var h,g;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Xi,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,W(to)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",W(no)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),io=it(Xi,ro,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),oo=xn({moduleName:s.mitIdAdvancedSignature,createModuleCreator:it}),ao=xn({moduleName:s.mitIdQesSignature,createModuleCreator:it}),so=xn({moduleName:s.seBankIdAdvancedSignature,createModuleCreator:it}),co=xn({moduleName:s.seBankIdQesSignature,createModuleCreator:it}),uo=s.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,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=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return H().mark((function t(){var f,h;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,uo,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(lo)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",W(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),fo=it(uo,po,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ho=s.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,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})},vo=function(){var t=V((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return H().mark((function t(){var f,h;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ho,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,W(go)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",W(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),yo=it(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 So(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Io(Object(r),!0).forEach((function(n){e(t,n,r[n])})):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 To=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=So(So({},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},bo=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=So({base:function(t){return t.baseUrl},readCard:function(t){var e=t.countryCode,r=void 0===e?n.countryCode.toLowerCase():e,i=t.clientId,o="eideasy.com";return n.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")},cscApiAuthorizeCredentialRedirect:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential-redirect")}},r),o=(e(t={},mo.production,So({},To(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:n.state},n.modifyEndpointUrl))),e(t,mo.sandbox,So({},To(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:n.state},n.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=n.sandbox?mo.sandbox:mo.production;return o[t]}}},Co=s.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=V(H().mark((function t(e){var n,r,i,o,a;return H().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,W(wo)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ao=it(Co,_o),Oo=xn({moduleName:s.itsmeQesSignature,createModuleCreator:it}),xo=xn({moduleName:s.frIdentAdvancedSignature,createModuleCreator:it}),No=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=w({rawSettings:t,schema:_}),n=B({currentLanguage:"en"}),r=bo({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=G({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return b({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[ut,vt,Tt,wt,Ao,Nt,Mt,Bt,qt,zt,Yt,ee,oe,ue,fe,ye,Te,we,xe,ke,Le,Fe,Ke],signingModules:[Ye,sn,hn,Sn,_n,Nn,Dn,Rn,oi,kn,Ln,Pn,Bn,Gn,Hn,ti,ei,ui,di,li,pi,fi,yi,bi,Di,Ri,ki,Bi,Gi,Qi,$i,io,oo,ao,so,co,fo,yo,Oo,xo]})},Do=No}(),o}()}));
|
|
8
|
+
!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),T=n(3218),S=n(2928),E=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(!T(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),S(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:E)(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,T){var S=v(t,n),E=v(e,n),C=T.get(E);if(C)r(t,n,C);else{var w=b?b(S,E,n+"",t,e,T):void 0,_=void 0===w;if(_){var A=u(E),O=!A&&l(E),x=!A&&!O&&g(E);w=E,A||O||x?u(S)?w=S:d(S)?w=a(S):O?(_=!1,w=i(E,!0)):x?(_=!1,w=o(E,!0)):w=[]:h(E)||c(E)?(w=S,c(S)?w=y(S):f(S)&&!p(S)||(w=s(E))):_=!1}_&&(T.set(E,w),I(w,E,m,b,T),T.delete(E)),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 T=y.prototype=g.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(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(T,"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(T),t},e.awrap=function(t){return{__await:t}},S(E.prototype),l(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(T),l(T,d,"Generator"),l(T,c,(function(){return this})),l(T,"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 Ro},default:function(){return ko},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",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"},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",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"},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","LU","NL"]},{actionType:s.ITSME_LOGIN_BASIC,handlingModule:c.itsmeBasic,supportedCountries:["BE","LU","NL"]},{actionType:s.ITSME_LOGIN_STANDARD,handlingModule:c.itsmeStandard,supportedCountries:["BE","LU","NL"]},{actionType:s.SE_BANKID_LOGIN,handlingModule:c.seBankId,supportedCountries:["SE"]},{actionType:s.IDIN_LOGIN,handlingModule:c.idin,supportedCountries:["NL"]},{actionType:s.IDIN_CUSTOMER_ID_LOGIN,handlingModule:c.idinCustomerId,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","LU","NL"]},{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"]},{actionType:s.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:c.frIdentAdvancedSignature,supportedCountries:["FR"]}]),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},T=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 S(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 E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(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=E({},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:T({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:T({modifyRequestSettings:l.modifyRequestSettings})});v[e.MODULE_NAME]=e})),Object.freeze({identification:E({},g),signature:E({},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,T=I.enumerable;"string"==typeof o[b]&&Object.defineProperty(l,b,{value:o[b],enumerable:!!c||T,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 Tt(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 St=c.mobileId,Et=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,St,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,St,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(Tt(Tt({},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)(Tt(Tt({},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(St,Et,{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),Te=c.idinCustomerId,Se=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})}}},Ee=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(Se)({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(Te,Ee),we=c.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=c.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=c.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=c.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=c.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=c.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})},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,T=t.redirect;return K().mark((function t(){var S,E,C,w,_,A,O,x;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S=$e({monitoringService:I,moduleName:e}),t.next=3,Y(o,{shouldFormatResult:!1})({countryCode:n,clientId:i,apiEndpoints:a});case 3:return E=t.sent,t.next=6,Y(c,{shouldFormatResult:!1})({iframeUrl:E,iframeHolder:d,i18n:g,monitor:S}).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:S}).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(T,{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:S});case 20:return O=t.sent,t.next=23,Y(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:S}).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:c.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,s=t.onPoll,c=void 0===s?function(){}:s;i&&(e=i/r);var u=0;return{start:function(){return ht({fn:function(){return o.apply(void 0,tt(a))},shouldContinue:function(t){var n=t.result;c(t);var r=n&&n.data&&n.data.status,i=v(t.error),o=t.error&&!t.error.response&&!i;o&&(u+=1);var a,s,d=!1;return a=t.attempts,(!(s=e)||a<s)&&u<3&&(d=o||"RUNNING"===r),d},interval:r})}}},nn=c.mobileIdSignature,rn=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.idcode,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:e,country:n,phone:r,idcode:i},cancelToken:o})},on=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})},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 n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:i,client_id:s},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 en({pollInterval:2e3,maxPollDuration:12e4,fn:an,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},cn=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,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("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,Y(rn)({country:p,idcode:u,phone:l,cancelToken:r,apiEndpoints:i,apiClient:o});case 3:return v=t.sent,t.abrupt("return",Y(g,{shouldFormatResult:!1})(v));case 5:return y=d(a.SIGNATURE,nn,p),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,Y(on)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,idcode:u,phone:l,countryCode:p});case 9:return m=t.sent,f(m),t.abrupt("return",Y(sn)({data:m.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),un=st(nn,cn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),dn=c.smartIdSignature,ln=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.waitForChallengeCode,l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u,wait_for_challenge_code:d},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 n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},fn=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.onTryComplete;return en({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:pn,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},hn=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})},gn=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,v=t.onTryComplete,y=t.waitForChallengeCode,m=void 0===y||y;return K().mark((function t(){var y,I,b;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y=d(a.SIGNATURE,dn,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,Y(hn)({country:p,idcode:l,cancelToken:i,apiEndpoints:o,apiClient:s});case 4:return I=t.sent,t.abrupt("return",Y(g,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,Y(ln)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:s,language:u,idcode:l,countryCode:p,contractId:r,waitForChallengeCode:m});case 9:return b=t.sent,f(b),t.abrupt("return",Y(fn)({data:b.data,apiClient:s,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,onTryComplete:v}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),vn=st(dn,gn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),yn=c.evroTrustSignature,mn=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})},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 n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},bn=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:In,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Tn=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,yn,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(mn)({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(bn)({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)}}(),Sn=st(yn,Tn,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),En=c.otpSignature,Cn=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)}}(),wn=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)}))},_n=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})},An=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,En,u),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,Y(Cn)({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(wn,{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(_n)({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)}}(),On=st(En,An,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),xn={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},Nn=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:e,country:n},cancelToken:r})},Dn=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,v=t.action;return K().mark((function t(){var y,m,I;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y=d(a.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==v){t.next=6;break}return t.next=4,Y(Nn)({country:f,cancelToken:s,apiEndpoints:c,apiClient:u,actionType:y.actionType});case 4:return m=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(m));case 6:return l.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=9,Y(r)({contractId:o,clientId:n,docId:i,cancelToken:s,apiEndpoints:c,apiClient:u,language:p,actionType:y.actionType,confirmedBySigner:g});case 9:return I=t.sent,t.abrupt("return",Y(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,i,xn)},Rn=Dn({moduleName:c.eParakstsMobileSignature,createModuleCreator:st}),kn=Dn({moduleName:c.ftnAdvancedFullSignature,createModuleCreator:st}),Un=Dn({moduleName:c.ftnSignature,createModuleCreator:st}),Mn=Dn({moduleName:c.atHandySignature,createModuleCreator:st}),jn=c.zealIdSignature,Ln=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},Pn=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(Ln)({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)}}(),Bn=st(jn,Pn),Gn=Dn({moduleName:c.mojeIdSignature,createModuleCreator:st}),Fn=Dn({moduleName:c.googleSignature,createModuleCreator:st}),Vn=Dn({moduleName:c.seBankIdSignature,createModuleCreator:st}),qn=c.dTrustSignMeSignature,Hn=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})},Kn=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,qn,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(Hn)({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)}}(),Qn=st(qn,Kn,{username:{type:"string",required:!0}});function zn(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Zn(t,e){return t&e}function Jn(t,e){return t|e}function Wn(t,e){return t^e}function Yn(t,e){return t&~e}function $n(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 Xn(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var tr,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function nr(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=er.charAt(n>>6)+er.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=er.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=er.charAt(n>>2)+er.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function rr(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=er.indexOf(t.charAt(e));o<0||(0==r?(n+=zn(o>>2),i=3&o,r=1):1==r?(n+=zn(i<<2|o>>4),i=15&o,r=2):2==r?(n+=zn(i),n+=zn(o>>2),i=3&o,r=3):(n+=zn(i<<2|o>>4),n+=zn(15&o),r=0))}return 1==r&&(n+=zn(i<<2)),n}var ir,or={decode:function(t){var e;if(void 0===ir){var n="= \f\n\r\t \u2028\u2029";for(ir=Object.create(null),e=0;e<64;++e)ir["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(ir["-"]=62,ir._=63,e=0;e<n.length;++e)ir[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=ir[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=or.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 or.decode(t)}},ar=1e13,sr=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)<ar?e=0:r-=(e=0|r/ar)*ar,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+=ar,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+=(ar+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*ar+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),cr=/^(\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)?)?$/,ur=/^(\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 dr(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var lr,pr=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?cr:ur).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 sr(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+dr(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return dr(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 sr,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 sr)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 dr(r,n);i=new sr,o=0}}return o>0&&(r+=".incomplete"),r},t}(),fr=function(){function t(t,e,n,r,i){if(!(r instanceof hr))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 dr(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return dr(this.stream.parseStringISO(e,e+n),t);case 30:return dr(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 pr?e:new pr(e,0);var r=new pr(n),i=new hr(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}(),hr=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 sr;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}(),gr=[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],vr=(1<<26)/gr[gr.length-1],yr=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=zn(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+=zn(n));return i?o:"0"},t.prototype.negate=function(){var e=Sr();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)+Nr(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=Sr();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 Ir(e):new br(e),this.exp(t,n)},t.prototype.clone=function(){var t=Sr();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=Sr();return this.bitwiseTo(t,Zn,e),e},t.prototype.or=function(t){var e=Sr();return this.bitwiseTo(t,Jn,e),e},t.prototype.xor=function(t){var e=Sr();return this.bitwiseTo(t,Wn,e),e},t.prototype.andNot=function(t){var e=Sr();return this.bitwiseTo(t,Yn,e),e},t.prototype.not=function(){for(var t=Sr(),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=Sr();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=Sr();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+$n(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+=Xn(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,Jn)},t.prototype.clearBit=function(t){return this.changeBit(t,Yn)},t.prototype.flipBit=function(t){return this.changeBit(t,Wn)},t.prototype.add=function(t){var e=Sr();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=Sr();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=Sr();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=Sr();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=Sr();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=Sr(),n=Sr();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=xr(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new Ir(e):e.isEven()?new Tr(e):new br(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=Sr();for(r.sqrTo(a[1],d);s<=u;)a[s]=Sr(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=Sr();for(i=Nr(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=xr(1),a=xr(0),s=xr(0),c=xr(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 mr)},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]<=gr[gr.length-1]){for(e=0;e<gr.length;++e)if(n[0]==gr[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<gr.length;){for(var r=gr[e],i=e+1;i<gr.length&&r<vr;)r*=gr[i++];for(r=n.modInt(r);e<i;)if(r%gr[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]:Or(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=Sr());var a=Sr(),s=this.s,c=e.s,u=this.DB-Nr(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?Sr():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=Sr(),i=Sr(),o=n.convert(this),a=Nr(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=xr(n),i=Sr(),o=Sr(),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=Or(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),Jn,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)>gr.length&&(e=gr.length);for(var o=Sr(),a=0;a<e;++a){o.fromInt(gr[Math.floor(Math.random()*gr.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=Sr();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),Jn,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}(),mr=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}(),Ir=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}(),br=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=Sr();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(yr.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=Sr();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}(),Tr=function(){function t(t){this.m=t,this.r2=Sr(),this.q3=Sr(),yr.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=Sr();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 Sr(){return new yr(null)}function Er(t,e){return new yr(t,e)}var Cr="undefined"!=typeof navigator;Cr&&"Microsoft Internet Explorer"==navigator.appName?(yr.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},lr=30):Cr&&"Netscape"!=navigator.appName?(yr.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},lr=26):(yr.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},lr=28),yr.prototype.DB=lr,yr.prototype.DM=(1<<lr)-1,yr.prototype.DV=1<<lr,yr.prototype.FV=Math.pow(2,52),yr.prototype.F1=52-lr,yr.prototype.F2=2*lr-52;var wr,_r,Ar=[];for(wr="0".charCodeAt(0),_r=0;_r<=9;++_r)Ar[wr++]=_r;for(wr="a".charCodeAt(0),_r=10;_r<36;++_r)Ar[wr++]=_r;for(wr="A".charCodeAt(0),_r=10;_r<36;++_r)Ar[wr++]=_r;function Or(t,e){var n=Ar[t.charCodeAt(e)];return null==n?-1:n}function xr(t){var e=Sr();return e.fromInt(t),e}function Nr(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}yr.ZERO=xr(0),yr.ONE=xr(1);var Dr,Rr,kr=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}(),Ur=null;if(null==Ur){Ur=[],Rr=0;var Mr=void 0;if(window.crypto&&window.crypto.getRandomValues){var jr=new Uint32Array(256);for(window.crypto.getRandomValues(jr),Mr=0;Mr<jr.length;++Mr)Ur[Rr++]=255&jr[Mr]}var Lr=0,Pr=function(t){if((Lr=Lr||0)>=256||Rr>=256)window.removeEventListener?window.removeEventListener("mousemove",Pr,!1):window.detachEvent&&window.detachEvent("onmousemove",Pr);else try{var e=t.x+t.y;Ur[Rr++]=255&e,Lr+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Pr,!1):window.attachEvent&&window.attachEvent("onmousemove",Pr)}function Br(){if(null==Dr){for(Dr=new kr;Rr<256;){var t=Math.floor(65536*Math.random());Ur[Rr++]=255&t}for(Dr.init(Ur),Rr=0;Rr<Ur.length;++Rr)Ur[Rr]=0;Rr=0}return Dr.next()}var Gr=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Br()},t}(),Fr=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=Er(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 Gr,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 yr(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=Er(t,16),this.e=parseInt(e,16),this.d=Er(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=Er(t,16),this.e=parseInt(e,16),this.d=Er(n,16),this.p=Er(r,16),this.q=Er(i,16),this.dmp1=Er(o,16),this.dmq1=Er(a,16),this.coeff=Er(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Gr,r=t>>1;this.e=parseInt(e,16);for(var i=new yr(e,16);;){for(;this.p=new yr(t-r,1,n),0!=this.p.subtract(yr.ONE).gcd(i).compareTo(yr.ONE)||!this.p.isProbablePrime(10););for(;this.q=new yr(r,1,n),0!=this.q.subtract(yr.ONE).gcd(i).compareTo(yr.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(yr.ONE),s=this.q.subtract(yr.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(yr.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=Er(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 Gr,i=t>>1;this.e=parseInt(e,16);var o=new yr(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(yr.ONE),r=a.q.subtract(yr.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(yr.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=Sr(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(yr.ONE).gcda(o,(function(t){0==t.compareTo(yr.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=Sr(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(yr.ONE).gcda(o,(function(t){0==t.compareTo(yr.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 Er("0001"+r+"00"+t,16)}((Vr[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=Er(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Vr)if(Vr.hasOwnProperty(e)){var n=Vr[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}(),Vr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},qr={};qr.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 Hr={};void 0!==Hr.asn1&&Hr.asn1||(Hr.asn1={}),Hr.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 yr(r,16).xor(t).add(yr.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Hr.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 T=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new n(t[T]);if("int"==T)return new r(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new c(t[T]);if("utf8str"==T)return new u(t[T]);if("numstr"==T)return new d(t[T]);if("prnstr"==T)return new l(t[T]);if("telstr"==T)return new p(t[T]);if("ia5str"==T)return new f(t[T]);if("utctime"==T)return new h(t[T]);if("gentime"==T)return new g(t[T]);if("seq"==T){for(var S=t[T],E=[],C=0;C<S.length;C++){var w=I(S[C]);E.push(w)}return new v({array:E})}if("set"==T){for(S=t[T],E=[],C=0;C<S.length;C++)w=I(S[C]),E.push(w);return new y({array:E})}if("tag"==T){var _=t[T];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()}},Hr.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 yr(r,2).toString(10),r="")}return e},Hr.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 yr(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},Hr.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""}},Hr.asn1.DERAbstractString=function(t){Hr.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))},qr.lang.extend(Hr.asn1.DERAbstractString,Hr.asn1.ASN1Object),Hr.asn1.DERAbstractTime=function(t){Hr.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}},qr.lang.extend(Hr.asn1.DERAbstractTime,Hr.asn1.ASN1Object),Hr.asn1.DERAbstractStructured=function(t){Hr.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)},qr.lang.extend(Hr.asn1.DERAbstractStructured,Hr.asn1.ASN1Object),Hr.asn1.DERBoolean=function(){Hr.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},qr.lang.extend(Hr.asn1.DERBoolean,Hr.asn1.ASN1Object),Hr.asn1.DERInteger=function(t){Hr.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Hr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yr(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))},qr.lang.extend(Hr.asn1.DERInteger,Hr.asn1.ASN1Object),Hr.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Hr.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Hr.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))},qr.lang.extend(Hr.asn1.DERBitString,Hr.asn1.ASN1Object),Hr.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Hr.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Hr.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},qr.lang.extend(Hr.asn1.DEROctetString,Hr.asn1.DERAbstractString),Hr.asn1.DERNull=function(){Hr.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},qr.lang.extend(Hr.asn1.DERNull,Hr.asn1.ASN1Object),Hr.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 yr(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};Hr.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=Hr.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))},qr.lang.extend(Hr.asn1.DERObjectIdentifier,Hr.asn1.ASN1Object),Hr.asn1.DEREnumerated=function(t){Hr.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Hr.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yr(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))},qr.lang.extend(Hr.asn1.DEREnumerated,Hr.asn1.ASN1Object),Hr.asn1.DERUTF8String=function(t){Hr.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},qr.lang.extend(Hr.asn1.DERUTF8String,Hr.asn1.DERAbstractString),Hr.asn1.DERNumericString=function(t){Hr.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},qr.lang.extend(Hr.asn1.DERNumericString,Hr.asn1.DERAbstractString),Hr.asn1.DERPrintableString=function(t){Hr.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},qr.lang.extend(Hr.asn1.DERPrintableString,Hr.asn1.DERAbstractString),Hr.asn1.DERTeletexString=function(t){Hr.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},qr.lang.extend(Hr.asn1.DERTeletexString,Hr.asn1.DERAbstractString),Hr.asn1.DERIA5String=function(t){Hr.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},qr.lang.extend(Hr.asn1.DERIA5String,Hr.asn1.DERAbstractString),Hr.asn1.DERUTCTime=function(t){Hr.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))},qr.lang.extend(Hr.asn1.DERUTCTime,Hr.asn1.DERAbstractTime),Hr.asn1.DERGeneralizedTime=function(t){Hr.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))},qr.lang.extend(Hr.asn1.DERGeneralizedTime,Hr.asn1.DERAbstractTime),Hr.asn1.DERSequence=function(t){Hr.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}},qr.lang.extend(Hr.asn1.DERSequence,Hr.asn1.DERAbstractStructured),Hr.asn1.DERSet=function(t){Hr.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)},qr.lang.extend(Hr.asn1.DERSet,Hr.asn1.DERAbstractStructured),Hr.asn1.DERTaggedObject=function(t){Hr.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)))},qr.lang.extend(Hr.asn1.DERTaggedObject,Hr.asn1.ASN1Object);var Kr,Qr=(Kr=function(t,e){return Kr=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])},Kr(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}Kr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),zr=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 Qr(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===tr){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(tr={},e=0;e<16;++e)tr[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)tr[n.charAt(e)]=e;for(e=0;e<r.length;++e)tr[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=tr[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):or.unarmor(t),i=fr.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Er(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Er(o,16);var a=i.sub[4].getHexStringValue();this.p=Er(a,16);var s=i.sub[5].getHexStringValue();this.q=Er(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=Er(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=Er(u,16);var d=i.sub[8].getHexStringValue();this.coeff=Er(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=Er(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 Hr.asn1.DERInteger({int:0}),new Hr.asn1.DERInteger({bigint:this.n}),new Hr.asn1.DERInteger({int:this.e}),new Hr.asn1.DERInteger({bigint:this.d}),new Hr.asn1.DERInteger({bigint:this.p}),new Hr.asn1.DERInteger({bigint:this.q}),new Hr.asn1.DERInteger({bigint:this.dmp1}),new Hr.asn1.DERInteger({bigint:this.dmq1}),new Hr.asn1.DERInteger({bigint:this.coeff})]};return new Hr.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return nr(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Hr.asn1.DERSequence({array:[new Hr.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Hr.asn1.DERNull]}),e=new Hr.asn1.DERSequence({array:[new Hr.asn1.DERInteger({bigint:this.n}),new Hr.asn1.DERInteger({int:this.e})]}),n=new Hr.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Hr.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return nr(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}(Fr),Zr=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 zr(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(rr(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return nr(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return nr(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,rr(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new zr,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}(),Jr=c.chaveMovelSignature,Wr={publicKey:null},Yr=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),Wr.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),$r=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,Yr({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Zr).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)}}(),Xr=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)}))},ti=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 Zr;return u.setPublicKey(Wr.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})},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,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,Jr,c),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y($r)({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(Xr,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",Y(ti)({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)}}(),ni=st(Jr,ei,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ri=Dn({moduleName:c.mitIdSignature,createModuleCreator:st}),ii=c.ftnQesSignature,oi=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})},ai=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,ii,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(oi)({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)}}(),si=st(ii,ai,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),ci=c.noBankIdAdvSignature,ui=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})},di=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,ci,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(ui)({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)}}(),li=st(ci,di,{name:{type:"string",required:!0}}),pi=Xe({moduleName:c.certEuropeUsbTokenSignature,createModuleCreator:st}),fi=Xe({moduleName:c.certSignUsbTokenSignature,createModuleCreator:st}),hi=Dn({moduleName:c.idinSignature,createModuleCreator:st}),gi=Dn({moduleName:c.verifaiSignature,createModuleCreator:st}),vi=c.spidQesSignature,yi=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})},mi=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,vi,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,Y(yi)({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)}}(),Ii=st(vi,mi,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),bi=c.frejaSimpleSignature,Ti=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})},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 n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},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 en({pollInterval:2e3,fn:Si,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ci=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,bi,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(Ti)({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(Ei)({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)}}(),wi=st(bi,Ci,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),_i=c.audkenniQesSignature,Ai=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})},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 n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},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 n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ni=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:Oi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Di=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:xi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ri=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,_i,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(Ai)({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(Ni)({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(Di)({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)}}(),ki=st(_i,Ri,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ui=Dn({moduleName:c.yesComQesSignature,createModuleCreator:st}),Mi=Dn({moduleName:c.simplySignQesSignature,createModuleCreator:st}),ji=c.uanatacaQesSignature,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.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})},Pi=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)}))},Bi=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})},Gi=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,ji,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,Y(Li)({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(Pi,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:v});case 8:return b=t.sent,t.abrupt("return",Y(Bi)({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)}}(),Fi=st(ji,Gi,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Vi=Dn({moduleName:c.certsignWebapiQesSignature,createModuleCreator:st}),qi=c.halcomQesSignature,Hi=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})},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.completeSignatureHalcom(),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 en({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.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,qi,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,Y(Hi)({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(Qi)({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)}}(),Zi=st(qi,zi,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ji=c.swissIdQesSignature,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.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})},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.completeSignatureSwissId(),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 en({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.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,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,email: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},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),eo=c.swissComQesSignature,no=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})},ro=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})},io=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:ro,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},oo=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,eo,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,Y(no)({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(io)({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)}}(),ao=st(eo,oo,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),so=Dn({moduleName:c.mitIdAdvancedSignature,createModuleCreator:st}),co=Dn({moduleName:c.mitIdQesSignature,createModuleCreator:st}),uo=Dn({moduleName:c.seBankIdAdvancedSignature,createModuleCreator:st}),lo=Dn({moduleName:c.seBankIdQesSignature,createModuleCreator:st}),po=c.frejaAdvancedSignature,fo=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})},ho=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,po,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(fo)({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)}}(),go=st(po,ho,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),vo=c.frejaQesSignature,yo=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})},mo=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,vo,u),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,Y(yo)({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)}}(),Io=st(vo,mo,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),bo=Object.freeze({sandbox:"sandbox",production:"production"});function To(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 So(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?To(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Eo=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=So(So({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},Co=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},wo=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=So({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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 Co({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")},cscApiAuthorizeCredentialRedirect:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential-redirect")}},r),o=(n(t={},bo.production,So({},Eo(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),n(t,bo.sandbox,So({},Eo(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?bo.sandbox:bo.production;return o[t]}}},_o=c.eParakstsSmartCard,Ao=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Oo=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(Ao)({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)}}(),xo=st(_o,Oo),No=Dn({moduleName:c.itsmeQesSignature,createModuleCreator:st}),Do=Dn({moduleName:c.frIdentAdvancedSignature,createModuleCreator:st}),Ro=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_({rawSettings:t,schema:A}),n=G({currentLanguage:"en"}),r=wo({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,xo,kt,Pt,Vt,Qt,Wt,te,ie,ce,pe,ve,be,Ce,Oe,Re,je,Ge,He,Ze],signingModules:[tn,un,vn,Sn,On,Rn,kn,Un,si,Mn,Bn,Gn,Fn,Vn,Qn,ni,ri,li,pi,fi,hi,gi,Ii,wi,ki,Ui,Mi,Fi,Vi,Zi,to,ao,so,co,uo,lo,go,Io,No,Do]})},ko=Ro}(),o}()}));
|
|
9
9
|
|
|
10
10
|
/***/ }),
|
|
11
11
|
|
|
@@ -17910,7 +17910,7 @@ module.exports = {
|
|
|
17910
17910
|
...rest
|
|
17911
17911
|
}, children.concat([_c('defs', [_c('radialGradient', {
|
|
17912
17912
|
attrs: {
|
|
17913
|
-
"id": "id-
|
|
17913
|
+
"id": "id-11b",
|
|
17914
17914
|
"cx": "70.69",
|
|
17915
17915
|
"cy": "120.71",
|
|
17916
17916
|
"r": "20.17",
|
|
@@ -17930,7 +17930,7 @@ module.exports = {
|
|
|
17930
17930
|
}
|
|
17931
17931
|
})]), _c('radialGradient', {
|
|
17932
17932
|
attrs: {
|
|
17933
|
-
"id": "id-
|
|
17933
|
+
"id": "id-12c",
|
|
17934
17934
|
"cx": "84.22",
|
|
17935
17935
|
"cy": "123.44",
|
|
17936
17936
|
"r": "24.08",
|
|
@@ -17949,7 +17949,7 @@ module.exports = {
|
|
|
17949
17949
|
}
|
|
17950
17950
|
})]), _c('radialGradient', {
|
|
17951
17951
|
attrs: {
|
|
17952
|
-
"id": "id-
|
|
17952
|
+
"id": "id-13d",
|
|
17953
17953
|
"cx": "106.44",
|
|
17954
17954
|
"cy": "89.14",
|
|
17955
17955
|
"r": "41.36",
|
|
@@ -17969,7 +17969,7 @@ module.exports = {
|
|
|
17969
17969
|
}
|
|
17970
17970
|
})]), _c('radialGradient', {
|
|
17971
17971
|
attrs: {
|
|
17972
|
-
"id": "id-
|
|
17972
|
+
"id": "id-14e",
|
|
17973
17973
|
"cx": "53.82",
|
|
17974
17974
|
"cy": "72.57",
|
|
17975
17975
|
"r": "27.02",
|
|
@@ -17989,7 +17989,7 @@ module.exports = {
|
|
|
17989
17989
|
}
|
|
17990
17990
|
})]), _c('radialGradient', {
|
|
17991
17991
|
attrs: {
|
|
17992
|
-
"id": "id-
|
|
17992
|
+
"id": "id-15f",
|
|
17993
17993
|
"cx": "88.49",
|
|
17994
17994
|
"cy": "104.89",
|
|
17995
17995
|
"r": "47.74",
|
|
@@ -18009,7 +18009,7 @@ module.exports = {
|
|
|
18009
18009
|
}
|
|
18010
18010
|
})]), _c('radialGradient', {
|
|
18011
18011
|
attrs: {
|
|
18012
|
-
"id": "id-
|
|
18012
|
+
"id": "id-16g",
|
|
18013
18013
|
"cx": "47.21",
|
|
18014
18014
|
"cy": "114.1",
|
|
18015
18015
|
"r": "55.18",
|
|
@@ -18028,7 +18028,7 @@ module.exports = {
|
|
|
18028
18028
|
}
|
|
18029
18029
|
})]), _c('linearGradient', {
|
|
18030
18030
|
attrs: {
|
|
18031
|
-
"id": "id-
|
|
18031
|
+
"id": "id-10a",
|
|
18032
18032
|
"x1": "69.55",
|
|
18033
18033
|
"y1": "48.21",
|
|
18034
18034
|
"x2": "60.12",
|
|
@@ -18074,37 +18074,37 @@ module.exports = {
|
|
|
18074
18074
|
}), _c('path', {
|
|
18075
18075
|
attrs: {
|
|
18076
18076
|
"d": "M70.92 110.13l-.39-.08a7.12 7.12 0 01-2.07-.92c-4.14-2.79-3.07-9-5.25-12.94a11.37 11.37 0 00-3-3.28l-.11-.09c-.48.48-1.19 1.23-2.34 2.38a32 32 0 00-2.51 2.89 35.66 35.66 0 016.6 9.2c2 4.49 2.54 9.38 4.1 14a17.94 17.94 0 002.32 4.88 6.09 6.09 0 002.66 2.21v-18.3z",
|
|
18077
|
-
"fill": "url(#id-
|
|
18077
|
+
"fill": "url(#id-10a)"
|
|
18078
18078
|
}
|
|
18079
18079
|
}), _c('path', {
|
|
18080
18080
|
attrs: {
|
|
18081
18081
|
"d": "M66 53.19c.44.48 1 1.06 1.5 1.58s1.18 1.22 1.91 1.92c.45.43 1 1 1.47 1.4V36.94a5.66 5.66 0 00-1.49-.1 12.91 12.91 0 00-3.69.76 9.5 9.5 0 00-2.91 1.64 5.53 5.53 0 00-1.92 3.12 8 8 0 00.84 5 18.86 18.86 0 001.77 3s.5.61.78.92c.57.58 1.16 1.24 1.74 1.91z",
|
|
18082
|
-
"fill": "url(#id-
|
|
18082
|
+
"fill": "url(#id-11b)"
|
|
18083
18083
|
}
|
|
18084
18084
|
}), _c('path', {
|
|
18085
18085
|
attrs: {
|
|
18086
18086
|
"d": "M99.75 69.55a27.37 27.37 0 00-2.39-9.26 23.91 23.91 0 00-4.74-6.78c-.19-.19-.39-.39-.59-.57a25 25 0 00-3.56-2.77 25.86 25.86 0 00-3.93-2.07 23.36 23.36 0 00-7.07-1.75 12.66 12.66 0 00-6.56 1v10.7c1.2 1.1 2.64 2.42 3.37 3.07.51.45 1 .88 1.51 1.32l1.49 1.25L78.83 65c.64.54 2.94 2.4 3.21 2.63l.45.36 5.81 4.71.13.1c.78.63 4.79 3.86 6.76 5.55s3.45 3 3.59 3.15a48.15 48.15 0 00.87-5.32 37.1 37.1 0 00.1-6.63z",
|
|
18087
|
-
"fill": "url(#id-
|
|
18087
|
+
"fill": "url(#id-12c)"
|
|
18088
18088
|
}
|
|
18089
18089
|
}), _c('path', {
|
|
18090
18090
|
attrs: {
|
|
18091
18091
|
"d": "M112.35 100.58a26.08 26.08 0 00-3.28-7.42 50.76 50.76 0 00-7.27-8.8c-1-1-2-1.9-3-2.85-.1.45-.35 1.52-.85 3.15-.26.85-.73 2.25-.91 2.78-.27.77-.79 2.15-1.14 3-.48 1.25-1.24 3-1.92 4.46C93 97 92.45 98 91.36 100c-.49.89-.91 1.74-1.52 2.8-.21.36-.43.74-.69 1.16-.11.17-1.37 2.21-1.5 2.44-.25.39-.53.84-.7 1.09-1.51 2.31-1.64 2.42-1.88 2.76-.56.76.2-.28-.86 1.21L81.7 115c-.37.51-1.62 2.15-3 3.86s-2.8 3.58-3.43 4.33l-4.41 5.2v10.45c1.86-.15 3.8-.41 5.79-.77a66.86 66.86 0 007.54-1.87 62.31 62.31 0 006.38-2.38 54.74 54.74 0 005.46-2.76 44.25 44.25 0 006.42-4.51 32.83 32.83 0 005.91-6.52 26.15 26.15 0 003.78-8.35 25.76 25.76 0 00.76-5.21 20.55 20.55 0 00-.55-5.89z",
|
|
18092
|
-
"fill": "url(#id-
|
|
18092
|
+
"fill": "url(#id-13d)"
|
|
18093
18093
|
}
|
|
18094
18094
|
}), _c('path', {
|
|
18095
18095
|
attrs: {
|
|
18096
18096
|
"d": "M68.26 126.22a17.94 17.94 0 01-2.32-4.88c-1.56-4.66-2.06-9.55-4.1-14a35.73 35.73 0 00-6.59-9.2 27.3 27.3 0 00-1.93 2.86 16.66 16.66 0 00-1.32 2.85 14.29 14.29 0 00-.44 1.71 12 12 0 00-.2 1.8 12.3 12.3 0 00.14 2.33 14.14 14.14 0 00.64 2.5 17.21 17.21 0 001.42 3l.25.41a24.12 24.12 0 004.26 5.11 32.86 32.86 0 002.93 2.41c.69.49 1.39 1 2.11 1.41 1 .6 1.95 1.16 2.95 1.68 1.36.7 3.5 1.67 4.87 2.22a6.09 6.09 0 01-2.67-2.21z",
|
|
18097
|
-
"fill": "url(#id-
|
|
18097
|
+
"fill": "url(#id-14e)"
|
|
18098
18098
|
}
|
|
18099
18099
|
}), _c('path', {
|
|
18100
18100
|
attrs: {
|
|
18101
18101
|
"d": "M98.78 81.5c-.14-.13-1.75-1.58-3.59-3.15s-6-4.92-6.76-5.55l-.13-.1-5.81-4.7c-.22-.17-.37-.3-.45-.37-.27-.22-2.57-2.08-3.21-2.62l-1.55-1.3-1.48-1.23c-.54-.44-1-.87-1.52-1.33-.73-.64-2.17-2-3.37-3.06-.46-.43-1-1-1.46-1.39-.73-.7-1.29-1.26-1.91-1.92s-1.06-1.1-1.5-1.58c-.62-.67-1.21-1.33-1.74-1.95l-.6-.7c.35.57 1.08 1.62 1.45 2.14 1 1.48.81 1.17 1.81 2.67.68 1 1.83 2.86 2.46 3.92a4.1 4.1 0 01.22.41 16.8 16.8 0 011 2.25 4.12 4.12 0 01.25 1.1v65.38l4.41-5.2c.63-.75 2.07-2.58 3.43-4.33s2.58-3.35 3-3.86l2.51-3.58c1.06-1.49.3-.45.86-1.21.24-.34.37-.45 1.88-2.76l.7-1.09c.13-.23 1.39-2.27 1.5-2.45.26-.41.48-.79.69-1.15.61-1.06 1-1.91 1.52-2.8 1.09-2 1.62-3 2.6-5.08.68-1.48 1.44-3.22 1.92-4.46.35-.87.87-2.26 1.13-3 .19-.54.66-1.93.92-2.78.5-1.64.75-2.71.85-3.16z",
|
|
18102
|
-
"fill": "url(#id-
|
|
18102
|
+
"fill": "url(#id-15f)"
|
|
18103
18103
|
}
|
|
18104
18104
|
}), _c('path', {
|
|
18105
18105
|
attrs: {
|
|
18106
18106
|
"d": "M55.24 98.09a32 32 0 012.51-2.89c1.15-1.15 1.86-1.89 2.34-2.38-4-3.15-9.55-5.51-8.31-11.39 1.11-5.27 8.37-4.37 11.17-8.21 1.35-1.84 1.85-4.1 2.77-6.15a6.38 6.38 0 015.19-4 4.11 4.11 0 00-.25-1.11 16.13 16.13 0 00-1-2.24 3.36 3.36 0 00-.22-.42c-.63-1.05-1.78-2.89-2.46-3.92-1-1.5-.78-1.19-1.81-2.66-.37-.53-1.1-1.58-1.45-2.15a1.89 1.89 0 01-.18-.22 18.47 18.47 0 01-1.77-3l-.26-.63-3.24 2.4c-2.56 1.88-5.14 3.74-7.63 5.71-1.64 1.29-3.25 2.63-4.79 4a44.59 44.59 0 00-4.27 4.4c-2.47 3-4.42 6.36-4.7 10.2a13.06 13.06 0 000 1.88 13.62 13.62 0 00.26 2 15.73 15.73 0 002.94 6.4 36.68 36.68 0 005.5 5.65l1 .89c2.35 2 4.74 4 7 6.2.64.6 1.25 1.23 1.86 1.87l-.19-.21z",
|
|
18107
|
-
"fill": "url(#id-
|
|
18107
|
+
"fill": "url(#id-16g)"
|
|
18108
18108
|
}
|
|
18109
18109
|
})]));
|
|
18110
18110
|
}
|
|
@@ -18221,12 +18221,12 @@ module.exports = {
|
|
|
18221
18221
|
...rest
|
|
18222
18222
|
}, children.concat([_c('defs', [_c('path', {
|
|
18223
18223
|
attrs: {
|
|
18224
|
-
"id": "id-
|
|
18224
|
+
"id": "id-6a",
|
|
18225
18225
|
"d": "M.18.059h26.722v9.069H.18z"
|
|
18226
18226
|
}
|
|
18227
18227
|
}), _c('path', {
|
|
18228
18228
|
attrs: {
|
|
18229
|
-
"id": "id-
|
|
18229
|
+
"id": "id-8c",
|
|
18230
18230
|
"d": "M0 .04h44.355v37.372H0z"
|
|
18231
18231
|
}
|
|
18232
18232
|
})]), _c('g', {
|
|
@@ -18250,18 +18250,18 @@ module.exports = {
|
|
|
18250
18250
|
}
|
|
18251
18251
|
}, [_c('mask', {
|
|
18252
18252
|
attrs: {
|
|
18253
|
-
"id": "id-
|
|
18253
|
+
"id": "id-7b",
|
|
18254
18254
|
"fill": "#fff"
|
|
18255
18255
|
}
|
|
18256
18256
|
}, [_c('use', {
|
|
18257
18257
|
attrs: {
|
|
18258
|
-
"xlink:href": "#id-
|
|
18258
|
+
"xlink:href": "#id-6a"
|
|
18259
18259
|
}
|
|
18260
18260
|
})]), _c('path', {
|
|
18261
18261
|
attrs: {
|
|
18262
18262
|
"fill": "#D70F16",
|
|
18263
18263
|
"d": "M25.786.059c-3.251 2.918-7.541 4.72-12.262 4.72-4.7 0-8.99-1.782-12.222-4.7-1.724 1.723-1.43 4.622.666 5.876a22.548 22.548 0 0011.576 3.173c4.23 0 8.207-1.175 11.596-3.193 2.076-1.234 2.35-4.153.646-5.876",
|
|
18264
|
-
"mask": "url(#id-
|
|
18264
|
+
"mask": "url(#id-7b)"
|
|
18265
18265
|
}
|
|
18266
18266
|
})]), _c('g', {
|
|
18267
18267
|
attrs: {
|
|
@@ -18269,18 +18269,18 @@ module.exports = {
|
|
|
18269
18269
|
}
|
|
18270
18270
|
}, [_c('mask', {
|
|
18271
18271
|
attrs: {
|
|
18272
|
-
"id": "id-
|
|
18272
|
+
"id": "id-9d",
|
|
18273
18273
|
"fill": "#fff"
|
|
18274
18274
|
}
|
|
18275
18275
|
}, [_c('use', {
|
|
18276
18276
|
attrs: {
|
|
18277
|
-
"xlink:href": "#id-
|
|
18277
|
+
"xlink:href": "#id-8c"
|
|
18278
18278
|
}
|
|
18279
18279
|
})]), _c('path', {
|
|
18280
18280
|
attrs: {
|
|
18281
18281
|
"fill": "#58595B",
|
|
18282
18282
|
"d": "M38.93.705L38.342.04l-.627.627c-1.822 1.822-2.233 4.623-.999 6.954 1.508 2.86 2.116 6.091 1.783 9.343-.784 7.6-6.876 13.711-14.456 14.554a15.12 15.12 0 01-1.88.097c-9.05.02-16.415-7.345-16.415-16.394 0-2.645.647-5.27 1.861-7.58 1.214-2.332.823-5.133-.999-6.954L5.983.059l-.587.685A22.086 22.086 0 00.009 15.866c.313 11.42 9.5 20.88 20.9 21.507.43.02.842.04 1.273.04 12.223 0 22.173-9.951 22.173-22.193A22.22 22.22 0 0038.93.705",
|
|
18283
|
-
"mask": "url(#id-
|
|
18283
|
+
"mask": "url(#id-9d)"
|
|
18284
18284
|
}
|
|
18285
18285
|
})]), _c('path', {
|
|
18286
18286
|
attrs: {
|
|
@@ -18528,6 +18528,49 @@ module.exports = function (argument) {
|
|
|
18528
18528
|
};
|
|
18529
18529
|
|
|
18530
18530
|
|
|
18531
|
+
/***/ }),
|
|
18532
|
+
|
|
18533
|
+
/***/ 51223:
|
|
18534
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18535
|
+
|
|
18536
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
|
18537
|
+
var create = __webpack_require__(70030);
|
|
18538
|
+
var defineProperty = (__webpack_require__(3070).f);
|
|
18539
|
+
|
|
18540
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
18541
|
+
var ArrayPrototype = Array.prototype;
|
|
18542
|
+
|
|
18543
|
+
// Array.prototype[@@unscopables]
|
|
18544
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
18545
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
18546
|
+
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
18547
|
+
configurable: true,
|
|
18548
|
+
value: create(null)
|
|
18549
|
+
});
|
|
18550
|
+
}
|
|
18551
|
+
|
|
18552
|
+
// add a key to Array.prototype[@@unscopables]
|
|
18553
|
+
module.exports = function (key) {
|
|
18554
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
18555
|
+
};
|
|
18556
|
+
|
|
18557
|
+
|
|
18558
|
+
/***/ }),
|
|
18559
|
+
|
|
18560
|
+
/***/ 31530:
|
|
18561
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18562
|
+
|
|
18563
|
+
"use strict";
|
|
18564
|
+
|
|
18565
|
+
var charAt = (__webpack_require__(28710).charAt);
|
|
18566
|
+
|
|
18567
|
+
// `AdvanceStringIndex` abstract operation
|
|
18568
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
18569
|
+
module.exports = function (S, index, unicode) {
|
|
18570
|
+
return index + (unicode ? charAt(S, index).length : 1);
|
|
18571
|
+
};
|
|
18572
|
+
|
|
18573
|
+
|
|
18531
18574
|
/***/ }),
|
|
18532
18575
|
|
|
18533
18576
|
/***/ 19670:
|
|
@@ -18760,6 +18803,33 @@ module.exports = function (target, source, exceptions) {
|
|
|
18760
18803
|
};
|
|
18761
18804
|
|
|
18762
18805
|
|
|
18806
|
+
/***/ }),
|
|
18807
|
+
|
|
18808
|
+
/***/ 49920:
|
|
18809
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18810
|
+
|
|
18811
|
+
var fails = __webpack_require__(47293);
|
|
18812
|
+
|
|
18813
|
+
module.exports = !fails(function () {
|
|
18814
|
+
function F() { /* empty */ }
|
|
18815
|
+
F.prototype.constructor = null;
|
|
18816
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
18817
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
18818
|
+
});
|
|
18819
|
+
|
|
18820
|
+
|
|
18821
|
+
/***/ }),
|
|
18822
|
+
|
|
18823
|
+
/***/ 76178:
|
|
18824
|
+
/***/ (function(module) {
|
|
18825
|
+
|
|
18826
|
+
// `CreateIterResultObject` abstract operation
|
|
18827
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
18828
|
+
module.exports = function (value, done) {
|
|
18829
|
+
return { value: value, done: done };
|
|
18830
|
+
};
|
|
18831
|
+
|
|
18832
|
+
|
|
18763
18833
|
/***/ }),
|
|
18764
18834
|
|
|
18765
18835
|
/***/ 68880:
|
|
@@ -18907,6 +18977,62 @@ module.exports = function (it) {
|
|
|
18907
18977
|
};
|
|
18908
18978
|
|
|
18909
18979
|
|
|
18980
|
+
/***/ }),
|
|
18981
|
+
|
|
18982
|
+
/***/ 48324:
|
|
18983
|
+
/***/ (function(module) {
|
|
18984
|
+
|
|
18985
|
+
// iterable DOM collections
|
|
18986
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
18987
|
+
module.exports = {
|
|
18988
|
+
CSSRuleList: 0,
|
|
18989
|
+
CSSStyleDeclaration: 0,
|
|
18990
|
+
CSSValueList: 0,
|
|
18991
|
+
ClientRectList: 0,
|
|
18992
|
+
DOMRectList: 0,
|
|
18993
|
+
DOMStringList: 0,
|
|
18994
|
+
DOMTokenList: 1,
|
|
18995
|
+
DataTransferItemList: 0,
|
|
18996
|
+
FileList: 0,
|
|
18997
|
+
HTMLAllCollection: 0,
|
|
18998
|
+
HTMLCollection: 0,
|
|
18999
|
+
HTMLFormElement: 0,
|
|
19000
|
+
HTMLSelectElement: 0,
|
|
19001
|
+
MediaList: 0,
|
|
19002
|
+
MimeTypeArray: 0,
|
|
19003
|
+
NamedNodeMap: 0,
|
|
19004
|
+
NodeList: 1,
|
|
19005
|
+
PaintRequestList: 0,
|
|
19006
|
+
Plugin: 0,
|
|
19007
|
+
PluginArray: 0,
|
|
19008
|
+
SVGLengthList: 0,
|
|
19009
|
+
SVGNumberList: 0,
|
|
19010
|
+
SVGPathSegList: 0,
|
|
19011
|
+
SVGPointList: 0,
|
|
19012
|
+
SVGStringList: 0,
|
|
19013
|
+
SVGTransformList: 0,
|
|
19014
|
+
SourceBufferList: 0,
|
|
19015
|
+
StyleSheetList: 0,
|
|
19016
|
+
TextTrackCueList: 0,
|
|
19017
|
+
TextTrackList: 0,
|
|
19018
|
+
TouchList: 0
|
|
19019
|
+
};
|
|
19020
|
+
|
|
19021
|
+
|
|
19022
|
+
/***/ }),
|
|
19023
|
+
|
|
19024
|
+
/***/ 98509:
|
|
19025
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19026
|
+
|
|
19027
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
19028
|
+
var documentCreateElement = __webpack_require__(80317);
|
|
19029
|
+
|
|
19030
|
+
var classList = documentCreateElement('span').classList;
|
|
19031
|
+
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
|
19032
|
+
|
|
19033
|
+
module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
|
19034
|
+
|
|
19035
|
+
|
|
18910
19036
|
/***/ }),
|
|
18911
19037
|
|
|
18912
19038
|
/***/ 35268:
|
|
@@ -19092,6 +19218,88 @@ module.exports = function (exec) {
|
|
|
19092
19218
|
};
|
|
19093
19219
|
|
|
19094
19220
|
|
|
19221
|
+
/***/ }),
|
|
19222
|
+
|
|
19223
|
+
/***/ 27007:
|
|
19224
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19225
|
+
|
|
19226
|
+
"use strict";
|
|
19227
|
+
|
|
19228
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
19229
|
+
__webpack_require__(74916);
|
|
19230
|
+
var uncurryThis = __webpack_require__(21470);
|
|
19231
|
+
var defineBuiltIn = __webpack_require__(98052);
|
|
19232
|
+
var regexpExec = __webpack_require__(22261);
|
|
19233
|
+
var fails = __webpack_require__(47293);
|
|
19234
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
|
19235
|
+
var createNonEnumerableProperty = __webpack_require__(68880);
|
|
19236
|
+
|
|
19237
|
+
var SPECIES = wellKnownSymbol('species');
|
|
19238
|
+
var RegExpPrototype = RegExp.prototype;
|
|
19239
|
+
|
|
19240
|
+
module.exports = function (KEY, exec, FORCED, SHAM) {
|
|
19241
|
+
var SYMBOL = wellKnownSymbol(KEY);
|
|
19242
|
+
|
|
19243
|
+
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
19244
|
+
// String methods call symbol-named RegEp methods
|
|
19245
|
+
var O = {};
|
|
19246
|
+
O[SYMBOL] = function () { return 7; };
|
|
19247
|
+
return ''[KEY](O) != 7;
|
|
19248
|
+
});
|
|
19249
|
+
|
|
19250
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
19251
|
+
// Symbol-named RegExp methods call .exec
|
|
19252
|
+
var execCalled = false;
|
|
19253
|
+
var re = /a/;
|
|
19254
|
+
|
|
19255
|
+
if (KEY === 'split') {
|
|
19256
|
+
// We can't use real regex here since it causes deoptimization
|
|
19257
|
+
// and serious performance degradation in V8
|
|
19258
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
19259
|
+
re = {};
|
|
19260
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
19261
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
19262
|
+
re.constructor = {};
|
|
19263
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
19264
|
+
re.flags = '';
|
|
19265
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
19266
|
+
}
|
|
19267
|
+
|
|
19268
|
+
re.exec = function () { execCalled = true; return null; };
|
|
19269
|
+
|
|
19270
|
+
re[SYMBOL]('');
|
|
19271
|
+
return !execCalled;
|
|
19272
|
+
});
|
|
19273
|
+
|
|
19274
|
+
if (
|
|
19275
|
+
!DELEGATES_TO_SYMBOL ||
|
|
19276
|
+
!DELEGATES_TO_EXEC ||
|
|
19277
|
+
FORCED
|
|
19278
|
+
) {
|
|
19279
|
+
var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
|
|
19280
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
19281
|
+
var uncurriedNativeMethod = uncurryThis(nativeMethod);
|
|
19282
|
+
var $exec = regexp.exec;
|
|
19283
|
+
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
|
19284
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
19285
|
+
// The native String method already delegates to @@method (this
|
|
19286
|
+
// polyfilled function), leasing to infinite recursion.
|
|
19287
|
+
// We avoid it by directly calling the native @@method method.
|
|
19288
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
19289
|
+
}
|
|
19290
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
19291
|
+
}
|
|
19292
|
+
return { done: false };
|
|
19293
|
+
});
|
|
19294
|
+
|
|
19295
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
19296
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
19297
|
+
}
|
|
19298
|
+
|
|
19299
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
19300
|
+
};
|
|
19301
|
+
|
|
19302
|
+
|
|
19095
19303
|
/***/ }),
|
|
19096
19304
|
|
|
19097
19305
|
/***/ 22104:
|
|
@@ -19162,6 +19370,22 @@ module.exports = {
|
|
|
19162
19370
|
};
|
|
19163
19371
|
|
|
19164
19372
|
|
|
19373
|
+
/***/ }),
|
|
19374
|
+
|
|
19375
|
+
/***/ 21470:
|
|
19376
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19377
|
+
|
|
19378
|
+
var classofRaw = __webpack_require__(84326);
|
|
19379
|
+
var uncurryThis = __webpack_require__(1702);
|
|
19380
|
+
|
|
19381
|
+
module.exports = function (fn) {
|
|
19382
|
+
// Nashorn bug:
|
|
19383
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
19384
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
19385
|
+
if (classofRaw(fn) === 'Function') return uncurryThis(fn);
|
|
19386
|
+
};
|
|
19387
|
+
|
|
19388
|
+
|
|
19165
19389
|
/***/ }),
|
|
19166
19390
|
|
|
19167
19391
|
/***/ 1702:
|
|
@@ -19213,6 +19437,57 @@ module.exports = function (V, P) {
|
|
|
19213
19437
|
};
|
|
19214
19438
|
|
|
19215
19439
|
|
|
19440
|
+
/***/ }),
|
|
19441
|
+
|
|
19442
|
+
/***/ 10647:
|
|
19443
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19444
|
+
|
|
19445
|
+
var uncurryThis = __webpack_require__(1702);
|
|
19446
|
+
var toObject = __webpack_require__(47908);
|
|
19447
|
+
|
|
19448
|
+
var floor = Math.floor;
|
|
19449
|
+
var charAt = uncurryThis(''.charAt);
|
|
19450
|
+
var replace = uncurryThis(''.replace);
|
|
19451
|
+
var stringSlice = uncurryThis(''.slice);
|
|
19452
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
19453
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
19454
|
+
|
|
19455
|
+
// `GetSubstitution` abstract operation
|
|
19456
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
19457
|
+
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
19458
|
+
var tailPos = position + matched.length;
|
|
19459
|
+
var m = captures.length;
|
|
19460
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
19461
|
+
if (namedCaptures !== undefined) {
|
|
19462
|
+
namedCaptures = toObject(namedCaptures);
|
|
19463
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
19464
|
+
}
|
|
19465
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
19466
|
+
var capture;
|
|
19467
|
+
switch (charAt(ch, 0)) {
|
|
19468
|
+
case '$': return '$';
|
|
19469
|
+
case '&': return matched;
|
|
19470
|
+
case '`': return stringSlice(str, 0, position);
|
|
19471
|
+
case "'": return stringSlice(str, tailPos);
|
|
19472
|
+
case '<':
|
|
19473
|
+
capture = namedCaptures[stringSlice(ch, 1, -1)];
|
|
19474
|
+
break;
|
|
19475
|
+
default: // \d\d?
|
|
19476
|
+
var n = +ch;
|
|
19477
|
+
if (n === 0) return match;
|
|
19478
|
+
if (n > m) {
|
|
19479
|
+
var f = floor(n / 10);
|
|
19480
|
+
if (f === 0) return match;
|
|
19481
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
19482
|
+
return match;
|
|
19483
|
+
}
|
|
19484
|
+
capture = captures[n - 1];
|
|
19485
|
+
}
|
|
19486
|
+
return capture === undefined ? '' : capture;
|
|
19487
|
+
});
|
|
19488
|
+
};
|
|
19489
|
+
|
|
19490
|
+
|
|
19216
19491
|
/***/ }),
|
|
19217
19492
|
|
|
19218
19493
|
/***/ 17854:
|
|
@@ -19260,6 +19535,16 @@ module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
|
19260
19535
|
module.exports = {};
|
|
19261
19536
|
|
|
19262
19537
|
|
|
19538
|
+
/***/ }),
|
|
19539
|
+
|
|
19540
|
+
/***/ 60490:
|
|
19541
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19542
|
+
|
|
19543
|
+
var getBuiltIn = __webpack_require__(35005);
|
|
19544
|
+
|
|
19545
|
+
module.exports = getBuiltIn('document', 'documentElement');
|
|
19546
|
+
|
|
19547
|
+
|
|
19263
19548
|
/***/ }),
|
|
19264
19549
|
|
|
19265
19550
|
/***/ 64664:
|
|
@@ -19559,6 +19844,202 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
19559
19844
|
};
|
|
19560
19845
|
|
|
19561
19846
|
|
|
19847
|
+
/***/ }),
|
|
19848
|
+
|
|
19849
|
+
/***/ 63061:
|
|
19850
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19851
|
+
|
|
19852
|
+
"use strict";
|
|
19853
|
+
|
|
19854
|
+
var IteratorPrototype = (__webpack_require__(13383).IteratorPrototype);
|
|
19855
|
+
var create = __webpack_require__(70030);
|
|
19856
|
+
var createPropertyDescriptor = __webpack_require__(79114);
|
|
19857
|
+
var setToStringTag = __webpack_require__(58003);
|
|
19858
|
+
var Iterators = __webpack_require__(97497);
|
|
19859
|
+
|
|
19860
|
+
var returnThis = function () { return this; };
|
|
19861
|
+
|
|
19862
|
+
module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
19863
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
19864
|
+
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
19865
|
+
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
|
19866
|
+
Iterators[TO_STRING_TAG] = returnThis;
|
|
19867
|
+
return IteratorConstructor;
|
|
19868
|
+
};
|
|
19869
|
+
|
|
19870
|
+
|
|
19871
|
+
/***/ }),
|
|
19872
|
+
|
|
19873
|
+
/***/ 51656:
|
|
19874
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19875
|
+
|
|
19876
|
+
"use strict";
|
|
19877
|
+
|
|
19878
|
+
var $ = __webpack_require__(82109);
|
|
19879
|
+
var call = __webpack_require__(46916);
|
|
19880
|
+
var IS_PURE = __webpack_require__(31913);
|
|
19881
|
+
var FunctionName = __webpack_require__(76530);
|
|
19882
|
+
var isCallable = __webpack_require__(60614);
|
|
19883
|
+
var createIteratorConstructor = __webpack_require__(63061);
|
|
19884
|
+
var getPrototypeOf = __webpack_require__(79518);
|
|
19885
|
+
var setPrototypeOf = __webpack_require__(27674);
|
|
19886
|
+
var setToStringTag = __webpack_require__(58003);
|
|
19887
|
+
var createNonEnumerableProperty = __webpack_require__(68880);
|
|
19888
|
+
var defineBuiltIn = __webpack_require__(98052);
|
|
19889
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
|
19890
|
+
var Iterators = __webpack_require__(97497);
|
|
19891
|
+
var IteratorsCore = __webpack_require__(13383);
|
|
19892
|
+
|
|
19893
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
19894
|
+
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
19895
|
+
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
19896
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
19897
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
19898
|
+
var KEYS = 'keys';
|
|
19899
|
+
var VALUES = 'values';
|
|
19900
|
+
var ENTRIES = 'entries';
|
|
19901
|
+
|
|
19902
|
+
var returnThis = function () { return this; };
|
|
19903
|
+
|
|
19904
|
+
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
19905
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
19906
|
+
|
|
19907
|
+
var getIterationMethod = function (KIND) {
|
|
19908
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
19909
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
19910
|
+
switch (KIND) {
|
|
19911
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
19912
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
19913
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
19914
|
+
} return function () { return new IteratorConstructor(this); };
|
|
19915
|
+
};
|
|
19916
|
+
|
|
19917
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
19918
|
+
var INCORRECT_VALUES_NAME = false;
|
|
19919
|
+
var IterablePrototype = Iterable.prototype;
|
|
19920
|
+
var nativeIterator = IterablePrototype[ITERATOR]
|
|
19921
|
+
|| IterablePrototype['@@iterator']
|
|
19922
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
19923
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
19924
|
+
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
19925
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
19926
|
+
|
|
19927
|
+
// fix native
|
|
19928
|
+
if (anyNativeIterator) {
|
|
19929
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
19930
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
19931
|
+
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
19932
|
+
if (setPrototypeOf) {
|
|
19933
|
+
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
19934
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
|
|
19935
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
|
|
19936
|
+
}
|
|
19937
|
+
}
|
|
19938
|
+
// Set @@toStringTag to native iterators
|
|
19939
|
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
|
19940
|
+
if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
|
|
19941
|
+
}
|
|
19942
|
+
}
|
|
19943
|
+
|
|
19944
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
19945
|
+
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
19946
|
+
if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
|
|
19947
|
+
createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
|
|
19948
|
+
} else {
|
|
19949
|
+
INCORRECT_VALUES_NAME = true;
|
|
19950
|
+
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
19951
|
+
}
|
|
19952
|
+
}
|
|
19953
|
+
|
|
19954
|
+
// export additional methods
|
|
19955
|
+
if (DEFAULT) {
|
|
19956
|
+
methods = {
|
|
19957
|
+
values: getIterationMethod(VALUES),
|
|
19958
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
19959
|
+
entries: getIterationMethod(ENTRIES)
|
|
19960
|
+
};
|
|
19961
|
+
if (FORCED) for (KEY in methods) {
|
|
19962
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
19963
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
19964
|
+
}
|
|
19965
|
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
19966
|
+
}
|
|
19967
|
+
|
|
19968
|
+
// define iterator
|
|
19969
|
+
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
|
|
19970
|
+
defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
|
|
19971
|
+
}
|
|
19972
|
+
Iterators[NAME] = defaultIterator;
|
|
19973
|
+
|
|
19974
|
+
return methods;
|
|
19975
|
+
};
|
|
19976
|
+
|
|
19977
|
+
|
|
19978
|
+
/***/ }),
|
|
19979
|
+
|
|
19980
|
+
/***/ 13383:
|
|
19981
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19982
|
+
|
|
19983
|
+
"use strict";
|
|
19984
|
+
|
|
19985
|
+
var fails = __webpack_require__(47293);
|
|
19986
|
+
var isCallable = __webpack_require__(60614);
|
|
19987
|
+
var isObject = __webpack_require__(70111);
|
|
19988
|
+
var create = __webpack_require__(70030);
|
|
19989
|
+
var getPrototypeOf = __webpack_require__(79518);
|
|
19990
|
+
var defineBuiltIn = __webpack_require__(98052);
|
|
19991
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
|
19992
|
+
var IS_PURE = __webpack_require__(31913);
|
|
19993
|
+
|
|
19994
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
19995
|
+
var BUGGY_SAFARI_ITERATORS = false;
|
|
19996
|
+
|
|
19997
|
+
// `%IteratorPrototype%` object
|
|
19998
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
19999
|
+
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
20000
|
+
|
|
20001
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
20002
|
+
if ([].keys) {
|
|
20003
|
+
arrayIterator = [].keys();
|
|
20004
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
20005
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
|
20006
|
+
else {
|
|
20007
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
|
20008
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
20009
|
+
}
|
|
20010
|
+
}
|
|
20011
|
+
|
|
20012
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
|
|
20013
|
+
var test = {};
|
|
20014
|
+
// FF44- legacy iterators case
|
|
20015
|
+
return IteratorPrototype[ITERATOR].call(test) !== test;
|
|
20016
|
+
});
|
|
20017
|
+
|
|
20018
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
|
20019
|
+
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
|
|
20020
|
+
|
|
20021
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
20022
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
20023
|
+
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
20024
|
+
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
|
|
20025
|
+
return this;
|
|
20026
|
+
});
|
|
20027
|
+
}
|
|
20028
|
+
|
|
20029
|
+
module.exports = {
|
|
20030
|
+
IteratorPrototype: IteratorPrototype,
|
|
20031
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
20032
|
+
};
|
|
20033
|
+
|
|
20034
|
+
|
|
20035
|
+
/***/ }),
|
|
20036
|
+
|
|
20037
|
+
/***/ 97497:
|
|
20038
|
+
/***/ (function(module) {
|
|
20039
|
+
|
|
20040
|
+
module.exports = {};
|
|
20041
|
+
|
|
20042
|
+
|
|
19562
20043
|
/***/ }),
|
|
19563
20044
|
|
|
19564
20045
|
/***/ 26244:
|
|
@@ -19658,6 +20139,123 @@ module.exports = function (argument, $default) {
|
|
|
19658
20139
|
};
|
|
19659
20140
|
|
|
19660
20141
|
|
|
20142
|
+
/***/ }),
|
|
20143
|
+
|
|
20144
|
+
/***/ 70030:
|
|
20145
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20146
|
+
|
|
20147
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
20148
|
+
var anObject = __webpack_require__(19670);
|
|
20149
|
+
var definePropertiesModule = __webpack_require__(36048);
|
|
20150
|
+
var enumBugKeys = __webpack_require__(80748);
|
|
20151
|
+
var hiddenKeys = __webpack_require__(3501);
|
|
20152
|
+
var html = __webpack_require__(60490);
|
|
20153
|
+
var documentCreateElement = __webpack_require__(80317);
|
|
20154
|
+
var sharedKey = __webpack_require__(6200);
|
|
20155
|
+
|
|
20156
|
+
var GT = '>';
|
|
20157
|
+
var LT = '<';
|
|
20158
|
+
var PROTOTYPE = 'prototype';
|
|
20159
|
+
var SCRIPT = 'script';
|
|
20160
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
20161
|
+
|
|
20162
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
20163
|
+
|
|
20164
|
+
var scriptTag = function (content) {
|
|
20165
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
20166
|
+
};
|
|
20167
|
+
|
|
20168
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
20169
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
20170
|
+
activeXDocument.write(scriptTag(''));
|
|
20171
|
+
activeXDocument.close();
|
|
20172
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
20173
|
+
activeXDocument = null; // avoid memory leak
|
|
20174
|
+
return temp;
|
|
20175
|
+
};
|
|
20176
|
+
|
|
20177
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
20178
|
+
var NullProtoObjectViaIFrame = function () {
|
|
20179
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
20180
|
+
var iframe = documentCreateElement('iframe');
|
|
20181
|
+
var JS = 'java' + SCRIPT + ':';
|
|
20182
|
+
var iframeDocument;
|
|
20183
|
+
iframe.style.display = 'none';
|
|
20184
|
+
html.appendChild(iframe);
|
|
20185
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
20186
|
+
iframe.src = String(JS);
|
|
20187
|
+
iframeDocument = iframe.contentWindow.document;
|
|
20188
|
+
iframeDocument.open();
|
|
20189
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
20190
|
+
iframeDocument.close();
|
|
20191
|
+
return iframeDocument.F;
|
|
20192
|
+
};
|
|
20193
|
+
|
|
20194
|
+
// Check for document.domain and active x support
|
|
20195
|
+
// No need to use active x approach when document.domain is not set
|
|
20196
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
20197
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
20198
|
+
// avoid IE GC bug
|
|
20199
|
+
var activeXDocument;
|
|
20200
|
+
var NullProtoObject = function () {
|
|
20201
|
+
try {
|
|
20202
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
20203
|
+
} catch (error) { /* ignore */ }
|
|
20204
|
+
NullProtoObject = typeof document != 'undefined'
|
|
20205
|
+
? document.domain && activeXDocument
|
|
20206
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
20207
|
+
: NullProtoObjectViaIFrame()
|
|
20208
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
20209
|
+
var length = enumBugKeys.length;
|
|
20210
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
20211
|
+
return NullProtoObject();
|
|
20212
|
+
};
|
|
20213
|
+
|
|
20214
|
+
hiddenKeys[IE_PROTO] = true;
|
|
20215
|
+
|
|
20216
|
+
// `Object.create` method
|
|
20217
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
20218
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
20219
|
+
module.exports = Object.create || function create(O, Properties) {
|
|
20220
|
+
var result;
|
|
20221
|
+
if (O !== null) {
|
|
20222
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
20223
|
+
result = new EmptyConstructor();
|
|
20224
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
20225
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
20226
|
+
result[IE_PROTO] = O;
|
|
20227
|
+
} else result = NullProtoObject();
|
|
20228
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
20229
|
+
};
|
|
20230
|
+
|
|
20231
|
+
|
|
20232
|
+
/***/ }),
|
|
20233
|
+
|
|
20234
|
+
/***/ 36048:
|
|
20235
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
20236
|
+
|
|
20237
|
+
var DESCRIPTORS = __webpack_require__(19781);
|
|
20238
|
+
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(3353);
|
|
20239
|
+
var definePropertyModule = __webpack_require__(3070);
|
|
20240
|
+
var anObject = __webpack_require__(19670);
|
|
20241
|
+
var toIndexedObject = __webpack_require__(45656);
|
|
20242
|
+
var objectKeys = __webpack_require__(81956);
|
|
20243
|
+
|
|
20244
|
+
// `Object.defineProperties` method
|
|
20245
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
20246
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
20247
|
+
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
20248
|
+
anObject(O);
|
|
20249
|
+
var props = toIndexedObject(Properties);
|
|
20250
|
+
var keys = objectKeys(Properties);
|
|
20251
|
+
var length = keys.length;
|
|
20252
|
+
var index = 0;
|
|
20253
|
+
var key;
|
|
20254
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
20255
|
+
return O;
|
|
20256
|
+
};
|
|
20257
|
+
|
|
20258
|
+
|
|
19661
20259
|
/***/ }),
|
|
19662
20260
|
|
|
19663
20261
|
/***/ 3070:
|
|
@@ -19764,6 +20362,34 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
|
19764
20362
|
exports.f = Object.getOwnPropertySymbols;
|
|
19765
20363
|
|
|
19766
20364
|
|
|
20365
|
+
/***/ }),
|
|
20366
|
+
|
|
20367
|
+
/***/ 79518:
|
|
20368
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20369
|
+
|
|
20370
|
+
var hasOwn = __webpack_require__(92597);
|
|
20371
|
+
var isCallable = __webpack_require__(60614);
|
|
20372
|
+
var toObject = __webpack_require__(47908);
|
|
20373
|
+
var sharedKey = __webpack_require__(6200);
|
|
20374
|
+
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(49920);
|
|
20375
|
+
|
|
20376
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
20377
|
+
var $Object = Object;
|
|
20378
|
+
var ObjectPrototype = $Object.prototype;
|
|
20379
|
+
|
|
20380
|
+
// `Object.getPrototypeOf` method
|
|
20381
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
20382
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
20383
|
+
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
20384
|
+
var object = toObject(O);
|
|
20385
|
+
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
|
20386
|
+
var constructor = object.constructor;
|
|
20387
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
20388
|
+
return constructor.prototype;
|
|
20389
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
20390
|
+
};
|
|
20391
|
+
|
|
20392
|
+
|
|
19767
20393
|
/***/ }),
|
|
19768
20394
|
|
|
19769
20395
|
/***/ 47976:
|
|
@@ -19801,6 +20427,22 @@ module.exports = function (object, names) {
|
|
|
19801
20427
|
};
|
|
19802
20428
|
|
|
19803
20429
|
|
|
20430
|
+
/***/ }),
|
|
20431
|
+
|
|
20432
|
+
/***/ 81956:
|
|
20433
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20434
|
+
|
|
20435
|
+
var internalObjectKeys = __webpack_require__(16324);
|
|
20436
|
+
var enumBugKeys = __webpack_require__(80748);
|
|
20437
|
+
|
|
20438
|
+
// `Object.keys` method
|
|
20439
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
20440
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
20441
|
+
module.exports = Object.keys || function keys(O) {
|
|
20442
|
+
return internalObjectKeys(O, enumBugKeys);
|
|
20443
|
+
};
|
|
20444
|
+
|
|
20445
|
+
|
|
19804
20446
|
/***/ }),
|
|
19805
20447
|
|
|
19806
20448
|
/***/ 55296:
|
|
@@ -19916,6 +20558,256 @@ module.exports = function (Target, Source, key) {
|
|
|
19916
20558
|
};
|
|
19917
20559
|
|
|
19918
20560
|
|
|
20561
|
+
/***/ }),
|
|
20562
|
+
|
|
20563
|
+
/***/ 97651:
|
|
20564
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20565
|
+
|
|
20566
|
+
var call = __webpack_require__(46916);
|
|
20567
|
+
var anObject = __webpack_require__(19670);
|
|
20568
|
+
var isCallable = __webpack_require__(60614);
|
|
20569
|
+
var classof = __webpack_require__(84326);
|
|
20570
|
+
var regexpExec = __webpack_require__(22261);
|
|
20571
|
+
|
|
20572
|
+
var $TypeError = TypeError;
|
|
20573
|
+
|
|
20574
|
+
// `RegExpExec` abstract operation
|
|
20575
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
20576
|
+
module.exports = function (R, S) {
|
|
20577
|
+
var exec = R.exec;
|
|
20578
|
+
if (isCallable(exec)) {
|
|
20579
|
+
var result = call(exec, R, S);
|
|
20580
|
+
if (result !== null) anObject(result);
|
|
20581
|
+
return result;
|
|
20582
|
+
}
|
|
20583
|
+
if (classof(R) === 'RegExp') return call(regexpExec, R, S);
|
|
20584
|
+
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
20585
|
+
};
|
|
20586
|
+
|
|
20587
|
+
|
|
20588
|
+
/***/ }),
|
|
20589
|
+
|
|
20590
|
+
/***/ 22261:
|
|
20591
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20592
|
+
|
|
20593
|
+
"use strict";
|
|
20594
|
+
|
|
20595
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
20596
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
20597
|
+
var call = __webpack_require__(46916);
|
|
20598
|
+
var uncurryThis = __webpack_require__(1702);
|
|
20599
|
+
var toString = __webpack_require__(41340);
|
|
20600
|
+
var regexpFlags = __webpack_require__(67066);
|
|
20601
|
+
var stickyHelpers = __webpack_require__(52999);
|
|
20602
|
+
var shared = __webpack_require__(72309);
|
|
20603
|
+
var create = __webpack_require__(70030);
|
|
20604
|
+
var getInternalState = (__webpack_require__(29909).get);
|
|
20605
|
+
var UNSUPPORTED_DOT_ALL = __webpack_require__(9441);
|
|
20606
|
+
var UNSUPPORTED_NCG = __webpack_require__(38173);
|
|
20607
|
+
|
|
20608
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
20609
|
+
var nativeExec = RegExp.prototype.exec;
|
|
20610
|
+
var patchedExec = nativeExec;
|
|
20611
|
+
var charAt = uncurryThis(''.charAt);
|
|
20612
|
+
var indexOf = uncurryThis(''.indexOf);
|
|
20613
|
+
var replace = uncurryThis(''.replace);
|
|
20614
|
+
var stringSlice = uncurryThis(''.slice);
|
|
20615
|
+
|
|
20616
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
20617
|
+
var re1 = /a/;
|
|
20618
|
+
var re2 = /b*/g;
|
|
20619
|
+
call(nativeExec, re1, 'a');
|
|
20620
|
+
call(nativeExec, re2, 'a');
|
|
20621
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
20622
|
+
})();
|
|
20623
|
+
|
|
20624
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
20625
|
+
|
|
20626
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
20627
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
20628
|
+
|
|
20629
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
20630
|
+
|
|
20631
|
+
if (PATCH) {
|
|
20632
|
+
patchedExec = function exec(string) {
|
|
20633
|
+
var re = this;
|
|
20634
|
+
var state = getInternalState(re);
|
|
20635
|
+
var str = toString(string);
|
|
20636
|
+
var raw = state.raw;
|
|
20637
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
20638
|
+
|
|
20639
|
+
if (raw) {
|
|
20640
|
+
raw.lastIndex = re.lastIndex;
|
|
20641
|
+
result = call(patchedExec, raw, str);
|
|
20642
|
+
re.lastIndex = raw.lastIndex;
|
|
20643
|
+
return result;
|
|
20644
|
+
}
|
|
20645
|
+
|
|
20646
|
+
var groups = state.groups;
|
|
20647
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
20648
|
+
var flags = call(regexpFlags, re);
|
|
20649
|
+
var source = re.source;
|
|
20650
|
+
var charsAdded = 0;
|
|
20651
|
+
var strCopy = str;
|
|
20652
|
+
|
|
20653
|
+
if (sticky) {
|
|
20654
|
+
flags = replace(flags, 'y', '');
|
|
20655
|
+
if (indexOf(flags, 'g') === -1) {
|
|
20656
|
+
flags += 'g';
|
|
20657
|
+
}
|
|
20658
|
+
|
|
20659
|
+
strCopy = stringSlice(str, re.lastIndex);
|
|
20660
|
+
// Support anchored sticky behavior.
|
|
20661
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
|
20662
|
+
source = '(?: ' + source + ')';
|
|
20663
|
+
strCopy = ' ' + strCopy;
|
|
20664
|
+
charsAdded++;
|
|
20665
|
+
}
|
|
20666
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
20667
|
+
// simulate the 'y' flag.
|
|
20668
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
20669
|
+
}
|
|
20670
|
+
|
|
20671
|
+
if (NPCG_INCLUDED) {
|
|
20672
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
20673
|
+
}
|
|
20674
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
20675
|
+
|
|
20676
|
+
match = call(nativeExec, sticky ? reCopy : re, strCopy);
|
|
20677
|
+
|
|
20678
|
+
if (sticky) {
|
|
20679
|
+
if (match) {
|
|
20680
|
+
match.input = stringSlice(match.input, charsAdded);
|
|
20681
|
+
match[0] = stringSlice(match[0], charsAdded);
|
|
20682
|
+
match.index = re.lastIndex;
|
|
20683
|
+
re.lastIndex += match[0].length;
|
|
20684
|
+
} else re.lastIndex = 0;
|
|
20685
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
20686
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
20687
|
+
}
|
|
20688
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
20689
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
20690
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
20691
|
+
call(nativeReplace, match[0], reCopy, function () {
|
|
20692
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
20693
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
20694
|
+
}
|
|
20695
|
+
});
|
|
20696
|
+
}
|
|
20697
|
+
|
|
20698
|
+
if (match && groups) {
|
|
20699
|
+
match.groups = object = create(null);
|
|
20700
|
+
for (i = 0; i < groups.length; i++) {
|
|
20701
|
+
group = groups[i];
|
|
20702
|
+
object[group[0]] = match[group[1]];
|
|
20703
|
+
}
|
|
20704
|
+
}
|
|
20705
|
+
|
|
20706
|
+
return match;
|
|
20707
|
+
};
|
|
20708
|
+
}
|
|
20709
|
+
|
|
20710
|
+
module.exports = patchedExec;
|
|
20711
|
+
|
|
20712
|
+
|
|
20713
|
+
/***/ }),
|
|
20714
|
+
|
|
20715
|
+
/***/ 67066:
|
|
20716
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20717
|
+
|
|
20718
|
+
"use strict";
|
|
20719
|
+
|
|
20720
|
+
var anObject = __webpack_require__(19670);
|
|
20721
|
+
|
|
20722
|
+
// `RegExp.prototype.flags` getter implementation
|
|
20723
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
20724
|
+
module.exports = function () {
|
|
20725
|
+
var that = anObject(this);
|
|
20726
|
+
var result = '';
|
|
20727
|
+
if (that.hasIndices) result += 'd';
|
|
20728
|
+
if (that.global) result += 'g';
|
|
20729
|
+
if (that.ignoreCase) result += 'i';
|
|
20730
|
+
if (that.multiline) result += 'm';
|
|
20731
|
+
if (that.dotAll) result += 's';
|
|
20732
|
+
if (that.unicode) result += 'u';
|
|
20733
|
+
if (that.unicodeSets) result += 'v';
|
|
20734
|
+
if (that.sticky) result += 'y';
|
|
20735
|
+
return result;
|
|
20736
|
+
};
|
|
20737
|
+
|
|
20738
|
+
|
|
20739
|
+
/***/ }),
|
|
20740
|
+
|
|
20741
|
+
/***/ 52999:
|
|
20742
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20743
|
+
|
|
20744
|
+
var fails = __webpack_require__(47293);
|
|
20745
|
+
var global = __webpack_require__(17854);
|
|
20746
|
+
|
|
20747
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
20748
|
+
var $RegExp = global.RegExp;
|
|
20749
|
+
|
|
20750
|
+
var UNSUPPORTED_Y = fails(function () {
|
|
20751
|
+
var re = $RegExp('a', 'y');
|
|
20752
|
+
re.lastIndex = 2;
|
|
20753
|
+
return re.exec('abcd') != null;
|
|
20754
|
+
});
|
|
20755
|
+
|
|
20756
|
+
// UC Browser bug
|
|
20757
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
20758
|
+
var MISSED_STICKY = UNSUPPORTED_Y || fails(function () {
|
|
20759
|
+
return !$RegExp('a', 'y').sticky;
|
|
20760
|
+
});
|
|
20761
|
+
|
|
20762
|
+
var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
|
|
20763
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
20764
|
+
var re = $RegExp('^r', 'gy');
|
|
20765
|
+
re.lastIndex = 2;
|
|
20766
|
+
return re.exec('str') != null;
|
|
20767
|
+
});
|
|
20768
|
+
|
|
20769
|
+
module.exports = {
|
|
20770
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
20771
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
20772
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y
|
|
20773
|
+
};
|
|
20774
|
+
|
|
20775
|
+
|
|
20776
|
+
/***/ }),
|
|
20777
|
+
|
|
20778
|
+
/***/ 9441:
|
|
20779
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20780
|
+
|
|
20781
|
+
var fails = __webpack_require__(47293);
|
|
20782
|
+
var global = __webpack_require__(17854);
|
|
20783
|
+
|
|
20784
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
20785
|
+
var $RegExp = global.RegExp;
|
|
20786
|
+
|
|
20787
|
+
module.exports = fails(function () {
|
|
20788
|
+
var re = $RegExp('.', 's');
|
|
20789
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
20790
|
+
});
|
|
20791
|
+
|
|
20792
|
+
|
|
20793
|
+
/***/ }),
|
|
20794
|
+
|
|
20795
|
+
/***/ 38173:
|
|
20796
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20797
|
+
|
|
20798
|
+
var fails = __webpack_require__(47293);
|
|
20799
|
+
var global = __webpack_require__(17854);
|
|
20800
|
+
|
|
20801
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
20802
|
+
var $RegExp = global.RegExp;
|
|
20803
|
+
|
|
20804
|
+
module.exports = fails(function () {
|
|
20805
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
20806
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
20807
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
20808
|
+
});
|
|
20809
|
+
|
|
20810
|
+
|
|
19919
20811
|
/***/ }),
|
|
19920
20812
|
|
|
19921
20813
|
/***/ 84488:
|
|
@@ -19933,6 +20825,25 @@ module.exports = function (it) {
|
|
|
19933
20825
|
};
|
|
19934
20826
|
|
|
19935
20827
|
|
|
20828
|
+
/***/ }),
|
|
20829
|
+
|
|
20830
|
+
/***/ 58003:
|
|
20831
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20832
|
+
|
|
20833
|
+
var defineProperty = (__webpack_require__(3070).f);
|
|
20834
|
+
var hasOwn = __webpack_require__(92597);
|
|
20835
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
|
20836
|
+
|
|
20837
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
20838
|
+
|
|
20839
|
+
module.exports = function (target, TAG, STATIC) {
|
|
20840
|
+
if (target && !STATIC) target = target.prototype;
|
|
20841
|
+
if (target && !hasOwn(target, TO_STRING_TAG)) {
|
|
20842
|
+
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
20843
|
+
}
|
|
20844
|
+
};
|
|
20845
|
+
|
|
20846
|
+
|
|
19936
20847
|
/***/ }),
|
|
19937
20848
|
|
|
19938
20849
|
/***/ 6200:
|
|
@@ -19981,6 +20892,49 @@ var store = __webpack_require__(5465);
|
|
|
19981
20892
|
});
|
|
19982
20893
|
|
|
19983
20894
|
|
|
20895
|
+
/***/ }),
|
|
20896
|
+
|
|
20897
|
+
/***/ 28710:
|
|
20898
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20899
|
+
|
|
20900
|
+
var uncurryThis = __webpack_require__(1702);
|
|
20901
|
+
var toIntegerOrInfinity = __webpack_require__(19303);
|
|
20902
|
+
var toString = __webpack_require__(41340);
|
|
20903
|
+
var requireObjectCoercible = __webpack_require__(84488);
|
|
20904
|
+
|
|
20905
|
+
var charAt = uncurryThis(''.charAt);
|
|
20906
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
20907
|
+
var stringSlice = uncurryThis(''.slice);
|
|
20908
|
+
|
|
20909
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
20910
|
+
return function ($this, pos) {
|
|
20911
|
+
var S = toString(requireObjectCoercible($this));
|
|
20912
|
+
var position = toIntegerOrInfinity(pos);
|
|
20913
|
+
var size = S.length;
|
|
20914
|
+
var first, second;
|
|
20915
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
20916
|
+
first = charCodeAt(S, position);
|
|
20917
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
20918
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
20919
|
+
? CONVERT_TO_STRING
|
|
20920
|
+
? charAt(S, position)
|
|
20921
|
+
: first
|
|
20922
|
+
: CONVERT_TO_STRING
|
|
20923
|
+
? stringSlice(S, position, position + 2)
|
|
20924
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
20925
|
+
};
|
|
20926
|
+
};
|
|
20927
|
+
|
|
20928
|
+
module.exports = {
|
|
20929
|
+
// `String.prototype.codePointAt` method
|
|
20930
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
20931
|
+
codeAt: createMethod(false),
|
|
20932
|
+
// `String.prototype.at` method
|
|
20933
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
20934
|
+
charAt: createMethod(true)
|
|
20935
|
+
};
|
|
20936
|
+
|
|
20937
|
+
|
|
19984
20938
|
/***/ }),
|
|
19985
20939
|
|
|
19986
20940
|
/***/ 36293:
|
|
@@ -20342,6 +21296,76 @@ module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
|
20342
21296
|
};
|
|
20343
21297
|
|
|
20344
21298
|
|
|
21299
|
+
/***/ }),
|
|
21300
|
+
|
|
21301
|
+
/***/ 66992:
|
|
21302
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21303
|
+
|
|
21304
|
+
"use strict";
|
|
21305
|
+
|
|
21306
|
+
var toIndexedObject = __webpack_require__(45656);
|
|
21307
|
+
var addToUnscopables = __webpack_require__(51223);
|
|
21308
|
+
var Iterators = __webpack_require__(97497);
|
|
21309
|
+
var InternalStateModule = __webpack_require__(29909);
|
|
21310
|
+
var defineProperty = (__webpack_require__(3070).f);
|
|
21311
|
+
var defineIterator = __webpack_require__(51656);
|
|
21312
|
+
var createIterResultObject = __webpack_require__(76178);
|
|
21313
|
+
var IS_PURE = __webpack_require__(31913);
|
|
21314
|
+
var DESCRIPTORS = __webpack_require__(19781);
|
|
21315
|
+
|
|
21316
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
21317
|
+
var setInternalState = InternalStateModule.set;
|
|
21318
|
+
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
21319
|
+
|
|
21320
|
+
// `Array.prototype.entries` method
|
|
21321
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
21322
|
+
// `Array.prototype.keys` method
|
|
21323
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
21324
|
+
// `Array.prototype.values` method
|
|
21325
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
21326
|
+
// `Array.prototype[@@iterator]` method
|
|
21327
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
21328
|
+
// `CreateArrayIterator` internal method
|
|
21329
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
21330
|
+
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
21331
|
+
setInternalState(this, {
|
|
21332
|
+
type: ARRAY_ITERATOR,
|
|
21333
|
+
target: toIndexedObject(iterated), // target
|
|
21334
|
+
index: 0, // next index
|
|
21335
|
+
kind: kind // kind
|
|
21336
|
+
});
|
|
21337
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
21338
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
21339
|
+
}, function () {
|
|
21340
|
+
var state = getInternalState(this);
|
|
21341
|
+
var target = state.target;
|
|
21342
|
+
var kind = state.kind;
|
|
21343
|
+
var index = state.index++;
|
|
21344
|
+
if (!target || index >= target.length) {
|
|
21345
|
+
state.target = undefined;
|
|
21346
|
+
return createIterResultObject(undefined, true);
|
|
21347
|
+
}
|
|
21348
|
+
if (kind == 'keys') return createIterResultObject(index, false);
|
|
21349
|
+
if (kind == 'values') return createIterResultObject(target[index], false);
|
|
21350
|
+
return createIterResultObject([index, target[index]], false);
|
|
21351
|
+
}, 'values');
|
|
21352
|
+
|
|
21353
|
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
21354
|
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
21355
|
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
21356
|
+
var values = Iterators.Arguments = Iterators.Array;
|
|
21357
|
+
|
|
21358
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
21359
|
+
addToUnscopables('keys');
|
|
21360
|
+
addToUnscopables('values');
|
|
21361
|
+
addToUnscopables('entries');
|
|
21362
|
+
|
|
21363
|
+
// V8 ~ Chrome 45- bug
|
|
21364
|
+
if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
|
|
21365
|
+
defineProperty(values, 'name', { value: 'values' });
|
|
21366
|
+
} catch (error) { /* empty */ }
|
|
21367
|
+
|
|
21368
|
+
|
|
20345
21369
|
/***/ }),
|
|
20346
21370
|
|
|
20347
21371
|
/***/ 57658:
|
|
@@ -20483,7 +21507,214 @@ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
|
20483
21507
|
|
|
20484
21508
|
/***/ }),
|
|
20485
21509
|
|
|
20486
|
-
/***/
|
|
21510
|
+
/***/ 74916:
|
|
21511
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21512
|
+
|
|
21513
|
+
"use strict";
|
|
21514
|
+
|
|
21515
|
+
var $ = __webpack_require__(82109);
|
|
21516
|
+
var exec = __webpack_require__(22261);
|
|
21517
|
+
|
|
21518
|
+
// `RegExp.prototype.exec` method
|
|
21519
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
21520
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
21521
|
+
exec: exec
|
|
21522
|
+
});
|
|
21523
|
+
|
|
21524
|
+
|
|
21525
|
+
/***/ }),
|
|
21526
|
+
|
|
21527
|
+
/***/ 15306:
|
|
21528
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21529
|
+
|
|
21530
|
+
"use strict";
|
|
21531
|
+
|
|
21532
|
+
var apply = __webpack_require__(22104);
|
|
21533
|
+
var call = __webpack_require__(46916);
|
|
21534
|
+
var uncurryThis = __webpack_require__(1702);
|
|
21535
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__(27007);
|
|
21536
|
+
var fails = __webpack_require__(47293);
|
|
21537
|
+
var anObject = __webpack_require__(19670);
|
|
21538
|
+
var isCallable = __webpack_require__(60614);
|
|
21539
|
+
var isNullOrUndefined = __webpack_require__(68554);
|
|
21540
|
+
var toIntegerOrInfinity = __webpack_require__(19303);
|
|
21541
|
+
var toLength = __webpack_require__(17466);
|
|
21542
|
+
var toString = __webpack_require__(41340);
|
|
21543
|
+
var requireObjectCoercible = __webpack_require__(84488);
|
|
21544
|
+
var advanceStringIndex = __webpack_require__(31530);
|
|
21545
|
+
var getMethod = __webpack_require__(58173);
|
|
21546
|
+
var getSubstitution = __webpack_require__(10647);
|
|
21547
|
+
var regExpExec = __webpack_require__(97651);
|
|
21548
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
|
21549
|
+
|
|
21550
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
21551
|
+
var max = Math.max;
|
|
21552
|
+
var min = Math.min;
|
|
21553
|
+
var concat = uncurryThis([].concat);
|
|
21554
|
+
var push = uncurryThis([].push);
|
|
21555
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
21556
|
+
var stringSlice = uncurryThis(''.slice);
|
|
21557
|
+
|
|
21558
|
+
var maybeToString = function (it) {
|
|
21559
|
+
return it === undefined ? it : String(it);
|
|
21560
|
+
};
|
|
21561
|
+
|
|
21562
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
21563
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
21564
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
21565
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
21566
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
21567
|
+
})();
|
|
21568
|
+
|
|
21569
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
21570
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
21571
|
+
if (/./[REPLACE]) {
|
|
21572
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
21573
|
+
}
|
|
21574
|
+
return false;
|
|
21575
|
+
})();
|
|
21576
|
+
|
|
21577
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
21578
|
+
var re = /./;
|
|
21579
|
+
re.exec = function () {
|
|
21580
|
+
var result = [];
|
|
21581
|
+
result.groups = { a: '7' };
|
|
21582
|
+
return result;
|
|
21583
|
+
};
|
|
21584
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
21585
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
21586
|
+
});
|
|
21587
|
+
|
|
21588
|
+
// @@replace logic
|
|
21589
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
21590
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
21591
|
+
|
|
21592
|
+
return [
|
|
21593
|
+
// `String.prototype.replace` method
|
|
21594
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
21595
|
+
function replace(searchValue, replaceValue) {
|
|
21596
|
+
var O = requireObjectCoercible(this);
|
|
21597
|
+
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
21598
|
+
return replacer
|
|
21599
|
+
? call(replacer, searchValue, O, replaceValue)
|
|
21600
|
+
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
21601
|
+
},
|
|
21602
|
+
// `RegExp.prototype[@@replace]` method
|
|
21603
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
21604
|
+
function (string, replaceValue) {
|
|
21605
|
+
var rx = anObject(this);
|
|
21606
|
+
var S = toString(string);
|
|
21607
|
+
|
|
21608
|
+
if (
|
|
21609
|
+
typeof replaceValue == 'string' &&
|
|
21610
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
21611
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
21612
|
+
) {
|
|
21613
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
21614
|
+
if (res.done) return res.value;
|
|
21615
|
+
}
|
|
21616
|
+
|
|
21617
|
+
var functionalReplace = isCallable(replaceValue);
|
|
21618
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
21619
|
+
|
|
21620
|
+
var global = rx.global;
|
|
21621
|
+
if (global) {
|
|
21622
|
+
var fullUnicode = rx.unicode;
|
|
21623
|
+
rx.lastIndex = 0;
|
|
21624
|
+
}
|
|
21625
|
+
var results = [];
|
|
21626
|
+
while (true) {
|
|
21627
|
+
var result = regExpExec(rx, S);
|
|
21628
|
+
if (result === null) break;
|
|
21629
|
+
|
|
21630
|
+
push(results, result);
|
|
21631
|
+
if (!global) break;
|
|
21632
|
+
|
|
21633
|
+
var matchStr = toString(result[0]);
|
|
21634
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
21635
|
+
}
|
|
21636
|
+
|
|
21637
|
+
var accumulatedResult = '';
|
|
21638
|
+
var nextSourcePosition = 0;
|
|
21639
|
+
for (var i = 0; i < results.length; i++) {
|
|
21640
|
+
result = results[i];
|
|
21641
|
+
|
|
21642
|
+
var matched = toString(result[0]);
|
|
21643
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
21644
|
+
var captures = [];
|
|
21645
|
+
// NOTE: This is equivalent to
|
|
21646
|
+
// captures = result.slice(1).map(maybeToString)
|
|
21647
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
21648
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
21649
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
21650
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
21651
|
+
var namedCaptures = result.groups;
|
|
21652
|
+
if (functionalReplace) {
|
|
21653
|
+
var replacerArgs = concat([matched], captures, position, S);
|
|
21654
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
21655
|
+
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
21656
|
+
} else {
|
|
21657
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
21658
|
+
}
|
|
21659
|
+
if (position >= nextSourcePosition) {
|
|
21660
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
21661
|
+
nextSourcePosition = position + matched.length;
|
|
21662
|
+
}
|
|
21663
|
+
}
|
|
21664
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
21665
|
+
}
|
|
21666
|
+
];
|
|
21667
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
21668
|
+
|
|
21669
|
+
|
|
21670
|
+
/***/ }),
|
|
21671
|
+
|
|
21672
|
+
/***/ 33948:
|
|
21673
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
21674
|
+
|
|
21675
|
+
var global = __webpack_require__(17854);
|
|
21676
|
+
var DOMIterables = __webpack_require__(48324);
|
|
21677
|
+
var DOMTokenListPrototype = __webpack_require__(98509);
|
|
21678
|
+
var ArrayIteratorMethods = __webpack_require__(66992);
|
|
21679
|
+
var createNonEnumerableProperty = __webpack_require__(68880);
|
|
21680
|
+
var wellKnownSymbol = __webpack_require__(5112);
|
|
21681
|
+
|
|
21682
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
21683
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
21684
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
|
21685
|
+
|
|
21686
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
21687
|
+
if (CollectionPrototype) {
|
|
21688
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
21689
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
21690
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
21691
|
+
} catch (error) {
|
|
21692
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
21693
|
+
}
|
|
21694
|
+
if (!CollectionPrototype[TO_STRING_TAG]) {
|
|
21695
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
21696
|
+
}
|
|
21697
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
21698
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
21699
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
21700
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
21701
|
+
} catch (error) {
|
|
21702
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
21703
|
+
}
|
|
21704
|
+
}
|
|
21705
|
+
}
|
|
21706
|
+
};
|
|
21707
|
+
|
|
21708
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
21709
|
+
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
21710
|
+
}
|
|
21711
|
+
|
|
21712
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
21713
|
+
|
|
21714
|
+
|
|
21715
|
+
/***/ }),
|
|
21716
|
+
|
|
21717
|
+
/***/ 6629:
|
|
20487
21718
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20488
21719
|
|
|
20489
21720
|
"use strict";
|
|
@@ -22948,7 +24179,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
22948
24179
|
|
|
22949
24180
|
/***/ }),
|
|
22950
24181
|
|
|
22951
|
-
/***/
|
|
24182
|
+
/***/ 8499:
|
|
22952
24183
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22953
24184
|
|
|
22954
24185
|
"use strict";
|
|
@@ -23977,19 +25208,19 @@ exports.isValid = function (code) {
|
|
|
23977
25208
|
|
|
23978
25209
|
/***/ }),
|
|
23979
25210
|
|
|
23980
|
-
/***/
|
|
25211
|
+
/***/ 19030:
|
|
23981
25212
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
23982
25213
|
|
|
23983
25214
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
23984
25215
|
|
|
23985
25216
|
// load the styles
|
|
23986
|
-
var content = __webpack_require__(
|
|
25217
|
+
var content = __webpack_require__(6629);
|
|
23987
25218
|
if(content.__esModule) content = content.default;
|
|
23988
25219
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
23989
25220
|
if(content.locals) module.exports = content.locals;
|
|
23990
25221
|
// add the styles to the DOM
|
|
23991
25222
|
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
23992
|
-
var update = add("
|
|
25223
|
+
var update = add("68a3c052", content, true, {"sourceMap":false,"shadowMode":false});
|
|
23993
25224
|
|
|
23994
25225
|
/***/ }),
|
|
23995
25226
|
|
|
@@ -25417,19 +26648,19 @@ var update = add("30e1ca79", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
25417
26648
|
|
|
25418
26649
|
/***/ }),
|
|
25419
26650
|
|
|
25420
|
-
/***/
|
|
26651
|
+
/***/ 22746:
|
|
25421
26652
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25422
26653
|
|
|
25423
26654
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
25424
26655
|
|
|
25425
26656
|
// load the styles
|
|
25426
|
-
var content = __webpack_require__(
|
|
26657
|
+
var content = __webpack_require__(8499);
|
|
25427
26658
|
if(content.__esModule) content = content.default;
|
|
25428
26659
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
25429
26660
|
if(content.locals) module.exports = content.locals;
|
|
25430
26661
|
// add the styles to the DOM
|
|
25431
26662
|
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
25432
|
-
var update = add("
|
|
26663
|
+
var update = add("268349ef", content, true, {"sourceMap":false,"shadowMode":false});
|
|
25433
26664
|
|
|
25434
26665
|
/***/ }),
|
|
25435
26666
|
|
|
@@ -26074,7 +27305,7 @@ var map = {
|
|
|
26074
27305
|
"./fr.json": 71822,
|
|
26075
27306
|
"./it.json": 65744,
|
|
26076
27307
|
"./lt.json": 18102,
|
|
26077
|
-
"./lv.json":
|
|
27308
|
+
"./lv.json": 44132,
|
|
26078
27309
|
"./pt.json": 86709,
|
|
26079
27310
|
"./ru.json": 88809,
|
|
26080
27311
|
"./sv.json": 30840
|
|
@@ -26302,7 +27533,7 @@ module.exports = JSON.parse('{"no-ee-id-card":"Nepavyko rasti prijungtos asmens
|
|
|
26302
27533
|
|
|
26303
27534
|
/***/ }),
|
|
26304
27535
|
|
|
26305
|
-
/***/
|
|
27536
|
+
/***/ 44132:
|
|
26306
27537
|
/***/ (function(module) {
|
|
26307
27538
|
|
|
26308
27539
|
"use strict";
|
|
@@ -34619,7 +35850,7 @@ if (inBrowser) {
|
|
|
34619
35850
|
|
|
34620
35851
|
|
|
34621
35852
|
|
|
34622
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/App.vue?vue&type=template&id=
|
|
35853
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/App.vue?vue&type=template&id=70489aeb&
|
|
34623
35854
|
var render = function render() {
|
|
34624
35855
|
var _vm = this,
|
|
34625
35856
|
_c = _vm._self._c;
|
|
@@ -34897,7 +36128,10 @@ var AppSpinnervue_type_template_id_85241afa_render = function render() {
|
|
|
34897
36128
|
};
|
|
34898
36129
|
var AppSpinnervue_type_template_id_85241afa_staticRenderFns = [];
|
|
34899
36130
|
|
|
36131
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
36132
|
+
var web_dom_collections_iterator = __webpack_require__(33948);
|
|
34900
36133
|
;// CONCATENATED MODULE: ./src/schemeMixin.js
|
|
36134
|
+
|
|
34901
36135
|
const schemeMixin = function schemeMixin(schemes) {
|
|
34902
36136
|
return {
|
|
34903
36137
|
props: {
|
|
@@ -35215,7 +36449,11 @@ var CountrySelectOptionvue_type_template_id_45e2b7c2_render = function render()
|
|
|
35215
36449
|
};
|
|
35216
36450
|
var CountrySelectOptionvue_type_template_id_45e2b7c2_staticRenderFns = [];
|
|
35217
36451
|
|
|
36452
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
36453
|
+
var es_string_replace = __webpack_require__(15306);
|
|
35218
36454
|
;// CONCATENATED MODULE: ./src/countryFlags.js
|
|
36455
|
+
|
|
36456
|
+
|
|
35219
36457
|
function importAll(r) {
|
|
35220
36458
|
let images = {};
|
|
35221
36459
|
r.keys().map(item => {
|
|
@@ -39836,6 +41074,7 @@ var FormCheckbox_component = normalizeComponent(
|
|
|
39836
41074
|
|
|
39837
41075
|
|
|
39838
41076
|
|
|
41077
|
+
|
|
39839
41078
|
const formComponentsByType = {
|
|
39840
41079
|
submit: 'FormButton',
|
|
39841
41080
|
text: 'FormField',
|
|
@@ -40765,8 +42004,8 @@ var IdentificationZealId_component = normalizeComponent(
|
|
|
40765
42004
|
)
|
|
40766
42005
|
|
|
40767
42006
|
/* harmony default export */ var IdentificationZealId = (IdentificationZealId_component.exports);
|
|
40768
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/views/SignatureSmartId.vue?vue&type=template&id=
|
|
40769
|
-
var
|
|
42007
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/views/SignatureSmartId.vue?vue&type=template&id=12c2ff31&
|
|
42008
|
+
var SignatureSmartIdvue_type_template_id_12c2ff31_render = function render() {
|
|
40770
42009
|
var _vm = this,
|
|
40771
42010
|
_c = _vm._self._c;
|
|
40772
42011
|
return _c('div', {
|
|
@@ -40793,7 +42032,7 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_render = function render() {
|
|
|
40793
42032
|
}
|
|
40794
42033
|
})], 1)]);
|
|
40795
42034
|
};
|
|
40796
|
-
var
|
|
42035
|
+
var SignatureSmartIdvue_type_template_id_12c2ff31_staticRenderFns = [];
|
|
40797
42036
|
|
|
40798
42037
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=script&lang=js&
|
|
40799
42038
|
|
|
@@ -40822,6 +42061,9 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns = [];
|
|
|
40822
42061
|
mode() {
|
|
40823
42062
|
return this.$root.$options.storeGetters.mode();
|
|
40824
42063
|
},
|
|
42064
|
+
waitForChallengeCode() {
|
|
42065
|
+
return this.$root.$options.storeGetters.waitForChallengeCode();
|
|
42066
|
+
},
|
|
40825
42067
|
schema() {
|
|
40826
42068
|
return [{
|
|
40827
42069
|
type: 'text',
|
|
@@ -40897,6 +42139,13 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns = [];
|
|
|
40897
42139
|
this.startSignatureProcessing();
|
|
40898
42140
|
}
|
|
40899
42141
|
},
|
|
42142
|
+
onTryComplete: result => {
|
|
42143
|
+
if (result.data && result.data.challenge) {
|
|
42144
|
+
this.challenge = result.data.challenge;
|
|
42145
|
+
this.loadingEnd();
|
|
42146
|
+
this.startSignatureProcessing();
|
|
42147
|
+
}
|
|
42148
|
+
},
|
|
40900
42149
|
fail: error => {
|
|
40901
42150
|
if (!error.isCancel) {
|
|
40902
42151
|
this.addFlashMessage(error);
|
|
@@ -40912,17 +42161,18 @@ var SignatureSmartIdvue_type_template_id_2c53aa60_staticRenderFns = [];
|
|
|
40912
42161
|
this.endSignatureProcessing();
|
|
40913
42162
|
this.loadingEnd();
|
|
40914
42163
|
},
|
|
40915
|
-
...additionalMethodConfig
|
|
42164
|
+
...additionalMethodConfig,
|
|
42165
|
+
wait_for_challenge_code: this.waitForChallengeCode
|
|
40916
42166
|
});
|
|
40917
42167
|
}
|
|
40918
42168
|
}
|
|
40919
42169
|
});
|
|
40920
42170
|
;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue?vue&type=script&lang=js&
|
|
40921
42171
|
/* harmony default export */ var views_SignatureSmartIdvue_type_script_lang_js_ = (SignatureSmartIdvue_type_script_lang_js_);
|
|
40922
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-21.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-21.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-21.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=
|
|
40923
|
-
var
|
|
40924
|
-
var
|
|
40925
|
-
;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=
|
|
42172
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-21.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-21.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-21.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=12c2ff31&prod&lang=scss&module=true&
|
|
42173
|
+
var SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_ = __webpack_require__(22746);
|
|
42174
|
+
var SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_);
|
|
42175
|
+
;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue?vue&type=style&index=0&id=12c2ff31&prod&lang=scss&module=true&
|
|
40926
42176
|
|
|
40927
42177
|
;// CONCATENATED MODULE: ./src/views/SignatureSmartId.vue
|
|
40928
42178
|
|
|
@@ -40935,7 +42185,7 @@ var SignatureSmartIdvue_type_style_index_0_id_2c53aa60_prod_lang_scss_module_tru
|
|
|
40935
42185
|
|
|
40936
42186
|
function SignatureSmartId_injectStyles (context) {
|
|
40937
42187
|
|
|
40938
|
-
this["$style"] = ((
|
|
42188
|
+
this["$style"] = ((SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_default()).locals || (SignatureSmartIdvue_type_style_index_0_id_12c2ff31_prod_lang_scss_module_true_default()))
|
|
40939
42189
|
|
|
40940
42190
|
}
|
|
40941
42191
|
|
|
@@ -40943,8 +42193,8 @@ function SignatureSmartId_injectStyles (context) {
|
|
|
40943
42193
|
|
|
40944
42194
|
var SignatureSmartId_component = normalizeComponent(
|
|
40945
42195
|
views_SignatureSmartIdvue_type_script_lang_js_,
|
|
40946
|
-
|
|
40947
|
-
|
|
42196
|
+
SignatureSmartIdvue_type_template_id_12c2ff31_render,
|
|
42197
|
+
SignatureSmartIdvue_type_template_id_12c2ff31_staticRenderFns,
|
|
40948
42198
|
false,
|
|
40949
42199
|
SignatureSmartId_injectStyles,
|
|
40950
42200
|
null,
|
|
@@ -46618,6 +47868,7 @@ const callingCodes = Object.freeze({
|
|
|
46618
47868
|
;// CONCATENATED MODULE: ./src/splitPhoneCallingCode.js
|
|
46619
47869
|
|
|
46620
47870
|
|
|
47871
|
+
|
|
46621
47872
|
const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
|
|
46622
47873
|
const codes = [];
|
|
46623
47874
|
Object.keys(src_callingCodes).forEach(key => codes.push(src_callingCodes[key]));
|
|
@@ -46771,6 +48022,10 @@ const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
|
|
|
46771
48022
|
allowMethodChange: {
|
|
46772
48023
|
type: Boolean,
|
|
46773
48024
|
default: true
|
|
48025
|
+
},
|
|
48026
|
+
waitForChallengeCode: {
|
|
48027
|
+
type: Boolean,
|
|
48028
|
+
default: true
|
|
46774
48029
|
}
|
|
46775
48030
|
},
|
|
46776
48031
|
data() {
|
|
@@ -46863,6 +48118,7 @@ const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
|
|
|
46863
48118
|
});
|
|
46864
48119
|
}
|
|
46865
48120
|
this.updateAllowMethodChange(this.allowMethodChange);
|
|
48121
|
+
this.updateWaitForChallengeCode(this.waitForChallengeCode);
|
|
46866
48122
|
if (this.emailToken) {
|
|
46867
48123
|
this.updateInputValues({
|
|
46868
48124
|
email_token: this.emailToken
|
|
@@ -46982,15 +48238,18 @@ const splitPhoneCallingCode = function splitPhoneCallingCode(phoneNumber) {
|
|
|
46982
48238
|
},
|
|
46983
48239
|
updateAllowMethodChange(value) {
|
|
46984
48240
|
return this.$root.$options.storeActions.updateAllowMethodChange(value);
|
|
48241
|
+
},
|
|
48242
|
+
updateWaitForChallengeCode(value) {
|
|
48243
|
+
return this.$root.$options.storeActions.updateWaitForChallengeCode(value);
|
|
46985
48244
|
}
|
|
46986
48245
|
}
|
|
46987
48246
|
});
|
|
46988
48247
|
;// CONCATENATED MODULE: ./src/App.vue?vue&type=script&lang=js&
|
|
46989
48248
|
/* harmony default export */ var src_Appvue_type_script_lang_js_ = (Appvue_type_script_lang_js_);
|
|
46990
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-21.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-21.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-21.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=
|
|
46991
|
-
var
|
|
46992
|
-
var
|
|
46993
|
-
;// CONCATENATED MODULE: ./src/App.vue?vue&type=style&index=0&id=
|
|
48249
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-21.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-21.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-21.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-21.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=70489aeb&prod&lang=scss&module=true&
|
|
48250
|
+
var Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_ = __webpack_require__(19030);
|
|
48251
|
+
var Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_default = /*#__PURE__*/__webpack_require__.n(Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_);
|
|
48252
|
+
;// CONCATENATED MODULE: ./src/App.vue?vue&type=style&index=0&id=70489aeb&prod&lang=scss&module=true&
|
|
46994
48253
|
|
|
46995
48254
|
;// CONCATENATED MODULE: ./src/App.vue
|
|
46996
48255
|
|
|
@@ -47003,7 +48262,7 @@ var Appvue_type_style_index_0_id_52b9a05a_prod_lang_scss_module_true_default = /
|
|
|
47003
48262
|
|
|
47004
48263
|
function App_injectStyles (context) {
|
|
47005
48264
|
|
|
47006
|
-
this["$style"] = ((
|
|
48265
|
+
this["$style"] = ((Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_default()).locals || (Appvue_type_style_index_0_id_70489aeb_prod_lang_scss_module_true_default()))
|
|
47007
48266
|
|
|
47008
48267
|
}
|
|
47009
48268
|
|
|
@@ -49710,6 +50969,7 @@ VueI18n.version = '8.23.0';
|
|
|
49710
50969
|
;// CONCATENATED MODULE: ./src/i18n/i18n.js
|
|
49711
50970
|
|
|
49712
50971
|
|
|
50972
|
+
|
|
49713
50973
|
Vue.use(vue_i18n_esm);
|
|
49714
50974
|
function loadLocaleMessages() {
|
|
49715
50975
|
const locales = __webpack_require__(48011);
|
|
@@ -49784,6 +51044,7 @@ const idCardTranslationsKeys = {
|
|
|
49784
51044
|
|
|
49785
51045
|
|
|
49786
51046
|
|
|
51047
|
+
|
|
49787
51048
|
const createStore = function createStore({
|
|
49788
51049
|
methodsConfig
|
|
49789
51050
|
}) {
|
|
@@ -49814,7 +51075,8 @@ const createStore = function createStore({
|
|
|
49814
51075
|
requireHandwrittenSignature: false,
|
|
49815
51076
|
otpFlow: null,
|
|
49816
51077
|
fieldAutocomplete: false,
|
|
49817
|
-
allowMethodChange: true
|
|
51078
|
+
allowMethodChange: true,
|
|
51079
|
+
waitForChallengeCode: true
|
|
49818
51080
|
});
|
|
49819
51081
|
const filterMethodsByCountry = function filterMethodsByCountry(methods, country) {
|
|
49820
51082
|
return methods.filter(method => {
|
|
@@ -49879,7 +51141,8 @@ const createStore = function createStore({
|
|
|
49879
51141
|
requireHandwrittenSignature: () => store.requireHandwrittenSignature,
|
|
49880
51142
|
otpFlow: () => store.otpFlow,
|
|
49881
51143
|
fieldAutocomplete: () => store.fieldAutocomplete,
|
|
49882
|
-
allowMethodChange: () => store.allowMethodChange
|
|
51144
|
+
allowMethodChange: () => store.allowMethodChange,
|
|
51145
|
+
waitForChallengeCode: () => store.waitForChallengeCode
|
|
49883
51146
|
};
|
|
49884
51147
|
const mutations = {
|
|
49885
51148
|
setCountryCode(countryCode) {
|
|
@@ -49953,6 +51216,9 @@ const createStore = function createStore({
|
|
|
49953
51216
|
},
|
|
49954
51217
|
setAllowMethodChange(value) {
|
|
49955
51218
|
store.allowMethodChange = value;
|
|
51219
|
+
},
|
|
51220
|
+
setWaitForChallengeCode(value) {
|
|
51221
|
+
store.waitForChallengeCode = value;
|
|
49956
51222
|
}
|
|
49957
51223
|
};
|
|
49958
51224
|
const actions = {
|
|
@@ -50120,6 +51386,9 @@ const createStore = function createStore({
|
|
|
50120
51386
|
},
|
|
50121
51387
|
updateAllowMethodChange(newValue) {
|
|
50122
51388
|
mutations.setAllowMethodChange(newValue);
|
|
51389
|
+
},
|
|
51390
|
+
updateWaitForChallengeCode(newValue) {
|
|
51391
|
+
mutations.setWaitForChallengeCode(newValue);
|
|
50123
51392
|
}
|
|
50124
51393
|
};
|
|
50125
51394
|
return {
|
|
@@ -50183,6 +51452,7 @@ const methodButtonNames = {
|
|
|
50183
51452
|
|
|
50184
51453
|
|
|
50185
51454
|
|
|
51455
|
+
|
|
50186
51456
|
const allWidgetMethods = Object.freeze({
|
|
50187
51457
|
[eideasy_browser_client.methodTypes.IDENTIFICATION]: [{
|
|
50188
51458
|
actionType: eideasy_browser_client.methodActionTypes.BE_ID_LOGIN,
|