@regulaforensics/ui-components 9.3.868-nightly → 9.3.869-nightly

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.
@@ -13,5 +13,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13
13
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const n=(this[lf]=this[lf]={accessors:{}}).accessors,s=this.prototype;function r(o){const _=qa(o);n[_]||(mDt(s,o),n[_]=!0)}return ne.isArray(t)?t.forEach(r):r(t),this}};Qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Qn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});ne.freezeMethods(Qn);function DC(e,t){const n=this||Dc,s=t||n,r=Qn.from(s.headers);let o=s.data;return ne.forEach(e,function(_){o=_.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function dy(e){return!!(e&&e.__CANCEL__)}let Tc=class extends nt{constructor(e,t,n){super(e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ly(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new nt("Request failed with status code "+n.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gDt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yDt(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,_;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),i=s[o];_||(_=c),n[r]=a,s[r]=c;let E=o,S=0;for(;E!==r;)S+=n[E++],E=E%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),c-_<t)return;const R=i&&c-i;return R?Math.round(S*1e3/R):void 0}}function FDt(e,t){let n=0,s=1e3/t,r,o;const _=(a,c=Date.now())=>{n=c,r=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const c=Date.now(),i=c-n;i>=s?_(a,c):(r=a,o||(o=setTimeout(()=>{o=null,_(r)},s-i)))},()=>r&&_(r)]}const gE=(e,t,n=3)=>{let s=0;const r=yDt(50,250);return FDt(o=>{const _=o.loaded,a=o.lengthComputable?o.total:void 0,c=_-s,i=r(c),E=_<=a;s=_;const S={loaded:_,total:a,progress:a?_/a:void 0,bytes:c,rate:i||void 0,estimated:i&&a&&E?(a-_)/i:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(S)},n)},uf=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Nf=e=>(...t)=>ne.asap(()=>e(...t)),vDt=Mn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Mn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Mn.origin),Mn.navigator&&/(msie|trident)/i.test(Mn.navigator.userAgent)):()=>!0,UDt=Mn.hasStandardBrowserEnv?{write(e,t,n,s,r,o,_){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];ne.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),ne.isString(s)&&a.push(`path=${s}`),ne.isString(r)&&a.push(`domain=${r}`),o===!0&&a.push("secure"),ne.isString(_)&&a.push(`SameSite=${_}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function BDt(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bDt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fy(e,t,n){let s=!BDt(t);return e&&(s||n==!1)?bDt(e,t):t}const df=e=>e instanceof Qn?{...e}:e;function Jo(e,t){t=t||{};const n={};function s(i,E,S,R){return ne.isPlainObject(i)&&ne.isPlainObject(E)?ne.merge.call({caseless:R},i,E):ne.isPlainObject(E)?ne.merge({},E):ne.isArray(E)?E.slice():E}function r(i,E,S,R){if(ne.isUndefined(E)){if(!ne.isUndefined(i))return s(void 0,i,S,R)}else return s(i,E,S,R)}function o(i,E){if(!ne.isUndefined(E))return s(void 0,E)}function _(i,E){if(ne.isUndefined(E)){if(!ne.isUndefined(i))return s(void 0,i)}else return s(void 0,E)}function a(i,E,S){if(S in t)return s(i,E);if(S in e)return s(void 0,i)}const c={url:o,method:o,data:o,baseURL:_,transformRequest:_,transformResponse:_,paramsSerializer:_,timeout:_,timeoutMessage:_,withCredentials:_,withXSRFToken:_,adapter:_,responseType:_,xsrfCookieName:_,xsrfHeaderName:_,onUploadProgress:_,onDownloadProgress:_,decompress:_,maxContentLength:_,maxBodyLength:_,beforeRedirect:_,transport:_,httpAgent:_,httpsAgent:_,cancelToken:_,socketPath:_,responseEncoding:_,validateStatus:a,headers:(i,E,S)=>r(df(i),df(E),S,!0)};return ne.forEach(Object.keys({...e,...t}),function(i){if(i==="__proto__"||i==="constructor"||i==="prototype")return;const E=ne.hasOwnProp(c,i)?c[i]:r,S=E(e[i],t[i],i);ne.isUndefined(S)&&E!==a||(n[i]=S)}),n}const py=e=>{const t=Jo({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:_,auth:a}=t;if(t.headers=_=Qn.from(_),t.url=uy(fy(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&_.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),ne.isFormData(n)){if(Mn.hasStandardBrowserEnv||Mn.hasStandardBrowserWebWorkerEnv)_.setContentType(void 0);else if(ne.isFunction(n.getHeaders)){const c=n.getHeaders(),i=["content-type","content-length"];Object.entries(c).forEach(([E,S])=>{i.includes(E.toLowerCase())&&_.set(E,S)})}}if(Mn.hasStandardBrowserEnv&&(s&&ne.isFunction(s)&&(s=s(t)),s||s!==!1&&vDt(t.url))){const c=r&&o&&UDt.read(o);c&&_.set(r,c)}return t},HDt=typeof XMLHttpRequest<"u",$Dt=HDt&&function(e){return new Promise(function(t,n){const s=py(e);let r=s.data;const o=Qn.from(s.headers).normalize();let{responseType:_,onUploadProgress:a,onDownloadProgress:c}=s,i,E,S,R,C;function I(){R&&R(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(i),s.signal&&s.signal.removeEventListener("abort",i)}let T=new XMLHttpRequest;T.open(s.method.toUpperCase(),s.url,!0),T.timeout=s.timeout;function u(){if(!T)return;const f=Qn.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),p={data:!_||_==="text"||_==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:f,config:e,request:T};Ly(function(N){t(N),I()},function(N){n(N),I()},p),T=null}"onloadend"in T?T.onloadend=u:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(u)},T.onabort=function(){T&&(n(new nt("Request aborted",nt.ECONNABORTED,e,T)),T=null)},T.onerror=function(f){const p=f&&f.message?f.message:"Network Error",N=new nt(p,nt.ERR_NETWORK,e,T);N.event=f||null,n(N),T=null},T.ontimeout=function(){let f=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const p=s.transitional||il;s.timeoutErrorMessage&&(f=s.timeoutErrorMessage),n(new nt(f,p.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,T)),T=null},r===void 0&&o.setContentType(null),"setRequestHeader"in T&&ne.forEach(o.toJSON(),function(f,p){T.setRequestHeader(p,f)}),ne.isUndefined(s.withCredentials)||(T.withCredentials=!!s.withCredentials),_&&_!=="json"&&(T.responseType=s.responseType),c&&([S,C]=gE(c,!0),T.addEventListener("progress",S)),a&&T.upload&&([E,R]=gE(a),T.upload.addEventListener("progress",E),T.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(i=f=>{T&&(n(!f||f.type?new Tc(null,e,T):f),T.abort(),T=null)},s.cancelToken&&s.cancelToken.subscribe(i),s.signal&&(s.signal.aborted?i():s.signal.addEventListener("abort",i)));const d=gDt(s.url);if(d&&Mn.protocols.indexOf(d)===-1){n(new nt("Unsupported protocol "+d+":",nt.ERR_BAD_REQUEST,e));return}T.send(r||null)})},GDt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(i){if(!r){r=!0,a();const E=i instanceof Error?i:this.reason;s.abort(E instanceof nt?E:new Tc(E instanceof Error?E.message:E))}};let _=t&&setTimeout(()=>{_=null,o(new nt(`timeout of ${t}ms exceeded`,nt.ETIMEDOUT))},t);const a=()=>{e&&(_&&clearTimeout(_),_=null,e.forEach(i=>{i.unsubscribe?i.unsubscribe(o):i.removeEventListener("abort",o)}),e=null)};e.forEach(i=>i.addEventListener("abort",o));const{signal:c}=s;return c.unsubscribe=()=>ne.asap(a),c}},VDt=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},xDt=async function*(e,t){for await(const n of wDt(e))yield*VDt(n,t)},wDt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Lf=(e,t,n,s)=>{const r=xDt(e,t);let o=0,_,a=c=>{_||(_=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:i,value:E}=await r.next();if(i){a(),c.close();return}let S=E.byteLength;if(n){let R=o+=S;n(R)}c.enqueue(new Uint8Array(E))}catch(i){throw a(i),i}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},ff=64*1024,{isFunction:Zc}=ne,YDt=(({Request:e,Response:t})=>({Request:e,Response:t}))(ne.global),{ReadableStream:pf,TextEncoder:hf}=ne.global,Pf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kDt=e=>{e=ne.merge.call({skipUndefined:!0},YDt,e);const{fetch:t,Request:n,Response:s}=e,r=t?Zc(t):typeof fetch=="function",o=Zc(n),_=Zc(s);if(!r)return!1;const a=r&&Zc(pf),c=r&&(typeof hf=="function"?(I=>T=>I.encode(T))(new hf):async I=>new Uint8Array(await new n(I).arrayBuffer())),i=o&&a&&Pf(()=>{let I=!1;const T=new n(Mn.origin,{body:new pf,method:"POST",get duplex(){return I=!0,"half"}}).headers.has("Content-Type");return I&&!T}),E=_&&a&&Pf(()=>ne.isReadableStream(new s("").body)),S={stream:E&&(I=>I.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(I=>{!S[I]&&(S[I]=(T,u)=>{let d=T&&T[I];if(d)return d.call(T);throw new nt(`Response type '${I}' is not supported`,nt.ERR_NOT_SUPPORT,u)})});const R=async I=>{if(I==null)return 0;if(ne.isBlob(I))return I.size;if(ne.isSpecCompliantForm(I))return(await new n(Mn.origin,{method:"POST",body:I}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(I)||ne.isArrayBuffer(I))return I.byteLength;if(ne.isURLSearchParams(I)&&(I=I+""),ne.isString(I))return(await c(I)).byteLength},C=async(I,T)=>ne.toFiniteNumber(I.getContentLength())??R(T);return async I=>{let{url:T,method:u,data:d,signal:f,cancelToken:p,timeout:N,onDownloadProgress:h,onUploadProgress:g,responseType:M,headers:H,withCredentials:B="same-origin",fetchOptions:P}=py(I),m=t||fetch;M=M?(M+"").toLowerCase():"text";let v=GDt([f,p&&p.toAbortSignal()],N),X=null;const W=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let Oe;try{if(g&&i&&u!=="get"&&u!=="head"&&(Oe=await C(H,d))!==0){let Re=new n(T,{method:"POST",body:d,duplex:"half"}),ue;if(ne.isFormData(d)&&(ue=Re.headers.get("content-type"))&&H.setContentType(ue),Re.body){const[q,Se]=uf(Oe,gE(Nf(g)));d=Lf(Re.body,ff,q,Se)}}ne.isString(B)||(B=B?"include":"omit");const _e=o&&"credentials"in n.prototype,Ne={...P,signal:v,method:u.toUpperCase(),headers:H.normalize().toJSON(),body:d,duplex:"half",credentials:_e?B:void 0};X=o&&new n(T,Ne);let pe=await(o?m(X,P):m(T,Ne));const fe=E&&(M==="stream"||M==="response");if(E&&(h||fe&&W)){const Re={};["status","statusText","headers"].forEach(oe=>{Re[oe]=pe[oe]});const ue=ne.toFiniteNumber(pe.headers.get("content-length")),[q,Se]=h&&uf(ue,gE(Nf(h),!0))||[];pe=new s(Lf(pe.body,ff,q,()=>{Se&&Se(),W&&W()}),Re)}M=M||"text";let je=await S[ne.findKey(S,M)||"text"](pe,I);return!fe&&W&&W(),await new Promise((Re,ue)=>{Ly(Re,ue,{data:je,headers:Qn.from(pe.headers),status:pe.status,statusText:pe.statusText,config:I,request:X})})}catch(_e){throw W&&W(),_e&&_e.name==="TypeError"&&/Load failed|fetch/i.test(_e.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,I,X,_e&&_e.response),{cause:_e.cause||_e}):nt.from(_e,_e&&_e.code,I,X,_e&&_e.response)}}},KDt=new Map,hy=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,o=[s,r,n];let _=o.length,a=_,c,i,E=KDt;for(;a--;)c=o[a],i=E.get(c),i===void 0&&E.set(c,i=a?new Map:kDt(t)),E=i;return i};hy();const El={http:iDt,xhr:$Dt,fetch:{get:hy}};ne.forEach(El,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mf=e=>`- ${e}`,jDt=e=>ne.isFunction(e)||e===null||e===!1;function WDt(e,t){e=ne.isArray(e)?e:[e];const{length:n}=e;let s,r;const o={};for(let _=0;_<n;_++){s=e[_];let a;if(r=s,!jDt(s)&&(r=El[(a=String(s)).toLowerCase()],r===void 0))throw new nt(`Unknown adapter '${a}'`);if(r&&(ne.isFunction(r)||(r=r.get(t))))break;o[a||"#"+_]=r}if(!r){const _=Object.entries(o).map(([c,i])=>`adapter ${c} `+(i===!1?"is not supported by the environment":"is not available in the build"));let a=n?_.length>1?`since :
14
14
  `+_.map(Mf).join(`
15
15
  `):" "+Mf(_[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r}const Py={getAdapter:WDt,adapters:El};function TC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tc(null,e)}function mf(e){return TC(e),e.headers=Qn.from(e.headers),e.data=DC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Py.getAdapter(e.adapter||Dc.adapter,e)(e).then(function(t){return TC(e),t.data=DC.call(e,e.transformResponse,t),t.headers=Qn.from(t.headers),t},function(t){return dy(t)||(TC(e),t&&t.response&&(t.response.data=DC.call(e,e.transformResponse,t.response),t.response.headers=Qn.from(t.response.headers))),Promise.reject(t)})}const My="1.13.5",IS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{IS[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gf={};IS.transitional=function(e,t,n){function s(r,o){return"[Axios v"+My+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,_)=>{if(e===!1)throw new nt(s(o," has been removed"+(t?" in "+t:"")),nt.ERR_DEPRECATED);return t&&!gf[o]&&(gf[o]=!0,console.warn(s(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(r,o,_):!0}};IS.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ZDt(e,t,n){if(typeof e!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],_=t[o];if(_){const a=e[o],c=a===void 0||_(a,o,e);if(c!==!0)throw new nt("option "+o+" must be "+c,nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nt("Unknown option "+o,nt.ERR_BAD_OPTION)}}const TE={assertOptions:ZDt,validators:IS},dr=TE.validators;let Zo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Tf,response:new Tf}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
16
- `+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jo(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&TE.assertOptions(s,{silentJSONParsing:dr.transitional(dr.boolean),forcedJSONParsing:dr.transitional(dr.boolean),clarifyTimeoutError:dr.transitional(dr.boolean),legacyInterceptorReqResOrdering:dr.transitional(dr.boolean)},!1),r!=null&&(ne.isFunction(r)?n.paramsSerializer={serialize:r}:TE.assertOptions(r,{encode:dr.function,serialize:dr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),TE.assertOptions(n,{baseUrl:dr.spelling("baseURL"),withXsrfToken:dr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let _=o&&ne.merge(o.common,o[n.method]);o&&ne.forEach(["delete","get","head","post","put","patch","common"],I=>{delete o[I]}),n.headers=Qn.concat(_,o);const a=[];let c=!0;this.interceptors.request.forEach(function(I){if(typeof I.runWhen=="function"&&I.runWhen(n)===!1)return;c=c&&I.synchronous;const T=n.transitional||il;T&&T.legacyInterceptorReqResOrdering?a.unshift(I.fulfilled,I.rejected):a.push(I.fulfilled,I.rejected)});const i=[];this.interceptors.response.forEach(function(I){i.push(I.fulfilled,I.rejected)});let E,S=0,R;if(!c){const I=[mf.bind(this),void 0];for(I.unshift(...a),I.push(...i),R=I.length,E=Promise.resolve(n);S<R;)E=E.then(I[S++],I[S++]);return E}R=a.length;let C=n;for(;S<R;){const I=a[S++],T=a[S++];try{C=I(C)}catch(u){T.call(this,u);break}}try{E=mf.call(this,C)}catch(I){return Promise.reject(I)}for(S=0,R=i.length;S<R;)E=E.then(i[S++],i[S++]);return E}getUri(t){t=Jo(this.defaults,t);const n=fy(t.baseURL,t.url,t.allowAbsoluteUrls);return uy(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(e){Zo.prototype[e]=function(t,n){return this.request(Jo(n||{},{method:e,url:t,data:(n||{}).data}))}});ne.forEach(["post","put","patch"],function(e){function t(n){return function(s,r,o){return this.request(Jo(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:r}))}}Zo.prototype[e]=t(),Zo.prototype[e+"Form"]=t(!0)});let XDt=class my{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const _=new Promise(a=>{s.subscribe(a),o=a}).then(r);return _.cancel=function(){s.unsubscribe(o)},_},t(function(r,o,_){s.reason||(s.reason=new Tc(r,o,_),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new my(function(n){t=n}),cancel:t}}};function zDt(e){return function(t){return e.apply(null,t)}}function qDt(e){return ne.isObject(e)&&e.isAxiosError===!0}const iO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iO).forEach(([e,t])=>{iO[t]=e});function gy(e){const t=new Zo(e),n=cy(Zo.prototype.request,t);return ne.extend(n,Zo.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return gy(Jo(e,s))},n}const _n=gy(Dc);_n.Axios=Zo;_n.CanceledError=Tc;_n.CancelToken=XDt;_n.isCancel=dy;_n.VERSION=My;_n.toFormData=SS;_n.AxiosError=nt;_n.Cancel=_n.CanceledError;_n.all=function(e){return Promise.all(e)};_n.spread=zDt;_n.isAxiosError=qDt;_n.mergeConfig=Jo;_n.AxiosHeaders=Qn;_n.formToJSON=e=>Ny(ne.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=Py.getAdapter;_n.HttpStatusCode=iO;_n.default=_n;const{Axios:i$t,AxiosError:c$t,CanceledError:E$t,isCancel:A$t,CancelToken:S$t,VERSION:I$t,all:R$t,Cancel:C$t,isAxiosError:O$t,spread:D$t,toFormData:T$t,AxiosHeaders:l$t,HttpStatusCode:u$t,formToJSON:N$t,getAdapter:d$t,mergeConfig:L$t}=_n;var bs=(e=>(e.IMAGE_CHARACTERISTICS="ImageCharacteristics",e.HEAD_SIZE_AND_POSITIONS="HeadSizeAndPosition",e.FACE_QUALITY="FaceQuality",e.EYES_CHARACTERISTICS="EyesCharacteristics",e.SHADOWS_AND_LIGHTNING="ShadowsAndLightning",e.POSE_AND_EXPRESSION="PoseAndExpression",e.HEAD_OCCLUSION="HeadOcclusion",e.BACKGROUND="Background",e))(bs||{}),ui=(e=>(e[e.QUALITY_STATUS_FALSE=0]="QUALITY_STATUS_FALSE",e[e.QUALITY_STATUS_TRUE=1]="QUALITY_STATUS_TRUE",e[e.QUALITY_STATUS_UNDETERMINED=2]="QUALITY_STATUS_UNDETERMINED",e))(ui||{}),st=(e=>(e.IMAGE_WIDTH="ImageWidth",e.IMAGE_HEIGHT="ImageHeight",e.IMAGE_WIDTH_TO_HEIGHT="ImageWidthToHeight",e.IMAGE_CHANNELS_NUMBER="ImageChannelsNumber",e.PADDING_RATIO="PaddingRatio",e.FACE_MID_POINT_HORIZONTAL_POSITION="FaceMidPointHorizontalPosition",e.FACE_MID_POINT_VERTICAL_POSITION="FaceMidPointVerticalPosition",e.HEAD_WIDTH_RATIO="HeadWidthRatio",e.HEAD_HEIGHT_RATIO="HeadHeightRatio",e.EYES_DISTANCE="EyesDistance",e.YAW="Yaw",e.PITCH="Pitch",e.ROLL="Roll",e.BLUR_LEVEL="BlurLevel",e.NOISE_LEVEL="NoiseLevel",e.EYE_RIGHT_CLOSED="EyeRightClosed",e.EYE_LEFT_CLOSED="EyeLeftClosed",e.EYE_RIGHT_OCCLUDED="EyeRightOccluded",e.EYE_LEFT_OCCLUDED="EyeLeftOccluded",e.EYES_RED="EyesRed",e.EYE_RIGHT_COVERED_WITH_HAIR="EyeRightCoveredWithHair",e.EYE_LEFT_COVERED_WITH_HAIR="EyeLeftCoveredWithHair",e.OFF_GAZE="OffGaze",e.FACE_DYNAMIC_RANGE="FaceDynamicRange",e.UNNATURAL_SKIN_TONE="UnnaturalSkinTone",e.TOO_DARK="TooDark",e.TOO_LIGHT="TooLight",e.FACE_GLARE="FaceGlare",e.SHADOWS_ON_FACE="ShadowsOnFace",e.DARK_GLASSES="DarkGlasses",e.REFLECTION_ON_GLASSES="ReflectionOnGlasses",e.FRAMES_TOO_HEAVY="FramesTooHeavy",e.FACE_OCCLUDED="FaceOccluded",e.HEAD_COVERING="HeadCovering",e.BACKGROUND_UNIFORMITY="BackgroundUniformity",e.SHADOWS_ON_BACKGROUND="ShadowsOnBackground",e.OTHER_FACES="OtherFaces",e.SHOULDERS_POSE="ShouldersPose",e.EXPRESSION_LEVEL="ExpressionLevel",e.MOUTH_OPEN="MouthOpen",e.FOREHEAD_COVERING="ForeheadCovering",e.SMILE="Smile",e.STRONG_MAKEUP="StrongMakeup",e.HEADPHONES="Headphones",e.MEDICAL_MASK="MedicalMask",e.BACKGROUND_COLOR_MATCH="BackgroundColorMatch",e.ART_FACE="ArtFace",e.CONTACT_LENSES="ContactLenses",e))(st||{}),yf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QDt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xc=0;Xc<yf.length;Xc++)QDt[yf.charCodeAt(Xc)]=Xc;const JDt="Face image quality",eTt="Image characteristics",tTt="Background",nTt="Head size and position",rTt="Shadows and lightning",sTt="Eyes characteristics",oTt="Head occlusion",_Tt="Pose and expression",aTt={FACE_QUALITY:JDt,IMAGE_CHARACTERISTICS:eTt,BACKGROUND:tTt,HEAD_SIZE_AND_POSITIONS:nTt,SHADOWS_AND_LIGHTNING:rTt,EYES_CHARACTERISTICS:sTt,HEAD_OCCLUSION:oTt,POSE_AND_EXPRESSION:_Tt},iTt="Face image quality",cTt="Image characteristics",ETt="Fons",ATt="Head size and position",STt="Shadows and lightning",ITt="Eyes characteristics",RTt="Head occlusion",CTt="Pose and expression",OTt={FACE_QUALITY:iTt,IMAGE_CHARACTERISTICS:cTt,BACKGROUND:ETt,HEAD_SIZE_AND_POSITIONS:ATt,SHADOWS_AND_LIGHTNING:STt,EYES_CHARACTERISTICS:ITt,HEAD_OCCLUSION:RTt,POSE_AND_EXPRESSION:CTt},DTt="Face image quality",TTt="Image characteristics",lTt="Hintergrund",uTt="Head size and position",NTt="Shadows and lightning",dTt="Eyes characteristics",LTt="Head occlusion",fTt="Pose and expression",pTt={FACE_QUALITY:DTt,IMAGE_CHARACTERISTICS:TTt,BACKGROUND:lTt,HEAD_SIZE_AND_POSITIONS:uTt,SHADOWS_AND_LIGHTNING:NTt,EYES_CHARACTERISTICS:dTt,HEAD_OCCLUSION:LTt,POSE_AND_EXPRESSION:fTt},hTt="Face image quality",PTt="Image characteristics",MTt="Фон",mTt="Head size and position",gTt="Shadows and lightning",yTt="Eyes characteristics",FTt="Head occlusion",vTt="Pose and expression",UTt={FACE_QUALITY:hTt,IMAGE_CHARACTERISTICS:PTt,BACKGROUND:MTt,HEAD_SIZE_AND_POSITIONS:mTt,SHADOWS_AND_LIGHTNING:gTt,EYES_CHARACTERISTICS:yTt,HEAD_OCCLUSION:FTt,POSE_AND_EXPRESSION:vTt};F.addResourceBundle("en","e2ea936c7cbc30425eb1709a6b48d307",aTt);F.addResourceBundle("lv","e2ea936c7cbc30425eb1709a6b48d307",OTt);F.addResourceBundle("de","e2ea936c7cbc30425eb1709a6b48d307",pTt);F.addResourceBundle("ru","e2ea936c7cbc30425eb1709a6b48d307",UTt);const BTt=()=>ze("e2ea936c7cbc30425eb1709a6b48d307"),co=e=>F.t(e,{ns:"e2ea936c7cbc30425eb1709a6b48d307"}),yy=e=>{const t=String(e||"").trim();switch(t){case bs.FACE_QUALITY:return co("FACE_QUALITY");case bs.IMAGE_CHARACTERISTICS:return co("IMAGE_CHARACTERISTICS");case bs.BACKGROUND:return co("BACKGROUND");case bs.HEAD_SIZE_AND_POSITIONS:return co("HEAD_SIZE_AND_POSITIONS");case bs.SHADOWS_AND_LIGHTNING:return co("SHADOWS_AND_LIGHTNING");case bs.EYES_CHARACTERISTICS:return co("EYES_CHARACTERISTICS");case bs.HEAD_OCCLUSION:return co("HEAD_OCCLUSION");case bs.POSE_AND_EXPRESSION:return co("POSE_AND_EXPRESSION");default:return t}},bTt=({children:e})=>(BTt(),A.jsx(A.Fragment,{children:yy(e)})),HTt="Image width",$Tt="Image height",GTt="Image width to height",VTt="Image channels number",xTt="Art face",wTt="Padding ratio",YTt="Face mid point horizontal position",kTt="Face mid point vertical position",KTt="Head width ratio",jTt="Head height ratio",WTt="Eyes distance",ZTt="Yaw",XTt="Pitch",zTt="Roll",qTt="Blur level",QTt="Noise level",JTt="Unnatural skin tone",elt="Face dynamic range",tlt="Right eye closed",nlt="Left eye closed",rlt="Right eye occluded",slt="Left eye occluded",olt="Red eyes",_lt="Left eye covered with hair",alt="Right eye covered with hair",ilt="Off gaze",clt="Too dark",Elt="Too light",Alt="Face glare",Slt="Shadows on face",Ilt="Shoulders pose",Rlt="Expression level",Clt="Mouth open",Olt="Smile",Dlt="Dark glasses",Tlt="Reflection on glasses",llt="Frames too heavy",ult="Face occluded",Nlt="Head covering",dlt="Forehead covering",Llt="Strong makeup",flt="Headphones",plt="Background uniformity",hlt="Shadows on background",Plt="Other faces",Mlt="Background color match",mlt={IMAGE_WIDTH:HTt,IMAGE_HEIGHT:$Tt,IMAGE_WIDTH_TO_HEIGHT:GTt,IMAGE_CHANNELS_NUMBER:VTt,ART_FACE:xTt,PADDING_RATIO:wTt,FACE_MID_POINT_HORIZONTAL_POSITION:YTt,FACE_MID_POINT_VERTICAL_POSITION:kTt,HEAD_WIDTH_RATIO:KTt,HEAD_HEIGHT_RATIO:jTt,EYES_DISTANCE:WTt,YAW:ZTt,PITCH:XTt,ROLL:zTt,BLUR_LEVEL:qTt,NOISE_LEVEL:QTt,UNNATURAL_SKIN_TONE:JTt,FACE_DYNAMIC_RANGE:elt,EYE_RIGHT_CLOSED:tlt,EYE_LEFT_CLOSED:nlt,EYE_RIGHT_OCCLUDED:rlt,EYE_LEFT_OCCLUDED:slt,EYES_RED:olt,EYE_LEFT_COVERED_WITH_HAIR:_lt,EYE_RIGHT_COVERED_WITH_HAIR:alt,OFF_GAZE:ilt,TOO_DARK:clt,TOO_LIGHT:Elt,FACE_GLARE:Alt,SHADOWS_ON_FACE:Slt,SHOULDERS_POSE:Ilt,EXPRESSION_LEVEL:Rlt,MOUTH_OPEN:Clt,SMILE:Olt,DARK_GLASSES:Dlt,REFLECTION_ON_GLASSES:Tlt,FRAMES_TOO_HEAVY:llt,FACE_OCCLUDED:ult,HEAD_COVERING:Nlt,FOREHEAD_COVERING:dlt,STRONG_MAKEUP:Llt,HEADPHONES:flt,BACKGROUND_UNIFORMITY:plt,SHADOWS_ON_BACKGROUND:hlt,OTHER_FACES:Plt,BACKGROUND_COLOR_MATCH:Mlt},glt="Image width",ylt="Image height",Flt="Image width to height",vlt="Image channels number",Ult="Art face",Blt="Padding ratio",blt="Face mid point horizontal position",Hlt="Face mid point vertical position",$lt="Head width ratio",Glt="Head height ratio",Vlt="Eyes distance",xlt="Yaw",wlt="Pitch",Ylt="Roll",klt="Blur level",Klt="Noise level",jlt="Unnatural skin tone",Wlt="Face dynamic range",Zlt="Right eye closed",Xlt="Left eye closed",zlt="Right eye occluded",qlt="Left eye occluded",Qlt="Red eyes",Jlt="Left eye covered with hair",eut="Right eye covered with hair",tut="Off gaze",nut="Too dark",rut="Too light",sut="Face glare",out="Shadows on face",_ut="Shoulders pose",aut="Expression level",iut="Mouth open",cut="Smile",Eut="Dark glasses",Aut="Reflection on glasses",Sut="Frames too heavy",Iut="Face occluded",Rut="Head covering",Cut="Forehead covering",Out="Strong makeup",Dut="Headphones",Tut="Background uniformity",lut="Shadows on background",uut="Other faces",Nut="Background color match",dut={IMAGE_WIDTH:glt,IMAGE_HEIGHT:ylt,IMAGE_WIDTH_TO_HEIGHT:Flt,IMAGE_CHANNELS_NUMBER:vlt,ART_FACE:Ult,PADDING_RATIO:Blt,FACE_MID_POINT_HORIZONTAL_POSITION:blt,FACE_MID_POINT_VERTICAL_POSITION:Hlt,HEAD_WIDTH_RATIO:$lt,HEAD_HEIGHT_RATIO:Glt,EYES_DISTANCE:Vlt,YAW:xlt,PITCH:wlt,ROLL:Ylt,BLUR_LEVEL:klt,NOISE_LEVEL:Klt,UNNATURAL_SKIN_TONE:jlt,FACE_DYNAMIC_RANGE:Wlt,EYE_RIGHT_CLOSED:Zlt,EYE_LEFT_CLOSED:Xlt,EYE_RIGHT_OCCLUDED:zlt,EYE_LEFT_OCCLUDED:qlt,EYES_RED:Qlt,EYE_LEFT_COVERED_WITH_HAIR:Jlt,EYE_RIGHT_COVERED_WITH_HAIR:eut,OFF_GAZE:tut,TOO_DARK:nut,TOO_LIGHT:rut,FACE_GLARE:sut,SHADOWS_ON_FACE:out,SHOULDERS_POSE:_ut,EXPRESSION_LEVEL:aut,MOUTH_OPEN:iut,SMILE:cut,DARK_GLASSES:Eut,REFLECTION_ON_GLASSES:Aut,FRAMES_TOO_HEAVY:Sut,FACE_OCCLUDED:Iut,HEAD_COVERING:Rut,FOREHEAD_COVERING:Cut,STRONG_MAKEUP:Out,HEADPHONES:Dut,BACKGROUND_UNIFORMITY:Tut,SHADOWS_ON_BACKGROUND:lut,OTHER_FACES:uut,BACKGROUND_COLOR_MATCH:Nut},Lut="Image width",fut="Image height",put="Image width to height",hut="Image channels number",Put="Art face",Mut="Padding ratio",mut="Face mid point horizontal position",gut="Face mid point vertical position",yut="Head width ratio",Fut="Head height ratio",vut="Eyes distance",Uut="Yaw",But="Pitch",but="Roll",Hut="Blur level",$ut="Noise level",Gut="Unnatural skin tone",Vut="Face dynamic range",xut="Right eye closed",wut="Left eye closed",Yut="Right eye occluded",kut="Left eye occluded",Kut="Red eyes",jut="Left eye covered with hair",Wut="Right eye covered with hair",Zut="Off gaze",Xut="Too dark",zut="Too light",qut="Face glare",Qut="Shadows on face",Jut="Shoulders pose",eNt="Expression level",tNt="Mouth open",nNt="Smile",rNt="Dark glasses",sNt="Reflection on glasses",oNt="Frames too heavy",_Nt="Face occluded",aNt="Head covering",iNt="Forehead covering",cNt="Strong makeup",ENt="Headphones",ANt="Background uniformity",SNt="Shadows on background",INt="Other faces",RNt="Background color match",CNt={IMAGE_WIDTH:Lut,IMAGE_HEIGHT:fut,IMAGE_WIDTH_TO_HEIGHT:put,IMAGE_CHANNELS_NUMBER:hut,ART_FACE:Put,PADDING_RATIO:Mut,FACE_MID_POINT_HORIZONTAL_POSITION:mut,FACE_MID_POINT_VERTICAL_POSITION:gut,HEAD_WIDTH_RATIO:yut,HEAD_HEIGHT_RATIO:Fut,EYES_DISTANCE:vut,YAW:Uut,PITCH:But,ROLL:but,BLUR_LEVEL:Hut,NOISE_LEVEL:$ut,UNNATURAL_SKIN_TONE:Gut,FACE_DYNAMIC_RANGE:Vut,EYE_RIGHT_CLOSED:xut,EYE_LEFT_CLOSED:wut,EYE_RIGHT_OCCLUDED:Yut,EYE_LEFT_OCCLUDED:kut,EYES_RED:Kut,EYE_LEFT_COVERED_WITH_HAIR:jut,EYE_RIGHT_COVERED_WITH_HAIR:Wut,OFF_GAZE:Zut,TOO_DARK:Xut,TOO_LIGHT:zut,FACE_GLARE:qut,SHADOWS_ON_FACE:Qut,SHOULDERS_POSE:Jut,EXPRESSION_LEVEL:eNt,MOUTH_OPEN:tNt,SMILE:nNt,DARK_GLASSES:rNt,REFLECTION_ON_GLASSES:sNt,FRAMES_TOO_HEAVY:oNt,FACE_OCCLUDED:_Nt,HEAD_COVERING:aNt,FOREHEAD_COVERING:iNt,STRONG_MAKEUP:cNt,HEADPHONES:ENt,BACKGROUND_UNIFORMITY:ANt,SHADOWS_ON_BACKGROUND:SNt,OTHER_FACES:INt,BACKGROUND_COLOR_MATCH:RNt},ONt="Image width",DNt="Image height",TNt="Image width to height",lNt="Image channels number",uNt="Art face",NNt="Padding ratio",dNt="Face mid point horizontal position",LNt="Face mid point vertical position",fNt="Head width ratio",pNt="Head height ratio",hNt="Eyes distance",PNt="Yaw",MNt="Pitch",mNt="Roll",gNt="Blur level",yNt="Noise level",FNt="Unnatural skin tone",vNt="Face dynamic range",UNt="Right eye closed",BNt="Left eye closed",bNt="Right eye occluded",HNt="Left eye occluded",$Nt="Red eyes",GNt="Left eye covered with hair",VNt="Right eye covered with hair",xNt="Off gaze",wNt="Too dark",YNt="Too light",kNt="Face glare",KNt="Shadows on face",jNt="Shoulders pose",WNt="Expression level",ZNt="Mouth open",XNt="Smile",zNt="Dark glasses",qNt="Reflection on glasses",QNt="Frames too heavy",JNt="Face occluded",edt="Head covering",tdt="Forehead covering",ndt="Strong makeup",rdt="Headphones",sdt="Background uniformity",odt="Shadows on background",_dt="Other faces",adt="Background color match",idt={IMAGE_WIDTH:ONt,IMAGE_HEIGHT:DNt,IMAGE_WIDTH_TO_HEIGHT:TNt,IMAGE_CHANNELS_NUMBER:lNt,ART_FACE:uNt,PADDING_RATIO:NNt,FACE_MID_POINT_HORIZONTAL_POSITION:dNt,FACE_MID_POINT_VERTICAL_POSITION:LNt,HEAD_WIDTH_RATIO:fNt,HEAD_HEIGHT_RATIO:pNt,EYES_DISTANCE:hNt,YAW:PNt,PITCH:MNt,ROLL:mNt,BLUR_LEVEL:gNt,NOISE_LEVEL:yNt,UNNATURAL_SKIN_TONE:FNt,FACE_DYNAMIC_RANGE:vNt,EYE_RIGHT_CLOSED:UNt,EYE_LEFT_CLOSED:BNt,EYE_RIGHT_OCCLUDED:bNt,EYE_LEFT_OCCLUDED:HNt,EYES_RED:$Nt,EYE_LEFT_COVERED_WITH_HAIR:GNt,EYE_RIGHT_COVERED_WITH_HAIR:VNt,OFF_GAZE:xNt,TOO_DARK:wNt,TOO_LIGHT:YNt,FACE_GLARE:kNt,SHADOWS_ON_FACE:KNt,SHOULDERS_POSE:jNt,EXPRESSION_LEVEL:WNt,MOUTH_OPEN:ZNt,SMILE:XNt,DARK_GLASSES:zNt,REFLECTION_ON_GLASSES:qNt,FRAMES_TOO_HEAVY:QNt,FACE_OCCLUDED:JNt,HEAD_COVERING:edt,FOREHEAD_COVERING:tdt,STRONG_MAKEUP:ndt,HEADPHONES:rdt,BACKGROUND_UNIFORMITY:sdt,SHADOWS_ON_BACKGROUND:odt,OTHER_FACES:_dt,BACKGROUND_COLOR_MATCH:adt};F.addResourceBundle("en","a62078b0db0988fa2d48c6e38c6e3802",mlt);F.addResourceBundle("lv","a62078b0db0988fa2d48c6e38c6e3802",dut);F.addResourceBundle("de","a62078b0db0988fa2d48c6e38c6e3802",CNt);F.addResourceBundle("ru","a62078b0db0988fa2d48c6e38c6e3802",idt);const cdt=()=>ze("a62078b0db0988fa2d48c6e38c6e3802"),_t=e=>F.t(e,{ns:"a62078b0db0988fa2d48c6e38c6e3802"}),Fy=e=>{const t=String(e||"").trim();switch(t){case st.IMAGE_WIDTH:return _t("IMAGE_WIDTH");case st.IMAGE_HEIGHT:return _t("IMAGE_HEIGHT");case st.IMAGE_WIDTH_TO_HEIGHT:return _t("IMAGE_WIDTH_TO_HEIGHT");case st.IMAGE_CHANNELS_NUMBER:return _t("IMAGE_CHANNELS_NUMBER");case st.ART_FACE:return _t("ART_FACE");case st.PADDING_RATIO:return _t("PADDING_RATIO");case st.FACE_MID_POINT_HORIZONTAL_POSITION:return _t("FACE_MID_POINT_HORIZONTAL_POSITION");case st.FACE_MID_POINT_VERTICAL_POSITION:return _t("FACE_MID_POINT_VERTICAL_POSITION");case st.HEAD_WIDTH_RATIO:return _t("HEAD_WIDTH_RATIO");case st.HEAD_HEIGHT_RATIO:return _t("HEAD_HEIGHT_RATIO");case st.EYES_DISTANCE:return _t("EYES_DISTANCE");case st.YAW:return _t("YAW");case st.PITCH:return _t("PITCH");case st.ROLL:return _t("ROLL");case st.BLUR_LEVEL:return _t("BLUR_LEVEL");case st.NOISE_LEVEL:return _t("NOISE_LEVEL");case st.UNNATURAL_SKIN_TONE:return _t("UNNATURAL_SKIN_TONE");case st.FACE_DYNAMIC_RANGE:return _t("FACE_DYNAMIC_RANGE");case st.EYE_RIGHT_CLOSED:return _t("EYE_RIGHT_CLOSED");case st.EYE_LEFT_CLOSED:return _t("EYE_LEFT_CLOSED");case st.EYE_RIGHT_OCCLUDED:return _t("EYE_RIGHT_OCCLUDED");case st.EYE_LEFT_OCCLUDED:return _t("EYE_LEFT_OCCLUDED");case st.EYES_RED:return _t("EYES_RED");case st.EYE_LEFT_COVERED_WITH_HAIR:return _t("EYE_LEFT_COVERED_WITH_HAIR");case st.EYE_RIGHT_COVERED_WITH_HAIR:return _t("EYE_RIGHT_COVERED_WITH_HAIR");case st.OFF_GAZE:return _t("OFF_GAZE");case st.TOO_DARK:return _t("TOO_DARK");case st.TOO_LIGHT:return _t("TOO_LIGHT");case st.FACE_GLARE:return _t("FACE_GLARE");case st.SHADOWS_ON_FACE:return _t("SHADOWS_ON_FACE");case st.SHOULDERS_POSE:return _t("SHOULDERS_POSE");case st.EXPRESSION_LEVEL:return _t("EXPRESSION_LEVEL");case st.MOUTH_OPEN:return _t("MOUTH_OPEN");case st.SMILE:return _t("SMILE");case st.DARK_GLASSES:return _t("DARK_GLASSES");case st.REFLECTION_ON_GLASSES:return _t("REFLECTION_ON_GLASSES");case st.FRAMES_TOO_HEAVY:return _t("FRAMES_TOO_HEAVY");case st.FACE_OCCLUDED:return _t("FACE_OCCLUDED");case st.HEAD_COVERING:return _t("HEAD_COVERING");case st.FOREHEAD_COVERING:return _t("FOREHEAD_COVERING");case st.STRONG_MAKEUP:return _t("STRONG_MAKEUP");case st.HEADPHONES:return _t("HEADPHONES");case st.BACKGROUND_UNIFORMITY:return _t("BACKGROUND_UNIFORMITY");case st.SHADOWS_ON_BACKGROUND:return _t("SHADOWS_ON_BACKGROUND");case st.OTHER_FACES:return _t("OTHER_FACES");case st.BACKGROUND_COLOR_MATCH:return _t("BACKGROUND_COLOR_MATCH");default:return t}},Edt=({children:e})=>(cdt(),A.jsx(A.Fragment,{children:Fy(e)})),de=()=>A.jsx(A.Fragment,{});de.AuthenticityLabel=VY;de.getAuthenticityLabel=wg;de.CheckDiagnose=Zq;de.getCheckDiagnose=Yg;de.CheckResultVerification=SQ;de.getCheckResultVerification=kg;de.GraphicFieldType=Eee;de.getGraphicFieldType=Kg;de.ImageQualityCheckTypeLabel=nte;de.getImageQualityCheckTypeLabel=jg;de.LightsLabel=ene;de.getLightsLabel=Zg;de.OpticalStatusField=Une;de.getOpticalStatusField=Xg;de.RfidCertificateType=Tre;de.getRfidCertificateType=zg;de.RfidDataFileType=REe;de.getRfidDataFileType=qg;de.SecurityFeatureTypeLabel=ZRe;de.getSecurityFeatureTypeLabel=Qg;de.Sex=ute;de.getSex=Wg;de.Source=MCe;de.getSource=Jg;de.PortraitComparisonSource=UOe;de.getPortraitComparisonSource=ty;de.SourceDescription=sOe;de.getSourceDescription=ey;de.VisualFieldType=Stt;de.getVisualFieldType=ny;de.LCID=nIt;de.getLCID=ry;de.IRVisibilityStatus=MIt;de.getIRVisibilityStatus=sy;de.AuthenticityTextCheckReference=jIt;de.getAuthenticityTextCheckReference=oy;de.GroupDescription=sCt;de.getGroupDescription=_y;de.RfidApplicationType=zCt;de.getRfidApplicationType=ay;de.RfidApplicationDescription=dOt;de.getRfidApplicationDescription=iy;de.FaceImageQualityLabel=bTt;de.getFaceImageQualityLabel=yy;de.FaceImageQualityCheckLabel=Edt;de.getFaceImageQualityCheckLabel=Fy;const ar=(e,t)=>{const{o:n,i:s,u:r}=e;let o=n,_;const a=(E,S)=>{const R=o,C=E,I=S||(s?!s(R,C):R!==C);return(I||r)&&(o=C,_=R),[o,I,_]};return[t?E=>a(t(o,_),E):a,E=>[o,!!E,_]]},Adt=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,Zn=Adt?window:{},vy=Math.max,Sdt=Math.min,cO=Math.round,So=Math.abs,Ff=Math.sign,Uy=Zn.cancelAnimationFrame,Al=Zn.requestAnimationFrame,Sl=Zn.setTimeout,By=Zn.clearTimeout,RS=e=>typeof Zn[e]<"u"?Zn[e]:void 0,Idt=RS("MutationObserver"),vf=RS("IntersectionObserver"),w_=RS("ResizeObserver"),Ei=RS("ScrollTimeline"),Il=e=>e===void 0,CS=e=>e===null,Io=e=>typeof e=="number",ba=e=>typeof e=="string",OS=e=>typeof e=="boolean",os=e=>typeof e=="function",hr=e=>Array.isArray(e),yE=e=>typeof e=="object"&&!hr(e)&&!CS(e),Rl=e=>{const t=!!e&&e.length,n=Io(t)&&t>-1&&t%1==0;return hr(e)||!os(e)&&n?t>0&&yE(e)?t-1 in e:!0:!1},Ni=e=>!!e&&e.constructor===Object,FE=e=>e instanceof HTMLElement,DS=e=>e instanceof Element;function bt(e,t){if(Rl(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&bt(Object.keys(e),(n=>t(e[n],n,e)));return e}const by=(e,t)=>e.indexOf(t)>=0,ea=(e,t)=>e.concat(t),Xt=(e,t,n)=>(!ba(t)&&Rl(t)?Array.prototype.push.apply(e,t):e.push(t),e),go=e=>Array.from(e||[]),Cl=e=>hr(e)?e:!ba(e)&&Rl(e)?go(e):[e],vE=e=>!!e&&!e.length,UE=e=>go(new Set(e)),Ar=(e,t,n)=>{bt(e,r=>r?r.apply(void 0,t||[]):!0),n||(e.length=0)},Hy="paddingTop",$y="paddingRight",Gy="paddingLeft",Vy="paddingBottom",xy="marginLeft",wy="marginRight",Yy="marginBottom",Ol="overflowX",Dl="overflowY",TS="width",lS="height",Vs="visible",Kr="hidden",ta="scroll",Rdt=e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""},uS=(e,t,n,s)=>{if(e&&t){let r=!0;return bt(n,(o=>{const _=e[o],a=t[o];_!==a&&(r=!1)})),r}return!1},ky=(e,t)=>uS(e,t,["w","h"]),lE=(e,t)=>uS(e,t,["x","y"]),Cdt=(e,t)=>uS(e,t,["t","r","b","l"]),ot=(e,...t)=>e.bind(0,...t),Y_=e=>{let t;const n=e?Sl:Al,s=e?By:Uy;return[r=>{s(t),t=n((()=>r()),os(e)?e():e)},()=>s(t)]},Uf=e=>{const t=os(e)?e():e;if(Io(t)){const n=t?Sl:Al,s=t?By:Uy;return r=>{const o=n((()=>r()),t);return()=>{s(o)}}}return t&&t._},Ky=(e,t)=>{const{p:n,v:s,S:r,m:o}=t||{};let _,a,c,i;const E=function(T){a&&a(),_&&_(),i=a=_=c=void 0,e.apply(this,T)},S=I=>o&&c?o(c,I):I,R=()=>{a&&c&&E(S(c)||c)},C=function(){const T=go(arguments),u=Uf(n);if(u){const d=typeof r=="function"?r():r,f=Uf(s),N=S(T)||T,h=E.bind(0,N);a&&a(),d&&!i?(h(),i=!0,a=u((()=>i=void 0))):(a=u(h),f&&!_&&(_=f(R))),c=N}else E(T)};return C.O=R,C},jy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),jn=e=>e?Object.keys(e):[],pt=(e,t,n,s,r,o,_)=>{const a=[t,n,s,r,o,_];return(typeof e!="object"||CS(e))&&!os(e)&&(e={}),bt(a,(c=>{bt(c,((i,E)=>{const S=c[E];if(e===S)return!0;const R=hr(S);if(S&&Ni(S)){const C=e[E];let I=C;R&&!hr(C)?I=[]:!R&&!Ni(C)&&(I={}),e[E]=pt(I,S)}else e[E]=R?S.slice():S}))})),e},Wy=(e,t)=>bt(pt({},e),((n,s,r)=>{n===void 0?delete r[s]:n&&Ni(n)&&(r[s]=Wy(n))})),Tl=e=>!jn(e).length,di=()=>{},Zy=(e,t,n)=>vy(e,Sdt(t,n)),Xo=e=>UE((hr(e)?e:(e||"").split(" ")).filter((t=>t))),ll=(e,t)=>e&&e.getAttribute(t),Bf=(e,t)=>e&&e.hasAttribute(t),Hs=(e,t,n)=>{bt(Xo(t),(s=>{e&&e.setAttribute(s,String(n||""))}))},cs=(e,t)=>{bt(Xo(t),(n=>e&&e.removeAttribute(n)))},NS=(e,t)=>{const n=Xo(ll(e,t)),s=ot(Hs,e,t),r=(o,_)=>{const a=new Set(n);return bt(Xo(o),(c=>{a[_](c)})),go(a).join(" ")};return{C:o=>s(r(o,"delete")),$:o=>s(r(o,"add")),H:o=>{const _=Xo(o);return _.reduce(((a,c)=>a&&n.includes(c)),_.length>0)}}},Xy=(e,t,n)=>(NS(e,t).C(n),ot(ul,e,t,n)),ul=(e,t,n)=>(NS(e,t).$(n),ot(Xy,e,t,n)),BE=(e,t,n,s)=>(s?ul:Xy)(e,t,n),Nl=(e,t,n)=>NS(e,t).H(n),zy=e=>NS(e,"class"),qy=(e,t)=>{zy(e).C(t)},dl=(e,t)=>(zy(e).$(t),ot(qy,e,t)),Qy=(e,t)=>{const n=t?DS(t)&&t:document;return n?go(n.querySelectorAll(e)):[]},Odt=(e,t)=>{const n=t?DS(t)&&t:document;return n&&n.querySelector(e)},EO=(e,t)=>DS(e)&&e.matches(t),Jy=e=>EO(e,"body"),AO=e=>e?go(e.childNodes):[],Li=e=>e&&e.parentElement,k_=(e,t)=>DS(e)&&e.closest(t),SO=e=>document.activeElement,Ddt=(e,t,n)=>{const s=k_(e,t),r=e&&Odt(n,s),o=k_(r,t)===s;return s&&r?s===e||r===e||o&&k_(k_(e,n),t)!==s:!1},na=e=>{bt(Cl(e),(t=>{const n=Li(t);t&&n&&n.removeChild(t)}))},Wn=(e,t)=>ot(na,e&&t&&bt(Cl(t),(n=>{n&&e.appendChild(n)})));let eF;const Tdt=()=>eF,ldt=e=>{eF=e},W_=e=>{const t=document.createElement("div");return Hs(t,"class",e),t},tF=e=>{const t=W_(),n=Tdt(),s=e.trim();return t.innerHTML=n?n.createHTML(s):s,bt(AO(t),(r=>na(r)))},bf=(e,t)=>e.getPropertyValue(t)||e[t]||"",nF=e=>{const t=e||0;return isFinite(t)?t:0},zc=e=>nF(parseFloat(e||"")),IO=e=>Math.round(e*1e4)/1e4,rF=e=>`${IO(nF(e))}px`;function fi(e,t){e&&t&&bt(t,((n,s)=>{try{const r=e.style,o=CS(n)||OS(n)?"":Io(n)?rF(n):n;s.indexOf("--")===0?r.setProperty(s,o):r[s]=o}catch{}}))}function Cs(e,t,n){const s=ba(t);let r=s?"":{};if(e){const o=Zn.getComputedStyle(e,n)||e.style;r=s?bf(o,t):go(t).reduce(((_,a)=>(_[a]=bf(o,a),_)),r)}return r}const Hf=(e,t,n)=>{const s=t?`${t}-`:"",r=n?`-${n}`:"",o=`${s}top${r}`,_=`${s}right${r}`,a=`${s}bottom${r}`,c=`${s}left${r}`,i=Cs(e,[o,_,a,c]);return{t:zc(i[o]),r:zc(i[_]),b:zc(i[a]),l:zc(i[c])}},lC=(e,t)=>`translate${yE(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`}`,udt=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),Ndt={w:0,h:0},dS=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Ndt,ddt=e=>dS("inner",e||Zn),Z_=ot(dS,"offset"),sF=ot(dS,"client"),bE=ot(dS,"scroll"),Ll=e=>{const t=parseFloat(Cs(e,TS))||0,n=parseFloat(Cs(e,lS))||0;return{w:t-cO(t),h:n-cO(n)}},uC=e=>e.getBoundingClientRect(),Ldt=e=>!!e&&udt(e),RO=e=>!!(e&&(e[lS]||e[TS])),oF=(e,t)=>{const n=RO(e);return!RO(t)&&n},$f=(e,t,n,s)=>{bt(Xo(t),(r=>{e&&e.removeEventListener(r,n,s)}))},Yt=(e,t,n,s)=>{var r;const o=(r=s&&s.I)!=null?r:!0,_=s&&s.A||!1,a=s&&s.T||!1,c={passive:o,capture:_};return ot(Ar,Xo(t).map((i=>{const E=a?S=>{$f(e,i,E,_),n&&n(S)}:n;return e&&e.addEventListener(i,E,c),ot($f,e,i,E,_)})))},_F=e=>e.stopPropagation(),CO=e=>e.preventDefault(),aF=e=>_F(e)||CO(e),Rs=(e,t)=>{const{x:n,y:s}=Io(t)?{x:t,y:t}:t||{};Io(n)&&(e.scrollLeft=n),Io(s)&&(e.scrollTop=s)},Er=e=>({x:e.scrollLeft,y:e.scrollTop}),iF=()=>({D:{x:0,y:0},M:{x:0,y:0}}),fdt=(e,t)=>{const{D:n,M:s}=e,{w:r,h:o}=t,_=(S,R,C)=>{let I=Ff(S)*C,T=Ff(R)*C;if(I===T){const u=So(S),d=So(R);T=u>d?0:T,I=u<d?0:I}return I=I===T?0:I,[I+0,T+0]},[a,c]=_(n.x,s.x,r),[i,E]=_(n.y,s.y,o);return{D:{x:a,y:i},M:{x:c,y:E}}},NC=({D:e,M:t})=>{const n=(s,r)=>s===0&&s<=r;return{x:n(e.x,t.x),y:n(e.y,t.y)}},Gf=({D:e,M:t},n)=>{const s=(r,o,_)=>Zy(0,1,(r-_)/(r-o)||0);return{x:s(e.x,t.x,n.x),y:s(e.y,t.y,n.y)}},OO=e=>{e&&e.focus&&e.focus({preventScroll:!0,focusVisible:!1})},Vf=(e,t)=>{bt(Cl(t),e)},DO=e=>{const t=new Map,n=(o,_)=>{if(o){const a=t.get(o);Vf((c=>{a&&a[c?"delete":"clear"](c)}),_)}else t.forEach((a=>{a.clear()})),t.clear()},s=(o,_)=>{if(ba(o)){const i=t.get(o)||new Set;return t.set(o,i),Vf((E=>{os(E)&&i.add(E)}),_),ot(n,o,_)}OS(_)&&_&&n();const a=jn(o),c=[];return bt(a,(i=>{const E=o[i];E&&Xt(c,s(i,E))})),ot(Ar,c)},r=(o,_)=>{bt(go(t.get(o)),(a=>{_&&!vE(_)?a.apply(0,_):a()}))};return s(e||{}),[s,n,r]},cF={},EF={},pdt=e=>{bt(e,(t=>bt(t,((n,s)=>{cF[s]=t[s]}))))},AF=(e,t,n)=>jn(e).map((s=>{const{static:r,instance:o}=e[s],[_,a,c]=n||[],i=n?o:r;if(i){const E=n?i(_,a,t):i(t);return(c||EF)[s]=E}})),Ha=e=>EF[e],hdt="__osOptionsValidationPlugin",$a="data-overlayscrollbars",uE="os-environment",qc=`${uE}-scrollbar-hidden`,dC=`${$a}-initialize`,NE="noClipping",xf=`${$a}-body`,Ro=$a,Pdt="host",$s=`${$a}-viewport`,Mdt=Ol,mdt=Dl,gdt="arrange",SF="measuring",ydt="scrolling",IF="scrollbarHidden",Fdt="noContent",TO=`${$a}-padding`,wf=`${$a}-content`,fl="os-size-observer",vdt=`${fl}-appear`,Udt=`${fl}-listener`,Bdt="os-trinsic-observer",bdt="os-theme-none",ur="os-scrollbar",Hdt=`${ur}-rtl`,$dt=`${ur}-horizontal`,Gdt=`${ur}-vertical`,RF=`${ur}-track`,pl=`${ur}-handle`,Vdt=`${ur}-visible`,xdt=`${ur}-cornerless`,Yf=`${ur}-interaction`,kf=`${ur}-unusable`,lO=`${ur}-auto-hide`,Kf=`${lO}-hidden`,jf=`${ur}-wheel`,wdt=`${RF}-interactive`,Ydt=`${pl}-interactive`,kdt="__osSizeObserverPlugin",Kdt=(e,t)=>{const{k:n}=t,[s,r]=e("showNativeOverlaidScrollbars");return[s&&n.x&&n.y,r]},K_=e=>e.indexOf(Vs)===0,jdt=e=>e.replace(`${Vs}-`,""),uO=(e,t)=>{if(e==="auto")return t?ta:Kr;const n=e||Kr;return[Kr,ta,Vs].includes(n)?n:Kr},Wdt=(e,t)=>{const{overflowX:n,overflowY:s}=Cs(e,[Ol,Dl]);return{x:uO(n,t.x),y:uO(s,t.y)}},hl="__osScrollbarsHidingPlugin",Zdt="__osClickScrollPlugin",Wf=e=>JSON.stringify(e,((t,n)=>{if(os(n))throw 0;return n})),Zf=(e,t)=>e?`${t}`.split(".").reduce(((n,s)=>n&&jy(n,s)?n[s]:void 0),e):void 0,Xdt=[0,33],CF=[33,99],OF=[222,666,!0],zdt={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:Xdt,resize:null,event:CF,env:OF},attributes:null,ignoreMutation:null,flowDirectionStyles:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},DF=(e,t)=>{const n={},s=ea(jn(t),jn(e));return bt(s,(r=>{const o=e[r],_=t[r];if(yE(o)&&yE(_))pt(n[r]={},DF(o,_)),Tl(n[r])&&delete n[r];else if(jy(t,r)&&_!==o){let a=!0;if(hr(o)||hr(_))try{Wf(o)===Wf(_)&&(a=!1)}catch{}a&&(n[r]=_)}})),n},Xf=(e,t,n)=>s=>[Zf(e,s),n||Zf(t,s)!==void 0];let TF;const qdt=()=>TF,Qdt=e=>{TF=e};let LC;const Jdt=()=>{const e=(N,h,g)=>{Wn(document.body,N),Wn(document.body,N);const M=sF(N),H=Z_(N),B=Ll(h);return g&&na(N),{x:H.h-M.h+B.h,y:H.w-M.w+B.w}},t=N=>{let h=!1;const g=dl(N,qc);try{h=Cs(N,"scrollbar-width")==="none"||Cs(N,"display","::-webkit-scrollbar")==="none"}catch{}return g(),h},n=`.${uE}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${uE} div{width:200%;height:200%;margin:10px 0}.${qc}{scrollbar-width:none!important}.${qc}::-webkit-scrollbar,.${qc}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=tF(`<div class="${uE}"><div></div><style>${n}</style></div>`)[0],o=r.firstChild,_=r.lastChild,a=qdt();a&&(_.nonce=a);const[c,,i]=DO(),[E,S]=ar({o:e(r,o),i:lE},ot(e,r,o,!0)),[R]=S(),C=t(r),I={x:R.x===0,y:R.y===0},T={elements:{host:null,padding:!C,viewport:N=>C&&Jy(N)&&N,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},u=pt({},zdt),d=ot(pt,{},u),f=ot(pt,{},T),p={P:R,k:I,U:C,J:!!Ei,G:ot(c,"r"),K:f,Z:N=>pt(T,N)&&f(),tt:d,nt:N=>pt(u,N)&&d(),ot:pt({},T),st:pt({},u)};if(cs(r,"style"),na(r),Yt(Zn,"resize",(()=>{i("r",[])})),os(Zn.matchMedia)&&!C&&(!I.x||!I.y)){const N=h=>{const g=Zn.matchMedia(`(resolution: ${Zn.devicePixelRatio}dppx)`);Yt(g,"change",(()=>{h(),N(h)}),{T:!0})};N((()=>{const[h,g]=E();pt(p.P,h),i("r",[g])}))}return p},ys=()=>(LC||(LC=Jdt()),LC),eLt=(e,t,n)=>{let s=!1;const r=n?new WeakMap:!1,o=()=>{s=!0},_=a=>{if(r&&n){const c=n.map((i=>{const[E,S]=i||[];return[S&&E?(a||Qy)(E,e):[],S]}));bt(c,(i=>bt(i[0],(E=>{const S=i[1],R=r.get(E)||[];if(e.contains(E)&&S){const I=Yt(E,S,(T=>{s?(I(),r.delete(E)):t(T)}));r.set(E,Xt(R,I))}else Ar(R),r.delete(E)}))))}};return _(),[o,_]},zf=(e,t,n,s)=>{let r=!1;const{et:o,ct:_,rt:a,it:c,lt:i,ut:E}=s||{},[S,R]=eLt(e,(()=>r&&n(!0)),a),C=o||[],I=_||[],T=ea(C,I),u=(f,p)=>{if(!vE(p)){const N=i||di,h=E||di,g=[],M=[];let H=!1,B=!1;if(bt(p,(P=>{const{attributeName:m,target:v,type:X,oldValue:W,addedNodes:Oe,removedNodes:_e}=P,Ne=X==="attributes",pe=X==="childList",fe=e===v,je=Ne&&m,Re=je&&ll(v,m||""),ue=ba(Re)?Re:null,q=je&&W!==ue,Se=by(I,m)&&q;if(t&&(pe||!fe)){const oe=Ne&&q,Pe=oe&&c&&EO(v,c),Ae=(Pe?!N(v,m,W,ue):!Ne||oe)&&!h(P,!!Pe,e,s);bt(Oe,(ge=>Xt(g,ge))),bt(_e,(ge=>Xt(g,ge))),B=B||Ae}!t&&fe&&q&&!N(v,m,W,ue)&&(Xt(M,m),H=H||Se)})),R((P=>UE(g).reduce(((m,v)=>(Xt(m,Qy(P,v)),EO(v,P)?Xt(m,v):m)),[]))),t)return!f&&B&&n(!1),[!1];if(!vE(M)||H){const P=[UE(M),H];return f||n.apply(0,P),P}}},d=new Idt(ot(u,!1));return[()=>(d.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:T,subtree:t,childList:t,characterData:t}),r=!0,()=>{r&&(S(),d.disconnect(),r=!1)}),()=>{if(r)return u(!0,d.takeRecords())}]};let $o=null;const lF=(e,t,n)=>{const{ft:s}=n||{},r=Ha(kdt),[o]=ar({o:!1,u:!0});return()=>{const _=[],c=tF(`<div class="${fl}"><div class="${Udt}"></div></div>`)[0],i=c.firstChild,E=S=>{const R=hr(S)&&!vE(S);let C=!1,I=!1;if(R){const T=S[0],[u,,d]=o(T.contentRect),f=RO(u);I=oF(u,d),C=!I&&!f}else I=S===!0;C||t({_t:!0,ft:I})};if(w_){if(!OS($o)){const I=new w_(di);I.observe(e,{get box(){$o=!0}}),$o=$o||!1,I.disconnect()}const S=Ky(E,{p:0,v:0}),R=I=>S(I),C=new w_(R);if(C.observe($o?e:i),Xt(_,[()=>{C.disconnect()},!$o&&Wn(e,c)]),$o){const I=new w_(R);I.observe(e,{box:"border-box"}),Xt(_,(()=>I.disconnect()))}}else if(r){const[S,R]=r(i,E,s);Xt(_,ea([dl(c,vdt),Yt(c,"animationstart",S),Wn(e,c)],R))}else return di;return ot(Ar,_)}},tLt=(e,t)=>{let n;const s=c=>c.h===0||c.isIntersecting||c.intersectionRatio>0,r=W_(Bdt),[o]=ar({o:!1}),_=(c,i)=>{if(c){const E=o(s(c)),[,S]=E;return S&&!i&&t(E)&&[E]}},a=(c,i)=>_(i.pop(),c);return[()=>{const c=[];if(vf)n=new vf(ot(a,!1),{root:e}),n.observe(r),Xt(c,(()=>{n.disconnect()}));else{const i=()=>{const E=Z_(r);_(E)};Xt(c,lF(r,i)()),i()}return ot(Ar,Xt(c,Wn(e,r)))},()=>n&&a(!0,n.takeRecords())]},nLt=(e,t,n,s)=>{let r,o,_,a,c,i,E,S;const R=`[${Ro}]`,C=`[${$s}]`,I=["id","class","style","open","wrap","cols","rows"],{dt:T,vt:u,L:d,gt:f,ht:p,V:N,bt:h,wt:g,yt:M,St:H}=e,B=Ie=>Cs(Ie,"direction")==="rtl",P=()=>{let Ie,Ae,ge;const Me=Ky(s,{p:()=>Ie,v:()=>Ae,S:()=>ge,m(qe,Et){const[Ye]=qe,[St]=Et;return[ea(jn(Ye),jn(St)).reduce(((Je,Dt)=>(Je[Dt]=Ye[Dt]||St[Dt],Je)),{})]}}),$e=(qe,Et)=>{if(hr(Et)){const[Ye,St,Je]=Et;Ie=Ye,Ae=St,ge=Je}else Io(Et)?(Ie=Et,Ae=!1,ge=!1):(Ie=!1,Ae=!1,ge=!1);Me(qe)};return $e.O=Me.O,$e},m={Ot:!1,B:B(T)},v=ys(),X=Ha(hl),[W]=ar({i:ky,o:{w:0,h:0}},(()=>{const Ie=X&&X.R(e,t,m,v,n).Y,ge=!(h&&N)&&Nl(u,Ro,NE),Me=!N&&g(gdt),$e=Me&&Er(f),qe=$e&&H(),Et=M(SF,ge),Ye=Me&&Ie&&Ie(),St=bE(d),Je=Ll(d);return Ye&&Ye(),Rs(f,$e),qe&&qe(),ge&&Et(),{w:St.w+Je.w,h:St.h+Je.h}})),Oe=P(),_e=Ie=>{const Ae=B(T);pt(Ie,{Ct:S!==Ae}),pt(m,{B:Ae}),S=Ae},Ne=(Ie,Ae)=>{const[ge,Me]=Ie,$e={$t:Me};return pt(m,{Ot:ge}),Ae||s($e),$e},pe=({_t:Ie,ft:Ae})=>{const ge=Ae?s:Oe,Me={_t:Ie||Ae,ft:Ae};_e(Me),ge(Me,o)},fe=(Ie,Ae)=>{const[,ge]=W(),Me={xt:ge};return _e(Me),ge&&!Ae&&Oe(Me,Ie?_:r),Me},je=(Ie,Ae,ge)=>{const Me={Ht:Ae};return _e(Me),Ae&&!ge&&Oe(Me,r),Me},[Re,ue]=p?tLt(u,Ne):[],q=!N&&lF(u,pe,{ft:!0}),[Se,oe]=zf(u,!1,je,{ct:I,et:I}),Pe=N&&w_&&new w_((Ie=>{const Ae=Ie[Ie.length-1].contentRect;pe({_t:!0,ft:oF(Ae,E)}),E=Ae}));return[()=>{Pe&&Pe.observe(u);const Ie=q&&q(),Ae=Re&&Re(),ge=Se(),Me=v.G(($e=>{const[,qe]=W();Oe({Et:$e,xt:qe,_t:h},a)}));return()=>{Pe&&Pe.disconnect(),Ie&&Ie(),Ae&&Ae(),i&&i(),ge(),Me()}},({zt:Ie,It:Ae,At:ge})=>{const Me={},[$e]=Ie("update.ignoreMutation"),[qe,Et]=Ie("update.attributes"),[Ye,St]=Ie("update.elementEvents"),[Je,Dt]=Ie("update.debounce"),Pt=St||Et,lt=Ae||ge,ut=Nt=>os($e)&&$e(Nt);if(Pt){c&&c(),i&&i();const[Nt,It]=zf(p||d,!0,fe,{et:ea(I,qe||[]),rt:Ye,it:R,ut:(Lt,$t)=>{const{target:xn,attributeName:Fn}=Lt;return(!$t&&Fn&&!N?Ddt(xn,R,C):!1)||!!k_(xn,`.${ur}`)||!!ut(Lt)}});i=Nt(),c=It}if(Dt&&(Oe.O(),hr(Je)||Io(Je)?(r=Je,o=!1,_=CF,a=OF):Ni(Je)?(r=Je.mutation,o=Je.resize,_=Je.event,a=Je.env):(r=!1,o=!1,_=!1,a=!1)),lt){const Nt=oe(),It=ue&&ue(),Lt=c&&c();Nt&&pt(Me,je(Nt[0],Nt[1],lt)),It&&pt(Me,Ne(It[0],lt)),Lt&&pt(Me,fe(Lt[0],lt))}return _e(Me),Me},m]},uF=(e,t)=>os(t)?t.apply(0,e):t,rLt=(e,t,n,s)=>{const r=Il(s)?n:s;return uF(e,r)||t.apply(0,e)},NF=(e,t,n,s)=>{const r=Il(s)?n:s,o=uF(e,r);return!!o&&(FE(o)?o:t.apply(0,e))},sLt=(e,t)=>{const{nativeScrollbarsOverlaid:n,body:s}=t||{},{k:r,U:o,K:_}=ys(),{nativeScrollbarsOverlaid:a,body:c}=_().cancel,i=n??a,E=Il(s)?c:s,S=(r.x||r.y)&&i,R=e&&(CS(E)?!o:E);return!!S||!!R},oLt=(e,t,n,s)=>{const r="--os-viewport-percent",o="--os-scroll-percent",_="--os-scroll-direction",{K:a}=ys(),{scrollbars:c}=a(),{slot:i}=c,{dt:E,vt:S,L:R,Tt:C,gt:I,bt:T,V:u}=t,{scrollbars:d}=C?{}:e,{slot:f}=d||{},p=[],N=[],h=[],g=NF([E,S,R],(()=>u&&T?E:S),i,f),M=Re=>{if(Ei){let ue=null,q=[];const Se=new Ei({source:I,axis:Re}),oe=()=>{ue&&ue.cancel(),ue=null};return{kt:Ie=>{const{Dt:Ae}=n,ge=NC(Ae)[Re],Me=Re==="x",$e=[lC(0,Me),lC(`calc(-100% + 100cq${Me?"w":"h"})`,Me)],qe=ge?$e:$e.reverse();return q[0]===qe[0]&&q[1]===qe[1]||(q=qe,oe(),ue=Ie.Mt.animate({clear:["left"],transform:qe},{timeline:Se})),oe}}}},H={x:M("x"),y:M("y")},B=()=>{const{Rt:Re,Vt:ue}=n,q=(Se,oe)=>Zy(0,1,Se/(Se+oe)||0);return{x:q(ue.x,Re.x),y:q(ue.y,Re.y)}},P=(Re,ue,q)=>{const Se=q?dl:qy;bt(Re,(oe=>{Se(oe.Lt,ue)}))},m=(Re,ue)=>{bt(Re,(q=>{const[Se,oe]=ue(q);fi(Se,oe)}))},v=(Re,ue,q)=>{const Se=OS(q),oe=Se?q:!0,Pe=Se?!q:!0;oe&&P(N,Re,ue),Pe&&P(h,Re,ue)},X=()=>{const Re=B(),ue=q=>Se=>[Se.Lt,{[r]:IO(q)+""}];m(N,ue(Re.x)),m(h,ue(Re.y))},W=()=>{if(!Ei){const{Dt:Re}=n,ue=Gf(Re,Er(I)),q=Se=>oe=>[oe.Lt,{[o]:IO(Se)+""}];m(N,q(ue.x)),m(h,q(ue.y))}},Oe=()=>{const{Dt:Re}=n,ue=NC(Re),q=Se=>oe=>[oe.Lt,{[_]:Se?"0":"1"}];m(N,q(ue.x)),m(h,q(ue.y)),Ei&&(N.forEach(H.x.kt),h.forEach(H.y.kt))},_e=()=>{if(u&&!T){const{Rt:Re,Dt:ue}=n,q=NC(ue),Se=Gf(ue,Er(I)),oe=Pe=>{const{Lt:Ie}=Pe,Ae=Li(Ie)===R&&Ie,ge=(Me,$e,qe)=>{const Et=$e*Me;return rF(qe?Et:-Et)};return[Ae,Ae&&{transform:lC({x:ge(Se.x,Re.x,q.x),y:ge(Se.y,Re.y,q.y)})}]};m(N,oe),m(h,oe)}},Ne=Re=>{const ue=Re?"x":"y",Se=W_(`${ur} ${Re?$dt:Gdt}`),oe=W_(RF),Pe=W_(pl),Ie={Lt:Se,Ut:oe,Mt:Pe},Ae=H[ue];return Xt(Re?N:h,Ie),Xt(p,[Wn(Se,oe),Wn(oe,Pe),ot(na,Se),Ae&&Ae.kt(Ie),s(Ie,v,Re)]),Ie},pe=ot(Ne,!0),fe=ot(Ne,!1),je=()=>(Wn(g,N[0].Lt),Wn(g,h[0].Lt),ot(Ar,p));return pe(),fe(),[{Pt:X,Nt:W,qt:Oe,Bt:_e,Ft:v,jt:{Xt:N,Yt:pe,Wt:ot(m,N)},Jt:{Xt:h,Yt:fe,Wt:ot(m,h)}},je]},_Lt=(e,t,n,s)=>(r,o,_)=>{const{vt:a,L:c,V:i,gt:E,Gt:S,St:R}=t,{Lt:C,Ut:I,Mt:T}=r,[u,d]=Y_(333),[f,p]=Y_(444),N=M=>{os(E.scrollBy)&&E.scrollBy({behavior:"smooth",left:M.x,top:M.y})},h=()=>{const M="pointerup pointercancel lostpointercapture",H=`client${_?"X":"Y"}`,B=_?TS:lS,P=_?"left":"top",m=_?"w":"h",v=_?"x":"y",X=(Oe,_e)=>Ne=>{const{Rt:pe}=n,fe=Z_(I)[m]-Z_(T)[m],Re=_e*Ne/fe*pe[v];Rs(E,{[v]:Oe+Re})},W=[];return Yt(I,"pointerdown",(Oe=>{const _e=k_(Oe.target,`.${pl}`)===T,Ne=_e?T:I,pe=e.scrollbars,fe=pe[_e?"dragScroll":"clickScroll"],{button:je,isPrimary:Re,pointerType:ue}=Oe,{pointers:q}=pe;if(je===0&&Re&&fe&&(q||[]).includes(ue)){Ar(W),p();const oe=!_e&&(Oe.shiftKey||fe==="instant"),Pe=ot(uC,T),Ie=ot(uC,I),Ae=(It,Lt)=>(It||Pe())[P]-(Lt||Ie())[P],ge=cO(uC(E)[B])/Z_(E)[m]||1,Me=X(Er(E)[v],1/ge),$e=Oe[H],qe=Pe(),Et=Ie(),Ye=qe[B],St=Ae(qe,Et)+Ye/2,Je=$e-Et[P],Dt=_e?0:Je-St,Pt=It=>{Ar(Nt),Ne.releasePointerCapture(It.pointerId)},lt=_e||oe,ut=R(),Nt=[Yt(S,M,Pt),Yt(S,"selectstart",(It=>CO(It)),{I:!1}),Yt(I,M,Pt),lt&&Yt(I,"pointermove",(It=>Me(Dt+(It[H]-$e)))),lt&&(()=>{const It=Er(E);ut();const Lt=Er(E),$t={x:Lt.x-It.x,y:Lt.y-It.y};(So($t.x)>3||So($t.y)>3)&&(R(),Rs(E,It),N($t),f(ut))})];if(Ne.setPointerCapture(Oe.pointerId),oe)Me(Dt);else if(!_e){const It=Ha(Zdt);if(It){const Lt=It(Me,Dt,Ye,($t=>{$t?ut():Xt(Nt,ut)}));Xt(Nt,Lt),Xt(W,ot(Lt,!0))}}}}))};let g=!0;return ot(Ar,[Yt(T,"pointermove pointerleave",s),Yt(C,"pointerenter",(()=>{o(Yf,!0)})),Yt(C,"pointerleave pointercancel",(()=>{o(Yf,!1)})),!i&&Yt(C,"mousedown",(()=>{const M=SO();(Bf(M,$s)||Bf(M,Ro)||M===document.body)&&Sl(ot(OO,c),25)})),Yt(C,"wheel",(M=>{const{deltaX:H,deltaY:B,deltaMode:P}=M;g&&P===0&&Li(C)===a&&N({x:H,y:B}),g=!1,o(jf,!0),u((()=>{g=!0,o(jf)})),CO(M)}),{I:!1,A:!0}),Yt(C,"pointerdown",(()=>{const M=Yt(S,"click",(B=>{H(),aF(B)}),{T:!0,A:!0,I:!1}),H=Yt(S,"pointerup pointercancel",(()=>{H(),setTimeout(M,150)}),{A:!0,I:!0})}),{A:!0,I:!0}),h(),d,p])},aLt=(e,t,n,s,r,o)=>{let _,a,c,i,E,S=di,R=0;const C=["mouse","pen"],I=q=>C.includes(q.pointerType),[T,u]=Y_(),[d,f]=Y_(100),[p,N]=Y_(100),[h,g]=Y_((()=>R)),[M,H]=oLt(e,r,s,_Lt(t,r,s,(q=>I(q)&&pe()))),{vt:B,Kt:P,bt:m}=r,{Ft:v,Pt:X,Nt:W,qt:Oe,Bt:_e}=M,Ne=(q,Se)=>{if(g(),q)v(Kf);else{const oe=ot(v,Kf,!0);R>0&&!Se?h(oe):oe()}},pe=()=>{(c?!_:!i)&&(Ne(!0),d((()=>{Ne(!1)})))},fe=q=>{v(lO,q,!0),v(lO,q,!1)},je=q=>{I(q)&&(_=c,c&&Ne(!0))},Re=[g,f,N,u,()=>S(),Yt(B,"pointerover",je,{T:!0}),Yt(B,"pointerenter",je),Yt(B,"pointerleave",(q=>{I(q)&&(_=!1,c&&Ne(!1))})),Yt(B,"pointermove",(q=>{I(q)&&a&&pe()})),Yt(P,"scroll",(q=>{T((()=>{W(),pe()})),o(q),_e()}))],ue=Ha(hl);return[()=>ot(Ar,Xt(Re,H())),({zt:q,At:Se,Qt:oe,Zt:Pe})=>{const{tn:Ie,nn:Ae,sn:ge,en:Me}=Pe||{},{Ct:$e,ft:qe}=oe||{},{B:Et}=n,{k:Ye,U:St}=ys(),{cn:Je,j:Dt}=s,[Pt,lt]=q("showNativeOverlaidScrollbars"),[ut,Nt]=q("scrollbars.theme"),[It,Lt]=q("scrollbars.visibility"),[$t,xn]=q("scrollbars.autoHide"),[Fn,Dn]=q("scrollbars.autoHideSuspend"),[Qt]=q("scrollbars.autoHideDelay"),[fn,wn]=q("scrollbars.dragScroll"),[rt,G]=q("scrollbars.clickScroll"),[V,Q]=q("overflow"),De=qe&&!Se,ve=Dt.x||Dt.y,We=Ie||Ae||Me||$e||Se,he=ge||Lt||Q,Xe=Pt&&Ye.x&&Ye.y,Le=!St&&!ue,me=Xe||Le,ye=(Ue,it,dt)=>{const yt=Ue.includes(ta)&&(It===Vs||It==="auto"&&it===ta);return v(Vdt,yt,dt),yt};if(R=Qt,De&&(Fn&&ve?(fe(!1),S(),p((()=>{S=Yt(P,"scroll",ot(fe,!0),{T:!0})}))):fe(!0)),(lt||Le)&&v(bdt,me),Nt&&(v(E),v(ut,!0),E=ut),Dn&&!Fn&&fe(!0),xn&&(a=$t==="move",c=$t==="leave",i=$t==="never",Ne(i,!0)),wn&&v(Ydt,fn),G&&v(wdt,!!rt),he){const Ue=ye(V.x,Je.x,!0),it=ye(V.y,Je.y,!1);v(xdt,!(Ue&&it))}We&&(W(),X(),_e(),Me&&Oe(),v(kf,!Dt.x,!0),v(kf,!Dt.y,!1),v(Hdt,Et&&!m))},{},M]},iLt=e=>{const t=ys(),{K:n,U:s}=t,{elements:r}=n(),{padding:o,viewport:_,content:a}=r,c=FE(e),i=c?{}:e,{elements:E}=i,{padding:S,viewport:R,content:C}=E||{},I=c?e:i.target,T=Jy(I),u=I.ownerDocument,d=u.documentElement,f=()=>u.defaultView||Zn,p=ot(rLt,[I]),N=ot(NF,[I]),h=ot(W_,""),g=ot(p,h,_),M=ot(N,h,a),H=Ye=>{const St=Z_(Ye),Je=bE(Ye),Dt=Cs(Ye,Ol),Pt=Cs(Ye,Dl);return Je.w-St.w>0&&!K_(Dt)||Je.h-St.h>0&&!K_(Pt)},B=g(R),P=B===I,m=P&&T,v=!P&&M(C),X=!P&&B===v,W=m?d:B,Oe=m?W:I,_e=!P&&N(h,o,S),Ne=!X&&v,pe=[Ne,W,_e,Oe].map((Ye=>FE(Ye)&&!Li(Ye)&&Ye)),fe=Ye=>Ye&&by(pe,Ye),je=!fe(W)&&H(W)?W:I,Re=m?d:W,q={dt:I,vt:Oe,L:W,rn:_e,ht:Ne,gt:Re,Kt:m?u:W,ln:T?d:je,Gt:u,bt:T,Tt:c,V:P,an:f,wt:Ye=>Nl(W,$s,Ye),yt:(Ye,St)=>BE(W,$s,Ye,St),St:()=>BE(Re,$s,ydt,!0)},{dt:Se,vt:oe,rn:Pe,L:Ie,ht:Ae}=q,ge=[()=>{cs(oe,[Ro,dC]),cs(Se,dC),T&&cs(d,[dC,Ro])}];let Me=AO([Ae,Ie,Pe,oe,Se].find((Ye=>Ye&&!fe(Ye))));const $e=m?Se:Ae||Ie,qe=ot(Ar,ge);return[q,()=>{const Ye=f(),St=SO(),Je=Nt=>{Wn(Li(Nt),AO(Nt)),na(Nt)},Dt=Nt=>Yt(Nt,"focusin focusout focus blur",aF,{A:!0,I:!1}),Pt="tabindex",lt=ll(Ie,Pt),ut=Dt(St);return Hs(oe,Ro,P?"":Pdt),Hs(Pe,TO,""),Hs(Ie,$s,""),Hs(Ae,wf,""),P||(Hs(Ie,Pt,lt||"-1"),T&&Hs(d,xf,"")),Wn($e,Me),Wn(oe,Pe),Wn(Pe||oe,!P&&Ie),Wn(Ie,Ae),Xt(ge,[ut,()=>{const Nt=SO(),It=fe(Ie),Lt=It&&Nt===Ie?Se:Nt,$t=Dt(Lt);cs(Pe,TO),cs(Ae,wf),cs(Ie,$s),T&&cs(d,xf),lt?Hs(Ie,Pt,lt):cs(Ie,Pt),fe(Ae)&&Je(Ae),It&&Je(Ie),fe(Pe)&&Je(Pe),OO(Lt),$t()}]),s&&!P&&(ul(Ie,$s,IF),Xt(ge,ot(cs,Ie,$s))),OO(!P&&T&&St===Se&&Ye.top===Ye?Ie:St),ut(),Me=0,qe},qe]},cLt=({ht:e})=>({Qt:t,un:n,At:s})=>{const{$t:r}=t||{},{Ot:o}=n;e&&(r||s)&&fi(e,{[lS]:o&&"100%"})},ELt=({vt:e,rn:t,L:n,V:s},r)=>{const[o,_]=ar({i:Cdt,o:Hf()},ot(Hf,e,"padding",""));return({zt:a,Qt:c,un:i,At:E})=>{let[S,R]=_(E);const{U:C}=ys(),{_t:I,xt:T,Ct:u}=c||{},{B:d}=i,[f,p]=a("paddingAbsolute");(I||R||(E||T))&&([S,R]=o(E));const h=!s&&(p||u||R);if(h){const g=!f||!t&&!C,M=S.r+S.l,H=S.t+S.b,B={[wy]:g&&!d?-M:0,[Yy]:g?-H:0,[xy]:g&&d?-M:0,top:g?-S.t:0,right:g?d?-S.r:"auto":0,left:g?d?"auto":-S.l:0,[TS]:g&&`calc(100% + ${M}px)`},P={[Hy]:g?S.t:0,[$y]:g?S.r:0,[Vy]:g?S.b:0,[Gy]:g?S.l:0};fi(t||n,B),fi(n,P),pt(r,{rn:S,fn:!g,F:t?P:pt({},B,P)})}return{_n:h}}},ALt=(e,t)=>{const n=ys(),{vt:s,rn:r,L:o,V:_,Kt:a,gt:c,bt:i,yt:E,an:S}=e,{U:R}=n,C=i&&_,I=ot(vy,0),T={display:()=>!1,direction:Se=>Se!=="ltr",flexDirection:Se=>Se.endsWith("-reverse"),writingMode:Se=>Se!=="horizontal-tb"},u=jn(T),d={i:ky,o:{w:0,h:0}},f={i:lE,o:{}},p=Se=>{E(SF,!C&&Se)},N=()=>Cs(o,u),h=(Se,oe)=>{const Pe=!jn(Se).length,Ie=!oe&&u.some((lt=>{const ut=Se[lt];return ba(ut)&&T[lt](ut)}));if(Pe&&!Ie||!Ldt(o))return{D:{x:0,y:0},M:{x:1,y:1}};p(!0);const ge=Er(c),Me=Yt(a,ta,(lt=>{const ut=Er(c);lt.isTrusted&&ut.x===ge.x&&ut.y===ge.y&&_F(lt)}),{A:!0,T:!0}),$e=E(Fdt,!0);Rs(c,{x:0,y:0}),$e();const qe=Er(c),Et=bE(c);Rs(c,{x:Et.w,y:Et.h});const Ye=Er(c),St={x:Ye.x-qe.x,y:Ye.y-qe.y};Rs(c,{x:-Et.w,y:-Et.h});const Je=Er(c),Dt={x:Je.x-qe.x,y:Je.y-qe.y},Pt={x:So(St.x)>=So(Dt.x)?Ye.x:Je.x,y:So(St.y)>=So(Dt.y)?Ye.y:Je.y};return Rs(c,ge),Al((()=>Me())),{D:qe,M:Pt}},g=(Se,oe)=>{const Pe=Zn.devicePixelRatio%1!==0?1:0,Ie={w:I(Se.w-oe.w),h:I(Se.h-oe.h)};return{w:Ie.w>Pe?Ie.w:0,h:Ie.h>Pe?Ie.h:0}},M=(Se,oe)=>{const Pe=(Ie,Ae,ge,Me)=>{const $e=Ie===Vs?Kr:jdt(Ie),qe=K_(Ie),Et=K_(ge);return!Ae&&!Me?Kr:qe&&Et?Vs:qe?Ae&&Me?$e:Ae?Vs:Kr:Ae?$e:Et&&Me?Vs:Kr};return{x:Pe(oe.x,Se.x,oe.y,Se.y),y:Pe(oe.y,Se.y,oe.x,Se.x)}},H=Se=>{const oe=Ie=>[Vs,Kr,ta].map((Ae=>q(uO(Ae),Ie))),Pe=oe(!0).concat(oe()).join(" ");E(Pe),E(jn(Se).map((Ie=>q(Se[Ie],Ie==="x"))).join(" "),!0)},[B,P]=ar(d,ot(Ll,o)),[m,v]=ar(d,ot(bE,o)),[X,W]=ar(d),[Oe]=ar(f),[_e,Ne]=ar(d),[pe]=ar(f),[fe]=ar({i:(Se,oe)=>uS(Se,oe,UE(ea(jn(Se),jn(oe)))),o:{}}),[je,Re]=ar({i:(Se,oe)=>lE(Se.D,oe.D)&&lE(Se.M,oe.M),o:iF()}),ue=Ha(hl),q=(Se,oe)=>`${oe?Mdt:mdt}${Rdt(Se)}`;return({zt:Se,Qt:oe,un:Pe,At:Ie},{_n:Ae})=>{const{_t:ge,Ht:Me,xt:$e,Ct:qe,ft:Et,Et:Ye}=oe||{},St=ue&&ue.R(e,t,Pe,n,Se),{X:Je,Y:Dt,W:Pt}=St||{},[lt,ut]=Kdt(Se,n),[Nt,It]=Se("overflow"),Lt=K_(Nt.x),$t=K_(Nt.y),xn=ge||Ae||$e||qe||Ye||ut;let Fn=P(Ie),Dn=v(Ie),Qt=W(Ie),fn=Ne(Ie);if(ut&&R&&E(IF,!lt),xn){Nl(s,Ro,NE)&&p(!0);const Ga=Dt&&Dt(),[vn]=Fn=B(Ie),[yo]=Dn=m(Ie),Fo=sF(o),vo=C&&ddt(S()),lc={w:I(yo.w+vn.w),h:I(yo.h+vn.h)},Va={w:I((vo?vo.w:Fo.w+I(Fo.w-yo.w))+vn.w),h:I((vo?vo.h:Fo.h+I(Fo.h-yo.h))+vn.h)};Ga&&Ga(),fn=_e(Va),Qt=X(g(lc,Va),Ie)}const[wn,rt]=fn,[G,V]=Qt,[Q,De]=Dn,[ve,We]=Fn,[he,Xe]=Oe({x:G.w>0,y:G.h>0}),Le=Lt&&$t&&(he.x||he.y)||Lt&&he.x&&!he.y||$t&&he.y&&!he.x,me=Ae||qe||Ye||We||De||rt||V||It||ut||xn||Me&&C,[ye]=Se("update.flowDirectionStyles"),[Ue,it]=fe(ye?ye(o):N(),Ie),dt=qe||Et||it||Xe||Ie,[yt,pn]=dt?je(h(Ue,!!ye),Ie):Re();let Yr=M(he,Nt);p(!1),me&&(H(Yr),Yr=Wdt(o,he),Pt&&Je&&(Je(Yr,Q,ve),fi(o,Pt(Yr))));const[P_,_s]=pe(Yr);return BE(s,Ro,NE,Le),BE(r,TO,NE,Le),pt(t,{cn:P_,Vt:{x:wn.w,y:wn.h},Rt:{x:G.w,y:G.h},j:he,Dt:fdt(yt,G)}),{sn:_s,tn:rt,nn:V,en:pn||V}}},SLt=e=>{const[t,n,s]=iLt(e),r={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{[wy]:0,[Yy]:0,[xy]:0,[Hy]:0,[$y]:0,[Vy]:0,[Gy]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},cn:{x:Kr,y:Kr},j:{x:!1,y:!1},Dt:iF()},{dt:o,gt:_,V:a,St:c}=t,{U:i,k:E}=ys(),S=!i&&(E.x||E.y),R=[cLt(t),ELt(t,r),ALt(t,r)];return[n,C=>{const I={},u=S&&Er(_),d=u&&c();return bt(R,(f=>{pt(I,f(C,I)||{})})),Rs(_,u),d&&d(),a||Rs(o,0),I},r,t,s]},ILt=(e,t,n,s,r)=>{let o=!1;const _=Xf(t,{}),[a,c,i,E,S]=SLt(e),[R,C,I]=nLt(E,i,_,(N=>{p({},N)})),[T,u,,d]=aLt(e,t,I,i,E,r),f=N=>jn(N).some((h=>!!N[h])),p=(N,h)=>{if(n())return!1;const{dn:g,At:M,It:H,pn:B}=N,P=g||{},m=!!M||!o,v={zt:Xf(t,P,m),dn:P,At:m};if(B)return u(v),!1;const X=h||C(pt({},v,{It:H})),W=c(pt({},v,{un:I,Qt:X}));u(pt({},v,{Qt:X,Zt:W}));const Oe=f(X),_e=f(W),Ne=Oe||_e||!Tl(P)||m;return o=!0,Ne&&s(N,{Qt:X,Zt:W}),Ne};return[()=>{const{ln:N,gt:h,St:g}=E,M=Er(N),H=[R(),a(),T()],B=g();return Rs(h,M),B(),ot(Ar,H)},p,()=>({vn:I,gn:i}),{hn:E,bn:d},S]},Pl=new WeakMap,RLt=(e,t)=>{Pl.set(e,t)},CLt=e=>{Pl.delete(e)},dF=e=>Pl.get(e),jr=(e,t,n)=>{const{tt:s}=ys(),r=FE(e),o=r?e:e.target,_=dF(o);if(t&&!_){let a=!1;const c=[],i={},E=P=>{const m=Wy(P),v=Ha(hdt);return v?v(m,!0):m},S=pt({},s(),E(t)),[R,C,I]=DO(),[T,u,d]=DO(n),f=(P,m)=>{d(P,m),I(P,m)},[p,N,h,g,M]=ILt(e,S,(()=>a),(({dn:P,At:m},{Qt:v,Zt:X})=>{const{_t:W,Ct:Oe,$t:_e,xt:Ne,Ht:pe,ft:fe}=v,{tn:je,nn:Re,sn:ue,en:q}=X;f("updated",[B,{updateHints:{sizeChanged:!!W,directionChanged:!!Oe,heightIntrinsicChanged:!!_e,overflowEdgeChanged:!!je,overflowAmountChanged:!!Re,overflowStyleChanged:!!ue,scrollCoordinatesChanged:!!q,contentMutation:!!Ne,hostMutation:!!pe,appear:!!fe},changedOptions:P||{},force:!!m}])}),(P=>f("scroll",[B,P]))),H=P=>{CLt(o),Ar(c),a=!0,f("destroyed",[B,P]),C(),u()},B={options(P,m){if(P){const v=m?s():{},X=DF(S,pt(v,E(P)));Tl(X)||(pt(S,X),N({dn:X}))}return pt({},S)},on:T,off:(P,m)=>{P&&m&&u(P,m)},state(){const{vn:P,gn:m}=h(),{B:v}=P,{Vt:X,Rt:W,cn:Oe,j:_e,rn:Ne,fn:pe,Dt:fe}=m;return pt({},{overflowEdge:X,overflowAmount:W,overflowStyle:Oe,hasOverflow:_e,scrollCoordinates:{start:fe.D,end:fe.M},padding:Ne,paddingAbsolute:pe,directionRTL:v,destroyed:a})},elements(){const{dt:P,vt:m,rn:v,L:X,ht:W,gt:Oe,Kt:_e}=g.hn,{jt:Ne,Jt:pe}=g.bn,fe=Re=>{const{Mt:ue,Ut:q,Lt:Se}=Re;return{scrollbar:Se,track:q,handle:ue}},je=Re=>{const{Xt:ue,Yt:q}=Re,Se=fe(ue[0]);return pt({},Se,{clone:()=>{const oe=fe(q());return N({pn:!0}),oe}})};return pt({},{target:P,host:m,padding:v||X,viewport:X,content:W||X,scrollOffsetElement:Oe,scrollEventElement:_e,scrollbarHorizontal:je(Ne),scrollbarVertical:je(pe)})},update:P=>N({At:P,It:!0}),destroy:ot(H,!1),plugin:P=>i[jn(P)[0]]};return Xt(c,[M]),RLt(o,B),AF(cF,jr,[B,R,i]),sLt(g.hn.bt,!r&&e.cancel)?(H(!0),B):(Xt(c,p()),f("initialized",[B]),B.update(),B)}return _};jr.plugin=e=>{const t=hr(e),n=t?e:[e],s=n.map((r=>AF(r,jr)[0]));return pdt(n),t?s:s[0]};jr.valid=e=>{const t=e&&e.elements,n=os(t)&&t();return Ni(n)&&!!dF(n.target)};jr.env=()=>{const{P:e,k:t,U:n,J:s,ot:r,st:o,K:_,Z:a,tt:c,nt:i}=ys();return pt({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:s,staticDefaultInitialization:r,staticDefaultOptions:o,getDefaultInitialization:_,setDefaultInitialization:a,getDefaultOptions:c,setDefaultOptions:i})};jr.nonce=Qdt;jr.trustedTypePolicy=ldt;const OLt=()=>{if(typeof window>"u"){const i=()=>{};return[i,i]}let e,t;const n=window,s=typeof n.requestIdleCallback=="function",r=n.requestAnimationFrame,o=n.cancelAnimationFrame,_=s?n.requestIdleCallback:r,a=s?n.cancelIdleCallback:o,c=()=>{a(e),o(t)};return[(i,E)=>{c(),e=_(s?()=>{c(),t=r(i)}:i,typeof E=="object"?E:{timeout:2233})},c]},DLt=e=>{const{options:t,events:n,defer:s}=e||{},[r,o]=$.useMemo(OLt,[]),_=$.useRef(null),a=$.useRef(s),c=$.useRef(t),i=$.useRef(n);return $.useEffect(()=>{a.current=s},[s]),$.useEffect(()=>{const{current:E}=_;c.current=t,jr.valid(E)&&E.options(t||{},!0)},[t]),$.useEffect(()=>{const{current:E}=_;i.current=n,jr.valid(E)&&E.on(n||{},!0)},[n]),$.useEffect(()=>()=>{var E;o(),(E=_.current)==null||E.destroy()},[]),$.useMemo(()=>[E=>{const S=_.current;if(jr.valid(S))return;const R=a.current,C=c.current||{},I=i.current||{},T=()=>_.current=jr(E,C,I);R?r(T,R):T()},()=>_.current],[])},TLt=(e,t)=>{const{element:n="div",options:s,events:r,defer:o,children:_,...a}=e,c=n,i=$.useRef(null),E=$.useRef(null),[S,R]=DLt({options:s,events:r,defer:o});return $.useEffect(()=>{const{current:C}=i,{current:I}=E;if(!C)return;const T=C;return S(n==="body"?{target:T,cancel:{body:null}}:{target:T,elements:{viewport:I,content:I}}),()=>{var u;return(u=R())==null?void 0:u.destroy()}},[S,n]),$.useImperativeHandle(t,()=>({osInstance:R,getElement:()=>i.current}),[]),$.createElement(c,{"data-overlayscrollbars-initialize":"",ref:i,...a},n==="body"?_:$.createElement("div",{"data-overlayscrollbars-contents":"",ref:E},_))},lLt=$.forwardRef(TLt),uLt="_scroll_12rza_1",NLt="_gradient_12rza_21",Qa={scroll:uLt,gradient:NLt},wr=({children:e,extendedItemSelector:t,extendedScrollDelay:n,extendedScrollOffset:s=20,initialScrollPosition:r,onScrollTop:o,className:_,maxHeight:a=580})=>{const c=$.useRef(null),i=()=>{const E=c.current?.osInstance();if(!E)return;const{content:S,host:R}=E.elements(),C=R.classList.contains(Qa.gradient),I=Math.floor((S.scrollHeight-S.scrollTop)/10)*10,T=Math.floor(S.clientHeight/10)*10;if(o?.(S.scrollTop),I===T){if(!C)return;R.classList.remove(Qa.gradient)}else{if(C)return;R.classList.add(Qa.gradient)}};return $.useEffect(()=>{if(!r)return;const E=c.current?.osInstance();if(!E)return;const{content:S}=E.elements();S.scrollBy({top:r,behavior:"instant"})},[r]),$.useEffect(()=>{const E=c.current?.osInstance();if(!E)return;const{content:S,host:R}=E.elements(),C=new ResizeObserver(()=>{const I=Math.floor(S.scrollHeight/10)*10>Math.floor(S.clientHeight/10)*10;R.classList.toggle(Qa.gradient,I)});return C.observe(S),()=>C.disconnect()},[]),$.useEffect(()=>{const E=c.current?.osInstance();if(!E||!t)return;const{content:S}=E.elements(),R=C=>{const I=C.target.closest(t);I&&setTimeout(()=>{const{bottom:T}=S.getBoundingClientRect(),{bottom:u}=I.getBoundingClientRect();u>T&&S.scrollBy({top:u-T+s,behavior:"smooth"})},n)};return S.addEventListener("click",R),()=>S.removeEventListener("click",R)},[t,n,s]),A.jsx(lLt,{options:{scrollbars:{autoHide:"move"}},style:{maxHeight:`${a}px`},events:{scroll:i},className:Ke(Qa.scroll,_),ref:c,children:e})},dLt=()=>A.jsxs("svg",{viewBox:"0 0 265 169",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{x:"1.40984",y:"-1.40984",width:"262.18",height:"166.18",rx:"12.6885",transform:"matrix(1 0 0 -1 0 166.18)",fill:"white",fillOpacity:"0.8",stroke:"#595959",strokeWidth:"2.81967"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.3698 27.707H22.0781V124.674C22.0797 122.312 26.6694 121.173 32.0465 119.839C39.1892 118.066 47.7211 115.948 48.7333 110.162C43.8427 107.061 41.9764 102.382 40.0669 97.5948L40.0669 97.5947L40.0669 97.5946C39.696 96.6648 39.3235 95.731 38.927 94.8038C34.1284 99.4719 31.9886 78.0919 36.2913 78.0919C28.1117 55.9872 50.5071 37.849 71.2002 50.3173C83.3362 47.6933 90.0421 62.2119 82.8127 78.0924C85.7951 76.6592 86.3654 84.2999 85.7951 89.0497C85.7951 90.27 84.5283 98.8118 81.3268 95.503C80.938 96.4026 80.5728 97.3088 80.2092 98.2109L80.2092 98.2111C78.2894 102.975 76.4142 107.628 71.34 110.632C72.7976 116.065 81.5159 118.115 88.8476 119.839C94.5234 121.173 99.3681 122.312 99.3698 124.674V27.707Z",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"102.508",width:"57.9687",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"179.426",y:"102.508",width:"63.4896",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"27.7031",width:"60.7292",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"52.6406",width:"60.7292",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"77.5742",width:"102.135",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"127.441",width:"132.5",height:"11.082",fill:"#595959"})]}),LLt="No data",fLt={noData:LLt},pLt="No data",hLt={noData:pLt},PLt="No data",MLt={noData:PLt},mLt="No data",gLt={noData:mLt};F.addResourceBundle("en","79d0a73f2a9390169b81b7d2390f9bd5",fLt);F.addResourceBundle("lv","79d0a73f2a9390169b81b7d2390f9bd5",hLt);F.addResourceBundle("de","79d0a73f2a9390169b81b7d2390f9bd5",MLt);F.addResourceBundle("ru","79d0a73f2a9390169b81b7d2390f9bd5",gLt);const yLt=()=>ze("79d0a73f2a9390169b81b7d2390f9bd5"),FLt="_wrapper_10k39_1",vLt="_overlay_10k39_11",ULt="_content_10k39_22",fC={wrapper:FLt,overlay:vLt,content:ULt},BLt=({children:e,className:t})=>{const{t:n}=yLt();return A.jsxs("div",{className:Ke(fC.wrapper,t),children:[e,A.jsx("div",{className:fC.overlay,children:A.jsx("div",{className:fC.content,children:A.jsx(Ee,{size:"14x135",children:n("noData")})})})]})},bLt=()=>A.jsxs("svg",{viewBox:"0 0 532 407",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M2.35374 369.34C2.35374 375.97 2.35557 380.801 2.6666 384.608C2.97538 388.387 3.57715 390.949 4.66261 393.08C6.69356 397.066 9.93424 400.306 13.9202 402.337C16.0505 403.423 18.6128 404.025 22.3922 404.333C26.199 404.644 31.0299 404.646 37.6598 404.646H494.34C500.97 404.646 505.801 404.644 509.608 404.333C513.387 404.025 515.949 403.423 518.08 402.337C522.066 400.306 525.306 397.066 527.337 393.08C528.423 390.949 529.025 388.387 529.333 384.608C529.644 380.801 529.646 375.97 529.646 369.34V25.6C529.646 21.0807 529.644 17.8329 529.436 15.2829C529.23 12.7604 528.834 11.1289 528.159 9.80472C526.851 7.237 524.763 5.14938 522.195 3.84109C520.871 3.16638 519.24 2.76999 516.717 2.5639C514.167 2.35556 510.919 2.35373 506.4 2.35373H25.6C21.0807 2.35373 17.8329 2.35556 15.2829 2.5639C12.7604 2.76999 11.1289 3.16638 9.80473 3.84109C7.23702 5.14938 5.1494 7.237 3.84109 9.80472C3.16639 11.1289 2.77 12.7604 2.56391 15.2829C2.35557 17.8329 2.35374 21.0807 2.35374 25.6V369.34Z",fill:"white",fillOpacity:"0.8",stroke:"#595959",strokeWidth:"4.70747"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M164.437 62.6133H38.6914V240.024C38.6929 235.702 46.1604 233.617 54.9089 231.175C66.5293 227.932 80.4098 224.057 82.0566 213.471C74.1001 207.798 71.0638 199.237 67.9573 190.478C67.354 188.777 66.748 187.068 66.1027 185.372C58.296 193.913 54.8147 154.796 61.8147 154.796C48.5074 114.354 84.9424 81.1681 118.608 103.98C138.352 99.1791 149.262 125.742 137.5 154.797C142.352 152.175 143.28 166.154 142.352 174.844C142.352 177.077 140.291 192.705 135.083 186.651C134.45 188.297 133.856 189.955 133.265 191.606C130.141 200.321 127.09 208.835 118.835 214.331C121.207 224.271 135.391 228.021 147.318 231.175C156.553 233.617 164.435 235.702 164.437 240.024V62.6133Z",fill:"#595959"}),A.jsx("rect",{x:"38.6914",y:"297.426",width:"454.618",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"386.906",y:"62.6133",width:"106.4",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"62.6133",width:"106.4",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"99.1367",width:"106.4",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"135.668",width:"178.945",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"172.195",width:"135.418",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"208.719",width:"266",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"245.242",width:"87.0546",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"38.6914",y:"344.387",width:"454.618",height:"20.8718",fill:"#595959"})]}),HLt=()=>A.jsxs("svg",{viewBox:"0 0 115 149",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"115",height:"149",rx:"6",fill:"#595959"}),A.jsx("path",{d:"M0 142.615H115V143.001C115 146.315 112.314 149.001 109 149.001H6C2.68629 149.001 0 146.315 0 143.001V142.615Z",fill:"white"}),A.jsx("path",{d:"M90.3652 74.5554C101.122 51.2817 91.1441 30.0038 73.0872 33.8495C42.2987 15.5764 8.97721 42.159 21.1473 74.5548C14.7455 74.5548 17.9293 105.888 25.0689 99.0471C28.8402 107.732 31.1466 116.817 40.718 122.182C42.026 122.915 45.5685 126.107 57.1044 126.107C68.4139 126.107 71.5299 123.23 72.8123 122.519C82.1958 117.314 84.4571 108.498 88.1543 100.072C92.9177 104.921 94.8027 92.4024 94.8026 90.614C95.6512 83.6529 94.8026 72.455 90.3652 74.5554Z",fill:"white"}),A.jsx("path",{d:"M39.8077 119.837H72.9808C72.9808 136.556 115 134.466 115 142.826H0C0 134.466 39.8077 136.556 39.8077 119.837Z",fill:"white"})]}),$Lt={photo:A.jsx(HLt,{}),"id-card":A.jsx(dLt,{}),passport:A.jsx(bLt,{})},LS=({type:e="passport",className:t})=>A.jsx(BLt,{className:t,children:$Lt[e]}),GLt="_link_1whdi_1",VLt="_text_1whdi_12",qf={link:GLt,text:VLt},fS=({children:e,href:t,target:n,className:s})=>A.jsxs("a",{href:t,target:n,className:Ke(qf.link,s),children:[A.jsx(Ee,{className:qf.text,children:e}),A.jsx(Bt.LinkArrow,{})]}),xLt="_alert_3wbiz_1",wLt="_icon_3wbiz_9",Qf={alert:xLt,icon:wLt},LF=({children:e,style:t,className:n,dataAttributes:s})=>A.jsxs("div",{...s,className:Ke(Qf.alert,n),style:t,children:[A.jsx(Bt.Warning,{fillColor:"#DC4343",className:Qf.icon}),e]}),YLt="RFID chip",kLt="Portrait comparison",KLt={rfid:YLt,portraitComparison:kLt},jLt="RFID čips",WLt="Fotogrāfiju salīdzināšana",ZLt={rfid:jLt,portraitComparison:WLt},XLt="RFID-Chip",zLt="Portraitvergleich",qLt={rfid:XLt,portraitComparison:zLt},QLt="RFID-чип",JLt="Сравнение портретов",eft={rfid:QLt,portraitComparison:JLt};F.addResourceBundle("en","601fd7a47bff5ff2f054ec13adba6017",KLt);F.addResourceBundle("lv","601fd7a47bff5ff2f054ec13adba6017",ZLt);F.addResourceBundle("de","601fd7a47bff5ff2f054ec13adba6017",qLt);F.addResourceBundle("ru","601fd7a47bff5ff2f054ec13adba6017",eft);const tft=()=>ze("601fd7a47bff5ff2f054ec13adba6017"),On=(e,t)=>{switch(e){case x.OK:return A.jsx(Bt.Verified,{size:t});case x.ERROR:return A.jsx(Bt.NotVerified,{size:t});case x.WAS_NOT_DONE:return A.jsx(Bt.Unknown,{size:t});default:return A.jsx(Bt.Unknown,{size:t})}},nft="_container_1fhgo_1",rft="_pointer_1fhgo_8",Jf={container:nft,pointer:rft},pC=({status:e,name:t,onClick:n})=>{const s=On(e);return A.jsxs("div",{className:Ke(Jf.container,{[Jf.pointer]:!!n}),onClick:n,children:[s,A.jsx(Ee,{children:t})]})},sft=e=>{switch(e){case Qe.MRZ:return cr.TEXT_DATA;case Qe.TEXT:return cr.TEXT_DATA;case Qe.EXPIRY:return cr.TEXT_DATA;case Qe.SECURITY:return cr.AUTHENTICITY;case Qe.IMAGE_QA:return cr.IMAGE_QUALITY;case Qe.DOC_TYPE:return cr.IDENTIFICATION;default:return}},ep=new Map([[Qe.DOC_TYPE,1],[Qe.EXPIRY,2],[Qe.TEXT,3],[Qe.MRZ,4],[Qe.SECURITY,5],[Qe.IMAGE_QA,6]]),oft=(e,t)=>(ep.get(e)??0)-(ep.get(t)??0),_ft=({detailedStatus:e,rfid:t,onStatusClick:n,scrollTo:s})=>{const{t:r}=tft();return A.jsxs(A.Fragment,{children:[Object.entries(e.optical).sort(([o],[_])=>oft(o,_)).map(([o,_])=>A.jsx(pC,{status:_,name:A.jsx(de.OpticalStatusField,{children:o}),onClick:_!==x.WAS_NOT_DONE?()=>n(o):void 0},o)),!!t.length&&A.jsx(pC,{status:e.summary.rfid,name:r("rfid"),onClick:s?()=>s("rfid"):void 0}),A.jsx(pC,{status:e.summary.portrait,name:r("portraitComparison"),onClick:e.summary.portrait!==x.WAS_NOT_DONE&&s?()=>s("portrait"):void 0})]})},aft="_selected_synx0_14",tp={selected:aft},np=({detailedStatus:e,rfid:t,scrollToResult:n=!0})=>{const{setTabID:s}=mp(),r=_=>{j_.scroller.scrollTo(_,{duration:400,smooth:"linear",offset:-50})},o=_=>{s(sft(_)),zC.isMobile&&r("text")};return $.useEffect(()=>(j_.Events.scrollEvent.register("end",(_,a)=>{const c=()=>{a.classList.remove(tp.selected),a.removeEventListener("animationend",c)};a.addEventListener("animationend",c),a.classList.add(tp.selected)}),()=>{j_.Events.scrollEvent.remove("end")}),[]),A.jsx(_ft,{detailedStatus:e,rfid:t,onStatusClick:o,scrollTo:n?r:void 0})},ift="Document validity",cft={documentValidity:ift},Eft="Document validity",Aft={documentValidity:Eft},Sft="Document validity",Ift={documentValidity:Sft},Rft="Document validity",Cft={documentValidity:Rft};F.addResourceBundle("en","910ae02c7afb807a519375749273b41d",cft);F.addResourceBundle("lv","910ae02c7afb807a519375749273b41d",Aft);F.addResourceBundle("de","910ae02c7afb807a519375749273b41d",Ift);F.addResourceBundle("ru","910ae02c7afb807a519375749273b41d",Cft);const Oft=()=>ze("910ae02c7afb807a519375749273b41d"),Dft="_head_1lz5l_1",Tft="_name_1lz5l_6",lft="_status_1lz5l_9",hC={head:Dft,name:Tft,status:lft},uft=({status:e})=>{const{t}=Oft();return A.jsxs("div",{className:hC.head,children:[A.jsx("div",{className:hC.status,children:On(e,20)}),A.jsx(Ee,{size:"18x135",className:hC.name,children:t("documentValidity")})]})},Nft=({defaultOpen:e,status:t,children:n,className:s,style:r})=>A.jsx(Vr,{className:s,style:r,type:"rounded",head:A.jsx(uft,{status:t}),defaultOpen:e,openClickArea:"head",children:n}),dft="_container_1mymw_1",PC={container:dft,"vertical-list":"_vertical-list_1mymw_5","horizontal-list":"_horizontal-list_1mymw_17"},Lft=({openOnError:e,detailedStatus:t,rfid:n,type:s,scrollToResult:r,className:o,style:_})=>s==="collapse"?A.jsx(Nft,{defaultOpen:e&&t.overallStatus===x.ERROR,className:o,style:_,status:t.overallStatus,children:A.jsx("div",{className:PC["horizontal-list"],children:A.jsx(np,{detailedStatus:t,rfid:n,scrollToResult:r})})}):A.jsx("div",{className:Ke(PC.container,o),style:_,children:A.jsx("div",{className:PC["vertical-list"],children:A.jsx(np,{detailedStatus:t,rfid:n,scrollToResult:r})})}),fF=({type:e="list",openOnError:t=!1,scrollToResult:n,className:s,style:r})=>{const{response:o}=In();if(!o)return null;const _=eS(o),a=exports.DocBinaryInfoContainer.fromProcessResponse(o);return A.jsx(Lft,{openOnError:t,detailedStatus:_,scrollToResult:n,rfid:a,type:e,className:s,style:r})},fft="Nationality",pft="Portrait",hft="Issuing state",Pft="Date of expiry",Mft="Date of birth",mft="Number",gft="Age",yft={nationality:fft,portrait:pft,issuingState:hft,dateOfExpiry:Pft,dateOfBirth:Mft,number:mft,age:gft},Fft="Tautība",vft="Portrets",Uft="Izdevējvalsts",Bft="Derīguma termiņš",bft="Dzimšanas datums",Hft="Number",$ft="Vecums",Gft={nationality:Fft,portrait:vft,issuingState:Uft,dateOfExpiry:Bft,dateOfBirth:bft,number:Hft,age:$ft},Vft="Nationalität",xft="Porträt",wft="Ausstellendes Land",Yft="Ablaufdatum",kft="Geburtsdatum",Kft="Number",jft="Alter",Wft={nationality:Vft,portrait:xft,issuingState:wft,dateOfExpiry:Yft,dateOfBirth:kft,number:Kft,age:jft},Zft="Национальность",Xft="Фотография",zft="Государство выдачи",qft="Дата окончания действия",Qft="Дата рождения",Jft="Номер",ept="Возраст",tpt={nationality:Zft,portrait:Xft,issuingState:zft,dateOfExpiry:qft,dateOfBirth:Qft,number:Jft,age:ept};F.addResourceBundle("en","cba5b1563e4d8bfbec09cb310eaef733",yft);F.addResourceBundle("lv","cba5b1563e4d8bfbec09cb310eaef733",Gft);F.addResourceBundle("de","cba5b1563e4d8bfbec09cb310eaef733",Wft);F.addResourceBundle("ru","cba5b1563e4d8bfbec09cb310eaef733",tpt);const npt=()=>ze("cba5b1563e4d8bfbec09cb310eaef733"),rpt="_container_l6jk0_1",spt="_image_l6jk0_7",opt="_info_l6jk0_21",_pt="_title_l6jk0_32",apt="_items_l6jk0_35",ipt="_item_l6jk0_35",cpt="_text_l6jk0_47",Bn={container:rpt,image:spt,info:opt,title:_pt,items:apt,item:ipt,text:cpt},Ept=({nameSurname:e,issuingStateName:t,dateOfExpiry:n,dateOfBirth:s,documentNumber:r,portrait:o,documentOwnerAge:_,documentOwnerNationalityCode:a,documentOwnerSex:c,imageViewer:i=!0,showPortrait:E,className:S})=>{const{t:R}=npt(),C=c.value?de.getSex(c.value):"",I=_.value?`${R("age")}: ${_.value}`:"";return A.jsxs("div",{className:Ke(Bn.container,S),children:[E&&A.jsx("div",{className:Bn.image,children:o?A.jsx(va,{src:o,alt:R("portrait"),draggable:!1,viewer:i,magnifier:!0,download:!0,magnifierImgBorderRadius:6}):A.jsx(LS,{type:"photo"})}),A.jsxs("div",{className:Bn.info,children:[A.jsx(cm,{level:1,uppercase:!0,className:Bn.title,children:e.value.replace(/\^/g," ")}),(C||I)&&A.jsx(Ee,{children:`${C}${C&&I?", ":""}${I}`}),A.jsxs("div",{className:Bn.items,children:[s.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("dateOfBirth")}),A.jsx(Ee,{children:s.value})]}),a.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("nationality")}),A.jsx(Ee,{children:a.value.replace(/\^/g," ")})]}),t.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("issuingState")}),A.jsx(Ee,{children:t.value})]}),n.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("dateOfExpiry")}),A.jsx(Ee,{children:n.value})]}),r.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("number")}),A.jsx(Ee,{children:r.value})]})]})]})]})},Go={value:"",status:x.ERROR,lcid:K.LATIN},pF=({showPortrait:e=!0,imageViewer:t,className:n})=>{const{response:s}=In();if(!s)return null;const r=I=>XA(s,[Tt.PORTRAIT],I)?.[0]?.pages?.[0]?.src,o=r([ie.RFID_GRAPHICS])||r([ie.VISUAL_GRAPHICS])||r([ie.BARCODE_GRAPHICS])||r([ie.LIVE_PORTRAIT])||r([ie.EXT_PORTRAIT]),_=qM(s),a=nm(s)?.[0]??Go,c=tm(s)?.[0]??Go,i=rm(s)?.[0]??Go,E=sm(s)?.[0]??Go,S=om(s)?.[0]??Go,R=Ys(s,O.NATIONALITY)?.[0]??Go,C=Ys(s,O.DATE_OF_BIRTH)?.[0]??Go;return A.jsx(Ept,{nameSurname:_,issuingStateName:a,dateOfExpiry:c,dateOfBirth:C,documentNumber:i,portrait:o,documentOwnerAge:E,documentOwnerSex:S,documentOwnerNationalityCode:R,showPortrait:e,imageViewer:t,className:n})},Apt="Processing time",Spt={processingTime:Apt},Ipt="Processing time",Rpt={processingTime:Ipt},Cpt="Processing time",Opt={processingTime:Cpt},Dpt="Время обработки",Tpt={processingTime:Dpt};F.addResourceBundle("en","9d87ab777abc6dd671f43b09d261d6b5",Spt);F.addResourceBundle("lv","9d87ab777abc6dd671f43b09d261d6b5",Rpt);F.addResourceBundle("de","9d87ab777abc6dd671f43b09d261d6b5",Opt);F.addResourceBundle("ru","9d87ab777abc6dd671f43b09d261d6b5",Tpt);const lpt=()=>ze("9d87ab777abc6dd671f43b09d261d6b5"),upt="_text_i1hpy_1",Npt={text:upt},rp=({name:e,value:t})=>A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:Npt.text,size:"12x160",uppercase:!0,children:e}),A.jsx(Ee,{children:t})]}),dpt="_container_jzrjc_1",Lpt={container:dpt},fpt=({processingTime:e,additionalFields:t})=>{const{t:n}=lpt();return A.jsxs("div",{className:Lpt.container,children:[A.jsx(rp,{name:n("processingTime"),value:e+"s"}),t&&t.map(({name:s,value:r})=>A.jsx(rp,{name:s,value:r},s+r))]})},ppt=({additionalFields:e})=>{const{response:t}=In();if(!t)return null;const n=(t.elapsedTime/1e3).toFixed(3);return A.jsx(fpt,{processingTime:n,additionalFields:e})},hpt="_container_dh30e_1",Ppt={container:hpt},hF=({additionalFields:e})=>A.jsx("div",{className:Ppt.container,children:A.jsx(ppt,{additionalFields:e})}),Mpt="_indicator_1oddz_1",mpt="_overall_1oddz_10",gpt="_green_1oddz_18",ypt="_red_1oddz_22",Qc={indicator:Mpt,overall:mpt,green:gpt,red:ypt},Fpt=({detailedStatus:e})=>A.jsx("div",{className:Ke(Qc.indicator,{[Qc.red]:e.overallStatus===x.ERROR,[Qc.green]:e.overallStatus===x.OK}),children:A.jsx(Ee,{size:"12x140",uppercase:!0,className:Qc.overall,children:A.jsx(de.CheckResultVerification,{children:e.overallStatus})})}),PF=()=>{const{response:e}=In();if(!e)return null;const t=eS(e);return A.jsx(Fpt,{detailedStatus:t})},vpt="_container_kb2kx_1",Upt={container:vpt},Bpt=({additionalFields:e,scrollToResult:t,imageViewer:n})=>A.jsxs("div",{className:Upt.container,children:[A.jsx(PF,{}),A.jsx(fF,{scrollToResult:t}),A.jsx(pF,{imageViewer:n}),A.jsx(hF,{additionalFields:e})]}),bpt="_canvas_1duaq_1",Hpt={canvas:bpt},$pt=({image:e,selections:t,onCanvas:n})=>{const s=$.useRef(null),r=$.useRef(""),o=$.useRef(""),_=$.useRef(document.createElement("canvas")),{width:a,height:c}=Em(s),[i,E]=$.useState(null);return $.useEffect(()=>{const S=new Image;S.onload=()=>{E({width:S.width,height:S.height,img:S})},S.src=e},[e]),$.useEffect(()=>{const S=s.current;if(!S||!a||!c||!i)return;const R=S.getContext("2d");if(R)if(t.length){const C=r.current===JSON.stringify(t),I=o.current===i.img.currentSrc;if(S.width=a,S.height=c,(!C||!I)&&(_.current.width=i.width,_.current.height=i.height,_.current.getContext("2d")?.drawImage(i.img,0,0)),t.forEach(({checkResult:T,location:u})=>{u.rect.forEach(({top:d,left:f,right:p,bottom:N})=>{const h=jc(f,[0,i.width],[0,a]),g=jc(d,[0,i.height],[0,c]),M=jc(p,[0,i.width],[0,a]),H=jc(N,[0,i.height],[0,c]),B=(P,m,v,X,W,Oe)=>{P.lineWidth=Oe,P.strokeStyle=T===x.ERROR?"red":"#6DFD30",P.strokeRect(m,v,X,W)};if(B(R,h,g,M-h,H-g,2),!C||!I){const P=_.current.getContext("2d");if(!P)return;B(P,f,d,p-f,N-d,4)}})}),!C||!I){const T=_.current.toDataURL("image/jpeg",.7);r.current=JSON.stringify(t),o.current=i.img.currentSrc,n(T)}}else R.clearRect(0,0,S.width,S.height),r.current="",o.current="",n("")},[i,t,a,c]),A.jsx("canvas",{ref:s,className:Hpt.canvas})},Gpt="_container_16rlg_1",Vpt={container:Gpt},xpt=({children:e,className:t})=>A.jsx("div",{className:Ke(Vpt.container,t),children:e}),wpt="_image_1dzur_2",Ypt={image:wpt},kpt=()=>A.jsx(LS,{className:Ypt.image}),Kpt="_container_5l0yf_1",jpt="_images_5l0yf_12",Wpt="_vertical_5l0yf_18",Zpt="_horizontal_5l0yf_22",Xpt="_fit_5l0yf_26",Jc={container:Kpt,images:jpt,vertical:Wpt,horizontal:Zpt,fit:Xpt},zpt="_container_1yj55_1",qpt="_inactive_1yj55_7",Qpt="_image_1yj55_10",Jpt="_vertical_1yj55_22",eht="_horizontal_1yj55_25",tht="_large_1yj55_28",nht="_active_1yj55_31",Vo={container:zpt,inactive:qpt,image:Qpt,vertical:Jpt,horizontal:eht,large:tht,active:nht},rht=({title:e,src:t,onClick:n,isSelect:s,direction:r,large:o=!1})=>A.jsxs("div",{className:Vo.container,onClick:n,children:[A.jsx(Ee,{size:"10x140",uppercase:!0,className:Ke({[Vo.inactive]:!s}),children:e}),A.jsx("div",{className:Ke(Vo.image,{[Vo.active]:s,[Vo.vertical]:!o&&r==="vertical",[Vo.horizontal]:!o&&r==="horizontal",[Vo.large]:o&&r==="horizontal"}),children:A.jsx("img",{src:t,alt:e,draggable:!1})})]}),sp=({title:e,images:t,direction:n="vertical",large:s,onSelect:r,activeImg:o})=>A.jsxs("div",{className:Ke(Jc.container,{[Jc.fit]:n==="vertical"}),children:[A.jsx(Ee,{size:"15x135",uppercase:!0,children:e}),A.jsx("div",{className:Ke(Jc.images,Jc[n]),children:t.map(({name:_,src:a,id:c})=>A.jsx(rht,{large:s,direction:n,src:a,title:_,isSelect:o===c,onClick:()=>r(c)},c))})]}),sht="Lights",oht="Preview",_ht="Pages",aht={lights:sht,preview:oht,pages:_ht},iht="Lights",cht="Priekšskatījums",Eht="Lappuses",Aht={lights:iht,preview:cht,pages:Eht},Sht="Lights",Iht="Durchsicht",Rht="Seiten",Cht={lights:Sht,preview:Iht,pages:Rht},Oht="Lights",Dht="Просмотр",Tht="Страницы",lht={lights:Oht,preview:Dht,pages:Tht};F.addResourceBundle("en","c629d0f0d0896c2f20a19a5ed9ede37b",aht);F.addResourceBundle("lv","c629d0f0d0896c2f20a19a5ed9ede37b",Aht);F.addResourceBundle("de","c629d0f0d0896c2f20a19a5ed9ede37b",Cht);F.addResourceBundle("ru","c629d0f0d0896c2f20a19a5ed9ede37b",lht);const uht=()=>ze("c629d0f0d0896c2f20a19a5ed9ede37b"),Nht="_viewer_d5kxz_1",dht="_preview_d5kxz_6",Lht="_current_d5kxz_20",Ja={viewer:Nht,preview:dht,"view-container":"_view-container_d5kxz_12",current:Lht},fht=({showLightDock:e,lightImages:t,pageImages:n,currentLight:s,setCurrentLight:r,currentImage:o,magnifierImg:_,currentSelections:a,setMagnifierImg:c,currentPage:i,setCurrentPage:E,imageViewer:S=!0})=>{const{t:R}=uht();return A.jsxs("div",{className:Ja.viewer,children:[e&&A.jsx(sp,{title:R("lights"),images:t,activeImg:s,onSelect:r}),A.jsxs("div",{className:Ja.preview,children:[A.jsx("div",{className:Ja["view-container"],children:A.jsxs("div",{className:Ja.current,children:[A.jsx(va,{className:Ja.image,src:o,alt:R("preview"),magnifierImg:_,previewImg:_,magnifierImgBorderRadius:16,draggable:!1,magnifier:!0,download:!0,viewer:S}),A.jsx($pt,{image:o,selections:a,onCanvas:c})]})}),n.length>1&&A.jsx(sp,{large:!e,title:R("pages"),images:n,activeImg:i,onSelect:E,direction:"horizontal"})]})]})},pht=({images:e,currentLight:t,page:n})=>{const s=$.useMemo(()=>e.some(a=>a.light!==e[0]?.light),[e]),r=$.useMemo(()=>{const a=e.every(({pages:c})=>c.length===1);return e.reduce((c,{pages:i,light:E})=>{const S=i.find(({pageIndex:R})=>R===n||a);return S?.src&&c.push({id:E,name:String(de.getLightsLabel(E)),src:S.src}),c},[])},[e,n]),o=$.useMemo(()=>{const a=e.find(c=>c.light===t);return!a||!a.pages?[]:[...a.pages].sort((c,i)=>c.pageIndex-i.pageIndex).map(c=>({id:c.pageIndex,name:String(c.pageIndex+1),src:c.src||""}))},[e,t]),_=$.useMemo(()=>o.find(({id:a})=>a===n)||o[0],[o,n]);return{showLightDock:s,lightImages:r,pageImages:o,currentImage:_}},MF=({imageViewer:e,className:t,initialPageIndex:n,initialLight:s,onPageChanged:r,onLightChanged:o})=>{const{response:_}=In(),a=$.useMemo(()=>E9(_),[_]),c=n??0,i=s??a[0]?.light??vt.WHITE,E=$.useRef(c),S=$.useRef(i),{selections:R,setSelections:C}=HE(),{page:I=c,setPage:T}=pi(),[u,d]=$.useState(i),[f,p]=$.useState(""),[N,h]=$.useState([]),{pageImages:g,lightImages:M,currentImage:H,showLightDock:B}=pht({images:a,currentLight:u,page:I});return $.useEffect(()=>{const P=m=>{if(g.length<=1)return;const v=g.findIndex(X=>X.id===I);if(m.key==="ArrowLeft"){m.preventDefault();const X=v>0?v-1:g.length-1;T(g[X].id)}else if(m.key==="ArrowRight"){m.preventDefault();const X=v<g.length-1?v+1:0;T(g[X].id)}};return window.addEventListener("keydown",P),()=>{window.removeEventListener("keydown",P)}},[I,g,T]),$.useEffect(()=>{if(!R.length||!a.length)return;const{location:P,page:m}=R[0];d(P.light===void 0?a[0].light:P.light),T(m)},[R,a]),$.useEffect(()=>{if(!a.length)return;const P=R.filter(m=>m.page===I&&(u===a[0].light?m.location.light===u||m.location.light===void 0:m.location.light===u));h(P)},[u,I,R,a]),$.useEffect(()=>{!H||H.id===I||T(H.id)},[H,I]),$.useEffect(()=>()=>{T(c),d(i),C([])},[a]),$.useEffect(()=>{E.current!==I&&(E.current=I,r?.(I))},[I]),$.useEffect(()=>{S.current!==u&&(S.current=u,o?.(u))},[u]),A.jsx(xpt,{className:t,children:H?A.jsx(fht,{showLightDock:B,lightImages:M,currentLight:u,setCurrentLight:d,currentImage:H.src,magnifierImg:f,currentSelections:N,setMagnifierImg:p,pageImages:g,currentPage:I,setCurrentPage:T,imageViewer:e}):A.jsx(kpt,{})})};var cr=(e=>(e.TEXT_DATA="TEXT_DATA",e.AUTHENTICITY="AUTHENTICITY",e.IMAGE_QUALITY="IMAGE_QUALITY",e.IDENTIFICATION="IDENTIFICATION",e))(cr||{});const ra=e=>e?.some(({top:t,bottom:n,left:s,right:r})=>!!(n||t||r||s)),sa=(e,t)=>{const n=e.map(s=>JSON.stringify(s));return t.length===1?n.includes(JSON.stringify(t[0])):t.length>1?t.every(s=>n.includes(JSON.stringify(s))):!1},mF=e=>{const t=new Set,n=r=>r===x.ERROR||r===x.WAS_NOT_DONE,s=(r,o)=>{n(r.checkResult)&&t.add(o),r.checks?.forEach((_,a)=>s(_,`${o}.${a}`))};return e.forEach((r,o)=>{const _=String(o);n(r.checkResult)&&t.add(_),e.length===1?r.groups.forEach((a,c)=>s(a,`${c}`)):r.groups.forEach((a,c)=>{const i=`${_}.${c}`;s(a,i),a.checks?.forEach((E,S)=>s(E,`${i}.${S}`))})}),t},gF=e=>{const t=new Set;return e.length===1||e.forEach((n,s)=>{n.checkResult===x.ERROR&&t.add(String(s))}),t},hht="Text fields",Pht="Security checks",Mht="Image quality",mht="Document type",ght={textFields:hht,securityChecks:Pht,imageQuality:Mht,documentType:mht},yht="Teksta lauki",Fht="Security checks",vht="Image quality",Uht="Dokumenta tips",Bht={textFields:yht,securityChecks:Fht,imageQuality:vht,documentType:Uht},bht="Textfelder",Hht="Sicherheitsprüfungen",$ht="Bildqualität",Ght="Dokumenttyp",Vht={textFields:bht,securityChecks:Hht,imageQuality:$ht,documentType:Ght},xht="Текстовые поля",wht="Проверки подлинности",Yht="Качество изображения",kht="Тип документа",Kht={textFields:xht,securityChecks:wht,imageQuality:Yht,documentType:kht};F.addResourceBundle("en","04e8c85d2208befc9f038ec6fb318388",ght);F.addResourceBundle("lv","04e8c85d2208befc9f038ec6fb318388",Bht);F.addResourceBundle("de","04e8c85d2208befc9f038ec6fb318388",Vht);F.addResourceBundle("ru","04e8c85d2208befc9f038ec6fb318388",Kht);const jht=()=>ze("04e8c85d2208befc9f038ec6fb318388"),yF=e=>{switch(e){case J.IR_B900:case J.IR_VISIBILITY:return vt.IR;case J.UV_LUMINESCENCE:case J.UV_FIBERS:return vt.UV;default:return}},Wht="Diagnose",Zht="Color",Xht="Actual count",zht="Expected count",qht={diagnose:Wht,color:Zht,actualCount:Xht,expectedCount:zht},Qht="Diagnose",Jht="Krāsa",e1t="Actual count",t1t="Expected count",n1t={diagnose:Qht,color:Jht,actualCount:e1t,expectedCount:t1t},r1t="Diagnose",s1t="Farbe",o1t="Tatsächliche Anzahl",_1t="Erwartete Anzahl",a1t={diagnose:r1t,color:s1t,actualCount:o1t,expectedCount:_1t},i1t="Диагностика",c1t="Цвет",E1t="Фактическое количество",A1t="Ожидаемое количество",S1t={diagnose:i1t,color:c1t,actualCount:E1t,expectedCount:A1t};F.addResourceBundle("en","028e5fc83e357897956d1ad2c984d1b4",qht);F.addResourceBundle("lv","028e5fc83e357897956d1ad2c984d1b4",n1t);F.addResourceBundle("de","028e5fc83e357897956d1ad2c984d1b4",a1t);F.addResourceBundle("ru","028e5fc83e357897956d1ad2c984d1b4",S1t);const I1t=()=>ze("028e5fc83e357897956d1ad2c984d1b4"),R1t="_head_e283h_1",C1t="_name_e283h_7",O1t="_value_e283h_11",D1t="_status_e283h_17",T1t="_pointer_e283h_23",ei={head:R1t,name:C1t,value:O1t,status:D1t,pointer:T1t},l1t=({name:e,value:t,status:n,onClick:s})=>A.jsxs("div",{className:Ke(ei.head),children:[A.jsx(Ee,{className:Ke(ei.name,{[ei.pointer]:!!s}),onClick:s,children:e}),A.jsx("div",{className:ei.value,children:t}),A.jsx("div",{className:ei.status,children:On(n)})]}),u1t="_collapse_bw4cq_1",N1t="_selected_bw4cq_5",op={collapse:u1t,selected:N1t},d1t=({name:e,collapse:t=!0,value:n,status:s,onOpen:r,open:o,children:_,shift:a=0,onClick:c,selected:i,style:E})=>A.jsx(Vr,{className:Ke(op.collapse,{[op.selected]:i}),style:{"--shift":a+"px",...E},collapse:t,type:"nested",open:o,onOpen:r,dataAttributes:{"data-extended-scroll":""},head:A.jsx(l1t,{name:e,value:n,status:s,onClick:c}),children:_}),L1t="_container_1xl1t_1",f1t="_item_1xl1t_4",p1t="_name_1xl1t_17",h1t="_color_1xl1t_21",eE={container:L1t,item:f1t,name:p1t,color:h1t},P1t=({colorValues:e,status:t,diagnose:n,isOpen:s,onOpen:r,onClick:o,isSelected:_,shift:a=0})=>{const{t:c}=I1t(),i={"--background":`rgb(${e[0]}, ${e[1]}, ${e[2]})`};return A.jsx(d1t,{value:A.jsx("div",{className:eE.color}),shift:t===x.ERROR?a+20:a,name:c("color"),status:t,selected:_,open:s,onOpen:r,collapse:t===x.ERROR,onClick:o,style:i,children:t!==x.OK&&A.jsx("div",{className:eE.container,children:A.jsxs("div",{className:eE.item,children:[A.jsx(Ee,{uppercase:!0,className:eE.name,children:c("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:n})})]})})})},M1t="Similarity",m1t="Visibility",g1t="Image",y1t="Reference",F1t="Diagnose",v1t={similarity:M1t,visibility:m1t,image:g1t,reference:y1t,diagnose:F1t},U1t="Līdzīgi",B1t="Visibility",b1t="Attēls",H1t="Etalons",$1t="Diagnose",G1t={similarity:U1t,visibility:B1t,image:b1t,reference:H1t,diagnose:$1t},V1t="Übereinstimmung",x1t="Sichtbarkeit",w1t="Bild",Y1t="Referenz",k1t="Diagnose",K1t={similarity:V1t,visibility:x1t,image:w1t,reference:Y1t,diagnose:k1t},j1t="Подобие",W1t="Видимость",Z1t="Изображение",X1t="Эталон",z1t="Диагностика",q1t={similarity:j1t,visibility:W1t,image:Z1t,reference:X1t,diagnose:z1t};F.addResourceBundle("en","c5291d1c5e6d9464c1e104be56e67cda",v1t);F.addResourceBundle("lv","c5291d1c5e6d9464c1e104be56e67cda",G1t);F.addResourceBundle("de","c5291d1c5e6d9464c1e104be56e67cda",K1t);F.addResourceBundle("ru","c5291d1c5e6d9464c1e104be56e67cda",q1t);const Q1t=()=>ze("c5291d1c5e6d9464c1e104be56e67cda"),J1t="_head_1jay9_1",ePt="_name_1jay9_7",tPt="_status_1jay9_11",nPt="_pointer_1jay9_17",tE={head:J1t,name:ePt,status:tPt,pointer:nPt},rPt=({name:e,status:t,onClick:n})=>A.jsxs("div",{className:Ke(tE.head),children:[A.jsx(Ee,{className:Ke(tE.name,{[tE.pointer]:!!n}),onClick:n,children:e}),A.jsx("div",{className:tE.status,children:On(t)})]}),sPt="_collapse_bw4cq_1",oPt="_selected_bw4cq_5",_p={collapse:sPt,selected:oPt},_Pt=({name:e,collapse:t=!0,status:n,onOpen:s,open:r,children:o,shift:_=0,onClick:a,selected:c})=>A.jsx(Vr,{className:Ke(_p.collapse,{[_p.selected]:c}),style:{"--shift":_+"px"},collapse:t,type:"nested",open:r,onOpen:s,dataAttributes:{"data-extended-scroll":""},head:A.jsx(rPt,{name:e,status:n,onClick:a}),children:o}),NO=({src:e,alt:t,imageViewer:n=!0,heightLimit:s=100,className:r})=>{const o=$.useRef(null);return $.useEffect(()=>{const _=o.current;if(!_)return;const a=_.parentElement,c=_.children[0];if(!a||!c)return;const i=new ResizeObserver(E=>{E.forEach(S=>{const{width:R}=S.contentRect,C=R/c.naturalWidth;if(isNaN(C))return;c.naturalHeight*C>s?(c.style.height=s+"px",c.style.width="auto"):(c.style.height=c.naturalHeight*C+"px",c.style.width=R+"px")})});return i.observe(a),()=>i.disconnect()},[e]),A.jsx(va,{src:`data:image;base64,${e}`,alt:t,viewer:n,magnifier:!0,download:!0,className:r,ref:o})},aPt="_container_x3c1c_1",iPt="_item_x3c1c_4",cPt="_name_x3c1c_10",kr={container:aPt,item:iPt,name:cPt},EPt=({diagnose:e,image:t,referenceImage:n,similarity:s,status:r,group:o,type:_,isOpen:a,onOpen:c,imageViewer:i,isSelected:E,onClick:S,shift:R=0})=>{const{t:C}=Q1t(),I=!!(t||n||r!==x.OK),T=o===J.IR_VISIBILITY;return A.jsx(_Pt,{shift:I?R+20:R,name:A.jsx(de.SecurityFeatureTypeLabel,{children:_}),status:r,selected:E,open:a,onOpen:c,collapse:I,onClick:S,children:A.jsxs("div",{className:kr.container,children:[!(_===Te.INVISIBLE_OBJECT||s===0&&!T)&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C(T?"visibility":"similarity")}),A.jsx(Ee,{children:T?Oh(s).map(de.getIRVisibilityStatus).join(", "):s+"%"})]}),n&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C("reference")}),A.jsx("div",{className:kr.image,children:A.jsx(NO,{src:n,imageViewer:i,alt:"Reference"})})]}),t&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C("image")}),A.jsx("div",{className:kr.image,children:A.jsx(NO,{src:t,imageViewer:i,alt:"Image"})})]}),r!==x.OK&&(o!==J.PORTRAIT_COMPARISON||e===re.PORTRAIT_COMPARISON_NO_SERVICE_REPLY)&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})]})})},APt="Image",SPt="Diagnose",IPt={image:APt,diagnose:SPt},RPt="Attēls",CPt="Diagnose",OPt={image:RPt,diagnose:CPt},DPt="Bild",TPt="Diagnose",lPt={image:DPt,diagnose:TPt},uPt="Изображение",NPt="Диагностика",dPt={image:uPt,diagnose:NPt};F.addResourceBundle("en","f5703a9089310f67332ce6624b257773",IPt);F.addResourceBundle("lv","f5703a9089310f67332ce6624b257773",OPt);F.addResourceBundle("de","f5703a9089310f67332ce6624b257773",lPt);F.addResourceBundle("ru","f5703a9089310f67332ce6624b257773",dPt);const LPt=()=>ze("f5703a9089310f67332ce6624b257773"),fPt="_container_x3c1c_1",pPt="_item_x3c1c_4",hPt="_name_x3c1c_10",$_={container:fPt,item:pPt,name:hPt},PPt=({diagnose:e,image:t,status:n,imageViewer:s,shift:r})=>{const{t:o}=LPt(),_={"--shift":r+"px"};return A.jsxs("div",{className:$_.container,style:_,children:[t&&A.jsxs("div",{className:$_.item,children:[A.jsx(Ee,{uppercase:!0,className:$_.name,children:o("image")}),A.jsx("div",{className:$_.image,children:A.jsx(NO,{imageViewer:s,src:t,alt:"Reference"})})]}),n!==x.OK&&A.jsxs("div",{className:$_.item,children:[A.jsx(Ee,{uppercase:!0,className:$_.name,children:o("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})]})},MPt="Diagnose",mPt={diagnose:MPt},gPt="Diagnose",yPt={diagnose:gPt},FPt="Diagnose",vPt={diagnose:FPt},UPt="Диагностика",BPt={diagnose:UPt};F.addResourceBundle("en","c4ca1a37309341129fe097aa31cc557b",mPt);F.addResourceBundle("lv","c4ca1a37309341129fe097aa31cc557b",yPt);F.addResourceBundle("de","c4ca1a37309341129fe097aa31cc557b",vPt);F.addResourceBundle("ru","c4ca1a37309341129fe097aa31cc557b",BPt);const bPt=()=>ze("c4ca1a37309341129fe097aa31cc557b"),HPt="_head_1jay9_1",$Pt="_name_1jay9_7",GPt="_status_1jay9_11",VPt="_pointer_1jay9_17",nE={head:HPt,name:$Pt,status:GPt,pointer:VPt},xPt=({name:e,status:t,onClick:n})=>A.jsxs("div",{className:Ke(nE.head),children:[A.jsx(Ee,{className:Ke(nE.name,{[nE.pointer]:!!n}),onClick:n,children:e}),A.jsx("div",{className:nE.status,children:On(t)})]}),wPt="_collapse_bw4cq_1",YPt="_selected_bw4cq_5",ap={collapse:wPt,selected:YPt},kPt=({name:e,collapse:t=!0,status:n,open:s,onOpen:r,children:o,shift:_=0,onClick:a,selected:c})=>A.jsx(Vr,{className:Ke(ap.collapse,{[ap.selected]:c}),style:{"--shift":_+"px"},collapse:t,type:"nested",open:s,onOpen:r,dataAttributes:{"data-extended-scroll":""},head:A.jsx(xPt,{name:e,status:n,onClick:a}),children:o}),KPt="_container_13yx9_1",jPt="_item_13yx9_4",WPt="_name_13yx9_17",MC={container:KPt,item:jPt,name:WPt},ZPt=({diagnose:e,type:t,status:n,isOpen:s,onOpen:r,isSelected:o,onClick:_,shift:a=0})=>{const{t:c}=bPt(),i=n!==x.OK;return A.jsx(kPt,{shift:i?a+20:a,name:A.jsx(de.SecurityFeatureTypeLabel,{children:t}),status:n,selected:o,open:s,onOpen:r,collapse:i,onClick:_,children:A.jsx("div",{className:MC.container,children:A.jsxs("div",{className:MC.item,children:[A.jsx(Ee,{uppercase:!0,className:MC.name,children:c("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})})})},XPt="Result",zPt="Reference",qPt="Reference type",QPt="Diagnose",JPt={result:XPt,reference:zPt,referenceType:qPt,diagnose:QPt},eMt="Rezultāts",tMt="Etalons",nMt="Etalona tips",rMt="Diagnose",sMt={result:eMt,reference:tMt,referenceType:nMt,diagnose:rMt},oMt="Ergebnis",_Mt="Referenz",aMt="Referenztyp",iMt="Diagnose",cMt={result:oMt,reference:_Mt,referenceType:aMt,diagnose:iMt},EMt="Результат",AMt="Эталон",SMt="Тип эталона",IMt="Диагностика",RMt={result:EMt,reference:AMt,referenceType:SMt,diagnose:IMt};F.addResourceBundle("en","0d730438dd394cc9e99b3089a8530e26",JPt);F.addResourceBundle("lv","0d730438dd394cc9e99b3089a8530e26",sMt);F.addResourceBundle("de","0d730438dd394cc9e99b3089a8530e26",cMt);F.addResourceBundle("ru","0d730438dd394cc9e99b3089a8530e26",RMt);const CMt=()=>ze("0d730438dd394cc9e99b3089a8530e26"),OMt="_head_1jay9_1",DMt="_name_1jay9_7",TMt="_status_1jay9_11",lMt="_pointer_1jay9_17",rE={head:OMt,name:DMt,status:TMt,pointer:lMt},uMt=({name:e,status:t,onClick:n})=>A.jsxs("div",{className:Ke(rE.head),children:[A.jsx(Ee,{className:Ke(rE.name,{[rE.pointer]:!!n}),onClick:n,children:e}),A.jsx("div",{className:rE.status,children:On(t)})]}),NMt="_collapse_bw4cq_1",dMt="_selected_bw4cq_5",ip={collapse:NMt,selected:dMt},LMt=({name:e,status:t,open:n,onOpen:s,children:r,shift:o=0,onClick:_,selected:a})=>A.jsx(Vr,{className:Ke(ip.collapse,{[ip.selected]:a}),style:{"--shift":o+"px"},type:"nested",open:n,onOpen:s,dataAttributes:{"data-extended-scroll":""},head:A.jsx(uMt,{name:e,status:t,onClick:_}),children:r}),fMt="_container_sxj23_1",pMt="_item_sxj23_4",hMt="_name_sxj23_17",PMt="_selected_sxj23_21",MMt="_pointer_sxj23_25",or={container:fMt,item:pMt,name:hMt,selected:PMt,pointer:MMt},mMt=({diagnose:e,reference:t,status:n,type:s,isOpen:r,onOpen:o,isSelected:_,onResultClick:a,onReferenceClick:c,isResultSelected:i,isReferenceSelected:E,onClick:S,shift:R=0})=>{const{t:C}=CMt();return A.jsx(LMt,{shift:R,name:A.jsx(de.VisualFieldType,{children:s}),status:n,selected:_,open:r,onOpen:o,onClick:S,children:A.jsxs("div",{className:or.container,children:[A.jsxs("div",{className:Ke(or.item,{[or.selected]:!!i}),children:[A.jsx(Ee,{uppercase:!0,className:Ke(or.name,{[or.pointer]:!!a}),onClick:a,children:C("result")}),A.jsx(Ee,{children:t.result.trim()?t.result:"—"})]}),A.jsxs("div",{className:Ke(or.item,{[or.selected]:!!E}),children:[A.jsx(Ee,{uppercase:!0,className:Ke(or.name,{[or.pointer]:!!c}),onClick:c,children:C("reference")}),A.jsx(Ee,{children:t.reference.trim()?t.reference:"—"})]}),A.jsxs("div",{className:or.item,children:[A.jsx(Ee,{uppercase:!0,className:or.name,children:C("referenceType")}),A.jsx(Ee,{children:A.jsx(de.AuthenticityTextCheckReference,{children:t.type})})]}),n===x.ERROR&&A.jsxs("div",{className:or.item,children:[A.jsx(Ee,{uppercase:!0,className:or.name,children:C("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})]})})},gMt="Explore more",yMt={exploreMore:gMt},FMt="Explore more",vMt={exploreMore:FMt},UMt="Explore more",BMt={exploreMore:UMt},bMt="Explore more",HMt={exploreMore:bMt};F.addResourceBundle("en","4e7992d19a663aace2a1c84e11059e2a",yMt);F.addResourceBundle("lv","4e7992d19a663aace2a1c84e11059e2a",vMt);F.addResourceBundle("de","4e7992d19a663aace2a1c84e11059e2a",BMt);F.addResourceBundle("ru","4e7992d19a663aace2a1c84e11059e2a",HMt);const $Mt=()=>ze("4e7992d19a663aace2a1c84e11059e2a"),GMt="_content_y30cu_1",VMt={content:GMt},xMt=({group:e})=>{const{t}=$Mt();return A.jsxs("div",{className:VMt.content,children:[A.jsx(Ee,{children:A.jsx(de.GroupDescription,{children:e})}),A.jsx(fS,{href:"https://docs.regulaforensics.com/develop/doc-reader-sdk/overview/authenticity/",target:"_blank",children:t("exploreMore")})]})},wMt=({group:e})=>de.getGroupDescription(e)?A.jsx(p_,{modal:A.jsx(xMt,{group:e}),children:A.jsx(de.AuthenticityLabel,{children:e})}):A.jsx(de.AuthenticityLabel,{children:e}),YMt="_head_1jay9_1",kMt="_name_1jay9_7",KMt="_status_1jay9_11",jMt="_pointer_1jay9_17",sE={head:YMt,name:kMt,status:KMt,pointer:jMt},WMt=({name:e,status:t,onClick:n,dataTestKey:s})=>A.jsxs("div",{className:Ke(sE.head),children:[A.jsx(Ee,{className:Ke(sE.name,{[sE.pointer]:!!n}),onClick:n,dataTest:s,children:e}),A.jsx("div",{className:sE.status,children:t!==void 0?On(t):null})]}),ZMt="_collapse_bw4cq_1",XMt="_selected_bw4cq_5",cp={collapse:ZMt,selected:XMt},zMt=({type:e,name:t,collapse:n=!0,status:s,open:r,children:o,shift:_=0,onClick:a,selected:c,onOpen:i,dataTestKey:E})=>A.jsx(Vr,{className:Ke(cp.collapse,{[cp.selected]:c}),style:{"--shift":_+"px"},collapse:n,type:e,onOpen:i,open:r,dataAttributes:{"data-extended-scroll":""},head:A.jsx(WMt,{name:t,status:s,onClick:a,dataTestKey:E}),children:o}),qMt="_checks_zbgpv_1",QMt={checks:qMt},JMt=({group:e,checks:t,status:n,onSelect:s,selections:r,page:o,isSelected:_,openFields:a,onOpen:c,groupId:i,imageViewer:E,collapse:S,shift:R=0,type:C,onClick:I})=>A.jsx(zMt,{shift:R,type:C,name:A.jsx(wMt,{group:e}),status:n,selected:_,open:a.has(i),onOpen:T=>c(T,i),collapse:S,onClick:I,children:A.jsx("div",{className:Ke({[QMt.checks]:C!=="nested"}),children:t.map((T,u)=>{const{checkResult:d,diagnose:f,location:p}=T,N=`${i}.${u}`,h=p&&{light:p.light||yF(e),rect:p.rect},g=h&&sa(r,[{page:o,path:String(e),checkResult:d,location:h}]),M=h&&ra(h.rect)?()=>s([{page:o,path:String(e),checkResult:d,location:h}]):void 0,H=P=>`${o}/${e}/${P}/${u}`,B=P=>c(P,N);if(exports.RAuthenticityIdentCheck.isBelongs(T))return A.jsx(EPt,{type:T.type,isSelected:g,status:d,diagnose:f,image:T.image,referenceImage:T.referenceImage,similarity:T.similarity,group:e,onClick:M,shift:R,imageViewer:E,isOpen:a.has(N),onOpen:B},H("ident"));if(exports.RAuthenticityPhotoIdentCheck.isBelongs(T))return A.jsx(PPt,{status:d,diagnose:f,image:T.image,shift:R,imageViewer:E},H("photoIdent"));if(exports.RAuthenticityFibersCheck.isBelongs(T))return A.jsx(P1t,{colorValues:T.colorValues,isSelected:g,status:d,diagnose:f,onClick:M,shift:R,isOpen:a.has(N),onOpen:B},H("fibers"));if(exports.RAuthenticitySecurityCheck.isBelongs(T))return A.jsx(ZPt,{type:T.feature,isSelected:g,status:d,diagnose:f,onClick:M,shift:R,isOpen:a.has(N),onOpen:B},H("security"));if(exports.RAuthenticityTextCheck.isBelongs(T)){const P=pe=>`${e}${pe}`,m=(pe,fe)=>{s([{page:o,path:P(fe),checkResult:d,location:pe}])},v=(pe,fe)=>pe&&ra(pe.rect)?()=>m(pe,fe):void 0,X=(pe,fe)=>pe&&sa(r,[{page:o,path:P(fe),checkResult:d,location:pe}]),W=v(p,T.type),Oe=v(T.reference.location,T.reference.type),_e=X(p,T.type),Ne=X(T.reference.location,T.reference.type);return A.jsx(mMt,{type:T.type,isSelected:g,status:d,diagnose:f,reference:T.reference,onResultClick:W,onReferenceClick:Oe,isResultSelected:_e,isReferenceSelected:Ne,onClick:M,shift:R+20,isOpen:a.has(N),onOpen:B},H("text"))}})})}),mC=({group:e,checks:t,status:n,onSelect:s,selections:r,page:o,groupId:_,imageViewer:a,shift:c=0,type:i})=>{const{openFields:E,addOpenField:S,removeOpenField:R}=aa(),C=t.reduce((p,N)=>(N.location&&ra(N.location.rect)&&p.push({page:o,path:String(e),checkResult:N.checkResult,location:{light:N.location.light||yF(e),rect:N.location.rect}}),p),[]),I=sa(r,C),T=(p,N)=>p?S("authenticity",N):R("authenticity",N),u=()=>{s(C),T(!I||!E.authenticity.has(_),_)},d=t.length>0,f=d?c:0;return A.jsx(JMt,{group:e,checks:t,status:n,onSelect:s,selections:r,page:o,groupId:_,shift:f,type:i,openFields:E.authenticity,onOpen:T,collapse:d,isSelected:I,imageViewer:a,onClick:C.length?u:void 0})},emt="Page",tmt={page:emt},nmt="Lappuse",rmt={page:nmt},smt="Seite",omt={page:smt},_mt="Страница",amt={page:_mt};F.addResourceBundle("en","c978bfc734ce43cb57f59e262c5b970c",tmt);F.addResourceBundle("lv","c978bfc734ce43cb57f59e262c5b970c",rmt);F.addResourceBundle("de","c978bfc734ce43cb57f59e262c5b970c",omt);F.addResourceBundle("ru","c978bfc734ce43cb57f59e262c5b970c",amt);const imt=()=>ze("c978bfc734ce43cb57f59e262c5b970c"),cmt="_scroll_wfx4h_1",Emt="_authenticity_wfx4h_7",gC={scroll:cmt,authenticity:Emt},Amt=255,Smt=({authenticity:e,documentIdentification:t,selections:n,onSelect:s,onOpen:r,openFields:o,imageViewer:_,initialScrollPosition:a,onScrollTop:c})=>{const{t:i}=imt();return A.jsx(wr,{extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:gC.scroll,initialScrollPosition:a,onScrollTop:c,children:e.length===1?A.jsx("div",{className:gC.authenticity,children:e[0].groups.map(({group:E,checks:S,checkResult:R},C)=>A.jsx(mC,{checks:S,group:E,status:R,page:e[0].page,onSelect:s,selections:n,type:"nested",imageViewer:_,groupId:String(C)},E))}):e.map(({page:E,groups:S},R)=>{const C=String(R);return E===Amt?S.map(({group:I,checks:T})=>A.jsx(mC,{checks:T,group:I,page:E,onSelect:s,selections:n,imageViewer:_,groupId:C},I)):A.jsx(Vr,{head:A.jsx(Ee,{children:t.find(({pageIndex:I})=>I===E)?.documentName||`${i("page")} ${E+1}`}),open:o.has(C),onOpen:I=>r(I,E,C),children:A.jsx("div",{className:gC.authenticity,children:S.map(({group:I,checks:T,checkResult:u},d)=>A.jsx(mC,{checks:T,group:I,status:u,page:E,onSelect:s,selections:n,shift:16,type:"nested",imageViewer:_,groupId:`${C}.${d}`},I))})},E)})})},Imt=({authenticity:e,documentIdentification:t,onSelect:n,imageViewer:s,initialScrollPosition:r})=>{const{setScroll:o}=kE(),{openFields:_,addOpenField:a,removeOpenField:c,resetOpenField:i}=aa(),{selections:E}=HE(),{setPage:S}=pi(),R=(I,T,u)=>{I?(S(T),a("authenticity",u)):c("authenticity",u)},C=o?I=>o("authenticity",I):void 0;return $.useEffect(()=>()=>{i("authenticity")},[e]),A.jsx(Smt,{authenticity:e,documentIdentification:t,selections:E,onSelect:n,imageViewer:s,initialScrollPosition:r,onScrollTop:C,openFields:_.authenticity,onOpen:R})},Rmt="Page",Cmt="Document ID",Omt="Probability",Dmt="Deprecated",Tmt="Document category",lmt="No",umt="Yes",Nmt={page:Rmt,documentID:Cmt,probability:Omt,deprecated:Dmt,documentCategory:Tmt,no:lmt,yes:umt},dmt="Lappuse",Lmt="Document ID",fmt="Iespējamība",pmt="Deprecated",hmt="Document category",Pmt="Nē",Mmt="Jā",mmt={page:dmt,documentID:Lmt,probability:fmt,deprecated:pmt,documentCategory:hmt,no:Pmt,yes:Mmt},gmt="Seite",ymt="Document ID",Fmt="Wahrscheinlichkeit",vmt="Deprecated",Umt="Document category",Bmt="Nein",bmt="Ja",Hmt={page:gmt,documentID:ymt,probability:Fmt,deprecated:vmt,documentCategory:Umt,no:Bmt,yes:bmt},$mt="Страница",Gmt="Document ID",Vmt="Вероятность",xmt="Выведен из оборота",wmt="Категория документа",Ymt="Нет",kmt="Да",Kmt={page:$mt,documentID:Gmt,probability:Vmt,deprecated:xmt,documentCategory:wmt,no:Ymt,yes:kmt};F.addResourceBundle("en","dc87716ea86ebf584e6de7d3249457b2",Nmt);F.addResourceBundle("lv","dc87716ea86ebf584e6de7d3249457b2",mmt);F.addResourceBundle("de","dc87716ea86ebf584e6de7d3249457b2",Hmt);F.addResourceBundle("ru","dc87716ea86ebf584e6de7d3249457b2",Kmt);const jmt=()=>ze("dc87716ea86ebf584e6de7d3249457b2"),Wmt="_container_f5fut_1",Zmt="_name_f5fut_13",Eo={container:Wmt,name:Zmt},Ep=({pageIndex:e,isDeprecated:t,documentId:n,shift:s,documentCategory:r})=>{const{t:o}=jmt(),_={"--shift":s+"px"};return A.jsxs(A.Fragment,{children:[r!==void 0&&A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("documentCategory")}),A.jsx(Ee,{children:r.toUpperCase()})]}),A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("documentID")}),A.jsx(Ee,{children:n})]}),A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("deprecated")}),A.jsx(Ee,{uppercase:!0,children:o(t?"yes":"no")})]}),e!==void 0&&A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("page")}),A.jsx(Ee,{children:e+1})]})]})},Xmt="_scroll_1wl41_1",zmt="_identification_1wl41_7",yC={scroll:Xmt,identification:zmt},qmt=({documentIdentification:e,openFields:t,onOpen:n,initialScrollPosition:s,onScrollTop:r})=>A.jsx(wr,{extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:yC.scroll,initialScrollPosition:s,onScrollTop:r,children:e.length===1?A.jsx("div",{className:yC.identification,children:A.jsx(Ep,{isDeprecated:e[0].isDeprecated,documentId:e[0].documentId,documentCategory:e[0].documentCategory})}):e.map(({pageIndex:o,documentCategory:_,documentName:a,isDeprecated:c,documentId:i},E)=>A.jsx(Vr,{head:A.jsx(Ee,{children:a}),open:t.has(String(E)),onOpen:S=>n(S,o,String(E)),dataAttributes:{"data-extended-scroll":""},children:A.jsx("div",{className:yC.identification,children:A.jsx(Ep,{pageIndex:o,isDeprecated:c,documentId:i,documentCategory:_,shift:24})})},o))}),Qmt=({documentIdentification:e,initialScrollPosition:t})=>{const{setScroll:n}=kE(),{openFields:s,addOpenField:r,removeOpenField:o,resetOpenField:_}=aa(),{setPage:a}=pi(),c=(E,S,R)=>{E?(a(S),r("identification",R)):o("identification",R)},i=n?E=>n("imageQuality",E):void 0;return $.useEffect(()=>()=>{_("identification")},[e]),A.jsx(qmt,{documentIdentification:e,openFields:s.identification,onScrollTop:i,initialScrollPosition:t,onOpen:c})},Jmt="_container_q8n6s_1",egt="_name_q8n6s_14",Ap={container:Jmt,name:egt},Sp=({name:e,status:t,shift:n=0})=>{const s=On(t),r={"--shift":n+"px"};return A.jsxs("div",{className:Ap.container,children:[A.jsx(Ee,{uppercase:!0,className:Ap.name,style:r,children:A.jsx(de.ImageQualityCheckTypeLabel,{children:e})}),s]})},tgt="_head_hizy7_1",ngt="_name_hizy7_7",rgt="_status_hizy7_11",FC={head:tgt,name:ngt,status:rgt},sgt=({name:e,status:t})=>A.jsxs("div",{className:FC.head,children:[A.jsx(Ee,{className:FC.name,children:e}),A.jsx("div",{className:FC.status,children:On(t)})]}),ogt=({name:e,status:t,open:n,onOpen:s,children:r})=>A.jsx(Vr,{open:n,onOpen:s,dataAttributes:{"data-extended-scroll":""},head:A.jsx(sgt,{name:e,status:t}),children:r}),_gt="Page",agt={page:_gt},igt="Lappuse",cgt={page:igt},Egt="Seite",Agt={page:Egt},Sgt="Страница",Igt={page:Sgt};F.addResourceBundle("en","de69905604fe0024fb127e3820099c8f",agt);F.addResourceBundle("lv","de69905604fe0024fb127e3820099c8f",cgt);F.addResourceBundle("de","de69905604fe0024fb127e3820099c8f",Agt);F.addResourceBundle("ru","de69905604fe0024fb127e3820099c8f",Igt);const Rgt=()=>ze("de69905604fe0024fb127e3820099c8f"),Cgt="_scroll_180s7_1",vC={scroll:Cgt,"image-quality":"_image-quality_180s7_7"},Ogt=({imageQuality:e,documentIdentification:t,onOpen:n,openFields:s,initialScrollPosition:r,onScrollTop:o})=>{const{t:_}=Rgt();return A.jsx(wr,{extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:vC.scroll,initialScrollPosition:r,onScrollTop:o,children:e.length===1?A.jsx("div",{className:vC["image-quality"],children:e[0].checks.map(({checkType:a,checkResult:c})=>A.jsx(Sp,{name:a,status:c},a))}):e.map(({pageIndex:a,checks:c,checkResult:i},E)=>A.jsx(ogt,{name:t.find(S=>S.pageIndex===a)?.documentName||`${_("page")} ${a+1}`,status:i,open:s.has(String(E)),onOpen:S=>n(S,a,String(E)),children:A.jsx("div",{className:vC["image-quality"],children:c.map(({checkType:S,checkResult:R})=>A.jsx(Sp,{name:S,status:R,shift:24},S))})},a))})},Dgt=({imageQuality:e,documentIdentification:t,initialScrollPosition:n})=>{const{setScroll:s}=kE(),{openFields:r,addOpenField:o,removeOpenField:_,resetOpenField:a}=aa(),{setPage:c}=pi(),i=(S,R,C)=>{S?(c(R),o("imageQuality",C)):_("imageQuality",C)},E=s?S=>s("imageQuality",S):void 0;return $.useEffect(()=>()=>{a("imageQuality")},[e]),A.jsx(Ogt,{imageQuality:e,documentIdentification:t,openFields:r.imageQuality,initialScrollPosition:n,onScrollTop:E,onOpen:i})},Tgt="_name_c7mbz_1",lgt="_value_c7mbz_6",Ip={name:Tgt,value:lgt},Rp=({name:e,value:t,status:n})=>{const s=On(n);return A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:Ip.name,size:"12x160",uppercase:!0,children:e}),A.jsx(Ee,{className:Ip.value,children:t}),s]})},Ml=(e,t)=>{const n=e.replace(/\^/g,`
17
- `).trim();return t===x.ERROR&&!n?"—":n},ugt={"preview-container":"_preview-container_t99k8_1"},Ngt=({source:e,comparisonList:t})=>A.jsxs("div",{className:ugt["preview-container"],children:[e.filter(({value:n})=>!!n).map(({source:n,value:s,checkResult:r,rect:o,pageIndex:_,probability:a},c)=>A.jsx(Rp,{name:n,value:Ml(s,r),status:r},n+s+r+a+_+JSON.stringify(o||c))),t.filter(({status:n})=>n!==x.WAS_NOT_DONE).map(({sourceLeft:n,sourceRight:s,status:r})=>A.jsx(Rp,{name:`${n} – ${s}`,value:"",status:r},n+s))]}),dgt="Page",Lgt="Probability",fgt={page:dgt,probability:Lgt},pgt="Page",hgt="Iespējamība",Pgt={page:pgt,probability:hgt},Mgt="Page",mgt="Wahrscheinlichkeit",ggt={page:Mgt,probability:mgt},ygt="Страница",Fgt="Вероятность",vgt={page:ygt,probability:Fgt};F.addResourceBundle("en","0b9710958905a1fef033fa8881ba3e7a",fgt);F.addResourceBundle("lv","0b9710958905a1fef033fa8881ba3e7a",Pgt);F.addResourceBundle("de","0b9710958905a1fef033fa8881ba3e7a",ggt);F.addResourceBundle("ru","0b9710958905a1fef033fa8881ba3e7a",vgt);const Ugt=()=>ze("0b9710958905a1fef033fa8881ba3e7a"),Bgt="_container_1r6ue_1",bgt="_item_1r6ue_4",Hgt="_name_1r6ue_19",ti={container:Bgt,item:bgt,name:Hgt},$gt=({probability:e,pageIndex:t})=>{const{t:n}=Ugt();return A.jsxs("div",{className:ti.container,children:[A.jsxs("div",{className:ti.item,children:[A.jsx(Ee,{uppercase:!0,className:ti.name,children:n("probability")}),A.jsx(Ee,{children:e+"%"})]}),A.jsxs("div",{className:ti.item,children:[A.jsx(Ee,{uppercase:!0,className:ti.name,children:n("page")}),A.jsx(Ee,{children:t+1})]})]})},Ggt="_content_19nax_1",Vgt={content:Ggt},xgt=({source:e})=>A.jsxs("div",{className:Vgt.content,children:[A.jsx(Ee,{size:"18x135",children:A.jsx(de.Source,{children:e})}),A.jsx(Ee,{children:A.jsx(de.SourceDescription,{children:e})})]}),wgt="_content_lkw3k_1",Ygt={content:wgt},kgt=({left:e,right:t})=>A.jsx("div",{className:Ygt.content,children:A.jsx(Ee,{children:`Comparison between ${e} and ${t}.`})}),Kgt="_comparison_pjakd_1",jgt="_name_pjakd_7",Cp={comparison:Kgt,name:jgt},Wgt=({left:e,right:t,status:n})=>{const s=On(n);return A.jsxs("div",{className:Cp.comparison,children:[A.jsx(Ee,{className:Cp.name,children:A.jsx(p_,{modal:A.jsx(kgt,{left:e,right:t}),children:`${e} – ${t}`})}),s]})},Zgt="_head_1a596_1",Xgt="_name_1a596_7",zgt="_value_1a596_10",qgt="_status_1a596_14",Qgt="_pointer_1a596_20",ni={head:Zgt,name:Xgt,value:zgt,status:qgt,pointer:Qgt},Jgt=({name:e,value:t,status:n,onClick:s,onMouseEnter:r,onMouseLeave:o,onMouseMove:_,dataTestKey:a,dataTestValue:c})=>A.jsxs("div",{className:Ke(ni.head),children:[A.jsx(Ee,{className:Ke(ni.name,{[ni.pointer]:!!s||!!_}),onClick:s,onMouseEnter:r,onMouseLeave:o,onMouseMove:_,dataTest:a,children:e}),A.jsx(Ee,{className:ni.value,dataTest:c,children:t}),A.jsx("div",{className:ni.status,children:n!==void 0?On(n):null})]}),eyt="_preview_5c332_1",G_={"preview-container":"_preview-container_5c332_1",preview:eyt,"opacity-enter":"_opacity-enter_5c332_21","opacity-enter-active":"_opacity-enter-active_5c332_25","opacity-exit":"_opacity-exit_5c332_30","opacity-exit-active":"_opacity-exit-active_5c332_34"},tyt=({previewPosition:e,showPreview:t,children:n})=>{const s=$.useRef(null),r={"--preview-x":e.x+"px","--preview-y":e.y+"px"};return A.jsx(f_,{nodeRef:s,in:t,timeout:100,classNames:{enter:G_["opacity-enter"],enterActive:G_["opacity-enter-active"],exit:G_["opacity-exit"],exitActive:G_["opacity-exit-active"]},unmountOnExit:!0,children:A.jsx("div",{className:G_["preview-container"],children:A.jsx("div",{className:G_.preview,style:r,ref:s,children:n})})})},nyt="_collapse_bw4cq_1",ryt="_selected_bw4cq_5",Op={collapse:nyt,selected:ryt},Dp=({type:e,name:t,collapse:n=!0,value:s,status:r,open:o,children:_,shift:a=0,onClick:c,selected:i,onOpen:E,preview:S,dataTestKey:R,dataTestValue:C})=>{const[I,T]=$.useState(!1),[u,d]=$.useState({x:0,y:0}),f=h=>d({x:h.clientX+scrollX,y:h.clientY+scrollY}),p=h=>{f(h),T(!0)},N=()=>T(!1);return A.jsxs(A.Fragment,{children:[A.jsx(Vr,{className:Ke(Op.collapse,{[Op.selected]:i}),style:{"--shift":a+"px"},collapse:n,type:e,onOpen:E,open:o,dataAttributes:{"data-extended-scroll":""},head:A.jsx(Jgt,{name:t,value:s,status:r,onClick:c,onMouseEnter:S?p:void 0,onMouseLeave:S?N:void 0,onMouseMove:S?f:void 0,dataTestKey:R,dataTestValue:C}),children:_}),S&&xs.createPortal(A.jsx(tyt,{showPreview:!o&&I,previewPosition:u,children:S}),document.body)]})},syt=(e,t)=>e.some(({value:n})=>n!=="")||t.length>0,oyt={"text-data":"_text-data_uau8a_1"},_yt=({onSelect:e,selections:t,groupValue:n,status:s,bySource:r,comparisonList:o,groupName:_,isSelected:a,isMultipleRFID:c,openFields:i,onOpen:E,groupId:S,isCollapse:R,groupClickHandler:C,preview:I})=>A.jsx(Dp,{name:_,value:n,status:s,selected:a,open:i.has(S),preview:I,onOpen:T=>E(T,S),collapse:R,onClick:C,dataTestKey:"params-group_key",dataTestValue:"params-group_value",children:A.jsxs("div",{className:oyt["text-data"],children:[r.map(({source:T,value:u,checkResult:d,probability:f,pageIndex:p,rect:N,rfidOrigin:h},g)=>{const M=`${S}.${g}`;return u.trim()||d!==x.WAS_NOT_DONE?A.jsx(Dp,{type:"nested",shift:20,open:i.has(M),onOpen:H=>E(H,M),name:A.jsx(p_,{modal:A.jsx(xgt,{source:T}),children:c&&T===Vt.RFID?`${T} (DG${h?.dg||""})`:T}),value:Ml(u,d),status:d,selected:N&&sa(t,[{page:p,path:_,checkResult:d,location:{rect:[N]}}]),onClick:N&&ra([N])?()=>e([{page:p,path:_,checkResult:d,location:{rect:[N]}}]):void 0,children:A.jsx($gt,{probability:f,pageIndex:p})},T+u+d+f+p+JSON.stringify(N||g)):null}),o.map(({sourceLeft:T,sourceRight:u,status:d})=>A.jsx(Wgt,{left:T,right:u,status:d},T+u))]})}),ayt=9999,iyt=({onSelect:e,selections:t,groupId:n,type:s,value:r,lcid:o,checkResult:_,bySource:a,comparisonList:c})=>{const{openFields:i,addOpenField:E,removeOpenField:S}=aa();ze();const R=syt(a,c),C=Ml(r,_),I=o!==K.LATIN&&o!==ayt,T=`${de.getVisualFieldType(s)}${I?` (${de.getLCID(o)})`:""}`,u=R?A.jsx(Ngt,{source:a,comparisonList:c}):void 0,d=a.reduce((g,M)=>(M.rect&&ra([M.rect])&&g.push({page:M.pageIndex,path:T,checkResult:M.checkResult,location:{rect:[M.rect]}}),g),[]),f=sa(t,d),p=a.filter(g=>g.source===Vt.RFID).length>1,N=(g,M)=>g?E("textData",M):S("textData",M),h=()=>{d.length&&(e(d),N(!f||!i.textData.has(n),n))};return A.jsx(_yt,{onSelect:e,selections:t,status:_,bySource:a,comparisonList:c,groupName:T,isSelected:f,isMultipleRFID:p,groupValue:C,openFields:i.textData,onOpen:N,groupId:n,isCollapse:R,groupClickHandler:h,preview:u})},cyt="_scroll_ev01v_1",Eyt={scroll:cyt},Ayt=({onSelect:e,selections:t,textData:n,onScrollTop:s,initialScrollPosition:r})=>A.jsx(wr,{onScrollTop:s,initialScrollPosition:r,extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:Eyt.scroll,children:n.map(({type:o,value:_,checkResult:a,bySource:c,comparisonList:i,lcid:E},S)=>A.jsx(iyt,{type:o,value:_,checkResult:a,bySource:c,comparisonList:i,lcid:E,onSelect:e,selections:t,groupId:String(S)},o+_+E))}),Syt=({onSelect:e,textData:t,initialScrollPosition:n})=>{const{setScroll:s}=kE(),{resetOpenField:r}=aa(),{selections:o}=HE(),_=s?a=>s("textData",a):void 0;return $.useEffect(()=>()=>{r("textData")},[t]),A.jsx(Ayt,{onSelect:e,selections:o,textData:t,initialScrollPosition:n,onScrollTop:_})},Iyt="_tabs_1qa1i_1",Ryt={tabs:Iyt},Cyt=({tabs:e,onTabChange:t,tab:n,className:s})=>A.jsx(j_.Element,{name:"text",className:Ke(Ryt.tabs,s),children:A.jsx(XT,{tab:n,type:"line",items:e,onTabChange:t})}),FF=({imageViewer:e,className:t,initialTab:n,onTabChange:s,initialScrollPosition:r,onScrollTop:o,openFields:_,onOpenFieldsChange:a})=>{const{t:c}=jht(),{response:i}=In(),{tabID:E=n,setTabID:S}=mp(),{setSelections:R}=HE();$.useEffect(()=>()=>{S(n??cr.TEXT_DATA)},[i]);const{textData:C,imageQuality:I,authenticity:T,documentIdentification:u}=$.useMemo(()=>{if(!i)return{textData:[],imageQuality:[],authenticity:[],documentIdentification:[]};const h=JM(i).filter(B=>B.value.trim()||B.checkResult!==x.WAS_NOT_DONE),g=NM(i).sort((B,P)=>B.pageIndex-P.pageIndex),M=AM(i).filter(({groups:B})=>B.length>0),H=VT(i).sort((B,P)=>B.pageIndex-P.pageIndex);return{textData:h,imageQuality:g,authenticity:M,documentIdentification:H}},[i]),d=$.useMemo(()=>({authenticity:mF(T),imageQuality:gF(I)}),[T,I]),f=h=>{R(g=>{const M=g.map(B=>JSON.stringify(B)),H=[...g];if(h.length===1){const B=JSON.stringify(h[0]);return M.includes(B)?H.length>1?H.filter(m=>JSON.stringify(m)===B):[]:h}else{const B=h.map(m=>JSON.stringify(m));return h.every(m=>M.includes(JSON.stringify(m)))?H.filter(m=>!B.includes(JSON.stringify(m))):h}})},p=h=>{s?.(h),S(h),R([])},N=$.useMemo(()=>{const h=[];return C.length&&h.push({id:cr.TEXT_DATA,label:c("textFields"),children:A.jsx(Syt,{textData:C,onSelect:f,initialScrollPosition:r?.textData})}),T.length&&h.push({id:cr.AUTHENTICITY,label:c("securityChecks"),children:A.jsx(Imt,{authenticity:T,documentIdentification:u,onSelect:f,imageViewer:e,initialScrollPosition:r?.authenticity})}),I.length&&h.push({id:cr.IMAGE_QUALITY,label:c("imageQuality"),children:A.jsx(Dgt,{imageQuality:I,documentIdentification:u,initialScrollPosition:r?.imageQuality})}),u.length&&h.push({id:cr.IDENTIFICATION,label:c("documentType"),children:A.jsx(Qmt,{documentIdentification:u,initialScrollPosition:r?.identification})}),h},[C,T,I,u,r,e,c]);return N.length?A.jsx(KU,{onOpenFieldsChange:a,openFields:_||d,children:A.jsx(WU,{onScrollTop:o,children:A.jsx(Cyt,{tab:E,onTabChange:p,tabs:N,className:t})})}):null},Oyt="_container_zyz6e_1",Dyt={container:Oyt},Tyt=({identification:e,className:t})=>A.jsx("div",{className:Ke(Dyt.container,t),children:A.jsx(Ee,{size:"18x135",children:e.length?e[0].documentName:"​"})}),vF=({className:e})=>{const{response:t}=In(),{page:n}=pi(),s=c9(t,n);return A.jsx(Tyt,{identification:s,className:e})},lyt="_container_19s23_1",uyt="_content_19s23_9",Nyt="_tabs_19s23_13",dyt="_images_19s23_16",oE={container:lyt,content:uyt,tabs:Nyt,images:dyt},Lyt=({imageViewer:e})=>A.jsxs("div",{className:oE.container,children:[A.jsx(vF,{}),A.jsxs("div",{className:oE.content,children:[A.jsx(MF,{className:oE.images,imageViewer:e}),A.jsx(FF,{className:oE.tabs,imageViewer:e})]})]}),fyt="RFID chip",pyt="BAC — Basic Access Control: Controls access to RFID chip data.",hyt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",Pyt="CA — Chip Authentication: Proves that the chip isn't cloned.",Myt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",myt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",gyt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",yyt="Explore more",Fyt={rfid:fyt,BACDescription:pyt,PACEDescription:hyt,CADescription:Pyt,TADescription:Myt,AADescription:myt,PADescription:gyt,exploreMore:yyt},vyt="RFID čips",Uyt="BAC — Basic Access Control: Controls access to RFID chip data.",Byt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",byt="CA — Chip Authentication: Proves that the chip isn't cloned.",Hyt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",$yt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",Gyt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",Vyt="Explore more",xyt={rfid:vyt,BACDescription:Uyt,PACEDescription:Byt,CADescription:byt,TADescription:Hyt,AADescription:$yt,PADescription:Gyt,exploreMore:Vyt},wyt="RFID-Chip",Yyt="BAC — Basic Access Control: Controls access to RFID chip data.",kyt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",Kyt="CA — Chip Authentication: Proves that the chip isn't cloned.",jyt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",Wyt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",Zyt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",Xyt="Explore more",zyt={rfid:wyt,BACDescription:Yyt,PACEDescription:kyt,CADescription:Kyt,TADescription:jyt,AADescription:Wyt,PADescription:Zyt,exploreMore:Xyt},qyt="RFID-чип",Qyt="BAC — Basic Access Control: Controls access to RFID chip data.",Jyt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",eFt="CA — Chip Authentication: Proves that the chip isn't cloned.",tFt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",nFt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",rFt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",sFt="Explore more",oFt={rfid:qyt,BACDescription:Qyt,PACEDescription:Jyt,CADescription:eFt,TADescription:tFt,AADescription:nFt,PADescription:rFt,exploreMore:sFt};F.addResourceBundle("en","93a6a13564bdfe0d361e1fb10b11f75b",Fyt);F.addResourceBundle("lv","93a6a13564bdfe0d361e1fb10b11f75b",xyt);F.addResourceBundle("de","93a6a13564bdfe0d361e1fb10b11f75b",zyt);F.addResourceBundle("ru","93a6a13564bdfe0d361e1fb10b11f75b",oFt);const UF=()=>ze("93a6a13564bdfe0d361e1fb10b11f75b"),_Ft="_container_19g68_1",aFt="_content_19g68_13",BF={container:_Ft,content:aFt},iFt=()=>{const{t:e}=UF();return A.jsxs("div",{className:BF.content,children:[A.jsx(Ee,{children:e("BACDescription")}),A.jsx(Ee,{children:e("PACEDescription")}),A.jsx(Ee,{children:e("CADescription")}),A.jsx(Ee,{children:e("TADescription")}),A.jsx(Ee,{children:e("AADescription")}),A.jsx(Ee,{children:e("PADescription")}),A.jsx(fS,{href:"https://docs.regulaforensics.com/develop/doc-reader-sdk/overview/security-mechanisms-for-electronic-documents/",target:"_blank",children:e("exploreMore")})]})},cFt=({checksSummary:e})=>{const t=On(e.overallStatus,20),{t:n}=UF();return A.jsxs("div",{className:BF.container,children:[t,A.jsx(p_,{modal:A.jsx(iFt,{}),children:A.jsx(Ee,{size:"18x135",children:n("rfid")})})]})},EFt=()=>{const{response:e}=In();if(!e)return null;const t=BT(e);return A.jsx(cFt,{checksSummary:t})},AFt="_protocols_1v0xj_1",SFt={protocols:AFt},IFt={"protocols-item":"_protocols-item_zef60_1"},V_=({status:e,name:t})=>{const n=On(e);return A.jsxs("div",{className:IFt["protocols-item"],children:[n,A.jsx(Ee,{children:t})]})},RFt=({checksSummary:e})=>A.jsxs("div",{className:SFt.protocols,children:[A.jsx(V_,{status:e.BAC,name:"BAC"}),A.jsx(V_,{status:e.PACE,name:"PACE"}),A.jsx(V_,{status:e.CA,name:"CA"}),A.jsx(V_,{status:e.TA,name:"TA"}),A.jsx(V_,{status:e.AA,name:"AA"}),A.jsx(V_,{status:e.PA,name:"PA"})]}),CFt=()=>{const{response:e}=In();if(!e)return null;const t=BT(e);return A.jsx(RFt,{checksSummary:t})},OFt="Status",DFt="Data group",TFt={status:OFt,dataGroup:DFt},lFt="Status",uFt="Data group",NFt={status:lFt,dataGroup:uFt},dFt="Status",LFt="Datengruppe",fFt={status:dFt,dataGroup:LFt},pFt="Статус",hFt="Группа данных",PFt={status:pFt,dataGroup:hFt};F.addResourceBundle("en","d4114710292aed4785f9eac390bfb16c",TFt);F.addResourceBundle("lv","d4114710292aed4785f9eac390bfb16c",NFt);F.addResourceBundle("de","d4114710292aed4785f9eac390bfb16c",fFt);F.addResourceBundle("ru","d4114710292aed4785f9eac390bfb16c",PFt);const MFt=()=>ze("d4114710292aed4785f9eac390bfb16c"),mFt="Explore more",gFt={exploreMore:mFt},yFt="Explore more",FFt={exploreMore:yFt},vFt="Explore more",UFt={exploreMore:vFt},BFt="Explore more",bFt={exploreMore:BFt};F.addResourceBundle("en","2585760a28dc7779839710b4236d291e",gFt);F.addResourceBundle("lv","2585760a28dc7779839710b4236d291e",FFt);F.addResourceBundle("de","2585760a28dc7779839710b4236d291e",UFt);F.addResourceBundle("ru","2585760a28dc7779839710b4236d291e",bFt);const HFt=()=>ze("2585760a28dc7779839710b4236d291e"),$Ft="_content_f2x40_1",GFt="_title_f2x40_10",dO={content:$Ft,title:GFt},VFt=({type:e})=>{const{t}=HFt();return A.jsxs("div",{className:dO.content,children:[A.jsx(Ee,{children:A.jsx(de.RfidApplicationDescription,{children:e})}),A.jsx(fS,{href:e===Wt.eDTC_PC?"https://www.icao.int/Security/FAL/TRIP/PublishingImages/Pages/Publications/Guiding%20core%20principles%20for%20the%20development%20of%20a%20Digital%20Travel%20Credential%20%20%28DTC%29.PDF":"https://downloads.regulaforensics.com/work/SDK/doc/Programmers%20Guide%20RFID%20(en).pdf",target:"_blank",children:t("exploreMore")})]})},xFt=({type:e})=>de.getRfidApplicationDescription(e)?A.jsx(p_,{className:dO.title,modal:A.jsx(VFt,{type:e}),children:A.jsx(Ee,{size:"16x100",children:A.jsx(de.RfidApplicationType,{children:e})})}):A.jsx(Ee,{className:dO.title,size:"16x100",children:A.jsx(de.RfidApplicationType,{children:e})}),wFt="_table_boedb_1",Tp={table:wFt,"data-group-item":"_data-group-item_boedb_13"},YFt=({type:e,groups:t})=>{const{t:n}=MFt();return A.jsxs("div",{className:Tp["data-group-item"],children:[A.jsx(xFt,{type:e}),A.jsx(Am,{className:Tp.table,columns:[{title:n("dataGroup"),dataIndex:"dataGroup"},{title:n("status"),dataIndex:"status"}],dataSource:t},e)]})},kFt=({dataGroupsStatusList:e})=>e.map(({type:n,groups:s})=>({type:n,groups:s.map(({group:r,status:o})=>({dataGroup:A.jsx(Ee,{children:A.jsx(de.RfidDataFileType,{children:r})}),status:On(o)}))})).map(({type:n,groups:s})=>A.jsx(YFt,{type:n,groups:s},n)),KFt=[j.APP_DIRECTORY,j.POST_CA_RESPONSE,j.POST_CA_PUBLIC_KEY,j.POST_CA_INFO,j.POST_CA_D_PARAMS,j.POST_CA_CHECK_PK,j.POST_CA_CHECK_SK],jFt=()=>{const{response:e}=In();if(!e)return null;const t=yM(e).map(n=>({...n,groups:n.groups.filter(({group:s})=>!KFt.includes(s))})).sort((n,s)=>n.type-s.type);return t.length?A.jsx(kFt,{dataGroupsStatusList:t}):null},WFt="Data groups",ZFt="Green — successfully read and validated.",XFt="Red — validation failed.",zFt="Blue — not read.",qFt="Gray — not present.",QFt={dataGroups:WFt,greenDataGroupDescription:ZFt,redDataGroupDescription:XFt,blueDataGroupDescription:zFt,greyDataGroupDescription:qFt},JFt="Datu grupas",evt="Green — successfully read and validated.",tvt="Red — validation failed.",nvt="Blue — not read.",rvt="Gray — not present.",svt={dataGroups:JFt,greenDataGroupDescription:evt,redDataGroupDescription:tvt,blueDataGroupDescription:nvt,greyDataGroupDescription:rvt},ovt="Datengruppen",_vt="Green — successfully read and validated.",avt="Red — validation failed.",ivt="Blue — not read.",cvt="Gray — not present.",Evt={dataGroups:ovt,greenDataGroupDescription:_vt,redDataGroupDescription:avt,blueDataGroupDescription:ivt,greyDataGroupDescription:cvt},Avt="Группы данных",Svt="Green — successfully read and validated.",Ivt="Red — validation failed.",Rvt="Blue — not read.",Cvt="Gray — not present.",Ovt={dataGroups:Avt,greenDataGroupDescription:Svt,redDataGroupDescription:Ivt,blueDataGroupDescription:Rvt,greyDataGroupDescription:Cvt};F.addResourceBundle("en","c4f5554bedab345f725528fbffc96cb5",QFt);F.addResourceBundle("lv","c4f5554bedab345f725528fbffc96cb5",svt);F.addResourceBundle("de","c4f5554bedab345f725528fbffc96cb5",Evt);F.addResourceBundle("ru","c4f5554bedab345f725528fbffc96cb5",Ovt);const bF=()=>ze("c4f5554bedab345f725528fbffc96cb5"),Dvt="_title_nw0t2_1",Tvt="_content_nw0t2_5",HF={title:Dvt,content:Tvt},lvt=()=>{const{t:e}=bF();return A.jsx("div",{className:HF.content,children:A.jsxs(Ee,{children:[e("greenDataGroupDescription"),A.jsx("br",{}),e("redDataGroupDescription"),A.jsx("br",{}),e("blueDataGroupDescription"),A.jsx("br",{}),e("greyDataGroupDescription")]})})},uvt=()=>{const{t:e}=bF();return A.jsx(p_,{className:HF.title,modal:A.jsx(lvt,{}),children:A.jsx(Ee,{children:e("dataGroups")})})},Nvt="_grey_za6vj_1",dvt="_green_za6vj_5",Lvt="_red_za6vj_9",fvt="_blue_za6vj_13",_E={grey:Nvt,green:dvt,red:Lvt,blue:fvt},pvt=({status:e,children:t})=>A.jsx(Ee,{className:Ke(_E.grey,{[_E.green]:e===ir.NO_ERROR,[_E.red]:e===ir.FAILED,[_E.blue]:e===ir.NOT_PERFORMED}),size:"14x115",children:t}),hvt="_groups_3epf7_1",Pvt="_numbers_3epf7_5",lp={groups:hvt,numbers:Pvt},Mvt=({dataGroups:e})=>A.jsxs("div",{className:lp.groups,children:[A.jsx(uvt,{}),A.jsx("div",{className:lp.numbers,children:e.map(({group:t,status:n})=>A.jsx(pvt,{status:n,children:t},t))})]}),mvt=()=>{const{response:e}=In();if(!e)return null;const t=PM(e);return t.length?A.jsx(Mvt,{dataGroups:t}):null},gvt="Certificate name",yvt="Public key algorithm",Fvt="Signature algorithm",vvt="Certificate issuer",Uvt="Certificate subject",Bvt="Valid from",bvt="Valid until",Hvt={certificateType:gvt,publicKeyAlgorithm:yvt,signatureAlgorithm:Fvt,issuer:vvt,subject:Uvt,validFrom:Bvt,validTo:bvt},$vt="Certificate name",Gvt="Public key algorithm",Vvt="Paraksta algoritms",xvt="Certificate issuer",wvt="Certificate subject",Yvt="Derīgs no",kvt="Derīgs līdz",Kvt={certificateType:$vt,publicKeyAlgorithm:Gvt,signatureAlgorithm:Vvt,issuer:xvt,subject:wvt,validFrom:Yvt,validTo:kvt},jvt="Certificate name",Wvt="Public-Key-Algorithmus",Zvt="Signatur-Algorithmus",Xvt="Zertifikataussteller",zvt="Zertifikatgegenstand",qvt="Gültig ab",Qvt="Gültig bis",Jvt={certificateType:jvt,publicKeyAlgorithm:Wvt,signatureAlgorithm:Zvt,issuer:Xvt,subject:zvt,validFrom:qvt,validTo:Qvt},eUt="Certificate name",tUt="Алгоритм открытого ключа",nUt="Алгоритм подписи",rUt="Издатель сертификата",sUt="Издатель документа",oUt="Действителен с",_Ut="Действителен по",aUt={certificateType:eUt,publicKeyAlgorithm:tUt,signatureAlgorithm:nUt,issuer:rUt,subject:sUt,validFrom:oUt,validTo:_Ut};F.addResourceBundle("en","2ef7d36902ecc24a3297c2e90393b16c",Hvt);F.addResourceBundle("lv","2ef7d36902ecc24a3297c2e90393b16c",Kvt);F.addResourceBundle("de","2ef7d36902ecc24a3297c2e90393b16c",Jvt);F.addResourceBundle("ru","2ef7d36902ecc24a3297c2e90393b16c",aUt);const iUt=()=>ze("2ef7d36902ecc24a3297c2e90393b16c"),cUt="_list_15ifc_1",EUt="_name_15ifc_12",Ao={list:cUt,name:EUt},AUt=({certificate:e})=>{const{t}=iUt();return A.jsxs("div",{className:Ao.list,children:[A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("certificateType")}),A.jsx(Ee,{children:A.jsx(de.RfidCertificateType,{children:e.certificateType})}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("publicKeyAlgorithm")}),A.jsx(Ee,{children:e.publicKeyAlgorithm}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("signatureAlgorithm")}),A.jsx(Ee,{children:e.signatureAlgorithm}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("issuer")}),A.jsx(Ee,{children:e.issuer}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("subject")}),A.jsx(Ee,{children:e.subject}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("validFrom")}),A.jsx(Ee,{children:e.validFrom}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("validTo")}),A.jsx(Ee,{children:e.validTo})]})},SUt="Certificates",IUt={certificates:SUt},RUt="Sertifikāti",CUt={certificates:RUt},OUt="Zertifikate",DUt={certificates:OUt},TUt="Сертификаты",lUt={certificates:TUt};F.addResourceBundle("en","bd23e0c23d00f0c4c95808a1d4c18f6d",IUt);F.addResourceBundle("lv","bd23e0c23d00f0c4c95808a1d4c18f6d",CUt);F.addResourceBundle("de","bd23e0c23d00f0c4c95808a1d4c18f6d",DUt);F.addResourceBundle("ru","bd23e0c23d00f0c4c95808a1d4c18f6d",lUt);const uUt=()=>ze("bd23e0c23d00f0c4c95808a1d4c18f6d"),NUt="_certificates_g4aay_1",dUt="_container_g4aay_6",up={certificates:NUt,container:dUt},LUt=({certificates:e})=>{const{t}=uUt();return A.jsxs("div",{className:up.certificates,children:[A.jsx(Ee,{children:t("certificates")}),A.jsx("div",{className:up.container,children:e.map((n,s)=>A.jsx(AUt,{certificate:n},s))})]})},fUt=()=>{const{response:e}=In();if(!e)return null;const t=fM(e);return t.length?A.jsx(LUt,{certificates:t}):null},pUt="_container_1g8sy_1",hUt="_data_1g8sy_15",PUt="_protocols_1g8sy_26",MUt="_groups_1g8sy_32",aE={container:pUt,data:hUt,protocols:PUt,groups:MUt},mUt=()=>A.jsxs("div",{className:aE.container,children:[A.jsx(EFt,{}),A.jsxs(j_.Element,{name:"rfid",className:aE.data,children:[A.jsxs("div",{className:aE.protocols,children:[A.jsx(CFt,{}),A.jsx(jFt,{})]}),A.jsxs("div",{className:aE.groups,children:[A.jsx(mvt,{}),A.jsx(fUt,{})]})]})]}),gUt=()=>{const{response:e}=In();return!e||!exports.DocBinaryInfoContainer.fromProcessResponse(e).length?null:A.jsx(mUt,{})},yUt="Graphic fields",FUt={graphics:yUt},vUt="Grafiskie lauki",UUt={graphics:vUt},BUt="Grafikfelder",bUt={graphics:BUt},HUt="Графические поля",$Ut={graphics:HUt};F.addResourceBundle("en","3bc9054a63aa53765bd9ce110e67521e",FUt);F.addResourceBundle("lv","3bc9054a63aa53765bd9ce110e67521e",UUt);F.addResourceBundle("de","3bc9054a63aa53765bd9ce110e67521e",bUt);F.addResourceBundle("ru","3bc9054a63aa53765bd9ce110e67521e",$Ut);const GUt=()=>ze("3bc9054a63aa53765bd9ce110e67521e"),VUt="_container_fdn1i_1",xUt={container:VUt},wUt=()=>{const{t:e}=GUt();return A.jsx("div",{className:xUt.container,children:A.jsx(Ee,{size:"18x135",children:e("graphics")})})},YUt="_text_c8ml4_1",kUt="_image_c8ml4_5",Np={text:YUt,image:kUt},KUt=({name:e,url:t,imageViewer:n=!0})=>A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:Np.text,size:"12x160",uppercase:!0,children:e}),A.jsx(va,{src:t,alt:String(e),className:Np.image,draggable:!1,magnifierImgBorderRadius:4,magnifier:!0,download:!0,viewer:n})]});var X_=(e=>(e.NONE="NONE",e.SOURCE="SOURCE",e.LIGHT="LIGHT",e.SOURCE_LIGHT="SOURCE_LIGHT",e))(X_||{});const jUt=e=>{const t=e[0];return e.every(s=>s.source===t.source)?X_.NONE:X_.SOURCE},WUt=(e,t,n,s)=>{switch(s){case X_.SOURCE:return`${de.getGraphicFieldType(e)} (${de.getSource(t)})`;case X_.LIGHT:return`${de.getGraphicFieldType(e)} (${de.getLightsLabel(n)})`;case X_.SOURCE_LIGHT:return`${de.getGraphicFieldType(e)} (${de.getSource(t)}, ${de.getLightsLabel(n)})`;default:return de.getGraphicFieldType(e)}},ZUt="_container_b06p4_1",XUt={container:ZUt},zUt=({images:e,imageViewer:t})=>(ze(),A.jsx(wr,{children:A.jsx("div",{className:XUt.container,children:Object.entries(e).reduce((n,[s,r])=>{const o=jUt(r);return r.forEach(({src:_,source:a,light:c},i)=>{const E=WUt(s,a,c,o);_&&n.push(A.jsx(KUt,{name:E,url:_,imageViewer:t},s+i))}),n},[])})})),qUt="_container_1hyjc_1",QUt={container:qUt},JUt=({images:e,imageViewer:t})=>A.jsxs("div",{className:QUt.container,children:[A.jsx(wUt,{}),A.jsx(zUt,{images:e,imageViewer:t})]}),e2t=({imageViewer:e})=>{const{response:t}=In();if(!t)return null;const n=XA(t).filter(r=>r.fieldType!==Tt.DOCUMENT_FRONT);if(!n.length)return null;const s=n.reduce((r,{pages:o,light:_,fieldType:a})=>{const c=o.map(({src:i,source:E})=>({light:_,source:E,src:i}));return r[a]?r[a].push(...c):r[a]=c,r},{});return A.jsx(JUt,{images:s,imageViewer:e})},t2t=({response:e,request:t,children:n,language:s})=>($.useEffect(()=>{F.changeLanguage(s)},[s]),A.jsx(Hv,{children:A.jsx(Bv,{children:A.jsx(bv,{children:A.jsx(pp.Provider,{value:{response:exports.ProcessResponse.fromPlain(e),request:t},children:n})})})})),n2t="_response_afppc_1",r2t="_scroll_afppc_25",iE={"response-tabs":"_response-tabs_afppc_1","response-raw":"_response-raw_afppc_10",response:n2t,scroll:r2t},s2t=({items:e,response:t})=>A.jsx("div",{className:e.length?iE["response-tabs"]:iE["response-raw"],children:e.length?A.jsx(XT,{type:"line",items:e}):A.jsx(wr,{maxHeight:630,className:iE.scroll,children:A.jsx("div",{className:iE.response,children:A.jsx(aS,{data:t})})})}),o2t="Status",_2t="Graphic fields",a2t="Text fields",i2t="Document type",c2t="Image quality",E2t="Security checks",A2t="RFID chip",S2t="Portrait comparison",I2t="Barcode data",R2t={status:o2t,graphicFields:_2t,textFields:a2t,documentType:i2t,imageQuality:c2t,securityChecks:E2t,rfidChip:A2t,portraitComparison:S2t,barcodeData:I2t},C2t="Status",O2t="Grafiskie lauki",D2t="Teksta lauki",T2t="Dokumenta tips",l2t="Attēla kvalitāte",u2t="Security checks",N2t="RFID chip",d2t="Fotogrāfiju salīdzināšana",L2t="Barcode data",f2t={status:C2t,graphicFields:O2t,textFields:D2t,documentType:T2t,imageQuality:l2t,securityChecks:u2t,rfidChip:N2t,portraitComparison:d2t,barcodeData:L2t},p2t="Status",h2t="Grafikfelder",P2t="Textfelder",M2t="Dokumenttyp",m2t="Bildqualität",g2t="Sicherheitsprüfungen",y2t="RFID chip",F2t="Portraitvergleich",v2t="Barcode data",U2t={status:p2t,graphicFields:h2t,textFields:P2t,documentType:M2t,imageQuality:m2t,securityChecks:g2t,rfidChip:y2t,portraitComparison:F2t,barcodeData:v2t},B2t="Статус",b2t="Графические поля",H2t="Текстовые поля",$2t="Тип документа",G2t="Качество изображения",V2t="Проверки подлинности",x2t="Микросхема RFID",w2t="Сравнение портретов",Y2t="Barcode data",k2t={status:B2t,graphicFields:b2t,textFields:H2t,documentType:$2t,imageQuality:G2t,securityChecks:V2t,rfidChip:x2t,portraitComparison:w2t,barcodeData:Y2t};F.addResourceBundle("en","e8c2f11c244c22722d261bdffcf4b70e",R2t);F.addResourceBundle("lv","e8c2f11c244c22722d261bdffcf4b70e",f2t);F.addResourceBundle("de","e8c2f11c244c22722d261bdffcf4b70e",U2t);F.addResourceBundle("ru","e8c2f11c244c22722d261bdffcf4b70e",k2t);const K2t=()=>ze("e8c2f11c244c22722d261bdffcf4b70e"),j2t="_scroll_1gv8h_1",W2t="_tab_1gv8h_4",dp={scroll:j2t,tab:W2t},Bs=({json:e})=>A.jsx(wr,{maxHeight:630,className:dp.scroll,children:A.jsx("div",{className:dp.tab,children:A.jsx(aS,{data:e})})}),Z2t=()=>{const{t:e}=K2t(),{response:t}=In();if(!t)return null;const n=exports.StatusContainer.fromProcessResponse(t),s=exports.ImagesResultContainer.fromProcessResponse(t),r=exports.TextResultContainer.fromProcessResponse(t),o=exports.OneCandidateContainer.fromProcessResponse(t),_=exports.ImageQualityCheckListContainer.fromProcessResponse(t),a=exports.AuthenticityCheckListContainer.fromProcessResponse(t),c=a.filter(C=>C.result_type===ie.AUTHENTICITY),i=a.filter(C=>C.result_type===ie.PORTRAIT_COMPARISON),E=exports.DocBinaryInfoContainer.fromProcessResponse(t),S=exports.DocBarCodeInfoContainer.fromProcessResponse(t),R=[];return n.length&&R.push({id:"status",label:e("status"),children:A.jsx(Bs,{json:n})}),s.length&&R.push({id:"graphicFields",label:e("graphicFields"),children:A.jsx(Bs,{json:s})}),r.length&&R.push({id:"textFields",label:e("textFields"),children:A.jsx(Bs,{json:r})}),o.length&&R.push({id:"documentType",label:e("documentType"),children:A.jsx(Bs,{json:o})}),_.length&&R.push({id:"imageQuality",label:e("imageQuality"),children:A.jsx(Bs,{json:_})}),c.length&&R.push({id:"authenticity",label:e("securityChecks"),children:A.jsx(Bs,{json:c})}),E.length&&R.push({id:"rfidChip",label:e("rfidChip"),children:A.jsx(Bs,{json:E})}),i.length&&R.push({id:"portraitComparison",label:e("portraitComparison"),children:A.jsx(Bs,{json:i})}),S.length&&R.push({id:"barcodeData",label:e("barcodeData"),children:A.jsx(Bs,{json:S})}),A.jsx(s2t,{items:R,response:t})},X2t="There is no request available.",z2t={noRequestAvailable:X2t},q2t="There is no request available.",Q2t={noRequestAvailable:q2t},J2t="There is no request available.",eBt={noRequestAvailable:J2t},tBt="There is no request available.",nBt={noRequestAvailable:tBt};F.addResourceBundle("en","070950235d2ef3e48f8ef7154afa9ccf",z2t);F.addResourceBundle("lv","070950235d2ef3e48f8ef7154afa9ccf",Q2t);F.addResourceBundle("de","070950235d2ef3e48f8ef7154afa9ccf",eBt);F.addResourceBundle("ru","070950235d2ef3e48f8ef7154afa9ccf",nBt);const rBt=()=>ze("070950235d2ef3e48f8ef7154afa9ccf"),sBt="_title_gqbxa_10",oBt="_scroll_gqbxa_14",_Bt="_json_gqbxa_18",cE={"request-viewer":"_request-viewer_gqbxa_1",title:sBt,scroll:oBt,json:_Bt},aBt=({request:e,title:t})=>{const n={"--top-padding":t?"50px":"75px"};return A.jsxs("div",{className:cE["request-viewer"],style:n,children:[t&&A.jsx("div",{className:cE.title,children:A.jsx(Ee,{size:"16x100",children:t})}),A.jsx(wr,{maxHeight:630,className:cE.scroll,children:A.jsx("div",{className:cE.json,children:A.jsx(aS,{data:e})})})]})},iBt=({title:e})=>{const{request:t}=In(),{t:n}=rBt();return t?A.jsx(aBt,{title:e,request:t}):A.jsx(Ee,{children:n("noRequestAvailable")})},cBt="There are no logs in the response.",EBt={noLogsInResponse:cBt},ABt="There are no logs in the response.",SBt={noLogsInResponse:ABt},IBt="There are no logs in the response.",RBt={noLogsInResponse:IBt},CBt="There are no logs in the response.",OBt={noLogsInResponse:CBt};F.addResourceBundle("en","2c9c473a82a06f26e27961b9d581af9d",EBt);F.addResourceBundle("lv","2c9c473a82a06f26e27961b9d581af9d",SBt);F.addResourceBundle("de","2c9c473a82a06f26e27961b9d581af9d",RBt);F.addResourceBundle("ru","2c9c473a82a06f26e27961b9d581af9d",OBt);const DBt=()=>ze("2c9c473a82a06f26e27961b9d581af9d"),TBt="_logs_1plk1_1",lBt="_scroll_1plk1_9",uBt="_text_1plk1_14",UC={logs:TBt,scroll:lBt,text:uBt},NBt=({logs:e})=>A.jsx("div",{className:UC.logs,children:A.jsx(wr,{maxHeight:630,className:UC.scroll,children:A.jsx("div",{className:UC.text,children:e})})}),dBt=()=>{const{response:e}=In(),{t}=DBt();if(!e)return null;const n=e.log?exports.ProcessResponse.decodeLog(e.log):t("noLogsInResponse");return A.jsx(NBt,{logs:n})},LBt="_loader_1iscg_1",fBt="_overall_1iscg_17",pBt="_avatar_1iscg_43",hBt="_text_1iscg_53",PBt="_name_1iscg_63",MBt="_gender_1iscg_63",mBt="_info_1iscg_38",gBt="_menu_1iscg_101",yBt="_time_1iscg_111",Lr={loader:LBt,overall:fBt,"verifications-container":"_verifications-container_1iscg_22","info-container":"_info-container_1iscg_38",avatar:pBt,text:hBt,name:PBt,gender:MBt,info:mBt,"about-container":"_about-container_1iscg_94",menu:gBt,time:yBt},FBt=()=>A.jsxs("div",{className:Lr.loader,children:[A.jsx(Ut.Block,{className:Lr.overall}),A.jsxs("div",{className:Lr["verifications-container"],children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]}),A.jsxs("div",{className:Lr["info-container"],children:[A.jsx(Ut.Block,{className:Lr.avatar}),A.jsxs("div",{className:Lr.text,children:[A.jsxs("div",{className:Lr.name,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]}),A.jsxs("div",{className:Lr.gender,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]}),A.jsxs("div",{className:Lr.info,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]})]})]}),A.jsxs("div",{className:Lr["about-container"],children:[A.jsx(Ut.Block,{className:Lr.menu}),A.jsxs("div",{className:Lr.time,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]})]})]}),vBt="Portrait comparison",UBt={portraitComparison:vBt},BBt="Fotogrāfiju salīdzināšana",bBt={portraitComparison:BBt},HBt="Portraitvergleich",$Bt={portraitComparison:HBt},GBt="Сравнение портретов",VBt={portraitComparison:GBt};F.addResourceBundle("en","728d90b403456884a7a65309686bf620",UBt);F.addResourceBundle("lv","728d90b403456884a7a65309686bf620",bBt);F.addResourceBundle("de","728d90b403456884a7a65309686bf620",$Bt);F.addResourceBundle("ru","728d90b403456884a7a65309686bf620",VBt);const xBt=()=>ze("728d90b403456884a7a65309686bf620"),wBt="_container_ox0ty_1",YBt={container:wBt},kBt=({status:e,name:t})=>{const n=On(e,24);return A.jsxs("div",{className:YBt.container,children:[n,A.jsx(Ee,{size:"18x135",children:t})]})},KBt="Rate",jBt={rate:KBt},WBt="Rate",ZBt={rate:WBt},XBt="Rate",zBt={rate:XBt},qBt="Rate",QBt={rate:qBt};F.addResourceBundle("en","90a425db4934211fafe21693ab2e9a39",jBt);F.addResourceBundle("lv","90a425db4934211fafe21693ab2e9a39",ZBt);F.addResourceBundle("de","90a425db4934211fafe21693ab2e9a39",zBt);F.addResourceBundle("ru","90a425db4934211fafe21693ab2e9a39",QBt);const JBt=()=>ze("90a425db4934211fafe21693ab2e9a39"),ebt="_text_1wz9f_1",tbt="_rate_1wz9f_28",EE={text:ebt,"source-content":"_source-content_1wz9f_5",rate:tbt},Lp=({source:e,image:t,checkResult:n,similarity:s,imageViewer:r=!0})=>{const{t:o}=JBt(),_=de.getPortraitComparisonSource(e);return A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:EE.text,size:"12x160",uppercase:!0,children:_}),A.jsxs("div",{className:EE["source-content"],children:[t?A.jsx(va,{src:`data:image;base64,${t}`,alt:String(_),magnifierImgBorderRadius:4,draggable:!1,magnifier:!0,viewer:r,download:!0}):A.jsx(LS,{type:"photo",className:EE["default-image"]}),n!==void 0&&s!==void 0&&A.jsxs("span",{className:EE.rate,children:[On(n),A.jsx(Ee,{children:`${o("rate")} ${s}%`})]})]})]})},nbt="_result_1sdjd_1",rbt={result:nbt},sbt=({source:e,image:t,comparable:n,imageViewer:s})=>A.jsx(wr,{children:A.jsxs("div",{className:rbt.result,children:[A.jsx(Lp,{source:e,image:t,imageViewer:s}),n.map(({source:r,image:o,checkResult:_,similarity:a},c)=>A.jsx(Lp,{source:r,image:o,checkResult:_,similarity:a,imageViewer:s},o||c))]})}),obt="The service does not respond",_bt={serviceNotRespond:obt},abt="The service does not respond",ibt={serviceNotRespond:abt},cbt="Keine Rückmeldung vom Service",Ebt={serviceNotRespond:cbt},Abt="Сервис не отвечает",Sbt={serviceNotRespond:Abt};F.addResourceBundle("en","aac8d134d61c1e4793fd82a4718ac196",_bt);F.addResourceBundle("lv","aac8d134d61c1e4793fd82a4718ac196",ibt);F.addResourceBundle("de","aac8d134d61c1e4793fd82a4718ac196",Ebt);F.addResourceBundle("ru","aac8d134d61c1e4793fd82a4718ac196",Sbt);const Ibt=()=>ze("aac8d134d61c1e4793fd82a4718ac196"),Rbt="_comparison_5medb_1",Cbt="_results_5medb_20",fp={comparison:Rbt,results:Cbt},Obt=({status:e,name:t,comparisons:n,showDiagnose:s,imageViewer:r})=>{const{t:o}=Ibt();return A.jsxs("div",{className:fp.comparison,children:[A.jsx(kBt,{status:e,name:t}),A.jsxs(j_.Element,{name:"portrait",className:fp.results,children:[s&&A.jsx(LF,{children:A.jsx(Ee,{size:"14x157",children:o("serviceNotRespond")})}),n.map(({source:_,image:a,comparable:c},i)=>A.jsx(sbt,{source:_,image:a,comparable:c,imageViewer:r},a||i))]})]})},Dbt="_comparisons_pgp5t_1",Tbt={comparisons:Dbt},lbt=({portraitsComparison:e,portraitsStatus:t,showDiagnose:n,imageViewer:s})=>{const{t:r}=xBt();return A.jsx("div",{className:Tbt.comparisons,children:A.jsx(Obt,{status:t,name:r("portraitComparison"),comparisons:e,showDiagnose:n,imageViewer:s})})},ubt=({imageViewer:e})=>{const{response:t}=In();if(!t)return null;const n=RM(t),s=eS(t),r=n.every(({diagnose:o})=>o===re.PORTRAIT_COMPARISON_NO_SERVICE_REPLY);return n.length?A.jsx(lbt,{portraitsComparison:n,portraitsStatus:s.summary.portrait,imageViewer:e,showDiagnose:r}):null},Nbt=e=>Number.isInteger(e)?e:parseFloat(e.toFixed(2)),dbt="_list_npyyi_1",Lbt="_check_npyyi_4",fbt="_name_npyyi_10",pbt="_red_npyyi_16",hbt="_value_npyyi_16",ri={list:dbt,check:Lbt,name:fbt,red:pbt,value:hbt},Pbt=({checks:e})=>A.jsx("div",{className:ri.list,children:e.map(({name:t,status:n,value:s})=>A.jsxs("div",{className:Ke(ri.check,{[ri.red]:n===ui.QUALITY_STATUS_FALSE}),children:[A.jsx(Ee,{uppercase:!0,className:ri.name,children:A.jsx(de.FaceImageQualityCheckLabel,{children:t})}),A.jsx(Ee,{className:ri.value,children:s!==void 0?Nbt(s):"—"})]},t))}),Mbt="_head_x11qb_1",mbt="_name_x11qb_7",gbt="_status_x11qb_11",ybt="_red_x11qb_17",AE={head:Mbt,name:mbt,status:gbt,red:ybt},Fbt=({name:e,statusInfo:t,status:n})=>A.jsxs("div",{className:AE.head,children:[A.jsx(Ee,{className:AE.name,children:e}),A.jsxs("div",{className:AE.status,children:[n!==void 0?On(n):null,A.jsx(Ee,{className:Ke({[AE.red]:n===ui.QUALITY_STATUS_FALSE}),children:t})]})]}),vbt=({name:e,statusInfo:t,status:n,children:s})=>A.jsx(Vr,{head:A.jsx(Fbt,{statusInfo:t,name:e,status:n}),children:s}),Ubt=({detailsGroups:e})=>A.jsx(wr,{children:e.map(({groupChecks:t,name:n,totalCount:s,compliantCount:r})=>{const _=t.filter(a=>a.status!==ui.QUALITY_STATUS_UNDETERMINED).sort((a,c)=>(a.status||0)-(c.status||0));return A.jsx(vbt,{name:A.jsx(de.FaceImageQualityLabel,{children:n}),status:(s||0)-(r||0)?ui.QUALITY_STATUS_FALSE:void 0,statusInfo:`${r||0}/${s||0}`,children:A.jsx(Pbt,{checks:_})},n)})}),$F=$.createContext({quality:null}),Bbt=()=>$.useContext($F),bbt=({detailsGroups:e,details:t})=>e?.map(n=>({...n,groupChecks:t?.filter(s=>s.groupId===n.groupId)||[]}))||[],Hbt=e=>[...e].sort((t,n)=>{const s=(t.totalCount||0)-(t.compliantCount||0);return(n.totalCount||0)-(n.compliantCount||0)-s}),$bt=()=>{const{quality:e}=Bbt();if(!e?.results?.detections[0].quality)return null;const t=bbt(e.results.detections[0].quality),n=Hbt(t);return A.jsx(Ubt,{detailsGroups:n})},Gbt=({quality:e,children:t,language:n})=>($.useEffect(()=>{F.changeLanguage(n)},[n]),A.jsx($F.Provider,{value:{quality:e},children:t}));exports.About=hF;exports.Alert=LF;exports.AreaArray=r_;exports.AuthenticityCheckList=iA;exports.AuthenticityCheckListContainerResultTypes=_D;exports.AuthenticityFibersTypeCheckResultTypes=Bi;exports.AuthenticityIdentCheckResultTypes=bi;exports.AuthenticityOCRSecurityTextCheckResultTypes=Hi;exports.AuthenticityPhotoIdentCheckResultTypes=$i;exports.AuthenticitySecurityFeatureCheckResultTypes=Gi;exports.AuthenticityTextCheckReferenceTypes=zP;exports.BSIv2ContainerResultTypes=TT;exports.BarcodeBoundsResultContainerResultTypes=ED;exports.BinaryData=Ve;exports.BoundsResult=an;exports.BoundsResultContainerResultTypes=iD;exports.ByteArrayContainerResultTypes=ET;exports.CertificateData=AA;exports.Collapse=Vr;exports.Container=An;exports.ContainerList=rc;exports.DefaultImage=LS;exports.Details=Bpt;exports.DetailsAge=uo;exports.DetailsOptical=Qr;exports.DetailsRFID=Jr;exports.DocBarCodeField=gr;exports.DocBarCodeInfo=cA;exports.DocBarCodeInfoContainerResultTypes=SD;exports.DocBinaryInfo=OA;exports.DocBinaryInfoContainerResultTypes=DD;exports.DocGraphicField=Ia;exports.DocGraphicsInfo=TA;exports.DocGraphicsInfoContainerResultTypes=lD;exports.DocReaderContainer=t2t;exports.DocReaderTypeError=mt;exports.DocVisualExtendedField=uD;exports.DocVisualExtendedInfo=uA;exports.DocVisualExtendedInfoContainerResultTypes=dD;exports.DocumentImages=MF;exports.DocumentTabs=FF;exports.DocumentType=vF;exports.DocumentTypesCandidatesContainerResultTypes=QD;exports.DocumentTypesCandidatesList=mA;exports.DocumentsDatabase=da;exports.EncryptedRCLContainerResultTypes=fD;exports.ErrorCoordinates=la;exports.FDSIDList=rr;exports.FaceApi=Gr;exports.FaceApiSearch=sc;exports.FaceContainer=Gbt;exports.FaceDetection=R_;exports.FaceDetectionContainerResultTypes=oT;exports.FaceImageQualityData=$bt;exports.FaceItem=Ls;exports.FieldItem=Lo;exports.FileImage=yA;exports.GraphData=Qs;exports.Graphics=e2t;exports.Icon=Bt;exports.IdentResult=Ds;exports.Image=va;exports.ImageData=fs;exports.ImageField=lo;exports.ImageFieldValue=qr;exports.ImageQA=Ms;exports.ImageQualityCheck=Zs;exports.ImageQualityCheckList=Wi;exports.ImageQualityCheckListContainerResultTypes=PD;exports.ImageSource=dA;exports.ImagesResult=Ca;exports.ImagesResultContainerResultTypes=mD;exports.Info=Lyt;exports.IsStringObjectRecord=oc;exports.JsonViewer=aS;exports.LicenseContainerResultTypes=yD;exports.Link=fS;exports.ListVerifiedFieldContainerResultTypes=UD;exports.ListVerifiedFields=Zi;exports.LivenessParams=to;exports.Logs=dBt;exports.MRZDetectorContainerResultTypes=rT;exports.MRZPositionContainerResultTypes=ZD;exports.MRZRowsItem=gA;exports.MRZTestQuality=br;exports.MRZTestQualityContainerResultTypes=zD;exports.Match=de;exports.OCRSecurityTextResult=Jn;exports.OneCandidate=Vn;exports.OneCandidateContainerResultTypes=BD;exports.Overall=PF;exports.PerDocumentConfig=VA;exports.PersonInfo=pF;exports.PhotoIdentResult=mr;exports.Point=ps;exports.PointArray=QO;exports.Popover=p_;exports.PortraitsComparison=ubt;exports.ProcessParams=He;exports.ProcessParamsAuth=Cn;exports.ProcessParamsRfid=NT;exports.ProcessRequestImage=_c;exports.ProcessSystemInfo=xA;exports.RAuthenticityTextCheckReference=ha;exports.RDetailedStatusOptical=Wr;exports.RDetailedStatusRfid=Zr;exports.RDetailedStatusSummary=ws;exports.RDocumentBarcodeField=u_;exports.RDocumentBarcodeModuleData=ma;exports.RDocumentImagePage=so;exports.RFIDDocVisualExtendedField=Ta;exports.RFIDDocVisualExtendedInfo=PA;exports.RFIDGraphicsInfoContainerResultTypes=iT;exports.RFIDTextDataContainerResultTypes=jD;exports.RImageQualityCheck=Sc;exports.RLocation=no;exports.RRfidDataGroupStatusItem=QA;exports.RTextDataComparison=Fa;exports.RTextDataSource=gs;exports.RawImageContainerList=aA;exports.RawImageContainerResultTypes=HD;exports.Rect=kt;exports.RequestViewer=iBt;exports.ResponseViewer=Z2t;exports.ResultMRZDetector=Qi;exports.Rfid=gUt;exports.RfidAccessControlInfo=__;exports.RfidAccessKey=Sa;exports.RfidApplication=Ws;exports.RfidAttributeData=SA;exports.RfidAttributeName=bA;exports.RfidCardPropertiesExt=gn;exports.RfidCertificateEx=un;exports.RfidDG1=Rn;exports.RfidDataFile=er;exports.RfidDistinguishedName=O_;exports.RfidOrigin=po;exports.RfidParsedData=ID;exports.RfidPkiExtension=IA;exports.RfidRawData=CA;exports.RfidSecurityObject=i_;exports.RfidSecurityObjectCertificates=RD;exports.RfidSession=Nn;exports.RfidSignerInfoEx=nr;exports.RfidTerminal=ki;exports.RfidValidity=RA;exports.Scroll=wr;exports.SecurityFeatureCheck=js;exports.Skeleton=Ut;exports.Status=Ur;exports.StatusContainerResultTypes=GD;exports.StatusLoader=FBt;exports.StringItem=En;exports.StringRecognitionResult=E_;exports.Symbol=JD;exports.SymbolCandidate=Ra;exports.SymbolEstimationItem=cn;exports.SymbolRecognitionResult=c_;exports.TOriginalRFIDGraphicsInfo=_T;exports.Table=Am;exports.Tabs=XT;exports.Text=Ee;exports.TextComparison=Xi;exports.TextField=Cr;exports.TextFieldValue=Br;exports.TextResult=No;exports.TextResultContainerResultTypes=kD;exports.TextSource=qi;exports.TextSymbol=zi;exports.TextValidity=pA;exports.TipDecodeModule=o_;exports.TipPDF417Info=To;exports.Title=cm;exports.TransactionInfo=ms;exports.TrfFtBytes=Dr;exports.TrfFtString=hs;exports.VDSContainerResultTypes=IT;exports.VDSData=Gn;exports.VDSNCContainerResultTypes=OT;exports.VDSNCData=ts;exports.Verifications=fF;exports.VerifiedFieldMap=zs;exports.aVisualExtendedFieldItem=$n;exports.checkLocation=ra;exports.checkSelection=sa;exports.convertGeneralizedDateToLocal=XC;exports.decode=jC;exports.eAuthenticity=J;exports.eBarCodeDetectionType=Dh;exports.eBarCodeModuleType=zE;exports.eBarCodeResultCodes=rA;exports.eBarCodeType=vi;exports.eCheckDiagnose=re;exports.eCheckResult=x;exports.eDataGroupReadStatus=ir;exports.eDocFormat=ca;exports.eDocType=QE;exports.eDocumentTypeRecognitionResult=UO;exports.eFieldVerificationResult=zO;exports.eGraphicFieldType=Tt;exports.eIRVisibilityFlag=fr;exports.eImageQualityCheckType=Kn;exports.eInfoTabID=cr;exports.eInputBarcodeType=BO;exports.eInputImageQualityChecks=bO;exports.eLCID=K;exports.eLDSParsingErrorCodes=Ih;exports.eLDSParsingNotificationCodes=JE;exports.eLights=vt;exports.eLogLevel=HO;exports.eMRZDetectMode=VO;exports.eMRZFormat=$O;exports.eMeasureSystem=GO;exports.eOpticalStatusField=Qe;exports.ePortraitComparisonSource=Gt;exports.eProcessingStatus=xO;exports.eResult=ie;exports.eResultType=ie;exports.eRfidAChip=wO;exports.eRfidAccessControlProcedureType=eA;exports.eRfidApplicationType=Wt;exports.eRfidAuthenticationProcedureType=YO;exports.eRfidBaudRate=tA;exports.eRfidCertificateOrigin=kO;exports.eRfidCertificateType=_r;exports.eRfidDataFileType=j;exports.eRfidErrorCodes=rn;exports.eRfidFileIdType=Th;exports.eRfidOriginalGraphicsType=lh;exports.eRfidPasswordType=KO;exports.eRfidPresence=nA;exports.eRfidStatusField=ft;exports.eRfidTerminalAuthorizationRequirement=Ri;exports.eRfidTerminalType=jO;exports.eRfidType=WO;exports.eRfidVisualFieldType=uh;exports.eScenario=ZO;exports.eSecurityCriticalFlag=qE;exports.eSecurityFeatureType=Te;exports.eSource=Vt;exports.eSummaryStatusField=zt;exports.eTextPostProcessing=XO;exports.eVisualFieldType=O;exports.getAuthenticityArray=xC;exports.getAuthenticityCheckList=AM;exports.getAuthenticityOpenFields=mF;exports.getDetailedStatus=eS;exports.getDocumentBarcodes=mw;exports.getDocumentDateOfExpiry=tm;exports.getDocumentIdentification=VT;exports.getDocumentImages=vw;exports.getDocumentImagesSync=XA;exports.getDocumentIssuingStateName=nm;exports.getDocumentNumber=rm;exports.getDocumentOwnerAge=sm;exports.getDocumentOwnerNationalityCode=S4;exports.getDocumentOwnerSex=om;exports.getGraphicField=bw;exports.getGraphicFieldSync=Hw;exports.getIRVisibilityFlagArray=Oh;exports.getImageDimensions=pT;exports.getImageQuality=NM;exports.getImageQualityOpenFields=gF;exports.getLightsArray=Ko;exports.getNameSurname=qM;exports.getPortraitsComparison=RM;exports.getRfidCertificatesData=fM;exports.getRfidChecksSummary=BT;exports.getRfidDataGroupsStatus=PM;exports.getRfidDataGroupsStatusList=yM;exports.getRfidTerminalAuthorizationRequirements=_i;exports.getTextData=JM;exports.getTextFieldValue=Ys;exports.isAuthenticity=bB;exports.isIRVisibilityFlag=HB;exports.isLights=$B;exports.isObject=q_;exports.isRfidTerminalAuthorizationRequirement=GB;exports.mergeDetailedStatus=t4;exports.mergeStatuses=ZP;exports.transformToAuthenticityCheckResultList=Gh;exports.transformToContainerList=nP;exports.transformToRAuthenticityCheckList=aM;
16
+ `+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jo(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&TE.assertOptions(s,{silentJSONParsing:dr.transitional(dr.boolean),forcedJSONParsing:dr.transitional(dr.boolean),clarifyTimeoutError:dr.transitional(dr.boolean),legacyInterceptorReqResOrdering:dr.transitional(dr.boolean)},!1),r!=null&&(ne.isFunction(r)?n.paramsSerializer={serialize:r}:TE.assertOptions(r,{encode:dr.function,serialize:dr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),TE.assertOptions(n,{baseUrl:dr.spelling("baseURL"),withXsrfToken:dr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let _=o&&ne.merge(o.common,o[n.method]);o&&ne.forEach(["delete","get","head","post","put","patch","common"],I=>{delete o[I]}),n.headers=Qn.concat(_,o);const a=[];let c=!0;this.interceptors.request.forEach(function(I){if(typeof I.runWhen=="function"&&I.runWhen(n)===!1)return;c=c&&I.synchronous;const T=n.transitional||il;T&&T.legacyInterceptorReqResOrdering?a.unshift(I.fulfilled,I.rejected):a.push(I.fulfilled,I.rejected)});const i=[];this.interceptors.response.forEach(function(I){i.push(I.fulfilled,I.rejected)});let E,S=0,R;if(!c){const I=[mf.bind(this),void 0];for(I.unshift(...a),I.push(...i),R=I.length,E=Promise.resolve(n);S<R;)E=E.then(I[S++],I[S++]);return E}R=a.length;let C=n;for(;S<R;){const I=a[S++],T=a[S++];try{C=I(C)}catch(u){T.call(this,u);break}}try{E=mf.call(this,C)}catch(I){return Promise.reject(I)}for(S=0,R=i.length;S<R;)E=E.then(i[S++],i[S++]);return E}getUri(t){t=Jo(this.defaults,t);const n=fy(t.baseURL,t.url,t.allowAbsoluteUrls);return uy(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(e){Zo.prototype[e]=function(t,n){return this.request(Jo(n||{},{method:e,url:t,data:(n||{}).data}))}});ne.forEach(["post","put","patch"],function(e){function t(n){return function(s,r,o){return this.request(Jo(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:r}))}}Zo.prototype[e]=t(),Zo.prototype[e+"Form"]=t(!0)});let XDt=class my{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const _=new Promise(a=>{s.subscribe(a),o=a}).then(r);return _.cancel=function(){s.unsubscribe(o)},_},t(function(r,o,_){s.reason||(s.reason=new Tc(r,o,_),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new my(function(n){t=n}),cancel:t}}};function zDt(e){return function(t){return e.apply(null,t)}}function qDt(e){return ne.isObject(e)&&e.isAxiosError===!0}const iO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iO).forEach(([e,t])=>{iO[t]=e});function gy(e){const t=new Zo(e),n=cy(Zo.prototype.request,t);return ne.extend(n,Zo.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return gy(Jo(e,s))},n}const _n=gy(Dc);_n.Axios=Zo;_n.CanceledError=Tc;_n.CancelToken=XDt;_n.isCancel=dy;_n.VERSION=My;_n.toFormData=SS;_n.AxiosError=nt;_n.Cancel=_n.CanceledError;_n.all=function(e){return Promise.all(e)};_n.spread=zDt;_n.isAxiosError=qDt;_n.mergeConfig=Jo;_n.AxiosHeaders=Qn;_n.formToJSON=e=>Ny(ne.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=Py.getAdapter;_n.HttpStatusCode=iO;_n.default=_n;const{Axios:i$t,AxiosError:c$t,CanceledError:E$t,isCancel:A$t,CancelToken:S$t,VERSION:I$t,all:R$t,Cancel:C$t,isAxiosError:O$t,spread:D$t,toFormData:T$t,AxiosHeaders:l$t,HttpStatusCode:u$t,formToJSON:N$t,getAdapter:d$t,mergeConfig:L$t}=_n;var bs=(e=>(e.IMAGE_CHARACTERISTICS="ImageCharacteristics",e.HEAD_SIZE_AND_POSITIONS="HeadSizeAndPosition",e.FACE_QUALITY="FaceQuality",e.EYES_CHARACTERISTICS="EyesCharacteristics",e.SHADOWS_AND_LIGHTNING="ShadowsAndLightning",e.POSE_AND_EXPRESSION="PoseAndExpression",e.HEAD_OCCLUSION="HeadOcclusion",e.BACKGROUND="Background",e))(bs||{}),ui=(e=>(e[e.QUALITY_STATUS_FALSE=0]="QUALITY_STATUS_FALSE",e[e.QUALITY_STATUS_TRUE=1]="QUALITY_STATUS_TRUE",e[e.QUALITY_STATUS_UNDETERMINED=2]="QUALITY_STATUS_UNDETERMINED",e))(ui||{}),st=(e=>(e.IMAGE_WIDTH="ImageWidth",e.IMAGE_HEIGHT="ImageHeight",e.IMAGE_WIDTH_TO_HEIGHT="ImageWidthToHeight",e.IMAGE_CHANNELS_NUMBER="ImageChannelsNumber",e.PADDING_RATIO="PaddingRatio",e.FACE_MID_POINT_HORIZONTAL_POSITION="FaceMidPointHorizontalPosition",e.FACE_MID_POINT_VERTICAL_POSITION="FaceMidPointVerticalPosition",e.HEAD_WIDTH_RATIO="HeadWidthRatio",e.HEAD_HEIGHT_RATIO="HeadHeightRatio",e.EYES_DISTANCE="EyesDistance",e.YAW="Yaw",e.PITCH="Pitch",e.ROLL="Roll",e.BLUR_LEVEL="BlurLevel",e.NOISE_LEVEL="NoiseLevel",e.EYE_RIGHT_CLOSED="EyeRightClosed",e.EYE_LEFT_CLOSED="EyeLeftClosed",e.EYE_RIGHT_OCCLUDED="EyeRightOccluded",e.EYE_LEFT_OCCLUDED="EyeLeftOccluded",e.EYES_RED="EyesRed",e.EYE_RIGHT_COVERED_WITH_HAIR="EyeRightCoveredWithHair",e.EYE_LEFT_COVERED_WITH_HAIR="EyeLeftCoveredWithHair",e.OFF_GAZE="OffGaze",e.FACE_DYNAMIC_RANGE="FaceDynamicRange",e.UNNATURAL_SKIN_TONE="UnnaturalSkinTone",e.TOO_DARK="TooDark",e.TOO_LIGHT="TooLight",e.FACE_GLARE="FaceGlare",e.SHADOWS_ON_FACE="ShadowsOnFace",e.DARK_GLASSES="DarkGlasses",e.REFLECTION_ON_GLASSES="ReflectionOnGlasses",e.FRAMES_TOO_HEAVY="FramesTooHeavy",e.FACE_OCCLUDED="FaceOccluded",e.HEAD_COVERING="HeadCovering",e.BACKGROUND_UNIFORMITY="BackgroundUniformity",e.SHADOWS_ON_BACKGROUND="ShadowsOnBackground",e.OTHER_FACES="OtherFaces",e.SHOULDERS_POSE="ShouldersPose",e.EXPRESSION_LEVEL="ExpressionLevel",e.MOUTH_OPEN="MouthOpen",e.FOREHEAD_COVERING="ForeheadCovering",e.SMILE="Smile",e.STRONG_MAKEUP="StrongMakeup",e.HEADPHONES="Headphones",e.MEDICAL_MASK="MedicalMask",e.BACKGROUND_COLOR_MATCH="BackgroundColorMatch",e.ART_FACE="ArtFace",e.CONTACT_LENSES="ContactLenses",e))(st||{}),yf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QDt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xc=0;Xc<yf.length;Xc++)QDt[yf.charCodeAt(Xc)]=Xc;const JDt="Face image quality",eTt="Image characteristics",tTt="Background",nTt="Head size and position",rTt="Shadows and lightning",sTt="Eyes characteristics",oTt="Head occlusion",_Tt="Pose and expression",aTt={FACE_QUALITY:JDt,IMAGE_CHARACTERISTICS:eTt,BACKGROUND:tTt,HEAD_SIZE_AND_POSITIONS:nTt,SHADOWS_AND_LIGHTNING:rTt,EYES_CHARACTERISTICS:sTt,HEAD_OCCLUSION:oTt,POSE_AND_EXPRESSION:_Tt},iTt="Face image quality",cTt="Image characteristics",ETt="Fons",ATt="Head size and position",STt="Shadows and lightning",ITt="Eyes characteristics",RTt="Head occlusion",CTt="Pose and expression",OTt={FACE_QUALITY:iTt,IMAGE_CHARACTERISTICS:cTt,BACKGROUND:ETt,HEAD_SIZE_AND_POSITIONS:ATt,SHADOWS_AND_LIGHTNING:STt,EYES_CHARACTERISTICS:ITt,HEAD_OCCLUSION:RTt,POSE_AND_EXPRESSION:CTt},DTt="Face image quality",TTt="Image characteristics",lTt="Hintergrund",uTt="Head size and position",NTt="Shadows and lightning",dTt="Eyes characteristics",LTt="Head occlusion",fTt="Pose and expression",pTt={FACE_QUALITY:DTt,IMAGE_CHARACTERISTICS:TTt,BACKGROUND:lTt,HEAD_SIZE_AND_POSITIONS:uTt,SHADOWS_AND_LIGHTNING:NTt,EYES_CHARACTERISTICS:dTt,HEAD_OCCLUSION:LTt,POSE_AND_EXPRESSION:fTt},hTt="Face image quality",PTt="Image characteristics",MTt="Фон",mTt="Head size and position",gTt="Shadows and lightning",yTt="Eyes characteristics",FTt="Head occlusion",vTt="Pose and expression",UTt={FACE_QUALITY:hTt,IMAGE_CHARACTERISTICS:PTt,BACKGROUND:MTt,HEAD_SIZE_AND_POSITIONS:mTt,SHADOWS_AND_LIGHTNING:gTt,EYES_CHARACTERISTICS:yTt,HEAD_OCCLUSION:FTt,POSE_AND_EXPRESSION:vTt};F.addResourceBundle("en","e2ea936c7cbc30425eb1709a6b48d307",aTt);F.addResourceBundle("lv","e2ea936c7cbc30425eb1709a6b48d307",OTt);F.addResourceBundle("de","e2ea936c7cbc30425eb1709a6b48d307",pTt);F.addResourceBundle("ru","e2ea936c7cbc30425eb1709a6b48d307",UTt);const BTt=()=>ze("e2ea936c7cbc30425eb1709a6b48d307"),co=e=>F.t(e,{ns:"e2ea936c7cbc30425eb1709a6b48d307"}),yy=e=>{const t=String(e||"").trim();switch(t){case bs.FACE_QUALITY:return co("FACE_QUALITY");case bs.IMAGE_CHARACTERISTICS:return co("IMAGE_CHARACTERISTICS");case bs.BACKGROUND:return co("BACKGROUND");case bs.HEAD_SIZE_AND_POSITIONS:return co("HEAD_SIZE_AND_POSITIONS");case bs.SHADOWS_AND_LIGHTNING:return co("SHADOWS_AND_LIGHTNING");case bs.EYES_CHARACTERISTICS:return co("EYES_CHARACTERISTICS");case bs.HEAD_OCCLUSION:return co("HEAD_OCCLUSION");case bs.POSE_AND_EXPRESSION:return co("POSE_AND_EXPRESSION");default:return t}},bTt=({children:e})=>(BTt(),A.jsx(A.Fragment,{children:yy(e)})),HTt="Image width",$Tt="Image height",GTt="Image width to height",VTt="Image channels number",xTt="Art face",wTt="Padding ratio",YTt="Face mid point horizontal position",kTt="Face mid point vertical position",KTt="Head width ratio",jTt="Head height ratio",WTt="Eyes distance",ZTt="Yaw",XTt="Pitch",zTt="Roll",qTt="Blur level",QTt="Noise level",JTt="Unnatural skin tone",elt="Face dynamic range",tlt="Right eye closed",nlt="Left eye closed",rlt="Right eye occluded",slt="Left eye occluded",olt="Red eyes",_lt="Left eye covered with hair",alt="Right eye covered with hair",ilt="Off gaze",clt="Too dark",Elt="Too light",Alt="Face glare",Slt="Shadows on face",Ilt="Shoulders pose",Rlt="Expression level",Clt="Mouth open",Olt="Smile",Dlt="Dark glasses",Tlt="Reflection on glasses",llt="Frames too heavy",ult="Face occluded",Nlt="Head covering",dlt="Forehead covering",Llt="Strong makeup",flt="Headphones",plt="Background uniformity",hlt="Shadows on background",Plt="Other faces",Mlt="Background color match",mlt={IMAGE_WIDTH:HTt,IMAGE_HEIGHT:$Tt,IMAGE_WIDTH_TO_HEIGHT:GTt,IMAGE_CHANNELS_NUMBER:VTt,ART_FACE:xTt,PADDING_RATIO:wTt,FACE_MID_POINT_HORIZONTAL_POSITION:YTt,FACE_MID_POINT_VERTICAL_POSITION:kTt,HEAD_WIDTH_RATIO:KTt,HEAD_HEIGHT_RATIO:jTt,EYES_DISTANCE:WTt,YAW:ZTt,PITCH:XTt,ROLL:zTt,BLUR_LEVEL:qTt,NOISE_LEVEL:QTt,UNNATURAL_SKIN_TONE:JTt,FACE_DYNAMIC_RANGE:elt,EYE_RIGHT_CLOSED:tlt,EYE_LEFT_CLOSED:nlt,EYE_RIGHT_OCCLUDED:rlt,EYE_LEFT_OCCLUDED:slt,EYES_RED:olt,EYE_LEFT_COVERED_WITH_HAIR:_lt,EYE_RIGHT_COVERED_WITH_HAIR:alt,OFF_GAZE:ilt,TOO_DARK:clt,TOO_LIGHT:Elt,FACE_GLARE:Alt,SHADOWS_ON_FACE:Slt,SHOULDERS_POSE:Ilt,EXPRESSION_LEVEL:Rlt,MOUTH_OPEN:Clt,SMILE:Olt,DARK_GLASSES:Dlt,REFLECTION_ON_GLASSES:Tlt,FRAMES_TOO_HEAVY:llt,FACE_OCCLUDED:ult,HEAD_COVERING:Nlt,FOREHEAD_COVERING:dlt,STRONG_MAKEUP:Llt,HEADPHONES:flt,BACKGROUND_UNIFORMITY:plt,SHADOWS_ON_BACKGROUND:hlt,OTHER_FACES:Plt,BACKGROUND_COLOR_MATCH:Mlt},glt="Image width",ylt="Image height",Flt="Image width to height",vlt="Image channels number",Ult="Art face",Blt="Padding ratio",blt="Face mid point horizontal position",Hlt="Face mid point vertical position",$lt="Head width ratio",Glt="Head height ratio",Vlt="Eyes distance",xlt="Yaw",wlt="Pitch",Ylt="Roll",klt="Blur level",Klt="Noise level",jlt="Unnatural skin tone",Wlt="Face dynamic range",Zlt="Right eye closed",Xlt="Left eye closed",zlt="Right eye occluded",qlt="Left eye occluded",Qlt="Red eyes",Jlt="Left eye covered with hair",eut="Right eye covered with hair",tut="Off gaze",nut="Too dark",rut="Too light",sut="Face glare",out="Shadows on face",_ut="Shoulders pose",aut="Expression level",iut="Mouth open",cut="Smile",Eut="Dark glasses",Aut="Reflection on glasses",Sut="Frames too heavy",Iut="Face occluded",Rut="Head covering",Cut="Forehead covering",Out="Strong makeup",Dut="Headphones",Tut="Background uniformity",lut="Shadows on background",uut="Other faces",Nut="Background color match",dut={IMAGE_WIDTH:glt,IMAGE_HEIGHT:ylt,IMAGE_WIDTH_TO_HEIGHT:Flt,IMAGE_CHANNELS_NUMBER:vlt,ART_FACE:Ult,PADDING_RATIO:Blt,FACE_MID_POINT_HORIZONTAL_POSITION:blt,FACE_MID_POINT_VERTICAL_POSITION:Hlt,HEAD_WIDTH_RATIO:$lt,HEAD_HEIGHT_RATIO:Glt,EYES_DISTANCE:Vlt,YAW:xlt,PITCH:wlt,ROLL:Ylt,BLUR_LEVEL:klt,NOISE_LEVEL:Klt,UNNATURAL_SKIN_TONE:jlt,FACE_DYNAMIC_RANGE:Wlt,EYE_RIGHT_CLOSED:Zlt,EYE_LEFT_CLOSED:Xlt,EYE_RIGHT_OCCLUDED:zlt,EYE_LEFT_OCCLUDED:qlt,EYES_RED:Qlt,EYE_LEFT_COVERED_WITH_HAIR:Jlt,EYE_RIGHT_COVERED_WITH_HAIR:eut,OFF_GAZE:tut,TOO_DARK:nut,TOO_LIGHT:rut,FACE_GLARE:sut,SHADOWS_ON_FACE:out,SHOULDERS_POSE:_ut,EXPRESSION_LEVEL:aut,MOUTH_OPEN:iut,SMILE:cut,DARK_GLASSES:Eut,REFLECTION_ON_GLASSES:Aut,FRAMES_TOO_HEAVY:Sut,FACE_OCCLUDED:Iut,HEAD_COVERING:Rut,FOREHEAD_COVERING:Cut,STRONG_MAKEUP:Out,HEADPHONES:Dut,BACKGROUND_UNIFORMITY:Tut,SHADOWS_ON_BACKGROUND:lut,OTHER_FACES:uut,BACKGROUND_COLOR_MATCH:Nut},Lut="Image width",fut="Image height",put="Image width to height",hut="Image channels number",Put="Art face",Mut="Padding ratio",mut="Face mid point horizontal position",gut="Face mid point vertical position",yut="Head width ratio",Fut="Head height ratio",vut="Eyes distance",Uut="Yaw",But="Pitch",but="Roll",Hut="Blur level",$ut="Noise level",Gut="Unnatural skin tone",Vut="Face dynamic range",xut="Right eye closed",wut="Left eye closed",Yut="Right eye occluded",kut="Left eye occluded",Kut="Red eyes",jut="Left eye covered with hair",Wut="Right eye covered with hair",Zut="Off gaze",Xut="Too dark",zut="Too light",qut="Face glare",Qut="Shadows on face",Jut="Shoulders pose",eNt="Expression level",tNt="Mouth open",nNt="Smile",rNt="Dark glasses",sNt="Reflection on glasses",oNt="Frames too heavy",_Nt="Face occluded",aNt="Head covering",iNt="Forehead covering",cNt="Strong makeup",ENt="Headphones",ANt="Background uniformity",SNt="Shadows on background",INt="Other faces",RNt="Background color match",CNt={IMAGE_WIDTH:Lut,IMAGE_HEIGHT:fut,IMAGE_WIDTH_TO_HEIGHT:put,IMAGE_CHANNELS_NUMBER:hut,ART_FACE:Put,PADDING_RATIO:Mut,FACE_MID_POINT_HORIZONTAL_POSITION:mut,FACE_MID_POINT_VERTICAL_POSITION:gut,HEAD_WIDTH_RATIO:yut,HEAD_HEIGHT_RATIO:Fut,EYES_DISTANCE:vut,YAW:Uut,PITCH:But,ROLL:but,BLUR_LEVEL:Hut,NOISE_LEVEL:$ut,UNNATURAL_SKIN_TONE:Gut,FACE_DYNAMIC_RANGE:Vut,EYE_RIGHT_CLOSED:xut,EYE_LEFT_CLOSED:wut,EYE_RIGHT_OCCLUDED:Yut,EYE_LEFT_OCCLUDED:kut,EYES_RED:Kut,EYE_LEFT_COVERED_WITH_HAIR:jut,EYE_RIGHT_COVERED_WITH_HAIR:Wut,OFF_GAZE:Zut,TOO_DARK:Xut,TOO_LIGHT:zut,FACE_GLARE:qut,SHADOWS_ON_FACE:Qut,SHOULDERS_POSE:Jut,EXPRESSION_LEVEL:eNt,MOUTH_OPEN:tNt,SMILE:nNt,DARK_GLASSES:rNt,REFLECTION_ON_GLASSES:sNt,FRAMES_TOO_HEAVY:oNt,FACE_OCCLUDED:_Nt,HEAD_COVERING:aNt,FOREHEAD_COVERING:iNt,STRONG_MAKEUP:cNt,HEADPHONES:ENt,BACKGROUND_UNIFORMITY:ANt,SHADOWS_ON_BACKGROUND:SNt,OTHER_FACES:INt,BACKGROUND_COLOR_MATCH:RNt},ONt="Image width",DNt="Image height",TNt="Image width to height",lNt="Image channels number",uNt="Art face",NNt="Padding ratio",dNt="Face mid point horizontal position",LNt="Face mid point vertical position",fNt="Head width ratio",pNt="Head height ratio",hNt="Eyes distance",PNt="Yaw",MNt="Pitch",mNt="Roll",gNt="Blur level",yNt="Noise level",FNt="Unnatural skin tone",vNt="Face dynamic range",UNt="Right eye closed",BNt="Left eye closed",bNt="Right eye occluded",HNt="Left eye occluded",$Nt="Red eyes",GNt="Left eye covered with hair",VNt="Right eye covered with hair",xNt="Off gaze",wNt="Too dark",YNt="Too light",kNt="Face glare",KNt="Shadows on face",jNt="Shoulders pose",WNt="Expression level",ZNt="Mouth open",XNt="Smile",zNt="Dark glasses",qNt="Reflection on glasses",QNt="Frames too heavy",JNt="Face occluded",edt="Head covering",tdt="Forehead covering",ndt="Strong makeup",rdt="Headphones",sdt="Background uniformity",odt="Shadows on background",_dt="Other faces",adt="Background color match",idt={IMAGE_WIDTH:ONt,IMAGE_HEIGHT:DNt,IMAGE_WIDTH_TO_HEIGHT:TNt,IMAGE_CHANNELS_NUMBER:lNt,ART_FACE:uNt,PADDING_RATIO:NNt,FACE_MID_POINT_HORIZONTAL_POSITION:dNt,FACE_MID_POINT_VERTICAL_POSITION:LNt,HEAD_WIDTH_RATIO:fNt,HEAD_HEIGHT_RATIO:pNt,EYES_DISTANCE:hNt,YAW:PNt,PITCH:MNt,ROLL:mNt,BLUR_LEVEL:gNt,NOISE_LEVEL:yNt,UNNATURAL_SKIN_TONE:FNt,FACE_DYNAMIC_RANGE:vNt,EYE_RIGHT_CLOSED:UNt,EYE_LEFT_CLOSED:BNt,EYE_RIGHT_OCCLUDED:bNt,EYE_LEFT_OCCLUDED:HNt,EYES_RED:$Nt,EYE_LEFT_COVERED_WITH_HAIR:GNt,EYE_RIGHT_COVERED_WITH_HAIR:VNt,OFF_GAZE:xNt,TOO_DARK:wNt,TOO_LIGHT:YNt,FACE_GLARE:kNt,SHADOWS_ON_FACE:KNt,SHOULDERS_POSE:jNt,EXPRESSION_LEVEL:WNt,MOUTH_OPEN:ZNt,SMILE:XNt,DARK_GLASSES:zNt,REFLECTION_ON_GLASSES:qNt,FRAMES_TOO_HEAVY:QNt,FACE_OCCLUDED:JNt,HEAD_COVERING:edt,FOREHEAD_COVERING:tdt,STRONG_MAKEUP:ndt,HEADPHONES:rdt,BACKGROUND_UNIFORMITY:sdt,SHADOWS_ON_BACKGROUND:odt,OTHER_FACES:_dt,BACKGROUND_COLOR_MATCH:adt};F.addResourceBundle("en","a62078b0db0988fa2d48c6e38c6e3802",mlt);F.addResourceBundle("lv","a62078b0db0988fa2d48c6e38c6e3802",dut);F.addResourceBundle("de","a62078b0db0988fa2d48c6e38c6e3802",CNt);F.addResourceBundle("ru","a62078b0db0988fa2d48c6e38c6e3802",idt);const cdt=()=>ze("a62078b0db0988fa2d48c6e38c6e3802"),_t=e=>F.t(e,{ns:"a62078b0db0988fa2d48c6e38c6e3802"}),Fy=e=>{const t=String(e||"").trim();switch(t){case st.IMAGE_WIDTH:return _t("IMAGE_WIDTH");case st.IMAGE_HEIGHT:return _t("IMAGE_HEIGHT");case st.IMAGE_WIDTH_TO_HEIGHT:return _t("IMAGE_WIDTH_TO_HEIGHT");case st.IMAGE_CHANNELS_NUMBER:return _t("IMAGE_CHANNELS_NUMBER");case st.ART_FACE:return _t("ART_FACE");case st.PADDING_RATIO:return _t("PADDING_RATIO");case st.FACE_MID_POINT_HORIZONTAL_POSITION:return _t("FACE_MID_POINT_HORIZONTAL_POSITION");case st.FACE_MID_POINT_VERTICAL_POSITION:return _t("FACE_MID_POINT_VERTICAL_POSITION");case st.HEAD_WIDTH_RATIO:return _t("HEAD_WIDTH_RATIO");case st.HEAD_HEIGHT_RATIO:return _t("HEAD_HEIGHT_RATIO");case st.EYES_DISTANCE:return _t("EYES_DISTANCE");case st.YAW:return _t("YAW");case st.PITCH:return _t("PITCH");case st.ROLL:return _t("ROLL");case st.BLUR_LEVEL:return _t("BLUR_LEVEL");case st.NOISE_LEVEL:return _t("NOISE_LEVEL");case st.UNNATURAL_SKIN_TONE:return _t("UNNATURAL_SKIN_TONE");case st.FACE_DYNAMIC_RANGE:return _t("FACE_DYNAMIC_RANGE");case st.EYE_RIGHT_CLOSED:return _t("EYE_RIGHT_CLOSED");case st.EYE_LEFT_CLOSED:return _t("EYE_LEFT_CLOSED");case st.EYE_RIGHT_OCCLUDED:return _t("EYE_RIGHT_OCCLUDED");case st.EYE_LEFT_OCCLUDED:return _t("EYE_LEFT_OCCLUDED");case st.EYES_RED:return _t("EYES_RED");case st.EYE_LEFT_COVERED_WITH_HAIR:return _t("EYE_LEFT_COVERED_WITH_HAIR");case st.EYE_RIGHT_COVERED_WITH_HAIR:return _t("EYE_RIGHT_COVERED_WITH_HAIR");case st.OFF_GAZE:return _t("OFF_GAZE");case st.TOO_DARK:return _t("TOO_DARK");case st.TOO_LIGHT:return _t("TOO_LIGHT");case st.FACE_GLARE:return _t("FACE_GLARE");case st.SHADOWS_ON_FACE:return _t("SHADOWS_ON_FACE");case st.SHOULDERS_POSE:return _t("SHOULDERS_POSE");case st.EXPRESSION_LEVEL:return _t("EXPRESSION_LEVEL");case st.MOUTH_OPEN:return _t("MOUTH_OPEN");case st.SMILE:return _t("SMILE");case st.DARK_GLASSES:return _t("DARK_GLASSES");case st.REFLECTION_ON_GLASSES:return _t("REFLECTION_ON_GLASSES");case st.FRAMES_TOO_HEAVY:return _t("FRAMES_TOO_HEAVY");case st.FACE_OCCLUDED:return _t("FACE_OCCLUDED");case st.HEAD_COVERING:return _t("HEAD_COVERING");case st.FOREHEAD_COVERING:return _t("FOREHEAD_COVERING");case st.STRONG_MAKEUP:return _t("STRONG_MAKEUP");case st.HEADPHONES:return _t("HEADPHONES");case st.BACKGROUND_UNIFORMITY:return _t("BACKGROUND_UNIFORMITY");case st.SHADOWS_ON_BACKGROUND:return _t("SHADOWS_ON_BACKGROUND");case st.OTHER_FACES:return _t("OTHER_FACES");case st.BACKGROUND_COLOR_MATCH:return _t("BACKGROUND_COLOR_MATCH");default:return t}},Edt=({children:e})=>(cdt(),A.jsx(A.Fragment,{children:Fy(e)})),de=()=>A.jsx(A.Fragment,{});de.AuthenticityLabel=VY;de.getAuthenticityLabel=wg;de.CheckDiagnose=Zq;de.getCheckDiagnose=Yg;de.CheckResultVerification=SQ;de.getCheckResultVerification=kg;de.GraphicFieldType=Eee;de.getGraphicFieldType=Kg;de.ImageQualityCheckTypeLabel=nte;de.getImageQualityCheckTypeLabel=jg;de.LightsLabel=ene;de.getLightsLabel=Zg;de.OpticalStatusField=Une;de.getOpticalStatusField=Xg;de.RfidCertificateType=Tre;de.getRfidCertificateType=zg;de.RfidDataFileType=REe;de.getRfidDataFileType=qg;de.SecurityFeatureTypeLabel=ZRe;de.getSecurityFeatureTypeLabel=Qg;de.Sex=ute;de.getSex=Wg;de.Source=MCe;de.getSource=Jg;de.PortraitComparisonSource=UOe;de.getPortraitComparisonSource=ty;de.SourceDescription=sOe;de.getSourceDescription=ey;de.VisualFieldType=Stt;de.getVisualFieldType=ny;de.LCID=nIt;de.getLCID=ry;de.IRVisibilityStatus=MIt;de.getIRVisibilityStatus=sy;de.AuthenticityTextCheckReference=jIt;de.getAuthenticityTextCheckReference=oy;de.GroupDescription=sCt;de.getGroupDescription=_y;de.RfidApplicationType=zCt;de.getRfidApplicationType=ay;de.RfidApplicationDescription=dOt;de.getRfidApplicationDescription=iy;de.FaceImageQualityLabel=bTt;de.getFaceImageQualityLabel=yy;de.FaceImageQualityCheckLabel=Edt;de.getFaceImageQualityCheckLabel=Fy;const ar=(e,t)=>{const{o:n,i:s,u:r}=e;let o=n,_;const a=(E,S)=>{const R=o,C=E,I=S||(s?!s(R,C):R!==C);return(I||r)&&(o=C,_=R),[o,I,_]};return[t?E=>a(t(o,_),E):a,E=>[o,!!E,_]]},Adt=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,Zn=Adt?window:{},vy=Math.max,Sdt=Math.min,cO=Math.round,So=Math.abs,Ff=Math.sign,Uy=Zn.cancelAnimationFrame,Al=Zn.requestAnimationFrame,Sl=Zn.setTimeout,By=Zn.clearTimeout,RS=e=>typeof Zn[e]<"u"?Zn[e]:void 0,Idt=RS("MutationObserver"),vf=RS("IntersectionObserver"),w_=RS("ResizeObserver"),Ei=RS("ScrollTimeline"),Il=e=>e===void 0,CS=e=>e===null,Io=e=>typeof e=="number",ba=e=>typeof e=="string",OS=e=>typeof e=="boolean",os=e=>typeof e=="function",hr=e=>Array.isArray(e),yE=e=>typeof e=="object"&&!hr(e)&&!CS(e),Rl=e=>{const t=!!e&&e.length,n=Io(t)&&t>-1&&t%1==0;return hr(e)||!os(e)&&n?t>0&&yE(e)?t-1 in e:!0:!1},Ni=e=>!!e&&e.constructor===Object,FE=e=>e instanceof HTMLElement,DS=e=>e instanceof Element;function bt(e,t){if(Rl(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&bt(Object.keys(e),(n=>t(e[n],n,e)));return e}const by=(e,t)=>e.indexOf(t)>=0,ea=(e,t)=>e.concat(t),Xt=(e,t,n)=>(!ba(t)&&Rl(t)?Array.prototype.push.apply(e,t):e.push(t),e),go=e=>Array.from(e||[]),Cl=e=>hr(e)?e:!ba(e)&&Rl(e)?go(e):[e],vE=e=>!!e&&!e.length,UE=e=>go(new Set(e)),Ar=(e,t,n)=>{bt(e,r=>r?r.apply(void 0,t||[]):!0),n||(e.length=0)},Hy="paddingTop",$y="paddingRight",Gy="paddingLeft",Vy="paddingBottom",xy="marginLeft",wy="marginRight",Yy="marginBottom",Ol="overflowX",Dl="overflowY",TS="width",lS="height",Vs="visible",Kr="hidden",ta="scroll",Rdt=e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""},uS=(e,t,n,s)=>{if(e&&t){let r=!0;return bt(n,(o=>{const _=e[o],a=t[o];_!==a&&(r=!1)})),r}return!1},ky=(e,t)=>uS(e,t,["w","h"]),lE=(e,t)=>uS(e,t,["x","y"]),Cdt=(e,t)=>uS(e,t,["t","r","b","l"]),ot=(e,...t)=>e.bind(0,...t),Y_=e=>{let t;const n=e?Sl:Al,s=e?By:Uy;return[r=>{s(t),t=n((()=>r()),os(e)?e():e)},()=>s(t)]},Uf=e=>{const t=os(e)?e():e;if(Io(t)){const n=t?Sl:Al,s=t?By:Uy;return r=>{const o=n((()=>r()),t);return()=>{s(o)}}}return t&&t._},Ky=(e,t)=>{const{p:n,v:s,S:r,m:o}=t||{};let _,a,c,i;const E=function(T){a&&a(),_&&_(),i=a=_=c=void 0,e.apply(this,T)},S=I=>o&&c?o(c,I):I,R=()=>{a&&c&&E(S(c)||c)},C=function(){const T=go(arguments),u=Uf(n);if(u){const d=typeof r=="function"?r():r,f=Uf(s),N=S(T)||T,h=E.bind(0,N);a&&a(),d&&!i?(h(),i=!0,a=u((()=>i=void 0))):(a=u(h),f&&!_&&(_=f(R))),c=N}else E(T)};return C.O=R,C},jy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),jn=e=>e?Object.keys(e):[],pt=(e,t,n,s,r,o,_)=>{const a=[t,n,s,r,o,_];return(typeof e!="object"||CS(e))&&!os(e)&&(e={}),bt(a,(c=>{bt(c,((i,E)=>{const S=c[E];if(e===S)return!0;const R=hr(S);if(S&&Ni(S)){const C=e[E];let I=C;R&&!hr(C)?I=[]:!R&&!Ni(C)&&(I={}),e[E]=pt(I,S)}else e[E]=R?S.slice():S}))})),e},Wy=(e,t)=>bt(pt({},e),((n,s,r)=>{n===void 0?delete r[s]:n&&Ni(n)&&(r[s]=Wy(n))})),Tl=e=>!jn(e).length,di=()=>{},Zy=(e,t,n)=>vy(e,Sdt(t,n)),Xo=e=>UE((hr(e)?e:(e||"").split(" ")).filter((t=>t))),ll=(e,t)=>e&&e.getAttribute(t),Bf=(e,t)=>e&&e.hasAttribute(t),Hs=(e,t,n)=>{bt(Xo(t),(s=>{e&&e.setAttribute(s,String(n||""))}))},cs=(e,t)=>{bt(Xo(t),(n=>e&&e.removeAttribute(n)))},NS=(e,t)=>{const n=Xo(ll(e,t)),s=ot(Hs,e,t),r=(o,_)=>{const a=new Set(n);return bt(Xo(o),(c=>{a[_](c)})),go(a).join(" ")};return{C:o=>s(r(o,"delete")),$:o=>s(r(o,"add")),H:o=>{const _=Xo(o);return _.reduce(((a,c)=>a&&n.includes(c)),_.length>0)}}},Xy=(e,t,n)=>(NS(e,t).C(n),ot(ul,e,t,n)),ul=(e,t,n)=>(NS(e,t).$(n),ot(Xy,e,t,n)),BE=(e,t,n,s)=>(s?ul:Xy)(e,t,n),Nl=(e,t,n)=>NS(e,t).H(n),zy=e=>NS(e,"class"),qy=(e,t)=>{zy(e).C(t)},dl=(e,t)=>(zy(e).$(t),ot(qy,e,t)),Qy=(e,t)=>{const n=t?DS(t)&&t:document;return n?go(n.querySelectorAll(e)):[]},Odt=(e,t)=>{const n=t?DS(t)&&t:document;return n&&n.querySelector(e)},EO=(e,t)=>DS(e)&&e.matches(t),Jy=e=>EO(e,"body"),AO=e=>e?go(e.childNodes):[],Li=e=>e&&e.parentElement,k_=(e,t)=>DS(e)&&e.closest(t),SO=e=>document.activeElement,Ddt=(e,t,n)=>{const s=k_(e,t),r=e&&Odt(n,s),o=k_(r,t)===s;return s&&r?s===e||r===e||o&&k_(k_(e,n),t)!==s:!1},na=e=>{bt(Cl(e),(t=>{const n=Li(t);t&&n&&n.removeChild(t)}))},Wn=(e,t)=>ot(na,e&&t&&bt(Cl(t),(n=>{n&&e.appendChild(n)})));let eF;const Tdt=()=>eF,ldt=e=>{eF=e},W_=e=>{const t=document.createElement("div");return Hs(t,"class",e),t},tF=e=>{const t=W_(),n=Tdt(),s=e.trim();return t.innerHTML=n?n.createHTML(s):s,bt(AO(t),(r=>na(r)))},bf=(e,t)=>e.getPropertyValue(t)||e[t]||"",nF=e=>{const t=e||0;return isFinite(t)?t:0},zc=e=>nF(parseFloat(e||"")),IO=e=>Math.round(e*1e4)/1e4,rF=e=>`${IO(nF(e))}px`;function fi(e,t){e&&t&&bt(t,((n,s)=>{try{const r=e.style,o=CS(n)||OS(n)?"":Io(n)?rF(n):n;s.indexOf("--")===0?r.setProperty(s,o):r[s]=o}catch{}}))}function Cs(e,t,n){const s=ba(t);let r=s?"":{};if(e){const o=Zn.getComputedStyle(e,n)||e.style;r=s?bf(o,t):go(t).reduce(((_,a)=>(_[a]=bf(o,a),_)),r)}return r}const Hf=(e,t,n)=>{const s=t?`${t}-`:"",r=n?`-${n}`:"",o=`${s}top${r}`,_=`${s}right${r}`,a=`${s}bottom${r}`,c=`${s}left${r}`,i=Cs(e,[o,_,a,c]);return{t:zc(i[o]),r:zc(i[_]),b:zc(i[a]),l:zc(i[c])}},lC=(e,t)=>`translate${yE(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`}`,udt=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),Ndt={w:0,h:0},dS=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Ndt,ddt=e=>dS("inner",e||Zn),Z_=ot(dS,"offset"),sF=ot(dS,"client"),bE=ot(dS,"scroll"),Ll=e=>{const t=parseFloat(Cs(e,TS))||0,n=parseFloat(Cs(e,lS))||0;return{w:t-cO(t),h:n-cO(n)}},uC=e=>e.getBoundingClientRect(),Ldt=e=>!!e&&udt(e),RO=e=>!!(e&&(e[lS]||e[TS])),oF=(e,t)=>{const n=RO(e);return!RO(t)&&n},$f=(e,t,n,s)=>{bt(Xo(t),(r=>{e&&e.removeEventListener(r,n,s)}))},Yt=(e,t,n,s)=>{var r;const o=(r=s&&s.I)!=null?r:!0,_=s&&s.A||!1,a=s&&s.T||!1,c={passive:o,capture:_};return ot(Ar,Xo(t).map((i=>{const E=a?S=>{$f(e,i,E,_),n&&n(S)}:n;return e&&e.addEventListener(i,E,c),ot($f,e,i,E,_)})))},_F=e=>e.stopPropagation(),CO=e=>e.preventDefault(),aF=e=>_F(e)||CO(e),Rs=(e,t)=>{const{x:n,y:s}=Io(t)?{x:t,y:t}:t||{};Io(n)&&(e.scrollLeft=n),Io(s)&&(e.scrollTop=s)},Er=e=>({x:e.scrollLeft,y:e.scrollTop}),iF=()=>({D:{x:0,y:0},M:{x:0,y:0}}),fdt=(e,t)=>{const{D:n,M:s}=e,{w:r,h:o}=t,_=(S,R,C)=>{let I=Ff(S)*C,T=Ff(R)*C;if(I===T){const u=So(S),d=So(R);T=u>d?0:T,I=u<d?0:I}return I=I===T?0:I,[I+0,T+0]},[a,c]=_(n.x,s.x,r),[i,E]=_(n.y,s.y,o);return{D:{x:a,y:i},M:{x:c,y:E}}},NC=({D:e,M:t})=>{const n=(s,r)=>s===0&&s<=r;return{x:n(e.x,t.x),y:n(e.y,t.y)}},Gf=({D:e,M:t},n)=>{const s=(r,o,_)=>Zy(0,1,(r-_)/(r-o)||0);return{x:s(e.x,t.x,n.x),y:s(e.y,t.y,n.y)}},OO=e=>{e&&e.focus&&e.focus({preventScroll:!0,focusVisible:!1})},Vf=(e,t)=>{bt(Cl(t),e)},DO=e=>{const t=new Map,n=(o,_)=>{if(o){const a=t.get(o);Vf((c=>{a&&a[c?"delete":"clear"](c)}),_)}else t.forEach((a=>{a.clear()})),t.clear()},s=(o,_)=>{if(ba(o)){const i=t.get(o)||new Set;return t.set(o,i),Vf((E=>{os(E)&&i.add(E)}),_),ot(n,o,_)}OS(_)&&_&&n();const a=jn(o),c=[];return bt(a,(i=>{const E=o[i];E&&Xt(c,s(i,E))})),ot(Ar,c)},r=(o,_)=>{bt(go(t.get(o)),(a=>{_&&!vE(_)?a.apply(0,_):a()}))};return s(e||{}),[s,n,r]},cF={},EF={},pdt=e=>{bt(e,(t=>bt(t,((n,s)=>{cF[s]=t[s]}))))},AF=(e,t,n)=>jn(e).map((s=>{const{static:r,instance:o}=e[s],[_,a,c]=n||[],i=n?o:r;if(i){const E=n?i(_,a,t):i(t);return(c||EF)[s]=E}})),Ha=e=>EF[e],hdt="__osOptionsValidationPlugin",$a="data-overlayscrollbars",uE="os-environment",qc=`${uE}-scrollbar-hidden`,dC=`${$a}-initialize`,NE="noClipping",xf=`${$a}-body`,Ro=$a,Pdt="host",$s=`${$a}-viewport`,Mdt=Ol,mdt=Dl,gdt="arrange",SF="measuring",ydt="scrolling",IF="scrollbarHidden",Fdt="noContent",TO=`${$a}-padding`,wf=`${$a}-content`,fl="os-size-observer",vdt=`${fl}-appear`,Udt=`${fl}-listener`,Bdt="os-trinsic-observer",bdt="os-theme-none",ur="os-scrollbar",Hdt=`${ur}-rtl`,$dt=`${ur}-horizontal`,Gdt=`${ur}-vertical`,RF=`${ur}-track`,pl=`${ur}-handle`,Vdt=`${ur}-visible`,xdt=`${ur}-cornerless`,Yf=`${ur}-interaction`,kf=`${ur}-unusable`,lO=`${ur}-auto-hide`,Kf=`${lO}-hidden`,jf=`${ur}-wheel`,wdt=`${RF}-interactive`,Ydt=`${pl}-interactive`,kdt="__osSizeObserverPlugin",Kdt=(e,t)=>{const{k:n}=t,[s,r]=e("showNativeOverlaidScrollbars");return[s&&n.x&&n.y,r]},K_=e=>e.indexOf(Vs)===0,jdt=e=>e.replace(`${Vs}-`,""),uO=(e,t)=>{if(e==="auto")return t?ta:Kr;const n=e||Kr;return[Kr,ta,Vs].includes(n)?n:Kr},Wdt=(e,t)=>{const{overflowX:n,overflowY:s}=Cs(e,[Ol,Dl]);return{x:uO(n,t.x),y:uO(s,t.y)}},hl="__osScrollbarsHidingPlugin",Zdt="__osClickScrollPlugin",Wf=e=>JSON.stringify(e,((t,n)=>{if(os(n))throw 0;return n})),Zf=(e,t)=>e?`${t}`.split(".").reduce(((n,s)=>n&&jy(n,s)?n[s]:void 0),e):void 0,Xdt=[0,33],CF=[33,99],OF=[222,666,!0],zdt={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:Xdt,resize:null,event:CF,env:OF},attributes:null,ignoreMutation:null,flowDirectionStyles:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},DF=(e,t)=>{const n={},s=ea(jn(t),jn(e));return bt(s,(r=>{const o=e[r],_=t[r];if(yE(o)&&yE(_))pt(n[r]={},DF(o,_)),Tl(n[r])&&delete n[r];else if(jy(t,r)&&_!==o){let a=!0;if(hr(o)||hr(_))try{Wf(o)===Wf(_)&&(a=!1)}catch{}a&&(n[r]=_)}})),n},Xf=(e,t,n)=>s=>[Zf(e,s),n||Zf(t,s)!==void 0];let TF;const qdt=()=>TF,Qdt=e=>{TF=e};let LC;const Jdt=()=>{const e=(N,h,g)=>{Wn(document.body,N),Wn(document.body,N);const M=sF(N),H=Z_(N),B=Ll(h);return g&&na(N),{x:H.h-M.h+B.h,y:H.w-M.w+B.w}},t=N=>{let h=!1;const g=dl(N,qc);try{h=Cs(N,"scrollbar-width")==="none"||Cs(N,"display","::-webkit-scrollbar")==="none"}catch{}return g(),h},n=`.${uE}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${uE} div{width:200%;height:200%;margin:10px 0}.${qc}{scrollbar-width:none!important}.${qc}::-webkit-scrollbar,.${qc}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=tF(`<div class="${uE}"><div></div><style>${n}</style></div>`)[0],o=r.firstChild,_=r.lastChild,a=qdt();a&&(_.nonce=a);const[c,,i]=DO(),[E,S]=ar({o:e(r,o),i:lE},ot(e,r,o,!0)),[R]=S(),C=t(r),I={x:R.x===0,y:R.y===0},T={elements:{host:null,padding:!C,viewport:N=>C&&Jy(N)&&N,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},u=pt({},zdt),d=ot(pt,{},u),f=ot(pt,{},T),p={P:R,k:I,U:C,J:!!Ei,G:ot(c,"r"),K:f,Z:N=>pt(T,N)&&f(),tt:d,nt:N=>pt(u,N)&&d(),ot:pt({},T),st:pt({},u)};if(cs(r,"style"),na(r),Yt(Zn,"resize",(()=>{i("r",[])})),os(Zn.matchMedia)&&!C&&(!I.x||!I.y)){const N=h=>{const g=Zn.matchMedia(`(resolution: ${Zn.devicePixelRatio}dppx)`);Yt(g,"change",(()=>{h(),N(h)}),{T:!0})};N((()=>{const[h,g]=E();pt(p.P,h),i("r",[g])}))}return p},ys=()=>(LC||(LC=Jdt()),LC),eLt=(e,t,n)=>{let s=!1;const r=n?new WeakMap:!1,o=()=>{s=!0},_=a=>{if(r&&n){const c=n.map((i=>{const[E,S]=i||[];return[S&&E?(a||Qy)(E,e):[],S]}));bt(c,(i=>bt(i[0],(E=>{const S=i[1],R=r.get(E)||[];if(e.contains(E)&&S){const I=Yt(E,S,(T=>{s?(I(),r.delete(E)):t(T)}));r.set(E,Xt(R,I))}else Ar(R),r.delete(E)}))))}};return _(),[o,_]},zf=(e,t,n,s)=>{let r=!1;const{et:o,ct:_,rt:a,it:c,lt:i,ut:E}=s||{},[S,R]=eLt(e,(()=>r&&n(!0)),a),C=o||[],I=_||[],T=ea(C,I),u=(f,p)=>{if(!vE(p)){const N=i||di,h=E||di,g=[],M=[];let H=!1,B=!1;if(bt(p,(P=>{const{attributeName:m,target:v,type:X,oldValue:W,addedNodes:Oe,removedNodes:_e}=P,Ne=X==="attributes",pe=X==="childList",fe=e===v,je=Ne&&m,Re=je&&ll(v,m||""),ue=ba(Re)?Re:null,q=je&&W!==ue,Se=by(I,m)&&q;if(t&&(pe||!fe)){const oe=Ne&&q,Pe=oe&&c&&EO(v,c),Ae=(Pe?!N(v,m,W,ue):!Ne||oe)&&!h(P,!!Pe,e,s);bt(Oe,(ge=>Xt(g,ge))),bt(_e,(ge=>Xt(g,ge))),B=B||Ae}!t&&fe&&q&&!N(v,m,W,ue)&&(Xt(M,m),H=H||Se)})),R((P=>UE(g).reduce(((m,v)=>(Xt(m,Qy(P,v)),EO(v,P)?Xt(m,v):m)),[]))),t)return!f&&B&&n(!1),[!1];if(!vE(M)||H){const P=[UE(M),H];return f||n.apply(0,P),P}}},d=new Idt(ot(u,!1));return[()=>(d.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:T,subtree:t,childList:t,characterData:t}),r=!0,()=>{r&&(S(),d.disconnect(),r=!1)}),()=>{if(r)return u(!0,d.takeRecords())}]};let $o=null;const lF=(e,t,n)=>{const{ft:s}=n||{},r=Ha(kdt),[o]=ar({o:!1,u:!0});return()=>{const _=[],c=tF(`<div class="${fl}"><div class="${Udt}"></div></div>`)[0],i=c.firstChild,E=S=>{const R=hr(S)&&!vE(S);let C=!1,I=!1;if(R){const T=S[0],[u,,d]=o(T.contentRect),f=RO(u);I=oF(u,d),C=!I&&!f}else I=S===!0;C||t({_t:!0,ft:I})};if(w_){if(!OS($o)){const I=new w_(di);I.observe(e,{get box(){$o=!0}}),$o=$o||!1,I.disconnect()}const S=Ky(E,{p:0,v:0}),R=I=>S(I),C=new w_(R);if(C.observe($o?e:i),Xt(_,[()=>{C.disconnect()},!$o&&Wn(e,c)]),$o){const I=new w_(R);I.observe(e,{box:"border-box"}),Xt(_,(()=>I.disconnect()))}}else if(r){const[S,R]=r(i,E,s);Xt(_,ea([dl(c,vdt),Yt(c,"animationstart",S),Wn(e,c)],R))}else return di;return ot(Ar,_)}},tLt=(e,t)=>{let n;const s=c=>c.h===0||c.isIntersecting||c.intersectionRatio>0,r=W_(Bdt),[o]=ar({o:!1}),_=(c,i)=>{if(c){const E=o(s(c)),[,S]=E;return S&&!i&&t(E)&&[E]}},a=(c,i)=>_(i.pop(),c);return[()=>{const c=[];if(vf)n=new vf(ot(a,!1),{root:e}),n.observe(r),Xt(c,(()=>{n.disconnect()}));else{const i=()=>{const E=Z_(r);_(E)};Xt(c,lF(r,i)()),i()}return ot(Ar,Xt(c,Wn(e,r)))},()=>n&&a(!0,n.takeRecords())]},nLt=(e,t,n,s)=>{let r,o,_,a,c,i,E,S;const R=`[${Ro}]`,C=`[${$s}]`,I=["id","class","style","open","wrap","cols","rows"],{dt:T,vt:u,L:d,gt:f,ht:p,V:N,bt:h,wt:g,yt:M,St:H}=e,B=Ie=>Cs(Ie,"direction")==="rtl",P=()=>{let Ie,Ae,ge;const Me=Ky(s,{p:()=>Ie,v:()=>Ae,S:()=>ge,m(qe,Et){const[Ye]=qe,[St]=Et;return[ea(jn(Ye),jn(St)).reduce(((Je,Dt)=>(Je[Dt]=Ye[Dt]||St[Dt],Je)),{})]}}),$e=(qe,Et)=>{if(hr(Et)){const[Ye,St,Je]=Et;Ie=Ye,Ae=St,ge=Je}else Io(Et)?(Ie=Et,Ae=!1,ge=!1):(Ie=!1,Ae=!1,ge=!1);Me(qe)};return $e.O=Me.O,$e},m={Ot:!1,B:B(T)},v=ys(),X=Ha(hl),[W]=ar({i:ky,o:{w:0,h:0}},(()=>{const Ie=X&&X.R(e,t,m,v,n).Y,ge=!(h&&N)&&Nl(u,Ro,NE),Me=!N&&g(gdt),$e=Me&&Er(f),qe=$e&&H(),Et=M(SF,ge),Ye=Me&&Ie&&Ie(),St=bE(d),Je=Ll(d);return Ye&&Ye(),Rs(f,$e),qe&&qe(),ge&&Et(),{w:St.w+Je.w,h:St.h+Je.h}})),Oe=P(),_e=Ie=>{const Ae=B(T);pt(Ie,{Ct:S!==Ae}),pt(m,{B:Ae}),S=Ae},Ne=(Ie,Ae)=>{const[ge,Me]=Ie,$e={$t:Me};return pt(m,{Ot:ge}),Ae||s($e),$e},pe=({_t:Ie,ft:Ae})=>{const ge=Ae?s:Oe,Me={_t:Ie||Ae,ft:Ae};_e(Me),ge(Me,o)},fe=(Ie,Ae)=>{const[,ge]=W(),Me={xt:ge};return _e(Me),ge&&!Ae&&Oe(Me,Ie?_:r),Me},je=(Ie,Ae,ge)=>{const Me={Ht:Ae};return _e(Me),Ae&&!ge&&Oe(Me,r),Me},[Re,ue]=p?tLt(u,Ne):[],q=!N&&lF(u,pe,{ft:!0}),[Se,oe]=zf(u,!1,je,{ct:I,et:I}),Pe=N&&w_&&new w_((Ie=>{const Ae=Ie[Ie.length-1].contentRect;pe({_t:!0,ft:oF(Ae,E)}),E=Ae}));return[()=>{Pe&&Pe.observe(u);const Ie=q&&q(),Ae=Re&&Re(),ge=Se(),Me=v.G(($e=>{const[,qe]=W();Oe({Et:$e,xt:qe,_t:h},a)}));return()=>{Pe&&Pe.disconnect(),Ie&&Ie(),Ae&&Ae(),i&&i(),ge(),Me()}},({zt:Ie,It:Ae,At:ge})=>{const Me={},[$e]=Ie("update.ignoreMutation"),[qe,Et]=Ie("update.attributes"),[Ye,St]=Ie("update.elementEvents"),[Je,Dt]=Ie("update.debounce"),Pt=St||Et,lt=Ae||ge,ut=Nt=>os($e)&&$e(Nt);if(Pt){c&&c(),i&&i();const[Nt,It]=zf(p||d,!0,fe,{et:ea(I,qe||[]),rt:Ye,it:R,ut:(Lt,$t)=>{const{target:xn,attributeName:Fn}=Lt;return(!$t&&Fn&&!N?Ddt(xn,R,C):!1)||!!k_(xn,`.${ur}`)||!!ut(Lt)}});i=Nt(),c=It}if(Dt&&(Oe.O(),hr(Je)||Io(Je)?(r=Je,o=!1,_=CF,a=OF):Ni(Je)?(r=Je.mutation,o=Je.resize,_=Je.event,a=Je.env):(r=!1,o=!1,_=!1,a=!1)),lt){const Nt=oe(),It=ue&&ue(),Lt=c&&c();Nt&&pt(Me,je(Nt[0],Nt[1],lt)),It&&pt(Me,Ne(It[0],lt)),Lt&&pt(Me,fe(Lt[0],lt))}return _e(Me),Me},m]},uF=(e,t)=>os(t)?t.apply(0,e):t,rLt=(e,t,n,s)=>{const r=Il(s)?n:s;return uF(e,r)||t.apply(0,e)},NF=(e,t,n,s)=>{const r=Il(s)?n:s,o=uF(e,r);return!!o&&(FE(o)?o:t.apply(0,e))},sLt=(e,t)=>{const{nativeScrollbarsOverlaid:n,body:s}=t||{},{k:r,U:o,K:_}=ys(),{nativeScrollbarsOverlaid:a,body:c}=_().cancel,i=n??a,E=Il(s)?c:s,S=(r.x||r.y)&&i,R=e&&(CS(E)?!o:E);return!!S||!!R},oLt=(e,t,n,s)=>{const r="--os-viewport-percent",o="--os-scroll-percent",_="--os-scroll-direction",{K:a}=ys(),{scrollbars:c}=a(),{slot:i}=c,{dt:E,vt:S,L:R,Tt:C,gt:I,bt:T,V:u}=t,{scrollbars:d}=C?{}:e,{slot:f}=d||{},p=[],N=[],h=[],g=NF([E,S,R],(()=>u&&T?E:S),i,f),M=Re=>{if(Ei){let ue=null,q=[];const Se=new Ei({source:I,axis:Re}),oe=()=>{ue&&ue.cancel(),ue=null};return{kt:Ie=>{const{Dt:Ae}=n,ge=NC(Ae)[Re],Me=Re==="x",$e=[lC(0,Me),lC(`calc(-100% + 100cq${Me?"w":"h"})`,Me)],qe=ge?$e:$e.reverse();return q[0]===qe[0]&&q[1]===qe[1]||(q=qe,oe(),ue=Ie.Mt.animate({clear:["left"],transform:qe},{timeline:Se})),oe}}}},H={x:M("x"),y:M("y")},B=()=>{const{Rt:Re,Vt:ue}=n,q=(Se,oe)=>Zy(0,1,Se/(Se+oe)||0);return{x:q(ue.x,Re.x),y:q(ue.y,Re.y)}},P=(Re,ue,q)=>{const Se=q?dl:qy;bt(Re,(oe=>{Se(oe.Lt,ue)}))},m=(Re,ue)=>{bt(Re,(q=>{const[Se,oe]=ue(q);fi(Se,oe)}))},v=(Re,ue,q)=>{const Se=OS(q),oe=Se?q:!0,Pe=Se?!q:!0;oe&&P(N,Re,ue),Pe&&P(h,Re,ue)},X=()=>{const Re=B(),ue=q=>Se=>[Se.Lt,{[r]:IO(q)+""}];m(N,ue(Re.x)),m(h,ue(Re.y))},W=()=>{if(!Ei){const{Dt:Re}=n,ue=Gf(Re,Er(I)),q=Se=>oe=>[oe.Lt,{[o]:IO(Se)+""}];m(N,q(ue.x)),m(h,q(ue.y))}},Oe=()=>{const{Dt:Re}=n,ue=NC(Re),q=Se=>oe=>[oe.Lt,{[_]:Se?"0":"1"}];m(N,q(ue.x)),m(h,q(ue.y)),Ei&&(N.forEach(H.x.kt),h.forEach(H.y.kt))},_e=()=>{if(u&&!T){const{Rt:Re,Dt:ue}=n,q=NC(ue),Se=Gf(ue,Er(I)),oe=Pe=>{const{Lt:Ie}=Pe,Ae=Li(Ie)===R&&Ie,ge=(Me,$e,qe)=>{const Et=$e*Me;return rF(qe?Et:-Et)};return[Ae,Ae&&{transform:lC({x:ge(Se.x,Re.x,q.x),y:ge(Se.y,Re.y,q.y)})}]};m(N,oe),m(h,oe)}},Ne=Re=>{const ue=Re?"x":"y",Se=W_(`${ur} ${Re?$dt:Gdt}`),oe=W_(RF),Pe=W_(pl),Ie={Lt:Se,Ut:oe,Mt:Pe},Ae=H[ue];return Xt(Re?N:h,Ie),Xt(p,[Wn(Se,oe),Wn(oe,Pe),ot(na,Se),Ae&&Ae.kt(Ie),s(Ie,v,Re)]),Ie},pe=ot(Ne,!0),fe=ot(Ne,!1),je=()=>(Wn(g,N[0].Lt),Wn(g,h[0].Lt),ot(Ar,p));return pe(),fe(),[{Pt:X,Nt:W,qt:Oe,Bt:_e,Ft:v,jt:{Xt:N,Yt:pe,Wt:ot(m,N)},Jt:{Xt:h,Yt:fe,Wt:ot(m,h)}},je]},_Lt=(e,t,n,s)=>(r,o,_)=>{const{vt:a,L:c,V:i,gt:E,Gt:S,St:R}=t,{Lt:C,Ut:I,Mt:T}=r,[u,d]=Y_(333),[f,p]=Y_(444),N=M=>{os(E.scrollBy)&&E.scrollBy({behavior:"smooth",left:M.x,top:M.y})},h=()=>{const M="pointerup pointercancel lostpointercapture",H=`client${_?"X":"Y"}`,B=_?TS:lS,P=_?"left":"top",m=_?"w":"h",v=_?"x":"y",X=(Oe,_e)=>Ne=>{const{Rt:pe}=n,fe=Z_(I)[m]-Z_(T)[m],Re=_e*Ne/fe*pe[v];Rs(E,{[v]:Oe+Re})},W=[];return Yt(I,"pointerdown",(Oe=>{const _e=k_(Oe.target,`.${pl}`)===T,Ne=_e?T:I,pe=e.scrollbars,fe=pe[_e?"dragScroll":"clickScroll"],{button:je,isPrimary:Re,pointerType:ue}=Oe,{pointers:q}=pe;if(je===0&&Re&&fe&&(q||[]).includes(ue)){Ar(W),p();const oe=!_e&&(Oe.shiftKey||fe==="instant"),Pe=ot(uC,T),Ie=ot(uC,I),Ae=(It,Lt)=>(It||Pe())[P]-(Lt||Ie())[P],ge=cO(uC(E)[B])/Z_(E)[m]||1,Me=X(Er(E)[v],1/ge),$e=Oe[H],qe=Pe(),Et=Ie(),Ye=qe[B],St=Ae(qe,Et)+Ye/2,Je=$e-Et[P],Dt=_e?0:Je-St,Pt=It=>{Ar(Nt),Ne.releasePointerCapture(It.pointerId)},lt=_e||oe,ut=R(),Nt=[Yt(S,M,Pt),Yt(S,"selectstart",(It=>CO(It)),{I:!1}),Yt(I,M,Pt),lt&&Yt(I,"pointermove",(It=>Me(Dt+(It[H]-$e)))),lt&&(()=>{const It=Er(E);ut();const Lt=Er(E),$t={x:Lt.x-It.x,y:Lt.y-It.y};(So($t.x)>3||So($t.y)>3)&&(R(),Rs(E,It),N($t),f(ut))})];if(Ne.setPointerCapture(Oe.pointerId),oe)Me(Dt);else if(!_e){const It=Ha(Zdt);if(It){const Lt=It(Me,Dt,Ye,($t=>{$t?ut():Xt(Nt,ut)}));Xt(Nt,Lt),Xt(W,ot(Lt,!0))}}}}))};let g=!0;return ot(Ar,[Yt(T,"pointermove pointerleave",s),Yt(C,"pointerenter",(()=>{o(Yf,!0)})),Yt(C,"pointerleave pointercancel",(()=>{o(Yf,!1)})),!i&&Yt(C,"mousedown",(()=>{const M=SO();(Bf(M,$s)||Bf(M,Ro)||M===document.body)&&Sl(ot(OO,c),25)})),Yt(C,"wheel",(M=>{const{deltaX:H,deltaY:B,deltaMode:P}=M;g&&P===0&&Li(C)===a&&N({x:H,y:B}),g=!1,o(jf,!0),u((()=>{g=!0,o(jf)})),CO(M)}),{I:!1,A:!0}),Yt(C,"pointerdown",(()=>{const M=Yt(S,"click",(B=>{H(),aF(B)}),{T:!0,A:!0,I:!1}),H=Yt(S,"pointerup pointercancel",(()=>{H(),setTimeout(M,150)}),{A:!0,I:!0})}),{A:!0,I:!0}),h(),d,p])},aLt=(e,t,n,s,r,o)=>{let _,a,c,i,E,S=di,R=0;const C=["mouse","pen"],I=q=>C.includes(q.pointerType),[T,u]=Y_(),[d,f]=Y_(100),[p,N]=Y_(100),[h,g]=Y_((()=>R)),[M,H]=oLt(e,r,s,_Lt(t,r,s,(q=>I(q)&&pe()))),{vt:B,Kt:P,bt:m}=r,{Ft:v,Pt:X,Nt:W,qt:Oe,Bt:_e}=M,Ne=(q,Se)=>{if(g(),q)v(Kf);else{const oe=ot(v,Kf,!0);R>0&&!Se?h(oe):oe()}},pe=()=>{(c?!_:!i)&&(Ne(!0),d((()=>{Ne(!1)})))},fe=q=>{v(lO,q,!0),v(lO,q,!1)},je=q=>{I(q)&&(_=c,c&&Ne(!0))},Re=[g,f,N,u,()=>S(),Yt(B,"pointerover",je,{T:!0}),Yt(B,"pointerenter",je),Yt(B,"pointerleave",(q=>{I(q)&&(_=!1,c&&Ne(!1))})),Yt(B,"pointermove",(q=>{I(q)&&a&&pe()})),Yt(P,"scroll",(q=>{T((()=>{W(),pe()})),o(q),_e()}))],ue=Ha(hl);return[()=>ot(Ar,Xt(Re,H())),({zt:q,At:Se,Qt:oe,Zt:Pe})=>{const{tn:Ie,nn:Ae,sn:ge,en:Me}=Pe||{},{Ct:$e,ft:qe}=oe||{},{B:Et}=n,{k:Ye,U:St}=ys(),{cn:Je,j:Dt}=s,[Pt,lt]=q("showNativeOverlaidScrollbars"),[ut,Nt]=q("scrollbars.theme"),[It,Lt]=q("scrollbars.visibility"),[$t,xn]=q("scrollbars.autoHide"),[Fn,Dn]=q("scrollbars.autoHideSuspend"),[Qt]=q("scrollbars.autoHideDelay"),[fn,wn]=q("scrollbars.dragScroll"),[rt,G]=q("scrollbars.clickScroll"),[V,Q]=q("overflow"),De=qe&&!Se,ve=Dt.x||Dt.y,We=Ie||Ae||Me||$e||Se,he=ge||Lt||Q,Xe=Pt&&Ye.x&&Ye.y,Le=!St&&!ue,me=Xe||Le,ye=(Ue,it,dt)=>{const yt=Ue.includes(ta)&&(It===Vs||It==="auto"&&it===ta);return v(Vdt,yt,dt),yt};if(R=Qt,De&&(Fn&&ve?(fe(!1),S(),p((()=>{S=Yt(P,"scroll",ot(fe,!0),{T:!0})}))):fe(!0)),(lt||Le)&&v(bdt,me),Nt&&(v(E),v(ut,!0),E=ut),Dn&&!Fn&&fe(!0),xn&&(a=$t==="move",c=$t==="leave",i=$t==="never",Ne(i,!0)),wn&&v(Ydt,fn),G&&v(wdt,!!rt),he){const Ue=ye(V.x,Je.x,!0),it=ye(V.y,Je.y,!1);v(xdt,!(Ue&&it))}We&&(W(),X(),_e(),Me&&Oe(),v(kf,!Dt.x,!0),v(kf,!Dt.y,!1),v(Hdt,Et&&!m))},{},M]},iLt=e=>{const t=ys(),{K:n,U:s}=t,{elements:r}=n(),{padding:o,viewport:_,content:a}=r,c=FE(e),i=c?{}:e,{elements:E}=i,{padding:S,viewport:R,content:C}=E||{},I=c?e:i.target,T=Jy(I),u=I.ownerDocument,d=u.documentElement,f=()=>u.defaultView||Zn,p=ot(rLt,[I]),N=ot(NF,[I]),h=ot(W_,""),g=ot(p,h,_),M=ot(N,h,a),H=Ye=>{const St=Z_(Ye),Je=bE(Ye),Dt=Cs(Ye,Ol),Pt=Cs(Ye,Dl);return Je.w-St.w>0&&!K_(Dt)||Je.h-St.h>0&&!K_(Pt)},B=g(R),P=B===I,m=P&&T,v=!P&&M(C),X=!P&&B===v,W=m?d:B,Oe=m?W:I,_e=!P&&N(h,o,S),Ne=!X&&v,pe=[Ne,W,_e,Oe].map((Ye=>FE(Ye)&&!Li(Ye)&&Ye)),fe=Ye=>Ye&&by(pe,Ye),je=!fe(W)&&H(W)?W:I,Re=m?d:W,q={dt:I,vt:Oe,L:W,rn:_e,ht:Ne,gt:Re,Kt:m?u:W,ln:T?d:je,Gt:u,bt:T,Tt:c,V:P,an:f,wt:Ye=>Nl(W,$s,Ye),yt:(Ye,St)=>BE(W,$s,Ye,St),St:()=>BE(Re,$s,ydt,!0)},{dt:Se,vt:oe,rn:Pe,L:Ie,ht:Ae}=q,ge=[()=>{cs(oe,[Ro,dC]),cs(Se,dC),T&&cs(d,[dC,Ro])}];let Me=AO([Ae,Ie,Pe,oe,Se].find((Ye=>Ye&&!fe(Ye))));const $e=m?Se:Ae||Ie,qe=ot(Ar,ge);return[q,()=>{const Ye=f(),St=SO(),Je=Nt=>{Wn(Li(Nt),AO(Nt)),na(Nt)},Dt=Nt=>Yt(Nt,"focusin focusout focus blur",aF,{A:!0,I:!1}),Pt="tabindex",lt=ll(Ie,Pt),ut=Dt(St);return Hs(oe,Ro,P?"":Pdt),Hs(Pe,TO,""),Hs(Ie,$s,""),Hs(Ae,wf,""),P||(Hs(Ie,Pt,lt||"-1"),T&&Hs(d,xf,"")),Wn($e,Me),Wn(oe,Pe),Wn(Pe||oe,!P&&Ie),Wn(Ie,Ae),Xt(ge,[ut,()=>{const Nt=SO(),It=fe(Ie),Lt=It&&Nt===Ie?Se:Nt,$t=Dt(Lt);cs(Pe,TO),cs(Ae,wf),cs(Ie,$s),T&&cs(d,xf),lt?Hs(Ie,Pt,lt):cs(Ie,Pt),fe(Ae)&&Je(Ae),It&&Je(Ie),fe(Pe)&&Je(Pe),OO(Lt),$t()}]),s&&!P&&(ul(Ie,$s,IF),Xt(ge,ot(cs,Ie,$s))),OO(!P&&T&&St===Se&&Ye.top===Ye?Ie:St),ut(),Me=0,qe},qe]},cLt=({ht:e})=>({Qt:t,un:n,At:s})=>{const{$t:r}=t||{},{Ot:o}=n;e&&(r||s)&&fi(e,{[lS]:o&&"100%"})},ELt=({vt:e,rn:t,L:n,V:s},r)=>{const[o,_]=ar({i:Cdt,o:Hf()},ot(Hf,e,"padding",""));return({zt:a,Qt:c,un:i,At:E})=>{let[S,R]=_(E);const{U:C}=ys(),{_t:I,xt:T,Ct:u}=c||{},{B:d}=i,[f,p]=a("paddingAbsolute");(I||R||(E||T))&&([S,R]=o(E));const h=!s&&(p||u||R);if(h){const g=!f||!t&&!C,M=S.r+S.l,H=S.t+S.b,B={[wy]:g&&!d?-M:0,[Yy]:g?-H:0,[xy]:g&&d?-M:0,top:g?-S.t:0,right:g?d?-S.r:"auto":0,left:g?d?"auto":-S.l:0,[TS]:g&&`calc(100% + ${M}px)`},P={[Hy]:g?S.t:0,[$y]:g?S.r:0,[Vy]:g?S.b:0,[Gy]:g?S.l:0};fi(t||n,B),fi(n,P),pt(r,{rn:S,fn:!g,F:t?P:pt({},B,P)})}return{_n:h}}},ALt=(e,t)=>{const n=ys(),{vt:s,rn:r,L:o,V:_,Kt:a,gt:c,bt:i,yt:E,an:S}=e,{U:R}=n,C=i&&_,I=ot(vy,0),T={display:()=>!1,direction:Se=>Se!=="ltr",flexDirection:Se=>Se.endsWith("-reverse"),writingMode:Se=>Se!=="horizontal-tb"},u=jn(T),d={i:ky,o:{w:0,h:0}},f={i:lE,o:{}},p=Se=>{E(SF,!C&&Se)},N=()=>Cs(o,u),h=(Se,oe)=>{const Pe=!jn(Se).length,Ie=!oe&&u.some((lt=>{const ut=Se[lt];return ba(ut)&&T[lt](ut)}));if(Pe&&!Ie||!Ldt(o))return{D:{x:0,y:0},M:{x:1,y:1}};p(!0);const ge=Er(c),Me=Yt(a,ta,(lt=>{const ut=Er(c);lt.isTrusted&&ut.x===ge.x&&ut.y===ge.y&&_F(lt)}),{A:!0,T:!0}),$e=E(Fdt,!0);Rs(c,{x:0,y:0}),$e();const qe=Er(c),Et=bE(c);Rs(c,{x:Et.w,y:Et.h});const Ye=Er(c),St={x:Ye.x-qe.x,y:Ye.y-qe.y};Rs(c,{x:-Et.w,y:-Et.h});const Je=Er(c),Dt={x:Je.x-qe.x,y:Je.y-qe.y},Pt={x:So(St.x)>=So(Dt.x)?Ye.x:Je.x,y:So(St.y)>=So(Dt.y)?Ye.y:Je.y};return Rs(c,ge),Al((()=>Me())),{D:qe,M:Pt}},g=(Se,oe)=>{const Pe=Zn.devicePixelRatio%1!==0?1:0,Ie={w:I(Se.w-oe.w),h:I(Se.h-oe.h)};return{w:Ie.w>Pe?Ie.w:0,h:Ie.h>Pe?Ie.h:0}},M=(Se,oe)=>{const Pe=(Ie,Ae,ge,Me)=>{const $e=Ie===Vs?Kr:jdt(Ie),qe=K_(Ie),Et=K_(ge);return!Ae&&!Me?Kr:qe&&Et?Vs:qe?Ae&&Me?$e:Ae?Vs:Kr:Ae?$e:Et&&Me?Vs:Kr};return{x:Pe(oe.x,Se.x,oe.y,Se.y),y:Pe(oe.y,Se.y,oe.x,Se.x)}},H=Se=>{const oe=Ie=>[Vs,Kr,ta].map((Ae=>q(uO(Ae),Ie))),Pe=oe(!0).concat(oe()).join(" ");E(Pe),E(jn(Se).map((Ie=>q(Se[Ie],Ie==="x"))).join(" "),!0)},[B,P]=ar(d,ot(Ll,o)),[m,v]=ar(d,ot(bE,o)),[X,W]=ar(d),[Oe]=ar(f),[_e,Ne]=ar(d),[pe]=ar(f),[fe]=ar({i:(Se,oe)=>uS(Se,oe,UE(ea(jn(Se),jn(oe)))),o:{}}),[je,Re]=ar({i:(Se,oe)=>lE(Se.D,oe.D)&&lE(Se.M,oe.M),o:iF()}),ue=Ha(hl),q=(Se,oe)=>`${oe?Mdt:mdt}${Rdt(Se)}`;return({zt:Se,Qt:oe,un:Pe,At:Ie},{_n:Ae})=>{const{_t:ge,Ht:Me,xt:$e,Ct:qe,ft:Et,Et:Ye}=oe||{},St=ue&&ue.R(e,t,Pe,n,Se),{X:Je,Y:Dt,W:Pt}=St||{},[lt,ut]=Kdt(Se,n),[Nt,It]=Se("overflow"),Lt=K_(Nt.x),$t=K_(Nt.y),xn=ge||Ae||$e||qe||Ye||ut;let Fn=P(Ie),Dn=v(Ie),Qt=W(Ie),fn=Ne(Ie);if(ut&&R&&E(IF,!lt),xn){Nl(s,Ro,NE)&&p(!0);const Ga=Dt&&Dt(),[vn]=Fn=B(Ie),[yo]=Dn=m(Ie),Fo=sF(o),vo=C&&ddt(S()),lc={w:I(yo.w+vn.w),h:I(yo.h+vn.h)},Va={w:I((vo?vo.w:Fo.w+I(Fo.w-yo.w))+vn.w),h:I((vo?vo.h:Fo.h+I(Fo.h-yo.h))+vn.h)};Ga&&Ga(),fn=_e(Va),Qt=X(g(lc,Va),Ie)}const[wn,rt]=fn,[G,V]=Qt,[Q,De]=Dn,[ve,We]=Fn,[he,Xe]=Oe({x:G.w>0,y:G.h>0}),Le=Lt&&$t&&(he.x||he.y)||Lt&&he.x&&!he.y||$t&&he.y&&!he.x,me=Ae||qe||Ye||We||De||rt||V||It||ut||xn||Me&&C,[ye]=Se("update.flowDirectionStyles"),[Ue,it]=fe(ye?ye(o):N(),Ie),dt=qe||Et||it||Xe||Ie,[yt,pn]=dt?je(h(Ue,!!ye),Ie):Re();let Yr=M(he,Nt);p(!1),me&&(H(Yr),Yr=Wdt(o,he),Pt&&Je&&(Je(Yr,Q,ve),fi(o,Pt(Yr))));const[P_,_s]=pe(Yr);return BE(s,Ro,NE,Le),BE(r,TO,NE,Le),pt(t,{cn:P_,Vt:{x:wn.w,y:wn.h},Rt:{x:G.w,y:G.h},j:he,Dt:fdt(yt,G)}),{sn:_s,tn:rt,nn:V,en:pn||V}}},SLt=e=>{const[t,n,s]=iLt(e),r={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{[wy]:0,[Yy]:0,[xy]:0,[Hy]:0,[$y]:0,[Vy]:0,[Gy]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},cn:{x:Kr,y:Kr},j:{x:!1,y:!1},Dt:iF()},{dt:o,gt:_,V:a,St:c}=t,{U:i,k:E}=ys(),S=!i&&(E.x||E.y),R=[cLt(t),ELt(t,r),ALt(t,r)];return[n,C=>{const I={},u=S&&Er(_),d=u&&c();return bt(R,(f=>{pt(I,f(C,I)||{})})),Rs(_,u),d&&d(),a||Rs(o,0),I},r,t,s]},ILt=(e,t,n,s,r)=>{let o=!1;const _=Xf(t,{}),[a,c,i,E,S]=SLt(e),[R,C,I]=nLt(E,i,_,(N=>{p({},N)})),[T,u,,d]=aLt(e,t,I,i,E,r),f=N=>jn(N).some((h=>!!N[h])),p=(N,h)=>{if(n())return!1;const{dn:g,At:M,It:H,pn:B}=N,P=g||{},m=!!M||!o,v={zt:Xf(t,P,m),dn:P,At:m};if(B)return u(v),!1;const X=h||C(pt({},v,{It:H})),W=c(pt({},v,{un:I,Qt:X}));u(pt({},v,{Qt:X,Zt:W}));const Oe=f(X),_e=f(W),Ne=Oe||_e||!Tl(P)||m;return o=!0,Ne&&s(N,{Qt:X,Zt:W}),Ne};return[()=>{const{ln:N,gt:h,St:g}=E,M=Er(N),H=[R(),a(),T()],B=g();return Rs(h,M),B(),ot(Ar,H)},p,()=>({vn:I,gn:i}),{hn:E,bn:d},S]},Pl=new WeakMap,RLt=(e,t)=>{Pl.set(e,t)},CLt=e=>{Pl.delete(e)},dF=e=>Pl.get(e),jr=(e,t,n)=>{const{tt:s}=ys(),r=FE(e),o=r?e:e.target,_=dF(o);if(t&&!_){let a=!1;const c=[],i={},E=P=>{const m=Wy(P),v=Ha(hdt);return v?v(m,!0):m},S=pt({},s(),E(t)),[R,C,I]=DO(),[T,u,d]=DO(n),f=(P,m)=>{d(P,m),I(P,m)},[p,N,h,g,M]=ILt(e,S,(()=>a),(({dn:P,At:m},{Qt:v,Zt:X})=>{const{_t:W,Ct:Oe,$t:_e,xt:Ne,Ht:pe,ft:fe}=v,{tn:je,nn:Re,sn:ue,en:q}=X;f("updated",[B,{updateHints:{sizeChanged:!!W,directionChanged:!!Oe,heightIntrinsicChanged:!!_e,overflowEdgeChanged:!!je,overflowAmountChanged:!!Re,overflowStyleChanged:!!ue,scrollCoordinatesChanged:!!q,contentMutation:!!Ne,hostMutation:!!pe,appear:!!fe},changedOptions:P||{},force:!!m}])}),(P=>f("scroll",[B,P]))),H=P=>{CLt(o),Ar(c),a=!0,f("destroyed",[B,P]),C(),u()},B={options(P,m){if(P){const v=m?s():{},X=DF(S,pt(v,E(P)));Tl(X)||(pt(S,X),N({dn:X}))}return pt({},S)},on:T,off:(P,m)=>{P&&m&&u(P,m)},state(){const{vn:P,gn:m}=h(),{B:v}=P,{Vt:X,Rt:W,cn:Oe,j:_e,rn:Ne,fn:pe,Dt:fe}=m;return pt({},{overflowEdge:X,overflowAmount:W,overflowStyle:Oe,hasOverflow:_e,scrollCoordinates:{start:fe.D,end:fe.M},padding:Ne,paddingAbsolute:pe,directionRTL:v,destroyed:a})},elements(){const{dt:P,vt:m,rn:v,L:X,ht:W,gt:Oe,Kt:_e}=g.hn,{jt:Ne,Jt:pe}=g.bn,fe=Re=>{const{Mt:ue,Ut:q,Lt:Se}=Re;return{scrollbar:Se,track:q,handle:ue}},je=Re=>{const{Xt:ue,Yt:q}=Re,Se=fe(ue[0]);return pt({},Se,{clone:()=>{const oe=fe(q());return N({pn:!0}),oe}})};return pt({},{target:P,host:m,padding:v||X,viewport:X,content:W||X,scrollOffsetElement:Oe,scrollEventElement:_e,scrollbarHorizontal:je(Ne),scrollbarVertical:je(pe)})},update:P=>N({At:P,It:!0}),destroy:ot(H,!1),plugin:P=>i[jn(P)[0]]};return Xt(c,[M]),RLt(o,B),AF(cF,jr,[B,R,i]),sLt(g.hn.bt,!r&&e.cancel)?(H(!0),B):(Xt(c,p()),f("initialized",[B]),B.update(),B)}return _};jr.plugin=e=>{const t=hr(e),n=t?e:[e],s=n.map((r=>AF(r,jr)[0]));return pdt(n),t?s:s[0]};jr.valid=e=>{const t=e&&e.elements,n=os(t)&&t();return Ni(n)&&!!dF(n.target)};jr.env=()=>{const{P:e,k:t,U:n,J:s,ot:r,st:o,K:_,Z:a,tt:c,nt:i}=ys();return pt({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:s,staticDefaultInitialization:r,staticDefaultOptions:o,getDefaultInitialization:_,setDefaultInitialization:a,getDefaultOptions:c,setDefaultOptions:i})};jr.nonce=Qdt;jr.trustedTypePolicy=ldt;const OLt=()=>{if(typeof window>"u"){const i=()=>{};return[i,i]}let e,t;const n=window,s=typeof n.requestIdleCallback=="function",r=n.requestAnimationFrame,o=n.cancelAnimationFrame,_=s?n.requestIdleCallback:r,a=s?n.cancelIdleCallback:o,c=()=>{a(e),o(t)};return[(i,E)=>{c(),e=_(s?()=>{c(),t=r(i)}:i,typeof E=="object"?E:{timeout:2233})},c]},DLt=e=>{const{options:t,events:n,defer:s}=e||{},[r,o]=$.useMemo(OLt,[]),_=$.useRef(null),a=$.useRef(s),c=$.useRef(t),i=$.useRef(n);return $.useEffect(()=>{a.current=s},[s]),$.useEffect(()=>{const{current:E}=_;c.current=t,jr.valid(E)&&E.options(t||{},!0)},[t]),$.useEffect(()=>{const{current:E}=_;i.current=n,jr.valid(E)&&E.on(n||{},!0)},[n]),$.useEffect(()=>()=>{var E;o(),(E=_.current)==null||E.destroy()},[]),$.useMemo(()=>[E=>{const S=_.current;if(jr.valid(S))return;const R=a.current,C=c.current||{},I=i.current||{},T=()=>_.current=jr(E,C,I);R?r(T,R):T()},()=>_.current],[])},TLt=(e,t)=>{const{element:n="div",options:s,events:r,defer:o,children:_,...a}=e,c=n,i=$.useRef(null),E=$.useRef(null),[S,R]=DLt({options:s,events:r,defer:o});return $.useEffect(()=>{const{current:C}=i,{current:I}=E;if(!C)return;const T=C;return S(n==="body"?{target:T,cancel:{body:null}}:{target:T,elements:{viewport:I,content:I}}),()=>{var u;return(u=R())==null?void 0:u.destroy()}},[S,n]),$.useImperativeHandle(t,()=>({osInstance:R,getElement:()=>i.current}),[]),$.createElement(c,{"data-overlayscrollbars-initialize":"",ref:i,...a},n==="body"?_:$.createElement("div",{"data-overlayscrollbars-contents":"",ref:E},_))},lLt=$.forwardRef(TLt),uLt="_scroll_12rza_1",NLt="_gradient_12rza_21",Qa={scroll:uLt,gradient:NLt},wr=({children:e,extendedItemSelector:t,extendedScrollDelay:n,extendedScrollOffset:s=20,initialScrollPosition:r,onScrollTop:o,className:_,maxHeight:a=580})=>{const c=$.useRef(null),i=()=>{const E=c.current?.osInstance();if(!E)return;const{content:S,host:R}=E.elements(),C=R.classList.contains(Qa.gradient),I=Math.floor((S.scrollHeight-S.scrollTop)/10)*10,T=Math.floor(S.clientHeight/10)*10;if(o?.(S.scrollTop),I===T){if(!C)return;R.classList.remove(Qa.gradient)}else{if(C)return;R.classList.add(Qa.gradient)}};return $.useEffect(()=>{if(!r)return;const E=c.current?.osInstance();if(!E)return;const{content:S}=E.elements();S.scrollBy({top:r,behavior:"instant"})},[r]),$.useEffect(()=>{const E=c.current?.osInstance();if(!E)return;const{content:S,host:R}=E.elements(),C=new ResizeObserver(()=>{const I=Math.floor(S.scrollHeight/10)*10>Math.floor(S.clientHeight/10)*10;R.classList.toggle(Qa.gradient,I)});return C.observe(S),()=>C.disconnect()},[]),$.useEffect(()=>{const E=c.current?.osInstance();if(!E||!t)return;const{content:S}=E.elements(),R=C=>{const I=C.target.closest(t);I&&setTimeout(()=>{const{bottom:T}=S.getBoundingClientRect(),{bottom:u}=I.getBoundingClientRect();u>T&&S.scrollBy({top:u-T+s,behavior:"smooth"})},n)};return S.addEventListener("click",R),()=>S.removeEventListener("click",R)},[t,n,s]),A.jsx(lLt,{options:{scrollbars:{autoHide:"move"}},style:{maxHeight:`${a}px`},events:{scroll:i},className:Ke(Qa.scroll,_),ref:c,children:e})},dLt=()=>A.jsxs("svg",{viewBox:"0 0 265 169",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{x:"1.40984",y:"-1.40984",width:"262.18",height:"166.18",rx:"12.6885",transform:"matrix(1 0 0 -1 0 166.18)",fill:"white",fillOpacity:"0.8",stroke:"#595959",strokeWidth:"2.81967"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.3698 27.707H22.0781V124.674C22.0797 122.312 26.6694 121.173 32.0465 119.839C39.1892 118.066 47.7211 115.948 48.7333 110.162C43.8427 107.061 41.9764 102.382 40.0669 97.5948L40.0669 97.5947L40.0669 97.5946C39.696 96.6648 39.3235 95.731 38.927 94.8038C34.1284 99.4719 31.9886 78.0919 36.2913 78.0919C28.1117 55.9872 50.5071 37.849 71.2002 50.3173C83.3362 47.6933 90.0421 62.2119 82.8127 78.0924C85.7951 76.6592 86.3654 84.2999 85.7951 89.0497C85.7951 90.27 84.5283 98.8118 81.3268 95.503C80.938 96.4026 80.5728 97.3088 80.2092 98.2109L80.2092 98.2111C78.2894 102.975 76.4142 107.628 71.34 110.632C72.7976 116.065 81.5159 118.115 88.8476 119.839C94.5234 121.173 99.3681 122.312 99.3698 124.674V27.707Z",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"102.508",width:"57.9687",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"179.426",y:"102.508",width:"63.4896",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"27.7031",width:"60.7292",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"52.6406",width:"60.7292",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"77.5742",width:"102.135",height:"11.082",fill:"#595959"}),A.jsx("rect",{x:"110.418",y:"127.441",width:"132.5",height:"11.082",fill:"#595959"})]}),LLt="No data",fLt={noData:LLt},pLt="No data",hLt={noData:pLt},PLt="No data",MLt={noData:PLt},mLt="No data",gLt={noData:mLt};F.addResourceBundle("en","79d0a73f2a9390169b81b7d2390f9bd5",fLt);F.addResourceBundle("lv","79d0a73f2a9390169b81b7d2390f9bd5",hLt);F.addResourceBundle("de","79d0a73f2a9390169b81b7d2390f9bd5",MLt);F.addResourceBundle("ru","79d0a73f2a9390169b81b7d2390f9bd5",gLt);const yLt=()=>ze("79d0a73f2a9390169b81b7d2390f9bd5"),FLt="_wrapper_10k39_1",vLt="_overlay_10k39_11",ULt="_content_10k39_22",fC={wrapper:FLt,overlay:vLt,content:ULt},BLt=({children:e,className:t})=>{const{t:n}=yLt();return A.jsxs("div",{className:Ke(fC.wrapper,t),children:[e,A.jsx("div",{className:fC.overlay,children:A.jsx("div",{className:fC.content,children:A.jsx(Ee,{size:"14x135",children:n("noData")})})})]})},bLt=()=>A.jsxs("svg",{viewBox:"0 0 532 407",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M2.35374 369.34C2.35374 375.97 2.35557 380.801 2.6666 384.608C2.97538 388.387 3.57715 390.949 4.66261 393.08C6.69356 397.066 9.93424 400.306 13.9202 402.337C16.0505 403.423 18.6128 404.025 22.3922 404.333C26.199 404.644 31.0299 404.646 37.6598 404.646H494.34C500.97 404.646 505.801 404.644 509.608 404.333C513.387 404.025 515.949 403.423 518.08 402.337C522.066 400.306 525.306 397.066 527.337 393.08C528.423 390.949 529.025 388.387 529.333 384.608C529.644 380.801 529.646 375.97 529.646 369.34V25.6C529.646 21.0807 529.644 17.8329 529.436 15.2829C529.23 12.7604 528.834 11.1289 528.159 9.80472C526.851 7.237 524.763 5.14938 522.195 3.84109C520.871 3.16638 519.24 2.76999 516.717 2.5639C514.167 2.35556 510.919 2.35373 506.4 2.35373H25.6C21.0807 2.35373 17.8329 2.35556 15.2829 2.5639C12.7604 2.76999 11.1289 3.16638 9.80473 3.84109C7.23702 5.14938 5.1494 7.237 3.84109 9.80472C3.16639 11.1289 2.77 12.7604 2.56391 15.2829C2.35557 17.8329 2.35374 21.0807 2.35374 25.6V369.34Z",fill:"white",fillOpacity:"0.8",stroke:"#595959",strokeWidth:"4.70747"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M164.437 62.6133H38.6914V240.024C38.6929 235.702 46.1604 233.617 54.9089 231.175C66.5293 227.932 80.4098 224.057 82.0566 213.471C74.1001 207.798 71.0638 199.237 67.9573 190.478C67.354 188.777 66.748 187.068 66.1027 185.372C58.296 193.913 54.8147 154.796 61.8147 154.796C48.5074 114.354 84.9424 81.1681 118.608 103.98C138.352 99.1791 149.262 125.742 137.5 154.797C142.352 152.175 143.28 166.154 142.352 174.844C142.352 177.077 140.291 192.705 135.083 186.651C134.45 188.297 133.856 189.955 133.265 191.606C130.141 200.321 127.09 208.835 118.835 214.331C121.207 224.271 135.391 228.021 147.318 231.175C156.553 233.617 164.435 235.702 164.437 240.024V62.6133Z",fill:"#595959"}),A.jsx("rect",{x:"38.6914",y:"297.426",width:"454.618",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"386.906",y:"62.6133",width:"106.4",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"62.6133",width:"106.4",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"99.1367",width:"106.4",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"135.668",width:"178.945",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"172.195",width:"135.418",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"208.719",width:"266",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"193.453",y:"245.242",width:"87.0546",height:"20.8718",fill:"#595959"}),A.jsx("rect",{x:"38.6914",y:"344.387",width:"454.618",height:"20.8718",fill:"#595959"})]}),HLt=()=>A.jsxs("svg",{viewBox:"0 0 115 149",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("rect",{width:"115",height:"149",rx:"6",fill:"#595959"}),A.jsx("path",{d:"M0 142.615H115V143.001C115 146.315 112.314 149.001 109 149.001H6C2.68629 149.001 0 146.315 0 143.001V142.615Z",fill:"white"}),A.jsx("path",{d:"M90.3652 74.5554C101.122 51.2817 91.1441 30.0038 73.0872 33.8495C42.2987 15.5764 8.97721 42.159 21.1473 74.5548C14.7455 74.5548 17.9293 105.888 25.0689 99.0471C28.8402 107.732 31.1466 116.817 40.718 122.182C42.026 122.915 45.5685 126.107 57.1044 126.107C68.4139 126.107 71.5299 123.23 72.8123 122.519C82.1958 117.314 84.4571 108.498 88.1543 100.072C92.9177 104.921 94.8027 92.4024 94.8026 90.614C95.6512 83.6529 94.8026 72.455 90.3652 74.5554Z",fill:"white"}),A.jsx("path",{d:"M39.8077 119.837H72.9808C72.9808 136.556 115 134.466 115 142.826H0C0 134.466 39.8077 136.556 39.8077 119.837Z",fill:"white"})]}),$Lt={photo:A.jsx(HLt,{}),"id-card":A.jsx(dLt,{}),passport:A.jsx(bLt,{})},LS=({type:e="passport",className:t})=>A.jsx(BLt,{className:t,children:$Lt[e]}),GLt="_link_1whdi_1",VLt="_text_1whdi_12",qf={link:GLt,text:VLt},fS=({children:e,href:t,target:n,className:s})=>A.jsxs("a",{href:t,target:n,className:Ke(qf.link,s),children:[A.jsx(Ee,{className:qf.text,children:e}),A.jsx(Bt.LinkArrow,{})]}),xLt="_alert_3wbiz_1",wLt="_icon_3wbiz_9",Qf={alert:xLt,icon:wLt},LF=({children:e,style:t,className:n,dataAttributes:s})=>A.jsxs("div",{...s,className:Ke(Qf.alert,n),style:t,children:[A.jsx(Bt.Warning,{fillColor:"#DC4343",className:Qf.icon}),e]}),YLt="RFID chip",kLt="Portrait comparison",KLt={rfid:YLt,portraitComparison:kLt},jLt="RFID čips",WLt="Fotogrāfiju salīdzināšana",ZLt={rfid:jLt,portraitComparison:WLt},XLt="RFID-Chip",zLt="Portraitvergleich",qLt={rfid:XLt,portraitComparison:zLt},QLt="RFID-чип",JLt="Сравнение портретов",eft={rfid:QLt,portraitComparison:JLt};F.addResourceBundle("en","601fd7a47bff5ff2f054ec13adba6017",KLt);F.addResourceBundle("lv","601fd7a47bff5ff2f054ec13adba6017",ZLt);F.addResourceBundle("de","601fd7a47bff5ff2f054ec13adba6017",qLt);F.addResourceBundle("ru","601fd7a47bff5ff2f054ec13adba6017",eft);const tft=()=>ze("601fd7a47bff5ff2f054ec13adba6017"),On=(e,t)=>{switch(e){case x.OK:return A.jsx(Bt.Verified,{size:t});case x.ERROR:return A.jsx(Bt.NotVerified,{size:t});case x.WAS_NOT_DONE:return A.jsx(Bt.Unknown,{size:t});default:return A.jsx(Bt.Unknown,{size:t})}},nft="_container_1fhgo_1",rft="_pointer_1fhgo_8",Jf={container:nft,pointer:rft},pC=({status:e,name:t,onClick:n})=>{const s=On(e);return A.jsxs("div",{className:Ke(Jf.container,{[Jf.pointer]:!!n}),onClick:n,children:[s,A.jsx(Ee,{children:t})]})},sft=e=>{switch(e){case Qe.MRZ:return cr.TEXT_DATA;case Qe.TEXT:return cr.TEXT_DATA;case Qe.EXPIRY:return cr.TEXT_DATA;case Qe.SECURITY:return cr.AUTHENTICITY;case Qe.IMAGE_QA:return cr.IMAGE_QUALITY;case Qe.DOC_TYPE:return cr.IDENTIFICATION;default:return}},ep=new Map([[Qe.DOC_TYPE,1],[Qe.EXPIRY,2],[Qe.TEXT,3],[Qe.MRZ,4],[Qe.SECURITY,5],[Qe.IMAGE_QA,6]]),oft=(e,t)=>(ep.get(e)??0)-(ep.get(t)??0),_ft=({detailedStatus:e,rfid:t,onStatusClick:n,scrollTo:s})=>{const{t:r}=tft();return A.jsxs(A.Fragment,{children:[Object.entries(e.optical).sort(([o],[_])=>oft(o,_)).map(([o,_])=>A.jsx(pC,{status:_,name:A.jsx(de.OpticalStatusField,{children:o}),onClick:_!==x.WAS_NOT_DONE?()=>n(o):void 0},o)),!!t.length&&A.jsx(pC,{status:e.summary.rfid,name:r("rfid"),onClick:s?()=>s("rfid"):void 0}),A.jsx(pC,{status:e.summary.portrait,name:r("portraitComparison"),onClick:e.summary.portrait!==x.WAS_NOT_DONE&&s?()=>s("portrait"):void 0})]})},aft="_selected_synx0_14",tp={selected:aft},np=({detailedStatus:e,rfid:t,scrollToResult:n=!0})=>{const{setTabID:s}=mp(),r=_=>{j_.scroller.scrollTo(_,{duration:400,smooth:"linear",offset:-50})},o=_=>{s(sft(_)),zC.isMobile&&r("text")};return $.useEffect(()=>(j_.Events.scrollEvent.register("end",(_,a)=>{const c=()=>{a.classList.remove(tp.selected),a.removeEventListener("animationend",c)};a.addEventListener("animationend",c),a.classList.add(tp.selected)}),()=>{j_.Events.scrollEvent.remove("end")}),[]),A.jsx(_ft,{detailedStatus:e,rfid:t,onStatusClick:o,scrollTo:n?r:void 0})},ift="Document validity",cft={documentValidity:ift},Eft="Document validity",Aft={documentValidity:Eft},Sft="Document validity",Ift={documentValidity:Sft},Rft="Document validity",Cft={documentValidity:Rft};F.addResourceBundle("en","910ae02c7afb807a519375749273b41d",cft);F.addResourceBundle("lv","910ae02c7afb807a519375749273b41d",Aft);F.addResourceBundle("de","910ae02c7afb807a519375749273b41d",Ift);F.addResourceBundle("ru","910ae02c7afb807a519375749273b41d",Cft);const Oft=()=>ze("910ae02c7afb807a519375749273b41d"),Dft="_head_1lz5l_1",Tft="_name_1lz5l_6",lft="_status_1lz5l_9",hC={head:Dft,name:Tft,status:lft},uft=({status:e})=>{const{t}=Oft();return A.jsxs("div",{className:hC.head,children:[A.jsx("div",{className:hC.status,children:On(e,20)}),A.jsx(Ee,{size:"18x135",className:hC.name,children:t("documentValidity")})]})},Nft=({defaultOpen:e,status:t,children:n,className:s,style:r})=>A.jsx(Vr,{className:s,style:r,type:"rounded",head:A.jsx(uft,{status:t}),defaultOpen:e,openClickArea:"head",children:n}),dft="_container_1mymw_1",PC={container:dft,"vertical-list":"_vertical-list_1mymw_5","horizontal-list":"_horizontal-list_1mymw_17"},Lft=({openOnError:e,detailedStatus:t,rfid:n,type:s,scrollToResult:r,className:o,style:_})=>s==="collapse"?A.jsx(Nft,{defaultOpen:e&&t.overallStatus===x.ERROR,className:o,style:_,status:t.overallStatus,children:A.jsx("div",{className:PC["horizontal-list"],children:A.jsx(np,{detailedStatus:t,rfid:n,scrollToResult:r})})}):A.jsx("div",{className:Ke(PC.container,o),style:_,children:A.jsx("div",{className:PC["vertical-list"],children:A.jsx(np,{detailedStatus:t,rfid:n,scrollToResult:r})})}),fF=({type:e="list",openOnError:t=!1,scrollToResult:n,className:s,style:r})=>{const{response:o}=In();if(!o)return null;const _=eS(o),a=exports.DocBinaryInfoContainer.fromProcessResponse(o);return A.jsx(Lft,{openOnError:t,detailedStatus:_,scrollToResult:n,rfid:a,type:e,className:s,style:r})},fft="Nationality",pft="Portrait",hft="Issuing state",Pft="Date of expiry",Mft="Date of birth",mft="Number",gft="Age",yft={nationality:fft,portrait:pft,issuingState:hft,dateOfExpiry:Pft,dateOfBirth:Mft,number:mft,age:gft},Fft="Tautība",vft="Portrets",Uft="Izdevējvalsts",Bft="Derīguma termiņš",bft="Dzimšanas datums",Hft="Number",$ft="Vecums",Gft={nationality:Fft,portrait:vft,issuingState:Uft,dateOfExpiry:Bft,dateOfBirth:bft,number:Hft,age:$ft},Vft="Nationalität",xft="Porträt",wft="Ausstellendes Land",Yft="Ablaufdatum",kft="Geburtsdatum",Kft="Number",jft="Alter",Wft={nationality:Vft,portrait:xft,issuingState:wft,dateOfExpiry:Yft,dateOfBirth:kft,number:Kft,age:jft},Zft="Национальность",Xft="Фотография",zft="Государство выдачи",qft="Дата окончания действия",Qft="Дата рождения",Jft="Номер",ept="Возраст",tpt={nationality:Zft,portrait:Xft,issuingState:zft,dateOfExpiry:qft,dateOfBirth:Qft,number:Jft,age:ept};F.addResourceBundle("en","cba5b1563e4d8bfbec09cb310eaef733",yft);F.addResourceBundle("lv","cba5b1563e4d8bfbec09cb310eaef733",Gft);F.addResourceBundle("de","cba5b1563e4d8bfbec09cb310eaef733",Wft);F.addResourceBundle("ru","cba5b1563e4d8bfbec09cb310eaef733",tpt);const npt=()=>ze("cba5b1563e4d8bfbec09cb310eaef733"),rpt="_container_l6jk0_1",spt="_image_l6jk0_7",opt="_info_l6jk0_21",_pt="_title_l6jk0_32",apt="_items_l6jk0_35",ipt="_item_l6jk0_35",cpt="_text_l6jk0_47",Bn={container:rpt,image:spt,info:opt,title:_pt,items:apt,item:ipt,text:cpt},Ept=({nameSurname:e,issuingStateName:t,dateOfExpiry:n,dateOfBirth:s,documentNumber:r,portrait:o,documentOwnerAge:_,documentOwnerNationalityCode:a,documentOwnerSex:c,imageViewer:i=!0,showPortrait:E,className:S})=>{const{t:R}=npt(),C=c.value?de.getSex(c.value):"",I=_.value?`${R("age")}: ${_.value}`:"";return A.jsxs("div",{className:Ke(Bn.container,S),children:[E&&A.jsx("div",{className:Bn.image,children:o?A.jsx(va,{src:o,alt:R("portrait"),draggable:!1,viewer:i,magnifier:!0,download:!0,magnifierImgBorderRadius:6}):A.jsx(LS,{type:"photo"})}),A.jsxs("div",{className:Bn.info,children:[A.jsx(cm,{level:1,uppercase:!0,className:Bn.title,children:e.value.replace(/\^/g," ")}),(C||I)&&A.jsx(Ee,{children:`${C}${C&&I?", ":""}${I}`}),A.jsxs("div",{className:Bn.items,children:[s.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("dateOfBirth")}),A.jsx(Ee,{children:s.value})]}),a.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("nationality")}),A.jsx(Ee,{children:a.value.replace(/\^/g," ")})]}),t.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("issuingState")}),A.jsx(Ee,{children:t.value})]}),n.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("dateOfExpiry")}),A.jsx(Ee,{children:n.value})]}),r.value&&A.jsxs("div",{className:Bn.item,children:[A.jsx(Ee,{className:Bn.text,size:"12x160",uppercase:!0,children:R("number")}),A.jsx(Ee,{children:r.value})]})]})]})]})},Go={value:"",status:x.ERROR,lcid:K.LATIN},pF=({showPortrait:e=!0,imageViewer:t,className:n})=>{const{response:s}=In();if(!s)return null;const r=I=>XA(s,[Tt.PORTRAIT],I)?.[0]?.pages?.[0]?.src,o=r([ie.RFID_GRAPHICS])||r([ie.VISUAL_GRAPHICS])||r([ie.BARCODE_GRAPHICS])||r([ie.LIVE_PORTRAIT])||r([ie.EXT_PORTRAIT]),_=qM(s),a=nm(s)?.[0]??Go,c=tm(s)?.[0]??Go,i=rm(s)?.[0]??Go,E=sm(s)?.[0]??Go,S=om(s)?.[0]??Go,R=Ys(s,O.NATIONALITY)?.[0]??Go,C=Ys(s,O.DATE_OF_BIRTH)?.[0]??Go;return A.jsx(Ept,{nameSurname:_,issuingStateName:a,dateOfExpiry:c,dateOfBirth:C,documentNumber:i,portrait:o,documentOwnerAge:E,documentOwnerSex:S,documentOwnerNationalityCode:R,showPortrait:e,imageViewer:t,className:n})},Apt="Processing time",Spt={processingTime:Apt},Ipt="Processing time",Rpt={processingTime:Ipt},Cpt="Processing time",Opt={processingTime:Cpt},Dpt="Время обработки",Tpt={processingTime:Dpt};F.addResourceBundle("en","9d87ab777abc6dd671f43b09d261d6b5",Spt);F.addResourceBundle("lv","9d87ab777abc6dd671f43b09d261d6b5",Rpt);F.addResourceBundle("de","9d87ab777abc6dd671f43b09d261d6b5",Opt);F.addResourceBundle("ru","9d87ab777abc6dd671f43b09d261d6b5",Tpt);const lpt=()=>ze("9d87ab777abc6dd671f43b09d261d6b5"),upt="_text_i1hpy_1",Npt={text:upt},rp=({name:e,value:t})=>A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:Npt.text,size:"12x160",uppercase:!0,children:e}),A.jsx(Ee,{children:t})]}),dpt="_container_jzrjc_1",Lpt={container:dpt},fpt=({processingTime:e,additionalFields:t})=>{const{t:n}=lpt();return A.jsxs("div",{className:Lpt.container,children:[A.jsx(rp,{name:n("processingTime"),value:e+"s"}),t&&t.map(({name:s,value:r})=>A.jsx(rp,{name:s,value:r},s+r))]})},ppt=({additionalFields:e})=>{const{response:t}=In();if(!t)return null;const n=(t.elapsedTime/1e3).toFixed(3);return A.jsx(fpt,{processingTime:n,additionalFields:e})},hpt="_container_dh30e_1",Ppt={container:hpt},hF=({additionalFields:e})=>A.jsx("div",{className:Ppt.container,children:A.jsx(ppt,{additionalFields:e})}),Mpt="_indicator_1oddz_1",mpt="_overall_1oddz_10",gpt="_green_1oddz_18",ypt="_red_1oddz_22",Qc={indicator:Mpt,overall:mpt,green:gpt,red:ypt},Fpt=({detailedStatus:e})=>A.jsx("div",{className:Ke(Qc.indicator,{[Qc.red]:e.overallStatus===x.ERROR,[Qc.green]:e.overallStatus===x.OK}),children:A.jsx(Ee,{size:"12x140",uppercase:!0,className:Qc.overall,children:A.jsx(de.CheckResultVerification,{children:e.overallStatus})})}),PF=()=>{const{response:e}=In();if(!e)return null;const t=eS(e);return A.jsx(Fpt,{detailedStatus:t})},vpt="_container_kb2kx_1",Upt={container:vpt},Bpt=({additionalFields:e,scrollToResult:t,imageViewer:n})=>A.jsxs("div",{className:Upt.container,children:[A.jsx(PF,{}),A.jsx(fF,{scrollToResult:t}),A.jsx(pF,{imageViewer:n}),A.jsx(hF,{additionalFields:e})]}),bpt="_canvas_1duaq_1",Hpt={canvas:bpt},$pt=({image:e,selections:t,onCanvas:n})=>{const s=$.useRef(null),r=$.useRef(""),o=$.useRef(""),_=$.useRef(document.createElement("canvas")),{width:a,height:c}=Em(s),[i,E]=$.useState(null);return $.useEffect(()=>{const S=new Image;S.onload=()=>{E({width:S.width,height:S.height,img:S})},S.src=e},[e]),$.useEffect(()=>{const S=s.current;if(!S||!a||!c||!i)return;const R=S.getContext("2d");if(R)if(t.length){const C=r.current===JSON.stringify(t),I=o.current===i.img.currentSrc;if(S.width=a,S.height=c,(!C||!I)&&(_.current.width=i.width,_.current.height=i.height,_.current.getContext("2d")?.drawImage(i.img,0,0)),t.forEach(({checkResult:T,location:u})=>{u.rect.forEach(({top:d,left:f,right:p,bottom:N})=>{const h=jc(f,[0,i.width],[0,a]),g=jc(d,[0,i.height],[0,c]),M=jc(p,[0,i.width],[0,a]),H=jc(N,[0,i.height],[0,c]),B=(P,m,v,X,W,Oe)=>{P.lineWidth=Oe,P.strokeStyle=T===x.ERROR?"red":"#6DFD30",P.strokeRect(m,v,X,W)};if(B(R,h,g,M-h,H-g,2),!C||!I){const P=_.current.getContext("2d");if(!P)return;B(P,f,d,p-f,N-d,4)}})}),!C||!I){const T=_.current.toDataURL("image/jpeg",.7);r.current=JSON.stringify(t),o.current=i.img.currentSrc,n(T)}}else R.clearRect(0,0,S.width,S.height),r.current="",o.current="",n("")},[i,t,a,c]),A.jsx("canvas",{ref:s,className:Hpt.canvas})},Gpt="_container_16rlg_1",Vpt={container:Gpt},xpt=({children:e,className:t})=>A.jsx("div",{className:Ke(Vpt.container,t),children:e}),wpt="_image_1dzur_2",Ypt={image:wpt},kpt=()=>A.jsx(LS,{className:Ypt.image}),Kpt="_container_5l0yf_1",jpt="_images_5l0yf_12",Wpt="_vertical_5l0yf_18",Zpt="_horizontal_5l0yf_22",Xpt="_fit_5l0yf_26",Jc={container:Kpt,images:jpt,vertical:Wpt,horizontal:Zpt,fit:Xpt},zpt="_container_1yj55_1",qpt="_inactive_1yj55_7",Qpt="_image_1yj55_10",Jpt="_vertical_1yj55_22",eht="_horizontal_1yj55_25",tht="_large_1yj55_28",nht="_active_1yj55_31",Vo={container:zpt,inactive:qpt,image:Qpt,vertical:Jpt,horizontal:eht,large:tht,active:nht},rht=({title:e,src:t,onClick:n,isSelect:s,direction:r,large:o=!1})=>A.jsxs("div",{className:Vo.container,onClick:n,children:[A.jsx(Ee,{size:"10x140",uppercase:!0,className:Ke({[Vo.inactive]:!s}),children:e}),A.jsx("div",{className:Ke(Vo.image,{[Vo.active]:s,[Vo.vertical]:!o&&r==="vertical",[Vo.horizontal]:!o&&r==="horizontal",[Vo.large]:o&&r==="horizontal"}),children:A.jsx("img",{src:t,alt:e,draggable:!1})})]}),sp=({title:e,images:t,direction:n="vertical",large:s,onSelect:r,activeImg:o})=>A.jsxs("div",{className:Ke(Jc.container,{[Jc.fit]:n==="vertical"}),children:[A.jsx(Ee,{size:"15x135",uppercase:!0,children:e}),A.jsx("div",{className:Ke(Jc.images,Jc[n]),children:t.map(({name:_,src:a,id:c})=>A.jsx(rht,{large:s,direction:n,src:a,title:_,isSelect:o===c,onClick:()=>r(c)},c))})]}),sht="Lights",oht="Preview",_ht="Pages",aht={lights:sht,preview:oht,pages:_ht},iht="Lights",cht="Priekšskatījums",Eht="Lappuses",Aht={lights:iht,preview:cht,pages:Eht},Sht="Lights",Iht="Durchsicht",Rht="Seiten",Cht={lights:Sht,preview:Iht,pages:Rht},Oht="Lights",Dht="Просмотр",Tht="Страницы",lht={lights:Oht,preview:Dht,pages:Tht};F.addResourceBundle("en","c629d0f0d0896c2f20a19a5ed9ede37b",aht);F.addResourceBundle("lv","c629d0f0d0896c2f20a19a5ed9ede37b",Aht);F.addResourceBundle("de","c629d0f0d0896c2f20a19a5ed9ede37b",Cht);F.addResourceBundle("ru","c629d0f0d0896c2f20a19a5ed9ede37b",lht);const uht=()=>ze("c629d0f0d0896c2f20a19a5ed9ede37b"),Nht="_viewer_d5kxz_1",dht="_preview_d5kxz_6",Lht="_current_d5kxz_20",Ja={viewer:Nht,preview:dht,"view-container":"_view-container_d5kxz_12",current:Lht},fht=({showLightDock:e,lightImages:t,pageImages:n,currentLight:s,setCurrentLight:r,currentImage:o,magnifierImg:_,currentSelections:a,setMagnifierImg:c,currentPage:i,setCurrentPage:E,imageViewer:S=!0})=>{const{t:R}=uht();return A.jsxs("div",{className:Ja.viewer,children:[e&&A.jsx(sp,{title:R("lights"),images:t,activeImg:s,onSelect:r}),A.jsxs("div",{className:Ja.preview,children:[A.jsx("div",{className:Ja["view-container"],children:A.jsxs("div",{className:Ja.current,children:[A.jsx(va,{className:Ja.image,src:o,alt:R("preview"),magnifierImg:_,previewImg:_,magnifierImgBorderRadius:16,draggable:!1,magnifier:!0,download:!0,viewer:S}),A.jsx($pt,{image:o,selections:a,onCanvas:c})]})}),n.length>1&&A.jsx(sp,{large:!e,title:R("pages"),images:n,activeImg:i,onSelect:E,direction:"horizontal"})]})]})},pht=({images:e,currentLight:t,page:n})=>{const s=$.useMemo(()=>e.some(a=>a.light!==e[0]?.light),[e]),r=$.useMemo(()=>{const a=e.every(({pages:c})=>c.length===1);return e.reduce((c,{pages:i,light:E})=>{const S=i.find(({pageIndex:R})=>R===n||a);return S?.src&&c.push({id:E,name:String(de.getLightsLabel(E)),src:S.src}),c},[])},[e,n]),o=$.useMemo(()=>{const a=e.find(c=>c.light===t);return!a||!a.pages?[]:[...a.pages].sort((c,i)=>c.pageIndex-i.pageIndex).map(c=>({id:c.pageIndex,name:String(c.pageIndex+1),src:c.src||""}))},[e,t]),_=$.useMemo(()=>o.find(({id:a})=>a===n)||o[0],[o,n]);return{showLightDock:s,lightImages:r,pageImages:o,currentImage:_}},MF=({imageViewer:e,className:t,initialPageIndex:n,initialLight:s,onPageChanged:r,onLightChanged:o})=>{const{response:_}=In(),a=$.useMemo(()=>E9(_),[_]),c=n??0,i=s??a[0]?.light??vt.WHITE,E=$.useRef(c),S=$.useRef(i),{selections:R,setSelections:C}=HE(),{page:I=c,setPage:T}=pi(),[u,d]=$.useState(i),[f,p]=$.useState(""),[N,h]=$.useState([]),{pageImages:g,lightImages:M,currentImage:H,showLightDock:B}=pht({images:a,currentLight:u,page:I});return $.useEffect(()=>{const P=m=>{if(g.length<=1)return;const v=g.findIndex(X=>X.id===I);if(m.key==="ArrowLeft"){m.preventDefault();const X=v>0?v-1:g.length-1;T(g[X].id)}else if(m.key==="ArrowRight"){m.preventDefault();const X=v<g.length-1?v+1:0;T(g[X].id)}};return window.addEventListener("keydown",P),()=>{window.removeEventListener("keydown",P)}},[I,g,T]),$.useEffect(()=>{if(!R.length||!a.length)return;const{location:P,page:m}=R[0];d(P.light===void 0?a[0].light:P.light),T(m)},[R,a]),$.useEffect(()=>{if(!a.length)return;const P=R.filter(m=>m.page===I&&(u===a[0].light?m.location.light===u||m.location.light===void 0:m.location.light===u));h(P)},[u,I,R,a]),$.useEffect(()=>{!H||H.id===I||T(H.id)},[H,I]),$.useEffect(()=>()=>{T(c),d(i),C([])},[a]),$.useEffect(()=>{E.current!==I&&(E.current=I,r?.(I))},[I]),$.useEffect(()=>{S.current!==u&&(S.current=u,o?.(u))},[u]),A.jsx(xpt,{className:t,children:H?A.jsx(fht,{showLightDock:B,lightImages:M,currentLight:u,setCurrentLight:d,currentImage:H.src,magnifierImg:f,currentSelections:N,setMagnifierImg:p,pageImages:g,currentPage:I,setCurrentPage:T,imageViewer:e}):A.jsx(kpt,{})})};var cr=(e=>(e.TEXT_DATA="TEXT_DATA",e.AUTHENTICITY="AUTHENTICITY",e.IMAGE_QUALITY="IMAGE_QUALITY",e.IDENTIFICATION="IDENTIFICATION",e))(cr||{});const ra=e=>e?.some(({top:t,bottom:n,left:s,right:r})=>!!(n||t||r||s)),sa=(e,t)=>{const n=e.map(s=>JSON.stringify(s));return t.length===1?n.includes(JSON.stringify(t[0])):t.length>1?t.every(s=>n.includes(JSON.stringify(s))):!1},mF=e=>{const t=new Set,n=r=>r===x.ERROR||r===x.WAS_NOT_DONE,s=(r,o)=>{n(r.checkResult)&&t.add(o),r.checks?.forEach((_,a)=>s(_,`${o}.${a}`))};return e.forEach((r,o)=>{const _=String(o);n(r.checkResult)&&t.add(_),e.length===1?r.groups.forEach((a,c)=>s(a,`${c}`)):r.groups.forEach((a,c)=>{const i=`${_}.${c}`;s(a,i),a.checks?.forEach((E,S)=>s(E,`${i}.${S}`))})}),t},gF=e=>{const t=new Set;return e.length===1||e.forEach((n,s)=>{n.checkResult===x.ERROR&&t.add(String(s))}),t},hht="Text fields",Pht="Security checks",Mht="Image quality",mht="Document type",ght={textFields:hht,securityChecks:Pht,imageQuality:Mht,documentType:mht},yht="Teksta lauki",Fht="Security checks",vht="Image quality",Uht="Dokumenta tips",Bht={textFields:yht,securityChecks:Fht,imageQuality:vht,documentType:Uht},bht="Textfelder",Hht="Sicherheitsprüfungen",$ht="Bildqualität",Ght="Dokumenttyp",Vht={textFields:bht,securityChecks:Hht,imageQuality:$ht,documentType:Ght},xht="Текстовые поля",wht="Проверки подлинности",Yht="Качество изображения",kht="Тип документа",Kht={textFields:xht,securityChecks:wht,imageQuality:Yht,documentType:kht};F.addResourceBundle("en","04e8c85d2208befc9f038ec6fb318388",ght);F.addResourceBundle("lv","04e8c85d2208befc9f038ec6fb318388",Bht);F.addResourceBundle("de","04e8c85d2208befc9f038ec6fb318388",Vht);F.addResourceBundle("ru","04e8c85d2208befc9f038ec6fb318388",Kht);const jht=()=>ze("04e8c85d2208befc9f038ec6fb318388"),yF=e=>{switch(e){case J.IR_B900:case J.IR_VISIBILITY:return vt.IR;case J.UV_LUMINESCENCE:case J.UV_FIBERS:return vt.UV;default:return}},Wht="Diagnose",Zht="Color",Xht="Actual count",zht="Expected count",qht={diagnose:Wht,color:Zht,actualCount:Xht,expectedCount:zht},Qht="Diagnose",Jht="Krāsa",e1t="Actual count",t1t="Expected count",n1t={diagnose:Qht,color:Jht,actualCount:e1t,expectedCount:t1t},r1t="Diagnose",s1t="Farbe",o1t="Tatsächliche Anzahl",_1t="Erwartete Anzahl",a1t={diagnose:r1t,color:s1t,actualCount:o1t,expectedCount:_1t},i1t="Диагностика",c1t="Цвет",E1t="Фактическое количество",A1t="Ожидаемое количество",S1t={diagnose:i1t,color:c1t,actualCount:E1t,expectedCount:A1t};F.addResourceBundle("en","028e5fc83e357897956d1ad2c984d1b4",qht);F.addResourceBundle("lv","028e5fc83e357897956d1ad2c984d1b4",n1t);F.addResourceBundle("de","028e5fc83e357897956d1ad2c984d1b4",a1t);F.addResourceBundle("ru","028e5fc83e357897956d1ad2c984d1b4",S1t);const I1t=()=>ze("028e5fc83e357897956d1ad2c984d1b4"),R1t="_head_e283h_1",C1t="_name_e283h_7",O1t="_value_e283h_11",D1t="_status_e283h_17",T1t="_pointer_e283h_23",ei={head:R1t,name:C1t,value:O1t,status:D1t,pointer:T1t},l1t=({name:e,value:t,status:n,onClick:s})=>A.jsxs("div",{className:Ke(ei.head),children:[A.jsx(Ee,{className:Ke(ei.name,{[ei.pointer]:!!s}),onClick:s,children:e}),A.jsx("div",{className:ei.value,children:t}),A.jsx("div",{className:ei.status,children:On(n)})]}),u1t="_collapse_bw4cq_1",N1t="_selected_bw4cq_5",op={collapse:u1t,selected:N1t},d1t=({name:e,collapse:t=!0,value:n,status:s,onOpen:r,open:o,children:_,shift:a=0,onClick:c,selected:i,style:E})=>A.jsx(Vr,{className:Ke(op.collapse,{[op.selected]:i}),style:{"--shift":a+"px",...E},collapse:t,type:"nested",open:o,onOpen:r,dataAttributes:{"data-extended-scroll":""},head:A.jsx(l1t,{name:e,value:n,status:s,onClick:c}),children:_}),L1t="_container_1xl1t_1",f1t="_item_1xl1t_4",p1t="_name_1xl1t_17",h1t="_color_1xl1t_21",eE={container:L1t,item:f1t,name:p1t,color:h1t},P1t=({colorValues:e,status:t,diagnose:n,isOpen:s,onOpen:r,onClick:o,isSelected:_,shift:a=0})=>{const{t:c}=I1t(),i={"--background":`rgb(${e[0]}, ${e[1]}, ${e[2]})`};return A.jsx(d1t,{value:A.jsx("div",{className:eE.color}),shift:t===x.ERROR?a+20:a,name:c("color"),status:t,selected:_,open:s,onOpen:r,collapse:t===x.ERROR,onClick:o,style:i,children:t!==x.OK&&A.jsx("div",{className:eE.container,children:A.jsxs("div",{className:eE.item,children:[A.jsx(Ee,{uppercase:!0,className:eE.name,children:c("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:n})})]})})})},M1t="Similarity",m1t="Visibility",g1t="Image",y1t="Reference",F1t="Diagnose",v1t={similarity:M1t,visibility:m1t,image:g1t,reference:y1t,diagnose:F1t},U1t="Līdzīgi",B1t="Visibility",b1t="Attēls",H1t="Etalons",$1t="Diagnose",G1t={similarity:U1t,visibility:B1t,image:b1t,reference:H1t,diagnose:$1t},V1t="Übereinstimmung",x1t="Sichtbarkeit",w1t="Bild",Y1t="Referenz",k1t="Diagnose",K1t={similarity:V1t,visibility:x1t,image:w1t,reference:Y1t,diagnose:k1t},j1t="Подобие",W1t="Видимость",Z1t="Изображение",X1t="Эталон",z1t="Диагностика",q1t={similarity:j1t,visibility:W1t,image:Z1t,reference:X1t,diagnose:z1t};F.addResourceBundle("en","c5291d1c5e6d9464c1e104be56e67cda",v1t);F.addResourceBundle("lv","c5291d1c5e6d9464c1e104be56e67cda",G1t);F.addResourceBundle("de","c5291d1c5e6d9464c1e104be56e67cda",K1t);F.addResourceBundle("ru","c5291d1c5e6d9464c1e104be56e67cda",q1t);const Q1t=()=>ze("c5291d1c5e6d9464c1e104be56e67cda"),J1t="_head_1jay9_1",ePt="_name_1jay9_7",tPt="_status_1jay9_11",nPt="_pointer_1jay9_17",tE={head:J1t,name:ePt,status:tPt,pointer:nPt},rPt=({name:e,status:t,onClick:n})=>A.jsxs("div",{className:Ke(tE.head),children:[A.jsx(Ee,{className:Ke(tE.name,{[tE.pointer]:!!n}),onClick:n,children:e}),A.jsx("div",{className:tE.status,children:On(t)})]}),sPt="_collapse_bw4cq_1",oPt="_selected_bw4cq_5",_p={collapse:sPt,selected:oPt},_Pt=({name:e,collapse:t=!0,status:n,onOpen:s,open:r,children:o,shift:_=0,onClick:a,selected:c})=>A.jsx(Vr,{className:Ke(_p.collapse,{[_p.selected]:c}),style:{"--shift":_+"px"},collapse:t,type:"nested",open:r,onOpen:s,dataAttributes:{"data-extended-scroll":""},head:A.jsx(rPt,{name:e,status:n,onClick:a}),children:o}),NO=({src:e,alt:t,imageViewer:n=!0,heightLimit:s=100,className:r})=>{const o=$.useRef(null);return $.useEffect(()=>{const _=o.current;if(!_)return;const a=_.parentElement,c=_.children[0];if(!a||!c)return;const i=new ResizeObserver(E=>{E.forEach(S=>{const{width:R}=S.contentRect,C=R/c.naturalWidth;if(isNaN(C))return;c.naturalHeight*C>s?(c.style.height=s+"px",c.style.width="auto"):(c.style.height=c.naturalHeight*C+"px",c.style.width=R+"px")})});return i.observe(a),()=>i.disconnect()},[e]),A.jsx(va,{src:`data:image/jpeg;base64,${e}`,alt:t,viewer:n,magnifier:!0,download:!0,className:r,ref:o})},aPt="_container_x3c1c_1",iPt="_item_x3c1c_4",cPt="_name_x3c1c_10",kr={container:aPt,item:iPt,name:cPt},EPt=({diagnose:e,image:t,referenceImage:n,similarity:s,status:r,group:o,type:_,isOpen:a,onOpen:c,imageViewer:i,isSelected:E,onClick:S,shift:R=0})=>{const{t:C}=Q1t(),I=!!(t||n||r!==x.OK),T=o===J.IR_VISIBILITY;return A.jsx(_Pt,{shift:I?R+20:R,name:A.jsx(de.SecurityFeatureTypeLabel,{children:_}),status:r,selected:E,open:a,onOpen:c,collapse:I,onClick:S,children:A.jsxs("div",{className:kr.container,children:[!(_===Te.INVISIBLE_OBJECT||s===0&&!T)&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C(T?"visibility":"similarity")}),A.jsx(Ee,{children:T?Oh(s).map(de.getIRVisibilityStatus).join(", "):s+"%"})]}),n&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C("reference")}),A.jsx("div",{className:kr.image,children:A.jsx(NO,{src:n,imageViewer:i,alt:"Reference"})})]}),t&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C("image")}),A.jsx("div",{className:kr.image,children:A.jsx(NO,{src:t,imageViewer:i,alt:"Image"})})]}),r!==x.OK&&(o!==J.PORTRAIT_COMPARISON||e===re.PORTRAIT_COMPARISON_NO_SERVICE_REPLY)&&A.jsxs("div",{className:kr.item,children:[A.jsx(Ee,{uppercase:!0,className:kr.name,children:C("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})]})})},APt="Image",SPt="Diagnose",IPt={image:APt,diagnose:SPt},RPt="Attēls",CPt="Diagnose",OPt={image:RPt,diagnose:CPt},DPt="Bild",TPt="Diagnose",lPt={image:DPt,diagnose:TPt},uPt="Изображение",NPt="Диагностика",dPt={image:uPt,diagnose:NPt};F.addResourceBundle("en","f5703a9089310f67332ce6624b257773",IPt);F.addResourceBundle("lv","f5703a9089310f67332ce6624b257773",OPt);F.addResourceBundle("de","f5703a9089310f67332ce6624b257773",lPt);F.addResourceBundle("ru","f5703a9089310f67332ce6624b257773",dPt);const LPt=()=>ze("f5703a9089310f67332ce6624b257773"),fPt="_container_x3c1c_1",pPt="_item_x3c1c_4",hPt="_name_x3c1c_10",$_={container:fPt,item:pPt,name:hPt},PPt=({diagnose:e,image:t,status:n,imageViewer:s,shift:r})=>{const{t:o}=LPt(),_={"--shift":r+"px"};return A.jsxs("div",{className:$_.container,style:_,children:[t&&A.jsxs("div",{className:$_.item,children:[A.jsx(Ee,{uppercase:!0,className:$_.name,children:o("image")}),A.jsx("div",{className:$_.image,children:A.jsx(NO,{imageViewer:s,src:t,alt:"Reference"})})]}),n!==x.OK&&A.jsxs("div",{className:$_.item,children:[A.jsx(Ee,{uppercase:!0,className:$_.name,children:o("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})]})},MPt="Diagnose",mPt={diagnose:MPt},gPt="Diagnose",yPt={diagnose:gPt},FPt="Diagnose",vPt={diagnose:FPt},UPt="Диагностика",BPt={diagnose:UPt};F.addResourceBundle("en","c4ca1a37309341129fe097aa31cc557b",mPt);F.addResourceBundle("lv","c4ca1a37309341129fe097aa31cc557b",yPt);F.addResourceBundle("de","c4ca1a37309341129fe097aa31cc557b",vPt);F.addResourceBundle("ru","c4ca1a37309341129fe097aa31cc557b",BPt);const bPt=()=>ze("c4ca1a37309341129fe097aa31cc557b"),HPt="_head_1jay9_1",$Pt="_name_1jay9_7",GPt="_status_1jay9_11",VPt="_pointer_1jay9_17",nE={head:HPt,name:$Pt,status:GPt,pointer:VPt},xPt=({name:e,status:t,onClick:n})=>A.jsxs("div",{className:Ke(nE.head),children:[A.jsx(Ee,{className:Ke(nE.name,{[nE.pointer]:!!n}),onClick:n,children:e}),A.jsx("div",{className:nE.status,children:On(t)})]}),wPt="_collapse_bw4cq_1",YPt="_selected_bw4cq_5",ap={collapse:wPt,selected:YPt},kPt=({name:e,collapse:t=!0,status:n,open:s,onOpen:r,children:o,shift:_=0,onClick:a,selected:c})=>A.jsx(Vr,{className:Ke(ap.collapse,{[ap.selected]:c}),style:{"--shift":_+"px"},collapse:t,type:"nested",open:s,onOpen:r,dataAttributes:{"data-extended-scroll":""},head:A.jsx(xPt,{name:e,status:n,onClick:a}),children:o}),KPt="_container_13yx9_1",jPt="_item_13yx9_4",WPt="_name_13yx9_17",MC={container:KPt,item:jPt,name:WPt},ZPt=({diagnose:e,type:t,status:n,isOpen:s,onOpen:r,isSelected:o,onClick:_,shift:a=0})=>{const{t:c}=bPt(),i=n!==x.OK;return A.jsx(kPt,{shift:i?a+20:a,name:A.jsx(de.SecurityFeatureTypeLabel,{children:t}),status:n,selected:o,open:s,onOpen:r,collapse:i,onClick:_,children:A.jsx("div",{className:MC.container,children:A.jsxs("div",{className:MC.item,children:[A.jsx(Ee,{uppercase:!0,className:MC.name,children:c("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})})})},XPt="Result",zPt="Reference",qPt="Reference type",QPt="Diagnose",JPt={result:XPt,reference:zPt,referenceType:qPt,diagnose:QPt},eMt="Rezultāts",tMt="Etalons",nMt="Etalona tips",rMt="Diagnose",sMt={result:eMt,reference:tMt,referenceType:nMt,diagnose:rMt},oMt="Ergebnis",_Mt="Referenz",aMt="Referenztyp",iMt="Diagnose",cMt={result:oMt,reference:_Mt,referenceType:aMt,diagnose:iMt},EMt="Результат",AMt="Эталон",SMt="Тип эталона",IMt="Диагностика",RMt={result:EMt,reference:AMt,referenceType:SMt,diagnose:IMt};F.addResourceBundle("en","0d730438dd394cc9e99b3089a8530e26",JPt);F.addResourceBundle("lv","0d730438dd394cc9e99b3089a8530e26",sMt);F.addResourceBundle("de","0d730438dd394cc9e99b3089a8530e26",cMt);F.addResourceBundle("ru","0d730438dd394cc9e99b3089a8530e26",RMt);const CMt=()=>ze("0d730438dd394cc9e99b3089a8530e26"),OMt="_head_1jay9_1",DMt="_name_1jay9_7",TMt="_status_1jay9_11",lMt="_pointer_1jay9_17",rE={head:OMt,name:DMt,status:TMt,pointer:lMt},uMt=({name:e,status:t,onClick:n})=>A.jsxs("div",{className:Ke(rE.head),children:[A.jsx(Ee,{className:Ke(rE.name,{[rE.pointer]:!!n}),onClick:n,children:e}),A.jsx("div",{className:rE.status,children:On(t)})]}),NMt="_collapse_bw4cq_1",dMt="_selected_bw4cq_5",ip={collapse:NMt,selected:dMt},LMt=({name:e,status:t,open:n,onOpen:s,children:r,shift:o=0,onClick:_,selected:a})=>A.jsx(Vr,{className:Ke(ip.collapse,{[ip.selected]:a}),style:{"--shift":o+"px"},type:"nested",open:n,onOpen:s,dataAttributes:{"data-extended-scroll":""},head:A.jsx(uMt,{name:e,status:t,onClick:_}),children:r}),fMt="_container_sxj23_1",pMt="_item_sxj23_4",hMt="_name_sxj23_17",PMt="_selected_sxj23_21",MMt="_pointer_sxj23_25",or={container:fMt,item:pMt,name:hMt,selected:PMt,pointer:MMt},mMt=({diagnose:e,reference:t,status:n,type:s,isOpen:r,onOpen:o,isSelected:_,onResultClick:a,onReferenceClick:c,isResultSelected:i,isReferenceSelected:E,onClick:S,shift:R=0})=>{const{t:C}=CMt();return A.jsx(LMt,{shift:R,name:A.jsx(de.VisualFieldType,{children:s}),status:n,selected:_,open:r,onOpen:o,onClick:S,children:A.jsxs("div",{className:or.container,children:[A.jsxs("div",{className:Ke(or.item,{[or.selected]:!!i}),children:[A.jsx(Ee,{uppercase:!0,className:Ke(or.name,{[or.pointer]:!!a}),onClick:a,children:C("result")}),A.jsx(Ee,{children:t.result.trim()?t.result:"—"})]}),A.jsxs("div",{className:Ke(or.item,{[or.selected]:!!E}),children:[A.jsx(Ee,{uppercase:!0,className:Ke(or.name,{[or.pointer]:!!c}),onClick:c,children:C("reference")}),A.jsx(Ee,{children:t.reference.trim()?t.reference:"—"})]}),A.jsxs("div",{className:or.item,children:[A.jsx(Ee,{uppercase:!0,className:or.name,children:C("referenceType")}),A.jsx(Ee,{children:A.jsx(de.AuthenticityTextCheckReference,{children:t.type})})]}),n===x.ERROR&&A.jsxs("div",{className:or.item,children:[A.jsx(Ee,{uppercase:!0,className:or.name,children:C("diagnose")}),A.jsx(Ee,{children:A.jsx(de.CheckDiagnose,{children:e})})]})]})})},gMt="Explore more",yMt={exploreMore:gMt},FMt="Explore more",vMt={exploreMore:FMt},UMt="Explore more",BMt={exploreMore:UMt},bMt="Explore more",HMt={exploreMore:bMt};F.addResourceBundle("en","4e7992d19a663aace2a1c84e11059e2a",yMt);F.addResourceBundle("lv","4e7992d19a663aace2a1c84e11059e2a",vMt);F.addResourceBundle("de","4e7992d19a663aace2a1c84e11059e2a",BMt);F.addResourceBundle("ru","4e7992d19a663aace2a1c84e11059e2a",HMt);const $Mt=()=>ze("4e7992d19a663aace2a1c84e11059e2a"),GMt="_content_y30cu_1",VMt={content:GMt},xMt=({group:e})=>{const{t}=$Mt();return A.jsxs("div",{className:VMt.content,children:[A.jsx(Ee,{children:A.jsx(de.GroupDescription,{children:e})}),A.jsx(fS,{href:"https://docs.regulaforensics.com/develop/doc-reader-sdk/overview/authenticity/",target:"_blank",children:t("exploreMore")})]})},wMt=({group:e})=>de.getGroupDescription(e)?A.jsx(p_,{modal:A.jsx(xMt,{group:e}),children:A.jsx(de.AuthenticityLabel,{children:e})}):A.jsx(de.AuthenticityLabel,{children:e}),YMt="_head_1jay9_1",kMt="_name_1jay9_7",KMt="_status_1jay9_11",jMt="_pointer_1jay9_17",sE={head:YMt,name:kMt,status:KMt,pointer:jMt},WMt=({name:e,status:t,onClick:n,dataTestKey:s})=>A.jsxs("div",{className:Ke(sE.head),children:[A.jsx(Ee,{className:Ke(sE.name,{[sE.pointer]:!!n}),onClick:n,dataTest:s,children:e}),A.jsx("div",{className:sE.status,children:t!==void 0?On(t):null})]}),ZMt="_collapse_bw4cq_1",XMt="_selected_bw4cq_5",cp={collapse:ZMt,selected:XMt},zMt=({type:e,name:t,collapse:n=!0,status:s,open:r,children:o,shift:_=0,onClick:a,selected:c,onOpen:i,dataTestKey:E})=>A.jsx(Vr,{className:Ke(cp.collapse,{[cp.selected]:c}),style:{"--shift":_+"px"},collapse:n,type:e,onOpen:i,open:r,dataAttributes:{"data-extended-scroll":""},head:A.jsx(WMt,{name:t,status:s,onClick:a,dataTestKey:E}),children:o}),qMt="_checks_zbgpv_1",QMt={checks:qMt},JMt=({group:e,checks:t,status:n,onSelect:s,selections:r,page:o,isSelected:_,openFields:a,onOpen:c,groupId:i,imageViewer:E,collapse:S,shift:R=0,type:C,onClick:I})=>A.jsx(zMt,{shift:R,type:C,name:A.jsx(wMt,{group:e}),status:n,selected:_,open:a.has(i),onOpen:T=>c(T,i),collapse:S,onClick:I,children:A.jsx("div",{className:Ke({[QMt.checks]:C!=="nested"}),children:t.map((T,u)=>{const{checkResult:d,diagnose:f,location:p}=T,N=`${i}.${u}`,h=p&&{light:p.light||yF(e),rect:p.rect},g=h&&sa(r,[{page:o,path:String(e),checkResult:d,location:h}]),M=h&&ra(h.rect)?()=>s([{page:o,path:String(e),checkResult:d,location:h}]):void 0,H=P=>`${o}/${e}/${P}/${u}`,B=P=>c(P,N);if(exports.RAuthenticityIdentCheck.isBelongs(T))return A.jsx(EPt,{type:T.type,isSelected:g,status:d,diagnose:f,image:T.image,referenceImage:T.referenceImage,similarity:T.similarity,group:e,onClick:M,shift:R,imageViewer:E,isOpen:a.has(N),onOpen:B},H("ident"));if(exports.RAuthenticityPhotoIdentCheck.isBelongs(T))return A.jsx(PPt,{status:d,diagnose:f,image:T.image,shift:R,imageViewer:E},H("photoIdent"));if(exports.RAuthenticityFibersCheck.isBelongs(T))return A.jsx(P1t,{colorValues:T.colorValues,isSelected:g,status:d,diagnose:f,onClick:M,shift:R,isOpen:a.has(N),onOpen:B},H("fibers"));if(exports.RAuthenticitySecurityCheck.isBelongs(T))return A.jsx(ZPt,{type:T.feature,isSelected:g,status:d,diagnose:f,onClick:M,shift:R,isOpen:a.has(N),onOpen:B},H("security"));if(exports.RAuthenticityTextCheck.isBelongs(T)){const P=pe=>`${e}${pe}`,m=(pe,fe)=>{s([{page:o,path:P(fe),checkResult:d,location:pe}])},v=(pe,fe)=>pe&&ra(pe.rect)?()=>m(pe,fe):void 0,X=(pe,fe)=>pe&&sa(r,[{page:o,path:P(fe),checkResult:d,location:pe}]),W=v(p,T.type),Oe=v(T.reference.location,T.reference.type),_e=X(p,T.type),Ne=X(T.reference.location,T.reference.type);return A.jsx(mMt,{type:T.type,isSelected:g,status:d,diagnose:f,reference:T.reference,onResultClick:W,onReferenceClick:Oe,isResultSelected:_e,isReferenceSelected:Ne,onClick:M,shift:R+20,isOpen:a.has(N),onOpen:B},H("text"))}})})}),mC=({group:e,checks:t,status:n,onSelect:s,selections:r,page:o,groupId:_,imageViewer:a,shift:c=0,type:i})=>{const{openFields:E,addOpenField:S,removeOpenField:R}=aa(),C=t.reduce((p,N)=>(N.location&&ra(N.location.rect)&&p.push({page:o,path:String(e),checkResult:N.checkResult,location:{light:N.location.light||yF(e),rect:N.location.rect}}),p),[]),I=sa(r,C),T=(p,N)=>p?S("authenticity",N):R("authenticity",N),u=()=>{s(C),T(!I||!E.authenticity.has(_),_)},d=t.length>0,f=d?c:0;return A.jsx(JMt,{group:e,checks:t,status:n,onSelect:s,selections:r,page:o,groupId:_,shift:f,type:i,openFields:E.authenticity,onOpen:T,collapse:d,isSelected:I,imageViewer:a,onClick:C.length?u:void 0})},emt="Page",tmt={page:emt},nmt="Lappuse",rmt={page:nmt},smt="Seite",omt={page:smt},_mt="Страница",amt={page:_mt};F.addResourceBundle("en","c978bfc734ce43cb57f59e262c5b970c",tmt);F.addResourceBundle("lv","c978bfc734ce43cb57f59e262c5b970c",rmt);F.addResourceBundle("de","c978bfc734ce43cb57f59e262c5b970c",omt);F.addResourceBundle("ru","c978bfc734ce43cb57f59e262c5b970c",amt);const imt=()=>ze("c978bfc734ce43cb57f59e262c5b970c"),cmt="_scroll_wfx4h_1",Emt="_authenticity_wfx4h_7",gC={scroll:cmt,authenticity:Emt},Amt=255,Smt=({authenticity:e,documentIdentification:t,selections:n,onSelect:s,onOpen:r,openFields:o,imageViewer:_,initialScrollPosition:a,onScrollTop:c})=>{const{t:i}=imt();return A.jsx(wr,{extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:gC.scroll,initialScrollPosition:a,onScrollTop:c,children:e.length===1?A.jsx("div",{className:gC.authenticity,children:e[0].groups.map(({group:E,checks:S,checkResult:R},C)=>A.jsx(mC,{checks:S,group:E,status:R,page:e[0].page,onSelect:s,selections:n,type:"nested",imageViewer:_,groupId:String(C)},E))}):e.map(({page:E,groups:S},R)=>{const C=String(R);return E===Amt?S.map(({group:I,checks:T})=>A.jsx(mC,{checks:T,group:I,page:E,onSelect:s,selections:n,imageViewer:_,groupId:C},I)):A.jsx(Vr,{head:A.jsx(Ee,{children:t.find(({pageIndex:I})=>I===E)?.documentName||`${i("page")} ${E+1}`}),open:o.has(C),onOpen:I=>r(I,E,C),children:A.jsx("div",{className:gC.authenticity,children:S.map(({group:I,checks:T,checkResult:u},d)=>A.jsx(mC,{checks:T,group:I,status:u,page:E,onSelect:s,selections:n,shift:16,type:"nested",imageViewer:_,groupId:`${C}.${d}`},I))})},E)})})},Imt=({authenticity:e,documentIdentification:t,onSelect:n,imageViewer:s,initialScrollPosition:r})=>{const{setScroll:o}=kE(),{openFields:_,addOpenField:a,removeOpenField:c,resetOpenField:i}=aa(),{selections:E}=HE(),{setPage:S}=pi(),R=(I,T,u)=>{I?(S(T),a("authenticity",u)):c("authenticity",u)},C=o?I=>o("authenticity",I):void 0;return $.useEffect(()=>()=>{i("authenticity")},[e]),A.jsx(Smt,{authenticity:e,documentIdentification:t,selections:E,onSelect:n,imageViewer:s,initialScrollPosition:r,onScrollTop:C,openFields:_.authenticity,onOpen:R})},Rmt="Page",Cmt="Document ID",Omt="Probability",Dmt="Deprecated",Tmt="Document category",lmt="No",umt="Yes",Nmt={page:Rmt,documentID:Cmt,probability:Omt,deprecated:Dmt,documentCategory:Tmt,no:lmt,yes:umt},dmt="Lappuse",Lmt="Document ID",fmt="Iespējamība",pmt="Deprecated",hmt="Document category",Pmt="Nē",Mmt="Jā",mmt={page:dmt,documentID:Lmt,probability:fmt,deprecated:pmt,documentCategory:hmt,no:Pmt,yes:Mmt},gmt="Seite",ymt="Document ID",Fmt="Wahrscheinlichkeit",vmt="Deprecated",Umt="Document category",Bmt="Nein",bmt="Ja",Hmt={page:gmt,documentID:ymt,probability:Fmt,deprecated:vmt,documentCategory:Umt,no:Bmt,yes:bmt},$mt="Страница",Gmt="Document ID",Vmt="Вероятность",xmt="Выведен из оборота",wmt="Категория документа",Ymt="Нет",kmt="Да",Kmt={page:$mt,documentID:Gmt,probability:Vmt,deprecated:xmt,documentCategory:wmt,no:Ymt,yes:kmt};F.addResourceBundle("en","dc87716ea86ebf584e6de7d3249457b2",Nmt);F.addResourceBundle("lv","dc87716ea86ebf584e6de7d3249457b2",mmt);F.addResourceBundle("de","dc87716ea86ebf584e6de7d3249457b2",Hmt);F.addResourceBundle("ru","dc87716ea86ebf584e6de7d3249457b2",Kmt);const jmt=()=>ze("dc87716ea86ebf584e6de7d3249457b2"),Wmt="_container_f5fut_1",Zmt="_name_f5fut_13",Eo={container:Wmt,name:Zmt},Ep=({pageIndex:e,isDeprecated:t,documentId:n,shift:s,documentCategory:r})=>{const{t:o}=jmt(),_={"--shift":s+"px"};return A.jsxs(A.Fragment,{children:[r!==void 0&&A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("documentCategory")}),A.jsx(Ee,{children:r.toUpperCase()})]}),A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("documentID")}),A.jsx(Ee,{children:n})]}),A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("deprecated")}),A.jsx(Ee,{uppercase:!0,children:o(t?"yes":"no")})]}),e!==void 0&&A.jsxs("div",{className:Eo.container,children:[A.jsx(Ee,{uppercase:!0,className:Eo.name,style:_,children:o("page")}),A.jsx(Ee,{children:e+1})]})]})},Xmt="_scroll_1wl41_1",zmt="_identification_1wl41_7",yC={scroll:Xmt,identification:zmt},qmt=({documentIdentification:e,openFields:t,onOpen:n,initialScrollPosition:s,onScrollTop:r})=>A.jsx(wr,{extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:yC.scroll,initialScrollPosition:s,onScrollTop:r,children:e.length===1?A.jsx("div",{className:yC.identification,children:A.jsx(Ep,{isDeprecated:e[0].isDeprecated,documentId:e[0].documentId,documentCategory:e[0].documentCategory})}):e.map(({pageIndex:o,documentCategory:_,documentName:a,isDeprecated:c,documentId:i},E)=>A.jsx(Vr,{head:A.jsx(Ee,{children:a}),open:t.has(String(E)),onOpen:S=>n(S,o,String(E)),dataAttributes:{"data-extended-scroll":""},children:A.jsx("div",{className:yC.identification,children:A.jsx(Ep,{pageIndex:o,isDeprecated:c,documentId:i,documentCategory:_,shift:24})})},o))}),Qmt=({documentIdentification:e,initialScrollPosition:t})=>{const{setScroll:n}=kE(),{openFields:s,addOpenField:r,removeOpenField:o,resetOpenField:_}=aa(),{setPage:a}=pi(),c=(E,S,R)=>{E?(a(S),r("identification",R)):o("identification",R)},i=n?E=>n("imageQuality",E):void 0;return $.useEffect(()=>()=>{_("identification")},[e]),A.jsx(qmt,{documentIdentification:e,openFields:s.identification,onScrollTop:i,initialScrollPosition:t,onOpen:c})},Jmt="_container_q8n6s_1",egt="_name_q8n6s_14",Ap={container:Jmt,name:egt},Sp=({name:e,status:t,shift:n=0})=>{const s=On(t),r={"--shift":n+"px"};return A.jsxs("div",{className:Ap.container,children:[A.jsx(Ee,{uppercase:!0,className:Ap.name,style:r,children:A.jsx(de.ImageQualityCheckTypeLabel,{children:e})}),s]})},tgt="_head_hizy7_1",ngt="_name_hizy7_7",rgt="_status_hizy7_11",FC={head:tgt,name:ngt,status:rgt},sgt=({name:e,status:t})=>A.jsxs("div",{className:FC.head,children:[A.jsx(Ee,{className:FC.name,children:e}),A.jsx("div",{className:FC.status,children:On(t)})]}),ogt=({name:e,status:t,open:n,onOpen:s,children:r})=>A.jsx(Vr,{open:n,onOpen:s,dataAttributes:{"data-extended-scroll":""},head:A.jsx(sgt,{name:e,status:t}),children:r}),_gt="Page",agt={page:_gt},igt="Lappuse",cgt={page:igt},Egt="Seite",Agt={page:Egt},Sgt="Страница",Igt={page:Sgt};F.addResourceBundle("en","de69905604fe0024fb127e3820099c8f",agt);F.addResourceBundle("lv","de69905604fe0024fb127e3820099c8f",cgt);F.addResourceBundle("de","de69905604fe0024fb127e3820099c8f",Agt);F.addResourceBundle("ru","de69905604fe0024fb127e3820099c8f",Igt);const Rgt=()=>ze("de69905604fe0024fb127e3820099c8f"),Cgt="_scroll_180s7_1",vC={scroll:Cgt,"image-quality":"_image-quality_180s7_7"},Ogt=({imageQuality:e,documentIdentification:t,onOpen:n,openFields:s,initialScrollPosition:r,onScrollTop:o})=>{const{t:_}=Rgt();return A.jsx(wr,{extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:vC.scroll,initialScrollPosition:r,onScrollTop:o,children:e.length===1?A.jsx("div",{className:vC["image-quality"],children:e[0].checks.map(({checkType:a,checkResult:c})=>A.jsx(Sp,{name:a,status:c},a))}):e.map(({pageIndex:a,checks:c,checkResult:i},E)=>A.jsx(ogt,{name:t.find(S=>S.pageIndex===a)?.documentName||`${_("page")} ${a+1}`,status:i,open:s.has(String(E)),onOpen:S=>n(S,a,String(E)),children:A.jsx("div",{className:vC["image-quality"],children:c.map(({checkType:S,checkResult:R})=>A.jsx(Sp,{name:S,status:R,shift:24},S))})},a))})},Dgt=({imageQuality:e,documentIdentification:t,initialScrollPosition:n})=>{const{setScroll:s}=kE(),{openFields:r,addOpenField:o,removeOpenField:_,resetOpenField:a}=aa(),{setPage:c}=pi(),i=(S,R,C)=>{S?(c(R),o("imageQuality",C)):_("imageQuality",C)},E=s?S=>s("imageQuality",S):void 0;return $.useEffect(()=>()=>{a("imageQuality")},[e]),A.jsx(Ogt,{imageQuality:e,documentIdentification:t,openFields:r.imageQuality,initialScrollPosition:n,onScrollTop:E,onOpen:i})},Tgt="_name_c7mbz_1",lgt="_value_c7mbz_6",Ip={name:Tgt,value:lgt},Rp=({name:e,value:t,status:n})=>{const s=On(n);return A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:Ip.name,size:"12x160",uppercase:!0,children:e}),A.jsx(Ee,{className:Ip.value,children:t}),s]})},Ml=(e,t)=>{const n=e.replace(/\^/g,`
17
+ `).trim();return t===x.ERROR&&!n?"—":n},ugt={"preview-container":"_preview-container_t99k8_1"},Ngt=({source:e,comparisonList:t})=>A.jsxs("div",{className:ugt["preview-container"],children:[e.filter(({value:n})=>!!n).map(({source:n,value:s,checkResult:r,rect:o,pageIndex:_,probability:a},c)=>A.jsx(Rp,{name:n,value:Ml(s,r),status:r},n+s+r+a+_+JSON.stringify(o||c))),t.filter(({status:n})=>n!==x.WAS_NOT_DONE).map(({sourceLeft:n,sourceRight:s,status:r})=>A.jsx(Rp,{name:`${n} – ${s}`,value:"",status:r},n+s))]}),dgt="Page",Lgt="Probability",fgt={page:dgt,probability:Lgt},pgt="Page",hgt="Iespējamība",Pgt={page:pgt,probability:hgt},Mgt="Page",mgt="Wahrscheinlichkeit",ggt={page:Mgt,probability:mgt},ygt="Страница",Fgt="Вероятность",vgt={page:ygt,probability:Fgt};F.addResourceBundle("en","0b9710958905a1fef033fa8881ba3e7a",fgt);F.addResourceBundle("lv","0b9710958905a1fef033fa8881ba3e7a",Pgt);F.addResourceBundle("de","0b9710958905a1fef033fa8881ba3e7a",ggt);F.addResourceBundle("ru","0b9710958905a1fef033fa8881ba3e7a",vgt);const Ugt=()=>ze("0b9710958905a1fef033fa8881ba3e7a"),Bgt="_container_1r6ue_1",bgt="_item_1r6ue_4",Hgt="_name_1r6ue_19",ti={container:Bgt,item:bgt,name:Hgt},$gt=({probability:e,pageIndex:t})=>{const{t:n}=Ugt();return A.jsxs("div",{className:ti.container,children:[A.jsxs("div",{className:ti.item,children:[A.jsx(Ee,{uppercase:!0,className:ti.name,children:n("probability")}),A.jsx(Ee,{children:e+"%"})]}),A.jsxs("div",{className:ti.item,children:[A.jsx(Ee,{uppercase:!0,className:ti.name,children:n("page")}),A.jsx(Ee,{children:t+1})]})]})},Ggt="_content_19nax_1",Vgt={content:Ggt},xgt=({source:e})=>A.jsxs("div",{className:Vgt.content,children:[A.jsx(Ee,{size:"18x135",children:A.jsx(de.Source,{children:e})}),A.jsx(Ee,{children:A.jsx(de.SourceDescription,{children:e})})]}),wgt="_content_lkw3k_1",Ygt={content:wgt},kgt=({left:e,right:t})=>A.jsx("div",{className:Ygt.content,children:A.jsx(Ee,{children:`Comparison between ${e} and ${t}.`})}),Kgt="_comparison_pjakd_1",jgt="_name_pjakd_7",Cp={comparison:Kgt,name:jgt},Wgt=({left:e,right:t,status:n})=>{const s=On(n);return A.jsxs("div",{className:Cp.comparison,children:[A.jsx(Ee,{className:Cp.name,children:A.jsx(p_,{modal:A.jsx(kgt,{left:e,right:t}),children:`${e} – ${t}`})}),s]})},Zgt="_head_1a596_1",Xgt="_name_1a596_7",zgt="_value_1a596_10",qgt="_status_1a596_14",Qgt="_pointer_1a596_20",ni={head:Zgt,name:Xgt,value:zgt,status:qgt,pointer:Qgt},Jgt=({name:e,value:t,status:n,onClick:s,onMouseEnter:r,onMouseLeave:o,onMouseMove:_,dataTestKey:a,dataTestValue:c})=>A.jsxs("div",{className:Ke(ni.head),children:[A.jsx(Ee,{className:Ke(ni.name,{[ni.pointer]:!!s||!!_}),onClick:s,onMouseEnter:r,onMouseLeave:o,onMouseMove:_,dataTest:a,children:e}),A.jsx(Ee,{className:ni.value,dataTest:c,children:t}),A.jsx("div",{className:ni.status,children:n!==void 0?On(n):null})]}),eyt="_preview_5c332_1",G_={"preview-container":"_preview-container_5c332_1",preview:eyt,"opacity-enter":"_opacity-enter_5c332_21","opacity-enter-active":"_opacity-enter-active_5c332_25","opacity-exit":"_opacity-exit_5c332_30","opacity-exit-active":"_opacity-exit-active_5c332_34"},tyt=({previewPosition:e,showPreview:t,children:n})=>{const s=$.useRef(null),r={"--preview-x":e.x+"px","--preview-y":e.y+"px"};return A.jsx(f_,{nodeRef:s,in:t,timeout:100,classNames:{enter:G_["opacity-enter"],enterActive:G_["opacity-enter-active"],exit:G_["opacity-exit"],exitActive:G_["opacity-exit-active"]},unmountOnExit:!0,children:A.jsx("div",{className:G_["preview-container"],children:A.jsx("div",{className:G_.preview,style:r,ref:s,children:n})})})},nyt="_collapse_bw4cq_1",ryt="_selected_bw4cq_5",Op={collapse:nyt,selected:ryt},Dp=({type:e,name:t,collapse:n=!0,value:s,status:r,open:o,children:_,shift:a=0,onClick:c,selected:i,onOpen:E,preview:S,dataTestKey:R,dataTestValue:C})=>{const[I,T]=$.useState(!1),[u,d]=$.useState({x:0,y:0}),f=h=>d({x:h.clientX+scrollX,y:h.clientY+scrollY}),p=h=>{f(h),T(!0)},N=()=>T(!1);return A.jsxs(A.Fragment,{children:[A.jsx(Vr,{className:Ke(Op.collapse,{[Op.selected]:i}),style:{"--shift":a+"px"},collapse:n,type:e,onOpen:E,open:o,dataAttributes:{"data-extended-scroll":""},head:A.jsx(Jgt,{name:t,value:s,status:r,onClick:c,onMouseEnter:S?p:void 0,onMouseLeave:S?N:void 0,onMouseMove:S?f:void 0,dataTestKey:R,dataTestValue:C}),children:_}),S&&xs.createPortal(A.jsx(tyt,{showPreview:!o&&I,previewPosition:u,children:S}),document.body)]})},syt=(e,t)=>e.some(({value:n})=>n!=="")||t.length>0,oyt={"text-data":"_text-data_uau8a_1"},_yt=({onSelect:e,selections:t,groupValue:n,status:s,bySource:r,comparisonList:o,groupName:_,isSelected:a,isMultipleRFID:c,openFields:i,onOpen:E,groupId:S,isCollapse:R,groupClickHandler:C,preview:I})=>A.jsx(Dp,{name:_,value:n,status:s,selected:a,open:i.has(S),preview:I,onOpen:T=>E(T,S),collapse:R,onClick:C,dataTestKey:"params-group_key",dataTestValue:"params-group_value",children:A.jsxs("div",{className:oyt["text-data"],children:[r.map(({source:T,value:u,checkResult:d,probability:f,pageIndex:p,rect:N,rfidOrigin:h},g)=>{const M=`${S}.${g}`;return u.trim()||d!==x.WAS_NOT_DONE?A.jsx(Dp,{type:"nested",shift:20,open:i.has(M),onOpen:H=>E(H,M),name:A.jsx(p_,{modal:A.jsx(xgt,{source:T}),children:c&&T===Vt.RFID?`${T} (DG${h?.dg||""})`:T}),value:Ml(u,d),status:d,selected:N&&sa(t,[{page:p,path:_,checkResult:d,location:{rect:[N]}}]),onClick:N&&ra([N])?()=>e([{page:p,path:_,checkResult:d,location:{rect:[N]}}]):void 0,children:A.jsx($gt,{probability:f,pageIndex:p})},T+u+d+f+p+JSON.stringify(N||g)):null}),o.map(({sourceLeft:T,sourceRight:u,status:d})=>A.jsx(Wgt,{left:T,right:u,status:d},T+u))]})}),ayt=9999,iyt=({onSelect:e,selections:t,groupId:n,type:s,value:r,lcid:o,checkResult:_,bySource:a,comparisonList:c})=>{const{openFields:i,addOpenField:E,removeOpenField:S}=aa();ze();const R=syt(a,c),C=Ml(r,_),I=o!==K.LATIN&&o!==ayt,T=`${de.getVisualFieldType(s)}${I?` (${de.getLCID(o)})`:""}`,u=R?A.jsx(Ngt,{source:a,comparisonList:c}):void 0,d=a.reduce((g,M)=>(M.rect&&ra([M.rect])&&g.push({page:M.pageIndex,path:T,checkResult:M.checkResult,location:{rect:[M.rect]}}),g),[]),f=sa(t,d),p=a.filter(g=>g.source===Vt.RFID).length>1,N=(g,M)=>g?E("textData",M):S("textData",M),h=()=>{d.length&&(e(d),N(!f||!i.textData.has(n),n))};return A.jsx(_yt,{onSelect:e,selections:t,status:_,bySource:a,comparisonList:c,groupName:T,isSelected:f,isMultipleRFID:p,groupValue:C,openFields:i.textData,onOpen:N,groupId:n,isCollapse:R,groupClickHandler:h,preview:u})},cyt="_scroll_ev01v_1",Eyt={scroll:cyt},Ayt=({onSelect:e,selections:t,textData:n,onScrollTop:s,initialScrollPosition:r})=>A.jsx(wr,{onScrollTop:s,initialScrollPosition:r,extendedItemSelector:"[data-extended-scroll]",extendedScrollDelay:200,className:Eyt.scroll,children:n.map(({type:o,value:_,checkResult:a,bySource:c,comparisonList:i,lcid:E},S)=>A.jsx(iyt,{type:o,value:_,checkResult:a,bySource:c,comparisonList:i,lcid:E,onSelect:e,selections:t,groupId:String(S)},o+_+E))}),Syt=({onSelect:e,textData:t,initialScrollPosition:n})=>{const{setScroll:s}=kE(),{resetOpenField:r}=aa(),{selections:o}=HE(),_=s?a=>s("textData",a):void 0;return $.useEffect(()=>()=>{r("textData")},[t]),A.jsx(Ayt,{onSelect:e,selections:o,textData:t,initialScrollPosition:n,onScrollTop:_})},Iyt="_tabs_1qa1i_1",Ryt={tabs:Iyt},Cyt=({tabs:e,onTabChange:t,tab:n,className:s})=>A.jsx(j_.Element,{name:"text",className:Ke(Ryt.tabs,s),children:A.jsx(XT,{tab:n,type:"line",items:e,onTabChange:t})}),FF=({imageViewer:e,className:t,initialTab:n,onTabChange:s,initialScrollPosition:r,onScrollTop:o,openFields:_,onOpenFieldsChange:a})=>{const{t:c}=jht(),{response:i}=In(),{tabID:E=n,setTabID:S}=mp(),{setSelections:R}=HE();$.useEffect(()=>()=>{S(n??cr.TEXT_DATA)},[i]);const{textData:C,imageQuality:I,authenticity:T,documentIdentification:u}=$.useMemo(()=>{if(!i)return{textData:[],imageQuality:[],authenticity:[],documentIdentification:[]};const h=JM(i).filter(B=>B.value.trim()||B.checkResult!==x.WAS_NOT_DONE),g=NM(i).sort((B,P)=>B.pageIndex-P.pageIndex),M=AM(i).filter(({groups:B})=>B.length>0),H=VT(i).sort((B,P)=>B.pageIndex-P.pageIndex);return{textData:h,imageQuality:g,authenticity:M,documentIdentification:H}},[i]),d=$.useMemo(()=>({authenticity:mF(T),imageQuality:gF(I)}),[T,I]),f=h=>{R(g=>{const M=g.map(B=>JSON.stringify(B)),H=[...g];if(h.length===1){const B=JSON.stringify(h[0]);return M.includes(B)?H.length>1?H.filter(m=>JSON.stringify(m)===B):[]:h}else{const B=h.map(m=>JSON.stringify(m));return h.every(m=>M.includes(JSON.stringify(m)))?H.filter(m=>!B.includes(JSON.stringify(m))):h}})},p=h=>{s?.(h),S(h),R([])},N=$.useMemo(()=>{const h=[];return C.length&&h.push({id:cr.TEXT_DATA,label:c("textFields"),children:A.jsx(Syt,{textData:C,onSelect:f,initialScrollPosition:r?.textData})}),T.length&&h.push({id:cr.AUTHENTICITY,label:c("securityChecks"),children:A.jsx(Imt,{authenticity:T,documentIdentification:u,onSelect:f,imageViewer:e,initialScrollPosition:r?.authenticity})}),I.length&&h.push({id:cr.IMAGE_QUALITY,label:c("imageQuality"),children:A.jsx(Dgt,{imageQuality:I,documentIdentification:u,initialScrollPosition:r?.imageQuality})}),u.length&&h.push({id:cr.IDENTIFICATION,label:c("documentType"),children:A.jsx(Qmt,{documentIdentification:u,initialScrollPosition:r?.identification})}),h},[C,T,I,u,r,e,c]);return N.length?A.jsx(KU,{onOpenFieldsChange:a,openFields:_||d,children:A.jsx(WU,{onScrollTop:o,children:A.jsx(Cyt,{tab:E,onTabChange:p,tabs:N,className:t})})}):null},Oyt="_container_zyz6e_1",Dyt={container:Oyt},Tyt=({identification:e,className:t})=>A.jsx("div",{className:Ke(Dyt.container,t),children:A.jsx(Ee,{size:"18x135",children:e.length?e[0].documentName:"​"})}),vF=({className:e})=>{const{response:t}=In(),{page:n}=pi(),s=c9(t,n);return A.jsx(Tyt,{identification:s,className:e})},lyt="_container_19s23_1",uyt="_content_19s23_9",Nyt="_tabs_19s23_13",dyt="_images_19s23_16",oE={container:lyt,content:uyt,tabs:Nyt,images:dyt},Lyt=({imageViewer:e})=>A.jsxs("div",{className:oE.container,children:[A.jsx(vF,{}),A.jsxs("div",{className:oE.content,children:[A.jsx(MF,{className:oE.images,imageViewer:e}),A.jsx(FF,{className:oE.tabs,imageViewer:e})]})]}),fyt="RFID chip",pyt="BAC — Basic Access Control: Controls access to RFID chip data.",hyt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",Pyt="CA — Chip Authentication: Proves that the chip isn't cloned.",Myt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",myt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",gyt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",yyt="Explore more",Fyt={rfid:fyt,BACDescription:pyt,PACEDescription:hyt,CADescription:Pyt,TADescription:Myt,AADescription:myt,PADescription:gyt,exploreMore:yyt},vyt="RFID čips",Uyt="BAC — Basic Access Control: Controls access to RFID chip data.",Byt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",byt="CA — Chip Authentication: Proves that the chip isn't cloned.",Hyt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",$yt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",Gyt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",Vyt="Explore more",xyt={rfid:vyt,BACDescription:Uyt,PACEDescription:Byt,CADescription:byt,TADescription:Hyt,AADescription:$yt,PADescription:Gyt,exploreMore:Vyt},wyt="RFID-Chip",Yyt="BAC — Basic Access Control: Controls access to RFID chip data.",kyt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",Kyt="CA — Chip Authentication: Proves that the chip isn't cloned.",jyt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",Wyt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",Zyt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",Xyt="Explore more",zyt={rfid:wyt,BACDescription:Yyt,PACEDescription:kyt,CADescription:Kyt,TADescription:jyt,AADescription:Wyt,PADescription:Zyt,exploreMore:Xyt},qyt="RFID-чип",Qyt="BAC — Basic Access Control: Controls access to RFID chip data.",Jyt="PACE — Password Authenticated Connection Establishment: A more secure communication channel compared to BAC.",eFt="CA — Chip Authentication: Proves that the chip isn't cloned.",tFt="TA — Terminal Authentication: Ensures that sensitive data can only be read by a reader that is granted permission through a certificate chain.",nFt="AA — Active Authentication: Verifies the chip's authenticity through a challenge-response mechanism.",rFt="PA — Passive Authentication: Proves the authenticity of the data by checking digital signatures against certificates issued by the document's issuing authority.",sFt="Explore more",oFt={rfid:qyt,BACDescription:Qyt,PACEDescription:Jyt,CADescription:eFt,TADescription:tFt,AADescription:nFt,PADescription:rFt,exploreMore:sFt};F.addResourceBundle("en","93a6a13564bdfe0d361e1fb10b11f75b",Fyt);F.addResourceBundle("lv","93a6a13564bdfe0d361e1fb10b11f75b",xyt);F.addResourceBundle("de","93a6a13564bdfe0d361e1fb10b11f75b",zyt);F.addResourceBundle("ru","93a6a13564bdfe0d361e1fb10b11f75b",oFt);const UF=()=>ze("93a6a13564bdfe0d361e1fb10b11f75b"),_Ft="_container_19g68_1",aFt="_content_19g68_13",BF={container:_Ft,content:aFt},iFt=()=>{const{t:e}=UF();return A.jsxs("div",{className:BF.content,children:[A.jsx(Ee,{children:e("BACDescription")}),A.jsx(Ee,{children:e("PACEDescription")}),A.jsx(Ee,{children:e("CADescription")}),A.jsx(Ee,{children:e("TADescription")}),A.jsx(Ee,{children:e("AADescription")}),A.jsx(Ee,{children:e("PADescription")}),A.jsx(fS,{href:"https://docs.regulaforensics.com/develop/doc-reader-sdk/overview/security-mechanisms-for-electronic-documents/",target:"_blank",children:e("exploreMore")})]})},cFt=({checksSummary:e})=>{const t=On(e.overallStatus,20),{t:n}=UF();return A.jsxs("div",{className:BF.container,children:[t,A.jsx(p_,{modal:A.jsx(iFt,{}),children:A.jsx(Ee,{size:"18x135",children:n("rfid")})})]})},EFt=()=>{const{response:e}=In();if(!e)return null;const t=BT(e);return A.jsx(cFt,{checksSummary:t})},AFt="_protocols_1v0xj_1",SFt={protocols:AFt},IFt={"protocols-item":"_protocols-item_zef60_1"},V_=({status:e,name:t})=>{const n=On(e);return A.jsxs("div",{className:IFt["protocols-item"],children:[n,A.jsx(Ee,{children:t})]})},RFt=({checksSummary:e})=>A.jsxs("div",{className:SFt.protocols,children:[A.jsx(V_,{status:e.BAC,name:"BAC"}),A.jsx(V_,{status:e.PACE,name:"PACE"}),A.jsx(V_,{status:e.CA,name:"CA"}),A.jsx(V_,{status:e.TA,name:"TA"}),A.jsx(V_,{status:e.AA,name:"AA"}),A.jsx(V_,{status:e.PA,name:"PA"})]}),CFt=()=>{const{response:e}=In();if(!e)return null;const t=BT(e);return A.jsx(RFt,{checksSummary:t})},OFt="Status",DFt="Data group",TFt={status:OFt,dataGroup:DFt},lFt="Status",uFt="Data group",NFt={status:lFt,dataGroup:uFt},dFt="Status",LFt="Datengruppe",fFt={status:dFt,dataGroup:LFt},pFt="Статус",hFt="Группа данных",PFt={status:pFt,dataGroup:hFt};F.addResourceBundle("en","d4114710292aed4785f9eac390bfb16c",TFt);F.addResourceBundle("lv","d4114710292aed4785f9eac390bfb16c",NFt);F.addResourceBundle("de","d4114710292aed4785f9eac390bfb16c",fFt);F.addResourceBundle("ru","d4114710292aed4785f9eac390bfb16c",PFt);const MFt=()=>ze("d4114710292aed4785f9eac390bfb16c"),mFt="Explore more",gFt={exploreMore:mFt},yFt="Explore more",FFt={exploreMore:yFt},vFt="Explore more",UFt={exploreMore:vFt},BFt="Explore more",bFt={exploreMore:BFt};F.addResourceBundle("en","2585760a28dc7779839710b4236d291e",gFt);F.addResourceBundle("lv","2585760a28dc7779839710b4236d291e",FFt);F.addResourceBundle("de","2585760a28dc7779839710b4236d291e",UFt);F.addResourceBundle("ru","2585760a28dc7779839710b4236d291e",bFt);const HFt=()=>ze("2585760a28dc7779839710b4236d291e"),$Ft="_content_f2x40_1",GFt="_title_f2x40_10",dO={content:$Ft,title:GFt},VFt=({type:e})=>{const{t}=HFt();return A.jsxs("div",{className:dO.content,children:[A.jsx(Ee,{children:A.jsx(de.RfidApplicationDescription,{children:e})}),A.jsx(fS,{href:e===Wt.eDTC_PC?"https://www.icao.int/Security/FAL/TRIP/PublishingImages/Pages/Publications/Guiding%20core%20principles%20for%20the%20development%20of%20a%20Digital%20Travel%20Credential%20%20%28DTC%29.PDF":"https://downloads.regulaforensics.com/work/SDK/doc/Programmers%20Guide%20RFID%20(en).pdf",target:"_blank",children:t("exploreMore")})]})},xFt=({type:e})=>de.getRfidApplicationDescription(e)?A.jsx(p_,{className:dO.title,modal:A.jsx(VFt,{type:e}),children:A.jsx(Ee,{size:"16x100",children:A.jsx(de.RfidApplicationType,{children:e})})}):A.jsx(Ee,{className:dO.title,size:"16x100",children:A.jsx(de.RfidApplicationType,{children:e})}),wFt="_table_boedb_1",Tp={table:wFt,"data-group-item":"_data-group-item_boedb_13"},YFt=({type:e,groups:t})=>{const{t:n}=MFt();return A.jsxs("div",{className:Tp["data-group-item"],children:[A.jsx(xFt,{type:e}),A.jsx(Am,{className:Tp.table,columns:[{title:n("dataGroup"),dataIndex:"dataGroup"},{title:n("status"),dataIndex:"status"}],dataSource:t},e)]})},kFt=({dataGroupsStatusList:e})=>e.map(({type:n,groups:s})=>({type:n,groups:s.map(({group:r,status:o})=>({dataGroup:A.jsx(Ee,{children:A.jsx(de.RfidDataFileType,{children:r})}),status:On(o)}))})).map(({type:n,groups:s})=>A.jsx(YFt,{type:n,groups:s},n)),KFt=[j.APP_DIRECTORY,j.POST_CA_RESPONSE,j.POST_CA_PUBLIC_KEY,j.POST_CA_INFO,j.POST_CA_D_PARAMS,j.POST_CA_CHECK_PK,j.POST_CA_CHECK_SK],jFt=()=>{const{response:e}=In();if(!e)return null;const t=yM(e).map(n=>({...n,groups:n.groups.filter(({group:s})=>!KFt.includes(s))})).sort((n,s)=>n.type-s.type);return t.length?A.jsx(kFt,{dataGroupsStatusList:t}):null},WFt="Data groups",ZFt="Green — successfully read and validated.",XFt="Red — validation failed.",zFt="Blue — not read.",qFt="Gray — not present.",QFt={dataGroups:WFt,greenDataGroupDescription:ZFt,redDataGroupDescription:XFt,blueDataGroupDescription:zFt,greyDataGroupDescription:qFt},JFt="Datu grupas",evt="Green — successfully read and validated.",tvt="Red — validation failed.",nvt="Blue — not read.",rvt="Gray — not present.",svt={dataGroups:JFt,greenDataGroupDescription:evt,redDataGroupDescription:tvt,blueDataGroupDescription:nvt,greyDataGroupDescription:rvt},ovt="Datengruppen",_vt="Green — successfully read and validated.",avt="Red — validation failed.",ivt="Blue — not read.",cvt="Gray — not present.",Evt={dataGroups:ovt,greenDataGroupDescription:_vt,redDataGroupDescription:avt,blueDataGroupDescription:ivt,greyDataGroupDescription:cvt},Avt="Группы данных",Svt="Green — successfully read and validated.",Ivt="Red — validation failed.",Rvt="Blue — not read.",Cvt="Gray — not present.",Ovt={dataGroups:Avt,greenDataGroupDescription:Svt,redDataGroupDescription:Ivt,blueDataGroupDescription:Rvt,greyDataGroupDescription:Cvt};F.addResourceBundle("en","c4f5554bedab345f725528fbffc96cb5",QFt);F.addResourceBundle("lv","c4f5554bedab345f725528fbffc96cb5",svt);F.addResourceBundle("de","c4f5554bedab345f725528fbffc96cb5",Evt);F.addResourceBundle("ru","c4f5554bedab345f725528fbffc96cb5",Ovt);const bF=()=>ze("c4f5554bedab345f725528fbffc96cb5"),Dvt="_title_nw0t2_1",Tvt="_content_nw0t2_5",HF={title:Dvt,content:Tvt},lvt=()=>{const{t:e}=bF();return A.jsx("div",{className:HF.content,children:A.jsxs(Ee,{children:[e("greenDataGroupDescription"),A.jsx("br",{}),e("redDataGroupDescription"),A.jsx("br",{}),e("blueDataGroupDescription"),A.jsx("br",{}),e("greyDataGroupDescription")]})})},uvt=()=>{const{t:e}=bF();return A.jsx(p_,{className:HF.title,modal:A.jsx(lvt,{}),children:A.jsx(Ee,{children:e("dataGroups")})})},Nvt="_grey_za6vj_1",dvt="_green_za6vj_5",Lvt="_red_za6vj_9",fvt="_blue_za6vj_13",_E={grey:Nvt,green:dvt,red:Lvt,blue:fvt},pvt=({status:e,children:t})=>A.jsx(Ee,{className:Ke(_E.grey,{[_E.green]:e===ir.NO_ERROR,[_E.red]:e===ir.FAILED,[_E.blue]:e===ir.NOT_PERFORMED}),size:"14x115",children:t}),hvt="_groups_3epf7_1",Pvt="_numbers_3epf7_5",lp={groups:hvt,numbers:Pvt},Mvt=({dataGroups:e})=>A.jsxs("div",{className:lp.groups,children:[A.jsx(uvt,{}),A.jsx("div",{className:lp.numbers,children:e.map(({group:t,status:n})=>A.jsx(pvt,{status:n,children:t},t))})]}),mvt=()=>{const{response:e}=In();if(!e)return null;const t=PM(e);return t.length?A.jsx(Mvt,{dataGroups:t}):null},gvt="Certificate name",yvt="Public key algorithm",Fvt="Signature algorithm",vvt="Certificate issuer",Uvt="Certificate subject",Bvt="Valid from",bvt="Valid until",Hvt={certificateType:gvt,publicKeyAlgorithm:yvt,signatureAlgorithm:Fvt,issuer:vvt,subject:Uvt,validFrom:Bvt,validTo:bvt},$vt="Certificate name",Gvt="Public key algorithm",Vvt="Paraksta algoritms",xvt="Certificate issuer",wvt="Certificate subject",Yvt="Derīgs no",kvt="Derīgs līdz",Kvt={certificateType:$vt,publicKeyAlgorithm:Gvt,signatureAlgorithm:Vvt,issuer:xvt,subject:wvt,validFrom:Yvt,validTo:kvt},jvt="Certificate name",Wvt="Public-Key-Algorithmus",Zvt="Signatur-Algorithmus",Xvt="Zertifikataussteller",zvt="Zertifikatgegenstand",qvt="Gültig ab",Qvt="Gültig bis",Jvt={certificateType:jvt,publicKeyAlgorithm:Wvt,signatureAlgorithm:Zvt,issuer:Xvt,subject:zvt,validFrom:qvt,validTo:Qvt},eUt="Certificate name",tUt="Алгоритм открытого ключа",nUt="Алгоритм подписи",rUt="Издатель сертификата",sUt="Издатель документа",oUt="Действителен с",_Ut="Действителен по",aUt={certificateType:eUt,publicKeyAlgorithm:tUt,signatureAlgorithm:nUt,issuer:rUt,subject:sUt,validFrom:oUt,validTo:_Ut};F.addResourceBundle("en","2ef7d36902ecc24a3297c2e90393b16c",Hvt);F.addResourceBundle("lv","2ef7d36902ecc24a3297c2e90393b16c",Kvt);F.addResourceBundle("de","2ef7d36902ecc24a3297c2e90393b16c",Jvt);F.addResourceBundle("ru","2ef7d36902ecc24a3297c2e90393b16c",aUt);const iUt=()=>ze("2ef7d36902ecc24a3297c2e90393b16c"),cUt="_list_15ifc_1",EUt="_name_15ifc_12",Ao={list:cUt,name:EUt},AUt=({certificate:e})=>{const{t}=iUt();return A.jsxs("div",{className:Ao.list,children:[A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("certificateType")}),A.jsx(Ee,{children:A.jsx(de.RfidCertificateType,{children:e.certificateType})}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("publicKeyAlgorithm")}),A.jsx(Ee,{children:e.publicKeyAlgorithm}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("signatureAlgorithm")}),A.jsx(Ee,{children:e.signatureAlgorithm}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("issuer")}),A.jsx(Ee,{children:e.issuer}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("subject")}),A.jsx(Ee,{children:e.subject}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("validFrom")}),A.jsx(Ee,{children:e.validFrom}),A.jsx(Ee,{className:Ao.name,uppercase:!0,size:"12x160",children:t("validTo")}),A.jsx(Ee,{children:e.validTo})]})},SUt="Certificates",IUt={certificates:SUt},RUt="Sertifikāti",CUt={certificates:RUt},OUt="Zertifikate",DUt={certificates:OUt},TUt="Сертификаты",lUt={certificates:TUt};F.addResourceBundle("en","bd23e0c23d00f0c4c95808a1d4c18f6d",IUt);F.addResourceBundle("lv","bd23e0c23d00f0c4c95808a1d4c18f6d",CUt);F.addResourceBundle("de","bd23e0c23d00f0c4c95808a1d4c18f6d",DUt);F.addResourceBundle("ru","bd23e0c23d00f0c4c95808a1d4c18f6d",lUt);const uUt=()=>ze("bd23e0c23d00f0c4c95808a1d4c18f6d"),NUt="_certificates_g4aay_1",dUt="_container_g4aay_6",up={certificates:NUt,container:dUt},LUt=({certificates:e})=>{const{t}=uUt();return A.jsxs("div",{className:up.certificates,children:[A.jsx(Ee,{children:t("certificates")}),A.jsx("div",{className:up.container,children:e.map((n,s)=>A.jsx(AUt,{certificate:n},s))})]})},fUt=()=>{const{response:e}=In();if(!e)return null;const t=fM(e);return t.length?A.jsx(LUt,{certificates:t}):null},pUt="_container_1g8sy_1",hUt="_data_1g8sy_15",PUt="_protocols_1g8sy_26",MUt="_groups_1g8sy_32",aE={container:pUt,data:hUt,protocols:PUt,groups:MUt},mUt=()=>A.jsxs("div",{className:aE.container,children:[A.jsx(EFt,{}),A.jsxs(j_.Element,{name:"rfid",className:aE.data,children:[A.jsxs("div",{className:aE.protocols,children:[A.jsx(CFt,{}),A.jsx(jFt,{})]}),A.jsxs("div",{className:aE.groups,children:[A.jsx(mvt,{}),A.jsx(fUt,{})]})]})]}),gUt=()=>{const{response:e}=In();return!e||!exports.DocBinaryInfoContainer.fromProcessResponse(e).length?null:A.jsx(mUt,{})},yUt="Graphic fields",FUt={graphics:yUt},vUt="Grafiskie lauki",UUt={graphics:vUt},BUt="Grafikfelder",bUt={graphics:BUt},HUt="Графические поля",$Ut={graphics:HUt};F.addResourceBundle("en","3bc9054a63aa53765bd9ce110e67521e",FUt);F.addResourceBundle("lv","3bc9054a63aa53765bd9ce110e67521e",UUt);F.addResourceBundle("de","3bc9054a63aa53765bd9ce110e67521e",bUt);F.addResourceBundle("ru","3bc9054a63aa53765bd9ce110e67521e",$Ut);const GUt=()=>ze("3bc9054a63aa53765bd9ce110e67521e"),VUt="_container_fdn1i_1",xUt={container:VUt},wUt=()=>{const{t:e}=GUt();return A.jsx("div",{className:xUt.container,children:A.jsx(Ee,{size:"18x135",children:e("graphics")})})},YUt="_text_c8ml4_1",kUt="_image_c8ml4_5",Np={text:YUt,image:kUt},KUt=({name:e,url:t,imageViewer:n=!0})=>A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:Np.text,size:"12x160",uppercase:!0,children:e}),A.jsx(va,{src:t,alt:String(e),className:Np.image,draggable:!1,magnifierImgBorderRadius:4,magnifier:!0,download:!0,viewer:n})]});var X_=(e=>(e.NONE="NONE",e.SOURCE="SOURCE",e.LIGHT="LIGHT",e.SOURCE_LIGHT="SOURCE_LIGHT",e))(X_||{});const jUt=e=>{const t=e[0];return e.every(s=>s.source===t.source)?X_.NONE:X_.SOURCE},WUt=(e,t,n,s)=>{switch(s){case X_.SOURCE:return`${de.getGraphicFieldType(e)} (${de.getSource(t)})`;case X_.LIGHT:return`${de.getGraphicFieldType(e)} (${de.getLightsLabel(n)})`;case X_.SOURCE_LIGHT:return`${de.getGraphicFieldType(e)} (${de.getSource(t)}, ${de.getLightsLabel(n)})`;default:return de.getGraphicFieldType(e)}},ZUt="_container_b06p4_1",XUt={container:ZUt},zUt=({images:e,imageViewer:t})=>(ze(),A.jsx(wr,{children:A.jsx("div",{className:XUt.container,children:Object.entries(e).reduce((n,[s,r])=>{const o=jUt(r);return r.forEach(({src:_,source:a,light:c},i)=>{const E=WUt(s,a,c,o);_&&n.push(A.jsx(KUt,{name:E,url:_,imageViewer:t},s+i))}),n},[])})})),qUt="_container_1hyjc_1",QUt={container:qUt},JUt=({images:e,imageViewer:t})=>A.jsxs("div",{className:QUt.container,children:[A.jsx(wUt,{}),A.jsx(zUt,{images:e,imageViewer:t})]}),e2t=({imageViewer:e})=>{const{response:t}=In();if(!t)return null;const n=XA(t).filter(r=>r.fieldType!==Tt.DOCUMENT_FRONT);if(!n.length)return null;const s=n.reduce((r,{pages:o,light:_,fieldType:a})=>{const c=o.map(({src:i,source:E})=>({light:_,source:E,src:i}));return r[a]?r[a].push(...c):r[a]=c,r},{});return A.jsx(JUt,{images:s,imageViewer:e})},t2t=({response:e,request:t,children:n,language:s})=>($.useEffect(()=>{F.changeLanguage(s)},[s]),A.jsx(Hv,{children:A.jsx(Bv,{children:A.jsx(bv,{children:A.jsx(pp.Provider,{value:{response:exports.ProcessResponse.fromPlain(e),request:t},children:n})})})})),n2t="_response_afppc_1",r2t="_scroll_afppc_25",iE={"response-tabs":"_response-tabs_afppc_1","response-raw":"_response-raw_afppc_10",response:n2t,scroll:r2t},s2t=({items:e,response:t})=>A.jsx("div",{className:e.length?iE["response-tabs"]:iE["response-raw"],children:e.length?A.jsx(XT,{type:"line",items:e}):A.jsx(wr,{maxHeight:630,className:iE.scroll,children:A.jsx("div",{className:iE.response,children:A.jsx(aS,{data:t})})})}),o2t="Status",_2t="Graphic fields",a2t="Text fields",i2t="Document type",c2t="Image quality",E2t="Security checks",A2t="RFID chip",S2t="Portrait comparison",I2t="Barcode data",R2t={status:o2t,graphicFields:_2t,textFields:a2t,documentType:i2t,imageQuality:c2t,securityChecks:E2t,rfidChip:A2t,portraitComparison:S2t,barcodeData:I2t},C2t="Status",O2t="Grafiskie lauki",D2t="Teksta lauki",T2t="Dokumenta tips",l2t="Attēla kvalitāte",u2t="Security checks",N2t="RFID chip",d2t="Fotogrāfiju salīdzināšana",L2t="Barcode data",f2t={status:C2t,graphicFields:O2t,textFields:D2t,documentType:T2t,imageQuality:l2t,securityChecks:u2t,rfidChip:N2t,portraitComparison:d2t,barcodeData:L2t},p2t="Status",h2t="Grafikfelder",P2t="Textfelder",M2t="Dokumenttyp",m2t="Bildqualität",g2t="Sicherheitsprüfungen",y2t="RFID chip",F2t="Portraitvergleich",v2t="Barcode data",U2t={status:p2t,graphicFields:h2t,textFields:P2t,documentType:M2t,imageQuality:m2t,securityChecks:g2t,rfidChip:y2t,portraitComparison:F2t,barcodeData:v2t},B2t="Статус",b2t="Графические поля",H2t="Текстовые поля",$2t="Тип документа",G2t="Качество изображения",V2t="Проверки подлинности",x2t="Микросхема RFID",w2t="Сравнение портретов",Y2t="Barcode data",k2t={status:B2t,graphicFields:b2t,textFields:H2t,documentType:$2t,imageQuality:G2t,securityChecks:V2t,rfidChip:x2t,portraitComparison:w2t,barcodeData:Y2t};F.addResourceBundle("en","e8c2f11c244c22722d261bdffcf4b70e",R2t);F.addResourceBundle("lv","e8c2f11c244c22722d261bdffcf4b70e",f2t);F.addResourceBundle("de","e8c2f11c244c22722d261bdffcf4b70e",U2t);F.addResourceBundle("ru","e8c2f11c244c22722d261bdffcf4b70e",k2t);const K2t=()=>ze("e8c2f11c244c22722d261bdffcf4b70e"),j2t="_scroll_1gv8h_1",W2t="_tab_1gv8h_4",dp={scroll:j2t,tab:W2t},Bs=({json:e})=>A.jsx(wr,{maxHeight:630,className:dp.scroll,children:A.jsx("div",{className:dp.tab,children:A.jsx(aS,{data:e})})}),Z2t=()=>{const{t:e}=K2t(),{response:t}=In();if(!t)return null;const n=exports.StatusContainer.fromProcessResponse(t),s=exports.ImagesResultContainer.fromProcessResponse(t),r=exports.TextResultContainer.fromProcessResponse(t),o=exports.OneCandidateContainer.fromProcessResponse(t),_=exports.ImageQualityCheckListContainer.fromProcessResponse(t),a=exports.AuthenticityCheckListContainer.fromProcessResponse(t),c=a.filter(C=>C.result_type===ie.AUTHENTICITY),i=a.filter(C=>C.result_type===ie.PORTRAIT_COMPARISON),E=exports.DocBinaryInfoContainer.fromProcessResponse(t),S=exports.DocBarCodeInfoContainer.fromProcessResponse(t),R=[];return n.length&&R.push({id:"status",label:e("status"),children:A.jsx(Bs,{json:n})}),s.length&&R.push({id:"graphicFields",label:e("graphicFields"),children:A.jsx(Bs,{json:s})}),r.length&&R.push({id:"textFields",label:e("textFields"),children:A.jsx(Bs,{json:r})}),o.length&&R.push({id:"documentType",label:e("documentType"),children:A.jsx(Bs,{json:o})}),_.length&&R.push({id:"imageQuality",label:e("imageQuality"),children:A.jsx(Bs,{json:_})}),c.length&&R.push({id:"authenticity",label:e("securityChecks"),children:A.jsx(Bs,{json:c})}),E.length&&R.push({id:"rfidChip",label:e("rfidChip"),children:A.jsx(Bs,{json:E})}),i.length&&R.push({id:"portraitComparison",label:e("portraitComparison"),children:A.jsx(Bs,{json:i})}),S.length&&R.push({id:"barcodeData",label:e("barcodeData"),children:A.jsx(Bs,{json:S})}),A.jsx(s2t,{items:R,response:t})},X2t="There is no request available.",z2t={noRequestAvailable:X2t},q2t="There is no request available.",Q2t={noRequestAvailable:q2t},J2t="There is no request available.",eBt={noRequestAvailable:J2t},tBt="There is no request available.",nBt={noRequestAvailable:tBt};F.addResourceBundle("en","070950235d2ef3e48f8ef7154afa9ccf",z2t);F.addResourceBundle("lv","070950235d2ef3e48f8ef7154afa9ccf",Q2t);F.addResourceBundle("de","070950235d2ef3e48f8ef7154afa9ccf",eBt);F.addResourceBundle("ru","070950235d2ef3e48f8ef7154afa9ccf",nBt);const rBt=()=>ze("070950235d2ef3e48f8ef7154afa9ccf"),sBt="_title_gqbxa_10",oBt="_scroll_gqbxa_14",_Bt="_json_gqbxa_18",cE={"request-viewer":"_request-viewer_gqbxa_1",title:sBt,scroll:oBt,json:_Bt},aBt=({request:e,title:t})=>{const n={"--top-padding":t?"50px":"75px"};return A.jsxs("div",{className:cE["request-viewer"],style:n,children:[t&&A.jsx("div",{className:cE.title,children:A.jsx(Ee,{size:"16x100",children:t})}),A.jsx(wr,{maxHeight:630,className:cE.scroll,children:A.jsx("div",{className:cE.json,children:A.jsx(aS,{data:e})})})]})},iBt=({title:e})=>{const{request:t}=In(),{t:n}=rBt();return t?A.jsx(aBt,{title:e,request:t}):A.jsx(Ee,{children:n("noRequestAvailable")})},cBt="There are no logs in the response.",EBt={noLogsInResponse:cBt},ABt="There are no logs in the response.",SBt={noLogsInResponse:ABt},IBt="There are no logs in the response.",RBt={noLogsInResponse:IBt},CBt="There are no logs in the response.",OBt={noLogsInResponse:CBt};F.addResourceBundle("en","2c9c473a82a06f26e27961b9d581af9d",EBt);F.addResourceBundle("lv","2c9c473a82a06f26e27961b9d581af9d",SBt);F.addResourceBundle("de","2c9c473a82a06f26e27961b9d581af9d",RBt);F.addResourceBundle("ru","2c9c473a82a06f26e27961b9d581af9d",OBt);const DBt=()=>ze("2c9c473a82a06f26e27961b9d581af9d"),TBt="_logs_1plk1_1",lBt="_scroll_1plk1_9",uBt="_text_1plk1_14",UC={logs:TBt,scroll:lBt,text:uBt},NBt=({logs:e})=>A.jsx("div",{className:UC.logs,children:A.jsx(wr,{maxHeight:630,className:UC.scroll,children:A.jsx("div",{className:UC.text,children:e})})}),dBt=()=>{const{response:e}=In(),{t}=DBt();if(!e)return null;const n=e.log?exports.ProcessResponse.decodeLog(e.log):t("noLogsInResponse");return A.jsx(NBt,{logs:n})},LBt="_loader_1iscg_1",fBt="_overall_1iscg_17",pBt="_avatar_1iscg_43",hBt="_text_1iscg_53",PBt="_name_1iscg_63",MBt="_gender_1iscg_63",mBt="_info_1iscg_38",gBt="_menu_1iscg_101",yBt="_time_1iscg_111",Lr={loader:LBt,overall:fBt,"verifications-container":"_verifications-container_1iscg_22","info-container":"_info-container_1iscg_38",avatar:pBt,text:hBt,name:PBt,gender:MBt,info:mBt,"about-container":"_about-container_1iscg_94",menu:gBt,time:yBt},FBt=()=>A.jsxs("div",{className:Lr.loader,children:[A.jsx(Ut.Block,{className:Lr.overall}),A.jsxs("div",{className:Lr["verifications-container"],children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]}),A.jsxs("div",{className:Lr["info-container"],children:[A.jsx(Ut.Block,{className:Lr.avatar}),A.jsxs("div",{className:Lr.text,children:[A.jsxs("div",{className:Lr.name,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]}),A.jsxs("div",{className:Lr.gender,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]}),A.jsxs("div",{className:Lr.info,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]})]})]}),A.jsxs("div",{className:Lr["about-container"],children:[A.jsx(Ut.Block,{className:Lr.menu}),A.jsxs("div",{className:Lr.time,children:[A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{}),A.jsx(Ut.Block,{})]})]})]}),vBt="Portrait comparison",UBt={portraitComparison:vBt},BBt="Fotogrāfiju salīdzināšana",bBt={portraitComparison:BBt},HBt="Portraitvergleich",$Bt={portraitComparison:HBt},GBt="Сравнение портретов",VBt={portraitComparison:GBt};F.addResourceBundle("en","728d90b403456884a7a65309686bf620",UBt);F.addResourceBundle("lv","728d90b403456884a7a65309686bf620",bBt);F.addResourceBundle("de","728d90b403456884a7a65309686bf620",$Bt);F.addResourceBundle("ru","728d90b403456884a7a65309686bf620",VBt);const xBt=()=>ze("728d90b403456884a7a65309686bf620"),wBt="_container_ox0ty_1",YBt={container:wBt},kBt=({status:e,name:t})=>{const n=On(e,24);return A.jsxs("div",{className:YBt.container,children:[n,A.jsx(Ee,{size:"18x135",children:t})]})},KBt="Rate",jBt={rate:KBt},WBt="Rate",ZBt={rate:WBt},XBt="Rate",zBt={rate:XBt},qBt="Rate",QBt={rate:qBt};F.addResourceBundle("en","90a425db4934211fafe21693ab2e9a39",jBt);F.addResourceBundle("lv","90a425db4934211fafe21693ab2e9a39",ZBt);F.addResourceBundle("de","90a425db4934211fafe21693ab2e9a39",zBt);F.addResourceBundle("ru","90a425db4934211fafe21693ab2e9a39",QBt);const JBt=()=>ze("90a425db4934211fafe21693ab2e9a39"),ebt="_text_1wz9f_1",tbt="_rate_1wz9f_28",EE={text:ebt,"source-content":"_source-content_1wz9f_5",rate:tbt},Lp=({source:e,image:t,checkResult:n,similarity:s,imageViewer:r=!0})=>{const{t:o}=JBt(),_=de.getPortraitComparisonSource(e);return A.jsxs(A.Fragment,{children:[A.jsx(Ee,{className:EE.text,size:"12x160",uppercase:!0,children:_}),A.jsxs("div",{className:EE["source-content"],children:[t?A.jsx(va,{src:`data:image/jpeg;base64,${t}`,alt:String(_),magnifierImgBorderRadius:4,draggable:!1,magnifier:!0,viewer:r,download:!0}):A.jsx(LS,{type:"photo",className:EE["default-image"]}),n!==void 0&&s!==void 0&&A.jsxs("span",{className:EE.rate,children:[On(n),A.jsx(Ee,{children:`${o("rate")} ${s}%`})]})]})]})},nbt="_result_1sdjd_1",rbt={result:nbt},sbt=({source:e,image:t,comparable:n,imageViewer:s})=>A.jsx(wr,{children:A.jsxs("div",{className:rbt.result,children:[A.jsx(Lp,{source:e,image:t,imageViewer:s}),n.map(({source:r,image:o,checkResult:_,similarity:a},c)=>A.jsx(Lp,{source:r,image:o,checkResult:_,similarity:a,imageViewer:s},o||c))]})}),obt="The service does not respond",_bt={serviceNotRespond:obt},abt="The service does not respond",ibt={serviceNotRespond:abt},cbt="Keine Rückmeldung vom Service",Ebt={serviceNotRespond:cbt},Abt="Сервис не отвечает",Sbt={serviceNotRespond:Abt};F.addResourceBundle("en","aac8d134d61c1e4793fd82a4718ac196",_bt);F.addResourceBundle("lv","aac8d134d61c1e4793fd82a4718ac196",ibt);F.addResourceBundle("de","aac8d134d61c1e4793fd82a4718ac196",Ebt);F.addResourceBundle("ru","aac8d134d61c1e4793fd82a4718ac196",Sbt);const Ibt=()=>ze("aac8d134d61c1e4793fd82a4718ac196"),Rbt="_comparison_5medb_1",Cbt="_results_5medb_20",fp={comparison:Rbt,results:Cbt},Obt=({status:e,name:t,comparisons:n,showDiagnose:s,imageViewer:r})=>{const{t:o}=Ibt();return A.jsxs("div",{className:fp.comparison,children:[A.jsx(kBt,{status:e,name:t}),A.jsxs(j_.Element,{name:"portrait",className:fp.results,children:[s&&A.jsx(LF,{children:A.jsx(Ee,{size:"14x157",children:o("serviceNotRespond")})}),n.map(({source:_,image:a,comparable:c},i)=>A.jsx(sbt,{source:_,image:a,comparable:c,imageViewer:r},a||i))]})]})},Dbt="_comparisons_pgp5t_1",Tbt={comparisons:Dbt},lbt=({portraitsComparison:e,portraitsStatus:t,showDiagnose:n,imageViewer:s})=>{const{t:r}=xBt();return A.jsx("div",{className:Tbt.comparisons,children:A.jsx(Obt,{status:t,name:r("portraitComparison"),comparisons:e,showDiagnose:n,imageViewer:s})})},ubt=({imageViewer:e})=>{const{response:t}=In();if(!t)return null;const n=RM(t),s=eS(t),r=n.every(({diagnose:o})=>o===re.PORTRAIT_COMPARISON_NO_SERVICE_REPLY);return n.length?A.jsx(lbt,{portraitsComparison:n,portraitsStatus:s.summary.portrait,imageViewer:e,showDiagnose:r}):null},Nbt=e=>Number.isInteger(e)?e:parseFloat(e.toFixed(2)),dbt="_list_npyyi_1",Lbt="_check_npyyi_4",fbt="_name_npyyi_10",pbt="_red_npyyi_16",hbt="_value_npyyi_16",ri={list:dbt,check:Lbt,name:fbt,red:pbt,value:hbt},Pbt=({checks:e})=>A.jsx("div",{className:ri.list,children:e.map(({name:t,status:n,value:s})=>A.jsxs("div",{className:Ke(ri.check,{[ri.red]:n===ui.QUALITY_STATUS_FALSE}),children:[A.jsx(Ee,{uppercase:!0,className:ri.name,children:A.jsx(de.FaceImageQualityCheckLabel,{children:t})}),A.jsx(Ee,{className:ri.value,children:s!==void 0?Nbt(s):"—"})]},t))}),Mbt="_head_x11qb_1",mbt="_name_x11qb_7",gbt="_status_x11qb_11",ybt="_red_x11qb_17",AE={head:Mbt,name:mbt,status:gbt,red:ybt},Fbt=({name:e,statusInfo:t,status:n})=>A.jsxs("div",{className:AE.head,children:[A.jsx(Ee,{className:AE.name,children:e}),A.jsxs("div",{className:AE.status,children:[n!==void 0?On(n):null,A.jsx(Ee,{className:Ke({[AE.red]:n===ui.QUALITY_STATUS_FALSE}),children:t})]})]}),vbt=({name:e,statusInfo:t,status:n,children:s})=>A.jsx(Vr,{head:A.jsx(Fbt,{statusInfo:t,name:e,status:n}),children:s}),Ubt=({detailsGroups:e})=>A.jsx(wr,{children:e.map(({groupChecks:t,name:n,totalCount:s,compliantCount:r})=>{const _=t.filter(a=>a.status!==ui.QUALITY_STATUS_UNDETERMINED).sort((a,c)=>(a.status||0)-(c.status||0));return A.jsx(vbt,{name:A.jsx(de.FaceImageQualityLabel,{children:n}),status:(s||0)-(r||0)?ui.QUALITY_STATUS_FALSE:void 0,statusInfo:`${r||0}/${s||0}`,children:A.jsx(Pbt,{checks:_})},n)})}),$F=$.createContext({quality:null}),Bbt=()=>$.useContext($F),bbt=({detailsGroups:e,details:t})=>e?.map(n=>({...n,groupChecks:t?.filter(s=>s.groupId===n.groupId)||[]}))||[],Hbt=e=>[...e].sort((t,n)=>{const s=(t.totalCount||0)-(t.compliantCount||0);return(n.totalCount||0)-(n.compliantCount||0)-s}),$bt=()=>{const{quality:e}=Bbt();if(!e?.results?.detections[0].quality)return null;const t=bbt(e.results.detections[0].quality),n=Hbt(t);return A.jsx(Ubt,{detailsGroups:n})},Gbt=({quality:e,children:t,language:n})=>($.useEffect(()=>{F.changeLanguage(n)},[n]),A.jsx($F.Provider,{value:{quality:e},children:t}));exports.About=hF;exports.Alert=LF;exports.AreaArray=r_;exports.AuthenticityCheckList=iA;exports.AuthenticityCheckListContainerResultTypes=_D;exports.AuthenticityFibersTypeCheckResultTypes=Bi;exports.AuthenticityIdentCheckResultTypes=bi;exports.AuthenticityOCRSecurityTextCheckResultTypes=Hi;exports.AuthenticityPhotoIdentCheckResultTypes=$i;exports.AuthenticitySecurityFeatureCheckResultTypes=Gi;exports.AuthenticityTextCheckReferenceTypes=zP;exports.BSIv2ContainerResultTypes=TT;exports.BarcodeBoundsResultContainerResultTypes=ED;exports.BinaryData=Ve;exports.BoundsResult=an;exports.BoundsResultContainerResultTypes=iD;exports.ByteArrayContainerResultTypes=ET;exports.CertificateData=AA;exports.Collapse=Vr;exports.Container=An;exports.ContainerList=rc;exports.DefaultImage=LS;exports.Details=Bpt;exports.DetailsAge=uo;exports.DetailsOptical=Qr;exports.DetailsRFID=Jr;exports.DocBarCodeField=gr;exports.DocBarCodeInfo=cA;exports.DocBarCodeInfoContainerResultTypes=SD;exports.DocBinaryInfo=OA;exports.DocBinaryInfoContainerResultTypes=DD;exports.DocGraphicField=Ia;exports.DocGraphicsInfo=TA;exports.DocGraphicsInfoContainerResultTypes=lD;exports.DocReaderContainer=t2t;exports.DocReaderTypeError=mt;exports.DocVisualExtendedField=uD;exports.DocVisualExtendedInfo=uA;exports.DocVisualExtendedInfoContainerResultTypes=dD;exports.DocumentImages=MF;exports.DocumentTabs=FF;exports.DocumentType=vF;exports.DocumentTypesCandidatesContainerResultTypes=QD;exports.DocumentTypesCandidatesList=mA;exports.DocumentsDatabase=da;exports.EncryptedRCLContainerResultTypes=fD;exports.ErrorCoordinates=la;exports.FDSIDList=rr;exports.FaceApi=Gr;exports.FaceApiSearch=sc;exports.FaceContainer=Gbt;exports.FaceDetection=R_;exports.FaceDetectionContainerResultTypes=oT;exports.FaceImageQualityData=$bt;exports.FaceItem=Ls;exports.FieldItem=Lo;exports.FileImage=yA;exports.GraphData=Qs;exports.Graphics=e2t;exports.Icon=Bt;exports.IdentResult=Ds;exports.Image=va;exports.ImageData=fs;exports.ImageField=lo;exports.ImageFieldValue=qr;exports.ImageQA=Ms;exports.ImageQualityCheck=Zs;exports.ImageQualityCheckList=Wi;exports.ImageQualityCheckListContainerResultTypes=PD;exports.ImageSource=dA;exports.ImagesResult=Ca;exports.ImagesResultContainerResultTypes=mD;exports.Info=Lyt;exports.IsStringObjectRecord=oc;exports.JsonViewer=aS;exports.LicenseContainerResultTypes=yD;exports.Link=fS;exports.ListVerifiedFieldContainerResultTypes=UD;exports.ListVerifiedFields=Zi;exports.LivenessParams=to;exports.Logs=dBt;exports.MRZDetectorContainerResultTypes=rT;exports.MRZPositionContainerResultTypes=ZD;exports.MRZRowsItem=gA;exports.MRZTestQuality=br;exports.MRZTestQualityContainerResultTypes=zD;exports.Match=de;exports.OCRSecurityTextResult=Jn;exports.OneCandidate=Vn;exports.OneCandidateContainerResultTypes=BD;exports.Overall=PF;exports.PerDocumentConfig=VA;exports.PersonInfo=pF;exports.PhotoIdentResult=mr;exports.Point=ps;exports.PointArray=QO;exports.Popover=p_;exports.PortraitsComparison=ubt;exports.ProcessParams=He;exports.ProcessParamsAuth=Cn;exports.ProcessParamsRfid=NT;exports.ProcessRequestImage=_c;exports.ProcessSystemInfo=xA;exports.RAuthenticityTextCheckReference=ha;exports.RDetailedStatusOptical=Wr;exports.RDetailedStatusRfid=Zr;exports.RDetailedStatusSummary=ws;exports.RDocumentBarcodeField=u_;exports.RDocumentBarcodeModuleData=ma;exports.RDocumentImagePage=so;exports.RFIDDocVisualExtendedField=Ta;exports.RFIDDocVisualExtendedInfo=PA;exports.RFIDGraphicsInfoContainerResultTypes=iT;exports.RFIDTextDataContainerResultTypes=jD;exports.RImageQualityCheck=Sc;exports.RLocation=no;exports.RRfidDataGroupStatusItem=QA;exports.RTextDataComparison=Fa;exports.RTextDataSource=gs;exports.RawImageContainerList=aA;exports.RawImageContainerResultTypes=HD;exports.Rect=kt;exports.RequestViewer=iBt;exports.ResponseViewer=Z2t;exports.ResultMRZDetector=Qi;exports.Rfid=gUt;exports.RfidAccessControlInfo=__;exports.RfidAccessKey=Sa;exports.RfidApplication=Ws;exports.RfidAttributeData=SA;exports.RfidAttributeName=bA;exports.RfidCardPropertiesExt=gn;exports.RfidCertificateEx=un;exports.RfidDG1=Rn;exports.RfidDataFile=er;exports.RfidDistinguishedName=O_;exports.RfidOrigin=po;exports.RfidParsedData=ID;exports.RfidPkiExtension=IA;exports.RfidRawData=CA;exports.RfidSecurityObject=i_;exports.RfidSecurityObjectCertificates=RD;exports.RfidSession=Nn;exports.RfidSignerInfoEx=nr;exports.RfidTerminal=ki;exports.RfidValidity=RA;exports.Scroll=wr;exports.SecurityFeatureCheck=js;exports.Skeleton=Ut;exports.Status=Ur;exports.StatusContainerResultTypes=GD;exports.StatusLoader=FBt;exports.StringItem=En;exports.StringRecognitionResult=E_;exports.Symbol=JD;exports.SymbolCandidate=Ra;exports.SymbolEstimationItem=cn;exports.SymbolRecognitionResult=c_;exports.TOriginalRFIDGraphicsInfo=_T;exports.Table=Am;exports.Tabs=XT;exports.Text=Ee;exports.TextComparison=Xi;exports.TextField=Cr;exports.TextFieldValue=Br;exports.TextResult=No;exports.TextResultContainerResultTypes=kD;exports.TextSource=qi;exports.TextSymbol=zi;exports.TextValidity=pA;exports.TipDecodeModule=o_;exports.TipPDF417Info=To;exports.Title=cm;exports.TransactionInfo=ms;exports.TrfFtBytes=Dr;exports.TrfFtString=hs;exports.VDSContainerResultTypes=IT;exports.VDSData=Gn;exports.VDSNCContainerResultTypes=OT;exports.VDSNCData=ts;exports.Verifications=fF;exports.VerifiedFieldMap=zs;exports.aVisualExtendedFieldItem=$n;exports.checkLocation=ra;exports.checkSelection=sa;exports.convertGeneralizedDateToLocal=XC;exports.decode=jC;exports.eAuthenticity=J;exports.eBarCodeDetectionType=Dh;exports.eBarCodeModuleType=zE;exports.eBarCodeResultCodes=rA;exports.eBarCodeType=vi;exports.eCheckDiagnose=re;exports.eCheckResult=x;exports.eDataGroupReadStatus=ir;exports.eDocFormat=ca;exports.eDocType=QE;exports.eDocumentTypeRecognitionResult=UO;exports.eFieldVerificationResult=zO;exports.eGraphicFieldType=Tt;exports.eIRVisibilityFlag=fr;exports.eImageQualityCheckType=Kn;exports.eInfoTabID=cr;exports.eInputBarcodeType=BO;exports.eInputImageQualityChecks=bO;exports.eLCID=K;exports.eLDSParsingErrorCodes=Ih;exports.eLDSParsingNotificationCodes=JE;exports.eLights=vt;exports.eLogLevel=HO;exports.eMRZDetectMode=VO;exports.eMRZFormat=$O;exports.eMeasureSystem=GO;exports.eOpticalStatusField=Qe;exports.ePortraitComparisonSource=Gt;exports.eProcessingStatus=xO;exports.eResult=ie;exports.eResultType=ie;exports.eRfidAChip=wO;exports.eRfidAccessControlProcedureType=eA;exports.eRfidApplicationType=Wt;exports.eRfidAuthenticationProcedureType=YO;exports.eRfidBaudRate=tA;exports.eRfidCertificateOrigin=kO;exports.eRfidCertificateType=_r;exports.eRfidDataFileType=j;exports.eRfidErrorCodes=rn;exports.eRfidFileIdType=Th;exports.eRfidOriginalGraphicsType=lh;exports.eRfidPasswordType=KO;exports.eRfidPresence=nA;exports.eRfidStatusField=ft;exports.eRfidTerminalAuthorizationRequirement=Ri;exports.eRfidTerminalType=jO;exports.eRfidType=WO;exports.eRfidVisualFieldType=uh;exports.eScenario=ZO;exports.eSecurityCriticalFlag=qE;exports.eSecurityFeatureType=Te;exports.eSource=Vt;exports.eSummaryStatusField=zt;exports.eTextPostProcessing=XO;exports.eVisualFieldType=O;exports.getAuthenticityArray=xC;exports.getAuthenticityCheckList=AM;exports.getAuthenticityOpenFields=mF;exports.getDetailedStatus=eS;exports.getDocumentBarcodes=mw;exports.getDocumentDateOfExpiry=tm;exports.getDocumentIdentification=VT;exports.getDocumentImages=vw;exports.getDocumentImagesSync=XA;exports.getDocumentIssuingStateName=nm;exports.getDocumentNumber=rm;exports.getDocumentOwnerAge=sm;exports.getDocumentOwnerNationalityCode=S4;exports.getDocumentOwnerSex=om;exports.getGraphicField=bw;exports.getGraphicFieldSync=Hw;exports.getIRVisibilityFlagArray=Oh;exports.getImageDimensions=pT;exports.getImageQuality=NM;exports.getImageQualityOpenFields=gF;exports.getLightsArray=Ko;exports.getNameSurname=qM;exports.getPortraitsComparison=RM;exports.getRfidCertificatesData=fM;exports.getRfidChecksSummary=BT;exports.getRfidDataGroupsStatus=PM;exports.getRfidDataGroupsStatusList=yM;exports.getRfidTerminalAuthorizationRequirements=_i;exports.getTextData=JM;exports.getTextFieldValue=Ys;exports.isAuthenticity=bB;exports.isIRVisibilityFlag=HB;exports.isLights=$B;exports.isObject=q_;exports.isRfidTerminalAuthorizationRequirement=GB;exports.mergeDetailedStatus=t4;exports.mergeStatuses=ZP;exports.transformToAuthenticityCheckResultList=Gh;exports.transformToContainerList=nP;exports.transformToRAuthenticityCheckList=aM;