@seontechnologies/seon-id-verification
Version:
An advanced SDK featuring web components for natural person identification through document scanning, facial recognition, hand gesture, and face turning detection, designed for secure and efficient user verification.
18 lines • 2.45 MB
JavaScript
(function(Be,G){typeof exports=="object"&&typeof module<"u"?G(exports,require("react"),require("@microblink/capture")):typeof define=="function"&&define.amd?define(["exports","react","@microblink/capture"],G):(Be=typeof globalThis<"u"?globalThis:Be||self,G(Be.index={},Be.react,Be["@microblink/capture"]))})(this,function(Be,G,v0){"use strict";var nJ=Object.defineProperty;var CY=Be=>{throw TypeError(Be)};var oJ=(Be,G,v0)=>G in Be?nJ(Be,G,{enumerable:!0,configurable:!0,writable:!0,value:v0}):Be[G]=v0;var x2=(Be,G,v0)=>oJ(Be,typeof G!="symbol"?G+"":G,v0),Ch=(Be,G,v0)=>G.has(Be)||CY("Cannot "+v0);var V=(Be,G,v0)=>(Ch(Be,G,"read from private field"),v0?v0.call(Be):G.get(Be)),S2=(Be,G,v0)=>G.has(Be)?CY("Cannot add the same private member more than once"):G instanceof WeakSet?G.add(Be):G.set(Be,v0),E2=(Be,G,v0,W3)=>(Ch(Be,G,"write to private field"),W3?W3.call(Be,v0):G.set(Be,v0),v0),oe=(Be,G,v0)=>(Ch(Be,G,"access private method"),v0);var rI=(Be,G,v0,W3)=>({set _(aI){E2(Be,G,aI,v0)},get _(){return V(Be,G,W3)}});var Sr,so,m1,dM,G1,co,U1,pM,Or,MM,y1,H1,GB,xr,Lt,wc,Rr,Ci,V3,PM,an,vM,Cn,gg,jr,sn,hr,FM,g3,si,Ic,YM,D0,Qo,lo,L1,k1,Eo,T1,S1,mM,pg,ne,uc,Bg,zr,O1,wo,Io,Dc,x1,R1,Nr,br,uo,j1,de,Hl,sh,ch,Qh,lh,Eh,wh,Ih,sY,GM,UM;var W3=typeof document<"u"?document.currentScript:null;function aI(e){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(g,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return g.default=e,Object.freeze(g)}const YA=aI(G);(function(){if(typeof document>"u"||"adoptedStyleSheets"in document)return;var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,g=document.implementation.createHTMLDocument(""),i=new WeakMap,r=typeof DOMException=="object"?Error:DOMException,c=Object.defineProperty,w=Array.prototype.forEach,l=/@import.+?;?$/gm;function h(tA){var QA=tA.replace(l,"");return QA!==tA&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),QA.trim()}function d(tA){return"isConnected"in tA?tA.isConnected:document.contains(tA)}function M(tA){return tA.filter(function(QA,MA){return tA.indexOf(QA)===MA})}function Y(tA,QA){return tA.filter(function(MA){return QA.indexOf(MA)===-1})}function m(tA){tA.parentNode.removeChild(tA)}function y(tA){return tA.shadowRoot||i.get(tA)}var k=["addRule","deleteRule","insertRule","removeRule"],j=CSSStyleSheet,S=j.prototype;S.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},S.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};function _(tA){return typeof tA=="object"?PA.isPrototypeOf(tA)||S.isPrototypeOf(tA):!1}function lA(tA){return typeof tA=="object"?S.isPrototypeOf(tA):!1}var BA=new WeakMap,cA=new WeakMap,rA=new WeakMap,N=new WeakMap;function DA(tA,QA){var MA=document.createElement("style");return rA.get(tA).set(QA,MA),cA.get(tA).push(QA),MA}function CA(tA,QA){return rA.get(tA).get(QA)}function bA(tA,QA){rA.get(tA).delete(QA),cA.set(tA,cA.get(tA).filter(function(MA){return MA!==QA}))}function xA(tA,QA){requestAnimationFrame(function(){QA.textContent=BA.get(tA).textContent,N.get(tA).forEach(function(MA){return QA.sheet[MA.method].apply(QA.sheet,MA.args)})})}function uA(tA){if(!BA.has(tA))throw new TypeError("Illegal invocation")}function WA(){var tA=this,QA=document.createElement("style");g.body.appendChild(QA),BA.set(tA,QA),cA.set(tA,[]),rA.set(tA,new WeakMap),N.set(tA,[])}var PA=WA.prototype;PA.replace=function(QA){try{return this.replaceSync(QA),Promise.resolve(this)}catch(MA){return Promise.reject(MA)}},PA.replaceSync=function(QA){if(uA(this),typeof QA=="string"){var MA=this;BA.get(MA).textContent=h(QA),N.set(MA,[]),cA.get(MA).forEach(function(e2){e2.isConnected()&&xA(MA,CA(MA,e2))})}},c(PA,"cssRules",{configurable:!0,enumerable:!0,get:function(){return uA(this),BA.get(this).sheet.cssRules}}),c(PA,"media",{configurable:!0,enumerable:!0,get:function(){return uA(this),BA.get(this).sheet.media}}),k.forEach(function(tA){PA[tA]=function(){var QA=this;uA(QA);var MA=arguments;N.get(QA).push({method:tA,args:MA}),cA.get(QA).forEach(function(IA){if(IA.isConnected()){var s2=CA(QA,IA).sheet;s2[tA].apply(s2,MA)}});var e2=BA.get(QA).sheet;return e2[tA].apply(e2,MA)}}),c(WA,Symbol.hasInstance,{configurable:!0,value:_});var yA={childList:!0,subtree:!0},ZA=new WeakMap;function zA(tA){var QA=ZA.get(tA);return QA||(QA=new jA(tA),ZA.set(tA,QA)),QA}function pA(tA){c(tA.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return zA(this).sheets},set:function(QA){zA(this).update(QA)}})}function SA(tA,QA){for(var MA=document.createNodeIterator(tA,NodeFilter.SHOW_ELEMENT,function(IA){return y(IA)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),e2=void 0;e2=MA.nextNode();)QA(y(e2))}var nA=new WeakMap,dA=new WeakMap,Z=new WeakMap;function aA(tA,QA){return QA instanceof HTMLStyleElement&&dA.get(tA).some(function(MA){return CA(MA,tA)})}function GA(tA){var QA=nA.get(tA);return QA instanceof Document?QA.body:QA}function _A(tA){var QA=document.createDocumentFragment(),MA=dA.get(tA),e2=Z.get(tA),IA=GA(tA);e2.disconnect(),MA.forEach(function(s2){QA.appendChild(CA(s2,tA)||DA(s2,tA))}),IA.insertBefore(QA,null),e2.observe(IA,yA),MA.forEach(function(s2){xA(s2,CA(s2,tA))})}function jA(tA){var QA=this;QA.sheets=[],nA.set(QA,tA),dA.set(QA,[]),Z.set(QA,new MutationObserver(function(MA,e2){if(!document){e2.disconnect();return}MA.forEach(function(IA){e||w.call(IA.addedNodes,function(s2){s2 instanceof Element&&SA(s2,function(R2){zA(R2).connect()})}),w.call(IA.removedNodes,function(s2){s2 instanceof Element&&(aA(QA,s2)&&_A(QA),e||SA(s2,function(R2){zA(R2).disconnect()}))})})}))}if(jA.prototype={isConnected:function(){var tA=nA.get(this);return tA instanceof Document?tA.readyState!=="loading":d(tA.host)},connect:function(){var tA=GA(this);Z.get(this).observe(tA,yA),dA.get(this).length>0&&_A(this),SA(tA,function(QA){zA(QA).connect()})},disconnect:function(){Z.get(this).disconnect()},update:function(tA){var QA=this,MA=nA.get(QA)===document?"Document":"ShadowRoot";if(!Array.isArray(tA))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+MA+": Iterator getter is not callable.");if(!tA.every(_))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+MA+": Failed to convert value to 'CSSStyleSheet'");if(tA.some(lA))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+MA+": Can't adopt non-constructed stylesheets");QA.sheets=tA;var e2=dA.get(QA),IA=M(tA),s2=Y(e2,IA);s2.forEach(function(R2){m(CA(R2,QA)),bA(R2,QA)}),dA.set(QA,IA),QA.isConnected()&&IA.length>0&&_A(QA)}},window.CSSStyleSheet=WA,pA(Document),"ShadowRoot"in window){pA(ShadowRoot);var r2=Element.prototype,TA=r2.attachShadow;r2.attachShadow=function(QA){var MA=TA.call(this,QA);return QA.mode==="closed"&&i.set(this,MA),MA}}var $A=zA(document);$A.isConnected()?$A.connect():document.addEventListener("DOMContentLoaded",$A.connect.bind($A))})(),(function(){var e=window.Document.prototype.createElement,g=window.Document.prototype.createElementNS,i=window.Document.prototype.importNode,r=window.Document.prototype.prepend,c=window.Document.prototype.append,w=window.DocumentFragment.prototype.prepend,l=window.DocumentFragment.prototype.append,h=window.Node.prototype.cloneNode,d=window.Node.prototype.appendChild,M=window.Node.prototype.insertBefore,Y=window.Node.prototype.removeChild,m=window.Node.prototype.replaceChild,y=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),k=window.Element.prototype.attachShadow,j=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),S=window.Element.prototype.getAttribute,_=window.Element.prototype.setAttribute,lA=window.Element.prototype.removeAttribute,BA=window.Element.prototype.toggleAttribute,cA=window.Element.prototype.getAttributeNS,rA=window.Element.prototype.setAttributeNS,N=window.Element.prototype.removeAttributeNS,DA=window.Element.prototype.insertAdjacentElement,CA=window.Element.prototype.insertAdjacentHTML,bA=window.Element.prototype.prepend,xA=window.Element.prototype.append,uA=window.Element.prototype.before,WA=window.Element.prototype.after,PA=window.Element.prototype.replaceWith,yA=window.Element.prototype.remove,ZA=window.HTMLElement,zA=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),pA=window.HTMLElement.prototype.insertAdjacentElement,SA=window.HTMLElement.prototype.insertAdjacentHTML,nA=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(H){return nA.add(H)});function dA(H){var R=nA.has(H);return H=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(H),!R&&H}var Z=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function aA(H){var R=H.isConnected;if(R!==void 0)return R;if(Z(H))return!0;for(;H&&!(H.__CE_isImportDocument||H instanceof Document);)H=H.parentNode||(window.ShadowRoot&&H instanceof ShadowRoot?H.host:void 0);return!(!H||!(H.__CE_isImportDocument||H instanceof Document))}function GA(H){var R=H.children;if(R)return Array.prototype.slice.call(R);for(R=[],H=H.firstChild;H;H=H.nextSibling)H.nodeType===Node.ELEMENT_NODE&&R.push(H);return R}function _A(H,R){for(;R&&R!==H&&!R.nextSibling;)R=R.parentNode;return R&&R!==H?R.nextSibling:null}function jA(H,R,W){for(var sA=H;sA;){if(sA.nodeType===Node.ELEMENT_NODE){var K=sA;R(K);var eA=K.localName;if(eA==="link"&&K.getAttribute("rel")==="import"){if(sA=K.import,W===void 0&&(W=new Set),sA instanceof Node&&!W.has(sA))for(W.add(sA),sA=sA.firstChild;sA;sA=sA.nextSibling)jA(sA,R,W);sA=_A(H,K);continue}else if(eA==="template"){sA=_A(H,K);continue}if(K=K.__CE_shadowRoot)for(K=K.firstChild;K;K=K.nextSibling)jA(K,R,W)}sA=sA.firstChild?sA.firstChild:_A(H,sA)}}function r2(){var H=!(P2==null||!P2.noDocumentConstructionObserver),R=!(P2==null||!P2.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=R,this.I=!H}function TA(H,R,W,sA){var K=window.ShadyDOM;if(H.shadyDomFastWalk&&K&&K.inUse){if(R.nodeType===Node.ELEMENT_NODE&&W(R),R.querySelectorAll)for(H=K.nativeMethods.querySelectorAll.call(R,"*"),R=0;R<H.length;R++)W(H[R])}else jA(R,W,sA)}function $A(H,R){H.j=!0,H.m.push(R)}function tA(H,R){H.j=!0,H.g.push(R)}function QA(H,R){H.j&&TA(H,R,function(W){return MA(H,W)})}function MA(H,R){if(H.j&&!R.__CE_patched){R.__CE_patched=!0;for(var W=0;W<H.m.length;W++)H.m[W](R);for(W=0;W<H.g.length;W++)H.g[W](R)}}function e2(H,R){var W=[];for(TA(H,R,function(K){return W.push(K)}),R=0;R<W.length;R++){var sA=W[R];sA.__CE_state===1?H.connectedCallback(sA):R2(H,sA)}}function IA(H,R){var W=[];for(TA(H,R,function(K){return W.push(K)}),R=0;R<W.length;R++){var sA=W[R];sA.__CE_state===1&&H.disconnectedCallback(sA)}}function s2(H,R,W){W=W===void 0?{}:W;var sA=W.J,K=W.upgrade||function(hA){return R2(H,hA)},eA=[];for(TA(H,R,function(hA){if(H.j&&MA(H,hA),hA.localName==="link"&&hA.getAttribute("rel")==="import"){var OA=hA.import;OA instanceof Node&&(OA.__CE_isImportDocument=!0,OA.__CE_registry=document.__CE_registry),OA&&OA.readyState==="complete"?OA.__CE_documentLoadHandled=!0:hA.addEventListener("load",function(){var KA=hA.import;if(!KA.__CE_documentLoadHandled){KA.__CE_documentLoadHandled=!0;var H2=new Set;sA&&(sA.forEach(function(Ie){return H2.add(Ie)}),H2.delete(KA)),s2(H,KA,{J:H2,upgrade:K})}})}else eA.push(hA)},sA),R=0;R<eA.length;R++)K(eA[R])}function R2(H,R){try{var W=R.ownerDocument,sA=W.__CE_registry,K=sA&&(W.defaultView||W.__CE_isImportDocument)?NA(sA,R.localName):void 0;if(K&&R.__CE_state===void 0){K.constructionStack.push(R);try{try{if(new K.constructorFunction!==R)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{K.constructionStack.pop()}}catch(KA){throw R.__CE_state=2,KA}if(R.__CE_state=1,R.__CE_definition=K,K.attributeChangedCallback&&R.hasAttributes()){var eA=K.observedAttributes;for(K=0;K<eA.length;K++){var hA=eA[K],OA=R.getAttribute(hA);OA!==null&&H.attributeChangedCallback(R,hA,null,OA,null)}}aA(R)&&H.connectedCallback(R)}}catch(KA){Ue(KA)}}r2.prototype.connectedCallback=function(H){var R=H.__CE_definition;if(R.connectedCallback)try{R.connectedCallback.call(H)}catch(W){Ue(W)}},r2.prototype.disconnectedCallback=function(H){var R=H.__CE_definition;if(R.disconnectedCallback)try{R.disconnectedCallback.call(H)}catch(W){Ue(W)}},r2.prototype.attributeChangedCallback=function(H,R,W,sA,K){var eA=H.__CE_definition;if(eA.attributeChangedCallback&&-1<eA.observedAttributes.indexOf(R))try{eA.attributeChangedCallback.call(H,R,W,sA,K)}catch(hA){Ue(hA)}};function we(H,R,W,sA){var K=R.__CE_registry;if(K&&(sA===null||sA==="http://www.w3.org/1999/xhtml")&&(K=NA(K,W)))try{var eA=new K.constructorFunction;if(eA.__CE_state===void 0||eA.__CE_definition===void 0)throw Error("Failed to construct '"+W+"': The returned value was not constructed with the HTMLElement constructor.");if(eA.namespaceURI!=="http://www.w3.org/1999/xhtml")throw Error("Failed to construct '"+W+"': The constructed element's namespace must be the HTML namespace.");if(eA.hasAttributes())throw Error("Failed to construct '"+W+"': The constructed element must not have any attributes.");if(eA.firstChild!==null)throw Error("Failed to construct '"+W+"': The constructed element must not have any children.");if(eA.parentNode!==null)throw Error("Failed to construct '"+W+"': The constructed element must not have a parent node.");if(eA.ownerDocument!==R)throw Error("Failed to construct '"+W+"': The constructed element's owner document is incorrect.");if(eA.localName!==W)throw Error("Failed to construct '"+W+"': The constructed element's local name is incorrect.");return eA}catch(hA){return Ue(hA),R=sA===null?e.call(R,W):g.call(R,sA,W),Object.setPrototypeOf(R,HTMLUnknownElement.prototype),R.__CE_state=2,R.__CE_definition=void 0,MA(H,R),R}return R=sA===null?e.call(R,W):g.call(R,sA,W),MA(H,R),R}function Ue(H){var R="",W="",sA=0,K=0;H instanceof Error?(R=H.message,W=H.sourceURL||H.fileName||"",sA=H.line||H.lineNumber||0,K=H.column||H.columnNumber||0):R="Uncaught "+String(H);var eA=void 0;ErrorEvent.prototype.initErrorEvent===void 0?eA=new ErrorEvent("error",{cancelable:!0,message:R,filename:W,lineno:sA,colno:K,error:H}):(eA=document.createEvent("ErrorEvent"),eA.initErrorEvent("error",!1,!0,R,W,sA),eA.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),eA.error===void 0&&Object.defineProperty(eA,"error",{configurable:!0,enumerable:!0,get:function(){return H}}),window.dispatchEvent(eA),eA.defaultPrevented||console.error(H)}function Pe(){var H=this;this.g=void 0,this.F=new Promise(function(R){H.l=R})}Pe.prototype.resolve=function(H){if(this.g)throw Error("Already resolved.");this.g=H,this.l(H)};function qe(H){var R=document;this.l=void 0,this.h=H,this.g=R,s2(this.h,this.g),this.g.readyState==="loading"&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function B0(H){H.l&&H.l.disconnect()}qe.prototype.G=function(H){var R=this.g.readyState;for(R!=="interactive"&&R!=="complete"||B0(this),R=0;R<H.length;R++)for(var W=H[R].addedNodes,sA=0;sA<W.length;sA++)s2(this.h,W[sA])};function K2(H){this.s=new Map,this.u=new Map,this.C=new Map,this.A=!1,this.B=new Map,this.o=function(R){return R()},this.i=!1,this.v=[],this.h=H,this.D=H.I?new qe(H):void 0}K2.prototype.H=function(H,R){var W=this;if(!(R instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");Xe(this,H),this.s.set(H,R),this.v.push(H),this.i||(this.i=!0,this.o(function(){return x0(W)}))},K2.prototype.define=function(H,R){var W=this;if(!(R instanceof Function))throw new TypeError("Custom element constructors must be functions.");Xe(this,H),Se(this,H,R),this.v.push(H),this.i||(this.i=!0,this.o(function(){return x0(W)}))};function Xe(H,R){if(!dA(R))throw new SyntaxError("The element name '"+R+"' is not valid.");if(NA(H,R))throw Error("A custom element with name '"+(R+"' has already been defined."));if(H.A)throw Error("A custom element is already being defined.")}function Se(H,R,W){H.A=!0;var sA;try{var K=W.prototype;if(!(K instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var eA=function(Ie){var Mg=K[Ie];if(Mg!==void 0&&!(Mg instanceof Function))throw Error("The '"+Ie+"' callback must be a function.");return Mg},hA=eA("connectedCallback"),OA=eA("disconnectedCallback"),KA=eA("adoptedCallback"),H2=(sA=eA("attributeChangedCallback"))&&W.observedAttributes||[]}catch(Ie){throw Ie}finally{H.A=!1}return W={localName:R,constructorFunction:W,connectedCallback:hA,disconnectedCallback:OA,adoptedCallback:KA,attributeChangedCallback:sA,observedAttributes:H2,constructionStack:[]},H.u.set(R,W),H.C.set(W.constructorFunction,W),W}K2.prototype.upgrade=function(H){s2(this.h,H)};function x0(H){if(H.i!==!1){H.i=!1;for(var R=[],W=H.v,sA=new Map,K=0;K<W.length;K++)sA.set(W[K],[]);for(s2(H.h,document,{upgrade:function(KA){if(KA.__CE_state===void 0){var H2=KA.localName,Ie=sA.get(H2);Ie?Ie.push(KA):H.u.has(H2)&&R.push(KA)}}}),K=0;K<R.length;K++)R2(H.h,R[K]);for(K=0;K<W.length;K++){for(var eA=W[K],hA=sA.get(eA),OA=0;OA<hA.length;OA++)R2(H.h,hA[OA]);(eA=H.B.get(eA))&&eA.resolve(void 0)}W.length=0}}K2.prototype.get=function(H){if(H=NA(this,H))return H.constructorFunction},K2.prototype.whenDefined=function(H){if(!dA(H))return Promise.reject(new SyntaxError("'"+H+"' is not a valid custom element name."));var R=this.B.get(H);if(R)return R.F;R=new Pe,this.B.set(H,R);var W=this.u.has(H)||this.s.has(H);return H=this.v.indexOf(H)===-1,W&&H&&R.resolve(void 0),R.F},K2.prototype.polyfillWrapFlushCallback=function(H){this.D&&B0(this.D);var R=this.o;this.o=function(W){return H(function(){return R(W)})}};function NA(H,R){var W=H.u.get(R);if(W)return W;if(W=H.s.get(R)){H.s.delete(R);try{return Se(H,R,W())}catch(sA){Ue(sA)}}}K2.prototype.define=K2.prototype.define,K2.prototype.upgrade=K2.prototype.upgrade,K2.prototype.get=K2.prototype.get,K2.prototype.whenDefined=K2.prototype.whenDefined,K2.prototype.polyfillDefineLazy=K2.prototype.H,K2.prototype.polyfillWrapFlushCallback=K2.prototype.polyfillWrapFlushCallback;function i2(H,R,W){function sA(K){return function(eA){for(var hA=[],OA=0;OA<arguments.length;++OA)hA[OA]=arguments[OA];OA=[];for(var KA=[],H2=0;H2<hA.length;H2++){var Ie=hA[H2];if(Ie instanceof Element&&aA(Ie)&&KA.push(Ie),Ie instanceof DocumentFragment)for(Ie=Ie.firstChild;Ie;Ie=Ie.nextSibling)OA.push(Ie);else OA.push(Ie)}for(K.apply(this,hA),hA=0;hA<KA.length;hA++)IA(H,KA[hA]);if(aA(this))for(hA=0;hA<OA.length;hA++)KA=OA[hA],KA instanceof Element&&e2(H,KA)}}W.prepend!==void 0&&(R.prepend=sA(W.prepend)),W.append!==void 0&&(R.append=sA(W.append))}function W2(H){Document.prototype.createElement=function(R){return we(H,this,R,null)},Document.prototype.importNode=function(R,W){return R=i.call(this,R,!!W),this.__CE_registry?s2(H,R):QA(H,R),R},Document.prototype.createElementNS=function(R,W){return we(H,this,W,R)},i2(H,Document.prototype,{prepend:r,append:c})}function ce(H){function R(sA){return function(K){for(var eA=[],hA=0;hA<arguments.length;++hA)eA[hA]=arguments[hA];hA=[];for(var OA=[],KA=0;KA<eA.length;KA++){var H2=eA[KA];if(H2 instanceof Element&&aA(H2)&&OA.push(H2),H2 instanceof DocumentFragment)for(H2=H2.firstChild;H2;H2=H2.nextSibling)hA.push(H2);else hA.push(H2)}for(sA.apply(this,eA),eA=0;eA<OA.length;eA++)IA(H,OA[eA]);if(aA(this))for(eA=0;eA<hA.length;eA++)OA=hA[eA],OA instanceof Element&&e2(H,OA)}}var W=Element.prototype;uA!==void 0&&(W.before=R(uA)),WA!==void 0&&(W.after=R(WA)),PA!==void 0&&(W.replaceWith=function(sA){for(var K=[],eA=0;eA<arguments.length;++eA)K[eA]=arguments[eA];eA=[];for(var hA=[],OA=0;OA<K.length;OA++){var KA=K[OA];if(KA instanceof Element&&aA(KA)&&hA.push(KA),KA instanceof DocumentFragment)for(KA=KA.firstChild;KA;KA=KA.nextSibling)eA.push(KA);else eA.push(KA)}for(OA=aA(this),PA.apply(this,K),K=0;K<hA.length;K++)IA(H,hA[K]);if(OA)for(IA(H,this),K=0;K<eA.length;K++)hA=eA[K],hA instanceof Element&&e2(H,hA)}),yA!==void 0&&(W.remove=function(){var sA=aA(this);yA.call(this),sA&&IA(H,this)})}function Oe(H){function R(K,eA){Object.defineProperty(K,"innerHTML",{enumerable:eA.enumerable,configurable:!0,get:eA.get,set:function(hA){var OA=this,KA=void 0;if(aA(this)&&(KA=[],TA(H,this,function(Mg){Mg!==OA&&KA.push(Mg)})),eA.set.call(this,hA),KA)for(var H2=0;H2<KA.length;H2++){var Ie=KA[H2];Ie.__CE_state===1&&H.disconnectedCallback(Ie)}return this.ownerDocument.__CE_registry?s2(H,this):QA(H,this),hA}})}function W(K,eA){K.insertAdjacentElement=function(hA,OA){var KA=aA(OA);return hA=eA.call(this,hA,OA),KA&&IA(H,OA),aA(hA)&&e2(H,OA),hA}}function sA(K,eA){function hA(OA,KA){for(var H2=[];OA!==KA;OA=OA.nextSibling)H2.push(OA);for(KA=0;KA<H2.length;KA++)s2(H,H2[KA])}K.insertAdjacentHTML=function(OA,KA){if(OA=OA.toLowerCase(),OA==="beforebegin"){var H2=this.previousSibling;eA.call(this,OA,KA),hA(H2||this.parentNode.firstChild,this)}else if(OA==="afterbegin")H2=this.firstChild,eA.call(this,OA,KA),hA(this.firstChild,H2);else if(OA==="beforeend")H2=this.lastChild,eA.call(this,OA,KA),hA(H2||this.firstChild,null);else if(OA==="afterend")H2=this.nextSibling,eA.call(this,OA,KA),hA(this.nextSibling,H2);else throw new SyntaxError("The value provided ("+String(OA)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}}k&&(Element.prototype.attachShadow=function(K){if(K=k.call(this,K),H.j&&!K.__CE_patched){K.__CE_patched=!0;for(var eA=0;eA<H.m.length;eA++)H.m[eA](K)}return this.__CE_shadowRoot=K}),j&&j.get?R(Element.prototype,j):zA&&zA.get?R(HTMLElement.prototype,zA):tA(H,function(K){R(K,{enumerable:!0,configurable:!0,get:function(){return h.call(this,!0).innerHTML},set:function(eA){var hA=this.localName==="template",OA=hA?this.content:this,KA=g.call(document,this.namespaceURI,this.localName);for(KA.innerHTML=eA;0<OA.childNodes.length;)Y.call(OA,OA.childNodes[0]);for(eA=hA?KA.content:KA;0<eA.childNodes.length;)d.call(OA,eA.childNodes[0])}})}),Element.prototype.setAttribute=function(K,eA){if(this.__CE_state!==1)return _.call(this,K,eA);var hA=S.call(this,K);_.call(this,K,eA),eA=S.call(this,K),H.attributeChangedCallback(this,K,hA,eA,null)},Element.prototype.setAttributeNS=function(K,eA,hA){if(this.__CE_state!==1)return rA.call(this,K,eA,hA);var OA=cA.call(this,K,eA);rA.call(this,K,eA,hA),hA=cA.call(this,K,eA),H.attributeChangedCallback(this,eA,OA,hA,K)},Element.prototype.removeAttribute=function(K){if(this.__CE_state!==1)return lA.call(this,K);var eA=S.call(this,K);lA.call(this,K),eA!==null&&H.attributeChangedCallback(this,K,eA,null,null)},BA&&(Element.prototype.toggleAttribute=function(K,eA){if(this.__CE_state!==1)return BA.call(this,K,eA);var hA=S.call(this,K),OA=hA!==null;return eA=BA.call(this,K,eA),OA!==eA&&H.attributeChangedCallback(this,K,hA,eA?"":null,null),eA}),Element.prototype.removeAttributeNS=function(K,eA){if(this.__CE_state!==1)return N.call(this,K,eA);var hA=cA.call(this,K,eA);N.call(this,K,eA);var OA=cA.call(this,K,eA);hA!==OA&&H.attributeChangedCallback(this,eA,hA,OA,K)},pA?W(HTMLElement.prototype,pA):DA&&W(Element.prototype,DA),SA?sA(HTMLElement.prototype,SA):CA&&sA(Element.prototype,CA),i2(H,Element.prototype,{prepend:bA,append:xA}),ce(H)}var V0={};function RA(H){function R(){var W=this.constructor,sA=document.__CE_registry.C.get(W);if(!sA)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var K=sA.constructionStack;if(K.length===0)return K=e.call(document,sA.localName),Object.setPrototypeOf(K,W.prototype),K.__CE_state=1,K.__CE_definition=sA,MA(H,K),K;var eA=K.length-1,hA=K[eA];if(hA===V0)throw Error("Failed to construct '"+sA.localName+"': This element was already constructed.");return K[eA]=V0,Object.setPrototypeOf(hA,W.prototype),MA(H,hA),hA}R.prototype=ZA.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:R}),window.HTMLElement=R}function w2(H){function R(W,sA){Object.defineProperty(W,"textContent",{enumerable:sA.enumerable,configurable:!0,get:sA.get,set:function(K){if(this.nodeType===Node.TEXT_NODE)sA.set.call(this,K);else{var eA=void 0;if(this.firstChild){var hA=this.childNodes,OA=hA.length;if(0<OA&&aA(this)){eA=Array(OA);for(var KA=0;KA<OA;KA++)eA[KA]=hA[KA]}}if(sA.set.call(this,K),eA)for(K=0;K<eA.length;K++)IA(H,eA[K])}}})}Node.prototype.insertBefore=function(W,sA){if(W instanceof DocumentFragment){var K=GA(W);if(W=M.call(this,W,sA),aA(this))for(sA=0;sA<K.length;sA++)e2(H,K[sA]);return W}return K=W instanceof Element&&aA(W),sA=M.call(this,W,sA),K&&IA(H,W),aA(this)&&e2(H,W),sA},Node.prototype.appendChild=function(W){if(W instanceof DocumentFragment){var sA=GA(W);if(W=d.call(this,W),aA(this))for(var K=0;K<sA.length;K++)e2(H,sA[K]);return W}return sA=W instanceof Element&&aA(W),K=d.call(this,W),sA&&IA(H,W),aA(this)&&e2(H,W),K},Node.prototype.cloneNode=function(W){return W=h.call(this,!!W),this.ownerDocument.__CE_registry?s2(H,W):QA(H,W),W},Node.prototype.removeChild=function(W){var sA=W instanceof Element&&aA(W),K=Y.call(this,W);return sA&&IA(H,W),K},Node.prototype.replaceChild=function(W,sA){if(W instanceof DocumentFragment){var K=GA(W);if(W=m.call(this,W,sA),aA(this))for(IA(H,sA),sA=0;sA<K.length;sA++)e2(H,K[sA]);return W}K=W instanceof Element&&aA(W);var eA=m.call(this,W,sA),hA=aA(this);return hA&&IA(H,sA),K&&IA(H,W),hA&&e2(H,W),eA},y&&y.get?R(Node.prototype,y):$A(H,function(W){R(W,{enumerable:!0,configurable:!0,get:function(){for(var sA=[],K=this.firstChild;K;K=K.nextSibling)K.nodeType!==Node.COMMENT_NODE&&sA.push(K.textContent);return sA.join("")},set:function(sA){for(;this.firstChild;)Y.call(this,this.firstChild);sA!=null&&sA!==""&&d.call(this,document.createTextNode(sA))}})})}var P2=window.customElements;function _2(){var H=new r2;RA(H),W2(H),i2(H,DocumentFragment.prototype,{prepend:w,append:l}),w2(H),Oe(H),window.CustomElementRegistry=K2,H=new K2(H),document.__CE_registry=H,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:H})}P2&&!P2.forcePolyfill&&typeof P2.define=="function"&&typeof P2.get=="function"||_2(),window.__CE_installPolyfill=_2}).call(self);const cY={back_button:"Back",back_to_previous_step_button:"Back to previous step",next_button:"Next",restart_button:"Restart",done_button:"Done",ok_button:"OK",cancel_search_button:"Cancel",step_1_of_2_subtitle:"Step 1 of 2",step_2_of_2_subtitle:"Step 2 of 2",step_1_of_3_subtitle:"Step 1 of 3",step_2_of_3_subtitle:"Step 2 of 3",step_3_of_3_subtitle:"Step 3 of 3",start_screen_title:"Verify your identity",start_screen_description:"The process only takes a few seconds. Keep in mind that you and your environment will be recorded.",start_screen_list_1:"Make sure your device's camera(s) are ready to use",start_screen_list_2:"Have your documents ready",start_screen_list_3:"Be prepared to take a selfie",start_screen_list_4:"Make sure you have good lighting",start_screen_start_button:"Start verification",start_screen_dpa_link:"Read more about our personal data processing here",tutorial_screen_title:"Scan your document",tutorial_screen_description:"Use a valid document issued by your country of residence",tutorial_screen_list_1:"Use a valid document issued by your country of residence or citizenship",tutorial_screen_list_2:"Position your document's photo side in the frame",tutorial_screen_list_3:"Next, position your document's barcode side in the frame",tutorial_screen_scan_button:"Scan your document",id_type_selection_title:"Choose your document",id_type_selection_description:"Select the issuing country and type of your document",id_type_selection_title_country:"Issuing country",id_type_selection_title_documents:"Accepted documents",country_search_default_value:"Choose country",country_search_input_placeholder:"Search",country_search_no_result:"No results",country_search_no_result_description:"No matches found on our list of supported countries.",document_type_passport:"Passport",document_type_national_id:"ID card",document_type_drivers_license:"Driver's license",document_type_resident_permit:"Residence permit card",document_capture_flow_title:"Scan your document",document_capture_front_side:"Scan the front side of the document",document_capture_back_side:"Scan the back side of the document",document_capture_guidelines:`Watch out for flashlight glare.
Gently move your ID around to avoid it.`,error_document_upload_title:"Failed upload",error_document_upload_description:"Something went wrong while processing the image. Please restart the identity verification process.",error_document_type_title:"Incorrect document type",error_document_type_description:"Make sure to select the correct document type you are using for verification.",error_invalid_country_title:"Invalid country",error_invalid_country_description:"Make sure to select the issuing country correctly so it matches the document you are using for verification.",error_many_attempts_title:"Too many failed attempts",error_many_attempts_description:"Make sure you read the instructions carefully and follow them precisely.",error_liveness_upload_title:"Failed upload",error_liveness_upload_description:"Something went wrong while processing the image. Please restart the identity verification process.",error_liveness_check_action_follow_instructions_title:"Please follow the instructions",error_liveness_check_action_follow_instructions_description:"Make sure you read the instructions carefully and follow them precisely.",error_liveness_check_action_image_quality_title:"Something is wrong with your image",error_liveness_check_action_image_quality_description:"Make sure your image is clear, not blurry and you have enough light",error_timeout_title:"Your session is timed out",error_timeout_description:"You'll be redirected to the tutorial screen.",error_no_camera_access_title:"Camera access required",error_no_camera_access_description:"In order to complete the validation, you need to give camera access. Please go back and allow camera access.",error_no_camera_access_button:"Go back",error_unsuccessful_attempt_title:"Unsuccessful attempt",error_unsuccessful_attempt_description:"You'll be redirected to the tutorial screen. Make sure you read the instructions carefully and follow them precisely.",error_unsuccessful_attempt_button:"Retry",error_general_title:"Something went wrong",error_general_description:"Please restart the identity verification process.",liveness_check_gesture_flow_title:"Liveness check",liveness_check_gesture_title:"Prepare for a liveness check",liveness_check_gesture_description:"We'll check for the presence of a live person during the verification process",liveness_check_gesture_list_1:"Make sure you have good lighting and your face is visible",liveness_check_gesture_list_2:"Position your face in the frame",liveness_check_gesture_list_3:"Follow on-screen instructions",liveness_check_gesture_button:"Take a selfie",liveness_check_action_show_gesture_first:"Hold your hand in front of your face and show this gesture",liveness_check_action_show_gesture_mid:"Now, hold your hand in front of your face and show this gesture",liveness_check_action_show_gesture_last:"Lastly, hold your hand in front of your face and show this gesture",liveness_check_face_turning_flow_title:"Take a selfie",liveness_check_face_turning_title:"Prepare to take a selfie",liveness_check_face_turning_description:"We'll check if it matches your document",liveness_check_face_turning_list_1:"Make sure you have good lighting and your face is visible",liveness_check_face_turning_list_2:"Position your head in the frame",liveness_check_face_turning_list_3:"Turn your head to the directions shown on the screen",liveness_check_face_turning_button:"Take a selfie",liveness_check_action_turn_right_first:"Slowly turn your head to the right",liveness_check_action_turn_right:"Now, slowly turn your head to the right",liveness_check_action_turn_up_first:"Slowly turn your head up",liveness_check_action_turn_up:"Now, slowly turn your head up",liveness_check_action_turn_left_first:"Slowly turn your head to the left",liveness_check_action_turn_left:"Now, slowly turn your head to the left",liveness_check_action_turn_down_first:"Slowly turn your head down",liveness_check_action_turn_down:"Now, slowly turn your head down",liveness_check_selfie_flow_title:"Take a selfie",liveness_check_selfie_title:"Prepare to take a selfie",liveness_check_selfie_description:"We'll check if it matches your document",liveness_check_selfie_list_1:"Make sure you have good lighting and your face is visible",liveness_check_selfie_list_2:"Position your head in the frame",liveness_check_selfie_list_3:"Hold still for a few seconds",liveness_check_selfie_button:"Take a selfie",liveness_check_action_open_eyes:"Please keep your eyes open",liveness_check_action_position_face:"Position your face in the frame",liveness_check_action_hold:"Hold still",liveness_check_action_center_face:"Align your face with the center of the frame",liveness_check_action_move_closer:"Move a bit closer to the camera",liveness_check_action_move_further:"Move a bit further from the camera",liveness_check_action_straighten_face:"Keep your face level and upright",liveness_check_action_look_at_camera:"Look directly at the camera",verification_completed_title:"Submission completed!",verification_completed_description:"Your documents will be analyzed and we'll get back to you soon.",redirect_screen_title:"Verify your identity",redirect_screen_description:"Please scan the QR code or open the link below on another mobile device to complete the session and make the ID verification as precise as possible.",redirect_screen_button:"Go Back",ongoing_screen_title:"Proceed with your session",ongoing_screen_description:"Your session is in progress on another mobile device. Once completed, you can proceed here.",error_redirect_title:"Failed submission",error_redirect_description:"Something went wrong while processing your request. Please restart the identity verification process.",start_screen_terms:"I have read and agree to the {{start_screen_terms_link}}",start_screen_terms_link:"Privacy Notice",verification_success_title:"Successful verification",verification_success_description:"Your documents have bee analyzed and your id is verified.",verification_denied_title:"Unsuccessful verification",verification_denied_description:"Your documents have been analyzed but we couldn’t verify your identity. Please contact us, or try again.",verification_review_title:"Verification pending",verification_review_description:"Your documents have been uploaded for further inspection. We'll get back to you soon.",step_count_subtitle:"Step {{X}} of {{Y}}",poa_screen_title:"Proof of address",poa_screen_description:"We'll check for proof of your address",poa_screen_list_1:"Prepare a proof of address document Utility Bill, Bank Statement, etc...",poa_screen_list_2:"You can either upload or capture your document",poa_screen_list_3:"Make sure that the documents are in the frame and legible",poa_screen_list_1_desktop:"Prepare a proof of address document. Utility Bill, Bank Statement, etc...",poa_screen_list_2_desktop:"You can upload your document in pdf, jpg, or png format",poa_screen_list_3_desktop:"Make sure that the uploaded documents are fully visible and legible",poa_screen_start_button:"Provide document",poa_confirm_title:"Thank you!",poa_confirm_description:"Double check if the photo is sharp as possible and all the text is legible.",poa_confirm_file_button:"Upload file",poa_confirm_photo_button:"Upload photo",poa_sheet_camera:"Camera",poa_sheet_gallery:"Photo gallery",poa_sheet_file:"Upload file",poa_upload_title:"Upload your document",poa_upload_description:"You can upload your document in pdf, jpg, or png format",poa_upload_action:"Drag & Drop or {{poa_upload_action_link}}",poa_upload_action_link:"browse",poa_upload_remove:"Remove",poa_upload_button:"Send file",error_poa_file_title:"Wrong file format",error_poa_file_description:"We couldn’t process your file. Please try another file type (jpeg, png, pdf)",error_poa_file_button:"Retry",error_poa_upload_title:"Something went wrong",error_poa_upload_description:"We couldn’t process your file.",upload_completed_title:"Upload completed",upload_completed_description:"The results will be shown on desktop. You may close this window",error_device_support_description:"Please use a different device.",error_device_support_title:"Your camera is not supported",errordevice_supportbutton:"Go back",error_unique_expiration_title:"Session expired",error_unique_expiration_description:"This ID verification session has already expired."};let T;async function CI(e){T={...cY,...e}}const JA={config:{},baseConfig:{},setConfig:e=>{JA.config={...JA.config,...e}},setBaseConfig:e=>{JA.baseConfig={...JA.baseConfig,...e}},resetConfig:()=>{JA.config={}}},Ll={value:!1,setValue:e=>{Ll.value=e}},k0=(e,g)=>{const i=document.querySelector(`#${r0.getInstanceId()}`);i==null||i.setAttribute("event",e),g?i==null||i.setAttribute("eventData",JSON.stringify(g)):i==null||i.removeAttribute("eventData")},uh=(...e)=>{},$t=uh,sI=uh;class QY{constructor(){x2(this,"errorTrigger",null);x2(this,"errorTriggerPromise");x2(this,"errorTriggerResolve");this.errorTriggerPromise=new Promise(g=>{this.errorTriggerResolve=g})}on(g){var i;this.errorTrigger=g,(i=this.errorTriggerResolve)==null||i.call(this)}off(g){this.errorTrigger=null,this.errorTriggerPromise=new Promise(i=>{this.errorTriggerResolve=i})}throwError(g={}){this.errorTriggerPromise.then(()=>{try{this.errorTrigger&&(this.errorTrigger(g),g.ERROR?sI(g.ERROR):g.WARN&&console.warn(g.WARN))}catch(i){console.error("Error while handling custom error:",i)}})}errorCallback(){k0("error","unknown")}unhandledrejectionCallback(){k0("error","unknown")}addGlobalErrorListeners(){window.addEventListener("error",this.errorCallback),window.addEventListener("unhandledrejection",this.unhandledrejectionCallback)}removeGlobalErrorListeners(){window.removeEventListener("error",this.errorCallback),window.removeEventListener("unhandledrejection",this.unhandledrejectionCallback)}}const Ag=new QY,L2=Ag.throwError.bind(Ag),lY=e=>new URLSearchParams(window.location.search).has(e),Dh=e=>new URLSearchParams(window.location.search).get(e)||null,J0=()=>lY("seon-idv-transfer-token"),EY=()=>Dh("seon-idv-no-cam-check")==="true",IB=async({endpoint:e,headers:g={},method:i="GET",body:r={},excludeJWT:c=!1,isFullUrl:w=!1,binaryBody:l=!1,jwt:h="",ignoreUnauthorized:d=!1})=>{const M=JA.config.sessionToken||h,Y={"Content-Type":"application/json",...g},m={...r};M&&!c&&(Y.Authorization=`Bearer ${M}`);try{if(i!=="GET"){const y=await fetch(`${w?"":JA.baseConfig.baseUrl}${e}`,{method:i,headers:Y,body:l?r:JSON.stringify(m)}),k=y.headers.get("Content-Type");let j;k&&k.includes("application/json")?j=await y.json():j=await y.text(),k&&k.includes("application/json")?(j.ok=y.ok,j.status=y.status):j={ok:y.ok,status:y.status,data:j};const S=e==null?void 0:e.includes("start-session");if(y.status===401&&!S&&(JA.setConfig({sessionToken:""}),!d)){L2({ERROR:"Session expired",hideBtn:J0(),btnAction(){J0()&&window.close(),k0("error","error_code_3")}});return}return j}else{const y=await fetch(`${!w&&JA.baseConfig.baseUrl}${e}`,{headers:Y}),k=y.headers.get("Content-Type");let j;if(k&&k.includes("application/json")?j=await y.json():j=await y.text(),k&&k.includes("application/json")?(j.ok=y.ok,j.status=y.status):j={ok:y.ok,status:y.status,data:j},y.status===401&&(JA.setConfig({sessionToken:""}),J0()&&window.close(),!d)){L2({ERROR:"Session expired",hideBtn:J0(),btnAction(){J0()&&window.close(),k0("error","error_code_3")}});return}return j}}catch(y){try{let k;return y.toString().includes("Error: ")&&y.toString().includes("{")?(k=JSON.parse(y.toString().replace("Error: ","")),console.error(k)):(k=y,console.error(y)),k}catch(k){return console.error(k),k}}};class wY{constructor(g=!1){x2(this,"isTransfer");x2(this,"StartSessionResponseData",null);this.isTransfer=g}async startSession(){const g=["blink-capture"],i={platform:"WEB",language:JA.baseConfig.language||"en",referenceId:JA.baseConfig.SEONCustomerData.referenceId,type:JA.baseConfig.SEONCustomerData.type,email:JA.baseConfig.SEONCustomerData.email,address:JA.baseConfig.SEONCustomerData.address,phoneNumber:JA.baseConfig.SEONCustomerData.phoneNumber,name:JA.baseConfig.SEONCustomerData.name,userId:JA.baseConfig.SEONCustomerData.userId,templateId:JA.baseConfig.SEONCustomerData.templateId,additionalProperties:JA.baseConfig.SEONCustomerData.additionalProperties,dateOfBirth:JA.baseConfig.SEONCustomerData.dateOfBirth,postalCode:JA.baseConfig.SEONCustomerData.postalCode,supportedCaptureSdks:g,apiVersion:2},r=await IB({endpoint:`/sessions/flow/start-session-v1${this.isTransfer?"?transfer=true":""}`,method:"POST",body:i,headers:{"x-api-key":JA.baseConfig.SEONCustomerData.licenseKey},ignoreUnauthorized:!0});return this.StartSessionResponseData=r,JA.setConfig({sessionToken:r==null?void 0:r.sessionToken}),this.StartSessionResponseData}async StartSessionResponse(){return this.StartSessionResponseData}}class IY{constructor(){x2(this,"events",[]);x2(this,"groupedEvents",[])}getEvents(){return this.events}getGroupedEvents(){return this.groupedEvents}on(g,i){this.events.push({event:g,callback:i}),this.events=this.events.filter((r,c,w)=>w.findIndex(l=>l.callback.toString()===r.callback.toString()&&l.event===r.event)===c),this.groupedEvents=this.events.reduce((r,c)=>{const w=r.find(l=>l.event===c.event);return w?w.callbacks.push(c.callback):r.push({event:c.event,callbacks:[c.callback]}),r},[])}async bindEvents(g,i,r){let c=document.querySelector(`seon-idverif-wrapper-${r}`);for(;!c;)await new Promise(l=>setTimeout(l,100)),c=document.querySelector(`seon-idverif-wrapper-${r}`);new MutationObserver(l=>{for(const h of l)if(c&&h.type==="attributes"&&h.attributeName==="event"&&c.getAttribute("event")===g){const d=c.getAttribute("eventData");if(d)try{const M=JSON.parse(d);i(M)}catch{i(`Error while executing callback for: ${g.toString()}`)}else i(g.toString())}}).observe(c,{attributes:!0,attributeFilter:["event"]})}}const fr=new IY;function uY(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cI={exports:{}},wg={},kl={exports:{}},QI={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hh;function DY(){return hh||(hh=1,function(e){function g(nA,dA){var Z=nA.length;nA.push(dA);A:for(;0<Z;){var aA=Z-1>>>1,GA=nA[aA];if(0<c(GA,dA))nA[aA]=dA,nA[Z]=GA,Z=aA;else break A}}function i(nA){return nA.length===0?null:nA[0]}function r(nA){if(nA.length===0)return null;var dA=nA[0],Z=nA.pop();if(Z!==dA){nA[0]=Z;A:for(var aA=0,GA=nA.length,_A=GA>>>1;aA<_A;){var jA=2*(aA+1)-1,r2=nA[jA],TA=jA+1,$A=nA[TA];if(0>c(r2,Z))TA<GA&&0>c($A,r2)?(nA[aA]=$A,nA[TA]=Z,aA=TA):(nA[aA]=r2,nA[jA]=Z,aA=jA);else if(TA<GA&&0>c($A,Z))nA[aA]=$A,nA[TA]=Z,aA=TA;else break A}}return dA}function c(nA,dA){var Z=nA.sortIndex-dA.sortIndex;return Z!==0?Z:nA.id-dA.id}if(typeof performance=="object"&&typeof performance.now=="function"){var w=performance;e.unstable_now=function(){return w.now()}}else{var l=Date,h=l.now();e.unstable_now=function(){return l.now()-h}}var d=[],M=[],Y=1,m=null,y=3,k=!1,j=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,lA=typeof clearTimeout=="function"?clearTimeout:null,BA=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function cA(nA){for(var dA=i(M);dA!==null;){if(dA.callback===null)r(M);else if(dA.startTime<=nA)r(M),dA.sortIndex=dA.expirationTime,g(d,dA);else break;dA=i(M)}}function rA(nA){if(S=!1,cA(nA),!j)if(i(d)!==null)j=!0,pA(N);else{var dA=i(M);dA!==null&&SA(rA,dA.startTime-nA)}}function N(nA,dA){j=!1,S&&(S=!1,lA(bA),bA=-1),k=!0;var Z=y;try{for(cA(dA),m=i(d);m!==null&&(!(m.expirationTime>dA)||nA&&!WA());){var aA=m.callback;if(typeof aA=="function"){m.callback=null,y=m.priorityLevel;var GA=aA(m.expirationTime<=dA);dA=e.unstable_now(),typeof GA=="function"?m.callback=GA:m===i(d)&&r(d),cA(dA)}else r(d);m=i(d)}if(m!==null)var _A=!0;else{var jA=i(M);jA!==null&&SA(rA,jA.startTime-dA),_A=!1}return _A}finally{m=null,y=Z,k=!1}}var DA=!1,CA=null,bA=-1,xA=5,uA=-1;function WA(){return!(e.unstable_now()-uA<xA)}function PA(){if(CA!==null){var nA=e.unstable_now();uA=nA;var dA=!0;try{dA=CA(!0,nA)}finally{dA?yA():(DA=!1,CA=null)}}else DA=!1}var yA;if(typeof BA=="function")yA=function(){BA(PA)};else if(typeof MessageChannel<"u"){var ZA=new MessageChannel,zA=ZA.port2;ZA.port1.onmessage=PA,yA=function(){zA.postMessage(null)}}else yA=function(){_(PA,0)};function pA(nA){CA=nA,DA||(DA=!0,yA())}function SA(nA,dA){bA=_(function(){nA(e.unstable_now())},dA)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(nA){nA.callback=null},e.unstable_continueExecution=function(){j||k||(j=!0,pA(N))},e.unstable_forceFrameRate=function(nA){0>nA||125<nA?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xA=0<nA?Math.floor(1e3/nA):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return i(d)},e.unstable_next=function(nA){switch(y){case 1:case 2:case 3:var dA=3;break;default:dA=y}var Z=y;y=dA;try{return nA()}finally{y=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(nA,dA){switch(nA){case 1:case 2:case 3:case 4:case 5:break;default:nA=3}var Z=y;y=nA;try{return dA()}finally{y=Z}},e.unstable_scheduleCallback=function(nA,dA,Z){var aA=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?aA+Z:aA):Z=aA,nA){case 1:var GA=-1;break;case 2:GA=250;break;case 5:GA=1073741823;break;case 4:GA=1e4;break;default:GA=5e3}return GA=Z+GA,nA={id:Y++,callback:dA,priorityLevel:nA,startTime:Z,expirationTime:GA,sortIndex:-1},Z>aA?(nA.sortIndex=Z,g(M,nA),i(d)===null&&nA===i(M)&&(S?(lA(bA),bA=-1):S=!0,SA(rA,Z-aA))):(nA.sortIndex=GA,g(d,nA),j||k||(j=!0,pA(N))),nA},e.unstable_shouldYield=WA,e.unstable_wrapCallback=function(nA){var dA=y;return function(){var Z=y;y=dA;try{return nA.apply(this,arguments)}finally{y=Z}}}}(QI)),QI}var lI={};/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fh;function hY(){return fh||(fh=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var g=!1,i=5;function r(RA,w2){var P2=RA.length;RA.push(w2),l(RA,w2,P2)}function c(RA){return RA.length===0?null:RA[0]}function w(RA){if(RA.length===0)return null;var w2=RA[0],P2=RA.pop();return P2!==w2&&(RA[0]=P2,h(RA,P2,0)),w2}function l(RA,w2,P2){for(var _2=P2;_2>0;){var H=_2-1>>>1,R=RA[H];if(d(R,w2)>0)RA[H]=w2,RA[_2]=R,_2=H;else return}}function h(RA,w2,P2){for(var _2=P2,H=RA.length,R=H>>>1;_2<R;){var W=(_2+1)*2-1,sA=RA[W],K=W+1,eA=RA[K];if(d(sA,w2)<0)K<H&&d(eA,sA)<0?(RA[_2]=eA,RA[K]=w2,_2=K):(RA[_2]=sA,RA[W]=w2,_2=W);else if(K<H&&d(eA,w2)<0)RA[_2]=eA,RA[K]=w2,_2=K;else return}}function d(RA,w2){var P2=RA.sortIndex-w2.sortIndex;return P2!==0?P2:RA.id-w2.id}var M=1,Y=2,m=3,y=4,k=5;function j(RA,w2){}var S=typeof performance=="object"&&typeof performance.now=="function";if(S){var _=performance;e.unstable_now=function(){return _.now()}}else{var lA=Date,BA=lA.now();e.unstable_now=function(){return lA.now()-BA}}var cA=1073741823,rA=-1,N=250,DA=5e3,CA=1e4,bA=cA,xA=[],uA=[],WA=1,PA=null,yA=m,ZA=!1,zA=!1,pA=!1,SA=typeof setTimeout=="function"?setTimeout:null,nA=typeof clearTimeout=="function"?clearTimeout:null,dA=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Z(RA){for(var w2=c(uA);w2!==null;){if(w2.callback===null)w(uA);else if(w2.startTime<=RA)w(uA),w2.sortIndex=w2.expirationTime,r(xA,w2);else return;w2=c(uA)}}function aA(RA){if(pA=!1,Z(RA),!zA)if(c(xA)!==null)zA=!0,i2(GA);else{var w2=c(uA);w2!==null&&W2(aA,w2.startTime-RA)}}function GA(RA,w2){zA=!1,pA&&(pA=!1,ce()),ZA=!0;var P2=yA;try{var _2;if(!g)return _A(RA,w2)}finally{PA=null,yA=P2,ZA=!1}}function _A(RA,w2){var P2=w2;for(Z(P2),PA=c(xA);PA!==null&&!(PA.expirationTime>P2&&(!RA||qe()));){var _2=PA.callback;if(typeof _2=="function"){PA.callback=null,yA=PA.priorityLevel;var H=PA.expirationTime<=P2,R=_2(H);P2=e.unstable_now(),typeof R=="function"?PA.callback=R:PA===c(xA)&&w(xA),Z(P2)}else w(xA);PA=c(xA)}if(PA!==null)return!0;var W=c(uA);return W!==null&&W2(aA,W.startTime-P2),!1}function jA(RA,w2){switch(RA){case M:case Y:case m:case y:case k:break;default:RA=m}var P2=yA;yA=RA;try{return w2()}finally{yA=P2}}function r2(RA){var w2;switch(yA){case M:case Y:case m:w2=m;break;default:w2=yA;break}var P2=yA;yA=w2;try{return RA()}finally{yA=P2}}function TA(RA){var w2=yA;return function(){var P2=yA;yA=w2;try{return RA.apply(this,arguments)}finally{yA=P2}}}function $A(RA,w2,P2){var _2=e.unstable_now(),H;if(typeof P2=="object"&&P2!==null){var R=P2.delay;typeof R=="number"&&