UNPKG

onfido-sdk-ui

Version:

JavaScript SDK view layer for Onfido identity verification

3 lines 1.33 MB
/*! OnfidoAuth SDK 6.17.0 */ /*! License information can be found in onfidoAuth.LICENSES.txt */ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.OnfidoAuth=n():e.OnfidoAuth=n()}(window,(function(){return function(e){function n(n){for(var t,r,a=n[0],i=n[1],u=0,l=[];u<a.length;u++)r=a[u],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&l.push(o[r][0]),o[r]=0;for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t]);for(s&&s(n);l.length;)l.shift()()}var t={},r={3:0},o={3:0};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var n=[];r[e]?n.push(r[e]):0!==r[e]&&{5:1,6:1}[e]&&n.push(r[e]=new Promise((function(n,t){for(var o="onfidoAuth."+({0:"authVendor",1:"crossDevice",5:"vendors~crossDevice"}[e]||e)+".css",i=a.p+o,u=document.getElementsByTagName("link"),l=0;l<u.length;l++){var s=(d=u[l]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===o||s===i))return n()}var c=document.getElementsByTagName("style");for(l=0;l<c.length;l++){var d;if((s=(d=c[l]).getAttribute("data-href"))===o||s===i)return n()}var _=document.createElement("link");_.rel="stylesheet",_.type="text/css",_.onload=n,_.onerror=function(n){var o=n&&n.target&&n.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.request=o,delete r[e],_.parentNode.removeChild(_),t(a)},_.href=i,document.getElementsByTagName("head")[0].appendChild(_)})).then((function(){r[e]=0})));var t=o[e];if(0!==t)if(t)n.push(t[2]);else{var i=new Promise((function(n,r){t=o[e]=[n,r]}));n.push(t[2]=i);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.src=function(e){return a.p+"onfidoAuth."+({0:"authVendor",1:"crossDevice",5:"vendors~crossDevice"}[e]||e)+".min.js"}(e);var s=new Error;u=function(n){l.onerror=l.onload=null,clearTimeout(c);var t=o[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,t[1](s)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(n)},a.m=e,a.c=t,a.d=function(e,n,t){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,n){if(1&n&&(e=a(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)a.d(t,r,function(n){return e[n]}.bind(null,r));return t},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="https://assets.onfido.com/web-sdk-releases/6.17.0/",a.oe=function(e){throw console.error(e),e};var i=window.webpackJsonpOnfidoAuth=window.webpackJsonpOnfidoAuth||[],u=i.push.bind(i);i.push=n,i=i.slice();for(var l=0;l<i.length;l++)n(i[l]);var s=u;return a(a.s=649)}([function(e,n,t){"use strict";t.r(n),t.d(n,"render",(function(){return q})),t.d(n,"hydrate",(function(){return M})),t.d(n,"createElement",(function(){return p})),t.d(n,"h",(function(){return p})),t.d(n,"Fragment",(function(){return h})),t.d(n,"createRef",(function(){return y})),t.d(n,"isValidElement",(function(){return o})),t.d(n,"Component",(function(){return v})),t.d(n,"cloneElement",(function(){return j})),t.d(n,"createContext",(function(){return B})),t.d(n,"toChildArray",(function(){return A})),t.d(n,"options",(function(){return r}));var r,o,a,i,u,l,s={},c=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _(e,n){for(var t in n)e[t]=n[t];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function p(e,n,t){var r,o,a,i=arguments,u={};for(a in n)"key"==a?r=n[a]:"ref"==a?o=n[a]:u[a]=n[a];if(arguments.length>3)for(t=[t],a=3;a<arguments.length;a++)t.push(i[a]);if(null!=t&&(u.children=t),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return m(e,u,r,o,null)}function m(e,n,t,o,a){var i={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++r.__v:a};return null!=r.vnode&&r.vnode(i),i}function y(){return{current:null}}function h(e){return e.children}function v(e,n){this.props=e,this.context=n}function g(e,n){if(null==n)return e.__?g(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?g(e):null}function b(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return b(e)}}function k(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||i)(D)}function D(){for(var e;D.__r=a.length;)e=a.sort((function(e,n){return e.__v.__b-n.__v.__b})),a=[],e.some((function(e){var n,t,r,o,a,i;e.__d&&(a=(o=(n=e).__v).__e,(i=n.__P)&&(t=[],(r=_({},o)).__v=o.__v+1,N(i,o,r,n.__n,void 0!==i.ownerSVGElement,null!=o.__h?[a]:null,t,null==a?g(o):a,o.__h),L(t,o),o.__e!=a&&b(o)))}))}function S(e,n,t,r,o,a,i,u,l,d){var _,f,p,y,v,b,k,D=r&&r.__k||c,S=D.length;for(t.__k=[],_=0;_<n.length;_++)if(null!=(y=t.__k[_]=null==(y=n[_])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?m(null,y,null,null,y):Array.isArray(y)?m(h,{children:y},null,null,null):y.__b>0?m(y.type,y.props,y.key,null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(p=D[_])||p&&y.key==p.key&&y.type===p.type)D[_]=void 0;else for(f=0;f<S;f++){if((p=D[f])&&y.key==p.key&&y.type===p.type){D[f]=void 0;break}p=null}N(e,y,p=p||s,o,a,i,u,l,d),v=y.__e,(f=y.ref)&&p.ref!=f&&(k||(k=[]),p.ref&&k.push(p.ref,null,y),k.push(f,y.__c||v,y)),null!=v?(null==b&&(b=v),"function"==typeof y.type&&null!=y.__k&&y.__k===p.__k?y.__d=l=C(y,l,e):l=w(e,y,p,D,v,l),d||"option"!==t.type?"function"==typeof t.type&&(t.__d=l):e.value=""):l&&p.__e==l&&l.parentNode!=e&&(l=g(p))}for(t.__e=b,_=S;_--;)null!=D[_]&&("function"==typeof t.type&&null!=D[_].__e&&D[_].__e==t.__d&&(t.__d=g(r,_+1)),R(D[_],D[_]));if(k)for(_=0;_<k.length;_++)T(k[_],k[++_],k[++_])}function C(e,n,t){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,n="function"==typeof o.type?C(o,n,t):w(t,o,o,e.__k,o.__e,n));return n}function A(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){A(e,n)})):n.push(e)),n}function w(e,n,t,r,o,a){var i,u,l;if(void 0!==n.__d)i=n.__d,n.__d=void 0;else if(null==t||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),i=null;else{for(u=a,l=0;(u=u.nextSibling)&&l<r.length;l+=2)if(u==o)break e;e.insertBefore(o,a),i=a}return void 0!==i?i:o.nextSibling}function O(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||d.test(n)?t:t+"px"}function E(e,n,t,r,o){var a;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||O(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||O(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])a=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+a]=t,t?r||e.addEventListener(n,a?I:U,a):e.removeEventListener(n,a?I:U,a);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function U(e){this.l[e.type+!1](r.event?r.event(e):e)}function I(e){this.l[e.type+!0](r.event?r.event(e):e)}function N(e,n,t,o,a,i,u,l,s){var c,d,f,p,m,y,g,b,k,D,C,A=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(s=t.__h,l=n.__e=t.__e,n.__h=null,i=[l]),(c=r.__b)&&c(n);try{e:if("function"==typeof A){if(b=n.props,k=(c=A.contextType)&&o[c.__c],D=c?k?k.props.value:c.__:o,t.__c?g=(d=n.__c=t.__c).__=d.__E:("prototype"in A&&A.prototype.render?n.__c=d=new A(b,D):(n.__c=d=new v(b,D),d.constructor=A,d.render=P),k&&k.sub(d),d.props=b,d.state||(d.state={}),d.context=D,d.__n=o,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=_({},d.__s)),_(d.__s,A.getDerivedStateFromProps(b,d.__s))),p=d.props,m=d.state,f)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&b!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,D),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,D)||n.__v===t.__v){d.props=b,d.state=d.__s,n.__v!==t.__v&&(d.__d=!1),d.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,D),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,m,y)}))}d.context=D,d.props=b,d.state=d.__s,(c=r.__r)&&c(n),d.__d=!1,d.__v=n,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(o=_(_({},o),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(p,m)),C=null!=c&&c.type===h&&null==c.key?c.props.children:c,S(e,Array.isArray(C)?C:[C],n,t,o,a,i,u,l,s),d.base=n.__e,n.__h=null,d.__h.length&&u.push(d),g&&(d.__E=d.__=null),d.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=x(t.__e,n,t,o,a,i,u,s);(c=r.diffed)&&c(n)}catch(e){n.__v=null,(s||null!=i)&&(n.__e=l,n.__h=!!s,i[i.indexOf(l)]=null),r.__e(e,n,t)}}function L(e,n){r.__c&&r.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){r.__e(e,n.__v)}}))}function x(e,n,t,r,o,a,i,u){var l,d,_,p,m=t.props,y=n.props,h=n.type,v=0;if("svg"===h&&(o=!0),null!=a)for(;v<a.length;v++)if((l=a[v])&&(l===e||(h?l.localName==h:3==l.nodeType))){e=l,a[v]=null;break}if(null==e){if(null===h)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,y.is&&y),a=null,u=!1}if(null===h)m===y||u&&e.data===y||(e.data=y);else{if(a=a&&c.slice.call(e.childNodes),d=(m=t.props||s).dangerouslySetInnerHTML,_=y.dangerouslySetInnerHTML,!u){if(null!=a)for(m={},p=0;p<e.attributes.length;p++)m[e.attributes[p].name]=e.attributes[p].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(function(e,n,t,r,o){var a;for(a in t)"children"===a||"key"===a||a in n||E(e,a,null,t[a],r);for(a in n)o&&"function"!=typeof n[a]||"children"===a||"key"===a||"value"===a||"checked"===a||t[a]===n[a]||E(e,a,n[a],t[a],r)}(e,y,m,o,u),_)n.__k=[];else if(v=n.props.children,S(e,Array.isArray(v)?v:[v],n,t,r,o&&"foreignObject"!==h,a,i,e.firstChild,u),null!=a)for(v=a.length;v--;)null!=a[v]&&f(a[v]);u||("value"in y&&void 0!==(v=y.value)&&(v!==e.value||"progress"===h&&!v)&&E(e,"value",v,m.value,!1),"checked"in y&&void 0!==(v=y.checked)&&v!==e.checked&&E(e,"checked",v,m.checked,!1))}return e}function T(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){r.__e(e,t)}}function R(e,n,t){var o,a,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,n)),t||"function"==typeof e.type||(t=null!=(a=e.__e)),e.__e=e.__d=void 0,null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&R(o[i],n,t);null!=a&&f(a)}function P(e,n,t){return this.constructor(e,t)}function q(e,n,t){var o,a,i;r.__&&r.__(e,n),a=(o="function"==typeof t)?null:t&&t.__k||n.__k,i=[],N(n,e=(!o&&t||n).__k=p(h,null,[e]),a||s,s,void 0!==n.ownerSVGElement,!o&&t?[t]:a?null:n.firstChild?c.slice.call(n.childNodes):null,i,!o&&t?t:a?a.__e:n.firstChild,o),L(i,e)}function M(e,n){q(e,n,M)}function j(e,n,t){var r,o,a,i=arguments,u=_({},e.props);for(a in n)"key"==a?r=n[a]:"ref"==a?o=n[a]:u[a]=n[a];if(arguments.length>3)for(t=[t],a=3;a<arguments.length;a++)t.push(i[a]);return null!=t&&(u.children=t),m(e.type,u,r||e.key,o||e.ref,null)}function B(e,n){var t={__c:n="__cC"+l++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(k)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}r={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e},__v:0},o=function(e){return null!=e&&void 0===e.constructor},v.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},t),this.props)),e&&_(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),k(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},v.prototype.render=h,a=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0},function(e,n,t){var r=t(193);e.exports=function(e,n,t){return n in e?r(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},function(e,n){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,n,t){e.exports=t(496)},function(e,n,t){"use strict";t.r(n),t.d(n,"version",(function(){return H})),t.d(n,"Children",(function(){return f})),t.d(n,"render",(function(){return O})),t.d(n,"hydrate",(function(){return E})),t.d(n,"unmountComponentAtNode",(function(){return Y})),t.d(n,"createPortal",(function(){return S})),t.d(n,"createFactory",(function(){return W})),t.d(n,"cloneElement",(function(){return X})),t.d(n,"isValidElement",(function(){return K})),t.d(n,"findDOMNode",(function(){return Q})),t.d(n,"PureComponent",(function(){return u})),t.d(n,"memo",(function(){return l})),t.d(n,"forwardRef",(function(){return d})),t.d(n,"unstable_batchedUpdates",(function(){return Z})),t.d(n,"StrictMode",(function(){return J})),t.d(n,"Suspense",(function(){return y})),t.d(n,"SuspenseList",(function(){return g})),t.d(n,"lazy",(function(){return v})),t.d(n,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return q})),t.d(n,"unstable_ImmediatePriority",(function(){return M})),t.d(n,"unstable_UserBlockingPriority",(function(){return j})),t.d(n,"unstable_NormalPriority",(function(){return B})),t.d(n,"unstable_LowPriority",(function(){return F})),t.d(n,"unstable_IdlePriority",(function(){return G})),t.d(n,"unstable_runWithPriority",(function(){return z})),t.d(n,"unstable_now",(function(){return V}));var r=t(34);t.d(n,"useState",(function(){return r.k})),t.d(n,"useReducer",(function(){return r.i})),t.d(n,"useEffect",(function(){return r.d})),t.d(n,"useLayoutEffect",(function(){return r.g})),t.d(n,"useRef",(function(){return r.j})),t.d(n,"useImperativeHandle",(function(){return r.f})),t.d(n,"useMemo",(function(){return r.h})),t.d(n,"useCallback",(function(){return r.a})),t.d(n,"useContext",(function(){return r.b})),t.d(n,"useDebugValue",(function(){return r.c})),t.d(n,"useErrorBoundary",(function(){return r.e}));var o=t(0);function a(e,n){for(var t in n)e[t]=n[t];return e}function i(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function u(e){this.props=e}function l(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:i(this.props,e)}function r(n){return this.shouldComponentUpdate=t,Object(o.createElement)(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}t.d(n,"createElement",(function(){return o.createElement})),t.d(n,"createContext",(function(){return o.createContext})),t.d(n,"createRef",(function(){return o.createRef})),t.d(n,"Fragment",(function(){return o.Fragment})),t.d(n,"Component",(function(){return o.Component})),(u.prototype=new o.Component).isPureReactComponent=!0,u.prototype.shouldComponentUpdate=function(e,n){return i(this.props,e)||i(this.state,n)};var s=o.options.__b;o.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),s&&s(e)};var c="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function n(n,t){var r=a({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=c,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var _=function(e,n){return null==e?null:Object(o.toChildArray)(Object(o.toChildArray)(e).map(n))},f={map:_,forEach:_,count:function(e){return e?Object(o.toChildArray)(e).length:0},only:function(e){var n=Object(o.toChildArray)(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:o.toChildArray},p=o.options.__e;o.options.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);p(e,n,t)};var m=o.options.unmount;function y(){this.__u=0,this.t=null,this.__b=null}function h(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function v(e){var n,t,r;function a(a){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return Object(o.createElement)(t,a)}return a.displayName="Lazy",a.__f=!0,a}function g(){this.u=null,this.o=null}o.options.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),m&&m(e)},(y.prototype=new o.Component).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=h(r.__v),a=!1,i=function(){a||(a=!0,t.__R=null,o?o(u):u())};t.__R=i;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(n,t,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)})),n.__c&&n.__c.__P===t&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(i,i)},y.prototype.componentWillUnmount=function(){this.t=[]},y.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=a({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)}))),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var i=n.__e&&Object(o.createElement)(o.Fragment,null,e.fallback);return i&&(i.__h=null),[Object(o.createElement)(o.Fragment,null,n.__e?null:e.children),i]};var b=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function k(e){return this.getChildContext=function(){return e.context},e.children}function D(e){var n=this,t=e.i;n.componentWillUnmount=function(){Object(o.render)(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),Object(o.render)(Object(o.createElement)(k,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}function S(e,n){return Object(o.createElement)(D,{__v:e,i:n})}(g.prototype=new o.Component).__e=function(e){var n=this,t=h(n.__v),r=n.o.get(e);return r[0]++,function(o){var a=function(){n.props.revealOrder?(r.push(o),b(n,e,r)):o()};t?t(a):a()}},g.prototype.render=function(e){this.u=null,this.o=new Map;var n=Object(o.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},g.prototype.componentDidUpdate=g.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){b(e,t,n)}))};var C="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,A=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,w=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function O(e,n,t){return null==n.__k&&(n.textContent=""),Object(o.render)(e,n),"function"==typeof t&&t(),e?e.__c:null}function E(e,n,t){return Object(o.hydrate)(e,n),"function"==typeof t&&t(),e?e.__c:null}o.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var U=o.options.event;function I(){}function N(){return this.cancelBubble}function L(){return this.defaultPrevented}o.options.event=function(e){return U&&(e=U(e)),e.persist=I,e.isPropagationStopped=N,e.isDefaultPrevented=L,e.nativeEvent=e};var x,T={configurable:!0,get:function(){return this.class}},R=o.options.vnode;o.options.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){for(var a in r={},t){var i=t[a];"value"===a&&"defaultValue"in t&&null==i||("defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===i?i="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+n)&&!w(t.type)?a="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(a)?a=a.toLowerCase():A.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[a]=i)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(o.toChildArray)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Object(o.toChildArray)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}n&&t.class!=t.className&&(T.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",T)),e.$$typeof=C,R&&R(e)};var P=o.options.__r;o.options.__r=function(e){P&&P(e),x=e.__c};var q={ReactCurrentDispatcher:{current:{readContext:function(e){return x.__n[e.__c].props.value}}}},M=1,j=2,B=3,F=4,G=5;function z(e,n){return n()}var V="object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()},H="16.8.0";function W(e){return o.createElement.bind(null,e)}function K(e){return!!e&&e.$$typeof===C}function X(e){return K(e)?o.cloneElement.apply(null,arguments):e}function Y(e){return!!e.__k&&(Object(o.render)(null,e),!0)}function Q(e){return e&&(e.base||1===e.nodeType&&e)||null}var Z=function(e,n){return e(n)},J=o.Fragment;n.default={useState:r.k,useReducer:r.i,useEffect:r.d,useLayoutEffect:r.g,useRef:r.j,useImperativeHandle:r.f,useMemo:r.h,useCallback:r.a,useContext:r.b,useDebugValue:r.c,version:"16.8.0",Children:f,render:O,hydrate:E,unmountComponentAtNode:Y,createPortal:S,createElement:o.createElement,createContext:o.createContext,createFactory:W,cloneElement:X,createRef:o.createRef,Fragment:o.Fragment,isValidElement:K,findDOMNode:Q,Component:o.Component,PureComponent:u,memo:l,forwardRef:d,unstable_batchedUpdates:Z,StrictMode:o.Fragment,Suspense:y,SuspenseList:g,lazy:v,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:q}},function(e,n,t){e.exports={modal_animation_duration:"200ms",content:"onfido-sdk-ui-Theme-content",header:"onfido-sdk-ui-Theme-header",step:"onfido-sdk-ui-Theme-step",fullScreenStep:"onfido-sdk-ui-Theme-fullScreenStep",fullHeightContainer:"onfido-sdk-ui-Theme-fullHeightContainer",fullHeightMobileContainer:"onfido-sdk-ui-Theme-fullHeightMobileContainer",navigationBar:"onfido-sdk-ui-Theme-navigationBar",scrollableContent:"onfido-sdk-ui-Theme-scrollableContent",fullScreenContentWrapper:"onfido-sdk-ui-Theme-fullScreenContentWrapper",actionsContainer:"onfido-sdk-ui-Theme-actionsContainer",footer:"onfido-sdk-ui-Theme-footer",logo:"onfido-sdk-ui-Theme-logo",cobrandFooter:"onfido-sdk-ui-Theme-cobrandFooter",logoCobrandImage:"onfido-sdk-ui-Theme-logoCobrandImage",cobrandLabel:"onfido-sdk-ui-Theme-cobrandLabel",cobrandText:"onfido-sdk-ui-Theme-cobrandText",poweredBy:"onfido-sdk-ui-Theme-poweredBy",onfidoCobrandLogo:"onfido-sdk-ui-Theme-onfidoCobrandLogo",defaultLogo:"onfido-sdk-ui-Theme-defaultLogo",noLogo:"onfido-sdk-ui-Theme-noLogo",center:"onfido-sdk-ui-Theme-center",alignTextLeft:"onfido-sdk-ui-Theme-alignTextLeft",iconContainer:"onfido-sdk-ui-Theme-iconContainer",icon:"onfido-sdk-ui-Theme-icon",help:"onfido-sdk-ui-Theme-help",helpList:"onfido-sdk-ui-Theme-helpList",link:"onfido-sdk-ui-Theme-link",textButton:"onfido-sdk-ui-Theme-textButton",warningFallbackButton:"onfido-sdk-ui-Theme-warningFallbackButton",errorFallbackButton:"onfido-sdk-ui-Theme-errorFallbackButton",error:"onfido-sdk-ui-Theme-error","button-centered":"onfido-sdk-ui-Theme-button-centered","button-lg":"onfido-sdk-ui-Theme-button-lg","button-sm":"onfido-sdk-ui-Theme-button-sm",vertical:"onfido-sdk-ui-Theme-vertical",portal:"onfido-sdk-ui-Theme-portal",modalBody:"onfido-sdk-ui-Theme-modalBody",modalOverlay:"onfido-sdk-ui-Theme-modalOverlay","modalOverlay--after-open":"onfido-sdk-ui-Theme-modalOverlay--after-open","modalOverlay--before-close":"onfido-sdk-ui-Theme-modalOverlay--before-close",modalInner:"onfido-sdk-ui-Theme-modalInner"}},function(e,n,t){e.exports=t(312)},function(e,n,t){var r;!function(){"use strict";var t={}.hasOwnProperty;function o(){for(var e=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var u in r)t.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(n,[]))||(e.exports=r)}()},function(e,n,t){var r=t(533),o=t(394);function a(n){return e.exports=a=o?r:function(e){return e.__proto__||r(e)},a(n)}e.exports=a},function(e,n,t){"use strict";t.d(n,"a",(function(){return J})),t.d(n,"c",(function(){return $})),t.d(n,"b",(function(){return ee}));var r=t(23),o=t.n(r),a=t(284),i=t.n(a),u=t(0),l=t(4),s=t(21),c=t(24),d=t.n(c),_=t(26),f=t.n(_),p=t(12),m=t.n(p),y=t(10),h=t.n(y),v=t(13),g=t.n(v),b=t(14),k=t.n(b),D=t(15),S=t.n(D),C=t(58),A=t.n(C),w=t(11),O=t.n(w),E=t(108),U=t.n(E),I=t(1),N=t.n(I),L=t(354),x=t.n(L),T=t(355),R=t(356),P=t(357),q=t(358),M=t(359),j=t(360),B=t(361),F=t(59);function G(e,n){var t=S()(e);if(k.a){var r=k()(e);n&&(r=O()(r).call(r,(function(n){return g()(e,n).enumerable}))),t.push.apply(t,r)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t,r=null!=arguments[n]?arguments[n]:{};if(n%2)h()(t=G(Object(r),!0)).call(t,(function(n){N()(e,n,r[n])}));else if(m.a)f()(e,m()(r));else{var o;h()(o=G(Object(r))).call(o,(function(n){d()(e,n,g()(r,n))}))}}return e}var V=z(z({},{en:T,es:R,de:P,fr:q,it:M,pt:j,nl:B}),{},{en_US:T,es_ES:R,de_DE:P,fr_FR:q,it_IT:M,pt_PT:j,nl_NL:B}),H=function(){var e={};for(var n in V)({}).hasOwnProperty.call(V,n)&&(e[n]=V[n].mobilePhrases);return e}(),W=function(e,n,t,r){return n.locale(e),n.extend(t),s.k||n.extend(r),n},K=function(e,n){var t=e.phrases,r=e.mobilePhrases,o=S()(n.phrases),a=z(z({},t.mobilePhrases),r);!function(e,n,t){var r,o=new U.a(n),a=O()(e).call(e,(function(e){return!o.has(e)})),i=A()(r=S()(V)).call(r,(function(e){return e===t}));a.length&&!i&&console.warn("Missing keys:",a)}(o,function(e){return S()(new x.a({phrases:e}).phrases)}(z(z({},t),{},{mobilePhrases:a})),null==e?void 0:e.locale)},X=function(e,n){if(V[e])return W(e,n,V[e],H[e]);console.warn("Locale not supported")},Y=function(e,n){return"string"==typeof e?X(e,n):function(e,n){var t=e.locale,r=e.phrases,o=e.mobilePhrases;K(e,n);var a=X(t,n)||n;return W(t,a,r,o)}(e,n)},Q=Object(F.c)((function(e){var n=function(){var e=new x.a({onMissingKey:function(){return null}});return W("en_US",e,V.en_US,H.en_US)}();return e&&Y(e,n)||n})),Z=Object(u.createContext)(void 0),J=function(e){var n,t=e.language,r=e.children,o=Q(t),a=i()(n=o.t).call(n,o);return Object(u.h)(Z.Provider,{value:{language:o.currentLocale,translate:a,parseTranslatedTags:function(e,n){return Object(s.n)(a(e),n)}}},r)},$=function(){var e=Object(l.useContext)(Z);if(!e)throw new Error("LocaleContext hasn't been initialized!");return e},ee=function(e){return function(n){return Object(u.h)(Z.Consumer,null,(function(t){if(null==t)throw new Error("LocaleContext hasn't been initialized!");return Object(u.h)(e,o()({},n,t))}))}}},function(e,n,t){e.exports=t(188)},function(e,n,t){e.exports=t(233)},function(e,n,t){e.exports=t(217)},function(e,n,t){e.exports=t(231)},function(e,n,t){e.exports=t(236)},function(e,n,t){e.exports=t(238)},function(e,n){e.exports=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}},function(e,n,t){var r=t(499),o=t(503);e.exports=function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=r(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&o(e,n)}},function(e,n,t){"use strict";var r=t(31),o=t(71).f,a=t(148),i=t(27),u=t(72),l=t(42),s=t(36),c=function(e){var n=function(n,t,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,t)}return new e(n,t,r)}return e.apply(this,arguments)};return n.prototype=e.prototype,n};e.exports=function(e,n){var t,d,_,f,p,m,y,h,v=e.target,g=e.global,b=e.stat,k=e.proto,D=g?r:b?r[v]:(r[v]||{}).prototype,S=g?i:i[v]||(i[v]={}),C=S.prototype;for(_ in n)t=!a(g?_:v+(b?".":"#")+_,e.forced)&&D&&s(D,_),p=S[_],t&&(m=e.noTargetGet?(h=o(D,_))&&h.value:D[_]),f=t&&m?m:n[_],t&&typeof p==typeof f||(y=e.bind&&t?u(f,r):e.wrap&&t?c(f):k&&"function"==typeof f?u(Function.call,f):f,(e.sham||f&&f.sham||p&&p.sham)&&l(y,"sham",!0),S[_]=y,k&&(s(i,d=v+"Prototype")||l(i,d,{}),i[d][_]=f,e.real&&C&&!C[_]&&l(C,_,f)))}},function(e,n,t){var r=t(166),o=t(2);e.exports=function(e,n){return!n||"object"!==r(n)&&"function"!=typeof n?o(e):n}},function(e,n,t){var r=t(193);function o(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(e,o.key,o)}}e.exports=function(e,n,t){return n&&o(e.prototype,n),t&&o(e,t),e}},function(e,n,t){"use strict";t.d(n,"i",(function(){return Q})),t.d(n,"o",(function(){return Z})),t.d(n,"m",(function(){return $})),t.d(n,"j",(function(){return ee})),t.d(n,"k",(function(){return ne})),t.d(n,"l",(function(){return ae})),t.d(n,"d",(function(){return ce})),t.d(n,"e",(function(){return de})),t.d(n,"n",(function(){return _e})),t.d(n,"h",(function(){return fe})),t.d(n,"g",(function(){return pe})),t.d(n,"f",(function(){return me})),t.d(n,"a",(function(){return ye})),t.d(n,"p",(function(){return he})),t.d(n,"c",(function(){return ve})),t.d(n,"b",(function(){return ge}));var r,o=t(24),a=t.n(o),i=t(26),u=t.n(i),l=t(12),s=t.n(l),c=t(10),d=t.n(c),_=t(13),f=t.n(_),p=t(14),m=t.n(p),y=t(15),h=t.n(y),v=t(101),g=t.n(v),b=t(1),k=t.n(b),D=t(302),S=t.n(D),C=t(25),A=t.n(C),w=t(423),O=t.n(w),E=t(11),U=t.n(E),I=t(58),N=t.n(I),L=t(303),x=t.n(L),T=t(43),R=t.n(T),P=t(167),q=t.n(P),M=t(206),j=t.n(M),B=t(6),F=t.n(B),G=t(22),z=t.n(G),V=t(424),H=t.n(V),W=t(144);function K(e,n){var t=h()(e);if(m.a){var r=m()(e);n&&(r=U()(r).call(r,(function(n){return f()(e,n).enumerable}))),t.push.apply(t,r)}return t}function X(e){for(var n=1;n<arguments.length;n++){var t,r=null!=arguments[n]?arguments[n]:{};if(n%2)d()(t=K(Object(r),!0)).call(t,(function(n){k()(e,n,r[n])}));else if(s.a)u()(e,s()(r));else{var o;d()(o=K(Object(r))).call(o,(function(n){a()(e,n,f()(r,n))}))}}return e}var Y=t(559),Q=function(e){return function(e,n){var t,r,o=Y(n),a=z()(o,2),i=a[0],u=a[1];u!==e&&console.warn(F()(t=F()(r="The css @value: ".concat(n," unit is ")).call(r,u," but it should be ")).call(t,e));return i}("ms",e)},Z=function(e){return function(n){n.preventDefault(),e()}},J=(/iPad|iPhone|iPod/.test(navigator.platform||"")||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream,$=function(){var e,n=navigator.userAgent,t=/Safari/.test(n)&&/Apple Computer/.test(navigator.vendor),r=j()(e=n.substring(q()(n).call(n,"Version/"),q()(n).call(n,"Safari/"))).call(e);return t&&R()(r).call(r,"13.1")},ee=function(){console.warn("getMobileOSName - use of navigator.userAgent is highly discouraged unless absolutely necessary and only for simple use cases");var e=navigator.userAgent;return/android/i.test(e)?"UNSUPPORTED_ANDROID_BROWSER":J?"UNSUPPORTED_IOS_BROWSER":(console.error("Unable to determine mobile OS"),"INTERRUPTED_FLOW_ERROR")},ne=!/Android|webOS|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(navigator.userAgent||"")&&!J,te=R()(r=navigator.userAgent||"").call(r,"Windows"),re=navigator.maxTouchPoints||navigator.msMaxTouchPoints,oe="ontouchstart"in window||re>0||"function"==typeof window.matchMedia&&matchMedia("(any-pointer: coarse)").matches,ae=te&&oe,ie=function(e){return function(n){return function(e,n){try{H()().then(e).catch(n)}catch(e){n(e)}}((function(t){return n(e(t))}),(function(){return n(!1)}))}},ue=function(e){var n=e.kind,t=void 0===n?"":n;return R()(t).call(t,"input")},le=function(e){var n=e.kind,t=void 0===n?"":n;return R()(t).call(t,"video")},se=function(e){return!!e.label},ce=ie((function(e){return $()?x()(e).call(e,ue):N()(e).call(e,le)})),de=ie((function(e){var n;return N()(n=U()(e).call(e,ue)).call(n,se)})),_e=function(e,n){var t,r=(new DOMParser).parseFromString("<l>".concat(e,"</l>"),"application/xml"),o=O()((null===(t=r.firstChild)||void 0===t?void 0:t.childNodes)||[]);return A()(o).call(o,(function(e){var t=e.textContent||"";return e.nodeType===document.TEXT_NODE?t:n({type:e.tagName,text:t})}))},fe=function(){return Math.floor(S()()/1e3)},pe=function(){return(new Date).getTime()},me=function(e,n){var t=document.createElement("input");document.body.appendChild(t),t.setAttribute("value",e),t.select(),document.execCommand("copy"),document.body.removeChild(t),n()},ye=function(e,n){var t=Object(W.a)("os"),r=Object(W.a)("browser"),o=X(X({},t&&{os:t.name,os_version:t.version}),r&&{browser:r.name,browser_version:r.version});return X(X({},e),{},{isCrossDeviceFlow:n,deviceType:ne?"desktop":"mobile",system:o})},he=function(){var e=Object(W.a)("os"),n=Object(W.a)("browser");return X(X(X({},e&&{os:e.name,os_version:e.version}),n&&{browser:n.name,browser_version:n.version}),{},{device:ne?"desktop":"mobile"})},ve=function(e){return e?e.charAt(0).toUpperCase()+g()(e).call(e,1):e},ge=function(e){return btoa(unescape(encodeURIComponent(e)))}},function(e,n,t){var r=t(261),o=t(262),a=t(265);e.exports=function(e,n){return r(e)||o(e,n)||a()}},function(e,n,t){var r=t(339);function o(){return e.exports=o=r||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o.apply(this,arguments)}e.exports=o},function(e,n,t){e.exports=t(212)},function(e,n,t){e.exports=t(240)},function(e,n,t){e.exports=t(214)},function(e,n){e.exports={}},function(e,n,t){var r=t(31),o=t(116),a=t(36),i=t(106),u=t(117),l=t(156),s=o("wks"),c=r.Symbol,d=l?c:c&&c.withoutSetter||i;e.exports=function(e){return a(s,e)||(u&&a(c,e)?s[e]=c[e]:s[e]=d("Symbol."+e)),s[e]}},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return a})),t.d(n,"e",(function(){return i})),t.d(n,"c",(function(){return u})),t.d(n,"d",(function(){return l}));var r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function o(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var a=function(){return(a=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function i(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,a=t.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}function l(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(u(arguments[n]));return e}},function(e,n,t){(function(n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof n&&n)||Function("return this")()}).call(this,t(123))},function(e,n,t){var r=t(29);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,n,t){e.exports={modal_animation_duration:"200ms",passportButtonShadow:"onfido-sdk-ui-Uploader-passportButtonShadow",faceIcon:"onfido-sdk-ui-Uploader-faceIcon",proofOfAddressIcon:"onfido-sdk-ui-Uploader-proofOfAddressIcon",identityIcon:"onfido-sdk-ui-Uploader-identityIcon",icon:"onfido-sdk-ui-Uploader-icon",container:"onfido-sdk-ui-Uploader-container",crossDeviceInstructionsContainer:"onfido-sdk-ui-Uploader-crossDeviceInstructionsContainer",instructions:"onfido-sdk-ui-Uploader-instructions",instructionsCopy:"onfido-sdk-ui-Uploader-instructionsCopy",error:"onfido-sdk-ui-Uploader-error",buttons:"onfido-sdk-ui-Uploader-buttons",vertical:"onfido-sdk-ui-Uploader-vertical",poaButtons:"onfido-sdk-ui-Uploader-poaButtons",buttonContainer:"onfido-sdk-ui-Uploader-buttonContainer",poaBtn:"onfido-sdk-ui-Uploader-poaBtn",crossDeviceButton:"onfido-sdk-ui-Uploader-crossDeviceButton",iconContainer:"onfido-sdk-ui-Uploader-iconContainer",poaIconContainer:"onfido-sdk-ui-Uploader-poaIconContainer",contentWrapper:"onfido-sdk-ui-Uploader-contentWrapper",uploaderWrapper:"onfido-sdk-ui-Uploader-uploaderWrapper",uploadArea:"onfido-sdk-ui-Uploader-uploadArea",imageQualityGuideRow:"onfido-sdk-ui-Uploader-imageQualityGuideRow",documentExampleCol:"onfido-sdk-ui-Uploader-documentExampleCol",documentExampleImg:"onfido-sdk-ui-Uploader-documentExampleImg",documentExampleImgBlur:"onfido-sdk-ui-Uploader-documentExampleImgBlur",documentExampleImgCutoff:"onfido-sdk-ui-Uploader-documentExampleImgCutoff",documentExampleImgGlare:"onfido-sdk-ui-Uploader-documentExampleImgGlare",documentExampleImgGood:"onfido-sdk-ui-Uploader-documentExampleImgGood",documentExampleLabel:"onfido-sdk-ui-Uploader-documentExampleLabel",passportUploadBtn:"onfido-sdk-ui-Uploader-passportUploadBtn",buttonLinkUploadCopy:"onfido-sdk-ui-Uploader-buttonLinkUploadCopy"}},function(e,n,t){"use strict";t.d(n,"k",(function(){return m})),t.d(n,"i",(function(){return y})),t.d(n,"d",(function(){return h})),t.d(n,"g",(function(){return v})),t.d(n,"j",(function(){return g})),t.d(n,"f",(function(){return b})),t.d(n,"h",(function(){return k})),t.d(n,"a",(function(){return D})),t.d(n,"b",(function(){return S})),t.d(n,"c",(function(){return C})),t.d(n,"e",(function(){return A}));var r,o,a,i=t(0),u=0,l=[],s=i.options.__b,c=i.options.__r,d=i.options.diffed,_=i.options.__c,f=i.options.unmount;function p(e,n){i.options.__h&&i.options.__h(o,e,u||n),u=0;var t=o.__H||(o.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function m(e){return u=1,y(N,e)}function y(e,n,t){var a=p(r++,2);return a.t=e,a.__c||(a.__=[t?t(n):N(void 0,n),function(e){var n=a.t(a.__[0],e);a.__[0]!==n&&(a.__=[n,a.__[1]],a.__c.setState({}))}],a.__c=o),a.__}function h(e,n){var t=p(r++,3);!i.options.__s&&I(t.__H,n)&&(t.__=e,t.__H=n,o.__H.__h.push(t))}function v(e,n){var t=p(r++,4);!i.options.__s&&I(t.__H,n)&&(t.__=e,t.__H=n,o.__h.push(t))}function g(e){return u=5,k((function(){return{current:e}}),[])}function b(e,n,t){u=6,v((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))}function k(e,n){var t=p(r++,7);return I(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function D(e,n){return u=8,k((function(){return e}),n)}function S(e){var n=o.context[e.__c],t=p(r++,9);return t.__c=e,n?(null==t.__&&(t.__=!0,n.sub(o)),n.props.value):e.__}function C(e,n){i.options.useDebugValue&&i.options.useDebugValue(n?n(e):e)}function A(e){var n=p(r++,10),t=m();return n.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){n.__&&n.__(e),t[1](e)}),[t[0],function(){t[1](void 0)}]}function w(){l.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(E),e.__H.__h.forEach(U),e.__H.__h=[]}catch(n){e.__H.__h=[],i.options.__e(n,e.__v)}})),l=[]}i.options.__b=function(e){o=null,s&&s(e)},i.options.__r=function(e){c&&c(e),r=0;var n=(o=e.__c).__H;n&&(n.__h.forEach(E),n.__h.forEach(U),n.__h=[])},i.options.diffed=function(e){d&&d(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==l.push(n)&&a===i.options.requestAnimationFrame||((a=i.options.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),O&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);O&&(n=requestAnimationFrame(t))})(w)),o=void 0},i.options.__c=function(e,n){n.some((function(e){try{e.__h.forEach(E),e.__h=e.__h.filter((function(e){return!e.__||U(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],i.options.__e(t,e.__v)}})),_&&_(e,n)},i.options.unmount=function(e){f&&f(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(E)}catch(e){i.options.__e(e,n.__v)}};var O="function"==typeof requestAnimationFrame;function E(e){var n=o;"function"==typeof e.__c&&e.__c(),o=n}function U(e){var n=o;e.__c=e.__(),o=n}function I(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function N(e,n){return"function"==typeof n?n(e):n}},function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,n,t){var r=t(35);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,n,t){e.exports=t(249)},function(e,n,t){var r=t(27);e.exports=function(e){return r[e+"Prototype"]}},function(e,n,t){var r=t(96),o=t(97);e.exports=function(e){return r(o(e))}},function(e,n,t){var r=t(328),o=t(329),a=t(334);e.exports=function(e){return r(e)||o(e)||a()}},function(e,n,t){var r=t(32),o=t(44),a=t(67);e.exports=r?function(e,n,t){return o.f(e,n,a(1,t))}:function(e,n,t){return e[n]=t,e}},function(e,n,t){e.exports=t(441)},function(e,n,t){var r=t(32),o=t(147),a=t(37),i=t(87),u=Object.defineProperty;n.f=r?u:function(e,n,t){if(a(e),n=i(n,!0),a(t),o)try{return u(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},function(e,n,t){var r=t(27),o=t(31),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,n){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][n]||o[e]&&o[e][n]}},function(e,n,t){var r=t(32),o=t(29),a=t(36),i=Object.defineProperty,u={},l=function(e){throw e};e.exports=function(e,n){if(a(u,e))return u[e];n||(n={});var t=[][e],s=!!a(n,"ACCESSORS")&&n.ACCESSORS,c=a(n,0)?n[0]:l,d=a(n,1)?n[1]:void 0;return u[e]=!!t&&!o((function(){if(s&&!r)return!0;var e={length:-1};s?i(e,1,{enumerable:!0,get:l}):e[1]=1,t.call(e,c,d)}))}},function(e,n,t){e.exports={modal_animation_duration:"200ms",container:"onfido-sdk-ui-crossDevice-CrossDeviceLink-container",secureLinkView:"onfido-sdk-ui-crossDevice-CrossDeviceLink-secureLinkView",selectedLinkView:"onfido-sdk-ui-crossDevice-CrossDeviceLink-selectedLinkView",qrCodeSection:"onfido-sdk-ui-crossDevice-CrossDeviceLink-qrCodeSection",qrCodeContainer:"onfido-sdk-ui-crossDevice-CrossDeviceLink-qrCodeContainer",smsSection:"onfido-sdk-ui-crossDevice-CrossDeviceLink-smsSection",label:"onfido-sdk-ui-crossDevice-CrossDeviceLink-label",numberInputSection:"onfido-sdk-ui-crossDevice-CrossDeviceLink-numberInputSection",inputContainer:"onfido-sdk-ui-crossDevice-CrossDeviceLink-inputContainer",linkText:"onfido-sdk-ui-crossDevice-CrossDeviceLink-linkText",fieldError:"onfido-sdk-ui-crossDevice-CrossDeviceLink-fieldError",numberError:"onfido-sdk-ui-crossDevice-CrossDeviceLink-numberError",sending:"onfido-sdk-ui-crossDevice-CrossDeviceLink-sending",spin:"onfido-sdk-ui-crossDevice-CrossDeviceLink-spin",copyLinkSection:"onfido-sdk-ui-crossDevice-CrossDeviceLink-copyLinkSection",linkContainer:"onfido-sdk-ui-crossDevice-CrossDeviceLink-linkContainer",copySuccess:"onfido-sdk-ui-crossDevice-CrossDeviceLink-copySuccess",actionContainer:"onfido-sdk-ui-crossDevice-CrossDeviceLink-actionContainer",copyToClipboard:"onfido-sdk-ui-crossDevice-CrossDeviceLink-copyToClipboard",divider:"onfido-sdk-ui-crossDevice-CrossDeviceLink-divider",btn:"onfido-sdk-ui-crossDevice-CrossDeviceLink-btn",styledLabel:"onfido-sdk-ui-crossDevice-CrossDeviceLink-styledLabel",viewOptionsGroup:"onfido-sdk-ui-crossDevice-CrossDeviceLink-viewOptionsGroup",viewOption:"onfido-sdk-ui-crossDevice-CrossDeviceLink-viewOption",copyLinkOption:"onfido-sdk-ui-crossDevice-CrossDeviceLink-copyLinkOption",qrCodeLinkOption:"onfido-sdk-ui-crossDevice-CrossDeviceLink-qrCodeLinkOption",smsLinkOption:"onfido-sdk-ui-crossDevice-CrossDeviceLink-smsLinkOption"}},function(e,n,t){var r=t(97);e.exports=function(e){return Object(r(e))}},function(e,n,t){var r=t(245),o=t(294),a=t(318);e.exports=function(e,n){if(null==e)return{};var t,i,u=a(e,n);if(o){var l=o(e);for(i=0;i<l.length;i++)t=l[i],r(n).call(n,t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(u[t]=e[t])}return u}},function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,n,t){"use strict";function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}t.d(n,"a",(function(){return r}))},,function(e,n,t){"use strict";(function(e,r){t.d(n,"d",(function(){return a})),t.d(n,"h",(function(){return i})),t.d(n,"f",(function(){return l})),t.d(n,"k",(function(){return s})),t.d(n,"c",(function(){return c})),t.d(n,"b",(function(){return d})),t.d(n,"a",(function(){return _})),t.d(n,"g",(function(){return f})),t.d(n,"j",(function(){return g})),t.d(n,"i",(function(){return b})),t.d(n,"e",(function(){return k}));var o=t(78);t(185);function a(e,n){return e.require(n)}function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var u={};function l(){return i()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:u}function s(){var e=l(),n=e.crypto||e.msCrypto;if(void 0!==n&&n.getRandomValues){var t=new Uint16Array(8);n.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var r=function(e){for(var n=e.toString(16);n.length<4;)n="0"+n;return n};return r(t[0])+r(t[1])+r(t[2])+r(t[3])+r(t[4])+r(t[5])+r(t[6])+r(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)}))}function c(e){var n=l();if(!("console"in n))return e();var t=n.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in n.console&&t[e].__sentry_original__&&(r[e]=t[e],t[e]=t[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){t[e]=r[e]})),o}function d(e,n,t){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||n||"",e.exception.values[0].type=e.exception.values[0].type||t||"Error"}function _(e,n){void 0===n&&(n={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(n).forEach((function(t){e.exception.values[0].mechanism[t]=n[t]}))}catch(e){}}function f(e){try{for(var n=e,t=[],r=0,o=0,a=" > ".length,i=void 0;n&&r++<5&&!("html"===(i=p(n))||r>1&&o+t.length*a+i.length>=80);)t.push(i),o+=i.length,n=n.parentNode;return t.reverse().join(" > ")}catch(e){return"<unknown>"}}function p(e){var n,t,r,a,i,u=e,l=[];if(!u||!u.tagName)return"";if(l.push(u.tagName.toLowerCase()),u.id&&l.push("#"+u.id),(n=u.className)&&Object(o.k)(n))for(t=n.split(/\s+/),i=0;i<t.length;i++)l.push("."+t[i]);var s=["type","name","title","alt"];for(i=0;i<s.length;i++)r=s[i],(a=u.getAttribute(r))&&l.push("["+r+'="'+a+'"]');return l.join("")}var m=Date.now(),y=0,h={now:function(){var e=Date.now()-m;return e<y&&(e=y),y=e,e},timeOrigin:m},v=function(){if(i())try{return a(r,"perf_hooks").performance}catch(e){return h}r