@eid-easy/eideasy-browser-client 1.9.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +148 -117
- package/dist/eideasy-browser-client.js +1 -1
- package/docs/.vuepress/components/AppError.vue +1 -1
- package/docs/.vuepress/components/AppIdentification.vue +9 -3
- package/docs/.vuepress/components/AppSigning.vue +167 -0
- package/docs/.vuepress/components/IdentAtHandy.vue +102 -0
- package/docs/.vuepress/components/IdentEParakstsMobile.vue +16 -19
- package/docs/.vuepress/components/IdentFinnishTrustNetwork.vue +14 -26
- package/docs/.vuepress/components/IdentMojeId.vue +7 -22
- package/docs/.vuepress/components/SignEParakstsMobile.vue +103 -0
- package/docs/.vuepress/components/SignEvrotrust.vue +113 -0
- package/docs/.vuepress/components/SignFtn.vue +103 -0
- package/docs/.vuepress/components/SignIdCard.vue +70 -0
- package/docs/.vuepress/components/SignMobileId.vue +100 -0
- package/docs/.vuepress/components/SignOtp.vue +93 -0
- package/docs/.vuepress/components/SignSmartId.vue +89 -0
- package/docs/.vuepress/components/eidEasyDemoClient.js +15 -3
- package/docs/demos/README.md +5 -0
- package/package.json +4 -4
- package/src/apiClient/createApiEndpoints.js +22 -0
- package/src/config.js +139 -51
- package/src/coreSettingsSchema.js +69 -0
- package/src/createApiPoller.js +54 -0
- package/src/createClientCore.js +10 -8
- package/src/createModuleCreator.js +17 -11
- package/src/createMonitoringService.js +33 -0
- package/src/createSettings.js +26 -0
- package/src/createStep.js +11 -3
- package/src/i18n/de.json +1 -1
- package/src/i18n/en.json +1 -1
- package/src/i18n/et.json +1 -1
- package/src/i18n/lt.json +1 -1
- package/src/i18n/lv.json +1 -1
- package/src/i18n/ru.json +1 -1
- package/src/identificationModules/createAtHandy.js +37 -0
- package/src/identificationModules/createEParakstsMobile.js +19 -23
- package/src/identificationModules/createFinnishTrustNetwork.js +22 -24
- package/src/identificationModules/createFrejaEid.js +11 -1
- package/src/identificationModules/createIdCard.js +7 -1
- package/src/identificationModules/createMobileId.js +15 -1
- package/src/identificationModules/createMojeId.js +19 -23
- package/src/identificationModules/createSmartId.js +11 -1
- package/src/identificationModules/createZealId.js +11 -1
- package/src/identificationModules/identificationModules.js +2 -0
- package/src/main.js +44 -1
- package/src/signatureModules/createEParakstsMobileSignature.js +70 -0
- package/src/signatureModules/createEvrotrustSignature.js +144 -0
- package/src/signatureModules/createFtnSignature.js +70 -0
- package/src/signatureModules/createIdCardSignature.js +208 -0
- package/src/signatureModules/createMobileIdSignature.js +129 -0
- package/src/signatureModules/createOtpSignature.js +68 -0
- package/src/signatureModules/createSmartIdSignature.js +124 -0
- package/src/signatureModules/signatureModules.js +17 -0
- package/src/{cloneDeep.test.js → tests/cloneDeep.test.js} +1 -1
- package/src/tests/config.test.js +25 -0
- package/src/{createRequestError.test.js → tests/createRequestError.test.js} +1 -1
- package/src/{main.test.js → tests/main.test.js} +1 -1
- package/src/{poll.test.js → tests/poll.test.js} +1 -1
- package/src/{windowOpen.test.js → tests/windowOpen.test.js} +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eidEasyBrowserClient=e():t.eidEasyBrowserClient=e()}(self,(function(){return function(){var t,e,r={7757:function(t,e,r){t.exports=r(5666)},9669:function(t,e,r){t.exports=r(1609)},5448:function(t,e,r){"use strict";var n=r(4867),o=r(6026),i=r(4372),a=r(5327),c=r(4097),u=r(4109),s=r(7985),f=r(5061);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(h+":"+v)}var y=c(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};o(e,r,i),d=null}},d.onabort=function(){d&&(r(f("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(f("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var g=(t.withCredentials||s(y))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;g&&(l[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:d.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),r(t),d=null)})),p||(p=null),d.send(p)}))}},1609:function(t,e,r){"use strict";var n=r(4867),o=r(1849),i=r(321),a=r(7185);function c(t){var e=new i(t),r=o(i.prototype.request,e);return n.extend(r,i.prototype,e),n.extend(r,e),r}var u=c(r(5655));u.Axios=i,u.create=function(t){return c(a(u.defaults,t))},u.Cancel=r(5263),u.CancelToken=r(4972),u.isCancel=r(6502),u.all=function(t){return Promise.all(t)},u.spread=r(8713),u.isAxiosError=r(6268),t.exports=u,t.exports.default=u},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,r){"use strict";var n=r(5263);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,r){"use strict";var n=r(4867),o=r(5327),i=r(782),a=r(3572),c=r(7185);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},u.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,r){return this.request(c(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,r,n){return this.request(c(n||{},{method:t,url:e,data:r}))}})),t.exports=u},782:function(t,e,r){"use strict";var n=r(4867);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},4097:function(t,e,r){"use strict";var n=r(1793),o=r(7303);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},5061:function(t,e,r){"use strict";var n=r(481);t.exports=function(t,e,r,o,i){var a=new Error(t);return n(a,e,r,o,i)}},3572:function(t,e,r){"use strict";var n=r(4867),o=r(8527),i=r(6502),a=r(5655);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,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,r){"use strict";var n=r(4867);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],i=["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"],c=["validateStatus"];function u(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function s(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=u(void 0,t[o])):r[o]=u(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=u(void 0,e[t]))})),n.forEach(i,s),n.forEach(a,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=u(void 0,t[o])):r[o]=u(void 0,e[o])})),n.forEach(c,(function(n){n in e?r[n]=u(t[n],e[n]):n in t&&(r[n]=u(void 0,t[n]))}));var f=o.concat(i).concat(a).concat(c),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,s),r}},6026:function(t,e,r){"use strict";var n=r(5061);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8527:function(t,e,r){"use strict";var n=r(4867);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},5655:function(t,e,r){"use strict";var n=r(4867),o=r(6016),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=r(5448)),c),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(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, */*"}}};n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(i)})),t.exports=u},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},5327:function(t,e,r){"use strict";var n=r(4867);function o(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,r){if(!e)return t;var i;if(r)i=r(e);else if(n.isURLSearchParams(e))i=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,r){"use strict";var n=r(4867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),n.isString(o)&&c.push("path="+o),n.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.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,r){"use strict";var n=r(4867);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6016:function(t,e,r){"use strict";var n=r(4867);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},4109:function(t,e,r){"use strict";var n=r(4867),o=["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,r,i,a={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4867:function(t,e,r){"use strict";var n=r(1849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function s(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.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:c,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:s,isStream:function(t){return c(t)&&s(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:f,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):i(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)f(arguments[n],r);return e},extend:function(t,e,r){return f(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},3159:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o;r.r(e),r.d(e,{allMethods:function(){return u},createClient:function(){return Lt},default:function(){return St},getMethodByHandlingModule:function(){return s},methodActionTypes:function(){return a},methodTypes:function(){return i},moduleNames:function(){return c}});var i={IDENTIFICATION:"identification",SIGNING:"signing"},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",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",FI_FTN_LOGIN:"finnish-ftn-login"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",finnishTrustNetwork:"finnishTrustNetwork"},u=Object.freeze((n(o={},i.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:c.idCard,countriesWhitelist:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:c.idCard,countriesWhitelist:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:c.idCard,countriesWhitelist:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:c.idCard,countriesWhitelist:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:c.idCard,countriesWhitelist:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:c.idCard,countriesWhitelist:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:c.idCard,countriesWhitelist:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,countriesWhitelist:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:c.mobileId,countriesWhitelist:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:c.mobileId,countriesWhitelist:["EE"]},{actionType:a.SMART_ID,handlingModule:c.smartId,countriesWhitelist:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:c.frejaEid,countriesWhitelist:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:c.zealId,countriesWhitelist:["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:c.mojeId,countriesWhitelist:["CZ"]},{actionType:a.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,countriesWhitelist:["FI"]}]),n(o,i.SIGNING,[]),o)),s=function(t,e,r){var n=u[t];return e&&r?n.find((function(t){return t.handlingModule===e&&t.countriesWhitelist.includes(r)})):n.find((function(t){return t.handlingModule===e}))},f=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."}'),p=r.t(f,2),l=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again."}'),d=r.t(l,2),h=JSON.parse('{"id-card-read-timeout":"ID kaardi lugemine võttis liiga kaua aega. Palun sulge kõik brauseri aknad ja proovi uuesti."}'),v=r.t(h,2),y=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ą."}'),g=r.t(y,2),b=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."}'),m=r.t(b,2),O=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку."}'),j={de:p,en:d,et:v,lt:g,lv:m,ru:r.t(O,2)},x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,r=void 0===e?"en":e,n=t.locales,o=void 0===n?j:n,i={currentLanguage:r},a="en",c=function(t){i.currentLanguage=t},u=function(){return i.currentLanguage},s=function(t){var e=o[i.currentLanguage];e||(e=o[a]);var r=e[t]||o[a][t];return r||(r=t),r};return Object.freeze({setLanguage:c,t:s,getCurrentLanguage:u})},w=Object.freeze({sandbox:"sandbox",production:"production"});function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var E=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=(n(t={},w.production,{base:function(){return"https://id.eideasy.com"},card:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.countryCode.toLowerCase();return"https://".concat(t,".eideasy.com")},eParakstsMobile:function(t){var e=t.clientId,r=t.redirectUri;return"https://id.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=".concat(e,"&redirect_uri=").concat(r,"&response_type=code")},zealIdIframeUrl:function(t){var e=t.clientId;return"https://id.eideasy.com/api/identity/".concat(e,"/zealid/get_iframe_url")},mojeId:function(t){var e=t.clientId,r=t.redirectUri;return"https://id.eideasy.com/oauth/start/mojeid?client_id=".concat(e,"&redirect_uri=").concat(r,"&response_type=code")},finnishTrustNetwork:function(t){var e=t.clientId,r=t.redirectUri,n=t.language;return"https://id.eideasy.com/oauth/start/finnish-ftn-login?client_id=".concat(e,"&redirect_uri=").concat(r,"&response_type=code&lang=").concat(n)}}),n(t,w.sandbox,{base:function(){return"https://test.eideasy.com"},card:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.countryCode.toLowerCase();return"https://".concat(t,".test.eideasy.com")},eParakstsMobile:function(t){var e=t.clientId,r=t.redirectUri;return"https://test.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=".concat(e,"&redirect_uri=").concat(r,"&response_type=code")},zealIdIframeUrl:function(t){var e=t.clientId;return"https://test.eideasy.com/api/identity/".concat(e,"/zealid/get_iframe_url")},mojeId:function(t){var e=t.clientId,r=t.redirectUri;return"https://test.eideasy.com/oauth/start/mojeid?client_id=".concat(e,"&redirect_uri=").concat(r,"&response_type=code")},finnishTrustNetwork:function(t){var e=t.clientId,r=t.redirectUri,n=t.language;return"https://test.eideasy.com/oauth/start/finnish-ftn-login?client_id=".concat(e,"&redirect_uri=").concat(r,"&response_type=code&lang=").concat(n)}}),t);return r&&(o[w.production]=I(I({},o[w.production]),r),o[w.sandbox]=I(I({},o[w.sandbox]),r)),{get inCurrentMode(){var t=e.sandbox?w.sandbox:w.production;return o[t]}}},T=r(2492),k=r.n(T),P=r(9669),C=r.n(P),L=C().CancelToken,S=C().isCancel,N=C().Cancel;C().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"].includes(e.status)?Promise.reject(function(t){var e=t.message,r=t.config,n=t.code,o=t.request,i=t.response,a=new Error(e);return a.config=r,n&&(a.code=n),a.request=o,a.response=i,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 A=function(t){return C()(t)};function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var R=function(t,e){var r,n=e.modifyRequestSettings,o=t;return"function"==typeof n&&(r=n(o)),r&&(o=k()(o,r)),o},U=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 A(R(M({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(R(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:r,CancelToken:L})};function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,r=void 0===e?[]:e,n=t.signingModules,o=void 0===n?[]:n,i=t.settings,a=void 0===i?{}:i,c=t.i18n,s=void 0===c?x({currentLanguage:"en"}):c,f=B({},a);f.apiEndpoints=E({countryCode:f.countryCode,sandbox:f.sandbox},f.apiEndpoints),s.setLanguage(f.language);var p=function(t){f.countryCode=t},l=function(){return u},d={};r.forEach((function(t){var e=t({coreContext:{config:f,i18n:s},apiClient:U({modifyRequestSettings:f.modifyRequestSettings})});d[e.MODULE_NAME]=e}));var h={};return o.forEach((function(t){var e=t({coreContext:{config:f,i18n:s},apiClient:U({modifyRequestSettings:f.modifyRequestSettings})});h[e.MODULE_NAME]=e})),Object.freeze({identification:B({},d),signature:B({},h),getAllMethods:l,setLanguage:s.setLanguage,setCountryCode:p})};function G(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){G(i,n,o,a,c,"next",t)}function c(t){G(i,n,o,a,c,"throw",t)}a(void 0)}))}}var W=r(7757),V=r.n(W),H=r(361),J=r.n(H)(),$=function(t){var e=t;return S(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},K=function(t){var e=t.data,r=t.message,n=J({message:r});return e?n.data=e:t.result&&t.result.data&&(n.data=t.result.data),n},Z=function(t){return t.error},X=function(t){return function(){var e=q(V().mark((function e(){var r,n,o=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,o);case 2:if(r=e.sent,!(n=Z(r))){e.next=6;break}throw $(n);case 6:return e.abrupt("return",K(r));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach((function(e){n(t,e,r[e])})):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 tt=function(t,e){return function(r){var n=r.coreContext,o=r.apiClient,i=n.i18n,a=n.config;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Q(Q({},a),t),n=r.success,c=void 0===n?function(){}:n,u=r.fail,s=void 0===u?function(){}:u,f=r.finished,p=void 0===f?function(){}:f,l=t.language||i.getCurrentLanguage(),d=o.CancelToken.source(),h=d.token,v=function(){var t=q(V().mark((function t(){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Q(Q({},r),{},{language:l,i18n:i,cancelToken:h,apiClient:o})).then((function(t){c(t)})).catch((function(t){console&&console.error&&console.error(t),s($(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return v().catch(console.error),Object.freeze({cancel:function(){d.cancel()}})}})}};function et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?et(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var nt=c.idCard,ot=tt(nt,function(){var t=q(V().mark((function t(e){var r,n,o,a,c,u,f;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.cancelToken,n=e.language,o=e.apiClient,a=e.i18n,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="".concat(t.apiEndpoints.inCurrentMode.card(t.countryCode),"/api/identity/").concat(t.clientId,"/read-card");return t.nonce&&(e+="?nonce=".concat(t.nonce)),o.get({url:e,cancelToken:t.cancelToken})},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s(i.IDENTIFICATION,nt,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,X(c)(rt(rt({},e),{},{language:n,cancelToken:r})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=a.t("id-card-read-timeout")),t}));case 5:return f=t.sent,t.next=8,X(u)(rt(rt({},e),{},{cancelToken:r,language:n,data:f.data}));case 8:return f=t.sent,t.abrupt("return",f);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),it=function(){var t=q(V().mark((function t(e){var r,n,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.fn,n=e.shouldContinue,o=e.interval,i=0,a=function(){var t=q(V().mark((function t(e,c){var u,s;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,r();case 4:u=t.sent,s=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),u=void 0,s=t.t0;case 12:if(!n({result:u,attempts:i,error:s})){t.next=14;break}return t.abrupt("return",setTimeout(a,o,e,c));case 14:return t.abrupt("return",e({result:u,error:s}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,r){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(a));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function at(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?at(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ut=c.smartId,st=tt(ut,function(){var t=q(V().mark((function t(e){var r,n,o,a,c,u,f,p,l,d,h,v;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.started,n=void 0===r?function(){}:r,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,f=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,ut);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},d=function(t){var e=s(i.IDENTIFICATION,ut);return p.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,r=0;return it({fn:function(){return d(ct(ct({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var n=t.result,o=n&&n.data&&n.data.status,i=S(t.error),a=t.error&&!t.error.response&&!i;a&&(r+=1);var c=!1;return t.attempts<e&&r<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,X(l)(ct(ct({},e),{},{cancelToken:u,language:f,idcode:o}));case 6:return v=t.sent,n(v),t.next=10,X(h)({config:e,data:ct({},v.data),cancelToken:u,pollInterval:c,language:f});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)}}());function ft(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ft(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var lt=c.mobileId,dt=tt(lt,function(){var t=q(V().mark((function t(e){var r,n,o,a,c,u,f,p,l,d,h,v,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.cancelToken,n=e.language,o=e.apiClient,a=e.started,c=void 0===a?function(){}:a,u=e.idcode,f=e.phone,p=e.pollInterval,l=void 0===p?1e3:p,d=function(t){var e=s(i.IDENTIFICATION,lt,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=s(i.IDENTIFICATION,lt,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/l,r=0;return it({fn:function(){return h(pt(pt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var n=t.result,o=n&&n.data&&n.data.status,i=S(t.error),a=t.error&&!t.error.response&&!i;a&&(r+=1);var c=!1;return t.attempts<e&&r<3&&(c=a||"RUNNING"===o),c},interval:1e3})},t.next=6,X(d)(pt(pt({},e),{},{cancelToken:r,language:n,idcode:u,phone:f}));case 6:return y=t.sent,c(y),t.next=10,X(v)({config:e,data:y.data,cancelToken:r,language:n,pollInterval:l});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)}}()),ht=c.eParakstsMobile,vt=function(t){return window.location.href=t,!1},yt=tt(ht,function(){var t=q(V().mark((function t(e){var r,n,o;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.insteadOfRedirect,n=e.apiEndpoints.inCurrentMode.eParakstsMobile({clientId:e.clientId,redirectUri:e.redirectUri}),!r){t.next=8;break}return t.next=5,X(r)(e);case 5:o=t.sent,t.next=11;break;case 8:return t.next=10,X(vt)(n);case 10:o=t.sent;case 11:if("cancel"!==o.data){t.next=13;break}throw new N;case 13:return t.abrupt("return",o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());function gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bt(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 mt=c.frejaEid,Ot=tt(mt,function(){var t=q(V().mark((function t(e){var r,n,o,a,c,u,f,p,l,d,h,v;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.started,n=void 0===r?function(){}:r,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,f=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,mt);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},d=function(t){var e=s(i.IDENTIFICATION,mt);return p.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,r=0;return it({fn:function(){return d(bt(bt({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var n=t.result,o=n&&n.data&&n.data.status,i=S(t.error),a=t.error&&!t.error.response&&!i;a&&(r+=1);var c=!1;return t.attempts<e&&r<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,X(l)(bt(bt({},e),{},{cancelToken:u,language:f,idcode:o}));case 6:return v=t.sent,n(v),t.next=10,X(h)({config:e,data:bt({},v.data),cancelToken:u,language:f,pollInterval:c});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)}}());function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var wt=c.zealId,_t=tt(wt,function(){var t=q(V().mark((function t(e){var r,n,o,a,c,u,f;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.cancelToken,n=e.apiClient,o=e.language,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,r=document.createElement("iframe"),n=t.iframeUrl;r.setAttribute("src",n),r.setAttribute("referrerpolicy","origin"),r.style.border="0",e.innerHTML="";var o=function(t,e,r){var n=new URL(t.data),o=n.searchParams.get("error"),i=n.searchParams.get("code");o?r(o):i?e({data:{code:i}}):r(t.data)},i=new Promise((function(t,e){window.addEventListener("message",(function(r){var i=new URL(n);r.origin===i.origin&&(window.removeEventListener("message",o),o(r,t,e))}))}));return e.appendChild(r),i},u=function(t){var e=s(i.IDENTIFICATION,wt);return n.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,X(a)(xt(xt({},e),{},{cancelToken:r}));case 6:return f=t.sent,t.next=9,X(c)(xt(xt({},e),{},{cancelToken:r,iframeUrl:f.data.url}));case 9:return f=t.sent,t.next=12,X(u)(xt(xt({},e),{},{cancelToken:r,language:o},f));case 12:return f=t.sent,t.abrupt("return",f);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),It=c.mojeId,Et=function(t){return window.location.href=t,!1},Tt=tt(It,function(){var t=q(V().mark((function t(e){var r,n,o;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.insteadOfRedirect,n=e.apiEndpoints.inCurrentMode.mojeId({clientId:e.clientId,redirectUri:e.redirectUri}),!r){t.next=8;break}return t.next=5,X(r)(e);case 5:o=t.sent,t.next=11;break;case 8:return t.next=10,X(Et)(n);case 10:o=t.sent;case 11:if("cancel"!==o.data){t.next=13;break}throw new N;case 13:return t.abrupt("return",o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),kt=c.finnishTrustNetwork,Pt=function(t){return window.location.href=t,!1},Ct=tt(kt,function(){var t=q(V().mark((function t(e){var r,n,o;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.insteadOfRedirect,n=e.apiEndpoints.inCurrentMode.finnishTrustNetwork({clientId:e.clientId,redirectUri:e.redirectUri,language:e.language}),!r){t.next=8;break}return t.next=5,X(r)(e);case 5:o=t.sent,t.next=11;break;case 8:return t.next=10,X(Pt)(n);case 10:o=t.sent;case 11:if("cancel"!==o.data){t.next=13;break}throw new N;case 13:return t.abrupt("return",o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Lt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return z({settings:t,identificationModules:[ot,st,dt,yt,Ot,_t,Tt,Ct]})},St=Lt},8552:function(t,e,r){var n=r(852)(r(5639),"DataView");t.exports=n},1989:function(t,e,r){var n=r(1789),o=r(401),i=r(7667),a=r(1327),c=r(1866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8407:function(t,e,r){var n=r(7040),o=r(4125),i=r(2117),a=r(7518),c=r(4705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},7071:function(t,e,r){var n=r(852)(r(5639),"Map");t.exports=n},3369:function(t,e,r){var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),c=r(5265);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3818:function(t,e,r){var n=r(852)(r(5639),"Promise");t.exports=n},8525:function(t,e,r){var n=r(852)(r(5639),"Set");t.exports=n},6384:function(t,e,r){var n=r(8407),o=r(7465),i=r(3779),a=r(7599),c=r(4758),u=r(4309);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},2705:function(t,e,r){var n=r(5639).Symbol;t.exports=n},1149:function(t,e,r){var n=r(5639).Uint8Array;t.exports=n},577:function(t,e,r){var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:function(t){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7412:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},4963:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},4636:function(t,e,r){var n=r(2545),o=r(5694),i=r(1469),a=r(4144),c=r(5776),u=r(6719),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&a(t),l=!r&&!f&&!p&&u(t),d=r||f||p||l,h=d?n(t.length,String):[],v=h.length;for(var y in t)!e&&!s.call(t,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,v))||h.push(y);return h}},2488:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},6556:function(t,e,r){var n=r(9465),o=r(7813);t.exports=function(t,e,r){(void 0!==r&&!o(t[e],r)||void 0===r&&!(e in t))&&n(t,e,r)}},4865:function(t,e,r){var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:function(t,e,r){var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:function(t,e,r){var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:function(t,e,r){var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:function(t,e,r){var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:function(t,e,r){var n=r(6384),o=r(7412),i=r(4865),a=r(4037),c=r(3886),u=r(4626),s=r(278),f=r(8805),p=r(1911),l=r(8234),d=r(6904),h=r(4160),v=r(3824),y=r(9148),g=r(8517),b=r(1469),m=r(4144),O=r(6688),j=r(3218),x=r(2928),w=r(3674),_=r(1704),I="[object Arguments]",E="[object Function]",T="[object Object]",k={};k[I]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[T]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[E]=k["[object WeakMap]"]=!1,t.exports=function t(e,r,P,C,L,S){var N,A=1&r,D=2&r,M=4&r;if(P&&(N=L?P(e,C,L,S):P(e)),void 0!==N)return N;if(!j(e))return e;var R=b(e);if(R){if(N=v(e),!A)return s(e,N)}else{var U=h(e),F=U==E||"[object GeneratorFunction]"==U;if(m(e))return u(e,A);if(U==T||U==I||F&&!L){if(N=D||F?{}:g(e),!A)return D?p(e,c(N,e)):f(e,a(N,e))}else{if(!k[U])return L?e:{};N=y(e,U,A)}}S||(S=new n);var B=S.get(e);if(B)return B;S.set(e,N),x(e)?e.forEach((function(n){N.add(t(n,r,P,n,e,S))})):O(e)&&e.forEach((function(n,o){N.set(o,t(n,r,P,o,e,S))}));var z=R?void 0:(M?D?d:l:D?_:w)(e);return o(z||e,(function(n,o){z&&(n=e[o=n]),i(N,o,t(n,r,P,o,e,S))})),N}},3118:function(t,e,r){var n=r(3218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},8483:function(t,e,r){var n=r(5063)();t.exports=n},8866:function(t,e,r){var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:function(t,e,r){var n=r(2705),o=r(9607),i=r(2333),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},9454:function(t,e,r){var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},5588:function(t,e,r){var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},8458:function(t,e,r){var n=r(3560),o=r(5346),i=r(3218),a=r(346),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,f=u.toString,p=s.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:c).test(a(t))}},9221:function(t,e,r){var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:function(t,e,r){var n=r(4239),o=r(1780),i=r(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 i(t)&&o(t.length)&&!!a[n(t)]}},280:function(t,e,r){var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:function(t,e,r){var n=r(3218),o=r(5726),i=r(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&r.push(c);return r}},2980:function(t,e,r){var n=r(6384),o=r(6556),i=r(8483),a=r(9783),c=r(3218),u=r(1704),s=r(6390);t.exports=function t(e,r,f,p,l){e!==r&&i(r,(function(i,u){if(l||(l=new n),c(i))a(e,r,u,f,t,p,l);else{var d=p?p(s(e,u),i,u+"",e,r,l):void 0;void 0===d&&(d=i),o(e,u,d)}}),u)}},9783:function(t,e,r){var n=r(6556),o=r(4626),i=r(7133),a=r(278),c=r(8517),u=r(5694),s=r(1469),f=r(9246),p=r(4144),l=r(3560),d=r(3218),h=r(8630),v=r(6719),y=r(6390),g=r(9881);t.exports=function(t,e,r,b,m,O,j){var x=y(t,r),w=y(e,r),_=j.get(w);if(_)n(t,r,_);else{var I=O?O(x,w,r+"",t,e,j):void 0,E=void 0===I;if(E){var T=s(w),k=!T&&p(w),P=!T&&!k&&v(w);I=w,T||k||P?s(x)?I=x:f(x)?I=a(x):k?(E=!1,I=o(w,!0)):P?(E=!1,I=i(w,!0)):I=[]:h(w)||u(w)?(I=x,u(x)?I=g(x):d(x)&&!l(x)||(I=c(w))):E=!1}E&&(j.set(w,I),m(I,w,b,O,j),j.delete(w)),n(t,r,I)}}},5976:function(t,e,r){var n=r(6557),o=r(5357),i=r(61);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6560:function(t,e,r){var n=r(5703),o=r(8777),i=r(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},2545:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,r){var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:function(t,e,r){t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=c?c(r):new t.constructor(r);return t.copy(n),n}},7157:function(t,e,r){var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:function(t,e,r){var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:function(t,e,r){var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},8363:function(t,e,r){var n=r(4865),o=r(9465);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var c=-1,u=e.length;++c<u;){var s=e[c],f=i?i(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),a?o(r,s,f):n(r,s,f)}return r}},8805:function(t,e,r){var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:function(t,e,r){var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:function(t,e,r){var n=r(5639)["__core-js_shared__"];t.exports=n},1463:function(t,e,r){var n=r(5976),o=r(6612);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,c=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(r[0],r[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var u=r[n];u&&t(e,u,n,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}},8777:function(t,e,r){var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},1957:function(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:function(t,e,r){var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},6904:function(t,e,r){var n=r(8866),o=r(1442),i=r(1704);t.exports=function(t){return n(t,i,o)}},5050:function(t,e,r){var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},852:function(t,e,r){var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:function(t,e,r){var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:function(t,e,r){var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},9551:function(t,e,r){var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},1442:function(t,e,r){var n=r(2488),o=r(5924),i=r(9551),a=r(479),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=c},4160:function(t,e,r){var n=r(8552),o=r(7071),i=r(3818),a=r(8525),c=r(577),u=r(4239),s=r(346),f="[object Map]",p="[object Promise]",l="[object Set]",d="[object WeakMap]",h="[object DataView]",v=s(n),y=s(o),g=s(i),b=s(a),m=s(c),O=u;(n&&O(new n(new ArrayBuffer(1)))!=h||o&&O(new o)!=f||i&&O(i.resolve())!=p||a&&O(new a)!=l||c&&O(new c)!=d)&&(O=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case v:return h;case y:return f;case g:return p;case b:return l;case m:return d}return e}),t.exports=O},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,r){var n=r(4536);t.exports=function(){this.__data__=n?n(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,r){var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:function(t,e,r){var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:function(t,e,r){var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:function(t,e,r){var n=r(4318),o=r(7157),i=r(3147),a=r(419),c=r(7133);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);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 c(t,r);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},8517:function(t,e,r){var n=r(3118),o=r(5924),i=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},6612:function(t,e,r){var n=r(7813),o=r(8612),i=r(5776),a=r(3218);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[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,r){var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,r){var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:function(t,e,r){var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:function(t,e,r){var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:function(t,e,r){var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:function(t,e,r){var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:function(t,e,r){var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,r){var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:function(t,e,r){var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:function(t,e,r){var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},4536:function(t,e,r){var n=r(852)(Object,"create");t.exports=n},6916:function(t,e,r){var n=r(5569)(Object.keys,Object);t.exports=n},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:function(t,e,r){t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},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(r){return t(e(r))}}},5357:function(t,e,r){var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=r(u),n(t,this,s)}}},5639:function(t,e,r){var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,r){var n=r(6560),o=r(1275)(n);t.exports=o},1275:function(t){var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:function(t,e,r){var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},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,r){var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.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,r){var n=r(5990);t.exports=function(t){return n(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,r){var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,r){var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},9246:function(t,e,r){var n=r(8612),o=r(7005);t.exports=function(t){return o(t)&&n(t)}},4144:function(t,e,r){t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3560:function(t,e,r){var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(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,r){var n=r(5588),o=r(1717),i=r(1167),a=i&&i.isMap,c=a?o(a):n;t.exports=c},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,r){var n=r(4239),o=r(5924),i=r(7005),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,f=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=s.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==f}},2928:function(t,e,r){var n=r(9221),o=r(1717),i=r(1167),a=i&&i.isSet,c=a?o(a):n;t.exports=c},6719:function(t,e,r){var n=r(8749),o=r(1717),i=r(1167),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},3674:function(t,e,r){var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},1704:function(t,e,r){var n=r(4636),o=r(313),i=r(8612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},2492:function(t,e,r){var n=r(2980),o=r(1463)((function(t,e,r){n(t,e,r)}));t.exports=o},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,r){var n=r(8363),o=r(1704);t.exports=function(t){return n(t,o(t))}},5666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=I(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?h:l,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p="suspendedStart",l="suspendedYield",d="executing",h="completed",v={};function y(){}function g(){}function b(){}var m={};m[i]=function(){return this};var O=Object.getPrototypeOf,j=O&&O(O(P([])));j&&j!==r&&n.call(j,i)&&(m=j);var x=b.prototype=y.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function I(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,I(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=x.constructor=b,b.constructor=g,g.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},w(_.prototype),_.prototype[a]=function(){return this},t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),u(x,c,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},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 r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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,v):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),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,o),i.loaded=!0,i.exports}return o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var c=2&n&&r;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){a[t]=function(){return r[t]}}));return a.default=function(){return r},o.d(i,a),i},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},o(3159)}()}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eidEasyBrowserClient=e():t.eidEasyBrowserClient=e()}(self,(function(){return function(){var t,e,n={7757:function(t,e,n){t.exports=n(5666)},9669:function(t,e,n){t.exports=n(1609)},5448:function(t,e,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),u=n(4109),s=n(7985),d=n(5061);t.exports=function(t){return new Promise((function(e,n){var p=t.data,l=t.headers;r.isFormData(p)&&delete l["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(g+":"+h)}var y=c(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?u(f.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:t,request:f};o(e,n,i),f=null}},f.onabort=function(){f&&(n(d("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(d("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||s(y))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:f.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),n(t),f=null)})),p||(p=null),f.send(p)}))}},1609:function(t,e,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);function c(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var u=c(n(5655));u.Axios=i,u.create=function(t){return c(a(u.defaults,t))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(t){return Promise.all(t)},u.spread=n(8713),u.isAxiosError=n(6268),t.exports=u,t.exports.default=u},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,n){"use strict";var r=n(5263);function o(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))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,n){"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=u},782:function(t,e,n){"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},4097:function(t,e,n){"use strict";var r=n(1793),o=n(7303);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},5061:function(t,e,n){"use strict";var r=n(481);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},3572:function(t,e,n){"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o(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 c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,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={},o=["url","method","data"],i=["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"],c=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function s(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=u(void 0,t[o])):n[o]=u(t[o],e[o])}r.forEach(o,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=u(void 0,t[o])):n[o]=u(void 0,e[o])})),r.forEach(c,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var d=o.concat(i).concat(a).concat(c),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===d.indexOf(t)}));return r.forEach(p,s),n}},6026:function(t,e,n){"use strict";var r=n(5061);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(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);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},5655:function(t,e,n){"use strict";var r=n(4867),o=n(6016),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(t,e){return o(e,"Accept"),o(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)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(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(i)})),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 o(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 i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=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(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}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,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.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 o(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=o(window.location.href),function(e){var n=r.isString(e)?o(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),o=["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,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.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)}}},4867:function(t,e,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function s(t){return"[object Function]"===o.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.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:c,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:s,isStream:function(t){return c(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},9702:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o;n.r(e),n.d(e,{allMethods:function(){return u},createClient:function(){return be},default:function(){return Ie},getMethodByHandlingModule:function(){return s},methodActionTypes:function(){return a},methodTypes:function(){return i},moduleNames:function(){return c}});var i={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",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",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_SIGNATURE:"fi-ftn-advanced-signature",EVROTRUST_SIGNATURE:"evrotrust-signature"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",idCardSignature:"idCardSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnSignature:"ftnSignature"},u=Object.freeze((r(o={},i.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:c.smartId,supportedCountries:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:c.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.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:a.CZ_MOJEID,handlingModule:c.mojeId,supportedCountries:["CZ"]},{actionType:a.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:c.atHandy,supportedCountries:["AT"]}]),r(o,i.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["FI"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["BE"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:c.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:a.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"]},{actionType:a.OTP_EMAIL,handlingModule:c.otpSignature,supportedCountries:["allCountries"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:c.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:c.ftnSignature,supportedCountries:["FI"]}]),o)),s=function(t,e,n){var r=u[t];if(e&&n){var o=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("allCountries"))}));if(!o){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 o}return r.find((function(t){return t.handlingModule===e}))},d=n(2492),p=n.n(d),l=n(9669),f=n.n(l),g=f().CancelToken,h=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"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,o=t.request,i=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=o,a.response=i,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 f()(t)};function v(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 e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=function(t,e){var n,r=e.modifyRequestSettings,o=t;return"function"==typeof r&&(n=r(o)),n&&(o=p()(o,n)),o},I=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(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 y(b(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:g})};function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,o=void 0===r?[]:r,i=t.settings,a=void 0===i?{}:i,c=t.i18n,s=t.apiEndpoints,d=t.monitoringService,p=_({},a);p.apiEndpoints=s,c.setLanguage(p.language);var l=function(t){p.countryCode=t},f=function(){return p.countryCode},g=function(){return u},h={};n.forEach((function(t){var e=t({coreContext:{config:p,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:p.modifyRequestSettings})});h[e.MODULE_NAME]=e}));var y={};return o.forEach((function(t){var e=t({coreContext:{config:p,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:p.modifyRequestSettings})});y[e.MODULE_NAME]=e})),Object.freeze({identification:_({},h),signature:_({},y),getAllMethods:g,setLanguage:c.setLanguage,setCountryCode:l,getCountryCode:f})};function E(t){return(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)}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}var j=function(t){var e=t.rawSettings,n=t.schema,o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e);return Object.keys(n).forEach((function(t){var r=n[t],i=e[t];if(r.required&&void 0===i)throw new Error('Missing required setting "'.concat(t,'"'));if(void 0===i&&(o[t]=r.default),void 0!==o[t]&&void 0!==r.type&&r.type!==E(o[t]))throw new Error('Expected "'.concat(t,'" to be type of "').concat(r.type,'", but received "').concat(E(o[t]),'"'))})),o},x={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.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1}},C=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 ordnungsgemäß funktioniert."}'),S=n.t(C,2),k=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."}'),A=n.t(k,2),P=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."}'),N=n.t(P,2),L=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."}'),D=n.t(L,2),R=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."}'),M=n.t(R,2),U=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),F={de:S,en:A,et:N,lt:D,lv:M,ru:n.t(U,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,o=void 0===r?F:r,i={currentLanguage:n},a="en",c=function(t){i.currentLanguage=t},u=function(){return i.currentLanguage},s=function(t){var e=o[i.currentLanguage];e||(e=o[a]);var n=e[t]||o[a][t];return n||(n=t),n};return Object.freeze({setLanguage:c,t:s,getCurrentLanguage:u})},B=function(t){var e=t.remoteMonitoringEnabled,n=t.apiEndpoints;return{dispatch:function(t){var r=t.message;if(t.data,e){var o=new URLSearchParams;o.append("message",r),y({url:n.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded"},data:o})}}}};function q(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){q(i,r,o,a,c,"next",t)}function c(t){q(i,r,o,a,c,"throw",t)}a(void 0)}))}}var H=n(7757),V=n.n(H),K=n(361),J=n.n(K)(),$=function(t){var e=t;return h(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=J({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},Y=function(t){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=z(V().mark((function e(){var n,o,i=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,i);case 2:if(n=e.sent,!(o=Y(n))){e.next=6;break}throw $(o);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)}}()};function X(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 Q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var tt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.coreContext,i=r.apiClient,a=o.i18n,c=o.config,u=o.monitoringService;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Q(Q({},x),n),o=Q(Q({},c),t),s=j({rawSettings:o,schema:r}),d=s.success,p=s.fail,l=s.finished,f=t.language||a.getCurrentLanguage(),g=i.CancelToken.source(),h=g.token,y=function(){var t=z(V().mark((function t(){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Q(Q({},s),{},{language:f,i18n:a,monitoringService:u,cancelToken:h,apiClient:i})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),p($(t))})).finally(l);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return y().catch(console.error),Object.freeze({cancel:function(){g.cancel()}})}})}};function et(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 n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var rt=c.idCard,ot=tt(rt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,o=e.apiClient,a=e.i18n,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="".concat(t.apiEndpoints.inCurrentMode.card(t.countryCode),"/api/identity/").concat(t.clientId,"/read-card");return t.nonce&&(e+="?nonce=".concat(t.nonce)),o.get({url:e,cancelToken:t.cancelToken})},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s(i.IDENTIFICATION,rt,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(c)(nt(nt({},e),{},{language:r,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(u)(nt(nt({},e),{},{cancelToken:n,language:r,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)}}(),{countryCode:{type:"string",required:!0}}),it=function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.fn,r=e.shouldContinue,o=e.interval,i=0,a=function(){var t=z(V().mark((function t(e,c){var u,s;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,n();case 4:u=t.sent,s=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),u=void 0,s=t.t0;case 12:if(!r({result:u,attempts:i,error:s})){t.next=14;break}return t.abrupt("return",setTimeout(a,o,e,c));case 14:return t.abrupt("return",e({result:u,error:s}));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(a));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ut=c.smartId,st=tt(ut,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,d=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,ut);return p.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=s(i.IDENTIFICATION,ut);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},g=function(t){var e=1e5/t.pollInterval,n=0;return it({fn:function(){return f(ct(ct({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,W(l)(ct(ct({},e),{},{cancelToken:u,language:d,idcode:o}));case 6:return y=t.sent,r(y),t.next=10,W(g)({config:e,data:ct({},y.data),cancelToken:u,pollInterval:c,language:d});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)}}(),{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 pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var lt=c.mobileId,ft=tt(lt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y,v;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,o=e.apiClient,a=e.started,c=void 0===a?function(){}:a,u=e.idcode,d=e.phone,p=e.pollInterval,l=void 0===p?1e3:p,f=function(t){var e=s(i.IDENTIFICATION,lt,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})},g=function(t){var e=s(i.IDENTIFICATION,lt,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})},y=function(t){var e=12e4/l,n=0;return it({fn:function(){return g(pt(pt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:1e3})},t.next=6,W(f)(pt(pt({},e),{},{cancelToken:n,language:r,idcode:u,phone:d}));case 6:return v=t.sent,c(v),t.next=10,W(y)({config:e,data:v.data,cancelToken:n,language:r,pollInterval:l});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)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),gt=c.eParakstsMobile,ht=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},yt=tt(gt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(ht)({apiEndpoints:r,clientId:o,redirectUri:i});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)}}());function vt(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 n=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var bt=c.frejaEid,It=tt(bt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,d=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,bt);return p.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=s(i.IDENTIFICATION,bt);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},g=function(t){var e=1e5/t.pollInterval,n=0;return it({fn:function(){return f(mt(mt({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,W(l)(mt(mt({},e),{},{cancelToken:u,language:d,idcode:o}));case 6:return y=t.sent,r(y),t.next=10,W(g)({config:e,data:mt({},y.data),cancelToken:u,language:d,pollInterval:c});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)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});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 _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var wt=c.zealId,Et=tt(wt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.apiClient,o=e.language,a=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})})},c=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 o=function(t,e,n){var r=new URL(t.data),o=r.searchParams.get("error"),i=r.searchParams.get("code");o?n(o):i?e({data:{code:i}}):n(t.data)},i=new Promise((function(t,e){window.addEventListener("message",(function(n){var i=new URL(r);n.origin===i.origin&&(window.removeEventListener("message",o),o(n,t,e))}))}));return e.appendChild(n),i},u=function(t){var e=s(i.IDENTIFICATION,wt);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,W(a)(_t(_t({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,W(c)(_t(_t({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,W(u)(_t(_t({},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)}}(),{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),Tt=c.mojeId,jt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},xt=tt(Tt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(jt)({apiEndpoints:r,clientId:o,redirectUri:i});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)}}()),Ct=c.finnishTrustNetwork,St=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,o=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:o})}}},kt=tt(Ct,function(){var t=z(V().mark((function t(e){var n,r,o,i,a,c;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,a=e.language,t.next=3,W(St)({apiEndpoints:r,clientId:o,redirectUri:i,language:a});case 3:return c=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),At=c.atHandy,Pt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Nt=tt(At,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(Pt)({apiEndpoints:r,clientId:o,redirectUri:i});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)}}()),Lt=c.idCardSignature,Dt=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},Rt=function(t){var e=t.countryCode,n=t.clientId,r=t.apiEndpoints,o=s(i.SIGNATURE,Lt,e);return r.inCurrentMode.idCardIframe({clientId:n,actionType:o.actionType})},Mt=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,o=document.createElement("iframe");o.setAttribute("src",n),o.setAttribute("referrerpolicy","origin"),o.style.width="0",o.style.height="0",o.style.position="absolute",o.style.border="0",e.innerHTML="";var i=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,i=r.operation,a=r.error,c=r.status;a||"ready"!==i&&"welcome"!==i||"OK"!==c?e(n.data):t(o)}),{once:!0}),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(o),i},Ut=function(t){var e=t.messenger,n=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,o=r.result,i=r.cert;if("ok"===o&&i)t(n.data);else{var a={};n.data&&"user_cancel"===n.data.result?a.isCancel=!0:a=n.data,e(a)}}),{once:!0})}));return e.post({operation:"getCertificate"}),n},Ft=function(t){var e=t.certificate,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=i.inCurrentMode.startSigning();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:o})},Gt=function(t){var e=t.messenger,n=t.hexDigest,r=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,o=r.result,i=r.signature;if("ok"===o&&i)t(n.data);else{var a={};n.data&&"user_cancel"===n.data.result?a.isCancel=!0:a=n.data,e(a)}}),{once:!0})}));return e.post({operation:"getSignature",hexDigest:n}),r},Bt=function(t){var e=t.signature,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=i.inCurrentMode.completeSignatureIdCard();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:o})},qt=tt(Lt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a,c;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W(Rt,{shouldFormatResult:!1})({countryCode:e.countryCode,clientId:e.clientId,apiEndpoints:e.apiEndpoints});case 2:return n=t.sent,t.next=5,W(Mt,{shouldFormatResult:!1})({iframeUrl:n,iframeHolder:e.iframeHolder,i18n:e.i18n});case 5:return r=t.sent,t.next=8,W(Dt,{shouldFormatResult:!1})({iframe:r});case 8:return o=t.sent,t.next=11,W(Ut,{shouldFormatResult:!1})({messenger:o}).catch((function(t){if(!t.result)throw t;throw"no_certificates"===t.result&&(t.userMessage=e.i18n.t("no_certificates")),t}));case 11:return i=t.sent,t.next=14,W(Ft)({certificate:i.cert,clientId:e.clientId,docId:e.docId,cancelToken:e.cancelToken,apiEndpoints:e.apiEndpoints,apiClient:e.apiClient});case 14:return a=t.sent,t.next=17,W(Gt,{shouldFormatResult:!1})({messenger:o,hexDigest:a.data.hexDigest});case 17:return c=t.sent,t.abrupt("return",W(Bt)({signature:c.signature,clientId:e.clientId,docId:e.docId,cancelToken:e.cancelToken,apiEndpoints:e.apiEndpoints,apiClient:e.apiClient}));case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{iframeHolder:{type:"object"},docId:{type:"string",required:!0}});function zt(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 Ht=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,o=t.maxPollDuration,i=t.fn,a=t.fnArgs;o&&(e=o/r);var c=0;return{start:function(){return it({fn:function(){return i.apply(void 0,function(t){if(Array.isArray(t))return zt(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 zt(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)?zt(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,o=h(t.error),i=t.error&&!t.error.response&&!o;i&&(c+=1);var a,u,s=!1;return a=t.attempts,(!(u=e)||a<u)&&c<3&&(s=i||"RUNNING"===r),s},interval:r})}}},Vt=c.mobileIdSignature,Kt=function(t){var e=t.phone,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:u,lang:s},cancelToken:i})},Jt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:o,client_id:c},cancelToken:i})},$t=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Ht({pollInterval:2e3,maxPollDuration:12e4,fn:Jt,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},Zt=tt(Vt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.monitoringService,d=e.language,p=e.idcode,l=e.phone,f=e.countryCode,g=e.started,h=s(i.SIGNATURE,Vt,f),u.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=5,W(Kt)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,language:d,idcode:p,phone:l,countryCode:f});case 5:return y=t.sent,g(y),t.abrupt("return",W($t)({data:y.data,apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Yt=c.smartIdSignature,Wt=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:u,lang:s},cancelToken:i})},Xt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},Qt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Ht({pollInterval:2e3,maxPollDuration:12e4,fn:Xt,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},te=tt(Yt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.idcode,f=e.countryCode,g=e.started,h=s(i.SIGNATURE,Yt,f),d.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=5,W(Wt)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,idcode:l,countryCode:f,contractId:o});case 5:return y=t.sent,g(y),t.abrupt("return",W(Qt)({data:y.data,apiClient:u,apiEndpoints:c,language:p,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ee=c.evroTrustSignature,ne=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=t.email,p=t.phone,l=t.actionType,f=a.inCurrentMode.startSigning();return c.post({url:f,withCredentials:!1,data:{doc_id:o,contract_id:e,client_id:r,sign_type:l,idcode:n,email:d,phone:p,country:u,lang:s},cancelToken:i})},re=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},oe=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Ht({pollInterval:2e3,fn:re,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},ie=tt(ee,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y,v,m;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.idcode,f=e.phone,g=e.email,h=e.countryCode,y=e.started,v=s(i.SIGNATURE,ee,h),d.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=5,W(ne)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,idcode:l,phone:f,email:g,countryCode:h,contractId:o,actionType:v.actionType});case 5:return m=t.sent,y(m),t.abrupt("return",W(oe)({data:m.data,apiClient:u,apiEndpoints:c,language:p,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ae=c.otpSignature,ce=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,o=t.cancelToken,i=t.docId,a=t.clientId,c=t.emailToken,u=t.smsToken;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:i,timeout:2,lang:r,client_id:a,email_token:c,sms_token:u},cancelToken:o})},ue=tt(ae,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.monitoringService,d=e.language,p=e.countryCode,l=e.emailToken,f=e.smsToken,g=s(i.SIGNATURE,ae,p),console.log(g),u.dispatch({message:"".concat(g.actionType,": signing started")}),t.abrupt("return",W(ce)({apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n,emailToken:l,smsToken:f}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),se=c.eParakstsMobileSignature,de=function(t){var e=t.contractId,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=t.language,u=t.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:c},cancelToken:o})},pe=tt(se,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.countryCode,f=e.redirect,g=s(i.SIGNATURE,se,l),d.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=5,W(de)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:g.actionType});case 5:return h=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(h));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),le=c.ftnSignature,fe=function(t){var e=t.contractId,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=t.language,u=t.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:c},cancelToken:o})},ge=tt(le,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.countryCode,f=e.redirect,g=s(i.SIGNATURE,le,l),d.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=5,W(fe)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:g.actionType});case 5:return h=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(h));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),he=Object.freeze({sandbox:"sandbox",production:"production"});function ye(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 ve(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var me=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=(r(t={},he.production,{base:function(){return"https://id.eideasy.com"},card:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.countryCode.toLowerCase();return"https://".concat(t,".eideasy.com")},eParakstsMobile:function(t){var e=t.clientId,n=t.redirectUri;return"https://id.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},zealIdIframeUrl:function(t){var e=t.clientId;return"https://id.eideasy.com/api/identity/".concat(e,"/zealid/get_iframe_url")},mojeId:function(t){var e=t.clientId,n=t.redirectUri;return"https://id.eideasy.com/oauth/start/mojeid?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},finnishTrustNetwork:function(t){var e=t.clientId,n=t.redirectUri,r=t.language;return"https://id.eideasy.com/oauth/start/finnish-ftn-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&lang=").concat(r)},atHandy:function(t){var e=t.clientId,n=t.redirectUri;return"https://id.eideasy.com/oauth/authorize?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&method=at-handy-signatur-login")},idCardIframe:function(t){var e=t.clientId,n=t.actionType;return"https://id.eideasy.com/signatures/integration/".concat(e,"/").concat(n)},startSigning:function(){return"https://id.eideasy.com/api/signatures/start-signing"},completeSignatureIdCard:function(){return"https://id.eideasy.com/api/signatures/id-card/complete"},completeSignatureMobileId:function(){return"https://id.eideasy.com/api/signatures/sk-mobile-id/complete"},completeSignatureSmartId:function(){return"https://id.eideasy.com/api/signatures/sk-smart-id/complete"},completeSignatureEvrotrust:function(){return"https://id.eideasy.com/api/signatures/evrotrust-signature/complete"},completeOtp:function(){return"https://id.eideasy.com/api/signatures/non-qualified/complete"},eideasyMonitoring:function(){return"https://id.eideasy.com/confirm_progress"}}),r(t,he.sandbox,{base:function(){return"https://test.eideasy.com"},card:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.countryCode.toLowerCase();return"https://".concat(t,".test.eideasy.com")},eParakstsMobile:function(t){var e=t.clientId,n=t.redirectUri;return"https://test.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},zealIdIframeUrl:function(t){var e=t.clientId;return"https://test.eideasy.com/api/identity/".concat(e,"/zealid/get_iframe_url")},mojeId:function(t){var e=t.clientId,n=t.redirectUri;return"https://test.eideasy.com/oauth/start/mojeid?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},finnishTrustNetwork:function(t){var e=t.clientId,n=t.redirectUri,r=t.language;return"https://test.eideasy.com/oauth/start/finnish-ftn-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&lang=").concat(r)},atHandy:function(t){var e=t.clientId,n=t.redirectUri;return"https://test.eideasy.com/oauth/authorize?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&method=at-handy-signatur-login")},idCardIframe:function(t){var e=t.clientId,n=t.actionType;return"https://test.eideasy.com/signatures/integration/".concat(e,"/").concat(n)},startSigning:function(){return"https://test.eideasy.com/api/signatures/start-signing"},completeSignatureIdCard:function(){return"https://test.eideasy.com/api/signatures/id-card/complete"},completeSignatureMobileId:function(){return"https://test.eideasy.com/api/signatures/sk-mobile-id/complete"},completeSignatureSmartId:function(){return"https://test.eideasy.com/api/signatures/sk-smart-id/complete"},completeSignatureEvrotrust:function(){return"https://test.eideasy.com/api/signatures/evrotrust-signature/complete"},completeOtp:function(){return"https://test.eideasy.com/api/signatures/non-qualified/complete"},eideasyMonitoring:function(){return"https://test.eideasy.com/confirm_progress"}}),t);return n&&(o[he.production]=ve(ve({},o[he.production]),n),o[he.sandbox]=ve(ve({},o[he.sandbox]),n)),{get inCurrentMode(){var t=e.sandbox?he.sandbox:he.production;return o[t]}}},be=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=j({rawSettings:t,schema:x}),n=G({currentLanguage:"en"}),r=me({countryCode:e.countryCode,sandbox:e.sandbox},e.apiEndpoints),o=B({remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return w({settings:e,i18n:n,monitoringService:o,apiEndpoints:r,identificationModules:[ot,st,ft,yt,It,Et,xt,kt,Nt],signingModules:[qt,Zt,te,ie,ue,pe,ge]})},Ie=be},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),o=n(401),i=n(7667),a=n(1327),c=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8407:function(t,e,n){var r=n(7040),o=n(4125),i=n(2117),a=n(7518),c=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),c=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),o=n(7465),i=n(3779),a=n(7599),c=n(4758),u=n(4309);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},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,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},4636:function(t,e,n){var r=n(2545),o=n(5694),i=n(1469),a=n(4144),c=n(5776),u=n(6719),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),d=!n&&o(t),p=!n&&!d&&a(t),l=!n&&!d&&!p&&u(t),f=n||d||p||l,g=f?r(t.length,String):[],h=g.length;for(var y in t)!e&&!s.call(t,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,h))||g.push(y);return g}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),o=n(7813);t.exports=function(t,e,n){(void 0!==n&&!o(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),o=n(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(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),o=n(3674);t.exports=function(t,e){return t&&r(e,o(e),t)}},3886:function(t,e,n){var r=n(8363),o=n(1704);t.exports=function(t,e){return t&&r(e,o(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),o=n(7412),i=n(4865),a=n(4037),c=n(3886),u=n(4626),s=n(278),d=n(8805),p=n(1911),l=n(8234),f=n(6904),g=n(4160),h=n(3824),y=n(9148),v=n(8517),m=n(1469),b=n(4144),I=n(6688),O=n(3218),_=n(2928),w=n(3674),E=n(1704),T="[object Arguments]",j="[object Function]",x="[object Object]",C={};C[T]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[x]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[j]=C["[object WeakMap]"]=!1,t.exports=function t(e,n,S,k,A,P){var N,L=1&n,D=2&n,R=4&n;if(S&&(N=A?S(e,k,A,P):S(e)),void 0!==N)return N;if(!O(e))return e;var M=m(e);if(M){if(N=h(e),!L)return s(e,N)}else{var U=g(e),F=U==j||"[object GeneratorFunction]"==U;if(b(e))return u(e,L);if(U==x||U==T||F&&!A){if(N=D||F?{}:v(e),!L)return D?p(e,c(N,e)):d(e,a(N,e))}else{if(!C[U])return A?e:{};N=y(e,U,L)}}P||(P=new r);var G=P.get(e);if(G)return G;P.set(e,N),_(e)?e.forEach((function(r){N.add(t(r,n,S,r,e,P))})):I(e)&&e.forEach((function(r,o){N.set(o,t(r,n,S,o,e,P))}));var B=M?void 0:(R?D?f:l:D?E:w)(e);return o(B||e,(function(r,o){B&&(r=e[o=r]),i(N,o,t(r,n,S,o,e,P))})),N}},3118:function(t,e,n){var r=n(3218),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),o=n(1469);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},4239:function(t,e,n){var r=n(2705),o=n(9607),i=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)?o(t):i(t)}},9454:function(t,e,n){var r=n(4239),o=n(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),o=n(7005);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),o=n(5346),i=n(3218),a=n(346),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,d=u.toString,p=s.hasOwnProperty,l=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?l:c).test(a(t))}},9221:function(t,e,n){var r=n(4160),o=n(7005);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),o=n(1780),i=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 i(t)&&o(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),o=n(5726),i=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&n.push(c);return n}},2980:function(t,e,n){var r=n(6384),o=n(6556),i=n(8483),a=n(9783),c=n(3218),u=n(1704),s=n(6390);t.exports=function t(e,n,d,p,l){e!==n&&i(n,(function(i,u){if(l||(l=new r),c(i))a(e,n,u,d,t,p,l);else{var f=p?p(s(e,u),i,u+"",e,n,l):void 0;void 0===f&&(f=i),o(e,u,f)}}),u)}},9783:function(t,e,n){var r=n(6556),o=n(4626),i=n(7133),a=n(278),c=n(8517),u=n(5694),s=n(1469),d=n(9246),p=n(4144),l=n(3560),f=n(3218),g=n(8630),h=n(6719),y=n(6390),v=n(9881);t.exports=function(t,e,n,m,b,I,O){var _=y(t,n),w=y(e,n),E=O.get(w);if(E)r(t,n,E);else{var T=I?I(_,w,n+"",t,e,O):void 0,j=void 0===T;if(j){var x=s(w),C=!x&&p(w),S=!x&&!C&&h(w);T=w,x||C||S?s(_)?T=_:d(_)?T=a(_):C?(j=!1,T=o(w,!0)):S?(j=!1,T=i(w,!0)):T=[]:g(w)||u(w)?(T=_,u(_)?T=v(_):f(_)&&!l(_)||(T=c(w))):j=!1}j&&(O.set(w,T),b(T,w,m,I,O),O.delete(w)),r(t,n,T)}}},5976:function(t,e,n){var r=n(6557),o=n(5357),i=n(61);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),o=n(8777),i=n(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;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),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(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),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.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),o=n(9465);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var c=-1,u=e.length;++c<u;){var s=e[c],d=i?i(n[s],t[s],s,n,t):void 0;void 0===d&&(d=t[s]),a?o(n,s,d):r(n,s,d)}return n}},8805:function(t,e,n){var r=n(8363),o=n(9551);t.exports=function(t,e){return r(t,o(t),e)}},1911:function(t,e,n){var r=n(8363),o=n(1442);t.exports=function(t,e){return r(t,o(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),o=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}},8777:function(t,e,n){var r=n(852),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},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),o=n(9551),i=n(3674);t.exports=function(t){return r(t,i,o)}},6904:function(t,e,n){var r=n(8866),o=n(1442),i=n(1704);t.exports=function(t){return r(t,i,o)}},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),o=n(7801);t.exports=function(t,e){var n=o(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),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}},9551:function(t,e,n){var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},1442:function(t,e,n){var r=n(2488),o=n(5924),i=n(9551),a=n(479),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=c},4160:function(t,e,n){var r=n(8552),o=n(7071),i=n(3818),a=n(8525),c=n(577),u=n(4239),s=n(346),d="[object Map]",p="[object Promise]",l="[object Set]",f="[object WeakMap]",g="[object DataView]",h=s(r),y=s(o),v=s(i),m=s(a),b=s(c),I=u;(r&&I(new r(new ArrayBuffer(1)))!=g||o&&I(new o)!=d||i&&I(i.resolve())!=p||a&&I(new a)!=l||c&&I(new c)!=f)&&(I=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return g;case y:return d;case v:return p;case m:return l;case b:return f}return e}),t.exports=I},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),o=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 o.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.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),o=n(7157),i=n(3147),a=n(419),c=n(7133);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(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 c(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),o=n(5924),i=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(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),o=n(8612),i=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var c=typeof e;return!!("number"==c?o(n)&&i(e,n.length):"string"==c&&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,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i 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),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.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__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},4785:function(t,e,n){var r=n(1989),o=n(8407),i=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),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),o=n.size;return n.set(t,e),this.size+=n.size==o?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),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},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),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(u),r(t,this,s)}}},5639:function(t,e,n){var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},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),o=n(1275)(r);t.exports=o},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>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),o=n(7071),i=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(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),o=n(7005),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),o=n(1780);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),o=n(7005);t.exports=function(t){return o(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),o=n(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3560:function(t,e,n){var r=n(4239),o=n(3218);t.exports=function(t){if(!o(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),o=n(1717),i=n(1167),a=i&&i.isMap,c=a?o(a):r;t.exports=c},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),o=n(5924),i=n(7005),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,d=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}},2928:function(t,e,n){var r=n(9221),o=n(1717),i=n(1167),a=i&&i.isSet,c=a?o(a):r;t.exports=c},6719:function(t,e,n){var r=n(8749),o=n(1717),i=n(1167),a=i&&i.isTypedArray,c=a?o(a):r;t.exports=c},3674:function(t,e,n){var r=n(4636),o=n(280),i=n(8612);t.exports=function(t){return i(t)?r(t):o(t)}},1704:function(t,e,n){var r=n(4636),o=n(313),i=n(8612);t.exports=function(t){return i(t)?r(t,!0):o(t)}},2492:function(t,e,n){var r=n(2980),o=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=o},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),o=n(1704);t.exports=function(t){return r(t,o(t))}},5666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(t,e,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=T(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=d(t,e,n);if("normal"===u.type){if(r=n.done?g:l,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p="suspendedStart",l="suspendedYield",f="executing",g="completed",h={};function y(){}function v(){}function m(){}var b={};b[i]=function(){return this};var I=Object.getPrototypeOf,O=I&&I(I(S([])));O&&O!==n&&r.call(O,i)&&(b=O);var _=m.prototype=y.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,i,a,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function T(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return v.prototype=_.constructor=m,m.constructor=v,v.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),u(_,c,"Generator"),_[i]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},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 n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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),x(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 o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:S(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,o),i.loaded=!0,i.exports}return o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.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 i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var c=2&r&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},o(9702)}()}));
|
|
@@ -7,6 +7,7 @@ import IdentFrejaEid from './IdentFrejaEid';
|
|
|
7
7
|
import IdentZealId from './IdentZealId';
|
|
8
8
|
import IdentMojeId from './IdentMojeId';
|
|
9
9
|
import IdentFinnishTrustNetwork from './IdentFinnishTrustNetwork';
|
|
10
|
+
import IdentAtHandy from './IdentAtHandy';
|
|
10
11
|
import countries from 'i18n-iso-countries';
|
|
11
12
|
import eidEasyDemoClient from './eidEasyDemoClient';
|
|
12
13
|
import { allMethods, methodTypes, moduleNames } from '../../../src';
|
|
@@ -21,6 +22,7 @@ const componentsByHandlingModule = {
|
|
|
21
22
|
[moduleNames.zealId]: IdentZealId,
|
|
22
23
|
[moduleNames.mojeId]: IdentMojeId,
|
|
23
24
|
[moduleNames.finnishTrustNetwork]: IdentFinnishTrustNetwork,
|
|
25
|
+
[moduleNames.atHandy]: IdentAtHandy,
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
// map vue components to methods
|
|
@@ -32,14 +34,14 @@ const methods = allMethods[methodTypes.IDENTIFICATION].map(method => {
|
|
|
32
34
|
}
|
|
33
35
|
});
|
|
34
36
|
|
|
35
|
-
let availableCountries = methods.map(method => method.
|
|
37
|
+
let availableCountries = methods.map(method => method.supportedCountries).flat();
|
|
36
38
|
availableCountries = [...new Set(availableCountries)];
|
|
37
39
|
|
|
38
40
|
const methodsByCountry = {};
|
|
39
41
|
availableCountries.forEach(countryCode => {
|
|
40
42
|
methodsByCountry[countryCode] = [];
|
|
41
43
|
methods.forEach(method => {
|
|
42
|
-
if (method.
|
|
44
|
+
if (method.supportedCountries.includes(countryCode) || method.supportedCountries.includes('allCountries')) {
|
|
43
45
|
methodsByCountry[countryCode].push(method.component);
|
|
44
46
|
}
|
|
45
47
|
})
|
|
@@ -54,6 +56,7 @@ export default {
|
|
|
54
56
|
IdentEParakstsMobile,
|
|
55
57
|
IdentZealId,
|
|
56
58
|
IdentFinnishTrustNetwork,
|
|
59
|
+
IdentAtHandy,
|
|
57
60
|
},
|
|
58
61
|
data() {
|
|
59
62
|
return {
|
|
@@ -68,7 +71,7 @@ export default {
|
|
|
68
71
|
selectedLanguage: 'en',
|
|
69
72
|
methodsByCountry,
|
|
70
73
|
countries,
|
|
71
|
-
selectedCountry: '
|
|
74
|
+
selectedCountry: 'AT',
|
|
72
75
|
eidEasyDemoClient,
|
|
73
76
|
}
|
|
74
77
|
},
|
|
@@ -80,6 +83,9 @@ export default {
|
|
|
80
83
|
console.log('cancel click');
|
|
81
84
|
},
|
|
82
85
|
getCountryNameByCode(countryCode) {
|
|
86
|
+
if (countryCode === 'allCountries') {
|
|
87
|
+
return 'World'
|
|
88
|
+
}
|
|
83
89
|
return countries.getName(countryCode, 'en', {select: "official"});
|
|
84
90
|
},
|
|
85
91
|
},
|