gbc-kyc-kit 2.3.8 → 2.3.10

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.
@@ -18075,6 +18075,7 @@ function ErrorHandler(error) {
18075
18075
  } else if (status === "429") {
18076
18076
  console.log(error.response.data);
18077
18077
  }
18078
+ console.log(code, "code", message, "message");
18078
18079
  Q.error(message, {
18079
18080
  position: "top-center",
18080
18081
  autoClose: 5e3,
@@ -39307,13 +39308,11 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
39307
39308
  clientId,
39308
39309
  geolocation
39309
39310
  });
39310
- if (data2.count_try >= 4)
39311
- setUploadDocumentByPhone(true);
39312
39311
  await dataDocument({
39313
39312
  ...error,
39314
39313
  countAttempts: data2.count_try
39315
39314
  });
39316
- if (error.response.data.code.include("020"))
39315
+ if (error.response.data.code === "020")
39317
39316
  setUploadDocumentByPhone(true);
39318
39317
  if ((_a = error.response.data) == null ? void 0 : _a.message) {
39319
39318
  message2 = error.response.data.message;
@@ -39532,18 +39531,15 @@ function UploadByGallery({
39532
39531
  side,
39533
39532
  title,
39534
39533
  subtitle,
39535
- startUpload
39534
+ startUpload,
39535
+ setActivateCamera
39536
39536
  }) {
39537
- const handleClick = () => {
39538
- var _a;
39539
- (_a = fileInputRef.current) == null ? void 0 : _a.click();
39540
- };
39541
39537
  return /* @__PURE__ */ jsx$1("div", {
39542
39538
  className: "drag-zone",
39543
39539
  children: /* @__PURE__ */ jsx$1(Box$1, {
39544
39540
  className: "drag-and-drop-container",
39545
39541
  children: /* @__PURE__ */ jsx$1(Box$1, {
39546
- onClick: () => handleClick(),
39542
+ onClick: () => setActivateCamera(true),
39547
39543
  position: "relative",
39548
39544
  zIndex: 1,
39549
39545
  width: "100%",
@@ -39832,7 +39828,8 @@ function SideDocsSelector({
39832
39828
  fileInputRef,
39833
39829
  title: "Cargar documeto",
39834
39830
  subtitle: "Vamos a cargar el documento desde tu dispositivo. \xA1Ten en cuenta lo siguiente!",
39835
- startUpload: activateCamera
39831
+ startUpload: activateCamera,
39832
+ setActivateCamera
39836
39833
  }) : /* @__PURE__ */ jsx$1(UploadDocument2, {
39837
39834
  videoRef,
39838
39835
  streamRef,
@@ -39933,7 +39930,8 @@ function SideDocsSelector({
39933
39930
  fileInputRef,
39934
39931
  title: "Bien ahora vamos por el reverso",
39935
39932
  subtitle: "\xA1Recuerda tener en cuenta lo siguiente!",
39936
- startUpload: activateCamera
39933
+ startUpload: activateCamera,
39934
+ setActivateCamera
39937
39935
  }) : /* @__PURE__ */ jsx$1(UploadDocument2, {
39938
39936
  videoRef,
39939
39937
  streamRef,
@@ -40430,7 +40428,7 @@ function DocumentReader({
40430
40428
  countryCodeAllowed = null,
40431
40429
  validateVpn = false,
40432
40430
  successMessage,
40433
- dualModeRequired = true
40431
+ dualModeRequired = false
40434
40432
  }) {
40435
40433
  const {
40436
40434
  onSendSubmitDocument,
@@ -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=t9.trim(u.substr(0,l)).toLowerCase(),i=t9.trim(u.substr(l+1)),r){if(n[r]&&ME.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n},_d=Dr,kE=_d.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=_d.isString(c)?i(c):c;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),n9=I0,PE=Dr;function $d(e){n9.call(this,e==null?"canceled":e,n9.ERR_CANCELED),this.name="CanceledError"}PE.inherits($d,n9,{__CANCEL__:!0});var j4=$d,OE=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""},is=Dr,BE=IE,LE=EE,TE=Ud,RE=Xd,DE=zE,VE=kE,HE=Jd,Ma=I0,NE=j4,QE=OE,eh=function(t){return new Promise(function(r,i){var l=t.data,c=t.headers,u=t.responseType,d;function g(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}is.isFormData(l)&&is.isStandardBrowserEnv()&&delete c["Content-Type"];var h=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=RE(t.baseURL,t.url);h.open(t.method.toUpperCase(),TE(w,t.params,t.paramsSerializer),!0),h.timeout=t.timeout;function C(){if(!!h){var x="getAllResponseHeaders"in h?DE(h.getAllResponseHeaders()):null,M=!u||u==="text"||u==="json"?h.responseText:h.response,A={data:M,status:h.status,statusText:h.statusText,headers:x,config:t,request:h};BE(function(D){r(D),g()},function(D){i(D),g()},A),h=null}}if("onloadend"in h?h.onloadend=C:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(C)},h.onabort=function(){!h||(i(new Ma("Request aborted",Ma.ECONNABORTED,t,h)),h=null)},h.onerror=function(){i(new Ma("Network Error",Ma.ERR_NETWORK,t,h,h)),h=null},h.ontimeout=function(){var M=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",A=t.transitional||HE;t.timeoutErrorMessage&&(M=t.timeoutErrorMessage),i(new Ma(M,A.clarifyTimeoutError?Ma.ETIMEDOUT:Ma.ECONNABORTED,t,h)),h=null},is.isStandardBrowserEnv()){var b=(t.withCredentials||VE(w))&&t.xsrfCookieName?LE.read(t.xsrfCookieName):void 0;b&&(c[t.xsrfHeaderName]=b)}"setRequestHeader"in h&&is.forEach(c,function(M,A){typeof l=="undefined"&&A.toLowerCase()==="content-type"?delete c[A]:h.setRequestHeader(A,M)}),is.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),u&&u!=="json"&&(h.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&h.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(x){!h||(i(!x||x&&x.type?new NE:x),h.abort(),h=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),l||(l=null);var F=QE(w);if(F&&["http","https","file"].indexOf(F)===-1){i(new Ma("Unsupported protocol "+F+":",Ma.ERR_BAD_REQUEST,t));return}h.send(l)})},WE=null,zr=Dr,th=yE,nh=I0,jE=Jd,GE=Zd,UE={"Content-Type":"application/x-www-form-urlencoded"};function rh(e,t){!zr.isUndefined(e)&&zr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function KE(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=eh),e}function YE(e,t,n){if(zr.isString(e))try{return(t||JSON.parse)(e),zr.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var G4={transitional:jE,adapter:KE(),transformRequest:[function(t,n){if(th(n,"Accept"),th(n,"Content-Type"),zr.isFormData(t)||zr.isArrayBuffer(t)||zr.isBuffer(t)||zr.isStream(t)||zr.isFile(t)||zr.isBlob(t))return t;if(zr.isArrayBufferView(t))return t.buffer;if(zr.isURLSearchParams(t))return rh(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=zr.isObject(t),i=n&&n["Content-Type"],l;if((l=zr.isFileList(t))||r&&i==="multipart/form-data"){var c=this.env&&this.env.FormData;return GE(l?{"files[]":t}:t,c&&new c)}else if(r||i==="application/json")return rh(n,"application/json"),YE(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&&zr.isString(t)&&t.length)try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?nh.from(c,nh.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:WE},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};zr.forEach(["delete","get","head"],function(t){G4.headers[t]={}}),zr.forEach(["post","put","patch"],function(t){G4.headers[t]=zr.merge(UE)});var r9=G4,qE=Dr,JE=r9,ZE=function(t,n,r){var i=this||JE;return qE.forEach(r,function(c){t=c.call(i,t,n)}),t},oh=function(t){return!!(t&&t.__CANCEL__)},ih=Dr,o9=ZE,XE=oh,_E=r9,$E=j4;function i9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $E}var eS=function(t){i9(t),t.headers=t.headers||{},t.data=o9.call(t,t.data,t.headers,t.transformRequest),t.headers=ih.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),ih.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||_E.adapter;return n(t).then(function(i){return i9(t),i.data=o9.call(t,i.data,i.headers,t.transformResponse),i},function(i){return XE(i)||(i9(t),i&&i.response&&(i.response.data=o9.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},no=Dr,ah=function(t,n){n=n||{};var r={};function i(h,m){return no.isPlainObject(h)&&no.isPlainObject(m)?no.merge(h,m):no.isPlainObject(m)?no.merge({},m):no.isArray(m)?m.slice():m}function l(h){if(no.isUndefined(n[h])){if(!no.isUndefined(t[h]))return i(void 0,t[h])}else return i(t[h],n[h])}function c(h){if(!no.isUndefined(n[h]))return i(void 0,n[h])}function u(h){if(no.isUndefined(n[h])){if(!no.isUndefined(t[h]))return i(void 0,t[h])}else return i(void 0,n[h])}function d(h){if(h in n)return i(t[h],n[h]);if(h in t)return i(void 0,t[h])}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:d};return no.forEach(Object.keys(t).concat(Object.keys(n)),function(m){var v=g[m]||l,w=v(m);no.isUndefined(w)&&v!==d||(r[m]=w)}),r},lh={version:"0.27.2"},tS=lh.version,Cl=I0,a9={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a9[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var sh={};a9.transitional=function(t,n,r){function i(l,c){return"[Axios v"+tS+"] Transitional option '"+l+"'"+c+(r?". "+r:"")}return function(l,c,u){if(t===!1)throw new Cl(i(c," has been removed"+(n?" in "+n:"")),Cl.ERR_DEPRECATED);return n&&!sh[c]&&(sh[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 nS(e,t,n){if(typeof e!="object")throw new Cl("options must be an object",Cl.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],d=u===void 0||c(u,l,e);if(d!==!0)throw new Cl("option "+l+" must be "+d,Cl.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Cl("Unknown option "+l,Cl.ERR_BAD_OPTION)}}var rS={assertOptions:nS,validators:a9},ch=Dr,oS=Ud,uh=CE,dh=eS,U4=ah,iS=Xd,hh=rS,E0=hh.validators;function S0(e){this.defaults=e,this.interceptors={request:new uh,response:new uh}}S0.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&&hh.assertOptions(r,{silentJSONParsing:E0.transitional(E0.boolean),forcedJSONParsing:E0.transitional(E0.boolean),clarifyTimeoutError:E0.transitional(E0.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 d=[dh,void 0];for(Array.prototype.unshift.apply(d,i),d=d.concat(c),u=Promise.resolve(n);d.length;)u=u.then(d.shift(),d.shift());return u}for(var g=n;i.length;){var h=i.shift(),m=i.shift();try{g=h(g)}catch(v){m(v);break}}try{u=dh(g)}catch(v){return Promise.reject(v)}for(;c.length;)u=u.then(c.shift(),c.shift());return u},S0.prototype.getUri=function(t){t=U4(this.defaults,t);var n=iS(t.baseURL,t.url);return oS(n,t.params,t.paramsSerializer)},ch.forEach(["delete","get","head","options"],function(t){S0.prototype[t]=function(n,r){return this.request(U4(r||{},{method:t,url:n,data:(r||{}).data}))}}),ch.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}))}}S0.prototype[t]=n(),S0.prototype[t+"Form"]=n(!0)});var aS=S0,lS=j4;function A0(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 lS(i),t(n.reason))})}A0.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},A0.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]},A0.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}},A0.source=function(){var t,n=new A0(function(i){t=i});return{token:n,cancel:t}};var sS=A0,cS=function(t){return function(r){return t.apply(null,r)}},uS=Dr,dS=function(t){return uS.isObject(t)&&t.isAxiosError===!0},fh=Dr,hS=Qd,K4=aS,fS=ah,pS=r9;function ph(e){var t=new K4(e),n=hS(K4.prototype.request,t);return fh.extend(n,K4.prototype,t),fh.extend(n,t),n.create=function(i){return ph(fS(e,i))},n}var k2=ph(pS);k2.Axios=K4,k2.CanceledError=j4,k2.CancelToken=sS,k2.isCancel=oh,k2.VERSION=lh.version,k2.toFormData=Zd,k2.AxiosError=I0,k2.Cancel=k2.CanceledError,k2.all=function(t){return Promise.all(t)},k2.spread=cS,k2.isAxiosError=dS,Y6.exports=k2,Y6.exports.default=k2;var gS=Y6.exports;const{VITE_ASSET_URL:mS,VITE_ASSET_URL_STAGING:vS,VITE_ASSET_URL_DEVELOPMENT:CS,VITE_ASSET_URL_SANDBOX:bS}={VITE_ASSET_URL:"https://services.globalbridgeconnections.com.py/",VITE_ASSET_URL_STAGING:"https://stagingservices.globalbridgeconnections.com.py/",VITE_ASSET_URL_SANDBOX:"https://sandboxservices.globalbridgeconnections.com.py/",VITE_ASSET_URL_DEVELOPMENT:"https://devservices.globalbridgeconnections.com.py/",VITE_ASSET_CLIENTID:"60c74ce5-1df3-4fc2-b1bb-15c817730388",VITE_ASSET_ACESSTOKEN:"Basic NjBjNzRjZTUtMWRmMy00ZmMyLWIxYmItMTVjODE3NzMwMzg4OjUyZWZlNGE3LWRlNjYtNGFhNi04Mzk4LTUyMDI4YTJjYTI3Nw==",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0};async function y3({method:e,path:t,customHeaders:n,params:r,inProduction:i,bodyParams:l}){const c={"Content-Type":"application/json"};n!={}&&Object.assign(c,n);let u="";switch(i){case"stg":u=vS;break;case"sand":u=bS;break;case"dev":u=CS;break;default:u=mS}const d={url:`${u}${t}`,method:e,headers:c};return e==="GET"&&Object.assign(d,{params:r}),e==="POST"&&Object.assign(d,{data:l}),await gS(d).catch(g=>{throw g})}var as=e=>e.type==="checkbox",w3=e=>e instanceof Date,p2=e=>e==null;const gh=e=>typeof e=="object";var or=e=>!p2(e)&&!Array.isArray(e)&&gh(e)&&!w3(e),mh=e=>or(e)&&e.target?as(e.target)?e.target.checked:e.target.value:e,yS=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vh=(e,t)=>e.has(yS(t)),wS=e=>{const t=e.constructor&&e.constructor.prototype;return or(t)&&t.hasOwnProperty("isPrototypeOf")},l9=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Vr(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(e instanceof Set)t=new Set(e);else if(!(l9&&(e instanceof Blob||r))&&(n||or(e)))if(t=n?[]:{},!n&&!wS(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Vr(e[i]));else return e;return t}var Y4=e=>Array.isArray(e)?e.filter(Boolean):[],ir=e=>e===void 0,q1=(e,t,n)=>{if(!t||!or(e))return n;const r=Y4(t.split(/[,[\].]+?/)).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",s9=e=>/^\w*$/.test(e),Ch=e=>Y4(e.replace(/["|']|\]/g,"").split(/\.|\[/)),An=(e,t,n)=>{let r=-1;const i=s9(t)?[t]:Ch(t),l=i.length,c=l-1;for(;++r<l;){const u=i[r];let d=n;if(r!==c){const g=e[u];d=or(g)||Array.isArray(g)?g:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const q4={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ci={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},za={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},IS=tt.default.createContext(null),c9=()=>tt.default.useContext(IS);var bh=(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};function ES(e){const t=c9(),{control:n=t.control,disabled:r,name:i,exact:l}=e||{},[c,u]=tt.default.useState(n._formState),d=tt.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),g=tt.default.useRef(i);return g.current=i,tt.default.useEffect(()=>n._subscribe({name:g.current,formState:d.current,exact:l,callback:h=>{!r&&u({...n._formState,...h})}}),[n,r,l]),tt.default.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),tt.default.useMemo(()=>bh(c,n,d.current,!1),[c,n])}var Qi=e=>typeof e=="string",yh=(e,t,n,r,i)=>Qi(e)?(r&&t.watch.add(e),q1(n,e,i)):Array.isArray(e)?e.map(l=>(r&&t.watch.add(l),q1(n,l))):(r&&(t.watchAll=!0),n);function SS(e){const t=c9(),{control:n=t.control,name:r,defaultValue:i,disabled:l,exact:c}=e||{},u=tt.default.useRef(r),d=tt.default.useRef(i);u.current=r,tt.default.useEffect(()=>n._subscribe({name:u.current,formState:{values:!0},exact:c,callback:m=>!l&&h(yh(u.current,n._names,m.values||n._formValues,!1,d.current))}),[n,l,c]);const[g,h]=tt.default.useState(n._getWatch(r,i));return tt.default.useEffect(()=>n._removeUnmounted()),g}function AS(e){const t=c9(),{name:n,disabled:r,control:i=t.control,shouldUnregister:l}=e,c=vh(i._names.array,n),u=SS({control:i,name:n,defaultValue:q1(i._formValues,n,q1(i._defaultValues,n,e.defaultValue)),exact:!0}),d=ES({control:i,name:n,exact:!0}),g=tt.default.useRef(e),h=tt.default.useRef(i.register(n,{...e.rules,value:u,...ro(e.disabled)?{disabled:e.disabled}:{}})),m=tt.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!q1(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!q1(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!q1(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!q1(d.validatingFields,n)},error:{enumerable:!0,get:()=>q1(d.errors,n)}}),[d,n]),v=tt.default.useCallback(F=>h.current.onChange({target:{value:mh(F),name:n},type:q4.CHANGE}),[n]),w=tt.default.useCallback(()=>h.current.onBlur({target:{value:q1(i._formValues,n),name:n},type:q4.BLUR}),[n,i._formValues]),C=tt.default.useCallback(F=>{const x=q1(i._fields,n);x&&F&&(x._f.ref={focus:()=>F.focus(),select:()=>F.select(),setCustomValidity:M=>F.setCustomValidity(M),reportValidity:()=>F.reportValidity()})},[i._fields,n]),b=tt.default.useMemo(()=>({name:n,value:u,...ro(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:w,ref:C}),[n,r,d.disabled,v,w,C,u]);return tt.default.useEffect(()=>{const F=i._options.shouldUnregister||l;i.register(n,{...g.current.rules,...ro(g.current.disabled)?{disabled:g.current.disabled}:{}});const x=(M,A)=>{const k=q1(i._fields,M);k&&k._f&&(k._f.mount=A)};if(x(n,!0),F){const M=Vr(q1(i._options.defaultValues,n));An(i._defaultValues,n,M),ir(q1(i._formValues,n))&&An(i._formValues,n,M)}return!c&&i.register(n),()=>{(c?F&&!i._state.action:F)?i.unregister(n):x(n,!1)}},[n,i,c,l]),tt.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),tt.default.useMemo(()=>({field:b,formState:d,fieldState:m}),[b,d,m])}const xS=e=>e.render(AS(e));var wh=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ls=e=>Array.isArray(e)?e:[e],Ih=()=>{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=[]}}},u9=e=>p2(e)||!gh(e);function bl(e,t){if(u9(e)||u9(t))return e===t;if(w3(e)&&w3(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const l=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const c=t[i];if(w3(l)&&w3(c)||or(l)&&or(c)||Array.isArray(l)&&Array.isArray(c)?!bl(l,c):l!==c)return!1}}return!0}var g2=e=>or(e)&&!Object.keys(e).length,d9=e=>e.type==="file",ui=e=>typeof e=="function",J4=e=>{if(!l9)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Eh=e=>e.type==="select-multiple",h9=e=>e.type==="radio",FS=e=>h9(e)||as(e),f9=e=>J4(e)&&e.isConnected;function MS(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 zS(e){for(const t in e)if(e.hasOwnProperty(t)&&!ir(e[t]))return!1;return!0}function yr(e,t){const n=Array.isArray(t)?t:s9(t)?[t]:Ch(t),r=n.length===1?e:MS(e,n),i=n.length-1,l=n[i];return r&&delete r[l],i!==0&&(or(r)&&g2(r)||Array.isArray(r)&&zS(r))&&yr(e,n.slice(0,-1)),e}var Sh=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])&&!Sh(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Z4(e[r],t[r])):p2(e[r])||(t[r]=!0);return t}function Ah(e,t,n){const r=Array.isArray(e);if(or(e)||r)for(const i in e)Array.isArray(e[i])||or(e[i])&&!Sh(e[i])?ir(t)||u9(n[i])?n[i]=Array.isArray(e[i])?Z4(e[i],[]):{...Z4(e[i])}:Ah(e[i],p2(t)?{}:t[i],n[i]):n[i]=!bl(e[i],t[i]);return n}var ss=(e,t)=>Ah(e,t,Z4(t));const xh={value:!1,isValid:!1},Fh={value:!0,isValid:!0};var Mh=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===""?Fh:{value:e[0].value,isValid:!0}:Fh:xh}return xh},zh=(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 kh={isValid:!1,value:null};var Ph=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,kh):kh;function Oh(e){const t=e.ref;return d9(t)?t.files:h9(t)?Ph(e.refs).value:Eh(t)?[...t.selectedOptions].map(({value:n})=>n):as(t)?Mh(e.refs).value:zh(ir(t.value)?e.ref.value:t.value,e)}var kS=(e,t,n,r)=>{const i={};for(const l of e){const c=q1(t,l);c&&An(i,l,c._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},X4=e=>e instanceof RegExp,cs=e=>ir(e)?e:X4(e)?e.source:or(e)?X4(e.value)?e.value.source:e.value:e,Bh=e=>({isOnSubmit:!e||e===ci.onSubmit,isOnBlur:e===ci.onBlur,isOnChange:e===ci.onChange,isOnAll:e===ci.all,isOnTouch:e===ci.onTouched});const Lh="AsyncFunction";var PS=e=>!!e&&!!e.validate&&!!(ui(e.validate)&&e.validate.constructor.name===Lh||or(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Lh)),OS=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Th=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const us=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const l=q1(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(us(u,t))break}else if(or(u)&&us(u,t))break}}};function Rh(e,t,n){const r=q1(e,n);if(r||s9(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const l=i.join("."),c=q1(t,l),u=q1(e,l);if(c&&!Array.isArray(c)&&n!==l)return{name:n};if(u&&u.type)return{name:l,error:u};i.pop()}return{name:n}}var BS=(e,t,n,r)=>{n(e);const{name:i,...l}=e;return g2(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(c=>t[c]===(!r||ci.all))},LS=(e,t,n)=>!e||!t||e===t||ls(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),TS=(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,RS=(e,t)=>!Y4(q1(e,t)).length&&yr(e,t),DS=(e,t,n)=>{const r=ls(q1(e,n));return An(r,"root",t[n]),An(e,n,r),e},_4=e=>Qi(e);function Dh(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 x0=e=>or(e)&&!X4(e)?e:{value:e,message:""},Vh=async(e,t,n,r,i,l)=>{const{ref:c,refs:u,required:d,maxLength:g,minLength:h,min:m,max:v,pattern:w,validate:C,name:b,valueAsNumber:F,mount:x}=e._f,M=q1(n,b);if(!x||t.has(b))return{};const A=u?u[0]:c,k=$=>{i&&A.reportValidity&&(A.setCustomValidity(ro($)?"":$||""),A.reportValidity())},D={},R=h9(c),V=as(c),H=R||V,Z=(F||d9(c))&&ir(c.value)&&ir(M)||J4(c)&&c.value===""||M===""||Array.isArray(M)&&!M.length,J=wh.bind(null,b,r,D),X=($,Y,Q,U=za.maxLength,q=za.minLength)=>{const te=$?Y:Q;D[b]={type:$?U:q,message:te,ref:c,...J($?U:q,te)}};if(l?!Array.isArray(M)||!M.length:d&&(!H&&(Z||p2(M))||ro(M)&&!M||V&&!Mh(u).isValid||R&&!Ph(u).isValid)){const{value:$,message:Y}=_4(d)?{value:!!d,message:d}:x0(d);if($&&(D[b]={type:za.required,message:Y,ref:A,...J(za.required,Y)},!r))return k(Y),D}if(!Z&&(!p2(m)||!p2(v))){let $,Y;const Q=x0(v),U=x0(m);if(!p2(M)&&!isNaN(M)){const q=c.valueAsNumber||M&&+M;p2(Q.value)||($=q>Q.value),p2(U.value)||(Y=q<U.value)}else{const q=c.valueAsDate||new Date(M),te=re=>new Date(new Date().toDateString()+" "+re),_=c.type=="time",ee=c.type=="week";Qi(Q.value)&&M&&($=_?te(M)>te(Q.value):ee?M>Q.value:q>new Date(Q.value)),Qi(U.value)&&M&&(Y=_?te(M)<te(U.value):ee?M<U.value:q<new Date(U.value))}if(($||Y)&&(X(!!$,Q.message,U.message,za.max,za.min),!r))return k(D[b].message),D}if((g||h)&&!Z&&(Qi(M)||l&&Array.isArray(M))){const $=x0(g),Y=x0(h),Q=!p2($.value)&&M.length>+$.value,U=!p2(Y.value)&&M.length<+Y.value;if((Q||U)&&(X(Q,$.message,Y.message),!r))return k(D[b].message),D}if(w&&!Z&&Qi(M)){const{value:$,message:Y}=x0(w);if(X4($)&&!M.match($)&&(D[b]={type:za.pattern,message:Y,ref:c,...J(za.pattern,Y)},!r))return k(Y),D}if(C){if(ui(C)){const $=await C(M,n),Y=Dh($,A);if(Y&&(D[b]={...Y,...J(za.validate,Y.message)},!r))return k(Y.message),D}else if(or(C)){let $={};for(const Y in C){if(!g2($)&&!r)break;const Q=Dh(await C[Y](M,n),A,Y);Q&&($={...Q,...J(Y,Q.message)},k(Q.message),r&&(D[b]=$))}if(!g2($)&&(D[b]={ref:A,...$},!r))return D}}return k(!0),D};const VS={mode:ci.onSubmit,reValidateMode:ci.onChange,shouldFocusError:!0};function HS(e={}){let t={...VS,...e},n={submitCount:0,isDirty:!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};const r={};let i=or(t.defaultValues)||or(t.values)?Vr(t.values||t.defaultValues)||{}:{},l=t.shouldUnregister?{}:Vr(i),c={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,g=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const v={array:Ih(),state:Ih()},w=Bh(t.mode),C=Bh(t.reValidateMode),b=t.criteriaMode===ci.all,F=he=>pe=>{clearTimeout(g),g=setTimeout(he,pe)},x=async he=>{if(!t.disabled&&(h.isValid||m.isValid||he)){const pe=t.resolver?g2((await Z()).errors):await X(r,!0);pe!==n.isValid&&v.state.next({isValid:pe})}},M=(he,pe)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((he||Array.from(u.mount)).forEach(be=>{be&&(pe?An(n.validatingFields,be,pe):yr(n.validatingFields,be))}),v.state.next({validatingFields:n.validatingFields,isValidating:!g2(n.validatingFields)}))},A=(he,pe=[],be,Be,xe=!0,Me=!0)=>{if(Be&&be&&!t.disabled){if(c.action=!0,Me&&Array.isArray(q1(r,he))){const ze=be(q1(r,he),Be.argA,Be.argB);xe&&An(r,he,ze)}if(Me&&Array.isArray(q1(n.errors,he))){const ze=be(q1(n.errors,he),Be.argA,Be.argB);xe&&An(n.errors,he,ze),RS(n.errors,he)}if((h.touchedFields||m.touchedFields)&&Me&&Array.isArray(q1(n.touchedFields,he))){const ze=be(q1(n.touchedFields,he),Be.argA,Be.argB);xe&&An(n.touchedFields,he,ze)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=ss(i,l)),v.state.next({name:he,isDirty:Y(he,pe),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else An(l,he,pe)},k=(he,pe)=>{An(n.errors,he,pe),v.state.next({errors:n.errors})},D=he=>{n.errors=he,v.state.next({errors:n.errors,isValid:!1})},R=(he,pe,be,Be)=>{const xe=q1(r,he);if(xe){const Me=q1(l,he,ir(be)?q1(i,he):be);ir(Me)||Be&&Be.defaultChecked||pe?An(l,he,pe?Me:Oh(xe._f)):q(he,Me),c.mount&&x()}},V=(he,pe,be,Be,xe)=>{let Me=!1,ze=!1;const Le={name:he};if(!t.disabled){if(!be||Be){(h.isDirty||m.isDirty)&&(ze=n.isDirty,n.isDirty=Le.isDirty=Y(),Me=ze!==Le.isDirty);const Qe=bl(q1(i,he),pe);ze=!!q1(n.dirtyFields,he),Qe?yr(n.dirtyFields,he):An(n.dirtyFields,he,!0),Le.dirtyFields=n.dirtyFields,Me=Me||(h.dirtyFields||m.dirtyFields)&&ze!==!Qe}if(be){const Qe=q1(n.touchedFields,he);Qe||(An(n.touchedFields,he,be),Le.touchedFields=n.touchedFields,Me=Me||(h.touchedFields||m.touchedFields)&&Qe!==be)}Me&&xe&&v.state.next(Le)}return Me?Le:{}},H=(he,pe,be,Be)=>{const xe=q1(n.errors,he),Me=(h.isValid||m.isValid)&&ro(pe)&&n.isValid!==pe;if(t.delayError&&be?(d=F(()=>k(he,be)),d(t.delayError)):(clearTimeout(g),d=null,be?An(n.errors,he,be):yr(n.errors,he)),(be?!bl(xe,be):xe)||!g2(Be)||Me){const ze={...Be,...Me&&ro(pe)?{isValid:pe}:{},errors:n.errors,name:he};n={...n,...ze},v.state.next(ze)}},Z=async he=>{M(he,!0);const pe=await t.resolver(l,t.context,kS(he||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return M(he),pe},J=async he=>{const{errors:pe}=await Z(he);if(he)for(const be of he){const Be=q1(pe,be);Be?An(n.errors,be,Be):yr(n.errors,be)}else n.errors=pe;return pe},X=async(he,pe,be={valid:!0})=>{for(const Be in he){const xe=he[Be];if(xe){const{_f:Me,...ze}=xe;if(Me){const Le=u.array.has(Me.name),Qe=xe._f&&PS(xe._f);Qe&&h.validatingFields&&M([Be],!0);const F1=await Vh(xe,u.disabled,l,b,t.shouldUseNativeValidation&&!pe,Le);if(Qe&&h.validatingFields&&M([Be]),F1[Me.name]&&(be.valid=!1,pe))break;!pe&&(q1(F1,Me.name)?Le?DS(n.errors,F1,Me.name):An(n.errors,Me.name,F1[Me.name]):yr(n.errors,Me.name))}!g2(ze)&&await X(ze,pe,be)}}return be.valid},$=()=>{for(const he of u.unMount){const pe=q1(r,he);pe&&(pe._f.refs?pe._f.refs.every(be=>!f9(be)):!f9(pe._f.ref))&&We(he)}u.unMount=new Set},Y=(he,pe)=>!t.disabled&&(he&&pe&&An(l,he,pe),!bl(Ce(),i)),Q=(he,pe,be)=>yh(he,u,{...c.mount?l:ir(pe)?i:Qi(he)?{[he]:pe}:pe},be,pe),U=he=>Y4(q1(c.mount?l:i,he,t.shouldUnregister?q1(i,he,[]):[])),q=(he,pe,be={})=>{const Be=q1(r,he);let xe=pe;if(Be){const Me=Be._f;Me&&(!Me.disabled&&An(l,he,zh(pe,Me)),xe=J4(Me.ref)&&p2(pe)?"":pe,Eh(Me.ref)?[...Me.ref.options].forEach(ze=>ze.selected=xe.includes(ze.value)):Me.refs?as(Me.ref)?Me.refs.length>1?Me.refs.forEach(ze=>(!ze.defaultChecked||!ze.disabled)&&(ze.checked=Array.isArray(xe)?!!xe.find(Le=>Le===ze.value):xe===ze.value)):Me.refs[0]&&(Me.refs[0].checked=!!xe):Me.refs.forEach(ze=>ze.checked=ze.value===xe):d9(Me.ref)?Me.ref.value="":(Me.ref.value=xe,Me.ref.type||v.state.next({name:he,values:Vr(l)})))}(be.shouldDirty||be.shouldTouch)&&V(he,xe,be.shouldTouch,be.shouldDirty,!0),be.shouldValidate&&we(he)},te=(he,pe,be)=>{for(const Be in pe){const xe=pe[Be],Me=`${he}.${Be}`,ze=q1(r,Me);(u.array.has(he)||or(xe)||ze&&!ze._f)&&!w3(xe)?te(Me,xe,be):q(Me,xe,be)}},_=(he,pe,be={})=>{const Be=q1(r,he),xe=u.array.has(he),Me=Vr(pe);An(l,he,Me),xe?(v.array.next({name:he,values:Vr(l)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&be.shouldDirty&&v.state.next({name:he,dirtyFields:ss(i,l),isDirty:Y(he,Me)})):Be&&!Be._f&&!p2(Me)?te(he,Me,be):q(he,Me,be),Th(he,u)&&v.state.next({...n}),v.state.next({name:c.mount?he:void 0,values:Vr(l)})},ee=async he=>{c.mount=!0;const pe=he.target;let be=pe.name,Be=!0;const xe=q1(r,be),Me=ze=>{Be=Number.isNaN(ze)||w3(ze)&&isNaN(ze.getTime())||bl(ze,q1(l,be,ze))};if(xe){let ze,Le;const Qe=pe.type?Oh(xe._f):mh(he),F1=he.type===q4.BLUR||he.type===q4.FOCUS_OUT,I1=!OS(xe._f)&&!t.resolver&&!q1(n.errors,be)&&!xe._f.deps||TS(F1,q1(n.touchedFields,be),n.isSubmitted,C,w),Ve=Th(be,u,F1);An(l,be,Qe),F1?(xe._f.onBlur&&xe._f.onBlur(he),d&&d(0)):xe._f.onChange&&xe._f.onChange(he);const b1=V(be,Qe,F1),i1=!g2(b1)||Ve;if(!F1&&v.state.next({name:be,type:he.type,values:Vr(l)}),I1)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?F1&&x():F1||x()),i1&&v.state.next({name:be,...Ve?{}:b1});if(!F1&&Ve&&v.state.next({...n}),t.resolver){const{errors:w1}=await Z([be]);if(Me(Qe),Be){const _1=Rh(n.errors,r,be),$1=Rh(w1,r,_1.name||be);ze=$1.error,be=$1.name,Le=g2(w1)}}else M([be],!0),ze=(await Vh(xe,u.disabled,l,b,t.shouldUseNativeValidation))[be],M([be]),Me(Qe),Be&&(ze?Le=!1:(h.isValid||m.isValid)&&(Le=await X(r,!0)));Be&&(xe._f.deps&&we(xe._f.deps),H(be,Le,ze,b1))}},re=(he,pe)=>{if(q1(n.errors,pe)&&he.focus)return he.focus(),1},we=async(he,pe={})=>{let be,Be;const xe=ls(he);if(t.resolver){const Me=await J(ir(he)?he:xe);be=g2(Me),Be=he?!xe.some(ze=>q1(Me,ze)):be}else he?(Be=(await Promise.all(xe.map(async Me=>{const ze=q1(r,Me);return await X(ze&&ze._f?{[Me]:ze}:ze)}))).every(Boolean),!(!Be&&!n.isValid)&&x()):Be=be=await X(r);return v.state.next({...!Qi(he)||(h.isValid||m.isValid)&&be!==n.isValid?{}:{name:he},...t.resolver||!he?{isValid:be}:{},errors:n.errors}),pe.shouldFocus&&!Be&&us(r,re,he?xe:u.mount),Be},Ce=he=>{const pe={...c.mount?l:i};return ir(he)?pe:Qi(he)?q1(pe,he):he.map(be=>q1(pe,be))},Re=(he,pe)=>({invalid:!!q1((pe||n).errors,he),isDirty:!!q1((pe||n).dirtyFields,he),error:q1((pe||n).errors,he),isValidating:!!q1(n.validatingFields,he),isTouched:!!q1((pe||n).touchedFields,he)}),ke=he=>{he&&ls(he).forEach(pe=>yr(n.errors,pe)),v.state.next({errors:he?n.errors:{}})},se=(he,pe,be)=>{const Be=(q1(r,he,{_f:{}})._f||{}).ref,xe=q1(n.errors,he)||{},{ref:Me,message:ze,type:Le,...Qe}=xe;An(n.errors,he,{...Qe,...pe,ref:Be}),v.state.next({name:he,errors:n.errors,isValid:!1}),be&&be.shouldFocus&&Be&&Be.focus&&Be.focus()},me=(he,pe)=>ui(he)?v.state.subscribe({next:be=>he(Q(void 0,pe),be)}):Q(he,pe,!0),Ie=he=>v.state.subscribe({next:pe=>{LS(he.name,pe.name,he.exact)&&BS(pe,he.formState||h,O1,he.reRenderRoot)&&he.callback({values:{...l},...n,...pe})}}).unsubscribe,Fe=he=>(c.mount=!0,m={...m,...he.formState},Ie({...he,formState:m})),We=(he,pe={})=>{for(const be of he?ls(he):u.mount)u.mount.delete(be),u.array.delete(be),pe.keepValue||(yr(r,be),yr(l,be)),!pe.keepError&&yr(n.errors,be),!pe.keepDirty&&yr(n.dirtyFields,be),!pe.keepTouched&&yr(n.touchedFields,be),!pe.keepIsValidating&&yr(n.validatingFields,be),!t.shouldUnregister&&!pe.keepDefaultValue&&yr(i,be);v.state.next({values:Vr(l)}),v.state.next({...n,...pe.keepDirty?{isDirty:Y()}:{}}),!pe.keepIsValid&&x()},Oe=({disabled:he,name:pe})=>{(ro(he)&&c.mount||!!he||u.disabled.has(pe))&&(he?u.disabled.add(pe):u.disabled.delete(pe))},qe=(he,pe={})=>{let be=q1(r,he);const Be=ro(pe.disabled)||ro(t.disabled);return An(r,he,{...be||{},_f:{...be&&be._f?be._f:{ref:{name:he}},name:he,mount:!0,...pe}}),u.mount.add(he),be?Oe({disabled:ro(pe.disabled)?pe.disabled:t.disabled,name:he}):R(he,!0,pe.value),{...Be?{disabled:pe.disabled||t.disabled}:{},...t.progressive?{required:!!pe.required,min:cs(pe.min),max:cs(pe.max),minLength:cs(pe.minLength),maxLength:cs(pe.maxLength),pattern:cs(pe.pattern)}:{},name:he,onChange:ee,onBlur:ee,ref:xe=>{if(xe){qe(he,pe),be=q1(r,he);const Me=ir(xe.value)&&xe.querySelectorAll&&xe.querySelectorAll("input,select,textarea")[0]||xe,ze=FS(Me),Le=be._f.refs||[];if(ze?Le.find(Qe=>Qe===Me):Me===be._f.ref)return;An(r,he,{_f:{...be._f,...ze?{refs:[...Le.filter(f9),Me,...Array.isArray(q1(i,he))?[{}]:[]],ref:{type:Me.type,name:he}}:{ref:Me}}}),R(he,!1,void 0,Me)}else be=q1(r,he,{}),be._f&&(be._f.mount=!1),(t.shouldUnregister||pe.shouldUnregister)&&!(vh(u.array,he)&&c.action)&&u.unMount.add(he)}}},r1=()=>t.shouldFocusError&&us(r,re,u.mount),Se=he=>{ro(he)&&(v.state.next({disabled:he}),us(r,(pe,be)=>{const Be=q1(r,be);Be&&(pe.disabled=Be._f.disabled||he,Array.isArray(Be._f.refs)&&Be._f.refs.forEach(xe=>{xe.disabled=Be._f.disabled||he}))},0,!1))},Je=(he,pe)=>async be=>{let Be;be&&(be.preventDefault&&be.preventDefault(),be.persist&&be.persist());let xe=Vr(l);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:Me,values:ze}=await Z();n.errors=Me,xe=ze}else await X(r);if(u.disabled.size)for(const Me of u.disabled)An(xe,Me,void 0);if(yr(n.errors,"root"),g2(n.errors)){v.state.next({errors:{}});try{await he(xe,be)}catch(Me){Be=Me}}else pe&&await pe({...n.errors},be),r1(),setTimeout(r1);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:g2(n.errors)&&!Be,submitCount:n.submitCount+1,errors:n.errors}),Be)throw Be},o1=(he,pe={})=>{q1(r,he)&&(ir(pe.defaultValue)?_(he,Vr(q1(i,he))):(_(he,pe.defaultValue),An(i,he,Vr(pe.defaultValue))),pe.keepTouched||yr(n.touchedFields,he),pe.keepDirty||(yr(n.dirtyFields,he),n.isDirty=pe.defaultValue?Y(he,Vr(q1(i,he))):Y()),pe.keepError||(yr(n.errors,he),h.isValid&&x()),v.state.next({...n}))},e1=(he,pe={})=>{const be=he?Vr(he):i,Be=Vr(be),xe=g2(he),Me=xe?i:Be;if(pe.keepDefaultValues||(i=be),!pe.keepValues){if(pe.keepDirtyValues){const ze=new Set([...u.mount,...Object.keys(ss(i,l))]);for(const Le of Array.from(ze))q1(n.dirtyFields,Le)?An(Me,Le,q1(l,Le)):_(Le,q1(Me,Le))}else{if(l9&&ir(he))for(const ze of u.mount){const Le=q1(r,ze);if(Le&&Le._f){const Qe=Array.isArray(Le._f.refs)?Le._f.refs[0]:Le._f.ref;if(J4(Qe)){const F1=Qe.closest("form");if(F1){F1.reset();break}}}}for(const ze of u.mount)_(ze,q1(Me,ze))}l=Vr(Me),v.array.next({values:{...Me}}),v.state.next({values:{...Me}})}u={mount:pe.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!h.isValid||!!pe.keepIsValid||!!pe.keepDirtyValues,c.watch=!!t.shouldUnregister,v.state.next({submitCount:pe.keepSubmitCount?n.submitCount:0,isDirty:xe?!1:pe.keepDirty?n.isDirty:!!(pe.keepDefaultValues&&!bl(he,i)),isSubmitted:pe.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:xe?{}:pe.keepDirtyValues?pe.keepDefaultValues&&l?ss(i,l):n.dirtyFields:pe.keepDefaultValues&&he?ss(i,he):pe.keepDirty?n.dirtyFields:{},touchedFields:pe.keepTouched?n.touchedFields:{},errors:pe.keepErrors?n.errors:{},isSubmitSuccessful:pe.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},m1=(he,pe)=>e1(ui(he)?he(l):he,pe),a1=(he,pe={})=>{const be=q1(r,he),Be=be&&be._f;if(Be){const xe=Be.refs?Be.refs[0]:Be.ref;xe.focus&&(xe.focus(),pe.shouldSelect&&ui(xe.select)&&xe.select())}},O1=he=>{n={...n,...he}},Q1={control:{register:qe,unregister:We,getFieldState:Re,handleSubmit:Je,setError:se,_subscribe:Ie,_runSchema:Z,_getWatch:Q,_getDirty:Y,_setValid:x,_setFieldArray:A,_setDisabledField:Oe,_setErrors:D,_getFieldArray:U,_reset:e1,_resetDefaultValues:()=>ui(t.defaultValues)&&t.defaultValues().then(he=>{m1(he,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:$,_disableForm:Se,_subjects:v,_proxyFormState:h,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:Fe,trigger:we,register:qe,handleSubmit:Je,watch:me,setValue:_,getValues:Ce,reset:m1,resetField:o1,clearErrors:ke,unregister:We,setError:se,setFocus:a1,getFieldState:Re};return{...Q1,formControl:Q1}}function $4(e={}){const t=tt.default.useRef(void 0),n=tt.default.useRef(void 0),[r,i]=tt.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,defaultValues:ui(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:HS(e),formState:r},e.formControl&&e.defaultValues&&!ui(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const l=t.current.control;return l._options=e,tt.default.useLayoutEffect(()=>l._subscribe({formState:l._proxyFormState,callback:()=>i({...l._formState}),reRenderRoot:!0}),[l]),tt.default.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),tt.default.useEffect(()=>{if(l._proxyFormState.isDirty){const c=l._getDirty();c!==r.isDirty&&l._subjects.state.next({isDirty:c})}},[l,r.isDirty]),tt.default.useEffect(()=>{e.values&&!bl(e.values,n.current)?(l._reset(e.values,l._options.resetOptions),n.current=e.values,i(c=>({...c}))):l._resetDefaultValues()},[e.values,l]),tt.default.useEffect(()=>{e.errors&&!g2(e.errors)&&l._setErrors(e.errors)},[e.errors,l]),tt.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()}),tt.default.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[e.shouldUnregister,l]),t.current.formState=bh(r,l),t.current}var p9;try{p9=Map}catch{}var g9;try{g9=Set}catch{}function Hh(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(m9);if(p9&&e instanceof p9)return new Map(Array.from(e.entries()));if(g9&&e instanceof g9)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]:Hh(e[i],t,n)}return r}return e}function m9(e){return Hh(e,[],[])}const NS=Object.prototype.toString,QS=Error.prototype.toString,WS=RegExp.prototype.toString,jS=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",GS=/^Symbol\((.*)\)(.*)$/;function US(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Nh(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return US(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return jS.call(e).replace(GS,"Symbol($1)");const r=NS.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+QS.call(e)+"]":r==="RegExp"?WS.call(e):null}function ds(e,t){let n=Nh(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let l=Nh(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: \`${ds(n,!0)}\``+(i?` (cast from the value \`${ds(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"},KS={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"},v9={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},YS={isValue:"${path} field must be ${value}"},C9={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:I3,string:di,number:KS,date:v9,object:C9,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:YS});var qS=Object.prototype,JS=qS.hasOwnProperty;function ZS(e,t){return e!=null&&JS.call(e,t)}var XS=ZS,_S=Array.isArray,yl=_S,$S=typeof ml=="object"&&ml&&ml.Object===Object&&ml,Qh=$S,eA=Qh,tA=typeof self=="object"&&self&&self.Object===Object&&self,nA=eA||tA||Function("return this")(),ka=nA,rA=ka,oA=rA.Symbol,e5=oA,Wh=e5,jh=Object.prototype,iA=jh.hasOwnProperty,aA=jh.toString,hs=Wh?Wh.toStringTag:void 0;function lA(e){var t=iA.call(e,hs),n=e[hs];try{e[hs]=void 0;var r=!0}catch{}var i=aA.call(e);return r&&(t?e[hs]=n:delete e[hs]),i}var sA=lA,cA=Object.prototype,uA=cA.toString;function dA(e){return uA.call(e)}var hA=dA,Gh=e5,fA=sA,pA=hA,gA="[object Null]",mA="[object Undefined]",Uh=Gh?Gh.toStringTag:void 0;function vA(e){return e==null?e===void 0?mA:gA:Uh&&Uh in Object(e)?fA(e):pA(e)}var fs=vA;function CA(e){return e!=null&&typeof e=="object"}var ps=CA,bA=fs,yA=ps,wA="[object Symbol]";function IA(e){return typeof e=="symbol"||yA(e)&&bA(e)==wA}var b9=IA,EA=yl,SA=b9,AA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xA=/^\w*$/;function FA(e,t){if(EA(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||SA(e)?!0:xA.test(e)||!AA.test(e)||t!=null&&e in Object(t)}var y9=FA;function MA(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var w9=MA,zA=fs,kA=w9,PA="[object AsyncFunction]",OA="[object Function]",BA="[object GeneratorFunction]",LA="[object Proxy]";function TA(e){if(!kA(e))return!1;var t=zA(e);return t==OA||t==BA||t==PA||t==LA}var Kh=TA,RA=ka,DA=RA["__core-js_shared__"],VA=DA,I9=VA,Yh=function(){var e=/[^.]+$/.exec(I9&&I9.keys&&I9.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function HA(e){return!!Yh&&Yh in e}var NA=HA,QA=Function.prototype,WA=QA.toString;function jA(e){if(e!=null){try{return WA.call(e)}catch{}try{return e+""}catch{}}return""}var qh=jA,GA=Kh,UA=NA,KA=w9,YA=qh,qA=/[\\^$.*+?()[\]{}|]/g,JA=/^\[object .+?Constructor\]$/,ZA=Function.prototype,XA=Object.prototype,_A=ZA.toString,$A=XA.hasOwnProperty,ex=RegExp("^"+_A.call($A).replace(qA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tx(e){if(!KA(e)||UA(e))return!1;var t=GA(e)?ex:JA;return t.test(YA(e))}var nx=tx;function rx(e,t){return e==null?void 0:e[t]}var ox=rx,ix=nx,ax=ox;function lx(e,t){var n=ax(e,t);return ix(n)?n:void 0}var E3=lx,sx=E3,cx=sx(Object,"create"),t5=cx,Jh=t5;function ux(){this.__data__=Jh?Jh(null):{},this.size=0}var dx=ux;function hx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fx=hx,px=t5,gx="__lodash_hash_undefined__",mx=Object.prototype,vx=mx.hasOwnProperty;function Cx(e){var t=this.__data__;if(px){var n=t[e];return n===gx?void 0:n}return vx.call(t,e)?t[e]:void 0}var bx=Cx,yx=t5,wx=Object.prototype,Ix=wx.hasOwnProperty;function Ex(e){var t=this.__data__;return yx?t[e]!==void 0:Ix.call(t,e)}var Sx=Ex,Ax=t5,xx="__lodash_hash_undefined__";function Fx(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ax&&t===void 0?xx:t,this}var Mx=Fx,zx=dx,kx=fx,Px=bx,Ox=Sx,Bx=Mx;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=zx,F0.prototype.delete=kx,F0.prototype.get=Px,F0.prototype.has=Ox,F0.prototype.set=Bx;var Lx=F0;function Tx(){this.__data__=[],this.size=0}var Rx=Tx;function Dx(e,t){return e===t||e!==e&&t!==t}var Zh=Dx,Vx=Zh;function Hx(e,t){for(var n=e.length;n--;)if(Vx(e[n][0],t))return n;return-1}var n5=Hx,Nx=n5,Qx=Array.prototype,Wx=Qx.splice;function jx(e){var t=this.__data__,n=Nx(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Wx.call(t,n,1),--this.size,!0}var Gx=jx,Ux=n5;function Kx(e){var t=this.__data__,n=Ux(t,e);return n<0?void 0:t[n][1]}var Yx=Kx,qx=n5;function Jx(e){return qx(this.__data__,e)>-1}var Zx=Jx,Xx=n5;function _x(e,t){var n=this.__data__,r=Xx(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var $x=_x,eF=Rx,tF=Gx,nF=Yx,rF=Zx,oF=$x;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=eF,M0.prototype.delete=tF,M0.prototype.get=nF,M0.prototype.has=rF,M0.prototype.set=oF;var r5=M0,iF=E3,aF=ka,lF=iF(aF,"Map"),E9=lF,Xh=Lx,sF=r5,cF=E9;function uF(){this.size=0,this.__data__={hash:new Xh,map:new(cF||sF),string:new Xh}}var dF=uF;function hF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fF=hF,pF=fF;function gF(e,t){var n=e.__data__;return pF(t)?n[typeof t=="string"?"string":"hash"]:n.map}var o5=gF,mF=o5;function vF(e){var t=mF(this,e).delete(e);return this.size-=t?1:0,t}var CF=vF,bF=o5;function yF(e){return bF(this,e).get(e)}var wF=yF,IF=o5;function EF(e){return IF(this,e).has(e)}var SF=EF,AF=o5;function xF(e,t){var n=AF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var FF=xF,MF=dF,zF=CF,kF=wF,PF=SF,OF=FF;function z0(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])}}z0.prototype.clear=MF,z0.prototype.delete=zF,z0.prototype.get=kF,z0.prototype.has=PF,z0.prototype.set=OF;var S9=z0,_h=S9,BF="Expected a function";function A9(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(BF);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(A9.Cache||_h),n}A9.Cache=_h;var LF=A9,TF=LF,RF=500;function DF(e){var t=TF(e,function(r){return n.size===RF&&n.clear(),r}),n=t.cache;return t}var VF=DF,HF=VF,NF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QF=/\\(\\)?/g,WF=HF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(NF,function(n,r,i,l){t.push(i?l.replace(QF,"$1"):r||n)}),t}),jF=WF;function GF(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 UF=GF,$h=e5,KF=UF,YF=yl,qF=b9,JF=1/0,ef=$h?$h.prototype:void 0,tf=ef?ef.toString:void 0;function nf(e){if(typeof e=="string")return e;if(YF(e))return KF(e,nf)+"";if(qF(e))return tf?tf.call(e):"";var t=e+"";return t=="0"&&1/e==-JF?"-0":t}var ZF=nf,XF=ZF;function _F(e){return e==null?"":XF(e)}var gs=_F,$F=yl,eM=y9,tM=jF,nM=gs;function rM(e,t){return $F(e)?e:eM(e,t)?[e]:tM(nM(e))}var rf=rM,oM=fs,iM=ps,aM="[object Arguments]";function lM(e){return iM(e)&&oM(e)==aM}var sM=lM,of=sM,cM=ps,af=Object.prototype,uM=af.hasOwnProperty,dM=af.propertyIsEnumerable,hM=of(function(){return arguments}())?of:function(e){return cM(e)&&uM.call(e,"callee")&&!dM.call(e,"callee")},lf=hM,fM=9007199254740991,pM=/^(?:0|[1-9]\d*)$/;function gM(e,t){var n=typeof e;return t=t==null?fM:t,!!t&&(n=="number"||n!="symbol"&&pM.test(e))&&e>-1&&e%1==0&&e<t}var sf=gM,mM=9007199254740991;function vM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mM}var x9=vM,CM=b9,bM=1/0;function yM(e){if(typeof e=="string"||CM(e))return e;var t=e+"";return t=="0"&&1/e==-bM?"-0":t}var i5=yM,wM=rf,IM=lf,EM=yl,SM=sf,AM=x9,xM=i5;function FM(e,t,n){t=wM(t,e);for(var r=-1,i=t.length,l=!1;++r<i;){var c=xM(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&&AM(i)&&SM(c,i)&&(EM(e)||IM(e)))}var cf=FM,MM=XS,zM=cf;function kM(e,t){return e!=null&&zM(e,t,MM)}var a5=kM;const uf=e=>e&&e.__isYupSchema__;class PM{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(d=>d===r);this.fn=function(...u){let d=u.pop(),g=u.pop(),h=c(...u)?i:l;if(!!h)return typeof h=="function"?h(g):g.concat(h.resolve(d))}}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(!uf(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}function df(e){return e==null?[]:[].concat(e)}function F9(){return F9=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},F9.apply(this,arguments)}let OM=/\$\{\s*(\w+)\s*\}/g;class oo extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=F9({},n,{path:r})),typeof t=="string"?t.replace(OM,(i,l)=>ds(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=[],df(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 BM=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function M9(e,t){let{endEarly:n,tests:r,args:i,value:l,errors:c,sort:u,path:d}=e,g=BM(t),h=r.length;const m=[];if(c=c||[],!h)return c.length?g(new oo(c,l,d)):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(--h<=0){if(m.length&&(u&&m.sort(u),c.length&&m.push(...c),c=m),c.length){g(new oo(c,l,d),l);return}g(null,l)}})}}var LM=E3,TM=function(){try{var e=LM(Object,"defineProperty");return e({},"",{}),e}catch{}}(),RM=TM,hf=RM;function DM(e,t,n){t=="__proto__"&&hf?hf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ff=DM;function VM(e){return function(t,n,r){for(var i=-1,l=Object(t),c=r(t),u=c.length;u--;){var d=c[e?u:++i];if(n(l[d],d,l)===!1)break}return t}}var HM=VM,NM=HM,QM=NM(),WM=QM;function jM(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var GM=jM,l5={exports:{}};function UM(){return!1}var KM=UM;(function(e,t){var n=ka,r=KM,i=t&&!t.nodeType&&t,l=i&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===i,u=c?n.Buffer:void 0,d=u?u.isBuffer:void 0,g=d||r;e.exports=g})(l5,l5.exports);var YM=fs,qM=x9,JM=ps,ZM="[object Arguments]",XM="[object Array]",_M="[object Boolean]",$M="[object Date]",ez="[object Error]",tz="[object Function]",nz="[object Map]",rz="[object Number]",oz="[object Object]",iz="[object RegExp]",az="[object Set]",lz="[object String]",sz="[object WeakMap]",cz="[object ArrayBuffer]",uz="[object DataView]",dz="[object Float32Array]",hz="[object Float64Array]",fz="[object Int8Array]",pz="[object Int16Array]",gz="[object Int32Array]",mz="[object Uint8Array]",vz="[object Uint8ClampedArray]",Cz="[object Uint16Array]",bz="[object Uint32Array]",Vn={};Vn[dz]=Vn[hz]=Vn[fz]=Vn[pz]=Vn[gz]=Vn[mz]=Vn[vz]=Vn[Cz]=Vn[bz]=!0,Vn[ZM]=Vn[XM]=Vn[cz]=Vn[_M]=Vn[uz]=Vn[$M]=Vn[ez]=Vn[tz]=Vn[nz]=Vn[rz]=Vn[oz]=Vn[iz]=Vn[az]=Vn[lz]=Vn[sz]=!1;function yz(e){return JM(e)&&qM(e.length)&&!!Vn[YM(e)]}var wz=yz;function Iz(e){return function(t){return e(t)}}var Ez=Iz,z9={exports:{}};(function(e,t){var n=Qh,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 d=i&&i.require&&i.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=u})(z9,z9.exports);var Sz=wz,Az=Ez,pf=z9.exports,gf=pf&&pf.isTypedArray,xz=gf?Az(gf):Sz,mf=xz,Fz=GM,Mz=lf,zz=yl,kz=l5.exports,Pz=sf,Oz=mf,Bz=Object.prototype,Lz=Bz.hasOwnProperty;function Tz(e,t){var n=zz(e),r=!n&&Mz(e),i=!n&&!r&&kz(e),l=!n&&!r&&!i&&Oz(e),c=n||r||i||l,u=c?Fz(e.length,String):[],d=u.length;for(var g in e)(t||Lz.call(e,g))&&!(c&&(g=="length"||i&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Pz(g,d)))&&u.push(g);return u}var Rz=Tz,Dz=Object.prototype;function Vz(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Dz;return e===n}var Hz=Vz;function Nz(e,t){return function(n){return e(t(n))}}var Qz=Nz,Wz=Qz,jz=Wz(Object.keys,Object),Gz=jz,Uz=Hz,Kz=Gz,Yz=Object.prototype,qz=Yz.hasOwnProperty;function Jz(e){if(!Uz(e))return Kz(e);var t=[];for(var n in Object(e))qz.call(e,n)&&n!="constructor"&&t.push(n);return t}var Zz=Jz,Xz=Kh,_z=x9;function $z(e){return e!=null&&_z(e.length)&&!Xz(e)}var ek=$z,tk=Rz,nk=Zz,rk=ek;function ok(e){return rk(e)?tk(e):nk(e)}var k9=ok,ik=WM,ak=k9;function lk(e,t){return e&&ik(e,t,ak)}var vf=lk,sk=r5;function ck(){this.__data__=new sk,this.size=0}var uk=ck;function dk(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var hk=dk;function fk(e){return this.__data__.get(e)}var pk=fk;function gk(e){return this.__data__.has(e)}var mk=gk,vk=r5,Ck=E9,bk=S9,yk=200;function wk(e,t){var n=this.__data__;if(n instanceof vk){var r=n.__data__;if(!Ck||r.length<yk-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bk(r)}return n.set(e,t),this.size=n.size,this}var Ik=wk,Ek=r5,Sk=uk,Ak=hk,xk=pk,Fk=mk,Mk=Ik;function k0(e){var t=this.__data__=new Ek(e);this.size=t.size}k0.prototype.clear=Sk,k0.prototype.delete=Ak,k0.prototype.get=xk,k0.prototype.has=Fk,k0.prototype.set=Mk;var Cf=k0,zk="__lodash_hash_undefined__";function kk(e){return this.__data__.set(e,zk),this}var Pk=kk;function Ok(e){return this.__data__.has(e)}var Bk=Ok,Lk=S9,Tk=Pk,Rk=Bk;function s5(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Lk;++t<n;)this.add(e[t])}s5.prototype.add=s5.prototype.push=Tk,s5.prototype.has=Rk;var Dk=s5;function Vk(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 Hk=Vk;function Nk(e,t){return e.has(t)}var Qk=Nk,Wk=Dk,jk=Hk,Gk=Qk,Uk=1,Kk=2;function Yk(e,t,n,r,i,l){var c=n&Uk,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var g=l.get(e),h=l.get(t);if(g&&h)return g==t&&h==e;var m=-1,v=!0,w=n&Kk?new Wk: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(!jk(t,function(x,M){if(!Gk(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 bf=Yk,qk=ka,Jk=qk.Uint8Array,Zk=Jk;function Xk(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var _k=Xk;function $k(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var eP=$k,yf=e5,wf=Zk,tP=Zh,nP=bf,rP=_k,oP=eP,iP=1,aP=2,lP="[object Boolean]",sP="[object Date]",cP="[object Error]",uP="[object Map]",dP="[object Number]",hP="[object RegExp]",fP="[object Set]",pP="[object String]",gP="[object Symbol]",mP="[object ArrayBuffer]",vP="[object DataView]",If=yf?yf.prototype:void 0,P9=If?If.valueOf:void 0;function CP(e,t,n,r,i,l,c){switch(n){case vP:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mP:return!(e.byteLength!=t.byteLength||!l(new wf(e),new wf(t)));case lP:case sP:case dP:return tP(+e,+t);case cP:return e.name==t.name&&e.message==t.message;case hP:case pP:return e==t+"";case uP:var u=rP;case fP:var d=r&iP;if(u||(u=oP),e.size!=t.size&&!d)return!1;var g=c.get(e);if(g)return g==t;r|=aP,c.set(e,t);var h=nP(u(e),u(t),r,i,l,c);return c.delete(e),h;case gP:if(P9)return P9.call(e)==P9.call(t)}return!1}var bP=CP;function yP(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var wP=yP,IP=wP,EP=yl;function SP(e,t,n){var r=t(e);return EP(e)?r:IP(r,n(e))}var AP=SP;function xP(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 FP=xP;function MP(){return[]}var zP=MP,kP=FP,PP=zP,OP=Object.prototype,BP=OP.propertyIsEnumerable,Ef=Object.getOwnPropertySymbols,LP=Ef?function(e){return e==null?[]:(e=Object(e),kP(Ef(e),function(t){return BP.call(e,t)}))}:PP,TP=LP,RP=AP,DP=TP,VP=k9;function HP(e){return RP(e,VP,DP)}var NP=HP,Sf=NP,QP=1,WP=Object.prototype,jP=WP.hasOwnProperty;function GP(e,t,n,r,i,l){var c=n&QP,u=Sf(e),d=u.length,g=Sf(t),h=g.length;if(d!=h&&!c)return!1;for(var m=d;m--;){var v=u[m];if(!(c?v in t:jP.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<d;){v=u[m];var x=e[v],M=t[v];if(r)var A=c?r(M,x,v,t,e,l):r(x,M,v,e,t,l);if(!(A===void 0?x===M||i(x,M,n,r,l):A)){b=!1;break}F||(F=v=="constructor")}if(b&&!F){var k=e.constructor,D=t.constructor;k!=D&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof D=="function"&&D instanceof D)&&(b=!1)}return l.delete(e),l.delete(t),b}var UP=GP,KP=E3,YP=ka,qP=KP(YP,"DataView"),JP=qP,ZP=E3,XP=ka,_P=ZP(XP,"Promise"),$P=_P,eO=E3,tO=ka,nO=eO(tO,"Set"),rO=nO,oO=E3,iO=ka,aO=oO(iO,"WeakMap"),lO=aO,O9=JP,B9=E9,L9=$P,T9=rO,R9=lO,Af=fs,P0=qh,xf="[object Map]",sO="[object Object]",Ff="[object Promise]",Mf="[object Set]",zf="[object WeakMap]",kf="[object DataView]",cO=P0(O9),uO=P0(B9),dO=P0(L9),hO=P0(T9),fO=P0(R9),S3=Af;(O9&&S3(new O9(new ArrayBuffer(1)))!=kf||B9&&S3(new B9)!=xf||L9&&S3(L9.resolve())!=Ff||T9&&S3(new T9)!=Mf||R9&&S3(new R9)!=zf)&&(S3=function(e){var t=Af(e),n=t==sO?e.constructor:void 0,r=n?P0(n):"";if(r)switch(r){case cO:return kf;case uO:return xf;case dO:return Ff;case hO:return Mf;case fO:return zf}return t});var pO=S3,D9=Cf,gO=bf,mO=bP,vO=UP,Pf=pO,Of=yl,Bf=l5.exports,CO=mf,bO=1,Lf="[object Arguments]",Tf="[object Array]",c5="[object Object]",yO=Object.prototype,Rf=yO.hasOwnProperty;function wO(e,t,n,r,i,l){var c=Of(e),u=Of(t),d=c?Tf:Pf(e),g=u?Tf:Pf(t);d=d==Lf?c5:d,g=g==Lf?c5:g;var h=d==c5,m=g==c5,v=d==g;if(v&&Bf(e)){if(!Bf(t))return!1;c=!0,h=!1}if(v&&!h)return l||(l=new D9),c||CO(e)?gO(e,t,n,r,i,l):mO(e,t,d,n,r,i,l);if(!(n&bO)){var w=h&&Rf.call(e,"__wrapped__"),C=m&&Rf.call(t,"__wrapped__");if(w||C){var b=w?e.value():e,F=C?t.value():t;return l||(l=new D9),i(b,F,n,r,l)}}return v?(l||(l=new D9),vO(e,t,n,r,i,l)):!1}var IO=wO,EO=IO,Df=ps;function Vf(e,t,n,r,i){return e===t?!0:e==null||t==null||!Df(e)&&!Df(t)?e!==e&&t!==t:EO(e,t,n,r,Vf,i)}var Hf=Vf,SO=Cf,AO=Hf,xO=1,FO=2;function MO(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 d=u[0],g=e[d],h=u[1];if(c&&u[2]){if(g===void 0&&!(d in e))return!1}else{var m=new SO;if(r)var v=r(g,h,d,e,t,m);if(!(v===void 0?AO(h,g,xO|FO,r,m):v))return!1}}return!0}var zO=MO,kO=w9;function PO(e){return e===e&&!kO(e)}var Nf=PO,OO=Nf,BO=k9;function LO(e){for(var t=BO(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,OO(i)]}return t}var TO=LO;function RO(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Qf=RO,DO=zO,VO=TO,HO=Qf;function NO(e){var t=VO(e);return t.length==1&&t[0][2]?HO(t[0][0],t[0][1]):function(n){return n===e||DO(n,e,t)}}var QO=NO,WO=rf,jO=i5;function GO(e,t){t=WO(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[jO(t[n++])];return n&&n==r?e:void 0}var Wf=GO,UO=Wf;function KO(e,t,n){var r=e==null?void 0:UO(e,t);return r===void 0?n:r}var YO=KO;function qO(e,t){return e!=null&&t in Object(e)}var JO=qO,ZO=JO,XO=cf;function _O(e,t){return e!=null&&XO(e,t,ZO)}var $O=_O,eB=Hf,tB=YO,nB=$O,rB=y9,oB=Nf,iB=Qf,aB=i5,lB=1,sB=2;function cB(e,t){return rB(e)&&oB(t)?iB(aB(e),t):function(n){var r=tB(n,e);return r===void 0&&r===t?nB(n,e):eB(t,r,lB|sB)}}var uB=cB;function dB(e){return e}var hB=dB;function fB(e){return function(t){return t==null?void 0:t[e]}}var pB=fB,gB=Wf;function mB(e){return function(t){return gB(t,e)}}var vB=mB,CB=pB,bB=vB,yB=y9,wB=i5;function IB(e){return yB(e)?CB(wB(e)):bB(e)}var EB=IB,SB=QO,AB=uB,xB=hB,FB=yl,MB=EB;function zB(e){return typeof e=="function"?e:e==null?xB:typeof e=="object"?FB(e)?AB(e[0],e[1]):SB(e):MB(e)}var jf=zB,kB=ff,PB=vf,OB=jf;function BB(e,t){var n={};return t=OB(t),PB(e,function(r,i,l){kB(n,i,t(r,i,l))}),n}var Gf=BB;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 LB=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Uf=/^\d+$/,TB=/^\d/,RB=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,DB=/^\s*(['"]?)(.*?)(\1)\s*$/,V9=512,Kf=new A3(V9),Yf=new A3(V9),qf=new A3(V9),u5={Cache:A3,split:N9,normalizePath:H9,setter:function(e){var t=H9(e);return Yf.get(e)||Yf.set(e,function(r,i){for(var l=0,c=t.length,u=r;l<c-1;){var d=t[l];if(d==="__proto__"||d==="constructor"||d==="prototype")return r;u=u[t[l++]]}u[t[l]]=i})},getter:function(e,t){var n=H9(e);return qf.get(e)||qf.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+(Q9(n)||Uf.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){VB(Array.isArray(e)?e:N9(e),t,n)}};function H9(e){return Kf.get(e)||Kf.set(e,N9(e).map(function(t){return t.replace(DB,"$2")}))}function N9(e){return e.match(LB)||[""]}function VB(e,t,n){var r=e.length,i,l,c,u;for(l=0;l<r;l++)i=e[l],i&&(QB(i)&&(i='"'+i+'"'),u=Q9(i),c=!u&&/^\d+$/.test(i),t.call(n,i,u,c,l,e))}function Q9(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function HB(e){return e.match(TB)&&!e.match(Uf)}function NB(e){return RB.test(e)}function QB(e){return!Q9(e)&&(HB(e)||NB(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 WB(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:d,sync:g}=n,h=WB(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(R){return wl.isRef(R)?R.getValue(i,b,F):R}function M(R={}){const V=Gf(h5({value:i,originalValue:d,label:c,path:R.path||l},w,R.params),x),H=new oo(oo.formatError(R.message||C,V),i,V.path,R.type||m);return H.params=V,H}let A=h5({path:l,parent:b,type:m,createError:M,resolve:x,options:u,originalValue:d},h);if(!g){try{Promise.resolve(v.call(A,i,A)).then(R=>{oo.isError(R)?r(R):R?r(null,R):r(M())}).catch(r)}catch(R){r(R)}return}let k;try{var D;if(k=v.call(A,i,A),typeof((D=k)==null?void 0:D.then)=="function")throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(R){r(R);return}oo.isError(k)?r(k):k?r(null,k):r(M())}return t.OPTIONS=e,t}let jB=e=>e.substr(0,e.length-1).substr(1);function GB(e,t,n,r=n){let i,l,c;return t?(u5.forEach(t,(u,d,g)=>{let h=d?jB(u):u;if(e=e.resolve({context:r,parent:i,value:n}),e.innerType){let m=g?parseInt(h,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[h])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[h],e=e.fields[h]}l=h,c=d?"["+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=m9(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=ds(t),c=ds(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:d=this.spec.strict,abortEarly:g=this.spec.abortEarly}=n,h=t;d||(h=this._cast(h,Po({assert:!1},n)));let m={value:h,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),M9({args:m,value:h,path:l,sync:i,tests:v,endEarly:g},C=>{if(C)return void r(C,h);M9({tests:this.tests.concat(w),args:m,path:l,sync:i,value:h,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,d)=>{u?c(u):l(d)}))}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):m9(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=df(t).map(l=>new wl(l));return i.forEach(l=>{l.isSibling&&r.deps.push(l.key)}),r.conditions.push(new PM(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(d=>d.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}=GB(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 UB=/^((([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,KB=/^((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,YB=/^(?:[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,qB=e=>hi(e)||e===e.trim(),JB={}.toString();function x3(){return new Jf}class Jf 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===JB?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(UB,{name:"email",message:t,excludeEmptyString:!0})}url(t=di.url){return this.matches(KB,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=di.uuid){return this.matches(YB,{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:qB})}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=Jf.prototype;var ZB=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function XB(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=ZB.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 Zf=new Date(""),_B=e=>Object.prototype.toString.call(e)==="[object Date]";class Xf extends P2{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:(t=XB(t),isNaN(t)?Zf:new Date(t))})})}_typeCheck(t){return _B(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=v9.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=v9.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)}})}}Xf.INVALID_DATE=Zf,Xf.prototype;function $B(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 eL=$B;function tL(e){return function(t){return e==null?void 0:e[t]}}var nL=tL,rL=nL,oL={\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"},iL=rL(oL),aL=iL,lL=aL,sL=gs,cL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uL="\\u0300-\\u036f",dL="\\ufe20-\\ufe2f",hL="\\u20d0-\\u20ff",fL=uL+dL+hL,pL="["+fL+"]",gL=RegExp(pL,"g");function mL(e){return e=sL(e),e&&e.replace(cL,lL).replace(gL,"")}var vL=mL,CL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function bL(e){return e.match(CL)||[]}var yL=bL,wL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function IL(e){return wL.test(e)}var EL=IL,_f="\\ud800-\\udfff",SL="\\u0300-\\u036f",AL="\\ufe20-\\ufe2f",xL="\\u20d0-\\u20ff",FL=SL+AL+xL,$f="\\u2700-\\u27bf",ep="a-z\\xdf-\\xf6\\xf8-\\xff",ML="\\xac\\xb1\\xd7\\xf7",zL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kL="\\u2000-\\u206f",PL=" \\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",tp="A-Z\\xc0-\\xd6\\xd8-\\xde",OL="\\ufe0e\\ufe0f",np=ML+zL+kL+PL,rp="['\u2019]",op="["+np+"]",BL="["+FL+"]",ip="\\d+",LL="["+$f+"]",ap="["+ep+"]",lp="[^"+_f+np+ip+$f+ep+tp+"]",TL="\\ud83c[\\udffb-\\udfff]",RL="(?:"+BL+"|"+TL+")",DL="[^"+_f+"]",sp="(?:\\ud83c[\\udde6-\\uddff]){2}",cp="[\\ud800-\\udbff][\\udc00-\\udfff]",O0="["+tp+"]",VL="\\u200d",up="(?:"+ap+"|"+lp+")",HL="(?:"+O0+"|"+lp+")",dp="(?:"+rp+"(?:d|ll|m|re|s|t|ve))?",hp="(?:"+rp+"(?:D|LL|M|RE|S|T|VE))?",fp=RL+"?",pp="["+OL+"]?",NL="(?:"+VL+"(?:"+[DL,sp,cp].join("|")+")"+pp+fp+")*",QL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",WL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jL=pp+fp+NL,GL="(?:"+[LL,sp,cp].join("|")+")"+jL,UL=RegExp([O0+"?"+ap+"+"+dp+"(?="+[op,O0,"$"].join("|")+")",HL+"+"+hp+"(?="+[op,O0+up,"$"].join("|")+")",O0+"?"+up+"+"+dp,O0+"+"+hp,WL,QL,ip,GL].join("|"),"g");function KL(e){return e.match(UL)||[]}var YL=KL,qL=yL,JL=EL,ZL=gs,XL=YL;function _L(e,t,n){return e=ZL(e),t=n?void 0:t,t===void 0?JL(e)?XL(e):qL(e):e.match(t)||[]}var $L=_L,eT=eL,tT=vL,nT=$L,rT="['\u2019]",oT=RegExp(rT,"g");function iT(e){return function(t){return eT(nT(tT(t).replace(oT,"")),e,"")}}var gp=iT,aT=gp,lT=aT(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),mp=lT;function sT(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 cT=sT,uT=cT;function dT(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:uT(e,t,n)}var hT=dT,fT="\\ud800-\\udfff",pT="\\u0300-\\u036f",gT="\\ufe20-\\ufe2f",mT="\\u20d0-\\u20ff",vT=pT+gT+mT,CT="\\ufe0e\\ufe0f",bT="\\u200d",yT=RegExp("["+bT+fT+vT+CT+"]");function wT(e){return yT.test(e)}var vp=wT;function IT(e){return e.split("")}var ET=IT,Cp="\\ud800-\\udfff",ST="\\u0300-\\u036f",AT="\\ufe20-\\ufe2f",xT="\\u20d0-\\u20ff",FT=ST+AT+xT,MT="\\ufe0e\\ufe0f",zT="["+Cp+"]",W9="["+FT+"]",j9="\\ud83c[\\udffb-\\udfff]",kT="(?:"+W9+"|"+j9+")",bp="[^"+Cp+"]",yp="(?:\\ud83c[\\udde6-\\uddff]){2}",wp="[\\ud800-\\udbff][\\udc00-\\udfff]",PT="\\u200d",Ip=kT+"?",Ep="["+MT+"]?",OT="(?:"+PT+"(?:"+[bp,yp,wp].join("|")+")"+Ep+Ip+")*",BT=Ep+Ip+OT,LT="(?:"+[bp+W9+"?",W9,yp,wp,zT].join("|")+")",TT=RegExp(j9+"(?="+j9+")|"+LT+BT,"g");function RT(e){return e.match(TT)||[]}var DT=RT,VT=ET,HT=vp,NT=DT;function QT(e){return HT(e)?NT(e):VT(e)}var WT=QT,jT=hT,GT=vp,UT=WT,KT=gs;function YT(e){return function(t){t=KT(t);var n=GT(t)?UT(t):void 0,r=n?n[0]:t.charAt(0),i=n?jT(n,1).join(""):t.slice(1);return r[e]()+i}}var qT=YT,JT=qT,ZT=JT("toUpperCase"),XT=ZT,_T=gs,$T=XT;function eR(e){return $T(_T(e).toLowerCase())}var tR=eR,nR=tR,rR=gp,oR=rR(function(e,t,n){return t=t.toLowerCase(),e+(n?nR(t):t)}),iR=oR,aR=ff,lR=vf,sR=jf;function cR(e,t){var n={};return t=sR(t),lR(e,function(r,i,l){aR(n,t(r,i,l),r)}),n}var uR=cR,G9={exports:{}};G9.exports=function(e){return Sp(dR(e),e)},G9.exports.array=Sp;function Sp(e,t){var n=e.length,r=new Array(n),i={},l=n,c=hR(t),u=fR(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]||d(e[l],l,new Set);return r;function d(g,h,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[h]){i[h]=!0;var w=c.get(g)||new Set;if(w=Array.from(w),h=w.length){m.add(g);do{var C=w[--h];d(C,u.get(C),m)}while(h);m.delete(g)}r[--n]=g}}}function dR(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 hR(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 fR(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var pR=G9.exports;function gR(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([c,u])=>`${c}-${u}`));function l(c,u){let d=u5.split(c)[0];r.add(d),i.has(`${u}-${d}`)||n.push([u,d])}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):uf(u)&&"deps"in u&&u.deps.forEach(d=>l(d,c))}return pR.array(Array.from(r),n).reverse()}function Ap(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 xp(e){return(t,n)=>Ap(e,t)-Ap(e,n)}function B0(){return B0=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},B0.apply(this,arguments)}let Fp=e=>Object.prototype.toString.call(e)==="[object Object]";function mR(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const vR=xp([]);class Mp extends P2{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=vR,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 Fp(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)),d={},g=B0({},n,{parent:d,__validating:n.__validating||!1}),h=!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:d});let F="spec"in v?v.spec:void 0,x=F==null?void 0:F.strict;if(F!=null&&F.strip){h=h||m in i;continue}C=!n.__validating||!x?v.cast(i[m],g):i[m],C!==void 0&&(d[m]=C)}else w&&!c&&(d[m]=i[m]);d[m]!==i[m]&&(h=!0)}return h?d:i}_validate(t,n={},r){let i=[],{sync:l,from:c=[],originalValue:u=t,abortEarly:d=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,(h,m)=>{if(h){if(!oo.isError(h)||d)return void r(h,m);i.push(h)}if(!g||!Fp(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],B0({},n,{path:F,from:c,strict:!0,parent:m,originalValue:u[w]}),b);return}b(null)});M9({sync:l,tests:v,value:m,errors:i,endEarly:d,sort:this._sortErrors,path:n.path},r)})}clone(t){const n=super.clone(t);return n.fields=B0({},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=xp(Object.keys(i)),n.length&&(Array.isArray(n[0])||(n=[n]),r._excludedEdges=[...r._excludedEdges,...n]),r._nodes=gR(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=B0({},l),r||delete c[t],c[n]=i(l)),c})}noUnknown(t=!0,n=C9.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=mR(this.schema,i);return!t||l.length===0||this.createError({params:{unknown:l.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=C9.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>n&&uR(n,(r,i)=>t(i)))}camelCase(){return this.transformKeys(iR)}snakeCase(){return this.transformKeys(mp)}constantCase(){return this.transformKeys(t=>mp(t).toUpperCase())}describe(){let t=super.describe();return t.fields=Gf(this.fields,n=>n.describe()),t}}function zp(e){return new Mp(e)}zp.prototype=Mp.prototype;var kp=function(e,t,n){if(e&&"reportValidity"in e){var r=q1(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Pp=function(e,t){var n=function(i){var l=t.fields[i];l&&l.ref&&"reportValidity"in l.ref?kp(l.ref,i,e):l.refs&&l.refs.forEach(function(c){return kp(c,i,e)})};for(var r in t.fields)n(r)},CR=function(e,t){t.shouldUseNativeValidation&&Pp(e,t);var n={};for(var r in e){var i=q1(t.fields,r);An(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},bR=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 d=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(g){return l.shouldUseNativeValidation&&Pp({},l),{values:n.rawValues?r:g,errors:{}}}))}catch(g){return u(g)}return d&&d.then?d.then(void 0,u):d}(0,function(c){if(!c.inner)throw c;return{values:{},errors:CR((u=c,d=!l.shouldUseNativeValidation&&l.criteriaMode==="all",(u.inner||[]).reduce(function(g,h){if(g[h.path]||(g[h.path]={message:h.message,type:h.type}),d){var m=g[h.path].types,v=m&&m[h.type];g[h.path]=wh(h.path,d,g,h.type,v?[].concat(v,h.message):h.message)}return g},{})),l)};var u,d}))}catch(c){return Promise.reject(c)}}};function Op(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=Op(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=Op(e))&&(r&&(r+=" "),r+=t);return r}const ms=e=>typeof e=="number"&&!isNaN(e),F3=e=>typeof e=="string",O2=e=>typeof e=="function",g5=e=>F3(e)||O2(e)?e:null,U9=e=>g1.isValidElement(e)||F3(e)||O2(e)||ms(e);function yR(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:d,preventExitTransition:g,done:h,nodeRef:m,isIn:v}=c;const w=r?`${t}--${d}`:t,C=r?`${n}--${d}`:n,b=g1.useRef(0);return g1.useLayoutEffect(()=>{const F=m.current,x=w.split(" "),M=A=>{A.target===m.current&&(F.dispatchEvent(new Event("d")),F.removeEventListener("animationend",M),F.removeEventListener("animationcancel",M),b.current===0&&A.type!=="animationcancel"&&F.classList.remove(...x))};F.classList.add(...x),F.addEventListener("animationend",M),F.addEventListener("animationcancel",M)},[]),g1.useEffect(()=>{const F=m.current,x=()=>{F.removeEventListener("animationend",x),i?yR(F,h,l):h()};v||(g?x():(b.current=1,F.className+=` ${C}`,F.addEventListener("animationend",x)))},[v]),tt.default.createElement(tt.default.Fragment,null,u)}}function Bp(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 tt.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},K9={info:function(e){return tt.default.createElement(v5,{...e},tt.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 tt.default.createElement(v5,{...e},tt.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 tt.default.createElement(v5,{...e},tt.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 tt.default.createElement(v5,{...e},tt.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 tt.default.createElement("div",{className:"Toastify__spinner"})}};function wR(e){const[,t]=g1.useReducer(w=>w+1,0),[n,r]=g1.useState([]),i=g1.useRef(null),l=g1.useRef(new Map).current,c=w=>n.indexOf(w)!==-1,u=g1.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:c,getToast:w=>l.get(w)}).current;function d(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 h(){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(!U9(w)||function($){return!i.current||u.props.enableMultiContainer&&$.containerId!==u.props.containerId||l.has($.toastId)&&$.updateId==null}(x))return;const{toastId:M,updateId:A,data:k}=x,{props:D}=u,R=()=>g(M),V=A==null;V&&u.count++;const H={...D,style:D.toastStyle,key:u.toastKey++,...Object.fromEntries(Object.entries(x).filter($=>{let[Y,Q]=$;return Q!=null})),toastId:M,updateId:A,data:k,closeToast:R,isIn:!1,className:g5(x.className||D.toastClassName),bodyClassName:g5(x.bodyClassName||D.bodyClassName),progressClassName:g5(x.progressClassName||D.progressClassName),autoClose:!x.isLoading&&(Z=x.autoClose,J=D.autoClose,Z===!1||ms(Z)&&Z>0?Z:J),deleteToast(){const $=Bp(l.get(M),"removed");l.delete(M),Oo.emit(4,$);const Y=u.queue.length;if(u.count=M==null?u.count-u.displayedToast:u.count-1,u.count<0&&(u.count=0),Y>0){const Q=M==null?u.props.limit:1;if(Y===1||Q===1)u.displayedToast++,h();else{const U=Q>Y?Y:Q;u.displayedToast=U;for(let q=0;q<U;q++)h()}}else t()}};var Z,J;H.iconOut=function($){let{theme:Y,type:Q,isLoading:U,icon:q}=$,te=null;const _={theme:Y,type:Q};return q===!1||(O2(q)?te=q(_):g1.isValidElement(q)?te=g1.cloneElement(q,_):F3(q)||ms(q)?te=q:U?te=K9.spinner():(ee=>ee in K9)(Q)&&(te=K9[Q](_))),te}(H),O2(x.onOpen)&&(H.onOpen=x.onOpen),O2(x.onClose)&&(H.onClose=x.onClose),H.closeButton=D.closeButton,x.closeButton===!1||U9(x.closeButton)?H.closeButton=x.closeButton:x.closeButton===!0&&(H.closeButton=!U9(D.closeButton)||D.closeButton);let X=w;g1.isValidElement(w)&&!F3(w.type)?X=g1.cloneElement(w,{closeToast:R,toastProps:H,data:k}):O2(w)&&(X=w({closeToast:R,toastProps:H,data:k})),D.limit&&D.limit>0&&u.count>D.limit&&V?u.queue.push({toastContent:X,toastProps:H,staleId:F}):ms(b)?setTimeout(()=>{v(X,H,F)},b):v(X,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(A=>A!==b)),Oo.emit(4,Bp(x,x.props.updateId==null?"added":"updated"))}return g1.useEffect(()=>(u.containerId=e.containerId,Oo.cancelEmit(3).on(0,m).on(1,w=>i.current&&g(w)).on(5,d).emit(2,u),()=>{l.clear(),Oo.emit(3,u)}),[]),g1.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 Lp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Tp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function IR(e){const[t,n]=g1.useState(!1),[r,i]=g1.useState(!1),l=g1.useRef(null),c=g1.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=g1.useRef(e),{autoClose:d,pauseOnHover:g,closeToast:h,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 D=l.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=D.getBoundingClientRect(),D.style.transition="",c.x=Lp(k.nativeEvent),c.y=Tp(k.nativeEvent),e.draggableDirection==="x"?(c.start=c.x,c.removalDistance=D.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=D.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function C(k){if(c.boundingRect){const{top:D,bottom:R,left:V,right:H}=c.boundingRect;k.nativeEvent.type!=="touchend"&&e.pauseOnHover&&c.x>=V&&c.x<=H&&c.y>=D&&c.y<=R?F():b()}}function b(){n(!0)}function F(){n(!1)}function x(k){const D=l.current;c.canDrag&&D&&(c.didMove=!0,t&&F(),c.x=Lp(k),c.y=Tp(k),c.delta=e.draggableDirection==="x"?c.x-c.start:c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),D.style.transform=`translate${e.draggableDirection}(${c.delta}px)`,D.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"}}g1.useEffect(()=>{u.current=e}),g1.useEffect(()=>(l.current&&l.current.addEventListener("d",b,{once:!0}),O2(e.onOpen)&&e.onOpen(g1.isValidElement(e.children)&&e.children.props),()=>{const k=u.current;O2(k.onClose)&&k.onClose(g1.isValidElement(k.children)&&k.children.props)}),[]),g1.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 A={onMouseDown:w,onTouchStart:w,onMouseUp:C,onTouchEnd:C};return d&&g&&(A.onMouseEnter=F,A.onMouseLeave=b),v&&(A.onClick=k=>{m&&m(k),c.canCloseOnClick&&h()}),{playToast:b,pauseToast:F,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:A}}function Rp(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return tt.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},tt.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},tt.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 ER(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:g,rtl:h,isIn:m,theme:v}=e;const w=l||d&&g===0,C={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:w?0:1};d&&(C.transform=`scaleX(${g})`);const b=Il("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${v}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":h}),F=O2(c)?c({rtl:h,type:i,defaultClassName:b}):Il(b,c);return tt.default.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:F,style:C,[d&&g>=1?"onTransitionEnd":"onAnimationEnd"]:d&&g<1?null:()=>{m&&r()}})}const SR=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=IR(e),{closeButton:l,children:c,autoClose:u,onClick:d,type:g,hideProgressBar:h,closeToast:m,transition:v,position:w,className:C,style:b,bodyClassName:F,bodyStyle:x,progressClassName:M,progressStyle:A,updateId:k,role:D,progress:R,rtl:V,toastId:H,deleteToast:Z,isIn:J,isLoading:X,iconOut:$,closeOnClick:Y,theme:Q}=e,U=Il("Toastify__toast",`Toastify__toast-theme--${Q}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":V},{"Toastify__toast--close-on-click":Y}),q=O2(C)?C({rtl:V,position:w,type:g,defaultClassName:U}):Il(U,C),te=!!R||!u,_={closeToast:m,type:g,theme:Q};let ee=null;return l===!1||(ee=O2(l)?l(_):g1.isValidElement(l)?g1.cloneElement(l,_):Rp(_)),tt.default.createElement(v,{isIn:J,done:Z,position:w,preventExitTransition:n,nodeRef:r},tt.default.createElement("div",{id:H,onClick:d,className:q,...i,style:b,ref:r},tt.default.createElement("div",{...J&&{role:D},className:O2(F)?F({type:g}):Il("Toastify__toast-body",F),style:x},$!=null&&tt.default.createElement("div",{className:Il("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!X})},$),tt.default.createElement("div",null,c)),ee,tt.default.createElement(ER,{...k&&!te?{key:`pb-${k}`}:{},rtl:V,theme:Q,delay:u,isRunning:t,isIn:J,closeToast:m,hide:h,type:g,style:A,className:M,controlledProgress:te,progress:R||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}},AR=m5(C5("bounce",!0));m5(C5("slide",!0)),m5(C5("zoom")),m5(C5("flip"));const M3=g1.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=wR(e),{className:l,style:c,rtl:u,containerId:d}=e;function g(h){const m=Il("Toastify__toast-container",`Toastify__toast-container--${h}`,{"Toastify__toast-container--rtl":u});return O2(l)?l({position:h,rtl:u,defaultClassName:m}):Il(m,g5(l))}return g1.useEffect(()=>{t&&(t.current=r.current)},[]),tt.default.createElement("div",{ref:r,className:"Toastify",id:d},n((h,m)=>{const v=m.length?{...c}:{...c,pointerEvents:"none"};return tt.default.createElement("div",{className:g(h),style:v,key:`container-${h}`},m.map((w,C)=>{let{content:b,props:F}=w;return tt.default.createElement(SR,{...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:AR,autoClose:5e3,closeButton:Rp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Y9,z3=new Map,vs=[],xR=1;function Dp(){return""+xR++}function FR(e){return e&&(F3(e.toastId)||ms(e.toastId))?e.toastId:Dp()}function Cs(e,t){return z3.size>0?Oo.emit(0,e,t):vs.push({content:e,options:t}),t.toastId}function b5(e,t){return{...t,type:t&&t.type||e,toastId:FR(t)}}function y5(e){return(t,n)=>Cs(t,b5(e,n))}function xn(e,t){return Cs(e,b5("default",t))}xn.loading=(e,t)=>Cs(e,b5("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),xn.promise=function(e,t,n){let r,{pending:i,error:l,success:c}=t;i&&(r=F3(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(h,m,v)=>{if(m==null)return void xn.dismiss(r);const w={type:h,...u,...n,data:v},C=F3(m)?{render:m}:m;return r?xn.update(r,{...w,...C}):xn(C.render,{...w,...C}),v},g=O2(e)?e():e;return g.then(h=>d("success",c,h)).catch(h=>d("error",l,h)),g},xn.success=y5("success"),xn.info=y5("info"),xn.error=y5("error"),xn.warning=y5("warning"),xn.warn=xn.warning,xn.dark=(e,t)=>Cs(e,b5("default",{theme:"dark",...t})),xn.dismiss=e=>{z3.size>0?Oo.emit(1,e):vs=vs.filter(t=>e!=null&&t.options.toastId!==e)},xn.clearWaitingQueue=function(e){return e===void 0&&(e={}),Oo.emit(5,e)},xn.isActive=e=>{let t=!1;return z3.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},xn.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:l}=i;const c=z3.get(l||Y9);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:Dp()};l.toastId!==e&&(l.staleId=e);const c=l.render||i;delete l.render,Cs(c,l)}},0)},xn.done=e=>{xn.update(e,{progress:1})},xn.onChange=e=>(Oo.on(4,e),()=>{Oo.off(4,e)}),xn.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"},xn.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Oo.on(2,e=>{Y9=e.containerId||e,z3.set(Y9,e),vs.forEach(t=>{Oo.emit(0,t.content,t.options)}),vs=[]}).on(3,e=>{z3.delete(e.containerId||e),z3.size===0&&Oo.off(0).off(1).off(5)});function bs(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),xn.error(t,{position:"top-center",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})}var MR=Object.prototype.hasOwnProperty,zR=Object.prototype.toString;function kR(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==zR)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(MR.call(e,t))return!1;return!0}}return!1}var Hr=kR;const PR=async e=>{const t={method:"GET",path:"api/v1/kyc-kit/check_ip",inProduction:e};try{return(await y3(t)).data}catch(n){return console.log(n),n}};function w5(e){const[t,n]=g1.useState(null);return g1.useEffect(()=>{PR(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 d={method:"POST",inProduction:r,path:`api/v1/kyc-kit/events/register/${t}/${i}/${l}/${n}`,bodyParams:e,customHeaders:u};try{return(await y3(d)).data}catch(g){return g}},El="COUNTRY_NOT_ALLOWED",I5="Pa\xEDs no autorizado",k3="TOKEN",P3="CLIENTID",Sl="USE_VPN",E5="Uso de Proxy o VPN no permitido",S5="yes",q9="Limite de consultas - Verificar con el proveedor",Vp=1920,Hp=1080,Np=(e,t,n,r,i,l,c,u,d,g)=>{const[h,m]=g1.useState(!1),[v,w]=g1.useState(e===void 0?P3:t===void 0?k3:""),[C,b]=g1.useState(""),[F,x]=g1.useState([]),[M,A]=g1.useState(""),[k,D]=g1.useState({}),[R,V]=g1.useState(null),H=w5(n),[Z,J]=g1.useState(null),X=g1.useRef(null),[$,Y]=g1.useState({});console.log(l),g1.useEffect(()=>{l&&(H==null?void 0:H.data_connection.isocode)&&l.length!==0&&!l.some(se=>se.value===(H==null?void 0:H.data_connection.isocode))&&(w(El),b(I5)),c&&(H==null?void 0:H.data_connection.proxy)==S5&&(w(Sl),b(E5)),l&&H&&V(H==null?void 0:H.data_connection.isocode)},[H,l,c]);const Q=()=>{te(),w(""),b(""),x([]),A(""),m(!1),J(null),Y({}),g([])},U=zp({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:q,reset:te,handleSubmit:_,formState:{errors:ee}}=$4({resolver:bR(U),mode:"onBlur",defaultValues:{first_name:"",second_name:"",first_last_name:"",second_last_name:"",country:"",birth_date:""}}),re=async se=>{const{first_name:me,second_name:Ie,first_last_name:Fe,second_last_name:We,birth_date:Oe}=se;m(!0);try{const qe=await t(),Se={method:"POST",path:"api/v2/kyc-kit/blacklist/validate",customHeaders:{client_id:e,access_token:qe},inProduction:n,bodyParams:{first_name:me===""?null:me,second_name:Ie===""?null:Ie,first_last_name:Fe===""?null:Fe,second_last_name:We===""?null:We,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null}};D(Se.bodyParams);const Je=await y3(Se),{match:o1,message:e1,status:m1,payload:a1}=Je.data.data,O1={request_match:o1,request_payload:a1,first_name:me===""?null:me,second_name:Ie===""?null:Ie,first_last_name:Fe===""?null:Fe,second_last_name:We===""?null:We,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null};await Bo({data:{...O1,status_code:200},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Hr(o1)?b(u||e1):(x(o1),b(d||e1)),await g(o1),w(m1)}catch(qe){let r1="";const{status:Se}=qe.response;await Bo({data:{dataReq:k,status_code:400},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),qe.response.data.message?r1=qe.response.data:Se===500&&(r1="Error de consulta - Verificar con el proveedor"),m(null),b(r1),w(Se),bs(qe)}finally{m(!1)}},we=se=>{J(se.target.files[0])},{handleSubmit:Ce}=$4();return{onSendSubmitDocument:re,onSubmitCsv:async()=>{m(!0);try{const se=await t(),Ie={method:"POST",path:"api/v1/kyc-kit/blacklist/batch",customHeaders:{client_id:e,access_token:se,"Content-Type":"multipart/form-data"},inProduction:n,bodyParams:{csvFile:Z}};D(Ie.bodyParams);const Fe=await y3(Ie),{batchSize:We,id:Oe,startTime:qe}=Fe.data.data;await Bo({data:{...{csvFile:Z,batch_id:Oe,start_time:qe,batch_size:We},status_code:200},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),b(d||"La verificai\xF3n est\xE1 en proceso. Por favor copie y guarde este ID para su control!"),w(Fe.data.message),Y(Fe.data.data),await g({batchSize:We,id:Oe,startTime:qe})}catch(se){let me="Error interno de la aplicai\xF3n";const{status:Ie,data:Fe}=se.response;await Bo({data:{csvFile:Z,status_code:Ie},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Fe.message?me=Fe.message:Ie===500&&(me="Error de consulta - Verificar con el proveedor"),m(null),b(me),w(Ie),bs(se)}finally{m(!1)}},handleSubmitCsv:Ce,simpleHandleSubmit:_,isLoading:h,errorsDoc:ee,controlDoc:q,status:v,message:C,listMatch:F,select:M,setSelect:A,clearState:Q,dataReq:k,countryCode:R,handleFileUpload:we,csvFile:Z,setCsvFile:J,fileInputRef:X,batchData:$,copyFunction:se=>{navigator.clipboard.writeText(se),xn.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:d=this.spec.strict,abortEarly:g=this.spec.abortEarly}=n,h=t;d||(h=this._cast(h,Po({assert:!1},n)));let m={value:h,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),M9({args:m,value:h,path:l,sync:i,tests:v,endEarly:g},C=>{if(C)return void r(C,h);M9({tests:this.tests.concat(w),args:m,path:l,sync:i,value:h,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,d)=>{u?c(u):l(d)}))}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):m9(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=df(t).map(l=>new wl(l));return i.forEach(l=>{l.isSibling&&r.deps.push(l.key)}),r.conditions.push(new PM(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(d=>d.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}=GB(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 UB=/^((([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,KB=/^((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,YB=/^(?:[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,qB=e=>hi(e)||e===e.trim(),JB={}.toString();function x3(){return new Jf}class Jf 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===JB?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(UB,{name:"email",message:t,excludeEmptyString:!0})}url(t=di.url){return this.matches(KB,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=di.uuid){return this.matches(YB,{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:qB})}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=Jf.prototype;var ZB=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function XB(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=ZB.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 Zf=new Date(""),_B=e=>Object.prototype.toString.call(e)==="[object Date]";class Xf extends P2{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(t){return this.isType(t)?t:(t=XB(t),isNaN(t)?Zf:new Date(t))})})}_typeCheck(t){return _B(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=v9.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=v9.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)}})}}Xf.INVALID_DATE=Zf,Xf.prototype;function $B(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 eL=$B;function tL(e){return function(t){return e==null?void 0:e[t]}}var nL=tL,rL=nL,oL={\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"},iL=rL(oL),aL=iL,lL=aL,sL=gs,cL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uL="\\u0300-\\u036f",dL="\\ufe20-\\ufe2f",hL="\\u20d0-\\u20ff",fL=uL+dL+hL,pL="["+fL+"]",gL=RegExp(pL,"g");function mL(e){return e=sL(e),e&&e.replace(cL,lL).replace(gL,"")}var vL=mL,CL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function bL(e){return e.match(CL)||[]}var yL=bL,wL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function IL(e){return wL.test(e)}var EL=IL,_f="\\ud800-\\udfff",SL="\\u0300-\\u036f",AL="\\ufe20-\\ufe2f",xL="\\u20d0-\\u20ff",FL=SL+AL+xL,$f="\\u2700-\\u27bf",ep="a-z\\xdf-\\xf6\\xf8-\\xff",ML="\\xac\\xb1\\xd7\\xf7",zL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kL="\\u2000-\\u206f",PL=" \\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",tp="A-Z\\xc0-\\xd6\\xd8-\\xde",OL="\\ufe0e\\ufe0f",np=ML+zL+kL+PL,rp="['\u2019]",op="["+np+"]",BL="["+FL+"]",ip="\\d+",LL="["+$f+"]",ap="["+ep+"]",lp="[^"+_f+np+ip+$f+ep+tp+"]",TL="\\ud83c[\\udffb-\\udfff]",RL="(?:"+BL+"|"+TL+")",DL="[^"+_f+"]",sp="(?:\\ud83c[\\udde6-\\uddff]){2}",cp="[\\ud800-\\udbff][\\udc00-\\udfff]",O0="["+tp+"]",VL="\\u200d",up="(?:"+ap+"|"+lp+")",HL="(?:"+O0+"|"+lp+")",dp="(?:"+rp+"(?:d|ll|m|re|s|t|ve))?",hp="(?:"+rp+"(?:D|LL|M|RE|S|T|VE))?",fp=RL+"?",pp="["+OL+"]?",NL="(?:"+VL+"(?:"+[DL,sp,cp].join("|")+")"+pp+fp+")*",QL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",WL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jL=pp+fp+NL,GL="(?:"+[LL,sp,cp].join("|")+")"+jL,UL=RegExp([O0+"?"+ap+"+"+dp+"(?="+[op,O0,"$"].join("|")+")",HL+"+"+hp+"(?="+[op,O0+up,"$"].join("|")+")",O0+"?"+up+"+"+dp,O0+"+"+hp,WL,QL,ip,GL].join("|"),"g");function KL(e){return e.match(UL)||[]}var YL=KL,qL=yL,JL=EL,ZL=gs,XL=YL;function _L(e,t,n){return e=ZL(e),t=n?void 0:t,t===void 0?JL(e)?XL(e):qL(e):e.match(t)||[]}var $L=_L,eT=eL,tT=vL,nT=$L,rT="['\u2019]",oT=RegExp(rT,"g");function iT(e){return function(t){return eT(nT(tT(t).replace(oT,"")),e,"")}}var gp=iT,aT=gp,lT=aT(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),mp=lT;function sT(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 cT=sT,uT=cT;function dT(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:uT(e,t,n)}var hT=dT,fT="\\ud800-\\udfff",pT="\\u0300-\\u036f",gT="\\ufe20-\\ufe2f",mT="\\u20d0-\\u20ff",vT=pT+gT+mT,CT="\\ufe0e\\ufe0f",bT="\\u200d",yT=RegExp("["+bT+fT+vT+CT+"]");function wT(e){return yT.test(e)}var vp=wT;function IT(e){return e.split("")}var ET=IT,Cp="\\ud800-\\udfff",ST="\\u0300-\\u036f",AT="\\ufe20-\\ufe2f",xT="\\u20d0-\\u20ff",FT=ST+AT+xT,MT="\\ufe0e\\ufe0f",zT="["+Cp+"]",W9="["+FT+"]",j9="\\ud83c[\\udffb-\\udfff]",kT="(?:"+W9+"|"+j9+")",bp="[^"+Cp+"]",yp="(?:\\ud83c[\\udde6-\\uddff]){2}",wp="[\\ud800-\\udbff][\\udc00-\\udfff]",PT="\\u200d",Ip=kT+"?",Ep="["+MT+"]?",OT="(?:"+PT+"(?:"+[bp,yp,wp].join("|")+")"+Ep+Ip+")*",BT=Ep+Ip+OT,LT="(?:"+[bp+W9+"?",W9,yp,wp,zT].join("|")+")",TT=RegExp(j9+"(?="+j9+")|"+LT+BT,"g");function RT(e){return e.match(TT)||[]}var DT=RT,VT=ET,HT=vp,NT=DT;function QT(e){return HT(e)?NT(e):VT(e)}var WT=QT,jT=hT,GT=vp,UT=WT,KT=gs;function YT(e){return function(t){t=KT(t);var n=GT(t)?UT(t):void 0,r=n?n[0]:t.charAt(0),i=n?jT(n,1).join(""):t.slice(1);return r[e]()+i}}var qT=YT,JT=qT,ZT=JT("toUpperCase"),XT=ZT,_T=gs,$T=XT;function eR(e){return $T(_T(e).toLowerCase())}var tR=eR,nR=tR,rR=gp,oR=rR(function(e,t,n){return t=t.toLowerCase(),e+(n?nR(t):t)}),iR=oR,aR=ff,lR=vf,sR=jf;function cR(e,t){var n={};return t=sR(t),lR(e,function(r,i,l){aR(n,t(r,i,l),r)}),n}var uR=cR,G9={exports:{}};G9.exports=function(e){return Sp(dR(e),e)},G9.exports.array=Sp;function Sp(e,t){var n=e.length,r=new Array(n),i={},l=n,c=hR(t),u=fR(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]||d(e[l],l,new Set);return r;function d(g,h,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[h]){i[h]=!0;var w=c.get(g)||new Set;if(w=Array.from(w),h=w.length){m.add(g);do{var C=w[--h];d(C,u.get(C),m)}while(h);m.delete(g)}r[--n]=g}}}function dR(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 hR(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 fR(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var pR=G9.exports;function gR(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([c,u])=>`${c}-${u}`));function l(c,u){let d=u5.split(c)[0];r.add(d),i.has(`${u}-${d}`)||n.push([u,d])}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):uf(u)&&"deps"in u&&u.deps.forEach(d=>l(d,c))}return pR.array(Array.from(r),n).reverse()}function Ap(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 xp(e){return(t,n)=>Ap(e,t)-Ap(e,n)}function B0(){return B0=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},B0.apply(this,arguments)}let Fp=e=>Object.prototype.toString.call(e)==="[object Object]";function mR(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const vR=xp([]);class Mp extends P2{constructor(t){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=vR,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 Fp(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)),d={},g=B0({},n,{parent:d,__validating:n.__validating||!1}),h=!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:d});let F="spec"in v?v.spec:void 0,x=F==null?void 0:F.strict;if(F!=null&&F.strip){h=h||m in i;continue}C=!n.__validating||!x?v.cast(i[m],g):i[m],C!==void 0&&(d[m]=C)}else w&&!c&&(d[m]=i[m]);d[m]!==i[m]&&(h=!0)}return h?d:i}_validate(t,n={},r){let i=[],{sync:l,from:c=[],originalValue:u=t,abortEarly:d=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,(h,m)=>{if(h){if(!oo.isError(h)||d)return void r(h,m);i.push(h)}if(!g||!Fp(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],B0({},n,{path:F,from:c,strict:!0,parent:m,originalValue:u[w]}),b);return}b(null)});M9({sync:l,tests:v,value:m,errors:i,endEarly:d,sort:this._sortErrors,path:n.path},r)})}clone(t){const n=super.clone(t);return n.fields=B0({},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=xp(Object.keys(i)),n.length&&(Array.isArray(n[0])||(n=[n]),r._excludedEdges=[...r._excludedEdges,...n]),r._nodes=gR(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=B0({},l),r||delete c[t],c[n]=i(l)),c})}noUnknown(t=!0,n=C9.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=mR(this.schema,i);return!t||l.length===0||this.createError({params:{unknown:l.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=C9.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>n&&uR(n,(r,i)=>t(i)))}camelCase(){return this.transformKeys(iR)}snakeCase(){return this.transformKeys(mp)}constantCase(){return this.transformKeys(t=>mp(t).toUpperCase())}describe(){let t=super.describe();return t.fields=Gf(this.fields,n=>n.describe()),t}}function zp(e){return new Mp(e)}zp.prototype=Mp.prototype;var kp=function(e,t,n){if(e&&"reportValidity"in e){var r=q1(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Pp=function(e,t){var n=function(i){var l=t.fields[i];l&&l.ref&&"reportValidity"in l.ref?kp(l.ref,i,e):l.refs&&l.refs.forEach(function(c){return kp(c,i,e)})};for(var r in t.fields)n(r)},CR=function(e,t){t.shouldUseNativeValidation&&Pp(e,t);var n={};for(var r in e){var i=q1(t.fields,r);An(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},bR=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 d=(t.context,Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(g){return l.shouldUseNativeValidation&&Pp({},l),{values:n.rawValues?r:g,errors:{}}}))}catch(g){return u(g)}return d&&d.then?d.then(void 0,u):d}(0,function(c){if(!c.inner)throw c;return{values:{},errors:CR((u=c,d=!l.shouldUseNativeValidation&&l.criteriaMode==="all",(u.inner||[]).reduce(function(g,h){if(g[h.path]||(g[h.path]={message:h.message,type:h.type}),d){var m=g[h.path].types,v=m&&m[h.type];g[h.path]=wh(h.path,d,g,h.type,v?[].concat(v,h.message):h.message)}return g},{})),l)};var u,d}))}catch(c){return Promise.reject(c)}}};function Op(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=Op(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=Op(e))&&(r&&(r+=" "),r+=t);return r}const ms=e=>typeof e=="number"&&!isNaN(e),F3=e=>typeof e=="string",O2=e=>typeof e=="function",g5=e=>F3(e)||O2(e)?e:null,U9=e=>g1.isValidElement(e)||F3(e)||O2(e)||ms(e);function yR(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:d,preventExitTransition:g,done:h,nodeRef:m,isIn:v}=c;const w=r?`${t}--${d}`:t,C=r?`${n}--${d}`:n,b=g1.useRef(0);return g1.useLayoutEffect(()=>{const F=m.current,x=w.split(" "),M=A=>{A.target===m.current&&(F.dispatchEvent(new Event("d")),F.removeEventListener("animationend",M),F.removeEventListener("animationcancel",M),b.current===0&&A.type!=="animationcancel"&&F.classList.remove(...x))};F.classList.add(...x),F.addEventListener("animationend",M),F.addEventListener("animationcancel",M)},[]),g1.useEffect(()=>{const F=m.current,x=()=>{F.removeEventListener("animationend",x),i?yR(F,h,l):h()};v||(g?x():(b.current=1,F.className+=` ${C}`,F.addEventListener("animationend",x)))},[v]),tt.default.createElement(tt.default.Fragment,null,u)}}function Bp(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 tt.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},K9={info:function(e){return tt.default.createElement(v5,{...e},tt.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 tt.default.createElement(v5,{...e},tt.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 tt.default.createElement(v5,{...e},tt.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 tt.default.createElement(v5,{...e},tt.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 tt.default.createElement("div",{className:"Toastify__spinner"})}};function wR(e){const[,t]=g1.useReducer(w=>w+1,0),[n,r]=g1.useState([]),i=g1.useRef(null),l=g1.useRef(new Map).current,c=w=>n.indexOf(w)!==-1,u=g1.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:c,getToast:w=>l.get(w)}).current;function d(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 h(){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(!U9(w)||function($){return!i.current||u.props.enableMultiContainer&&$.containerId!==u.props.containerId||l.has($.toastId)&&$.updateId==null}(x))return;const{toastId:M,updateId:A,data:k}=x,{props:D}=u,R=()=>g(M),V=A==null;V&&u.count++;const H={...D,style:D.toastStyle,key:u.toastKey++,...Object.fromEntries(Object.entries(x).filter($=>{let[Y,Q]=$;return Q!=null})),toastId:M,updateId:A,data:k,closeToast:R,isIn:!1,className:g5(x.className||D.toastClassName),bodyClassName:g5(x.bodyClassName||D.bodyClassName),progressClassName:g5(x.progressClassName||D.progressClassName),autoClose:!x.isLoading&&(Z=x.autoClose,J=D.autoClose,Z===!1||ms(Z)&&Z>0?Z:J),deleteToast(){const $=Bp(l.get(M),"removed");l.delete(M),Oo.emit(4,$);const Y=u.queue.length;if(u.count=M==null?u.count-u.displayedToast:u.count-1,u.count<0&&(u.count=0),Y>0){const Q=M==null?u.props.limit:1;if(Y===1||Q===1)u.displayedToast++,h();else{const U=Q>Y?Y:Q;u.displayedToast=U;for(let q=0;q<U;q++)h()}}else t()}};var Z,J;H.iconOut=function($){let{theme:Y,type:Q,isLoading:U,icon:q}=$,te=null;const _={theme:Y,type:Q};return q===!1||(O2(q)?te=q(_):g1.isValidElement(q)?te=g1.cloneElement(q,_):F3(q)||ms(q)?te=q:U?te=K9.spinner():(ee=>ee in K9)(Q)&&(te=K9[Q](_))),te}(H),O2(x.onOpen)&&(H.onOpen=x.onOpen),O2(x.onClose)&&(H.onClose=x.onClose),H.closeButton=D.closeButton,x.closeButton===!1||U9(x.closeButton)?H.closeButton=x.closeButton:x.closeButton===!0&&(H.closeButton=!U9(D.closeButton)||D.closeButton);let X=w;g1.isValidElement(w)&&!F3(w.type)?X=g1.cloneElement(w,{closeToast:R,toastProps:H,data:k}):O2(w)&&(X=w({closeToast:R,toastProps:H,data:k})),D.limit&&D.limit>0&&u.count>D.limit&&V?u.queue.push({toastContent:X,toastProps:H,staleId:F}):ms(b)?setTimeout(()=>{v(X,H,F)},b):v(X,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(A=>A!==b)),Oo.emit(4,Bp(x,x.props.updateId==null?"added":"updated"))}return g1.useEffect(()=>(u.containerId=e.containerId,Oo.cancelEmit(3).on(0,m).on(1,w=>i.current&&g(w)).on(5,d).emit(2,u),()=>{l.clear(),Oo.emit(3,u)}),[]),g1.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 Lp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Tp(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function IR(e){const[t,n]=g1.useState(!1),[r,i]=g1.useState(!1),l=g1.useRef(null),c=g1.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=g1.useRef(e),{autoClose:d,pauseOnHover:g,closeToast:h,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 D=l.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=D.getBoundingClientRect(),D.style.transition="",c.x=Lp(k.nativeEvent),c.y=Tp(k.nativeEvent),e.draggableDirection==="x"?(c.start=c.x,c.removalDistance=D.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=D.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function C(k){if(c.boundingRect){const{top:D,bottom:R,left:V,right:H}=c.boundingRect;k.nativeEvent.type!=="touchend"&&e.pauseOnHover&&c.x>=V&&c.x<=H&&c.y>=D&&c.y<=R?F():b()}}function b(){n(!0)}function F(){n(!1)}function x(k){const D=l.current;c.canDrag&&D&&(c.didMove=!0,t&&F(),c.x=Lp(k),c.y=Tp(k),c.delta=e.draggableDirection==="x"?c.x-c.start:c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),D.style.transform=`translate${e.draggableDirection}(${c.delta}px)`,D.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"}}g1.useEffect(()=>{u.current=e}),g1.useEffect(()=>(l.current&&l.current.addEventListener("d",b,{once:!0}),O2(e.onOpen)&&e.onOpen(g1.isValidElement(e.children)&&e.children.props),()=>{const k=u.current;O2(k.onClose)&&k.onClose(g1.isValidElement(k.children)&&k.children.props)}),[]),g1.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 A={onMouseDown:w,onTouchStart:w,onMouseUp:C,onTouchEnd:C};return d&&g&&(A.onMouseEnter=F,A.onMouseLeave=b),v&&(A.onClick=k=>{m&&m(k),c.canCloseOnClick&&h()}),{playToast:b,pauseToast:F,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:A}}function Rp(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return tt.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),t(i)},"aria-label":r},tt.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},tt.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 ER(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:g,rtl:h,isIn:m,theme:v}=e;const w=l||d&&g===0,C={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:w?0:1};d&&(C.transform=`scaleX(${g})`);const b=Il("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${v}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":h}),F=O2(c)?c({rtl:h,type:i,defaultClassName:b}):Il(b,c);return tt.default.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:F,style:C,[d&&g>=1?"onTransitionEnd":"onAnimationEnd"]:d&&g<1?null:()=>{m&&r()}})}const SR=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i}=IR(e),{closeButton:l,children:c,autoClose:u,onClick:d,type:g,hideProgressBar:h,closeToast:m,transition:v,position:w,className:C,style:b,bodyClassName:F,bodyStyle:x,progressClassName:M,progressStyle:A,updateId:k,role:D,progress:R,rtl:V,toastId:H,deleteToast:Z,isIn:J,isLoading:X,iconOut:$,closeOnClick:Y,theme:Q}=e,U=Il("Toastify__toast",`Toastify__toast-theme--${Q}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":V},{"Toastify__toast--close-on-click":Y}),q=O2(C)?C({rtl:V,position:w,type:g,defaultClassName:U}):Il(U,C),te=!!R||!u,_={closeToast:m,type:g,theme:Q};let ee=null;return l===!1||(ee=O2(l)?l(_):g1.isValidElement(l)?g1.cloneElement(l,_):Rp(_)),tt.default.createElement(v,{isIn:J,done:Z,position:w,preventExitTransition:n,nodeRef:r},tt.default.createElement("div",{id:H,onClick:d,className:q,...i,style:b,ref:r},tt.default.createElement("div",{...J&&{role:D},className:O2(F)?F({type:g}):Il("Toastify__toast-body",F),style:x},$!=null&&tt.default.createElement("div",{className:Il("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!X})},$),tt.default.createElement("div",null,c)),ee,tt.default.createElement(ER,{...k&&!te?{key:`pb-${k}`}:{},rtl:V,theme:Q,delay:u,isRunning:t,isIn:J,closeToast:m,hide:h,type:g,style:A,className:M,controlledProgress:te,progress:R||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}},AR=m5(C5("bounce",!0));m5(C5("slide",!0)),m5(C5("zoom")),m5(C5("flip"));const M3=g1.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=wR(e),{className:l,style:c,rtl:u,containerId:d}=e;function g(h){const m=Il("Toastify__toast-container",`Toastify__toast-container--${h}`,{"Toastify__toast-container--rtl":u});return O2(l)?l({position:h,rtl:u,defaultClassName:m}):Il(m,g5(l))}return g1.useEffect(()=>{t&&(t.current=r.current)},[]),tt.default.createElement("div",{ref:r,className:"Toastify",id:d},n((h,m)=>{const v=m.length?{...c}:{...c,pointerEvents:"none"};return tt.default.createElement("div",{className:g(h),style:v,key:`container-${h}`},m.map((w,C)=>{let{content:b,props:F}=w;return tt.default.createElement(SR,{...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:AR,autoClose:5e3,closeButton:Rp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Y9,z3=new Map,vs=[],xR=1;function Dp(){return""+xR++}function FR(e){return e&&(F3(e.toastId)||ms(e.toastId))?e.toastId:Dp()}function Cs(e,t){return z3.size>0?Oo.emit(0,e,t):vs.push({content:e,options:t}),t.toastId}function b5(e,t){return{...t,type:t&&t.type||e,toastId:FR(t)}}function y5(e){return(t,n)=>Cs(t,b5(e,n))}function xn(e,t){return Cs(e,b5("default",t))}xn.loading=(e,t)=>Cs(e,b5("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),xn.promise=function(e,t,n){let r,{pending:i,error:l,success:c}=t;i&&(r=F3(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(h,m,v)=>{if(m==null)return void xn.dismiss(r);const w={type:h,...u,...n,data:v},C=F3(m)?{render:m}:m;return r?xn.update(r,{...w,...C}):xn(C.render,{...w,...C}),v},g=O2(e)?e():e;return g.then(h=>d("success",c,h)).catch(h=>d("error",l,h)),g},xn.success=y5("success"),xn.info=y5("info"),xn.error=y5("error"),xn.warning=y5("warning"),xn.warn=xn.warning,xn.dark=(e,t)=>Cs(e,b5("default",{theme:"dark",...t})),xn.dismiss=e=>{z3.size>0?Oo.emit(1,e):vs=vs.filter(t=>e!=null&&t.options.toastId!==e)},xn.clearWaitingQueue=function(e){return e===void 0&&(e={}),Oo.emit(5,e)},xn.isActive=e=>{let t=!1;return z3.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},xn.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,i){let{containerId:l}=i;const c=z3.get(l||Y9);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:Dp()};l.toastId!==e&&(l.staleId=e);const c=l.render||i;delete l.render,Cs(c,l)}},0)},xn.done=e=>{xn.update(e,{progress:1})},xn.onChange=e=>(Oo.on(4,e),()=>{Oo.off(4,e)}),xn.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"},xn.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Oo.on(2,e=>{Y9=e.containerId||e,z3.set(Y9,e),vs.forEach(t=>{Oo.emit(0,t.content,t.options)}),vs=[]}).on(3,e=>{z3.delete(e.containerId||e),z3.size===0&&Oo.off(0).off(1).off(5)});function bs(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"),xn.error(t,{position:"top-center",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0})}var MR=Object.prototype.hasOwnProperty,zR=Object.prototype.toString;function kR(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==zR)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(MR.call(e,t))return!1;return!0}}return!1}var Hr=kR;const PR=async e=>{const t={method:"GET",path:"api/v1/kyc-kit/check_ip",inProduction:e};try{return(await y3(t)).data}catch(n){return console.log(n),n}};function w5(e){const[t,n]=g1.useState(null);return g1.useEffect(()=>{PR(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 d={method:"POST",inProduction:r,path:`api/v1/kyc-kit/events/register/${t}/${i}/${l}/${n}`,bodyParams:e,customHeaders:u};try{return(await y3(d)).data}catch(g){return g}},El="COUNTRY_NOT_ALLOWED",I5="Pa\xEDs no autorizado",k3="TOKEN",P3="CLIENTID",Sl="USE_VPN",E5="Uso de Proxy o VPN no permitido",S5="yes",q9="Limite de consultas - Verificar con el proveedor",Vp=1920,Hp=1080,Np=(e,t,n,r,i,l,c,u,d,g)=>{const[h,m]=g1.useState(!1),[v,w]=g1.useState(e===void 0?P3:t===void 0?k3:""),[C,b]=g1.useState(""),[F,x]=g1.useState([]),[M,A]=g1.useState(""),[k,D]=g1.useState({}),[R,V]=g1.useState(null),H=w5(n),[Z,J]=g1.useState(null),X=g1.useRef(null),[$,Y]=g1.useState({});console.log(l),g1.useEffect(()=>{l&&(H==null?void 0:H.data_connection.isocode)&&l.length!==0&&!l.some(se=>se.value===(H==null?void 0:H.data_connection.isocode))&&(w(El),b(I5)),c&&(H==null?void 0:H.data_connection.proxy)==S5&&(w(Sl),b(E5)),l&&H&&V(H==null?void 0:H.data_connection.isocode)},[H,l,c]);const Q=()=>{te(),w(""),b(""),x([]),A(""),m(!1),J(null),Y({}),g([])},U=zp({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:q,reset:te,handleSubmit:_,formState:{errors:ee}}=$4({resolver:bR(U),mode:"onBlur",defaultValues:{first_name:"",second_name:"",first_last_name:"",second_last_name:"",country:"",birth_date:""}}),re=async se=>{const{first_name:me,second_name:Ie,first_last_name:Fe,second_last_name:We,birth_date:Oe}=se;m(!0);try{const qe=await t(),Se={method:"POST",path:"api/v2/kyc-kit/blacklist/validate",customHeaders:{client_id:e,access_token:qe},inProduction:n,bodyParams:{first_name:me===""?null:me,second_name:Ie===""?null:Ie,first_last_name:Fe===""?null:Fe,second_last_name:We===""?null:We,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null}};D(Se.bodyParams);const Je=await y3(Se),{match:o1,message:e1,status:m1,payload:a1}=Je.data.data,O1={request_match:o1,request_payload:a1,first_name:me===""?null:me,second_name:Ie===""?null:Ie,first_last_name:Fe===""?null:Fe,second_last_name:We===""?null:We,country:M===""?null:M,birth_date:Oe?Date.parse(Oe):null};await Bo({data:{...O1,status_code:200},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Hr(o1)?b(u||e1):(x(o1),b(d||e1)),await g(o1),w(m1)}catch(qe){let r1="";const{status:Se}=qe.response;await Bo({data:{dataReq:k,status_code:400},component:"blacklist",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),qe.response.data.message?r1=qe.response.data:Se===500&&(r1="Error de consulta - Verificar con el proveedor"),m(null),b(r1),w(Se),bs(qe)}finally{m(!1)}},we=se=>{J(se.target.files[0])},{handleSubmit:Ce}=$4();return{onSendSubmitDocument:re,onSubmitCsv:async()=>{m(!0);try{const se=await t(),Ie={method:"POST",path:"api/v1/kyc-kit/blacklist/batch",customHeaders:{client_id:e,access_token:se,"Content-Type":"multipart/form-data"},inProduction:n,bodyParams:{csvFile:Z}};D(Ie.bodyParams);const Fe=await y3(Ie),{batchSize:We,id:Oe,startTime:qe}=Fe.data.data;await Bo({data:{...{csvFile:Z,batch_id:Oe,start_time:qe,batch_size:We},status_code:200},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),b(d||"La verificai\xF3n est\xE1 en proceso. Por favor copie y guarde este ID para su control!"),w(Fe.data.message),Y(Fe.data.data),await g({batchSize:We,id:Oe,startTime:qe})}catch(se){let me="Error interno de la aplicai\xF3n";const{status:Ie,data:Fe}=se.response;await Bo({data:{csvFile:Z,status_code:Ie},component:"blacklist_batch",eventId:i,source:r,inProduction:n,clientId:e,geolocation:H}),Fe.message?me=Fe.message:Ie===500&&(me="Error de consulta - Verificar con el proveedor"),m(null),b(me),w(Ie),bs(se)}finally{m(!1)}},handleSubmitCsv:Ce,simpleHandleSubmit:_,isLoading:h,errorsDoc:ee,controlDoc:q,status:v,message:C,listMatch:F,select:M,setSelect:A,clearState:Q,dataReq:k,countryCode:R,handleFileUpload:we,csvFile:Z,setCsvFile:J,fileInputRef:X,batchData:$,copyFunction:se=>{navigator.clipboard.writeText(se),xn.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
  `),v_,(t.vars||t).palette.action.hover));var b_=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:l,component:c="span",height:u,style:d,variant:g="text",width:h}=r,m=_e(r,p_),v=P({},r,{animation:i,component:c,variant:g,hasChildren:Boolean(m.children)}),w=g_(v);return o(C_,P({as:c,ref:n,className:v1(w.root,l),ownerState:v},m,{style:P({width:h,height:u},d)}))});function y_(e){return yt("MuiTooltip",e)}var kl=mt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const w_=["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 I_(e){return Math.round(e*1e5)/1e5}const E_=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${p1(l.split("-")[0])}`],arrow:["arrow"]};return D1(c,y_,t)},S_=h1(W3,{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"] .${kl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${kl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${kl.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"] .${kl.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),A_=h1("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${p1(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Jt(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:`${I_(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${kl.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"})),[`.${kl.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"})),[`.${kl.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${kl.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),x_=h1("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:Jt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let jc=!1;const aC=new Vs;let i4={x:0,y:0};function Gc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var a8=y.forwardRef(function(t,n){var r,i,l,c,u,d,g,h,m,v,w,C,b,F,x,M,A,k,D;const R=Ft({props:t,name:"MuiTooltip"}),{arrow:V=!1,children:H,components:Z={},componentsProps:J={},describeChild:X=!1,disableFocusListener:$=!1,disableHoverListener:Y=!1,disableInteractive:Q=!1,disableTouchListener:U=!1,enterDelay:q=100,enterNextDelay:te=0,enterTouchDelay:_=700,followCursor:ee=!1,id:re,leaveDelay:we=0,leaveTouchDelay:Ce=1500,onClose:Re,onOpen:ke,open:se,placement:me="bottom",PopperComponent:Ie,PopperProps:Fe={},slotProps:We={},slots:Oe={},title:qe,TransitionComponent:r1=Nc,TransitionProps:Se}=R,Je=_e(R,w_),o1=y.isValidElement(H)?H:o("span",{children:H}),e1=Ba(),m1=Hs(),[a1,O1]=y.useState(),[B1,Q1]=y.useState(null),he=y.useRef(!1),pe=Q||ee,be=K0(),Be=K0(),xe=K0(),Me=K0(),[ze,Le]=L3({controlled:se,default:!1,name:"Tooltip",state:"open"});let Qe=ze;const F1=Pn(re),I1=y.useRef(),Ve=Fn(()=>{I1.current!==void 0&&(document.body.style.WebkitUserSelect=I1.current,I1.current=void 0),Me.clear()});y.useEffect(()=>Ve,[Ve]);const b1=K1=>{aC.clear(),jc=!0,Le(!0),ke&&!Qe&&ke(K1)},i1=Fn(K1=>{aC.start(800+we,()=>{jc=!1}),Le(!1),Re&&Qe&&Re(K1),be.start(e1.transitions.duration.shortest,()=>{he.current=!1})}),w1=K1=>{he.current&&K1.type!=="touchstart"||(a1&&a1.removeAttribute("title"),Be.clear(),xe.clear(),q||jc&&te?Be.start(jc?te:q,()=>{b1(K1)}):b1(K1))},_1=K1=>{Be.clear(),xe.start(we,()=>{i1(K1)})},{isFocusVisibleRef:$1,onBlur:At,onFocus:Bt,ref:pt}=Gg(),[,Ct]=y.useState(!1),rn=K1=>{At(K1),$1.current===!1&&(Ct(!1),_1(K1))},Ln=K1=>{a1||O1(K1.currentTarget),Bt(K1),$1.current===!0&&(Ct(!0),w1(K1))},Tn=K1=>{he.current=!0;const kt=o1.props;kt.onTouchStart&&kt.onTouchStart(K1)},Ir=K1=>{Tn(K1),xe.clear(),be.clear(),Ve(),I1.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Me.start(_,()=>{document.body.style.WebkitUserSelect=I1.current,w1(K1)})},Qn=K1=>{o1.props.onTouchEnd&&o1.props.onTouchEnd(K1),Ve(),xe.start(Ce,()=>{i1(K1)})};y.useEffect(()=>{if(!Qe)return;function K1(kt){(kt.key==="Escape"||kt.key==="Esc")&&i1(kt)}return document.addEventListener("keydown",K1),()=>{document.removeEventListener("keydown",K1)}},[i1,Qe]);const Xn=vn(R3(o1),pt,O1,n);!qe&&qe!==0&&(Qe=!1);const y1=y.useRef(),Y1=K1=>{const kt=o1.props;kt.onMouseMove&&kt.onMouseMove(K1),i4={x:K1.clientX,y:K1.clientY},y1.current&&y1.current.update()},_t={},it=typeof qe=="string";X?(_t.title=!Qe&&it&&!Y?qe:null,_t["aria-describedby"]=Qe?F1:null):(_t["aria-label"]=it?qe:null,_t["aria-labelledby"]=Qe&&!it?F1:null);const Wn=P({},_t,Je,o1.props,{className:v1(Je.className,o1.props.className),onTouchStart:Tn,ref:Xn},ee?{onMouseMove:Y1}:{}),fr={};U||(Wn.onTouchStart=Ir,Wn.onTouchEnd=Qn),Y||(Wn.onMouseOver=Gc(w1,Wn.onMouseOver),Wn.onMouseLeave=Gc(_1,Wn.onMouseLeave),pe||(fr.onMouseOver=w1,fr.onMouseLeave=_1)),$||(Wn.onFocus=Gc(Ln,Wn.onFocus),Wn.onBlur=Gc(rn,Wn.onBlur),pe||(fr.onFocus=Ln,fr.onBlur=rn));const Gr=y.useMemo(()=>{var K1;let kt=[{name:"arrow",enabled:Boolean(B1),options:{element:B1,padding:4}}];return(K1=Fe.popperOptions)!=null&&K1.modifiers&&(kt=kt.concat(Fe.popperOptions.modifiers)),P({},Fe.popperOptions,{modifiers:kt})},[B1,Fe]),Rn=P({},R,{isRtl:m1,arrow:V,disableInteractive:pe,placement:me,PopperComponentProp:Ie,touch:he.current}),Br=E_(Rn),Er=(r=(i=Oe.popper)!=null?i:Z.Popper)!=null?r:S_,kn=(l=(c=(u=Oe.transition)!=null?u:Z.Transition)!=null?c:r1)!=null?l:Nc,Cn=(d=(g=Oe.tooltip)!=null?g:Z.Tooltip)!=null?d:A_,s1=(h=(m=Oe.arrow)!=null?m:Z.Arrow)!=null?h:x_,je=q0(Er,P({},Fe,(v=We.popper)!=null?v:J.popper,{className:v1(Br.popper,Fe==null?void 0:Fe.className,(w=(C=We.popper)!=null?C:J.popper)==null?void 0:w.className)}),Rn),L1=q0(kn,P({},Se,(b=We.transition)!=null?b:J.transition),Rn),j1=q0(Cn,P({},(F=We.tooltip)!=null?F:J.tooltip,{className:v1(Br.tooltip,(x=(M=We.tooltip)!=null?M:J.tooltip)==null?void 0:x.className)}),Rn),ft=q0(s1,P({},(A=We.arrow)!=null?A:J.arrow,{className:v1(Br.arrow,(k=(D=We.arrow)!=null?D:J.arrow)==null?void 0:k.className)}),Rn);return K(y.Fragment,{children:[y.cloneElement(o1,Wn),o(Er,P({as:Ie!=null?Ie:W3,placement:me,anchorEl:ee?{getBoundingClientRect:()=>({top:i4.y,left:i4.x,right:i4.x,bottom:i4.y,width:0,height:0})}:a1,popperRef:y1,open:a1?Qe:!1,id:F1,transition:!0},fr,je,{popperOptions:Gr,children:({TransitionProps:K1})=>o(kn,P({timeout:e1.transitions.duration.shorter},K1,L1,{children:K(Cn,P({},j1,{children:[qe,V?o(s1,P({},ft,{ref:Q1})):null]}))}))}))]})});function F_(e){return yt("MuiSwitch",e)}var t2=mt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);const M_=["className","color","edge","size","sx"],z_=e=>{const{classes:t,edge:n,size:r,color:i,checked:l,disabled:c}=e,u={root:["root",n&&`edge${p1(n)}`,`size${p1(r)}`],switchBase:["switchBase",`color${p1(i)}`,l&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=D1(u,F_,t);return P({},t,d)},k_=h1("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${p1(n.edge)}`],t[`size${p1(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)"}}}}]}),P_=h1(pv,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${t2.input}`]:t.input},n.color!=="default"&&t[`color${p1(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})`:Jt(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})`:Jt(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}}}))]})),O_=h1("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}`})),B_=h1("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 L_=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiSwitch"}),{className:i,color:l="primary",edge:c=!1,size:u="medium",sx:d}=r,g=_e(r,M_),h=P({},r,{color:l,edge:c,size:u}),m=z_(h),v=o(B_,{className:m.thumb,ownerState:h});return K(k_,{className:v1(m.root,i),sx:d,ownerState:h,children:[o(P_,P({type:"checkbox",icon:v,checkedIcon:v,ref:n,ownerState:h},g,{classes:P({},m,{root:m.switchBase})})),o(O_,{className:m.track,ownerState:h})]})});function T_(e){return yt("MuiTab",e)}var Pl=mt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const R_=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],D_=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:l,label:c,selected:u,disabled:d}=e,g={root:["root",l&&c&&"labelIcon",`textColor${p1(n)}`,r&&"fullWidth",i&&"wrapped",u&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return D1(g,T_,t)},V_=h1(Ta,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${p1(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Pl.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,[`& > .${Pl.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,[`&.${Pl.selected}`]:{opacity:1},[`&.${Pl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Pl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Pl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Pl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Pl.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 lC=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTab"}),{className:i,disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u,icon:d,iconPosition:g="top",indicator:h,label:m,onChange:v,onClick:w,onFocus:C,selected:b,selectionFollowsFocus:F,textColor:x="inherit",value:M,wrapped:A=!1}=r,k=_e(r,R_),D=P({},r,{disabled:l,disableFocusRipple:c,selected:b,icon:!!d,iconPosition:g,label:!!m,fullWidth:u,textColor:x,wrapped:A}),R=D_(D),V=d&&m&&y.isValidElement(d)?y.cloneElement(d,{className:v1(R.iconWrapper,d.props.className)}):d,H=J=>{!b&&v&&v(J,M),w&&w(J)},Z=J=>{F&&!b&&v&&v(J,M),C&&C(J)};return K(V_,P({focusRipple:!c,className:v1(R.root,i),ref:n,role:"tab","aria-selected":b,disabled:l,onClick:H,onFocus:Z,ownerState:D,tabIndex:b?0:-1},k,{children:[g==="top"||g==="start"?K(y.Fragment,{children:[V,m]}):K(y.Fragment,{children:[m,V]}),h]}))}),H_=y.createContext(),N_=y.createContext();function Q_(e){return yt("MuiTableCell",e)}var W_=mt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const j_=["align","className","component","padding","scope","size","sortDirection","variant"],G_=e=>{const{classes:t,variant:n,align:r,padding:i,size:l,stickyHeader:c}=e,u={root:["root",n,c&&"stickyHeader",r!=="inherit"&&`align${p1(r)}`,i!=="normal"&&`padding${p1(i)}`,`size${p1(l)}`]};return D1(u,Q_,t)},U_=h1("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${p1(n.size)}`],n.padding!=="normal"&&t[`padding${p1(n.padding)}`],n.align!=="inherit"&&t[`align${p1(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(Jt(e.palette.divider,1),.88):Ws(Jt(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",[`&.${W_.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 du=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTableCell"}),{align:i="inherit",className:l,component:c,padding:u,scope:d,size:g,sortDirection:h,variant:m}=r,v=_e(r,j_),w=y.useContext(H_),C=y.useContext(N_),b=C&&C.variant==="head";let F;c?F=c:F=b?"th":"td";let x=d;F==="td"?x=void 0:!x&&b&&(x="col");const M=m||C&&C.variant,A=P({},r,{align:i,component:F,padding:u||(w&&w.padding?w.padding:"normal"),size:g||(w&&w.size?w.size:"medium"),sortDirection:h,stickyHeader:M==="head"&&w&&w.stickyHeader,variant:M}),k=G_(A);let D=null;return h&&(D=h==="asc"?"ascending":"descending"),o(U_,P({as:F,ref:n,className:v1(k.root,l),"aria-sort":D,scope:x,ownerState:A},v))});function K_(e){return yt("MuiToolbar",e)}mt("MuiToolbar",["root","gutters","regular","dense"]);const Y_=["className","component","disableGutters","variant"],q_=e=>{const{classes:t,disableGutters:n,variant:r}=e;return D1({root:["root",!n&&"gutters",r]},K_,t)},J_=h1("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 Z_=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiToolbar"}),{className:i,component:l="div",disableGutters:c=!1,variant:u="regular"}=r,d=_e(r,Y_),g=P({},r,{component:l,disableGutters:c,variant:u}),h=q_(g);return o(J_,P({as:l,className:v1(h.root,i),ref:n,ownerState:g},d))}),sC=It(o("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),cC=It(o("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");const X_=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"];var __=y.forwardRef(function(t,n){var r,i,l,c,u,d,g,h;const{backIconButtonProps:m,count:v,disabled:w=!1,getItemAriaLabel:C,nextIconButtonProps:b,onPageChange:F,page:x,rowsPerPage:M,showFirstButton:A,showLastButton:k,slots:D={},slotProps:R={}}=t,V=_e(t,X_),H=Hs(),Z=We=>{F(We,0)},J=We=>{F(We,x-1)},X=We=>{F(We,x+1)},$=We=>{F(We,Math.max(0,Math.ceil(v/M)-1))},Y=(r=D.firstButton)!=null?r:Ra,Q=(i=D.lastButton)!=null?i:Ra,U=(l=D.nextButton)!=null?l:Ra,q=(c=D.previousButton)!=null?c:Ra,te=(u=D.firstButtonIcon)!=null?u:XX,_=(d=D.lastButtonIcon)!=null?d:_X,ee=(g=D.nextButtonIcon)!=null?g:cC,re=(h=D.previousButtonIcon)!=null?h:sC,we=H?Q:Y,Ce=H?U:q,Re=H?q:U,ke=H?Y:Q,se=H?R.lastButton:R.firstButton,me=H?R.nextButton:R.previousButton,Ie=H?R.previousButton:R.nextButton,Fe=H?R.firstButton:R.lastButton;return K("div",P({ref:n},V,{children:[A&&o(we,P({onClick:Z,disabled:w||x===0,"aria-label":C("first",x),title:C("first",x)},se,{children:H?o(_,P({},R.lastButtonIcon)):o(te,P({},R.firstButtonIcon))})),o(Ce,P({onClick:J,disabled:w||x===0,color:"inherit","aria-label":C("previous",x),title:C("previous",x)},me!=null?me:m,{children:H?o(ee,P({},R.nextButtonIcon)):o(re,P({},R.previousButtonIcon))})),o(Re,P({onClick:X,disabled:w||(v!==-1?x>=Math.ceil(v/M)-1:!1),color:"inherit","aria-label":C("next",x),title:C("next",x)},Ie!=null?Ie:b,{children:H?o(re,P({},R.previousButtonIcon)):o(ee,P({},R.nextButtonIcon))})),k&&o(ke,P({onClick:$,disabled:w||x>=Math.ceil(v/M)-1,"aria-label":C("last",x),title:C("last",x)},Fe,{children:H?o(te,P({},R.firstButtonIcon)):o(_,P({},R.lastButtonIcon))}))]}))});function $_(e){return yt("MuiTablePagination",e)}var G3=mt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),uC;const e$=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],t$=h1(du,{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}})),n$=h1(Z_,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${G3.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},[`& .${G3.actions}`]:{flexShrink:0,marginLeft:20}})),r$=h1("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),o$=h1("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),i$=h1(uu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${G3.selectIcon}`]:t.selectIcon,[`& .${G3.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${G3.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),a$=h1(Ji,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),l$=h1("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function s$({from:e,to:t,count:n}){return`${e}\u2013${t} of ${n!==-1?n:`more than ${t}`}`}function c$(e){return`Go to ${e} page`}const u$=e=>{const{classes:t}=e;return D1({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},$_,t)};var d$=y.forwardRef(function(t,n){var r;const i=Ft({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=__,backIconButtonProps:c,className:u,colSpan:d,component:g=du,count:h,disabled:m=!1,getItemAriaLabel:v=c$,labelDisplayedRows:w=s$,labelRowsPerPage:C="Rows per page:",nextIconButtonProps:b,onPageChange:F,onRowsPerPageChange:x,page:M,rowsPerPage:A,rowsPerPageOptions:k=[10,25,50,100],SelectProps:D={},showFirstButton:R=!1,showLastButton:V=!1,slotProps:H={},slots:Z={}}=i,J=_e(i,e$),X=i,$=u$(X),Y=(r=H==null?void 0:H.select)!=null?r:D,Q=Y.native?"option":a$;let U;(g===du||g==="td")&&(U=d||1e3);const q=Pn(Y.id),te=Pn(Y.labelId),_=()=>h===-1?(M+1)*A:A===-1?h:Math.min(h,(M+1)*A);return o(t$,P({colSpan:U,ref:n,as:g,ownerState:X,className:v1($.root,u)},J,{children:K(n$,{className:$.toolbar,children:[o(r$,{className:$.spacer}),k.length>1&&o(o$,{className:$.selectLabel,id:te,children:C}),k.length>1&&o(i$,P({variant:"standard"},!Y.variant&&{input:uC||(uC=o(o8,{}))},{value:A,onChange:x,id:q,labelId:te},Y,{classes:P({},Y.classes,{root:v1($.input,$.selectRoot,(Y.classes||{}).root),select:v1($.select,(Y.classes||{}).select),icon:v1($.selectIcon,(Y.classes||{}).icon)}),disabled:m,children:k.map(ee=>g1.createElement(Q,P({},!T3(Q)&&{ownerState:X},{className:$.menuItem,key:ee.label?ee.label:ee,value:ee.value?ee.value:ee}),ee.label?ee.label:ee))})),o(l$,{className:$.displayedRows,children:w({from:h===0?0:M*A+1,to:_(),count:h===-1?-1:h,page:M})}),o(l,{className:$.actions,backIconButtonProps:c,count:h,nextIconButtonProps:b,onPageChange:F,page:M,rowsPerPage:A,showFirstButton:R,showLastButton:V,slotProps:H.actions,slots:Z.actions,getItemAriaLabel:v,disabled:m})]})}))});function h$(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function f$(e,t,n,r={},i=()=>{}){const{ease:l=h$,duration:c=300}=r;let u=null;const d=t[e];let g=!1;const h=()=>{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-d)+d,w>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(m)};return d===n?(i(new Error("Element already at target position")),h):(requestAnimationFrame(m),h)}const p$=["onChange"],g$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function m$(e){const{onChange:t}=e,n=_e(e,p$),r=y.useRef(),i=y.useRef(null),l=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return wn(()=>{const c=U0(()=>{const d=r.current;l(),d!==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:g$},n,{ref:i}))}function v$(e){return yt("MuiTabScrollButton",e)}var C$=mt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const b$=["className","slots","slotProps","direction","orientation","disabled"],y$=e=>{const{classes:t,orientation:n,disabled:r}=e;return D1({root:["root",n,r&&"disabled"]},v$,t)},w$=h1(Ta,{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,[`&.${C$.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}));var I$=y.forwardRef(function(t,n){var r,i;const l=Ft({props:t,name:"MuiTabScrollButton"}),{className:c,slots:u={},slotProps:d={},direction:g}=l,h=_e(l,b$),m=Hs(),v=P({isRtl:m},l),w=y$(v),C=(r=u.StartScrollButtonIcon)!=null?r:sC,b=(i=u.EndScrollButtonIcon)!=null?i:cC,F=so({elementType:C,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),x=so({elementType:b,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return o(w$,P({component:"div",className:v1(w.root,c),ref:n,role:null,ownerState:v,tabIndex:null},h,{children:g==="left"?o(C,P({},F)):o(b,P({},x))}))});function E$(e){return yt("MuiTabs",e)}var hu=mt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const S$=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],dC=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hC=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uc=(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}}},A$=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:l,centered:c,scrollButtonsHideMobile:u,classes:d}=e;return D1({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"]},E$,d)},x$=h1("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hu.scrollButtons}`]:t.scrollButtons},{[`& .${hu.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&&{[`& .${hu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),F$=h1("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"})),M$=h1("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"})),z$=h1("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})),k$=h1(m$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),fC={};var P$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTabs"}),i=Ba(),l=Hs(),{"aria-label":c,"aria-labelledby":u,action:d,centered:g=!1,children:h,className:m,component:v="div",allowScrollButtonsMobile:w=!1,indicatorColor:C="primary",onChange:b,orientation:F="horizontal",ScrollButtonComponent:x=I$,scrollButtons:M="auto",selectionFollowsFocus:A,slots:k={},slotProps:D={},TabIndicatorProps:R={},TabScrollButtonProps:V={},textColor:H="primary",value:Z,variant:J="standard",visibleScrollbar:X=!1}=r,$=_e(r,S$),Y=J==="scrollable",Q=F==="vertical",U=Q?"scrollTop":"scrollLeft",q=Q?"top":"left",te=Q?"bottom":"right",_=Q?"clientHeight":"clientWidth",ee=Q?"height":"width",re=P({},r,{component:v,allowScrollButtonsMobile:w,indicatorColor:C,orientation:F,vertical:Q,scrollButtons:M,textColor:H,variant:J,visibleScrollbar:X,fixed:!Y,hideScrollbar:Y&&!X,scrollableX:Y&&!Q,scrollableY:Y&&Q,centered:g&&!Y,scrollButtonsHideMobile:!w}),we=A$(re),Ce=so({elementType:k.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:re}),Re=so({elementType:k.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:re}),[ke,se]=y.useState(!1),[me,Ie]=y.useState(fC),[Fe,We]=y.useState(!1),[Oe,qe]=y.useState(!1),[r1,Se]=y.useState(!1),[Je,o1]=y.useState({overflow:"hidden",scrollbarWidth:0}),e1=new Map,m1=y.useRef(null),a1=y.useRef(null),O1=()=>{const i1=m1.current;let w1;if(i1){const $1=i1.getBoundingClientRect();w1={clientWidth:i1.clientWidth,scrollLeft:i1.scrollLeft,scrollTop:i1.scrollTop,scrollLeftNormalized:qj(i1,l?"rtl":"ltr"),scrollWidth:i1.scrollWidth,top:$1.top,bottom:$1.bottom,left:$1.left,right:$1.right}}let _1;if(i1&&Z!==!1){const $1=a1.current.children;if($1.length>0){const At=$1[e1.get(Z)];_1=At?At.getBoundingClientRect():null}}return{tabsMeta:w1,tabMeta:_1}},B1=Fn(()=>{const{tabsMeta:i1,tabMeta:w1}=O1();let _1=0,$1;if(Q)$1="top",w1&&i1&&(_1=w1.top-i1.top+i1.scrollTop);else if($1=l?"right":"left",w1&&i1){const Bt=l?i1.scrollLeftNormalized+i1.clientWidth-i1.scrollWidth:i1.scrollLeft;_1=(l?-1:1)*(w1[$1]-i1[$1]+Bt)}const At={[$1]:_1,[ee]:w1?w1[ee]:0};if(isNaN(me[$1])||isNaN(me[ee]))Ie(At);else{const Bt=Math.abs(me[$1]-At[$1]),pt=Math.abs(me[ee]-At[ee]);(Bt>=1||pt>=1)&&Ie(At)}}),Q1=(i1,{animation:w1=!0}={})=>{w1?f$(U,m1.current,i1,{duration:i.transitions.duration.standard}):m1.current[U]=i1},he=i1=>{let w1=m1.current[U];Q?w1+=i1:(w1+=i1*(l?-1:1),w1*=l&&Kg()==="reverse"?-1:1),Q1(w1)},pe=()=>{const i1=m1.current[_];let w1=0;const _1=Array.from(a1.current.children);for(let $1=0;$1<_1.length;$1+=1){const At=_1[$1];if(w1+At[_]>i1){$1===0&&(w1=i1);break}w1+=At[_]}return w1},be=()=>{he(-1*pe())},Be=()=>{he(pe())},xe=y.useCallback(i1=>{o1({overflow:null,scrollbarWidth:i1})},[]),Me=()=>{const i1={};i1.scrollbarSizeListener=Y?o(k$,{onChange:xe,className:v1(we.scrollableX,we.hideScrollbar)}):null;const _1=Y&&(M==="auto"&&(Fe||Oe)||M===!0);return i1.scrollButtonStart=_1?o(x,P({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ce},orientation:F,direction:l?"right":"left",onClick:be,disabled:!Fe},V,{className:v1(we.scrollButtons,V.className)})):null,i1.scrollButtonEnd=_1?o(x,P({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Re},orientation:F,direction:l?"left":"right",onClick:Be,disabled:!Oe},V,{className:v1(we.scrollButtons,V.className)})):null,i1},ze=Fn(i1=>{const{tabsMeta:w1,tabMeta:_1}=O1();if(!(!_1||!w1)){if(_1[q]<w1[q]){const $1=w1[U]+(_1[q]-w1[q]);Q1($1,{animation:i1})}else if(_1[te]>w1[te]){const $1=w1[U]+(_1[te]-w1[te]);Q1($1,{animation:i1})}}}),Le=Fn(()=>{Y&&M!==!1&&Se(!r1)});y.useEffect(()=>{const i1=U0(()=>{m1.current&&B1()});let w1;const _1=Bt=>{Bt.forEach(pt=>{pt.removedNodes.forEach(Ct=>{var rn;(rn=w1)==null||rn.unobserve(Ct)}),pt.addedNodes.forEach(Ct=>{var rn;(rn=w1)==null||rn.observe(Ct)})}),i1(),Le()},$1=Ui(m1.current);$1.addEventListener("resize",i1);let At;return typeof ResizeObserver!="undefined"&&(w1=new ResizeObserver(i1),Array.from(a1.current.children).forEach(Bt=>{w1.observe(Bt)})),typeof MutationObserver!="undefined"&&(At=new MutationObserver(_1),At.observe(a1.current,{childList:!0})),()=>{var Bt,pt;i1.clear(),$1.removeEventListener("resize",i1),(Bt=At)==null||Bt.disconnect(),(pt=w1)==null||pt.disconnect()}},[B1,Le]),y.useEffect(()=>{const i1=Array.from(a1.current.children),w1=i1.length;if(typeof IntersectionObserver!="undefined"&&w1>0&&Y&&M!==!1){const _1=i1[0],$1=i1[w1-1],At={root:m1.current,threshold:.99},Bt=Ln=>{We(!Ln[0].isIntersecting)},pt=new IntersectionObserver(Bt,At);pt.observe(_1);const Ct=Ln=>{qe(!Ln[0].isIntersecting)},rn=new IntersectionObserver(Ct,At);return rn.observe($1),()=>{pt.disconnect(),rn.disconnect()}}},[Y,M,r1,h==null?void 0:h.length]),y.useEffect(()=>{se(!0)},[]),y.useEffect(()=>{B1()}),y.useEffect(()=>{ze(fC!==me)},[ze,me]),y.useImperativeHandle(d,()=>({updateIndicator:B1,updateScrollButtons:Le}),[B1,Le]);const Qe=o(z$,P({},R,{className:v1(we.indicator,R.className),ownerState:re,style:P({},me,R.style)}));let F1=0;const I1=y.Children.map(h,i1=>{if(!y.isValidElement(i1))return null;const w1=i1.props.value===void 0?F1:i1.props.value;e1.set(w1,F1);const _1=w1===Z;return F1+=1,y.cloneElement(i1,P({fullWidth:J==="fullWidth",indicator:_1&&!ke&&Qe,selected:_1,selectionFollowsFocus:A,onChange:b,textColor:H,value:w1},F1===1&&Z===!1&&!i1.props.tabIndex?{tabIndex:0}:{}))}),Ve=i1=>{const w1=a1.current,_1=Yn(w1).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"),i1.key){case At:i1.preventDefault(),Uc(w1,_1,hC);break;case Bt:i1.preventDefault(),Uc(w1,_1,dC);break;case"Home":i1.preventDefault(),Uc(w1,null,dC);break;case"End":i1.preventDefault(),Uc(w1,null,hC);break}},b1=Me();return K(x$,P({className:v1(we.root,m),ownerState:re,ref:n,as:v},$,{children:[b1.scrollButtonStart,b1.scrollbarSizeListener,K(F$,{className:we.scroller,ownerState:re,style:{overflow:Je.overflow,[Q?`margin${l?"Left":"Right"}`:"marginBottom"]:X?void 0:-Je.scrollbarWidth},ref:m1,children:[o(M$,{"aria-label":c,"aria-labelledby":u,"aria-orientation":F==="vertical"?"vertical":null,className:we.flexContainer,ownerState:re,onKeyDown:Ve,ref:a1,role:"tablist",children:I1}),ke&&Qe]}),b1.scrollButtonEnd]}))});function O$(e){return yt("MuiTextField",e)}mt("MuiTextField",["root"]);const B$=["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"],L$={standard:Tv,filled:Mv,outlined:_v},T$=e=>{const{classes:t}=e;return D1({root:["root"]},O$,t)},R$=h1(zv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var D$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:l=!1,children:c,className:u,color:d="primary",defaultValue:g,disabled:h=!1,error:m=!1,FormHelperTextProps:v,fullWidth:w=!1,helperText:C,id:b,InputLabelProps:F,inputProps:x,InputProps:M,inputRef:A,label:k,maxRows:D,minRows:R,multiline:V=!1,name:H,onBlur:Z,onChange:J,onFocus:X,placeholder:$,required:Y=!1,rows:Q,select:U=!1,SelectProps:q,type:te,value:_,variant:ee="outlined"}=r,re=_e(r,B$),we=P({},r,{autoFocus:l,color:d,disabled:h,error:m,fullWidth:w,multiline:V,required:Y,select:U,variant:ee}),Ce=T$(we),Re={};ee==="outlined"&&(F&&typeof F.shrink!="undefined"&&(Re.notched=F.shrink),Re.label=k),U&&((!q||!q.native)&&(Re.id=void 0),Re["aria-describedby"]=void 0);const ke=Pn(b),se=C&&ke?`${ke}-helper-text`:void 0,me=k&&ke?`${ke}-label`:void 0,Ie=L$[ee],Fe=o(Ie,P({"aria-describedby":se,autoComplete:i,autoFocus:l,defaultValue:g,fullWidth:w,multiline:V,name:H,rows:Q,maxRows:D,minRows:R,type:te,value:_,id:ke,inputRef:A,onBlur:Z,onChange:J,onFocus:X,placeholder:$,inputProps:x},Re,M));return K(R$,P({className:v1(Ce.root,u),disabled:h,error:m,fullWidth:w,ref:n,required:Y,color:d,variant:ee,ownerState:we},re,{children:[k!=null&&k!==""&&o(Vv,P({htmlFor:ke,id:me},F,{children:k})),U?o(uu,P({"aria-describedby":se,id:ke,labelId:me,value:_,input:Fe},q,{children:c})):Fe,C&&o(bZ,P({id:se},v,{children:C}))]}))});function a4({status:e,message:t}){const n=[k3,P3,"MATCH","NOT_VERIFY",El,Sl,"0",400,401,404,0,429,500],r=["ACCEPT","Success","FACER_OK",200];return K(O3,{children:[n.includes(e)&&o(tQ,{message:t||"Error obteniendo el Token"}),r.includes(e)&&o(jp,{message:t})]})}const l4=e=>e!==El&&e!==k3&&e!==P3&&e!==Sl&&e!=="";var V$=It(o("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),pC=It(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"),H$=It(o("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows"),N$=It(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"),Q$=It(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"),W$=It(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$=It(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"),G$=It(o("path",{d:"M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64zm-6.02-5L8.5 5.48 10.57 11zm15.16.59-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13z"}),"Spellcheck"),gC=It(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 s4({action:e}){return o(nn,{onClick:e,width:"100%",textAlign:"left",marginBottom:3,marginLeft:3,children:o(a8,{arrow:!0,title:"Volver",TransitionComponent:dv,placement:"right",TransitionProps:{timeout:600},sx:{mb:"20px"},style:{cursor:"pointer"},children:o(V$,{className:"grayscale"})})})}function mC({mode:e="light",showFilterByButton:t=!0,dataBlackList:n,icon:r,clientId:i,authorize:l,inProduction:c="prd",source:u="component",eventId:d=null,countryCodeAllowed:g=null,validateVpn:h=!1,successMessage:m,alertMessage:v}){const{onSendSubmitDocument:w,simpleHandleSubmit:C,isLoading:b,controlDoc:F,errorsDoc:x,status:M,message:A,listMatch:k,select:D,setSelect:R,clearState:V,countryCode:H}=Np(n,i,l,c,u,d,g,h,m,v);return K("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(Is,{}):null,o("form",{onSubmit:C(w),id:"blacklist",children:K("div",{className:"sub",children:[l4(M)&&o(s4,{action:V}),K("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(a4,{status:M,message:A.message?A.message:A})]}),!Hr(k)&&o(Gp,{lists:k}),Hr(M)&&K(O3,{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:Z=>R(Z),selected:D,icon:r&&r,control:F,error:x.country}),o(B2,{type:"submit",children:"Procesar"})]}),M!==El&&M!==k3&&M!==P3&&M!==Sl&&t?o(nn,{width:"100%",mt:2,children:V&&Object.keys(k).length>0&&o(B2,{className:"my-1 col-12",onClick:V,children:"Filtrar por"})}):null]})})]})}mC.propTypes={mode:J1.exports.PropTypes.string,icon:J1.exports.PropTypes.func,clientId:J1.exports.PropTypes.string.isRequired,authorize:J1.exports.PropTypes.func.isRequired,inProduction:J1.exports.PropTypes.string,countryCodeAllowed:J1.exports.PropTypes.array,source:J1.exports.PropTypes.string,eventId:J1.exports.PropTypes.string,validateVpn:J1.exports.PropTypes.bool,successMessage:J1.exports.PropTypes.string,alertMessage:J1.exports.PropTypes.string,dataBlackList:J1.exports.PropTypes.func.isRequired,showFilterByButton:J1.exports.PropTypes.bool};const U$=(e,t,n,r,i,l,c,u,d,g)=>{const[h,m]=g1.useState({}),[v,w]=g1.useState(""),[C,b]=g1.useState(!1),[F,x]=g1.useState(t===void 0?P3:n===void 0?k3:""),[M,A]=g1.useState(null),k=w5(l),[D,R]=g1.useState(g),V=g1.useRef(null),[H,Z]=g1.useState(!1),[J,X]=g1.useState(!1);g1.useEffect(()=>{c&&(k==null?void 0:k.data_connection.isocode)&&c.length!==0&&!c.some(re=>re===(k==null?void 0:k.data_connection.isocode))&&(x(El),w(I5)),u&&(k==null?void 0:k.data_connection.proxy)==S5&&(x(Sl),w(E5)),c&&k&&A(k==null?void 0:k.data_connection.isocode)},[k,c]);const $=()=>{R(g),m({}),x(""),w(""),b(!1)},{handleSubmit:Y}=$4(),Q=async()=>{var re;b(!0);try{const we=await n(),Re={method:"POST",path:"api/v1/kyc-kit/document/recognition",inProduction:l,customHeaders:{client_id:t,access_token:we},bodyParams:h};try{const ke=await y3(Re),se=ke.data.data,me=await Bo({data:{...se,status_code:200},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});me&&Object.assign(se,{checkIp:me.check_ip}),se&&await e(se);const{message:Ie}=ke.data;Ie&&x(Ie),w(d||"Documento verificado con \xE9xito")}catch(ke){console.log(ke,"controller");let se="";const{status:me}=ke.response,Ie=await Bo({data:{first_image:h.firstImage,second_image:Object.keys(h).length>1?h.secondImage:"",status_code:me},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});Ie.count_try>=4&&X(!0),await e({...ke,countAttempts:Ie.count_try}),ke.response.data.code.include("020")&&X(!0),(re=ke.response.data)!=null&&re.message?se=ke.response.data.message:me===500&&(se={limit_of_request:q9}),b(null),w(se),x(me),bs(ke)}}catch{xn.error("Error - Verificar host con el proveedor")}finally{b(!1)}};console.log(J);const U=async re=>{const we=V.current.getScreenshot(),Ce=Object.assign(h,{[re]:we});console.log(Ce),m(Ce),Z(!1)},q=async(re,we)=>{const Ce=Object.assign(h,{[re]:we});console.log(Ce),m(Ce),Z(!1)},_=(()=>{const[re,we]=g1.useState(window.innerHeight>window.innerWidth);return g1.useEffect(()=>{const Ce=()=>{we(window.innerHeight>window.innerWidth)};return window.addEventListener("resize",Ce),()=>{window.removeEventListener("resize",Ce)}},[]),re})(),ee=g1.useMemo(()=>({width:{ideal:_?1080:1920},height:{ideal:_?1920:1080},aspectRatio:{ideal:4/5},frameRate:{ideal:30},advanced:[{focusMode:"continuous"}],facingMode:"environment"}),[_]);return g1.useEffect(()=>{H&&(Z(!1),setTimeout(()=>Z(!0),100))},[_]),{onSendSubmitDocument:Q,simpleHandleSubmit:Y,isLoading:C,status:F,message:v,base64:h,setBase64:m,clearState:$,countryCode:M,dualMode:D,setDualMode:R,dualModeRequired:g,onUploadImage:U,webcamRef:V,activateCamera:H,setActivateCamera:Z,videoConstraints:ee,onUploadImage2:q,uploadDocumentByPhone:J,setUploadDocumentByPhone:X}},K$=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=="",vC=({title:e,subtitle:t})=>K(nn,{children:[o(v2,{variant:"h6",className:"title",mt:2,children:e}),o(v2,{variant:"body2",children:t}),K(Hv,{dense:!0,children:[K(ou,{children:[o(Na,{children:o(W$,{})}),o(Qa,{primary:"Procura tener buena iluminaci\xF3n"})]}),K(ou,{children:[o(Na,{children:o(j$,{})}),o(Qa,{primary:"Evita reflejos en el documento de identidad"})]}),K(ou,{children:[o(Na,{children:o(G$,{})}),o(Qa,{primary:"Procura que el texto en el documento sea legible"})]})]})]});function CC({setActivateCamera:e,activateCamera:t,videoConstraints:n,videoRef:r,streamRef:i,onTapToFocus:l,title:c,subtitle:u}){return g1.useEffect(()=>(t&&r.current&&navigator.mediaDevices.getUserMedia({video:n||{facingMode:"environment"},audio:!1}).then(d=>{r.current&&(r.current.srcObject=d,r.current.play(),i.current=d)}).catch(d=>{console.error("Error al acceder a la c\xE1mara:",d)}),()=>{i.current&&(i.current.getTracks().forEach(d=>d.stop()),i.current=null)}),[t,n]),o("div",{className:"drag-zone",children:o(nn,{className:"drag-and-drop-container",children:o(nn,{onClick:()=>e(!0),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",children:t?o(nn,{children:o("video",{ref:r,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",borderRadius:"5px"},onClick:l,playsInline:!0,muted:!0,autoPlay:!0})}):o(vC,{title:c,subtitle:u})})})})}function bC({fileInputRef:e,handleFileChange:t,side:n,title:r,subtitle:i,startUpload:l}){const c=()=>{var u;(u=e.current)==null||u.click()};return o("div",{className:"drag-zone",children:o(nn,{className:"drag-and-drop-container",children:o(nn,{onClick:()=>c(),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",padding:2,children:l?K(O3,{children:[K("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[o(pC,{}),o(v2,{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/*",capture:"environment",onChange:t,style:{display:"none"}})]}):o(vC,{title:r,subtitle:i})})})})}function Y$(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)})}const q$=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>Vp||i>Hp){const l=Math.min(Vp/r,Hp/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}},yC=()=>{const e=navigator.hardwareConcurrency||2,t=navigator.deviceMemory||2;return e<=4||t<=3};function fu(e){const{children:t,value:n,index:r,tabOptions:i,base64:l,setBase64:c,setActivateCamera:u,activateCamera:d,webcamRef:g,Webcam:h,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(nn,{height:"100%",children:t})})}fu.propTypes={children:Ye.node,index:Ye.number.isRequired,value:Ye.number.isRequired};function wC(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function J$({base64:e,setBase64:t,setActivateCamera:n,activateCamera:r,webcamRef:i,Webcam:l,videoConstraints:c,onUploadImage:u,dualModeRequired:d,status:g,onUploadImage2:h,uploadDocumentByPhone:m,onSendSubmitDocument:v}){const[w,C]=y.useState(0),[b,F]=y.useState(!1),[x,M]=g1.useState(!1),A=(Q,U)=>{C(U)},k=Q=>{const U={...e};delete U[Q],t(U)},D=()=>{F(!b)},R=g1.useRef(null),V=g1.useRef(null),H=async Q=>{const U=R.current;if(!U)return;const{canvas:q}=q$(U),te=q.toDataURL("image/jpeg");h(Q,te),$()},Z=async()=>{var te,_;if(!V.current)return;const[Q]=V.current.getVideoTracks(),U=(te=Q.getCapabilities)==null?void 0:te.call(Q),q=(_=Q.getSettings)==null?void 0:_.call(Q);if(console.log("focus capabilities:",U),console.log("focus settings:",q),!U||!U.focusMode){console.warn("No se puede acceder a las capacidades de enfoque");return}try{U.focusMode.includes("continuous")?await Q.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"continuous"}]}):U.focusMode.includes("single-shot")?await Q.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"single-shot"}]}):U.focusMode.includes("manual")&&U.focusDistance?await Q.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"manual",focusDistance:U.focusDistance.min}]}):console.warn("No hay modo de enfoque compatible")}catch(ee){console.error("Error al aplicar constraints de enfoque:",ee)}},J=g1.useRef(null),X=async Q=>{const U=Q.target.files[0],q=await Y$(U),te=Q.target.name;h(te,q),$()},$=()=>{e.firstImage&&d&&A(Q=>Q,1),e.firstImage&&e.secondImage&&v()},Y=()=>{M(!1),n(!0)};return K(nn,{sx:{width:"100%",height:"100%"},children:[o(nn,{sx:{borderBottom:1,borderColor:"divider"},children:K(P$,{value:w,onChange:A,"aria-label":"document selector",children:[o(lC,{label:"Frontal",...wC(0)}),o(lC,{label:"Reverso",...wC(1)})]})}),o(fu,{value:w,index:0,children:o(nn,{className:"thumbnails-container",children:o(nn,{className:"thumbnails",children:K(nn,{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:D,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m||yC()?o(bC,{handleFileChange:X,side:"firstImage",fileInputRef:J,title:"Cargar documeto",subtitle:"Vamos a cargar el documento desde tu dispositivo. \xA1Ten en cuenta lo siguiente!",startUpload:r}):o(CC,{videoRef:R,streamRef:V,setActivateCamera:n,activateCamera:r,videoConstraints:c,onTapToFocus:Z,title:"Cargar documento",subtitle:"Subir frontal del documento"}),K(nn,{width:"100%",children:[e.firstImage&&K(nn,{className:"toolbox-container",children:[o(nn,{className:"zoom-button",onClick:D,children:o(a8,{title:"Ampliar",placement:"right",arrow:!0,children:o(gC,{sx:{width:"18px"}})})}),o(nn,{className:"delete-button",onClick:()=>k("firstImage"),children:o(a8,{title:"Vaciar",placement:"right",arrow:!0,children:o(v2,{variant:"body2",children:"x"})})})]}),!r&&!e.firstImage&&o(B2,{type:"button",onClick:Y,children:"Continuar"}),!r&&e.firstImage&&o(B2,{type:"button",onClick:Q=>A(Q,1),children:"Cargar reverso del documento"}),r&&!x&&!m&&o(B2,{type:"button",onClick:()=>H("firstImage"),children:"Capturar"}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!d&&e.firstImage||d&&e.firstImage&&e.secondImage)&&K(nn,{children:[o(xv,{children:"O"}),o(B2,{type:"submit",children:"Procesar"})]})]})]})})})}),o(fu,{value:w,index:1,children:o(nn,{className:"thumbnails-container",children:o(nn,{className:"thumbnails",children:K(nn,{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:D,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m||yC()?o(bC,{handleFileChange:X,side:"secondImage",fileInputRef:J,title:"Bien ahora vamos por el reverso",subtitle:"\xA1Recuerda tener en cuenta lo siguiente!",startUpload:r}):o(CC,{videoRef:R,streamRef:V,setActivateCamera:n,activateCamera:r,videoConstraints:c,title:"Bien ahora carguemos el reverso",subtitle:"Asegurate de que sea legible",onTapToFocus:Z}),K(nn,{width:"100%",children:[e.secondImage&&K(nn,{className:"toolbox-container",children:[o(nn,{className:"zoom-button",onClick:D,children:o(a8,{title:"Ampliar",placement:"right",arrow:!0,children:o(gC,{sx:{width:"18px"}})})}),o(nn,{className:"delete-button",onClick:()=>k("secondImage"),children:o(a8,{title:"Vaciar",placement:"right",arrow:!0,children:o(v2,{variant:"body2",children:"x"})})})]}),!r&&!e.secondImage&&o(B2,{type:"button",onClick:Y,children:"Continuar"}),r&&!x&&!m&&o(B2,{type:"button",onClick:()=>H("secondImage"),children:"Capturar"}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!d&&e.secondImage&&e.firstImage||d&&e.firstImage&&e.secondImage)&&o(B2,{type:"submit",children:"Procesar"})]})]})})})}),b&&o(nn,{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(nn,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",height:525,children:o("img",{src:w===0?e.firstImage:e.secondImage,alt:"zoomed",onClick:D,style:{overflow:"auto",maxWidth:b?"140%":"100%",maxHeight:"90%",objectFit:"contain",borderRadius:"5px"}})})})]})}var IC={exports:{}};(function(e,t){(function(r,i){e.exports=i(tt.default)})(ml,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,d){l.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:d})},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 d=Object.create(null);if(l.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),u&2&&typeof c!="string")for(var g in c)l.d(d,g,function(h){return c[h]}.bind(null,g));return d},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)}}(),d=function(){return d=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},d.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 h(){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,!h()){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(!h()){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,A=C.minScreenshotHeight!==b.minScreenshotHeight;(x||M||A)&&(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,A=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var k=M/A;M=x.minScreenshotWidth||this.video.clientWidth,A=M/k,x.minScreenshotHeight&&A<x.minScreenshotHeight&&(A=x.minScreenshotHeight,M=A*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)||A,this.ctx=this.canvas.getContext("2d")}var D=this,R=D.ctx,V=D.canvas;return R&&V&&(V.width=(C==null?void 0:C.width)||V.width,V.height=(C==null?void 0:C.height)||V.height,x.mirrored&&(R.translate(V.width,0),R.scale(-1,1)),R.imageSmoothingEnabled=x.imageSmoothing,R.drawImage(this.video,0,0,(C==null?void 0:C.width)||V.width,(C==null?void 0:C.height)||V.height),x.mirrored&&(R.scale(-1,1),R.translate(-V.width,0))),V},w.prototype.requestUserMedia=function(){var C=this,b=this.props,F=function(A,k){var D={video:typeof k!="undefined"?k:!0};b.audio&&(D.audio=typeof A!="undefined"?A:!0),C.requestUserMediaId++;var R=C.requestUserMediaId;navigator.mediaDevices.getUserMedia(D).then(function(V){C.unmounted||R!==C.requestUserMediaId?w.stopMediaStream(V):C.handleUserMedia(null,V)}).catch(function(V){C.handleUserMedia(V)})};if("mediaDevices"in navigator)F(b.audioConstraints,b.videoConstraints);else{var x=function(A){return{optional:[{sourceId:A}]}},M=function(A){var k=A.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(A){var k=null,D=null;A.forEach(function(H){H.kind==="audio"?k=H.id:H.kind==="video"&&(D=H.id)});var R=M(b.audioConstraints);R&&(k=R);var V=M(b.videoConstraints);V&&(D=V),F(x(k),x(D))})}},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 A=x.disablePictureInPicture;x.onUserMedia,x.onUserMediaError,x.screenshotFormat,x.screenshotQuality,x.minScreenshotWidth,x.minScreenshotHeight,x.audioConstraints,x.videoConstraints,x.imageSmoothing;var k=x.mirrored,D=x.style,R=D===void 0?{}:D,V=x.children,H=g(x,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),Z=k?d(d({},R),{transform:(R.transform||"")+" scaleX(-1)"}):R,J={getScreenshot:this.getScreenshot.bind(this)};return c.createElement(c.Fragment,null,c.createElement("video",d({autoPlay:!0,disablePictureInPicture:A,src:F.src,muted:!M,playsInline:!0,ref:function(X){C.video=X},style:Z},H)),V&&V(J))},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})})(IC);var EC=GI(IC.exports);function SC({mode:e="light",dataDocument:t,clientId:n,authorize:r,eventId:i=null,source:l="component",inProduction:c="prd",countryCodeAllowed:u=null,validateVpn:d=!1,successMessage:g,dualModeRequired:h=!0}){const{onSendSubmitDocument:m,simpleHandleSubmit:v,isLoading:w,status:C,message:b,clearState:F,base64:x,countryCode:M,onUploadImage:A,onUploadImage2:k,activateCamera:D,setActivateCamera:R,webcamRef:V,videoConstraints:H,setBase64:Z,uploadDocumentByPhone:J,setUploadDocumentByPhone:X}=U$(t,n,r,i,l,c,u,d,g,h);return K("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}),w||u!==null&&!M?o(Is,{}):null,o("form",{onSubmit:v(m),id:"document-reader",children:K("div",{className:"sub",children:[(l!=="secure_link"||K$(b))&&l4(C)&&o(s4,{action:F}),K("div",{className:"header-component",children:[o("h4",{children:"Lectura del documento"}),Hr(C)?o("p",{children:"Ubique su documento de identidad dentro del recuadro lo m\xE1s centrado posible."}):o(a4,{status:C,message:b})]}),Hr(C)&&o(J$,{base64:x,setBase64:Z,setActivateCamera:R,activateCamera:D,webcamRef:V,Webcam:EC,videoConstraints:H,onUploadImage:A,dualModeRequired:h,status:C,onUploadImage2:k,uploadDocumentByPhone:J,setUploadDocumentByPhone:X,onSendSubmitDocument:m})]})})]})}SC.propTypes={mode:J1.exports.PropTypes.string,clientId:J1.exports.PropTypes.string.isRequired,authorize:J1.exports.PropTypes.func.isRequired,dataDocument:J1.exports.PropTypes.func.isRequired,inProduction:J1.exports.PropTypes.string,countryCodeAllowed:J1.exports.PropTypes.array,source:J1.exports.PropTypes.string,eventId:J1.exports.PropTypes.string,validateVpn:J1.exports.PropTypes.bool,dualModeRequired:J1.exports.PropTypes.bool,successMessage:J1.exports.PropTypes.string};const AC=async(e,t,n,r)=>{const i={method:"POST",path:"api/v1/kyc-kit/facematch",inProduction:n,customHeaders:r,bodyParams:{doc:e,selfie:t}};try{return(await y3(i)).data}catch(l){throw console.log(l),l}},Z$=(e,t,n,r,i,l,c,u,d,g,h)=>{const[m,v]=g1.useState({}),[w,C]=g1.useState(""),[b,F]=g1.useState(""),[x,M]=g1.useState(!1),[A,k]=g1.useState(t===void 0?status_client_id:i===void 0?status_token:""),D=g1.useRef(null),[R,V]=g1.useState(null),[H,Z]=g1.useState(null),J=w5(l),X=g1.useCallback(async()=>{const U=D.current.getScreenshot({width:480,heigth:720,aspectRatio:.6,facingMode:"user"});V(U)},[D]);g1.useEffect(()=>{d&&J&&d.length!==0&&!d.some(U=>U===(J==null?void 0:J.data_connection.isocode))&&(k(El),F(I5)),g&&(J==null?void 0:J.data_connection.proxy)==S5&&(k(Sl),F(E5)),d&&J&&Z(J==null?void 0:J.data_connection.isocode)},[J,d]);const $=()=>{v({}),C(""),k(""),F(""),V(null),u(!1),M(!1)},{handleSubmit:Y}=$4();return{onSendSubmitSelfie:async()=>{var U,q;M(!0);try{const te=await i(),_={client_id:t,access_token:te};try{const ee=await AC(c,R,l,_);ee&&await e(ee.data),await Bo({data:{first_image:R,second_image:c,similarity:ee.data.similarity,status_code:200},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:J});const{message:re}=ee.data;re&&k(re),F(h||"Comparaci\xF3n de rostro procesado con \xE9xito")}catch(ee){let re="";const{status:we}=ee.response;await Bo({data:{first_image:R,second_image:c,similarity:(U=te==null?void 0:te.data)!=null&&U.similarity?te.data.similarity:null,status_code:we},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:J}),(q=ee.response.data)!=null&&q.message?re=ee.response.data.message:we===500&&(re={limit_of_request:q9}),M(null),F(re),k(we),bs(ee)}}catch(te){console.log(te),xn.error("Error - Verificar host con el proveedor")}finally{M(!1)}},simpleHandleSubmit:Y,isLoading:x,docImage:m,status:A,message:b,clearState:$,webcamRef:D,url:R,setUrl:V,capturePhoto:X,countryCode:H}};var xC="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 FC({mode:e="light",dataFaceMatch:t,clientId:n,authorize:r,inProduction:i="prd",picBase64:l="",eventId:c=null,source:u="component",countryCodeAllowed:d=null,validateVpn:g=!1,successMessage:h}){const[m,v]=g1.useState(!1),{onSendSubmitSelfie:w,simpleHandleSubmit:C,isLoading:b,docImage:F,status:x,message:M,clearState:A,capturePhoto:k,webcamRef:D,url:R,countryCode:V}=Z$(t,n,c,u,r,i,l,v,d,g,h),H=J=>{console.log(J,"userMedia")},Z={with:1024,heigth:720,aspectRatio:1,facingMode:"user"};return K("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||d!==null&&!V?o(Is,{}):null,o("form",{onSubmit:C(w),id:"face-match",children:K("div",{className:"sub",children:[l4(x)&&o(s4,{action:A}),K("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(a4,{status:x,message:M})]}),Hr(x)&&K("div",{className:"pics-container",children:[o("div",{className:"box-image",children:Hr(l)?K("div",{className:"upload-document without-image",style:{backgroundImage:`url(${xC})`},children:[o(Q$,{}),o("p",{children:"Imagen no detectada"})]}):o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${l})`}})}),o("div",{className:"icon",children:o(H$,{})}),o("div",{children:m?o("div",{className:"box-image",children:R?o(O3,{children:o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${R})`}})}):o(EC,{ref:D,audio:!1,screenshotFormat:"image/png",videoConstraints:Z,forceScreenshotSourceSize:!0,onUserMedia:H,mirrored:!0})}):o("label",{className:"box-image",children:K("div",{className:"upload-document without-image",style:{backgroundImage:`url(${xC})`},children:[o(pC,{}),o("p",{children:Hr(F)?"Tomar selfie":F}),o("input",{hidden:!0,accept:"image/*",capture:"camera",id:"docImage",onClick:()=>v(!0)})]})})})]}),m&&!R&&D&&o(B2,{type:"button",onClick:k,children:"Capturar Selfie"}),o(O3,{children:R&&o(nn,{width:"100%",mt:2,children:o(B2,{type:"submit",children:"Procesar"})})})]})})]})}FC.propTypes={mode:J1.exports.PropTypes.string,loader:J1.exports.PropTypes.bool,data:J1.exports.PropTypes.func,clientId:J1.exports.PropTypes.string.isRequired,authorize:J1.exports.PropTypes.func.isRequired,dataFaceMatch:J1.exports.PropTypes.func.isRequired,inProduction:J1.exports.PropTypes.string,picBase64:J1.exports.PropTypes.string.isRequired,countryCodeAllowed:J1.exports.PropTypes.array,eventId:J1.exports.PropTypes.string,source:J1.exports.PropTypes.string,validateVpn:J1.exports.PropTypes.bool,successMessage:J1.exports.PropTypes.string};const X$=(e,t,n,r,i,l,c,u,d)=>{const[g,h]=g1.useState(!1),[m,v]=g1.useState(""),[w,C]=g1.useState(e===void 0?P3:m===void 0?k3:""),[b,F]=g1.useState(""),[x,M]=g1.useState(null),A=w5(r),[k,D]=g1.useState({}),[R,V]=g1.useState(0),[H,Z]=g1.useState(!1),[J,X]=g1.useState({}),$=q=>{var te,_;q.detail&&q.detail.action==="PROCESS_FINISHED"&&(((_=(te=q.detail.data)==null?void 0:te.response)==null?void 0:_.code)==0?D(q.detail.data.response):H||(Z(!0),X(q)))};g1.useEffect(()=>{var q,te,_,ee;H&&Bo({data:{first_image:(te=(q=J.detail.data)==null?void 0:q.response)!=null&&te.images?"data:image/jpeg;base64,"+J.detail.data.response.images[0]:null,face_result_code:(ee=(_=J.detail.data)==null?void 0:_.response)!=null&&ee.code?J.detail.data.response.code:250},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:A}).then(re=>{c({countAttempts:re.count_try,error:!0}),Z(!1),X({})})},[H]),g1.useEffect(()=>{i&&(A==null?void 0:A.data_connection.isocode)&&i.length!==0&&!i.some(q=>q===(A==null?void 0:A.data_connection.isocode))&&(C(El),F(I5)),u&&(A==null?void 0:A.data_connection.proxy)==S5&&(C(Sl),F(E5)),i&&A&&M(A==null?void 0:A.data_connection.isocode)},[A,i]);const Y=()=>{C(""),F(""),h(!1)};g1.useEffect(()=>{Hr(k)||Q()},[k]);const Q=async()=>{try{const q={client_id:e,access_token:m},te={method:"POST",path:"api/v1/kyc-kit/liveness/check",inProduction:r,customHeaders:q};try{await y3(te),l?await AC(l,`data:image/jpeg;base64,${k.images[0]}`,r,q).then(_=>{V(_.data.similarity),F(d||"Verificaci\xF3n de identidad completada"),Bo({data:{similarity:_.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:A})}):U()}catch(_){let ee="";const{status:re}=_.response;Bo({data:{similarity:0,first_image:`data:image/jpeg;base64,${k.images[0]}`,second_image:l,status_code:re},component:"facematch",eventId:t,source:n,inProduction:r,clientId:e,geolocation:A}),re===500&&(ee=q9),F(ee),C(re),bs(_)}}catch{xn.error("Error - Verificar host con el proveedor")}};g1.useEffect(()=>{R!==0&&U()},[R]);const U=async()=>{try{await Bo({data:{selfie:`data:image/jpeg;base64,${k.images[0]}`,similarity:l?R:null,face_result_code:0},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:A}).then(q=>c(q))}catch(q){return q}};return{status:w,isLoading:g,listener:$,onSendSubmitLiveness:Q,clearState:Y,message:b,countryCode:x,setToken:v,data:k,similarity:R}},l8=getComputedStyle(document.documentElement).getPropertyValue("--primary"),MC=getComputedStyle(document.documentElement).getPropertyValue("--primary-hov"),_$=getComputedStyle(document.documentElement).getPropertyValue("--font-size"),$$=getComputedStyle(document.documentElement).getPropertyValue("--font-family"),eee=()=>o("div",{className:"custom_spinner_container",children:o("div",{className:"box_spinner",children:o("div",{className:"spinner"})})});var lt={},pu={exports:{}};(function(e,t){(function(n,r){var i="1.0.40",l="",c="?",u="function",d="undefined",g="object",h="string",m="major",v="model",w="name",C="type",b="vendor",F="version",x="architecture",M="console",A="mobile",k="tablet",D="smarttv",R="wearable",V="embedded",H=500,Z="Amazon",J="Apple",X="ASUS",$="BlackBerry",Y="Browser",Q="Chrome",U="Edge",q="Firefox",te="Google",_="Huawei",ee="LG",re="Microsoft",we="Motorola",Ce="Opera",Re="Samsung",ke="Sharp",se="Sony",me="Xiaomi",Ie="Zebra",Fe="Facebook",We="Chromium OS",Oe="Mac OS",qe=" Browser",r1=function(xe,Me){var ze={};for(var Le in xe)Me[Le]&&Me[Le].length%2===0?ze[Le]=Me[Le].concat(xe[Le]):ze[Le]=xe[Le];return ze},Se=function(xe){for(var Me={},ze=0;ze<xe.length;ze++)Me[xe[ze].toUpperCase()]=xe[ze];return Me},Je=function(xe,Me){return typeof xe===h?o1(Me).indexOf(o1(xe))!==-1:!1},o1=function(xe){return xe.toLowerCase()},e1=function(xe){return typeof xe===h?xe.replace(/[^\d\.]/g,l).split(".")[0]:r},m1=function(xe,Me){if(typeof xe===h)return xe=xe.replace(/^\s\s*/,l),typeof Me===d?xe:xe.substring(0,H)},a1=function(xe,Me){for(var ze=0,Le,Qe,F1,I1,Ve,b1;ze<Me.length&&!Ve;){var i1=Me[ze],w1=Me[ze+1];for(Le=Qe=0;Le<i1.length&&!Ve&&i1[Le];)if(Ve=i1[Le++].exec(xe),Ve)for(F1=0;F1<w1.length;F1++)b1=Ve[++Qe],I1=w1[F1],typeof I1===g&&I1.length>0?I1.length===2?typeof I1[1]==u?this[I1[0]]=I1[1].call(this,b1):this[I1[0]]=I1[1]:I1.length===3?typeof I1[1]===u&&!(I1[1].exec&&I1[1].test)?this[I1[0]]=b1?I1[1].call(this,b1,I1[2]):r:this[I1[0]]=b1?b1.replace(I1[1],I1[2]):r:I1.length===4&&(this[I1[0]]=b1?I1[3].call(this,b1.replace(I1[1],I1[2])):r):this[I1]=b1||r;ze+=2}},O1=function(xe,Me){for(var ze in Me)if(typeof Me[ze]===g&&Me[ze].length>0){for(var Le=0;Le<Me[ze].length;Le++)if(Je(Me[ze][Le],xe))return ze===c?r:ze}else if(Je(Me[ze],xe))return ze===c?r:ze;return Me.hasOwnProperty("*")?Me["*"]:xe},B1={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Q1={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"},he={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,Ce+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[F,[w,Ce+" GX"]],[/\bopr\/([\w\.]+)/i],[F,[w,Ce]],[/\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"+Y]],[/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 "+Y]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure "+Y],F],[/\bfocus\/([\w\.]+)/i],[F,[w,q+" Focus"]],[/\bopt\/([\w\.]+)/i],[F,[w,Ce+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[F,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[F,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[F,[w,Ce+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[F,[w,"MIUI"+qe]],[/fxios\/([\w\.-]+)/i],[F,[w,q]],[/\bqihoobrowser\/?([\w\.]*)/i],[F,[w,"360"]],[/\b(qq)\/([\w\.]+)/i],[[w,/(.+)/,"$1Browser"],F],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1"+qe],F],[/samsungbrowser\/([\w\.]+)/i],[F,[w,Re+" 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 "+Y]],[/(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,O1,B1]],[/(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,q+" 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,Re],[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,Re],[C,A]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[b,J],[C,A]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[b,J],[C,k]],[/(macintosh);/i],[v,[b,J]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[b,ke],[C,A]],[/(?:honor)([-\w ]+)[;\)]/i],[v,[b,"Honor"],[C,A]],[/\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,A]],[/\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,me],[C,A]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[b,me],[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,A]],[/\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,A]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[b,"Realme"],[C,A]],[/\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,we],[C,A]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[b,we],[C,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[b,ee],[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,ee],[C,A]],[/(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,A]],[/(pixel c)\b/i],[v,[b,te],[C,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[b,te],[C,A]],[/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,A]],[/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,A]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[b,Z],[C,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[b,Z],[C,A]],[/(playbook);[-\w\),; ]+(rim)/i],[v,b,[C,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[b,$],[C,A]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[b,X],[C,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[b,X],[C,A]],[/(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,A]],[/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,O1,{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,A]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[b,"Ulefone"],[C,A]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[v,[b,"Energizer"],[C,A]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[v,[b,"Cat"],[C,A]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[v,[b,"Smartfren"],[C,A]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[b,"Nothing"],[C,A]],[/(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,A]],[/(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,re],[C,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[b,"Fairphone"],[C,A]],[/(u304aa)/i],[v,[b,"AT&T"],[C,A]],[/\bsie-(\w*)/i],[v,[b,"Siemens"],[C,A]],[/\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,A]],[/\b(gen\d{3}) b.+49h/i],[v,[b,"Swiss"],[C,A]],[/\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,A]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],v,[C,A]],[/\b(ph-1) /i],[v,[b,"Essential"],[C,A]],[/\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,A]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[b,re],[C,A]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[b,Ie],[C,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[b,Ie],[C,A]],[/smart-tv.+(samsung)/i],[b,[C,D]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[b,Re],[C,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,ee],[C,D]],[/(apple) ?tv/i],[b,[v,J+" TV"],[C,D]],[/crkey/i],[[v,Q+"cast"],[b,te],[C,D]],[/droid.+aft(\w+)( bui|\))/i],[v,[b,Z],[C,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[b,ke],[C,D]],[/(bravia[\w ]+)( bui|\))/i],[v,[b,se],[C,D]],[/(mitv-\w{5}) bui/i],[v,[b,me],[C,D]],[/Hbbtv.*(technisat) (.*);/i],[b,v,[C,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,m1],[v,m1],[C,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[C,D]],[/(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,re],[C,M]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[b,Re],[C,R]],[/((pebble))app/i],[b,v,[C,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[b,J],[C,R]],[/droid.+; (glass) \d/i],[v,[b,te],[C,R]],[/droid.+; (wt63?0{2,3})\)/i],[v,[b,Ie],[C,R]],[/droid.+; (glass) \d/i],[v,[b,te],[C,R]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,v,[C,R]],[/; (quest( \d| pro)?)/i],[v,[b,Fe],[C,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[C,V]],[/(aeobc)\b/i],[v,[b,Z],[C,V]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[C,A]],[/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,A]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[F,[w,U+"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,O1,Q1]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[F,O1,Q1],[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,$]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[F,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[F,[w,q+" 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,We],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]]},pe=function(xe,Me){if(typeof xe===g&&(Me=xe,xe=r),!(this instanceof pe))return new pe(xe,Me).getResult();var ze=typeof n!==d&&n.navigator?n.navigator:r,Le=xe||(ze&&ze.userAgent?ze.userAgent:l),Qe=ze&&ze.userAgentData?ze.userAgentData:r,F1=Me?r1(he,Me):he,I1=ze&&ze.userAgent==Le;return this.getBrowser=function(){var Ve={};return Ve[w]=r,Ve[F]=r,a1.call(Ve,Le,F1.browser),Ve[m]=e1(Ve[F]),I1&&ze&&ze.brave&&typeof ze.brave.isBrave==u&&(Ve[w]="Brave"),Ve},this.getCPU=function(){var Ve={};return Ve[x]=r,a1.call(Ve,Le,F1.cpu),Ve},this.getDevice=function(){var Ve={};return Ve[b]=r,Ve[v]=r,Ve[C]=r,a1.call(Ve,Le,F1.device),I1&&!Ve[C]&&Qe&&Qe.mobile&&(Ve[C]=A),I1&&Ve[v]=="Macintosh"&&ze&&typeof ze.standalone!==d&&ze.maxTouchPoints&&ze.maxTouchPoints>2&&(Ve[v]="iPad",Ve[C]=k),Ve},this.getEngine=function(){var Ve={};return Ve[w]=r,Ve[F]=r,a1.call(Ve,Le,F1.engine),Ve},this.getOS=function(){var Ve={};return Ve[w]=r,Ve[F]=r,a1.call(Ve,Le,F1.os),I1&&!Ve[w]&&Qe&&Qe.platform&&Qe.platform!="Unknown"&&(Ve[w]=Qe.platform.replace(/chrome os/i,We).replace(/macos/i,Oe)),Ve},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 Le},this.setUA=function(Ve){return Le=typeof Ve===h&&Ve.length>H?m1(Ve,H):Ve,this},this.setUA(Le),this};pe.VERSION=i,pe.BROWSER=Se([w,F,m]),pe.CPU=Se([x]),pe.DEVICE=Se([v,b,C,M,A,D,k,R,V]),pe.ENGINE=pe.OS=Se([w,F]),e.exports&&(t=e.exports=pe),t.UAParser=pe;var be=typeof n!==d&&(n.jQuery||n.Zepto);if(be&&!be.ua){var Be=new pe;be.ua=Be.getResult(),be.ua.get=function(){return Be.getUA()},be.ua.set=function(xe){Be.setUA(xe);var Me=Be.getResult();for(var ze in Me)be.ua[ze]=Me[ze]}}})(typeof window=="object"?window:ml)})(pu,pu.exports),Object.defineProperty(lt,"__esModule",{value:!0});function tee(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var n2=tt.default,On=tee(n2),zC=pu.exports,Ol=new zC,r2=Ol.getBrowser(),nee=Ol.getCPU(),fo=Ol.getDevice(),gu=Ol.getEngine(),Bl=Ol.getOS(),c4=Ol.getUA(),kC=function(t){return Ol.setUA(t)},u4=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new zC(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)}}},PC=Object.freeze({ClientUAInstance:Ol,browser:r2,cpu:nee,device:fo,engine:gu,os:Bl,ua:c4,setUa:kC,parseUserAgent:u4});function OC(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 ree(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OC(Object(n),!0).forEach(function(r){aee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OC(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 oee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BC(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 iee(e,t,n){return t&&BC(e.prototype,t),n&&BC(e,n),e}function aee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mu(){return mu=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},mu.apply(this,arguments)}function lee(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&&Cu(e,t)}function vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vu(e)}function Cu(e,t){return Cu=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Cu(e,t)}function see(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=see(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 Kc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cee(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 Kc(e)}function uee(e,t){return dee(e)||hee(e,t)||fee(e,t)||pee()}function dee(e){if(Array.isArray(e))return e}function hee(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(d){l=!0,u=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(l)throw u}}return r}}function fee(e,t){if(!!e){if(typeof e=="string")return LC(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 LC(e,t)}}function LC(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 pee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1404
+ ${e.palette.mode==="light"?js(Jt(e.palette.divider,1),.88):Ws(Jt(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",[`&.${W_.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 du=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTableCell"}),{align:i="inherit",className:l,component:c,padding:u,scope:d,size:g,sortDirection:h,variant:m}=r,v=_e(r,j_),w=y.useContext(H_),C=y.useContext(N_),b=C&&C.variant==="head";let F;c?F=c:F=b?"th":"td";let x=d;F==="td"?x=void 0:!x&&b&&(x="col");const M=m||C&&C.variant,A=P({},r,{align:i,component:F,padding:u||(w&&w.padding?w.padding:"normal"),size:g||(w&&w.size?w.size:"medium"),sortDirection:h,stickyHeader:M==="head"&&w&&w.stickyHeader,variant:M}),k=G_(A);let D=null;return h&&(D=h==="asc"?"ascending":"descending"),o(U_,P({as:F,ref:n,className:v1(k.root,l),"aria-sort":D,scope:x,ownerState:A},v))});function K_(e){return yt("MuiToolbar",e)}mt("MuiToolbar",["root","gutters","regular","dense"]);const Y_=["className","component","disableGutters","variant"],q_=e=>{const{classes:t,disableGutters:n,variant:r}=e;return D1({root:["root",!n&&"gutters",r]},K_,t)},J_=h1("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 Z_=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiToolbar"}),{className:i,component:l="div",disableGutters:c=!1,variant:u="regular"}=r,d=_e(r,Y_),g=P({},r,{component:l,disableGutters:c,variant:u}),h=q_(g);return o(J_,P({as:l,className:v1(h.root,i),ref:n,ownerState:g},d))}),sC=It(o("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),cC=It(o("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");const X_=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"];var __=y.forwardRef(function(t,n){var r,i,l,c,u,d,g,h;const{backIconButtonProps:m,count:v,disabled:w=!1,getItemAriaLabel:C,nextIconButtonProps:b,onPageChange:F,page:x,rowsPerPage:M,showFirstButton:A,showLastButton:k,slots:D={},slotProps:R={}}=t,V=_e(t,X_),H=Hs(),Z=We=>{F(We,0)},J=We=>{F(We,x-1)},X=We=>{F(We,x+1)},$=We=>{F(We,Math.max(0,Math.ceil(v/M)-1))},Y=(r=D.firstButton)!=null?r:Ra,Q=(i=D.lastButton)!=null?i:Ra,U=(l=D.nextButton)!=null?l:Ra,q=(c=D.previousButton)!=null?c:Ra,te=(u=D.firstButtonIcon)!=null?u:XX,_=(d=D.lastButtonIcon)!=null?d:_X,ee=(g=D.nextButtonIcon)!=null?g:cC,re=(h=D.previousButtonIcon)!=null?h:sC,we=H?Q:Y,Ce=H?U:q,Re=H?q:U,ke=H?Y:Q,se=H?R.lastButton:R.firstButton,me=H?R.nextButton:R.previousButton,Ie=H?R.previousButton:R.nextButton,Fe=H?R.firstButton:R.lastButton;return K("div",P({ref:n},V,{children:[A&&o(we,P({onClick:Z,disabled:w||x===0,"aria-label":C("first",x),title:C("first",x)},se,{children:H?o(_,P({},R.lastButtonIcon)):o(te,P({},R.firstButtonIcon))})),o(Ce,P({onClick:J,disabled:w||x===0,color:"inherit","aria-label":C("previous",x),title:C("previous",x)},me!=null?me:m,{children:H?o(ee,P({},R.nextButtonIcon)):o(re,P({},R.previousButtonIcon))})),o(Re,P({onClick:X,disabled:w||(v!==-1?x>=Math.ceil(v/M)-1:!1),color:"inherit","aria-label":C("next",x),title:C("next",x)},Ie!=null?Ie:b,{children:H?o(re,P({},R.previousButtonIcon)):o(ee,P({},R.nextButtonIcon))})),k&&o(ke,P({onClick:$,disabled:w||x>=Math.ceil(v/M)-1,"aria-label":C("last",x),title:C("last",x)},Fe,{children:H?o(te,P({},R.firstButtonIcon)):o(_,P({},R.lastButtonIcon))}))]}))});function $_(e){return yt("MuiTablePagination",e)}var G3=mt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),uC;const e$=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],t$=h1(du,{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}})),n$=h1(Z_,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${G3.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},[`& .${G3.actions}`]:{flexShrink:0,marginLeft:20}})),r$=h1("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),o$=h1("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),i$=h1(uu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${G3.selectIcon}`]:t.selectIcon,[`& .${G3.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${G3.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),a$=h1(Ji,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),l$=h1("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function s$({from:e,to:t,count:n}){return`${e}\u2013${t} of ${n!==-1?n:`more than ${t}`}`}function c$(e){return`Go to ${e} page`}const u$=e=>{const{classes:t}=e;return D1({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},$_,t)};var d$=y.forwardRef(function(t,n){var r;const i=Ft({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=__,backIconButtonProps:c,className:u,colSpan:d,component:g=du,count:h,disabled:m=!1,getItemAriaLabel:v=c$,labelDisplayedRows:w=s$,labelRowsPerPage:C="Rows per page:",nextIconButtonProps:b,onPageChange:F,onRowsPerPageChange:x,page:M,rowsPerPage:A,rowsPerPageOptions:k=[10,25,50,100],SelectProps:D={},showFirstButton:R=!1,showLastButton:V=!1,slotProps:H={},slots:Z={}}=i,J=_e(i,e$),X=i,$=u$(X),Y=(r=H==null?void 0:H.select)!=null?r:D,Q=Y.native?"option":a$;let U;(g===du||g==="td")&&(U=d||1e3);const q=Pn(Y.id),te=Pn(Y.labelId),_=()=>h===-1?(M+1)*A:A===-1?h:Math.min(h,(M+1)*A);return o(t$,P({colSpan:U,ref:n,as:g,ownerState:X,className:v1($.root,u)},J,{children:K(n$,{className:$.toolbar,children:[o(r$,{className:$.spacer}),k.length>1&&o(o$,{className:$.selectLabel,id:te,children:C}),k.length>1&&o(i$,P({variant:"standard"},!Y.variant&&{input:uC||(uC=o(o8,{}))},{value:A,onChange:x,id:q,labelId:te},Y,{classes:P({},Y.classes,{root:v1($.input,$.selectRoot,(Y.classes||{}).root),select:v1($.select,(Y.classes||{}).select),icon:v1($.selectIcon,(Y.classes||{}).icon)}),disabled:m,children:k.map(ee=>g1.createElement(Q,P({},!T3(Q)&&{ownerState:X},{className:$.menuItem,key:ee.label?ee.label:ee,value:ee.value?ee.value:ee}),ee.label?ee.label:ee))})),o(l$,{className:$.displayedRows,children:w({from:h===0?0:M*A+1,to:_(),count:h===-1?-1:h,page:M})}),o(l,{className:$.actions,backIconButtonProps:c,count:h,nextIconButtonProps:b,onPageChange:F,page:M,rowsPerPage:A,showFirstButton:R,showLastButton:V,slotProps:H.actions,slots:Z.actions,getItemAriaLabel:v,disabled:m})]})}))});function h$(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function f$(e,t,n,r={},i=()=>{}){const{ease:l=h$,duration:c=300}=r;let u=null;const d=t[e];let g=!1;const h=()=>{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-d)+d,w>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(m)};return d===n?(i(new Error("Element already at target position")),h):(requestAnimationFrame(m),h)}const p$=["onChange"],g$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function m$(e){const{onChange:t}=e,n=_e(e,p$),r=y.useRef(),i=y.useRef(null),l=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return wn(()=>{const c=U0(()=>{const d=r.current;l(),d!==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:g$},n,{ref:i}))}function v$(e){return yt("MuiTabScrollButton",e)}var C$=mt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const b$=["className","slots","slotProps","direction","orientation","disabled"],y$=e=>{const{classes:t,orientation:n,disabled:r}=e;return D1({root:["root",n,r&&"disabled"]},v$,t)},w$=h1(Ta,{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,[`&.${C$.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}));var I$=y.forwardRef(function(t,n){var r,i;const l=Ft({props:t,name:"MuiTabScrollButton"}),{className:c,slots:u={},slotProps:d={},direction:g}=l,h=_e(l,b$),m=Hs(),v=P({isRtl:m},l),w=y$(v),C=(r=u.StartScrollButtonIcon)!=null?r:sC,b=(i=u.EndScrollButtonIcon)!=null?i:cC,F=so({elementType:C,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),x=so({elementType:b,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return o(w$,P({component:"div",className:v1(w.root,c),ref:n,role:null,ownerState:v,tabIndex:null},h,{children:g==="left"?o(C,P({},F)):o(b,P({},x))}))});function E$(e){return yt("MuiTabs",e)}var hu=mt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const S$=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],dC=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hC=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uc=(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}}},A$=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:l,centered:c,scrollButtonsHideMobile:u,classes:d}=e;return D1({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"]},E$,d)},x$=h1("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hu.scrollButtons}`]:t.scrollButtons},{[`& .${hu.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&&{[`& .${hu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),F$=h1("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"})),M$=h1("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"})),z$=h1("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})),k$=h1(m$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),fC={};var P$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTabs"}),i=Ba(),l=Hs(),{"aria-label":c,"aria-labelledby":u,action:d,centered:g=!1,children:h,className:m,component:v="div",allowScrollButtonsMobile:w=!1,indicatorColor:C="primary",onChange:b,orientation:F="horizontal",ScrollButtonComponent:x=I$,scrollButtons:M="auto",selectionFollowsFocus:A,slots:k={},slotProps:D={},TabIndicatorProps:R={},TabScrollButtonProps:V={},textColor:H="primary",value:Z,variant:J="standard",visibleScrollbar:X=!1}=r,$=_e(r,S$),Y=J==="scrollable",Q=F==="vertical",U=Q?"scrollTop":"scrollLeft",q=Q?"top":"left",te=Q?"bottom":"right",_=Q?"clientHeight":"clientWidth",ee=Q?"height":"width",re=P({},r,{component:v,allowScrollButtonsMobile:w,indicatorColor:C,orientation:F,vertical:Q,scrollButtons:M,textColor:H,variant:J,visibleScrollbar:X,fixed:!Y,hideScrollbar:Y&&!X,scrollableX:Y&&!Q,scrollableY:Y&&Q,centered:g&&!Y,scrollButtonsHideMobile:!w}),we=A$(re),Ce=so({elementType:k.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:re}),Re=so({elementType:k.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:re}),[ke,se]=y.useState(!1),[me,Ie]=y.useState(fC),[Fe,We]=y.useState(!1),[Oe,qe]=y.useState(!1),[r1,Se]=y.useState(!1),[Je,o1]=y.useState({overflow:"hidden",scrollbarWidth:0}),e1=new Map,m1=y.useRef(null),a1=y.useRef(null),O1=()=>{const i1=m1.current;let w1;if(i1){const $1=i1.getBoundingClientRect();w1={clientWidth:i1.clientWidth,scrollLeft:i1.scrollLeft,scrollTop:i1.scrollTop,scrollLeftNormalized:qj(i1,l?"rtl":"ltr"),scrollWidth:i1.scrollWidth,top:$1.top,bottom:$1.bottom,left:$1.left,right:$1.right}}let _1;if(i1&&Z!==!1){const $1=a1.current.children;if($1.length>0){const At=$1[e1.get(Z)];_1=At?At.getBoundingClientRect():null}}return{tabsMeta:w1,tabMeta:_1}},B1=Fn(()=>{const{tabsMeta:i1,tabMeta:w1}=O1();let _1=0,$1;if(Q)$1="top",w1&&i1&&(_1=w1.top-i1.top+i1.scrollTop);else if($1=l?"right":"left",w1&&i1){const Bt=l?i1.scrollLeftNormalized+i1.clientWidth-i1.scrollWidth:i1.scrollLeft;_1=(l?-1:1)*(w1[$1]-i1[$1]+Bt)}const At={[$1]:_1,[ee]:w1?w1[ee]:0};if(isNaN(me[$1])||isNaN(me[ee]))Ie(At);else{const Bt=Math.abs(me[$1]-At[$1]),pt=Math.abs(me[ee]-At[ee]);(Bt>=1||pt>=1)&&Ie(At)}}),Q1=(i1,{animation:w1=!0}={})=>{w1?f$(U,m1.current,i1,{duration:i.transitions.duration.standard}):m1.current[U]=i1},he=i1=>{let w1=m1.current[U];Q?w1+=i1:(w1+=i1*(l?-1:1),w1*=l&&Kg()==="reverse"?-1:1),Q1(w1)},pe=()=>{const i1=m1.current[_];let w1=0;const _1=Array.from(a1.current.children);for(let $1=0;$1<_1.length;$1+=1){const At=_1[$1];if(w1+At[_]>i1){$1===0&&(w1=i1);break}w1+=At[_]}return w1},be=()=>{he(-1*pe())},Be=()=>{he(pe())},xe=y.useCallback(i1=>{o1({overflow:null,scrollbarWidth:i1})},[]),Me=()=>{const i1={};i1.scrollbarSizeListener=Y?o(k$,{onChange:xe,className:v1(we.scrollableX,we.hideScrollbar)}):null;const _1=Y&&(M==="auto"&&(Fe||Oe)||M===!0);return i1.scrollButtonStart=_1?o(x,P({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ce},orientation:F,direction:l?"right":"left",onClick:be,disabled:!Fe},V,{className:v1(we.scrollButtons,V.className)})):null,i1.scrollButtonEnd=_1?o(x,P({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Re},orientation:F,direction:l?"left":"right",onClick:Be,disabled:!Oe},V,{className:v1(we.scrollButtons,V.className)})):null,i1},ze=Fn(i1=>{const{tabsMeta:w1,tabMeta:_1}=O1();if(!(!_1||!w1)){if(_1[q]<w1[q]){const $1=w1[U]+(_1[q]-w1[q]);Q1($1,{animation:i1})}else if(_1[te]>w1[te]){const $1=w1[U]+(_1[te]-w1[te]);Q1($1,{animation:i1})}}}),Le=Fn(()=>{Y&&M!==!1&&Se(!r1)});y.useEffect(()=>{const i1=U0(()=>{m1.current&&B1()});let w1;const _1=Bt=>{Bt.forEach(pt=>{pt.removedNodes.forEach(Ct=>{var rn;(rn=w1)==null||rn.unobserve(Ct)}),pt.addedNodes.forEach(Ct=>{var rn;(rn=w1)==null||rn.observe(Ct)})}),i1(),Le()},$1=Ui(m1.current);$1.addEventListener("resize",i1);let At;return typeof ResizeObserver!="undefined"&&(w1=new ResizeObserver(i1),Array.from(a1.current.children).forEach(Bt=>{w1.observe(Bt)})),typeof MutationObserver!="undefined"&&(At=new MutationObserver(_1),At.observe(a1.current,{childList:!0})),()=>{var Bt,pt;i1.clear(),$1.removeEventListener("resize",i1),(Bt=At)==null||Bt.disconnect(),(pt=w1)==null||pt.disconnect()}},[B1,Le]),y.useEffect(()=>{const i1=Array.from(a1.current.children),w1=i1.length;if(typeof IntersectionObserver!="undefined"&&w1>0&&Y&&M!==!1){const _1=i1[0],$1=i1[w1-1],At={root:m1.current,threshold:.99},Bt=Ln=>{We(!Ln[0].isIntersecting)},pt=new IntersectionObserver(Bt,At);pt.observe(_1);const Ct=Ln=>{qe(!Ln[0].isIntersecting)},rn=new IntersectionObserver(Ct,At);return rn.observe($1),()=>{pt.disconnect(),rn.disconnect()}}},[Y,M,r1,h==null?void 0:h.length]),y.useEffect(()=>{se(!0)},[]),y.useEffect(()=>{B1()}),y.useEffect(()=>{ze(fC!==me)},[ze,me]),y.useImperativeHandle(d,()=>({updateIndicator:B1,updateScrollButtons:Le}),[B1,Le]);const Qe=o(z$,P({},R,{className:v1(we.indicator,R.className),ownerState:re,style:P({},me,R.style)}));let F1=0;const I1=y.Children.map(h,i1=>{if(!y.isValidElement(i1))return null;const w1=i1.props.value===void 0?F1:i1.props.value;e1.set(w1,F1);const _1=w1===Z;return F1+=1,y.cloneElement(i1,P({fullWidth:J==="fullWidth",indicator:_1&&!ke&&Qe,selected:_1,selectionFollowsFocus:A,onChange:b,textColor:H,value:w1},F1===1&&Z===!1&&!i1.props.tabIndex?{tabIndex:0}:{}))}),Ve=i1=>{const w1=a1.current,_1=Yn(w1).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"),i1.key){case At:i1.preventDefault(),Uc(w1,_1,hC);break;case Bt:i1.preventDefault(),Uc(w1,_1,dC);break;case"Home":i1.preventDefault(),Uc(w1,null,dC);break;case"End":i1.preventDefault(),Uc(w1,null,hC);break}},b1=Me();return K(x$,P({className:v1(we.root,m),ownerState:re,ref:n,as:v},$,{children:[b1.scrollButtonStart,b1.scrollbarSizeListener,K(F$,{className:we.scroller,ownerState:re,style:{overflow:Je.overflow,[Q?`margin${l?"Left":"Right"}`:"marginBottom"]:X?void 0:-Je.scrollbarWidth},ref:m1,children:[o(M$,{"aria-label":c,"aria-labelledby":u,"aria-orientation":F==="vertical"?"vertical":null,className:we.flexContainer,ownerState:re,onKeyDown:Ve,ref:a1,role:"tablist",children:I1}),ke&&Qe]}),b1.scrollButtonEnd]}))});function O$(e){return yt("MuiTextField",e)}mt("MuiTextField",["root"]);const B$=["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"],L$={standard:Tv,filled:Mv,outlined:_v},T$=e=>{const{classes:t}=e;return D1({root:["root"]},O$,t)},R$=h1(zv,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var D$=y.forwardRef(function(t,n){const r=Ft({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:l=!1,children:c,className:u,color:d="primary",defaultValue:g,disabled:h=!1,error:m=!1,FormHelperTextProps:v,fullWidth:w=!1,helperText:C,id:b,InputLabelProps:F,inputProps:x,InputProps:M,inputRef:A,label:k,maxRows:D,minRows:R,multiline:V=!1,name:H,onBlur:Z,onChange:J,onFocus:X,placeholder:$,required:Y=!1,rows:Q,select:U=!1,SelectProps:q,type:te,value:_,variant:ee="outlined"}=r,re=_e(r,B$),we=P({},r,{autoFocus:l,color:d,disabled:h,error:m,fullWidth:w,multiline:V,required:Y,select:U,variant:ee}),Ce=T$(we),Re={};ee==="outlined"&&(F&&typeof F.shrink!="undefined"&&(Re.notched=F.shrink),Re.label=k),U&&((!q||!q.native)&&(Re.id=void 0),Re["aria-describedby"]=void 0);const ke=Pn(b),se=C&&ke?`${ke}-helper-text`:void 0,me=k&&ke?`${ke}-label`:void 0,Ie=L$[ee],Fe=o(Ie,P({"aria-describedby":se,autoComplete:i,autoFocus:l,defaultValue:g,fullWidth:w,multiline:V,name:H,rows:Q,maxRows:D,minRows:R,type:te,value:_,id:ke,inputRef:A,onBlur:Z,onChange:J,onFocus:X,placeholder:$,inputProps:x},Re,M));return K(R$,P({className:v1(Ce.root,u),disabled:h,error:m,fullWidth:w,ref:n,required:Y,color:d,variant:ee,ownerState:we},re,{children:[k!=null&&k!==""&&o(Vv,P({htmlFor:ke,id:me},F,{children:k})),U?o(uu,P({"aria-describedby":se,id:ke,labelId:me,value:_,input:Fe},q,{children:c})):Fe,C&&o(bZ,P({id:se},v,{children:C}))]}))});function a4({status:e,message:t}){const n=[k3,P3,"MATCH","NOT_VERIFY",El,Sl,"0",400,401,404,0,429,500],r=["ACCEPT","Success","FACER_OK",200];return K(O3,{children:[n.includes(e)&&o(tQ,{message:t||"Error obteniendo el Token"}),r.includes(e)&&o(jp,{message:t})]})}const l4=e=>e!==El&&e!==k3&&e!==P3&&e!==Sl&&e!=="";var V$=It(o("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),pC=It(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"),H$=It(o("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows"),N$=It(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"),Q$=It(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"),W$=It(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$=It(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"),G$=It(o("path",{d:"M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64zm-6.02-5L8.5 5.48 10.57 11zm15.16.59-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13z"}),"Spellcheck"),gC=It(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 s4({action:e}){return o(nn,{onClick:e,width:"100%",textAlign:"left",marginBottom:3,marginLeft:3,children:o(a8,{arrow:!0,title:"Volver",TransitionComponent:dv,placement:"right",TransitionProps:{timeout:600},sx:{mb:"20px"},style:{cursor:"pointer"},children:o(V$,{className:"grayscale"})})})}function mC({mode:e="light",showFilterByButton:t=!0,dataBlackList:n,icon:r,clientId:i,authorize:l,inProduction:c="prd",source:u="component",eventId:d=null,countryCodeAllowed:g=null,validateVpn:h=!1,successMessage:m,alertMessage:v}){const{onSendSubmitDocument:w,simpleHandleSubmit:C,isLoading:b,controlDoc:F,errorsDoc:x,status:M,message:A,listMatch:k,select:D,setSelect:R,clearState:V,countryCode:H}=Np(n,i,l,c,u,d,g,h,m,v);return K("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(Is,{}):null,o("form",{onSubmit:C(w),id:"blacklist",children:K("div",{className:"sub",children:[l4(M)&&o(s4,{action:V}),K("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(a4,{status:M,message:A.message?A.message:A})]}),!Hr(k)&&o(Gp,{lists:k}),Hr(M)&&K(O3,{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:Z=>R(Z),selected:D,icon:r&&r,control:F,error:x.country}),o(B2,{type:"submit",children:"Procesar"})]}),M!==El&&M!==k3&&M!==P3&&M!==Sl&&t?o(nn,{width:"100%",mt:2,children:V&&Object.keys(k).length>0&&o(B2,{className:"my-1 col-12",onClick:V,children:"Filtrar por"})}):null]})})]})}mC.propTypes={mode:J1.exports.PropTypes.string,icon:J1.exports.PropTypes.func,clientId:J1.exports.PropTypes.string.isRequired,authorize:J1.exports.PropTypes.func.isRequired,inProduction:J1.exports.PropTypes.string,countryCodeAllowed:J1.exports.PropTypes.array,source:J1.exports.PropTypes.string,eventId:J1.exports.PropTypes.string,validateVpn:J1.exports.PropTypes.bool,successMessage:J1.exports.PropTypes.string,alertMessage:J1.exports.PropTypes.string,dataBlackList:J1.exports.PropTypes.func.isRequired,showFilterByButton:J1.exports.PropTypes.bool};const U$=(e,t,n,r,i,l,c,u,d,g)=>{const[h,m]=g1.useState({}),[v,w]=g1.useState(""),[C,b]=g1.useState(!1),[F,x]=g1.useState(t===void 0?P3:n===void 0?k3:""),[M,A]=g1.useState(null),k=w5(l),[D,R]=g1.useState(g),V=g1.useRef(null),[H,Z]=g1.useState(!1),[J,X]=g1.useState(!1);g1.useEffect(()=>{c&&(k==null?void 0:k.data_connection.isocode)&&c.length!==0&&!c.some(re=>re===(k==null?void 0:k.data_connection.isocode))&&(x(El),w(I5)),u&&(k==null?void 0:k.data_connection.proxy)==S5&&(x(Sl),w(E5)),c&&k&&A(k==null?void 0:k.data_connection.isocode)},[k,c]);const $=()=>{R(g),m({}),x(""),w(""),b(!1)},{handleSubmit:Y}=$4(),Q=async()=>{var re;b(!0);try{const we=await n(),Re={method:"POST",path:"api/v1/kyc-kit/document/recognition",inProduction:l,customHeaders:{client_id:t,access_token:we},bodyParams:h};try{const ke=await y3(Re),se=ke.data.data,me=await Bo({data:{...se,status_code:200},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});me&&Object.assign(se,{checkIp:me.check_ip}),se&&await e(se);const{message:Ie}=ke.data;Ie&&x(Ie),w(d||"Documento verificado con \xE9xito")}catch(ke){console.log(ke,"controller");let se="";const{status:me}=ke.response,Ie=await Bo({data:{first_image:h.firstImage,second_image:Object.keys(h).length>1?h.secondImage:"",status_code:me},component:"ocr",eventId:r,source:i,inProduction:l,clientId:t,geolocation:k});await e({...ke,countAttempts:Ie.count_try}),ke.response.data.code==="020"&&X(!0),(re=ke.response.data)!=null&&re.message?se=ke.response.data.message:me===500&&(se={limit_of_request:q9}),b(null),w(se),x(me),bs(ke)}}catch{xn.error("Error - Verificar host con el proveedor")}finally{b(!1)}};console.log(J);const U=async re=>{const we=V.current.getScreenshot(),Ce=Object.assign(h,{[re]:we});console.log(Ce),m(Ce),Z(!1)},q=async(re,we)=>{const Ce=Object.assign(h,{[re]:we});console.log(Ce),m(Ce),Z(!1)},_=(()=>{const[re,we]=g1.useState(window.innerHeight>window.innerWidth);return g1.useEffect(()=>{const Ce=()=>{we(window.innerHeight>window.innerWidth)};return window.addEventListener("resize",Ce),()=>{window.removeEventListener("resize",Ce)}},[]),re})(),ee=g1.useMemo(()=>({width:{ideal:_?1080:1920},height:{ideal:_?1920:1080},aspectRatio:{ideal:4/5},frameRate:{ideal:30},advanced:[{focusMode:"continuous"}],facingMode:"environment"}),[_]);return g1.useEffect(()=>{H&&(Z(!1),setTimeout(()=>Z(!0),100))},[_]),{onSendSubmitDocument:Q,simpleHandleSubmit:Y,isLoading:C,status:F,message:v,base64:h,setBase64:m,clearState:$,countryCode:M,dualMode:D,setDualMode:R,dualModeRequired:g,onUploadImage:U,webcamRef:V,activateCamera:H,setActivateCamera:Z,videoConstraints:ee,onUploadImage2:q,uploadDocumentByPhone:J,setUploadDocumentByPhone:X}},K$=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=="",vC=({title:e,subtitle:t})=>K(nn,{children:[o(v2,{variant:"h6",className:"title",mt:2,children:e}),o(v2,{variant:"body2",children:t}),K(Hv,{dense:!0,children:[K(ou,{children:[o(Na,{children:o(W$,{})}),o(Qa,{primary:"Procura tener buena iluminaci\xF3n"})]}),K(ou,{children:[o(Na,{children:o(j$,{})}),o(Qa,{primary:"Evita reflejos en el documento de identidad"})]}),K(ou,{children:[o(Na,{children:o(G$,{})}),o(Qa,{primary:"Procura que el texto en el documento sea legible"})]})]})]});function CC({setActivateCamera:e,activateCamera:t,videoConstraints:n,videoRef:r,streamRef:i,onTapToFocus:l,title:c,subtitle:u}){return g1.useEffect(()=>(t&&r.current&&navigator.mediaDevices.getUserMedia({video:n||{facingMode:"environment"},audio:!1}).then(d=>{r.current&&(r.current.srcObject=d,r.current.play(),i.current=d)}).catch(d=>{console.error("Error al acceder a la c\xE1mara:",d)}),()=>{i.current&&(i.current.getTracks().forEach(d=>d.stop()),i.current=null)}),[t,n]),o("div",{className:"drag-zone",children:o(nn,{className:"drag-and-drop-container",children:o(nn,{onClick:()=>e(!0),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",children:t?o(nn,{children:o("video",{ref:r,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",borderRadius:"5px"},onClick:l,playsInline:!0,muted:!0,autoPlay:!0})}):o(vC,{title:c,subtitle:u})})})})}function bC({fileInputRef:e,handleFileChange:t,side:n,title:r,subtitle:i,startUpload:l,setActivateCamera:c}){return o("div",{className:"drag-zone",children:o(nn,{className:"drag-and-drop-container",children:o(nn,{onClick:()=>c(!0),position:"relative",zIndex:1,width:"100%",height:"100%",overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",padding:2,children:l?K(O3,{children:[K("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[o(pC,{}),o(v2,{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/*",capture:"environment",onChange:t,style:{display:"none"}})]}):o(vC,{title:r,subtitle:i})})})})}function Y$(e){return new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)})}const q$=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>Vp||i>Hp){const l=Math.min(Vp/r,Hp/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}},yC=()=>{const e=navigator.hardwareConcurrency||2,t=navigator.deviceMemory||2;return e<=4||t<=3};function fu(e){const{children:t,value:n,index:r,tabOptions:i,base64:l,setBase64:c,setActivateCamera:u,activateCamera:d,webcamRef:g,Webcam:h,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(nn,{height:"100%",children:t})})}fu.propTypes={children:Ye.node,index:Ye.number.isRequired,value:Ye.number.isRequired};function wC(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function J$({base64:e,setBase64:t,setActivateCamera:n,activateCamera:r,webcamRef:i,Webcam:l,videoConstraints:c,onUploadImage:u,dualModeRequired:d,status:g,onUploadImage2:h,uploadDocumentByPhone:m,onSendSubmitDocument:v}){const[w,C]=y.useState(0),[b,F]=y.useState(!1),[x,M]=g1.useState(!1),A=(Q,U)=>{C(U)},k=Q=>{const U={...e};delete U[Q],t(U)},D=()=>{F(!b)},R=g1.useRef(null),V=g1.useRef(null),H=async Q=>{const U=R.current;if(!U)return;const{canvas:q}=q$(U),te=q.toDataURL("image/jpeg");h(Q,te),$()},Z=async()=>{var te,_;if(!V.current)return;const[Q]=V.current.getVideoTracks(),U=(te=Q.getCapabilities)==null?void 0:te.call(Q),q=(_=Q.getSettings)==null?void 0:_.call(Q);if(console.log("focus capabilities:",U),console.log("focus settings:",q),!U||!U.focusMode){console.warn("No se puede acceder a las capacidades de enfoque");return}try{U.focusMode.includes("continuous")?await Q.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"continuous"}]}):U.focusMode.includes("single-shot")?await Q.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"single-shot"}]}):U.focusMode.includes("manual")&&U.focusDistance?await Q.applyConstraints({frameRate:{ideal:30},advanced:[{focusMode:"manual",focusDistance:U.focusDistance.min}]}):console.warn("No hay modo de enfoque compatible")}catch(ee){console.error("Error al aplicar constraints de enfoque:",ee)}},J=g1.useRef(null),X=async Q=>{const U=Q.target.files[0],q=await Y$(U),te=Q.target.name;h(te,q),$()},$=()=>{e.firstImage&&d&&A(Q=>Q,1),e.firstImage&&e.secondImage&&v()},Y=()=>{M(!1),n(!0)};return K(nn,{sx:{width:"100%",height:"100%"},children:[o(nn,{sx:{borderBottom:1,borderColor:"divider"},children:K(P$,{value:w,onChange:A,"aria-label":"document selector",children:[o(lC,{label:"Frontal",...wC(0)}),o(lC,{label:"Reverso",...wC(1)})]})}),o(fu,{value:w,index:0,children:o(nn,{className:"thumbnails-container",children:o(nn,{className:"thumbnails",children:K(nn,{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:D,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m||yC()?o(bC,{handleFileChange:X,side:"firstImage",fileInputRef:J,title:"Cargar documeto",subtitle:"Vamos a cargar el documento desde tu dispositivo. \xA1Ten en cuenta lo siguiente!",startUpload:r,setActivateCamera:n}):o(CC,{videoRef:R,streamRef:V,setActivateCamera:n,activateCamera:r,videoConstraints:c,onTapToFocus:Z,title:"Cargar documento",subtitle:"Subir frontal del documento"}),K(nn,{width:"100%",children:[e.firstImage&&K(nn,{className:"toolbox-container",children:[o(nn,{className:"zoom-button",onClick:D,children:o(a8,{title:"Ampliar",placement:"right",arrow:!0,children:o(gC,{sx:{width:"18px"}})})}),o(nn,{className:"delete-button",onClick:()=>k("firstImage"),children:o(a8,{title:"Vaciar",placement:"right",arrow:!0,children:o(v2,{variant:"body2",children:"x"})})})]}),!r&&!e.firstImage&&o(B2,{type:"button",onClick:Y,children:"Continuar"}),!r&&e.firstImage&&o(B2,{type:"button",onClick:Q=>A(Q,1),children:"Cargar reverso del documento"}),r&&!x&&!m&&o(B2,{type:"button",onClick:()=>H("firstImage"),children:"Capturar"}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!d&&e.firstImage||d&&e.firstImage&&e.secondImage)&&K(nn,{children:[o(xv,{children:"O"}),o(B2,{type:"submit",children:"Procesar"})]})]})]})})})}),o(fu,{value:w,index:1,children:o(nn,{className:"thumbnails-container",children:o(nn,{className:"thumbnails",children:K(nn,{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:D,alt:"thumbnail",style:{width:"100%",height:"100%",objectFit:"cover"}})}):m||yC()?o(bC,{handleFileChange:X,side:"secondImage",fileInputRef:J,title:"Bien ahora vamos por el reverso",subtitle:"\xA1Recuerda tener en cuenta lo siguiente!",startUpload:r,setActivateCamera:n}):o(CC,{videoRef:R,streamRef:V,setActivateCamera:n,activateCamera:r,videoConstraints:c,title:"Bien ahora carguemos el reverso",subtitle:"Asegurate de que sea legible",onTapToFocus:Z}),K(nn,{width:"100%",children:[e.secondImage&&K(nn,{className:"toolbox-container",children:[o(nn,{className:"zoom-button",onClick:D,children:o(a8,{title:"Ampliar",placement:"right",arrow:!0,children:o(gC,{sx:{width:"18px"}})})}),o(nn,{className:"delete-button",onClick:()=>k("secondImage"),children:o(a8,{title:"Vaciar",placement:"right",arrow:!0,children:o(v2,{variant:"body2",children:"x"})})})]}),!r&&!e.secondImage&&o(B2,{type:"button",onClick:Y,children:"Continuar"}),r&&!x&&!m&&o(B2,{type:"button",onClick:()=>H("secondImage"),children:"Capturar"}),!g&&Object.keys(e).length>0&&!r&&Hr(g)&&(!d&&e.secondImage&&e.firstImage||d&&e.firstImage&&e.secondImage)&&o(B2,{type:"submit",children:"Procesar"})]})]})})})}),b&&o(nn,{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(nn,{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",height:525,children:o("img",{src:w===0?e.firstImage:e.secondImage,alt:"zoomed",onClick:D,style:{overflow:"auto",maxWidth:b?"140%":"100%",maxHeight:"90%",objectFit:"contain",borderRadius:"5px"}})})})]})}var IC={exports:{}};(function(e,t){(function(r,i){e.exports=i(tt.default)})(ml,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,d){l.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:d})},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 d=Object.create(null);if(l.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),u&2&&typeof c!="string")for(var g in c)l.d(d,g,function(h){return c[h]}.bind(null,g));return d},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)}}(),d=function(){return d=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},d.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 h(){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,!h()){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(!h()){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,A=C.minScreenshotHeight!==b.minScreenshotHeight;(x||M||A)&&(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,A=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var k=M/A;M=x.minScreenshotWidth||this.video.clientWidth,A=M/k,x.minScreenshotHeight&&A<x.minScreenshotHeight&&(A=x.minScreenshotHeight,M=A*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)||A,this.ctx=this.canvas.getContext("2d")}var D=this,R=D.ctx,V=D.canvas;return R&&V&&(V.width=(C==null?void 0:C.width)||V.width,V.height=(C==null?void 0:C.height)||V.height,x.mirrored&&(R.translate(V.width,0),R.scale(-1,1)),R.imageSmoothingEnabled=x.imageSmoothing,R.drawImage(this.video,0,0,(C==null?void 0:C.width)||V.width,(C==null?void 0:C.height)||V.height),x.mirrored&&(R.scale(-1,1),R.translate(-V.width,0))),V},w.prototype.requestUserMedia=function(){var C=this,b=this.props,F=function(A,k){var D={video:typeof k!="undefined"?k:!0};b.audio&&(D.audio=typeof A!="undefined"?A:!0),C.requestUserMediaId++;var R=C.requestUserMediaId;navigator.mediaDevices.getUserMedia(D).then(function(V){C.unmounted||R!==C.requestUserMediaId?w.stopMediaStream(V):C.handleUserMedia(null,V)}).catch(function(V){C.handleUserMedia(V)})};if("mediaDevices"in navigator)F(b.audioConstraints,b.videoConstraints);else{var x=function(A){return{optional:[{sourceId:A}]}},M=function(A){var k=A.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(A){var k=null,D=null;A.forEach(function(H){H.kind==="audio"?k=H.id:H.kind==="video"&&(D=H.id)});var R=M(b.audioConstraints);R&&(k=R);var V=M(b.videoConstraints);V&&(D=V),F(x(k),x(D))})}},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 A=x.disablePictureInPicture;x.onUserMedia,x.onUserMediaError,x.screenshotFormat,x.screenshotQuality,x.minScreenshotWidth,x.minScreenshotHeight,x.audioConstraints,x.videoConstraints,x.imageSmoothing;var k=x.mirrored,D=x.style,R=D===void 0?{}:D,V=x.children,H=g(x,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),Z=k?d(d({},R),{transform:(R.transform||"")+" scaleX(-1)"}):R,J={getScreenshot:this.getScreenshot.bind(this)};return c.createElement(c.Fragment,null,c.createElement("video",d({autoPlay:!0,disablePictureInPicture:A,src:F.src,muted:!M,playsInline:!0,ref:function(X){C.video=X},style:Z},H)),V&&V(J))},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})})(IC);var EC=GI(IC.exports);function SC({mode:e="light",dataDocument:t,clientId:n,authorize:r,eventId:i=null,source:l="component",inProduction:c="prd",countryCodeAllowed:u=null,validateVpn:d=!1,successMessage:g,dualModeRequired:h=!1}){const{onSendSubmitDocument:m,simpleHandleSubmit:v,isLoading:w,status:C,message:b,clearState:F,base64:x,countryCode:M,onUploadImage:A,onUploadImage2:k,activateCamera:D,setActivateCamera:R,webcamRef:V,videoConstraints:H,setBase64:Z,uploadDocumentByPhone:J,setUploadDocumentByPhone:X}=U$(t,n,r,i,l,c,u,d,g,h);return K("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}),w||u!==null&&!M?o(Is,{}):null,o("form",{onSubmit:v(m),id:"document-reader",children:K("div",{className:"sub",children:[(l!=="secure_link"||K$(b))&&l4(C)&&o(s4,{action:F}),K("div",{className:"header-component",children:[o("h4",{children:"Lectura del documento"}),Hr(C)?o("p",{children:"Ubique su documento de identidad dentro del recuadro lo m\xE1s centrado posible."}):o(a4,{status:C,message:b})]}),Hr(C)&&o(J$,{base64:x,setBase64:Z,setActivateCamera:R,activateCamera:D,webcamRef:V,Webcam:EC,videoConstraints:H,onUploadImage:A,dualModeRequired:h,status:C,onUploadImage2:k,uploadDocumentByPhone:J,setUploadDocumentByPhone:X,onSendSubmitDocument:m})]})})]})}SC.propTypes={mode:J1.exports.PropTypes.string,clientId:J1.exports.PropTypes.string.isRequired,authorize:J1.exports.PropTypes.func.isRequired,dataDocument:J1.exports.PropTypes.func.isRequired,inProduction:J1.exports.PropTypes.string,countryCodeAllowed:J1.exports.PropTypes.array,source:J1.exports.PropTypes.string,eventId:J1.exports.PropTypes.string,validateVpn:J1.exports.PropTypes.bool,dualModeRequired:J1.exports.PropTypes.bool,successMessage:J1.exports.PropTypes.string};const AC=async(e,t,n,r)=>{const i={method:"POST",path:"api/v1/kyc-kit/facematch",inProduction:n,customHeaders:r,bodyParams:{doc:e,selfie:t}};try{return(await y3(i)).data}catch(l){throw console.log(l),l}},Z$=(e,t,n,r,i,l,c,u,d,g,h)=>{const[m,v]=g1.useState({}),[w,C]=g1.useState(""),[b,F]=g1.useState(""),[x,M]=g1.useState(!1),[A,k]=g1.useState(t===void 0?status_client_id:i===void 0?status_token:""),D=g1.useRef(null),[R,V]=g1.useState(null),[H,Z]=g1.useState(null),J=w5(l),X=g1.useCallback(async()=>{const U=D.current.getScreenshot({width:480,heigth:720,aspectRatio:.6,facingMode:"user"});V(U)},[D]);g1.useEffect(()=>{d&&J&&d.length!==0&&!d.some(U=>U===(J==null?void 0:J.data_connection.isocode))&&(k(El),F(I5)),g&&(J==null?void 0:J.data_connection.proxy)==S5&&(k(Sl),F(E5)),d&&J&&Z(J==null?void 0:J.data_connection.isocode)},[J,d]);const $=()=>{v({}),C(""),k(""),F(""),V(null),u(!1),M(!1)},{handleSubmit:Y}=$4();return{onSendSubmitSelfie:async()=>{var U,q;M(!0);try{const te=await i(),_={client_id:t,access_token:te};try{const ee=await AC(c,R,l,_);ee&&await e(ee.data),await Bo({data:{first_image:R,second_image:c,similarity:ee.data.similarity,status_code:200},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:J});const{message:re}=ee.data;re&&k(re),F(h||"Comparaci\xF3n de rostro procesado con \xE9xito")}catch(ee){let re="";const{status:we}=ee.response;await Bo({data:{first_image:R,second_image:c,similarity:(U=te==null?void 0:te.data)!=null&&U.similarity?te.data.similarity:null,status_code:we},component:"facematch",eventId:n,source:r,inProduction:l,clientId:t,geolocation:J}),(q=ee.response.data)!=null&&q.message?re=ee.response.data.message:we===500&&(re={limit_of_request:q9}),M(null),F(re),k(we),bs(ee)}}catch(te){console.log(te),xn.error("Error - Verificar host con el proveedor")}finally{M(!1)}},simpleHandleSubmit:Y,isLoading:x,docImage:m,status:A,message:b,clearState:$,webcamRef:D,url:R,setUrl:V,capturePhoto:X,countryCode:H}};var xC="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 FC({mode:e="light",dataFaceMatch:t,clientId:n,authorize:r,inProduction:i="prd",picBase64:l="",eventId:c=null,source:u="component",countryCodeAllowed:d=null,validateVpn:g=!1,successMessage:h}){const[m,v]=g1.useState(!1),{onSendSubmitSelfie:w,simpleHandleSubmit:C,isLoading:b,docImage:F,status:x,message:M,clearState:A,capturePhoto:k,webcamRef:D,url:R,countryCode:V}=Z$(t,n,c,u,r,i,l,v,d,g,h),H=J=>{console.log(J,"userMedia")},Z={with:1024,heigth:720,aspectRatio:1,facingMode:"user"};return K("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||d!==null&&!V?o(Is,{}):null,o("form",{onSubmit:C(w),id:"face-match",children:K("div",{className:"sub",children:[l4(x)&&o(s4,{action:A}),K("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(a4,{status:x,message:M})]}),Hr(x)&&K("div",{className:"pics-container",children:[o("div",{className:"box-image",children:Hr(l)?K("div",{className:"upload-document without-image",style:{backgroundImage:`url(${xC})`},children:[o(Q$,{}),o("p",{children:"Imagen no detectada"})]}):o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${l})`}})}),o("div",{className:"icon",children:o(H$,{})}),o("div",{children:m?o("div",{className:"box-image",children:R?o(O3,{children:o("div",{className:"upload-document bg-img-container",style:{backgroundImage:`url(${R})`}})}):o(EC,{ref:D,audio:!1,screenshotFormat:"image/png",videoConstraints:Z,forceScreenshotSourceSize:!0,onUserMedia:H,mirrored:!0})}):o("label",{className:"box-image",children:K("div",{className:"upload-document without-image",style:{backgroundImage:`url(${xC})`},children:[o(pC,{}),o("p",{children:Hr(F)?"Tomar selfie":F}),o("input",{hidden:!0,accept:"image/*",capture:"camera",id:"docImage",onClick:()=>v(!0)})]})})})]}),m&&!R&&D&&o(B2,{type:"button",onClick:k,children:"Capturar Selfie"}),o(O3,{children:R&&o(nn,{width:"100%",mt:2,children:o(B2,{type:"submit",children:"Procesar"})})})]})})]})}FC.propTypes={mode:J1.exports.PropTypes.string,loader:J1.exports.PropTypes.bool,data:J1.exports.PropTypes.func,clientId:J1.exports.PropTypes.string.isRequired,authorize:J1.exports.PropTypes.func.isRequired,dataFaceMatch:J1.exports.PropTypes.func.isRequired,inProduction:J1.exports.PropTypes.string,picBase64:J1.exports.PropTypes.string.isRequired,countryCodeAllowed:J1.exports.PropTypes.array,eventId:J1.exports.PropTypes.string,source:J1.exports.PropTypes.string,validateVpn:J1.exports.PropTypes.bool,successMessage:J1.exports.PropTypes.string};const X$=(e,t,n,r,i,l,c,u,d)=>{const[g,h]=g1.useState(!1),[m,v]=g1.useState(""),[w,C]=g1.useState(e===void 0?P3:m===void 0?k3:""),[b,F]=g1.useState(""),[x,M]=g1.useState(null),A=w5(r),[k,D]=g1.useState({}),[R,V]=g1.useState(0),[H,Z]=g1.useState(!1),[J,X]=g1.useState({}),$=q=>{var te,_;q.detail&&q.detail.action==="PROCESS_FINISHED"&&(((_=(te=q.detail.data)==null?void 0:te.response)==null?void 0:_.code)==0?D(q.detail.data.response):H||(Z(!0),X(q)))};g1.useEffect(()=>{var q,te,_,ee;H&&Bo({data:{first_image:(te=(q=J.detail.data)==null?void 0:q.response)!=null&&te.images?"data:image/jpeg;base64,"+J.detail.data.response.images[0]:null,face_result_code:(ee=(_=J.detail.data)==null?void 0:_.response)!=null&&ee.code?J.detail.data.response.code:250},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:A}).then(re=>{c({countAttempts:re.count_try,error:!0}),Z(!1),X({})})},[H]),g1.useEffect(()=>{i&&(A==null?void 0:A.data_connection.isocode)&&i.length!==0&&!i.some(q=>q===(A==null?void 0:A.data_connection.isocode))&&(C(El),F(I5)),u&&(A==null?void 0:A.data_connection.proxy)==S5&&(C(Sl),F(E5)),i&&A&&M(A==null?void 0:A.data_connection.isocode)},[A,i]);const Y=()=>{C(""),F(""),h(!1)};g1.useEffect(()=>{Hr(k)||Q()},[k]);const Q=async()=>{try{const q={client_id:e,access_token:m},te={method:"POST",path:"api/v1/kyc-kit/liveness/check",inProduction:r,customHeaders:q};try{await y3(te),l?await AC(l,`data:image/jpeg;base64,${k.images[0]}`,r,q).then(_=>{V(_.data.similarity),F(d||"Verificaci\xF3n de identidad completada"),Bo({data:{similarity:_.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:A})}):U()}catch(_){let ee="";const{status:re}=_.response;Bo({data:{similarity:0,first_image:`data:image/jpeg;base64,${k.images[0]}`,second_image:l,status_code:re},component:"facematch",eventId:t,source:n,inProduction:r,clientId:e,geolocation:A}),re===500&&(ee=q9),F(ee),C(re),bs(_)}}catch{xn.error("Error - Verificar host con el proveedor")}};g1.useEffect(()=>{R!==0&&U()},[R]);const U=async()=>{try{await Bo({data:{selfie:`data:image/jpeg;base64,${k.images[0]}`,similarity:l?R:null,face_result_code:0},component:"liveness",eventId:t,source:n,inProduction:r,clientId:e,geolocation:A}).then(q=>c(q))}catch(q){return q}};return{status:w,isLoading:g,listener:$,onSendSubmitLiveness:Q,clearState:Y,message:b,countryCode:x,setToken:v,data:k,similarity:R}},l8=getComputedStyle(document.documentElement).getPropertyValue("--primary"),MC=getComputedStyle(document.documentElement).getPropertyValue("--primary-hov"),_$=getComputedStyle(document.documentElement).getPropertyValue("--font-size"),$$=getComputedStyle(document.documentElement).getPropertyValue("--font-family"),eee=()=>o("div",{className:"custom_spinner_container",children:o("div",{className:"box_spinner",children:o("div",{className:"spinner"})})});var lt={},pu={exports:{}};(function(e,t){(function(n,r){var i="1.0.40",l="",c="?",u="function",d="undefined",g="object",h="string",m="major",v="model",w="name",C="type",b="vendor",F="version",x="architecture",M="console",A="mobile",k="tablet",D="smarttv",R="wearable",V="embedded",H=500,Z="Amazon",J="Apple",X="ASUS",$="BlackBerry",Y="Browser",Q="Chrome",U="Edge",q="Firefox",te="Google",_="Huawei",ee="LG",re="Microsoft",we="Motorola",Ce="Opera",Re="Samsung",ke="Sharp",se="Sony",me="Xiaomi",Ie="Zebra",Fe="Facebook",We="Chromium OS",Oe="Mac OS",qe=" Browser",r1=function(xe,Me){var ze={};for(var Le in xe)Me[Le]&&Me[Le].length%2===0?ze[Le]=Me[Le].concat(xe[Le]):ze[Le]=xe[Le];return ze},Se=function(xe){for(var Me={},ze=0;ze<xe.length;ze++)Me[xe[ze].toUpperCase()]=xe[ze];return Me},Je=function(xe,Me){return typeof xe===h?o1(Me).indexOf(o1(xe))!==-1:!1},o1=function(xe){return xe.toLowerCase()},e1=function(xe){return typeof xe===h?xe.replace(/[^\d\.]/g,l).split(".")[0]:r},m1=function(xe,Me){if(typeof xe===h)return xe=xe.replace(/^\s\s*/,l),typeof Me===d?xe:xe.substring(0,H)},a1=function(xe,Me){for(var ze=0,Le,Qe,F1,I1,Ve,b1;ze<Me.length&&!Ve;){var i1=Me[ze],w1=Me[ze+1];for(Le=Qe=0;Le<i1.length&&!Ve&&i1[Le];)if(Ve=i1[Le++].exec(xe),Ve)for(F1=0;F1<w1.length;F1++)b1=Ve[++Qe],I1=w1[F1],typeof I1===g&&I1.length>0?I1.length===2?typeof I1[1]==u?this[I1[0]]=I1[1].call(this,b1):this[I1[0]]=I1[1]:I1.length===3?typeof I1[1]===u&&!(I1[1].exec&&I1[1].test)?this[I1[0]]=b1?I1[1].call(this,b1,I1[2]):r:this[I1[0]]=b1?b1.replace(I1[1],I1[2]):r:I1.length===4&&(this[I1[0]]=b1?I1[3].call(this,b1.replace(I1[1],I1[2])):r):this[I1]=b1||r;ze+=2}},O1=function(xe,Me){for(var ze in Me)if(typeof Me[ze]===g&&Me[ze].length>0){for(var Le=0;Le<Me[ze].length;Le++)if(Je(Me[ze][Le],xe))return ze===c?r:ze}else if(Je(Me[ze],xe))return ze===c?r:ze;return Me.hasOwnProperty("*")?Me["*"]:xe},B1={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Q1={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"},he={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,Ce+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[F,[w,Ce+" GX"]],[/\bopr\/([\w\.]+)/i],[F,[w,Ce]],[/\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"+Y]],[/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 "+Y]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure "+Y],F],[/\bfocus\/([\w\.]+)/i],[F,[w,q+" Focus"]],[/\bopt\/([\w\.]+)/i],[F,[w,Ce+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[F,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[F,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[F,[w,Ce+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[F,[w,"MIUI"+qe]],[/fxios\/([\w\.-]+)/i],[F,[w,q]],[/\bqihoobrowser\/?([\w\.]*)/i],[F,[w,"360"]],[/\b(qq)\/([\w\.]+)/i],[[w,/(.+)/,"$1Browser"],F],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1"+qe],F],[/samsungbrowser\/([\w\.]+)/i],[F,[w,Re+" 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 "+Y]],[/(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,O1,B1]],[/(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,q+" 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,Re],[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,Re],[C,A]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[b,J],[C,A]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[b,J],[C,k]],[/(macintosh);/i],[v,[b,J]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[b,ke],[C,A]],[/(?:honor)([-\w ]+)[;\)]/i],[v,[b,"Honor"],[C,A]],[/\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,A]],[/\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,me],[C,A]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[b,me],[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,A]],[/\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,A]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[b,"Realme"],[C,A]],[/\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,we],[C,A]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[b,we],[C,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[b,ee],[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,ee],[C,A]],[/(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,A]],[/(pixel c)\b/i],[v,[b,te],[C,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[b,te],[C,A]],[/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,A]],[/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,A]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[b,Z],[C,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[b,Z],[C,A]],[/(playbook);[-\w\),; ]+(rim)/i],[v,b,[C,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[b,$],[C,A]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[b,X],[C,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[b,X],[C,A]],[/(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,A]],[/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,O1,{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,A]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[b,"Ulefone"],[C,A]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[v,[b,"Energizer"],[C,A]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[v,[b,"Cat"],[C,A]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[v,[b,"Smartfren"],[C,A]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[b,"Nothing"],[C,A]],[/(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,A]],[/(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,re],[C,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[b,"Fairphone"],[C,A]],[/(u304aa)/i],[v,[b,"AT&T"],[C,A]],[/\bsie-(\w*)/i],[v,[b,"Siemens"],[C,A]],[/\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,A]],[/\b(gen\d{3}) b.+49h/i],[v,[b,"Swiss"],[C,A]],[/\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,A]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],v,[C,A]],[/\b(ph-1) /i],[v,[b,"Essential"],[C,A]],[/\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,A]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[b,re],[C,A]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[b,Ie],[C,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[b,Ie],[C,A]],[/smart-tv.+(samsung)/i],[b,[C,D]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[b,Re],[C,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,ee],[C,D]],[/(apple) ?tv/i],[b,[v,J+" TV"],[C,D]],[/crkey/i],[[v,Q+"cast"],[b,te],[C,D]],[/droid.+aft(\w+)( bui|\))/i],[v,[b,Z],[C,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[b,ke],[C,D]],[/(bravia[\w ]+)( bui|\))/i],[v,[b,se],[C,D]],[/(mitv-\w{5}) bui/i],[v,[b,me],[C,D]],[/Hbbtv.*(technisat) (.*);/i],[b,v,[C,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,m1],[v,m1],[C,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[C,D]],[/(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,re],[C,M]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[b,Re],[C,R]],[/((pebble))app/i],[b,v,[C,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[b,J],[C,R]],[/droid.+; (glass) \d/i],[v,[b,te],[C,R]],[/droid.+; (wt63?0{2,3})\)/i],[v,[b,Ie],[C,R]],[/droid.+; (glass) \d/i],[v,[b,te],[C,R]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,v,[C,R]],[/; (quest( \d| pro)?)/i],[v,[b,Fe],[C,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[C,V]],[/(aeobc)\b/i],[v,[b,Z],[C,V]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[C,A]],[/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,A]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[F,[w,U+"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,O1,Q1]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[F,O1,Q1],[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,$]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[F,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[F,[w,q+" 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,We],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]]},pe=function(xe,Me){if(typeof xe===g&&(Me=xe,xe=r),!(this instanceof pe))return new pe(xe,Me).getResult();var ze=typeof n!==d&&n.navigator?n.navigator:r,Le=xe||(ze&&ze.userAgent?ze.userAgent:l),Qe=ze&&ze.userAgentData?ze.userAgentData:r,F1=Me?r1(he,Me):he,I1=ze&&ze.userAgent==Le;return this.getBrowser=function(){var Ve={};return Ve[w]=r,Ve[F]=r,a1.call(Ve,Le,F1.browser),Ve[m]=e1(Ve[F]),I1&&ze&&ze.brave&&typeof ze.brave.isBrave==u&&(Ve[w]="Brave"),Ve},this.getCPU=function(){var Ve={};return Ve[x]=r,a1.call(Ve,Le,F1.cpu),Ve},this.getDevice=function(){var Ve={};return Ve[b]=r,Ve[v]=r,Ve[C]=r,a1.call(Ve,Le,F1.device),I1&&!Ve[C]&&Qe&&Qe.mobile&&(Ve[C]=A),I1&&Ve[v]=="Macintosh"&&ze&&typeof ze.standalone!==d&&ze.maxTouchPoints&&ze.maxTouchPoints>2&&(Ve[v]="iPad",Ve[C]=k),Ve},this.getEngine=function(){var Ve={};return Ve[w]=r,Ve[F]=r,a1.call(Ve,Le,F1.engine),Ve},this.getOS=function(){var Ve={};return Ve[w]=r,Ve[F]=r,a1.call(Ve,Le,F1.os),I1&&!Ve[w]&&Qe&&Qe.platform&&Qe.platform!="Unknown"&&(Ve[w]=Qe.platform.replace(/chrome os/i,We).replace(/macos/i,Oe)),Ve},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 Le},this.setUA=function(Ve){return Le=typeof Ve===h&&Ve.length>H?m1(Ve,H):Ve,this},this.setUA(Le),this};pe.VERSION=i,pe.BROWSER=Se([w,F,m]),pe.CPU=Se([x]),pe.DEVICE=Se([v,b,C,M,A,D,k,R,V]),pe.ENGINE=pe.OS=Se([w,F]),e.exports&&(t=e.exports=pe),t.UAParser=pe;var be=typeof n!==d&&(n.jQuery||n.Zepto);if(be&&!be.ua){var Be=new pe;be.ua=Be.getResult(),be.ua.get=function(){return Be.getUA()},be.ua.set=function(xe){Be.setUA(xe);var Me=Be.getResult();for(var ze in Me)be.ua[ze]=Me[ze]}}})(typeof window=="object"?window:ml)})(pu,pu.exports),Object.defineProperty(lt,"__esModule",{value:!0});function tee(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var n2=tt.default,On=tee(n2),zC=pu.exports,Ol=new zC,r2=Ol.getBrowser(),nee=Ol.getCPU(),fo=Ol.getDevice(),gu=Ol.getEngine(),Bl=Ol.getOS(),c4=Ol.getUA(),kC=function(t){return Ol.setUA(t)},u4=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new zC(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)}}},PC=Object.freeze({ClientUAInstance:Ol,browser:r2,cpu:nee,device:fo,engine:gu,os:Bl,ua:c4,setUa:kC,parseUserAgent:u4});function OC(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 ree(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OC(Object(n),!0).forEach(function(r){aee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OC(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 oee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BC(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 iee(e,t,n){return t&&BC(e.prototype,t),n&&BC(e,n),e}function aee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mu(){return mu=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},mu.apply(this,arguments)}function lee(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&&Cu(e,t)}function vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vu(e)}function Cu(e,t){return Cu=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Cu(e,t)}function see(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=see(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 Kc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cee(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 Kc(e)}function uee(e,t){return dee(e)||hee(e,t)||fee(e,t)||pee()}function dee(e){if(Array.isArray(e))return e}function hee(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(d){l=!0,u=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(l)throw u}}return r}}function fee(e,t){if(!!e){if(typeof e=="string")return LC(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 LC(e,t)}}function LC(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 pee(){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"},s8={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},gee={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},mee=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 gee}},vee=function(t){return kC(t)},zt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},bu=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},yu=function(t){var n=bu();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},Cee=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)}},TC=function(t,n,r,i){return ree({},t,{vendor:zt(n.vendor),model:zt(n.model),os:zt(r.name),osVersion:zt(r.version),ua:zt(i)})},bee=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)}},yee=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)}},wee=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)}},Iee=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 Eee(e){var t=e?u4(e):PC,n=t.device,r=t.browser,i=t.engine,l=t.os,c=t.ua,u=mee(n.type),d=u.isBrowser,g=u.isMobile,h=u.isTablet,m=u.isSmartTV,v=u.isConsole,w=u.isWearable,C=u.isEmbedded;if(d)return Cee(d,r,i,l,c);if(m)return bee(m,i,l,c);if(v)return yee(v,i,l,c);if(g||h)return TC(u,n,l,c);if(w)return wee(w,i,l,c);if(C)return Iee(C,n,i,l,c)}var RC=function(t){var n=t.type;return n===o2.Mobile},DC=function(t){var n=t.type;return n===o2.Tablet},VC=function(t){var n=t.type;return n===o2.Mobile||n===o2.Tablet},HC=function(t){var n=t.type;return n===o2.SmartTv},Yc=function(t){var n=t.type;return n===o2.Browser},NC=function(t){var n=t.type;return n===o2.Wearable},QC=function(t){var n=t.type;return n===o2.Console},WC=function(t){var n=t.type;return n===o2.Embedded},jC=function(t){var n=t.vendor;return zt(n)},GC=function(t){var n=t.model;return zt(n)},UC=function(t){var n=t.type;return zt(n,"browser")},KC=function(t){var n=t.name;return n===s8.Android},YC=function(t){var n=t.name;return n===s8.Windows},qC=function(t){var n=t.name;return n===s8.MAC_OS},JC=function(t){var n=t.name;return n===s8.WindowsPhone},ZC=function(t){var n=t.name;return n===s8.IOS},XC=function(t){var n=t.version;return zt(n)},_C=function(t){var n=t.name;return zt(n)},$C=function(t){var n=t.name;return n===V2.Chrome},eb=function(t){var n=t.name;return n===V2.Firefox},tb=function(t){var n=t.name;return n===V2.Chromium},qc=function(t){var n=t.name;return n===V2.Edge},nb=function(t){var n=t.name;return n===V2.Yandex},rb=function(t){var n=t.name;return n===V2.Safari||n===V2.MobileSafari},ob=function(t){var n=t.name;return n===V2.MobileSafari},ib=function(t){var n=t.name;return n===V2.Opera},ab=function(t){var n=t.name;return n===V2.InternetExplorer||n===V2.Ie},lb=function(t){var n=t.name;return n===V2.MIUI},sb=function(t){var n=t.name;return n===V2.SamsungBrowser},cb=function(t){var n=t.version;return zt(n)},ub=function(t){var n=t.major;return zt(n)},db=function(t){var n=t.name;return zt(n)},hb=function(t){var n=t.name;return zt(n)},fb=function(t){var n=t.version;return zt(n)},pb=function(){var t=bu(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},c8=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},gb=function(){var t=bu();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Zi=function(){return yu("iPad")},mb=function(){return yu("iPhone")},vb=function(){return yu("iPod")},Cb=function(t){return zt(t)};function bb(e){var t=e||PC,n=t.device,r=t.browser,i=t.os,l=t.engine,c=t.ua;return{isSmartTV:HC(n),isConsole:QC(n),isWearable:NC(n),isEmbedded:WC(n),isMobileSafari:ob(r)||Zi(),isChromium:tb(r),isMobile:VC(n)||Zi(),isMobileOnly:RC(n),isTablet:DC(n)||Zi(),isBrowser:Yc(n),isDesktop:Yc(n),isAndroid:KC(i),isWinPhone:JC(i),isIOS:ZC(i)||Zi(),isChrome:$C(r),isFirefox:eb(r),isSafari:rb(r),isOpera:ib(r),isIE:ab(r),osVersion:XC(i),osName:_C(i),fullBrowserVersion:cb(r),browserVersion:ub(r),browserName:db(r),mobileVendor:jC(n),mobileModel:GC(n),engineName:hb(l),engineVersion:fb(l),getUA:Cb(c),isEdge:qc(r)||c8(c),isYandex:nb(r),deviceType:UC(n),isIOS13:gb(),isIPad13:Zi(),isIPhone13:mb(),isIPod13:vb(),isElectron:pb(),isEdgeChromium:c8(c),isLegacyEdge:qc(r)&&!c8(c),isWindows:YC(i),isMacOs:qC(i),isMIUI:lb(r),isSamsungBrowser:sb(r)}}var yb=HC(fo),wb=QC(fo),Ib=NC(fo),See=WC(fo),Aee=ob(r2)||Zi(),xee=tb(r2),Jc=VC(fo)||Zi(),Eb=RC(fo),Sb=DC(fo)||Zi(),Ab=Yc(fo),Fee=Yc(fo),xb=KC(Bl),Fb=JC(Bl),Mb=ZC(Bl)||Zi(),Mee=$C(r2),zee=eb(r2),kee=rb(r2),Pee=ib(r2),zb=ab(r2),Oee=XC(Bl),Bee=_C(Bl),Lee=cb(r2),Tee=ub(r2),Ree=db(r2),Dee=jC(fo),Vee=GC(fo),Hee=hb(gu),Nee=fb(gu),Qee=Cb(c4),Wee=qc(r2)||c8(c4),jee=nb(r2),Gee=UC(fo),Uee=gb(),Kee=Zi(),Yee=mb(),qee=vb(),Jee=pb(),Zee=c8(c4),Xee=qc(r2)&&!c8(c4),_ee=YC(Bl),$ee=qC(Bl),e1e=lb(r2),t1e=sb(r2),n1e=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 bb({device:r,browser:i,os:l,engine:c,ua:u})},r1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return xb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},o1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Ab?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},i1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return zb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},a1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Mb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},l1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Jc?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},s1e=function(t){var n=t.renderWithFragment,r=t.children,i=jo(t,["renderWithFragment","children"]);return Sb?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 Fb?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},u1e=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=jo(t,["renderWithFragment","children","viewClassName","style"]);return Eb?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 yb?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 wb?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 Ib?n?On.createElement(n2.Fragment,null,r):On.createElement("div",i,r):null},p1e=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 g1e(e){return function(t){lee(n,t);function n(r){var i;return oee(this,n),i=cee(this,vu(n).call(this,r)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(Kc(i)),i.onOrientationChange=i.onOrientationChange.bind(Kc(i)),i.onPageLoad=i.onPageLoad.bind(Kc(i)),i.state={isLandscape:!1,isPortrait:!1},i}return iee(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&&Jc&&(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,mu({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(On.Component)}function m1e(){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=uee(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&&Jc&&(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 kb(e){var t=e||window.navigator.userAgent;return u4(t)}function v1e(e){var t=e||window.navigator.userAgent,n=kb(t),r=bb(n);return[r,n]}lt.AndroidView=r1e,lt.BrowserTypes=V2,lt.BrowserView=o1e,lt.ConsoleView=h1e,lt.CustomView=p1e,lt.IEView=i1e,lt.IOSView=a1e,lt.MobileOnlyView=u1e,lt.MobileView=l1e,lt.OsTypes=s8,lt.SmartTVView=d1e,lt.TabletView=s1e,lt.WearableView=f1e,lt.WinPhoneView=c1e,lt.browserName=Ree,lt.browserVersion=Tee,lt.deviceDetect=Eee,lt.deviceType=Gee,lt.engineName=Hee,lt.engineVersion=Nee,lt.fullBrowserVersion=Lee,lt.getSelectorsByUserAgent=n1e,lt.getUA=Qee,lt.isAndroid=xb,lt.isBrowser=Ab,lt.isChrome=Mee,lt.isChromium=xee,lt.isConsole=wb,lt.isDesktop=Fee,lt.isEdge=Wee,lt.isEdgeChromium=Zee,lt.isElectron=Jee,lt.isEmbedded=See,lt.isFirefox=zee,lt.isIE=zb,lt.isIOS=Mb,lt.isIOS13=Uee,lt.isIPad13=Kee,lt.isIPhone13=Yee,lt.isIPod13=qee,lt.isLegacyEdge=Xee,lt.isMIUI=e1e,lt.isMacOs=$ee;var C1e=lt.isMobile=Jc;lt.isMobileOnly=Eb,lt.isMobileSafari=Aee,lt.isOpera=Pee,lt.isSafari=kee,lt.isSamsungBrowser=t1e,lt.isSmartTV=yb,lt.isTablet=Sb,lt.isWearable=Ib,lt.isWinPhone=Fb,lt.isWindows=_ee,lt.isYandex=jee,lt.mobileModel=Vee,lt.mobileVendor=Dee,lt.osName=Bee,lt.osVersion=Oee,lt.parseUserAgent=u4,lt.setUserAgent=vee,lt.useDeviceData=kb,lt.useDeviceSelectors=v1e,lt.useMobileOrientation=m1e,lt.withOrientationChange=g1e;function Pb({mode:e="light",clientId:t,eventId:n=null,source:r="component",authorize:i,inProduction:l="prd",countryCodeAllowed:c=null,faceMatch:u=null,dataLiveness:d,validateVpn:g=!1,successMessage:h}){const{status:m,isLoading:v,listener:w,clearState:C,message:b,countryCode:F,setToken:x,data:M,similarity:A}=X$(t,n,r,l,c,u,d,g,h);return g1.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:$$,fontSize:_$,onboardingScreenStartButtonBackground:l8,onboardingScreenStartButtonBackgroundHover:MC,retryScreenRetryButtonBackground:l8,retryScreenRetryButtonBackgroundHover:l8,cameraScreenSectorActive:l8,cameraScreenStrokeNormal:l8,processingScreenProgress:l8,cameraScreenSectorTarget:MC}},k.addEventListener("face-liveness",w),i().then(D=>x(D)))},[]),o("div",{className:`kit-gbc liveness-container ${e} ${m==="NOT_VERIFY"&&"error"}`,children:K("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(Is,{}):null,Hr(m)?Hr(M)&&u||u===null?o("face-liveness",{class:"liveness"}):o(nn,{className:`box-liveness ${C1e&&"responsive"}`,children:A===0?K(nn,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[o(eee,{}),o(v2,{variant:"caption",style:{fontSize:"0.875em",paddingTop:"0.875em",color:"#000000"},children:"Comparando rostro..."})]}):o(jp,{message:b})}):K("div",{className:"sub",children:[l4(m)&&o(s4,{action:C}),o("h4",{children:"Verificaci\xF3n liveness"}),o(a4,{status:m,message:b})]})]})})}Pb.propTypes={mode:J1.exports.PropTypes.string,clientId:J1.exports.PropTypes.string.isRequired,authorize:J1.exports.PropTypes.func.isRequired,inProduction:J1.exports.PropTypes.string,countryCodeAllowed:J1.exports.PropTypes.array,eventId:J1.exports.PropTypes.string,source:J1.exports.PropTypes.string,faceMatch:J1.exports.PropTypes.string,dataLiveness:J1.exports.PropTypes.func.isRequired,validateVpn:J1.exports.PropTypes.bool,successMessage:J1.exports.PropTypes.string};const b1e=()=>K("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 Ob({message:e,id:t,subtitle:n,className:r}){return o("div",{className:`wrap-upload-animation ${r}`,children:K("div",{className:"first-animation",children:[o(b1e,{}),o("p",{className:"title",children:e}),o("p",{className:"subtitle",children:n})]})},t)}Ob.propTypes={message:J1.exports.PropTypes.string,id:J1.exports.PropTypes.string,subtitle:J1.exports.PropTypes.string,className:J1.exports.PropTypes.string};var Bb={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.CSV=n()})(ml,function(){var t=["|","^"],n=[",",";"," ","|","^"],r=[`\r
1406
1406
  `,"\r",`
1407
1407
  `];function i(A){var k=typeof A;return k==="function"||k==="object"&&!!A}var l=Array.isArray||function(A){return toString.call(A)==="[object Array]"};function c(A){return typeof A=="string"}function u(A){return!isNaN(Number(A))}function d(A){return A==!1||A==!0}function g(A){return A==null}function h(A){return A!=null}function m(A,k){return h(A)?A:k}function v(A,k){for(var D=0,R=A.length;D<R&&k(A[D],D)!==!1;D+=1);}function w(A){return A.replace(/"/g,'\\"')}function C(A){return"attrs["+A+"]"}function b(A,k){return u(A)?"Number("+C(k)+")":d(A)?"Boolean("+C(k)+" == true)":"String("+C(k)+")"}function F(A,k,D,R){var V=[];return arguments.length==3?(k?l(k)?v(D,function(H,Z){c(k[Z])?k[Z]=k[Z].toLowerCase():A[k[Z]]=k[Z],V.push("deserialize[cast["+Z+"]]("+C(Z)+")")}):v(D,function(H,Z){V.push(b(H,Z))}):v(D,function(H,Z){V.push(C(Z))}),V="return ["+V.join(",")+"]"):(k?l(k)?v(D,function(H,Z){c(k[Z])?k[Z]=k[Z].toLowerCase():A[k[Z]]=k[Z],V.push('"'+w(R[Z])+'": deserialize[cast['+Z+"]]("+C(Z)+")")}):v(D,function(H,Z){V.push('"'+w(R[Z])+'": '+b(H,Z))}):v(D,function(H,Z){V.push('"'+w(R[Z])+'": '+C(Z))}),V="return {"+V.join(",")+"}"),new Function("attrs","deserialize","cast",V)}function x(A,k){var D=0,R;return v(k,function(V){var H=V,Z;t.indexOf(V)!=-1&&(H="\\"+H),Z=A.match(new RegExp(H,"g")),Z&&Z.length>D&&(D=Z.length,R=V)}),R||k[0]}var M=function(){function A(V,H){if(H||(H={}),l(V))this.mode="encode";else if(c(V))this.mode="parse";else throw new Error("Incompatible format!");this.data=V,this.options={header:m(H.header,!1),cast:m(H.cast,!0)};var Z=H.lineDelimiter||H.line,J=H.cellDelimiter||H.delimiter;this.isParser()?(this.options.lineDelimiter=Z||x(this.data,r),this.options.cellDelimiter=J||x(this.data,n),this.data=D(this.data,this.options.lineDelimiter)):this.isEncoder()&&(this.options.lineDelimiter=Z||`\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbc-kyc-kit",
3
- "version": "2.3.8",
3
+ "version": "2.3.10",
4
4
  "description": "Componentes para el desarrollo de un Onboarding",
5
5
  "license": "MIT",
6
6
  "author": "Global Bridge Connections",