gbc-kyc-kit 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -18327,8 +18327,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
|
|
|
18327
18327
|
const res = await authorize();
|
|
18328
18328
|
const customHeaders = {
|
|
18329
18329
|
client_id: clientId,
|
|
18330
|
-
access_token: res
|
|
18331
|
-
Authorization: "Bearer WGpKbGFSNlJXV29hVnFqVjlIbA=="
|
|
18330
|
+
access_token: res
|
|
18332
18331
|
};
|
|
18333
18332
|
const parseReq = {
|
|
18334
18333
|
method: "POST",
|
|
@@ -40875,8 +40874,7 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
|
|
|
40875
40874
|
const res = await authorize();
|
|
40876
40875
|
const customHeaders = {
|
|
40877
40876
|
client_id: clientId,
|
|
40878
|
-
access_token: res
|
|
40879
|
-
Authorization: "Bearer WGpKbGFSNlJXV29hVnFqVjlIbA=="
|
|
40877
|
+
access_token: res
|
|
40880
40878
|
};
|
|
40881
40879
|
try {
|
|
40882
40880
|
const res2 = await fetchFaceMatch(picBase64, url, inProduction, customHeaders);
|
|
@@ -41189,8 +41187,7 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
|
|
|
41189
41187
|
try {
|
|
41190
41188
|
const customHeaders = {
|
|
41191
41189
|
client_id: clientId,
|
|
41192
|
-
access_token: token2
|
|
41193
|
-
Authorization: "Bearer WGpKbGFSNlJXV29hVnFqVjlIbA=="
|
|
41190
|
+
access_token: token2
|
|
41194
41191
|
};
|
|
41195
41192
|
try {
|
|
41196
41193
|
faceMatch ? await fetchFaceMatch(faceMatch, `data:image/jpeg;base64,${data2.images[0]}`, inProduction, customHeaders).then((res) => {
|
package/dist/gbc-kyc-kit.umd.js
CHANGED
|
@@ -1079,7 +1079,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1079
1079
|
`),function(u){if(l=u.indexOf(":"),r=o9.trim(u.substr(0,l)).toLowerCase(),i=o9.trim(u.substr(l+1)),r){if(n[r]&&VE.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n},ih=Vr,NE=ih.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(l){var c=l;return t&&(n.setAttribute("href",c),c=n.href),n.setAttribute("href",c),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(c){var u=ih.isString(c)?i(c):c;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),i9=y0,QE=Vr;function ah(e){i9.call(this,e==null?"canceled":e,i9.ERR_CANCELED),this.name="CanceledError"}QE.inherits(ah,i9,{__CANCEL__:!0});var j4=ah,WE=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""},os=Vr,jE=OE,GE=BE,UE=_d,KE=oh,YE=HE,qE=NE,JE=nh,ka=y0,ZE=j4,XE=WE,lh=function(t){return new Promise(function(r,i){var l=t.data,c=t.headers,u=t.responseType,h;function g(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}os.isFormData(l)&&os.isStandardBrowserEnv()&&delete c["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";c.Authorization="Basic "+btoa(m+":"+v)}var w=KE(t.baseURL,t.url);d.open(t.method.toUpperCase(),UE(w,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function C(){if(!!d){var x="getAllResponseHeaders"in d?YE(d.getAllResponseHeaders()):null,M=!u||u==="text"||u==="json"?d.responseText:d.response,E={data:M,status:d.status,statusText:d.statusText,headers:x,config:t,request:d};jE(function(V){r(V),g()},function(V){i(V),g()},E),d=null}}if("onloadend"in d?d.onloadend=C:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(C)},d.onabort=function(){!d||(i(new ka("Request aborted",ka.ECONNABORTED,t,d)),d=null)},d.onerror=function(){i(new ka("Network Error",ka.ERR_NETWORK,t,d,d)),d=null},d.ontimeout=function(){var M=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",E=t.transitional||JE;t.timeoutErrorMessage&&(M=t.timeoutErrorMessage),i(new ka(M,E.clarifyTimeoutError?ka.ETIMEDOUT:ka.ECONNABORTED,t,d)),d=null},os.isStandardBrowserEnv()){var b=(t.withCredentials||qE(w))&&t.xsrfCookieName?GE.read(t.xsrfCookieName):void 0;b&&(c[t.xsrfHeaderName]=b)}"setRequestHeader"in d&&os.forEach(c,function(M,E){typeof l=="undefined"&&E.toLowerCase()==="content-type"?delete c[E]:d.setRequestHeader(E,M)}),os.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),u&&u!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(x){!d||(i(!x||x&&x.type?new ZE:x),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),l||(l=null);var F=XE(w);if(F&&["http","https","file"].indexOf(F)===-1){i(new ka("Unsupported protocol "+F+":",ka.ERR_BAD_REQUEST,t));return}d.send(l)})},_E=null,kr=Vr,sh=kE,ch=y0,$E=nh,eS=rh,tS={"Content-Type":"application/x-www-form-urlencoded"};function uh(e,t){!kr.isUndefined(e)&&kr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function nS(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=lh),e}function rS(e,t,n){if(kr.isString(e))try{return(t||JSON.parse)(e),kr.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var G4={transitional:$E,adapter:nS(),transformRequest:[function(t,n){if(sh(n,"Accept"),sh(n,"Content-Type"),kr.isFormData(t)||kr.isArrayBuffer(t)||kr.isBuffer(t)||kr.isStream(t)||kr.isFile(t)||kr.isBlob(t))return t;if(kr.isArrayBufferView(t))return t.buffer;if(kr.isURLSearchParams(t))return uh(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=kr.isObject(t),i=n&&n["Content-Type"],l;if((l=kr.isFileList(t))||r&&i==="multipart/form-data"){var c=this.env&&this.env.FormData;return eS(l?{"files[]":t}:t,c&&new c)}else if(r||i==="application/json")return uh(n,"application/json"),rS(t);return t}],transformResponse:[function(t){var n=this.transitional||G4.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,l=!r&&this.responseType==="json";if(l||i&&kr.isString(t)&&t.length)try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?ch.from(c,ch.ERR_BAD_RESPONSE,this,null,this.response):c}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_E},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};kr.forEach(["delete","get","head"],function(t){G4.headers[t]={}}),kr.forEach(["post","put","patch"],function(t){G4.headers[t]=kr.merge(tS)});var a9=G4,oS=Vr,iS=a9,aS=function(t,n,r){var i=this||iS;return oS.forEach(r,function(c){t=c.call(i,t,n)}),t},dh=function(t){return!!(t&&t.__CANCEL__)},hh=Vr,l9=aS,lS=dh,sS=a9,cS=j4;function s9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cS}var uS=function(t){s9(t),t.headers=t.headers||{},t.data=l9.call(t,t.data,t.headers,t.transformRequest),t.headers=hh.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),hh.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||sS.adapter;return n(t).then(function(i){return s9(t),i.data=l9.call(t,i.data,i.headers,t.transformResponse),i},function(i){return lS(i)||(s9(t),i&&i.response&&(i.response.data=l9.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},no=Vr,fh=function(t,n){n=n||{};var r={};function i(d,m){return no.isPlainObject(d)&&no.isPlainObject(m)?no.merge(d,m):no.isPlainObject(m)?no.merge({},m):no.isArray(m)?m.slice():m}function l(d){if(no.isUndefined(n[d])){if(!no.isUndefined(t[d]))return i(void 0,t[d])}else return i(t[d],n[d])}function c(d){if(!no.isUndefined(n[d]))return i(void 0,n[d])}function u(d){if(no.isUndefined(n[d])){if(!no.isUndefined(t[d]))return i(void 0,t[d])}else return i(void 0,n[d])}function h(d){if(d in n)return i(t[d],n[d]);if(d in t)return i(void 0,t[d])}var g={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:h};return no.forEach(Object.keys(t).concat(Object.keys(n)),function(m){var v=g[m]||l,w=v(m);no.isUndefined(w)&&v!==h||(r[m]=w)}),r},ph={version:"0.27.2"},dS=ph.version,bl=y0,c9={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){c9[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var gh={};c9.transitional=function(t,n,r){function i(l,c){return"[Axios v"+dS+"] Transitional option '"+l+"'"+c+(r?". "+r:"")}return function(l,c,u){if(t===!1)throw new bl(i(c," has been removed"+(n?" in "+n:"")),bl.ERR_DEPRECATED);return n&&!gh[c]&&(gh[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,c,u):!0}};function hS(e,t,n){if(typeof e!="object")throw new bl("options must be an object",bl.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var l=r[i],c=t[l];if(c){var u=e[l],h=u===void 0||c(u,l,e);if(h!==!0)throw new bl("option "+l+" must be "+h,bl.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new bl("Unknown option "+l,bl.ERR_BAD_OPTION)}}var fS={assertOptions:hS,validators:c9},mh=Vr,pS=_d,vh=ME,Ch=uS,U4=fh,gS=oh,bh=fS,w0=bh.validators;function I0(e){this.defaults=e,this.interceptors={request:new vh,response:new vh}}I0.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U4(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&bh.assertOptions(r,{silentJSONParsing:w0.transitional(w0.boolean),forcedJSONParsing:w0.transitional(w0.boolean),clarifyTimeoutError:w0.transitional(w0.boolean)},!1);var i=[],l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,i.unshift(w.fulfilled,w.rejected))});var c=[];this.interceptors.response.forEach(function(w){c.push(w.fulfilled,w.rejected)});var u;if(!l){var h=[Ch,void 0];for(Array.prototype.unshift.apply(h,i),h=h.concat(c),u=Promise.resolve(n);h.length;)u=u.then(h.shift(),h.shift());return u}for(var g=n;i.length;){var d=i.shift(),m=i.shift();try{g=d(g)}catch(v){m(v);break}}try{u=Ch(g)}catch(v){return Promise.reject(v)}for(;c.length;)u=u.then(c.shift(),c.shift());return u},I0.prototype.getUri=function(t){t=U4(this.defaults,t);var n=gS(t.baseURL,t.url);return pS(n,t.params,t.paramsSerializer)},mh.forEach(["delete","get","head","options"],function(t){I0.prototype[t]=function(n,r){return this.request(U4(r||{},{method:t,url:n,data:(r||{}).data}))}}),mh.forEach(["post","put","patch"],function(t){function n(r){return function(l,c,u){return this.request(U4(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}I0.prototype[t]=n(),I0.prototype[t+"Form"]=n(!0)});var mS=I0,vS=j4;function E0(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var n=this;this.promise.then(function(r){if(!!n._listeners){var i,l=n._listeners.length;for(i=0;i<l;i++)n._listeners[i](r);n._listeners=null}}),this.promise.then=function(r){var i,l=new Promise(function(c){n.subscribe(c),i=c}).then(r);return l.cancel=function(){n.unsubscribe(i)},l},e(function(i){n.reason||(n.reason=new vS(i),t(n.reason))})}E0.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},E0.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]},E0.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}},E0.source=function(){var t,n=new E0(function(i){t=i});return{token:n,cancel:t}};var CS=E0,bS=function(t){return function(r){return t.apply(null,r)}},yS=Vr,wS=function(t){return yS.isObject(t)&&t.isAxiosError===!0},yh=Vr,IS=qd,K4=mS,ES=fh,SS=a9;function wh(e){var t=new K4(e),n=IS(K4.prototype.request,t);return yh.extend(n,K4.prototype,t),yh.extend(n,t),n.create=function(i){return wh(ES(e,i))},n}var z2=wh(SS);z2.Axios=K4,z2.CanceledError=j4,z2.CancelToken=CS,z2.isCancel=dh,z2.VERSION=ph.version,z2.toFormData=rh,z2.AxiosError=y0,z2.Cancel=z2.CanceledError,z2.all=function(t){return Promise.all(t)},z2.spread=bS,z2.isAxiosError=wS,Z6.exports=z2,Z6.exports.default=z2;var AS=Z6.exports;const Ih={sand:{auth:{}.VITE_AUTH_URL_SANDBOX,product:"https://gbc-py-core-sandbox-api-products-rtm3lv2joa-uc.a.run.app/",services:"https://gbc-py-core-sandbox-kyc-kit-api-rtm3lv2joa-uc.a.run.app/"},stg:{auth:"https://gbc-py-core-staging-api-authentication-rtm3lv2joa-uc.a.run.app/",product:"https://gbc-py-core-staging-api-products-rtm3lv2joa-uc.a.run.app/",services:"https://gbc-py-core-staging-kyc-kit-api-rtm3lv2joa-uc.a.run.app/"},prd:{auth:"https://gbc-py-core-master-api-authentication-rtm3lv2joa-uc.a.run.app/",product:"https://gbc-py-core-master-api-products-rtm3lv2joa-uc.a.run.app/",services:"https://gbc-py-core-master-kyc-kit-api-rtm3lv2joa-uc.a.run.app/"}};async function S0({method:e,path:t,customHeaders:n,params:r,inProduction:i,service:l="product",bodyParams:c}){var d;const u={"Content-Type":"application/json"};n!={}&&Object.assign(u,n);const h=((d=Ih[i])==null?void 0:d[l])||Ih.prd[l];if(!h)throw new Error(`Missing base URL for ${l} in ${i}`);const g={url:`${h}${t}`,method:e,headers:u};return e==="GET"&&Object.assign(g,{params:r}),e==="POST"&&Object.assign(g,{data:c}),await AS(g).catch(m=>{throw console.log(m),m})}var is=e=>e.type==="checkbox",w3=e=>e instanceof Date,p2=e=>e==null;const Eh=e=>typeof e=="object";var or=e=>!p2(e)&&!Array.isArray(e)&&Eh(e)&&!w3(e),Sh=e=>or(e)&&e.target?is(e.target)?e.target.checked:e.target.value:e,xS=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ah=(e,t)=>e.has(xS(t)),FS=e=>{const t=e.constructor&&e.constructor.prototype;return or(t)&&t.hasOwnProperty("isPrototypeOf")},u9=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function wr(e){let t;const n=Array.isArray(e),r=typeof FileList!="undefined"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(u9&&(e instanceof Blob||r))&&(n||or(e)))if(t=n?[]:{},!n&&!FS(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=wr(e[i]));else return e;return t}var Y4=e=>/^\w*$/.test(e),ir=e=>e===void 0,d9=e=>Array.isArray(e)?e.filter(Boolean):[],h9=e=>d9(e.replace(/["|']|\]/g,"").split(/\.|\[/)),J1=(e,t,n)=>{if(!t||!or(e))return n;const r=(Y4(t)?[t]:h9(t)).reduce((i,l)=>p2(i)?i:i[l],e);return ir(r)||r===e?ir(e[t])?n:e[t]:r},ro=e=>typeof e=="boolean",Mn=(e,t,n)=>{let r=-1;const i=Y4(t)?[t]:h9(t),l=i.length,c=l-1;for(;++r<l;){const u=i[r];let h=n;if(r!==c){const g=e[u];h=or(g)||Array.isArray(g)?g:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=h,e=e[u]}};const q4={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ci={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Pa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},xh=Z1.default.createContext(null);xh.displayName="HookFormContext";const f9=()=>Z1.default.useContext(xh);var Fh=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const l in e)Object.defineProperty(i,l,{get:()=>{const c=l;return t._proxyFormState[c]!==ci.all&&(t._proxyFormState[c]=!r||ci.all),n&&(n[c]=!0),e[c]}});return i};const p9=typeof window!="undefined"?Z1.default.useLayoutEffect:Z1.default.useEffect;function MS(e){const t=f9(),{control:n=t.control,disabled:r,name:i,exact:l}=e||{},[c,u]=Z1.default.useState(n._formState),h=Z1.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return p9(()=>n._subscribe({name:i,formState:h.current,exact:l,callback:g=>{!r&&u({...n._formState,...g})}}),[i,r,l]),Z1.default.useEffect(()=>{h.current.isValid&&n._setValid(!0)},[n]),Z1.default.useMemo(()=>Fh(c,n,h.current,!1),[c,n])}var Qi=e=>typeof e=="string",Mh=(e,t,n,r,i)=>Qi(e)?(r&&t.watch.add(e),J1(n,e,i)):Array.isArray(e)?e.map(l=>(r&&t.watch.add(l),J1(n,l))):(r&&(t.watchAll=!0),n),g9=e=>p2(e)||!Eh(e);function Oa(e,t,n=new WeakSet){if(g9(e)||g9(t))return e===t;if(w3(e)&&w3(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const l of r){const c=e[l];if(!i.includes(l))return!1;if(l!=="ref"){const u=t[l];if(w3(c)&&w3(u)||or(c)&&or(u)||Array.isArray(c)&&Array.isArray(u)?!Oa(c,u,n):c!==u)return!1}}return!0}function zS(e){const t=f9(),{control:n=t.control,name:r,defaultValue:i,disabled:l,exact:c,compute:u}=e||{},h=Z1.default.useRef(i),g=Z1.default.useRef(u),d=Z1.default.useRef(void 0);g.current=u;const m=Z1.default.useMemo(()=>n._getWatch(r,h.current),[n,r]),[v,w]=Z1.default.useState(g.current?g.current(m):m);return p9(()=>n._subscribe({name:r,formState:{values:!0},exact:c,callback:C=>{if(!l){const b=Mh(r,n._names,C.values||n._formValues,!1,h.current);if(g.current){const F=g.current(b);Oa(F,d.current)||(w(F),d.current=F)}else w(b)}}}),[n,l,r,c]),Z1.default.useEffect(()=>n._removeUnmounted()),v}function kS(e){const t=f9(),{name:n,disabled:r,control:i=t.control,shouldUnregister:l,defaultValue:c}=e,u=Ah(i._names.array,n),h=Z1.default.useMemo(()=>J1(i._formValues,n,J1(i._defaultValues,n,c)),[i,n,c]),g=zS({control:i,name:n,defaultValue:h,exact:!0}),d=MS({control:i,name:n,exact:!0}),m=Z1.default.useRef(e),v=Z1.default.useRef(i.register(n,{...e.rules,value:g,...ro(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const w=Z1.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!J1(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!J1(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!J1(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!J1(d.validatingFields,n)},error:{enumerable:!0,get:()=>J1(d.errors,n)}}),[d,n]),C=Z1.default.useCallback(M=>v.current.onChange({target:{value:Sh(M),name:n},type:q4.CHANGE}),[n]),b=Z1.default.useCallback(()=>v.current.onBlur({target:{value:J1(i._formValues,n),name:n},type:q4.BLUR}),[n,i._formValues]),F=Z1.default.useCallback(M=>{const E=J1(i._fields,n);E&&M&&(E._f.ref={focus:()=>M.focus&&M.focus(),select:()=>M.select&&M.select(),setCustomValidity:k=>M.setCustomValidity(k),reportValidity:()=>M.reportValidity()})},[i._fields,n]),x=Z1.default.useMemo(()=>({name:n,value:g,...ro(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:C,onBlur:b,ref:F}),[n,r,d.disabled,C,b,F,g]);return Z1.default.useEffect(()=>{const M=i._options.shouldUnregister||l;i.register(n,{...m.current.rules,...ro(m.current.disabled)?{disabled:m.current.disabled}:{}});const E=(k,V)=>{const L=J1(i._fields,k);L&&L._f&&(L._f.mount=V)};if(E(n,!0),M){const k=wr(J1(i._options.defaultValues,n));Mn(i._defaultValues,n,k),ir(J1(i._formValues,n))&&Mn(i._formValues,n,k)}return!u&&i.register(n),()=>{(u?M&&!i._state.action:M)?i.unregister(n):E(n,!1)}},[n,i,u,l]),Z1.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),Z1.default.useMemo(()=>({field:x,formState:d,fieldState:w}),[x,d,w])}const PS=e=>e.render(kS(e));var zh=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},as=e=>Array.isArray(e)?e:[e],kh=()=>{let e=[];return{get observers(){return e},next:i=>{for(const l of e)l.next&&l.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(l=>l!==i)}}),unsubscribe:()=>{e=[]}}},k2=e=>or(e)&&!Object.keys(e).length,m9=e=>e.type==="file",ui=e=>typeof e=="function",J4=e=>{if(!u9)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ph=e=>e.type==="select-multiple",v9=e=>e.type==="radio",OS=e=>v9(e)||is(e),C9=e=>J4(e)&&e.isConnected;function BS(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ir(e)?r++:e[t[r++]];return e}function LS(e){for(const t in e)if(e.hasOwnProperty(t)&&!ir(e[t]))return!1;return!0}function hr(e,t){const n=Array.isArray(t)?t:Y4(t)?[t]:h9(t),r=n.length===1?e:BS(e,n),i=n.length-1,l=n[i];return r&&delete r[l],i!==0&&(or(r)&&k2(r)||Array.isArray(r)&&LS(r))&&hr(e,n.slice(0,-1)),e}var Oh=e=>{for(const t in e)if(ui(e[t]))return!0;return!1};function Z4(e,t={}){const n=Array.isArray(e);if(or(e)||n)for(const r in e)Array.isArray(e[r])||or(e[r])&&!Oh(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Z4(e[r],t[r])):p2(e[r])||(t[r]=!0);return t}function Bh(e,t,n){const r=Array.isArray(e);if(or(e)||r)for(const i in e)Array.isArray(e[i])||or(e[i])&&!Oh(e[i])?ir(t)||g9(n[i])?n[i]=Array.isArray(e[i])?Z4(e[i],[]):{...Z4(e[i])}:Bh(e[i],p2(t)?{}:t[i],n[i]):n[i]=!Oa(e[i],t[i]);return n}var ls=(e,t)=>Bh(e,t,Z4(t));const Lh={value:!1,isValid:!1},Th={value:!0,isValid:!0};var Rh=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ir(e[0].attributes.value)?ir(e[0].value)||e[0].value===""?Th:{value:e[0].value,isValid:!0}:Th:Lh}return Lh},Dh=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ir(e)?e:t?e===""?NaN:e&&+e:n&&Qi(e)?new Date(e):r?r(e):e;const Vh={isValid:!1,value:null};var Hh=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Vh):Vh;function Nh(e){const t=e.ref;return m9(t)?t.files:v9(t)?Hh(e.refs).value:Ph(t)?[...t.selectedOptions].map(({value:n})=>n):is(t)?Rh(e.refs).value:Dh(ir(t.value)?e.ref.value:t.value,e)}var TS=(e,t,n,r)=>{const i={};for(const l of e){const c=J1(t,l);c&&Mn(i,l,c._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},X4=e=>e instanceof RegExp,ss=e=>ir(e)?e:X4(e)?e.source:or(e)?X4(e.value)?e.value.source:e.value:e,Qh=e=>({isOnSubmit:!e||e===ci.onSubmit,isOnBlur:e===ci.onBlur,isOnChange:e===ci.onChange,isOnAll:e===ci.all,isOnTouch:e===ci.onTouched});const Wh="AsyncFunction";var RS=e=>!!e&&!!e.validate&&!!(ui(e.validate)&&e.validate.constructor.name===Wh||or(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Wh)),DS=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),jh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const cs=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const l=J1(e,i);if(l){const{_f:c,...u}=l;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],i)&&!r)return!0;if(c.ref&&t(c.ref,c.name)&&!r)return!0;if(cs(u,t))break}else if(or(u)&&cs(u,t))break}}};function Gh(e,t,n){const r=J1(e,n);if(r||Y4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const l=i.join("."),c=J1(t,l),u=J1(e,l);if(c&&!Array.isArray(c)&&n!==l)return{name:n};if(u&&u.type)return{name:l,error:u};if(u&&u.root&&u.root.type)return{name:`${l}.root`,error:u.root};i.pop()}return{name:n}}var VS=(e,t,n,r)=>{n(e);const{name:i,...l}=e;return k2(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(c=>t[c]===(!r||ci.all))},HS=(e,t,n)=>!e||!t||e===t||as(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),NS=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,QS=(e,t)=>!d9(J1(e,t)).length&&hr(e,t),WS=(e,t,n)=>{const r=as(J1(e,n));return Mn(r,"root",t[n]),Mn(e,n,r),e},_4=e=>Qi(e);function Uh(e,t,n="validate"){if(_4(e)||Array.isArray(e)&&e.every(_4)||ro(e)&&!e)return{type:n,message:_4(e)?e:"",ref:t}}var A0=e=>or(e)&&!X4(e)?e:{value:e,message:""},Kh=async(e,t,n,r,i,l)=>{const{ref:c,refs:u,required:h,maxLength:g,minLength:d,min:m,max:v,pattern:w,validate:C,name:b,valueAsNumber:F,mount:x}=e._f,M=J1(n,b);if(!x||t.has(b))return{};const E=u?u[0]:c,k=ee=>{i&&E.reportValidity&&(E.setCustomValidity(ro(ee)?"":ee||""),E.reportValidity())},V={},L=v9(c),D=is(c),H=L||D,q=(F||m9(c))&&ir(c.value)&&ir(M)||J4(c)&&c.value===""||M===""||Array.isArray(M)&&!M.length,Z=zh.bind(null,b,r,V),_=(ee,K,Q,Y=Pa.maxLength,J=Pa.minLength)=>{const te=ee?K:Q;V[b]={type:ee?Y:J,message:te,ref:c,...Z(ee?Y:J,te)}};if(l?!Array.isArray(M)||!M.length:h&&(!H&&(q||p2(M))||ro(M)&&!M||D&&!Rh(u).isValid||L&&!Hh(u).isValid)){const{value:ee,message:K}=_4(h)?{value:!!h,message:h}:A0(h);if(ee&&(V[b]={type:Pa.required,message:K,ref:E,...Z(Pa.required,K)},!r))return k(K),V}if(!q&&(!p2(m)||!p2(v))){let ee,K;const Q=A0(v),Y=A0(m);if(!p2(M)&&!isNaN(M)){const J=c.valueAsNumber||M&&+M;p2(Q.value)||(ee=J>Q.value),p2(Y.value)||(K=J<Y.value)}else{const J=c.valueAsDate||new Date(M),te=ne=>new Date(new Date().toDateString()+" "+ne),$=c.type=="time",X=c.type=="week";Qi(Q.value)&&M&&(ee=$?te(M)>te(Q.value):X?M>Q.value:J>new Date(Q.value)),Qi(Y.value)&&M&&(K=$?te(M)<te(Y.value):X?M<Y.value:J<new Date(Y.value))}if((ee||K)&&(_(!!ee,Q.message,Y.message,Pa.max,Pa.min),!r))return k(V[b].message),V}if((g||d)&&!q&&(Qi(M)||l&&Array.isArray(M))){const ee=A0(g),K=A0(d),Q=!p2(ee.value)&&M.length>+ee.value,Y=!p2(K.value)&&M.length<+K.value;if((Q||Y)&&(_(Q,ee.message,K.message),!r))return k(V[b].message),V}if(w&&!q&&Qi(M)){const{value:ee,message:K}=A0(w);if(X4(ee)&&!M.match(ee)&&(V[b]={type:Pa.pattern,message:K,ref:c,...Z(Pa.pattern,K)},!r))return k(K),V}if(C){if(ui(C)){const ee=await C(M,n),K=Uh(ee,E);if(K&&(V[b]={...K,...Z(Pa.validate,K.message)},!r))return k(K.message),V}else if(or(C)){let ee={};for(const K in C){if(!k2(ee)&&!r)break;const Q=Uh(await C[K](M,n),E,K);Q&&(ee={...Q,...Z(K,Q.message)},k(Q.message),r&&(V[b]=ee))}if(!k2(ee)&&(V[b]={ref:E,...ee},!r))return V}}return k(!0),V};const jS={mode:ci.onSubmit,reValidateMode:ci.onChange,shouldFocusError:!0};function GS(e={}){let t={...jS,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ui(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=or(t.defaultValues)||or(t.values)?wr(t.defaultValues||t.values)||{}:{},l=t.shouldUnregister?{}:wr(i),c={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,g=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...d};const v={array:kh(),state:kh()},w=t.criteriaMode===ci.all,C=he=>we=>{clearTimeout(g),g=setTimeout(he,we)},b=async he=>{if(!t.disabled&&(d.isValid||m.isValid||he)){const we=t.resolver?k2((await D()).errors):await q(r,!0);we!==n.isValid&&v.state.next({isValid:we})}},F=(he,we)=>{!t.disabled&&(d.isValidating||d.validatingFields||m.isValidating||m.validatingFields)&&((he||Array.from(u.mount)).forEach(Se=>{Se&&(we?Mn(n.validatingFields,Se,we):hr(n.validatingFields,Se))}),v.state.next({validatingFields:n.validatingFields,isValidating:!k2(n.validatingFields)}))},x=(he,we=[],Se,xe,Pe=!0,Me=!0)=>{if(xe&&Se&&!t.disabled){if(c.action=!0,Me&&Array.isArray(J1(r,he))){const Te=Se(J1(r,he),xe.argA,xe.argB);Pe&&Mn(r,he,Te)}if(Me&&Array.isArray(J1(n.errors,he))){const Te=Se(J1(n.errors,he),xe.argA,xe.argB);Pe&&Mn(n.errors,he,Te),QS(n.errors,he)}if((d.touchedFields||m.touchedFields)&&Me&&Array.isArray(J1(n.touchedFields,he))){const Te=Se(J1(n.touchedFields,he),xe.argA,xe.argB);Pe&&Mn(n.touchedFields,he,Te)}(d.dirtyFields||m.dirtyFields)&&(n.dirtyFields=ls(i,l)),v.state.next({name:he,isDirty:_(he,we),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Mn(l,he,we)},M=(he,we)=>{Mn(n.errors,he,we),v.state.next({errors:n.errors})},E=he=>{n.errors=he,v.state.next({errors:n.errors,isValid:!1})},k=(he,we,Se,xe)=>{const Pe=J1(r,he);if(Pe){const Me=J1(l,he,ir(Se)?J1(i,he):Se);ir(Me)||xe&&xe.defaultChecked||we?Mn(l,he,we?Me:Nh(Pe._f)):Q(he,Me),c.mount&&b()}},V=(he,we,Se,xe,Pe)=>{let Me=!1,Te=!1;const Xe={name:he};if(!t.disabled){if(!Se||xe){(d.isDirty||m.isDirty)&&(Te=n.isDirty,n.isDirty=Xe.isDirty=_(),Me=Te!==Xe.isDirty);const je=Oa(J1(i,he),we);Te=!!J1(n.dirtyFields,he),je?hr(n.dirtyFields,he):Mn(n.dirtyFields,he,!0),Xe.dirtyFields=n.dirtyFields,Me=Me||(d.dirtyFields||m.dirtyFields)&&Te!==!je}if(Se){const je=J1(n.touchedFields,he);je||(Mn(n.touchedFields,he,Se),Xe.touchedFields=n.touchedFields,Me=Me||(d.touchedFields||m.touchedFields)&&je!==Se)}Me&&Pe&&v.state.next(Xe)}return Me?Xe:{}},L=(he,we,Se,xe)=>{const Pe=J1(n.errors,he),Me=(d.isValid||m.isValid)&&ro(we)&&n.isValid!==we;if(t.delayError&&Se?(h=C(()=>M(he,Se)),h(t.delayError)):(clearTimeout(g),h=null,Se?Mn(n.errors,he,Se):hr(n.errors,he)),(Se?!Oa(Pe,Se):Pe)||!k2(xe)||Me){const Te={...xe,...Me&&ro(we)?{isValid:we}:{},errors:n.errors,name:he};n={...n,...Te},v.state.next(Te)}},D=async he=>{F(he,!0);const we=await t.resolver(l,t.context,TS(he||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return F(he),we},H=async he=>{const{errors:we}=await D(he);if(he)for(const Se of he){const xe=J1(we,Se);xe?Mn(n.errors,Se,xe):hr(n.errors,Se)}else n.errors=we;return we},q=async(he,we,Se={valid:!0})=>{for(const xe in he){const Pe=he[xe];if(Pe){const{_f:Me,...Te}=Pe;if(Me){const Xe=u.array.has(Me.name),je=Pe._f&&RS(Pe._f);je&&d.validatingFields&&F([xe],!0);const We=await Kh(Pe,u.disabled,l,w,t.shouldUseNativeValidation&&!we,Xe);if(je&&d.validatingFields&&F([xe]),We[Me.name]&&(Se.valid=!1,we))break;!we&&(J1(We,Me.name)?Xe?WS(n.errors,We,Me.name):Mn(n.errors,Me.name,We[Me.name]):hr(n.errors,Me.name))}!k2(Te)&&await q(Te,we,Se)}}return Se.valid},Z=()=>{for(const he of u.unMount){const we=J1(r,he);we&&(we._f.refs?we._f.refs.every(Se=>!C9(Se)):!C9(we._f.ref))&&ye(he)}u.unMount=new Set},_=(he,we)=>!t.disabled&&(he&&we&&Mn(l,he,we),!Oa(ne(),i)),ee=(he,we,Se)=>Mh(he,u,{...c.mount?l:ir(we)?i:Qi(he)?{[he]:we}:we},Se,we),K=he=>d9(J1(c.mount?l:i,he,t.shouldUnregister?J1(i,he,[]):[])),Q=(he,we,Se={})=>{const xe=J1(r,he);let Pe=we;if(xe){const Me=xe._f;Me&&(!Me.disabled&&Mn(l,he,Dh(we,Me)),Pe=J4(Me.ref)&&p2(we)?"":we,Ph(Me.ref)?[...Me.ref.options].forEach(Te=>Te.selected=Pe.includes(Te.value)):Me.refs?is(Me.ref)?Me.refs.forEach(Te=>{(!Te.defaultChecked||!Te.disabled)&&(Array.isArray(Pe)?Te.checked=!!Pe.find(Xe=>Xe===Te.value):Te.checked=Pe===Te.value||!!Pe)}):Me.refs.forEach(Te=>Te.checked=Te.value===Pe):m9(Me.ref)?Me.ref.value="":(Me.ref.value=Pe,Me.ref.type||v.state.next({name:he,values:wr(l)})))}(Se.shouldDirty||Se.shouldTouch)&&V(he,Pe,Se.shouldTouch,Se.shouldDirty,!0),Se.shouldValidate&&X(he)},Y=(he,we,Se)=>{for(const xe in we){if(!we.hasOwnProperty(xe))return;const Pe=we[xe],Me=he+"."+xe,Te=J1(r,Me);(u.array.has(he)||or(Pe)||Te&&!Te._f)&&!w3(Pe)?Y(Me,Pe,Se):Q(Me,Pe,Se)}},J=(he,we,Se={})=>{const xe=J1(r,he),Pe=u.array.has(he),Me=wr(we);Mn(l,he,Me),Pe?(v.array.next({name:he,values:wr(l)}),(d.isDirty||d.dirtyFields||m.isDirty||m.dirtyFields)&&Se.shouldDirty&&v.state.next({name:he,dirtyFields:ls(i,l),isDirty:_(he,Me)})):xe&&!xe._f&&!p2(Me)?Y(he,Me,Se):Q(he,Me,Se),jh(he,u)&&v.state.next({...n,name:he}),v.state.next({name:c.mount?he:void 0,values:wr(l)})},te=async he=>{c.mount=!0;const we=he.target;let Se=we.name,xe=!0;const Pe=J1(r,Se),Me=je=>{xe=Number.isNaN(je)||w3(je)&&isNaN(je.getTime())||Oa(je,J1(l,Se,je))},Te=Qh(t.mode),Xe=Qh(t.reValidateMode);if(Pe){let je,We;const Ke=we.type?Nh(Pe._f):Sh(he),L1=he.type===q4.BLUR||he.type===q4.FOCUS_OUT,S1=!DS(Pe._f)&&!t.resolver&&!J1(n.errors,Se)&&!Pe._f.deps||NS(L1,J1(n.touchedFields,Se),n.isSubmitted,Xe,Te),De=jh(Se,u,L1);Mn(l,Se,Ke),L1?(Pe._f.onBlur&&Pe._f.onBlur(he),h&&h(0)):Pe._f.onChange&&Pe._f.onChange(he);const w1=V(Se,Ke,L1),a1=!k2(w1)||De;if(!L1&&v.state.next({name:Se,type:he.type,values:wr(l)}),S1)return(d.isValid||m.isValid)&&(t.mode==="onBlur"?L1&&b():L1||b()),a1&&v.state.next({name:Se,...De?{}:w1});if(!L1&&De&&v.state.next({...n}),t.resolver){const{errors:E1}=await D([Se]);if(Me(Ke),xe){const $1=Gh(n.errors,r,Se),et=Gh(E1,r,$1.name||Se);je=et.error,Se=et.name,We=k2(E1)}}else F([Se],!0),je=(await Kh(Pe,u.disabled,l,w,t.shouldUseNativeValidation))[Se],F([Se]),Me(Ke),xe&&(je?We=!1:(d.isValid||m.isValid)&&(We=await q(r,!0)));xe&&(Pe._f.deps&&X(Pe._f.deps),L(Se,We,je,w1))}},$=(he,we)=>{if(J1(n.errors,we)&&he.focus)return he.focus(),1},X=async(he,we={})=>{let Se,xe;const Pe=as(he);if(t.resolver){const Me=await H(ir(he)?he:Pe);Se=k2(Me),xe=he?!Pe.some(Te=>J1(Me,Te)):Se}else he?(xe=(await Promise.all(Pe.map(async Me=>{const Te=J1(r,Me);return await q(Te&&Te._f?{[Me]:Te}:Te)}))).every(Boolean),!(!xe&&!n.isValid)&&b()):xe=Se=await q(r);return v.state.next({...!Qi(he)||(d.isValid||m.isValid)&&Se!==n.isValid?{}:{name:he},...t.resolver||!he?{isValid:Se}:{},errors:n.errors}),we.shouldFocus&&!xe&&cs(r,$,he?Pe:u.mount),xe},ne=he=>{const we={...c.mount?l:i};return ir(he)?we:Qi(he)?J1(we,he):he.map(Se=>J1(we,Se))},be=(he,we)=>({invalid:!!J1((we||n).errors,he),isDirty:!!J1((we||n).dirtyFields,he),error:J1((we||n).errors,he),isValidating:!!J1(n.validatingFields,he),isTouched:!!J1((we||n).touchedFields,he)}),me=he=>{he&&as(he).forEach(we=>hr(n.errors,we)),v.state.next({errors:he?n.errors:{}})},Be=(he,we,Se)=>{const xe=(J1(r,he,{_f:{}})._f||{}).ref,Pe=J1(n.errors,he)||{},{ref:Me,message:Te,type:Xe,...je}=Pe;Mn(n.errors,he,{...je,...we,ref:xe}),v.state.next({name:he,errors:n.errors,isValid:!1}),Se&&Se.shouldFocus&&xe&&xe.focus&&xe.focus()},ze=(he,we)=>ui(he)?v.state.subscribe({next:Se=>"values"in Se&&he(ee(void 0,we),Se)}):ee(he,we,!0),se=he=>v.state.subscribe({next:we=>{HS(he.name,we.name,he.exact)&&VS(we,he.formState||d,C1,he.reRenderRoot)&&he.callback({values:{...l},...n,...we,defaultValues:i})}}).unsubscribe,pe=he=>(c.mount=!0,m={...m,...he.formState},se({...he,formState:m})),ye=(he,we={})=>{for(const Se of he?as(he):u.mount)u.mount.delete(Se),u.array.delete(Se),we.keepValue||(hr(r,Se),hr(l,Se)),!we.keepError&&hr(n.errors,Se),!we.keepDirty&&hr(n.dirtyFields,Se),!we.keepTouched&&hr(n.touchedFields,Se),!we.keepIsValidating&&hr(n.validatingFields,Se),!t.shouldUnregister&&!we.keepDefaultValue&&hr(i,Se);v.state.next({values:wr(l)}),v.state.next({...n,...we.keepDirty?{isDirty:_()}:{}}),!we.keepIsValid&&b()},Fe=({disabled:he,name:we})=>{(ro(he)&&c.mount||!!he||u.disabled.has(we))&&(he?u.disabled.add(we):u.disabled.delete(we))},Ne=(he,we={})=>{let Se=J1(r,he);const xe=ro(we.disabled)||ro(t.disabled);return Mn(r,he,{...Se||{},_f:{...Se&&Se._f?Se._f:{ref:{name:he}},name:he,mount:!0,...we}}),u.mount.add(he),Se?Fe({disabled:ro(we.disabled)?we.disabled:t.disabled,name:he}):k(he,!0,we.value),{...xe?{disabled:we.disabled||t.disabled}:{},...t.progressive?{required:!!we.required,min:ss(we.min),max:ss(we.max),minLength:ss(we.minLength),maxLength:ss(we.maxLength),pattern:ss(we.pattern)}:{},name:he,onChange:te,onBlur:te,ref:Pe=>{if(Pe){Ne(he,we),Se=J1(r,he);const Me=ir(Pe.value)&&Pe.querySelectorAll&&Pe.querySelectorAll("input,select,textarea")[0]||Pe,Te=OS(Me),Xe=Se._f.refs||[];if(Te?Xe.find(je=>je===Me):Me===Se._f.ref)return;Mn(r,he,{_f:{...Se._f,...Te?{refs:[...Xe.filter(C9),Me,...Array.isArray(J1(i,he))?[{}]:[]],ref:{type:Me.type,name:he}}:{ref:Me}}}),k(he,!1,void 0,Me)}else Se=J1(r,he,{}),Se._f&&(Se._f.mount=!1),(t.shouldUnregister||we.shouldUnregister)&&!(Ah(u.array,he)&&c.action)&&u.unMount.add(he)}}},Oe=()=>t.shouldFocusError&&cs(r,$,u.mount),_e=he=>{ro(he)&&(v.state.next({disabled:he}),cs(r,(we,Se)=>{const xe=J1(r,Se);xe&&(we.disabled=xe._f.disabled||he,Array.isArray(xe._f.refs)&&xe._f.refs.forEach(Pe=>{Pe.disabled=xe._f.disabled||he}))},0,!1))},l1=(he,we)=>async Se=>{let xe;Se&&(Se.preventDefault&&Se.preventDefault(),Se.persist&&Se.persist());let Pe=wr(l);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:Me,values:Te}=await D();n.errors=Me,Pe=wr(Te)}else await q(r);if(u.disabled.size)for(const Me of u.disabled)hr(Pe,Me);if(hr(n.errors,"root"),k2(n.errors)){v.state.next({errors:{}});try{await he(Pe,Se)}catch(Me){xe=Me}}else we&&await we({...n.errors},Se),Oe(),setTimeout(Oe);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:k2(n.errors)&&!xe,submitCount:n.submitCount+1,errors:n.errors}),xe)throw xe},Ie=(he,we={})=>{J1(r,he)&&(ir(we.defaultValue)?J(he,wr(J1(i,he))):(J(he,we.defaultValue),Mn(i,he,wr(we.defaultValue))),we.keepTouched||hr(n.touchedFields,he),we.keepDirty||(hr(n.dirtyFields,he),n.isDirty=we.defaultValue?_(he,wr(J1(i,he))):_()),we.keepError||(hr(n.errors,he),d.isValid&&b()),v.state.next({...n}))},Je=(he,we={})=>{const Se=he?wr(he):i,xe=wr(Se),Pe=k2(he),Me=Pe?i:xe;if(we.keepDefaultValues||(i=Se),!we.keepValues){if(we.keepDirtyValues){const Te=new Set([...u.mount,...Object.keys(ls(i,l))]);for(const Xe of Array.from(Te))J1(n.dirtyFields,Xe)?Mn(Me,Xe,J1(l,Xe)):J(Xe,J1(Me,Xe))}else{if(u9&&ir(he))for(const Te of u.mount){const Xe=J1(r,Te);if(Xe&&Xe._f){const je=Array.isArray(Xe._f.refs)?Xe._f.refs[0]:Xe._f.ref;if(J4(je)){const We=je.closest("form");if(We){We.reset();break}}}}if(we.keepFieldsRef)for(const Te of u.mount)J(Te,J1(Me,Te));else r={}}l=t.shouldUnregister?we.keepDefaultValues?wr(i):{}:wr(Me),v.array.next({values:{...Me}}),v.state.next({values:{...Me}})}u={mount:we.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!d.isValid||!!we.keepIsValid||!!we.keepDirtyValues,c.watch=!!t.shouldUnregister,v.state.next({submitCount:we.keepSubmitCount?n.submitCount:0,isDirty:Pe?!1:we.keepDirty?n.isDirty:!!(we.keepDefaultValues&&!Oa(he,i)),isSubmitted:we.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Pe?{}:we.keepDirtyValues?we.keepDefaultValues&&l?ls(i,l):n.dirtyFields:we.keepDefaultValues&&he?ls(i,he):we.keepDirty?n.dirtyFields:{},touchedFields:we.keepTouched?n.touchedFields:{},errors:we.keepErrors?n.errors:{},isSubmitSuccessful:we.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},o1=(he,we)=>Je(ui(he)?he(l):he,we),r1=(he,we={})=>{const Se=J1(r,he),xe=Se&&Se._f;if(xe){const Pe=xe.refs?xe.refs[0]:xe.ref;Pe.focus&&(Pe.focus(),we.shouldSelect&&ui(Pe.select)&&Pe.select())}},C1=he=>{n={...n,...he}},B1={control:{register:Ne,unregister:ye,getFieldState:be,handleSubmit:l1,setError:Be,_subscribe:se,_runSchema:D,_focusError:Oe,_getWatch:ee,_getDirty:_,_setValid:b,_setFieldArray:x,_setDisabledField:Fe,_setErrors:E,_getFieldArray:K,_reset:Je,_resetDefaultValues:()=>ui(t.defaultValues)&&t.defaultValues().then(he=>{o1(he,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:Z,_disableForm:_e,_subjects:v,_proxyFormState:d,get _fields(){return r},get _formValues(){return l},get _state(){return c},set _state(he){c=he},get _defaultValues(){return i},get _names(){return u},set _names(he){u=he},get _formState(){return n},get _options(){return t},set _options(he){t={...t,...he}}},subscribe:pe,trigger:X,register:Ne,handleSubmit:l1,watch:ze,setValue:J,getValues:ne,reset:o1,resetField:Ie,clearErrors:me,unregister:ye,setError:Be,setFocus:r1,getFieldState:be};return{...B1,formControl:B1}}function $4(e={}){const t=Z1.default.useRef(void 0),n=Z1.default.useRef(void 0),[r,i]=Z1.default.useState({isDirty:!1,isValidating:!1,isLoading:ui(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ui(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!ui(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...u}=GS(e);t.current={...u,formState:r}}const l=t.current.control;return l._options=e,p9(()=>{const c=l._subscribe({formState:l._proxyFormState,callback:()=>i({...l._formState}),reRenderRoot:!0});return i(u=>({...u,isReady:!0})),l._formState.isReady=!0,c},[l]),Z1.default.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),Z1.default.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),Z1.default.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),Z1.default.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),Z1.default.useEffect(()=>{if(l._proxyFormState.isDirty){const c=l._getDirty();c!==r.isDirty&&l._subjects.state.next({isDirty:c})}},[l,r.isDirty]),Z1.default.useEffect(()=>{e.values&&!Oa(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),n.current=e.values,i(c=>({...c}))):l._resetDefaultValues()},[l,e.values]),Z1.default.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=Fh(r,l),t.current}var b9;try{b9=Map}catch{}var y9;try{y9=Set}catch{}function Yh(e,t,n){if(!e||typeof e!="object"||typeof e=="function")return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(w9);if(b9&&e instanceof b9)return new Map(Array.from(e.entries()));if(y9&&e instanceof y9)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);n.push(r);for(var i in e){var l=t.findIndex(function(c){return c===e[i]});r[i]=l>-1?n[l]:Yh(e[i],t,n)}return r}return e}function w9(e){return Yh(e,[],[])}const US=Object.prototype.toString,KS=Error.prototype.toString,YS=RegExp.prototype.toString,qS=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",JS=/^Symbol\((.*)\)(.*)$/;function ZS(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function qh(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return ZS(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return qS.call(e).replace(JS,"Symbol($1)");const r=US.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+KS.call(e)+"]":r==="RegExp"?YS.call(e):null}function us(e,t){let n=qh(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let l=qh(this[r],t);return l!==null?l:i},2)}let I3={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=r!=null&&r!==n,l=`${e} must be a \`${t}\` type, but the final value was: \`${us(n,!0)}\``+(i?` (cast from the value \`${us(r,!0)}\`).`:".");return n===null&&(l+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),l},defined:"${path} must be defined"},di={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},XS={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},I9={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},_S={isValue:"${path} field must be ${value}"},E9={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:I3,string:di,number:XS,date:I9,object:E9,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:_S});var $S=Object.prototype,eA=$S.hasOwnProperty;function tA(e,t){return e!=null&&eA.call(e,t)}var nA=tA,rA=Array.isArray,yl=rA,oA=typeof vl=="object"&&vl&&vl.Object===Object&&vl,Jh=oA,iA=Jh,aA=typeof self=="object"&&self&&self.Object===Object&&self,lA=iA||aA||Function("return this")(),Ba=lA,sA=Ba,cA=sA.Symbol,e5=cA,Zh=e5,Xh=Object.prototype,uA=Xh.hasOwnProperty,dA=Xh.toString,ds=Zh?Zh.toStringTag:void 0;function hA(e){var t=uA.call(e,ds),n=e[ds];try{e[ds]=void 0;var r=!0}catch{}var i=dA.call(e);return r&&(t?e[ds]=n:delete e[ds]),i}var fA=hA,pA=Object.prototype,gA=pA.toString;function mA(e){return gA.call(e)}var vA=mA,_h=e5,CA=fA,bA=vA,yA="[object Null]",wA="[object Undefined]",$h=_h?_h.toStringTag:void 0;function IA(e){return e==null?e===void 0?wA:yA:$h&&$h in Object(e)?CA(e):bA(e)}var hs=IA;function EA(e){return e!=null&&typeof e=="object"}var fs=EA,SA=hs,AA=fs,xA="[object Symbol]";function FA(e){return typeof e=="symbol"||AA(e)&&SA(e)==xA}var S9=FA,MA=yl,zA=S9,kA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PA=/^\w*$/;function OA(e,t){if(MA(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zA(e)?!0:PA.test(e)||!kA.test(e)||t!=null&&e in Object(t)}var A9=OA;function BA(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var x9=BA,LA=hs,TA=x9,RA="[object AsyncFunction]",DA="[object Function]",VA="[object GeneratorFunction]",HA="[object Proxy]";function NA(e){if(!TA(e))return!1;var t=LA(e);return t==DA||t==VA||t==RA||t==HA}var ef=NA,QA=Ba,WA=QA["__core-js_shared__"],jA=WA,F9=jA,tf=function(){var e=/[^.]+$/.exec(F9&&F9.keys&&F9.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function GA(e){return!!tf&&tf in e}var UA=GA,KA=Function.prototype,YA=KA.toString;function qA(e){if(e!=null){try{return YA.call(e)}catch{}try{return e+""}catch{}}return""}var nf=qA,JA=ef,ZA=UA,XA=x9,_A=nf,$A=/[\\^$.*+?()[\]{}|]/g,ex=/^\[object .+?Constructor\]$/,tx=Function.prototype,nx=Object.prototype,rx=tx.toString,ox=nx.hasOwnProperty,ix=RegExp("^"+rx.call(ox).replace($A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ax(e){if(!XA(e)||ZA(e))return!1;var t=JA(e)?ix:ex;return t.test(_A(e))}var lx=ax;function sx(e,t){return e==null?void 0:e[t]}var cx=sx,ux=lx,dx=cx;function hx(e,t){var n=dx(e,t);return ux(n)?n:void 0}var E3=hx,fx=E3,px=fx(Object,"create"),t5=px,rf=t5;function gx(){this.__data__=rf?rf(null):{},this.size=0}var mx=gx;function vx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Cx=vx,bx=t5,yx="__lodash_hash_undefined__",wx=Object.prototype,Ix=wx.hasOwnProperty;function Ex(e){var t=this.__data__;if(bx){var n=t[e];return n===yx?void 0:n}return Ix.call(t,e)?t[e]:void 0}var Sx=Ex,Ax=t5,xx=Object.prototype,Fx=xx.hasOwnProperty;function Mx(e){var t=this.__data__;return Ax?t[e]!==void 0:Fx.call(t,e)}var zx=Mx,kx=t5,Px="__lodash_hash_undefined__";function Ox(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kx&&t===void 0?Px:t,this}var Bx=Ox,Lx=mx,Tx=Cx,Rx=Sx,Dx=zx,Vx=Bx;function x0(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}x0.prototype.clear=Lx,x0.prototype.delete=Tx,x0.prototype.get=Rx,x0.prototype.has=Dx,x0.prototype.set=Vx;var Hx=x0;function Nx(){this.__data__=[],this.size=0}var Qx=Nx;function Wx(e,t){return e===t||e!==e&&t!==t}var of=Wx,jx=of;function Gx(e,t){for(var n=e.length;n--;)if(jx(e[n][0],t))return n;return-1}var n5=Gx,Ux=n5,Kx=Array.prototype,Yx=Kx.splice;function qx(e){var t=this.__data__,n=Ux(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Yx.call(t,n,1),--this.size,!0}var Jx=qx,Zx=n5;function Xx(e){var t=this.__data__,n=Zx(t,e);return n<0?void 0:t[n][1]}var _x=Xx,$x=n5;function eF(e){return $x(this.__data__,e)>-1}var tF=eF,nF=n5;function rF(e,t){var n=this.__data__,r=nF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var oF=rF,iF=Qx,aF=Jx,lF=_x,sF=tF,cF=oF;function F0(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}F0.prototype.clear=iF,F0.prototype.delete=aF,F0.prototype.get=lF,F0.prototype.has=sF,F0.prototype.set=cF;var r5=F0,uF=E3,dF=Ba,hF=uF(dF,"Map"),M9=hF,af=Hx,fF=r5,pF=M9;function gF(){this.size=0,this.__data__={hash:new af,map:new(pF||fF),string:new af}}var mF=gF;function vF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CF=vF,bF=CF;function yF(e,t){var n=e.__data__;return bF(t)?n[typeof t=="string"?"string":"hash"]:n.map}var o5=yF,wF=o5;function IF(e){var t=wF(this,e).delete(e);return this.size-=t?1:0,t}var EF=IF,SF=o5;function AF(e){return SF(this,e).get(e)}var xF=AF,FF=o5;function MF(e){return FF(this,e).has(e)}var zF=MF,kF=o5;function PF(e,t){var n=kF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var OF=PF,BF=mF,LF=EF,TF=xF,RF=zF,DF=OF;function M0(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}M0.prototype.clear=BF,M0.prototype.delete=LF,M0.prototype.get=TF,M0.prototype.has=RF,M0.prototype.set=DF;var z9=M0,lf=z9,VF="Expected a function";function k9(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(VF);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],l=n.cache;if(l.has(i))return l.get(i);var c=e.apply(this,r);return n.cache=l.set(i,c)||l,c};return n.cache=new(k9.Cache||lf),n}k9.Cache=lf;var HF=k9,NF=HF,QF=500;function WF(e){var t=NF(e,function(r){return n.size===QF&&n.clear(),r}),n=t.cache;return t}var jF=WF,GF=jF,UF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KF=/\\(\\)?/g,YF=GF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(UF,function(n,r,i,l){t.push(i?l.replace(KF,"$1"):r||n)}),t}),qF=YF;function JF(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ZF=JF,sf=e5,XF=ZF,_F=yl,$F=S9,eM=1/0,cf=sf?sf.prototype:void 0,uf=cf?cf.toString:void 0;function df(e){if(typeof e=="string")return e;if(_F(e))return XF(e,df)+"";if($F(e))return uf?uf.call(e):"";var t=e+"";return t=="0"&&1/e==-eM?"-0":t}var tM=df,nM=tM;function rM(e){return e==null?"":nM(e)}var ps=rM,oM=yl,iM=A9,aM=qF,lM=ps;function sM(e,t){return oM(e)?e:iM(e,t)?[e]:aM(lM(e))}var hf=sM,cM=hs,uM=fs,dM="[object Arguments]";function hM(e){return uM(e)&&cM(e)==dM}var fM=hM,ff=fM,pM=fs,pf=Object.prototype,gM=pf.hasOwnProperty,mM=pf.propertyIsEnumerable,vM=ff(function(){return arguments}())?ff:function(e){return pM(e)&&gM.call(e,"callee")&&!mM.call(e,"callee")},gf=vM,CM=9007199254740991,bM=/^(?:0|[1-9]\d*)$/;function yM(e,t){var n=typeof e;return t=t==null?CM:t,!!t&&(n=="number"||n!="symbol"&&bM.test(e))&&e>-1&&e%1==0&&e<t}var mf=yM,wM=9007199254740991;function IM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wM}var P9=IM,EM=S9,SM=1/0;function AM(e){if(typeof e=="string"||EM(e))return e;var t=e+"";return t=="0"&&1/e==-SM?"-0":t}var i5=AM,xM=hf,FM=gf,MM=yl,zM=mf,kM=P9,PM=i5;function OM(e,t,n){t=xM(t,e);for(var r=-1,i=t.length,l=!1;++r<i;){var c=PM(t[r]);if(!(l=e!=null&&n(e,c)))break;e=e[c]}return l||++r!=i?l:(i=e==null?0:e.length,!!i&&kM(i)&&zM(c,i)&&(MM(e)||FM(e)))}var vf=OM,BM=nA,LM=vf;function TM(e,t){return e!=null&&LM(e,t,BM)}var a5=TM;const Cf=e=>e&&e.__isYupSchema__;class RM{constructor(t,n){if(this.fn=void 0,this.refs=t,this.refs=t,typeof n=="function"){this.fn=n;return}if(!a5(n,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:l}=n,c=typeof r=="function"?r:(...u)=>u.every(h=>h===r);this.fn=function(...u){let h=u.pop(),g=u.pop(),d=c(...u)?i:l;if(!!d)return typeof d=="function"?d(g):g.concat(d.resolve(h))}}resolve(t,n){let r=this.refs.map(l=>l.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn.apply(t,r.concat(t,n));if(i===void 0||i===t)return t;if(!Cf(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}function bf(e){return e==null?[]:[].concat(e)}function O9(){return O9=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O9.apply(this,arguments)}let DM=/\$\{\s*(\w+)\s*\}/g;class oo extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=O9({},n,{path:r})),typeof t=="string"?t.replace(DM,(i,l)=>us(n[l])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],bf(t).forEach(l=>{oo.isError(l)?(this.errors.push(...l.errors),this.inner=this.inner.concat(l.inner.length?l.inner:l)):this.errors.push(l)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,oo)}}const VM=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function B9(e,t){let{endEarly:n,tests:r,args:i,value:l,errors:c,sort:u,path:h}=e,g=VM(t),d=r.length;const m=[];if(c=c||[],!d)return c.length?g(new oo(c,l,h)):g(null,l);for(let v=0;v<r.length;v++){const w=r[v];w(i,function(b){if(b){if(!oo.isError(b))return g(b,l);if(n)return b.value=l,g(b,l);m.push(b)}if(--d<=0){if(m.length&&(u&&m.sort(u),c.length&&m.push(...c),c=m),c.length){g(new oo(c,l,h),l);return}g(null,l)}})}}var HM=E3,NM=function(){try{var e=HM(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QM=NM,yf=QM;function WM(e,t,n){t=="__proto__"&&yf?yf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var wf=WM;function jM(e){return function(t,n,r){for(var i=-1,l=Object(t),c=r(t),u=c.length;u--;){var h=c[e?u:++i];if(n(l[h],h,l)===!1)break}return t}}var GM=jM,UM=GM,KM=UM(),YM=KM;function qM(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var JM=qM,l5={exports:{}};function ZM(){return!1}var XM=ZM;(function(e,t){var n=Ba,r=XM,i=t&&!t.nodeType&&t,l=i&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===i,u=c?n.Buffer:void 0,h=u?u.isBuffer:void 0,g=h||r;e.exports=g})(l5,l5.exports);var _M=hs,$M=P9,ez=fs,tz="[object Arguments]",nz="[object Array]",rz="[object Boolean]",oz="[object Date]",iz="[object Error]",az="[object Function]",lz="[object Map]",sz="[object Number]",cz="[object Object]",uz="[object RegExp]",dz="[object Set]",hz="[object String]",fz="[object WeakMap]",pz="[object ArrayBuffer]",gz="[object DataView]",mz="[object Float32Array]",vz="[object Float64Array]",Cz="[object Int8Array]",bz="[object Int16Array]",yz="[object Int32Array]",wz="[object Uint8Array]",Iz="[object Uint8ClampedArray]",Ez="[object Uint16Array]",Sz="[object Uint32Array]",Vn={};Vn[mz]=Vn[vz]=Vn[Cz]=Vn[bz]=Vn[yz]=Vn[wz]=Vn[Iz]=Vn[Ez]=Vn[Sz]=!0,Vn[tz]=Vn[nz]=Vn[pz]=Vn[rz]=Vn[gz]=Vn[oz]=Vn[iz]=Vn[az]=Vn[lz]=Vn[sz]=Vn[cz]=Vn[uz]=Vn[dz]=Vn[hz]=Vn[fz]=!1;function Az(e){return ez(e)&&$M(e.length)&&!!Vn[_M(e)]}var xz=Az;function Fz(e){return function(t){return e(t)}}var Mz=Fz,L9={exports:{}};(function(e,t){var n=Jh,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===r,c=l&&n.process,u=function(){try{var h=i&&i.require&&i.require("util").types;return h||c&&c.binding&&c.binding("util")}catch{}}();e.exports=u})(L9,L9.exports);var zz=xz,kz=Mz,If=L9.exports,Ef=If&&If.isTypedArray,Pz=Ef?kz(Ef):zz,Sf=Pz,Oz=JM,Bz=gf,Lz=yl,Tz=l5.exports,Rz=mf,Dz=Sf,Vz=Object.prototype,Hz=Vz.hasOwnProperty;function Nz(e,t){var n=Lz(e),r=!n&&Bz(e),i=!n&&!r&&Tz(e),l=!n&&!r&&!i&&Dz(e),c=n||r||i||l,u=c?Oz(e.length,String):[],h=u.length;for(var g in e)(t||Hz.call(e,g))&&!(c&&(g=="length"||i&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Rz(g,h)))&&u.push(g);return u}var Qz=Nz,Wz=Object.prototype;function jz(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Wz;return e===n}var Gz=jz;function Uz(e,t){return function(n){return e(t(n))}}var Kz=Uz,Yz=Kz,qz=Yz(Object.keys,Object),Jz=qz,Zz=Gz,Xz=Jz,_z=Object.prototype,$z=_z.hasOwnProperty;function ek(e){if(!Zz(e))return Xz(e);var t=[];for(var n in Object(e))$z.call(e,n)&&n!="constructor"&&t.push(n);return t}var tk=ek,nk=ef,rk=P9;function ok(e){return e!=null&&rk(e.length)&&!nk(e)}var ik=ok,ak=Qz,lk=tk,sk=ik;function ck(e){return sk(e)?ak(e):lk(e)}var T9=ck,uk=YM,dk=T9;function hk(e,t){return e&&uk(e,t,dk)}var Af=hk,fk=r5;function pk(){this.__data__=new fk,this.size=0}var gk=pk;function mk(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var vk=mk;function Ck(e){return this.__data__.get(e)}var bk=Ck;function yk(e){return this.__data__.has(e)}var wk=yk,Ik=r5,Ek=M9,Sk=z9,Ak=200;function xk(e,t){var n=this.__data__;if(n instanceof Ik){var r=n.__data__;if(!Ek||r.length<Ak-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sk(r)}return n.set(e,t),this.size=n.size,this}var Fk=xk,Mk=r5,zk=gk,kk=vk,Pk=bk,Ok=wk,Bk=Fk;function z0(e){var t=this.__data__=new Mk(e);this.size=t.size}z0.prototype.clear=zk,z0.prototype.delete=kk,z0.prototype.get=Pk,z0.prototype.has=Ok,z0.prototype.set=Bk;var xf=z0,Lk="__lodash_hash_undefined__";function Tk(e){return this.__data__.set(e,Lk),this}var Rk=Tk;function Dk(e){return this.__data__.has(e)}var Vk=Dk,Hk=z9,Nk=Rk,Qk=Vk;function s5(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Hk;++t<n;)this.add(e[t])}s5.prototype.add=s5.prototype.push=Nk,s5.prototype.has=Qk;var Wk=s5;function jk(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Gk=jk;function Uk(e,t){return e.has(t)}var Kk=Uk,Yk=Wk,qk=Gk,Jk=Kk,Zk=1,Xk=2;function _k(e,t,n,r,i,l){var c=n&Zk,u=e.length,h=t.length;if(u!=h&&!(c&&h>u))return!1;var g=l.get(e),d=l.get(t);if(g&&d)return g==t&&d==e;var m=-1,v=!0,w=n&Xk?new Yk:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var C=e[m],b=t[m];if(r)var F=c?r(b,C,m,t,e,l):r(C,b,m,e,t,l);if(F!==void 0){if(F)continue;v=!1;break}if(w){if(!qk(t,function(x,M){if(!Jk(w,M)&&(C===x||i(C,x,n,r,l)))return w.push(M)})){v=!1;break}}else if(!(C===b||i(C,b,n,r,l))){v=!1;break}}return l.delete(e),l.delete(t),v}var Ff=_k,$k=Ba,eP=$k.Uint8Array,tP=eP;function nP(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var rP=nP;function oP(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var iP=oP,Mf=e5,zf=tP,aP=of,lP=Ff,sP=rP,cP=iP,uP=1,dP=2,hP="[object Boolean]",fP="[object Date]",pP="[object Error]",gP="[object Map]",mP="[object Number]",vP="[object RegExp]",CP="[object Set]",bP="[object String]",yP="[object Symbol]",wP="[object ArrayBuffer]",IP="[object DataView]",kf=Mf?Mf.prototype:void 0,R9=kf?kf.valueOf:void 0;function EP(e,t,n,r,i,l,c){switch(n){case IP:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wP:return!(e.byteLength!=t.byteLength||!l(new zf(e),new zf(t)));case hP:case fP:case mP:return aP(+e,+t);case pP:return e.name==t.name&&e.message==t.message;case vP:case bP:return e==t+"";case gP:var u=sP;case CP:var h=r&uP;if(u||(u=cP),e.size!=t.size&&!h)return!1;var g=c.get(e);if(g)return g==t;r|=dP,c.set(e,t);var d=lP(u(e),u(t),r,i,l,c);return c.delete(e),d;case yP:if(R9)return R9.call(e)==R9.call(t)}return!1}var SP=EP;function AP(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var xP=AP,FP=xP,MP=yl;function zP(e,t,n){var r=t(e);return MP(e)?r:FP(r,n(e))}var kP=zP;function PP(e,t){for(var n=-1,r=e==null?0:e.length,i=0,l=[];++n<r;){var c=e[n];t(c,n,e)&&(l[i++]=c)}return l}var OP=PP;function BP(){return[]}var LP=BP,TP=OP,RP=LP,DP=Object.prototype,VP=DP.propertyIsEnumerable,Pf=Object.getOwnPropertySymbols,HP=Pf?function(e){return e==null?[]:(e=Object(e),TP(Pf(e),function(t){return VP.call(e,t)}))}:RP,NP=HP,QP=kP,WP=NP,jP=T9;function GP(e){return QP(e,jP,WP)}var UP=GP,Of=UP,KP=1,YP=Object.prototype,qP=YP.hasOwnProperty;function JP(e,t,n,r,i,l){var c=n&KP,u=Of(e),h=u.length,g=Of(t),d=g.length;if(h!=d&&!c)return!1;for(var m=h;m--;){var v=u[m];if(!(c?v in t:qP.call(t,v)))return!1}var w=l.get(e),C=l.get(t);if(w&&C)return w==t&&C==e;var b=!0;l.set(e,t),l.set(t,e);for(var F=c;++m<h;){v=u[m];var x=e[v],M=t[v];if(r)var E=c?r(M,x,v,t,e,l):r(x,M,v,e,t,l);if(!(E===void 0?x===M||i(x,M,n,r,l):E)){b=!1;break}F||(F=v=="constructor")}if(b&&!F){var k=e.constructor,V=t.constructor;k!=V&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof V=="function"&&V instanceof V)&&(b=!1)}return l.delete(e),l.delete(t),b}var ZP=JP,XP=E3,_P=Ba,$P=XP(_P,"DataView"),eO=$P,tO=E3,nO=Ba,rO=tO(nO,"Promise"),oO=rO,iO=E3,aO=Ba,lO=iO(aO,"Set"),sO=lO,cO=E3,uO=Ba,dO=cO(uO,"WeakMap"),hO=dO,D9=eO,V9=M9,H9=oO,N9=sO,Q9=hO,Bf=hs,k0=nf,Lf="[object Map]",fO="[object Object]",Tf="[object Promise]",Rf="[object Set]",Df="[object WeakMap]",Vf="[object DataView]",pO=k0(D9),gO=k0(V9),mO=k0(H9),vO=k0(N9),CO=k0(Q9),S3=Bf;(D9&&S3(new D9(new ArrayBuffer(1)))!=Vf||V9&&S3(new V9)!=Lf||H9&&S3(H9.resolve())!=Tf||N9&&S3(new N9)!=Rf||Q9&&S3(new Q9)!=Df)&&(S3=function(e){var t=Bf(e),n=t==fO?e.constructor:void 0,r=n?k0(n):"";if(r)switch(r){case pO:return Vf;case gO:return Lf;case mO:return Tf;case vO:return Rf;case CO:return Df}return t});var bO=S3,W9=xf,yO=Ff,wO=SP,IO=ZP,Hf=bO,Nf=yl,Qf=l5.exports,EO=Sf,SO=1,Wf="[object Arguments]",jf="[object Array]",c5="[object Object]",AO=Object.prototype,Gf=AO.hasOwnProperty;function xO(e,t,n,r,i,l){var c=Nf(e),u=Nf(t),h=c?jf:Hf(e),g=u?jf:Hf(t);h=h==Wf?c5:h,g=g==Wf?c5:g;var d=h==c5,m=g==c5,v=h==g;if(v&&Qf(e)){if(!Qf(t))return!1;c=!0,d=!1}if(v&&!d)return l||(l=new W9),c||EO(e)?yO(e,t,n,r,i,l):wO(e,t,h,n,r,i,l);if(!(n&SO)){var w=d&&Gf.call(e,"__wrapped__"),C=m&&Gf.call(t,"__wrapped__");if(w||C){var b=w?e.value():e,F=C?t.value():t;return l||(l=new W9),i(b,F,n,r,l)}}return v?(l||(l=new W9),IO(e,t,n,r,i,l)):!1}var FO=xO,MO=FO,Uf=fs;function Kf(e,t,n,r,i){return e===t?!0:e==null||t==null||!Uf(e)&&!Uf(t)?e!==e&&t!==t:MO(e,t,n,r,Kf,i)}var Yf=Kf,zO=xf,kO=Yf,PO=1,OO=2;function BO(e,t,n,r){var i=n.length,l=i,c=!r;if(e==null)return!l;for(e=Object(e);i--;){var u=n[i];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<l;){u=n[i];var h=u[0],g=e[h],d=u[1];if(c&&u[2]){if(g===void 0&&!(h in e))return!1}else{var m=new zO;if(r)var v=r(g,d,h,e,t,m);if(!(v===void 0?kO(d,g,PO|OO,r,m):v))return!1}}return!0}var LO=BO,TO=x9;function RO(e){return e===e&&!TO(e)}var qf=RO,DO=qf,VO=T9;function HO(e){for(var t=VO(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,DO(i)]}return t}var NO=HO;function QO(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Jf=QO,WO=LO,jO=NO,GO=Jf;function UO(e){var t=jO(e);return t.length==1&&t[0][2]?GO(t[0][0],t[0][1]):function(n){return n===e||WO(n,e,t)}}var KO=UO,YO=hf,qO=i5;function JO(e,t){t=YO(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qO(t[n++])];return n&&n==r?e:void 0}var Zf=JO,ZO=Zf;function XO(e,t,n){var r=e==null?void 0:ZO(e,t);return r===void 0?n:r}var _O=XO;function $O(e,t){return e!=null&&t in Object(e)}var eB=$O,tB=eB,nB=vf;function rB(e,t){return e!=null&&nB(e,t,tB)}var oB=rB,iB=Yf,aB=_O,lB=oB,sB=A9,cB=qf,uB=Jf,dB=i5,hB=1,fB=2;function pB(e,t){return sB(e)&&cB(t)?uB(dB(e),t):function(n){var r=aB(n,e);return r===void 0&&r===t?lB(n,e):iB(t,r,hB|fB)}}var gB=pB;function mB(e){return e}var vB=mB;function CB(e){return function(t){return t==null?void 0:t[e]}}var bB=CB,yB=Zf;function wB(e){return function(t){return yB(t,e)}}var IB=wB,EB=bB,SB=IB,AB=A9,xB=i5;function FB(e){return AB(e)?EB(xB(e)):SB(e)}var MB=FB,zB=KO,kB=gB,PB=vB,OB=yl,BB=MB;function LB(e){return typeof e=="function"?e:e==null?PB:typeof e=="object"?OB(e)?kB(e[0],e[1]):zB(e):BB(e)}var Xf=LB,TB=wf,RB=Af,DB=Xf;function VB(e,t){var n={};return t=DB(t),RB(e,function(r,i,l){TB(n,i,t(r,i,l))}),n}var _f=VB;function A3(e){this._maxSize=e,this.clear()}A3.prototype.clear=function(){this._size=0,this._values=Object.create(null)},A3.prototype.get=function(e){return this._values[e]},A3.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var HB=/[^.^\]^[]+|(?=\[\]|\.\.)/g,$f=/^\d+$/,NB=/^\d/,QB=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,WB=/^\s*(['"]?)(.*?)(\1)\s*$/,j9=512,ep=new A3(j9),tp=new A3(j9),np=new A3(j9),u5={Cache:A3,split:U9,normalizePath:G9,setter:function(e){var t=G9(e);return tp.get(e)||tp.set(e,function(r,i){for(var l=0,c=t.length,u=r;l<c-1;){var h=t[l];if(h==="__proto__"||h==="constructor"||h==="prototype")return r;u=u[t[l++]]}u[t[l]]=i})},getter:function(e,t){var n=G9(e);return np.get(e)||np.set(e,function(i){for(var l=0,c=n.length;l<c;)if(i!=null||!t)i=i[n[l++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(K9(n)||$f.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){jB(Array.isArray(e)?e:U9(e),t,n)}};function G9(e){return ep.get(e)||ep.set(e,U9(e).map(function(t){return t.replace(WB,"$2")}))}function U9(e){return e.match(HB)||[""]}function jB(e,t,n){var r=e.length,i,l,c,u;for(l=0;l<r;l++)i=e[l],i&&(KB(i)&&(i='"'+i+'"'),u=K9(i),c=!u&&/^\d+$/.test(i),t.call(n,i,u,c,l,e))}function K9(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function GB(e){return e.match(NB)&&!e.match($f)}function UB(e){return QB.test(e)}function KB(e){return!K9(e)&&(GB(e)||UB(e))}const d5={context:"$",value:"."};class wl{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===d5.context,this.isValue=this.key[0]===d5.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?d5.context:this.isValue?d5.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&u5.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}wl.prototype.__isYupRef=!0;function h5(){return h5=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h5.apply(this,arguments)}function YB(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function f5(e){function t(n,r){let{value:i,path:l="",label:c,options:u,originalValue:h,sync:g}=n,d=YB(n,["value","path","label","options","originalValue","sync"]);const{name:m,test:v,params:w,message:C}=e;let{parent:b,context:F}=u;function x(L){return wl.isRef(L)?L.getValue(i,b,F):L}function M(L={}){const D=_f(h5({value:i,originalValue:h,label:c,path:L.path||l},w,L.params),x),H=new oo(oo.formatError(L.message||C,D),i,D.path,L.type||m);return H.params=D,H}let E=h5({path:l,parent:b,type:m,createError:M,resolve:x,options:u,originalValue:h},d);if(!g){try{Promise.resolve(v.call(E,i,E)).then(L=>{oo.isError(L)?r(L):L?r(null,L):r(M())}).catch(r)}catch(L){r(L)}return}let k;try{var V;if(k=v.call(E,i,E),typeof((V=k)==null?void 0:V.then)=="function")throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(L){r(L);return}oo.isError(k)?r(k):k?r(null,k):r(M())}return t.OPTIONS=e,t}let qB=e=>e.substr(0,e.length-1).substr(1);function JB(e,t,n,r=n){let i,l,c;return t?(u5.forEach(t,(u,h,g)=>{let d=h?qB(u):u;if(e=e.resolve({context:r,parent:i,value:n}),e.innerType){let m=g?parseInt(d,10):0;if(n&&m>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${u}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[m],e=e.innerType}if(!g){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${c} which is a type: "${e._type}")`);i=n,n=n&&n[d],e=e.fields[d]}l=d,c=h?"["+u+"]":"."+u}),{schema:e,parent:i,parentPath:l}):{parent:i,parentPath:t,schema:e}}class p5{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const n of this.list)t.push(n);for(const[,n]of this.refs)t.push(n.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((n,r)=>n.concat(wl.isRef(r)?t(r):r),[])}add(t){wl.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){wl.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new p5;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,n){const r=this.clone();return t.list.forEach(i=>r.add(i)),t.refs.forEach(i=>r.add(i)),n.list.forEach(i=>r.delete(i)),n.refs.forEach(i=>r.delete(i)),r}}function Po(){return Po=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Po.apply(this,arguments)}class P2{constructor(t){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new p5,this._blacklist=new p5,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(I3.notType)}),this.type=(t==null?void 0:t.type)||"mixed",this.spec=Po({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},t==null?void 0:t.spec)}get _type(){return this.type}_typeCheck(t){return!0}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeError=this._typeError,n._whitelistError=this._whitelistError,n._blacklistError=this._blacklistError,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.exclusiveTests=Po({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=w9(Po({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Po({},n.spec,r.spec);return r.spec=i,r._typeError||(r._typeError=n._typeError),r._whitelistError||(r._whitelistError=n._whitelistError),r._blacklistError||(r._blacklistError=n._blacklistError),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(l=>{t.tests.forEach(c=>{l.test(c.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return this.spec.nullable&&t===null?!0:this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,l)=>l.resolve(i,t),n),n=n.resolve(t)}return n}cast(t,n={}){let r=this.resolve(Po({value:t},n)),i=r._cast(t,n);if(t!==void 0&&n.assert!==!1&&r.isType(i)!==!0){let l=us(t),c=us(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}".
|
|
1080
1080
|
|
|
1081
1081
|
attempted value: ${l}
|
|
1082
|
-
`+(c!==l?`result of cast: ${c}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,l)=>l.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r){let{sync:i,path:l,from:c=[],originalValue:u=t,strict:h=this.spec.strict,abortEarly:g=this.spec.abortEarly}=n,d=t;h||(d=this._cast(d,Po({assert:!1},n)));let m={value:d,path:l,options:n,originalValue:u,schema:this,label:this.spec.label,sync:i,from:c},v=[];this._typeError&&v.push(this._typeError);let w=[];this._whitelistError&&w.push(this._whitelistError),this._blacklistError&&w.push(this._blacklistError),B9({args:m,value:d,path:l,sync:i,tests:v,endEarly:g},C=>{if(C)return void r(C,d);B9({tests:this.tests.concat(w),args:m,path:l,sync:i,value:d,endEarly:g},r)})}validate(t,n,r){let i=this.resolve(Po({},n,{value:t}));return typeof r=="function"?i._validate(t,n,r):new Promise((l,c)=>i._validate(t,n,(u,h)=>{u?c(u):l(h)}))}validateSync(t,n){let r=this.resolve(Po({},n,{value:t})),i;return r._validate(t,Po({},n,{sync:!0}),(l,c)=>{if(l)throw l;i=c}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(oo.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(oo.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):w9(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){let n=this.clone();return n.spec.strict=t,n}_isPresent(t){return t!=null}defined(t=I3.defined){return this.test({message:t,name:"defined",exclusive:!0,test(n){return n!==void 0}})}required(t=I3.required){return this.clone({presence:"required"}).withMutation(n=>n.test({message:t,name:"required",exclusive:!0,test(r){return this.schema._isPresent(r)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t}nullable(t=!0){return this.clone({nullable:t!==!1})}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=I3.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=f5(n),l=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(c=>!(c.OPTIONS.name===n.name&&(l||c.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=bf(t).map(l=>new wl(l));return i.forEach(l=>{l.isSibling&&r.deps.push(l.key)}),r.conditions.push(new RM(i,n)),r}typeError(t){let n=this.clone();return n._typeError=f5({message:t,name:"typeError",test(r){return r!==void 0&&!this.schema.isType(r)?this.createError({params:{type:this.schema._type}}):!0}}),n}oneOf(t,n=I3.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r._whitelistError=f5({message:n,name:"oneOf",test(i){if(i===void 0)return!0;let l=this.schema._whitelist,c=l.resolveAll(this.resolve);return c.includes(i)?!0:this.createError({params:{values:l.toArray().join(", "),resolved:c}})}}),r}notOneOf(t,n=I3.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r._blacklistError=f5({message:n,name:"notOneOf",test(i){let l=this.schema._blacklist,c=l.resolveAll(this.resolve);return c.includes(i)?this.createError({params:{values:l.toArray().join(", "),resolved:c}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(){const t=this.clone(),{label:n,meta:r}=t.spec;return{meta:r,label:n,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(h=>h.name===l.name)===c)}}}P2.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])P2.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:l,schema:c}=JB(this,t,n,r.context);return c[e](i&&i[l],Po({},r,{parent:i,path:t}))};for(const e of["equals","is"])P2.prototype[e]=P2.prototype.oneOf;for(const e of["not","nope"])P2.prototype[e]=P2.prototype.notOneOf;P2.prototype.optional=P2.prototype.notRequired,P2.prototype;const hi=e=>e==null;let ZB=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,XB=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,_B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,$B=e=>hi(e)||e===e.trim(),eL={}.toString();function x3(){return new rp}class rp extends P2{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(t){if(this.isType(t)||Array.isArray(t))return t;const n=t!=null&&t.toString?t.toString():t;return n===eL?t:n})})}_typeCheck(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}_isPresent(t){return super._isPresent(t)&&!!t.length}length(t,n=di.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},test(r){return hi(r)||r.length===this.resolve(t)}})}min(t,n=di.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(r){return hi(r)||r.length>=this.resolve(t)}})}max(t,n=di.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},test(r){return hi(r)||r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,l;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:l}=n:i=n),this.test({name:l||"matches",message:i||di.matches,params:{regex:t},test:c=>hi(c)||c===""&&r||c.search(t)!==-1})}email(t=di.email){return this.matches(ZB,{name:"email",message:t,excludeEmptyString:!0})}url(t=di.url){return this.matches(XB,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=di.uuid){return this.matches(_B,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=di.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:$B})}lowercase(t=di.lowercase){return this.transform(n=>hi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,test:n=>hi(n)||n===n.toLowerCase()})}uppercase(t=di.uppercase){return this.transform(n=>hi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,test:n=>hi(n)||n===n.toUpperCase()})}}x3.prototype=rp.prototype;var tL=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function nL(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=tL.exec(e)){for(var l=0,c;c=t[l];++l)i[c]=+i[c]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let op=new Date(""),rL=e=>Object.prototype.toString.call(e)==="[object Date]";class ip extends P2{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:(t=nL(t),isNaN(t)?op:new Date(t))})})}_typeCheck(t){return rL(t)&&!isNaN(t.getTime())}prepareParam(t,n){let r;if(wl.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=I9.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(i){return hi(i)||i>=this.resolve(r)}})}max(t,n=I9.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},test(i){return hi(i)||i<=this.resolve(r)}})}}ip.INVALID_DATE=op,ip.prototype;function oL(e,t,n,r){var i=-1,l=e==null?0:e.length;for(r&&l&&(n=e[++i]);++i<l;)n=t(n,e[i],i,e);return n}var iL=oL;function aL(e){return function(t){return e==null?void 0:e[t]}}var lL=aL,sL=lL,cL={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},uL=sL(cL),dL=uL,hL=dL,fL=ps,pL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gL="\\u0300-\\u036f",mL="\\ufe20-\\ufe2f",vL="\\u20d0-\\u20ff",CL=gL+mL+vL,bL="["+CL+"]",yL=RegExp(bL,"g");function wL(e){return e=fL(e),e&&e.replace(pL,hL).replace(yL,"")}var IL=wL,EL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function SL(e){return e.match(EL)||[]}var AL=SL,xL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function FL(e){return xL.test(e)}var ML=FL,ap="\\ud800-\\udfff",zL="\\u0300-\\u036f",kL="\\ufe20-\\ufe2f",PL="\\u20d0-\\u20ff",OL=zL+kL+PL,lp="\\u2700-\\u27bf",sp="a-z\\xdf-\\xf6\\xf8-\\xff",BL="\\xac\\xb1\\xd7\\xf7",LL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TL="\\u2000-\\u206f",RL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cp="A-Z\\xc0-\\xd6\\xd8-\\xde",DL="\\ufe0e\\ufe0f",up=BL+LL+TL+RL,dp="['\u2019]",hp="["+up+"]",VL="["+OL+"]",fp="\\d+",HL="["+lp+"]",pp="["+sp+"]",gp="[^"+ap+up+fp+lp+sp+cp+"]",NL="\\ud83c[\\udffb-\\udfff]",QL="(?:"+VL+"|"+NL+")",WL="[^"+ap+"]",mp="(?:\\ud83c[\\udde6-\\uddff]){2}",vp="[\\ud800-\\udbff][\\udc00-\\udfff]",P0="["+cp+"]",jL="\\u200d",Cp="(?:"+pp+"|"+gp+")",GL="(?:"+P0+"|"+gp+")",bp="(?:"+dp+"(?:d|ll|m|re|s|t|ve))?",yp="(?:"+dp+"(?:D|LL|M|RE|S|T|VE))?",wp=QL+"?",Ip="["+DL+"]?",UL="(?:"+jL+"(?:"+[WL,mp,vp].join("|")+")"+Ip+wp+")*",KL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qL=Ip+wp+UL,JL="(?:"+[HL,mp,vp].join("|")+")"+qL,ZL=RegExp([P0+"?"+pp+"+"+bp+"(?="+[hp,P0,"$"].join("|")+")",GL+"+"+yp+"(?="+[hp,P0+Cp,"$"].join("|")+")",P0+"?"+Cp+"+"+bp,P0+"+"+yp,YL,KL,fp,JL].join("|"),"g");function XL(e){return e.match(ZL)||[]}var _L=XL,$L=AL,eT=ML,tT=ps,nT=_L;function rT(e,t,n){return e=tT(e),t=n?void 0:t,t===void 0?eT(e)?nT(e):$L(e):e.match(t)||[]}var oT=rT,iT=iL,aT=IL,lT=oT,sT="['\u2019]",cT=RegExp(sT,"g");function uT(e){return function(t){return iT(lT(aT(t).replace(cT,"")),e,"")}}var Ep=uT,dT=Ep,hT=dT(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Sp=hT;function fT(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(i);++r<i;)l[r]=e[r+t];return l}var pT=fT,gT=pT;function mT(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:gT(e,t,n)}var vT=mT,CT="\\ud800-\\udfff",bT="\\u0300-\\u036f",yT="\\ufe20-\\ufe2f",wT="\\u20d0-\\u20ff",IT=bT+yT+wT,ET="\\ufe0e\\ufe0f",ST="\\u200d",AT=RegExp("["+ST+CT+IT+ET+"]");function xT(e){return AT.test(e)}var Ap=xT;function FT(e){return e.split("")}var MT=FT,xp="\\ud800-\\udfff",zT="\\u0300-\\u036f",kT="\\ufe20-\\ufe2f",PT="\\u20d0-\\u20ff",OT=zT+kT+PT,BT="\\ufe0e\\ufe0f",LT="["+xp+"]",Y9="["+OT+"]",q9="\\ud83c[\\udffb-\\udfff]",TT="(?:"+Y9+"|"+q9+")",Fp="[^"+xp+"]",Mp="(?:\\ud83c[\\udde6-\\uddff]){2}",zp="[\\ud800-\\udbff][\\udc00-\\udfff]",RT="\\u200d",kp=TT+"?",Pp="["+BT+"]?",DT="(?:"+RT+"(?:"+[Fp,Mp,zp].join("|")+")"+Pp+kp+")*",VT=Pp+kp+DT,HT="(?:"+[Fp+Y9+"?",Y9,Mp,zp,LT].join("|")+")",NT=RegExp(q9+"(?="+q9+")|"+HT+VT,"g");function QT(e){return e.match(NT)||[]}var WT=QT,jT=MT,GT=Ap,UT=WT;function KT(e){return GT(e)?UT(e):jT(e)}var YT=KT,qT=vT,JT=Ap,ZT=YT,XT=ps;function _T(e){return function(t){t=XT(t);var n=JT(t)?ZT(t):void 0,r=n?n[0]:t.charAt(0),i=n?qT(n,1).join(""):t.slice(1);return r[e]()+i}}var $T=_T,eR=$T,tR=eR("toUpperCase"),nR=tR,rR=ps,oR=nR;function iR(e){return oR(rR(e).toLowerCase())}var aR=iR,lR=aR,sR=Ep,cR=sR(function(e,t,n){return t=t.toLowerCase(),e+(n?lR(t):t)}),uR=cR,dR=wf,hR=Af,fR=Xf;function pR(e,t){var n={};return t=fR(t),hR(e,function(r,i,l){dR(n,t(r,i,l),r)}),n}var gR=pR,J9={exports:{}};J9.exports=function(e){return Op(mR(e),e)},J9.exports.array=Op;function Op(e,t){var n=e.length,r=new Array(n),i={},l=n,c=vR(t),u=CR(e);for(t.forEach(function(g){if(!u.has(g[0])||!u.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});l--;)i[l]||h(e[l],l,new Set);return r;function h(g,d,m){if(m.has(g)){var v;try{v=", node was:"+JSON.stringify(g)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!u.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!i[d]){i[d]=!0;var w=c.get(g)||new Set;if(w=Array.from(w),d=w.length){m.add(g);do{var C=w[--d];h(C,u.get(C),m)}while(d);m.delete(g)}r[--n]=g}}}function mR(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function vR(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function CR(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var bR=J9.exports;function yR(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([c,u])=>`${c}-${u}`));function l(c,u){let h=u5.split(c)[0];r.add(h),i.has(`${u}-${h}`)||n.push([u,h])}for(const c in e)if(a5(e,c)){let u=e[c];r.add(c),wl.isRef(u)&&u.isSibling?l(u.path,c):Cf(u)&&"deps"in u&&u.deps.forEach(h=>l(h,c))}return bR.array(Array.from(r),n).reverse()}function Bp(e,t){let n=1/0;return e.some((r,i)=>{var l;if(((l=t.path)==null?void 0:l.indexOf(r))!==-1)return n=i,!0}),n}function Lp(e){return(t,n)=>Bp(e,t)-Bp(e,n)}function O0(){return O0=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}let Tp=e=>Object.prototype.toString.call(e)==="[object Object]";function wR(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const IR=Lp([]);class Rp extends P2{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=IR,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null}),t&&this.shape(t)})}_typeCheck(t){return Tp(t)||typeof t=="function"}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let l=this.fields,c=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,u=this._nodes.concat(Object.keys(i).filter(m=>this._nodes.indexOf(m)===-1)),h={},g=O0({},n,{parent:h,__validating:n.__validating||!1}),d=!1;for(const m of u){let v=l[m],w=a5(i,m);if(v){let C,b=i[m];g.path=(n.path?`${n.path}.`:"")+m,v=v.resolve({value:b,context:n.context,parent:h});let F="spec"in v?v.spec:void 0,x=F==null?void 0:F.strict;if(F!=null&&F.strip){d=d||m in i;continue}C=!n.__validating||!x?v.cast(i[m],g):i[m],C!==void 0&&(h[m]=C)}else w&&!c&&(h[m]=i[m]);h[m]!==i[m]&&(d=!0)}return d?h:i}_validate(t,n={},r){let i=[],{sync:l,from:c=[],originalValue:u=t,abortEarly:h=this.spec.abortEarly,recursive:g=this.spec.recursive}=n;c=[{schema:this,value:u},...c],n.__validating=!0,n.originalValue=u,n.from=c,super._validate(t,n,(d,m)=>{if(d){if(!oo.isError(d)||h)return void r(d,m);i.push(d)}if(!g||!Tp(m)){r(i[0]||null,m);return}u=u||m;let v=this._nodes.map(w=>(C,b)=>{let F=w.indexOf(".")===-1?(n.path?`${n.path}.`:"")+w:`${n.path||""}["${w}"]`,x=this.fields[w];if(x&&"validate"in x){x.validate(m[w],O0({},n,{path:F,from:c,strict:!0,parent:m,originalValue:u[w]}),b);return}b(null)});B9({sync:l,tests:v,value:m,errors:i,endEarly:h,sort:this._sortErrors,path:n.path},r)})}clone(t){const n=super.clone(t);return n.fields=O0({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,l]of Object.entries(this.fields)){const c=r[i];c===void 0?r[i]=l:c instanceof P2&&l instanceof P2&&(r[i]=l.concat(c))}return n.withMutation(()=>n.shape(r,this._excludedEdges))}getDefaultFromShape(){let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]="default"in r?r.getDefault():void 0}),t}_getDefault(){if("default"in this.spec)return super._getDefault();if(!!this._nodes.length)return this.getDefaultFromShape()}shape(t,n=[]){let r=this.clone(),i=Object.assign(r.fields,t);return r.fields=i,r._sortErrors=Lp(Object.keys(i)),n.length&&(Array.isArray(n[0])||(n=[n]),r._excludedEdges=[...r._excludedEdges,...n]),r._nodes=yR(i,r._excludedEdges),r}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.clone().withMutation(r=>(r.fields={},r.shape(n)))}omit(t){const n=this.clone(),r=n.fields;n.fields={};for(const i of t)delete r[i];return n.withMutation(()=>n.shape(r))}from(t,n,r){let i=u5.getter(t,!0);return this.transform(l=>{if(l==null)return l;let c=l;return a5(l,t)&&(c=O0({},l),r||delete c[t],c[n]=i(l)),c})}noUnknown(t=!0,n=E9.noUnknown){typeof t=="string"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const l=wR(this.schema,i);return!t||l.length===0||this.createError({params:{unknown:l.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=E9.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>n&&gR(n,(r,i)=>t(i)))}camelCase(){return this.transformKeys(uR)}snakeCase(){return this.transformKeys(Sp)}constantCase(){return this.transformKeys(t=>Sp(t).toUpperCase())}describe(){let t=super.describe();return t.fields=_f(this.fields,n=>n.describe()),t}}function Dp(e){return new Rp(e)}Dp.prototype=Rp.prototype;var Vp=function(e,t,n){if(e&&"reportValidity"in e){var r=J1(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Hp=function(e,t){var n=function(i){var l=t.fields[i];l&&l.ref&&"reportValidity"in l.ref?Vp(l.ref,i,e):l.refs&&l.refs.forEach(function(c){return Vp(c,i,e)})};for(var r in t.fields)n(r)},ER=function(e,t){t.shouldUseNativeValidation&&Hp(e,t);var n={};for(var r in e){var i=J1(t.fields,r);Mn(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},SR=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,l){try{return Promise.resolve(function(c,u){try{var h=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(g){return l.shouldUseNativeValidation&&Hp({},l),{values:n.rawValues?r:g,errors:{}}}))}catch(g){return u(g)}return h&&h.then?h.then(void 0,u):h}(0,function(c){if(!c.inner)throw c;return{values:{},errors:ER((u=c,h=!l.shouldUseNativeValidation&&l.criteriaMode==="all",(u.inner||[]).reduce(function(g,d){if(g[d.path]||(g[d.path]={message:d.message,type:d.type}),h){var m=g[d.path].types,v=m&&m[d.type];g[d.path]=zh(d.path,h,g,d.type,v?[].concat(v,d.message):d.message)}return g},{})),l)};var u,h}))}catch(c){return Promise.reject(c)}}};function Np(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Np(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Il(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Np(e))&&(r&&(r+=" "),r+=t);return r}const gs=e=>typeof e=="number"&&!isNaN(e),F3=e=>typeof e=="string",O2=e=>typeof e=="function",g5=e=>F3(e)||O2(e)?e:null,Z9=e=>m1.isValidElement(e)||F3(e)||O2(e)||gs(e);function AR(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function m5(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(c){let{children:u,position:h,preventExitTransition:g,done:d,nodeRef:m,isIn:v}=c;const w=r?`${t}--${h}`:t,C=r?`${n}--${h}`:n,b=m1.useRef(0);return m1.useLayoutEffect(()=>{const F=m.current,x=w.split(" "),M=E=>{E.target===m.current&&(F.dispatchEvent(new Event("d")),F.removeEventListener("animationend",M),F.removeEventListener("animationcancel",M),b.current===0&&E.type!=="animationcancel"&&F.classList.remove(...x))};F.classList.add(...x),F.addEventListener("animationend",M),F.addEventListener("animationcancel",M)},[]),m1.useEffect(()=>{const F=m.current,x=()=>{F.removeEventListener("animationend",x),i?AR(F,d,l):d()};v||(g?x():(b.current=1,F.className+=` ${C}`,F.addEventListener("animationend",x)))},[v]),Z1.default.createElement(Z1.default.Fragment,null,u)}}function Qp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Oo={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},v5=e=>{let{theme:t,type:n,...r}=e;return Z1.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},X9={info:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Z1.default.createElement("div",{className:"Toastify__spinner"})}};function xR(e){const[,t]=m1.useReducer(w=>w+1,0),[n,r]=m1.useState([]),i=m1.useRef(null),l=m1.useRef(new Map).current,c=w=>n.indexOf(w)!==-1,u=m1.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:c,getToast:w=>l.get(w)}).current;function h(w){let{containerId:C}=w;const{limit:b}=u.props;!b||C&&u.containerId!==C||(u.count-=u.queue.length,u.queue=[])}function g(w){r(C=>w==null?[]:C.filter(b=>b!==w))}function d(){const{toastContent:w,toastProps:C,staleId:b}=u.queue.shift();v(w,C,b)}function m(w,C){let{delay:b,staleId:F,...x}=C;if(!Z9(w)||function(ee){return!i.current||u.props.enableMultiContainer&&ee.containerId!==u.props.containerId||l.has(ee.toastId)&&ee.updateId==null}(x))return;const{toastId:M,updateId:E,data:k}=x,{props:V}=u,L=()=>g(M),D=E==null;D&&u.count++;const H={...V,style:V.toastStyle,key:u.toastKey++,...Object.fromEntries(Object.entries(x).filter(ee=>{let[K,Q]=ee;return Q!=null})),toastId:M,updateId:E,data:k,closeToast:L,isIn:!1,className:g5(x.className||V.toastClassName),bodyClassName:g5(x.bodyClassName||V.bodyClassName),progressClassName:g5(x.progressClassName||V.progressClassName),autoClose:!x.isLoading&&(q=x.autoClose,Z=V.autoClose,q===!1||gs(q)&&q>0?q:Z),deleteToast(){const ee=Qp(l.get(M),"removed");l.delete(M),Oo.emit(4,ee);const K=u.queue.length;if(u.count=M==null?u.count-u.displayedToast:u.count-1,u.count<0&&(u.count=0),K>0){const Q=M==null?u.props.limit:1;if(K===1||Q===1)u.displayedToast++,d();else{const Y=Q>K?K:Q;u.displayedToast=Y;for(let J=0;J<Y;J++)d()}}else t()}};var q,Z;H.iconOut=function(ee){let{theme:K,type:Q,isLoading:Y,icon:J}=ee,te=null;const $={theme:K,type:Q};return J===!1||(O2(J)?te=J($):m1.isValidElement(J)?te=m1.cloneElement(J,$):F3(J)||gs(J)?te=J:Y?te=X9.spinner():(X=>X in X9)(Q)&&(te=X9[Q]($))),te}(H),O2(x.onOpen)&&(H.onOpen=x.onOpen),O2(x.onClose)&&(H.onClose=x.onClose),H.closeButton=V.closeButton,x.closeButton===!1||Z9(x.closeButton)?H.closeButton=x.closeButton:x.closeButton===!0&&(H.closeButton=!Z9(V.closeButton)||V.closeButton);let _=w;m1.isValidElement(w)&&!F3(w.type)?_=m1.cloneElement(w,{closeToast:L,toastProps:H,data:k}):O2(w)&&(_=w({closeToast:L,toastProps:H,data:k})),V.limit&&V.limit>0&&u.count>V.limit&&D?u.queue.push({toastContent:_,toastProps:H,staleId:F}):gs(b)?setTimeout(()=>{v(_,H,F)},b):v(_,H,F)}function v(w,C,b){const{toastId:F}=C;b&&l.delete(b);const x={content:w,props:C};l.set(F,x),r(M=>[...M,F].filter(E=>E!==b)),Oo.emit(4,Qp(x,x.props.updateId==null?"added":"updated"))}return m1.useEffect(()=>(u.containerId=e.containerId,Oo.cancelEmit(3).on(0,m).on(1,w=>i.current&&g(w)).on(5,h).emit(2,u),()=>{l.clear(),Oo.emit(3,u)}),[]),m1.useEffect(()=>{u.props=e,u.isToastActive=c,u.displayedToast=n.length}),{getToastToRender:function(w){const C=new Map,b=Array.from(l.values());return e.newestOnTop&&b.reverse(),b.forEach(F=>{const{position:x}=F.props;C.has(x)||C.set(x,[]),C.get(x).push(F)}),Array.from(C,F=>w(F[0],F[1]))},containerRef:i,isToastActive:c}}function Wp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function jp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function FR(e){const[t,n]=m1.useState(!1),[r,i]=m1.useState(!1),l=m1.useRef(null),c=m1.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=m1.useRef(e),{autoClose:h,pauseOnHover:g,closeToast:d,onClick:m,closeOnClick:v}=e;function w(k){if(e.draggable){k.nativeEvent.type==="touchstart"&&k.nativeEvent.preventDefault(),c.didMove=!1,document.addEventListener("mousemove",x),document.addEventListener("mouseup",M),document.addEventListener("touchmove",x),document.addEventListener("touchend",M);const V=l.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=V.getBoundingClientRect(),V.style.transition="",c.x=Wp(k.nativeEvent),c.y=jp(k.nativeEvent),e.draggableDirection==="x"?(c.start=c.x,c.removalDistance=V.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=V.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function C(k){if(c.boundingRect){const{top:V,bottom:L,left:D,right:H}=c.boundingRect;k.nativeEvent.type!=="touchend"&&e.pauseOnHover&&c.x>=D&&c.x<=H&&c.y>=V&&c.y<=L?F():b()}}function b(){n(!0)}function F(){n(!1)}function x(k){const V=l.current;c.canDrag&&V&&(c.didMove=!0,t&&F(),c.x=Wp(k),c.y=jp(k),c.delta=e.draggableDirection==="x"?c.x-c.start:c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),V.style.transform=`translate${e.draggableDirection}(${c.delta}px)`,V.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function M(){document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",M);const k=l.current;if(c.canDrag&&c.didMove&&k){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return i(!0),void e.closeToast();k.style.transition="transform 0.2s, opacity 0.2s",k.style.transform=`translate${e.draggableDirection}(0)`,k.style.opacity="1"}}m1.useEffect(()=>{u.current=e}),m1.useEffect(()=>(l.current&&l.current.addEventListener("d",b,{once:!0}),O2(e.onOpen)&&e.onOpen(m1.isValidElement(e.children)&&e.children.props),()=>{const k=u.current;O2(k.onClose)&&k.onClose(m1.isValidElement(k.children)&&k.children.props)}),[]),m1.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||F(),window.addEventListener("focus",b),window.addEventListener("blur",F)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",F))}),[e.pauseOnFocusLoss]);const E={onMouseDown:w,onTouchStart:w,onMouseUp:C,onTouchEnd:C};return h&&g&&(E.onMouseEnter=F,E.onMouseLeave=b),v&&(E.onClick=k=>{m&&m(k),c.canCloseOnClick&&d()}),{playToast:b,pauseToast:F,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:E}}function Gp(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return Z1.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},Z1.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Z1.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function MR(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:c,style:u,controlledProgress:h,progress:g,rtl:d,isIn:m,theme:v}=e;const w=l||h&&g===0,C={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:w?0:1};h&&(C.transform=`scaleX(${g})`);const b=Il("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${v}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),F=O2(c)?c({rtl:d,type:i,defaultClassName:b}):Il(b,c);return Z1.default.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:F,style:C,[h&&g>=1?"onTransitionEnd":"onAnimationEnd"]:h&&g<1?null:()=>{m&&r()}})}const zR=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=FR(e),{closeButton:l,children:c,autoClose:u,onClick:h,type:g,hideProgressBar:d,closeToast:m,transition:v,position:w,className:C,style:b,bodyClassName:F,bodyStyle:x,progressClassName:M,progressStyle:E,updateId:k,role:V,progress:L,rtl:D,toastId:H,deleteToast:q,isIn:Z,isLoading:_,iconOut:ee,closeOnClick:K,theme:Q}=e,Y=Il("Toastify__toast",`Toastify__toast-theme--${Q}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":D},{"Toastify__toast--close-on-click":K}),J=O2(C)?C({rtl:D,position:w,type:g,defaultClassName:Y}):Il(Y,C),te=!!L||!u,$={closeToast:m,type:g,theme:Q};let X=null;return l===!1||(X=O2(l)?l($):m1.isValidElement(l)?m1.cloneElement(l,$):Gp($)),Z1.default.createElement(v,{isIn:Z,done:q,position:w,preventExitTransition:n,nodeRef:r},Z1.default.createElement("div",{id:H,onClick:h,className:J,...i,style:b,ref:r},Z1.default.createElement("div",{...Z&&{role:V},className:O2(F)?F({type:g}):Il("Toastify__toast-body",F),style:x},ee!=null&&Z1.default.createElement("div",{className:Il("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!_})},ee),Z1.default.createElement("div",null,c)),X,Z1.default.createElement(MR,{...k&&!te?{key:`pb-${k}`}:{},rtl:D,theme:Q,delay:u,isRunning:t,isIn:Z,closeToast:m,hide:d,type:g,style:E,className:M,controlledProgress:te,progress:L||0})))},C5=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},kR=m5(C5("bounce",!0));m5(C5("slide",!0)),m5(C5("zoom")),m5(C5("flip"));const M3=m1.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=xR(e),{className:l,style:c,rtl:u,containerId:h}=e;function g(d){const m=Il("Toastify__toast-container",`Toastify__toast-container--${d}`,{"Toastify__toast-container--rtl":u});return O2(l)?l({position:d,rtl:u,defaultClassName:m}):Il(m,g5(l))}return m1.useEffect(()=>{t&&(t.current=r.current)},[]),Z1.default.createElement("div",{ref:r,className:"Toastify",id:h},n((d,m)=>{const v=m.length?{...c}:{...c,pointerEvents:"none"};return Z1.default.createElement("div",{className:g(d),style:v,key:`container-${d}`},m.map((w,C)=>{let{content:b,props:F}=w;return Z1.default.createElement(zR,{...F,isIn:i(F.toastId),style:{...F.style,"--nth":C+1,"--len":m.length},key:`toast-${F.key}`},b)}))}))});M3.displayName="ToastContainer",M3.defaultProps={position:"top-right",transition:kR,autoClose:5e3,closeButton:Gp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let _9,z3=new Map,ms=[],PR=1;function Up(){return""+PR++}function OR(e){return e&&(F3(e.toastId)||gs(e.toastId))?e.toastId:Up()}function vs(e,t){return z3.size>0?Oo.emit(0,e,t):ms.push({content:e,options:t}),t.toastId}function b5(e,t){return{...t,type:t&&t.type||e,toastId:OR(t)}}function y5(e){return(t,n)=>vs(t,b5(e,n))}function An(e,t){return vs(e,b5("default",t))}An.loading=(e,t)=>vs(e,b5("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),An.promise=function(e,t,n){let r,{pending:i,error:l,success:c}=t;i&&(r=F3(i)?An.loading(i,n):An.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(d,m,v)=>{if(m==null)return void An.dismiss(r);const w={type:d,...u,...n,data:v},C=F3(m)?{render:m}:m;return r?An.update(r,{...w,...C}):An(C.render,{...w,...C}),v},g=O2(e)?e():e;return g.then(d=>h("success",c,d)).catch(d=>h("error",l,d)),g},An.success=y5("success"),An.info=y5("info"),An.error=y5("error"),An.warning=y5("warning"),An.warn=An.warning,An.dark=(e,t)=>vs(e,b5("default",{theme:"dark",...t})),An.dismiss=e=>{z3.size>0?Oo.emit(1,e):ms=ms.filter(t=>e!=null&&t.options.toastId!==e)},An.clearWaitingQueue=function(e){return e===void 0&&(e={}),Oo.emit(5,e)},An.isActive=e=>{let t=!1;return z3.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},An.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:l}=i;const c=z3.get(l||_9);return c&&c.getToast(r)}(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Up()};l.toastId!==e&&(l.staleId=e);const c=l.render||i;delete l.render,vs(c,l)}},0)},An.done=e=>{An.update(e,{progress:1})},An.onChange=e=>(Oo.on(4,e),()=>{Oo.off(4,e)}),An.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},An.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Oo.on(2,e=>{_9=e.containerId||e,z3.set(_9,e),ms.forEach(t=>{Oo.emit(0,t.content,t.options)}),ms=[]}).on(3,e=>{z3.delete(e.containerId||e),z3.size===0&&Oo.off(0).off(1).off(5)});function Cs(e){var i;let t="Error interno de la App, consultar con soporte.";const{code:n}=e==null?void 0:e.response.data,{status:r}=(i=e.response)==null?void 0:i.status;n==="A1050"?(console.log(e.response.data.message),t="No se pudo procesar la consulta, por favor contacte con soporte."):n===22007?(console.log(e.response.data.message),t="Documento no reconocido"):n===504?(console.log(e.response.data.message),t="M\xE1ximo de consultas, por favor contacte con soporte."):n==="020"?(console.log(e.response.data.message),t=e.response.data.message):r==="429"&&console.log(e.response.data),console.log(n,"code",t,"message"),An.error(t,{position:"top-center",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})}var BR=Object.prototype.hasOwnProperty,LR=Object.prototype.toString;function TR(e){if(e==null)return!0;if(typeof e=="boolean")return!1;if(typeof e=="number")return e===0;if(typeof e=="string"||typeof e=="function"||Array.isArray(e))return e.length===0;if(e instanceof Error)return e.message==="";if(e.toString==LR)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return e.size===0;case"[object Object]":{for(var t in e)if(BR.call(e,t))return!1;return!0}}return!1}var Hr=TR;const RR=async e=>{const t={method:"GET",path:"api-hub/v1/check_ip",inProduction:e};try{return(await S0(t)).data}catch(n){return console.log(n),n}};function w5(e){const[t,n]=m1.useState(null);return m1.useEffect(()=>{RR(e).then(r=>n(r)).catch(r=>console.log(r))},[]),t}const Bo=async({data:e,component:t,eventId:n,inProduction:r,source:i,clientId:l,geolocation:c})=>{let u={};c&&Object.assign(u,{check_ip:JSON.stringify(c)}),"csvFile"in e&&Object.assign(u,{"Content-Type":"multipart/form-data"});const h={method:"POST",inProduction:r,path:`api-hub/v1/events/register/${t}/${i}/${l}/${n}`,bodyParams:e,service:"product",customHeaders:u};try{return(await S0(h)).data}catch(g){return g}},El="COUNTRY_NOT_ALLOWED",I5="Pa\xEDs no autorizado",k3="TOKEN",Sl="CLIENTID",Al="USE_VPN",E5="Uso de Proxy o VPN no permitido",S5="yes",$9="Limite de consultas - Verificar con el proveedor",Kp=1920,Yp=1080,qp=(e,t,n,r,i,l,c,u,h,g)=>{const[d,m]=m1.useState(!1),[v,w]=m1.useState(e===void 0?Sl:t===void 0?k3:""),[C,b]=m1.useState(""),[F,x]=m1.useState([]),[M,E]=m1.useState(""),[k,V]=m1.useState({}),[L,D]=m1.useState(null),H=w5(n),[q,Z]=m1.useState(null),_=m1.useRef(null),[ee,K]=m1.useState({});m1.useEffect(()=>{var se;l&&(H==null?void 0:H.data_connection.isocode)&&l.length!==0&&!l.some(pe=>pe.value===(H==null?void 0:H.data_connection.isocode))&&(w(El),b(I5)),c&&((se=H==null?void 0:H.data_connection)==null?void 0:se.proxy)==S5&&(w(Al),b(E5)),l&&H&&D(H==null?void 0:H.data_connection.isocode)},[H,l,c]);const Q=()=>{te(),w(""),b(""),x([]),E(""),m(!1),Z(null),K({}),g([])},Y=Dp({first_name:x3().required("Este campo es requerido."),second_name:x3(),first_last_name:x3().required("Este campo es requerido."),second_last_name:x3(),country:x3().nullable(),birth_date:x3().nullable()}).required(),{control:J,reset:te,handleSubmit:$,formState:{errors:X}}=$4({resolver:SR(Y),mode:"onBlur",defaultValues:{first_name:"",second_name:"",first_last_name:"",second_last_name:"",country:"",birth_date:""}}),ne=async se=>{var _e,l1;const{first_name:pe,second_name:ye,first_last_name:Fe,second_last_name:Ne,birth_date:Oe}=se;m(!0);try{const Ie=await t(),o1={method:"POST",path:"api/v2/providers/acuant/search",service:"services",customHeaders:{client_id:e,access_token:Ie,Authorization:"Bearer WGpKbGFSNlJXV29hVnFqVjlIbA=="},inProduction:n,bodyParams:{first_name:pe===""?null:pe,second_name:ye===""?null:ye,first_last_name:Fe===""?null:Fe,second_last_name:Ne===""?null:Ne,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null}};V(o1.bodyParams);const r1=await S0(o1),{match:C1,message:s1,status:B1,payload:he}=r1.data.data,we={request_match:C1,request_payload:he,first_name:pe===""?null:pe,second_name:ye===""?null:ye,first_last_name:Fe===""?null:Fe,second_last_name:Ne===""?null:Ne,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null};await Bo({data:{...we,status_code:200},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Hr(C1)?b(u||s1):(x(C1),b(h||s1)),await g(C1),w(B1)}catch(Ie){let Je="";console.log(Ie);const o1=(l1=(_e=Ie==null?void 0:Ie.response)==null?void 0:_e.status)!=null?l1:"";await Bo({data:{dataReq:k,status_code:400},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Ie.response.data.message?Je=Ie.response.data:o1===500&&(Je="Error de consulta - Verificar con el proveedor"),m(null),b(Je),w(o1),Cs(Ie)}finally{m(!1)}},be=se=>{Z(se.target.files[0])},{handleSubmit:me}=$4();return{onSendSubmitDocument:ne,onSubmitCsv:async()=>{m(!0);try{const se=await t(),ye={method:"POST",path:"api/v1/providers/acuant/search_batch",customHeaders:{client_id:e,access_token:se,"Content-Type":"multipart/form-data"},service:"services",inProduction:n,bodyParams:{csvFile:q}};V(ye.bodyParams);const Fe=await S0(ye),{batchSize:Ne,id:Oe,startTime:_e}=Fe.data.data;await Bo({data:{...{csvFile:q,batch_id:Oe,start_time:_e,batch_size:Ne},status_code:200},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),b(h||"La verificai\xF3n est\xE1 en proceso. Por favor copie y guarde este ID para su control!"),w(Fe.data.message),K(Fe.data.data),await g({batchSize:Ne,id:Oe,startTime:_e})}catch(se){let pe="Error interno de la aplicai\xF3n";const{status:ye,data:Fe}=se.response;await Bo({data:{csvFile:q,status_code:ye},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Fe.message?pe=Fe.message:ye===500&&(pe="Error de consulta - Verificar con el proveedor"),m(null),b(pe),w(ye),Cs(se)}finally{m(!1)}},handleSubmitCsv:me,simpleHandleSubmit:$,isLoading:d,errorsDoc:X,controlDoc:J,status:v,message:C,listMatch:F,select:M,setSelect:E,clearState:Q,dataReq:k,countryCode:L,handleFileUpload:be,csvFile:q,setCsvFile:Z,fileInputRef:_,batchData:ee,copyFunction:se=>{navigator.clipboard.writeText(se),An.success("Copiado en el Portapapeles")}}};var A5={exports:{}},x5={};/**
|
|
1082
|
+
`+(c!==l?`result of cast: ${c}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,l)=>l.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r){let{sync:i,path:l,from:c=[],originalValue:u=t,strict:h=this.spec.strict,abortEarly:g=this.spec.abortEarly}=n,d=t;h||(d=this._cast(d,Po({assert:!1},n)));let m={value:d,path:l,options:n,originalValue:u,schema:this,label:this.spec.label,sync:i,from:c},v=[];this._typeError&&v.push(this._typeError);let w=[];this._whitelistError&&w.push(this._whitelistError),this._blacklistError&&w.push(this._blacklistError),B9({args:m,value:d,path:l,sync:i,tests:v,endEarly:g},C=>{if(C)return void r(C,d);B9({tests:this.tests.concat(w),args:m,path:l,sync:i,value:d,endEarly:g},r)})}validate(t,n,r){let i=this.resolve(Po({},n,{value:t}));return typeof r=="function"?i._validate(t,n,r):new Promise((l,c)=>i._validate(t,n,(u,h)=>{u?c(u):l(h)}))}validateSync(t,n){let r=this.resolve(Po({},n,{value:t})),i;return r._validate(t,Po({},n,{sync:!0}),(l,c)=>{if(l)throw l;i=c}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(oo.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(oo.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):w9(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){let n=this.clone();return n.spec.strict=t,n}_isPresent(t){return t!=null}defined(t=I3.defined){return this.test({message:t,name:"defined",exclusive:!0,test(n){return n!==void 0}})}required(t=I3.required){return this.clone({presence:"required"}).withMutation(n=>n.test({message:t,name:"required",exclusive:!0,test(r){return this.schema._isPresent(r)}}))}notRequired(){let t=this.clone({presence:"optional"});return t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t}nullable(t=!0){return this.clone({nullable:t!==!1})}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=I3.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=f5(n),l=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(c=>!(c.OPTIONS.name===n.name&&(l||c.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=bf(t).map(l=>new wl(l));return i.forEach(l=>{l.isSibling&&r.deps.push(l.key)}),r.conditions.push(new RM(i,n)),r}typeError(t){let n=this.clone();return n._typeError=f5({message:t,name:"typeError",test(r){return r!==void 0&&!this.schema.isType(r)?this.createError({params:{type:this.schema._type}}):!0}}),n}oneOf(t,n=I3.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r._whitelistError=f5({message:n,name:"oneOf",test(i){if(i===void 0)return!0;let l=this.schema._whitelist,c=l.resolveAll(this.resolve);return c.includes(i)?!0:this.createError({params:{values:l.toArray().join(", "),resolved:c}})}}),r}notOneOf(t,n=I3.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r._blacklistError=f5({message:n,name:"notOneOf",test(i){let l=this.schema._blacklist,c=l.resolveAll(this.resolve);return c.includes(i)?this.createError({params:{values:l.toArray().join(", "),resolved:c}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(){const t=this.clone(),{label:n,meta:r}=t.spec;return{meta:r,label:n,type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(h=>h.name===l.name)===c)}}}P2.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])P2.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:l,schema:c}=JB(this,t,n,r.context);return c[e](i&&i[l],Po({},r,{parent:i,path:t}))};for(const e of["equals","is"])P2.prototype[e]=P2.prototype.oneOf;for(const e of["not","nope"])P2.prototype[e]=P2.prototype.notOneOf;P2.prototype.optional=P2.prototype.notRequired,P2.prototype;const hi=e=>e==null;let ZB=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,XB=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,_B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,$B=e=>hi(e)||e===e.trim(),eL={}.toString();function x3(){return new rp}class rp extends P2{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(t){if(this.isType(t)||Array.isArray(t))return t;const n=t!=null&&t.toString?t.toString():t;return n===eL?t:n})})}_typeCheck(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}_isPresent(t){return super._isPresent(t)&&!!t.length}length(t,n=di.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},test(r){return hi(r)||r.length===this.resolve(t)}})}min(t,n=di.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(r){return hi(r)||r.length>=this.resolve(t)}})}max(t,n=di.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},test(r){return hi(r)||r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,l;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:l}=n:i=n),this.test({name:l||"matches",message:i||di.matches,params:{regex:t},test:c=>hi(c)||c===""&&r||c.search(t)!==-1})}email(t=di.email){return this.matches(ZB,{name:"email",message:t,excludeEmptyString:!0})}url(t=di.url){return this.matches(XB,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=di.uuid){return this.matches(_B,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=di.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:$B})}lowercase(t=di.lowercase){return this.transform(n=>hi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,test:n=>hi(n)||n===n.toLowerCase()})}uppercase(t=di.uppercase){return this.transform(n=>hi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,test:n=>hi(n)||n===n.toUpperCase()})}}x3.prototype=rp.prototype;var tL=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function nL(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=tL.exec(e)){for(var l=0,c;c=t[l];++l)i[c]=+i[c]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let op=new Date(""),rL=e=>Object.prototype.toString.call(e)==="[object Date]";class ip extends P2{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:(t=nL(t),isNaN(t)?op:new Date(t))})})}_typeCheck(t){return rL(t)&&!isNaN(t.getTime())}prepareParam(t,n){let r;if(wl.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=I9.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},test(i){return hi(i)||i>=this.resolve(r)}})}max(t,n=I9.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},test(i){return hi(i)||i<=this.resolve(r)}})}}ip.INVALID_DATE=op,ip.prototype;function oL(e,t,n,r){var i=-1,l=e==null?0:e.length;for(r&&l&&(n=e[++i]);++i<l;)n=t(n,e[i],i,e);return n}var iL=oL;function aL(e){return function(t){return e==null?void 0:e[t]}}var lL=aL,sL=lL,cL={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},uL=sL(cL),dL=uL,hL=dL,fL=ps,pL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gL="\\u0300-\\u036f",mL="\\ufe20-\\ufe2f",vL="\\u20d0-\\u20ff",CL=gL+mL+vL,bL="["+CL+"]",yL=RegExp(bL,"g");function wL(e){return e=fL(e),e&&e.replace(pL,hL).replace(yL,"")}var IL=wL,EL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function SL(e){return e.match(EL)||[]}var AL=SL,xL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function FL(e){return xL.test(e)}var ML=FL,ap="\\ud800-\\udfff",zL="\\u0300-\\u036f",kL="\\ufe20-\\ufe2f",PL="\\u20d0-\\u20ff",OL=zL+kL+PL,lp="\\u2700-\\u27bf",sp="a-z\\xdf-\\xf6\\xf8-\\xff",BL="\\xac\\xb1\\xd7\\xf7",LL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",TL="\\u2000-\\u206f",RL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cp="A-Z\\xc0-\\xd6\\xd8-\\xde",DL="\\ufe0e\\ufe0f",up=BL+LL+TL+RL,dp="['\u2019]",hp="["+up+"]",VL="["+OL+"]",fp="\\d+",HL="["+lp+"]",pp="["+sp+"]",gp="[^"+ap+up+fp+lp+sp+cp+"]",NL="\\ud83c[\\udffb-\\udfff]",QL="(?:"+VL+"|"+NL+")",WL="[^"+ap+"]",mp="(?:\\ud83c[\\udde6-\\uddff]){2}",vp="[\\ud800-\\udbff][\\udc00-\\udfff]",P0="["+cp+"]",jL="\\u200d",Cp="(?:"+pp+"|"+gp+")",GL="(?:"+P0+"|"+gp+")",bp="(?:"+dp+"(?:d|ll|m|re|s|t|ve))?",yp="(?:"+dp+"(?:D|LL|M|RE|S|T|VE))?",wp=QL+"?",Ip="["+DL+"]?",UL="(?:"+jL+"(?:"+[WL,mp,vp].join("|")+")"+Ip+wp+")*",KL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qL=Ip+wp+UL,JL="(?:"+[HL,mp,vp].join("|")+")"+qL,ZL=RegExp([P0+"?"+pp+"+"+bp+"(?="+[hp,P0,"$"].join("|")+")",GL+"+"+yp+"(?="+[hp,P0+Cp,"$"].join("|")+")",P0+"?"+Cp+"+"+bp,P0+"+"+yp,YL,KL,fp,JL].join("|"),"g");function XL(e){return e.match(ZL)||[]}var _L=XL,$L=AL,eT=ML,tT=ps,nT=_L;function rT(e,t,n){return e=tT(e),t=n?void 0:t,t===void 0?eT(e)?nT(e):$L(e):e.match(t)||[]}var oT=rT,iT=iL,aT=IL,lT=oT,sT="['\u2019]",cT=RegExp(sT,"g");function uT(e){return function(t){return iT(lT(aT(t).replace(cT,"")),e,"")}}var Ep=uT,dT=Ep,hT=dT(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Sp=hT;function fT(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(i);++r<i;)l[r]=e[r+t];return l}var pT=fT,gT=pT;function mT(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:gT(e,t,n)}var vT=mT,CT="\\ud800-\\udfff",bT="\\u0300-\\u036f",yT="\\ufe20-\\ufe2f",wT="\\u20d0-\\u20ff",IT=bT+yT+wT,ET="\\ufe0e\\ufe0f",ST="\\u200d",AT=RegExp("["+ST+CT+IT+ET+"]");function xT(e){return AT.test(e)}var Ap=xT;function FT(e){return e.split("")}var MT=FT,xp="\\ud800-\\udfff",zT="\\u0300-\\u036f",kT="\\ufe20-\\ufe2f",PT="\\u20d0-\\u20ff",OT=zT+kT+PT,BT="\\ufe0e\\ufe0f",LT="["+xp+"]",Y9="["+OT+"]",q9="\\ud83c[\\udffb-\\udfff]",TT="(?:"+Y9+"|"+q9+")",Fp="[^"+xp+"]",Mp="(?:\\ud83c[\\udde6-\\uddff]){2}",zp="[\\ud800-\\udbff][\\udc00-\\udfff]",RT="\\u200d",kp=TT+"?",Pp="["+BT+"]?",DT="(?:"+RT+"(?:"+[Fp,Mp,zp].join("|")+")"+Pp+kp+")*",VT=Pp+kp+DT,HT="(?:"+[Fp+Y9+"?",Y9,Mp,zp,LT].join("|")+")",NT=RegExp(q9+"(?="+q9+")|"+HT+VT,"g");function QT(e){return e.match(NT)||[]}var WT=QT,jT=MT,GT=Ap,UT=WT;function KT(e){return GT(e)?UT(e):jT(e)}var YT=KT,qT=vT,JT=Ap,ZT=YT,XT=ps;function _T(e){return function(t){t=XT(t);var n=JT(t)?ZT(t):void 0,r=n?n[0]:t.charAt(0),i=n?qT(n,1).join(""):t.slice(1);return r[e]()+i}}var $T=_T,eR=$T,tR=eR("toUpperCase"),nR=tR,rR=ps,oR=nR;function iR(e){return oR(rR(e).toLowerCase())}var aR=iR,lR=aR,sR=Ep,cR=sR(function(e,t,n){return t=t.toLowerCase(),e+(n?lR(t):t)}),uR=cR,dR=wf,hR=Af,fR=Xf;function pR(e,t){var n={};return t=fR(t),hR(e,function(r,i,l){dR(n,t(r,i,l),r)}),n}var gR=pR,J9={exports:{}};J9.exports=function(e){return Op(mR(e),e)},J9.exports.array=Op;function Op(e,t){var n=e.length,r=new Array(n),i={},l=n,c=vR(t),u=CR(e);for(t.forEach(function(g){if(!u.has(g[0])||!u.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});l--;)i[l]||h(e[l],l,new Set);return r;function h(g,d,m){if(m.has(g)){var v;try{v=", node was:"+JSON.stringify(g)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!u.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!i[d]){i[d]=!0;var w=c.get(g)||new Set;if(w=Array.from(w),d=w.length){m.add(g);do{var C=w[--d];h(C,u.get(C),m)}while(d);m.delete(g)}r[--n]=g}}}function mR(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function vR(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function CR(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var bR=J9.exports;function yR(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([c,u])=>`${c}-${u}`));function l(c,u){let h=u5.split(c)[0];r.add(h),i.has(`${u}-${h}`)||n.push([u,h])}for(const c in e)if(a5(e,c)){let u=e[c];r.add(c),wl.isRef(u)&&u.isSibling?l(u.path,c):Cf(u)&&"deps"in u&&u.deps.forEach(h=>l(h,c))}return bR.array(Array.from(r),n).reverse()}function Bp(e,t){let n=1/0;return e.some((r,i)=>{var l;if(((l=t.path)==null?void 0:l.indexOf(r))!==-1)return n=i,!0}),n}function Lp(e){return(t,n)=>Bp(e,t)-Bp(e,n)}function O0(){return O0=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}let Tp=e=>Object.prototype.toString.call(e)==="[object Object]";function wR(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const IR=Lp([]);class Rp extends P2{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=IR,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null}),t&&this.shape(t)})}_typeCheck(t){return Tp(t)||typeof t=="function"}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let l=this.fields,c=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,u=this._nodes.concat(Object.keys(i).filter(m=>this._nodes.indexOf(m)===-1)),h={},g=O0({},n,{parent:h,__validating:n.__validating||!1}),d=!1;for(const m of u){let v=l[m],w=a5(i,m);if(v){let C,b=i[m];g.path=(n.path?`${n.path}.`:"")+m,v=v.resolve({value:b,context:n.context,parent:h});let F="spec"in v?v.spec:void 0,x=F==null?void 0:F.strict;if(F!=null&&F.strip){d=d||m in i;continue}C=!n.__validating||!x?v.cast(i[m],g):i[m],C!==void 0&&(h[m]=C)}else w&&!c&&(h[m]=i[m]);h[m]!==i[m]&&(d=!0)}return d?h:i}_validate(t,n={},r){let i=[],{sync:l,from:c=[],originalValue:u=t,abortEarly:h=this.spec.abortEarly,recursive:g=this.spec.recursive}=n;c=[{schema:this,value:u},...c],n.__validating=!0,n.originalValue=u,n.from=c,super._validate(t,n,(d,m)=>{if(d){if(!oo.isError(d)||h)return void r(d,m);i.push(d)}if(!g||!Tp(m)){r(i[0]||null,m);return}u=u||m;let v=this._nodes.map(w=>(C,b)=>{let F=w.indexOf(".")===-1?(n.path?`${n.path}.`:"")+w:`${n.path||""}["${w}"]`,x=this.fields[w];if(x&&"validate"in x){x.validate(m[w],O0({},n,{path:F,from:c,strict:!0,parent:m,originalValue:u[w]}),b);return}b(null)});B9({sync:l,tests:v,value:m,errors:i,endEarly:h,sort:this._sortErrors,path:n.path},r)})}clone(t){const n=super.clone(t);return n.fields=O0({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,l]of Object.entries(this.fields)){const c=r[i];c===void 0?r[i]=l:c instanceof P2&&l instanceof P2&&(r[i]=l.concat(c))}return n.withMutation(()=>n.shape(r,this._excludedEdges))}getDefaultFromShape(){let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]="default"in r?r.getDefault():void 0}),t}_getDefault(){if("default"in this.spec)return super._getDefault();if(!!this._nodes.length)return this.getDefaultFromShape()}shape(t,n=[]){let r=this.clone(),i=Object.assign(r.fields,t);return r.fields=i,r._sortErrors=Lp(Object.keys(i)),n.length&&(Array.isArray(n[0])||(n=[n]),r._excludedEdges=[...r._excludedEdges,...n]),r._nodes=yR(i,r._excludedEdges),r}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.clone().withMutation(r=>(r.fields={},r.shape(n)))}omit(t){const n=this.clone(),r=n.fields;n.fields={};for(const i of t)delete r[i];return n.withMutation(()=>n.shape(r))}from(t,n,r){let i=u5.getter(t,!0);return this.transform(l=>{if(l==null)return l;let c=l;return a5(l,t)&&(c=O0({},l),r||delete c[t],c[n]=i(l)),c})}noUnknown(t=!0,n=E9.noUnknown){typeof t=="string"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const l=wR(this.schema,i);return!t||l.length===0||this.createError({params:{unknown:l.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=E9.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>n&&gR(n,(r,i)=>t(i)))}camelCase(){return this.transformKeys(uR)}snakeCase(){return this.transformKeys(Sp)}constantCase(){return this.transformKeys(t=>Sp(t).toUpperCase())}describe(){let t=super.describe();return t.fields=_f(this.fields,n=>n.describe()),t}}function Dp(e){return new Rp(e)}Dp.prototype=Rp.prototype;var Vp=function(e,t,n){if(e&&"reportValidity"in e){var r=J1(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Hp=function(e,t){var n=function(i){var l=t.fields[i];l&&l.ref&&"reportValidity"in l.ref?Vp(l.ref,i,e):l.refs&&l.refs.forEach(function(c){return Vp(c,i,e)})};for(var r in t.fields)n(r)},ER=function(e,t){t.shouldUseNativeValidation&&Hp(e,t);var n={};for(var r in e){var i=J1(t.fields,r);Mn(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},SR=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,l){try{return Promise.resolve(function(c,u){try{var h=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(g){return l.shouldUseNativeValidation&&Hp({},l),{values:n.rawValues?r:g,errors:{}}}))}catch(g){return u(g)}return h&&h.then?h.then(void 0,u):h}(0,function(c){if(!c.inner)throw c;return{values:{},errors:ER((u=c,h=!l.shouldUseNativeValidation&&l.criteriaMode==="all",(u.inner||[]).reduce(function(g,d){if(g[d.path]||(g[d.path]={message:d.message,type:d.type}),h){var m=g[d.path].types,v=m&&m[d.type];g[d.path]=zh(d.path,h,g,d.type,v?[].concat(v,d.message):d.message)}return g},{})),l)};var u,h}))}catch(c){return Promise.reject(c)}}};function Np(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Np(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Il(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Np(e))&&(r&&(r+=" "),r+=t);return r}const gs=e=>typeof e=="number"&&!isNaN(e),F3=e=>typeof e=="string",O2=e=>typeof e=="function",g5=e=>F3(e)||O2(e)?e:null,Z9=e=>m1.isValidElement(e)||F3(e)||O2(e)||gs(e);function AR(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function m5(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(c){let{children:u,position:h,preventExitTransition:g,done:d,nodeRef:m,isIn:v}=c;const w=r?`${t}--${h}`:t,C=r?`${n}--${h}`:n,b=m1.useRef(0);return m1.useLayoutEffect(()=>{const F=m.current,x=w.split(" "),M=E=>{E.target===m.current&&(F.dispatchEvent(new Event("d")),F.removeEventListener("animationend",M),F.removeEventListener("animationcancel",M),b.current===0&&E.type!=="animationcancel"&&F.classList.remove(...x))};F.classList.add(...x),F.addEventListener("animationend",M),F.addEventListener("animationcancel",M)},[]),m1.useEffect(()=>{const F=m.current,x=()=>{F.removeEventListener("animationend",x),i?AR(F,d,l):d()};v||(g?x():(b.current=1,F.className+=` ${C}`,F.addEventListener("animationend",x)))},[v]),Z1.default.createElement(Z1.default.Fragment,null,u)}}function Qp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Oo={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},v5=e=>{let{theme:t,type:n,...r}=e;return Z1.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},X9={info:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Z1.default.createElement(v5,{...e},Z1.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Z1.default.createElement("div",{className:"Toastify__spinner"})}};function xR(e){const[,t]=m1.useReducer(w=>w+1,0),[n,r]=m1.useState([]),i=m1.useRef(null),l=m1.useRef(new Map).current,c=w=>n.indexOf(w)!==-1,u=m1.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:c,getToast:w=>l.get(w)}).current;function h(w){let{containerId:C}=w;const{limit:b}=u.props;!b||C&&u.containerId!==C||(u.count-=u.queue.length,u.queue=[])}function g(w){r(C=>w==null?[]:C.filter(b=>b!==w))}function d(){const{toastContent:w,toastProps:C,staleId:b}=u.queue.shift();v(w,C,b)}function m(w,C){let{delay:b,staleId:F,...x}=C;if(!Z9(w)||function(ee){return!i.current||u.props.enableMultiContainer&&ee.containerId!==u.props.containerId||l.has(ee.toastId)&&ee.updateId==null}(x))return;const{toastId:M,updateId:E,data:k}=x,{props:V}=u,L=()=>g(M),D=E==null;D&&u.count++;const H={...V,style:V.toastStyle,key:u.toastKey++,...Object.fromEntries(Object.entries(x).filter(ee=>{let[K,Q]=ee;return Q!=null})),toastId:M,updateId:E,data:k,closeToast:L,isIn:!1,className:g5(x.className||V.toastClassName),bodyClassName:g5(x.bodyClassName||V.bodyClassName),progressClassName:g5(x.progressClassName||V.progressClassName),autoClose:!x.isLoading&&(q=x.autoClose,Z=V.autoClose,q===!1||gs(q)&&q>0?q:Z),deleteToast(){const ee=Qp(l.get(M),"removed");l.delete(M),Oo.emit(4,ee);const K=u.queue.length;if(u.count=M==null?u.count-u.displayedToast:u.count-1,u.count<0&&(u.count=0),K>0){const Q=M==null?u.props.limit:1;if(K===1||Q===1)u.displayedToast++,d();else{const Y=Q>K?K:Q;u.displayedToast=Y;for(let J=0;J<Y;J++)d()}}else t()}};var q,Z;H.iconOut=function(ee){let{theme:K,type:Q,isLoading:Y,icon:J}=ee,te=null;const $={theme:K,type:Q};return J===!1||(O2(J)?te=J($):m1.isValidElement(J)?te=m1.cloneElement(J,$):F3(J)||gs(J)?te=J:Y?te=X9.spinner():(X=>X in X9)(Q)&&(te=X9[Q]($))),te}(H),O2(x.onOpen)&&(H.onOpen=x.onOpen),O2(x.onClose)&&(H.onClose=x.onClose),H.closeButton=V.closeButton,x.closeButton===!1||Z9(x.closeButton)?H.closeButton=x.closeButton:x.closeButton===!0&&(H.closeButton=!Z9(V.closeButton)||V.closeButton);let _=w;m1.isValidElement(w)&&!F3(w.type)?_=m1.cloneElement(w,{closeToast:L,toastProps:H,data:k}):O2(w)&&(_=w({closeToast:L,toastProps:H,data:k})),V.limit&&V.limit>0&&u.count>V.limit&&D?u.queue.push({toastContent:_,toastProps:H,staleId:F}):gs(b)?setTimeout(()=>{v(_,H,F)},b):v(_,H,F)}function v(w,C,b){const{toastId:F}=C;b&&l.delete(b);const x={content:w,props:C};l.set(F,x),r(M=>[...M,F].filter(E=>E!==b)),Oo.emit(4,Qp(x,x.props.updateId==null?"added":"updated"))}return m1.useEffect(()=>(u.containerId=e.containerId,Oo.cancelEmit(3).on(0,m).on(1,w=>i.current&&g(w)).on(5,h).emit(2,u),()=>{l.clear(),Oo.emit(3,u)}),[]),m1.useEffect(()=>{u.props=e,u.isToastActive=c,u.displayedToast=n.length}),{getToastToRender:function(w){const C=new Map,b=Array.from(l.values());return e.newestOnTop&&b.reverse(),b.forEach(F=>{const{position:x}=F.props;C.has(x)||C.set(x,[]),C.get(x).push(F)}),Array.from(C,F=>w(F[0],F[1]))},containerRef:i,isToastActive:c}}function Wp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function jp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function FR(e){const[t,n]=m1.useState(!1),[r,i]=m1.useState(!1),l=m1.useRef(null),c=m1.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=m1.useRef(e),{autoClose:h,pauseOnHover:g,closeToast:d,onClick:m,closeOnClick:v}=e;function w(k){if(e.draggable){k.nativeEvent.type==="touchstart"&&k.nativeEvent.preventDefault(),c.didMove=!1,document.addEventListener("mousemove",x),document.addEventListener("mouseup",M),document.addEventListener("touchmove",x),document.addEventListener("touchend",M);const V=l.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=V.getBoundingClientRect(),V.style.transition="",c.x=Wp(k.nativeEvent),c.y=jp(k.nativeEvent),e.draggableDirection==="x"?(c.start=c.x,c.removalDistance=V.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=V.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function C(k){if(c.boundingRect){const{top:V,bottom:L,left:D,right:H}=c.boundingRect;k.nativeEvent.type!=="touchend"&&e.pauseOnHover&&c.x>=D&&c.x<=H&&c.y>=V&&c.y<=L?F():b()}}function b(){n(!0)}function F(){n(!1)}function x(k){const V=l.current;c.canDrag&&V&&(c.didMove=!0,t&&F(),c.x=Wp(k),c.y=jp(k),c.delta=e.draggableDirection==="x"?c.x-c.start:c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),V.style.transform=`translate${e.draggableDirection}(${c.delta}px)`,V.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function M(){document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",M);const k=l.current;if(c.canDrag&&c.didMove&&k){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return i(!0),void e.closeToast();k.style.transition="transform 0.2s, opacity 0.2s",k.style.transform=`translate${e.draggableDirection}(0)`,k.style.opacity="1"}}m1.useEffect(()=>{u.current=e}),m1.useEffect(()=>(l.current&&l.current.addEventListener("d",b,{once:!0}),O2(e.onOpen)&&e.onOpen(m1.isValidElement(e.children)&&e.children.props),()=>{const k=u.current;O2(k.onClose)&&k.onClose(m1.isValidElement(k.children)&&k.children.props)}),[]),m1.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||F(),window.addEventListener("focus",b),window.addEventListener("blur",F)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",F))}),[e.pauseOnFocusLoss]);const E={onMouseDown:w,onTouchStart:w,onMouseUp:C,onTouchEnd:C};return h&&g&&(E.onMouseEnter=F,E.onMouseLeave=b),v&&(E.onClick=k=>{m&&m(k),c.canCloseOnClick&&d()}),{playToast:b,pauseToast:F,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:E}}function Gp(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return Z1.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},Z1.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Z1.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function MR(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:c,style:u,controlledProgress:h,progress:g,rtl:d,isIn:m,theme:v}=e;const w=l||h&&g===0,C={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:w?0:1};h&&(C.transform=`scaleX(${g})`);const b=Il("Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${v}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),F=O2(c)?c({rtl:d,type:i,defaultClassName:b}):Il(b,c);return Z1.default.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:F,style:C,[h&&g>=1?"onTransitionEnd":"onAnimationEnd"]:h&&g<1?null:()=>{m&&r()}})}const zR=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=FR(e),{closeButton:l,children:c,autoClose:u,onClick:h,type:g,hideProgressBar:d,closeToast:m,transition:v,position:w,className:C,style:b,bodyClassName:F,bodyStyle:x,progressClassName:M,progressStyle:E,updateId:k,role:V,progress:L,rtl:D,toastId:H,deleteToast:q,isIn:Z,isLoading:_,iconOut:ee,closeOnClick:K,theme:Q}=e,Y=Il("Toastify__toast",`Toastify__toast-theme--${Q}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":D},{"Toastify__toast--close-on-click":K}),J=O2(C)?C({rtl:D,position:w,type:g,defaultClassName:Y}):Il(Y,C),te=!!L||!u,$={closeToast:m,type:g,theme:Q};let X=null;return l===!1||(X=O2(l)?l($):m1.isValidElement(l)?m1.cloneElement(l,$):Gp($)),Z1.default.createElement(v,{isIn:Z,done:q,position:w,preventExitTransition:n,nodeRef:r},Z1.default.createElement("div",{id:H,onClick:h,className:J,...i,style:b,ref:r},Z1.default.createElement("div",{...Z&&{role:V},className:O2(F)?F({type:g}):Il("Toastify__toast-body",F),style:x},ee!=null&&Z1.default.createElement("div",{className:Il("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!_})},ee),Z1.default.createElement("div",null,c)),X,Z1.default.createElement(MR,{...k&&!te?{key:`pb-${k}`}:{},rtl:D,theme:Q,delay:u,isRunning:t,isIn:Z,closeToast:m,hide:d,type:g,style:E,className:M,controlledProgress:te,progress:L||0})))},C5=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},kR=m5(C5("bounce",!0));m5(C5("slide",!0)),m5(C5("zoom")),m5(C5("flip"));const M3=m1.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=xR(e),{className:l,style:c,rtl:u,containerId:h}=e;function g(d){const m=Il("Toastify__toast-container",`Toastify__toast-container--${d}`,{"Toastify__toast-container--rtl":u});return O2(l)?l({position:d,rtl:u,defaultClassName:m}):Il(m,g5(l))}return m1.useEffect(()=>{t&&(t.current=r.current)},[]),Z1.default.createElement("div",{ref:r,className:"Toastify",id:h},n((d,m)=>{const v=m.length?{...c}:{...c,pointerEvents:"none"};return Z1.default.createElement("div",{className:g(d),style:v,key:`container-${d}`},m.map((w,C)=>{let{content:b,props:F}=w;return Z1.default.createElement(zR,{...F,isIn:i(F.toastId),style:{...F.style,"--nth":C+1,"--len":m.length},key:`toast-${F.key}`},b)}))}))});M3.displayName="ToastContainer",M3.defaultProps={position:"top-right",transition:kR,autoClose:5e3,closeButton:Gp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let _9,z3=new Map,ms=[],PR=1;function Up(){return""+PR++}function OR(e){return e&&(F3(e.toastId)||gs(e.toastId))?e.toastId:Up()}function vs(e,t){return z3.size>0?Oo.emit(0,e,t):ms.push({content:e,options:t}),t.toastId}function b5(e,t){return{...t,type:t&&t.type||e,toastId:OR(t)}}function y5(e){return(t,n)=>vs(t,b5(e,n))}function An(e,t){return vs(e,b5("default",t))}An.loading=(e,t)=>vs(e,b5("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),An.promise=function(e,t,n){let r,{pending:i,error:l,success:c}=t;i&&(r=F3(i)?An.loading(i,n):An.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(d,m,v)=>{if(m==null)return void An.dismiss(r);const w={type:d,...u,...n,data:v},C=F3(m)?{render:m}:m;return r?An.update(r,{...w,...C}):An(C.render,{...w,...C}),v},g=O2(e)?e():e;return g.then(d=>h("success",c,d)).catch(d=>h("error",l,d)),g},An.success=y5("success"),An.info=y5("info"),An.error=y5("error"),An.warning=y5("warning"),An.warn=An.warning,An.dark=(e,t)=>vs(e,b5("default",{theme:"dark",...t})),An.dismiss=e=>{z3.size>0?Oo.emit(1,e):ms=ms.filter(t=>e!=null&&t.options.toastId!==e)},An.clearWaitingQueue=function(e){return e===void 0&&(e={}),Oo.emit(5,e)},An.isActive=e=>{let t=!1;return z3.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},An.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:l}=i;const c=z3.get(l||_9);return c&&c.getToast(r)}(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Up()};l.toastId!==e&&(l.staleId=e);const c=l.render||i;delete l.render,vs(c,l)}},0)},An.done=e=>{An.update(e,{progress:1})},An.onChange=e=>(Oo.on(4,e),()=>{Oo.off(4,e)}),An.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},An.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Oo.on(2,e=>{_9=e.containerId||e,z3.set(_9,e),ms.forEach(t=>{Oo.emit(0,t.content,t.options)}),ms=[]}).on(3,e=>{z3.delete(e.containerId||e),z3.size===0&&Oo.off(0).off(1).off(5)});function Cs(e){var i;let t="Error interno de la App, consultar con soporte.";const{code:n}=e==null?void 0:e.response.data,{status:r}=(i=e.response)==null?void 0:i.status;n==="A1050"?(console.log(e.response.data.message),t="No se pudo procesar la consulta, por favor contacte con soporte."):n===22007?(console.log(e.response.data.message),t="Documento no reconocido"):n===504?(console.log(e.response.data.message),t="M\xE1ximo de consultas, por favor contacte con soporte."):n==="020"?(console.log(e.response.data.message),t=e.response.data.message):r==="429"&&console.log(e.response.data),console.log(n,"code",t,"message"),An.error(t,{position:"top-center",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})}var BR=Object.prototype.hasOwnProperty,LR=Object.prototype.toString;function TR(e){if(e==null)return!0;if(typeof e=="boolean")return!1;if(typeof e=="number")return e===0;if(typeof e=="string"||typeof e=="function"||Array.isArray(e))return e.length===0;if(e instanceof Error)return e.message==="";if(e.toString==LR)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return e.size===0;case"[object Object]":{for(var t in e)if(BR.call(e,t))return!1;return!0}}return!1}var Hr=TR;const RR=async e=>{const t={method:"GET",path:"api-hub/v1/check_ip",inProduction:e};try{return(await S0(t)).data}catch(n){return console.log(n),n}};function w5(e){const[t,n]=m1.useState(null);return m1.useEffect(()=>{RR(e).then(r=>n(r)).catch(r=>console.log(r))},[]),t}const Bo=async({data:e,component:t,eventId:n,inProduction:r,source:i,clientId:l,geolocation:c})=>{let u={};c&&Object.assign(u,{check_ip:JSON.stringify(c)}),"csvFile"in e&&Object.assign(u,{"Content-Type":"multipart/form-data"});const h={method:"POST",inProduction:r,path:`api-hub/v1/events/register/${t}/${i}/${l}/${n}`,bodyParams:e,service:"product",customHeaders:u};try{return(await S0(h)).data}catch(g){return g}},El="COUNTRY_NOT_ALLOWED",I5="Pa\xEDs no autorizado",k3="TOKEN",Sl="CLIENTID",Al="USE_VPN",E5="Uso de Proxy o VPN no permitido",S5="yes",$9="Limite de consultas - Verificar con el proveedor",Kp=1920,Yp=1080,qp=(e,t,n,r,i,l,c,u,h,g)=>{const[d,m]=m1.useState(!1),[v,w]=m1.useState(e===void 0?Sl:t===void 0?k3:""),[C,b]=m1.useState(""),[F,x]=m1.useState([]),[M,E]=m1.useState(""),[k,V]=m1.useState({}),[L,D]=m1.useState(null),H=w5(n),[q,Z]=m1.useState(null),_=m1.useRef(null),[ee,K]=m1.useState({});m1.useEffect(()=>{var se;l&&(H==null?void 0:H.data_connection.isocode)&&l.length!==0&&!l.some(pe=>pe.value===(H==null?void 0:H.data_connection.isocode))&&(w(El),b(I5)),c&&((se=H==null?void 0:H.data_connection)==null?void 0:se.proxy)==S5&&(w(Al),b(E5)),l&&H&&D(H==null?void 0:H.data_connection.isocode)},[H,l,c]);const Q=()=>{te(),w(""),b(""),x([]),E(""),m(!1),Z(null),K({}),g([])},Y=Dp({first_name:x3().required("Este campo es requerido."),second_name:x3(),first_last_name:x3().required("Este campo es requerido."),second_last_name:x3(),country:x3().nullable(),birth_date:x3().nullable()}).required(),{control:J,reset:te,handleSubmit:$,formState:{errors:X}}=$4({resolver:SR(Y),mode:"onBlur",defaultValues:{first_name:"",second_name:"",first_last_name:"",second_last_name:"",country:"",birth_date:""}}),ne=async se=>{var _e,l1;const{first_name:pe,second_name:ye,first_last_name:Fe,second_last_name:Ne,birth_date:Oe}=se;m(!0);try{const Ie=await t(),o1={method:"POST",path:"api/v2/providers/acuant/search",service:"services",customHeaders:{client_id:e,access_token:Ie},inProduction:n,bodyParams:{first_name:pe===""?null:pe,second_name:ye===""?null:ye,first_last_name:Fe===""?null:Fe,second_last_name:Ne===""?null:Ne,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null}};V(o1.bodyParams);const r1=await S0(o1),{match:C1,message:s1,status:B1,payload:he}=r1.data.data,we={request_match:C1,request_payload:he,first_name:pe===""?null:pe,second_name:ye===""?null:ye,first_last_name:Fe===""?null:Fe,second_last_name:Ne===""?null:Ne,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null};await Bo({data:{...we,status_code:200},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Hr(C1)?b(u||s1):(x(C1),b(h||s1)),await g(C1),w(B1)}catch(Ie){let Je="";console.log(Ie);const o1=(l1=(_e=Ie==null?void 0:Ie.response)==null?void 0:_e.status)!=null?l1:"";await Bo({data:{dataReq:k,status_code:400},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Ie.response.data.message?Je=Ie.response.data:o1===500&&(Je="Error de consulta - Verificar con el proveedor"),m(null),b(Je),w(o1),Cs(Ie)}finally{m(!1)}},be=se=>{Z(se.target.files[0])},{handleSubmit:me}=$4();return{onSendSubmitDocument:ne,onSubmitCsv:async()=>{m(!0);try{const se=await t(),ye={method:"POST",path:"api/v1/providers/acuant/search_batch",customHeaders:{client_id:e,access_token:se,"Content-Type":"multipart/form-data"},service:"services",inProduction:n,bodyParams:{csvFile:q}};V(ye.bodyParams);const Fe=await S0(ye),{batchSize:Ne,id:Oe,startTime:_e}=Fe.data.data;await Bo({data:{...{csvFile:q,batch_id:Oe,start_time:_e,batch_size:Ne},status_code:200},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),b(h||"La verificai\xF3n est\xE1 en proceso. Por favor copie y guarde este ID para su control!"),w(Fe.data.message),K(Fe.data.data),await g({batchSize:Ne,id:Oe,startTime:_e})}catch(se){let pe="Error interno de la aplicai\xF3n";const{status:ye,data:Fe}=se.response;await Bo({data:{csvFile:q,status_code:ye},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Fe.message?pe=Fe.message:ye===500&&(pe="Error de consulta - Verificar con el proveedor"),m(null),b(pe),w(ye),Cs(se)}finally{m(!1)}},handleSubmitCsv:me,simpleHandleSubmit:$,isLoading:d,errorsDoc:X,controlDoc:J,status:v,message:C,listMatch:F,select:M,setSelect:E,clearState:Q,dataReq:k,countryCode:L,handleFileUpload:be,csvFile:q,setCsvFile:Z,fileInputRef:_,batchData:ee,copyFunction:se=>{navigator.clipboard.writeText(se),An.success("Copiado en el Portapapeles")}}};var A5={exports:{}},x5={};/**
|
|
1083
1083
|
* @license React
|
|
1084
1084
|
* react-jsx-runtime.production.min.js
|
|
1085
1085
|
*
|
|
@@ -1401,7 +1401,7 @@ attempted value: ${l}
|
|
|
1401
1401
|
top: 0;
|
|
1402
1402
|
}
|
|
1403
1403
|
`),I_,(t.vars||t).palette.action.hover));var S_=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:l,component:c="span",height:u,style:h,variant:g="text",width:d}=r,m=e1(r,b_),v=P({},r,{animation:i,component:c,variant:g,hasChildren:Boolean(m.children)}),w=y_(v);return o(E_,P({as:c,ref:n,className:b1(w.root,l),ownerState:v},m,{style:P({width:d,height:u},h)}))});function A_(e){return wt("MuiTooltip",e)}var Pl=mt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const x_=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function F_(e){return Math.round(e*1e5)/1e5}const M_=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:l}=e,c={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${v1(l.split("-")[0])}`],arrow:["arrow"]};return V1(c,A_,t)},z_=p1(N3,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pl.arrow}`]:P({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Pl.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),k_=p1("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${v1(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Zt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${F_(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Pl.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Pl.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Pl.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Pl.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),P_=p1("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Zt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Uc=!1;const mC=new Vs;let i4={x:0,y:0};function Kc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var a4=y.forwardRef(function(t,n){var r,i,l,c,u,h,g,d,m,v,w,C,b,F,x,M,E,k,V;const L=Ft({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:H,components:q={},componentsProps:Z={},describeChild:_=!1,disableFocusListener:ee=!1,disableHoverListener:K=!1,disableInteractive:Q=!1,disableTouchListener:Y=!1,enterDelay:J=100,enterNextDelay:te=0,enterTouchDelay:$=700,followCursor:X=!1,id:ne,leaveDelay:be=0,leaveTouchDelay:me=1500,onClose:Be,onOpen:ze,open:se,placement:pe="bottom",PopperComponent:ye,PopperProps:Fe={},slotProps:Ne={},slots:Oe={},title:_e,TransitionComponent:l1=Qc,TransitionProps:Ie}=L,Je=e1(L,x_),o1=y.isValidElement(H)?H:o("span",{children:H}),r1=Ra(),C1=Hs(),[s1,B1]=y.useState(),[he,we]=y.useState(null),Se=y.useRef(!1),xe=Q||X,Pe=K0(),Me=K0(),Te=K0(),Xe=K0(),[je,We]=O3({controlled:se,default:!1,name:"Tooltip",state:"open"});let Ke=je;const L1=Pn(ne),S1=y.useRef(),De=xn(()=>{S1.current!==void 0&&(document.body.style.WebkitUserSelect=S1.current,S1.current=void 0),Xe.clear()});y.useEffect(()=>De,[De]);const w1=K1=>{mC.clear(),Uc=!0,We(!0),ze&&!Ke&&ze(K1)},a1=xn(K1=>{mC.start(800+be,()=>{Uc=!1}),We(!1),Be&&Ke&&Be(K1),Pe.start(r1.transitions.duration.shortest,()=>{Se.current=!1})}),E1=K1=>{Se.current&&K1.type!=="touchstart"||(s1&&s1.removeAttribute("title"),Me.clear(),Te.clear(),J||Uc&&te?Me.start(Uc?te:J,()=>{w1(K1)}):w1(K1))},$1=K1=>{Me.clear(),Te.start(be,()=>{a1(K1)})},{isFocusVisibleRef:et,onBlur:At,onFocus:Bt,ref:pt}=$g(),[,bt]=y.useState(!1),rn=K1=>{At(K1),et.current===!1&&(bt(!1),$1(K1))},Ln=K1=>{s1||B1(K1.currentTarget),Bt(K1),et.current===!0&&(bt(!0),E1(K1))},Tn=K1=>{Se.current=!0;const kt=o1.props;kt.onTouchStart&&kt.onTouchStart(K1)},Er=K1=>{Tn(K1),Te.clear(),Pe.clear(),De(),S1.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Xe.start($,()=>{document.body.style.WebkitUserSelect=S1.current,E1(K1)})},Qn=K1=>{o1.props.onTouchEnd&&o1.props.onTouchEnd(K1),De(),Te.start(me,()=>{a1(K1)})};y.useEffect(()=>{if(!Ke)return;function K1(kt){(kt.key==="Escape"||kt.key==="Esc")&&a1(kt)}return document.addEventListener("keydown",K1),()=>{document.removeEventListener("keydown",K1)}},[a1,Ke]);const Xn=vn(L3(o1),pt,B1,n);!_e&&_e!==0&&(Ke=!1);const I1=y.useRef(),q1=K1=>{const kt=o1.props;kt.onMouseMove&&kt.onMouseMove(K1),i4={x:K1.clientX,y:K1.clientY},I1.current&&I1.current.update()},$t={},it=typeof _e=="string";_?($t.title=!Ke&&it&&!K?_e:null,$t["aria-describedby"]=Ke?L1:null):($t["aria-label"]=it?_e:null,$t["aria-labelledby"]=Ke&&!it?L1:null);const Wn=P({},$t,Je,o1.props,{className:b1(Je.className,o1.props.className),onTouchStart:Tn,ref:Xn},X?{onMouseMove:q1}:{}),pr={};Y||(Wn.onTouchStart=Er,Wn.onTouchEnd=Qn),K||(Wn.onMouseOver=Kc(E1,Wn.onMouseOver),Wn.onMouseLeave=Kc($1,Wn.onMouseLeave),xe||(pr.onMouseOver=E1,pr.onMouseLeave=$1)),ee||(Wn.onFocus=Kc(Ln,Wn.onFocus),Wn.onBlur=Kc(rn,Wn.onBlur),xe||(pr.onFocus=Ln,pr.onBlur=rn));const Gr=y.useMemo(()=>{var K1;let kt=[{name:"arrow",enabled:Boolean(he),options:{element:he,padding:4}}];return(K1=Fe.popperOptions)!=null&&K1.modifiers&&(kt=kt.concat(Fe.popperOptions.modifiers)),P({},Fe.popperOptions,{modifiers:kt})},[he,Fe]),Rn=P({},L,{isRtl:C1,arrow:D,disableInteractive:xe,placement:pe,PopperComponentProp:ye,touch:Se.current}),Lr=M_(Rn),Sr=(r=(i=Oe.popper)!=null?i:q.Popper)!=null?r:z_,kn=(l=(c=(u=Oe.transition)!=null?u:q.Transition)!=null?c:l1)!=null?l:Qc,Cn=(h=(g=Oe.tooltip)!=null?g:q.Tooltip)!=null?h:k_,u1=(d=(m=Oe.arrow)!=null?m:q.Arrow)!=null?d:P_,Qe=q0(Sr,P({},Fe,(v=Ne.popper)!=null?v:Z.popper,{className:b1(Lr.popper,Fe==null?void 0:Fe.className,(w=(C=Ne.popper)!=null?C:Z.popper)==null?void 0:w.className)}),Rn),T1=q0(kn,P({},Ie,(b=Ne.transition)!=null?b:Z.transition),Rn),j1=q0(Cn,P({},(F=Ne.tooltip)!=null?F:Z.tooltip,{className:b1(Lr.tooltip,(x=(M=Ne.tooltip)!=null?M:Z.tooltip)==null?void 0:x.className)}),Rn),ft=q0(u1,P({},(E=Ne.arrow)!=null?E:Z.arrow,{className:b1(Lr.arrow,(k=(V=Ne.arrow)!=null?V:Z.arrow)==null?void 0:k.className)}),Rn);return U(y.Fragment,{children:[y.cloneElement(o1,Wn),o(Sr,P({as:ye!=null?ye:N3,placement:pe,anchorEl:X?{getBoundingClientRect:()=>({top:i4.y,left:i4.x,right:i4.x,bottom:i4.y,width:0,height:0})}:s1,popperRef:I1,open:s1?Ke:!1,id:L1,transition:!0},pr,Qe,{popperOptions:Gr,children:({TransitionProps:K1})=>o(kn,P({timeout:r1.transitions.duration.shorter},K1,T1,{children:U(Cn,P({},j1,{children:[_e,D?o(u1,P({},ft,{ref:we})):null]}))}))}))]})});function O_(e){return wt("MuiSwitch",e)}var t2=mt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);const B_=["className","color","edge","size","sx"],L_=e=>{const{classes:t,edge:n,size:r,color:i,checked:l,disabled:c}=e,u={root:["root",n&&`edge${v1(n)}`,`size${v1(r)}`],switchBase:["switchBase",`color${v1(i)}`,l&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=V1(u,O_,t);return P({},t,h)},T_=p1("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${v1(n.edge)}`],t[`size${v1(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${t2.thumb}`]:{width:16,height:16},[`& .${t2.switchBase}`]:{padding:4,[`&.${t2.checked}`]:{transform:"translateX(16px)"}}}}]}),R_=p1(Ev,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${t2.input}`]:t.input},n.color!=="default"&&t[`color${v1(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${t2.checked}`]:{transform:"translateX(20px)"},[`&.${t2.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${t2.checked} + .${t2.track}`]:{opacity:.5},[`&.${t2.disabled} + .${t2.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${t2.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Zt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${t2.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t2.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?js(e.palette[t].main,.62):Ws(e.palette[t].main,.55)}`}},[`&.${t2.checked} + .${t2.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),D_=p1("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),V_=p1("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}));var H_=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiSwitch"}),{className:i,color:l="primary",edge:c=!1,size:u="medium",sx:h}=r,g=e1(r,B_),d=P({},r,{color:l,edge:c,size:u}),m=L_(d),v=o(V_,{className:m.thumb,ownerState:d});return U(T_,{className:b1(m.root,i),sx:h,ownerState:d,children:[o(R_,P({type:"checkbox",icon:v,checkedIcon:v,ref:n,ownerState:d},g,{classes:P({},m,{root:m.switchBase})})),o(D_,{className:m.track,ownerState:d})]})});function N_(e){return wt("MuiTab",e)}var Ol=mt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const Q_=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],W_=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:l,label:c,selected:u,disabled:h}=e,g={root:["root",l&&c&&"labelIcon",`textColor${v1(n)}`,r&&"fullWidth",i&&"wrapped",u&&"selected",h&&"disabled"],iconWrapper:["iconWrapper"]};return V1(g,N_,t)},j_=p1(Va,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${v1(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Ol.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>P({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Ol.iconWrapper}`]:P({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Ol.selected}`]:{opacity:1},[`&.${Ol.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ol.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ol.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ol.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ol.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}));var vC=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTab"}),{className:i,disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u,icon:h,iconPosition:g="top",indicator:d,label:m,onChange:v,onClick:w,onFocus:C,selected:b,selectionFollowsFocus:F,textColor:x="inherit",value:M,wrapped:E=!1}=r,k=e1(r,Q_),V=P({},r,{disabled:l,disableFocusRipple:c,selected:b,icon:!!h,iconPosition:g,label:!!m,fullWidth:u,textColor:x,wrapped:E}),L=W_(V),D=h&&m&&y.isValidElement(h)?y.cloneElement(h,{className:b1(L.iconWrapper,h.props.className)}):h,H=Z=>{!b&&v&&v(Z,M),w&&w(Z)},q=Z=>{F&&!b&&v&&v(Z,M),C&&C(Z)};return U(j_,P({focusRipple:!c,className:b1(L.root,i),ref:n,role:"tab","aria-selected":b,disabled:l,onClick:H,onFocus:q,ownerState:V,tabIndex:b?0:-1},k,{children:[g==="top"||g==="start"?U(y.Fragment,{children:[D,m]}):U(y.Fragment,{children:[m,D]}),d]}))}),G_=y.createContext(),U_=y.createContext();function K_(e){return wt("MuiTableCell",e)}var Y_=mt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const q_=["align","className","component","padding","scope","size","sortDirection","variant"],J_=e=>{const{classes:t,variant:n,align:r,padding:i,size:l,stickyHeader:c}=e,u={root:["root",n,c&&"stickyHeader",r!=="inherit"&&`align${v1(r)}`,i!=="normal"&&`padding${v1(i)}`,`size${v1(l)}`]};return V1(u,K_,t)},Z_=p1("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${v1(n.size)}`],n.padding!=="normal"&&t[`padding${v1(n.padding)}`],n.align!=="inherit"&&t[`align${v1(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
1404
|
-
${e.palette.mode==="light"?js(Zt(e.palette.divider,1),.88):Ws(Zt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Y_.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}));var vu=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTableCell"}),{align:i="inherit",className:l,component:c,padding:u,scope:h,size:g,sortDirection:d,variant:m}=r,v=e1(r,q_),w=y.useContext(G_),C=y.useContext(U_),b=C&&C.variant==="head";let F;c?F=c:F=b?"th":"td";let x=h;F==="td"?x=void 0:!x&&b&&(x="col");const M=m||C&&C.variant,E=P({},r,{align:i,component:F,padding:u||(w&&w.padding?w.padding:"normal"),size:g||(w&&w.size?w.size:"medium"),sortDirection:d,stickyHeader:M==="head"&&w&&w.stickyHeader,variant:M}),k=J_(E);let V=null;return d&&(V=d==="asc"?"ascending":"descending"),o(Z_,P({as:F,ref:n,className:b1(k.root,l),"aria-sort":V,scope:x,ownerState:E},v))});function X_(e){return wt("MuiToolbar",e)}mt("MuiToolbar",["root","gutters","regular","dense"]);const __=["className","component","disableGutters","variant"],$_=e=>{const{classes:t,disableGutters:n,variant:r}=e;return V1({root:["root",!n&&"gutters",r]},X_,t)},e$=p1("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar);var t$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiToolbar"}),{className:i,component:l="div",disableGutters:c=!1,variant:u="regular"}=r,h=e1(r,__),g=P({},r,{component:l,disableGutters:c,variant:u}),d=$_(g);return o(e$,P({as:l,className:b1(d.root,i),ref:n,ownerState:g},h))}),CC=Ct(o("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),bC=Ct(o("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");const n$=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"];var r$=y.forwardRef(function(t,n){var r,i,l,c,u,h,g,d;const{backIconButtonProps:m,count:v,disabled:w=!1,getItemAriaLabel:C,nextIconButtonProps:b,onPageChange:F,page:x,rowsPerPage:M,showFirstButton:E,showLastButton:k,slots:V={},slotProps:L={}}=t,D=e1(t,n$),H=Hs(),q=Ne=>{F(Ne,0)},Z=Ne=>{F(Ne,x-1)},_=Ne=>{F(Ne,x+1)},ee=Ne=>{F(Ne,Math.max(0,Math.ceil(v/M)-1))},K=(r=V.firstButton)!=null?r:Ha,Q=(i=V.lastButton)!=null?i:Ha,Y=(l=V.nextButton)!=null?l:Ha,J=(c=V.previousButton)!=null?c:Ha,te=(u=V.firstButtonIcon)!=null?u:n_,$=(h=V.lastButtonIcon)!=null?h:r_,X=(g=V.nextButtonIcon)!=null?g:bC,ne=(d=V.previousButtonIcon)!=null?d:CC,be=H?Q:K,me=H?Y:J,Be=H?J:Y,ze=H?K:Q,se=H?L.lastButton:L.firstButton,pe=H?L.nextButton:L.previousButton,ye=H?L.previousButton:L.nextButton,Fe=H?L.firstButton:L.lastButton;return U("div",P({ref:n},D,{children:[E&&o(be,P({onClick:q,disabled:w||x===0,"aria-label":C("first",x),title:C("first",x)},se,{children:H?o($,P({},L.lastButtonIcon)):o(te,P({},L.firstButtonIcon))})),o(me,P({onClick:Z,disabled:w||x===0,color:"inherit","aria-label":C("previous",x),title:C("previous",x)},pe!=null?pe:m,{children:H?o(X,P({},L.nextButtonIcon)):o(ne,P({},L.previousButtonIcon))})),o(Be,P({onClick:_,disabled:w||(v!==-1?x>=Math.ceil(v/M)-1:!1),color:"inherit","aria-label":C("next",x),title:C("next",x)},ye!=null?ye:b,{children:H?o(ne,P({},L.previousButtonIcon)):o(X,P({},L.nextButtonIcon))})),k&&o(ze,P({onClick:ee,disabled:w||x>=Math.ceil(v/M)-1,"aria-label":C("last",x),title:C("last",x)},Fe,{children:H?o(te,P({},L.firstButtonIcon)):o($,P({},L.lastButtonIcon))}))]}))});function o$(e){return wt("MuiTablePagination",e)}var W3=mt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),yC;const i$=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],a$=p1(vu,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),l$=p1(t$,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${W3.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${W3.actions}`]:{flexShrink:0,marginLeft:20}})),s$=p1("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),c$=p1("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),u$=p1(mu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${W3.selectIcon}`]:t.selectIcon,[`& .${W3.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${W3.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),d$=p1(Xi,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),h$=p1("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function f$({from:e,to:t,count:n}){return`${e}\u2013${t} of ${n!==-1?n:`more than ${t}`}`}function p$(e){return`Go to ${e} page`}const g$=e=>{const{classes:t}=e;return V1({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},o$,t)};var m$=y.forwardRef(function(t,n){var r;const i=Ft({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=r$,backIconButtonProps:c,className:u,colSpan:h,component:g=vu,count:d,disabled:m=!1,getItemAriaLabel:v=p$,labelDisplayedRows:w=f$,labelRowsPerPage:C="Rows per page:",nextIconButtonProps:b,onPageChange:F,onRowsPerPageChange:x,page:M,rowsPerPage:E,rowsPerPageOptions:k=[10,25,50,100],SelectProps:V={},showFirstButton:L=!1,showLastButton:D=!1,slotProps:H={},slots:q={}}=i,Z=e1(i,i$),_=i,ee=g$(_),K=(r=H==null?void 0:H.select)!=null?r:V,Q=K.native?"option":d$;let Y;(g===vu||g==="td")&&(Y=h||1e3);const J=Pn(K.id),te=Pn(K.labelId),$=()=>d===-1?(M+1)*E:E===-1?d:Math.min(d,(M+1)*E);return o(a$,P({colSpan:Y,ref:n,as:g,ownerState:_,className:b1(ee.root,u)},Z,{children:U(l$,{className:ee.toolbar,children:[o(s$,{className:ee.spacer}),k.length>1&&o(c$,{className:ee.selectLabel,id:te,children:C}),k.length>1&&o(u$,P({variant:"standard"},!K.variant&&{input:yC||(yC=o(o8,{}))},{value:E,onChange:x,id:J,labelId:te},K,{classes:P({},K.classes,{root:b1(ee.input,ee.selectRoot,(K.classes||{}).root),select:b1(ee.select,(K.classes||{}).select),icon:b1(ee.selectIcon,(K.classes||{}).icon)}),disabled:m,children:k.map(X=>m1.createElement(Q,P({},!B3(Q)&&{ownerState:_},{className:ee.menuItem,key:X.label?X.label:X,value:X.value?X.value:X}),X.label?X.label:X))})),o(h$,{className:ee.displayedRows,children:w({from:d===0?0:M*E+1,to:$(),count:d===-1?-1:d,page:M})}),o(l,{className:ee.actions,backIconButtonProps:c,count:d,nextIconButtonProps:b,onPageChange:F,page:M,rowsPerPage:E,showFirstButton:L,showLastButton:D,slotProps:H.actions,slots:q.actions,getItemAriaLabel:v,disabled:m})]})}))});function v$(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function C$(e,t,n,r={},i=()=>{}){const{ease:l=v$,duration:c=300}=r;let u=null;const h=t[e];let g=!1;const d=()=>{g=!0},m=v=>{if(g){i(new Error("Animation cancelled"));return}u===null&&(u=v);const w=Math.min(1,(v-u)/c);if(t[e]=l(w)*(n-h)+h,w>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(m)};return h===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(m),d)}const b$=["onChange"],y$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function w$(e){const{onChange:t}=e,n=e1(e,b$),r=y.useRef(),i=y.useRef(null),l=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return wn(()=>{const c=U0(()=>{const h=r.current;l(),h!==r.current&&t(r.current)}),u=Ui(i.current);return u.addEventListener("resize",c),()=>{c.clear(),u.removeEventListener("resize",c)}},[t]),y.useEffect(()=>{l(),t(r.current)},[t]),o("div",P({style:y$},n,{ref:i}))}function I$(e){return wt("MuiTabScrollButton",e)}var E$=mt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const S$=["className","slots","slotProps","direction","orientation","disabled"],A$=e=>{const{classes:t,orientation:n,disabled:r}=e;return V1({root:["root",n,r&&"disabled"]},I$,t)},x$=p1(Va,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${E$.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}));var F$=y.forwardRef(function(t,n){var r,i;const l=Ft({props:t,name:"MuiTabScrollButton"}),{className:c,slots:u={},slotProps:h={},direction:g}=l,d=e1(l,S$),m=Hs(),v=P({isRtl:m},l),w=A$(v),C=(r=u.StartScrollButtonIcon)!=null?r:CC,b=(i=u.EndScrollButtonIcon)!=null?i:bC,F=so({elementType:C,externalSlotProps:h.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),x=so({elementType:b,externalSlotProps:h.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return o(x$,P({component:"div",className:b1(w.root,c),ref:n,role:null,ownerState:v,tabIndex:null},d,{children:g==="left"?o(C,P({},F)):o(b,P({},x))}))});function M$(e){return wt("MuiTabs",e)}var Cu=mt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const z$=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wC=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,IC=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Yc=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const l=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||l)i=n(e,i);else{i.focus();return}}},k$=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:l,centered:c,scrollButtonsHideMobile:u,classes:h}=e;return V1({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},M$,h)},P$=p1("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cu.scrollButtons}`]:t.scrollButtons},{[`& .${Cu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Cu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),O$=p1("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),B$=p1("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),L$=p1("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),T$=p1(w$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),EC={};var R$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTabs"}),i=Ra(),l=Hs(),{"aria-label":c,"aria-labelledby":u,action:h,centered:g=!1,children:d,className:m,component:v="div",allowScrollButtonsMobile:w=!1,indicatorColor:C="primary",onChange:b,orientation:F="horizontal",ScrollButtonComponent:x=F$,scrollButtons:M="auto",selectionFollowsFocus:E,slots:k={},slotProps:V={},TabIndicatorProps:L={},TabScrollButtonProps:D={},textColor:H="primary",value:q,variant:Z="standard",visibleScrollbar:_=!1}=r,ee=e1(r,z$),K=Z==="scrollable",Q=F==="vertical",Y=Q?"scrollTop":"scrollLeft",J=Q?"top":"left",te=Q?"bottom":"right",$=Q?"clientHeight":"clientWidth",X=Q?"height":"width",ne=P({},r,{component:v,allowScrollButtonsMobile:w,indicatorColor:C,orientation:F,vertical:Q,scrollButtons:M,textColor:H,variant:Z,visibleScrollbar:_,fixed:!K,hideScrollbar:K&&!_,scrollableX:K&&!Q,scrollableY:K&&Q,centered:g&&!K,scrollButtonsHideMobile:!w}),be=k$(ne),me=so({elementType:k.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:ne}),Be=so({elementType:k.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:ne}),[ze,se]=y.useState(!1),[pe,ye]=y.useState(EC),[Fe,Ne]=y.useState(!1),[Oe,_e]=y.useState(!1),[l1,Ie]=y.useState(!1),[Je,o1]=y.useState({overflow:"hidden",scrollbarWidth:0}),r1=new Map,C1=y.useRef(null),s1=y.useRef(null),B1=()=>{const a1=C1.current;let E1;if(a1){const et=a1.getBoundingClientRect();E1={clientWidth:a1.clientWidth,scrollLeft:a1.scrollLeft,scrollTop:a1.scrollTop,scrollLeftNormalized:eG(a1,l?"rtl":"ltr"),scrollWidth:a1.scrollWidth,top:et.top,bottom:et.bottom,left:et.left,right:et.right}}let $1;if(a1&&q!==!1){const et=s1.current.children;if(et.length>0){const At=et[r1.get(q)];$1=At?At.getBoundingClientRect():null}}return{tabsMeta:E1,tabMeta:$1}},he=xn(()=>{const{tabsMeta:a1,tabMeta:E1}=B1();let $1=0,et;if(Q)et="top",E1&&a1&&($1=E1.top-a1.top+a1.scrollTop);else if(et=l?"right":"left",E1&&a1){const Bt=l?a1.scrollLeftNormalized+a1.clientWidth-a1.scrollWidth:a1.scrollLeft;$1=(l?-1:1)*(E1[et]-a1[et]+Bt)}const At={[et]:$1,[X]:E1?E1[X]:0};if(isNaN(pe[et])||isNaN(pe[X]))ye(At);else{const Bt=Math.abs(pe[et]-At[et]),pt=Math.abs(pe[X]-At[X]);(Bt>=1||pt>=1)&&ye(At)}}),we=(a1,{animation:E1=!0}={})=>{E1?C$(Y,C1.current,a1,{duration:i.transitions.duration.standard}):C1.current[Y]=a1},Se=a1=>{let E1=C1.current[Y];Q?E1+=a1:(E1+=a1*(l?-1:1),E1*=l&&tm()==="reverse"?-1:1),we(E1)},xe=()=>{const a1=C1.current[$];let E1=0;const $1=Array.from(s1.current.children);for(let et=0;et<$1.length;et+=1){const At=$1[et];if(E1+At[$]>a1){et===0&&(E1=a1);break}E1+=At[$]}return E1},Pe=()=>{Se(-1*xe())},Me=()=>{Se(xe())},Te=y.useCallback(a1=>{o1({overflow:null,scrollbarWidth:a1})},[]),Xe=()=>{const a1={};a1.scrollbarSizeListener=K?o(T$,{onChange:Te,className:b1(be.scrollableX,be.hideScrollbar)}):null;const $1=K&&(M==="auto"&&(Fe||Oe)||M===!0);return a1.scrollButtonStart=$1?o(x,P({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:me},orientation:F,direction:l?"right":"left",onClick:Pe,disabled:!Fe},D,{className:b1(be.scrollButtons,D.className)})):null,a1.scrollButtonEnd=$1?o(x,P({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Be},orientation:F,direction:l?"left":"right",onClick:Me,disabled:!Oe},D,{className:b1(be.scrollButtons,D.className)})):null,a1},je=xn(a1=>{const{tabsMeta:E1,tabMeta:$1}=B1();if(!(!$1||!E1)){if($1[J]<E1[J]){const et=E1[Y]+($1[J]-E1[J]);we(et,{animation:a1})}else if($1[te]>E1[te]){const et=E1[Y]+($1[te]-E1[te]);we(et,{animation:a1})}}}),We=xn(()=>{K&&M!==!1&&Ie(!l1)});y.useEffect(()=>{const a1=U0(()=>{C1.current&&he()});let E1;const $1=Bt=>{Bt.forEach(pt=>{pt.removedNodes.forEach(bt=>{var rn;(rn=E1)==null||rn.unobserve(bt)}),pt.addedNodes.forEach(bt=>{var rn;(rn=E1)==null||rn.observe(bt)})}),a1(),We()},et=Ui(C1.current);et.addEventListener("resize",a1);let At;return typeof ResizeObserver!="undefined"&&(E1=new ResizeObserver(a1),Array.from(s1.current.children).forEach(Bt=>{E1.observe(Bt)})),typeof MutationObserver!="undefined"&&(At=new MutationObserver($1),At.observe(s1.current,{childList:!0})),()=>{var Bt,pt;a1.clear(),et.removeEventListener("resize",a1),(Bt=At)==null||Bt.disconnect(),(pt=E1)==null||pt.disconnect()}},[he,We]),y.useEffect(()=>{const a1=Array.from(s1.current.children),E1=a1.length;if(typeof IntersectionObserver!="undefined"&&E1>0&&K&&M!==!1){const $1=a1[0],et=a1[E1-1],At={root:C1.current,threshold:.99},Bt=Ln=>{Ne(!Ln[0].isIntersecting)},pt=new IntersectionObserver(Bt,At);pt.observe($1);const bt=Ln=>{_e(!Ln[0].isIntersecting)},rn=new IntersectionObserver(bt,At);return rn.observe(et),()=>{pt.disconnect(),rn.disconnect()}}},[K,M,l1,d==null?void 0:d.length]),y.useEffect(()=>{se(!0)},[]),y.useEffect(()=>{he()}),y.useEffect(()=>{je(EC!==pe)},[je,pe]),y.useImperativeHandle(h,()=>({updateIndicator:he,updateScrollButtons:We}),[he,We]);const Ke=o(L$,P({},L,{className:b1(be.indicator,L.className),ownerState:ne,style:P({},pe,L.style)}));let L1=0;const S1=y.Children.map(d,a1=>{if(!y.isValidElement(a1))return null;const E1=a1.props.value===void 0?L1:a1.props.value;r1.set(E1,L1);const $1=E1===q;return L1+=1,y.cloneElement(a1,P({fullWidth:Z==="fullWidth",indicator:$1&&!ze&&Ke,selected:$1,selectionFollowsFocus:E,onChange:b,textColor:H,value:E1},L1===1&&q===!1&&!a1.props.tabIndex?{tabIndex:0}:{}))}),De=a1=>{const E1=s1.current,$1=Yn(E1).activeElement;if($1.getAttribute("role")!=="tab")return;let At=F==="horizontal"?"ArrowLeft":"ArrowUp",Bt=F==="horizontal"?"ArrowRight":"ArrowDown";switch(F==="horizontal"&&l&&(At="ArrowRight",Bt="ArrowLeft"),a1.key){case At:a1.preventDefault(),Yc(E1,$1,IC);break;case Bt:a1.preventDefault(),Yc(E1,$1,wC);break;case"Home":a1.preventDefault(),Yc(E1,null,wC);break;case"End":a1.preventDefault(),Yc(E1,null,IC);break}},w1=Xe();return U(P$,P({className:b1(be.root,m),ownerState:ne,ref:n,as:v},ee,{children:[w1.scrollButtonStart,w1.scrollbarSizeListener,U(O$,{className:be.scroller,ownerState:ne,style:{overflow:Je.overflow,[Q?`margin${l?"Left":"Right"}`:"marginBottom"]:_?void 0:-Je.scrollbarWidth},ref:C1,children:[o(B$,{"aria-label":c,"aria-labelledby":u,"aria-orientation":F==="vertical"?"vertical":null,className:be.flexContainer,ownerState:ne,onKeyDown:De,ref:s1,role:"tablist",children:S1}),ze&&Ke]}),w1.scrollButtonEnd]}))});function D$(e){return wt("MuiTextField",e)}mt("MuiTextField",["root"]);const V$=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],H$={standard:Uv,filled:Vv,outlined:sC},N$=e=>{const{classes:t}=e;return V1({root:["root"]},D$,t)},Q$=p1(Hv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var W$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:l=!1,children:c,className:u,color:h="primary",defaultValue:g,disabled:d=!1,error:m=!1,FormHelperTextProps:v,fullWidth:w=!1,helperText:C,id:b,InputLabelProps:F,inputProps:x,InputProps:M,inputRef:E,label:k,maxRows:V,minRows:L,multiline:D=!1,name:H,onBlur:q,onChange:Z,onFocus:_,placeholder:ee,required:K=!1,rows:Q,select:Y=!1,SelectProps:J,type:te,value:$,variant:X="outlined"}=r,ne=e1(r,V$),be=P({},r,{autoFocus:l,color:h,disabled:d,error:m,fullWidth:w,multiline:D,required:K,select:Y,variant:X}),me=N$(be),Be={};X==="outlined"&&(F&&typeof F.shrink!="undefined"&&(Be.notched=F.shrink),Be.label=k),Y&&((!J||!J.native)&&(Be.id=void 0),Be["aria-describedby"]=void 0);const ze=Pn(b),se=C&&ze?`${ze}-helper-text`:void 0,pe=k&&ze?`${ze}-label`:void 0,ye=H$[X],Fe=o(ye,P({"aria-describedby":se,autoComplete:i,autoFocus:l,defaultValue:g,fullWidth:w,multiline:D,name:H,rows:Q,maxRows:V,minRows:L,type:te,value:$,id:ze,inputRef:E,onBlur:q,onChange:Z,onFocus:_,placeholder:ee,inputProps:x},Be,M));return U(Q$,P({className:b1(me.root,u),disabled:d,error:m,fullWidth:w,ref:n,required:K,color:h,variant:X,ownerState:be},ne,{children:[k!=null&&k!==""&&o(qv,P({htmlFor:ze,id:pe},F,{children:k})),Y?o(mu,P({"aria-describedby":se,id:ze,labelId:pe,value:$,input:Fe},J,{children:c})):Fe,C&&o(SZ,P({id:se},v,{children:C}))]}))});function l4({status:e,message:t}){const n=[k3,Sl,"MATCH","NOT_VERIFY",El,Al,"0",400,401,404,0,429,500],r=["ACCEPT","Success","FACER_OK",200];return U(B0,{children:[n.includes(e)&&o(aQ,{message:t||"Error obteniendo el Token"}),r.includes(e)&&o(Xp,{message:t})]})}const s4=e=>e!==El&&e!==k3&&e!==Sl&&e!==Al&&e!=="";var j$=Ct(o("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),bu=Ct([o("path",{d:"M16 7h-1l-1-1h-4L9 7H8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-4 7c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"0"),o("path",{d:"m8.57.51 4.48 4.48V2.04c4.72.47 8.48 4.23 8.95 8.95h2C23.34 3.02 15.49-1.59 8.57.51m2.38 21.45c-4.72-.47-8.48-4.23-8.95-8.95H0c.66 7.97 8.51 12.58 15.43 10.48l-4.48-4.48z"},"1")],"Cameraswitch"),SC=Ct(o("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),G$=Ct(o("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"Collections"),U$=Ct(o("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows"),K$=Ct(o("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),AC=Ct(o("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Y$=Ct(o("path",{d:"m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"}),"ImageNotSupported"),q$=Ct(o("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),J$=Ct(o("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3z"}),"SettingsBrightness"),xC=Ct(o("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14m.5-7H9v2H7v1h2v2h1v-2h2V9h-2z"}),"ZoomInTwoTone");function qc({action:e}){return o(Ut,{className:"back-button-container",children:U(Iv,{variant:"outlined",onClick:e,className:"back-button",children:[o(j$,{className:"grayscale"}),o(T2,{variant:"body2",children:"Volver atras"})]})})}function FC({mode:e="light",showFilterByButton:t=!0,dataBlackList:n,icon:r,clientId:i,authorize:l,inProduction:c="prd",source:u="component",eventId:h=null,countryCodeAllowed:g=null,validateVpn:d=!1,successMessage:m,alertMessage:v}){const{onSendSubmitDocument:w,simpleHandleSubmit:C,isLoading:b,controlDoc:F,errorsDoc:x,status:M,message:E,listMatch:k,select:V,setSelect:L,clearState:D,countryCode:H}=qp(i,l,c,u,h,g,d,m,v,n);return U("div",{className:`kit-gbc ${e}`,style:{padding:"16px"},children:[o(M3,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),b||g!==null&&!H?o(ws,{}):null,o("form",{onSubmit:C(w),id:"blacklist",children:U("div",{className:"sub",children:[s4(M)&&o(qc,{action:D}),U("div",{className:"header-component",children:[o("h4",{children:"Lista de sanciones y PEPs"}),Hr(M)?o("p",{children:"Ingrese al menos el primer nombre y apellido de la persona a consultar."}):o(l4,{status:M,message:E.message?E.message:E})]}),!Hr(k)&&o(_p,{lists:k}),Hr(M)&&U(B0,{children:[o(L0,{type:"text",name:"first_name",placeholder:"Primer nombre",icon:r&&r,control:F,error:x.first_name}),o(L0,{type:"text",name:"second_name",label:"Segundo nombre",placeholder:"Segundo nombre",icon:r&&r,control:F,error:x.second_name}),o(L0,{type:"text",name:"first_last_name",label:"Primer apellido",placeholder:"Primer apellido",icon:r&&r,control:F,error:x.first_last_name}),o(L0,{type:"text",name:"second_last_name",label:"Segundo apellido",placeholder:"Segundo apellido",icon:r&&r,control:F,error:x.second_last_name}),o(L0,{type:"date",name:"birth_date",label:"Fecha de nacimiento",placeholder:"Fecha de nacimiento",icon:r&&r,control:F,error:x.birth_date}),o(L0,{type:"country",name:"country",customLabel:"Pa\xEDs de nacimiento",searchable:!0,searchPlaceholder:"Filtrar por pa\xEDs",onSelect:q=>L(q),selected:V,icon:r&&r,control:F,error:x.country}),o(g2,{type:"submit",children:"Procesar"})]}),M!==El&&M!==k3&&M!==Sl&&M!==Al&&t?o(Ut,{width:"100%",mt:2,children:D&&Object.keys(k).length>0&&o(g2,{className:"my-1 col-12",onClick:D,children:"Filtrar por"})}):null]})})]})}FC.propTypes={mode:Y1.exports.PropTypes.string,icon:Y1.exports.PropTypes.func,clientId:Y1.exports.PropTypes.string.isRequired,authorize:Y1.exports.PropTypes.func.isRequired,inProduction:Y1.exports.PropTypes.string,countryCodeAllowed:Y1.exports.PropTypes.array,source:Y1.exports.PropTypes.string,eventId:Y1.exports.PropTypes.string,validateVpn:Y1.exports.PropTypes.bool,successMessage:Y1.exports.PropTypes.string,alertMessage:Y1.exports.PropTypes.string,dataBlackList:Y1.exports.PropTypes.func.isRequired,showFilterByButton:Y1.exports.PropTypes.bool};const Z$=(e,t,n,r,i,l,c,u,h,g)=>{const[d,m]=m1.useState({}),[v,w]=m1.useState(""),[C,b]=m1.useState(!1),[F,x]=m1.useState(t===void 0?Sl:n===void 0?k3:""),[M,E]=m1.useState(null),k=w5(l),[V,L]=m1.useState(g),D=m1.useRef(null),[H,q]=m1.useState(!1),[Z,_]=m1.useState(!1);m1.useEffect(()=>{c&&(k==null?void 0:k.data_connection.isocode)&&c.length!==0&&!c.some(ne=>ne===(k==null?void 0:k.data_connection.isocode))&&(x(El),w(I5)),u&&(k==null?void 0:k.data_connection.proxy)==S5&&(x(Al),w(E5)),c&&k&&E(k==null?void 0:k.data_connection.isocode)},[k,c]);const ee=()=>{L(g),m({}),x(""),w(""),b(!1)},{handleSubmit:K}=$4(),Q=async()=>{var ne;b(!0);try{const be=await n(),Be={method:"POST",path:"api/v1/onboarding/validate",inProduction:l,customHeaders:{client_id:t,access_token:be},bodyParams:d,service:"services"};try{const ze=await S0(Be),se=ze.data.data,pe=await Bo({data:{...se,status_code:200},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});pe&&Object.assign(se,{checkIp:pe.check_ip}),se&&await e(se);const{message:ye}=ze.data;ye&&x(ye),w(h||"Documento verificado con \xE9xito")}catch(ze){console.log(ze,"controller");let se="";const{status:pe}=ze.response,ye=await Bo({data:{first_image:d.firstImage,second_image:Object.keys(d).length>1?d.secondImage:"",status_code:pe},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});await e({...ze,countAttempts:ye.count_try}),ze.response.data.code==="020"&&ye.count_try>3&&_(!0),(ne=ze.response.data)!=null&&ne.message?se=ze.response.data.message:pe===500&&(se={limit_of_request:$9}),b(null),w(se),x(pe),Cs(ze)}}catch{An.error("Error - Verificar host con el proveedor")}finally{b(!1)}},Y=async ne=>{const be=D.current.getScreenshot(),me=Object.assign(d,{[ne]:be});m(me),q(!1)},J=async(ne,be)=>{const me=Object.assign(d,{[ne]:be});m(me),q(!1)},$=(()=>{const[ne,be]=m1.useState(window.innerHeight>window.innerWidth);return m1.useEffect(()=>{const me=()=>{be(window.innerHeight>window.innerWidth)};return window.addEventListener("resize",me),()=>{window.removeEventListener("resize",me)}},[]),ne})(),X=m1.useMemo(()=>({width:{ideal:$?1080:1920},height:{ideal:$?1920:1080},aspectRatio:{ideal:$?16/9:9/16},frameRate:{ideal:30},focusMode:{ideal:"continuous"},facingMode:{ideal:"environment"}}),[$]);return m1.useEffect(()=>{H&&(q(!1),setTimeout(()=>q(!0),100))},[$]),{onSendSubmitDocument:Q,simpleHandleSubmit:K,isLoading:C,status:F,message:v,base64:d,setBase64:m,clearState:ee,countryCode:M,dualMode:V,setDualMode:L,dualModeRequired:g,onUploadImage:Y,webcamRef:D,activateCamera:H,setActivateCamera:q,videoConstraints:X,onUploadImage2:J,uploadDocumentByPhone:Z,setUploadDocumentByPhone:_}},X$=e=>e==="Tipo de documento no v\xE1lido"||e==="Datos de la imagen no reconocidas"||e==="Dato no reconocido(Primer Nombre)"||e=="Dato no reconocido(Primer Apellido)"||e=="",MC=({title:e,subtitle:t,uploadByPhone:n})=>U(Ut,{children:[o(T2,{variant:"h6",className:"title",mt:2,children:e}),o(T2,{variant:"body2",children:t}),U(Jv,{dense:!0,children:[n&&U(Wc,{children:[o(Ji,{children:o(G$,{})}),o(Zi,{primary:"Aseg\xFArate de tener las fotos de tu documento en tu galer\xEDa"})]}),U(Wc,{children:[o(Ji,{children:o(q$,{})}),o(Zi,{primary:"Procura que la foto tenga buena iluminaci\xF3n"})]}),U(Wc,{children:[o(Ji,{children:o(J$,{})}),o(Zi,{primary:"Evita reflejos en el documento de identidad"})]}),U(Wc,{children:[o(Ji,{children:o(bu,{})}),o(Zi,{primary:"Procura que el texto en el documento sea legible, sino prueba cambiando a otra c\xE1mara de tu dispositivo"})]})]})]});function zC({setActivateCamera:e,activateCamera:t,videoConstraints:n,videoRef:r,streamRef:i,onTapToFocus:l,title:c,subtitle:u,cameras:h,setCameras:g,currentCameraIndex:d}){const[m,v]=m1.useState(!1);return m1.useEffect(()=>{(async()=>{var C,b,F,x;try{(await navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(D=>D.stop());const k=(await navigator.mediaDevices.enumerateDevices()).filter(D=>D.kind==="videoinput");let V=-1,L=null;for(const D of k)try{const H=await navigator.mediaDevices.getUserMedia({video:{deviceId:D.deviceId}}),Z=H.getVideoTracks()[0].getCapabilities(),_=((C=Z.width)==null?void 0:C.max)||0,ee=((b=Z.height)==null?void 0:b.max)||0,K=((F=Z.zoom)==null?void 0:F.max)||1,Q=((x=Z.focusDistance)==null?void 0:x.max)||0,Y=_*ee+K*1e3+Q*1e3;Y>V&&(V=Y,L=D.deviceId),H.getTracks().forEach(J=>J.stop())}catch(H){console.error("Error al obtener capacidades de la c\xE1mara:",H)}if(L){const D=[...k.filter(H=>H.deviceId===L),...k.filter(H=>H.deviceId!==L)];g(D)}else g(k)}catch(M){console.error("Error al inicializar c\xE1maras:",M)}})()},[]),m1.useEffect(()=>{if(t&&r.current&&h.length>0){v(!0);const w=h[d],C=w?{video:{deviceId:{ideal:w.deviceId},facingMode:{ideal:"environment"}},audio:!1}:{video:{facingMode:{ideal:"environment"}},audio:!1};navigator.mediaDevices.getUserMedia(C).then(b=>{r.current.srcObject=b,r.current.play(),i.current=b,r.current.onloadeddata=()=>{v(!1)}}).catch(b=>{console.error("Error al acceder a la c\xE1mara:",b),v(!1)})}return()=>{i.current&&(i.current.getTracks().forEach(w=>w.stop()),i.current=null),r.current&&(r.current.srcObject=null)}},[t,d,h,n]),o("div",{className:"drag-zone",children:o(Ut,{className:"drag-and-drop-container",children:o(Ut,{onClick:()=>e(!0),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",children:t?U(Ut,{sx:{position:"relative",width:"100%",height:"100%"},children:[m&&o(Ut,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:o(Mv,{sx:{color:"black"}})}),o("video",{ref:r,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",borderRadius:"5px",opacity:m?0:1},onClick:l,playsInline:!0,muted:!0,autoPlay:!0})]}):o(MC,{title:c,subtitle:u})})})})}function kC({fileInputRef:e,handleFileChange:t,side:n,title:r,subtitle:i,startUpload:l,setActivateCamera:c}){const u=()=>{var h;(h=e.current)==null||h.click()};return o("div",{className:"drag-zone",children:o(Ut,{className:"drag-and-drop-container",children:o(Ut,{onClick:()=>l?u():c(!0),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",padding:2,children:l?U(Ut,{className:"test",children:[U("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[o(SC,{}),o(T2,{variant:"body2",style:{textAlign:"center",color:"gray",whiteSpace:"none",margin:"auto"},children:"Haz clic aqu\xED para subir una foto desde tu dispositivo"})]}),o("input",{ref:e,name:n,type:"file",accept:"image/*",onChange:t,style:{display:"none"}})]}):o(MC,{title:r,subtitle:i,uploadByPhone:!0})})})})}function _$(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)})}const $$=e=>{const t=document.createElement("canvas"),n=t.getContext("2d");let r=e instanceof HTMLImageElement?e.width:e.videoWidth,i=e instanceof HTMLImageElement?e.height:e.videoHeight;if(r>Kp||i>Yp){const l=Math.min(Kp/r,Yp/i);r=Math.floor(r*l),i=Math.floor(i*l)}return t.width=r,t.height=i,n==null||n.drawImage(e,0,0,r,i),{canvas:t,ctx:n}};function yu(e){const{children:t,value:n,index:r,tabOptions:i,base64:l,setBase64:c,setActivateCamera:u,activateCamera:h,webcamRef:g,Webcam:d,videoConstraints:m,onUploadImage:v,dualModeRequired:w,status:C,onUploadImage2:b,...F}=e;return o("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...F,className:"tabpanel",children:n===r&&o(Ut,{height:"100%",children:t})})}yu.propTypes={children:qe.node,index:qe.number.isRequired,value:qe.number.isRequired};function PC(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function eee({base64:e,setBase64:t,setActivateCamera:n,activateCamera:r,webcamRef:i,Webcam:l,videoConstraints:c,onUploadImage:u,dualModeRequired:h,status:g,onUploadImage2:d,uploadDocumentByPhone:m,onSendSubmitDocument:v}){const[w,C]=y.useState(0),[b,F]=y.useState(!1),[x,M]=m1.useState(!1),[E,k]=m1.useState([]),[V,L]=m1.useState(0),D=(X,ne)=>{C(ne),n(!1)},H=X=>{const ne={...e};delete ne[X],t(ne)},q=()=>{F(!b)},Z=m1.useRef(null),_=m1.useRef(null),ee=async X=>{const ne=Z.current;if(!ne)return;const{canvas:be}=$$(ne),me=be.toDataURL("image/jpeg");d(X,me),J()},K=async()=>{var be,me;if(!_.current)return;const[X]=_.current.getVideoTracks(),ne=(be=X.getCapabilities)==null?void 0:be.call(X);if((me=X.getSettings)==null||me.call(X),!(!ne||!ne.focusMode))try{ne.focusMode.includes("continuous")?await X.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"continuous"}]}):ne.focusMode.includes("single-shot")?await X.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"single-shot"}]}):ne.focusMode.includes("manual")&&ne.focusDistance?await X.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"manual",focusDistance:ne.focusDistance.min}]}):console.warn("No hay modo de enfoque compatible")}catch(Be){console.error("Error al aplicar constraints de enfoque:",Be)}},Q=m1.useRef(null),Y=async X=>{const ne=X.target.files[0],be=await _$(ne),me=X.target.name;d(me,be),J()},J=()=>{e.firstImage&&h&&D(X=>X,1),e.firstImage&&e.secondImage&&v()},te=()=>{M(!1),n(!0)},$=()=>{L(X=>(X+1)%E.length)};return U(Ut,{sx:{width:"100%"},children:[o(Ut,{sx:{borderBottom:1,borderColor:"divider"},children:U(R$,{value:w,onChange:D,"aria-label":"document selector",children:[o(vC,{label:"Frontal",...PC(0)}),o(vC,{label:"Reverso",...PC(1)})]})}),o(yu,{value:w,index:0,children:o(Ut,{className:"thumbnails-container",children:o(Ut,{className:"thumbnails",children:U(Ut,{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",width:"100%",children:[e.firstImage?o("div",{className:"img-container",style:{transition:"transform 0.3s ease-in-out, width 0.3s ease-in-out",width:"100%",position:"relative",zIndex:1},children:o("img",{src:e.firstImage,onClick:q,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m?o(kC,{handleFileChange:Y,side:"firstImage",fileInputRef:Q,title:"Cargar documeto",subtitle:"Vamos a cargar el documento desde tu dispositivo. \xA1Ten en cuenta lo siguiente!",startUpload:r,setActivateCamera:n}):o(zC,{videoRef:Z,streamRef:_,setActivateCamera:n,activateCamera:r,videoConstraints:c,onTapToFocus:K,title:"Cargar documento",subtitle:"Subir frontal del documento",currentCameraIndex:V,cameras:E,setCameras:k}),U(Ut,{width:"100%",children:[e.firstImage&&U(Ut,{className:"toolbox-container",children:[o(Ut,{className:"zoom-button",onClick:q,children:o(a4,{title:"Ampliar",placement:"right",arrow:!0,children:o(xC,{})})}),o(Ut,{className:"delete-button",onClick:()=>H("firstImage"),children:o(a4,{title:"Vaciar",placement:"right",arrow:!0,children:o(AC,{sx:{color:"white"}})})})]}),!r&&!e.firstImage&&o(g2,{type:"button",onClick:te,children:"Continuar"}),!r&&e.firstImage&&o(g2,{type:"button",onClick:X=>D(X,1),children:"Cargar reverso del documento"}),r&&!x&&!m&&U(Ut,{display:"flex",flexDirection:"column",alignItems:"end",children:[E.length>1&&o(Ut,{onClick:$,className:"change-camera-button",children:o(bu,{})}),o(g2,{type:"button",onClick:()=>ee("firstImage"),className:"m-0",children:"Capturar"})]}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!h&&e.firstImage||h&&e.firstImage&&e.secondImage)&&U(Ut,{children:[o(Rv,{children:"O"}),o(g2,{type:"submit",children:"Procesar"})]})]})]})})})}),o(yu,{value:w,index:1,children:o(Ut,{className:"thumbnails-container",children:o(Ut,{className:"thumbnails",children:U(Ut,{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",width:"100%",children:[e.secondImage?o("div",{className:"img-container",style:{transition:"transform 0.3s ease-in-out, width 0.3s ease-in-out",width:"100%",position:"relative",zIndex:1},children:o("img",{src:e.secondImage,onClick:q,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m?o(kC,{handleFileChange:Y,side:"secondImage",fileInputRef:Q,title:"Bien ahora vamos por el reverso",subtitle:"\xA1Recuerda tener en cuenta lo siguiente!",startUpload:r,setActivateCamera:n}):o(zC,{videoRef:Z,streamRef:_,setActivateCamera:n,activateCamera:r,videoConstraints:c,title:"Bien ahora carguemos el reverso",subtitle:"Asegurate de que sea legible",onTapToFocus:K,currentCameraIndex:V,cameras:E,setCameras:k}),U(Ut,{width:"100%",children:[e.secondImage&&U(Ut,{className:"toolbox-container",children:[o(Ut,{className:"zoom-button",onClick:q,children:o(a4,{title:"Ampliar",placement:"right",arrow:!0,children:o(xC,{})})}),o(Ut,{className:"delete-button",onClick:()=>H("secondImage"),children:o(a4,{title:"Vaciar",placement:"right",arrow:!0,children:o(AC,{sx:{color:"white"}})})})]}),!r&&!e.secondImage&&o(g2,{type:"button",onClick:te,children:"Continuar"}),r&&!x&&!m&&U(Ut,{display:"flex",flexDirection:"column",alignItems:"end",children:[E.length>1&&o(Ut,{onClick:$,className:"change-camera-button",children:o(bu,{})}),o(g2,{type:"button",onClick:()=>ee("secondImage"),children:"Capturar"})]}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!h&&e.secondImage&&e.firstImage||h&&e.firstImage&&e.secondImage)&&o(g2,{type:"submit",children:"Procesar"})]})]})})})}),b&&o(Ut,{sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:999},children:o(Ut,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",height:525,children:o("img",{src:w===0?e.firstImage:e.secondImage,alt:"zoomed",onClick:q,style:{overflow:"auto",maxWidth:b?"140%":"100%",maxHeight:"90%",objectFit:"contain",borderRadius:"5px"}})})})]})}var OC={exports:{}};(function(e,t){(function(r,i){e.exports=i(Z1.default)})(vl,function(n){return function(r){var i={};function l(c){if(i[c])return i[c].exports;var u=i[c]={i:c,l:!1,exports:{}};return r[c].call(u.exports,u,u.exports,l),u.l=!0,u.exports}return l.m=r,l.c=i,l.d=function(c,u,h){l.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:h})},l.r=function(c){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},l.t=function(c,u){if(u&1&&(c=l(c)),u&8||u&4&&typeof c=="object"&&c&&c.__esModule)return c;var h=Object.create(null);if(l.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:c}),u&2&&typeof c!="string")for(var g in c)l.d(h,g,function(d){return c[d]}.bind(null,g));return h},l.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return l.d(u,"a",u),u},l.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},l.p="",l(l.s="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(r,i,l){l.r(i);var c=l("react"),u=function(){var v=function(w,C){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,F){b.__proto__=F}||function(b,F){for(var x in F)F.hasOwnProperty(x)&&(b[x]=F[x])},v(w,C)};return function(w,C){v(w,C);function b(){this.constructor=w}w.prototype=C===null?Object.create(C):(b.prototype=C.prototype,new b)}}(),h=function(){return h=Object.assign||function(v){for(var w,C=1,b=arguments.length;C<b;C++){w=arguments[C];for(var F in w)Object.prototype.hasOwnProperty.call(w,F)&&(v[F]=w[F])}return v},h.apply(this,arguments)},g=function(v,w){var C={};for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&w.indexOf(b)<0&&(C[b]=v[b]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,b=Object.getOwnPropertySymbols(v);F<b.length;F++)w.indexOf(b[F])<0&&Object.prototype.propertyIsEnumerable.call(v,b[F])&&(C[b[F]]=v[b[F]]);return C};(function(){typeof window!="undefined"&&(navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(w){var C=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return C?new Promise(function(b,F){C.call(navigator,w,b,F)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}))})();function d(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}var m=function(v){u(w,v);function w(C){var b=v.call(this,C)||this;return b.canvas=null,b.ctx=null,b.requestUserMediaId=0,b.unmounted=!1,b.state={hasUserMedia:!1},b}return w.prototype.componentDidMount=function(){var C=this,b=C.state,F=C.props;if(this.unmounted=!1,!d()){F.onUserMediaError("getUserMedia not supported");return}b.hasUserMedia||this.requestUserMedia(),F.children&&typeof F.children!="function"&&console.warn("children must be a function")},w.prototype.componentDidUpdate=function(C){var b=this.props;if(!d()){b.onUserMediaError("getUserMedia not supported");return}var F=JSON.stringify(C.audioConstraints)!==JSON.stringify(b.audioConstraints),x=JSON.stringify(C.videoConstraints)!==JSON.stringify(b.videoConstraints),M=C.minScreenshotWidth!==b.minScreenshotWidth,E=C.minScreenshotHeight!==b.minScreenshotHeight;(x||M||E)&&(this.canvas=null,this.ctx=null),(F||x)&&(this.stopAndCleanup(),this.requestUserMedia())},w.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},w.stopMediaStream=function(C){C&&(C.getVideoTracks&&C.getAudioTracks?(C.getVideoTracks().map(function(b){C.removeTrack(b),b.stop()}),C.getAudioTracks().map(function(b){C.removeTrack(b),b.stop()})):C.stop())},w.prototype.stopAndCleanup=function(){var C=this.state;C.hasUserMedia&&(w.stopMediaStream(this.stream),C.src&&window.URL.revokeObjectURL(C.src))},w.prototype.getScreenshot=function(C){var b=this,F=b.state,x=b.props;if(!F.hasUserMedia)return null;var M=this.getCanvas(C);return M&&M.toDataURL(x.screenshotFormat,x.screenshotQuality)},w.prototype.getCanvas=function(C){var b=this,F=b.state,x=b.props;if(!this.video||!F.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var M=this.video.videoWidth,E=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var k=M/E;M=x.minScreenshotWidth||this.video.clientWidth,E=M/k,x.minScreenshotHeight&&E<x.minScreenshotHeight&&(E=x.minScreenshotHeight,M=E*k)}this.canvas=document.createElement("canvas"),this.canvas.width=(C==null?void 0:C.width)||M,this.canvas.height=(C==null?void 0:C.height)||E,this.ctx=this.canvas.getContext("2d")}var V=this,L=V.ctx,D=V.canvas;return L&&D&&(D.width=(C==null?void 0:C.width)||D.width,D.height=(C==null?void 0:C.height)||D.height,x.mirrored&&(L.translate(D.width,0),L.scale(-1,1)),L.imageSmoothingEnabled=x.imageSmoothing,L.drawImage(this.video,0,0,(C==null?void 0:C.width)||D.width,(C==null?void 0:C.height)||D.height),x.mirrored&&(L.scale(-1,1),L.translate(-D.width,0))),D},w.prototype.requestUserMedia=function(){var C=this,b=this.props,F=function(E,k){var V={video:typeof k!="undefined"?k:!0};b.audio&&(V.audio=typeof E!="undefined"?E:!0),C.requestUserMediaId++;var L=C.requestUserMediaId;navigator.mediaDevices.getUserMedia(V).then(function(D){C.unmounted||L!==C.requestUserMediaId?w.stopMediaStream(D):C.handleUserMedia(null,D)}).catch(function(D){C.handleUserMedia(D)})};if("mediaDevices"in navigator)F(b.audioConstraints,b.videoConstraints);else{var x=function(E){return{optional:[{sourceId:E}]}},M=function(E){var k=E.deviceId;return typeof k=="string"?k:Array.isArray(k)&&k.length>0?k[0]:typeof k=="object"&&k.ideal?k.ideal:null};MediaStreamTrack.getSources(function(E){var k=null,V=null;E.forEach(function(H){H.kind==="audio"?k=H.id:H.kind==="video"&&(V=H.id)});var L=M(b.audioConstraints);L&&(k=L);var D=M(b.videoConstraints);D&&(V=D),F(x(k),x(V))})}},w.prototype.handleUserMedia=function(C,b){var F=this.props;if(C||!b){this.setState({hasUserMedia:!1}),F.onUserMediaError(C);return}this.stream=b;try{this.video&&(this.video.srcObject=b),this.setState({hasUserMedia:!0})}catch{this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(b)})}F.onUserMedia(b)},w.prototype.render=function(){var C=this,b=this,F=b.state,x=b.props,M=x.audio;x.forceScreenshotSourceSize;var E=x.disablePictureInPicture;x.onUserMedia,x.onUserMediaError,x.screenshotFormat,x.screenshotQuality,x.minScreenshotWidth,x.minScreenshotHeight,x.audioConstraints,x.videoConstraints,x.imageSmoothing;var k=x.mirrored,V=x.style,L=V===void 0?{}:V,D=x.children,H=g(x,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),q=k?h(h({},L),{transform:(L.transform||"")+" scaleX(-1)"}):L,Z={getScreenshot:this.getScreenshot.bind(this)};return c.createElement(c.Fragment,null,c.createElement("video",h({autoPlay:!0,disablePictureInPicture:E,src:F.src,muted:!M,playsInline:!0,ref:function(_){C.video=_},style:q},H)),D&&D(Z))},w.defaultProps={audio:!1,disablePictureInPicture:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},w}(c.Component);i.default=m},react:function(r,i){r.exports=n}}).default})})(OC);var BC=eE(OC.exports);function LC({mode:e="light",dataDocument:t,clientId:n,authorize:r,eventId:i=null,source:l="component",inProduction:c="prd",countryCodeAllowed:u=null,validateVpn:h=!1,successMessage:g,dualModeRequired:d=!1,showBackButtonWhenError:m=!0}){const{onSendSubmitDocument:v,simpleHandleSubmit:w,isLoading:C,status:b,message:F,clearState:x,base64:M,countryCode:E,onUploadImage:k,onUploadImage2:V,activateCamera:L,setActivateCamera:D,webcamRef:H,videoConstraints:q,setBase64:Z,uploadDocumentByPhone:_,setUploadDocumentByPhone:ee}=Z$(t,n,r,i,l,c,u,h,g,d);return U("div",{className:`kit-gbc ${e} without-shadow ocr`,children:[o(M3,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),C||u!==null&&!E?o(ws,{}):null,o("form",{onSubmit:w(v),id:"document-reader",children:U("div",{className:"sub",children:[U("div",{className:"header-component",children:[o("h4",{children:"Lectura del documento"}),Hr(b)?o("p",{children:"Ubique su documento de identidad dentro del recuadro lo m\xE1s centrado posible."}):o(l4,{status:b,message:F})]}),Hr(b)&&o(eee,{base64:M,setBase64:Z,setActivateCamera:D,activateCamera:L,webcamRef:H,Webcam:BC,videoConstraints:q,onUploadImage:k,dualModeRequired:d,status:b,onUploadImage2:V,uploadDocumentByPhone:_,setUploadDocumentByPhone:ee,onSendSubmitDocument:v}),(l!=="secure_link"||X$(F))&&s4(b)&&m&&o(g2,{type:"button",onClick:x,children:"Volver a intentar"})]})}),c!=="prd"&&o("span",{children:"Versi\xF3n 3.0.0"})]})}LC.propTypes={mode:Y1.exports.PropTypes.string,clientId:Y1.exports.PropTypes.string.isRequired,authorize:Y1.exports.PropTypes.func.isRequired,dataDocument:Y1.exports.PropTypes.func.isRequired,inProduction:Y1.exports.PropTypes.string,countryCodeAllowed:Y1.exports.PropTypes.array,source:Y1.exports.PropTypes.string,eventId:Y1.exports.PropTypes.string,validateVpn:Y1.exports.PropTypes.bool,dualModeRequired:Y1.exports.PropTypes.bool,successMessage:Y1.exports.PropTypes.string,showBackButtonWhenError:Y1.exports.PropTypes.bool};const TC=async(e,t,n,r)=>{const i={method:"POST",path:"api/v1/onboarding/face_match",inProduction:n,customHeaders:r,service:"services",bodyParams:{doc:e,selfie:t}};try{return(await S0(i)).data}catch(l){throw console.log(l),l}},tee=(e,t,n,r,i,l,c,u,h,g,d,m)=>{const[v,w]=m1.useState({}),[C,b]=m1.useState(""),[F,x]=m1.useState(!1),[M,E]=m1.useState(t===void 0?Sl:i===void 0?m:""),k=m1.useRef(null),[V,L]=m1.useState(null),[D,H]=m1.useState(null),q=w5(l),Z=m1.useCallback(async()=>{const Q=k.current.getScreenshot({width:480,heigth:720,aspectRatio:.6,facingMode:"user"});L(Q)},[k]);m1.useEffect(()=>{h&&q&&h.length!==0&&!h.some(Q=>Q===(q==null?void 0:q.data_connection.isocode))&&(E(El),b(I5)),g&&(q==null?void 0:q.data_connection.proxy)==S5&&(E(Al),b(E5)),h&&q&&H(q==null?void 0:q.data_connection.isocode)},[q,h]);const _=()=>{w({}),E(""),b(""),L(null),u(!1),x(!1)},{handleSubmit:ee}=$4();return{onSendSubmitSelfie:async()=>{var Q,Y;x(!0);try{const J=await i(),te={client_id:t,access_token:J,Authorization:"Bearer WGpKbGFSNlJXV29hVnFqVjlIbA=="};try{const $=await TC(c,V,l,te);$&&await e($.data),await Bo({data:{first_image:V,second_image:c,similarity:$.data.similarity,status_code:200},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:q});const{message:X}=$.data;X&&E(X),b(d||"Comparaci\xF3n de rostro procesado con \xE9xito")}catch($){let X="";const{status:ne}=$.response;await Bo({data:{first_image:V,second_image:c,similarity:(Q=J==null?void 0:J.data)!=null&&Q.similarity?J.data.similarity:null,status_code:ne},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:q}),(Y=$.response.data)!=null&&Y.message?X=$.response.data.message:ne===500&&(X={limit_of_request:$9}),x(null),b(X),E(ne),Cs($)}}catch(J){console.log(J),An.error("Error - Verificar host con el proveedor")}finally{x(!1)}},simpleHandleSubmit:ee,isLoading:F,docImage:v,status:M,message:C,clearState:_,webcamRef:k,url:V,setUrl:L,capturePhoto:Z,countryCode:D}};var RC="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw0NDQ0NDQ0ICA0IDQ0NDQ0NDQ8IDQ0NFREWFhURExMYHSggGBolGxMTITEhJSkrLi4uFx8zODMsNygtLisBCgoKDQ0NDg0PDy0ZFRk3KzctKysrKy03LTctKzcrKystKystKysrKysrKysrKysrKysrKysrKysrKysrKysrK//AABEIAPYAzQMBIgACEQEDEQH/xAAZAAEBAQEBAQAAAAAAAAAAAAAAAQMEAgf/xAAqEAEBAAECBQQCAgIDAAAAAAAAAQIDERIhQWFxBDFRgZGhYrEi8BMUQv/EABcBAQEBAQAAAAAAAAAAAAAAAAABAgP/xAAWEQEBAQAAAAAAAAAAAAAAAAAAARH/2gAMAwEAAhEDEQA/APqYDq5gAAAAAIAAioAAACAAgAACKgAABEWA1AAAAAABAAecspPeyAoxvqJ0lv6eL6i/GM/ZhrpHL/z5fx/C/wDYy/iuGugYT1HzPxWmOrjeu3nkmD2hQAAEAARUAIUgNgAAAAAQGHqNT/zOvuBq6/TH8ue37BpAAQQAAAe8NSzvPh045SzeON608+G/2liutDf9iKAAgAIsRQbAAAAIAJldpb8OG3e7/Lq9Tf8AHzXKsSgCoAgAAAAAAN/T5ctvhq5dG7ZTvydSVqCAgIqAKhAbgAAAgAOf1XT7YNvVe88Vi1EoAIIUAAAAAQAXG855jscUdiVYAiKAAECA3AAQoAioDn9V0+2Lf1PT7YNRKAggAAAACAAAs955dbkw955jrSrBARQEAWIQHQioAACAA49TLe2/7s8g0ygAAAAACFAAAHRpZbzxyc7f0/tfKVY0ARRFQAgQG4ACAAADj1MdsrHh16unxdrHLnjZyrURABAABKqAAAAAOnSm0882eGl1v4bJVgCIoAARCA6AQAAAEAYepntfpu86mO8s+QrjAaZAQAAAABcJvZPlGuhj1+hWwDKoAACAECA6EKCgAggAIqA59fDa79L/AGydmU3m3y5M8drtViIgKgAAACyb8vl04zabfDxo4bc771olagiogAAIUAIEBuAACAAgAADPWxll7c2jPWu2N/AOUBpkAAaaOMt59GbTQvPzBW4DKoAACAAAhAgOgABAAqDznnJ7366g9Fv058te9OX7rLK2++9XE105a2M7+GOrqcXaRmLhoAIAAEu3P4AG01p13n7e5lL7VzCYuuoc+OpZ38tMdWXsmK9gAIqAERYDoRUtAec85Pdlqa/TH8sLftcTWuetb7f4z9sgUEVBAAAAAAAABFQAEB6xzsa46svvy/pgGK6hz452d42xylZxVWIQVvnlJzrl1NS5dp8Jnlbd68rIzoAqAAIAAAAAAAAACAAIAAABL9ADbDU35X3/ALe45mmGp880salQBWQABAAAAAAAAAAQAAQAAAAAAAAGvBexwXsApwXsnBeygJwXscF7ABwXscPgAOG9k4b2UBOG9jhvYAOG9jhvYAOHwcN7ACcHg4PAAcN7HDewAcPg4fAJonD4OHwAHD4OHwoaP//Z";function DC({mode:e="light",dataFaceMatch:t,clientId:n,authorize:r,inProduction:i="prd",picBase64:l="",eventId:c=null,source:u="component",countryCodeAllowed:h=null,validateVpn:g=!1,successMessage:d}){const[m,v]=m1.useState(!1),{onSendSubmitSelfie:w,simpleHandleSubmit:C,isLoading:b,docImage:F,status:x,message:M,clearState:E,capturePhoto:k,webcamRef:V,url:L,countryCode:D}=tee(t,n,c,u,r,i,l,v,h,g,d),H=Z=>{console.log(Z,"userMedia")},q={with:1024,heigth:720,aspectRatio:1,facingMode:"user"};return U("div",{className:`kit-gbc ${e}`,style:{padding:"16px"},children:[o(M3,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),b||h!==null&&!D?o(ws,{}):null,o("form",{onSubmit:C(w),id:"face-match",children:U("div",{className:"sub",children:[s4(x)&&o(qc,{action:E}),U("div",{className:"header-component",children:[o("h4",{children:"Comparaci\xF3n de rostro"}),Hr(x)?o("p",{children:"Utilice la c\xE1mara de su dispositivo para capturar una selfie."}):o(l4,{status:x,message:M})]}),Hr(x)&&U("div",{className:"pics-container",children:[o("div",{className:"box-image",children:Hr(l)?U("div",{className:"upload-document without-image",style:{backgroundImage:`url(${RC})`},children:[o(Y$,{}),o("p",{children:"Imagen no detectada"})]}):o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${l})`}})}),o("div",{className:"icon",children:o(U$,{})}),o("div",{children:m?o("div",{className:"box-image",children:L?o(B0,{children:o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${L})`}})}):o(BC,{ref:V,audio:!1,screenshotFormat:"image/png",videoConstraints:q,forceScreenshotSourceSize:!0,onUserMedia:H,mirrored:!0})}):o("label",{className:"box-image",children:U("div",{className:"upload-document without-image",style:{backgroundImage:`url(${RC})`},children:[o(SC,{}),o("p",{children:Hr(F)?"Tomar selfie":F}),o("input",{hidden:!0,accept:"image/*",capture:"camera",id:"docImage",onClick:()=>v(!0)})]})})})]}),m&&!L&&V&&o(g2,{type:"button",onClick:k,children:"Capturar Selfie"}),o(B0,{children:L&&o(Ut,{width:"100%",mt:2,children:o(g2,{type:"submit",children:"Procesar"})})})]})})]})}DC.propTypes={mode:Y1.exports.PropTypes.string,loader:Y1.exports.PropTypes.bool,data:Y1.exports.PropTypes.func,clientId:Y1.exports.PropTypes.string.isRequired,authorize:Y1.exports.PropTypes.func.isRequired,dataFaceMatch:Y1.exports.PropTypes.func.isRequired,inProduction:Y1.exports.PropTypes.string,picBase64:Y1.exports.PropTypes.string.isRequired,countryCodeAllowed:Y1.exports.PropTypes.array,eventId:Y1.exports.PropTypes.string,source:Y1.exports.PropTypes.string,validateVpn:Y1.exports.PropTypes.bool,successMessage:Y1.exports.PropTypes.string};const nee=(e,t,n,r,i,l,c,u,h)=>{const[g,d]=m1.useState(!1),[m,v]=m1.useState(""),[w,C]=m1.useState(e===void 0?Sl:m===void 0?k3:""),[b,F]=m1.useState(""),[x,M]=m1.useState(null),E=w5(r),[k,V]=m1.useState({}),[L,D]=m1.useState(0),[H,q]=m1.useState(!1),[Z,_]=m1.useState({}),ee=J=>{var te,$;J.detail&&J.detail.action==="PROCESS_FINISHED"&&((($=(te=J.detail.data)==null?void 0:te.response)==null?void 0:$.code)==0?V(J.detail.data.response):H||(q(!0),_(J)))};m1.useEffect(()=>{var J,te,$,X;H&&Bo({data:{first_image:(te=(J=Z.detail.data)==null?void 0:J.response)!=null&&te.images?"data:image/jpeg;base64,"+Z.detail.data.response.images[0]:null,face_result_code:(X=($=Z.detail.data)==null?void 0:$.response)!=null&&X.code?Z.detail.data.response.code:250},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E}).then(ne=>{c({countAttempts:ne.count_try,error:!0}),q(!1),_({})})},[H]),m1.useEffect(()=>{i&&(E==null?void 0:E.data_connection.isocode)&&i.length!==0&&!i.some(J=>J===(E==null?void 0:E.data_connection.isocode))&&(C(El),F(I5)),u&&(E==null?void 0:E.data_connection.proxy)==S5&&(C(Al),F(E5)),i&&E&&M(E==null?void 0:E.data_connection.isocode)},[E,i]);const K=()=>{C(""),F(""),d(!1)};m1.useEffect(()=>{Hr(k)||Q()},[k]);const Q=async()=>{try{const J={client_id:e,access_token:m,Authorization:"Bearer WGpKbGFSNlJXV29hVnFqVjlIbA=="};try{l?await TC(l,`data:image/jpeg;base64,${k.images[0]}`,r,J).then(te=>{D(te.data.similarity),F(h||"Verificaci\xF3n de identidad completada"),Bo({data:{similarity:te.data.similarity,first_image:`data:image/jpeg;base64,${k.images[0]}`,second_image:l,status_code:200},component:"facematch",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E})}):Y()}catch(te){let $="";const{status:X}=te.response;Bo({data:{similarity:0,first_image:`data:image/jpeg;base64,${k.images[0]}`,second_image:l,status_code:X},component:"facematch",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E}),X===500&&($=$9),F($),C(X),Cs(te)}}catch{An.error("Error - Verificar host con el proveedor")}};m1.useEffect(()=>{L!==0&&Y()},[L]);const Y=async()=>{try{await Bo({data:{selfie:`data:image/jpeg;base64,${k.images[0]}`,similarity:l?L:null,face_result_code:0},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E}).then(J=>c(J))}catch(J){return J}};return{status:w,isLoading:g,listener:ee,onSendSubmitLiveness:Q,clearState:K,message:b,countryCode:x,setToken:v,data:k,similarity:L}},a8=getComputedStyle(document.documentElement).getPropertyValue("--primary"),VC=getComputedStyle(document.documentElement).getPropertyValue("--primary-hov"),ree=getComputedStyle(document.documentElement).getPropertyValue("--font-size"),oee=getComputedStyle(document.documentElement).getPropertyValue("--font-family"),iee=()=>o("div",{className:"custom_spinner_container",children:o("div",{className:"box_spinner",children:o("div",{className:"spinner"})})});var lt={},wu={exports:{}};(function(e,t){(function(n,r){var i="1.0.40",l="",c="?",u="function",h="undefined",g="object",d="string",m="major",v="model",w="name",C="type",b="vendor",F="version",x="architecture",M="console",E="mobile",k="tablet",V="smarttv",L="wearable",D="embedded",H=500,q="Amazon",Z="Apple",_="ASUS",ee="BlackBerry",K="Browser",Q="Chrome",Y="Edge",J="Firefox",te="Google",$="Huawei",X="LG",ne="Microsoft",be="Motorola",me="Opera",Be="Samsung",ze="Sharp",se="Sony",pe="Xiaomi",ye="Zebra",Fe="Facebook",Ne="Chromium OS",Oe="Mac OS",_e=" Browser",l1=function(Te,Xe){var je={};for(var We in Te)Xe[We]&&Xe[We].length%2===0?je[We]=Xe[We].concat(Te[We]):je[We]=Te[We];return je},Ie=function(Te){for(var Xe={},je=0;je<Te.length;je++)Xe[Te[je].toUpperCase()]=Te[je];return Xe},Je=function(Te,Xe){return typeof Te===d?o1(Xe).indexOf(o1(Te))!==-1:!1},o1=function(Te){return Te.toLowerCase()},r1=function(Te){return typeof Te===d?Te.replace(/[^\d\.]/g,l).split(".")[0]:r},C1=function(Te,Xe){if(typeof Te===d)return Te=Te.replace(/^\s\s*/,l),typeof Xe===h?Te:Te.substring(0,H)},s1=function(Te,Xe){for(var je=0,We,Ke,L1,S1,De,w1;je<Xe.length&&!De;){var a1=Xe[je],E1=Xe[je+1];for(We=Ke=0;We<a1.length&&!De&&a1[We];)if(De=a1[We++].exec(Te),De)for(L1=0;L1<E1.length;L1++)w1=De[++Ke],S1=E1[L1],typeof S1===g&&S1.length>0?S1.length===2?typeof S1[1]==u?this[S1[0]]=S1[1].call(this,w1):this[S1[0]]=S1[1]:S1.length===3?typeof S1[1]===u&&!(S1[1].exec&&S1[1].test)?this[S1[0]]=w1?S1[1].call(this,w1,S1[2]):r:this[S1[0]]=w1?w1.replace(S1[1],S1[2]):r:S1.length===4&&(this[S1[0]]=w1?S1[3].call(this,w1.replace(S1[1],S1[2])):r):this[S1]=w1||r;je+=2}},B1=function(Te,Xe){for(var je in Xe)if(typeof Xe[je]===g&&Xe[je].length>0){for(var We=0;We<Xe[je].length;We++)if(Je(Xe[je][We],Te))return je===c?r:je}else if(Je(Xe[je],Te))return je===c?r:je;return Xe.hasOwnProperty("*")?Xe["*"]:Te},he={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},we={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Se={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[F,[w,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[F,[w,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[w,F],[/opios[\/ ]+([\w\.]+)/i],[F,[w,me+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[F,[w,me+" GX"]],[/\bopr\/([\w\.]+)/i],[F,[w,me]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[F,[w,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[F,[w,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[w,F],[/quark(?:pc)?\/([-\w\.]+)/i],[F,[w,"Quark"]],[/\bddg\/([\w\.]+)/i],[F,[w,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[F,[w,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[F,[w,"WeChat"]],[/konqueror\/([\w\.]+)/i],[F,[w,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[F,[w,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[F,[w,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[F,[w,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure "+K],F],[/\bfocus\/([\w\.]+)/i],[F,[w,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[F,[w,me+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[F,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[F,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[F,[w,me+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[F,[w,"MIUI"+_e]],[/fxios\/([\w\.-]+)/i],[F,[w,J]],[/\bqihoobrowser\/?([\w\.]*)/i],[F,[w,"360"]],[/\b(qq)\/([\w\.]+)/i],[[w,/(.+)/,"$1Browser"],F],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1"+_e],F],[/samsungbrowser\/([\w\.]+)/i],[F,[w,Be+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[F,[w,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[w,"Sogou Mobile"],F],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[w,F],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[w],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[F,w],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[w,Fe],F],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[w,F],[/\bgsa\/([\w\.]+) .*safari\//i],[F,[w,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[F,[w,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[F,[w,Q+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[w,Q+" WebView"],F],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[F,[w,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[w,F],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[F,[w,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[F,w],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[w,[F,B1,he]],[/(webkit|khtml)\/([\w\.]+)/i],[w,F],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[w,"Netscape"],F],[/(wolvic|librewolf)\/([\w\.]+)/i],[w,F],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[F,[w,J+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[w,[F,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[w,[F,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[x,"amd64"]],[/(ia32(?=;))/i],[[x,o1]],[/((?:i[346]|x)86)[;\)]/i],[[x,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[x,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[x,"armhf"]],[/windows (ce|mobile); ppc;/i],[[x,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[x,/ower/,l,o1]],[/(sun4\w)[;\)]/i],[[x,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[x,o1]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[b,Be],[C,k]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[b,Be],[C,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[b,Z],[C,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[b,Z],[C,k]],[/(macintosh);/i],[v,[b,Z]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[b,ze],[C,E]],[/(?:honor)([-\w ]+)[;\)]/i],[v,[b,"Honor"],[C,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[b,$],[C,k]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[b,$],[C,E]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[v,/_/g," "],[b,pe],[C,E]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[b,pe],[C,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[b,"OPPO"],[C,E]],[/\b(opd2\d{3}a?) bui/i],[v,[b,"OPPO"],[C,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[b,"Vivo"],[C,E]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[b,"Realme"],[C,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[b,be],[C,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[b,be],[C,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[b,X],[C,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[b,X],[C,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[b,"Lenovo"],[C,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[b,"Nokia"],[C,E]],[/(pixel c)\b/i],[v,[b,te],[C,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[b,te],[C,E]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[b,se],[C,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[b,se],[C,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[b,"OnePlus"],[C,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[b,q],[C,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[b,q],[C,E]],[/(playbook);[-\w\),; ]+(rim)/i],[v,b,[C,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[b,ee],[C,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[b,_],[C,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[b,_],[C,E]],[/(nexus 9)/i],[v,[b,"HTC"],[C,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[v,/_/g," "],[C,E]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[v,[b,"TCL"],[C,k]],[/(itel) ((\w+))/i],[[b,o1],v,[C,B1,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[b,"Acer"],[C,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[b,"Meizu"],[C,E]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[b,"Ulefone"],[C,E]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[v,[b,"Energizer"],[C,E]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[v,[b,"Cat"],[C,E]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[v,[b,"Smartfren"],[C,E]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[b,"Nothing"],[C,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,v,[C,E]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,v,[C,k]],[/(surface duo)/i],[v,[b,ne],[C,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[b,"Fairphone"],[C,E]],[/(u304aa)/i],[v,[b,"AT&T"],[C,E]],[/\bsie-(\w*)/i],[v,[b,"Siemens"],[C,E]],[/\b(rct\w+) b/i],[v,[b,"RCA"],[C,k]],[/\b(venue[\d ]{2,7}) b/i],[v,[b,"Dell"],[C,k]],[/\b(q(?:mv|ta)\w+) b/i],[v,[b,"Verizon"],[C,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[b,"Barnes & Noble"],[C,k]],[/\b(tm\d{3}\w+) b/i],[v,[b,"NuVision"],[C,k]],[/\b(k88) b/i],[v,[b,"ZTE"],[C,k]],[/\b(nx\d{3}j) b/i],[v,[b,"ZTE"],[C,E]],[/\b(gen\d{3}) b.+49h/i],[v,[b,"Swiss"],[C,E]],[/\b(zur\d{3}) b/i],[v,[b,"Swiss"],[C,k]],[/\b((zeki)?tb.*\b) b/i],[v,[b,"Zeki"],[C,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],v,[C,k]],[/\b(ns-?\w{0,9}) b/i],[v,[b,"Insignia"],[C,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[b,"NextBook"],[C,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],v,[C,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],v,[C,E]],[/\b(ph-1) /i],[v,[b,"Essential"],[C,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[b,"Envizen"],[C,k]],[/\b(trio[-\w\. ]+) b/i],[v,[b,"MachSpeed"],[C,k]],[/\btu_(1491) b/i],[v,[b,"Rotor"],[C,k]],[/(shield[\w ]+) b/i],[v,[b,"Nvidia"],[C,k]],[/(sprint) (\w+)/i],[b,v,[C,E]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[b,ne],[C,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[b,ye],[C,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[b,ye],[C,E]],[/smart-tv.+(samsung)/i],[b,[C,V]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[b,Be],[C,V]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,X],[C,V]],[/(apple) ?tv/i],[b,[v,Z+" TV"],[C,V]],[/crkey/i],[[v,Q+"cast"],[b,te],[C,V]],[/droid.+aft(\w+)( bui|\))/i],[v,[b,q],[C,V]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[b,ze],[C,V]],[/(bravia[\w ]+)( bui|\))/i],[v,[b,se],[C,V]],[/(mitv-\w{5}) bui/i],[v,[b,pe],[C,V]],[/Hbbtv.*(technisat) (.*);/i],[b,v,[C,V]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,C1],[v,C1],[C,V]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[C,V]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,v,[C,M]],[/droid.+; (shield) bui/i],[v,[b,"Nvidia"],[C,M]],[/(playstation [345portablevi]+)/i],[v,[b,se],[C,M]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[b,ne],[C,M]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[b,Be],[C,L]],[/((pebble))app/i],[b,v,[C,L]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[b,Z],[C,L]],[/droid.+; (glass) \d/i],[v,[b,te],[C,L]],[/droid.+; (wt63?0{2,3})\)/i],[v,[b,ye],[C,L]],[/droid.+; (glass) \d/i],[v,[b,te],[C,L]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,v,[C,L]],[/; (quest( \d| pro)?)/i],[v,[b,Fe],[C,L]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[C,D]],[/(aeobc)\b/i],[v,[b,q],[C,D]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[C,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[C,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[C,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[C,E]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[F,[w,Y+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[w,F],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[F,[w,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[w,F],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[F,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,F],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[w,[F,B1,we]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[F,B1,we],[w,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[F,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[w,Oe],[F,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[F,w],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[w,F],[/\(bb(10);/i],[F,[w,ee]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[F,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[F,[w,J+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[F,[w,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[F,[w,"watchOS"]],[/crkey\/([\d\.]+)/i],[F,[w,Q+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[w,Ne],F],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[w,F],[/(sunos) ?([\w\.\d]*)/i],[[w,"Solaris"],F],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[w,F]]},xe=function(Te,Xe){if(typeof Te===g&&(Xe=Te,Te=r),!(this instanceof xe))return new xe(Te,Xe).getResult();var je=typeof n!==h&&n.navigator?n.navigator:r,We=Te||(je&&je.userAgent?je.userAgent:l),Ke=je&&je.userAgentData?je.userAgentData:r,L1=Xe?l1(Se,Xe):Se,S1=je&&je.userAgent==We;return this.getBrowser=function(){var De={};return De[w]=r,De[F]=r,s1.call(De,We,L1.browser),De[m]=r1(De[F]),S1&&je&&je.brave&&typeof je.brave.isBrave==u&&(De[w]="Brave"),De},this.getCPU=function(){var De={};return De[x]=r,s1.call(De,We,L1.cpu),De},this.getDevice=function(){var De={};return De[b]=r,De[v]=r,De[C]=r,s1.call(De,We,L1.device),S1&&!De[C]&&Ke&&Ke.mobile&&(De[C]=E),S1&&De[v]=="Macintosh"&&je&&typeof je.standalone!==h&&je.maxTouchPoints&&je.maxTouchPoints>2&&(De[v]="iPad",De[C]=k),De},this.getEngine=function(){var De={};return De[w]=r,De[F]=r,s1.call(De,We,L1.engine),De},this.getOS=function(){var De={};return De[w]=r,De[F]=r,s1.call(De,We,L1.os),S1&&!De[w]&&Ke&&Ke.platform&&Ke.platform!="Unknown"&&(De[w]=Ke.platform.replace(/chrome os/i,Ne).replace(/macos/i,Oe)),De},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return We},this.setUA=function(De){return We=typeof De===d&&De.length>H?C1(De,H):De,this},this.setUA(We),this};xe.VERSION=i,xe.BROWSER=Ie([w,F,m]),xe.CPU=Ie([x]),xe.DEVICE=Ie([v,b,C,M,E,V,k,L,D]),xe.ENGINE=xe.OS=Ie([w,F]),e.exports&&(t=e.exports=xe),t.UAParser=xe;var Pe=typeof n!==h&&(n.jQuery||n.Zepto);if(Pe&&!Pe.ua){var Me=new xe;Pe.ua=Me.getResult(),Pe.ua.get=function(){return Me.getUA()},Pe.ua.set=function(Te){Me.setUA(Te);var Xe=Me.getResult();for(var je in Xe)Pe.ua[je]=Xe[je]}}})(typeof window=="object"?window:vl)})(wu,wu.exports),Object.defineProperty(lt,"__esModule",{value:!0});function aee(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var n2=Z1.default,On=aee(n2),HC=wu.exports,Bl=new HC,r2=Bl.getBrowser(),lee=Bl.getCPU(),fo=Bl.getDevice(),Iu=Bl.getEngine(),Ll=Bl.getOS(),c4=Bl.getUA(),NC=function(t){return Bl.setUA(t)},u4=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new HC(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},QC=Object.freeze({ClientUAInstance:Bl,browser:r2,cpu:lee,device:fo,engine:Iu,os:Ll,ua:c4,setUa:NC,parseUserAgent:u4});function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function see(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WC(Object(n),!0).forEach(function(r){dee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d4=function(t){return typeof t}:d4=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d4(e)}function cee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uee(e,t,n){return t&&jC(e.prototype,t),n&&jC(e,n),e}function dee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(){return Eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eu.apply(this,arguments)}function hee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Au(e,t)}function Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Su(e)}function Au(e,t){return Au=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Au(e,t)}function fee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jo(e,t){if(e==null)return{};var n=fee(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Jc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pee(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jc(e)}function gee(e,t){return mee(e)||vee(e,t)||Cee(e,t)||bee()}function mee(e){if(Array.isArray(e))return e}function vee(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,l=!1,c,u;try{for(n=n.call(e);!(i=(c=n.next()).done)&&(r.push(c.value),!(t&&r.length===t));i=!0);}catch(h){l=!0,u=h}finally{try{!i&&n.return!=null&&n.return()}finally{if(l)throw u}}return r}}function Cee(e,t){if(!!e){if(typeof e=="string")return GC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GC(e,t)}}function GC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1404
|
+
${e.palette.mode==="light"?js(Zt(e.palette.divider,1),.88):Ws(Zt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Y_.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}));var vu=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTableCell"}),{align:i="inherit",className:l,component:c,padding:u,scope:h,size:g,sortDirection:d,variant:m}=r,v=e1(r,q_),w=y.useContext(G_),C=y.useContext(U_),b=C&&C.variant==="head";let F;c?F=c:F=b?"th":"td";let x=h;F==="td"?x=void 0:!x&&b&&(x="col");const M=m||C&&C.variant,E=P({},r,{align:i,component:F,padding:u||(w&&w.padding?w.padding:"normal"),size:g||(w&&w.size?w.size:"medium"),sortDirection:d,stickyHeader:M==="head"&&w&&w.stickyHeader,variant:M}),k=J_(E);let V=null;return d&&(V=d==="asc"?"ascending":"descending"),o(Z_,P({as:F,ref:n,className:b1(k.root,l),"aria-sort":V,scope:x,ownerState:E},v))});function X_(e){return wt("MuiToolbar",e)}mt("MuiToolbar",["root","gutters","regular","dense"]);const __=["className","component","disableGutters","variant"],$_=e=>{const{classes:t,disableGutters:n,variant:r}=e;return V1({root:["root",!n&&"gutters",r]},X_,t)},e$=p1("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar);var t$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiToolbar"}),{className:i,component:l="div",disableGutters:c=!1,variant:u="regular"}=r,h=e1(r,__),g=P({},r,{component:l,disableGutters:c,variant:u}),d=$_(g);return o(e$,P({as:l,className:b1(d.root,i),ref:n,ownerState:g},h))}),CC=Ct(o("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),bC=Ct(o("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");const n$=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"];var r$=y.forwardRef(function(t,n){var r,i,l,c,u,h,g,d;const{backIconButtonProps:m,count:v,disabled:w=!1,getItemAriaLabel:C,nextIconButtonProps:b,onPageChange:F,page:x,rowsPerPage:M,showFirstButton:E,showLastButton:k,slots:V={},slotProps:L={}}=t,D=e1(t,n$),H=Hs(),q=Ne=>{F(Ne,0)},Z=Ne=>{F(Ne,x-1)},_=Ne=>{F(Ne,x+1)},ee=Ne=>{F(Ne,Math.max(0,Math.ceil(v/M)-1))},K=(r=V.firstButton)!=null?r:Ha,Q=(i=V.lastButton)!=null?i:Ha,Y=(l=V.nextButton)!=null?l:Ha,J=(c=V.previousButton)!=null?c:Ha,te=(u=V.firstButtonIcon)!=null?u:n_,$=(h=V.lastButtonIcon)!=null?h:r_,X=(g=V.nextButtonIcon)!=null?g:bC,ne=(d=V.previousButtonIcon)!=null?d:CC,be=H?Q:K,me=H?Y:J,Be=H?J:Y,ze=H?K:Q,se=H?L.lastButton:L.firstButton,pe=H?L.nextButton:L.previousButton,ye=H?L.previousButton:L.nextButton,Fe=H?L.firstButton:L.lastButton;return U("div",P({ref:n},D,{children:[E&&o(be,P({onClick:q,disabled:w||x===0,"aria-label":C("first",x),title:C("first",x)},se,{children:H?o($,P({},L.lastButtonIcon)):o(te,P({},L.firstButtonIcon))})),o(me,P({onClick:Z,disabled:w||x===0,color:"inherit","aria-label":C("previous",x),title:C("previous",x)},pe!=null?pe:m,{children:H?o(X,P({},L.nextButtonIcon)):o(ne,P({},L.previousButtonIcon))})),o(Be,P({onClick:_,disabled:w||(v!==-1?x>=Math.ceil(v/M)-1:!1),color:"inherit","aria-label":C("next",x),title:C("next",x)},ye!=null?ye:b,{children:H?o(ne,P({},L.previousButtonIcon)):o(X,P({},L.nextButtonIcon))})),k&&o(ze,P({onClick:ee,disabled:w||x>=Math.ceil(v/M)-1,"aria-label":C("last",x),title:C("last",x)},Fe,{children:H?o(te,P({},L.firstButtonIcon)):o($,P({},L.lastButtonIcon))}))]}))});function o$(e){return wt("MuiTablePagination",e)}var W3=mt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),yC;const i$=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],a$=p1(vu,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),l$=p1(t$,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${W3.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${W3.actions}`]:{flexShrink:0,marginLeft:20}})),s$=p1("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),c$=p1("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),u$=p1(mu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${W3.selectIcon}`]:t.selectIcon,[`& .${W3.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${W3.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),d$=p1(Xi,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),h$=p1("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function f$({from:e,to:t,count:n}){return`${e}\u2013${t} of ${n!==-1?n:`more than ${t}`}`}function p$(e){return`Go to ${e} page`}const g$=e=>{const{classes:t}=e;return V1({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},o$,t)};var m$=y.forwardRef(function(t,n){var r;const i=Ft({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=r$,backIconButtonProps:c,className:u,colSpan:h,component:g=vu,count:d,disabled:m=!1,getItemAriaLabel:v=p$,labelDisplayedRows:w=f$,labelRowsPerPage:C="Rows per page:",nextIconButtonProps:b,onPageChange:F,onRowsPerPageChange:x,page:M,rowsPerPage:E,rowsPerPageOptions:k=[10,25,50,100],SelectProps:V={},showFirstButton:L=!1,showLastButton:D=!1,slotProps:H={},slots:q={}}=i,Z=e1(i,i$),_=i,ee=g$(_),K=(r=H==null?void 0:H.select)!=null?r:V,Q=K.native?"option":d$;let Y;(g===vu||g==="td")&&(Y=h||1e3);const J=Pn(K.id),te=Pn(K.labelId),$=()=>d===-1?(M+1)*E:E===-1?d:Math.min(d,(M+1)*E);return o(a$,P({colSpan:Y,ref:n,as:g,ownerState:_,className:b1(ee.root,u)},Z,{children:U(l$,{className:ee.toolbar,children:[o(s$,{className:ee.spacer}),k.length>1&&o(c$,{className:ee.selectLabel,id:te,children:C}),k.length>1&&o(u$,P({variant:"standard"},!K.variant&&{input:yC||(yC=o(o8,{}))},{value:E,onChange:x,id:J,labelId:te},K,{classes:P({},K.classes,{root:b1(ee.input,ee.selectRoot,(K.classes||{}).root),select:b1(ee.select,(K.classes||{}).select),icon:b1(ee.selectIcon,(K.classes||{}).icon)}),disabled:m,children:k.map(X=>m1.createElement(Q,P({},!B3(Q)&&{ownerState:_},{className:ee.menuItem,key:X.label?X.label:X,value:X.value?X.value:X}),X.label?X.label:X))})),o(h$,{className:ee.displayedRows,children:w({from:d===0?0:M*E+1,to:$(),count:d===-1?-1:d,page:M})}),o(l,{className:ee.actions,backIconButtonProps:c,count:d,nextIconButtonProps:b,onPageChange:F,page:M,rowsPerPage:E,showFirstButton:L,showLastButton:D,slotProps:H.actions,slots:q.actions,getItemAriaLabel:v,disabled:m})]})}))});function v$(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function C$(e,t,n,r={},i=()=>{}){const{ease:l=v$,duration:c=300}=r;let u=null;const h=t[e];let g=!1;const d=()=>{g=!0},m=v=>{if(g){i(new Error("Animation cancelled"));return}u===null&&(u=v);const w=Math.min(1,(v-u)/c);if(t[e]=l(w)*(n-h)+h,w>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(m)};return h===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(m),d)}const b$=["onChange"],y$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function w$(e){const{onChange:t}=e,n=e1(e,b$),r=y.useRef(),i=y.useRef(null),l=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return wn(()=>{const c=U0(()=>{const h=r.current;l(),h!==r.current&&t(r.current)}),u=Ui(i.current);return u.addEventListener("resize",c),()=>{c.clear(),u.removeEventListener("resize",c)}},[t]),y.useEffect(()=>{l(),t(r.current)},[t]),o("div",P({style:y$},n,{ref:i}))}function I$(e){return wt("MuiTabScrollButton",e)}var E$=mt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const S$=["className","slots","slotProps","direction","orientation","disabled"],A$=e=>{const{classes:t,orientation:n,disabled:r}=e;return V1({root:["root",n,r&&"disabled"]},I$,t)},x$=p1(Va,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${E$.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}));var F$=y.forwardRef(function(t,n){var r,i;const l=Ft({props:t,name:"MuiTabScrollButton"}),{className:c,slots:u={},slotProps:h={},direction:g}=l,d=e1(l,S$),m=Hs(),v=P({isRtl:m},l),w=A$(v),C=(r=u.StartScrollButtonIcon)!=null?r:CC,b=(i=u.EndScrollButtonIcon)!=null?i:bC,F=so({elementType:C,externalSlotProps:h.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),x=so({elementType:b,externalSlotProps:h.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return o(x$,P({component:"div",className:b1(w.root,c),ref:n,role:null,ownerState:v,tabIndex:null},d,{children:g==="left"?o(C,P({},F)):o(b,P({},x))}))});function M$(e){return wt("MuiTabs",e)}var Cu=mt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const z$=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],wC=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,IC=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Yc=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const l=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||l)i=n(e,i);else{i.focus();return}}},k$=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:l,centered:c,scrollButtonsHideMobile:u,classes:h}=e;return V1({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},M$,h)},P$=p1("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cu.scrollButtons}`]:t.scrollButtons},{[`& .${Cu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Cu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),O$=p1("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),B$=p1("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),L$=p1("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),T$=p1(w$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),EC={};var R$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTabs"}),i=Ra(),l=Hs(),{"aria-label":c,"aria-labelledby":u,action:h,centered:g=!1,children:d,className:m,component:v="div",allowScrollButtonsMobile:w=!1,indicatorColor:C="primary",onChange:b,orientation:F="horizontal",ScrollButtonComponent:x=F$,scrollButtons:M="auto",selectionFollowsFocus:E,slots:k={},slotProps:V={},TabIndicatorProps:L={},TabScrollButtonProps:D={},textColor:H="primary",value:q,variant:Z="standard",visibleScrollbar:_=!1}=r,ee=e1(r,z$),K=Z==="scrollable",Q=F==="vertical",Y=Q?"scrollTop":"scrollLeft",J=Q?"top":"left",te=Q?"bottom":"right",$=Q?"clientHeight":"clientWidth",X=Q?"height":"width",ne=P({},r,{component:v,allowScrollButtonsMobile:w,indicatorColor:C,orientation:F,vertical:Q,scrollButtons:M,textColor:H,variant:Z,visibleScrollbar:_,fixed:!K,hideScrollbar:K&&!_,scrollableX:K&&!Q,scrollableY:K&&Q,centered:g&&!K,scrollButtonsHideMobile:!w}),be=k$(ne),me=so({elementType:k.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:ne}),Be=so({elementType:k.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:ne}),[ze,se]=y.useState(!1),[pe,ye]=y.useState(EC),[Fe,Ne]=y.useState(!1),[Oe,_e]=y.useState(!1),[l1,Ie]=y.useState(!1),[Je,o1]=y.useState({overflow:"hidden",scrollbarWidth:0}),r1=new Map,C1=y.useRef(null),s1=y.useRef(null),B1=()=>{const a1=C1.current;let E1;if(a1){const et=a1.getBoundingClientRect();E1={clientWidth:a1.clientWidth,scrollLeft:a1.scrollLeft,scrollTop:a1.scrollTop,scrollLeftNormalized:eG(a1,l?"rtl":"ltr"),scrollWidth:a1.scrollWidth,top:et.top,bottom:et.bottom,left:et.left,right:et.right}}let $1;if(a1&&q!==!1){const et=s1.current.children;if(et.length>0){const At=et[r1.get(q)];$1=At?At.getBoundingClientRect():null}}return{tabsMeta:E1,tabMeta:$1}},he=xn(()=>{const{tabsMeta:a1,tabMeta:E1}=B1();let $1=0,et;if(Q)et="top",E1&&a1&&($1=E1.top-a1.top+a1.scrollTop);else if(et=l?"right":"left",E1&&a1){const Bt=l?a1.scrollLeftNormalized+a1.clientWidth-a1.scrollWidth:a1.scrollLeft;$1=(l?-1:1)*(E1[et]-a1[et]+Bt)}const At={[et]:$1,[X]:E1?E1[X]:0};if(isNaN(pe[et])||isNaN(pe[X]))ye(At);else{const Bt=Math.abs(pe[et]-At[et]),pt=Math.abs(pe[X]-At[X]);(Bt>=1||pt>=1)&&ye(At)}}),we=(a1,{animation:E1=!0}={})=>{E1?C$(Y,C1.current,a1,{duration:i.transitions.duration.standard}):C1.current[Y]=a1},Se=a1=>{let E1=C1.current[Y];Q?E1+=a1:(E1+=a1*(l?-1:1),E1*=l&&tm()==="reverse"?-1:1),we(E1)},xe=()=>{const a1=C1.current[$];let E1=0;const $1=Array.from(s1.current.children);for(let et=0;et<$1.length;et+=1){const At=$1[et];if(E1+At[$]>a1){et===0&&(E1=a1);break}E1+=At[$]}return E1},Pe=()=>{Se(-1*xe())},Me=()=>{Se(xe())},Te=y.useCallback(a1=>{o1({overflow:null,scrollbarWidth:a1})},[]),Xe=()=>{const a1={};a1.scrollbarSizeListener=K?o(T$,{onChange:Te,className:b1(be.scrollableX,be.hideScrollbar)}):null;const $1=K&&(M==="auto"&&(Fe||Oe)||M===!0);return a1.scrollButtonStart=$1?o(x,P({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:me},orientation:F,direction:l?"right":"left",onClick:Pe,disabled:!Fe},D,{className:b1(be.scrollButtons,D.className)})):null,a1.scrollButtonEnd=$1?o(x,P({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Be},orientation:F,direction:l?"left":"right",onClick:Me,disabled:!Oe},D,{className:b1(be.scrollButtons,D.className)})):null,a1},je=xn(a1=>{const{tabsMeta:E1,tabMeta:$1}=B1();if(!(!$1||!E1)){if($1[J]<E1[J]){const et=E1[Y]+($1[J]-E1[J]);we(et,{animation:a1})}else if($1[te]>E1[te]){const et=E1[Y]+($1[te]-E1[te]);we(et,{animation:a1})}}}),We=xn(()=>{K&&M!==!1&&Ie(!l1)});y.useEffect(()=>{const a1=U0(()=>{C1.current&&he()});let E1;const $1=Bt=>{Bt.forEach(pt=>{pt.removedNodes.forEach(bt=>{var rn;(rn=E1)==null||rn.unobserve(bt)}),pt.addedNodes.forEach(bt=>{var rn;(rn=E1)==null||rn.observe(bt)})}),a1(),We()},et=Ui(C1.current);et.addEventListener("resize",a1);let At;return typeof ResizeObserver!="undefined"&&(E1=new ResizeObserver(a1),Array.from(s1.current.children).forEach(Bt=>{E1.observe(Bt)})),typeof MutationObserver!="undefined"&&(At=new MutationObserver($1),At.observe(s1.current,{childList:!0})),()=>{var Bt,pt;a1.clear(),et.removeEventListener("resize",a1),(Bt=At)==null||Bt.disconnect(),(pt=E1)==null||pt.disconnect()}},[he,We]),y.useEffect(()=>{const a1=Array.from(s1.current.children),E1=a1.length;if(typeof IntersectionObserver!="undefined"&&E1>0&&K&&M!==!1){const $1=a1[0],et=a1[E1-1],At={root:C1.current,threshold:.99},Bt=Ln=>{Ne(!Ln[0].isIntersecting)},pt=new IntersectionObserver(Bt,At);pt.observe($1);const bt=Ln=>{_e(!Ln[0].isIntersecting)},rn=new IntersectionObserver(bt,At);return rn.observe(et),()=>{pt.disconnect(),rn.disconnect()}}},[K,M,l1,d==null?void 0:d.length]),y.useEffect(()=>{se(!0)},[]),y.useEffect(()=>{he()}),y.useEffect(()=>{je(EC!==pe)},[je,pe]),y.useImperativeHandle(h,()=>({updateIndicator:he,updateScrollButtons:We}),[he,We]);const Ke=o(L$,P({},L,{className:b1(be.indicator,L.className),ownerState:ne,style:P({},pe,L.style)}));let L1=0;const S1=y.Children.map(d,a1=>{if(!y.isValidElement(a1))return null;const E1=a1.props.value===void 0?L1:a1.props.value;r1.set(E1,L1);const $1=E1===q;return L1+=1,y.cloneElement(a1,P({fullWidth:Z==="fullWidth",indicator:$1&&!ze&&Ke,selected:$1,selectionFollowsFocus:E,onChange:b,textColor:H,value:E1},L1===1&&q===!1&&!a1.props.tabIndex?{tabIndex:0}:{}))}),De=a1=>{const E1=s1.current,$1=Yn(E1).activeElement;if($1.getAttribute("role")!=="tab")return;let At=F==="horizontal"?"ArrowLeft":"ArrowUp",Bt=F==="horizontal"?"ArrowRight":"ArrowDown";switch(F==="horizontal"&&l&&(At="ArrowRight",Bt="ArrowLeft"),a1.key){case At:a1.preventDefault(),Yc(E1,$1,IC);break;case Bt:a1.preventDefault(),Yc(E1,$1,wC);break;case"Home":a1.preventDefault(),Yc(E1,null,wC);break;case"End":a1.preventDefault(),Yc(E1,null,IC);break}},w1=Xe();return U(P$,P({className:b1(be.root,m),ownerState:ne,ref:n,as:v},ee,{children:[w1.scrollButtonStart,w1.scrollbarSizeListener,U(O$,{className:be.scroller,ownerState:ne,style:{overflow:Je.overflow,[Q?`margin${l?"Left":"Right"}`:"marginBottom"]:_?void 0:-Je.scrollbarWidth},ref:C1,children:[o(B$,{"aria-label":c,"aria-labelledby":u,"aria-orientation":F==="vertical"?"vertical":null,className:be.flexContainer,ownerState:ne,onKeyDown:De,ref:s1,role:"tablist",children:S1}),ze&&Ke]}),w1.scrollButtonEnd]}))});function D$(e){return wt("MuiTextField",e)}mt("MuiTextField",["root"]);const V$=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],H$={standard:Uv,filled:Vv,outlined:sC},N$=e=>{const{classes:t}=e;return V1({root:["root"]},D$,t)},Q$=p1(Hv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var W$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:l=!1,children:c,className:u,color:h="primary",defaultValue:g,disabled:d=!1,error:m=!1,FormHelperTextProps:v,fullWidth:w=!1,helperText:C,id:b,InputLabelProps:F,inputProps:x,InputProps:M,inputRef:E,label:k,maxRows:V,minRows:L,multiline:D=!1,name:H,onBlur:q,onChange:Z,onFocus:_,placeholder:ee,required:K=!1,rows:Q,select:Y=!1,SelectProps:J,type:te,value:$,variant:X="outlined"}=r,ne=e1(r,V$),be=P({},r,{autoFocus:l,color:h,disabled:d,error:m,fullWidth:w,multiline:D,required:K,select:Y,variant:X}),me=N$(be),Be={};X==="outlined"&&(F&&typeof F.shrink!="undefined"&&(Be.notched=F.shrink),Be.label=k),Y&&((!J||!J.native)&&(Be.id=void 0),Be["aria-describedby"]=void 0);const ze=Pn(b),se=C&&ze?`${ze}-helper-text`:void 0,pe=k&&ze?`${ze}-label`:void 0,ye=H$[X],Fe=o(ye,P({"aria-describedby":se,autoComplete:i,autoFocus:l,defaultValue:g,fullWidth:w,multiline:D,name:H,rows:Q,maxRows:V,minRows:L,type:te,value:$,id:ze,inputRef:E,onBlur:q,onChange:Z,onFocus:_,placeholder:ee,inputProps:x},Be,M));return U(Q$,P({className:b1(me.root,u),disabled:d,error:m,fullWidth:w,ref:n,required:K,color:h,variant:X,ownerState:be},ne,{children:[k!=null&&k!==""&&o(qv,P({htmlFor:ze,id:pe},F,{children:k})),Y?o(mu,P({"aria-describedby":se,id:ze,labelId:pe,value:$,input:Fe},J,{children:c})):Fe,C&&o(SZ,P({id:se},v,{children:C}))]}))});function l4({status:e,message:t}){const n=[k3,Sl,"MATCH","NOT_VERIFY",El,Al,"0",400,401,404,0,429,500],r=["ACCEPT","Success","FACER_OK",200];return U(B0,{children:[n.includes(e)&&o(aQ,{message:t||"Error obteniendo el Token"}),r.includes(e)&&o(Xp,{message:t})]})}const s4=e=>e!==El&&e!==k3&&e!==Sl&&e!==Al&&e!=="";var j$=Ct(o("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),bu=Ct([o("path",{d:"M16 7h-1l-1-1h-4L9 7H8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-4 7c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"0"),o("path",{d:"m8.57.51 4.48 4.48V2.04c4.72.47 8.48 4.23 8.95 8.95h2C23.34 3.02 15.49-1.59 8.57.51m2.38 21.45c-4.72-.47-8.48-4.23-8.95-8.95H0c.66 7.97 8.51 12.58 15.43 10.48l-4.48-4.48z"},"1")],"Cameraswitch"),SC=Ct(o("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),G$=Ct(o("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"Collections"),U$=Ct(o("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows"),K$=Ct(o("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),AC=Ct(o("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Y$=Ct(o("path",{d:"m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"}),"ImageNotSupported"),q$=Ct(o("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),J$=Ct(o("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3z"}),"SettingsBrightness"),xC=Ct(o("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14m.5-7H9v2H7v1h2v2h1v-2h2V9h-2z"}),"ZoomInTwoTone");function qc({action:e}){return o(Ut,{className:"back-button-container",children:U(Iv,{variant:"outlined",onClick:e,className:"back-button",children:[o(j$,{className:"grayscale"}),o(T2,{variant:"body2",children:"Volver atras"})]})})}function FC({mode:e="light",showFilterByButton:t=!0,dataBlackList:n,icon:r,clientId:i,authorize:l,inProduction:c="prd",source:u="component",eventId:h=null,countryCodeAllowed:g=null,validateVpn:d=!1,successMessage:m,alertMessage:v}){const{onSendSubmitDocument:w,simpleHandleSubmit:C,isLoading:b,controlDoc:F,errorsDoc:x,status:M,message:E,listMatch:k,select:V,setSelect:L,clearState:D,countryCode:H}=qp(i,l,c,u,h,g,d,m,v,n);return U("div",{className:`kit-gbc ${e}`,style:{padding:"16px"},children:[o(M3,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),b||g!==null&&!H?o(ws,{}):null,o("form",{onSubmit:C(w),id:"blacklist",children:U("div",{className:"sub",children:[s4(M)&&o(qc,{action:D}),U("div",{className:"header-component",children:[o("h4",{children:"Lista de sanciones y PEPs"}),Hr(M)?o("p",{children:"Ingrese al menos el primer nombre y apellido de la persona a consultar."}):o(l4,{status:M,message:E.message?E.message:E})]}),!Hr(k)&&o(_p,{lists:k}),Hr(M)&&U(B0,{children:[o(L0,{type:"text",name:"first_name",placeholder:"Primer nombre",icon:r&&r,control:F,error:x.first_name}),o(L0,{type:"text",name:"second_name",label:"Segundo nombre",placeholder:"Segundo nombre",icon:r&&r,control:F,error:x.second_name}),o(L0,{type:"text",name:"first_last_name",label:"Primer apellido",placeholder:"Primer apellido",icon:r&&r,control:F,error:x.first_last_name}),o(L0,{type:"text",name:"second_last_name",label:"Segundo apellido",placeholder:"Segundo apellido",icon:r&&r,control:F,error:x.second_last_name}),o(L0,{type:"date",name:"birth_date",label:"Fecha de nacimiento",placeholder:"Fecha de nacimiento",icon:r&&r,control:F,error:x.birth_date}),o(L0,{type:"country",name:"country",customLabel:"Pa\xEDs de nacimiento",searchable:!0,searchPlaceholder:"Filtrar por pa\xEDs",onSelect:q=>L(q),selected:V,icon:r&&r,control:F,error:x.country}),o(g2,{type:"submit",children:"Procesar"})]}),M!==El&&M!==k3&&M!==Sl&&M!==Al&&t?o(Ut,{width:"100%",mt:2,children:D&&Object.keys(k).length>0&&o(g2,{className:"my-1 col-12",onClick:D,children:"Filtrar por"})}):null]})})]})}FC.propTypes={mode:Y1.exports.PropTypes.string,icon:Y1.exports.PropTypes.func,clientId:Y1.exports.PropTypes.string.isRequired,authorize:Y1.exports.PropTypes.func.isRequired,inProduction:Y1.exports.PropTypes.string,countryCodeAllowed:Y1.exports.PropTypes.array,source:Y1.exports.PropTypes.string,eventId:Y1.exports.PropTypes.string,validateVpn:Y1.exports.PropTypes.bool,successMessage:Y1.exports.PropTypes.string,alertMessage:Y1.exports.PropTypes.string,dataBlackList:Y1.exports.PropTypes.func.isRequired,showFilterByButton:Y1.exports.PropTypes.bool};const Z$=(e,t,n,r,i,l,c,u,h,g)=>{const[d,m]=m1.useState({}),[v,w]=m1.useState(""),[C,b]=m1.useState(!1),[F,x]=m1.useState(t===void 0?Sl:n===void 0?k3:""),[M,E]=m1.useState(null),k=w5(l),[V,L]=m1.useState(g),D=m1.useRef(null),[H,q]=m1.useState(!1),[Z,_]=m1.useState(!1);m1.useEffect(()=>{c&&(k==null?void 0:k.data_connection.isocode)&&c.length!==0&&!c.some(ne=>ne===(k==null?void 0:k.data_connection.isocode))&&(x(El),w(I5)),u&&(k==null?void 0:k.data_connection.proxy)==S5&&(x(Al),w(E5)),c&&k&&E(k==null?void 0:k.data_connection.isocode)},[k,c]);const ee=()=>{L(g),m({}),x(""),w(""),b(!1)},{handleSubmit:K}=$4(),Q=async()=>{var ne;b(!0);try{const be=await n(),Be={method:"POST",path:"api/v1/onboarding/validate",inProduction:l,customHeaders:{client_id:t,access_token:be},bodyParams:d,service:"services"};try{const ze=await S0(Be),se=ze.data.data,pe=await Bo({data:{...se,status_code:200},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});pe&&Object.assign(se,{checkIp:pe.check_ip}),se&&await e(se);const{message:ye}=ze.data;ye&&x(ye),w(h||"Documento verificado con \xE9xito")}catch(ze){console.log(ze,"controller");let se="";const{status:pe}=ze.response,ye=await Bo({data:{first_image:d.firstImage,second_image:Object.keys(d).length>1?d.secondImage:"",status_code:pe},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});await e({...ze,countAttempts:ye.count_try}),ze.response.data.code==="020"&&ye.count_try>3&&_(!0),(ne=ze.response.data)!=null&&ne.message?se=ze.response.data.message:pe===500&&(se={limit_of_request:$9}),b(null),w(se),x(pe),Cs(ze)}}catch{An.error("Error - Verificar host con el proveedor")}finally{b(!1)}},Y=async ne=>{const be=D.current.getScreenshot(),me=Object.assign(d,{[ne]:be});m(me),q(!1)},J=async(ne,be)=>{const me=Object.assign(d,{[ne]:be});m(me),q(!1)},$=(()=>{const[ne,be]=m1.useState(window.innerHeight>window.innerWidth);return m1.useEffect(()=>{const me=()=>{be(window.innerHeight>window.innerWidth)};return window.addEventListener("resize",me),()=>{window.removeEventListener("resize",me)}},[]),ne})(),X=m1.useMemo(()=>({width:{ideal:$?1080:1920},height:{ideal:$?1920:1080},aspectRatio:{ideal:$?16/9:9/16},frameRate:{ideal:30},focusMode:{ideal:"continuous"},facingMode:{ideal:"environment"}}),[$]);return m1.useEffect(()=>{H&&(q(!1),setTimeout(()=>q(!0),100))},[$]),{onSendSubmitDocument:Q,simpleHandleSubmit:K,isLoading:C,status:F,message:v,base64:d,setBase64:m,clearState:ee,countryCode:M,dualMode:V,setDualMode:L,dualModeRequired:g,onUploadImage:Y,webcamRef:D,activateCamera:H,setActivateCamera:q,videoConstraints:X,onUploadImage2:J,uploadDocumentByPhone:Z,setUploadDocumentByPhone:_}},X$=e=>e==="Tipo de documento no v\xE1lido"||e==="Datos de la imagen no reconocidas"||e==="Dato no reconocido(Primer Nombre)"||e=="Dato no reconocido(Primer Apellido)"||e=="",MC=({title:e,subtitle:t,uploadByPhone:n})=>U(Ut,{children:[o(T2,{variant:"h6",className:"title",mt:2,children:e}),o(T2,{variant:"body2",children:t}),U(Jv,{dense:!0,children:[n&&U(Wc,{children:[o(Ji,{children:o(G$,{})}),o(Zi,{primary:"Aseg\xFArate de tener las fotos de tu documento en tu galer\xEDa"})]}),U(Wc,{children:[o(Ji,{children:o(q$,{})}),o(Zi,{primary:"Procura que la foto tenga buena iluminaci\xF3n"})]}),U(Wc,{children:[o(Ji,{children:o(J$,{})}),o(Zi,{primary:"Evita reflejos en el documento de identidad"})]}),U(Wc,{children:[o(Ji,{children:o(bu,{})}),o(Zi,{primary:"Procura que el texto en el documento sea legible, sino prueba cambiando a otra c\xE1mara de tu dispositivo"})]})]})]});function zC({setActivateCamera:e,activateCamera:t,videoConstraints:n,videoRef:r,streamRef:i,onTapToFocus:l,title:c,subtitle:u,cameras:h,setCameras:g,currentCameraIndex:d}){const[m,v]=m1.useState(!1);return m1.useEffect(()=>{(async()=>{var C,b,F,x;try{(await navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(D=>D.stop());const k=(await navigator.mediaDevices.enumerateDevices()).filter(D=>D.kind==="videoinput");let V=-1,L=null;for(const D of k)try{const H=await navigator.mediaDevices.getUserMedia({video:{deviceId:D.deviceId}}),Z=H.getVideoTracks()[0].getCapabilities(),_=((C=Z.width)==null?void 0:C.max)||0,ee=((b=Z.height)==null?void 0:b.max)||0,K=((F=Z.zoom)==null?void 0:F.max)||1,Q=((x=Z.focusDistance)==null?void 0:x.max)||0,Y=_*ee+K*1e3+Q*1e3;Y>V&&(V=Y,L=D.deviceId),H.getTracks().forEach(J=>J.stop())}catch(H){console.error("Error al obtener capacidades de la c\xE1mara:",H)}if(L){const D=[...k.filter(H=>H.deviceId===L),...k.filter(H=>H.deviceId!==L)];g(D)}else g(k)}catch(M){console.error("Error al inicializar c\xE1maras:",M)}})()},[]),m1.useEffect(()=>{if(t&&r.current&&h.length>0){v(!0);const w=h[d],C=w?{video:{deviceId:{ideal:w.deviceId},facingMode:{ideal:"environment"}},audio:!1}:{video:{facingMode:{ideal:"environment"}},audio:!1};navigator.mediaDevices.getUserMedia(C).then(b=>{r.current.srcObject=b,r.current.play(),i.current=b,r.current.onloadeddata=()=>{v(!1)}}).catch(b=>{console.error("Error al acceder a la c\xE1mara:",b),v(!1)})}return()=>{i.current&&(i.current.getTracks().forEach(w=>w.stop()),i.current=null),r.current&&(r.current.srcObject=null)}},[t,d,h,n]),o("div",{className:"drag-zone",children:o(Ut,{className:"drag-and-drop-container",children:o(Ut,{onClick:()=>e(!0),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",children:t?U(Ut,{sx:{position:"relative",width:"100%",height:"100%"},children:[m&&o(Ut,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:o(Mv,{sx:{color:"black"}})}),o("video",{ref:r,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",borderRadius:"5px",opacity:m?0:1},onClick:l,playsInline:!0,muted:!0,autoPlay:!0})]}):o(MC,{title:c,subtitle:u})})})})}function kC({fileInputRef:e,handleFileChange:t,side:n,title:r,subtitle:i,startUpload:l,setActivateCamera:c}){const u=()=>{var h;(h=e.current)==null||h.click()};return o("div",{className:"drag-zone",children:o(Ut,{className:"drag-and-drop-container",children:o(Ut,{onClick:()=>l?u():c(!0),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",padding:2,children:l?U(Ut,{className:"test",children:[U("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[o(SC,{}),o(T2,{variant:"body2",style:{textAlign:"center",color:"gray",whiteSpace:"none",margin:"auto"},children:"Haz clic aqu\xED para subir una foto desde tu dispositivo"})]}),o("input",{ref:e,name:n,type:"file",accept:"image/*",onChange:t,style:{display:"none"}})]}):o(MC,{title:r,subtitle:i,uploadByPhone:!0})})})})}function _$(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)})}const $$=e=>{const t=document.createElement("canvas"),n=t.getContext("2d");let r=e instanceof HTMLImageElement?e.width:e.videoWidth,i=e instanceof HTMLImageElement?e.height:e.videoHeight;if(r>Kp||i>Yp){const l=Math.min(Kp/r,Yp/i);r=Math.floor(r*l),i=Math.floor(i*l)}return t.width=r,t.height=i,n==null||n.drawImage(e,0,0,r,i),{canvas:t,ctx:n}};function yu(e){const{children:t,value:n,index:r,tabOptions:i,base64:l,setBase64:c,setActivateCamera:u,activateCamera:h,webcamRef:g,Webcam:d,videoConstraints:m,onUploadImage:v,dualModeRequired:w,status:C,onUploadImage2:b,...F}=e;return o("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...F,className:"tabpanel",children:n===r&&o(Ut,{height:"100%",children:t})})}yu.propTypes={children:qe.node,index:qe.number.isRequired,value:qe.number.isRequired};function PC(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function eee({base64:e,setBase64:t,setActivateCamera:n,activateCamera:r,webcamRef:i,Webcam:l,videoConstraints:c,onUploadImage:u,dualModeRequired:h,status:g,onUploadImage2:d,uploadDocumentByPhone:m,onSendSubmitDocument:v}){const[w,C]=y.useState(0),[b,F]=y.useState(!1),[x,M]=m1.useState(!1),[E,k]=m1.useState([]),[V,L]=m1.useState(0),D=(X,ne)=>{C(ne),n(!1)},H=X=>{const ne={...e};delete ne[X],t(ne)},q=()=>{F(!b)},Z=m1.useRef(null),_=m1.useRef(null),ee=async X=>{const ne=Z.current;if(!ne)return;const{canvas:be}=$$(ne),me=be.toDataURL("image/jpeg");d(X,me),J()},K=async()=>{var be,me;if(!_.current)return;const[X]=_.current.getVideoTracks(),ne=(be=X.getCapabilities)==null?void 0:be.call(X);if((me=X.getSettings)==null||me.call(X),!(!ne||!ne.focusMode))try{ne.focusMode.includes("continuous")?await X.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"continuous"}]}):ne.focusMode.includes("single-shot")?await X.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"single-shot"}]}):ne.focusMode.includes("manual")&&ne.focusDistance?await X.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"manual",focusDistance:ne.focusDistance.min}]}):console.warn("No hay modo de enfoque compatible")}catch(Be){console.error("Error al aplicar constraints de enfoque:",Be)}},Q=m1.useRef(null),Y=async X=>{const ne=X.target.files[0],be=await _$(ne),me=X.target.name;d(me,be),J()},J=()=>{e.firstImage&&h&&D(X=>X,1),e.firstImage&&e.secondImage&&v()},te=()=>{M(!1),n(!0)},$=()=>{L(X=>(X+1)%E.length)};return U(Ut,{sx:{width:"100%"},children:[o(Ut,{sx:{borderBottom:1,borderColor:"divider"},children:U(R$,{value:w,onChange:D,"aria-label":"document selector",children:[o(vC,{label:"Frontal",...PC(0)}),o(vC,{label:"Reverso",...PC(1)})]})}),o(yu,{value:w,index:0,children:o(Ut,{className:"thumbnails-container",children:o(Ut,{className:"thumbnails",children:U(Ut,{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",width:"100%",children:[e.firstImage?o("div",{className:"img-container",style:{transition:"transform 0.3s ease-in-out, width 0.3s ease-in-out",width:"100%",position:"relative",zIndex:1},children:o("img",{src:e.firstImage,onClick:q,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m?o(kC,{handleFileChange:Y,side:"firstImage",fileInputRef:Q,title:"Cargar documeto",subtitle:"Vamos a cargar el documento desde tu dispositivo. \xA1Ten en cuenta lo siguiente!",startUpload:r,setActivateCamera:n}):o(zC,{videoRef:Z,streamRef:_,setActivateCamera:n,activateCamera:r,videoConstraints:c,onTapToFocus:K,title:"Cargar documento",subtitle:"Subir frontal del documento",currentCameraIndex:V,cameras:E,setCameras:k}),U(Ut,{width:"100%",children:[e.firstImage&&U(Ut,{className:"toolbox-container",children:[o(Ut,{className:"zoom-button",onClick:q,children:o(a4,{title:"Ampliar",placement:"right",arrow:!0,children:o(xC,{})})}),o(Ut,{className:"delete-button",onClick:()=>H("firstImage"),children:o(a4,{title:"Vaciar",placement:"right",arrow:!0,children:o(AC,{sx:{color:"white"}})})})]}),!r&&!e.firstImage&&o(g2,{type:"button",onClick:te,children:"Continuar"}),!r&&e.firstImage&&o(g2,{type:"button",onClick:X=>D(X,1),children:"Cargar reverso del documento"}),r&&!x&&!m&&U(Ut,{display:"flex",flexDirection:"column",alignItems:"end",children:[E.length>1&&o(Ut,{onClick:$,className:"change-camera-button",children:o(bu,{})}),o(g2,{type:"button",onClick:()=>ee("firstImage"),className:"m-0",children:"Capturar"})]}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!h&&e.firstImage||h&&e.firstImage&&e.secondImage)&&U(Ut,{children:[o(Rv,{children:"O"}),o(g2,{type:"submit",children:"Procesar"})]})]})]})})})}),o(yu,{value:w,index:1,children:o(Ut,{className:"thumbnails-container",children:o(Ut,{className:"thumbnails",children:U(Ut,{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",width:"100%",children:[e.secondImage?o("div",{className:"img-container",style:{transition:"transform 0.3s ease-in-out, width 0.3s ease-in-out",width:"100%",position:"relative",zIndex:1},children:o("img",{src:e.secondImage,onClick:q,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m?o(kC,{handleFileChange:Y,side:"secondImage",fileInputRef:Q,title:"Bien ahora vamos por el reverso",subtitle:"\xA1Recuerda tener en cuenta lo siguiente!",startUpload:r,setActivateCamera:n}):o(zC,{videoRef:Z,streamRef:_,setActivateCamera:n,activateCamera:r,videoConstraints:c,title:"Bien ahora carguemos el reverso",subtitle:"Asegurate de que sea legible",onTapToFocus:K,currentCameraIndex:V,cameras:E,setCameras:k}),U(Ut,{width:"100%",children:[e.secondImage&&U(Ut,{className:"toolbox-container",children:[o(Ut,{className:"zoom-button",onClick:q,children:o(a4,{title:"Ampliar",placement:"right",arrow:!0,children:o(xC,{})})}),o(Ut,{className:"delete-button",onClick:()=>H("secondImage"),children:o(a4,{title:"Vaciar",placement:"right",arrow:!0,children:o(AC,{sx:{color:"white"}})})})]}),!r&&!e.secondImage&&o(g2,{type:"button",onClick:te,children:"Continuar"}),r&&!x&&!m&&U(Ut,{display:"flex",flexDirection:"column",alignItems:"end",children:[E.length>1&&o(Ut,{onClick:$,className:"change-camera-button",children:o(bu,{})}),o(g2,{type:"button",onClick:()=>ee("secondImage"),children:"Capturar"})]}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!h&&e.secondImage&&e.firstImage||h&&e.firstImage&&e.secondImage)&&o(g2,{type:"submit",children:"Procesar"})]})]})})})}),b&&o(Ut,{sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:999},children:o(Ut,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",height:525,children:o("img",{src:w===0?e.firstImage:e.secondImage,alt:"zoomed",onClick:q,style:{overflow:"auto",maxWidth:b?"140%":"100%",maxHeight:"90%",objectFit:"contain",borderRadius:"5px"}})})})]})}var OC={exports:{}};(function(e,t){(function(r,i){e.exports=i(Z1.default)})(vl,function(n){return function(r){var i={};function l(c){if(i[c])return i[c].exports;var u=i[c]={i:c,l:!1,exports:{}};return r[c].call(u.exports,u,u.exports,l),u.l=!0,u.exports}return l.m=r,l.c=i,l.d=function(c,u,h){l.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:h})},l.r=function(c){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},l.t=function(c,u){if(u&1&&(c=l(c)),u&8||u&4&&typeof c=="object"&&c&&c.__esModule)return c;var h=Object.create(null);if(l.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:c}),u&2&&typeof c!="string")for(var g in c)l.d(h,g,function(d){return c[d]}.bind(null,g));return h},l.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return l.d(u,"a",u),u},l.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},l.p="",l(l.s="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(r,i,l){l.r(i);var c=l("react"),u=function(){var v=function(w,C){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,F){b.__proto__=F}||function(b,F){for(var x in F)F.hasOwnProperty(x)&&(b[x]=F[x])},v(w,C)};return function(w,C){v(w,C);function b(){this.constructor=w}w.prototype=C===null?Object.create(C):(b.prototype=C.prototype,new b)}}(),h=function(){return h=Object.assign||function(v){for(var w,C=1,b=arguments.length;C<b;C++){w=arguments[C];for(var F in w)Object.prototype.hasOwnProperty.call(w,F)&&(v[F]=w[F])}return v},h.apply(this,arguments)},g=function(v,w){var C={};for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&w.indexOf(b)<0&&(C[b]=v[b]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,b=Object.getOwnPropertySymbols(v);F<b.length;F++)w.indexOf(b[F])<0&&Object.prototype.propertyIsEnumerable.call(v,b[F])&&(C[b[F]]=v[b[F]]);return C};(function(){typeof window!="undefined"&&(navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(w){var C=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return C?new Promise(function(b,F){C.call(navigator,w,b,F)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}))})();function d(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}var m=function(v){u(w,v);function w(C){var b=v.call(this,C)||this;return b.canvas=null,b.ctx=null,b.requestUserMediaId=0,b.unmounted=!1,b.state={hasUserMedia:!1},b}return w.prototype.componentDidMount=function(){var C=this,b=C.state,F=C.props;if(this.unmounted=!1,!d()){F.onUserMediaError("getUserMedia not supported");return}b.hasUserMedia||this.requestUserMedia(),F.children&&typeof F.children!="function"&&console.warn("children must be a function")},w.prototype.componentDidUpdate=function(C){var b=this.props;if(!d()){b.onUserMediaError("getUserMedia not supported");return}var F=JSON.stringify(C.audioConstraints)!==JSON.stringify(b.audioConstraints),x=JSON.stringify(C.videoConstraints)!==JSON.stringify(b.videoConstraints),M=C.minScreenshotWidth!==b.minScreenshotWidth,E=C.minScreenshotHeight!==b.minScreenshotHeight;(x||M||E)&&(this.canvas=null,this.ctx=null),(F||x)&&(this.stopAndCleanup(),this.requestUserMedia())},w.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},w.stopMediaStream=function(C){C&&(C.getVideoTracks&&C.getAudioTracks?(C.getVideoTracks().map(function(b){C.removeTrack(b),b.stop()}),C.getAudioTracks().map(function(b){C.removeTrack(b),b.stop()})):C.stop())},w.prototype.stopAndCleanup=function(){var C=this.state;C.hasUserMedia&&(w.stopMediaStream(this.stream),C.src&&window.URL.revokeObjectURL(C.src))},w.prototype.getScreenshot=function(C){var b=this,F=b.state,x=b.props;if(!F.hasUserMedia)return null;var M=this.getCanvas(C);return M&&M.toDataURL(x.screenshotFormat,x.screenshotQuality)},w.prototype.getCanvas=function(C){var b=this,F=b.state,x=b.props;if(!this.video||!F.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var M=this.video.videoWidth,E=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var k=M/E;M=x.minScreenshotWidth||this.video.clientWidth,E=M/k,x.minScreenshotHeight&&E<x.minScreenshotHeight&&(E=x.minScreenshotHeight,M=E*k)}this.canvas=document.createElement("canvas"),this.canvas.width=(C==null?void 0:C.width)||M,this.canvas.height=(C==null?void 0:C.height)||E,this.ctx=this.canvas.getContext("2d")}var V=this,L=V.ctx,D=V.canvas;return L&&D&&(D.width=(C==null?void 0:C.width)||D.width,D.height=(C==null?void 0:C.height)||D.height,x.mirrored&&(L.translate(D.width,0),L.scale(-1,1)),L.imageSmoothingEnabled=x.imageSmoothing,L.drawImage(this.video,0,0,(C==null?void 0:C.width)||D.width,(C==null?void 0:C.height)||D.height),x.mirrored&&(L.scale(-1,1),L.translate(-D.width,0))),D},w.prototype.requestUserMedia=function(){var C=this,b=this.props,F=function(E,k){var V={video:typeof k!="undefined"?k:!0};b.audio&&(V.audio=typeof E!="undefined"?E:!0),C.requestUserMediaId++;var L=C.requestUserMediaId;navigator.mediaDevices.getUserMedia(V).then(function(D){C.unmounted||L!==C.requestUserMediaId?w.stopMediaStream(D):C.handleUserMedia(null,D)}).catch(function(D){C.handleUserMedia(D)})};if("mediaDevices"in navigator)F(b.audioConstraints,b.videoConstraints);else{var x=function(E){return{optional:[{sourceId:E}]}},M=function(E){var k=E.deviceId;return typeof k=="string"?k:Array.isArray(k)&&k.length>0?k[0]:typeof k=="object"&&k.ideal?k.ideal:null};MediaStreamTrack.getSources(function(E){var k=null,V=null;E.forEach(function(H){H.kind==="audio"?k=H.id:H.kind==="video"&&(V=H.id)});var L=M(b.audioConstraints);L&&(k=L);var D=M(b.videoConstraints);D&&(V=D),F(x(k),x(V))})}},w.prototype.handleUserMedia=function(C,b){var F=this.props;if(C||!b){this.setState({hasUserMedia:!1}),F.onUserMediaError(C);return}this.stream=b;try{this.video&&(this.video.srcObject=b),this.setState({hasUserMedia:!0})}catch{this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(b)})}F.onUserMedia(b)},w.prototype.render=function(){var C=this,b=this,F=b.state,x=b.props,M=x.audio;x.forceScreenshotSourceSize;var E=x.disablePictureInPicture;x.onUserMedia,x.onUserMediaError,x.screenshotFormat,x.screenshotQuality,x.minScreenshotWidth,x.minScreenshotHeight,x.audioConstraints,x.videoConstraints,x.imageSmoothing;var k=x.mirrored,V=x.style,L=V===void 0?{}:V,D=x.children,H=g(x,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),q=k?h(h({},L),{transform:(L.transform||"")+" scaleX(-1)"}):L,Z={getScreenshot:this.getScreenshot.bind(this)};return c.createElement(c.Fragment,null,c.createElement("video",h({autoPlay:!0,disablePictureInPicture:E,src:F.src,muted:!M,playsInline:!0,ref:function(_){C.video=_},style:q},H)),D&&D(Z))},w.defaultProps={audio:!1,disablePictureInPicture:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},w}(c.Component);i.default=m},react:function(r,i){r.exports=n}}).default})})(OC);var BC=eE(OC.exports);function LC({mode:e="light",dataDocument:t,clientId:n,authorize:r,eventId:i=null,source:l="component",inProduction:c="prd",countryCodeAllowed:u=null,validateVpn:h=!1,successMessage:g,dualModeRequired:d=!1,showBackButtonWhenError:m=!0}){const{onSendSubmitDocument:v,simpleHandleSubmit:w,isLoading:C,status:b,message:F,clearState:x,base64:M,countryCode:E,onUploadImage:k,onUploadImage2:V,activateCamera:L,setActivateCamera:D,webcamRef:H,videoConstraints:q,setBase64:Z,uploadDocumentByPhone:_,setUploadDocumentByPhone:ee}=Z$(t,n,r,i,l,c,u,h,g,d);return U("div",{className:`kit-gbc ${e} without-shadow ocr`,children:[o(M3,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),C||u!==null&&!E?o(ws,{}):null,o("form",{onSubmit:w(v),id:"document-reader",children:U("div",{className:"sub",children:[U("div",{className:"header-component",children:[o("h4",{children:"Lectura del documento"}),Hr(b)?o("p",{children:"Ubique su documento de identidad dentro del recuadro lo m\xE1s centrado posible."}):o(l4,{status:b,message:F})]}),Hr(b)&&o(eee,{base64:M,setBase64:Z,setActivateCamera:D,activateCamera:L,webcamRef:H,Webcam:BC,videoConstraints:q,onUploadImage:k,dualModeRequired:d,status:b,onUploadImage2:V,uploadDocumentByPhone:_,setUploadDocumentByPhone:ee,onSendSubmitDocument:v}),(l!=="secure_link"||X$(F))&&s4(b)&&m&&o(g2,{type:"button",onClick:x,children:"Volver a intentar"})]})}),c!=="prd"&&o("span",{children:"Versi\xF3n 3.0.0"})]})}LC.propTypes={mode:Y1.exports.PropTypes.string,clientId:Y1.exports.PropTypes.string.isRequired,authorize:Y1.exports.PropTypes.func.isRequired,dataDocument:Y1.exports.PropTypes.func.isRequired,inProduction:Y1.exports.PropTypes.string,countryCodeAllowed:Y1.exports.PropTypes.array,source:Y1.exports.PropTypes.string,eventId:Y1.exports.PropTypes.string,validateVpn:Y1.exports.PropTypes.bool,dualModeRequired:Y1.exports.PropTypes.bool,successMessage:Y1.exports.PropTypes.string,showBackButtonWhenError:Y1.exports.PropTypes.bool};const TC=async(e,t,n,r)=>{const i={method:"POST",path:"api/v1/onboarding/face_match",inProduction:n,customHeaders:r,service:"services",bodyParams:{doc:e,selfie:t}};try{return(await S0(i)).data}catch(l){throw console.log(l),l}},tee=(e,t,n,r,i,l,c,u,h,g,d,m)=>{const[v,w]=m1.useState({}),[C,b]=m1.useState(""),[F,x]=m1.useState(!1),[M,E]=m1.useState(t===void 0?Sl:i===void 0?m:""),k=m1.useRef(null),[V,L]=m1.useState(null),[D,H]=m1.useState(null),q=w5(l),Z=m1.useCallback(async()=>{const Q=k.current.getScreenshot({width:480,heigth:720,aspectRatio:.6,facingMode:"user"});L(Q)},[k]);m1.useEffect(()=>{h&&q&&h.length!==0&&!h.some(Q=>Q===(q==null?void 0:q.data_connection.isocode))&&(E(El),b(I5)),g&&(q==null?void 0:q.data_connection.proxy)==S5&&(E(Al),b(E5)),h&&q&&H(q==null?void 0:q.data_connection.isocode)},[q,h]);const _=()=>{w({}),E(""),b(""),L(null),u(!1),x(!1)},{handleSubmit:ee}=$4();return{onSendSubmitSelfie:async()=>{var Q,Y;x(!0);try{const J=await i(),te={client_id:t,access_token:J};try{const $=await TC(c,V,l,te);$&&await e($.data),await Bo({data:{first_image:V,second_image:c,similarity:$.data.similarity,status_code:200},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:q});const{message:X}=$.data;X&&E(X),b(d||"Comparaci\xF3n de rostro procesado con \xE9xito")}catch($){let X="";const{status:ne}=$.response;await Bo({data:{first_image:V,second_image:c,similarity:(Q=J==null?void 0:J.data)!=null&&Q.similarity?J.data.similarity:null,status_code:ne},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:q}),(Y=$.response.data)!=null&&Y.message?X=$.response.data.message:ne===500&&(X={limit_of_request:$9}),x(null),b(X),E(ne),Cs($)}}catch(J){console.log(J),An.error("Error - Verificar host con el proveedor")}finally{x(!1)}},simpleHandleSubmit:ee,isLoading:F,docImage:v,status:M,message:C,clearState:_,webcamRef:k,url:V,setUrl:L,capturePhoto:Z,countryCode:D}};var RC="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw0NDQ0NDQ0ICA0IDQ0NDQ0NDQ8IDQ0NFREWFhURExMYHSggGBolGxMTITEhJSkrLi4uFx8zODMsNygtLisBCgoKDQ0NDg0PDy0ZFRk3KzctKysrKy03LTctKzcrKystKystKysrKysrKysrKysrKysrKysrKysrKysrKysrK//AABEIAPYAzQMBIgACEQEDEQH/xAAZAAEBAQEBAQAAAAAAAAAAAAAAAQMEAgf/xAAqEAEBAAECBQQCAgIDAAAAAAAAAQIDERIhQWFxBDFRgZGhYrEi8BMUQv/EABcBAQEBAQAAAAAAAAAAAAAAAAABAgP/xAAWEQEBAQAAAAAAAAAAAAAAAAAAARH/2gAMAwEAAhEDEQA/APqYDq5gAAAAAIAAioAAACAAgAACKgAABEWA1AAAAAABAAecspPeyAoxvqJ0lv6eL6i/GM/ZhrpHL/z5fx/C/wDYy/iuGugYT1HzPxWmOrjeu3nkmD2hQAAEAARUAIUgNgAAAAAQGHqNT/zOvuBq6/TH8ue37BpAAQQAAAe8NSzvPh045SzeON608+G/2liutDf9iKAAgAIsRQbAAAAIAJldpb8OG3e7/Lq9Tf8AHzXKsSgCoAgAAAAAAN/T5ctvhq5dG7ZTvydSVqCAgIqAKhAbgAAAgAOf1XT7YNvVe88Vi1EoAIIUAAAAAQAXG855jscUdiVYAiKAAECA3AAQoAioDn9V0+2Lf1PT7YNRKAggAAAACAAAs955dbkw955jrSrBARQEAWIQHQioAACAA49TLe2/7s8g0ygAAAAACFAAAHRpZbzxyc7f0/tfKVY0ARRFQAgQG4ACAAADj1MdsrHh16unxdrHLnjZyrURABAABKqAAAAAOnSm0882eGl1v4bJVgCIoAARCA6AQAAAEAYepntfpu86mO8s+QrjAaZAQAAAABcJvZPlGuhj1+hWwDKoAACAECA6EKCgAggAIqA59fDa79L/AGydmU3m3y5M8drtViIgKgAAACyb8vl04zabfDxo4bc771olagiogAAIUAIEBuAACAAgAADPWxll7c2jPWu2N/AOUBpkAAaaOMt59GbTQvPzBW4DKoAACAAAhAgOgABAAqDznnJ7366g9Fv058te9OX7rLK2++9XE105a2M7+GOrqcXaRmLhoAIAAEu3P4AG01p13n7e5lL7VzCYuuoc+OpZ38tMdWXsmK9gAIqAERYDoRUtAec85Pdlqa/TH8sLftcTWuetb7f4z9sgUEVBAAAAAAAABFQAEB6xzsa46svvy/pgGK6hz452d42xylZxVWIQVvnlJzrl1NS5dp8Jnlbd68rIzoAqAAIAAAAAAAAACAAIAAABL9ADbDU35X3/ALe45mmGp880salQBWQABAAAAAAAAAAQAAQAAAAAAAAGvBexwXsApwXsnBeygJwXscF7ABwXscPgAOG9k4b2UBOG9jhvYAOG9jhvYAOHwcN7ACcHg4PAAcN7HDewAcPg4fAJonD4OHwAHD4OHwoaP//Z";function DC({mode:e="light",dataFaceMatch:t,clientId:n,authorize:r,inProduction:i="prd",picBase64:l="",eventId:c=null,source:u="component",countryCodeAllowed:h=null,validateVpn:g=!1,successMessage:d}){const[m,v]=m1.useState(!1),{onSendSubmitSelfie:w,simpleHandleSubmit:C,isLoading:b,docImage:F,status:x,message:M,clearState:E,capturePhoto:k,webcamRef:V,url:L,countryCode:D}=tee(t,n,c,u,r,i,l,v,h,g,d),H=Z=>{console.log(Z,"userMedia")},q={with:1024,heigth:720,aspectRatio:1,facingMode:"user"};return U("div",{className:`kit-gbc ${e}`,style:{padding:"16px"},children:[o(M3,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),b||h!==null&&!D?o(ws,{}):null,o("form",{onSubmit:C(w),id:"face-match",children:U("div",{className:"sub",children:[s4(x)&&o(qc,{action:E}),U("div",{className:"header-component",children:[o("h4",{children:"Comparaci\xF3n de rostro"}),Hr(x)?o("p",{children:"Utilice la c\xE1mara de su dispositivo para capturar una selfie."}):o(l4,{status:x,message:M})]}),Hr(x)&&U("div",{className:"pics-container",children:[o("div",{className:"box-image",children:Hr(l)?U("div",{className:"upload-document without-image",style:{backgroundImage:`url(${RC})`},children:[o(Y$,{}),o("p",{children:"Imagen no detectada"})]}):o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${l})`}})}),o("div",{className:"icon",children:o(U$,{})}),o("div",{children:m?o("div",{className:"box-image",children:L?o(B0,{children:o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${L})`}})}):o(BC,{ref:V,audio:!1,screenshotFormat:"image/png",videoConstraints:q,forceScreenshotSourceSize:!0,onUserMedia:H,mirrored:!0})}):o("label",{className:"box-image",children:U("div",{className:"upload-document without-image",style:{backgroundImage:`url(${RC})`},children:[o(SC,{}),o("p",{children:Hr(F)?"Tomar selfie":F}),o("input",{hidden:!0,accept:"image/*",capture:"camera",id:"docImage",onClick:()=>v(!0)})]})})})]}),m&&!L&&V&&o(g2,{type:"button",onClick:k,children:"Capturar Selfie"}),o(B0,{children:L&&o(Ut,{width:"100%",mt:2,children:o(g2,{type:"submit",children:"Procesar"})})})]})})]})}DC.propTypes={mode:Y1.exports.PropTypes.string,loader:Y1.exports.PropTypes.bool,data:Y1.exports.PropTypes.func,clientId:Y1.exports.PropTypes.string.isRequired,authorize:Y1.exports.PropTypes.func.isRequired,dataFaceMatch:Y1.exports.PropTypes.func.isRequired,inProduction:Y1.exports.PropTypes.string,picBase64:Y1.exports.PropTypes.string.isRequired,countryCodeAllowed:Y1.exports.PropTypes.array,eventId:Y1.exports.PropTypes.string,source:Y1.exports.PropTypes.string,validateVpn:Y1.exports.PropTypes.bool,successMessage:Y1.exports.PropTypes.string};const nee=(e,t,n,r,i,l,c,u,h)=>{const[g,d]=m1.useState(!1),[m,v]=m1.useState(""),[w,C]=m1.useState(e===void 0?Sl:m===void 0?k3:""),[b,F]=m1.useState(""),[x,M]=m1.useState(null),E=w5(r),[k,V]=m1.useState({}),[L,D]=m1.useState(0),[H,q]=m1.useState(!1),[Z,_]=m1.useState({}),ee=J=>{var te,$;J.detail&&J.detail.action==="PROCESS_FINISHED"&&((($=(te=J.detail.data)==null?void 0:te.response)==null?void 0:$.code)==0?V(J.detail.data.response):H||(q(!0),_(J)))};m1.useEffect(()=>{var J,te,$,X;H&&Bo({data:{first_image:(te=(J=Z.detail.data)==null?void 0:J.response)!=null&&te.images?"data:image/jpeg;base64,"+Z.detail.data.response.images[0]:null,face_result_code:(X=($=Z.detail.data)==null?void 0:$.response)!=null&&X.code?Z.detail.data.response.code:250},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E}).then(ne=>{c({countAttempts:ne.count_try,error:!0}),q(!1),_({})})},[H]),m1.useEffect(()=>{i&&(E==null?void 0:E.data_connection.isocode)&&i.length!==0&&!i.some(J=>J===(E==null?void 0:E.data_connection.isocode))&&(C(El),F(I5)),u&&(E==null?void 0:E.data_connection.proxy)==S5&&(C(Al),F(E5)),i&&E&&M(E==null?void 0:E.data_connection.isocode)},[E,i]);const K=()=>{C(""),F(""),d(!1)};m1.useEffect(()=>{Hr(k)||Q()},[k]);const Q=async()=>{try{const J={client_id:e,access_token:m};try{l?await TC(l,`data:image/jpeg;base64,${k.images[0]}`,r,J).then(te=>{D(te.data.similarity),F(h||"Verificaci\xF3n de identidad completada"),Bo({data:{similarity:te.data.similarity,first_image:`data:image/jpeg;base64,${k.images[0]}`,second_image:l,status_code:200},component:"facematch",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E})}):Y()}catch(te){let $="";const{status:X}=te.response;Bo({data:{similarity:0,first_image:`data:image/jpeg;base64,${k.images[0]}`,second_image:l,status_code:X},component:"facematch",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E}),X===500&&($=$9),F($),C(X),Cs(te)}}catch{An.error("Error - Verificar host con el proveedor")}};m1.useEffect(()=>{L!==0&&Y()},[L]);const Y=async()=>{try{await Bo({data:{selfie:`data:image/jpeg;base64,${k.images[0]}`,similarity:l?L:null,face_result_code:0},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:E}).then(J=>c(J))}catch(J){return J}};return{status:w,isLoading:g,listener:ee,onSendSubmitLiveness:Q,clearState:K,message:b,countryCode:x,setToken:v,data:k,similarity:L}},a8=getComputedStyle(document.documentElement).getPropertyValue("--primary"),VC=getComputedStyle(document.documentElement).getPropertyValue("--primary-hov"),ree=getComputedStyle(document.documentElement).getPropertyValue("--font-size"),oee=getComputedStyle(document.documentElement).getPropertyValue("--font-family"),iee=()=>o("div",{className:"custom_spinner_container",children:o("div",{className:"box_spinner",children:o("div",{className:"spinner"})})});var lt={},wu={exports:{}};(function(e,t){(function(n,r){var i="1.0.40",l="",c="?",u="function",h="undefined",g="object",d="string",m="major",v="model",w="name",C="type",b="vendor",F="version",x="architecture",M="console",E="mobile",k="tablet",V="smarttv",L="wearable",D="embedded",H=500,q="Amazon",Z="Apple",_="ASUS",ee="BlackBerry",K="Browser",Q="Chrome",Y="Edge",J="Firefox",te="Google",$="Huawei",X="LG",ne="Microsoft",be="Motorola",me="Opera",Be="Samsung",ze="Sharp",se="Sony",pe="Xiaomi",ye="Zebra",Fe="Facebook",Ne="Chromium OS",Oe="Mac OS",_e=" Browser",l1=function(Te,Xe){var je={};for(var We in Te)Xe[We]&&Xe[We].length%2===0?je[We]=Xe[We].concat(Te[We]):je[We]=Te[We];return je},Ie=function(Te){for(var Xe={},je=0;je<Te.length;je++)Xe[Te[je].toUpperCase()]=Te[je];return Xe},Je=function(Te,Xe){return typeof Te===d?o1(Xe).indexOf(o1(Te))!==-1:!1},o1=function(Te){return Te.toLowerCase()},r1=function(Te){return typeof Te===d?Te.replace(/[^\d\.]/g,l).split(".")[0]:r},C1=function(Te,Xe){if(typeof Te===d)return Te=Te.replace(/^\s\s*/,l),typeof Xe===h?Te:Te.substring(0,H)},s1=function(Te,Xe){for(var je=0,We,Ke,L1,S1,De,w1;je<Xe.length&&!De;){var a1=Xe[je],E1=Xe[je+1];for(We=Ke=0;We<a1.length&&!De&&a1[We];)if(De=a1[We++].exec(Te),De)for(L1=0;L1<E1.length;L1++)w1=De[++Ke],S1=E1[L1],typeof S1===g&&S1.length>0?S1.length===2?typeof S1[1]==u?this[S1[0]]=S1[1].call(this,w1):this[S1[0]]=S1[1]:S1.length===3?typeof S1[1]===u&&!(S1[1].exec&&S1[1].test)?this[S1[0]]=w1?S1[1].call(this,w1,S1[2]):r:this[S1[0]]=w1?w1.replace(S1[1],S1[2]):r:S1.length===4&&(this[S1[0]]=w1?S1[3].call(this,w1.replace(S1[1],S1[2])):r):this[S1]=w1||r;je+=2}},B1=function(Te,Xe){for(var je in Xe)if(typeof Xe[je]===g&&Xe[je].length>0){for(var We=0;We<Xe[je].length;We++)if(Je(Xe[je][We],Te))return je===c?r:je}else if(Je(Xe[je],Te))return je===c?r:je;return Xe.hasOwnProperty("*")?Xe["*"]:Te},he={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},we={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Se={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[F,[w,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[F,[w,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[w,F],[/opios[\/ ]+([\w\.]+)/i],[F,[w,me+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[F,[w,me+" GX"]],[/\bopr\/([\w\.]+)/i],[F,[w,me]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[F,[w,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[F,[w,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[w,F],[/quark(?:pc)?\/([-\w\.]+)/i],[F,[w,"Quark"]],[/\bddg\/([\w\.]+)/i],[F,[w,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[F,[w,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[F,[w,"WeChat"]],[/konqueror\/([\w\.]+)/i],[F,[w,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[F,[w,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[F,[w,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[F,[w,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure "+K],F],[/\bfocus\/([\w\.]+)/i],[F,[w,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[F,[w,me+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[F,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[F,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[F,[w,me+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[F,[w,"MIUI"+_e]],[/fxios\/([\w\.-]+)/i],[F,[w,J]],[/\bqihoobrowser\/?([\w\.]*)/i],[F,[w,"360"]],[/\b(qq)\/([\w\.]+)/i],[[w,/(.+)/,"$1Browser"],F],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1"+_e],F],[/samsungbrowser\/([\w\.]+)/i],[F,[w,Be+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[F,[w,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[w,"Sogou Mobile"],F],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[w,F],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[w],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[F,w],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[w,Fe],F],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[w,F],[/\bgsa\/([\w\.]+) .*safari\//i],[F,[w,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[F,[w,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[F,[w,Q+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[w,Q+" WebView"],F],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[F,[w,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[w,F],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[F,[w,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[F,w],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[w,[F,B1,he]],[/(webkit|khtml)\/([\w\.]+)/i],[w,F],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[w,"Netscape"],F],[/(wolvic|librewolf)\/([\w\.]+)/i],[w,F],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[F,[w,J+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[w,[F,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[w,[F,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[x,"amd64"]],[/(ia32(?=;))/i],[[x,o1]],[/((?:i[346]|x)86)[;\)]/i],[[x,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[x,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[x,"armhf"]],[/windows (ce|mobile); ppc;/i],[[x,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[x,/ower/,l,o1]],[/(sun4\w)[;\)]/i],[[x,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[x,o1]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[b,Be],[C,k]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[b,Be],[C,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[b,Z],[C,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[b,Z],[C,k]],[/(macintosh);/i],[v,[b,Z]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[b,ze],[C,E]],[/(?:honor)([-\w ]+)[;\)]/i],[v,[b,"Honor"],[C,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[b,$],[C,k]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[b,$],[C,E]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[v,/_/g," "],[b,pe],[C,E]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[b,pe],[C,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[b,"OPPO"],[C,E]],[/\b(opd2\d{3}a?) bui/i],[v,[b,"OPPO"],[C,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[b,"Vivo"],[C,E]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[b,"Realme"],[C,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[b,be],[C,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[b,be],[C,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[b,X],[C,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[b,X],[C,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[b,"Lenovo"],[C,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[b,"Nokia"],[C,E]],[/(pixel c)\b/i],[v,[b,te],[C,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[b,te],[C,E]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[b,se],[C,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[b,se],[C,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[b,"OnePlus"],[C,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[b,q],[C,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[b,q],[C,E]],[/(playbook);[-\w\),; ]+(rim)/i],[v,b,[C,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[b,ee],[C,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[b,_],[C,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[b,_],[C,E]],[/(nexus 9)/i],[v,[b,"HTC"],[C,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[v,/_/g," "],[C,E]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[v,[b,"TCL"],[C,k]],[/(itel) ((\w+))/i],[[b,o1],v,[C,B1,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[b,"Acer"],[C,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[b,"Meizu"],[C,E]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[b,"Ulefone"],[C,E]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[v,[b,"Energizer"],[C,E]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[v,[b,"Cat"],[C,E]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[v,[b,"Smartfren"],[C,E]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[b,"Nothing"],[C,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,v,[C,E]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,v,[C,k]],[/(surface duo)/i],[v,[b,ne],[C,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[b,"Fairphone"],[C,E]],[/(u304aa)/i],[v,[b,"AT&T"],[C,E]],[/\bsie-(\w*)/i],[v,[b,"Siemens"],[C,E]],[/\b(rct\w+) b/i],[v,[b,"RCA"],[C,k]],[/\b(venue[\d ]{2,7}) b/i],[v,[b,"Dell"],[C,k]],[/\b(q(?:mv|ta)\w+) b/i],[v,[b,"Verizon"],[C,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[b,"Barnes & Noble"],[C,k]],[/\b(tm\d{3}\w+) b/i],[v,[b,"NuVision"],[C,k]],[/\b(k88) b/i],[v,[b,"ZTE"],[C,k]],[/\b(nx\d{3}j) b/i],[v,[b,"ZTE"],[C,E]],[/\b(gen\d{3}) b.+49h/i],[v,[b,"Swiss"],[C,E]],[/\b(zur\d{3}) b/i],[v,[b,"Swiss"],[C,k]],[/\b((zeki)?tb.*\b) b/i],[v,[b,"Zeki"],[C,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],v,[C,k]],[/\b(ns-?\w{0,9}) b/i],[v,[b,"Insignia"],[C,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[b,"NextBook"],[C,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],v,[C,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],v,[C,E]],[/\b(ph-1) /i],[v,[b,"Essential"],[C,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[b,"Envizen"],[C,k]],[/\b(trio[-\w\. ]+) b/i],[v,[b,"MachSpeed"],[C,k]],[/\btu_(1491) b/i],[v,[b,"Rotor"],[C,k]],[/(shield[\w ]+) b/i],[v,[b,"Nvidia"],[C,k]],[/(sprint) (\w+)/i],[b,v,[C,E]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[b,ne],[C,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[b,ye],[C,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[b,ye],[C,E]],[/smart-tv.+(samsung)/i],[b,[C,V]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[b,Be],[C,V]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,X],[C,V]],[/(apple) ?tv/i],[b,[v,Z+" TV"],[C,V]],[/crkey/i],[[v,Q+"cast"],[b,te],[C,V]],[/droid.+aft(\w+)( bui|\))/i],[v,[b,q],[C,V]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[b,ze],[C,V]],[/(bravia[\w ]+)( bui|\))/i],[v,[b,se],[C,V]],[/(mitv-\w{5}) bui/i],[v,[b,pe],[C,V]],[/Hbbtv.*(technisat) (.*);/i],[b,v,[C,V]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,C1],[v,C1],[C,V]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[C,V]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,v,[C,M]],[/droid.+; (shield) bui/i],[v,[b,"Nvidia"],[C,M]],[/(playstation [345portablevi]+)/i],[v,[b,se],[C,M]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[b,ne],[C,M]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[b,Be],[C,L]],[/((pebble))app/i],[b,v,[C,L]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[b,Z],[C,L]],[/droid.+; (glass) \d/i],[v,[b,te],[C,L]],[/droid.+; (wt63?0{2,3})\)/i],[v,[b,ye],[C,L]],[/droid.+; (glass) \d/i],[v,[b,te],[C,L]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,v,[C,L]],[/; (quest( \d| pro)?)/i],[v,[b,Fe],[C,L]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[C,D]],[/(aeobc)\b/i],[v,[b,q],[C,D]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[C,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[C,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[C,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[C,E]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[F,[w,Y+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[w,F],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[F,[w,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[w,F],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[F,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,F],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[w,[F,B1,we]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[F,B1,we],[w,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[F,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[w,Oe],[F,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[F,w],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[w,F],[/\(bb(10);/i],[F,[w,ee]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[F,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[F,[w,J+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[F,[w,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[F,[w,"watchOS"]],[/crkey\/([\d\.]+)/i],[F,[w,Q+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[w,Ne],F],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[w,F],[/(sunos) ?([\w\.\d]*)/i],[[w,"Solaris"],F],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[w,F]]},xe=function(Te,Xe){if(typeof Te===g&&(Xe=Te,Te=r),!(this instanceof xe))return new xe(Te,Xe).getResult();var je=typeof n!==h&&n.navigator?n.navigator:r,We=Te||(je&&je.userAgent?je.userAgent:l),Ke=je&&je.userAgentData?je.userAgentData:r,L1=Xe?l1(Se,Xe):Se,S1=je&&je.userAgent==We;return this.getBrowser=function(){var De={};return De[w]=r,De[F]=r,s1.call(De,We,L1.browser),De[m]=r1(De[F]),S1&&je&&je.brave&&typeof je.brave.isBrave==u&&(De[w]="Brave"),De},this.getCPU=function(){var De={};return De[x]=r,s1.call(De,We,L1.cpu),De},this.getDevice=function(){var De={};return De[b]=r,De[v]=r,De[C]=r,s1.call(De,We,L1.device),S1&&!De[C]&&Ke&&Ke.mobile&&(De[C]=E),S1&&De[v]=="Macintosh"&&je&&typeof je.standalone!==h&&je.maxTouchPoints&&je.maxTouchPoints>2&&(De[v]="iPad",De[C]=k),De},this.getEngine=function(){var De={};return De[w]=r,De[F]=r,s1.call(De,We,L1.engine),De},this.getOS=function(){var De={};return De[w]=r,De[F]=r,s1.call(De,We,L1.os),S1&&!De[w]&&Ke&&Ke.platform&&Ke.platform!="Unknown"&&(De[w]=Ke.platform.replace(/chrome os/i,Ne).replace(/macos/i,Oe)),De},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return We},this.setUA=function(De){return We=typeof De===d&&De.length>H?C1(De,H):De,this},this.setUA(We),this};xe.VERSION=i,xe.BROWSER=Ie([w,F,m]),xe.CPU=Ie([x]),xe.DEVICE=Ie([v,b,C,M,E,V,k,L,D]),xe.ENGINE=xe.OS=Ie([w,F]),e.exports&&(t=e.exports=xe),t.UAParser=xe;var Pe=typeof n!==h&&(n.jQuery||n.Zepto);if(Pe&&!Pe.ua){var Me=new xe;Pe.ua=Me.getResult(),Pe.ua.get=function(){return Me.getUA()},Pe.ua.set=function(Te){Me.setUA(Te);var Xe=Me.getResult();for(var je in Xe)Pe.ua[je]=Xe[je]}}})(typeof window=="object"?window:vl)})(wu,wu.exports),Object.defineProperty(lt,"__esModule",{value:!0});function aee(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var n2=Z1.default,On=aee(n2),HC=wu.exports,Bl=new HC,r2=Bl.getBrowser(),lee=Bl.getCPU(),fo=Bl.getDevice(),Iu=Bl.getEngine(),Ll=Bl.getOS(),c4=Bl.getUA(),NC=function(t){return Bl.setUA(t)},u4=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new HC(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},QC=Object.freeze({ClientUAInstance:Bl,browser:r2,cpu:lee,device:fo,engine:Iu,os:Ll,ua:c4,setUa:NC,parseUserAgent:u4});function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function see(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WC(Object(n),!0).forEach(function(r){dee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d4=function(t){return typeof t}:d4=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d4(e)}function cee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uee(e,t,n){return t&&jC(e.prototype,t),n&&jC(e,n),e}function dee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(){return Eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eu.apply(this,arguments)}function hee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Au(e,t)}function Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Su(e)}function Au(e,t){return Au=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Au(e,t)}function fee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jo(e,t){if(e==null)return{};var n=fee(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Jc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pee(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jc(e)}function gee(e,t){return mee(e)||vee(e,t)||Cee(e,t)||bee()}function mee(e){if(Array.isArray(e))return e}function vee(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,l=!1,c,u;try{for(n=n.call(e);!(i=(c=n.next()).done)&&(r.push(c.value),!(t&&r.length===t));i=!0);}catch(h){l=!0,u=h}finally{try{!i&&n.return!=null&&n.return()}finally{if(l)throw u}}return r}}function Cee(e,t){if(!!e){if(typeof e=="string")return GC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GC(e,t)}}function GC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1405
1405
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o2={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},V2={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},l8={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},yee={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},wee=function(t){switch(t){case o2.Mobile:return{isMobile:!0};case o2.Tablet:return{isTablet:!0};case o2.SmartTv:return{isSmartTV:!0};case o2.Console:return{isConsole:!0};case o2.Wearable:return{isWearable:!0};case o2.Browser:return{isBrowser:!0};case o2.Embedded:return{isEmbedded:!0};default:return yee}},Iee=function(t){return NC(t)},zt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},xu=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Fu=function(t){var n=xu();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},Eee=function(t,n,r,i,l){return{isBrowser:t,browserMajorVersion:zt(n.major),browserFullVersion:zt(n.version),browserName:zt(n.name),engineName:zt(r.name),engineVersion:zt(r.version),osName:zt(i.name),osVersion:zt(i.version),userAgent:zt(l)}},UC=function(t,n,r,i){return see({},t,{vendor:zt(n.vendor),model:zt(n.model),os:zt(r.name),osVersion:zt(r.version),ua:zt(i)})},See=function(t,n,r,i){return{isSmartTV:t,engineName:zt(n.name),engineVersion:zt(n.version),osName:zt(r.name),osVersion:zt(r.version),userAgent:zt(i)}},Aee=function(t,n,r,i){return{isConsole:t,engineName:zt(n.name),engineVersion:zt(n.version),osName:zt(r.name),osVersion:zt(r.version),userAgent:zt(i)}},xee=function(t,n,r,i){return{isWearable:t,engineName:zt(n.name),engineVersion:zt(n.version),osName:zt(r.name),osVersion:zt(r.version),userAgent:zt(i)}},Fee=function(t,n,r,i,l){return{isEmbedded:t,vendor:zt(n.vendor),model:zt(n.model),engineName:zt(r.name),engineVersion:zt(r.version),osName:zt(i.name),osVersion:zt(i.version),userAgent:zt(l)}};function Mee(e){var t=e?u4(e):QC,n=t.device,r=t.browser,i=t.engine,l=t.os,c=t.ua,u=wee(n.type),h=u.isBrowser,g=u.isMobile,d=u.isTablet,m=u.isSmartTV,v=u.isConsole,w=u.isWearable,C=u.isEmbedded;if(h)return Eee(h,r,i,l,c);if(m)return See(m,i,l,c);if(v)return Aee(v,i,l,c);if(g||d)return UC(u,n,l,c);if(w)return xee(w,i,l,c);if(C)return Fee(C,n,i,l,c)}var KC=function(t){var n=t.type;return n===o2.Mobile},YC=function(t){var n=t.type;return n===o2.Tablet},qC=function(t){var n=t.type;return n===o2.Mobile||n===o2.Tablet},JC=function(t){var n=t.type;return n===o2.SmartTv},Zc=function(t){var n=t.type;return n===o2.Browser},ZC=function(t){var n=t.type;return n===o2.Wearable},XC=function(t){var n=t.type;return n===o2.Console},_C=function(t){var n=t.type;return n===o2.Embedded},$C=function(t){var n=t.vendor;return zt(n)},eb=function(t){var n=t.model;return zt(n)},tb=function(t){var n=t.type;return zt(n,"browser")},nb=function(t){var n=t.name;return n===l8.Android},rb=function(t){var n=t.name;return n===l8.Windows},ob=function(t){var n=t.name;return n===l8.MAC_OS},ib=function(t){var n=t.name;return n===l8.WindowsPhone},ab=function(t){var n=t.name;return n===l8.IOS},lb=function(t){var n=t.version;return zt(n)},sb=function(t){var n=t.name;return zt(n)},cb=function(t){var n=t.name;return n===V2.Chrome},ub=function(t){var n=t.name;return n===V2.Firefox},db=function(t){var n=t.name;return n===V2.Chromium},Xc=function(t){var n=t.name;return n===V2.Edge},hb=function(t){var n=t.name;return n===V2.Yandex},fb=function(t){var n=t.name;return n===V2.Safari||n===V2.MobileSafari},pb=function(t){var n=t.name;return n===V2.MobileSafari},gb=function(t){var n=t.name;return n===V2.Opera},mb=function(t){var n=t.name;return n===V2.InternetExplorer||n===V2.Ie},vb=function(t){var n=t.name;return n===V2.MIUI},Cb=function(t){var n=t.name;return n===V2.SamsungBrowser},bb=function(t){var n=t.version;return zt(n)},yb=function(t){var n=t.major;return zt(n)},wb=function(t){var n=t.name;return zt(n)},Ib=function(t){var n=t.name;return zt(n)},Eb=function(t){var n=t.version;return zt(n)},Sb=function(){var t=xu(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},s8=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},Ab=function(){var t=xu();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},_i=function(){return Fu("iPad")},xb=function(){return Fu("iPhone")},Fb=function(){return Fu("iPod")},Mb=function(t){return zt(t)};function zb(e){var t=e||QC,n=t.device,r=t.browser,i=t.os,l=t.engine,c=t.ua;return{isSmartTV:JC(n),isConsole:XC(n),isWearable:ZC(n),isEmbedded:_C(n),isMobileSafari:pb(r)||_i(),isChromium:db(r),isMobile:qC(n)||_i(),isMobileOnly:KC(n),isTablet:YC(n)||_i(),isBrowser:Zc(n),isDesktop:Zc(n),isAndroid:nb(i),isWinPhone:ib(i),isIOS:ab(i)||_i(),isChrome:cb(r),isFirefox:ub(r),isSafari:fb(r),isOpera:gb(r),isIE:mb(r),osVersion:lb(i),osName:sb(i),fullBrowserVersion:bb(r),browserVersion:yb(r),browserName:wb(r),mobileVendor:$C(n),mobileModel:eb(n),engineName:Ib(l),engineVersion:Eb(l),getUA:Mb(c),isEdge:Xc(r)||s8(c),isYandex:hb(r),deviceType:tb(n),isIOS13:Ab(),isIPad13:_i(),isIPhone13:xb(),isIPod13:Fb(),isElectron:Sb(),isEdgeChromium:s8(c),isLegacyEdge:Xc(r)&&!s8(c),isWindows:rb(i),isMacOs:ob(i),isMIUI:vb(r),isSamsungBrowser:Cb(r)}}var kb=JC(fo),Pb=XC(fo),Ob=ZC(fo),zee=_C(fo),kee=pb(r2)||_i(),Pee=db(r2),_c=qC(fo)||_i(),Bb=KC(fo),Lb=YC(fo)||_i(),Tb=Zc(fo),Oee=Zc(fo),Rb=nb(Ll),Db=ib(Ll),Vb=ab(Ll)||_i(),Bee=cb(r2),Lee=ub(r2),Tee=fb(r2),Ree=gb(r2),Hb=mb(r2),Dee=lb(Ll),Vee=sb(Ll),Hee=bb(r2),Nee=yb(r2),Qee=wb(r2),Wee=$C(fo),jee=eb(fo),Gee=Ib(Iu),Uee=Eb(Iu),Kee=Mb(c4),Yee=Xc(r2)||s8(c4),qee=hb(r2),Jee=tb(fo),Zee=Ab(),Xee=_i(),_ee=xb(),$ee=Fb(),e1e=Sb(),t1e=s8(c4),n1e=Xc(r2)&&!s8(c4),r1e=rb(Ll),o1e=ob(Ll),i1e=vb(r2),a1e=Cb(r2),l1e=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=u4(t),r=n.device,i=n.browser,l=n.os,c=n.engine,u=n.ua;return zb({device:r,browser:i,os:l,engine:c,ua:u})},s1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Rb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},c1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Tb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},u1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Hb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},d1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Vb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},h1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return _c?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},f1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Lb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},p1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Db?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},g1e=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=jo(t,["renderWithFragment","children","viewClassName","style"]);return Bb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},m1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return kb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},v1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Pb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},C1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Ob?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},b1e=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=t.condition,l=jo(t,["renderWithFragment","children","viewClassName","style","condition"]);return i?n?On.createElement(n2.Fragment,null,r):On.createElement("div",l,r):null};function y1e(e){return function(t){hee(n,t);function n(r){var i;return cee(this,n),i=pee(this,Su(n).call(this,r)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(Jc(i)),i.onOrientationChange=i.onOrientationChange.bind(Jc(i)),i.onPageLoad=i.onPageLoad.bind(Jc(i)),i.state={isLandscape:!1,isPortrait:!1},i}return uee(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var i=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:i===0,isLandscape:i===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":d4(window))!==void 0&&_c&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return On.createElement(e,Eu({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(On.Component)}function w1e(){var e=n2.useState(function(){var l=window.innerWidth>window.innerHeight?90:0;return{isPortrait:l===0,isLandscape:l===90,orientation:l===0?"portrait":"landscape"}}),t=gee(e,2),n=t[0],r=t[1],i=n2.useCallback(function(){var l=window.innerWidth>window.innerHeight?90:0,c={isPortrait:l===0,isLandscape:l===90,orientation:l===0?"portrait":"landscape"};n.orientation!==c.orientation&&r(c)},[n.orientation]);return n2.useEffect(function(){return(typeof window=="undefined"?"undefined":d4(window))!==void 0&&_c&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n}function Nb(e){var t=e||window.navigator.userAgent;return u4(t)}function I1e(e){var t=e||window.navigator.userAgent,n=Nb(t),r=zb(n);return[r,n]}lt.AndroidView=s1e,lt.BrowserTypes=V2,lt.BrowserView=c1e,lt.ConsoleView=v1e,lt.CustomView=b1e,lt.IEView=u1e,lt.IOSView=d1e,lt.MobileOnlyView=g1e,lt.MobileView=h1e,lt.OsTypes=l8,lt.SmartTVView=m1e,lt.TabletView=f1e,lt.WearableView=C1e,lt.WinPhoneView=p1e,lt.browserName=Qee,lt.browserVersion=Nee,lt.deviceDetect=Mee,lt.deviceType=Jee,lt.engineName=Gee,lt.engineVersion=Uee,lt.fullBrowserVersion=Hee,lt.getSelectorsByUserAgent=l1e,lt.getUA=Kee,lt.isAndroid=Rb,lt.isBrowser=Tb,lt.isChrome=Bee,lt.isChromium=Pee,lt.isConsole=Pb,lt.isDesktop=Oee,lt.isEdge=Yee,lt.isEdgeChromium=t1e,lt.isElectron=e1e,lt.isEmbedded=zee,lt.isFirefox=Lee,lt.isIE=Hb,lt.isIOS=Vb,lt.isIOS13=Zee,lt.isIPad13=Xee,lt.isIPhone13=_ee,lt.isIPod13=$ee,lt.isLegacyEdge=n1e,lt.isMIUI=i1e,lt.isMacOs=o1e;var E1e=lt.isMobile=_c;lt.isMobileOnly=Bb,lt.isMobileSafari=kee,lt.isOpera=Ree,lt.isSafari=Tee,lt.isSamsungBrowser=a1e,lt.isSmartTV=kb,lt.isTablet=Lb,lt.isWearable=Ob,lt.isWinPhone=Db,lt.isWindows=r1e,lt.isYandex=qee,lt.mobileModel=jee,lt.mobileVendor=Wee,lt.osName=Vee,lt.osVersion=Dee,lt.parseUserAgent=u4,lt.setUserAgent=Iee,lt.useDeviceData=Nb,lt.useDeviceSelectors=I1e,lt.useMobileOrientation=w1e,lt.withOrientationChange=y1e;function Qb({mode:e="light",clientId:t,eventId:n=null,source:r="component",authorize:i,inProduction:l="prd",countryCodeAllowed:c=null,faceMatch:u=null,dataLiveness:h,validateVpn:g=!1,successMessage:d}){const{status:m,isLoading:v,listener:w,clearState:C,message:b,countryCode:F,setToken:x,data:M,similarity:E}=nee(t,n,r,l,c,u,h,g,d);return m1.useEffect(()=>{const k=document.getElementsByTagName("face-liveness")[0];k&&(k.settings={locale:"es",videoRecording:!0,closeDisabled:!0,workerPath:"https://regula-sandbox.globalbridgeconnections.com.py/face-sdk",customization:{fontFamily:oee,fontSize:ree,onboardingScreenStartButtonBackground:a8,onboardingScreenStartButtonBackgroundHover:VC,retryScreenRetryButtonBackground:a8,retryScreenRetryButtonBackgroundHover:a8,cameraScreenSectorActive:a8,cameraScreenStrokeNormal:a8,processingScreenProgress:a8,cameraScreenSectorTarget:VC}},k.addEventListener("face-liveness",w),i().then(V=>x(V)))},[]),o("div",{className:`kit-gbc liveness-container ${e} ${m==="NOT_VERIFY"&&"error"}`,children:U("div",{id:"liveness-check",children:[o(M3,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),v||c!==null&&!F?o(ws,{}):null,Hr(m)?Hr(M)&&u||u===null?o("face-liveness",{class:"liveness"}):o(Ut,{className:`box-liveness ${E1e&&"responsive"}`,children:E===0?U(Ut,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[o(iee,{}),o(T2,{variant:"caption",style:{fontSize:"0.875em",paddingTop:"0.875em",color:"#000000"},children:"Comparando rostro..."})]}):o(Xp,{message:b})}):U("div",{className:"sub",children:[s4(m)&&o(qc,{action:C}),o("h4",{children:"Verificaci\xF3n liveness"}),o(l4,{status:m,message:b})]})]})})}Qb.propTypes={mode:Y1.exports.PropTypes.string,clientId:Y1.exports.PropTypes.string.isRequired,authorize:Y1.exports.PropTypes.func.isRequired,inProduction:Y1.exports.PropTypes.string,countryCodeAllowed:Y1.exports.PropTypes.array,eventId:Y1.exports.PropTypes.string,source:Y1.exports.PropTypes.string,faceMatch:Y1.exports.PropTypes.string,dataLiveness:Y1.exports.PropTypes.func.isRequired,validateVpn:Y1.exports.PropTypes.bool,successMessage:Y1.exports.PropTypes.string};const S1e=()=>U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 486.3 486.3",children:[o("path",{d:"M395.5,135.8c-5.2-30.9-20.5-59.1-43.9-80.5c-26-23.8-59.8-36.9-95-36.9c-27.2,0-53.7,7.8-76.4,22.5\r c-18.9,12.2-34.6,28.7-45.7,48.1c-4.8-0.9-9.8-1.4-14.8-1.4c-42.5,0-77.1,34.6-77.1,77.1c0,5.5,0.6,10.8,1.6,16\r C16.7,200.7,0,232.9,0,267.2c0,27.7,10.3,54.6,29.1,75.9c19.3,21.8,44.8,34.7,72,36.2c0.3,0,0.5,0,0.8,0h86\r c7.5,0,13.5-6,13.5-13.5s-6-13.5-13.5-13.5h-85.6C61.4,349.8,27,310.9,27,267.1c0-28.3,15.2-54.7,39.7-69\r c5.7-3.3,8.1-10.2,5.9-16.4c-2-5.4-3-11.1-3-17.2c0-27.6,22.5-50.1,50.1-50.1c5.9,0,11.7,1,17.1,3c6.6,2.4,13.9-0.6,16.9-6.9\r c18.7-39.7,59.1-65.3,103-65.3c59,0,107.7,44.2,113.3,102.8c0.6,6.1,5.2,11,11.2,12c44.5,7.6,78.1,48.7,78.1,95.6\r c0,49.7-39.1,92.9-87.3,96.6h-73.7c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5h74.2c0.3,0,0.6,0,1,0c30.5-2.2,59-16.2,80.2-39.6\r c21.1-23.2,32.6-53,32.6-84C486.2,199.5,447.9,149.6,395.5,135.8z"}),o("path",{d:"M324.2,280c5.3-5.3,5.3-13.8,0-19.1l-71.5-71.5c-2.5-2.5-6-4-9.5-4s-7,1.4-9.5,4l-71.5,71.5c-5.3,5.3-5.3,13.8,0,19.1\r c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4l48.5-48.5v222.9c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5V231.5l48.5,48.5\r C310.4,285.3,318.9,285.3,324.2,280z"})]});function Wb({message:e,id:t,subtitle:n,className:r}){return o("div",{className:`wrap-upload-animation ${r}`,children:U("div",{className:"first-animation",children:[o(S1e,{}),o("p",{className:"title",children:e}),o("p",{className:"subtitle",children:n})]})},t)}Wb.propTypes={message:Y1.exports.PropTypes.string,id:Y1.exports.PropTypes.string,subtitle:Y1.exports.PropTypes.string,className:Y1.exports.PropTypes.string};var jb={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.CSV=n()})(vl,function(){var t=["|","^"],n=[",",";"," ","|","^"],r=[`\r
|
|
1406
1406
|
`,"\r",`
|
|
1407
1407
|
`];function i(E){var k=typeof E;return k==="function"||k==="object"&&!!E}var l=Array.isArray||function(E){return toString.call(E)==="[object Array]"};function c(E){return typeof E=="string"}function u(E){return!isNaN(Number(E))}function h(E){return E==!1||E==!0}function g(E){return E==null}function d(E){return E!=null}function m(E,k){return d(E)?E:k}function v(E,k){for(var V=0,L=E.length;V<L&&k(E[V],V)!==!1;V+=1);}function w(E){return E.replace(/"/g,'\\"')}function C(E){return"attrs["+E+"]"}function b(E,k){return u(E)?"Number("+C(k)+")":h(E)?"Boolean("+C(k)+" == true)":"String("+C(k)+")"}function F(E,k,V,L){var D=[];return arguments.length==3?(k?l(k)?v(V,function(H,q){c(k[q])?k[q]=k[q].toLowerCase():E[k[q]]=k[q],D.push("deserialize[cast["+q+"]]("+C(q)+")")}):v(V,function(H,q){D.push(b(H,q))}):v(V,function(H,q){D.push(C(q))}),D="return ["+D.join(",")+"]"):(k?l(k)?v(V,function(H,q){c(k[q])?k[q]=k[q].toLowerCase():E[k[q]]=k[q],D.push('"'+w(L[q])+'": deserialize[cast['+q+"]]("+C(q)+")")}):v(V,function(H,q){D.push('"'+w(L[q])+'": '+b(H,q))}):v(V,function(H,q){D.push('"'+w(L[q])+'": '+C(q))}),D="return {"+D.join(",")+"}"),new Function("attrs","deserialize","cast",D)}function x(E,k){var V=0,L;return v(k,function(D){var H=D,q;t.indexOf(D)!=-1&&(H="\\"+H),q=E.match(new RegExp(H,"g")),q&&q.length>V&&(V=q.length,L=D)}),L||k[0]}var M=function(){function E(D,H){if(H||(H={}),l(D))this.mode="encode";else if(c(D))this.mode="parse";else throw new Error("Incompatible format!");this.data=D,this.options={header:m(H.header,!1),cast:m(H.cast,!0)};var q=H.lineDelimiter||H.line,Z=H.cellDelimiter||H.delimiter;this.isParser()?(this.options.lineDelimiter=q||x(this.data,r),this.options.cellDelimiter=Z||x(this.data,n),this.data=V(this.data,this.options.lineDelimiter)):this.isEncoder()&&(this.options.lineDelimiter=q||`\r
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gbc-kyc-kit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "Componentes para el desarrollo de un Onboarding",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Global Bridge Connections",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"comma-separated-values": "^3.6.4",
|
|
70
70
|
"eslint": "^8.18.0",
|
|
71
71
|
"eslint-plugin-react": "^7.30.1",
|
|
72
|
-
"gbc-kyc-kit": "^3.0.
|
|
72
|
+
"gbc-kyc-kit": "^3.0.6",
|
|
73
73
|
"image-compressor.js": "^1.1.4",
|
|
74
74
|
"image-js": "^0.37.0",
|
|
75
75
|
"is-empty": "^1.2.0",
|