@regulaforensics/facesdk-webclient 8.3.691-rc → 8.3.692-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.
- package/dist/index.cjs +9 -9
- package/dist/index.d.ts +11 -2
- package/dist/index.js +2617 -3185
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ut(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zt}=Object.prototype,{getPrototypeOf:xe}=Object,{iterator:Oe,toStringTag:pt}=Symbol,_e=(e=>t=>{const r=Zt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),G=e=>(e=e.toLowerCase(),t=>_e(t)===e),me=e=>t=>typeof t===e,{isArray:K}=Array,Z=me("undefined");function re(e){return e!==null&&!Z(e)&&e.constructor!==null&&!Z(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ht=G("ArrayBuffer");function Kt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ht(e.buffer),t}const Qt=me("string"),N=me("function"),ft=me("number"),se=e=>e!==null&&typeof e=="object",er=e=>e===!0||e===!1,pe=e=>{if(_e(e)!=="object")return!1;const t=xe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pt in e)&&!(Oe in e)},tr=e=>{if(!se(e)||re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},rr=G("Date"),sr=G("File"),nr=e=>!!(e&&typeof e.uri<"u"),or=e=>e&&typeof e.getParts<"u",ar=G("Blob"),ir=G("FileList"),lr=e=>se(e)&&N(e.pipe);function cr(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ze=cr(),We=typeof ze.FormData<"u"?ze.FormData:void 0,dr=e=>{let t;return e&&(We&&e instanceof We||N(e.append)&&((t=_e(e))==="formdata"||t==="object"&&N(e.toString)&&e.toString()==="[object FormData]"))},ur=G("URLSearchParams"),[pr,hr,fr,Er]=["ReadableStream","Request","Response","Headers"].map(G),Ar=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),K(e))for(s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else{if(re(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(s=0;s<a;s++)i=o[s],t.call(null,e[i],i,e)}}function Et(e,t){if(re(e))return null;t=t.toLowerCase();const r=Object.keys(e);let s=r.length,n;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,At=e=>!Z(e)&&e!==z;function Le(){const{caseless:e,skipUndefined:t}=At(this)&&this||{},r={},s=(n,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=e&&Et(r,o)||o;pe(r[a])&&pe(n)?r[a]=Le(r[a],n):pe(n)?r[a]=Le({},n):K(n)?r[a]=n.slice():(!t||!Z(n))&&(r[a]=n)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ne(arguments[n],s);return r}const Or=(e,t,r,{allOwnKeys:s}={})=>(ne(t,(n,o)=>{r&&N(n)?Object.defineProperty(e,o,{value:ut(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),_r=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mr=(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Rr=(e,t,r,s)=>{let n,o,a;const i={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)a=n[o],(!s||s(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=r!==!1&&xe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Tr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return s!==-1&&s===r},Pr=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!ft(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ir=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xe(Uint8Array)),Sr=(e,t)=>{const s=(e&&e[Oe]).call(e);let n;for(;(n=s.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},br=(e,t)=>{let r;const s=[];for(;(r=e.exec(t))!==null;)s.push(r);return s},wr=G("HTMLFormElement"),yr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,n){return s.toUpperCase()+n}),Ye=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Cr=G("RegExp"),Ot=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};ne(r,(n,o)=>{let a;(a=t(n,o,e))!==!1&&(s[o]=a||n)}),Object.defineProperties(e,s)},Lr=e=>{Ot(e,(t,r)=>{if(N(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=e[r];if(N(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},gr=(e,t)=>{const r={},s=n=>{n.forEach(o=>{r[o]=!0})};return K(e)?s(e):s(String(e).split(t)),r},Vr=()=>{},Nr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ur(e){return!!(e&&N(e.append)&&e[pt]==="FormData"&&e[Oe])}const xr=e=>{const t=new Array(10),r=(s,n)=>{if(se(s)){if(t.indexOf(s)>=0)return;if(re(s))return s;if(!("toJSON"in s)){t[n]=s;const o=K(s)?[]:{};return ne(s,(a,i)=>{const l=r(a,n+1);!Z(l)&&(o[i]=l)}),t[n]=void 0,o}}return s};return r(e,0)},Dr=G("AsyncFunction"),Br=e=>e&&(se(e)||N(e))&&N(e.then)&&N(e.catch),_t=((e,t)=>e?setImmediate:t?((r,s)=>(z.addEventListener("message",({source:n,data:o})=>{n===z&&o===r&&s.length&&s.shift()()},!1),n=>{s.push(n),z.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",N(z.postMessage)),Hr=typeof queueMicrotask<"u"?queueMicrotask.bind(z):typeof process<"u"&&process.nextTick||_t,Gr=e=>e!=null&&N(e[Oe]),u={isArray:K,isArrayBuffer:ht,isBuffer:re,isFormData:dr,isArrayBufferView:Kt,isString:Qt,isNumber:ft,isBoolean:er,isObject:se,isPlainObject:pe,isEmptyObject:tr,isReadableStream:pr,isRequest:hr,isResponse:fr,isHeaders:Er,isUndefined:Z,isDate:rr,isFile:sr,isReactNativeBlob:nr,isReactNative:or,isBlob:ar,isRegExp:Cr,isFunction:N,isStream:lr,isURLSearchParams:ur,isTypedArray:Ir,isFileList:ir,forEach:ne,merge:Le,extend:Or,trim:Ar,stripBOM:_r,inherits:mr,toFlatObject:Rr,kindOf:_e,kindOfTest:G,endsWith:Tr,toArray:Pr,forEachEntry:Sr,matchAll:br,isHTMLForm:wr,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:Ot,freezeMethods:Lr,toObjectSet:gr,toCamelCase:yr,noop:Vr,toFiniteNumber:Nr,findKey:Et,global:z,isContextDefined:At,isSpecCompliantForm:Ur,toJSONObject:xr,isAsyncFn:Dr,isThenable:Br,setImmediate:_t,asap:Hr,isIterable:Gr};let A=class mt extends Error{static from(t,r,s,n,o,a){const i=new mt(t.message,r||t.code,s,n,o);return i.cause=t,i.name=t.name,t.status!=null&&i.status==null&&(i.status=t.status),a&&Object.assign(i,a),i}constructor(t,r,s,n,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),s&&(this.config=s),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.status}}};A.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";A.ERR_BAD_OPTION="ERR_BAD_OPTION";A.ECONNABORTED="ECONNABORTED";A.ETIMEDOUT="ETIMEDOUT";A.ERR_NETWORK="ERR_NETWORK";A.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";A.ERR_DEPRECATED="ERR_DEPRECATED";A.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";A.ERR_BAD_REQUEST="ERR_BAD_REQUEST";A.ERR_CANCELED="ERR_CANCELED";A.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";A.ERR_INVALID_URL="ERR_INVALID_URL";const Mr=null;function ge(e){return u.isPlainObject(e)||u.isArray(e)}function Rt(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,r){return e?e.concat(t).map(function(n,o){return n=Rt(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function vr(e){return u.isArray(e)&&!e.some(ge)}const jr=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function Re(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,f){return!u.isUndefined(f[E])});const s=r.metaTokens,n=r.visitor||d,o=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(n))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(u.isDate(h))return h.toISOString();if(u.isBoolean(h))return h.toString();if(!l&&u.isBlob(h))throw new A("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(h)||u.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,E,f){let w=h;if(u.isReactNative(t)&&u.isReactNativeBlob(h))return t.append(Se(f,E,o),c(h)),!1;if(h&&!f&&typeof h=="object"){if(u.endsWith(E,"{}"))E=s?E:E.slice(0,-2),h=JSON.stringify(h);else if(u.isArray(h)&&vr(h)||(u.isFileList(h)||u.endsWith(E,"[]"))&&(w=u.toArray(h)))return E=Rt(E),w.forEach(function(y,g){!(u.isUndefined(y)||y===null)&&t.append(a===!0?Se([E],g,o):a===null?E:E+"[]",c(y))}),!1}return ge(h)?!0:(t.append(Se(f,E,o),c(h)),!1)}const p=[],_=Object.assign(jr,{defaultVisitor:d,convertValue:c,isVisitable:ge});function C(h,E){if(!u.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(h),u.forEach(h,function(w,x){(!(u.isUndefined(w)||w===null)&&n.call(t,w,u.isString(x)?x.trim():x,E,_))===!0&&C(w,E?E.concat(x):[x])}),p.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return C(e),t}function Xe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function De(e,t){this._pairs=[],e&&Re(e,this,t)}const Tt=De.prototype;Tt.append=function(t,r){this._pairs.push([t,r])};Tt.toString=function(t){const r=t?function(s){return t.call(this,s,Xe)}:Xe;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pt(e,t,r){if(!t)return e;const s=r&&r.encode||Fr,n=u.isFunction(r)?{serialize:r}:r,o=n&&n.serialize;let a;if(o?a=o(t,n):a=u.isURLSearchParams(t)?t.toString():new De(t,n).toString(s),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Je{constructor(){this.handlers=[]}use(t,r,s){return this.handlers.push({fulfilled:t,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Be={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},kr=typeof URLSearchParams<"u"?URLSearchParams:De,qr=typeof FormData<"u"?FormData:null,$r=typeof Blob<"u"?Blob:null,zr={isBrowser:!0,classes:{URLSearchParams:kr,FormData:qr,Blob:$r},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,Wr=He&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),Yr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xr=He&&window.location.href||"http://localhost",Jr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:Wr,hasStandardBrowserWebWorkerEnv:Yr,navigator:Ve,origin:Xr},Symbol.toStringTag,{value:"Module"})),L={...Jr,...zr};function Zr(e,t){return Re(e,new L.classes.URLSearchParams,{visitor:function(r,s,n,o){return L.isNode&&u.isBuffer(r)?(this.append(s,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Kr(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qr(e){const t={},r=Object.keys(e);let s;const n=r.length;let o;for(s=0;s<n;s++)o=r[s],t[o]=e[o];return t}function It(e){function t(r,s,n,o){let a=r[o++];if(a==="__proto__")return!0;const i=Number.isFinite(+a),l=o>=r.length;return a=!a&&u.isArray(n)?n.length:a,l?(u.hasOwnProp(n,a)?n[a]=[n[a],s]:n[a]=s,!i):((!n[a]||!u.isObject(n[a]))&&(n[a]=[]),t(r,s,n[a],o)&&u.isArray(n[a])&&(n[a]=Qr(n[a])),!i)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(s,n)=>{t(Kr(s),n,r,0)}),r}return null}function es(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}const oe={transitional:Be,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const s=r.getContentType()||"",n=s.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return n?JSON.stringify(It(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Zr(t,this.formSerializer).toString();if((i=u.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Re(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||n?(r.setContentType("application/json",!1),es(t)):t}],transformResponse:[function(t){const r=this.transitional||oe.transitional,s=r&&r.forcedJSONParsing,n=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(s&&!this.responseType||n)){const a=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(i){if(a)throw i.name==="SyntaxError"?A.from(i,A.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{oe.headers[e]={}});const ts=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rs=e=>{const t={};let r,s,n;return e&&e.split(`
|
|
2
|
-
`).forEach(function(
|
|
3
|
-
`)}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,...r){const s=new this(t);return r.forEach(n=>s.set(n)),s}static accessor(t){const s=(this[Ze]=this[Ze]={accessors:{}}).accessors,n=this.prototype;function o(a){const i=te(a);s[i]||(ls(n,a),s[i]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}};U.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);u.reduceDescriptors(U.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});u.freezeMethods(U);function we(e,t){const r=this||oe,s=t||r,n=U.from(s.headers);let o=s.data;return u.forEach(e,function(i){o=i.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function bt(e){return!!(e&&e.__CANCEL__)}let ae=class extends A{constructor(t,r,s){super(t??"canceled",A.ERR_CANCELED,r,s),this.name="CanceledError",this.__CANCEL__=!0}};function wt(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new A("Request failed with status code "+r.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cs(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ds(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=s[o];a||(a=c),r[n]=l,s[n]=c;let p=o,_=0;for(;p!==n;)_+=r[p++],p=p%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),c-a<t)return;const C=d&&c-d;return C?Math.round(_*1e3/C):void 0}}function us(e,t){let r=0,s=1e3/t,n,o;const a=(c,d=Date.now())=>{r=d,n=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const d=Date.now(),p=d-r;p>=s?a(c,d):(n=c,o||(o=setTimeout(()=>{o=null,a(n)},s-p)))},()=>n&&a(n)]}const Ee=(e,t,r=3)=>{let s=0;const n=ds(50,250);return us(o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,l=a-s,c=n(l),d=a<=i;s=a;const p={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&d?(i-a)/c:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(p)},r)},Ke=(e,t)=>{const r=e!=null;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},Qe=e=>(...t)=>u.asap(()=>e(...t)),ps=L.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,L.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(L.origin),L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent)):()=>!0,hs=L.hasStandardBrowserEnv?{write(e,t,r,s,n,o,a){if(typeof document>"u")return;const i=[`${e}=${encodeURIComponent(t)}`];u.isNumber(r)&&i.push(`expires=${new Date(r).toUTCString()}`),u.isString(s)&&i.push(`path=${s}`),u.isString(n)&&i.push(`domain=${n}`),o===!0&&i.push("secure"),u.isString(a)&&i.push(`SameSite=${a}`),document.cookie=i.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 fs(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Es(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,r){let s=!fs(t);return e&&(s||r==!1)?Es(e,t):t}const et=e=>e instanceof U?{...e}:e;function Y(e,t){t=t||{};const r={};function s(c,d,p,_){return u.isPlainObject(c)&&u.isPlainObject(d)?u.merge.call({caseless:_},c,d):u.isPlainObject(d)?u.merge({},d):u.isArray(d)?d.slice():d}function n(c,d,p,_){if(u.isUndefined(d)){if(!u.isUndefined(c))return s(void 0,c,p,_)}else return s(c,d,p,_)}function o(c,d){if(!u.isUndefined(d))return s(void 0,d)}function a(c,d){if(u.isUndefined(d)){if(!u.isUndefined(c))return s(void 0,c)}else return s(void 0,d)}function i(c,d,p){if(p in t)return s(c,d);if(p in e)return s(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(c,d,p)=>n(et(c),et(d),p,!0)};return u.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const p=u.hasOwnProp(l,d)?l[d]:n,_=p(e[d],t[d],d);u.isUndefined(_)&&p!==i||(r[d]=_)}),r}const Ct=e=>{const t=Y({},e);let{data:r,withXSRFToken:s,xsrfHeaderName:n,xsrfCookieName:o,headers:a,auth:i}=t;if(t.headers=a=U.from(a),t.url=Pt(yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),u.isFormData(r)){if(L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(u.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([d,p])=>{c.includes(d.toLowerCase())&&a.set(d,p)})}}if(L.hasStandardBrowserEnv&&(s&&u.isFunction(s)&&(s=s(t)),s||s!==!1&&ps(t.url))){const l=n&&o&&hs.read(o);l&&a.set(n,l)}return t},As=typeof XMLHttpRequest<"u",Os=As&&function(e){return new Promise(function(r,s){const n=Ct(e);let o=n.data;const a=U.from(n.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=n,d,p,_,C,h;function E(){C&&C(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(n.method.toUpperCase(),n.url,!0),f.timeout=n.timeout;function w(){if(!f)return;const y=U.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),H={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:y,config:e,request:f};wt(function(D){r(D),E()},function(D){s(D),E()},H),f=null}"onloadend"in f?f.onloadend=w:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(w)},f.onabort=function(){f&&(s(new A("Request aborted",A.ECONNABORTED,e,f)),f=null)},f.onerror=function(g){const H=g&&g.message?g.message:"Network Error",k=new A(H,A.ERR_NETWORK,e,f);k.event=g||null,s(k),f=null},f.ontimeout=function(){let g=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const H=n.transitional||Be;n.timeoutErrorMessage&&(g=n.timeoutErrorMessage),s(new A(g,H.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,f)),f=null},o===void 0&&a.setContentType(null),"setRequestHeader"in f&&u.forEach(a.toJSON(),function(g,H){f.setRequestHeader(H,g)}),u.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),i&&i!=="json"&&(f.responseType=n.responseType),c&&([_,h]=Ee(c,!0),f.addEventListener("progress",_)),l&&f.upload&&([p,C]=Ee(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",C)),(n.cancelToken||n.signal)&&(d=y=>{f&&(s(!y||y.type?new ae(null,e,f):y),f.abort(),f=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const x=cs(n.url);if(x&&L.protocols.indexOf(x)===-1){s(new A("Unsupported protocol "+x+":",A.ERR_BAD_REQUEST,e));return}f.send(o||null)})},_s=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let s=new AbortController,n;const o=function(c){if(!n){n=!0,i();const d=c instanceof Error?c:this.reason;s.abort(d instanceof A?d:new ae(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,o(new A(`timeout of ${t}ms exceeded`,A.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=s;return l.unsubscribe=()=>u.asap(i),l}},ms=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let s=0,n;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},Rs=async function*(e,t){for await(const r of Ts(e))yield*ms(r,t)},Ts=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:s}=await t.read();if(r)break;yield s}}finally{await t.cancel()}},tt=(e,t,r,s)=>{const n=Rs(e,t);let o=0,a,i=l=>{a||(a=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await n.next();if(c){i(),l.close();return}let p=d.byteLength;if(r){let _=o+=p;r(_)}l.enqueue(new Uint8Array(d))}catch(c){throw i(c),c}},cancel(l){return i(l),n.return()}},{highWaterMark:2})},rt=64*1024,{isFunction:de}=u,Ps=(({Request:e,Response:t})=>({Request:e,Response:t}))(u.global),{ReadableStream:st,TextEncoder:nt}=u.global,ot=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Is=e=>{e=u.merge.call({skipUndefined:!0},Ps,e);const{fetch:t,Request:r,Response:s}=e,n=t?de(t):typeof fetch=="function",o=de(r),a=de(s);if(!n)return!1;const i=n&&de(st),l=n&&(typeof nt=="function"?(h=>E=>h.encode(E))(new nt):async h=>new Uint8Array(await new r(h).arrayBuffer())),c=o&&i&&ot(()=>{let h=!1;const E=new st,f=new r(L.origin,{body:E,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return E.cancel(),h&&!f}),d=a&&i&&ot(()=>u.isReadableStream(new s("").body)),p={stream:d&&(h=>h.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!p[h]&&(p[h]=(E,f)=>{let w=E&&E[h];if(w)return w.call(E);throw new A(`Response type '${h}' is not supported`,A.ERR_NOT_SUPPORT,f)})});const _=async h=>{if(h==null)return 0;if(u.isBlob(h))return h.size;if(u.isSpecCompliantForm(h))return(await new r(L.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(u.isArrayBufferView(h)||u.isArrayBuffer(h))return h.byteLength;if(u.isURLSearchParams(h)&&(h=h+""),u.isString(h))return(await l(h)).byteLength},C=async(h,E)=>{const f=u.toFiniteNumber(h.getContentLength());return f??_(E)};return async h=>{let{url:E,method:f,data:w,signal:x,cancelToken:y,timeout:g,onDownloadProgress:H,onUploadProgress:k,responseType:D,headers:Pe,withCredentials:ie="same-origin",fetchOptions:ve}=Ct(h),je=t||fetch;D=D?(D+"").toLowerCase():"text";let le=_s([x,y&&y.toAbortSignal()],g),ee=null;const q=le&&le.unsubscribe&&(()=>{le.unsubscribe()});let Fe;try{if(k&&c&&f!=="get"&&f!=="head"&&(Fe=await C(Pe,w))!==0){let F=new r(E,{method:"POST",body:w,duplex:"half"}),X;if(u.isFormData(w)&&(X=F.headers.get("content-type"))&&Pe.setContentType(X),F.body){const[Ie,ce]=Ke(Fe,Ee(Qe(k)));w=tt(F.body,rt,Ie,ce)}}u.isString(ie)||(ie=ie?"include":"omit");const V=o&&"credentials"in r.prototype,ke={...ve,signal:le,method:f.toUpperCase(),headers:Pe.normalize().toJSON(),body:w,duplex:"half",credentials:V?ie:void 0};ee=o&&new r(E,ke);let j=await(o?je(ee,ve):je(E,ke));const qe=d&&(D==="stream"||D==="response");if(d&&(H||qe&&q)){const F={};["status","statusText","headers"].forEach($e=>{F[$e]=j[$e]});const X=u.toFiniteNumber(j.headers.get("content-length")),[Ie,ce]=H&&Ke(X,Ee(Qe(H),!0))||[];j=new s(tt(j.body,rt,Ie,()=>{ce&&ce(),q&&q()}),F)}D=D||"text";let Jt=await p[u.findKey(p,D)||"text"](j,h);return!qe&&q&&q(),await new Promise((F,X)=>{wt(F,X,{data:Jt,headers:U.from(j.headers),status:j.status,statusText:j.statusText,config:h,request:ee})})}catch(V){throw q&&q(),V&&V.name==="TypeError"&&/Load failed|fetch/i.test(V.message)?Object.assign(new A("Network Error",A.ERR_NETWORK,h,ee,V&&V.response),{cause:V.cause||V}):A.from(V,V&&V.code,h,ee,V&&V.response)}}},Ss=new Map,Lt=e=>{let t=e&&e.env||{};const{fetch:r,Request:s,Response:n}=t,o=[s,n,r];let a=o.length,i=a,l,c,d=Ss;for(;i--;)l=o[i],c=d.get(l),c===void 0&&d.set(l,c=i?new Map:Is(t)),d=c;return c};Lt();const Ge={http:Mr,xhr:Os,fetch:{get:Lt}};u.forEach(Ge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const at=e=>`- ${e}`,bs=e=>u.isFunction(e)||e===null||e===!1;function ws(e,t){e=u.isArray(e)?e:[e];const{length:r}=e;let s,n;const o={};for(let a=0;a<r;a++){s=e[a];let i;if(n=s,!bs(s)&&(n=Ge[(i=String(s)).toLowerCase()],n===void 0))throw new A(`Unknown adapter '${i}'`);if(n&&(u.isFunction(n)||(n=n.get(t))))break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=r?a.length>1?`since :
|
|
4
|
-
`+
|
|
5
|
-
`)
|
|
6
|
-
`);return
|
|
7
|
-
`),
|
|
8
|
-
`,
|
|
9
|
-
`+o)}}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Y(this.defaults,r);const{transitional:s,paramsSerializer:n,headers:o}=r;s!==void 0&&fe.assertOptions(s,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean),legacyInterceptorReqResOrdering:B.transitional(B.boolean)},!1),n!=null&&(u.isFunction(n)?r.paramsSerializer={serialize:n}:fe.assertOptions(n,{encode:B.function,serialize:B.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),fe.assertOptions(r,{baseUrl:B.spelling("baseURL"),withXsrfToken:B.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&u.merge(o.common,o[r.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),r.headers=U.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(r)===!1)return;l=l&&E.synchronous;const f=r.transitional||Be;f&&f.legacyInterceptorReqResOrdering?i.unshift(E.fulfilled,E.rejected):i.push(E.fulfilled,E.rejected)});const c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected)});let d,p=0,_;if(!l){const h=[it.bind(this),void 0];for(h.unshift(...i),h.push(...c),_=h.length,d=Promise.resolve(r);p<_;)d=d.then(h[p++],h[p++]);return d}_=i.length;let C=r;for(;p<_;){const h=i[p++],E=i[p++];try{C=h(C)}catch(f){E.call(this,f);break}}try{d=it.call(this,C)}catch(h){return Promise.reject(h)}for(p=0,_=c.length;p<_;)d=d.then(c[p++],c[p++]);return d}getUri(t){t=Y(this.defaults,t);const r=yt(t.baseURL,t.url,t.allowAbsoluteUrls);return Pt(r,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){W.prototype[t]=function(r,s){return this.request(Y(s||{},{method:t,url:r,data:(s||{}).data}))}});u.forEach(["post","put","patch"],function(t){function r(s){return function(o,a,i){return this.request(Y(i||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}W.prototype[t]=r(),W.prototype[t+"Form"]=r(!0)});let Cs=class Nt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const s=this;this.promise.then(n=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](n);s._listeners=null}),this.promise.then=n=>{let o;const a=new Promise(i=>{s.subscribe(i),o=i}).then(n);return a.cancel=function(){s.unsubscribe(o)},a},t(function(o,a,i){s.reason||(s.reason=new ae(o,a,i),r(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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Nt(function(n){t=n}),cancel:t}}};function Ls(e){return function(r){return e.apply(null,r)}}function gs(e){return u.isObject(e)&&e.isAxiosError===!0}const Ne={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(Ne).forEach(([e,t])=>{Ne[t]=e});function Ut(e){const t=new W(e),r=ut(W.prototype.request,t);return u.extend(r,W.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Ut(Y(e,n))},r}const O=Ut(oe);O.Axios=W;O.CanceledError=ae;O.CancelToken=Cs;O.isCancel=bt;O.VERSION=Vt;O.toFormData=Re;O.AxiosError=A;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=Ls;O.isAxiosError=gs;O.mergeConfig=Y;O.AxiosHeaders=U;O.formToJSON=e=>It(u.isHTMLForm(e)?new FormData(e):e);O.getAdapter=gt.getAdapter;O.HttpStatusCode=Ne;O.default=O;const{Axios:Zs,AxiosError:Ks,CanceledError:Qs,isCancel:en,CancelToken:tn,VERSION:rn,all:sn,Cancel:nn,isAxiosError:on,spread:an,toFormData:ln,AxiosHeaders:cn,HttpStatusCode:dn,formToJSON:un,getAdapter:pn,mergeConfig:hn}=O,R="https://faceapi.regulaforensics.com".replace(/\/+$/,"");class Q{constructor(t,r=R,s=O){this.basePath=r,this.axios=s,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class Vs extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const T={},P="https://example.com",m=function(e,t,r){if(r==null)throw new Vs(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Ue(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(s=>Ue(e,s,r)):Object.keys(t).forEach(s=>Ue(e,t[s],`${r}${r!==""?".":""}${s}`)):e.has(r)?e.append(r,t):e.set(r,t))}const I=function(e,...t){const r=new URLSearchParams(e.search);Ue(r,t),e.search=r.toString()},M=function(e,t,r){const s=typeof e!="string";return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},S=function(e){return e.pathname+e.search+e.hash},b=function(e,t,r,s){return(n=t,o=r)=>{const a={...e.options,url:(n.defaults.baseURL?"":s?.basePath??o)+e.url};return n.request(a)}},Ns=function(e){return{detect:async(t,r,s={})=>{m("detect","detectRequest",t);const n="/api/detect",o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...s},l={},c={};l["Content-Type"]="application/json",r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},i.data=M(t,i,e),{url:S(o),options:i}},match:async(t,r,s={})=>{m("match","matchRequest",t);const n="/api/match",o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...s},l={},c={};l["Content-Type"]="application/json",r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},i.data=M(t,i,e),{url:S(o),options:i}},matchAndSearch:async(t,r,s={})=>{m("matchAndSearch","matchAndSearchRequest",t);const n="/api/match_and_search",o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...s},l={},c={};l["Content-Type"]="application/json",r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},i.data=M(t,i,e),{url:S(o),options:i}}}},Ce=function(e){const t=Ns(e);return{async detect(r,s,n){const o=await t.detect(r,s,n),a=e?.serverIndex??0,i=T["MatchApi.detect"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async match(r,s,n){const o=await t.match(r,s,n),a=e?.serverIndex??0,i=T["MatchApi.match"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async matchAndSearch(r,s,n){const o=await t.matchAndSearch(r,s,n),a=e?.serverIndex??0,i=T["MatchApi.matchAndSearch"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)}}};let Us=class extends Q{detect(t,r,s){return Ce(this.configuration).detect(t,r,s).then(n=>n(this.axios,this.basePath))}match(t,r,s){return Ce(this.configuration).match(t,r,s).then(n=>n(this.axios,this.basePath))}matchAndSearch(t,r,s){return Ce(this.configuration).matchAndSearch(t,r,s).then(n=>n(this.axios,this.basePath))}};var xt=(e=>(e.AGE="Age",e.EMOTION="Emotion",e.EYE_LEFT="EyeLeft",e.EYE_RIGHT="EyeRight",e.SMILE="Smile",e.GLASSES="Glasses",e.HEAD_COVERING="HeadCovering",e.FOREHEAD_COVERING="ForeheadCovering",e.MOUTH="Mouth",e.MEDICAL_MASK="MedicalMask",e.OCCLUSION="Occlusion",e.STRONG_MAKEUP="StrongMakeup",e.HEADPHONES="Headphones",e))(xt||{}),Dt=(e=>(e[e.ALIGN_3x4=0]="ALIGN_3x4",e[e.ALIGN_4x5=1]="ALIGN_4x5",e[e.ALIGN_2x3=2]="ALIGN_2x3",e[e.ALIGN_1x1=3]="ALIGN_1x1",e[e.ALIGN_7x9=4]="ALIGN_7x9",e))(Dt||{}),Bt=(e=>(e[e.IMAGE_CHARACTERISTICS=1]="IMAGE_CHARACTERISTICS",e[e.HEAD_SIZE_AND_POSITIONS=2]="HEAD_SIZE_AND_POSITIONS",e[e.FACE_QUALITY=3]="FACE_QUALITY",e[e.EYES_CHARACTERISTICS=4]="EYES_CHARACTERISTICS",e[e.SHADOWS_AND_LIGHTNING=5]="SHADOWS_AND_LIGHTNING",e[e.POSE_AND_EXPRESSION=6]="POSE_AND_EXPRESSION",e[e.HEAD_OCCLUSION=7]="HEAD_OCCLUSION",e[e.BACKGROUND=8]="BACKGROUND",e))(Bt||{}),Ht=(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))(Ht||{}),Gt=(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))(Gt||{}),Mt=(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))(Mt||{}),vt=(e=>(e.OLD_MODE="OldMode",e.QUALITY_FULL="QualityFull",e.QUALITY_ICAO="QualityICAO",e.QUALITY_VISA_SCHENGEN="QualityVisaSchengen",e.QUALITY_VISA_USA="QualityVisaUSA",e.CROP_CENTRAL_FACE="CropCentralFace",e.CROP_ALL_FACES="CropAllFaces",e.THUMBNAIL="Thumbnail",e.ATTRIBUTES_ALL="AttributesAll",e.EMPTY="",e))(vt||{}),jt=(e=>(e[e.FACER_OK=0]="FACER_OK",e[e.FR_IMAGE_EMPTY=1]="FR_IMAGE_EMPTY",e[e.FR_FACE_NOT_DETECTED=2]="FR_FACE_NOT_DETECTED",e[e.FR_LANDMARKS_NOT_DETECTED=3]="FR_LANDMARKS_NOT_DETECTED",e[e.FR_FACE_ALIGHNER_FAILED=4]="FR_FACE_ALIGHNER_FAILED",e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR=5]="FR_DESCRIPTOR_EXTRACTOR_ERROR",e[e.FR_IMAGE_DECODE_ERROR=6]="FR_IMAGE_DECODE_ERROR",e[e.FR_INTERNAL_ERROR=7]="FR_INTERNAL_ERROR",e[e.FACER_CONFIG_ERROR=199]="FACER_CONFIG_ERROR",e[e.FACER_NO_LICENSE=200]="FACER_NO_LICENSE",e[e.FACER_IS_NOT_INITIALIZED=201]="FACER_IS_NOT_INITIALIZED",e[e.FACER_COMMAND_IS_NOT_SUPPORTED=202]="FACER_COMMAND_IS_NOT_SUPPORTED",e[e.FACER_COMMAND_PARAMS_READ_ERROR=203]="FACER_COMMAND_PARAMS_READ_ERROR",e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST=224]="FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST",e[e.FACER_VIDEO_DECODE_ERROR=227]="FACER_VIDEO_DECODE_ERROR",e[e.FACER_NOT_ENOUGH_FRAMES=228]="FACER_NOT_ENOUGH_FRAMES",e[e.FACER_OUTPUT_IS_NOT_DEFINED=229]="FACER_OUTPUT_IS_NOT_DEFINED",e[e.FACER_CLOSED_EYES_DETECTED=230]="FACER_CLOSED_EYES_DETECTED",e[e.FACER_LOW_QUALITY=231]="FACER_LOW_QUALITY",e[e.FACER_HIGH_ASYMMETRY=232]="FACER_HIGH_ASYMMETRY",e[e.FACER_FACE_OVER_EMOTIONAL=233]="FACER_FACE_OVER_EMOTIONAL",e[e.FACER_SUNGLASSES_DETECTED=234]="FACER_SUNGLASSES_DETECTED",e[e.FACER_SMALL_AGE=235]="FACER_SMALL_AGE",e[e.FACER_HEADDRESS_DETECTED=236]="FACER_HEADDRESS_DETECTED",e[e.FACER_FACES_NOT_MATCHED=237]="FACER_FACES_NOT_MATCHED",e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED=238]="FACER_IMAGES_COUNT_LIMIT_EXCEEDED",e[e.FACER_MEDICINE_MASK_DETECTED=239]="FACER_MEDICINE_MASK_DETECTED",e[e.FACER_OCCLUSION_DETECTED=240]="FACER_OCCLUSION_DETECTED",e[e.FACER_FOREHEAD_GLASSES_DETECTED=242]="FACER_FOREHEAD_GLASSES_DETECTED",e[e.FACER_MOUTH_OPENED=243]="FACER_MOUTH_OPENED",e[e.FACER_ART_MASK_DETECTED=244]="FACER_ART_MASK_DETECTED",e[e.FACER_ELECTRONIC_DEVICE_DETECTED=245]="FACER_ELECTRONIC_DEVICE_DETECTED",e[e.FACER_TRACK_BREAK=246]="FACER_TRACK_BREAK",e[e.FACER_WRONG_GEO=247]="FACER_WRONG_GEO",e[e.FACER_WRONG_OF=248]="FACER_WRONG_OF",e[e.FACER_WRONG_VIEW=249]="FACER_WRONG_VIEW",e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION=250]="FACER_TIMEOUT_LIVENESS_TRANSACTION",e[e.FACER_FAILED_LIVENESS_TRANSACTION=251]="FACER_FAILED_LIVENESS_TRANSACTION",e[e.FACER_ABORTED_LIVENESS_TRANSACTION=252]="FACER_ABORTED_LIVENESS_TRANSACTION",e[e.FACER_GENERAL_ERROR=253]="FACER_GENERAL_ERROR",e[e.FACER_PASSIVE_LIVENESS_FAIL=254]="FACER_PASSIVE_LIVENESS_FAIL",e))(jt||{}),Ft=(e=>(e.IN="in",e.NOT_IN="nin",e))(Ft||{}),Me=(e=>(e[e.DOCUMENT_PRINTED=1]="DOCUMENT_PRINTED",e[e.DOCUMENT_RFID=2]="DOCUMENT_RFID",e[e.LIVE=3]="LIVE",e[e.DOCUMENT_WITH_LIVE=4]="DOCUMENT_WITH_LIVE",e[e.EXTERNAL=5]="EXTERNAL",e[e.GHOST=6]="GHOST",e[e.BARCODE=7]="BARCODE",e))(Me||{}),kt=(e=>(e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e))(kt||{}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ue=0;ue<J.length;ue++)xs[J.charCodeAt(ue)]=ue;var Ae=function(e){var t=new Uint8Array(e),r,s=t.length,n="";for(r=0;r<s;r+=3)n+=J[t[r]>>2],n+=J[(t[r]&3)<<4|t[r+1]>>4],n+=J[(t[r+1]&15)<<2|t[r+2]>>6],n+=J[t[r+2]&63];return s%3===2?n=n.substring(0,n.length-1)+"=":s%3===1&&(n=n.substring(0,n.length-2)+"=="),n};class qt{constructor(t,r,s){this.superClass=new Us(t,r,s)}async match(t,r,s){for(const o of t.images)o.type||(o.type=Me.LIVE),typeof o.data!="string"&&(o.data=Ae(o.data));return(await this.superClass.match(t,r,s)).data}async detect(t,r,s){return t.image&&typeof t.image!="string"&&(t.image=Ae(t.image)),(await this.superClass.detect(t,r,s)).data}}const Ds=function(e){return{createGroup:async(t,r,s={})=>{m("createGroup","groupToCreate",t);const n="/api/groups",o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...s},l={},c={};l["Content-Type"]="application/json",r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},i.data=M(t,i,e),{url:S(o),options:i}},deleteGroup:async(t,r,s={})=>{m("deleteGroup","groupId",t);const n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(t))),o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...s},l={},c={};r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},{url:S(o),options:i}},getAllGroups:async(t,r,s,n={})=>{const o="/api/groups",a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};r!==void 0&&(d.page=r),s!==void 0&&(d.size=s),t!=null&&(c["X-RequestID"]=String(t)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},{url:S(a),options:l}},getAllPersonsByGroupId:async(t,r,s,n,o={})=>{m("getAllPersonsByGroupId","groupId",t);const a="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(t))),i=new URL(a,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},p={};s!==void 0&&(p.page=s),n!==void 0&&(p.size=n),r!=null&&(d["X-RequestID"]=String(r)),I(i,p);let _=l&&l.headers?l.headers:{};return c.headers={...d,..._,...o.headers},{url:S(i),options:c}},getGroup:async(t,r,s={})=>{m("getGroup","groupId",t);const n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(t))),o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...s},l={},c={};r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},{url:S(o),options:i}},updateGroup:async(t,r,s,n={})=>{m("updateGroup","groupId",t),m("updateGroup","groupToCreate",r);const o="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(t))),a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};c["Content-Type"]="application/json",s!=null&&(c["X-RequestID"]=String(s)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=M(r,l,e),{url:S(a),options:l}},updatePersonsInGroup:async(t,r,s,n={})=>{m("updatePersonsInGroup","groupId",t),m("updatePersonsInGroup","updateGroup",r);const o="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(t))),a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};c["Content-Type"]="application/json",s!=null&&(c["X-RequestID"]=String(s)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=M(r,l,e),{url:S(a),options:l}}}},$=function(e){const t=Ds(e);return{async createGroup(r,s,n){const o=await t.createGroup(r,s,n),a=e?.serverIndex??0,i=T["GroupApi.createGroup"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async deleteGroup(r,s,n){const o=await t.deleteGroup(r,s,n),a=e?.serverIndex??0,i=T["GroupApi.deleteGroup"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async getAllGroups(r,s,n,o){const a=await t.getAllGroups(r,s,n,o),i=e?.serverIndex??0,l=T["GroupApi.getAllGroups"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)},async getAllPersonsByGroupId(r,s,n,o,a){const i=await t.getAllPersonsByGroupId(r,s,n,o,a),l=e?.serverIndex??0,c=T["GroupApi.getAllPersonsByGroupId"]?.[l]?.url;return(d,p)=>b(i,O,R,e)(d,c||p)},async getGroup(r,s,n){const o=await t.getGroup(r,s,n),a=e?.serverIndex??0,i=T["GroupApi.getGroup"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async updateGroup(r,s,n,o){const a=await t.updateGroup(r,s,n,o),i=e?.serverIndex??0,l=T["GroupApi.updateGroup"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)},async updatePersonsInGroup(r,s,n,o){const a=await t.updatePersonsInGroup(r,s,n,o),i=e?.serverIndex??0,l=T["GroupApi.updatePersonsInGroup"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)}}};let Bs=class extends Q{createGroup(t,r,s){return $(this.configuration).createGroup(t,r,s).then(n=>n(this.axios,this.basePath))}deleteGroup(t,r,s){return $(this.configuration).deleteGroup(t,r,s).then(n=>n(this.axios,this.basePath))}getAllGroups(t,r,s,n){return $(this.configuration).getAllGroups(t,r,s,n).then(o=>o(this.axios,this.basePath))}getAllPersonsByGroupId(t,r,s,n,o){return $(this.configuration).getAllPersonsByGroupId(t,r,s,n,o).then(a=>a(this.axios,this.basePath))}getGroup(t,r,s){return $(this.configuration).getGroup(t,r,s).then(n=>n(this.axios,this.basePath))}updateGroup(t,r,s,n){return $(this.configuration).updateGroup(t,r,s,n).then(o=>o(this.axios,this.basePath))}updatePersonsInGroup(t,r,s,n){return $(this.configuration).updatePersonsInGroup(t,r,s,n).then(o=>o(this.axios,this.basePath))}};class $t{constructor(t,r,s){this.superClass=new Bs(t,r,s)}async createGroup(t,r,s){const n={...t,metadata:t?.metadata?t.metadata:{}};return(await this.superClass.createGroup(n,r,s)).data}async deleteGroup(t,r,s){await this.superClass.deleteGroup(t,r,s)}async getAllGroups(t,r,s,n){return(await this.superClass.getAllGroups(s,t,r,n)).data}async getAllPersonsByGroupId(t,r,s,n,o){return(await this.superClass.getAllPersonsByGroupId(s,n,t,r,o)).data}async getGroup(t,r,s){return(await this.superClass.getGroup(t,r,s)).data}async updateGroup(t,r,s,n){await this.superClass.updateGroup(t,r,s,n)}async updatePersonsInGroup(t,r,s,n){await this.superClass.updatePersonsInGroup(t,r,s,n)}}const Hs=function(e){return{addImageToPerson:async(t,r,s,n={})=>{m("addImageToPerson","personId",t),m("addImageToPerson","addImageToPersonRequest",r);const o="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(t))),a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};c["Content-Type"]="application/json",s!=null&&(c["X-RequestID"]=String(s)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=M(r,l,e),{url:S(a),options:l}},createPerson:async(t,r,s={})=>{m("createPerson","personFields",t);const n="/api/persons",o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...s},l={},c={};l["Content-Type"]="application/json",r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},i.data=M(t,i,e),{url:S(o),options:i}},deleteImageOfPerson:async(t,r,s,n={})=>{m("deleteImageOfPerson","personId",t),m("deleteImageOfPerson","imageId",r);const o="/api/persons/{personId}/images/{imageId}".replace("{personId}",encodeURIComponent(String(t))).replace("{imageId}",encodeURIComponent(String(r))),a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},c={},d={};s!=null&&(c["X-RequestID"]=String(s)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},{url:S(a),options:l}},deletePerson:async(t,r,s={})=>{m("deletePerson","personId",t);const n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...s},l={},c={};r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},{url:S(o),options:i}},getAllGroupsByPersonId:async(t,r,s,n,o={})=>{m("getAllGroupsByPersonId","personId",t);const a="/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(t))),i=new URL(a,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},p={};s!==void 0&&(p.page=s),n!==void 0&&(p.size=n),r!=null&&(d["X-RequestID"]=String(r)),I(i,p);let _=l&&l.headers?l.headers:{};return c.headers={...d,..._,...o.headers},{url:S(i),options:c}},getAllImagesByPersonId:async(t,r,s,n,o={})=>{m("getAllImagesByPersonId","personId",t);const a="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(t))),i=new URL(a,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},p={};s!==void 0&&(p.page=s),n!==void 0&&(p.size=n),r!=null&&(d["X-RequestID"]=String(r)),I(i,p);let _=l&&l.headers?l.headers:{};return c.headers={...d,..._,...o.headers},{url:S(i),options:c}},getImageOfPerson:async(t,r,s,n={})=>{m("getImageOfPerson","personId",t),m("getImageOfPerson","imageId",r);const o="/api/persons/{personId}/images/{imageId}".replace("{personId}",encodeURIComponent(String(t))).replace("{imageId}",encodeURIComponent(String(r))),a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};s!=null&&(c["X-RequestID"]=String(s)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},{url:S(a),options:l}},getPerson:async(t,r,s={})=>{m("getPerson","personId",t);const n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...s},l={},c={};r!=null&&(l["X-RequestID"]=String(r)),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},{url:S(o),options:i}},updatePerson:async(t,r,s,n={})=>{m("updatePerson","personId",t),m("updatePerson","personToUpdateFields",r);const o="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(t))),a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};c["Content-Type"]="application/json",s!=null&&(c["X-RequestID"]=String(s)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=M(r,l,e),{url:S(a),options:l}}}},v=function(e){const t=Hs(e);return{async addImageToPerson(r,s,n,o){const a=await t.addImageToPerson(r,s,n,o),i=e?.serverIndex??0,l=T["PersonApi.addImageToPerson"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)},async createPerson(r,s,n){const o=await t.createPerson(r,s,n),a=e?.serverIndex??0,i=T["PersonApi.createPerson"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async deleteImageOfPerson(r,s,n,o){const a=await t.deleteImageOfPerson(r,s,n,o),i=e?.serverIndex??0,l=T["PersonApi.deleteImageOfPerson"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)},async deletePerson(r,s,n){const o=await t.deletePerson(r,s,n),a=e?.serverIndex??0,i=T["PersonApi.deletePerson"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async getAllGroupsByPersonId(r,s,n,o,a){const i=await t.getAllGroupsByPersonId(r,s,n,o,a),l=e?.serverIndex??0,c=T["PersonApi.getAllGroupsByPersonId"]?.[l]?.url;return(d,p)=>b(i,O,R,e)(d,c||p)},async getAllImagesByPersonId(r,s,n,o,a){const i=await t.getAllImagesByPersonId(r,s,n,o,a),l=e?.serverIndex??0,c=T["PersonApi.getAllImagesByPersonId"]?.[l]?.url;return(d,p)=>b(i,O,R,e)(d,c||p)},async getImageOfPerson(r,s,n,o){const a=await t.getImageOfPerson(r,s,n,o),i=e?.serverIndex??0,l=T["PersonApi.getImageOfPerson"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)},async getPerson(r,s,n){const o=await t.getPerson(r,s,n),a=e?.serverIndex??0,i=T["PersonApi.getPerson"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async updatePerson(r,s,n,o){const a=await t.updatePerson(r,s,n,o),i=e?.serverIndex??0,l=T["PersonApi.updatePerson"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)}}};let Gs=class extends Q{addImageToPerson(t,r,s,n){return v(this.configuration).addImageToPerson(t,r,s,n).then(o=>o(this.axios,this.basePath))}createPerson(t,r,s){return v(this.configuration).createPerson(t,r,s).then(n=>n(this.axios,this.basePath))}deleteImageOfPerson(t,r,s,n){return v(this.configuration).deleteImageOfPerson(t,r,s,n).then(o=>o(this.axios,this.basePath))}deletePerson(t,r,s){return v(this.configuration).deletePerson(t,r,s).then(n=>n(this.axios,this.basePath))}getAllGroupsByPersonId(t,r,s,n,o){return v(this.configuration).getAllGroupsByPersonId(t,r,s,n,o).then(a=>a(this.axios,this.basePath))}getAllImagesByPersonId(t,r,s,n,o){return v(this.configuration).getAllImagesByPersonId(t,r,s,n,o).then(a=>a(this.axios,this.basePath))}getImageOfPerson(t,r,s,n){return v(this.configuration).getImageOfPerson(t,r,s,n).then(o=>o(this.axios,this.basePath))}getPerson(t,r,s){return v(this.configuration).getPerson(t,r,s).then(n=>n(this.axios,this.basePath))}updatePerson(t,r,s,n){return v(this.configuration).updatePerson(t,r,s,n).then(o=>o(this.axios,this.basePath))}};class zt{constructor(t,r,s){this.superClass=new Gs(t,r,s)}async createPerson(t,r,s){const n={...t,metadata:t?.metadata?t.metadata:{}};return(await this.superClass.createPerson(n,r,s)).data}async addImageToPerson(t,r,s,n){return r?.image?.content&&typeof r.image.content!="string"&&(r.image.content=Ae(r.image.content)),(await this.superClass.addImageToPerson(t,r,s,n)).data}async deleteImageOfPerson(t,r,s,n){await this.superClass.deleteImageOfPerson(r,t,s,n)}async deletePerson(t,r,s){await this.superClass.deletePerson(t,r,s)}async getAllGroupsByPersonId(t,r,s,n,o){return(await this.superClass.getAllGroupsByPersonId(s,n,t,r,o)).data}async getAllImagesByPersonId(t,r,s,n,o){return(await this.superClass.getAllImagesByPersonId(s,n,t,r,o)).data}async getImageOfPerson(t,r,s,n){return(await this.superClass.getImageOfPerson(r,t,s,n)).data}async getPerson(t,r,s){return(await this.superClass.getPerson(t,r,s)).data}async updatePerson(t,r,s,n){await this.superClass.updatePerson(t,r,s,n)}}const Ms=function(e){return{search:async(t,r,s,n={})=>{m("search","searchRequest",t);const o="/api/search",a=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};s!==void 0&&(d.withImages=s),c["Content-Type"]="application/json",r!=null&&(c["X-RequestID"]=String(r)),I(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=M(t,l,e),{url:S(a),options:l}}}},vs=function(e){const t=Ms(e);return{async search(r,s,n,o){const a=await t.search(r,s,n,o),i=e?.serverIndex??0,l=T["SearchApi.search"]?.[i]?.url;return(c,d)=>b(a,O,R,e)(c,l||d)}}};let js=class extends Q{search(t,r,s,n){return vs(this.configuration).search(t,r,s,n).then(o=>o(this.axios,this.basePath))}};class Wt{constructor(t,r,s){this.superClass=new js(t,r,s)}async search(t,r,s,n){return t?.image?.content&&typeof t.image.content!="string"&&(t.image.content=Ae(t.image.content)),(await this.superClass.search(t,r,s,n)).data}}const Fs=function(e){return{deleteLivenessTransaction:async(t,r,s={})=>{m("deleteLivenessTransaction","transactionId",t),m("deleteLivenessTransaction","tag",r);const n="/api/v2/liveness",o=new URL(n,P);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...s},l={},c={};t!==void 0&&(c.transactionId=t),r!==void 0&&(c.tag=r),I(o,c);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...s.headers},{url:S(o),options:i}},getLivenessTransactionInfo:async(t,r={})=>{m("getLivenessTransactionInfo","transactionId",t);const s="/api/v2/liveness",n=new URL(s,P);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},i={},l={};t!==void 0&&(l.transactionId=t),I(n,l);let c=o&&o.headers?o.headers:{};return a.headers={...i,...c,...r.headers},{url:S(n),options:a}}}},ct=function(e){const t=Fs(e);return{async deleteLivenessTransaction(r,s,n){const o=await t.deleteLivenessTransaction(r,s,n),a=e?.serverIndex??0,i=T["Liveness20Api.deleteLivenessTransaction"]?.[a]?.url;return(l,c)=>b(o,O,R,e)(l,i||c)},async getLivenessTransactionInfo(r,s){const n=await t.getLivenessTransactionInfo(r,s),o=e?.serverIndex??0,a=T["Liveness20Api.getLivenessTransactionInfo"]?.[o]?.url;return(i,l)=>b(n,O,R,e)(i,a||l)}}};let ks=class extends Q{deleteLivenessTransaction(t,r,s){return ct(this.configuration).deleteLivenessTransaction(t,r,s).then(n=>n(this.axios,this.basePath))}getLivenessTransactionInfo(t,r){return ct(this.configuration).getLivenessTransactionInfo(t,r).then(s=>s(this.axios,this.basePath))}};class Yt{constructor(t,r,s){this.superClass=new ks(t,r,s)}async getLivenessTransactionInfo(t,r){return(await this.superClass.getLivenessTransactionInfo(t,r)).data}}const qs=function(e){return{healthz:async(t,r={})=>{const s="/api/healthz",n=new URL(s,P);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},i={},l={};t!=null&&(i["X-RequestID"]=String(t)),I(n,l);let c=o&&o.headers?o.headers:{};return a.headers={...i,...c,...r.headers},{url:S(n),options:a}},readyz:async(t,r={})=>{const s="/api/readyz",n=new URL(s,P);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...r},i={},l={};t!=null&&(i["X-RequestID"]=String(t)),I(n,l);let c=o&&o.headers?o.headers:{};return a.headers={...i,...c,...r.headers},{url:S(n),options:a}}}},dt=function(e){const t=qs(e);return{async healthz(r,s){const n=await t.healthz(r,s),o=e?.serverIndex??0,a=T["HealthcheckApi.healthz"]?.[o]?.url;return(i,l)=>b(n,O,R,e)(i,a||l)},async readyz(r,s){const n=await t.readyz(r,s),o=e?.serverIndex??0,a=T["HealthcheckApi.readyz"]?.[o]?.url;return(i,l)=>b(n,O,R,e)(i,a||l)}}};let $s=class extends Q{healthz(t,r){return dt(this.configuration).healthz(t,r).then(s=>s(this.axios,this.basePath))}readyz(t,r){return dt(this.configuration).readyz(t,r).then(s=>s(this.axios,this.basePath))}};class Xt{constructor(t,r,s){this.superClass=new $s(t,r,s)}async healthz(t,r){return(await this.superClass.healthz(t,r)).data}async readyz(t,r){return(await this.superClass.readyz(t,r)).data}}class zs{constructor(t,r=R,s=O){this.basePath=r,this.axios=s,this.matchApi=new qt(t,r,s),this.groupApi=new $t(t,r,s),this.personApi=new zt(t,r,s),this.searchApi=new Wt(t,r,s),this.livenessApi=new Yt(t,r,s),this.healthcheckApi=new Xt(t,r,s)}}class Ws{constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}}exports.Configuration=Ws;exports.FaceAttribute=xt;exports.FaceImageQualityAlignType=Dt;exports.FaceImageQualityGroups=Bt;exports.FaceImageQualityGroupsStrings=Ht;exports.FaceImageQualityStatus=Gt;exports.FaceQualityConfigName=Mt;exports.FaceQualityScenarios=vt;exports.FaceSDKResultCode=jt;exports.FaceSdk=zs;exports.FilterOp=Ft;exports.GroupApi=$t;exports.HealthcheckApi=Xt;exports.ImageSource=Me;exports.Liveness20Api=Yt;exports.LivenessType=kt;exports.MatchApi=qt;exports.PersonApi=zt;exports.SearchApi=Wt;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};function n(e,t){return function(){return e.apply(t,arguments)}}var{toString:r}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:a,toStringTag:o}=Symbol,s=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),c=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),s(n,t))return!0;n=i(n)}return!1},l=(e,t)=>e!=null&&c(e,t)?e[t]:void 0,u=(e=>t=>{let n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),d=e=>(e=e.toLowerCase(),t=>u(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,m=f(`undefined`);function h(e){return e!==null&&!m(e)&&e.constructor!==null&&!m(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var g=d(`ArrayBuffer`);function _(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t}var ee=f(`string`),v=f(`function`),y=f(`number`),b=e=>typeof e==`object`&&!!e,te=e=>e===!0||e===!1,x=e=>{if(!b(e))return!1;let t=i(e);return(t===null||t===Object.prototype||i(t)===null)&&!c(e,o)&&!c(e,a)},S=e=>{if(!b(e)||h(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ne=d(`Date`),C=d(`File`),re=e=>!!(e&&e.uri!==void 0),ie=e=>e&&e.getParts!==void 0,ae=d(`Blob`),w=d(`FileList`),T=e=>b(e)&&v(e.pipe);function E(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var D=E(),O=D.FormData===void 0?void 0:D.FormData,oe=e=>{if(!e)return!1;if(O&&e instanceof O)return!0;let t=i(e);if(!t||t===Object.prototype||!v(e.append))return!1;let n=u(e);return n===`formdata`||n===`object`&&v(e.toString)&&e.toString()===`[object FormData]`},se=d(`URLSearchParams`),[ce,k,le,ue]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(d),A=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function de(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),p(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(h(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function fe(e,t){if(h(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var j=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,pe=e=>!m(e)&&e!==j;function me(...e){let{caseless:t,skipUndefined:n}=pe(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&fe(r,i)||i,o=s(r,a)?r[a]:void 0;x(o)&&x(e)?r[a]=me(o,e):x(e)?r[a]=me({},e):p(e)?r[a]=e.slice():(!n||!m(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||h(n)||(de(n,i),typeof n!=`object`||p(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Ee.call(n,t)&&i(n[t],t)}}return r}var he=(e,t,r,{allOwnKeys:i}={})=>(de(t,(t,i)=>{r&&v(t)?Object.defineProperty(e,i,{__proto__:null,value:n(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),ge=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},ve=(e,t,n,r)=>{let a,o,s,c={};if(t||={},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ye=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},be=e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},xe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&i(Uint8Array)),Se=(e,t)=>{let n=(e&&e[a]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ce=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},we=d(`HTMLFormElement`),Te=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Ee}=Object.prototype,De=d(`RegExp`),Oe=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};de(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ke=e=>{Oe(e,(t,n)=>{if(v(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(v(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Ae=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},je=()=>{},Me=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ne(e){return!!(e&&v(e.append)&&e[o]===`FormData`&&e[a])}var Pe=e=>{let t=new WeakSet,n=e=>{if(b(e)){if(t.has(e))return;if(h(e))return e;if(!(`toJSON`in e)){t.add(e);let r=p(e)?[]:{};return de(e,(e,t)=>{let i=n(e);!m(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},Fe=d(`AsyncFunction`),Ie=e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),Le=((e,t)=>e?setImmediate:t?((e,t)=>(j.addEventListener(`message`,({source:n,data:r})=>{n===j&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),j.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,v(j.postMessage)),Re=typeof queueMicrotask<`u`?queueMicrotask.bind(j):typeof process<`u`&&process.nextTick||Le,ze=e=>e!=null&&v(e[a]),M={isArray:p,isArrayBuffer:g,isBuffer:h,isFormData:oe,isArrayBufferView:_,isString:ee,isNumber:y,isBoolean:te,isObject:b,isPlainObject:x,isEmptyObject:S,isReadableStream:ce,isRequest:k,isResponse:le,isHeaders:ue,isUndefined:m,isDate:ne,isFile:C,isReactNativeBlob:re,isReactNative:ie,isBlob:ae,isRegExp:De,isFunction:v,isStream:T,isURLSearchParams:se,isTypedArray:xe,isFileList:w,forEach:de,merge:me,extend:he,trim:A,stripBOM:ge,inherits:_e,toFlatObject:ve,kindOf:u,kindOfTest:d,endsWith:ye,toArray:be,forEachEntry:Se,matchAll:Ce,isHTMLForm:we,hasOwnProperty:s,hasOwnProp:s,hasOwnInPrototypeChain:c,getSafeProp:l,reduceDescriptors:Oe,freezeMethods:ke,toObjectSet:Ae,toCamelCase:Te,noop:je,toFiniteNumber:Me,findKey:fe,global:j,isContextDefined:pe,isSpecCompliantForm:Ne,toJSONObject:Pe,isAsyncFn:Fe,isThenable:Ie,setImmediate:Le,asap:Re,isIterable:ze,isSafeIterable:e=>e!=null&&c(e,a)&&ze(e)},Be=M.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Ve=e=>{let t={},n,r,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Be[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function He(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Ue=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),We=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Ge(e,t){return M.isArray(e)?e.map(e=>Ge(e,t)):He(String(e).replace(t,``))}var Ke=e=>Ge(e,Ue),qe=e=>Ge(e,We);function Je(e){let t=Object.create(null);return M.forEach(e.toJSON(),(e,n)=>{t[n]=qe(e)}),t}var Ye=Symbol(`internals`);function Xe(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return e===!1||e==null?e:M.isArray(e)?e.map(Ze):Ke(String(e))}function Qe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var $e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function et(e,t,n,r,i){if(M.isFunction(r))return r.call(this,t,n);if(i&&(t=n),M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function tt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function nt(e,t){let n=M.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var N=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Xe(t);if(!i)return;let a=M.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Ze(e))}let a=(e,t)=>M.forEach(e,(e,n)=>i(e,n,t));if(M.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(M.isString(e)&&(e=e.trim())&&!$e(e))a(Ve(e),t);else if(M.isObject(e)&&M.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!M.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],M.hasOwnProp(n,i)?(r=n[i],n[i]=M.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Xe(e),e){let n=M.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Qe(e);if(M.isFunction(t))return t.call(this,e,n);if(M.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Xe(e),e){let n=M.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||et(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Xe(e),e){let i=M.findKey(n,e);i&&(!t||et(n,n[i],i,t))&&(delete n[i],r=!0)}}return M.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||et(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return M.forEach(this,(r,i)=>{let a=M.findKey(n,i);if(a){t[a]=Ze(r),delete t[i];return}let o=e?tt(i):String(i).trim();o!==i&&delete t[i],t[o]=Ze(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return M.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&M.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Xe(e);t[r]||(nt(n,e),t[r]=!0)}return M.isArray(e)?e.forEach(r):r(e),this}};N.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),M.reduceDescriptors(N.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),M.freezeMethods(N);var rt=`[REDACTED ****]`;function it(e){if(M.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(M.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function at(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||M.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof N&&(e=e.toJSON()),r.push(e);let t;if(M.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);M.isUndefined(r)||(t[n]=r)});else{if(!M.isPlainObject(e)&&it(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?rt:i(a);M.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var P=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&M.hasOwnProp(e,`redact`)?e.redact:void 0,n=M.isArray(t)&&t.length>0?at(e,t):M.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};P.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,P.ERR_BAD_OPTION=`ERR_BAD_OPTION`,P.ECONNABORTED=`ECONNABORTED`,P.ETIMEDOUT=`ETIMEDOUT`,P.ECONNREFUSED=`ECONNREFUSED`,P.ERR_NETWORK=`ERR_NETWORK`,P.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,P.ERR_DEPRECATED=`ERR_DEPRECATED`,P.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,P.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,P.ERR_CANCELED=`ERR_CANCELED`,P.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,P.ERR_INVALID_URL=`ERR_INVALID_URL`,P.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function ot(e){return M.isPlainObject(e)||M.isArray(e)}function st(e){return M.endsWith(e,`[]`)?e.slice(0,-2):e}function ct(e,t,n){return e?e.concat(t).map(function(e,t){return e=st(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function lt(e){return M.isArray(e)&&!e.some(ot)}var ut=M.toFlatObject(M,{},null,function(e){return/^is[A-Z]/.test(e)});function dt(e,t,n){if(!M.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!M.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&M.isSpecCompliantForm(t),u=[];if(!M.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(M.isDate(e))return e.toISOString();if(M.isBoolean(e))return e.toString();if(!l&&M.isBlob(e))throw new P(`Blob is not supported. Use a Buffer instead.`);return M.isArrayBuffer(e)||M.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function f(e){if(e>c)throw new P(`Object is too deeply nested (`+e+` levels). Max depth: `+c,P.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!M.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(M.isReactNative(t)&&M.isReactNativeBlob(e))return t.append(ct(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(M.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(M.isArray(e)&<(e)||(M.isFileList(e)||M.endsWith(n,`[]`))&&(s=M.toArray(e)))return n=st(n),s.forEach(function(e,r){!(M.isUndefined(e)||e===null)&&t.append(o===!0?ct([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return ot(e)?!0:(t.append(ct(i,n,a),d(e)),!1)}let h=Object.assign(ut,{defaultVisitor:m,convertValue:d,isVisitable:ot});function g(e,n,r=0){if(!M.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),M.forEach(e,function(e,a){(!(M.isUndefined(e)||e===null)&&i.call(t,e,M.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!M.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function ft(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function pt(e,t){this._pairs=[],e&&dt(e,this,t)}var mt=pt.prototype;mt.append=function(e,t){this._pairs.push([e,t])},mt.toString=function(e){let t=e?function(t){return e.call(this,t,ft)}:ft;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function ht(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function gt(e,t,n){if(!t)return e;let r=M.isFunction(n)?{serialize:n}:n,i=M.getSafeProp(r,`encode`)||ht,a=M.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):M.isURLSearchParams(t)?t.toString():new pt(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var _t=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){M.forEach(this.handlers,function(t){t!==null&&e(t)})}},vt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},yt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:pt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},bt=t({hasBrowserEnv:()=>xt,hasStandardBrowserEnv:()=>Ct,hasStandardBrowserWebWorkerEnv:()=>wt,navigator:()=>St,origin:()=>Tt}),xt=typeof window<`u`&&typeof document<`u`,St=typeof navigator==`object`&&navigator||void 0,Ct=xt&&(!St||[`ReactNative`,`NativeScript`,`NS`].indexOf(St.product)<0),wt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Tt=xt&&window.location.href||`http://localhost`,F={...bt,...yt};function Et(e,t){return dt(e,new F.classes.URLSearchParams,{visitor:function(e,t,n,r){return F.isNode&&M.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Dt=100;function Ot(e){if(e>Dt)throw new P(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Dt,P.ERR_FORM_DATA_DEPTH_EXCEEDED)}function kt(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)Ot(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function At(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function jt(e){function t(e,n,r,i){Ot(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&M.isArray(r)?r.length:a,s?(M.hasOwnProp(r,a)?r[a]=M.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!M.hasOwnProp(r,a)||!M.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&M.isArray(r[a])&&(r[a]=At(r[a])),!o)}if(M.isFormData(e)&&M.isFunction(e.entries)){let n={};return M.forEachEntry(e,(e,r)=>{t(kt(e),r,n,0)}),n}return null}var I=(e,t)=>e!=null&&M.hasOwnProp(e,t)?e[t]:void 0;function Mt(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Nt={transitional:vt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=M.isObject(e);if(i&&M.isHTMLForm(e)&&(e=new FormData(e)),M.isFormData(e))return r?JSON.stringify(jt(e)):e;if(M.isArrayBuffer(e)||M.isBuffer(e)||M.isStream(e)||M.isFile(e)||M.isBlob(e)||M.isReadableStream(e))return e;if(M.isArrayBufferView(e))return e.buffer;if(M.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=I(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Et(e,t).toString();if((a=M.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=I(this,`env`),r=n&&n.FormData;return dt(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Mt(e)):e}],transformResponse:[function(e){let t=I(this,`transitional`)||Nt.transitional,n=t&&t.forcedJSONParsing,r=I(this,`responseType`),i=r===`json`;if(M.isResponse(e)||M.isReadableStream(e))return e;if(e&&M.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,I(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?P.from(e,P.ERR_BAD_RESPONSE,this,null,I(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};M.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Nt.headers[e]={}});function Pt(e,t){let n=this||Nt,r=t||n,i=N.from(r.headers),a=r.data;return M.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ft(e){return!!(e&&e.__CANCEL__)}var L=class extends P{constructor(e,t,n){super(e??`canceled`,P.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function It(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new P(`Request failed with status code `+n.status,n.status>=400&&n.status<500?P.ERR_BAD_REQUEST:P.ERR_BAD_RESPONSE,n.config,n.request,n))}function Lt(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Rt(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function zt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Bt=(e,t,n=3)=>{let r=0,i=Rt(50,250);return zt(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Vt=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ht=e=>(...t)=>M.asap(()=>e(...t)),Ut=F.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,F.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,Wt=F.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),M.isString(r)&&s.push(`path=${r}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Gt(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Kt(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var qt=/^https?:(?!\/\/)/i,Jt=/[\t\n\r]/g;function Yt(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Xt(e){return Yt(e).replace(Jt,``)}function Zt(e,t){if(typeof e==`string`&&qt.test(Xt(e)))throw new P(`Invalid URL: missing "//" after protocol`,P.ERR_INVALID_URL,t)}function Qt(e,t,n,r){Zt(t,r);let i=!Gt(t);return e&&(i||n===!1)?(Zt(e,r),Kt(e,t)):t}var $t=e=>e instanceof N?{...e}:e;function R(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return M.isPlainObject(e)&&M.isPlainObject(t)?M.merge.call({caseless:r},e,t):M.isPlainObject(t)?M.merge({},t):M.isArray(t)?t.slice():t}function i(e,t,n,i){if(!M.isUndefined(t))return r(e,t,n,i);if(!M.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!M.isUndefined(t))return r(void 0,t)}function o(e,t){if(!M.isUndefined(t))return r(void 0,t);if(!M.isUndefined(e))return r(void 0,e)}function s(n){let r=M.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!M.isUndefined(r))if(M.isPlainObject(r)){if(M.hasOwnProp(r,n))return r[n]}else return;let i=M.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(M.isPlainObject(i)&&M.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(M.hasOwnProp(t,a))return r(n,i);if(M.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i($t(e),$t(t),n,!0)};return M.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=M.hasOwnProp(l,r)?l[r]:i,o=a(M.hasOwnProp(e,r)?e[r]:void 0,M.hasOwnProp(t,r)?t[r]:void 0,r);M.isUndefined(o)&&a!==c||(n[r]=o)}),M.hasOwnProp(t,`validateStatus`)&&M.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(M.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var en=[`content-type`,`content-length`];function tn(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{en.includes(t.toLowerCase())&&e.set(t,n)})}var nn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function rn(e){let t=R({},e),n=e=>M.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=N.from(s),t.url=gt(Qt(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let e=M.getSafeProp(c,`username`)||``,t=M.getSafeProp(c,`password`)||``;s.set(`Authorization`,`Basic `+btoa(e+`:`+(t?nn(t):``)))}if(M.isFormData(r)&&(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv||M.isReactNative(r)?s.setContentType(void 0):M.isFunction(r.getHeaders)&&tn(s,r.getHeaders(),n(`formDataHeaderPolicy`))),F.hasStandardBrowserEnv&&(M.isFunction(i)&&(i=i(t)),i===!0||i==null&&Ut(t.url))){let e=a&&o&&Wt.read(o);e&&s.set(a,e)}return t}var an=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=rn(e),i=r.data,a=N.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=N.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());It(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new P(`Request aborted`,P.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new P(t&&t.message?t.message:`Network Error`,P.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||vt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new P(t,i.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&M.forEach(Je(a),function(e,t){h.setRequestHeader(t,e)}),M.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Bt(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Bt(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new L(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Lt(r.url);if(_&&!F.protocols.includes(_)){n(new P(`Unsupported protocol `+_+`:`,P.ERR_BAD_REQUEST,e));return}h.send(i||null)})},on=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof P?t:new L(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new P(`timeout of ${t}ms exceeded`,P.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>M.asap(o),s},sn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},cn=async function*(e,t){for await(let n of ln(e))yield*sn(n,t)},ln=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},un=(e,t,n,r)=>{let i=cn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},dn=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,fn=(e,t,n)=>t+2<n&&dn(e.charCodeAt(t+1))&&dn(e.charCodeAt(t+2));function pn(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);dn(t)&&dn(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&fn(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var mn=`1.18.0`,hn=64*1024,{isFunction:gn}=M,_n=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),vn=e=>{if(!M.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},yn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bn=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},xn=e=>{let t=M.global!==void 0&&M.global!==null?M.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=M.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?gn(i):typeof fetch==`function`,c=gn(a),l=gn(o);if(!s)return!1;let u=s&&gn(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&yn(()=>{let e=!1,t=new a(F.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&yn(()=>M.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new P(`Response type '${e}' is not supported`,P.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(M.isBlob(e))return e.size;if(M.isSpecCompliantForm(e))return(await new a(F.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(M.isArrayBufferView(e)||M.isArrayBuffer(e))return e.byteLength;if(M.isURLSearchParams(e)&&(e+=``),M.isString(e))return(await d(e)).byteLength},g=async(e,t)=>M.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:ee,onUploadProgress:v,responseType:y,headers:b,withCredentials:te=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:ne}=rn(e),C=M.isNumber(S)&&S>-1,re=M.isNumber(ne)&&ne>-1,ie=t=>M.hasOwnProp(e,t)?e[t]:void 0,ae=i||fetch;y=y?(y+``).toLowerCase():`text`;let w=on([l,d&&d.toAbortSignal()],_),T=null,E=w&&w.unsubscribe&&(()=>{w.unsubscribe()}),D,O=null,oe=()=>new P(`Request body larger than maxBodyLength limit`,P.ERR_BAD_REQUEST,e,T);try{let i,l=ie(`auth`);if(l&&(i={username:M.getSafeProp(l,`username`)||``,password:M.getSafeProp(l,`password`)||``}),bn(t)){let e=new URL(t,F.origin);!i&&(e.username||e.password)&&(i={username:vn(e.username),password:vn(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(b.delete(`authorization`),b.set(`Authorization`,`Basic `+btoa(_n((i.username||``)+`:`+(i.password||``))))),C&&typeof t==`string`&&t.startsWith(`data:`)&&pn(t)>S)throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T);if(re&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(D=e,e>ne))throw oe()}let d=re&&(M.isReadableStream(s)||M.isStream(s)),_=(e,t,n)=>un(e,hn,e=>{if(re&&e>ne)throw O=oe();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(v||d)){if(D??=await g(b,s),D!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(M.isFormData(s)&&(n=e.headers.get(`content-type`))&&b.setContentType(n),e.body){let[t,n]=v&&Vt(D,Bt(Ht(v)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new P(`Stream request bodies are not supported by the current fetch implementation`,P.ERR_NOT_SUPPORT,e,T);M.isString(te)||(te=te?`include`:`omit`);let se=c&&`credentials`in a.prototype;if(M.isFormData(s)){let e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete(`content-type`)}b.set(`User-Agent`,`axios/`+mn,!1);let ce={...x,signal:w,method:n.toUpperCase(),headers:Je(b.normalize()),body:s,duplex:`half`,credentials:se?te:void 0};T=c&&new a(t,ce);let k=await(c?ae(T,x):ae(t,ce)),le=N.from(k.headers);if(C){let t=M.toFiniteNumber(le.getContentLength());if(t!=null&&t>S)throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T)}let ue=p&&(y===`stream`||y===`response`);if(p&&k.body&&(ee||C||ue&&E)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=k[e]});let n=M.toFiniteNumber(le.getContentLength()),[r,i]=ee&&Vt(n,Bt(Ht(ee),!0))||[],a=0;k=new o(un(k.body,hn,t=>{if(C&&(a=t,a>S))throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T);r&&r(t)},()=>{i&&i(),E&&E()}),t)}y||=`text`;let A=await m[M.findKey(m,y)||`text`](k,e);if(C&&!p&&!ue){let t;if(A!=null&&(typeof A.byteLength==`number`?t=A.byteLength:typeof A.size==`number`?t=A.size:typeof A==`string`&&(t=typeof r==`function`?new r().encode(A).byteLength:A.length)),typeof t==`number`&&t>S)throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T)}return!ue&&E&&E(),await new Promise((t,n)=>{It(t,n,{data:A,headers:N.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:T})})}catch(t){if(E&&E(),w&&w.aborted&&w.reason instanceof P){let n=w.reason;throw n.config=e,T&&(n.request=T),t!==n&&(n.cause=t),n}throw O?(T&&!O.request&&(O.request=T),O):t instanceof P?(T&&!t.request&&(t.request=T),t):t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new P(`Network Error`,P.ERR_NETWORK,e,T,t&&t.response),{cause:t.cause||t}):P.from(t,t&&t.code,e,T,t&&t.response)}}},Sn=new Map,Cn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Sn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:xn(t)),l=c;return c};Cn();var wn={http:null,xhr:an,fetch:{get:Cn}};M.forEach(wn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Tn=e=>`- ${e}`,En=e=>M.isFunction(e)||e===null||e===!1;function Dn(e,t){e=M.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!En(r)&&(i=wn[(n=String(r)).toLowerCase()],i===void 0))throw new P(`Unknown adapter '${n}'`);if(i&&(M.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new P(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
|
+
`+e.map(Tn).join(`
|
|
5
|
+
`):` `+Tn(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var On={getAdapter:Dn,adapters:wn};function kn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function An(e){return kn(e),e.headers=N.from(e.headers),e.data=Pt.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),On.getAdapter(e.adapter||Nt.adapter,e)(e).then(function(t){kn(e),e.response=t;try{t.data=Pt.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=N.from(t.headers),t},function(t){if(!Ft(t)&&(kn(e),t&&t.response)){e.response=t.response;try{t.response.data=Pt.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=N.from(t.response.headers)}return Promise.reject(t)})}var jn={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{jn[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Mn={};jn.transitional=function(e,t,n){function r(e,t){return`[Axios v`+mn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new P(r(i,` has been removed`+(t?` in `+t:``)),P.ERR_DEPRECATED);return t&&!Mn[i]&&(Mn[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},jn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Nn(e,t,n){if(typeof e!=`object`)throw new P(`options must be an object`,P.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new P(`option `+a+` must be `+n,P.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new P(`Unknown option `+a,P.ERR_BAD_OPTION)}}var Pn={assertOptions:Nn,validators:jn},z=Pn.validators,B=class{constructor(e){this.defaults=e||{},this.interceptors={request:new _t,response:new _t}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
|
|
6
|
+
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
7
|
+
`),r=t===-1?-1:n.indexOf(`
|
|
8
|
+
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
9
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=R(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Pn.assertOptions(n,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean),legacyInterceptorReqResOrdering:z.transitional(z.boolean),advertiseZstdAcceptEncoding:z.transitional(z.boolean),validateStatusUndefinedResolves:z.transitional(z.boolean)},!1),r!=null&&(M.isFunction(r)?t.paramsSerializer={serialize:r}:Pn.assertOptions(r,{encode:z.function,serialize:z.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Pn.assertOptions(t,{baseUrl:z.spelling(`baseURL`),withXsrfToken:z.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&M.merge(i.common,i[t.method]);i&&M.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=N.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||vt;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[An.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=An.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=R(this.defaults,e),gt(Qt(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};M.forEach([`delete`,`get`,`head`,`options`],function(e){B.prototype[e]=function(t,n){return this.request(R(n||{},{method:e,url:t,data:n&&M.hasOwnProp(n,`data`)?n.data:void 0}))}}),M.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(R(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}B.prototype[e]=t(),e!==`query`&&(B.prototype[e+`Form`]=t(!0))});var Fn=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new L(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function In(e){return function(t){return e.apply(null,t)}}function Ln(e){return M.isObject(e)&&e.isAxiosError===!0}var Rn={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(Rn).forEach(([e,t])=>{Rn[t]=e});function zn(e){let t=new B(e),r=n(B.prototype.request,t);return M.extend(r,B.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return zn(R(e,t))},r}var V=zn(Nt);V.Axios=B,V.CanceledError=L,V.CancelToken=Fn,V.isCancel=Ft,V.VERSION=mn,V.toFormData=dt,V.AxiosError=P,V.Cancel=V.CanceledError,V.all=function(e){return Promise.all(e)},V.spread=In,V.isAxiosError=Ln,V.mergeConfig=R,V.AxiosHeaders=N,V.formToJSON=e=>jt(M.isHTMLForm(e)?new FormData(e):e),V.getAdapter=On.getAdapter,V.HttpStatusCode=Rn,V.default=V;var H=`https://faceapi.regulaforensics.com`.replace(/\/+$/,``),U=class{constructor(e,t=H,n=V){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath??t)}},Bn=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}},W={},G=`https://example.com`,K=function(e,t,n){if(n==null)throw new Bn(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Vn(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>Vn(e,t,n)):Object.keys(t).forEach(r=>Vn(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}for(var q=function(e,...t){let n=new URLSearchParams(e.search);Vn(n,t),e.search=n.toString()},J=function(e,t,n){let r=typeof e!=`string`;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers[`Content-Type`]):r)?JSON.stringify(e===void 0?{}:e):e||``},Y=function(e){return e.pathname+e.search+e.hash},X=function(e,t,n,r){return(i=t,a=n)=>{let o={...e.options,url:(i.defaults.baseURL?``:r?.basePath??a)+e.url};return i.request(o)}},Hn=function(e){return{detect:async(t,n,r={})=>{K(`detect`,`detectRequest`,t);let i=new URL(`/api/detect`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},match:async(t,n,r={})=>{K(`match`,`matchRequest`,t);let i=new URL(`/api/match`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},matchAndSearch:async(t,n,r={})=>{K(`matchAndSearch`,`matchAndSearchRequest`,t);let i=new URL(`/api/match_and_search`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}}}},Un=function(e){let t=Hn(e);return{async detect(n,r,i){let a=await t.detect(n,r,i),o=e?.serverIndex??0,s=W[`MatchApi.detect`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async match(n,r,i){let a=await t.match(n,r,i),o=e?.serverIndex??0,s=W[`MatchApi.match`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async matchAndSearch(n,r,i){let a=await t.matchAndSearch(n,r,i),o=e?.serverIndex??0,s=W[`MatchApi.matchAndSearch`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)}}},Wn=class extends U{detect(e,t,n){return Un(this.configuration).detect(e,t,n).then(e=>e(this.axios,this.basePath))}match(e,t,n){return Un(this.configuration).match(e,t,n).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,n){return Un(this.configuration).matchAndSearch(e,t,n).then(e=>e(this.axios,this.basePath))}},Gn=function(e){return e.AGE=`Age`,e.EMOTION=`Emotion`,e.EYE_LEFT=`EyeLeft`,e.EYE_RIGHT=`EyeRight`,e.SMILE=`Smile`,e.GLASSES=`Glasses`,e.HEAD_COVERING=`HeadCovering`,e.FOREHEAD_COVERING=`ForeheadCovering`,e.MOUTH=`Mouth`,e.MEDICAL_MASK=`MedicalMask`,e.OCCLUSION=`Occlusion`,e.STRONG_MAKEUP=`StrongMakeup`,e.HEADPHONES=`Headphones`,e}({}),Kn=function(e){return e[e.ALIGN_3x4=0]=`ALIGN_3x4`,e[e.ALIGN_4x5=1]=`ALIGN_4x5`,e[e.ALIGN_2x3=2]=`ALIGN_2x3`,e[e.ALIGN_1x1=3]=`ALIGN_1x1`,e[e.ALIGN_7x9=4]=`ALIGN_7x9`,e}({}),qn=function(e){return e[e.IMAGE_CHARACTERISTICS=1]=`IMAGE_CHARACTERISTICS`,e[e.HEAD_SIZE_AND_POSITIONS=2]=`HEAD_SIZE_AND_POSITIONS`,e[e.FACE_QUALITY=3]=`FACE_QUALITY`,e[e.EYES_CHARACTERISTICS=4]=`EYES_CHARACTERISTICS`,e[e.SHADOWS_AND_LIGHTNING=5]=`SHADOWS_AND_LIGHTNING`,e[e.POSE_AND_EXPRESSION=6]=`POSE_AND_EXPRESSION`,e[e.HEAD_OCCLUSION=7]=`HEAD_OCCLUSION`,e[e.BACKGROUND=8]=`BACKGROUND`,e}({}),Jn=function(e){return 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}({}),Yn=function(e){return 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}({}),Xn=function(e){return 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}({}),Zn=function(e){return e.OLD_MODE=`OldMode`,e.QUALITY_FULL=`QualityFull`,e.QUALITY_ICAO=`QualityICAO`,e.QUALITY_VISA_SCHENGEN=`QualityVisaSchengen`,e.QUALITY_VISA_USA=`QualityVisaUSA`,e.CROP_CENTRAL_FACE=`CropCentralFace`,e.CROP_ALL_FACES=`CropAllFaces`,e.THUMBNAIL=`Thumbnail`,e.ATTRIBUTES_ALL=`AttributesAll`,e.EMPTY=``,e}({}),Qn=function(e){return e[e.FACER_OK=0]=`FACER_OK`,e[e.FR_IMAGE_EMPTY=1]=`FR_IMAGE_EMPTY`,e[e.FR_FACE_NOT_DETECTED=2]=`FR_FACE_NOT_DETECTED`,e[e.FR_LANDMARKS_NOT_DETECTED=3]=`FR_LANDMARKS_NOT_DETECTED`,e[e.FR_FACE_ALIGHNER_FAILED=4]=`FR_FACE_ALIGHNER_FAILED`,e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR=5]=`FR_DESCRIPTOR_EXTRACTOR_ERROR`,e[e.FR_IMAGE_DECODE_ERROR=6]=`FR_IMAGE_DECODE_ERROR`,e[e.FR_INTERNAL_ERROR=7]=`FR_INTERNAL_ERROR`,e[e.FACER_CONFIG_ERROR=199]=`FACER_CONFIG_ERROR`,e[e.FACER_NO_LICENSE=200]=`FACER_NO_LICENSE`,e[e.FACER_IS_NOT_INITIALIZED=201]=`FACER_IS_NOT_INITIALIZED`,e[e.FACER_COMMAND_IS_NOT_SUPPORTED=202]=`FACER_COMMAND_IS_NOT_SUPPORTED`,e[e.FACER_COMMAND_PARAMS_READ_ERROR=203]=`FACER_COMMAND_PARAMS_READ_ERROR`,e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST=224]=`FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST`,e[e.FACER_VIDEO_DECODE_ERROR=227]=`FACER_VIDEO_DECODE_ERROR`,e[e.FACER_NOT_ENOUGH_FRAMES=228]=`FACER_NOT_ENOUGH_FRAMES`,e[e.FACER_OUTPUT_IS_NOT_DEFINED=229]=`FACER_OUTPUT_IS_NOT_DEFINED`,e[e.FACER_CLOSED_EYES_DETECTED=230]=`FACER_CLOSED_EYES_DETECTED`,e[e.FACER_LOW_QUALITY=231]=`FACER_LOW_QUALITY`,e[e.FACER_HIGH_ASYMMETRY=232]=`FACER_HIGH_ASYMMETRY`,e[e.FACER_FACE_OVER_EMOTIONAL=233]=`FACER_FACE_OVER_EMOTIONAL`,e[e.FACER_SUNGLASSES_DETECTED=234]=`FACER_SUNGLASSES_DETECTED`,e[e.FACER_SMALL_AGE=235]=`FACER_SMALL_AGE`,e[e.FACER_HEADDRESS_DETECTED=236]=`FACER_HEADDRESS_DETECTED`,e[e.FACER_FACES_NOT_MATCHED=237]=`FACER_FACES_NOT_MATCHED`,e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED=238]=`FACER_IMAGES_COUNT_LIMIT_EXCEEDED`,e[e.FACER_MEDICINE_MASK_DETECTED=239]=`FACER_MEDICINE_MASK_DETECTED`,e[e.FACER_OCCLUSION_DETECTED=240]=`FACER_OCCLUSION_DETECTED`,e[e.FACER_FOREHEAD_GLASSES_DETECTED=242]=`FACER_FOREHEAD_GLASSES_DETECTED`,e[e.FACER_MOUTH_OPENED=243]=`FACER_MOUTH_OPENED`,e[e.FACER_ART_MASK_DETECTED=244]=`FACER_ART_MASK_DETECTED`,e[e.FACER_ELECTRONIC_DEVICE_DETECTED=245]=`FACER_ELECTRONIC_DEVICE_DETECTED`,e[e.FACER_TRACK_BREAK=246]=`FACER_TRACK_BREAK`,e[e.FACER_WRONG_GEO=247]=`FACER_WRONG_GEO`,e[e.FACER_WRONG_OF=248]=`FACER_WRONG_OF`,e[e.FACER_WRONG_VIEW=249]=`FACER_WRONG_VIEW`,e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION=250]=`FACER_TIMEOUT_LIVENESS_TRANSACTION`,e[e.FACER_FAILED_LIVENESS_TRANSACTION=251]=`FACER_FAILED_LIVENESS_TRANSACTION`,e[e.FACER_ABORTED_LIVENESS_TRANSACTION=252]=`FACER_ABORTED_LIVENESS_TRANSACTION`,e[e.FACER_GENERAL_ERROR=253]=`FACER_GENERAL_ERROR`,e[e.FACER_PASSIVE_LIVENESS_FAIL=254]=`FACER_PASSIVE_LIVENESS_FAIL`,e}({}),$n=function(e){return e.IN=`in`,e.NOT_IN=`nin`,e}({}),er=function(e){return e[e.DOCUMENT_PRINTED=1]=`DOCUMENT_PRINTED`,e[e.DOCUMENT_RFID=2]=`DOCUMENT_RFID`,e[e.LIVE=3]=`LIVE`,e[e.DOCUMENT_WITH_LIVE=4]=`DOCUMENT_WITH_LIVE`,e[e.EXTERNAL=5]=`EXTERNAL`,e[e.GHOST=6]=`GHOST`,e[e.BARCODE=7]=`BARCODE`,e}({}),tr=function(e){return e[e.ACTIVE=0]=`ACTIVE`,e[e.PASSIVE=1]=`PASSIVE`,e[e.PASSIVE_WITH_BLINK=2]=`PASSIVE_WITH_BLINK`,e}({}),Z=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,nr=typeof Uint8Array>`u`?[]:new Uint8Array(256),rr=0;rr<Z.length;rr++)nr[Z.charCodeAt(rr)]=rr;var ir=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=Z[t[n]>>2],i+=Z[(t[n]&3)<<4|t[n+1]>>4],i+=Z[(t[n+1]&15)<<2|t[n+2]>>6],i+=Z[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},ar=class{constructor(e,t,n){this.superClass=new Wn(e,t,n)}async match(e,t,n){for(let t of e.images)t.type||=er.LIVE,typeof t.data!=`string`&&(t.data=ir(t.data));return(await this.superClass.match(e,t,n)).data}async detect(e,t,n){return e.image&&typeof e.image!=`string`&&(e.image=ir(e.image)),(await this.superClass.detect(e,t,n)).data}},or=function(e){return{createGroup:async(t,n,r={})=>{K(`createGroup`,`groupToCreate`,t);let i=new URL(`/api/groups`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},deleteGroup:async(t,n,r={})=>{K(`deleteGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},getAllGroups:async(t,n,r,i={})=>{let a=new URL(`/api/groups`,G),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...i},c={},l={};n!==void 0&&(l.page=n),r!==void 0&&(l.size=r),t!=null&&(c[`X-RequestID`]=String(t)),q(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},{url:Y(a),options:s}},getAllPersonsByGroupId:async(t,n,r,i,a={})=>{K(`getAllPersonsByGroupId`,`groupId`,t);let o=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),s=new URL(o,G),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};r!==void 0&&(d.page=r),i!==void 0&&(d.size=i),n!=null&&(u[`X-RequestID`]=String(n)),q(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:Y(s),options:l}},getGroup:async(t,n,r={})=>{K(`getGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},updateGroup:async(t,n,r,i={})=>{K(`updateGroup`,`groupId`,t),K(`updateGroup`,`groupToCreate`,n);let a=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}},updatePersonsInGroup:async(t,n,r,i={})=>{K(`updatePersonsInGroup`,`groupId`,t),K(`updatePersonsInGroup`,`updateGroup`,n);let a=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}}}},Q=function(e){let t=or(e);return{async createGroup(n,r,i){let a=await t.createGroup(n,r,i),o=e?.serverIndex??0,s=W[`GroupApi.createGroup`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async deleteGroup(n,r,i){let a=await t.deleteGroup(n,r,i),o=e?.serverIndex??0,s=W[`GroupApi.deleteGroup`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async getAllGroups(n,r,i,a){let o=await t.getAllGroups(n,r,i,a),s=e?.serverIndex??0,c=W[`GroupApi.getAllGroups`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async getAllPersonsByGroupId(n,r,i,a,o){let s=await t.getAllPersonsByGroupId(n,r,i,a,o),c=e?.serverIndex??0,l=W[`GroupApi.getAllPersonsByGroupId`]?.[c]?.url;return(t,n)=>X(s,V,H,e)(t,l||n)},async getGroup(n,r,i){let a=await t.getGroup(n,r,i),o=e?.serverIndex??0,s=W[`GroupApi.getGroup`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async updateGroup(n,r,i,a){let o=await t.updateGroup(n,r,i,a),s=e?.serverIndex??0,c=W[`GroupApi.updateGroup`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async updatePersonsInGroup(n,r,i,a){let o=await t.updatePersonsInGroup(n,r,i,a),s=e?.serverIndex??0,c=W[`GroupApi.updatePersonsInGroup`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)}}},sr=class extends U{createGroup(e,t,n){return Q(this.configuration).createGroup(e,t,n).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,n){return Q(this.configuration).deleteGroup(e,t,n).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,n,r){return Q(this.configuration).getAllGroups(e,t,n,r).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,n,r,i){return Q(this.configuration).getAllPersonsByGroupId(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getGroup(e,t,n){return Q(this.configuration).getGroup(e,t,n).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,n,r){return Q(this.configuration).updateGroup(e,t,n,r).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,n,r){return Q(this.configuration).updatePersonsInGroup(e,t,n,r).then(e=>e(this.axios,this.basePath))}},cr=class{constructor(e,t,n){this.superClass=new sr(e,t,n)}async createGroup(e,t,n){let r={...e,metadata:e?.metadata?e.metadata:{}};return(await this.superClass.createGroup(r,t,n)).data}async deleteGroup(e,t,n){await this.superClass.deleteGroup(e,t,n)}async getAllGroups(e,t,n,r){return(await this.superClass.getAllGroups(n,e,t,r)).data}async getAllPersonsByGroupId(e,t,n,r,i){return(await this.superClass.getAllPersonsByGroupId(n,r,e,t,i)).data}async getGroup(e,t,n){return(await this.superClass.getGroup(e,t,n)).data}async updateGroup(e,t,n,r){await this.superClass.updateGroup(e,t,n,r)}async updatePersonsInGroup(e,t,n,r){await this.superClass.updatePersonsInGroup(e,t,n,r)}},lr=function(e){return{addImageToPerson:async(t,n,r,i={})=>{K(`addImageToPerson`,`personId`,t),K(`addImageToPerson`,`addImageToPersonRequest`,n);let a=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}},createPerson:async(t,n,r={})=>{K(`createPerson`,`personFields`,t);let i=new URL(`/api/persons`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},deleteImageOfPerson:async(t,n,r,i={})=>{K(`deleteImageOfPerson`,`personId`,t),K(`deleteImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:Y(o),options:c}},deletePerson:async(t,n,r={})=>{K(`deletePerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},getAllGroupsByPersonId:async(t,n,r,i,a={})=>{K(`getAllGroupsByPersonId`,`personId`,t);let o=`/api/persons/{personId}/groups`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,G),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};r!==void 0&&(d.page=r),i!==void 0&&(d.size=i),n!=null&&(u[`X-RequestID`]=String(n)),q(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:Y(s),options:l}},getAllImagesByPersonId:async(t,n,r,i,a={})=>{K(`getAllImagesByPersonId`,`personId`,t);let o=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,G),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};r!==void 0&&(d.page=r),i!==void 0&&(d.size=i),n!=null&&(u[`X-RequestID`]=String(n)),q(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:Y(s),options:l}},getImageOfPerson:async(t,n,r,i={})=>{K(`getImageOfPerson`,`personId`,t),K(`getImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:Y(o),options:c}},getPerson:async(t,n,r={})=>{K(`getPerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},updatePerson:async(t,n,r,i={})=>{K(`updatePerson`,`personId`,t),K(`updatePerson`,`personToUpdateFields`,n);let a=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}}}},$=function(e){let t=lr(e);return{async addImageToPerson(n,r,i,a){let o=await t.addImageToPerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.addImageToPerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async createPerson(n,r,i){let a=await t.createPerson(n,r,i),o=e?.serverIndex??0,s=W[`PersonApi.createPerson`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async deleteImageOfPerson(n,r,i,a){let o=await t.deleteImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.deleteImageOfPerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async deletePerson(n,r,i){let a=await t.deletePerson(n,r,i),o=e?.serverIndex??0,s=W[`PersonApi.deletePerson`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async getAllGroupsByPersonId(n,r,i,a,o){let s=await t.getAllGroupsByPersonId(n,r,i,a,o),c=e?.serverIndex??0,l=W[`PersonApi.getAllGroupsByPersonId`]?.[c]?.url;return(t,n)=>X(s,V,H,e)(t,l||n)},async getAllImagesByPersonId(n,r,i,a,o){let s=await t.getAllImagesByPersonId(n,r,i,a,o),c=e?.serverIndex??0,l=W[`PersonApi.getAllImagesByPersonId`]?.[c]?.url;return(t,n)=>X(s,V,H,e)(t,l||n)},async getImageOfPerson(n,r,i,a){let o=await t.getImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.getImageOfPerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async getPerson(n,r,i){let a=await t.getPerson(n,r,i),o=e?.serverIndex??0,s=W[`PersonApi.getPerson`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async updatePerson(n,r,i,a){let o=await t.updatePerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.updatePerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)}}},ur=class extends U{addImageToPerson(e,t,n,r){return $(this.configuration).addImageToPerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}createPerson(e,t,n){return $(this.configuration).createPerson(e,t,n).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,n,r){return $(this.configuration).deleteImageOfPerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,n){return $(this.configuration).deletePerson(e,t,n).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,n,r,i){return $(this.configuration).getAllGroupsByPersonId(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,n,r,i){return $(this.configuration).getAllImagesByPersonId(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,n,r){return $(this.configuration).getImageOfPerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}getPerson(e,t,n){return $(this.configuration).getPerson(e,t,n).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,n,r){return $(this.configuration).updatePerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}},dr=class{constructor(e,t,n){this.superClass=new ur(e,t,n)}async createPerson(e,t,n){let r={...e,metadata:e?.metadata?e.metadata:{}};return(await this.superClass.createPerson(r,t,n)).data}async addImageToPerson(e,t,n,r){return t?.image?.content&&typeof t.image.content!=`string`&&(t.image.content=ir(t.image.content)),(await this.superClass.addImageToPerson(e,t,n,r)).data}async deleteImageOfPerson(e,t,n,r){await this.superClass.deleteImageOfPerson(t,e,n,r)}async deletePerson(e,t,n){await this.superClass.deletePerson(e,t,n)}async getAllGroupsByPersonId(e,t,n,r,i){return(await this.superClass.getAllGroupsByPersonId(n,r,e,t,i)).data}async getAllImagesByPersonId(e,t,n,r,i){return(await this.superClass.getAllImagesByPersonId(n,r,e,t,i)).data}async getImageOfPerson(e,t,n,r){return(await this.superClass.getImageOfPerson(t,e,n,r)).data}async getPerson(e,t,n){return(await this.superClass.getPerson(e,t,n)).data}async updatePerson(e,t,n,r){await this.superClass.updatePerson(e,t,n,r)}},fr=function(e){return{search:async(t,n,r,i={})=>{K(`search`,`searchRequest`,t);let a=new URL(`/api/search`,G),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={};r!==void 0&&(l.withImages=r),c[`Content-Type`]=`application/json`,n!=null&&(c[`X-RequestID`]=String(n)),q(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},s.data=J(t,s,e),{url:Y(a),options:s}}}},pr=function(e){let t=fr(e);return{async search(n,r,i,a){let o=await t.search(n,r,i,a),s=e?.serverIndex??0,c=W[`SearchApi.search`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)}}},mr=class extends U{search(e,t,n,r){return pr(this.configuration).search(e,t,n,r).then(e=>e(this.axios,this.basePath))}},hr=class{constructor(e,t,n){this.superClass=new mr(e,t,n)}async search(e,t,n,r){return e?.image?.content&&typeof e.image.content!=`string`&&(e.image.content=ir(e.image.content)),(await this.superClass.search(e,t,n,r)).data}},gr=function(e){return{deleteLivenessTransaction:async(t,n,r={})=>{K(`deleteLivenessTransaction`,`transactionId`,t),K(`deleteLivenessTransaction`,`tag`,n);let i=new URL(`/api/v2/liveness`,G),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...r},s={},c={};t!==void 0&&(c.transactionId=t),n!==void 0&&(c.tag=n),q(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},{url:Y(i),options:o}},getLivenessTransactionInfo:async(t,n={})=>{K(`getLivenessTransactionInfo`,`transactionId`,t);let r=new URL(`/api/v2/liveness`,G),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={},s={};t!==void 0&&(s.transactionId=t),q(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...n.headers},{url:Y(r),options:a}}}},_r=function(e){let t=gr(e);return{async deleteLivenessTransaction(n,r,i){let a=await t.deleteLivenessTransaction(n,r,i),o=e?.serverIndex??0,s=W[`Liveness20Api.deleteLivenessTransaction`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async getLivenessTransactionInfo(n,r){let i=await t.getLivenessTransactionInfo(n,r),a=e?.serverIndex??0,o=W[`Liveness20Api.getLivenessTransactionInfo`]?.[a]?.url;return(t,n)=>X(i,V,H,e)(t,o||n)}}},vr=class extends U{deleteLivenessTransaction(e,t,n){return _r(this.configuration).deleteLivenessTransaction(e,t,n).then(e=>e(this.axios,this.basePath))}getLivenessTransactionInfo(e,t){return _r(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}},yr=class{constructor(e,t,n){this.superClass=new vr(e,t,n)}async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}},br=function(e){return{healthz:async(t,n={})=>{let r=new URL(`/api/healthz`,G),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),q(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:Y(r),options:a}},readyz:async(t,n={})=>{let r=new URL(`/api/readyz`,G),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),q(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:Y(r),options:a}}}},xr=function(e){let t=br(e);return{async healthz(n,r){let i=await t.healthz(n,r),a=e?.serverIndex??0,o=W[`HealthcheckApi.healthz`]?.[a]?.url;return(t,n)=>X(i,V,H,e)(t,o||n)},async readyz(n,r){let i=await t.readyz(n,r),a=e?.serverIndex??0,o=W[`HealthcheckApi.readyz`]?.[a]?.url;return(t,n)=>X(i,V,H,e)(t,o||n)}}},Sr=class extends U{healthz(e,t){return xr(this.configuration).healthz(e,t).then(e=>e(this.axios,this.basePath))}readyz(e,t){return xr(this.configuration).readyz(e,t).then(e=>e(this.axios,this.basePath))}},Cr=class{constructor(e,t,n){this.superClass=new Sr(e,t,n)}async healthz(e,t){return(await this.superClass.healthz(e,t)).data}async readyz(e,t){return(await this.superClass.readyz(e,t)).data}},wr=class{constructor(e,t=H,n=V){this.basePath=t,this.axios=n,this.matchApi=new ar(e,t,n),this.groupApi=new cr(e,t,n),this.personApi=new dr(e,t,n),this.searchApi=new hr(e,t,n),this.livenessApi=new yr(e,t,n),this.healthcheckApi=new Cr(e,t,n)}},Tr=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions={...e.baseOptions,headers:{...e.baseOptions?.headers}},this.formDataCtor=e.formDataCtor}isJsonMime(e){return e!==null&&(RegExp(`^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$`,`i`).test(e)||e.toLowerCase()===`application/json-patch+json`)}};exports.Configuration=Tr,exports.FaceAttribute=Gn,exports.FaceImageQualityAlignType=Kn,exports.FaceImageQualityGroups=qn,exports.FaceImageQualityGroupsStrings=Jn,exports.FaceImageQualityStatus=Yn,exports.FaceQualityConfigName=Xn,exports.FaceQualityScenarios=Zn,exports.FaceSDKResultCode=Qn,exports.FaceSdk=wr,exports.FilterOp=$n,exports.GroupApi=cr,exports.HealthcheckApi=Cr,exports.ImageSource=er,exports.Liveness20Api=yr,exports.LivenessType=tr,exports.MatchApi=ar,exports.PersonApi=dr,exports.SearchApi=hr;
|
package/dist/index.d.ts
CHANGED
|
@@ -878,11 +878,12 @@ export declare class Liveness20Api {
|
|
|
878
878
|
* Do not edit the file manually.
|
|
879
879
|
*/
|
|
880
880
|
/**
|
|
881
|
-
* Liveness detection can be performed in
|
|
881
|
+
* Liveness detection can be performed in three modes: active `0`, passive `1`, and passive with blink `2`. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/liveness/#active-and-passive-modes)
|
|
882
882
|
*/
|
|
883
883
|
export declare enum LivenessType {
|
|
884
884
|
ACTIVE = 0,
|
|
885
|
-
PASSIVE = 1
|
|
885
|
+
PASSIVE = 1,
|
|
886
|
+
PASSIVE_WITH_BLINK = 2
|
|
886
887
|
}
|
|
887
888
|
|
|
888
889
|
export declare interface MatchAndSearchRequest {
|
|
@@ -926,6 +927,10 @@ export declare interface MatchAndSearchRequestImagesItem {
|
|
|
926
927
|
*/
|
|
927
928
|
'imageUrl'?: string;
|
|
928
929
|
'type'?: ImageSource;
|
|
930
|
+
/**
|
|
931
|
+
* Identifier of the completed liveness transaction whose captured face is used as one of the comparison inputs. If this parameter is provided, it replaces one of the images in the matching request.
|
|
932
|
+
*/
|
|
933
|
+
'livenessTransactionId'?: string;
|
|
929
934
|
}
|
|
930
935
|
|
|
931
936
|
/**
|
|
@@ -987,6 +992,10 @@ export declare interface MatchImage {
|
|
|
987
992
|
* Whether to detect all faces in the image. If set to `false`, only the most central face is detected.
|
|
988
993
|
*/
|
|
989
994
|
'detectAll'?: boolean;
|
|
995
|
+
/**
|
|
996
|
+
* Identifier of the completed liveness transaction whose captured face is used as one of the comparison inputs. If this parameter is provided, it replaces one of the images in the matching request.
|
|
997
|
+
*/
|
|
998
|
+
'livenessTransactionId'?: string;
|
|
990
999
|
}
|
|
991
1000
|
|
|
992
1001
|
export declare interface MatchImageDetection {
|