onfido-sdk-ui
Version:
JavaScript SDK view layer for Onfido identity verification
2 lines • 83.2 kB
JavaScript
/* OnfidoAuth SDK 6.10.0 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OnfidoAuth=e():t.OnfidoAuth=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="https://assets.onfido.com/web-sdk-releases/6.10.0/",n(n.s=637)}([function(t,e,n){"use strict";n.r(e),n.d(e,"render",(function(){return I})),n.d(e,"hydrate",(function(){return F})),n.d(e,"createElement",(function(){return _})),n.d(e,"h",(function(){return _})),n.d(e,"Fragment",(function(){return y})),n.d(e,"createRef",(function(){return h})),n.d(e,"isValidElement",(function(){return o})),n.d(e,"Component",(function(){return m})),n.d(e,"cloneElement",(function(){return R})),n.d(e,"createContext",(function(){return U})),n.d(e,"toChildArray",(function(){return j})),n.d(e,"options",(function(){return r}));var r,o,i,u,c,a,f={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n){var r,o,i,u=arguments,c={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(u[i]);if(null!=n&&(c.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===c[i]&&(c[i]=t.defaultProps[i]);return v(t,c,r,o,null)}function v(t,e,n,o,i){var u={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(u),u}function h(){return{current:null}}function y(t){return t.children}function m(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?b(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function x(t){(!t.__d&&(t.__d=!0)&&i.push(t)&&!O.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||u)(O)}function O(){for(var t;O.__r=i.length;)t=i.sort((function(t,e){return t.__v.__b-e.__v.__b})),i=[],t.some((function(t){var e,n,r,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,N(u,o,r,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&g(o)))}))}function w(t,e,n,r,o,i,u,c,a,l){var p,d,_,h,m,g,x,O=r&&r.__k||s,w=O.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(h=n.__k[p]=null==(h=e[p])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?v(null,h,null,null,h):Array.isArray(h)?v(y,{children:h},null,null,null):h.__b>0?v(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(_=O[p])||_&&h.key==_.key&&h.type===_.type)O[p]=void 0;else for(d=0;d<w;d++){if((_=O[d])&&h.key==_.key&&h.type===_.type){O[d]=void 0;break}_=null}N(t,h,_=_||f,o,i,u,c,a,l),m=h.__e,(d=h.ref)&&_.ref!=d&&(x||(x=[]),_.ref&&x.push(_.ref,null,h),x.push(d,h.__c||m,h)),null!=m?(null==g&&(g=m),"function"==typeof h.type&&null!=h.__k&&h.__k===_.__k?h.__d=a=S(h,a,t):a=k(t,h,_,O,m,a),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):t.value=""):a&&_.__e==a&&a.parentNode!=t&&(a=b(_))}for(n.__e=g,p=w;p--;)null!=O[p]&&("function"==typeof n.type&&null!=O[p].__e&&O[p].__e==n.__d&&(n.__d=b(r,p+1)),B(O[p],O[p]));if(x)for(p=0;p<x.length;p++)M(x[p],x[++p],x[++p])}function S(t,e,n){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,e="function"==typeof o.type?S(o,e,n):k(n,o,o,t.__k,o.__e,e));return e}function j(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){j(t,e)})):e.push(t)),e}function k(t,e,n,r,o,i){var u,c,a;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(c=i,a=0;(c=c.nextSibling)&&a<r.length;a+=2)if(c==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function C(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||l.test(e)?n:n+"px"}function P(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||C(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||C(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?A:E,i):t.removeEventListener(e,i?A:E,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function E(t){this.l[t.type+!1](r.event?r.event(t):t)}function A(t){this.l[t.type+!0](r.event?r.event(t):t)}function N(t,e,n,o,i,u,c,a,f){var s,l,d,_,v,h,b,g,x,O,S,j=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(f=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(s=r.__b)&&s(e);try{t:if("function"==typeof j){if(g=e.props,x=(s=j.contextType)&&o[s.__c],O=s?x?x.props.value:s.__:o,n.__c?b=(l=e.__c=n.__c).__=l.__E:("prototype"in j&&j.prototype.render?e.__c=l=new j(g,O):(e.__c=l=new m(g,O),l.constructor=j,l.render=L),x&&x.sub(l),l.props=g,l.state||(l.state={}),l.context=O,l.__n=o,d=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=j.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=p({},l.__s)),p(l.__s,j.getDerivedStateFromProps(g,l.__s))),_=l.props,v=l.state,d)null==j.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==j.getDerivedStateFromProps&&g!==_&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,O),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,O)||e.__v===n.__v){l.props=g,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),l.__h.length&&c.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,O),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(_,v,h)}))}l.context=O,l.props=g,l.state=l.__s,(s=r.__r)&&s(e),l.__d=!1,l.__v=e,l.__P=t,s=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(o=p(p({},o),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(_,v)),S=null!=s&&s.type===y&&null==s.key?s.props.children:s,w(t,Array.isArray(S)?S:[S],e,n,o,i,u,c,a,f),l.base=e.__e,e.__h=null,l.__h.length&&c.push(l),b&&(l.__E=l.__=null),l.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=D(n.__e,e,n,o,i,u,c,f);(s=r.diffed)&&s(e)}catch(t){e.__v=null,(f||null!=u)&&(e.__e=a,e.__h=!!f,u[u.indexOf(a)]=null),r.__e(t,e,n)}}function T(t,e){r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function D(t,e,n,r,o,i,u,c){var a,l,p,_,v=n.props,h=e.props,y=e.type,m=0;if("svg"===y&&(o=!0),null!=i)for(;m<i.length;m++)if((a=i[m])&&(a===t||(y?a.localName==y:3==a.nodeType))){t=a,i[m]=null;break}if(null==t){if(null===y)return document.createTextNode(h);t=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,h.is&&h),i=null,c=!1}if(null===y)v===h||c&&t.data===h||(t.data=h);else{if(i=i&&s.slice.call(t.childNodes),l=(v=n.props||f).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!c){if(null!=i)for(v={},_=0;_<t.attributes.length;_++)v[t.attributes[_].name]=t.attributes[_].value;(p||l)&&(p&&(l&&p.__html==l.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||P(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||P(t,i,e[i],n[i],r)}(t,h,v,o,c),p)e.__k=[];else if(m=e.props.children,w(t,Array.isArray(m)?m:[m],e,n,r,o&&"foreignObject"!==y,i,u,t.firstChild,c),null!=i)for(m=i.length;m--;)null!=i[m]&&d(i[m]);c||("value"in h&&void 0!==(m=h.value)&&(m!==t.value||"progress"===y&&!m)&&P(t,"value",m,v.value,!1),"checked"in h&&void 0!==(m=h.checked)&&m!==t.checked&&P(t,"checked",m,v.checked,!1))}return t}function M(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function B(t,e,n){var o,i,u;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||M(o,null,e)),n||"function"==typeof t.type||(n=null!=(i=t.__e)),t.__e=t.__d=void 0,null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(u=0;u<o.length;u++)o[u]&&B(o[u],e,n);null!=i&&d(i)}function L(t,e,n){return this.constructor(t,n)}function I(t,e,n){var o,i,u;r.__&&r.__(t,e),i=(o="function"==typeof n)?null:n&&n.__k||e.__k,u=[],N(e,t=(!o&&n||e).__k=_(y,null,[t]),i||f,f,void 0!==e.ownerSVGElement,!o&&n?[n]:i?null:e.firstChild?s.slice.call(e.childNodes):null,u,!o&&n?n:i?i.__e:e.firstChild,o),T(u,t)}function F(t,e){I(t,e,F)}function R(t,e,n){var r,o,i,u=arguments,c=p({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(u[i]);return null!=n&&(c.children=n),v(t.type,c,r||t.key,o||t.ref,null)}function U(t,e){var n={__c:e="__cC"+a++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(x)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t},__v:0},o=function(t){return null!=t&&void 0===t.constructor},m.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},m.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},m.prototype.render=y,i=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0,a=0},function(t,e,n){var r=n(181);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},,,,function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return G})),n.d(e,"Children",(function(){return d})),n.d(e,"render",(function(){return C})),n.d(e,"hydrate",(function(){return P})),n.d(e,"unmountComponentAtNode",(function(){return $})),n.d(e,"createPortal",(function(){return w})),n.d(e,"createFactory",(function(){return q})),n.d(e,"cloneElement",(function(){return Y})),n.d(e,"isValidElement",(function(){return K})),n.d(e,"findDOMNode",(function(){return J})),n.d(e,"PureComponent",(function(){return c})),n.d(e,"memo",(function(){return a})),n.d(e,"forwardRef",(function(){return l})),n.d(e,"unstable_batchedUpdates",(function(){return X})),n.d(e,"StrictMode",(function(){return Z})),n.d(e,"Suspense",(function(){return h})),n.d(e,"SuspenseList",(function(){return b})),n.d(e,"lazy",(function(){return m})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return I})),n.d(e,"unstable_ImmediatePriority",(function(){return F})),n.d(e,"unstable_UserBlockingPriority",(function(){return R})),n.d(e,"unstable_NormalPriority",(function(){return U})),n.d(e,"unstable_LowPriority",(function(){return W})),n.d(e,"unstable_IdlePriority",(function(){return H})),n.d(e,"unstable_runWithPriority",(function(){return V})),n.d(e,"unstable_now",(function(){return z}));var r=n(33);n.d(e,"useState",(function(){return r.k})),n.d(e,"useReducer",(function(){return r.i})),n.d(e,"useEffect",(function(){return r.d})),n.d(e,"useLayoutEffect",(function(){return r.g})),n.d(e,"useRef",(function(){return r.j})),n.d(e,"useImperativeHandle",(function(){return r.f})),n.d(e,"useMemo",(function(){return r.h})),n.d(e,"useCallback",(function(){return r.a})),n.d(e,"useContext",(function(){return r.b})),n.d(e,"useDebugValue",(function(){return r.c})),n.d(e,"useErrorBoundary",(function(){return r.e}));var o=n(0);function i(t,e){for(var n in e)t[n]=e[n];return t}function u(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function c(t){this.props=t}function a(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:u(this.props,t)}function r(e){return this.shouldComponentUpdate=n,Object(o.createElement)(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}n.d(e,"createElement",(function(){return o.createElement})),n.d(e,"createContext",(function(){return o.createContext})),n.d(e,"createRef",(function(){return o.createRef})),n.d(e,"Fragment",(function(){return o.Fragment})),n.d(e,"Component",(function(){return o.Component})),(c.prototype=new o.Component).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(t,e){return u(this.props,t)||u(this.state,e)};var f=o.options.__b;o.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),f&&f(t)};var s="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function l(t){function e(e,n){var r=i({},e);return delete r.ref,t(r,(n=e.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return e.$$typeof=s,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var p=function(t,e){return null==t?null:Object(o.toChildArray)(Object(o.toChildArray)(t).map(e))},d={map:p,forEach:p,count:function(t){return t?Object(o.toChildArray)(t).length:0},only:function(t){var e=Object(o.toChildArray)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:o.toChildArray},_=o.options.__e;o.options.__e=function(t,e,n){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);_(t,e,n)};var v=o.options.unmount;function h(){this.__u=0,this.t=null,this.__b=null}function y(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function m(t){var e,n,r;function i(i){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return Object(o.createElement)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function b(){this.u=null,this.o=null}o.options.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),v&&v(t)},(h.prototype=new o.Component).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=y(r.__v),i=!1,u=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=u;var c=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},a=!0===e.__h;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(u,u)},h.prototype.componentWillUnmount=function(){this.t=[]},h.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=i({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var u=e.__e&&Object(o.createElement)(o.Fragment,null,t.fallback);return u&&(u.__h=null),[Object(o.createElement)(o.Fragment,null,e.__e?null:t.children),u]};var g=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function x(t){return this.getChildContext=function(){return t.context},t.children}function O(t){var e=this,n=t.i;e.componentWillUnmount=function(){Object(o.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Object(o.render)(Object(o.createElement)(x,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function w(t,e){return Object(o.createElement)(O,{__v:t,i:e})}(b.prototype=new o.Component).__e=function(t){var e=this,n=y(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),g(e,t,r)):o()};n?n(i):i()}},b.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(o.toChildArray)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},b.prototype.componentDidUpdate=b.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){g(t,n,e)}))};var S="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,j=/^(?: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]/,k=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function C(t,e,n){return null==e.__k&&(e.textContent=""),Object(o.render)(t,e),"function"==typeof n&&n(),t?t.__c:null}function P(t,e,n){return Object(o.hydrate)(t,e),"function"==typeof n&&n(),t?t.__c:null}o.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(o.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var E=o.options.event;function A(){}function N(){return this.cancelBubble}function T(){return this.defaultPrevented}o.options.event=function(t){return E&&(t=E(t)),t.persist=A,t.isPropagationStopped=N,t.isDefaultPrevented=T,t.nativeEvent=t};var D,M={configurable:!0,get:function(){return this.class}},B=o.options.vnode;o.options.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){for(var i in r={},n){var u=n[i];"value"===i&&"defaultValue"in n&&null==u||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!k(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():j.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[i]=u)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(o.toChildArray)(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=Object(o.toChildArray)(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r}e&&n.class!=n.className&&(M.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",M)),t.$$typeof=S,B&&B(t)};var L=o.options.__r;o.options.__r=function(t){L&&L(t),D=t.__c};var I={ReactCurrentDispatcher:{current:{readContext:function(t){return D.__n[t.__c].props.value}}}},F=1,R=2,U=3,W=4,H=5;function V(t,e){return e()}var z="object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()},G="16.8.0";function q(t){return o.createElement.bind(null,t)}function K(t){return!!t&&t.$$typeof===S}function Y(t){return K(t)?o.cloneElement.apply(null,arguments):t}function $(t){return!!t.__k&&(Object(o.render)(null,t),!0)}function J(t){return t&&(t.base||1===t.nodeType&&t)||null}var X=function(t,e){return t(e)},Z=o.Fragment;e.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:d,render:C,hydrate:P,unmountComponentAtNode:$,createPortal:w,createElement:o.createElement,createContext:o.createContext,createFactory:q,cloneElement:Y,createRef:o.createRef,Fragment:o.Fragment,isValidElement:K,findDOMNode:J,Component:o.Component,PureComponent:c,memo:a,forwardRef:l,unstable_batchedUpdates:X,StrictMode:o.Fragment,Suspense:h,SuspenseList:b,lazy:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:I}},,function(t,e,n){t.exports=n(298)},,function(t,e,n){t.exports=n(211)},,function(t,e,n){t.exports=n(207)},function(t,e,n){t.exports=n(222)},function(t,e,n){t.exports=n(229)},,,function(t,e,n){t.exports=n(231)},function(t,e,n){t.exports=n(225)},function(t,e,n){"use strict";var r=n(29),o=n(71).f,i=n(138),u=n(26),c=n(72),a=n(40),f=n(36),s=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,l,p,d,_,v,h,y,m=t.target,b=t.global,g=t.stat,x=t.proto,O=b?r:g?r[m]:(r[m]||{}).prototype,w=b?u:u[m]||(u[m]={}),S=w.prototype;for(p in e)n=!i(b?p:m+(g?".":"#")+p,t.forced)&&O&&f(O,p),_=w[p],n&&(v=t.noTargetGet?(y=o(O,p))&&y.value:O[p]),d=n&&v?v:e[p],n&&typeof _==typeof d||(h=t.bind&&n?c(d,r):t.wrap&&n?s(d):x&&"function"==typeof d?c(Function.call,d):d,(t.sham||d&&d.sham||_&&_.sham)&&a(h,"sham",!0),w[p]=h,x&&(f(u,l=m+"Prototype")||a(u,l,{}),u[l][p]=d,t.real&&S&&!S[p]&&a(S,p,d)))}},,,,,function(t,e,n){t.exports=n(202)},function(t,e,n){t.exports=n(204)},function(t,e,n){var r=n(29),o=n(109),i=n(36),u=n(99),c=n(110),a=n(146),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,e){t.exports={}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(104))},function(t,e,n){t.exports=n(294)},function(t,e,n){var r=n(250),o=n(251),i=n(254);t.exports=function(t,e){return r(t)||o(t,e)||i()}},function(t,e,n){var r=n(27);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){"use strict";n.d(e,"k",(function(){return v})),n.d(e,"i",(function(){return h})),n.d(e,"d",(function(){return y})),n.d(e,"g",(function(){return m})),n.d(e,"j",(function(){return b})),n.d(e,"f",(function(){return g})),n.d(e,"h",(function(){return x})),n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return S})),n.d(e,"e",(function(){return j}));var r,o,i,u=n(0),c=0,a=[],f=u.options.__b,s=u.options.__r,l=u.options.diffed,p=u.options.__c,d=u.options.unmount;function _(t,e){u.options.__h&&u.options.__h(o,t,c||e),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function v(t){return c=1,h(N,t)}function h(t,e,n){var i=_(r++,2);return i.t=t,i.__c||(i.__=[n?n(e):N(void 0,e),function(t){var e=i.t(i.__[0],t);i.__[0]!==e&&(i.__=[e,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function y(t,e){var n=_(r++,3);!u.options.__s&&A(n.__H,e)&&(n.__=t,n.__H=e,o.__H.__h.push(n))}function m(t,e){var n=_(r++,4);!u.options.__s&&A(n.__H,e)&&(n.__=t,n.__H=e,o.__h.push(n))}function b(t){return c=5,x((function(){return{current:t}}),[])}function g(t,e,n){c=6,m((function(){"function"==typeof t?t(e()):t&&(t.current=e())}),null==n?n:n.concat(t))}function x(t,e){var n=_(r++,7);return A(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function O(t,e){return c=8,x((function(){return t}),e)}function w(t){var e=o.context[t.__c],n=_(r++,9);return n.__c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function S(t,e){u.options.useDebugValue&&u.options.useDebugValue(e?e(t):t)}function j(t){var e=_(r++,10),n=v();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function k(){a.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(P),t.__H.__h.forEach(E),t.__H.__h=[]}catch(e){t.__H.__h=[],u.options.__e(e,t.__v)}})),a=[]}u.options.__b=function(t){o=null,f&&f(t)},u.options.__r=function(t){s&&s(t),r=0;var e=(o=t.__c).__H;e&&(e.__h.forEach(P),e.__h.forEach(E),e.__h=[])},u.options.diffed=function(t){l&&l(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==a.push(e)&&i===u.options.requestAnimationFrame||((i=u.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),C&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);C&&(e=requestAnimationFrame(n))})(k)),o=void 0},u.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(P),t.__h=t.__h.filter((function(t){return!t.__||E(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],u.options.__e(n,t.__v)}})),p&&p(t,e)},u.options.unmount=function(t){d&&d(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(P)}catch(t){u.options.__e(t,e.__v)}};var C="function"==typeof requestAnimationFrame;function P(t){var e=o;"function"==typeof t.__c&&t.__c(),o=e}function E(t){var e=o;t.__c=t.__(),o=e}function A(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function N(t,e){return"function"==typeof e?e(t):e}},,function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(35);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(26);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){var r=n(90),o=n(91);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(32),o=n(42),i=n(62);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=n(238)},function(t,e,n){var r=n(32),o=n(137),i=n(37),u=n(85),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},,function(t,e,n){var r=n(26),o=n(29),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(91);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(32),o=n(27),i=n(36),u=Object.defineProperty,c={},a=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],f=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:a,l=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(f&&!r)return!0;var t={length:-1};f?u(t,1,{enumerable:!0,get:a}):t[1]=1,n.call(t,s,l)}))}},,function(t,e,n){var r=n(234),o=n(304),i=n(306);t.exports=function(t,e){if(null==t)return{};var n,u,c=i(t,e);if(o){var a=o(t);for(u=0;u<a.length;u++)n=a[u],r(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},,,,function(t,e,n){var r=n(92),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports={}},function(t,e,n){var r=n(26),o=n(36),i=n(130),u=n(42).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e,n){var r=n(317),o=n(318),i=n(323);t.exports=function(t){return r(t)||o(t)||i()}},function(t,e,n){t.exports=n(262)},,function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){n(160);var r=n(217),o=n(29),i=n(64),u=n(40),c=n(54),a=n(25)("toStringTag");for(var f in r){var s=o[f],l=s&&s.prototype;l&&i(l)!==a&&u(l,a,f),c[f]=c.Array}},function(t,e,n){var r=n(111),o=n(57),i=n(25)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(72),o=n(90),i=n(45),u=n(53),c=n(148),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l;return function(d,_,v,h){for(var y,m,b=i(d),g=o(b),x=r(_,v,3),O=u(g.length),w=0,S=h||c,j=e?S(d,O):n?S(d,0):void 0;O>w;w++)if((p||w in g)&&(m=x(y=g[w],w,b),t))if(e)j[w]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:a.call(j,y)}else if(s)return!1;return l?-1:f||s?s:j}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},function(t,e,n){t.exports=n(241)},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return _})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return h}));var r=n(59),o=n.n(r),i=n(7),u=n.n(i),c=n(66),a=n.n(c),f=n(268),s=n.n(f),l=n(17),p=n.n(l),d=function(t){return p()(t).call(t,(function(t){return t}))},_=function(t){return s()(t)?t:[t]},v=function(t){return a()(t).call(t,(function(t,e){var n,r;return(n=u()(t)).call.apply(n,u()(r=[t]).call(r,o()(_(e))))}),[])},h=function(t){return null!=t}},function(t,e,n){"use strict";n.d(e,"g",(function(){return R})),n.d(e,"d",(function(){return U})),n.d(e,"c",(function(){return W})),n.d(e,"a",(function(){return H})),n.d(e,"b",(function(){return V})),n.d(e,"f",(function(){return z})),n.d(e,"e",(function(){return G}));var r,o,i=n(23),u=n.n(i),c=n(24),a=n.n(c),f=n(11),s=n.n(f),l=n(9),p=n.n(l),d=n(12),_=n.n(d),v=n(17),h=n.n(v),y=n(13),m=n.n(y),b=n(16),g=n.n(b),x=n(41),O=n.n(x),w=n(60),S=n.n(w),j=n(1),k=n.n(j),C=n(31),P=n.n(C),E=n(114),A=n.n(E),N=n(66),T=n.n(N),D=n(174),M=n.p+"images/onfido-logo_3N2AY.svg",B=n.p+"images/onfido-logo-light_3bEB6.svg";function L(t,e){var n=g()(t);if(m.a){var r=m()(t);e&&(r=h()(r).call(r,(function(e){return _()(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)p()(n=L(Object(r),!0)).call(n,(function(e){k()(t,e,r[e])}));else if(s.a)a()(t,s()(r));else{var o;p()(o=L(Object(r))).call(o,(function(e){u()(t,e,_()(r,e))}))}}return t}var F={locale:"en",phrases:{"welcome.title":"My custom title"},mobilePhrases:{"capture.driving_licence.back.instructions":"Custom instructions"}},R=T()(r=A()(o=window.location.search).call(o,1).split("&")).call(r,(function(t,e){var n=e.split("="),r=P()(n,2),o=r[0],i=r[1];return I(I({},t),{},k()({},o,i))}),{}),U=function(){var t=R.link_id;if(t)return{mobileFlow:!0,roomId:t.substring(2)};var e,n="customTranslations"===R.language?F:R.language,r=[];"true"===R.customWelcomeScreenCopy?r.push({type:"welcome",options:{title:"Open your new bank account",descriptions:["To open a bank account, we will need to verify your identity.","It will only take a couple of minutes."],nextButton:"Verify Identity"}}):r.push({type:"welcome"}),"true"===R.showAuth&&r.push({type:"auth",options:{retries:10}}),"true"===R.showUserConsent&&r.push({type:"userConsent"}),"true"===R.poa&&r.push({type:"poa"}),r.push({type:"document",options:{useLiveDocumentCapture:"true"===R.useLiveDocumentCapture,uploadFallback:"false"!==R.uploadFallback,useWebcam:"true"===R.useWebcam,documentTypes:(e=R.oneDoc,e?k()({},e,!0):"true"===R.oneDocWithCountrySelection?{driving_licence:!0}:"true"===R.oneDocWithPresetCountry?{driving_licence:{country:"ESP"}}:"true"===R.multiDocWithPresetCountry?{driving_licence:{country:"ESP"},national_identity_card:{country:"MYS"},residence_permit:{country:null}}:"true"===R.multiDocWithInvalidPresetCountry?{driving_licence:{country:"ES"},national_identity_card:{country:"XYZ"}}:"true"===R.multiDocWithBooleanValues?{driving_licence:!0,national_identity_card:!0}:{}),showCountrySelection:"true"===R.oneDocWithCountrySelection,forceCrossDevice:"true"===R.forceCrossDevice}}),r.push({type:"face",options:{requestedVariant:"true"===R.liveness?"video":"standard",useUploader:"true"===R.useUploader,uploadFallback:"false"!==R.uploadFallback,useMultipleSelfieCapture:"false"!==R.useMultipleSelfieCapture,photoCaptureFallback:"false"!==R.photoCaptureFallback}}),"true"!==R.noCompleteStep&&r.push({type:"complete"});var o=R.countryCode?{smsNumberCountryCode:R.countryCode}:{},i="true"===R.hideOnfidoLogo,u="true"===R.showCobrand?{text:"Planet Express, Incorporated"}:void 0,c="true"===R.showLogoCobrand?{lightLogoSrc:B,darkLogoSrc:M}:void 0,a="true"===R.useCustomizedApiRequests,f={};if("success"===R.decoupleResponse){var s=S.a.resolve({onfidoSuccessResponse:{id:"123-456-789"}});f={onSubmitDocument:function(){return s},onSubmitSelfie:function(){return s},onSubmitVideo:function(){return s}}}else if("error"===R.decoupleResponse){var l={status:422,response:O()({error:{message:"There was a validation error on this request",type:"validation_error",fields:{detect_glare:["glare found in image"]}}})};f={onSubmitDocument:function(){return S.a.reject(l)},onSubmitSelfie:function(){return S.a.reject(l)},onSubmitVideo:function(){return S.a.reject(l)}}}else if("onfido"===R.decoupleResponse){var p=S.a.resolve({continueWithOnfidoSubmission:!0});f={onSubmitDocument:function(){return p},onSubmitSelfie:function(){return p},onSubmitVideo:function(){return p}}}var d="true"===R.customisedUI?D:void 0;return I({useModal:"true"===R.useModal,shouldCloseOnOverlayClick:"true"!==R.shouldCloseOnOverlayClick,language:n,disableAnalytics:"true"===R.disableAnalytics,useMemoryHistory:"true"===R.useMemoryHistory,steps:r,mobileFlow:!1,userDetails:{smsNumber:R.smsNumber},enterpriseFeatures:I({hideOnfidoLogo:i,cobrand:u,logoCobrand:c,useCustomizedApiRequests:a},f),customUI:d},o)},W={standard:[],liveness:["welcome","document",{type:"face",options:{requestedVariant:"video"}},"complete"],poa:["welcome","poa","complete"],"no welcome":["document","face","complete"],"no complete":["welcome","document","face"],"upload fallback":["welcome",{type:"document",options:{useWebcam:!1}},{type:"face",options:{uploadFallback:!0}},"complete"],"document autocapture (BETA)":["welcome",{type:"document",options:{useWebcam:!0}},"face","complete"],"document live capture (BETA)":["welcome",{type:"document",options:{useLiveDocumentCapture:!0}},"face","complete"],"force cross device (docs)":["welcome",{type:"document",options:{forceCrossDevice:!0}},"face","complete"],"no upload fallback":["welcome",{type:"document",options:{useWebcam:!1}},{type:"face",options:{uploadFallback:!1}},"complete"],"no snapshot":["welcome","document",{type:"face",options:{useMultipleSelfieCapture:!1}},"complete"]},H={en:"en",es:"es",de:"de",fr:"fr",custom:{phrases:{"welcome.title":"My custom title"},mobilePhrases:{"capture.driving_licence.back.instructions":"Custom instructions"}}},V=["EU","US","CA"],z=function(t){if("US"===t)return"https://token-factory.us.onfido.com/sdk_token";if("CA"===t)return"https://token-factory.ca.onfido.com/sdk_token";if("EU"===t)return"https://token-factory.onfido.com/sdk_token";throw new Error("No JWT_FACTORY env provided")},G=function(t,e,n,r){var o=new XMLHttpRequest;o.open("GET",e,!0),o.setRequestHeader("Authorization","BASIC ".concat("NA")),o.onload=function(){if(o.status>=200&&o.status<400){var e=JSON.parse(o.responseText);t&&n&&n.postMessage({type:"UPDATE_CHECK_DATA",payload:{applicantId:e.applicant_id}}),r(e.message)}},o.send()}},,,function(t,e,n){var r=n(32),o=n(105),i=n(62),u=n(39),c=n(85),a=n(36),f=n(137),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e,!0),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(49);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r,o,i,u=n(212),c=n(29),a=n(35),f=n(40),s=n(36),l=n(88),p=n(81),d=c.WeakMap;if(u){var _=new d,v=_.get,h=_.has,y=_.set;r=function(t,e){return y.call(_,t,e),e},o=function(t){return v.call(_,t)||{}},i=function(t){return h.call(_,t)}}else{var m=l("state");p[m]=!0,r=function(t,e){return f(t,m,e),e},o=function(t){return s(t,m)?t[m]:{}},i=function(t){return s(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(111),o=n(42).f,i=n(40),u=n(36),c=n(215),a=n(25)("toStringTag");t.exports=function(t,e,n,f){if(t){var s=n?t:t.prototype;u(s,a)||o(s,a,{configurable:!0,value:e}),f&&!r&&i(s,"toString",c)}}},function(t,e,n){var r=n(40);t.exports=function(t,e,n,o){o&&o.enumerable?t[e]=n:r(t,e,n)}},,,function(t,e,n){var r=n(57);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(247).charAt,o=n(73),i=n(128),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){u(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},,function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(27);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},,,function(t,e,n){var r=n(35);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(140),o=n(107);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(85),o=n(42),i=n(62);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(109),o=n(99),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},,function(t,e,n){var r=n(27),o=n(57),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(27),o=n(25),i=n(119),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(37),o=n(168),i=n(53),u=n(72),c=n(121),a=n(167),f=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,s,l){var p,d,_,v,h,y,m,b=u(e,n,s?2:1);if(l)p=t;else{if("function"!=typeof(d=c(t)))throw TypeError("Target is not iterable");if(o(d)){for(_=0,v=i(t.length);v>_;_++)if((h=s?b(r(m=t[_])[0],m[1]):b(t[_]))&&h instanceof f)return h;return new f(!1)}p=d.call(t)}for(y=p.next;!(m=y.call(p)).done;)if("object"==typeof(h=a(p,b,m.value,s))&&h&&h instanceof f)return h;return new f(!1)}).stop=function(t){return new f(!0,t)}},function(t,e,n){"use strict";var r=n(49),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},,,,function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r,o=n(37),i=n(139),u=n(107),c=n(81),a=n(147),f=n(106),s=n(88),l=s("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;_=r?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var n=u.length;n--;)delete _.prototype[u[n]];return _()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=_(),void 0===e?n:i(n,e)}},,,,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(29),o=n(35),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(140),o=n(107).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(58),o=n(144);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(27);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r={};r[n(25)("toStringTag")]="z",t.exports="[object z]"===String(r)},,,function(t,e,n){t.exports=n(255)},,,function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36),o=n(45),i=n(88),u=n(179),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r,o,i=n(29),u=n(129),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(r=f.split("."))[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},,function(t,e,n){var r=n(64),o=n(54),i=n(25)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},,,,,function(t,e,n){var r=n(92),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(18),o=n(214),i=n(118),u=n(161),c=n(74),a=n(40),f=n(75),s=n(25),l=n(58),p=n(54),d=n(145),_=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,h=s("iterator"),y=function(){return this};t.exports=function(t,e,n,s,d,m,b){o(n,e,s);var g,x,O,w=function(t){if(t===d&&P)return P;if(!v&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",j=!1,k=t.prototype,C=k[h]||k["@@iterator"]||d&&k[d],P=!v&&C||w(d),E="Array"==e&&k.entries||C;if(E&&(g=i(E.call(new t)),_!==Object.prototype&&g.next&&(l||i(g)===_||(u?u(g,_):"function"!=typeof g[h]&&a(g,h,y)),c(g,S,!0,!0),l&&(p[S]=y))),"values"==d&&C&&"values"!==C.name&&(j=!0,P=function(){return C.call(this)}),l&&!b||k[h]===P||a(k,h,P),p[e]=P,d)if(x={values:w("values"),keys:m?P:w("keys"),entries:w("entries")},b)for(O in x)(v||j||!(O in k))&&f(k,O,x[O]);else r({target:e,proto:!0,forced:v||j},x);return x}},function(t,e,n){var r=n(44);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(25);e.f=r},,,,,,function(t,e,n){n(203);var r=n(26).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},function(t,e,n){var r=n(32),o=n(27),i=n(106);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(27),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(32),o=n(42),i=n(37),u=n(86);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e,n){var r=n(36),o=n(39),i=n(141).indexOf,u=n(81);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(39),o=n(53),i=n(127),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(144),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(29),o=n(213),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){"use strict";var r,o,i,u=n(118),c=n(40),a=n(36),f=n(25),s=n(58),l=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),s||a(r,l)||c(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,e,n){var r=n(110);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(44);t.exports=r("document","documentElement")},function(t,e,n){var r=n(35),o=n(78),i=n(25)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},,function(t,e){},function(t,e,n){var r=n(29);t.exports=r.Promise},function(t,e,n){var r=n(37),o=n(49),i=n(25)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u=n(29),c=n(27),a=n(57),f=n(72),s=n(147),l=n(106),p=n(154),d=u.location,_=u.setImmediate,v=u.clearImmediate,h=u.process,y=u.MessageChannel,m=u.Dispatch,b=0,g={},x=function(t){if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},O=function(t){return function(){x(t)}},w=function(t){x(t.data)},S=function(t){u.postMessage(t+"",d.protocol+"//"+d.host)};_&&v||(_=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},v=function(t){delete g[t]},"process"==a(h)?r=function(t){h.nextTick(O(t))}:m&&m.now?r=function(t){m.now(O(t))}:y&&!p?(i=(o=new y).port2,o.port1.onmessage=w,r=f(i.postMessage,i,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||c(S)?r="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),x(t)}}:function(t){setTimeout(O(t),0)}:(r=S,u.addEventListener("message",w,!1))),t.exports={set:_,clear:v}},function(t,e,n){var r=n(129);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(37),o=n(35),i=n(95);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},,,,,function(t,e,n){"use strict";var r=n(39),o=n(142),i=n(54),u=n(73),c=n(128),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(37),o=n(216);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){n(180);var r=n