@regulaforensics/ui-components 8.5.717-rc → 8.5.720-rc

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.
@@ -20,7 +20,7 @@ and limitations under the License.
20
20
  `)};if(r){var E=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(s?".":"").concat(this.property);return this.constraints?_(E):this.children?this.children.map(function(u){return u.toString(t,!0,"".concat(s).concat(E),n)}).join(""):""}else return"An instance of ".concat(a).concat(this.target?this.target.constructor.name:"an object").concat(i,` has failed the validation:
21
21
  `)+(this.constraints?_(this.property):"")+(this.children?this.children.map(function(u){return u.toString(t,!0,o.property,n)}).join(""):"")},e})(),pr=(function(){function e(){}return e.isValid=function(t){var r=this;return t!=="isValid"&&t!=="getMessage"&&Object.keys(this).map(function(s){return r[s]}).indexOf(t)!==-1},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.PROMISE_VALIDATION="promiseValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e})();function S2(e){return Array.isArray(e)?e.join(", "):(typeof e=="symbol"&&(e=e.description),"".concat(e))}var R2=(function(){function e(){}return e.replaceMessageSpecialTokens=function(t,r){var s;return t instanceof Function?s=t(r):typeof t=="string"&&(s=t),s&&Array.isArray(r.constraints)&&r.constraints.forEach(function(n,o){s=s.replace(new RegExp("\\$constraint".concat(o+1),"g"),S2(n))}),s&&r.value!==void 0&&r.value!==null&&["string","boolean","number"].includes(typeof r.value)&&(s=s.replace(/\$value/g,r.value)),s&&(s=s.replace(/\$property/g,r.property)),s&&(s=s.replace(/\$target/g,r.targetName)),s},e})(),vi=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),n,o=[],a;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(i){a={error:i}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return o},fd=(function(){function e(t,r){this.validator=t,this.validatorOptions=r,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=s_()}return e.prototype.execute=function(t,r,s){var n=this,o,a;!this.metadataStorage.hasValidationMetaData&&((o=this.validatorOptions)===null||o===void 0?void 0:o.enableDebugMessages)===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
22
22
  - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
23
- - This validation runs before any file with validation decorator was parsed by NodeJS.`);var i=this.validatorOptions?this.validatorOptions.groups:void 0,c=this.validatorOptions&&this.validatorOptions.strictGroups||!1,_=this.validatorOptions&&this.validatorOptions.always||!1,E=((a=this.validatorOptions)===null||a===void 0?void 0:a.forbidUnknownValues)===void 0||this.validatorOptions.forbidUnknownValues!==!1,u=this.metadataStorage.getTargetValidationMetadatas(t.constructor,r,_,c,i),I=this.metadataStorage.groupByPropertyName(u);if(E&&!u.length){var S=new dd;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(S.target=t),S.value=void 0,S.property=void 0,S.children=[],S.constraints={unknownValue:"an unknown value was passed to the validate function"},s.push(S);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(t,I,s),Object.keys(I).forEach(function(R){var O=t[R],T=I[R].filter(function(N){return N.type===pr.IS_DEFINED}),f=I[R].filter(function(N){return N.type!==pr.IS_DEFINED&&N.type!==pr.WHITELIST});O instanceof Promise&&f.find(function(N){return N.type===pr.PROMISE_VALIDATION})?n.awaitingPromises.push(O.then(function(N){n.performValidations(t,N,R,T,f,s)})):n.performValidations(t,O,R,T,f,s)})},e.prototype.whitelist=function(t,r,s){var n=this,o=[];Object.keys(t).forEach(function(a){(!r[a]||r[a].length===0)&&o.push(a)}),o.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?o.forEach(function(a){var i,c=n.generateValidationError(t,t[a],a);c.constraints=(i={},i[pr.WHITELIST]="property ".concat(a," should not exist"),i),c.children=void 0,s.push(c)}):o.forEach(function(a){return delete t[a]}))},e.prototype.stripEmptyErrors=function(t){var r=this;return t.filter(function(s){if(s.children&&(s.children=r.stripEmptyErrors(s.children)),Object.keys(s.constraints).length===0){if(s.children.length===0)return!1;delete s.constraints}return!0})},e.prototype.performValidations=function(t,r,s,n,o,a){var i=o.filter(function(I){return I.type===pr.CUSTOM_VALIDATION}),c=o.filter(function(I){return I.type===pr.NESTED_VALIDATION}),_=o.filter(function(I){return I.type===pr.CONDITIONAL_VALIDATION}),E=this.generateValidationError(t,r,s);a.push(E);var u=this.conditionalValidations(t,r,_);u&&(this.customValidations(t,r,n,E),this.mapContexts(t,r,n,E),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(t,r,i,E),this.nestedValidations(r,c,E),this.mapContexts(t,r,o,E),this.mapContexts(t,r,i,E))))},e.prototype.generateValidationError=function(t,r,s){var n=new dd;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(n.target=t),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(n.value=r),n.property=s,n.children=[],n.constraints={},n},e.prototype.conditionalValidations=function(t,r,s){return s.map(function(n){return n.constraints[0](t,r)}).reduce(function(n,o){return n&&o},!0)},e.prototype.customValidations=function(t,r,s,n){var o=this;s.forEach(function(a){o.metadataStorage.getTargetValidatorConstraints(a.constraintCls).forEach(function(i){if(!(i.async&&o.ignoreAsyncValidations)&&!(o.validatorOptions&&o.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0)){var c={targetName:t.constructor?t.constructor.name:void 0,property:a.propertyName,object:t,value:r,constraints:a.constraints};if(!a.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){var _=i.instance.validate(r,c);if(KI(_)){var E=_.then(function(m){if(!m){var g=vi(o.createValidationError(t,r,a,i),2),h=g[0],b=g[1];n.constraints[h]=b,a.context&&(n.contexts||(n.contexts={}),n.contexts[h]=Object.assign(n.contexts[h]||{},a.context))}});o.awaitingPromises.push(E)}else if(!_){var u=vi(o.createValidationError(t,r,a,i),2),I=u[0],S=u[1];n.constraints[I]=S}return}var R=E2(r),O=R.map(function(m){return i.instance.validate(m,c)}),T=O.some(function(m){return KI(m)});if(T){var f=O.map(function(m){return KI(m)?m:Promise.resolve(m)}),N=Promise.all(f).then(function(m){var g=m.every(function(y){return y});if(!g){var h=vi(o.createValidationError(t,r,a,i),2),b=h[0],B=h[1];n.constraints[b]=B,a.context&&(n.contexts||(n.contexts={}),n.contexts[b]=Object.assign(n.contexts[b]||{},a.context))}});o.awaitingPromises.push(N);return}var L=O.every(function(m){return m});if(!L){var d=vi(o.createValidationError(t,r,a,i),2),I=d[0],S=d[1];n.constraints[I]=S}}})})},e.prototype.nestedValidations=function(t,r,s){var n=this;t!==void 0&&r.forEach(function(o){if(!(o.type!==pr.NESTED_VALIDATION&&o.type!==pr.PROMISE_VALIDATION)&&!(n.validatorOptions&&n.validatorOptions.stopAtFirstError&&Object.keys(s.constraints||{}).length>0))if(Array.isArray(t)||t instanceof Set||t instanceof Map){var a=t instanceof Set?Array.from(t):t;a.forEach(function(u,I){n.performValidations(t,u,I.toString(),[],r,s.children)})}else if(t instanceof Object){var i=typeof o.target=="string"?o.target:o.target.name;n.execute(t,i,s.children)}else{var c=vi(n.createValidationError(o.target,t,o),2),_=c[0],E=c[1];s.constraints[_]=E}})},e.prototype.mapContexts=function(t,r,s,n){var o=this;return s.forEach(function(a){if(a.context){var i=void 0;if(a.type===pr.CUSTOM_VALIDATION){var c=o.metadataStorage.getTargetValidatorConstraints(a.constraintCls);i=c[0]}var _=o.getConstraintType(a,i);n.constraints[_]&&(n.contexts||(n.contexts={}),n.contexts[_]=Object.assign(n.contexts[_]||{},a.context))}})},e.prototype.createValidationError=function(t,r,s,n){var o=t.constructor?t.constructor.name:void 0,a=this.getConstraintType(s,n),i={targetName:o,property:s.propertyName,object:t,value:r,constraints:s.constraints},c=s.message||"";!s.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&n&&n.instance.defaultMessage instanceof Function&&(c=n.instance.defaultMessage(i));var _=R2.replaceMessageSpecialTokens(c,i);return[a,_]},e.prototype.getConstraintType=function(t,r){var s=r&&r.name?r.name:t.type;return s},e})(),A2=function(e,t,r,s){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function i(E){try{_(s.next(E))}catch(u){a(u)}}function c(E){try{_(s.throw(E))}catch(u){a(u)}}function _(E){E.done?o(E.value):n(E.value).then(i,c)}_((s=s.apply(e,t||[])).next())})},C2=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,n,o,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(_){return function(E){return c([_,E])}}function c(_){if(s)throw new TypeError("Generator is already executing.");for(;a&&(a=0,_[0]&&(r=0)),r;)try{if(s=1,n&&(o=_[0]&2?n.return:_[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,_[1])).done)return o;switch(n=0,o&&(_=[_[0]&2,o.value]),_[0]){case 0:case 1:o=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,n=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!o||_[1]>o[0]&&_[1]<o[3])){r.label=_[1];break}if(_[0]===6&&r.label<o[1]){r.label=o[1],o=_;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(_);break}o[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(E){_=[6,E],n=0}finally{s=o=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Nd=(function(){function e(){}return e.prototype.validate=function(t,r,s){return this.coreValidate(t,r,s)},e.prototype.validateOrReject=function(t,r,s){return A2(this,void 0,void 0,function(){var n;return C2(this,function(o){switch(o.label){case 0:return[4,this.coreValidate(t,r,s)];case 1:return n=o.sent(),n.length?[2,Promise.reject(n)]:[2]}})})},e.prototype.validateSync=function(t,r,s){var n=typeof t=="string"?r:t,o=typeof t=="string"?s:r,a=typeof t=="string"?t:void 0,i=new fd(this,o);i.ignoreAsyncValidations=!0;var c=[];return i.execute(n,a,c),i.stripEmptyErrors(c)},e.prototype.coreValidate=function(t,r,s){var n=typeof t=="string"?r:t,o=typeof t=="string"?s:r,a=typeof t=="string"?t:void 0,i=new fd(this,o),c=[];return i.execute(n,a,c),Promise.all(i.awaitingPromises).then(function(){return i.stripEmptyErrors(c)})},e})(),O2=new((function(){function e(){this.instances=[]}return e.prototype.get=function(t){var r=this.instances.find(function(s){return s.type===t});return r||(r={type:t,object:new t},this.instances.push(r)),r.object},e})());function cE(e){return O2.get(e)}var D2=(function(){function e(t,r,s){s===void 0&&(s=!1),this.target=t,this.name=r,this.async=s}return Object.defineProperty(e.prototype,"instance",{get:function(){return cE(this.target)},enumerable:!1,configurable:!0}),e})();function th(e){var t;if(e.validator instanceof Function){t=e.validator;var r=cE(eh).getTargetValidatorConstraints(e.validator);if(r.length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(e.target.name,":").concat(e.propertyName)}else{var s=e.validator;t=(function(){function o(){}return o.prototype.validate=function(a,i){return s.validate(a,i)},o.prototype.defaultMessage=function(a){return s.defaultMessage?s.defaultMessage(a):""},o})(),s_().addConstraintMetadata(new D2(t,e.name,e.async))}var n={type:e.name&&pr.isValid(e.name)?e.name:pr.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};s_().addValidationMetadata(new KE(n))}function En(e,t){return function(r){var s=t&&t.each?"each value in ":"";return e(s,r)}}function ln(e,t){return function(r,s){th({name:e.name,target:r.constructor,propertyName:s,options:t,constraints:e.constraints,validator:e.validator})}}var T2=pr.IS_DEFINED;function d2(e){return e!=null}function D(e){return ln({name:T2,validator:{validate:function(t){return d2(t)},defaultMessage:En(function(t){return t+"$property should not be null or undefined"},e)}},e)}var f2="isOptional";function p(e){return function(t,r){var s={type:pr.CONDITIONAL_VALIDATION,name:f2,target:t.constructor,propertyName:r,constraints:[function(n,o){return n[r]!==null&&n[r]!==void 0}],validationOptions:e};s_().addValidationMetadata(new KE(s))}}var mR=function(){return mR=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},mR.apply(this,arguments)};function j(e){var t=mR({},e),r=t.each?"each value in ":"";return t.message=t.message||r+"nested property $property must be either object or array",function(s,n){var o={type:pr.NESTED_VALIDATION,target:s.constructor,propertyName:n,validationOptions:t};s_().addValidationMetadata(new KE(o))}}var Ec={exports:{}},pd;function rh(){return pd||(pd=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(s){if(s==null)throw new TypeError("Expected a string but received a ".concat(s));if(s.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(s.constructor.name))}e.exports=t.default,e.exports.default=t.default})(Ec,Ec.exports)),Ec.exports}var lc={exports:{}},Ld;function N2(){return Ld||(Ld=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;for(var o in n)typeof s[o]>"u"&&(s[o]=n[o]);return s}e.exports=t.default,e.exports.default=t.default})(lc,lc.exports)),lc.exports}var p2="isIn";function L2(e,t){return Array.isArray(t)&&t.some(function(r){return r===e})}function ct(e,t){return ln({name:p2,constraints:[e],validator:{validate:function(r,s){return L2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be one of the following values: $constraint1"},t)}},t)}var h2="min";function m2(e,t){return typeof e=="number"&&typeof t=="number"&&e>=t}function N_(e,t){return ln({name:h2,constraints:[e],validator:{validate:function(r,s){return m2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must not be less than $constraint1"},t)}},t)}var uc={exports:{}},hd;function y2(){return hd||(hd=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=n(rh()),s=n(N2());function n(E){return E&&E.__esModule?E:{default:E}}var o=/^[A-Za-z0-9+/]+={0,2}$/,a=/^[A-Za-z0-9+/]+$/,i=/^[A-Za-z0-9_-]+={0,2}$/,c=/^[A-Za-z0-9_-]+$/;function _(E,u){var I;if((0,r.default)(E),u=(0,s.default)(u,{urlSafe:!1,padding:!((I=u)!==null&&I!==void 0&&I.urlSafe)}),E==="")return!0;if(u.padding&&E.length%4!==0)return!1;var S;return u.urlSafe?S=u.padding?i:c:S=u.padding?o:a,(!u.padding||E.length%4===0)&&S.test(E)}e.exports=t.default,e.exports.default=t.default})(uc,uc.exports)),uc.exports}var g2=y2();const P2=Qa(g2);var M2="isBase64";function v2(e,t){return typeof e=="string"&&P2(e,t)}function dn(e,t){return ln({name:M2,constraints:[e],validator:{validate:function(r,s){return v2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be base64 encoded"},t)}},t)}var Ic={exports:{}},md;function F2(){return md||(md=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=s(rh());function s(a){return a&&a.__esModule?a:{default:a}}function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(a)}function o(a,i){(0,r.default)(a);var c,_;n(i)==="object"?(c=i.min||0,_=i.max):(c=arguments[1]||0,_=arguments[2]);var E=a.match(/(\uFE0F|\uFE0E)/g)||[],u=a.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],I=a.length-E.length-u.length,S=I>=c&&(typeof _>"u"||I<=_);return S&&Array.isArray(i?.discreteLengths)?i.discreteLengths.some(function(R){return R===I}):S}e.exports=t.default,e.exports.default=t.default})(Ic,Ic.exports)),Ic.exports}var b2=F2();const U2=Qa(b2);var B2="maxLength";function H2(e,t){return typeof e=="string"&&U2(e,{min:0,max:t})}function x2(e,t){return ln({name:B2,constraints:[e],validator:{validate:function(r,s){return H2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be shorter than or equal to $constraint1 characters"},t)}},t)}var G2="isBoolean";function w2(e){return e instanceof Boolean||typeof e=="boolean"}function Be(e){return ln({name:G2,validator:{validate:function(t,r){return w2(t)},defaultMessage:En(function(t){return t+"$property must be a boolean value"},e)}},e)}var $2="isNumber";function V2(e,t){if(t===void 0&&(t={}),typeof e!="number")return!1;if(e===1/0||e===-1/0)return!!t.allowInfinity;if(Number.isNaN(e))return!!t.allowNaN;if(t.maxDecimalPlaces!==void 0){var r=0;if(e%1!==0&&(r=e.toString().split(".")[1].length),r>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function He(e,t){return e===void 0&&(e={}),ln({name:$2,constraints:[e],validator:{validate:function(r,s){return V2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be a number conforming to the specified constraints"},t)}},t)}var yd=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),n,o=[],a;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(i){a={error:i}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return o},Y2="isEnum";function j2(e,t){var r=Object.keys(t).map(function(s){return t[s]});return r.includes(e)}function k2(e){return Object.entries(e).filter(function(t){var r=yd(t,2),s=r[0];return r[1],isNaN(parseInt(s))}).map(function(t){var r=yd(t,2);r[0];var s=r[1];return s})}function v(e,t){return ln({name:Y2,constraints:[e,k2(e)],validator:{validate:function(r,s){return j2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be one of the following values: $constraint2"},t)}},t)}var K2="isInt";function W2(e){return typeof e=="number"&&Number.isInteger(e)}function $(e){return ln({name:K2,validator:{validate:function(t,r){return W2(t)},defaultMessage:En(function(t){return t+"$property must be an integer number"},e)}},e)}var Z2="isString";function X2(e){return e instanceof String||typeof e=="string"}function ae(e){return ln({name:Z2,validator:{validate:function(t,r){return X2(t)},defaultMessage:En(function(t){return t+"$property must be a string"},e)}},e)}var q2="isArray";function Q2(e){return Array.isArray(e)}function Ve(e){return ln({name:q2,validator:{validate:function(t,r){return Q2(t)},defaultMessage:En(function(t){return t+"$property must be an array"},e)}},e)}var z2="arrayMinSize";function J2(e,t){return Array.isArray(e)&&e.length>=t}function nh(e,t){return ln({name:z2,constraints:[e],validator:{validate:function(r,s){return J2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must contain at least $constraint1 elements"},t)}},t)}var eU="arrayMaxSize";function tU(e,t){return Array.isArray(e)&&e.length<=t}function sh(e,t){return ln({name:eU,constraints:[e],validator:{validate:function(r,s){return tU(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must contain no more than $constraint1 elements"},t)}},t)}function _t(e,t,r){return typeof e=="string"?cE(Nd).validateSync(e,t,r):cE(Nd).validateSync(e,t)}var Et;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Et||(Et={}));var rU=(function(){function e(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return e.prototype.addTypeMetadata=function(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.addTransformMetadata=function(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)},e.prototype.addExposeMetadata=function(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.addExcludeMetadata=function(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.findTransformMetadatas=function(t,r,s){return this.findMetadatas(this._transformMetadatas,t,r).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?s===Et.CLASS_TO_CLASS||s===Et.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?s===Et.CLASS_TO_PLAIN:!0})},e.prototype.findExcludeMetadata=function(t,r){return this.findMetadata(this._excludeMetadatas,t,r)},e.prototype.findExposeMetadata=function(t,r){return this.findMetadata(this._exposeMetadatas,t,r)},e.prototype.findExposeMetadataByCustomName=function(t,r){return this.getExposedMetadatas(t).find(function(s){return s.options&&s.options.name===r})},e.prototype.findTypeMetadata=function(t,r){return this.findMetadata(this._typeMetadatas,t,r)},e.prototype.getStrategy=function(t){var r=this._excludeMetadatas.get(t),s=r&&r.get(void 0),n=this._exposeMetadatas.get(t),o=n&&n.get(void 0);return s&&o||!s&&!o?"none":s?"excludeAll":"exposeAll"},e.prototype.getExposedMetadatas=function(t){return this.getMetadata(this._exposeMetadatas,t)},e.prototype.getExcludedMetadatas=function(t){return this.getMetadata(this._excludeMetadatas,t)},e.prototype.getExposedProperties=function(t,r){return this.getExposedMetadatas(t).filter(function(s){return!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?r===Et.CLASS_TO_CLASS||r===Et.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?r===Et.CLASS_TO_PLAIN:!0}).map(function(s){return s.propertyName})},e.prototype.getExcludedProperties=function(t,r){return this.getExcludedMetadatas(t).filter(function(s){return!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?r===Et.CLASS_TO_CLASS||r===Et.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?r===Et.CLASS_TO_PLAIN:!0}).map(function(s){return s.propertyName})},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(t,r){var s=t.get(r),n;s&&(n=Array.from(s.values()).filter(function(u){return u.propertyName!==void 0}));for(var o=[],a=0,i=this.getAncestors(r);a<i.length;a++){var c=i[a],_=t.get(c);if(_){var E=Array.from(_.values()).filter(function(u){return u.propertyName!==void 0});o.push.apply(o,E)}}return o.concat(n||[])},e.prototype.findMetadata=function(t,r,s){var n=t.get(r);if(n){var o=n.get(s);if(o)return o}for(var a=0,i=this.getAncestors(r);a<i.length;a++){var c=i[a],_=t.get(c);if(_){var E=_.get(s);if(E)return E}}},e.prototype.findMetadatas=function(t,r,s){var n=t.get(r),o;n&&(o=n.get(s));for(var a=[],i=0,c=this.getAncestors(r);i<c.length;i++){var _=c[i],E=t.get(_);E&&E.has(s)&&a.push.apply(a,E.get(s))}return a.slice().reverse().concat((o||[]).slice().reverse())},e.prototype.getAncestors=function(t){if(!t)return[];if(!this._ancestorsMap.has(t)){for(var r=[],s=Object.getPrototypeOf(t.prototype.constructor);typeof s.prototype<"u";s=Object.getPrototypeOf(s.prototype.constructor))r.push(s);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)},e})(),Cr=new rU;function nU(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function sU(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var gd=function(e,t,r){if(r||arguments.length===2)for(var s=0,n=t.length,o;s<n;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))};function oU(e){var t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var Ta=(function(){function e(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}return e.prototype.transform=function(t,r,s,n,o,a){var i=this;if(a===void 0&&(a=0),Array.isArray(r)||r instanceof Set){var c=n&&this.transformationType===Et.PLAIN_TO_CLASS?oU(n):[];return r.forEach(function(T,f){var N=t?t[f]:void 0;if(!i.options.enableCircularCheck||!i.isCircular(T)){var L=void 0;if(typeof s!="function"&&s&&s.options&&s.options.discriminator&&s.options.discriminator.property&&s.options.discriminator.subTypes){if(i.transformationType===Et.PLAIN_TO_CLASS){L=s.options.discriminator.subTypes.find(function(h){return h.name===T[s.options.discriminator.property]});var d={newObject:c,object:T,property:void 0},m=s.typeFunction(d);L===void 0?L=m:L=L.value,s.options.keepDiscriminatorProperty||delete T[s.options.discriminator.property]}i.transformationType===Et.CLASS_TO_CLASS&&(L=T.constructor),i.transformationType===Et.CLASS_TO_PLAIN&&(T[s.options.discriminator.property]=s.options.discriminator.subTypes.find(function(h){return h.value===T.constructor}).name)}else L=s;var g=i.transform(N,T,L,void 0,T instanceof Map,a+1);c instanceof Set?c.add(g):c.push(g)}else i.transformationType===Et.CLASS_TO_CLASS&&(c instanceof Set?c.add(T):c.push(T))}),c}else{if(s===String&&!o)return r==null?r:String(r);if(s===Number&&!o)return r==null?r:Number(r);if(s===Boolean&&!o)return r==null?r:!!r;if((s===Date||r instanceof Date)&&!o)return r instanceof Date?new Date(r.valueOf()):r==null?r:new Date(r);if(nU().Buffer&&(s===Buffer||r instanceof Buffer)&&!o)return r==null?r:Buffer.from(r);if(sU(r)&&!o)return new Promise(function(T,f){r.then(function(N){return T(i.transform(void 0,N,s,void 0,void 0,a+1))},f)});if(!o&&r!==null&&typeof r=="object"&&typeof r.then=="function")return r;if(typeof r=="object"&&r!==null){!s&&r.constructor!==Object&&(!Array.isArray(r)&&r.constructor===Array||(s=r.constructor)),!s&&t&&(s=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(r);var _=this.getKeys(s,r,o),E=t||{};!t&&(this.transformationType===Et.PLAIN_TO_CLASS||this.transformationType===Et.CLASS_TO_CLASS)&&(o?E=new Map:s?E=new s:E={});for(var u=function(T){if(T==="__proto__"||T==="constructor")return"continue";var f=T,N=T,L=T;if(!I.options.ignoreDecorators&&s){if(I.transformationType===Et.PLAIN_TO_CLASS){var d=Cr.findExposeMetadataByCustomName(s,T);d&&(L=d.propertyName,N=d.propertyName)}else if(I.transformationType===Et.CLASS_TO_PLAIN||I.transformationType===Et.CLASS_TO_CLASS){var d=Cr.findExposeMetadata(s,T);d&&d.options&&d.options.name&&(N=d.options.name)}}var m=void 0;I.transformationType===Et.PLAIN_TO_CLASS?m=r[f]:r instanceof Map?m=r.get(f):r[f]instanceof Function?m=r[f]():m=r[f];var g=void 0,h=m instanceof Map;if(s&&o)g=s;else if(s){var b=Cr.findTypeMetadata(s,L);if(b){var B={newObject:E,object:r,property:L},y=b.typeFunction?b.typeFunction(B):b.reflectedType;b.options&&b.options.discriminator&&b.options.discriminator.property&&b.options.discriminator.subTypes?r[f]instanceof Array?g=b:(I.transformationType===Et.PLAIN_TO_CLASS&&(g=b.options.discriminator.subTypes.find(function(Ne){if(m&&m instanceof Object&&b.options.discriminator.property in m)return Ne.name===m[b.options.discriminator.property]}),g===void 0?g=y:g=g.value,b.options.keepDiscriminatorProperty||m&&m instanceof Object&&b.options.discriminator.property in m&&delete m[b.options.discriminator.property]),I.transformationType===Et.CLASS_TO_CLASS&&(g=m.constructor),I.transformationType===Et.CLASS_TO_PLAIN&&m&&(m[b.options.discriminator.property]=b.options.discriminator.subTypes.find(function(Ne){return Ne.value===m.constructor}).name)):g=y,h=h||b.reflectedType===Map}else if(I.options.targetMaps)I.options.targetMaps.filter(function(Ne){return Ne.target===s&&!!Ne.properties[L]}).forEach(function(Ne){return g=Ne.properties[L]});else if(I.options.enableImplicitConversion&&I.transformationType===Et.PLAIN_TO_CLASS){var M=Reflect.getMetadata("design:type",s.prototype,L);M&&(g=M)}}var F=Array.isArray(r[f])?I.getReflectedType(s,L):void 0,X=t?t[f]:void 0;if(E.constructor.prototype){var Z=Object.getOwnPropertyDescriptor(E.constructor.prototype,N);if((I.transformationType===Et.PLAIN_TO_CLASS||I.transformationType===Et.CLASS_TO_CLASS)&&(Z&&!Z.set||E[N]instanceof Function))return"continue"}if(!I.options.enableCircularCheck||!I.isCircular(m)){var Ce=I.transformationType===Et.PLAIN_TO_CLASS?N:T,_e=void 0;I.transformationType===Et.CLASS_TO_PLAIN?(_e=r[Ce],_e=I.applyCustomTransformations(_e,s,Ce,r,I.transformationType),_e=r[Ce]===_e?m:_e,_e=I.transform(X,_e,g,F,h,a+1)):m===void 0&&I.options.exposeDefaultValues?_e=E[N]:(_e=I.transform(X,m,g,F,h,a+1),_e=I.applyCustomTransformations(_e,s,Ce,r,I.transformationType)),(_e!==void 0||I.options.exposeUnsetFields)&&(E instanceof Map?E.set(N,_e):E[N]=_e)}else if(I.transformationType===Et.CLASS_TO_CLASS){var _e=m;_e=I.applyCustomTransformations(_e,s,T,r,I.transformationType),(_e!==void 0||I.options.exposeUnsetFields)&&(E instanceof Map?E.set(N,_e):E[N]=_e)}},I=this,S=0,R=_;S<R.length;S++){var O=R[S];u(O)}return this.options.enableCircularCheck&&this.recursionStack.delete(r),E}else return r}},e.prototype.applyCustomTransformations=function(t,r,s,n,o){var a=this,i=Cr.findTransformMetadatas(r,s,this.transformationType);return this.options.version!==void 0&&(i=i.filter(function(c){return c.options?a.checkVersion(c.options.since,c.options.until):!0})),this.options.groups&&this.options.groups.length?i=i.filter(function(c){return c.options?a.checkGroups(c.options.groups):!0}):i=i.filter(function(c){return!c.options||!c.options.groups||!c.options.groups.length}),i.forEach(function(c){t=c.transformFn({value:t,key:s,obj:n,type:o,options:a.options})}),t},e.prototype.isCircular=function(t){return this.recursionStack.has(t)},e.prototype.getReflectedType=function(t,r){if(t){var s=Cr.findTypeMetadata(t,r);return s?s.reflectedType:void 0}},e.prototype.getKeys=function(t,r,s){var n=this,o=Cr.getStrategy(t);o==="none"&&(o=this.options.strategy||"exposeAll");var a=[];if((o==="exposeAll"||s)&&(r instanceof Map?a=Array.from(r.keys()):a=Object.keys(r)),s)return a;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){var i=Cr.getExposedProperties(t,this.transformationType),c=Cr.getExcludedProperties(t,this.transformationType);a=gd(gd([],i,!0),c,!0)}if(!this.options.ignoreDecorators&&t){var i=Cr.getExposedProperties(t,this.transformationType);this.transformationType===Et.PLAIN_TO_CLASS&&(i=i.map(function(u){var I=Cr.findExposeMetadata(t,u);return I&&I.options&&I.options.name?I.options.name:u})),this.options.excludeExtraneousValues?a=i:a=a.concat(i);var _=Cr.getExcludedProperties(t,this.transformationType);_.length>0&&(a=a.filter(function(u){return!_.includes(u)})),this.options.version!==void 0&&(a=a.filter(function(u){var I=Cr.findExposeMetadata(t,u);return!I||!I.options?!0:n.checkVersion(I.options.since,I.options.until)})),this.options.groups&&this.options.groups.length?a=a.filter(function(u){var I=Cr.findExposeMetadata(t,u);return!I||!I.options?!0:n.checkGroups(I.options.groups)}):a=a.filter(function(u){var I=Cr.findExposeMetadata(t,u);return!I||!I.options||!I.options.groups||!I.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(a=a.filter(function(E){return n.options.excludePrefixes.every(function(u){return E.substr(0,u.length)!==u})})),a=a.filter(function(E,u,I){return I.indexOf(E)===u}),a},e.prototype.checkVersion=function(t,r){var s=!0;return s&&t&&(s=this.options.version>=t),s&&r&&(s=this.options.version<r),s},e.prototype.checkGroups=function(t){return t?this.options.groups.some(function(r){return t.includes(r)}):!0},e})(),da={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0},wr=function(){return wr=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wr.apply(this,arguments)},aU=(function(){function e(){}return e.prototype.instanceToPlain=function(t,r){var s=new Ta(Et.CLASS_TO_PLAIN,wr(wr({},da),r));return s.transform(void 0,t,void 0,void 0,void 0,void 0)},e.prototype.classToPlainFromExist=function(t,r,s){var n=new Ta(Et.CLASS_TO_PLAIN,wr(wr({},da),s));return n.transform(r,t,void 0,void 0,void 0,void 0)},e.prototype.plainToInstance=function(t,r,s){var n=new Ta(Et.PLAIN_TO_CLASS,wr(wr({},da),s));return n.transform(void 0,r,t,void 0,void 0,void 0)},e.prototype.plainToClassFromExist=function(t,r,s){var n=new Ta(Et.PLAIN_TO_CLASS,wr(wr({},da),s));return n.transform(t,r,void 0,void 0,void 0,void 0)},e.prototype.instanceToInstance=function(t,r){var s=new Ta(Et.CLASS_TO_CLASS,wr(wr({},da),r));return s.transform(void 0,t,void 0,void 0,void 0,void 0)},e.prototype.classToClassFromExist=function(t,r,s){var n=new Ta(Et.CLASS_TO_CLASS,wr(wr({},da),s));return n.transform(r,t,void 0,void 0,void 0,void 0)},e.prototype.serialize=function(t,r){return JSON.stringify(this.instanceToPlain(t,r))},e.prototype.deserialize=function(t,r,s){var n=JSON.parse(r);return this.plainToInstance(t,n,s)},e.prototype.deserializeArray=function(t,r,s){var n=JSON.parse(r);return this.plainToInstance(t,n,s)},e})();function Xe(e){return e===void 0&&(e={}),function(t,r){Cr.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}function co(e,t){return t===void 0&&(t={}),function(r,s){Cr.addTransformMetadata({target:r.constructor,propertyName:s,transformFn:e,options:t})}}function K(e,t){return t===void 0&&(t={}),function(r,s){var n=Reflect.getMetadata("design:type",r,s);Cr.addTypeMetadata({target:r.constructor,propertyName:s,reflectedType:n,typeFunction:e,options:t})}}var BA=new aU;function Yt(e,t){return BA.instanceToPlain(e,t)}function nt(e,t,r){return BA.plainToInstance(e,t,r)}function Zo(e,t,r){return BA.plainToInstance(e,t,r)}var iU=Object.defineProperty,_U=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&iU(t,r,n),n};class HA{PointsList}_U([D(),Ve(),j({each:!0}),K(()=>Os)],HA.prototype,"PointsList");var cU=Object.defineProperty,xA=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cU(t,r,n),n};class Xo{Count;List;Points}xA([D(),$()],Xo.prototype,"Count");xA([D(),j({each:!0}),Ve(),K(()=>jt)],Xo.prototype,"List");xA([D(),j({each:!0}),Ve(),K(()=>HA)],Xo.prototype,"Points");var EU=Object.defineProperty,Fr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&EU(t,r,n),n};class ir{docFormat;Angle;Width;Height;Center;LeftBottom;LeftTop;RightBottom;RightTop;Dpi;Inverse;ObjArea;ObjIntAngleDev;PerspectiveTr;ResultStatus}Fr([D(),v(ri)],ir.prototype,"docFormat");Fr([D(),He()],ir.prototype,"Angle");Fr([D(),He()],ir.prototype,"Width");Fr([D(),He()],ir.prototype,"Height");Fr([D(),j(),K(()=>Os)],ir.prototype,"Center");Fr([D(),j(),K(()=>Os)],ir.prototype,"LeftBottom");Fr([D(),j(),K(()=>Os)],ir.prototype,"LeftTop");Fr([D(),j(),K(()=>Os)],ir.prototype,"RightBottom");Fr([D(),j(),K(()=>Os)],ir.prototype,"RightTop");Fr([D(),$()],ir.prototype,"Dpi");Fr([p(),$()],ir.prototype,"Inverse");Fr([p(),$()],ir.prototype,"ObjArea");Fr([p(),$()],ir.prototype,"ObjIntAngleDev");Fr([p(),$()],ir.prototype,"PerspectiveTr");Fr([p(),$()],ir.prototype,"ResultStatus");var lU=Object.defineProperty,WE=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&lU(t,r,n),n};class xs{Type;ElementResult;ElementDiagnose;PercentValue}WE([D(),v(J)],xs.prototype,"Type");WE([p(),v(V)],xs.prototype,"ElementResult");WE([p(),v(ne)],xs.prototype,"ElementDiagnose");WE([p(),$()],xs.prototype,"PercentValue");var oh=Object.defineProperty,uU=Object.getOwnPropertyDescriptor,IU=(e,t,r)=>t in e?oh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jn=(e,t,r,s)=>{for(var n=s>1?void 0:s?uU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&oh(t,r,n),n},ah=(e,t,r)=>IU(e,typeof t!="symbol"?t+"":t,r);exports.FibersType=class extends xs{RectCount;ExpectedCount;LightValue;LightDisp;RectArray;Width;Length;Area;ColorValues;Type};ah(exports.FibersType,"fromPlain",e=>nt(exports.FibersType,e));ah(exports.FibersType,"validate",e=>{const t=_t(exports.FibersType.fromPlain(e));if(t.length)throw new Bt("FibersTypeElement validation error: the data received does not match model structure!",t);return!0});jn([D(),$()],exports.FibersType.prototype,"RectCount",2);jn([D(),$()],exports.FibersType.prototype,"ExpectedCount",2);jn([p(),v(Pt)],exports.FibersType.prototype,"LightValue",2);jn([p(),$()],exports.FibersType.prototype,"LightDisp",2);jn([D(),Ve(),j({each:!0}),K(()=>jt)],exports.FibersType.prototype,"RectArray",2);jn([D(),Ve(),$({each:!0})],exports.FibersType.prototype,"Width",2);jn([D(),Ve(),$({each:!0})],exports.FibersType.prototype,"Length",2);jn([D(),Ve(),$({each:!0})],exports.FibersType.prototype,"Area",2);jn([D(),Ve(),sh(3),nh(3),$({each:!0})],exports.FibersType.prototype,"ColorValues",2);jn([D(),ct([J.UV_FIBERS]),v(J)],exports.FibersType.prototype,"Type",2);exports.FibersType=jn([Xe()],exports.FibersType);var SU=Object.defineProperty,ZE=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&SU(t,r,n),n};class Gs{Type;Result;Count;List}ZE([D(),v(J)],Gs.prototype,"Type");ZE([D(),v(V)],Gs.prototype,"Result");ZE([p(),$()],Gs.prototype,"Count");ZE([D(),Ve()],Gs.prototype,"List");var ih=Object.defineProperty,RU=Object.getOwnPropertyDescriptor,AU=(e,t,r)=>t in e?ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,GA=(e,t,r,s)=>{for(var n=s>1?void 0:s?RU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ih(t,r,n),n},_h=(e,t,r)=>AU(e,typeof t!="symbol"?t+"":t,r);const p_=[J.UV_FIBERS];exports.AuthenticityFibersTypeCheckResult=class extends Gs{Type;List};_h(exports.AuthenticityFibersTypeCheckResult,"fromPlain",e=>nt(exports.AuthenticityFibersTypeCheckResult,e));_h(exports.AuthenticityFibersTypeCheckResult,"isBelongs",e=>{const t=e;return p_.includes(t?.Type)});GA([D(),ct(p_),v(J)],exports.AuthenticityFibersTypeCheckResult.prototype,"Type",2);GA([D(),Ve(),j({each:!0}),K(()=>exports.FibersType)],exports.AuthenticityFibersTypeCheckResult.prototype,"List",2);exports.AuthenticityFibersTypeCheckResult=GA([Xe()],exports.AuthenticityFibersTypeCheckResult);var CU=Object.defineProperty,Eo=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&CU(t,r,n),n};class ls extends xs{ElementType;LightIndex;Area;Image;EtalonImage;AreaList;ElementID;Type}Eo([D(),v(De)],ls.prototype,"ElementType");Eo([D(),v(Pt)],ls.prototype,"LightIndex");Eo([p(),j(),K(()=>jt)],ls.prototype,"Area");Eo([D(),j(),K(()=>Cs)],ls.prototype,"Image");Eo([D(),j(),K(()=>Cs)],ls.prototype,"EtalonImage");Eo([p(),j(),K(()=>Xo)],ls.prototype,"AreaList");Eo([p(),He()],ls.prototype,"ElementID");Eo([D(),ct([J.IMAGE_PATTERN,J.IR_VISIBILITY,J.OVI,J.PORTRAIT_COMPARISON,J.KINEGRAM,J.LETTER_SCREEN,J.HOLOGRAM_DETECTION,J.FINGERPRINT_COMPARISON,J.LIVENESS]),v(J)],ls.prototype,"Type");var ch=Object.defineProperty,OU=Object.getOwnPropertyDescriptor,DU=(e,t,r)=>t in e?ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wA=(e,t,r,s)=>{for(var n=s>1?void 0:s?OU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ch(t,r,n),n},Eh=(e,t,r)=>DU(e,typeof t!="symbol"?t+"":t,r);const L_=[J.IMAGE_PATTERN,J.IR_VISIBILITY,J.OVI,J.PORTRAIT_COMPARISON,J.KINEGRAM,J.LETTER_SCREEN,J.HOLOGRAM_DETECTION,J.FINGERPRINT_COMPARISON,J.LIVENESS];exports.AuthenticityIdentCheckResult=class extends Gs{Type;List};Eh(exports.AuthenticityIdentCheckResult,"fromPlain",e=>nt(exports.AuthenticityIdentCheckResult,e));Eh(exports.AuthenticityIdentCheckResult,"isBelongs",e=>L_.includes(e?.Type));wA([D(),ct(L_),v(J)],exports.AuthenticityIdentCheckResult.prototype,"Type",2);wA([D(),Ve(),j({each:!0}),K(()=>ls)],exports.AuthenticityIdentCheckResult.prototype,"List",2);exports.AuthenticityIdentCheckResult=wA([Xe()],exports.AuthenticityIdentCheckResult);var TU=Object.defineProperty,fn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&TU(t,r,n),n};class Zr extends xs{CriticalFlag;LightType;FieldRect;EtalonResultType;EtalonFieldType;EtalonLightType;EtalonFieldRect;SecurityTextResultOCR;EtalonResultOCR;Reserved1;Reserved2;Type}fn([D(),v(GE)],Zr.prototype,"CriticalFlag");fn([D(),v(Pt)],Zr.prototype,"LightType");fn([D(),j(),K(()=>jt)],Zr.prototype,"FieldRect");fn([D(),He()],Zr.prototype,"EtalonResultType");fn([D(),v(A)],Zr.prototype,"EtalonFieldType");fn([D(),v(Pt)],Zr.prototype,"EtalonLightType");fn([D(),j(),K(()=>jt)],Zr.prototype,"EtalonFieldRect");fn([D(),ae()],Zr.prototype,"SecurityTextResultOCR");fn([D(),ae()],Zr.prototype,"EtalonResultOCR");fn([p()],Zr.prototype,"Reserved1");fn([p()],Zr.prototype,"Reserved2");fn([D(),ct([J.OCR_SECURITY_TEXT,J.ENCRYPTED_IPI]),v(J)],Zr.prototype,"Type");var lh=Object.defineProperty,dU=Object.getOwnPropertyDescriptor,fU=(e,t,r)=>t in e?lh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$A=(e,t,r,s)=>{for(var n=s>1?void 0:s?dU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&lh(t,r,n),n},uh=(e,t,r)=>fU(e,typeof t!="symbol"?t+"":t,r);const h_=[J.OCR_SECURITY_TEXT,J.ENCRYPTED_IPI];exports.AuthenticityOCRSecurityTextCheckResult=class extends Gs{Type;List};uh(exports.AuthenticityOCRSecurityTextCheckResult,"fromPlain",e=>nt(exports.AuthenticityOCRSecurityTextCheckResult,e));uh(exports.AuthenticityOCRSecurityTextCheckResult,"isBelongs",e=>h_.includes(e.Type));$A([D(),ct(h_),v(J)],exports.AuthenticityOCRSecurityTextCheckResult.prototype,"Type",2);$A([D(),Ve(),j({each:!0}),K(()=>Zr)],exports.AuthenticityOCRSecurityTextCheckResult.prototype,"List",2);exports.AuthenticityOCRSecurityTextCheckResult=$A([Xe()],exports.AuthenticityOCRSecurityTextCheckResult);var NU=Object.defineProperty,Ih=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&NU(t,r,n),n};class XE{Count;Images}Ih([D(),$()],XE.prototype,"Count");Ih([D(),Ve(),j({each:!0}),K(()=>Cs)],XE.prototype,"Images");var pU=Object.defineProperty,us=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&pU(t,r,n),n};class Nn extends xs{LightIndex;Area;SourceImage;ResultImages;FieldTypesCount;FieldTypesList;Step;Angle;Reserved3;Type}us([D(),v(Pt)],Nn.prototype,"LightIndex");us([D(),j(),K(()=>jt)],Nn.prototype,"Area");us([D(),j(),K(()=>Cs)],Nn.prototype,"SourceImage");us([D(),j(),K(()=>XE)],Nn.prototype,"ResultImages");us([p(),$()],Nn.prototype,"FieldTypesCount");us([p(),Ve(),$({each:!0})],Nn.prototype,"FieldTypesList");us([p(),$()],Nn.prototype,"Step");us([p(),$()],Nn.prototype,"Angle");us([p(),$()],Nn.prototype,"Reserved3");us([D(),ct([J.IPI]),v(J)],Nn.prototype,"Type");var Sh=Object.defineProperty,LU=Object.getOwnPropertyDescriptor,hU=(e,t,r)=>t in e?Sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VA=(e,t,r,s)=>{for(var n=s>1?void 0:s?LU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Sh(t,r,n),n},Rh=(e,t,r)=>hU(e,typeof t!="symbol"?t+"":t,r);const m_=[J.IPI];exports.AuthenticityPhotoIdentCheckResult=class extends Gs{Type;List};Rh(exports.AuthenticityPhotoIdentCheckResult,"fromPlain",e=>nt(exports.AuthenticityPhotoIdentCheckResult,e));Rh(exports.AuthenticityPhotoIdentCheckResult,"isBelongs",e=>m_.includes(e?.Type));VA([D(),ct(m_),v(J)],exports.AuthenticityPhotoIdentCheckResult.prototype,"Type",2);VA([D(),Ve(),j({each:!0}),K(()=>Nn)],exports.AuthenticityPhotoIdentCheckResult.prototype,"List",2);exports.AuthenticityPhotoIdentCheckResult=VA([Xe()],exports.AuthenticityPhotoIdentCheckResult);var mU=Object.defineProperty,qo=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&mU(t,r,n),n};class ws extends xs{ElementType;ElementRect;Visibility;CriticalFlag;AreaList;Reserved2;Type}qo([D(),v(De)],ws.prototype,"ElementType");qo([D(),j(),K(()=>jt)],ws.prototype,"ElementRect");qo([D(),v(Dn)],ws.prototype,"Visibility");qo([D(),v(GE)],ws.prototype,"CriticalFlag");qo([p(),j(),K(()=>Xo)],ws.prototype,"AreaList");qo([p(),$()],ws.prototype,"Reserved2");qo([D(),ct([J.UV_LUMINESCENCE,J.IR_B900,J.AXIAL_PROTECTION,J.PHOTO_EMBED_TYPE,J.HOLOGRAMS,J.PHOTO_AREA,J.BARCODE_FORMAT_CHECK,J.EXTENDED_OCR_CHECK,J.EXTENDED_MRZ_CHECK]),v(J)],ws.prototype,"Type");var Ah=Object.defineProperty,yU=Object.getOwnPropertyDescriptor,gU=(e,t,r)=>t in e?Ah(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YA=(e,t,r,s)=>{for(var n=s>1?void 0:s?yU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Ah(t,r,n),n},Ch=(e,t,r)=>gU(e,typeof t!="symbol"?t+"":t,r);const y_=[J.UV_LUMINESCENCE,J.IR_B900,J.AXIAL_PROTECTION,J.PHOTO_EMBED_TYPE,J.HOLOGRAMS,J.PHOTO_AREA,J.BARCODE_FORMAT_CHECK,J.EXTENDED_OCR_CHECK,J.EXTENDED_MRZ_CHECK];exports.AuthenticitySecurityFeatureCheckResult=class extends Gs{Type;List};Ch(exports.AuthenticitySecurityFeatureCheckResult,"fromPlain",e=>nt(exports.AuthenticitySecurityFeatureCheckResult,e));Ch(exports.AuthenticitySecurityFeatureCheckResult,"isBelongs",e=>y_.includes(e?.Type));YA([D(),ct(y_),v(J)],exports.AuthenticitySecurityFeatureCheckResult.prototype,"Type",2);YA([D(),Ve(),j({each:!0}),K(()=>ws)],exports.AuthenticitySecurityFeatureCheckResult.prototype,"List",2);exports.AuthenticitySecurityFeatureCheckResult=YA([Xe()],exports.AuthenticitySecurityFeatureCheckResult);const Oh=e=>{const t=[];return e.forEach(r=>{if(!ja(r)||!("Type"in r))return;const{Type:s}=r;switch(s){case J.UV_FIBERS:t.push(exports.AuthenticityFibersTypeCheckResult.fromPlain(r));break;case J.IMAGE_PATTERN:case J.IR_VISIBILITY:case J.OVI:case J.PORTRAIT_COMPARISON:case J.KINEGRAM:case J.LETTER_SCREEN:case J.HOLOGRAM_DETECTION:case J.FINGERPRINT_COMPARISON:case J.LIVENESS:t.push(exports.AuthenticityIdentCheckResult.fromPlain(r));break;case J.OCR_SECURITY_TEXT:case J.ENCRYPTED_IPI:t.push(exports.AuthenticityOCRSecurityTextCheckResult.fromPlain(r));break;case J.IPI:t.push(exports.AuthenticityPhotoIdentCheckResult.fromPlain(r));break;case J.UV_LUMINESCENCE:case J.IR_B900:case J.AXIAL_PROTECTION:case J.PHOTO_EMBED_TYPE:case J.HOLOGRAMS:case J.PHOTO_AREA:case J.BARCODE_FORMAT_CHECK:case J.EXTENDED_OCR_CHECK:case J.EXTENDED_MRZ_CHECK:t.push(exports.AuthenticitySecurityFeatureCheckResult.fromPlain(r));break}}),t};var PU=Object.defineProperty,Dh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&PU(t,r,n),n};class qE{Count;List}Dh([D(),$()],qE.prototype,"Count");Dh([j({each:!0}),co(({obj:e})=>Oh(e.List),{toClassOnly:!0}),Ve()],qE.prototype,"List");var MU=Object.defineProperty,g_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&MU(t,r,n),n};class Mt{buf_length;light;list_idx;page_idx;result_type;static getLightingScheme=t=>Ho(typeof t=="number"?t:t?.light??Pt.OFF)}g_([p(),$()],Mt.prototype,"buf_length");g_([p(),v(Pt)],Mt.prototype,"light");g_([p(),$()],Mt.prototype,"list_idx");g_([p(),$()],Mt.prototype,"page_idx");g_([D(),v(ce)],Mt.prototype,"result_type");var Th=Object.defineProperty,vU=Object.getOwnPropertyDescriptor,FU=(e,t,r)=>t in e?Th(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jA=(e,t,r,s)=>{for(var n=s>1?void 0:s?vU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Th(t,r,n),n},dh=(e,t,r)=>FU(e,typeof t!="symbol"?t+"":t,r);const kA=[ce.AUTHENTICITY,ce.FINGERPRINT_COMPARISON,ce.PORTRAIT_COMPARISON];exports.AuthenticityCheckListContainer=class extends Mt{AuthenticityCheckList;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!s)return[];const n=s.List.filter(o=>kA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};dh(exports.AuthenticityCheckListContainer,"fromPlain",e=>nt(exports.AuthenticityCheckListContainer,e));dh(exports.AuthenticityCheckListContainer,"validate",e=>{const t=_t(exports.AuthenticityCheckListContainer.fromPlain(e));if(t.length)throw new Bt("AuthenticityContainer validation error: the data received does not match model structure!",t);return!0});jA([D(),j(),K(()=>qE)],exports.AuthenticityCheckListContainer.prototype,"AuthenticityCheckList",2);jA([D(),v(ce),ct(kA)],exports.AuthenticityCheckListContainer.prototype,"result_type",2);exports.AuthenticityCheckListContainer=jA([Xe()],exports.AuthenticityCheckListContainer);var fh=Object.defineProperty,bU=Object.getOwnPropertyDescriptor,UU=(e,t,r)=>t in e?fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KA=(e,t,r,s)=>{for(var n=s>1?void 0:s?bU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&fh(t,r,n),n},Nh=(e,t,r)=>UU(e,typeof t!="symbol"?t+"":t,r);const WA=[ce.DOCUMENT_POSITION];exports.BoundsResultContainer=class extends Mt{DocumentPosition;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!Array.isArray(s))return[];const n=s.List.filter(o=>WA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Nh(exports.BoundsResultContainer,"fromPlain",e=>nt(exports.BoundsResultContainer,e));Nh(exports.BoundsResultContainer,"validate",e=>{const t=_t(exports.BoundsResultContainer.fromPlain(e));if(t.length)throw new Bt("BoundsResultContainer validation error: the data received does not match model structure!",t);return!0});KA([D(),j(),K(()=>ir)],exports.BoundsResultContainer.prototype,"DocumentPosition",2);KA([D(),v(ce),ct(WA)],exports.BoundsResultContainer.prototype,"result_type",2);exports.BoundsResultContainer=KA([Xe()],exports.BoundsResultContainer);var ph=Object.defineProperty,BU=Object.getOwnPropertyDescriptor,HU=(e,t,r)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ZA=(e,t,r,s)=>{for(var n=s>1?void 0:s?BU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ph(t,r,n),n},Lh=(e,t,r)=>HU(e,typeof t!="symbol"?t+"":t,r);const XA=[ce.BARCODE_POSITION];exports.BarcodeBoundsResultContainer=class extends Mt{BarcodePosition;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!Array.isArray(s))return[];const n=s.List.filter(o=>XA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Lh(exports.BarcodeBoundsResultContainer,"fromPlain",e=>nt(exports.BarcodeBoundsResultContainer,e));Lh(exports.BarcodeBoundsResultContainer,"validate",e=>{const t=_t(exports.BarcodeBoundsResultContainer.fromPlain(e));if(t.length)throw new Bt("BarcodeBoundsResultContainer validation error: the data received does not match model structure!",t);return!0});ZA([D(),j(),K(()=>ir)],exports.BarcodeBoundsResultContainer.prototype,"BarcodePosition",2);ZA([D(),v(ce),ct(XA)],exports.BarcodeBoundsResultContainer.prototype,"result_type",2);exports.BarcodeBoundsResultContainer=ZA([Xe()],exports.BarcodeBoundsResultContainer);var xU=Object.defineProperty,P_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&xU(t,r,n),n};class Qo{mData;mLength;mReserved1;mReserver2;mType}P_([D(),ae()],Qo.prototype,"mData");P_([D(),He()],Qo.prototype,"mLength");P_([p()],Qo.prototype,"mReserved1");P_([p()],Qo.prototype,"mReserver2");P_([D(),v(xE)],Qo.prototype,"mType");var GU=Object.defineProperty,si=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&GU(t,r,n),n};class lo{Angle;bcColumn;bcErrorLevel;bcRow;minX;minY}si([D(),He()],lo.prototype,"Angle");si([D(),He()],lo.prototype,"bcColumn");si([D(),He()],lo.prototype,"bcErrorLevel");si([D(),He()],lo.prototype,"bcRow");si([p(),He()],lo.prototype,"minX");si([p(),He()],lo.prototype,"minY");var wU=Object.defineProperty,Is=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&wU(t,r,n),n};class pn{bcAngle_DETECT;bcCodeResult;bcCountModule;bcDataModule;bcPDF417INFO;bcROI_DETECT;bcTextDecoderTypes;bcTextFieldType;bcType_DECODE;bcType_DETECT}Is([D(),He()],pn.prototype,"bcAngle_DETECT");Is([D(),He()],pn.prototype,"bcCodeResult");Is([D(),He()],pn.prototype,"bcCountModule");Is([D(),Ve(),j({each:!0}),K(()=>Qo)],pn.prototype,"bcDataModule");Is([p(),j(),K(()=>lo)],pn.prototype,"bcPDF417INFO");Is([D(),j(),K(()=>jt)],pn.prototype,"bcROI_DETECT");Is([p(),He()],pn.prototype,"bcTextDecoderTypes");Is([p(),v(A)],pn.prototype,"bcTextFieldType");Is([D(),v(f_)],pn.prototype,"bcType_DECODE");Is([D(),He()],pn.prototype,"bcType_DETECT");var $U=Object.defineProperty,hh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&$U(t,r,n),n};class QE{nFields;pArrayFields}hh([D(),$()],QE.prototype,"nFields");hh([D(),j({each:!0}),K(()=>pn),Ve()],QE.prototype,"pArrayFields");var mh=Object.defineProperty,VU=Object.getOwnPropertyDescriptor,YU=(e,t,r)=>t in e?mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qA=(e,t,r,s)=>{for(var n=s>1?void 0:s?VU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&mh(t,r,n),n},yh=(e,t,r)=>YU(e,typeof t!="symbol"?t+"":t,r);const QA=[ce.BARCODES];exports.DocBarCodeInfoContainer=class extends Mt{DocBarCodeInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!s)return[];const n=s.List.filter(o=>QA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};yh(exports.DocBarCodeInfoContainer,"fromPlain",e=>nt(exports.DocBarCodeInfoContainer,e));yh(exports.DocBarCodeInfoContainer,"validate",e=>{const t=_t(exports.DocBarCodeInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocBarCodeInfoContainer validation error: the data received does not match model structure!",t);return!0});qA([D(),j(),K(()=>QE)],exports.DocBarCodeInfoContainer.prototype,"DocBarCodeInfo",2);qA([D(),v(ce),ct(QA)],exports.DocBarCodeInfoContainer.prototype,"result_type",2);exports.DocBarCodeInfoContainer=qA([Xe()],exports.DocBarCodeInfoContainer);var jU=Object.defineProperty,mr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&jU(t,r,n),n};class Ir{Type;DocumentID;DocumentType;State;Holder;DocumentNumber;CheckDigitDocumentNumber;Nationality;Birthday;CheckDigitBirthday;Sex;ExpiryDate;CheckDigitExpiryDate;OptionalData;CheckDigitOptionalData;CheckDigitComposite}mr([D(),$()],Ir.prototype,"Type");mr([D(),v(ri)],Ir.prototype,"DocumentID");mr([D(),ae()],Ir.prototype,"DocumentType");mr([D(),ae()],Ir.prototype,"State");mr([D(),ae()],Ir.prototype,"Holder");mr([D(),ae()],Ir.prototype,"DocumentNumber");mr([D(),$()],Ir.prototype,"CheckDigitDocumentNumber");mr([D(),ae()],Ir.prototype,"Nationality");mr([D(),ae()],Ir.prototype,"Birthday");mr([D(),$()],Ir.prototype,"CheckDigitBirthday");mr([D(),ae()],Ir.prototype,"Sex");mr([D(),ae()],Ir.prototype,"ExpiryDate");mr([D(),$()],Ir.prototype,"CheckDigitExpiryDate");mr([D(),ae()],Ir.prototype,"OptionalData");mr([D(),$()],Ir.prototype,"CheckDigitOptionalData");mr([D(),$()],Ir.prototype,"CheckDigitComposite");var kU=Object.defineProperty,M_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&kU(t,r,n),n};class zo{Type;Status;ActiveOptionIdx;Notifications;AccessControlOptions}M_([D(),v(VE)],zo.prototype,"Type");M_([D(),v(nr)],zo.prototype,"Status");M_([p(),$()],zo.prototype,"ActiveOptionIdx");M_([D(),Ve(),$({each:!0})],zo.prototype,"Notifications");M_([p(),Ve()],zo.prototype,"AccessControlOptions");var KU=Object.defineProperty,zE=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&KU(t,r,n),n};class oi{AccessKey;KeyType;AccessType;CheckFullKeyMatching}zE([D(),ae()],oi.prototype,"AccessKey");zE([D(),v(PA)],oi.prototype,"KeyType");zE([D(),v(VE)],oi.prototype,"AccessType");zE([D(),Be()],oi.prototype,"CheckFullKeyMatching");var WU=Object.defineProperty,ZU=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&WU(t,r,n),n};class zA{ParsingNotifications}ZU([p(),v($E,{each:!0})],zA.prototype,"ParsingNotifications");var XU=Object.defineProperty,gh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&XU(t,r,n),n};class JE{Data;Length}gh([D(),ae()],JE.prototype,"Data");gh([D(),He()],JE.prototype,"Length");var qU=Object.defineProperty,QU=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&qU(t,r,n),n};class JA{Certificate_Data}QU([p(),K(()=>JE),j()],JA.prototype,"Certificate_Data");var zU=Object.defineProperty,Ln=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&zU(t,r,n),n};class Xr{FileID;Type;FileData;ReadingStatus;ReadingTime;PA_Status;Notifications;DocFields_Text;DocFields_Graphics;DocFields_Originals;ParsedData;SecurityObject_Certificates}Ln([ae(),p()],Xr.prototype,"FileID");Ln([D(),v(k)],Xr.prototype,"Type");Ln([p(),K(()=>Zs),j()],Xr.prototype,"FileData");Ln([D(),v(nr)],Xr.prototype,"ReadingStatus");Ln([p(),$()],Xr.prototype,"ReadingTime");Ln([p(),v(nr)],Xr.prototype,"PA_Status");Ln([p(),Ve(),$({each:!0})],Xr.prototype,"Notifications");Ln([p(),v(A,{each:!0})],Xr.prototype,"DocFields_Text");Ln([p(),v(At,{each:!0})],Xr.prototype,"DocFields_Graphics");Ln([p(),v(At,{each:!0})],Xr.prototype,"DocFields_Originals");Ln([p(),K(()=>zA),j()],Xr.prototype,"ParsedData");Ln([p(),K(()=>JA),j()],Xr.prototype,"SecurityObject_Certificates");var JU=Object.defineProperty,Jo=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&JU(t,r,n),n};class $s{Type;Status;ApplicationID;Version;UnicodeVersion;DataHashAlgorithm;Files}Jo([D(),v(Wt)],$s.prototype,"Type");Jo([D(),v(nr)],$s.prototype,"Status");Jo([D(),ae()],$s.prototype,"ApplicationID");Jo([D(),ae()],$s.prototype,"Version");Jo([D(),ae()],$s.prototype,"UnicodeVersion");Jo([D(),ae()],$s.prototype,"DataHashAlgorithm");Jo([D(),K(()=>Xr),j({each:!0})],$s.prototype,"Files");var eB=Object.defineProperty,qr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&eB(t,r,n),n};class yr{RFID_Type;Baudrate1;Baudrate2;Support_4;ChipType_A;Support_Mifare;MifareMemory;UID;ATQ_A;SAK;ATQ_B;BitRateS;BitRateR;ATR}qr([D(),v(vA)],yr.prototype,"RFID_Type");qr([D(),ae()],yr.prototype,"Baudrate1");qr([D(),ae()],yr.prototype,"Baudrate2");qr([D(),Be()],yr.prototype,"Support_4");qr([D(),v(mA)],yr.prototype,"ChipType_A");qr([D(),Be()],yr.prototype,"Support_Mifare");qr([D(),$()],yr.prototype,"MifareMemory");qr([D(),ae()],yr.prototype,"UID");qr([D()],yr.prototype,"ATQ_A");qr([D()],yr.prototype,"SAK");qr([D()],yr.prototype,"ATQ_B");qr([D(),v(YE)],yr.prototype,"BitRateS");qr([D(),v(YE)],yr.prototype,"BitRateR");qr([D(),ae()],yr.prototype,"ATR");var tB=Object.defineProperty,Ph=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&tB(t,r,n),n};class el{Type;Data}Ph([D(),ae()],el.prototype,"Type");Ph([D(),ae(),dn()],el.prototype,"Data");var rB=Object.defineProperty,Mh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&rB(t,r,n),n};class tl{Type;Data}Mh([D(),ae()],tl.prototype,"Type");Mh([D(),ae(),dn()],tl.prototype,"Data");var nB=Object.defineProperty,vh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&nB(t,r,n),n};class rl{NotBefore;NotAfter}vh([D(),K(()=>Ds),j()],rl.prototype,"NotBefore");vh([D(),K(()=>Ds),j()],rl.prototype,"NotAfter");var sB=Object.defineProperty,un=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&sB(t,r,n),n};class br{Version;SerialNumber;SignatureAlgorithm;Issuer;Validity;Subject;SubjectPKAlgorithm;Extensions;Notifications;Origin;Type;FileName;PA_Status}un([D(),He()],br.prototype,"Version");un([D(),dn(),ae()],br.prototype,"SerialNumber");un([D(),ae()],br.prototype,"SignatureAlgorithm");un([D(),K(()=>ca),j()],br.prototype,"Issuer");un([D(),K(()=>rl),j()],br.prototype,"Validity");un([D(),K(()=>ca),j()],br.prototype,"Subject");un([D(),ae()],br.prototype,"SubjectPKAlgorithm");un([D(),K(()=>tl),j({each:!0}),Ve()],br.prototype,"Extensions");un([D(),Ve(),$({each:!0})],br.prototype,"Notifications");un([D(),v(gA)],br.prototype,"Origin");un([D(),v(nn)],br.prototype,"Type");un([D(),K(()=>Ds),j()],br.prototype,"FileName");un([D(),v(nr)],br.prototype,"PA_Status");var oB=Object.defineProperty,hn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&oB(t,r,n),n};class Qr{Version;Issuer;SerialNumber;SubjectKeyIdentifier;DigestAlgorithm;SignedAttributes;SignatureAlgorithm;Signature;PA_Status;CertificateChain;DataToHash;Notifications}hn([D(),He()],Qr.prototype,"Version");hn([D(),K(()=>ca),j()],Qr.prototype,"Issuer");hn([D(),K(()=>Zs),j()],Qr.prototype,"SerialNumber");hn([D(),K(()=>Zs),j()],Qr.prototype,"SubjectKeyIdentifier");hn([D(),ae()],Qr.prototype,"DigestAlgorithm");hn([D(),K(()=>el),j({each:!0}),Ve()],Qr.prototype,"SignedAttributes");hn([D(),ae()],Qr.prototype,"SignatureAlgorithm");hn([D(),K(()=>Zs),j()],Qr.prototype,"Signature");hn([D(),v(nr)],Qr.prototype,"PA_Status");hn([D(),K(()=>br),j({each:!0}),Ve()],Qr.prototype,"CertificateChain");hn([D(),ae(),dn()],Qr.prototype,"DataToHash");hn([D(),Ve(),$({each:!0})],Qr.prototype,"Notifications");var aB=Object.defineProperty,v_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&aB(t,r,n),n};class ea{Version;ObjectType;FileReference;Notifications;SignerInfos}v_([D(),He()],ea.prototype,"Version");v_([D(),ae()],ea.prototype,"ObjectType");v_([D(),$()],ea.prototype,"FileReference");v_([D(),Ve(),$({each:!0})],ea.prototype,"Notifications");v_([D(),K(()=>Qr),Ve()],ea.prototype,"SignerInfos");var iB=Object.defineProperty,eC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&iB(t,r,n),n};class F_{TermType;AuthReq;AuthReq2;static getAuthReq=t=>qi(typeof t=="number"?t:t.AuthReq);static getAuthReq2=t=>qi(typeof t=="number"?t:t.AuthReq2)}eC([D(),v(MA)],F_.prototype,"TermType");eC([D(),$()],F_.prototype,"AuthReq");eC([D(),$()],F_.prototype,"AuthReq2");var _B=Object.defineProperty,Ur=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&_B(t,r,n),n};class Or{VirtualMode;SDKVersion;DriverVersion;FirmwareVersion;Applications;AccessControls;CardProperties;ExtLeSupport;ProcessTime;RootFiles;TotalBytesSent;TotalBytesReceived;Session_key;Session_terminal;Session_procedure;SecurityObjects}Ur([p(),Be()],Or.prototype,"VirtualMode");Ur([p(),ae()],Or.prototype,"SDKVersion");Ur([p(),ae()],Or.prototype,"DriverVersion");Ur([p(),ae()],Or.prototype,"FirmwareVersion");Ur([D(),j({each:!0}),K(()=>$s)],Or.prototype,"Applications");Ur([D(),j({each:!0}),K(()=>zo)],Or.prototype,"AccessControls");Ur([D(),j(),K(()=>yr)],Or.prototype,"CardProperties");Ur([D(),v(nr)],Or.prototype,"ExtLeSupport");Ur([D(),$()],Or.prototype,"ProcessTime");Ur([D(),$()],Or.prototype,"TotalBytesSent");Ur([D(),$()],Or.prototype,"TotalBytesReceived");Ur([D(),j(),K(()=>oi)],Or.prototype,"Session_key");Ur([D(),j(),K(()=>F_)],Or.prototype,"Session_terminal");Ur([D(),v(yA)],Or.prototype,"Session_procedure");Ur([D(),j({each:!0}),K(()=>ea)],Or.prototype,"SecurityObjects");var cB=Object.defineProperty,we=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cB(t,r,n),n};class xe{RFID_Authentication_Info;RFID_MIFARE_Data_Validity;RFID_MIFARE_Data;RFID_EF_COM;RFID_DG1;RFID_DG2;RFID_DG3;RFID_DG4;RFID_DG5;RFID_DG6;RFID_DG7;RFID_DG8;RFID_DG9;RFID_DG10;RFID_DG11;RFID_DG12;RFID_DG13;RFID_DG14;RFID_DG15;RFID_DG16;RFID_EF_SOD;eID_DG1;eID_DG2;eID_DG3;eID_DG4;eID_DG5;eID_DG6;eID_DG7;eID_DG8;eID_DG9;eID_DG10;eID_DG11;eID_DG12;eID_DG13;eID_DG14;eID_DG15;eID_DG16;eID_DG17;eID_DG18;eID_DG19;eID_DG20;eID_DG21;eDL_COM;eDL_SOD;eDL_DG1;eDL_DG2;eDL_DG3;eDL_DG4;eDL_DG5;eDL_DG6;eDL_DG7;eDL_DG8;eDL_DG9;eDL_DG10;eDL_DG11;eDL_DG12;eDL_DG13;eDL_DG14;Visible_Digital_Seal;Visible_Digital_Seal_NC;Digital_Signature;RFID_Session_Data;RFID_Session_Data_Status;RFID_ePassp_Directory}we([p()],xe.prototype,"RFID_Authentication_Info");we([p()],xe.prototype,"RFID_MIFARE_Data_Validity");we([p()],xe.prototype,"RFID_MIFARE_Data");we([p()],xe.prototype,"RFID_EF_COM");we([p(),j(),K(()=>Ir)],xe.prototype,"RFID_DG1");we([p()],xe.prototype,"RFID_DG2");we([p()],xe.prototype,"RFID_DG3");we([p()],xe.prototype,"RFID_DG4");we([p()],xe.prototype,"RFID_DG5");we([p()],xe.prototype,"RFID_DG6");we([p()],xe.prototype,"RFID_DG7");we([p()],xe.prototype,"RFID_DG8");we([p()],xe.prototype,"RFID_DG9");we([p()],xe.prototype,"RFID_DG10");we([p()],xe.prototype,"RFID_DG11");we([p()],xe.prototype,"RFID_DG12");we([p()],xe.prototype,"RFID_DG13");we([p()],xe.prototype,"RFID_DG14");we([p()],xe.prototype,"RFID_DG15");we([p()],xe.prototype,"RFID_DG16");we([p()],xe.prototype,"RFID_EF_SOD");we([p()],xe.prototype,"eID_DG1");we([p()],xe.prototype,"eID_DG2");we([p()],xe.prototype,"eID_DG3");we([p()],xe.prototype,"eID_DG4");we([p()],xe.prototype,"eID_DG5");we([p()],xe.prototype,"eID_DG6");we([p()],xe.prototype,"eID_DG7");we([p()],xe.prototype,"eID_DG8");we([p()],xe.prototype,"eID_DG9");we([p()],xe.prototype,"eID_DG10");we([p()],xe.prototype,"eID_DG11");we([p()],xe.prototype,"eID_DG12");we([p()],xe.prototype,"eID_DG13");we([p()],xe.prototype,"eID_DG14");we([p()],xe.prototype,"eID_DG15");we([p()],xe.prototype,"eID_DG16");we([p()],xe.prototype,"eID_DG17");we([p()],xe.prototype,"eID_DG18");we([p()],xe.prototype,"eID_DG19");we([p()],xe.prototype,"eID_DG20");we([p()],xe.prototype,"eID_DG21");we([p()],xe.prototype,"eDL_COM");we([p()],xe.prototype,"eDL_SOD");we([p()],xe.prototype,"eDL_DG1");we([p()],xe.prototype,"eDL_DG2");we([p()],xe.prototype,"eDL_DG3");we([p()],xe.prototype,"eDL_DG4");we([p()],xe.prototype,"eDL_DG5");we([p()],xe.prototype,"eDL_DG6");we([p()],xe.prototype,"eDL_DG7");we([p()],xe.prototype,"eDL_DG8");we([p()],xe.prototype,"eDL_DG9");we([p()],xe.prototype,"eDL_DG10");we([p()],xe.prototype,"eDL_DG11");we([p()],xe.prototype,"eDL_DG12");we([p()],xe.prototype,"eDL_DG13");we([p()],xe.prototype,"eDL_DG14");we([p()],xe.prototype,"Visible_Digital_Seal");we([p()],xe.prototype,"Visible_Digital_Seal_NC");we([p()],xe.prototype,"Digital_Signature");we([p(),j(),K(()=>Or)],xe.prototype,"RFID_Session_Data");we([p(),j(),K(()=>Wn)],xe.prototype,"RFID_Session_Data_Status");we([p(),Ve(),v(k,{each:!0})],xe.prototype,"RFID_ePassp_Directory");var EB=Object.defineProperty,Fh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&EB(t,r,n),n};class nl{Data;FieldType}Fh([D(),ae()],nl.prototype,"Data");Fh([D(),He()],nl.prototype,"FieldType");var lB=Object.defineProperty,bh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&lB(t,r,n),n};class sl{RFID_BINARY_DATA;RFID_RAW_DATA}bh([p(),j(),K(()=>xe)],sl.prototype,"RFID_BINARY_DATA");bh([p(),j(),K(()=>nl)],sl.prototype,"RFID_RAW_DATA");var Uh=Object.defineProperty,uB=Object.getOwnPropertyDescriptor,IB=(e,t,r)=>t in e?Uh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tC=(e,t,r,s)=>{for(var n=s>1?void 0:s?uB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Uh(t,r,n),n},Bh=(e,t,r)=>IB(e,typeof t!="symbol"?t+"":t,r);const rC=[ce.RFID_BINARY_DATA,ce.RFID_RAW_DATA];exports.DocBinaryInfoContainer=class extends Mt{TDocBinaryInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!s)return[];const n=s.List.filter(o=>rC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Bh(exports.DocBinaryInfoContainer,"fromPlain",e=>nt(exports.DocBinaryInfoContainer,e));Bh(exports.DocBinaryInfoContainer,"validate",e=>{const t=_t(exports.DocBinaryInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocBinaryInfoContainer validation error: the data received does not match model structure!",t);return!0});tC([D(),j(),K(()=>sl)],exports.DocBinaryInfoContainer.prototype,"TDocBinaryInfo",2);tC([D(),v(ce),ct(rC)],exports.DocBinaryInfoContainer.prototype,"result_type",2);exports.DocBinaryInfoContainer=tC([Xe()],exports.DocBinaryInfoContainer);var SB=Object.defineProperty,ol=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&SB(t,r,n),n};class ai{FieldRect;FieldType;FieldName;image}ol([D(),j(),K(()=>jt)],ai.prototype,"FieldRect");ol([D(),v(At)],ai.prototype,"FieldType");ol([D(),ae()],ai.prototype,"FieldName");ol([D(),j(),K(()=>Cs)],ai.prototype,"image");var RB=Object.defineProperty,Hh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&RB(t,r,n),n};class al{pArrayFields;nFields}Hh([D(),j(),K(()=>ai)],al.prototype,"pArrayFields");Hh([D(),$()],al.prototype,"nFields");var xh=Object.defineProperty,AB=Object.getOwnPropertyDescriptor,CB=(e,t,r)=>t in e?xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nC=(e,t,r,s)=>{for(var n=s>1?void 0:s?AB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&xh(t,r,n),n},Gh=(e,t,r)=>CB(e,typeof t!="symbol"?t+"":t,r);const sC=[ce.VISUAL_GRAPHICS,ce.BARCODE_GRAPHICS,ce.LIVE_PORTRAIT,ce.EXT_PORTRAIT,ce.FINGERPRINTS,ce.RFID_GRAPHICS];exports.DocGraphicsInfoContainer=class extends Mt{DocGraphicsInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>sC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Gh(exports.DocGraphicsInfoContainer,"fromPlain",e=>nt(exports.DocGraphicsInfoContainer,e));Gh(exports.DocGraphicsInfoContainer,"validate",e=>{const t=_t(exports.DocGraphicsInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocGraphicsInfoContainer validation error: the data received does not match model structure!",t);return!0});nC([D(),j(),K(()=>al)],exports.DocGraphicsInfoContainer.prototype,"DocGraphicsInfo",2);nC([D(),v(ce),ct(sC)],exports.DocGraphicsInfoContainer.prototype,"result_type",2);exports.DocGraphicsInfoContainer=nC([Xe()],exports.DocGraphicsInfoContainer);var OB=Object.defineProperty,il=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&OB(t,r,n),n};class ii{SymbolCode;SymbolProbability;Class;SubClass}il([D(),$()],ii.prototype,"SymbolCode");il([D(),$()],ii.prototype,"SymbolProbability");il([p(),$()],ii.prototype,"Class");il([p(),$()],ii.prototype,"SubClass");var DB=Object.defineProperty,b_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&DB(t,r,n),n};class ta{SymbolRect;CandidatesCount;ListOfCandidates;BaseLineBottom;BaseLineTop}b_([p(),j({each:!0}),K(()=>jt)],ta.prototype,"SymbolRect");b_([D(),$()],ta.prototype,"CandidatesCount");b_([D(),j({each:!0}),K(()=>ii)],ta.prototype,"ListOfCandidates");b_([p(),$()],ta.prototype,"BaseLineBottom");b_([p(),$()],ta.prototype,"BaseLineTop");var TB=Object.defineProperty,U_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&TB(t,r,n),n};class ra{SymbolsCount;StringResult;Buf_Length;Buf_Text;Reserved}U_([D(),$()],ra.prototype,"SymbolsCount");U_([D(),j({each:!0}),K(()=>ta)],ra.prototype,"StringResult");U_([p(),$()],ra.prototype,"Buf_Length");U_([p(),ae()],ra.prototype,"Buf_Text");U_([p(),$()],ra.prototype,"Reserved");var dB=Object.defineProperty,mn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&dB(t,r,n),n};class Br{wFieldType;FieldName;StringsCount;StringsResult;Buf_Length;Buf_Text;FieldMask;Validity;InComparison;wLCID;Reserved2;Reserved3}mn([D(),v(A)],Br.prototype,"wFieldType");mn([D(),ae()],Br.prototype,"FieldName");mn([D(),$()],Br.prototype,"StringsCount");mn([D(),j({each:!0}),K(()=>ra)],Br.prototype,"StringsResult");mn([D(),$()],Br.prototype,"Buf_Length");mn([D(),ae()],Br.prototype,"Buf_Text");mn([p(),ae()],Br.prototype,"FieldMask");mn([p(),$()],Br.prototype,"Validity");mn([p(),$()],Br.prototype,"InComparison");mn([p(),v(Y)],Br.prototype,"wLCID");mn([p(),$()],Br.prototype,"Reserved2");mn([p(),$()],Br.prototype,"Reserved3");var fB=Object.defineProperty,NB=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&fB(t,r,n),n};class oC extends Br{FieldRect}NB([D(),j({each:!0}),K(()=>jt)],oC.prototype,"FieldRect");var pB=Object.defineProperty,wh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&pB(t,r,n),n};class _l{nFields;pArrayFields}wh([D(),$()],_l.prototype,"nFields");wh([D(),j({each:!0}),K(()=>oC)],_l.prototype,"pArrayFields");var $h=Object.defineProperty,LB=Object.getOwnPropertyDescriptor,hB=(e,t,r)=>t in e?$h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aC=(e,t,r,s)=>{for(var n=s>1?void 0:s?LB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&$h(t,r,n),n},Vh=(e,t,r)=>hB(e,typeof t!="symbol"?t+"":t,r);const iC=[ce.VISUAL_TEXT,ce.MRZ_TEXT,ce.BARCODE_TEXT,ce.MAGNETIC_STRIPE_TEXT_DATA,ce.RFID_TEXT];exports.DocVisualExtendedInfoContainer=class extends Mt{DocVisualExtendedInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>iC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Vh(exports.DocVisualExtendedInfoContainer,"fromPlain",e=>nt(exports.DocVisualExtendedInfoContainer,e));Vh(exports.DocVisualExtendedInfoContainer,"validate",e=>{const t=_t(exports.DocVisualExtendedInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocVisualExtendedInfoContainer validation error: the data received does not match model structure!",t);return!0});aC([D(),j(),K(()=>_l)],exports.DocVisualExtendedInfoContainer.prototype,"DocVisualExtendedInfo",2);aC([D(),v(ce),ct(iC)],exports.DocVisualExtendedInfoContainer.prototype,"result_type",2);exports.DocVisualExtendedInfoContainer=aC([Xe()],exports.DocVisualExtendedInfoContainer);var Yh=Object.defineProperty,mB=Object.getOwnPropertyDescriptor,yB=(e,t,r)=>t in e?Yh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_C=(e,t,r,s)=>{for(var n=s>1?void 0:s?mB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Yh(t,r,n),n},jh=(e,t,r)=>yB(e,typeof t!="symbol"?t+"":t,r);const cC=[ce.ENCRYPTED_RCL];exports.EncryptedRCLContainer=class extends Mt{EncryptedRCL;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>cC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};jh(exports.EncryptedRCLContainer,"fromPlain",e=>nt(exports.EncryptedRCLContainer,e));jh(exports.EncryptedRCLContainer,"validate",e=>{const t=_t(exports.EncryptedRCLContainer.fromPlain(e));if(t.length)throw new Bt("EncryptedRCLContainer validation error: the data received does not match model structure!",t);return!0});_C([D(),ae(),dn()],exports.EncryptedRCLContainer.prototype,"EncryptedRCL",2);_C([D(),v(ce),ct(cC)],exports.EncryptedRCLContainer.prototype,"result_type",2);exports.EncryptedRCLContainer=_C([Xe()],exports.EncryptedRCLContainer);var gB=Object.defineProperty,na=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&gB(t,r,n),n};class Vs{type;result;featureType;areas;mean;std_dev;probability}na([D(),v($r)],Vs.prototype,"type");na([D(),v(V)],Vs.prototype,"result");na([D(),v(De)],Vs.prototype,"featureType");na([p(),j(),K(()=>Xo)],Vs.prototype,"areas");na([D(),He()],Vs.prototype,"mean");na([D(),He()],Vs.prototype,"std_dev");na([D(),$()],Vs.prototype,"probability");var PB=Object.defineProperty,EC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&PB(t,r,n),n};class B_{result;List;Count}EC([D(),v(V)],B_.prototype,"result");EC([D(),j({each:!0}),K(()=>Vs),Ve()],B_.prototype,"List");EC([D(),$()],B_.prototype,"Count");var kh=Object.defineProperty,MB=Object.getOwnPropertyDescriptor,vB=(e,t,r)=>t in e?kh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lC=(e,t,r,s)=>{for(var n=s>1?void 0:s?MB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&kh(t,r,n),n},Kh=(e,t,r)=>vB(e,typeof t!="symbol"?t+"":t,r);const uC=[ce.IMAGE_QUALITY];exports.ImageQualityCheckListContainer=class extends Mt{ImageQualityCheckList;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>uC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Kh(exports.ImageQualityCheckListContainer,"fromPlain",e=>nt(exports.ImageQualityCheckListContainer,e));Kh(exports.ImageQualityCheckListContainer,"validate",e=>{const t=_t(exports.ImageQualityCheckListContainer.fromPlain(e));if(t.length)throw new Bt("ImageQualityCheckListContainer validation error: the data received does not match model structure!",t);return!0});lC([D(),j(),K(()=>B_)],exports.ImageQualityCheckListContainer.prototype,"ImageQualityCheckList",2);lC([D(),v(ce),ct(uC)],exports.ImageQualityCheckListContainer.prototype,"result_type",2);exports.ImageQualityCheckListContainer=lC([Xe()],exports.ImageQualityCheckListContainer);var FB=Object.defineProperty,Ys=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&FB(t,r,n),n};class kn{source;value;originalValue;originalPageIndex;pageIndex;lightIndex;containerType;fieldRect;rfidOrigin}Ys([D(),v(Gt)],kn.prototype,"source");Ys([p(),ae(),dn()],kn.prototype,"value");Ys([p(),ae(),dn()],kn.prototype,"originalValue");Ys([p(),$()],kn.prototype,"originalPageIndex");Ys([D(),$()],kn.prototype,"pageIndex");Ys([D(),v(Pt)],kn.prototype,"lightIndex");Ys([D(),$()],kn.prototype,"containerType");Ys([p(),j(),K(()=>jt)],kn.prototype,"fieldRect");Ys([p(),j(),K(()=>Ao)],kn.prototype,"rfidOrigin");var bB=Object.defineProperty,cl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&bB(t,r,n),n};class uo{fieldName;fieldType;valueList;valueCount;static fromContainers=(t,r)=>{const s=[];return t.forEach(n=>{const{Images:o}=n;o.fieldList.forEach(a=>{if(!r){s.push(a);return}r.includes(a.fieldType)&&s.push(a)})}),s}}cl([D(),ae()],uo.prototype,"fieldName");cl([D(),v(At)],uo.prototype,"fieldType");cl([D(),j({each:!0}),K(()=>kn),Ve()],uo.prototype,"valueList");cl([p(),$(),co(({obj:e})=>e.valueList.length,{toClassOnly:!0})],uo.prototype,"valueCount");var UB=Object.defineProperty,Wh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&UB(t,r,n),n};class El{containerType;source}Wh([D(),He()],El.prototype,"containerType");Wh([D(),v(Gt)],El.prototype,"source");var BB=Object.defineProperty,ll=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&BB(t,r,n),n};class _i{fieldCount;availableSourceCount;availableSourceList;fieldList}ll([p(),$(),co(({obj:e})=>e.fieldList.length,{toClassOnly:!0})],_i.prototype,"fieldCount");ll([p(),$(),co(({obj:e})=>e.availableSourceList.length,{toClassOnly:!0})],_i.prototype,"availableSourceCount");ll([D(),j({each:!0}),K(()=>El),Ve()],_i.prototype,"availableSourceList");ll([D(),j({each:!0}),K(()=>uo),Ve()],_i.prototype,"fieldList");var Zh=Object.defineProperty,HB=Object.getOwnPropertyDescriptor,xB=(e,t,r)=>t in e?Zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,IC=(e,t,r,s)=>{for(var n=s>1?void 0:s?HB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Zh(t,r,n),n},Xh=(e,t,r)=>xB(e,typeof t!="symbol"?t+"":t,r);const SC=[ce.IMAGES];exports.ImagesResultContainer=class extends Mt{Images;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>SC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Xh(exports.ImagesResultContainer,"fromPlain",e=>nt(exports.ImagesResultContainer,e));Xh(exports.ImagesResultContainer,"validate",e=>{const t=_t(exports.ImagesResultContainer.fromPlain(e));if(t.length)throw new Bt("ImagesResultContainer validation error: the data received does not match model structure!",t);return!0});IC([D(),j(),K(()=>_i)],exports.ImagesResultContainer.prototype,"Images",2);IC([D(),v(ce),ct(SC)],exports.ImagesResultContainer.prototype,"result_type",2);exports.ImagesResultContainer=IC([Xe()],exports.ImagesResultContainer);var qh=Object.defineProperty,GB=Object.getOwnPropertyDescriptor,wB=(e,t,r)=>t in e?qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RC=(e,t,r,s)=>{for(var n=s>1?void 0:s?GB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&qh(t,r,n),n},Qh=(e,t,r)=>wB(e,typeof t!="symbol"?t+"":t,r);const AC=[ce.LICENSE];exports.LicenseContainer=class extends Mt{License;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>AC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Qh(exports.LicenseContainer,"fromPlain",e=>nt(exports.LicenseContainer,e));Qh(exports.LicenseContainer,"validate",e=>{const t=_t(exports.LicenseContainer.fromPlain(e));if(t.length)throw new Bt("LicenseContainer validation error: the data received does not match model structure!",t);return!0});RC([D(),ae(),dn()],exports.LicenseContainer.prototype,"License",2);RC([D(),v(ce),ct(AC)],exports.LicenseContainer.prototype,"result_type",2);exports.LicenseContainer=RC([Xe()],exports.LicenseContainer);var $B=Object.defineProperty,sa=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&$B(t,r,n),n};class js{wFieldType;wLCID;Field_MRZ;Field_Visual;Field_Barcode;Field_RFID;Matrix;static getMRZDataVerificationResult=t=>t.Matrix[0];static getRFIDDataVerificationResult=t=>t.Matrix[1];static getVisualDataVerificationResult=t=>t.Matrix[2];static getBarcodeDataVerificationResult=t=>t.Matrix[3];static getMRZAndRFIDDataComparingResult=t=>t.Matrix[4];static getMRZAndVisualDataComparingResult=t=>t.Matrix[5];static getMRZAndBarcodeDataComparingResult=t=>t.Matrix[6];static getVisualAndRFIDDataComparingResult=t=>t.Matrix[7];static getVisualAndBarcodeDataComparingResult=t=>t.Matrix[8];static getRFIDAndBarcodeDataComparingResult=t=>t.Matrix[9]}sa([D(),v(A)],js.prototype,"wFieldType");sa([p(),v(Y)],js.prototype,"wLCID");sa([p(),ae()],js.prototype,"Field_MRZ");sa([p(),ae()],js.prototype,"Field_Visual");sa([p(),ae()],js.prototype,"Field_Barcode");sa([p(),ae()],js.prototype,"Field_RFID");sa([D(),v(UA,{each:!0}),Ve(),nh(10),sh(10)],js.prototype,"Matrix");var VB=Object.defineProperty,CC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&VB(t,r,n),n};class H_{Count;pFieldMaps;pDateFormat}CC([D(),$()],H_.prototype,"Count");CC([D(),Ve(),j({each:!0}),K(()=>js)],H_.prototype,"pFieldMaps");CC([p(),ae()],H_.prototype,"pDateFormat");var zh=Object.defineProperty,YB=Object.getOwnPropertyDescriptor,jB=(e,t,r)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,OC=(e,t,r,s)=>{for(var n=s>1?void 0:s?YB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&zh(t,r,n),n},Jh=(e,t,r)=>jB(e,typeof t!="symbol"?t+"":t,r);const DC=[ce.LEXICAL_ANALYSIS];exports.ListVerifiedFieldContainer=class extends Mt{ListVerifiedFields;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>DC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Jh(exports.ListVerifiedFieldContainer,"fromPlain",e=>nt(exports.ListVerifiedFieldContainer,e));Jh(exports.ListVerifiedFieldContainer,"validate",e=>{const t=_t(exports.ListVerifiedFieldContainer.fromPlain(e));if(t.length)throw new Bt("ListVerifiedFieldContainer validation error: the data received does not match model structure!",t);return!0});OC([D(),j(),K(()=>H_)],exports.ListVerifiedFieldContainer.prototype,"ListVerifiedFields",2);OC([D(),v(ce),ct(DC)],exports.ListVerifiedFieldContainer.prototype,"result_type",2);exports.ListVerifiedFieldContainer=OC([Xe()],exports.ListVerifiedFieldContainer);var e1=Object.defineProperty,kB=Object.getOwnPropertyDescriptor,KB=(e,t,r)=>t in e?e1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ul=(e,t,r,s)=>{for(var n=s>1?void 0:s?kB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&e1(t,r,n),n},t1=(e,t,r)=>KB(e,typeof t!="symbol"?t+"":t,r);const TC=[ce.DOCUMENT_TYPE];exports.OneCandidateContainer=class extends Mt{OneCandidate;XML_buffer;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>TC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};t1(exports.OneCandidateContainer,"fromPlain",e=>nt(exports.OneCandidateContainer,e));t1(exports.OneCandidateContainer,"validate",e=>{const t=_t(exports.OneCandidateContainer.fromPlain(e));if(t.length)throw new Bt("ChosenDocumentTypeContainer validation error: the data received does not match model structure!",t);return!0});ul([D(),j(),K(()=>Hr)],exports.OneCandidateContainer.prototype,"OneCandidate",2);ul([p(),ae()],exports.OneCandidateContainer.prototype,"XML_buffer",2);ul([D(),v(ce),ct(TC)],exports.OneCandidateContainer.prototype,"result_type",2);exports.OneCandidateContainer=ul([Xe()],exports.OneCandidateContainer);var r1=Object.defineProperty,WB=Object.getOwnPropertyDescriptor,ZB=(e,t,r)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dC=(e,t,r,s)=>{for(var n=s>1?void 0:s?WB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&r1(t,r,n),n},n1=(e,t,r)=>ZB(e,typeof t!="symbol"?t+"":t,r);const fC=[ce.DOCUMENT_IMAGE,ce.RAW_UNCROPPED_IMAGE];exports.RawImageContainer=class extends Mt{RawImageContainer;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>fC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};n1(exports.RawImageContainer,"fromPlain",e=>nt(exports.RawImageContainer,e));n1(exports.RawImageContainer,"validate",e=>{const t=_t(exports.RawImageContainer.fromPlain(e));if(t.length)throw new Bt("RawImageContainer validation error: the data received does not match model structure!",t);return!0});dC([D(),j(),K(()=>Cs)],exports.RawImageContainer.prototype,"RawImageContainer",2);dC([D(),v(ce),ct(fC)],exports.RawImageContainer.prototype,"result_type",2);exports.RawImageContainer=dC([Xe()],exports.RawImageContainer);var XB=Object.defineProperty,ks=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&XB(t,r,n),n};class Kn{overallStatus;docType;expiry;imageQA;mrz;pagesCount;security;text;vds}ks([D(),v(V)],Kn.prototype,"overallStatus");ks([D(),v(V)],Kn.prototype,"docType");ks([D(),v(V)],Kn.prototype,"expiry");ks([D(),v(V)],Kn.prototype,"imageQA");ks([D(),v(V)],Kn.prototype,"mrz");ks([D(),$()],Kn.prototype,"pagesCount");ks([D(),v(V)],Kn.prototype,"security");ks([D(),v(V)],Kn.prototype,"text");ks([p(),$()],Kn.prototype,"vds");var qB=Object.defineProperty,oa=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&qB(t,r,n),n};class Wn{overallStatus;AA;BAC;CA;PA;PACE;TA}oa([D(),v(V)],Wn.prototype,"overallStatus");oa([D(),v(V)],Wn.prototype,"AA");oa([D(),v(V)],Wn.prototype,"BAC");oa([D(),v(V)],Wn.prototype,"CA");oa([D(),v(V)],Wn.prototype,"PA");oa([D(),v(V)],Wn.prototype,"PACE");oa([D(),v(V)],Wn.prototype,"TA");var QB=Object.defineProperty,aa=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&QB(t,r,n),n};class Ks{overallStatus;optical;portrait;rfid;stopList;detailsRFID;detailsOptical}aa([D(),v(V)],Ks.prototype,"overallStatus");aa([D(),v(V)],Ks.prototype,"optical");aa([D(),v(V)],Ks.prototype,"portrait");aa([D(),v(V)],Ks.prototype,"rfid");aa([D(),v(V)],Ks.prototype,"stopList");aa([p(),j(),K(()=>Wn)],Ks.prototype,"detailsRFID");aa([D(),j(),K(()=>Kn)],Ks.prototype,"detailsOptical");var s1=Object.defineProperty,zB=Object.getOwnPropertyDescriptor,JB=(e,t,r)=>t in e?s1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NC=(e,t,r,s)=>{for(var n=s>1?void 0:s?zB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&s1(t,r,n),n},o1=(e,t,r)=>JB(e,typeof t!="symbol"?t+"":t,r);const pC=[ce.STATUS];exports.StatusContainer=class extends Mt{Status;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>pC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};o1(exports.StatusContainer,"fromPlain",e=>nt(exports.StatusContainer,e,{exposeUnsetFields:!1}));o1(exports.StatusContainer,"validate",e=>{const t=_t(exports.StatusContainer.fromPlain(e));if(t.length)throw new Bt("StatusContainer validation error: the data received does not match model structure!",t);return!0});NC([D(),j(),K(()=>Ks)],exports.StatusContainer.prototype,"Status",2);NC([D(),v(ce),ct(pC)],exports.StatusContainer.prototype,"result_type",2);exports.StatusContainer=NC([Xe()],exports.StatusContainer);var eH=Object.defineProperty,LC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&eH(t,r,n),n};class x_{sourceLeft;sourceRight;status}LC([D(),v(Gt)],x_.prototype,"sourceLeft");LC([D(),v(Gt)],x_.prototype,"sourceRight");LC([D(),v(V)],x_.prototype,"status");var tH=Object.defineProperty,hC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&tH(t,r,n),n};class G_{code;probability;rect}hC([D(),$()],G_.prototype,"code");hC([D(),$()],G_.prototype,"probability");hC([p(),j(),K(()=>jt)],G_.prototype,"rect");var rH=Object.defineProperty,Ss=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&rH(t,r,n),n};class yn{source;value;originalValue;originalValidity;originalSymbols;pageIndex;probability;fieldRect;rfidOrigin;containerType}Ss([D(),v(Gt)],yn.prototype,"source");Ss([ae(),D(),co(({value:e})=>e?String(e):"")],yn.prototype,"value");Ss([p(),ae()],yn.prototype,"originalValue");Ss([D(),v(V)],yn.prototype,"originalValidity");Ss([p(),j({each:!0}),K(()=>G_),Ve()],yn.prototype,"originalSymbols");Ss([D(),$()],yn.prototype,"pageIndex");Ss([D(),He()],yn.prototype,"probability");Ss([p(),j(),K(()=>jt)],yn.prototype,"fieldRect");Ss([p(),j(),K(()=>Ao)],yn.prototype,"rfidOrigin");Ss([p(),$()],yn.prototype,"containerType");var nH=Object.defineProperty,a1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&nH(t,r,n),n};class Il{source;status}a1([D(),v(Gt)],Il.prototype,"source");a1([D(),v(V)],Il.prototype,"status");var sH=Object.defineProperty,Zn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&sH(t,r,n),n};class In{fieldType;fieldName;lcid;lcidName;status;validityStatus;comparisonStatus;value;valueList;validityList;comparisonList;static fromContainers=(t,r)=>{const s=[];return t.forEach(n=>{const{Text:o}=n;o.fieldList.forEach(a=>{a.fieldType===r&&s.push(a)})}),s}}Zn([D(),v(A)],In.prototype,"fieldType");Zn([D(),ae()],In.prototype,"fieldName");Zn([D(),v(Y)],In.prototype,"lcid");Zn([p(),ae()],In.prototype,"lcidName");Zn([D(),v(V)],In.prototype,"status");Zn([D(),v(V)],In.prototype,"validityStatus");Zn([D(),v(V)],In.prototype,"comparisonStatus");Zn([D(),ae(),co(({value:e})=>e?String(e):"")],In.prototype,"value");Zn([D(),j({each:!0}),K(()=>yn),Ve()],In.prototype,"valueList");Zn([D(),j({each:!0}),K(()=>Il),Ve()],In.prototype,"validityList");Zn([D(),j({each:!0}),K(()=>x_),Ve()],In.prototype,"comparisonList");var oH=Object.defineProperty,mC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&oH(t,r,n),n};class w_{source;validityStatus;containerType}mC([D(),v(Gt)],w_.prototype,"source");mC([D(),v(V)],w_.prototype,"validityStatus");mC([p(),$()],w_.prototype,"containerType");var aH=Object.defineProperty,ci=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&aH(t,r,n),n};class Io{status;validityStatus;comparisonStatus;dateFormat;fieldList;availableSourceList}ci([D(),v(V)],Io.prototype,"status");ci([D(),v(V)],Io.prototype,"validityStatus");ci([D(),v(V)],Io.prototype,"comparisonStatus");ci([D(),ae()],Io.prototype,"dateFormat");ci([D(),j({each:!0}),K(()=>In),Ve()],Io.prototype,"fieldList");ci([D(),j({each:!0}),K(()=>w_),Ve()],Io.prototype,"availableSourceList");var i1=Object.defineProperty,iH=Object.getOwnPropertyDescriptor,_H=(e,t,r)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yC=(e,t,r,s)=>{for(var n=s>1?void 0:s?iH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&i1(t,r,n),n},_1=(e,t,r)=>_H(e,typeof t!="symbol"?t+"":t,r);const gC=[ce.TEXT];exports.TextResultContainer=class extends Mt{Text;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>gC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};_1(exports.TextResultContainer,"fromPlain",e=>nt(exports.TextResultContainer,e,{exposeUnsetFields:!1}));_1(exports.TextResultContainer,"validate",e=>{const t=_t(exports.TextResultContainer.fromPlain(e));if(t.length)throw new Bt("TextResultContainer validation error: the data received does not match model structure!",t);return!0});yC([D(),j(),K(()=>Io)],exports.TextResultContainer.prototype,"Text",2);yC([D(),v(ce),ct(gC)],exports.TextResultContainer.prototype,"result_type",2);exports.TextResultContainer=yC([Xe()],exports.TextResultContainer);var cH=Object.defineProperty,Sl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cH(t,r,n),n};class Ei extends Br{OriginDG;OriginDGTag;OriginTagEntry;OriginEntryView}Sl([D(),$()],Ei.prototype,"OriginDG");Sl([p(),$()],Ei.prototype,"OriginDGTag");Sl([D(),$()],Ei.prototype,"OriginTagEntry");Sl([p(),$()],Ei.prototype,"OriginEntryView");var EH=Object.defineProperty,c1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&EH(t,r,n),n};class Rl{nFields;pArrayFields}c1([D(),$()],Rl.prototype,"nFields");c1([D(),j(),K(()=>Ei)],Rl.prototype,"pArrayFields");var E1=Object.defineProperty,lH=Object.getOwnPropertyDescriptor,uH=(e,t,r)=>t in e?E1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PC=(e,t,r,s)=>{for(var n=s>1?void 0:s?lH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&E1(t,r,n),n},l1=(e,t,r)=>uH(e,typeof t!="symbol"?t+"":t,r);const MC=[ce.RFID_TEXT];exports.RFIDTextDataContainer=class extends Mt{DocVisualExtendedInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>MC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};l1(exports.RFIDTextDataContainer,"fromPlain",e=>nt(exports.RFIDTextDataContainer,e));l1(exports.RFIDTextDataContainer,"validate",e=>{const t=_t(exports.RFIDTextDataContainer.fromPlain(e));if(t.length)throw new Bt("RFIDTextDataContainer validation error: the data received does not match model structure!",t);return!0});PC([D(),j(),K(()=>Rl)],exports.RFIDTextDataContainer.prototype,"DocVisualExtendedInfo",2);PC([D(),v(ce),ct(MC)],exports.RFIDTextDataContainer.prototype,"result_type",2);exports.RFIDTextDataContainer=PC([Xe()],exports.RFIDTextDataContainer);var u1=Object.defineProperty,IH=Object.getOwnPropertyDescriptor,SH=(e,t,r)=>t in e?u1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vC=(e,t,r,s)=>{for(var n=s>1?void 0:s?IH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&u1(t,r,n),n},I1=(e,t,r)=>SH(e,typeof t!="symbol"?t+"":t,r);const FC=[ce.MRZ_POSITION];exports.MRZPositionContainer=class extends Mt{MrzPosition;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>FC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};I1(exports.MRZPositionContainer,"fromPlain",e=>nt(exports.MRZPositionContainer,e));I1(exports.MRZPositionContainer,"validate",e=>{const t=_t(exports.MRZPositionContainer.fromPlain(e));if(t.length)throw new Bt("MRZPositionContainer validation error: the data received does not match model structure!",t);return!0});vC([D(),j(),K(()=>ir)],exports.MRZPositionContainer.prototype,"MrzPosition",2);vC([D(),v(ce),ct(FC)],exports.MRZPositionContainer.prototype,"result_type",2);exports.MRZPositionContainer=vC([Xe()],exports.MRZPositionContainer);var RH=Object.defineProperty,Al=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&RH(t,r,n),n};class li{Left;Top;Right;Bottom}Al([p(),$()],li.prototype,"Left");Al([p(),$()],li.prototype,"Top");Al([p(),$()],li.prototype,"Right");Al([p(),$()],li.prototype,"Bottom");var AH=Object.defineProperty,ui=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&AH(t,r,n),n};class So{FieldLength;FieldPos;FieldType;TEST_RESULT;ValidCheckSum;reserved}ui([D(),$()],So.prototype,"FieldLength");ui([D(),$()],So.prototype,"FieldPos");ui([D(),$()],So.prototype,"FieldType");ui([D(),$()],So.prototype,"TEST_RESULT");ui([D(),$()],So.prototype,"ValidCheckSum");ui([D(),$()],So.prototype,"reserved");var CH=Object.defineProperty,Dr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&CH(t,r,n),n};class _r{ALIGNMENT_NEAREST_SYMBOLS;CONTRAST_PRINT;CONTRAST_SYMBOL;CharSymbol;EDGE;EMPTINESS;STAIN;SYMBOLS_INTERVAL;SYMBOL_PARAM;SYMBOL_SIZE;SizeErrorAlignWithNext;SizeErrorAlignWithPrev;SizeErrorIntervWithNext;SizeErrorIntervWithPrev;SizeErrorSymbolHeight;SizeErrorSymbolWidth;SymbolBounds}Dr([D(),$()],_r.prototype,"ALIGNMENT_NEAREST_SYMBOLS");Dr([D(),$()],_r.prototype,"CONTRAST_PRINT");Dr([D(),$()],_r.prototype,"CONTRAST_SYMBOL");Dr([D(),$()],_r.prototype,"CharSymbol");Dr([D(),$()],_r.prototype,"EDGE");Dr([D(),$()],_r.prototype,"EMPTINESS");Dr([D(),$()],_r.prototype,"STAIN");Dr([D(),$()],_r.prototype,"SYMBOLS_INTERVAL");Dr([D(),$()],_r.prototype,"SYMBOL_PARAM");Dr([D(),$()],_r.prototype,"SYMBOL_SIZE");Dr([D(),$()],_r.prototype,"SizeErrorAlignWithNext");Dr([D(),$()],_r.prototype,"SizeErrorAlignWithPrev");Dr([D(),$()],_r.prototype,"SizeErrorIntervWithNext");Dr([D(),$()],_r.prototype,"SizeErrorIntervWithPrev");Dr([D(),$()],_r.prototype,"SizeErrorSymbolHeight");Dr([D(),$()],_r.prototype,"SizeErrorSymbolWidth");Dr([D(),j(),K(()=>jt)],_r.prototype,"SymbolBounds");var OH=Object.defineProperty,Tr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&OH(t,r,n),n};class cr{ALIGNMENT_SYMBOLS_IN_STRING;CHECK_SUMS;ErrorPOSITION;FieldCount;Fields;STRINGS_DISTANCE;STRINGS_INTERVAL;STRING_FILLING;STRINGS_POSITION;SYMBOLS_PARAM;SizeError_ALIGNMENT;SizeError_DISTANCE;SizeError_INTERVAL;StringAngle;StringBorders;SymbolsCount;SymbolsEstimations}Tr([D(),v(V)],cr.prototype,"ALIGNMENT_SYMBOLS_IN_STRING");Tr([D(),v(V)],cr.prototype,"CHECK_SUMS");Tr([D(),j(),K(()=>li)],cr.prototype,"ErrorPOSITION");Tr([D(),$()],cr.prototype,"FieldCount");Tr([D(),j({each:!0}),Ve(),K(()=>So)],cr.prototype,"Fields");Tr([D(),v(V)],cr.prototype,"STRINGS_DISTANCE");Tr([D(),v(V)],cr.prototype,"STRINGS_INTERVAL");Tr([D(),v(V)],cr.prototype,"STRING_FILLING");Tr([p(),v(V)],cr.prototype,"STRINGS_POSITION");Tr([D(),v(V)],cr.prototype,"SYMBOLS_PARAM");Tr([D(),$()],cr.prototype,"SizeError_ALIGNMENT");Tr([D(),$()],cr.prototype,"SizeError_DISTANCE");Tr([D(),$()],cr.prototype,"SizeError_INTERVAL");Tr([D(),$()],cr.prototype,"StringAngle");Tr([D(),j(),K(()=>jt)],cr.prototype,"StringBorders");Tr([D(),$()],cr.prototype,"SymbolsCount");Tr([D(),j({each:!0}),Ve(),K(()=>_r)],cr.prototype,"SymbolsEstimations");var DH=Object.defineProperty,Rs=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&DH(t,r,n),n};class gn{CHECK_SUMS;CONTRAST_PRINT;DOC_FORMAT;MRZ_FORMAT;PRINT_POSITION;STAIN_MRZ;SYMBOLS_PARAM;StrCount;Strings;TEXTUAL_FILLING}Rs([D(),v(V)],gn.prototype,"CHECK_SUMS");Rs([D(),v(V)],gn.prototype,"CONTRAST_PRINT");Rs([D(),$()],gn.prototype,"DOC_FORMAT");Rs([D(),$()],gn.prototype,"MRZ_FORMAT");Rs([D(),v(V)],gn.prototype,"PRINT_POSITION");Rs([D(),v(V)],gn.prototype,"STAIN_MRZ");Rs([D(),v(V)],gn.prototype,"SYMBOLS_PARAM");Rs([D(),$()],gn.prototype,"StrCount");Rs([D(),j(),K(()=>cr)],gn.prototype,"Strings");Rs([D(),v(V)],gn.prototype,"TEXTUAL_FILLING");var S1=Object.defineProperty,TH=Object.getOwnPropertyDescriptor,dH=(e,t,r)=>t in e?S1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bC=(e,t,r,s)=>{for(var n=s>1?void 0:s?TH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&S1(t,r,n),n},R1=(e,t,r)=>dH(e,typeof t!="symbol"?t+"":t,r);const UC=[ce.MRZ_TEST_QUALITY];exports.MRZTestQualityContainer=class extends Mt{MRZTestQuality;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>UC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};R1(exports.MRZTestQualityContainer,"fromPlain",e=>nt(exports.MRZTestQualityContainer,e));R1(exports.MRZTestQualityContainer,"validate",e=>{const t=_t(exports.MRZTestQualityContainer.fromPlain(e));if(t.length)throw new Bt("MRZTestQualityContainer validation error: the data received does not match model structure!",t);return!0});bC([D(),j(),K(()=>gn)],exports.MRZTestQualityContainer.prototype,"MRZTestQuality",2);bC([D(),v(ce),ct(UC)],exports.MRZTestQualityContainer.prototype,"result_type",2);exports.MRZTestQualityContainer=bC([Xe()],exports.MRZTestQualityContainer);var fH=Object.defineProperty,A1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&fH(t,r,n),n};class Cl{RecResult;Candidates}A1([p(),v(DA)],Cl.prototype,"RecResult");A1([p(),j({each:!0}),K(()=>Hr),Ve()],Cl.prototype,"Candidates");var C1=Object.defineProperty,NH=Object.getOwnPropertyDescriptor,pH=(e,t,r)=>t in e?C1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BC=(e,t,r,s)=>{for(var n=s>1?void 0:s?NH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&C1(t,r,n),n},O1=(e,t,r)=>pH(e,typeof t!="symbol"?t+"":t,r);const HC=[ce.DOCUMENT_TYPE_CANDIDATES];exports.DocumentTypesCandidatesContainer=class extends Mt{CandidatesList;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>HC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};O1(exports.DocumentTypesCandidatesContainer,"fromPlain",e=>nt(exports.DocumentTypesCandidatesContainer,e));O1(exports.DocumentTypesCandidatesContainer,"validate",e=>{const t=_t(exports.DocumentTypesCandidatesContainer.fromPlain(e));if(t.length)throw new Bt("DocumentTypesCandidatesContainer validation error: the data received does not match model structure!",t);return!0});BC([p(),j(),K(()=>Cl)],exports.DocumentTypesCandidatesContainer.prototype,"CandidatesList",2);BC([D(),v(ce),ct(HC)],exports.DocumentTypesCandidatesContainer.prototype,"result_type",2);exports.DocumentTypesCandidatesContainer=BC([Xe()],exports.DocumentTypesCandidatesContainer);var LH=Object.defineProperty,hH=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&LH(t,r,n),n};let xC=class{boundingRect};hH([D(),Ve(),$({each:!0})],xC.prototype,"boundingRect");var mH=Object.defineProperty,GC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&mH(t,r,n),n};class Ol{length;maxLength;symbols}GC([D(),$()],Ol.prototype,"length");GC([D(),$()],Ol.prototype,"maxLength");GC([D(),j({each:!0}),K(()=>xC),Ve()],Ol.prototype,"symbols");var yH=Object.defineProperty,wC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&yH(t,r,n),n};class $_{MRZFormat;MRZRows;MRZRowsNum;boundingQuadrangle}wC([D(),$()],$_.prototype,"MRZFormat");wC([D(),$()],$_.prototype,"MRZRowsNum");wC([D(),Ve(),$({each:!0})],$_.prototype,"boundingQuadrangle");var D1=Object.defineProperty,gH=Object.getOwnPropertyDescriptor,PH=(e,t,r)=>t in e?D1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$C=(e,t,r,s)=>{for(var n=s>1?void 0:s?gH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&D1(t,r,n),n},T1=(e,t,r)=>PH(e,typeof t!="symbol"?t+"":t,r);const VC=[ce.MRZ_DETECTOR];exports.MRZDetectorContainer=class extends Mt{ResultMRZDetector;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>VC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};T1(exports.MRZDetectorContainer,"fromPlain",e=>nt(exports.MRZDetectorContainer,e));T1(exports.MRZDetectorContainer,"validate",e=>{const t=_t(exports.MRZDetectorContainer.fromPlain(e));if(t.length)throw new Bt("MRZDetectorContainer validation error: the data received does not match model structure!",t);return!0});$C([D(),j(),K(()=>$_)],exports.MRZDetectorContainer.prototype,"ResultMRZDetector",2);$C([D(),v(ce),ct(VC)],exports.MRZDetectorContainer.prototype,"result_type",2);exports.MRZDetectorContainer=$C([Xe()],exports.MRZDetectorContainer);var MH=Object.defineProperty,Ro=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&MH(t,r,n),n};class As{CoincidenceToPhotoArea;FaceRect;FieldRect;GraphFieldNumber;Landmarks;LightType;Orientation;Probability}Ro([D(),$()],As.prototype,"CoincidenceToPhotoArea");Ro([D(),j(),K(()=>jt)],As.prototype,"FaceRect");Ro([D(),j(),K(()=>jt)],As.prototype,"FieldRect");Ro([D(),$()],As.prototype,"GraphFieldNumber");Ro([D(),j({each:!0}),K(()=>Os),Ve()],As.prototype,"Landmarks");Ro([D(),v(Pt)],As.prototype,"LightType");Ro([D(),$()],As.prototype,"Orientation");Ro([D(),$()],As.prototype,"Probability");var vH=Object.defineProperty,V_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&vH(t,r,n),n};class ia{Count;CountFalseDetection;Res;Reserved1;Reserved2}V_([D(),$()],ia.prototype,"Count");V_([D(),$()],ia.prototype,"CountFalseDetection");V_([D(),j({each:!0}),K(()=>As),Ve()],ia.prototype,"Res");V_([p(),$()],ia.prototype,"Reserved1");V_([p(),$()],ia.prototype,"Reserved2");var d1=Object.defineProperty,FH=Object.getOwnPropertyDescriptor,bH=(e,t,r)=>t in e?d1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YC=(e,t,r,s)=>{for(var n=s>1?void 0:s?FH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&d1(t,r,n),n},f1=(e,t,r)=>bH(e,typeof t!="symbol"?t+"":t,r);const jC=[ce.FACE_DETECTION];exports.FaceDetectionContainer=class extends Mt{FaceDetection;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>jC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};f1(exports.FaceDetectionContainer,"fromPlain",e=>nt(exports.FaceDetectionContainer,e));f1(exports.FaceDetectionContainer,"validate",e=>{const t=_t(exports.FaceDetectionContainer.fromPlain(e));if(t.length)throw new Bt("FaceDetectionContainer validation error: the data received does not match model structure!",t);return!0});YC([p(),j(),K(()=>ia)],exports.FaceDetectionContainer.prototype,"FaceDetection",2);YC([D(),v(ce),ct(jC)],exports.FaceDetectionContainer.prototype,"result_type",2);exports.FaceDetectionContainer=YC([Xe()],exports.FaceDetectionContainer);var UH=Object.defineProperty,N1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&UH(t,r,n),n};class Dl{Data;Length}N1([D(),ae()],Dl.prototype,"Data");N1([D(),$()],Dl.prototype,"Length");var BH=Object.defineProperty,_a=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&BH(t,r,n),n};class Ws{FieldType;File_Image;GraphicsType;OriginDG;OriginDGTag;OriginEntryView;OriginTagEntry}_a([D(),$()],Ws.prototype,"FieldType");_a([D(),j(),K(()=>Dl)],Ws.prototype,"File_Image");_a([D(),$()],Ws.prototype,"GraphicsType");_a([D(),$()],Ws.prototype,"OriginDG");_a([D(),$()],Ws.prototype,"OriginDGTag");_a([D(),$()],Ws.prototype,"OriginEntryView");_a([D(),$()],Ws.prototype,"OriginTagEntry");var HH=Object.defineProperty,xH=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&HH(t,r,n),n};class kC{RFID_ORIGINAL_GRAPH_DATA}xH([D(),j({each:!0}),K(()=>Ws),Ve()],kC.prototype,"RFID_ORIGINAL_GRAPH_DATA");var p1=Object.defineProperty,GH=Object.getOwnPropertyDescriptor,wH=(e,t,r)=>t in e?p1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KC=(e,t,r,s)=>{for(var n=s>1?void 0:s?GH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&p1(t,r,n),n},L1=(e,t,r)=>wH(e,typeof t!="symbol"?t+"":t,r);const WC=[ce.RFID_ORIGINAL_GRAPHICS];exports.RFIDGraphicsInfoContainer=class extends Mt{TOriginalRFIDGraphicsInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>WC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};L1(exports.RFIDGraphicsInfoContainer,"fromPlain",e=>nt(exports.RFIDGraphicsInfoContainer,e));L1(exports.RFIDGraphicsInfoContainer,"validate",e=>{const t=_t(exports.RFIDGraphicsInfoContainer.fromPlain(e));if(t.length)throw new Bt("RFIDGraphicsInfoContainer validation error: the data received does not match model structure!",t);return!0});KC([D(),j(),K(()=>kC)],exports.RFIDGraphicsInfoContainer.prototype,"TOriginalRFIDGraphicsInfo",2);KC([D(),v(ce),ct(WC)],exports.RFIDGraphicsInfoContainer.prototype,"result_type",2);exports.RFIDGraphicsInfoContainer=KC([Xe()],exports.RFIDGraphicsInfoContainer);var h1=Object.defineProperty,$H=Object.getOwnPropertyDescriptor,VH=(e,t,r)=>t in e?h1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ZC=(e,t,r,s)=>{for(var n=s>1?void 0:s?$H(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&h1(t,r,n),n},m1=(e,t,r)=>VH(e,typeof t!="symbol"?t+"":t,r);const XC=[ce.DTC_VC];exports.ByteArrayContainer=class extends Mt{ByteArray;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>XC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};m1(exports.ByteArrayContainer,"fromPlain",e=>nt(exports.ByteArrayContainer,e));m1(exports.ByteArrayContainer,"validate",e=>{const t=_t(exports.ByteArrayContainer.fromPlain(e));if(t.length)throw new Bt("ByteArrayContainer validation error: the data received does not match model structure!",t);return!0});ZC([D(),ae()],exports.ByteArrayContainer.prototype,"ByteArray",2);ZC([D(),v(ce),ct(XC)],exports.ByteArrayContainer.prototype,"result_type",2);exports.ByteArrayContainer=ZC([Xe()],exports.ByteArrayContainer);const y1=e=>{const t=[];if(!Array.isArray(e))return t;for(const r of e){if(!ja(r)||!("result_type"in r))continue;const{result_type:s}=r;switch(s){case ce.MRZ_TEST_QUALITY:t.push(exports.MRZTestQualityContainer.fromPlain(r));break;case ce.DOCUMENT_TYPE_CANDIDATES:t.push(exports.DocumentTypesCandidatesContainer.fromPlain(r));break;case ce.AUTHENTICITY:case ce.PORTRAIT_COMPARISON:case ce.FINGERPRINT_COMPARISON:t.push(exports.AuthenticityCheckListContainer.fromPlain(r));break;case ce.BARCODE_POSITION:t.push(exports.BarcodeBoundsResultContainer.fromPlain(r));break;case ce.DOCUMENT_POSITION:t.push(exports.BoundsResultContainer.fromPlain(r));break;case ce.MRZ_DETECTOR:t.push(exports.MRZDetectorContainer.fromPlain(r));break;case ce.FACE_DETECTION:t.push(exports.FaceDetectionContainer.fromPlain(r));break;case ce.MRZ_POSITION:t.push(exports.MRZPositionContainer.fromPlain(r));break;case ce.BARCODES:t.push(exports.DocBarCodeInfoContainer.fromPlain(r));break;case ce.RFID_RAW_DATA:case ce.RFID_BINARY_DATA:t.push(exports.DocBinaryInfoContainer.fromPlain(r));break;case ce.DTC_VC:t.push(exports.ByteArrayContainer.fromPlain(r));break;case ce.RFID_ORIGINAL_GRAPHICS:t.push(exports.RFIDGraphicsInfoContainer.fromPlain(r));break;case ce.VISUAL_GRAPHICS:case ce.BARCODE_GRAPHICS:case ce.LIVE_PORTRAIT:case ce.EXT_PORTRAIT:case ce.FINGERPRINTS:case ce.RFID_GRAPHICS:t.push(exports.DocGraphicsInfoContainer.fromPlain(r));break;case ce.VISUAL_TEXT:case ce.MRZ_TEXT:case ce.BARCODE_TEXT:case ce.MAGNETIC_STRIPE_TEXT_DATA:t.push(exports.DocVisualExtendedInfoContainer.fromPlain(r));break;case ce.RFID_TEXT:t.push(exports.RFIDTextDataContainer.fromPlain(r));break;case ce.ENCRYPTED_RCL:t.push(exports.EncryptedRCLContainer.fromPlain(r));break;case ce.IMAGE_QUALITY:t.push(exports.ImageQualityCheckListContainer.fromPlain(r));break;case ce.IMAGES:t.push(exports.ImagesResultContainer.fromPlain(r));break;case ce.LICENSE:t.push(exports.LicenseContainer.fromPlain(r));break;case ce.LEXICAL_ANALYSIS:t.push(exports.ListVerifiedFieldContainer.fromPlain(r));break;case ce.DOCUMENT_TYPE:t.push(exports.OneCandidateContainer.fromPlain(r));break;case ce.DOCUMENT_IMAGE:case ce.RAW_UNCROPPED_IMAGE:t.push(exports.RawImageContainer.fromPlain(r));break;case ce.STATUS:t.push(exports.StatusContainer.fromPlain(r));break;case ce.TEXT:t.push(exports.TextResultContainer.fromPlain(r));break}}return t};var YH=Object.defineProperty,g1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&YH(t,r,n),n};class Y_{Count;List}g1([p(),$()],Y_.prototype,"Count");g1([D(),Ve(),j({each:!0}),co(({obj:e})=>y1(e.List),{toClassOnly:!0})],Y_.prototype,"List");var jH=Object.defineProperty,P1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&jH(t,r,n),n};class Cs{image;format}P1([ae(),p(),dn()],Cs.prototype,"image");P1([ae(),p()],Cs.prototype,"format");var kH=Object.defineProperty,M1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&kH(t,r,n),n};class Os{x;y}M1([D(),He()],Os.prototype,"x");M1([p(),He()],Os.prototype,"y");var KH=Object.defineProperty,Tl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&KH(t,r,n),n};class jt{left;top;right;bottom}Tl([D(),He()],jt.prototype,"left");Tl([D(),He()],jt.prototype,"top");Tl([D(),He()],jt.prototype,"right");Tl([D(),He()],jt.prototype,"bottom");var WH=Object.defineProperty,v1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&WH(t,r,n),n};class dl{Type;Value}v1([D(),ae()],dl.prototype,"Type");v1([D(),K(()=>Ds),j()],dl.prototype,"Value");var ZH=Object.defineProperty,qC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ZH(t,r,n),n};class ca{Data;FriendlyName;Attributes}qC([D(),dn(),ae()],ca.prototype,"Data");qC([D(),K(()=>Ds),j()],ca.prototype,"FriendlyName");qC([D(),K(()=>dl),j({each:!0}),Ve()],ca.prototype,"Attributes");var XH=Object.defineProperty,fl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&XH(t,r,n),n};class Ao{dg;dgTag;tagEntry;entryView}fl([D(),He()],Ao.prototype,"dg");fl([D(),He()],Ao.prototype,"dgTag");fl([D(),He()],Ao.prototype,"tagEntry");fl([D(),He()],Ao.prototype,"entryView");var qH=Object.defineProperty,Nl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&qH(t,r,n),n};class Zs{Type;Status;Length;Data}Nl([D(),He()],Zs.prototype,"Type");Nl([D(),He()],Zs.prototype,"Status");Nl([D(),$()],Zs.prototype,"Length");Nl([D()],Zs.prototype,"Data");var QH=Object.defineProperty,pl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&QH(t,r,n),n};class Ds{Type;Status;Format;Data}pl([p(),He()],Ds.prototype,"Type");pl([p(),He()],Ds.prototype,"Status");pl([p(),ae()],Ds.prototype,"Format");pl([D(),ae()],Ds.prototype,"Data");var zH=Object.defineProperty,Pn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&zH(t,r,n),n};class zr{ICAOCode;Count;List;dType;dFormat;dMRZ;dDescription;dYear;dCountryName;dStateCode;dStateName;isDeprecated}Pn([ae(),x2(4),D()],zr.prototype,"ICAOCode");Pn([p(),$()],zr.prototype,"Count");Pn([p(),Ve(),$({each:!0})],zr.prototype,"List");Pn([D(),v(wE)],zr.prototype,"dType");Pn([D(),v(ri)],zr.prototype,"dFormat");Pn([D(),Be()],zr.prototype,"dMRZ");Pn([p(),ae()],zr.prototype,"dDescription");Pn([p(),ae()],zr.prototype,"dYear");Pn([D(),ae()],zr.prototype,"dCountryName");Pn([p(),ae()],zr.prototype,"dStateCode");Pn([p(),ae()],zr.prototype,"dStateName");Pn([D(),Be()],zr.prototype,"isDeprecated");var JH=Object.defineProperty,Mn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&JH(t,r,n),n};class Hr{DocumentName;ID;P;Rotated180;RFID_Presence;FDSIDList;NecessaryLights;CheckAuthenticity;UVExp;AuthenticityNecessaryLights;OVIExp;RotationAngle;static getNecessaryLights=t=>Ho(typeof t=="number"?t:t.NecessaryLights);static getCheckAuthenticity=t=>hR(typeof t=="number"?t:t.CheckAuthenticity);static getAuthenticityNecessaryLights=t=>Ho(typeof t=="number"?t:t.AuthenticityNecessaryLights)}Mn([p(),ae()],Hr.prototype,"DocumentName");Mn([D(),$()],Hr.prototype,"ID");Mn([D(),He()],Hr.prototype,"P");Mn([D(),He()],Hr.prototype,"Rotated180");Mn([D(),v(jE)],Hr.prototype,"RFID_Presence");Mn([p(),j(),K(()=>zr)],Hr.prototype,"FDSIDList");Mn([D(),He()],Hr.prototype,"NecessaryLights");Mn([D(),$()],Hr.prototype,"CheckAuthenticity");Mn([D(),He()],Hr.prototype,"UVExp");Mn([D(),He()],Hr.prototype,"AuthenticityNecessaryLights");Mn([D(),He()],Hr.prototype,"OVIExp");Mn([p(),$()],Hr.prototype,"RotationAngle");var ex=Object.defineProperty,QC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ex(t,r,n),n};class j_{limit;threshold;group_ids}QC([p(),He()],j_.prototype,"limit");QC([p(),He()],j_.prototype,"threshold");QC([p(),He({},{each:!0})],j_.prototype,"group_ids");var tx=Object.defineProperty,Ts=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&tx(t,r,n),n};class vn{url;mode;search;threshold;serviceTimeout;proxy;proxy_userpwd;proxy_type;childAgeThreshold;childDocValidityYears}Ts([p(),ae()],vn.prototype,"url");Ts([p(),ae()],vn.prototype,"mode");Ts([p(),j(),K(()=>j_)],vn.prototype,"search");Ts([p(),He()],vn.prototype,"threshold");Ts([p(),He()],vn.prototype,"serviceTimeout");Ts([p(),ae()],vn.prototype,"proxy");Ts([p(),ae()],vn.prototype,"proxy_userpwd");Ts([p(),He()],vn.prototype,"proxy_type");Ts([p(),He()],vn.prototype,"childAgeThreshold");Ts([p(),He()],vn.prototype,"childDocValidityYears");var rx=Object.defineProperty,Xs=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&rx(t,r,n),n};class ds{brightnessThreshold;dpiThreshold;angleThreshold;focusCheck;glaresCheck;colornessCheck;moireCheck;documentPositionIndent;expectedPass}Xs([p(),He()],ds.prototype,"brightnessThreshold");Xs([p(),$()],ds.prototype,"dpiThreshold");Xs([p(),$()],ds.prototype,"angleThreshold");Xs([Be(),p()],ds.prototype,"focusCheck");Xs([Be(),p()],ds.prototype,"glaresCheck");Xs([Be(),p()],ds.prototype,"colornessCheck");Xs([Be(),p()],ds.prototype,"moireCheck");Xs([p(),He()],ds.prototype,"documentPositionIndent");Xs([p(),Ve(),v(dA,{each:!0})],ds.prototype,"expectedPass");var nx=Object.defineProperty,F1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&nx(t,r,n),n};class Ll{docID;excludeAuthChecks}F1([p(),$({each:!0}),Ve()],Ll.prototype,"docID");F1([p(),$()],Ll.prototype,"excludeAuthChecks");var sx=Object.defineProperty,ox=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&sx(t,r,n),n};class zC{paIgnoreNotificationCodes}ox([p(),v($E,{each:!0}),Ve()],zC.prototype,"paIgnoreNotificationCodes");var ax=Object.defineProperty,Ea=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ax(t,r,n),n};class qs{checkOVI;checkMLI;checkHolo;checkED;checkBlackAndWhiteCopy;checkDynaprint;checkGeometry}Ea([p(),Be()],qs.prototype,"checkOVI");Ea([p(),Be()],qs.prototype,"checkMLI");Ea([p(),Be()],qs.prototype,"checkHolo");Ea([p(),Be()],qs.prototype,"checkED");Ea([p(),Be()],qs.prototype,"checkBlackAndWhiteCopy");Ea([p(),Be()],qs.prototype,"checkDynaprint");Ea([p(),Be()],qs.prototype,"checkGeometry");var ix=Object.defineProperty,gr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ix(t,r,n),n};class Sr{checkLiveness;livenessParams;checkUVLuminiscence;checkIRB900;checkImagePatterns;checkFibers;checkExtMRZ;checkExtOCR;checkAxial;checkBarcodeFormat;checkIRVisibility;checkIPI;checkPhotoEmbedding;checkPhotoComparison;checkLetterScreen;checkSecurityText}gr([p(),Be()],Sr.prototype,"checkLiveness");gr([p(),j(),K(()=>qs)],Sr.prototype,"livenessParams");gr([p(),Be()],Sr.prototype,"checkUVLuminiscence");gr([p(),Be()],Sr.prototype,"checkIRB900");gr([p(),Be()],Sr.prototype,"checkImagePatterns");gr([p(),Be()],Sr.prototype,"checkFibers");gr([p(),Be()],Sr.prototype,"checkExtMRZ");gr([p(),Be()],Sr.prototype,"checkExtOCR");gr([p(),Be()],Sr.prototype,"checkAxial");gr([p(),Be()],Sr.prototype,"checkBarcodeFormat");gr([p(),Be()],Sr.prototype,"checkIRVisibility");gr([p(),Be()],Sr.prototype,"checkIPI");gr([p(),Be()],Sr.prototype,"checkPhotoEmbedding");gr([p(),Be()],Sr.prototype,"checkPhotoComparison");gr([p(),Be()],Sr.prototype,"checkLetterScreen");gr([p(),Be()],Sr.prototype,"checkSecurityText");const k_=e=>(t,r)=>{th({name:"IsStringObjectRecord",target:t.constructor,propertyName:String(r),constraints:[],options:{message:`${String(r)} must be a Record<string, object>`,...e},validator:{validate(s,n){return ja(s)?Object.keys(s).length===0?!0:Object.keys(s).every(a=>!(typeof a!="string"||!ja(s[a]))):!1}}})};var _x=Object.defineProperty,Ge=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&_x(t,r,n),n};class Ue{generateDTCVC;lcidFilter;checkLiveness;lcidIgnoreFilter;oneShotIdentification;useFaceApi;faceApi;doDetectCan;imageOutputMaxHeight;imageOutputMaxWidth;scenario;resultTypeOutput;doublePageSpread;generateDoublePageSpreadImage;fieldTypesFilter;dateFormat;measureSystem;imageDpiOutMax;alreadyCropped;customParams;config;log;logLevel;forceDocID;matchTextFieldMask;fastDocDetect;updateOCRValidityByGlare;checkRequiredTextFields;returnCroppedBarcode;imageQa;strictImageQuality;respectImageQuality;forceDocFormat;noGraphics;depersonalizeLog;multiDocOnImage;shiftExpiryDate;minimalHolderAge;returnUncroppedImage;mrzFormatsFilter;forceReadMrzBeforeLocate;parseBarcodes;convertCase;splitNames;disablePerforationOCR;documentGroupFilter;processAuth;deviceId;deviceType;deviceTypeHex;ignoreDeviceIdFromImage;documentIdList;rfid;checkAuth;authParams;mrzDetectMode;generateNumericCodes;strictBarcodeDigitalSignatureCheck;selectLongestNames;doBarcodes;strictDLCategoryExpiry;generateAlpha2Codes;pdfPagesLimit;disableAuthResolutionFilter;strictSecurityChecks}Ge([p(),Be()],Ue.prototype,"generateDTCVC");Ge([p(),v(Y,{each:!0})],Ue.prototype,"lcidFilter");Ge([p(),Be()],Ue.prototype,"checkLiveness");Ge([p(),v(Y,{each:!0})],Ue.prototype,"lcidIgnoreFilter");Ge([p(),Be()],Ue.prototype,"oneShotIdentification");Ge([p(),Be()],Ue.prototype,"useFaceApi");Ge([p(),j(),K(()=>vn)],Ue.prototype,"faceApi");Ge([p(),Be()],Ue.prototype,"doDetectCan");Ge([p(),$(),N_(0)],Ue.prototype,"imageOutputMaxHeight");Ge([p(),$(),N_(0)],Ue.prototype,"imageOutputMaxWidth");Ge([D(),v(FA)],Ue.prototype,"scenario");Ge([p(),v(ce,{each:!0})],Ue.prototype,"resultTypeOutput");Ge([p(),Be()],Ue.prototype,"doublePageSpread");Ge([p(),Be()],Ue.prototype,"generateDoublePageSpreadImage");Ge([p(),v(A,{each:!0})],Ue.prototype,"fieldTypesFilter");Ge([p(),ae()],Ue.prototype,"dateFormat");Ge([p(),v(pA)],Ue.prototype,"measureSystem");Ge([p(),$()],Ue.prototype,"imageDpiOutMax");Ge([p(),Be()],Ue.prototype,"alreadyCropped");Ge([p(),k_()],Ue.prototype,"customParams");Ge([p(),j({each:!0}),K(()=>Ll)],Ue.prototype,"config");Ge([p(),Be()],Ue.prototype,"log");Ge([p(),v(fA)],Ue.prototype,"logLevel");Ge([p(),$()],Ue.prototype,"forceDocID");Ge([p(),Be()],Ue.prototype,"matchTextFieldMask");Ge([p(),Be()],Ue.prototype,"fastDocDetect");Ge([p(),Be()],Ue.prototype,"updateOCRValidityByGlare");Ge([p(),Be()],Ue.prototype,"checkRequiredTextFields");Ge([p(),Be()],Ue.prototype,"returnCroppedBarcode");Ge([p(),j()],Ue.prototype,"imageQa");Ge([p(),Be()],Ue.prototype,"strictImageQuality");Ge([p(),Be()],Ue.prototype,"respectImageQuality");Ge([p(),v(ri)],Ue.prototype,"forceDocFormat");Ge([p(),Be()],Ue.prototype,"noGraphics");Ge([p(),Be()],Ue.prototype,"depersonalizeLog");Ge([p(),Be()],Ue.prototype,"multiDocOnImage");Ge([p(),$()],Ue.prototype,"shiftExpiryDate");Ge([p(),$(),N_(0)],Ue.prototype,"minimalHolderAge");Ge([p(),Be()],Ue.prototype,"returnUncroppedImage");Ge([p(),v(NA,{each:!0})],Ue.prototype,"mrzFormatsFilter");Ge([p(),Be()],Ue.prototype,"forceReadMrzBeforeLocate");Ge([p(),Be()],Ue.prototype,"parseBarcodes");Ge([p(),v(bA)],Ue.prototype,"convertCase");Ge([p(),Be()],Ue.prototype,"splitNames");Ge([p(),Be()],Ue.prototype,"disablePerforationOCR");Ge([p(),v(wE,{each:!0})],Ue.prototype,"documentGroupFilter");Ge([p(),$()],Ue.prototype,"processAuth");Ge([p(),$()],Ue.prototype,"deviceId");Ge([p(),$()],Ue.prototype,"deviceType");Ge([p(),ae()],Ue.prototype,"deviceTypeHex");Ge([p(),Be()],Ue.prototype,"ignoreDeviceIdFromImage");Ge([p(),$({each:!0})],Ue.prototype,"documentIdList");Ge([p(),j(),K(()=>zC)],Ue.prototype,"rfid");Ge([p(),Be()],Ue.prototype,"checkAuth");Ge([p(),j(),K(()=>Sr)],Ue.prototype,"authParams");Ge([p(),v(LA)],Ue.prototype,"mrzDetectMode");Ge([p(),Be()],Ue.prototype,"generateNumericCodes");Ge([p(),Be()],Ue.prototype,"strictBarcodeDigitalSignatureCheck");Ge([p(),Be()],Ue.prototype,"selectLongestNames");Ge([p(),Ve(),v(TA,{each:!0})],Ue.prototype,"doBarcodes");Ge([p(),Be()],Ue.prototype,"strictDLCategoryExpiry");Ge([p(),Be()],Ue.prototype,"generateAlpha2Codes");Ge([p(),He()],Ue.prototype,"pdfPagesLimit");Ge([p(),Be()],Ue.prototype,"disableAuthResolutionFilter");Ge([p(),Be()],Ue.prototype,"strictSecurityChecks");var cx=Object.defineProperty,JC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cx(t,r,n),n};class K_{ImageData;light;page_idx}JC([j(),K(()=>Cs)],K_.prototype,"ImageData");JC([v(Pt),p()],K_.prototype,"light");JC([$(),p()],K_.prototype,"page_idx");var Ex=Object.defineProperty,b1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&Ex(t,r,n),n};class hl{license;recaptcha_token}b1([p(),ae(),dn()],hl.prototype,"license");b1([p(),ae()],hl.prototype,"recaptcha_token");var U1=Object.defineProperty,lx=Object.getOwnPropertyDescriptor,ux=(e,t,r)=>t in e?U1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t,r,s)=>{for(var n=s>1?void 0:s?lx(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&U1(t,r,n),n},eO=(e,t,r)=>ux(e,typeof t!="symbol"?t+"":t,r);exports.ProcessRequest=class{processParam;List;tag;tenant;env;livePortrait;extPortrait;ContainerList;systemInfo;passBackObject;dtc;ImageUrls};eO(exports.ProcessRequest,"fromPlain",e=>nt(exports.ProcessRequest,e));eO(exports.ProcessRequest,"toPlain",e=>Yt(e,{excludeExtraneousValues:!0}));eO(exports.ProcessRequest,"validate",e=>{const t=_t(exports.ProcessRequest.toPlain(e));if(t.length)throw new Bt("ProcessRequest validation error: the data received does not match model structure!",t);return!0});Sn([j(),D(),K(()=>Ue)],exports.ProcessRequest.prototype,"processParam",2);Sn([j({each:!0}),p(),K(()=>K_)],exports.ProcessRequest.prototype,"List",2);Sn([ae(),p()],exports.ProcessRequest.prototype,"tag",2);Sn([ae(),p()],exports.ProcessRequest.prototype,"tenant",2);Sn([ae(),p()],exports.ProcessRequest.prototype,"env",2);Sn([p(),ae()],exports.ProcessRequest.prototype,"livePortrait",2);Sn([p(),ae()],exports.ProcessRequest.prototype,"extPortrait",2);Sn([p(),j(),K(()=>Y_)],exports.ProcessRequest.prototype,"ContainerList",2);Sn([p(),j(),K(()=>hl)],exports.ProcessRequest.prototype,"systemInfo",2);Sn([p(),k_()],exports.ProcessRequest.prototype,"passBackObject",2);Sn([p(),ae()],exports.ProcessRequest.prototype,"dtc",2);Sn([p(),Ve(),$({each:!0})],exports.ProcessRequest.prototype,"ImageUrls",2);exports.ProcessRequest=Sn([Xe()],exports.ProcessRequest);var Ix=Object.defineProperty,ml=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&Ix(t,r,n),n};class Ii{Description;ExportDate;ID;Version}ml([p(),ae()],Ii.prototype,"Description");ml([p(),ae()],Ii.prototype,"ExportDate");ml([p(),ae()],Ii.prototype,"ID");ml([p(),ae()],Ii.prototype,"Version");var Sx=Object.defineProperty,Co=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&Sx(t,r,n),n};class fs{ComputerName;DateTime;DocumentsDatabase;SystemInfo;Tag;TransactionID;UserName;Version}Co([p(),ae()],fs.prototype,"ComputerName");Co([p(),ae()],fs.prototype,"DateTime");Co([p(),j(),K(()=>Ii)],fs.prototype,"DocumentsDatabase");Co([p(),ae()],fs.prototype,"SystemInfo");Co([p(),ae()],fs.prototype,"Tag");Co([p(),ae()],fs.prototype,"TransactionID");Co([p(),ae()],fs.prototype,"UserName");Co([p(),ae()],fs.prototype,"Version");var WI,Pd;function B1(){if(Pd)return WI;Pd=1;var e=Wo(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return WI=t,WI}var ZI,Md;function tO(){if(Md)return ZI;Md=1;var e=B1();function t(r,s,n){s=="__proto__"&&e?e(r,s,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[s]=n}return ZI=t,ZI}var XI,vd;function H1(){if(vd)return XI;vd=1;var e=tO(),t=A_();function r(s,n,o){(o!==void 0&&!t(s[n],o)||o===void 0&&!(n in s))&&e(s,n,o)}return XI=r,XI}var qI,Fd;function Rx(){if(Fd)return qI;Fd=1;function e(t){return function(r,s,n){for(var o=-1,a=Object(r),i=n(r),c=i.length;c--;){var _=i[t?c:++o];if(s(a[_],_,a)===!1)break}return r}}return qI=e,qI}var QI,bd;function Ax(){if(bd)return QI;bd=1;var e=Rx(),t=e();return QI=t,QI}var Qi={exports:{}};Qi.exports;var Ud;function Cx(){return Ud||(Ud=1,(function(e,t){var r=Es(),s=t&&!t.nodeType&&t,n=s&&!0&&e&&!e.nodeType&&e,o=n&&n.exports===s,a=o?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;function c(_,E){if(E)return _.slice();var u=_.length,I=i?i(u):new _.constructor(u);return _.copy(I),I}e.exports=c})(Qi,Qi.exports)),Qi.exports}var zI,Bd;function Ox(){if(Bd)return zI;Bd=1;var e=uL();function t(r){var s=new r.constructor(r.byteLength);return new e(s).set(new e(r)),s}return zI=t,zI}var JI,Hd;function Dx(){if(Hd)return JI;Hd=1;var e=Ox();function t(r,s){var n=s?e(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}return JI=t,JI}var eS,xd;function Tx(){if(xd)return eS;xd=1;function e(t,r){var s=-1,n=t.length;for(r||(r=Array(n));++s<n;)r[s]=t[s];return r}return eS=e,eS}var tS,Gd;function dx(){if(Gd)return tS;Gd=1;var e=Ko(),t=Object.create,r=(function(){function s(){}return function(n){if(!e(n))return{};if(t)return t(n);s.prototype=n;var o=new s;return s.prototype=void 0,o}})();return tS=r,tS}var rS,wd;function x1(){if(wd)return rS;wd=1;var e=CL(),t=e(Object.getPrototypeOf,Object);return rS=t,rS}var nS,$d;function fx(){if($d)return nS;$d=1;var e=dx(),t=x1(),r=RA();function s(n){return typeof n.constructor=="function"&&!r(n)?e(t(n)):{}}return nS=s,nS}var sS,Vd;function Nx(){if(Vd)return sS;Vd=1;var e=ME(),t=za();function r(s){return t(s)&&e(s)}return sS=r,sS}var oS,Yd;function px(){if(Yd)return oS;Yd=1;var e=C_(),t=x1(),r=za(),s="[object Object]",n=Function.prototype,o=Object.prototype,a=n.toString,i=o.hasOwnProperty,c=a.call(Object);function _(E){if(!r(E)||e(E)!=s)return!1;var u=t(E);if(u===null)return!0;var I=i.call(u,"constructor")&&u.constructor;return typeof I=="function"&&I instanceof I&&a.call(I)==c}return oS=_,oS}var aS,jd;function G1(){if(jd)return aS;jd=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return aS=e,aS}var iS,kd;function Lx(){if(kd)return iS;kd=1;var e=tO(),t=A_(),r=Object.prototype,s=r.hasOwnProperty;function n(o,a,i){var c=o[a];(!(s.call(o,a)&&t(c,i))||i===void 0&&!(a in o))&&e(o,a,i)}return iS=n,iS}var _S,Kd;function hx(){if(Kd)return _S;Kd=1;var e=Lx(),t=tO();function r(s,n,o,a){var i=!o;o||(o={});for(var c=-1,_=n.length;++c<_;){var E=n[c],u=a?a(o[E],s[E],E,o,s):void 0;u===void 0&&(u=s[E]),i?t(o,E,u):e(o,E,u)}return o}return _S=r,_S}var cS,Wd;function mx(){if(Wd)return cS;Wd=1;function e(t){var r=[];if(t!=null)for(var s in Object(t))r.push(s);return r}return cS=e,cS}var ES,Zd;function yx(){if(Zd)return ES;Zd=1;var e=Ko(),t=RA(),r=mx(),s=Object.prototype,n=s.hasOwnProperty;function o(a){if(!e(a))return r(a);var i=t(a),c=[];for(var _ in a)_=="constructor"&&(i||!n.call(a,_))||c.push(_);return c}return ES=o,ES}var lS,Xd;function w1(){if(Xd)return lS;Xd=1;var e=AL(),t=yx(),r=ME();function s(n){return r(n)?e(n,!0):t(n)}return lS=s,lS}var uS,qd;function gx(){if(qd)return uS;qd=1;var e=hx(),t=w1();function r(s){return e(s,t(s))}return uS=r,uS}var IS,Qd;function Px(){if(Qd)return IS;Qd=1;var e=H1(),t=Cx(),r=Dx(),s=Tx(),n=fx(),o=IL(),a=PE(),i=Nx(),c=IA(),_=lA(),E=Ko(),u=px(),I=SA(),S=G1(),R=gx();function O(T,f,N,L,d,m,g){var h=S(T,N),b=S(f,N),B=g.get(b);if(B){e(T,N,B);return}var y=m?m(h,b,N+"",T,f,g):void 0,M=y===void 0;if(M){var F=a(b),X=!F&&c(b),Z=!F&&!X&&I(b);y=b,F||X||Z?a(h)?y=h:i(h)?y=s(h):X?(M=!1,y=t(b,!0)):Z?(M=!1,y=r(b,!0)):y=[]:u(b)||o(b)?(y=h,o(h)?y=R(h):(!E(h)||_(h))&&(y=n(b))):M=!1}M&&(g.set(b,y),d(y,b,L,m,g),g.delete(b)),e(T,N,y)}return IS=O,IS}var SS,zd;function Mx(){if(zd)return SS;zd=1;var e=EL(),t=H1(),r=Ax(),s=Px(),n=Ko(),o=w1(),a=G1();function i(c,_,E,u,I){c!==_&&r(_,function(S,R){if(I||(I=new e),n(S))s(c,_,R,E,i,u,I);else{var O=u?u(a(c,R),S,R+"",c,_,I):void 0;O===void 0&&(O=S),t(c,R,O)}},o)}return SS=i,SS}var RS,Jd;function $1(){if(Jd)return RS;Jd=1;function e(t){return t}return RS=e,RS}var AS,ef;function vx(){if(ef)return AS;ef=1;function e(t,r,s){switch(s.length){case 0:return t.call(r);case 1:return t.call(r,s[0]);case 2:return t.call(r,s[0],s[1]);case 3:return t.call(r,s[0],s[1],s[2])}return t.apply(r,s)}return AS=e,AS}var CS,tf;function Fx(){if(tf)return CS;tf=1;var e=vx(),t=Math.max;function r(s,n,o){return n=t(n===void 0?s.length-1:n,0),function(){for(var a=arguments,i=-1,c=t(a.length-n,0),_=Array(c);++i<c;)_[i]=a[n+i];i=-1;for(var E=Array(n+1);++i<n;)E[i]=a[i];return E[n]=o(_),e(s,this,E)}}return CS=r,CS}var OS,rf;function bx(){if(rf)return OS;rf=1;function e(t){return function(){return t}}return OS=e,OS}var DS,nf;function Ux(){if(nf)return DS;nf=1;var e=bx(),t=B1(),r=$1(),s=t?function(n,o){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return DS=s,DS}var TS,sf;function Bx(){if(sf)return TS;sf=1;var e=800,t=16,r=Date.now;function s(n){var o=0,a=0;return function(){var i=r(),c=t-(i-a);if(a=i,c>0){if(++o>=e)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}return TS=s,TS}var dS,of;function Hx(){if(of)return dS;of=1;var e=Ux(),t=Bx(),r=t(e);return dS=r,dS}var fS,af;function xx(){if(af)return fS;af=1;var e=$1(),t=Fx(),r=Hx();function s(n,o){return r(t(n,o,e),n+"")}return fS=s,fS}var NS,_f;function Gx(){if(_f)return NS;_f=1;var e=A_(),t=ME(),r=SL(),s=Ko();function n(o,a,i){if(!s(i))return!1;var c=typeof a;return(c=="number"?t(i)&&r(a,i.length):c=="string"&&a in i)?e(i[a],o):!1}return NS=n,NS}var pS,cf;function wx(){if(cf)return pS;cf=1;var e=xx(),t=Gx();function r(s){return e(function(n,o){var a=-1,i=o.length,c=i>1?o[i-1]:void 0,_=i>2?o[2]:void 0;for(c=s.length>3&&typeof c=="function"?(i--,c):void 0,_&&t(o[0],o[1],_)&&(c=i<3?void 0:c,i=1),n=Object(n);++a<i;){var E=o[a];E&&s(n,E,a,c)}return n})}return pS=r,pS}var LS,Ef;function $x(){if(Ef)return LS;Ef=1;var e=Mx(),t=wx(),r=t(function(s,n,o){e(s,n,o)});return LS=r,LS}var Vx=$x();const lf=Qa(Vx);var hS,uf;function Yx(){if(uf)return hS;uf=1;function e(t,r){for(var s=-1,n=t==null?0:t.length,o=Array(n);++s<n;)o[s]=r(t[s],s,t);return o}return hS=e,hS}var mS,If;function jx(){if(If)return mS;If=1;var e=Yx();function t(r,s){return e(s,function(n){return r[n]})}return mS=t,mS}var yS,Sf;function kx(){if(Sf)return yS;Sf=1;var e=jx(),t=OL();function r(s){return s==null?[]:e(s,t(s))}return yS=r,yS}var Kx=kx();const Wx=Qa(Kx);var V1=Object.defineProperty,Zx=Object.getOwnPropertyDescriptor,Xx=(e,t,r)=>t in e?V1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xn=(e,t,r,s)=>{for(var n=s>1?void 0:s?Zx(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&V1(t,r,n),n},Si=(e,t,r)=>Xx(e,typeof t!="symbol"?t+"":t,r);exports.ProcessResponse=class{ChipPage;CoreLibResultCode;ProcessingFinished;ContainerList;TransactionInfo;log;passBackObject;morePagesAvailable;elapsedTime;metadata};Si(exports.ProcessResponse,"fromPlain",e=>{const t=nt(exports.ProcessResponse,e,{exposeUnsetFields:!1});return exports.ProcessResponse.inform(t),t});Si(exports.ProcessResponse,"validate",e=>{const t=_t(exports.ProcessResponse.fromPlain(e));if(t.length)throw new Bt("ProcessResponse validation error: the data received does not match model structure!",t);return!0});Si(exports.ProcessResponse,"isValid",e=>{try{return exports.ProcessResponse.validate(e),!0}catch{return!1}});Si(exports.ProcessResponse,"decodeLog",e=>typeof e=="string"?MR(e):!e||!e.log?"":MR(e.log));Si(exports.ProcessResponse,"inform",e=>{if(typeof window>"u"||typeof localStorage>"u"||!localStorage.getItem("docreader_typings_log")||!e||!(e instanceof exports.ProcessResponse))return;const r=_t(e),s=exports.ProcessResponse.simplifyErrors("",r);for(const[n,o]of Object.entries(s))console.info(`Error in ${n}: ${o.join(", ")}`)});Si(exports.ProcessResponse,"simplifyErrors",(e,t)=>{let r={};for(let s=0;s<t.length;s++){const n=t[s].property,o=e?`${e}.${n}`:n;t[s].children&&t[s].children?.length&&(r=lf(r,exports.ProcessResponse.simplifyErrors(o,t[s].children))),t[s].constraints&&(r[o]=Wx(lf(t[s].constraints,r[o])))}return r});Xn([D(),v(jE)],exports.ProcessResponse.prototype,"ChipPage",2);Xn([p(),$()],exports.ProcessResponse.prototype,"CoreLibResultCode",2);Xn([D(),v(hA)],exports.ProcessResponse.prototype,"ProcessingFinished",2);Xn([j(),K(()=>Y_)],exports.ProcessResponse.prototype,"ContainerList",2);Xn([D(),j(),K(()=>fs)],exports.ProcessResponse.prototype,"TransactionInfo",2);Xn([p(),ae(),dn()],exports.ProcessResponse.prototype,"log",2);Xn([p(),k_()],exports.ProcessResponse.prototype,"passBackObject",2);Xn([p(),$(),N_(0)],exports.ProcessResponse.prototype,"morePagesAvailable",2);Xn([p(),$(),N_(0)],exports.ProcessResponse.prototype,"elapsedTime",2);Xn([p(),k_()],exports.ProcessResponse.prototype,"metadata",2);exports.ProcessResponse=Xn([Xe()],exports.ProcessResponse);function Ri(e){let t=e.length;for(;--t>=0;)e[t]=0}const qx=3,Qx=258,Y1=29,zx=256,Jx=zx+1+Y1,j1=30,eG=512,tG=new Array((Jx+2)*2);Ri(tG);const rG=new Array(j1*2);Ri(rG);const nG=new Array(eG);Ri(nG);const sG=new Array(Qx-qx+1);Ri(sG);const oG=new Array(Y1);Ri(oG);const aG=new Array(j1);Ri(aG);const iG=(e,t,r,s)=>{let n=e&65535|0,o=e>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do n=n+t[s++]|0,o=o+n|0;while(--a);n%=65521,o%=65521}return n|o<<16|0};var yR=iG;const _G=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var s=0;s<8;s++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},cG=new Uint32Array(_G()),EG=(e,t,r,s)=>{const n=cG,o=s+r;e^=-1;for(let a=s;a<o;a++)e=e>>>8^n[(e^t[a])&255];return e^-1};var es=EG,gR={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},k1={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const lG=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var uG=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const s in r)lG(r,s)&&(e[s]=r[s])}}return e},IG=e=>{let t=0;for(let s=0,n=e.length;s<n;s++)t+=e[s].length;const r=new Uint8Array(t);for(let s=0,n=0,o=e.length;s<o;s++){let a=e[s];r.set(a,n),n+=a.length}return r},K1={assign:uG,flattenChunks:IG};let W1=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{W1=!1}const o_=new Uint8Array(256);for(let e=0;e<256;e++)o_[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;o_[254]=o_[254]=1;var SG=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,s,n,o,a=e.length,i=0;for(n=0;n<a;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<a&&(s=e.charCodeAt(n+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),n++)),i+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(i),o=0,n=0;o<i;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<a&&(s=e.charCodeAt(n+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),n++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const RG=(e,t)=>{if(t<65534&&e.subarray&&W1)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r};var AG=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let s,n;const o=new Array(r*2);for(n=0,s=0;s<r;){let a=e[s++];if(a<128){o[n++]=a;continue}let i=o_[a];if(i>4){o[n++]=65533,s+=i-1;continue}for(a&=i===2?31:i===3?15:7;i>1&&s<r;)a=a<<6|e[s++]&63,i--;if(i>1){o[n++]=65533;continue}a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|a&1023)}return RG(o,n)},CG=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+o_[e[r]]>t?r:t},PR={string2buf:SG,buf2string:AG,utf8border:CG};function OG(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var DG=OG;const Sc=16209,TG=16191;var dG=function(t,r){let s,n,o,a,i,c,_,E,u,I,S,R,O,T,f,N,L,d,m,g,h,b,B,y;const M=t.state;s=t.next_in,B=t.input,n=s+(t.avail_in-5),o=t.next_out,y=t.output,a=o-(r-t.avail_out),i=o+(t.avail_out-257),c=M.dmax,_=M.wsize,E=M.whave,u=M.wnext,I=M.window,S=M.hold,R=M.bits,O=M.lencode,T=M.distcode,f=(1<<M.lenbits)-1,N=(1<<M.distbits)-1;e:do{R<15&&(S+=B[s++]<<R,R+=8,S+=B[s++]<<R,R+=8),L=O[S&f];t:for(;;){if(d=L>>>24,S>>>=d,R-=d,d=L>>>16&255,d===0)y[o++]=L&65535;else if(d&16){m=L&65535,d&=15,d&&(R<d&&(S+=B[s++]<<R,R+=8),m+=S&(1<<d)-1,S>>>=d,R-=d),R<15&&(S+=B[s++]<<R,R+=8,S+=B[s++]<<R,R+=8),L=T[S&N];r:for(;;){if(d=L>>>24,S>>>=d,R-=d,d=L>>>16&255,d&16){if(g=L&65535,d&=15,R<d&&(S+=B[s++]<<R,R+=8,R<d&&(S+=B[s++]<<R,R+=8)),g+=S&(1<<d)-1,g>c){t.msg="invalid distance too far back",M.mode=Sc;break e}if(S>>>=d,R-=d,d=o-a,g>d){if(d=g-d,d>E&&M.sane){t.msg="invalid distance too far back",M.mode=Sc;break e}if(h=0,b=I,u===0){if(h+=_-d,d<m){m-=d;do y[o++]=I[h++];while(--d);h=o-g,b=y}}else if(u<d){if(h+=_+u-d,d-=u,d<m){m-=d;do y[o++]=I[h++];while(--d);if(h=0,u<m){d=u,m-=d;do y[o++]=I[h++];while(--d);h=o-g,b=y}}}else if(h+=u-d,d<m){m-=d;do y[o++]=I[h++];while(--d);h=o-g,b=y}for(;m>2;)y[o++]=b[h++],y[o++]=b[h++],y[o++]=b[h++],m-=3;m&&(y[o++]=b[h++],m>1&&(y[o++]=b[h++]))}else{h=o-g;do y[o++]=y[h++],y[o++]=y[h++],y[o++]=y[h++],m-=3;while(m>2);m&&(y[o++]=y[h++],m>1&&(y[o++]=y[h++]))}}else if((d&64)===0){L=T[(L&65535)+(S&(1<<d)-1)];continue r}else{t.msg="invalid distance code",M.mode=Sc;break e}break}}else if((d&64)===0){L=O[(L&65535)+(S&(1<<d)-1)];continue t}else if(d&32){M.mode=TG;break e}else{t.msg="invalid literal/length code",M.mode=Sc;break e}break}}while(s<n&&o<i);m=R>>3,s-=m,R-=m<<3,S&=(1<<R)-1,t.next_in=s,t.next_out=o,t.avail_in=s<n?5+(n-s):5-(s-n),t.avail_out=o<i?257+(i-o):257-(o-i),M.hold=S,M.bits=R};const fa=15,Rf=852,Af=592,Cf=0,gS=1,Of=2,fG=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),NG=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),pG=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),LG=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),hG=(e,t,r,s,n,o,a,i)=>{const c=i.bits;let _=0,E=0,u=0,I=0,S=0,R=0,O=0,T=0,f=0,N=0,L,d,m,g,h,b=null,B;const y=new Uint16Array(fa+1),M=new Uint16Array(fa+1);let F=null,X,Z,Ce;for(_=0;_<=fa;_++)y[_]=0;for(E=0;E<s;E++)y[t[r+E]]++;for(S=c,I=fa;I>=1&&y[I]===0;I--);if(S>I&&(S=I),I===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,i.bits=1,0;for(u=1;u<I&&y[u]===0;u++);for(S<u&&(S=u),T=1,_=1;_<=fa;_++)if(T<<=1,T-=y[_],T<0)return-1;if(T>0&&(e===Cf||I!==1))return-1;for(M[1]=0,_=1;_<fa;_++)M[_+1]=M[_]+y[_];for(E=0;E<s;E++)t[r+E]!==0&&(a[M[t[r+E]]++]=E);if(e===Cf?(b=F=a,B=20):e===gS?(b=fG,F=NG,B=257):(b=pG,F=LG,B=0),N=0,E=0,_=u,h=o,R=S,O=0,m=-1,f=1<<S,g=f-1,e===gS&&f>Rf||e===Of&&f>Af)return 1;for(;;){X=_-O,a[E]+1<B?(Z=0,Ce=a[E]):a[E]>=B?(Z=F[a[E]-B],Ce=b[a[E]-B]):(Z=96,Ce=0),L=1<<_-O,d=1<<R,u=d;do d-=L,n[h+(N>>O)+d]=X<<24|Z<<16|Ce|0;while(d!==0);for(L=1<<_-1;N&L;)L>>=1;if(L!==0?(N&=L-1,N+=L):N=0,E++,--y[_]===0){if(_===I)break;_=t[r+a[E]]}if(_>S&&(N&g)!==m){for(O===0&&(O=S),h+=u,R=_-O,T=1<<R;R+O<I&&(T-=y[R+O],!(T<=0));)R++,T<<=1;if(f+=1<<R,e===gS&&f>Rf||e===Of&&f>Af)return 1;m=N&g,n[m]=S<<24|R<<16|h-o|0}}return N!==0&&(n[h+N]=_-O<<24|64<<16|0),i.bits=S,0};var t_=hG;const mG=0,Z1=1,X1=2,{Z_FINISH:Df,Z_BLOCK:yG,Z_TREES:Rc,Z_OK:Yo,Z_STREAM_END:gG,Z_NEED_DICT:PG,Z_STREAM_ERROR:Tn,Z_DATA_ERROR:q1,Z_MEM_ERROR:Q1,Z_BUF_ERROR:MG,Z_DEFLATED:Tf}=k1,yl=16180,df=16181,ff=16182,Nf=16183,pf=16184,Lf=16185,hf=16186,mf=16187,yf=16188,gf=16189,EE=16190,Ls=16191,PS=16192,Pf=16193,MS=16194,Mf=16195,vf=16196,Ff=16197,bf=16198,Ac=16199,Cc=16200,Uf=16201,Bf=16202,Hf=16203,xf=16204,Gf=16205,vS=16206,wf=16207,$f=16208,kt=16209,z1=16210,J1=16211,vG=852,FG=592,bG=15,UG=bG,Vf=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function BG(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const la=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<yl||t.mode>J1?1:0},em=e=>{if(la(e))return Tn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=yl,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(vG),t.distcode=t.distdyn=new Int32Array(FG),t.sane=1,t.back=-1,Yo},tm=e=>{if(la(e))return Tn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,em(e)},rm=(e,t)=>{let r;if(la(e))return Tn;const s=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Tn:(s.window!==null&&s.wbits!==t&&(s.window=null),s.wrap=r,s.wbits=t,tm(e))},nm=(e,t)=>{if(!e)return Tn;const r=new BG;e.state=r,r.strm=e,r.window=null,r.mode=yl;const s=rm(e,t);return s!==Yo&&(e.state=null),s},HG=e=>nm(e,UG);let Yf=!0,FS,bS;const xG=e=>{if(Yf){FS=new Int32Array(512),bS=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(t_(Z1,e.lens,0,288,FS,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;t_(X1,e.lens,0,32,bS,0,e.work,{bits:5}),Yf=!1}e.lencode=FS,e.lenbits=9,e.distcode=bS,e.distbits=5},sm=(e,t,r,s)=>{let n;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),s>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(n=o.wsize-o.wnext,n>s&&(n=s),o.window.set(t.subarray(r-s,r-s+n),o.wnext),s-=n,s?(o.window.set(t.subarray(r-s,r),0),o.wnext=s,o.whave=o.wsize):(o.wnext+=n,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=n))),0},GG=(e,t)=>{let r,s,n,o,a,i,c,_,E,u,I,S,R,O,T=0,f,N,L,d,m,g,h,b;const B=new Uint8Array(4);let y,M;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(la(e)||!e.output||!e.input&&e.avail_in!==0)return Tn;r=e.state,r.mode===Ls&&(r.mode=PS),a=e.next_out,n=e.output,c=e.avail_out,o=e.next_in,s=e.input,i=e.avail_in,_=r.hold,E=r.bits,u=i,I=c,b=Yo;e:for(;;)switch(r.mode){case yl:if(r.wrap===0){r.mode=PS;break}for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.wrap&2&&_===35615){r.wbits===0&&(r.wbits=15),r.check=0,B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0),_=0,E=0,r.mode=df;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=kt;break}if((_&15)!==Tf){e.msg="unknown compression method",r.mode=kt;break}if(_>>>=4,E-=4,h=(_&15)+8,r.wbits===0&&(r.wbits=h),h>15||h>r.wbits){e.msg="invalid window size",r.mode=kt;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=_&512?gf:Ls,_=0,E=0;break;case df:for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.flags=_,(r.flags&255)!==Tf){e.msg="unknown compression method",r.mode=kt;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=kt;break}r.head&&(r.head.text=_>>8&1),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0)),_=0,E=0,r.mode=ff;case ff:for(;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.head&&(r.head.time=_),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,B[2]=_>>>16&255,B[3]=_>>>24&255,r.check=es(r.check,B,4,0)),_=0,E=0,r.mode=Nf;case Nf:for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.head&&(r.head.xflags=_&255,r.head.os=_>>8),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0)),_=0,E=0,r.mode=pf;case pf:if(r.flags&1024){for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.length=_,r.head&&(r.head.extra_len=_),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0)),_=0,E=0}else r.head&&(r.head.extra=null);r.mode=Lf;case Lf:if(r.flags&1024&&(S=r.length,S>i&&(S=i),S&&(r.head&&(h=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(s.subarray(o,o+S),h)),r.flags&512&&r.wrap&4&&(r.check=es(r.check,s,S,o)),i-=S,o+=S,r.length-=S),r.length))break e;r.length=0,r.mode=hf;case hf:if(r.flags&2048){if(i===0)break e;S=0;do h=s[o+S++],r.head&&h&&r.length<65536&&(r.head.name+=String.fromCharCode(h));while(h&&S<i);if(r.flags&512&&r.wrap&4&&(r.check=es(r.check,s,S,o)),i-=S,o+=S,h)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=mf;case mf:if(r.flags&4096){if(i===0)break e;S=0;do h=s[o+S++],r.head&&h&&r.length<65536&&(r.head.comment+=String.fromCharCode(h));while(h&&S<i);if(r.flags&512&&r.wrap&4&&(r.check=es(r.check,s,S,o)),i-=S,o+=S,h)break e}else r.head&&(r.head.comment=null);r.mode=yf;case yf:if(r.flags&512){for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.wrap&4&&_!==(r.check&65535)){e.msg="header crc mismatch",r.mode=kt;break}_=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Ls;break;case gf:for(;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}e.adler=r.check=Vf(_),_=0,E=0,r.mode=EE;case EE:if(r.havedict===0)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=i,r.hold=_,r.bits=E,PG;e.adler=r.check=1,r.mode=Ls;case Ls:if(t===yG||t===Rc)break e;case PS:if(r.last){_>>>=E&7,E-=E&7,r.mode=vS;break}for(;E<3;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}switch(r.last=_&1,_>>>=1,E-=1,_&3){case 0:r.mode=Pf;break;case 1:if(xG(r),r.mode=Ac,t===Rc){_>>>=2,E-=2;break e}break;case 2:r.mode=vf;break;case 3:e.msg="invalid block type",r.mode=kt}_>>>=2,E-=2;break;case Pf:for(_>>>=E&7,E-=E&7;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if((_&65535)!==(_>>>16^65535)){e.msg="invalid stored block lengths",r.mode=kt;break}if(r.length=_&65535,_=0,E=0,r.mode=MS,t===Rc)break e;case MS:r.mode=Mf;case Mf:if(S=r.length,S){if(S>i&&(S=i),S>c&&(S=c),S===0)break e;n.set(s.subarray(o,o+S),a),i-=S,o+=S,c-=S,a+=S,r.length-=S;break}r.mode=Ls;break;case vf:for(;E<14;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.nlen=(_&31)+257,_>>>=5,E-=5,r.ndist=(_&31)+1,_>>>=5,E-=5,r.ncode=(_&15)+4,_>>>=4,E-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=kt;break}r.have=0,r.mode=Ff;case Ff:for(;r.have<r.ncode;){for(;E<3;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.lens[F[r.have++]]=_&7,_>>>=3,E-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,y={bits:r.lenbits},b=t_(mG,r.lens,0,19,r.lencode,0,r.work,y),r.lenbits=y.bits,b){e.msg="invalid code lengths set",r.mode=kt;break}r.have=0,r.mode=bf;case bf:for(;r.have<r.nlen+r.ndist;){for(;T=r.lencode[_&(1<<r.lenbits)-1],f=T>>>24,N=T>>>16&255,L=T&65535,!(f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(L<16)_>>>=f,E-=f,r.lens[r.have++]=L;else{if(L===16){for(M=f+2;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(_>>>=f,E-=f,r.have===0){e.msg="invalid bit length repeat",r.mode=kt;break}h=r.lens[r.have-1],S=3+(_&3),_>>>=2,E-=2}else if(L===17){for(M=f+3;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=f,E-=f,h=0,S=3+(_&7),_>>>=3,E-=3}else{for(M=f+7;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=f,E-=f,h=0,S=11+(_&127),_>>>=7,E-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=kt;break}for(;S--;)r.lens[r.have++]=h}}if(r.mode===kt)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=kt;break}if(r.lenbits=9,y={bits:r.lenbits},b=t_(Z1,r.lens,0,r.nlen,r.lencode,0,r.work,y),r.lenbits=y.bits,b){e.msg="invalid literal/lengths set",r.mode=kt;break}if(r.distbits=6,r.distcode=r.distdyn,y={bits:r.distbits},b=t_(X1,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,y),r.distbits=y.bits,b){e.msg="invalid distances set",r.mode=kt;break}if(r.mode=Ac,t===Rc)break e;case Ac:r.mode=Cc;case Cc:if(i>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=i,r.hold=_,r.bits=E,dG(e,I),a=e.next_out,n=e.output,c=e.avail_out,o=e.next_in,s=e.input,i=e.avail_in,_=r.hold,E=r.bits,r.mode===Ls&&(r.back=-1);break}for(r.back=0;T=r.lencode[_&(1<<r.lenbits)-1],f=T>>>24,N=T>>>16&255,L=T&65535,!(f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(N&&(N&240)===0){for(d=f,m=N,g=L;T=r.lencode[g+((_&(1<<d+m)-1)>>d)],f=T>>>24,N=T>>>16&255,L=T&65535,!(d+f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=d,E-=d,r.back+=d}if(_>>>=f,E-=f,r.back+=f,r.length=L,N===0){r.mode=Gf;break}if(N&32){r.back=-1,r.mode=Ls;break}if(N&64){e.msg="invalid literal/length code",r.mode=kt;break}r.extra=N&15,r.mode=Uf;case Uf:if(r.extra){for(M=r.extra;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Bf;case Bf:for(;T=r.distcode[_&(1<<r.distbits)-1],f=T>>>24,N=T>>>16&255,L=T&65535,!(f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if((N&240)===0){for(d=f,m=N,g=L;T=r.distcode[g+((_&(1<<d+m)-1)>>d)],f=T>>>24,N=T>>>16&255,L=T&65535,!(d+f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=d,E-=d,r.back+=d}if(_>>>=f,E-=f,r.back+=f,N&64){e.msg="invalid distance code",r.mode=kt;break}r.offset=L,r.extra=N&15,r.mode=Hf;case Hf:if(r.extra){for(M=r.extra;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=kt;break}r.mode=xf;case xf:if(c===0)break e;if(S=I-c,r.offset>S){if(S=r.offset-S,S>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=kt;break}S>r.wnext?(S-=r.wnext,R=r.wsize-S):R=r.wnext-S,S>r.length&&(S=r.length),O=r.window}else O=n,R=a-r.offset,S=r.length;S>c&&(S=c),c-=S,r.length-=S;do n[a++]=O[R++];while(--S);r.length===0&&(r.mode=Cc);break;case Gf:if(c===0)break e;n[a++]=r.length,c--,r.mode=Cc;break;case vS:if(r.wrap){for(;E<32;){if(i===0)break e;i--,_|=s[o++]<<E,E+=8}if(I-=c,e.total_out+=I,r.total+=I,r.wrap&4&&I&&(e.adler=r.check=r.flags?es(r.check,n,I,a-I):yR(r.check,n,I,a-I)),I=c,r.wrap&4&&(r.flags?_:Vf(_))!==r.check){e.msg="incorrect data check",r.mode=kt;break}_=0,E=0}r.mode=wf;case wf:if(r.wrap&&r.flags){for(;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.wrap&4&&_!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=kt;break}_=0,E=0}r.mode=$f;case $f:b=gG;break e;case kt:b=q1;break e;case z1:return Q1;case J1:default:return Tn}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=i,r.hold=_,r.bits=E,(r.wsize||I!==e.avail_out&&r.mode<kt&&(r.mode<vS||t!==Df))&&sm(e,e.output,e.next_out,I-e.avail_out),u-=e.avail_in,I-=e.avail_out,e.total_in+=u,e.total_out+=I,r.total+=I,r.wrap&4&&I&&(e.adler=r.check=r.flags?es(r.check,n,I,e.next_out-I):yR(r.check,n,I,e.next_out-I)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ls?128:0)+(r.mode===Ac||r.mode===MS?256:0),(u===0&&I===0||t===Df)&&b===Yo&&(b=MG),b},wG=e=>{if(la(e))return Tn;let t=e.state;return t.window&&(t.window=null),e.state=null,Yo},$G=(e,t)=>{if(la(e))return Tn;const r=e.state;return(r.wrap&2)===0?Tn:(r.head=t,t.done=!1,Yo)},VG=(e,t)=>{const r=t.length;let s,n,o;return la(e)||(s=e.state,s.wrap!==0&&s.mode!==EE)?Tn:s.mode===EE&&(n=1,n=yR(n,t,r,0),n!==s.check)?q1:(o=sm(e,t,r,r),o?(s.mode=z1,Q1):(s.havedict=1,Yo))};var YG=tm,jG=rm,kG=em,KG=HG,WG=nm,ZG=GG,XG=wG,qG=$G,QG=VG,zG="pako inflate (from Nodeca project)",vs={inflateReset:YG,inflateReset2:jG,inflateResetKeep:kG,inflateInit:KG,inflateInit2:WG,inflate:ZG,inflateEnd:XG,inflateGetHeader:qG,inflateSetDictionary:QG,inflateInfo:zG};function JG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ew=JG;const om=Object.prototype.toString,{Z_NO_FLUSH:tw,Z_FINISH:rw,Z_OK:a_,Z_STREAM_END:US,Z_NEED_DICT:BS,Z_STREAM_ERROR:nw,Z_DATA_ERROR:jf,Z_MEM_ERROR:sw}=k1;function gl(e){this.options=K1.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new DG,this.strm.avail_out=0;let r=vs.inflateInit2(this.strm,t.windowBits);if(r!==a_)throw new Error(gR[r]);if(this.header=new ew,vs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=PR.string2buf(t.dictionary):om.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=vs.inflateSetDictionary(this.strm,t.dictionary),r!==a_)))throw new Error(gR[r])}gl.prototype.push=function(e,t){const r=this.strm,s=this.options.chunkSize,n=this.options.dictionary;let o,a,i;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?rw:tw,om.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(s),r.next_out=0,r.avail_out=s),o=vs.inflate(r,a),o===BS&&n&&(o=vs.inflateSetDictionary(r,n),o===a_?o=vs.inflate(r,a):o===jf&&(o=BS));r.avail_in>0&&o===US&&r.state.wrap>0&&e[r.next_in]!==0;)vs.inflateReset(r),o=vs.inflate(r,a);switch(o){case nw:case jf:case BS:case sw:return this.onEnd(o),this.ended=!0,!1}if(i=r.avail_out,r.next_out&&(r.avail_out===0||o===US))if(this.options.to==="string"){let c=PR.utf8border(r.output,r.next_out),_=r.next_out-c,E=PR.buf2string(r.output,c);r.next_out=_,r.avail_out=s-_,_&&r.output.set(r.output.subarray(c,c+_),0),this.onData(E)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===a_&&i===0)){if(o===US)return o=vs.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};gl.prototype.onData=function(e){this.chunks.push(e)};gl.prototype.onEnd=function(e){e===a_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=K1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ow(e,t){const r=new gl(t);if(r.push(e),r.err)throw r.msg||gR[r.err];return r.result}var aw=ow,iw={inflate:aw};const{inflate:_w}=iw;var cw=_w;const MR=e=>{const t=typeof atob<"u"?atob(e):Buffer.from(e,"base64").toString("binary"),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);let s;try{s=cw(r)}catch{s=r}return new TextDecoder("utf-8").decode(s)},ja=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),rO=e=>new Promise(function(t,r){if(typeof window>"u"){t({width:0,height:0});return}const s=new Image;s.onload=()=>{t({width:s.width,height:s.height})},s.onerror=n=>{r(n)},s.src=e}),am=6048e5,Ew=864e5,im=6e4,lw=36e5,uw=1e3,kf=Symbol.for("constructDateFrom");function lr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&kf in e?e[kf](t):e instanceof Date?new e.constructor(t):new Date(t)}function or(e,t){return lr(t||e,e)}function Iw(e,t,r){const s=or(e,r?.in);return s.setTime(s.getTime()+t*im),s}const Sw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rw=(e,t,r)=>{let s;const n=Sw[e];return typeof n=="string"?s=n:t===1?s=n.one:s=n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};function HS(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Aw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ow={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dw={date:HS({formats:Aw,defaultWidth:"full"}),time:HS({formats:Cw,defaultWidth:"full"}),dateTime:HS({formats:Ow,defaultWidth:"full"})},Tw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dw=(e,t,r,s)=>Tw[e];function Fi(e){return(t,r)=>{const s=r?.context?String(r.context):"standalone";let n;if(s==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):a;n=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return n[o]}}const fw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Lw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},mw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yw=(e,t)=>{const r=Number(e),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},gw={ordinalNumber:yw,era:Fi({values:fw,defaultWidth:"wide"}),quarter:Fi({values:Nw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fi({values:pw,defaultWidth:"wide"}),day:Fi({values:Lw,defaultWidth:"wide"}),dayPeriod:Fi({values:hw,defaultWidth:"wide",formattingValues:mw,defaultFormattingWidth:"wide"})};function bi(e){return(t,r={})=>{const s=r.width,n=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],o=t.match(n);if(!o)return null;const a=o[0],i=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(i)?Mw(i,u=>u.test(a)):Pw(i,u=>u.test(a));let _;_=e.valueCallback?e.valueCallback(c):c,_=r.valueCallback?r.valueCallback(_):_;const E=t.slice(a.length);return{value:_,rest:E}}}function Pw(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Mw(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function vw(e){return(t,r={})=>{const s=t.match(e.matchPattern);if(!s)return null;const n=s[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;const i=t.slice(n.length);return{value:a,rest:i}}}const Fw=/^(\d+)(th|st|nd|rd)?/i,bw=/\d+/i,Uw={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Bw={any:[/^b/i,/^(a|c)/i]},Hw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xw={any:[/1/i,/2/i,/3/i,/4/i]},Gw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ww={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$w={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yw={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},jw={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kw={ordinalNumber:vw({matchPattern:Fw,parsePattern:bw,valueCallback:e=>parseInt(e,10)}),era:bi({matchPatterns:Uw,defaultMatchWidth:"wide",parsePatterns:Bw,defaultParseWidth:"any"}),quarter:bi({matchPatterns:Hw,defaultMatchWidth:"wide",parsePatterns:xw,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bi({matchPatterns:Gw,defaultMatchWidth:"wide",parsePatterns:ww,defaultParseWidth:"any"}),day:bi({matchPatterns:$w,defaultMatchWidth:"wide",parsePatterns:Vw,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:Yw,defaultMatchWidth:"any",parsePatterns:jw,defaultParseWidth:"any"})},_m={code:"en-US",formatDistance:Rw,formatLong:Dw,formatRelative:dw,localize:gw,match:kw,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Kw={};function Ai(){return Kw}function lE(e){const t=or(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Ww(e,...t){const r=lr.bind(null,t.find(s=>typeof s=="object"));return t.map(r)}function Kf(e,t){const r=or(e,t?.in);return r.setHours(0,0,0,0),r}function Zw(e,t,r){const[s,n]=Ww(r?.in,e,t),o=Kf(s),a=Kf(n),i=+o-lE(o),c=+a-lE(a);return Math.round((i-c)/Ew)}function Xw(e,t){const r=or(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function qw(e,t){const r=or(e,t?.in);return Zw(r,Xw(r))+1}function _o(e,t){const r=Ai(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=or(e,t?.in),o=n.getDay(),a=(o<s?7:0)+o-s;return n.setDate(n.getDate()-a),n.setHours(0,0,0,0),n}function ka(e,t){return _o(e,{...t,weekStartsOn:1})}function cm(e,t){const r=or(e,t?.in),s=r.getFullYear(),n=lr(r,0);n.setFullYear(s+1,0,4),n.setHours(0,0,0,0);const o=ka(n),a=lr(r,0);a.setFullYear(s,0,4),a.setHours(0,0,0,0);const i=ka(a);return r.getTime()>=o.getTime()?s+1:r.getTime()>=i.getTime()?s:s-1}function Qw(e,t){const r=cm(e,t),s=lr(e,0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),ka(s)}function Em(e,t){const r=or(e,t?.in),s=+ka(r)-+Qw(r);return Math.round(s/am)+1}function nO(e,t){const r=or(e,t?.in),s=r.getFullYear(),n=Ai(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=lr(t?.in||e,0);a.setFullYear(s+1,0,o),a.setHours(0,0,0,0);const i=_o(a,t),c=lr(t?.in||e,0);c.setFullYear(s,0,o),c.setHours(0,0,0,0);const _=_o(c,t);return+r>=+i?s+1:+r>=+_?s:s-1}function zw(e,t){const r=Ai(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=nO(e,t),o=lr(t?.in||e,0);return o.setFullYear(n,0,s),o.setHours(0,0,0,0),_o(o,t)}function lm(e,t){const r=or(e,t?.in),s=+_o(r,t)-+zw(r,t);return Math.round(s/am)+1}function gt(e,t){const r=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return r+s}const to={y(e,t){const r=e.getFullYear(),s=r>0?r:1-r;return gt(t==="yy"?s%100:s,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):gt(r+1,2)},d(e,t){return gt(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return gt(e.getHours()%12||12,t.length)},H(e,t){return gt(e.getHours(),t.length)},m(e,t){return gt(e.getMinutes(),t.length)},s(e,t){return gt(e.getSeconds(),t.length)},S(e,t){const r=t.length,s=e.getMilliseconds(),n=Math.trunc(s*Math.pow(10,r-3));return gt(n,t.length)}},Na={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wf={G:function(e,t,r){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(s,{width:"abbreviated"});case"GGGGG":return r.era(s,{width:"narrow"});case"GGGG":default:return r.era(s,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const s=e.getFullYear(),n=s>0?s:1-s;return r.ordinalNumber(n,{unit:"year"})}return to.y(e,t)},Y:function(e,t,r,s){const n=nO(e,s),o=n>0?n:1-n;if(t==="YY"){const a=o%100;return gt(a,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):gt(o,t.length)},R:function(e,t){const r=cm(e);return gt(r,t.length)},u:function(e,t){const r=e.getFullYear();return gt(r,t.length)},Q:function(e,t,r){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return gt(s,2);case"Qo":return r.ordinalNumber(s,{unit:"quarter"});case"QQQ":return r.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,r){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return gt(s,2);case"qo":return r.ordinalNumber(s,{unit:"quarter"});case"qqq":return r.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,r){const s=e.getMonth();switch(t){case"M":case"MM":return to.M(e,t);case"Mo":return r.ordinalNumber(s+1,{unit:"month"});case"MMM":return r.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,r){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return gt(s+1,2);case"Lo":return r.ordinalNumber(s+1,{unit:"month"});case"LLL":return r.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,r,s){const n=lm(e,s);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):gt(n,t.length)},I:function(e,t,r){const s=Em(e);return t==="Io"?r.ordinalNumber(s,{unit:"week"}):gt(s,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):to.d(e,t)},D:function(e,t,r){const s=qw(e);return t==="Do"?r.ordinalNumber(s,{unit:"dayOfYear"}):gt(s,t.length)},E:function(e,t,r){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(s,{width:"short",context:"formatting"});case"EEEE":default:return r.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,r,s){const n=e.getDay(),o=(n-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,s){const n=e.getDay(),o=(n-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){const s=e.getDay(),n=s===0?7:s;switch(t){case"i":return String(n);case"ii":return gt(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(s,{width:"short",context:"formatting"});case"iiii":default:return r.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const s=e.getHours();let n;switch(s===12?n=Na.noon:s===0?n=Na.midnight:n=s/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){const s=e.getHours();let n;switch(s>=17?n=Na.evening:s>=12?n=Na.afternoon:s>=4?n=Na.morning:n=Na.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return to.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):to.H(e,t)},K:function(e,t,r){const s=e.getHours()%12;return t==="Ko"?r.ordinalNumber(s,{unit:"hour"}):gt(s,t.length)},k:function(e,t,r){let s=e.getHours();return s===0&&(s=24),t==="ko"?r.ordinalNumber(s,{unit:"hour"}):gt(s,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):to.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):to.s(e,t)},S:function(e,t){return to.S(e,t)},X:function(e,t,r){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return Xf(s);case"XXXX":case"XX":return Fo(s);case"XXXXX":case"XXX":default:return Fo(s,":")}},x:function(e,t,r){const s=e.getTimezoneOffset();switch(t){case"x":return Xf(s);case"xxxx":case"xx":return Fo(s);case"xxxxx":case"xxx":default:return Fo(s,":")}},O:function(e,t,r){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Zf(s,":");case"OOOO":default:return"GMT"+Fo(s,":")}},z:function(e,t,r){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Zf(s,":");case"zzzz":default:return"GMT"+Fo(s,":")}},t:function(e,t,r){const s=Math.trunc(+e/1e3);return gt(s,t.length)},T:function(e,t,r){return gt(+e,t.length)}};function Zf(e,t=""){const r=e>0?"-":"+",s=Math.abs(e),n=Math.trunc(s/60),o=s%60;return o===0?r+String(n):r+String(n)+t+gt(o,2)}function Xf(e,t){return e%60===0?(e>0?"-":"+")+gt(Math.abs(e)/60,2):Fo(e,t)}function Fo(e,t=""){const r=e>0?"-":"+",s=Math.abs(e),n=gt(Math.trunc(s/60),2),o=gt(s%60,2);return r+n+t+o}const qf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},um=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Jw=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],s=r[1],n=r[2];if(!n)return qf(e,t);let o;switch(s){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",qf(s,t)).replace("{{time}}",um(n,t))},vR={p:um,P:Jw},e4=/^D+$/,t4=/^Y+$/,r4=["D","DD","YY","YYYY"];function Im(e){return e4.test(e)}function Sm(e){return t4.test(e)}function FR(e,t,r){const s=n4(e,t,r);if(console.warn(s),r4.includes(e))throw new RangeError(s)}function n4(e,t,r){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function s4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function o4(e){return!(!s4(e)&&typeof e!="number"||isNaN(+or(e)))}const a4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,i4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_4=/^'([^]*?)'?$/,c4=/''/g,E4=/[a-zA-Z]/;function l4(e,t,r){const s=Ai(),n=s.locale??_m,o=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,a=s.weekStartsOn??s.locale?.options?.weekStartsOn??0,i=or(e,r?.in);if(!o4(i))throw new RangeError("Invalid time value");let c=t.match(i4).map(E=>{const u=E[0];if(u==="p"||u==="P"){const I=vR[u];return I(E,n.formatLong)}return E}).join("").match(a4).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const u=E[0];if(u==="'")return{isToken:!1,value:u4(E)};if(Wf[u])return{isToken:!0,value:E};if(u.match(E4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:E}});n.localize.preprocessor&&(c=n.localize.preprocessor(i,c));const _={firstWeekContainsDate:o,weekStartsOn:a,locale:n};return c.map(E=>{if(!E.isToken)return E.value;const u=E.value;(Sm(u)||Im(u))&&FR(u,t,String(e));const I=Wf[u[0]];return I(i,u,n.localize,_)}).join("")}function u4(e){const t=e.match(_4);return t?t[1].replace(c4,"'"):e}function I4(){return Object.assign({},Ai())}function S4(e,t){const r=R4(t)?new t(0):lr(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function R4(e){return typeof e=="function"&&e.prototype?.constructor===e}const A4=10;class Rm{subPriority=0;validate(t,r){return!0}}class C4 extends Rm{constructor(t,r,s,n,o){super(),this.value=t,this.validateValue=r,this.setValue=s,this.priority=n,o&&(this.subPriority=o)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,s){return this.setValue(t,r,this.value,s)}}class O4 extends Rm{priority=A4;subPriority=-1;constructor(t,r){super(),this.context=t||(s=>lr(r,s))}set(t,r){return r.timestampIsSet?t:lr(t,S4(t,this.context))}}class Nt{run(t,r,s,n){const o=this.parse(t,r,s,n);return o?{setter:new C4(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,r,s){return!0}}class D4 extends Nt{priority=140;parse(t,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"});case"GGGGG":return s.era(t,{width:"narrow"});case"GGGG":default:return s.era(t,{width:"wide"})||s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"})}}set(t,r,s){return r.era=s,t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const er={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ss={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function tr(e,t){return e&&{value:t(e.value),rest:e.rest}}function Zt(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function os(e,t){const r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};const s=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:s*(n*lw+o*im+a*uw),rest:t.slice(r[0].length)}}function Am(e){return Zt(er.anyDigitsSigned,e)}function Qt(e,t){switch(e){case 1:return Zt(er.singleDigit,t);case 2:return Zt(er.twoDigits,t);case 3:return Zt(er.threeDigits,t);case 4:return Zt(er.fourDigits,t);default:return Zt(new RegExp("^\\d{1,"+e+"}"),t)}}function uE(e,t){switch(e){case 1:return Zt(er.singleDigitSigned,t);case 2:return Zt(er.twoDigitsSigned,t);case 3:return Zt(er.threeDigitsSigned,t);case 4:return Zt(er.fourDigitsSigned,t);default:return Zt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function sO(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Cm(e,t){const r=t>0,s=r?t:1-t;let n;if(s<=50)n=e||100;else{const o=s+50,a=Math.trunc(o/100)*100,i=e>=o%100;n=e+a-(i?100:0)}return r?n:1-n}function Om(e){return e%400===0||e%4===0&&e%100!==0}class T4 extends Nt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,s){const n=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return tr(Qt(4,t),n);case"yo":return tr(s.ordinalNumber(t,{unit:"year"}),n);default:return tr(Qt(r.length,t),n)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,s){const n=t.getFullYear();if(s.isTwoDigitYear){const a=Cm(s.year,n);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}const o=!("era"in r)||r.era===1?s.year:1-s.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class d4 extends Nt{priority=130;parse(t,r,s){const n=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return tr(Qt(4,t),n);case"Yo":return tr(s.ordinalNumber(t,{unit:"year"}),n);default:return tr(Qt(r.length,t),n)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,s,n){const o=nO(t,n);if(s.isTwoDigitYear){const i=Cm(s.year,o);return t.setFullYear(i,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),_o(t,n)}const a=!("era"in r)||r.era===1?s.year:1-s.year;return t.setFullYear(a,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),_o(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class f4 extends Nt{priority=130;parse(t,r){return uE(r==="R"?4:r.length,t)}set(t,r,s){const n=lr(t,0);return n.setFullYear(s,0,4),n.setHours(0,0,0,0),ka(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class N4 extends Nt{priority=130;parse(t,r){return uE(r==="u"?4:r.length,t)}set(t,r,s){return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class p4 extends Nt{priority=120;parse(t,r,s){switch(r){case"Q":case"QQ":return Qt(r.length,t);case"Qo":return s.ordinalNumber(t,{unit:"quarter"});case"QQQ":return s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(t,{width:"wide",context:"formatting"})||s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class L4 extends Nt{priority=120;parse(t,r,s){switch(r){case"q":case"qq":return Qt(r.length,t);case"qo":return s.ordinalNumber(t,{unit:"quarter"});case"qqq":return s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(t,{width:"wide",context:"standalone"})||s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class h4 extends Nt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,s){const n=o=>o-1;switch(r){case"M":return tr(Zt(er.month,t),n);case"MM":return tr(Qt(2,t),n);case"Mo":return tr(s.ordinalNumber(t,{unit:"month"}),n);case"MMM":return s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(t,{width:"wide",context:"formatting"})||s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}}class m4 extends Nt{priority=110;parse(t,r,s){const n=o=>o-1;switch(r){case"L":return tr(Zt(er.month,t),n);case"LL":return tr(Qt(2,t),n);case"Lo":return tr(s.ordinalNumber(t,{unit:"month"}),n);case"LLL":return s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(t,{width:"wide",context:"standalone"})||s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function y4(e,t,r){const s=or(e,r?.in),n=lm(s,r)-t;return s.setDate(s.getDate()-n*7),or(s,r?.in)}class g4 extends Nt{priority=100;parse(t,r,s){switch(r){case"w":return Zt(er.week,t);case"wo":return s.ordinalNumber(t,{unit:"week"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,s,n){return _o(y4(t,s,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function P4(e,t,r){const s=or(e,r?.in),n=Em(s,r)-t;return s.setDate(s.getDate()-n*7),s}class M4 extends Nt{priority=100;parse(t,r,s){switch(r){case"I":return Zt(er.week,t);case"Io":return s.ordinalNumber(t,{unit:"week"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,s){return ka(P4(t,s))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const v4=[31,28,31,30,31,30,31,31,30,31,30,31],F4=[31,29,31,30,31,30,31,31,30,31,30,31];class b4 extends Nt{priority=90;subPriority=1;parse(t,r,s){switch(r){case"d":return Zt(er.date,t);case"do":return s.ordinalNumber(t,{unit:"date"});default:return Qt(r.length,t)}}validate(t,r){const s=t.getFullYear(),n=Om(s),o=t.getMonth();return n?r>=1&&r<=F4[o]:r>=1&&r<=v4[o]}set(t,r,s){return t.setDate(s),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class U4 extends Nt{priority=90;subpriority=1;parse(t,r,s){switch(r){case"D":case"DD":return Zt(er.dayOfYear,t);case"Do":return s.ordinalNumber(t,{unit:"date"});default:return Qt(r.length,t)}}validate(t,r){const s=t.getFullYear();return Om(s)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,s){return t.setMonth(0,s),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Dm(e,t,r){const s=or(e,r?.in);return isNaN(t)?lr(r?.in||e,NaN):(t&&s.setDate(s.getDate()+t),s)}function oO(e,t,r){const s=Ai(),n=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,o=or(e,r?.in),a=o.getDay(),c=(t%7+7)%7,_=7-n,E=t<0||t>6?t-(a+_)%7:(c+_)%7-(a+_)%7;return Dm(o,E,r)}class B4 extends Nt{priority=90;parse(t,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,s,n){return t=oO(t,s,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class H4 extends Nt{priority=90;parse(t,r,s,n){const o=a=>{const i=Math.floor((a-1)/7)*7;return(a+n.weekStartsOn+6)%7+i};switch(r){case"e":case"ee":return tr(Qt(r.length,t),o);case"eo":return tr(s.ordinalNumber(t,{unit:"day"}),o);case"eee":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeeee":return s.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,s,n){return t=oO(t,s,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class x4 extends Nt{priority=90;parse(t,r,s,n){const o=a=>{const i=Math.floor((a-1)/7)*7;return(a+n.weekStartsOn+6)%7+i};switch(r){case"c":case"cc":return tr(Qt(r.length,t),o);case"co":return tr(s.ordinalNumber(t,{unit:"day"}),o);case"ccc":return s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"ccccc":return s.day(t,{width:"narrow",context:"standalone"});case"cccccc":return s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(t,{width:"wide",context:"standalone"})||s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,s,n){return t=oO(t,s,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function G4(e,t){const r=or(e,t?.in).getDay();return r===0?7:r}function w4(e,t,r){const s=or(e,r?.in),n=G4(s,r),o=t-n;return Dm(s,o,r)}class $4 extends Nt{priority=90;parse(t,r,s){const n=o=>o===0?7:o;switch(r){case"i":case"ii":return Qt(r.length,t);case"io":return s.ordinalNumber(t,{unit:"day"});case"iii":return tr(s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return tr(s.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return tr(s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),n);case"iiii":default:return tr(s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,r){return r>=1&&r<=7}set(t,r,s){return t=w4(t,s),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class V4 extends Nt{priority=80;parse(t,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,s){return t.setHours(sO(s),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class Y4 extends Nt{priority=80;parse(t,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,s){return t.setHours(sO(s),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class j4 extends Nt{priority=80;parse(t,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,s){return t.setHours(sO(s),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class k4 extends Nt{priority=70;parse(t,r,s){switch(r){case"h":return Zt(er.hour12h,t);case"ho":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,s){const n=t.getHours()>=12;return n&&s<12?t.setHours(s+12,0,0,0):!n&&s===12?t.setHours(0,0,0,0):t.setHours(s,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class K4 extends Nt{priority=70;parse(t,r,s){switch(r){case"H":return Zt(er.hour23h,t);case"Ho":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,s){return t.setHours(s,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class W4 extends Nt{priority=70;parse(t,r,s){switch(r){case"K":return Zt(er.hour11h,t);case"Ko":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,s){return t.getHours()>=12&&s<12?t.setHours(s+12,0,0,0):t.setHours(s,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class Z4 extends Nt{priority=70;parse(t,r,s){switch(r){case"k":return Zt(er.hour24h,t);case"ko":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,s){const n=s<=24?s%24:s;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class X4 extends Nt{priority=60;parse(t,r,s){switch(r){case"m":return Zt(er.minute,t);case"mo":return s.ordinalNumber(t,{unit:"minute"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,s){return t.setMinutes(s,0,0),t}incompatibleTokens=["t","T"]}class q4 extends Nt{priority=50;parse(t,r,s){switch(r){case"s":return Zt(er.second,t);case"so":return s.ordinalNumber(t,{unit:"second"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,s){return t.setSeconds(s,0),t}incompatibleTokens=["t","T"]}class Q4 extends Nt{priority=30;parse(t,r){const s=n=>Math.trunc(n*Math.pow(10,-r.length+3));return tr(Qt(r.length,t),s)}set(t,r,s){return t.setMilliseconds(s),t}incompatibleTokens=["t","T"]}class z4 extends Nt{priority=10;parse(t,r){switch(r){case"X":return os(ss.basicOptionalMinutes,t);case"XX":return os(ss.basic,t);case"XXXX":return os(ss.basicOptionalSeconds,t);case"XXXXX":return os(ss.extendedOptionalSeconds,t);case"XXX":default:return os(ss.extended,t)}}set(t,r,s){return r.timestampIsSet?t:lr(t,t.getTime()-lE(t)-s)}incompatibleTokens=["t","T","x"]}class J4 extends Nt{priority=10;parse(t,r){switch(r){case"x":return os(ss.basicOptionalMinutes,t);case"xx":return os(ss.basic,t);case"xxxx":return os(ss.basicOptionalSeconds,t);case"xxxxx":return os(ss.extendedOptionalSeconds,t);case"xxx":default:return os(ss.extended,t)}}set(t,r,s){return r.timestampIsSet?t:lr(t,t.getTime()-lE(t)-s)}incompatibleTokens=["t","T","X"]}class e3 extends Nt{priority=40;parse(t){return Am(t)}set(t,r,s){return[lr(t,s*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class t3 extends Nt{priority=20;parse(t){return Am(t)}set(t,r,s){return[lr(t,s),{timestampIsSet:!0}]}incompatibleTokens="*"}const r3={G:new D4,y:new T4,Y:new d4,R:new f4,u:new N4,Q:new p4,q:new L4,M:new h4,L:new m4,w:new g4,I:new M4,d:new b4,D:new U4,E:new B4,e:new H4,c:new x4,i:new $4,a:new V4,b:new Y4,B:new j4,h:new k4,H:new K4,K:new W4,k:new Z4,m:new X4,s:new q4,S:new Q4,X:new z4,x:new J4,t:new e3,T:new t3},n3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,s3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,o3=/^'([^]*?)'?$/,a3=/''/g,i3=/\S/,_3=/[a-zA-Z]/;function c3(e,t,r,s){const n=()=>lr(r,NaN),o=I4(),a=o.locale??_m,i=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,_={firstWeekContainsDate:i,weekStartsOn:c,locale:a},E=[new O4(s?.in,r)],u=t.match(s3).map(T=>{const f=T[0];if(f in vR){const N=vR[f];return N(T,a.formatLong)}return T}).join("").match(n3),I=[];for(let T of u){Sm(T)&&FR(T,t,e),Im(T)&&FR(T,t,e);const f=T[0],N=r3[f];if(N){const{incompatibleTokens:L}=N;if(Array.isArray(L)){const m=I.find(g=>L.includes(g.token)||g.token===f);if(m)throw new RangeError(`The format string mustn't contain \`${m.fullToken}\` and \`${T}\` at the same time`)}else if(N.incompatibleTokens==="*"&&I.length>0)throw new RangeError(`The format string mustn't contain \`${T}\` and any other token at the same time`);I.push({token:f,fullToken:T});const d=N.run(e,T,a.match,_);if(!d)return n();E.push(d.setter),e=d.rest}else{if(f.match(_3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");if(T==="''"?T="'":f==="'"&&(T=E3(T)),e.indexOf(T)===0)e=e.slice(T.length);else return n()}}if(e.length>0&&i3.test(e))return n();const S=E.map(T=>T.priority).sort((T,f)=>f-T).filter((T,f,N)=>N.indexOf(T)===f).map(T=>E.filter(f=>f.priority===T).sort((f,N)=>N.subPriority-f.subPriority)).map(T=>T[0]);let R=or(r,s?.in);if(isNaN(+R))return n();const O={};for(const T of S){if(!T.validate(R,_))return n();const f=T.set(R,O,_);Array.isArray(f)?(R=f[0],Object.assign(O,f[1])):R=f}return R}function E3(e){return e.match(o3)[1].replace(a3,"'")}const bR=e=>{const t=c3(e,"yyMMddHHmmssX",new Date),r=new Date().getTimezoneOffset(),s=Iw(t,-r),n=-r/60,o=`GMT${n>=0?"+":""}${n}`;return l4(s,`dd/MM/yyyy HH:mm:ss '${o}'`)},Tm=e=>{let t=V.WAS_NOT_DONE;for(const r of e){if(r===V.ERROR)return V.ERROR;t===V.WAS_NOT_DONE&&r===V.OK&&(t=V.OK)}return t};var l3=Object.defineProperty,dm=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&l3(t,r,n),n};class Qs{light;rect}dm([p(),v(Pt)],Qs.prototype,"light");dm([D(),K(()=>jt),j({each:!0})],Qs.prototype,"rect");var u3=Object.defineProperty,Pl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&u3(t,r,n),n};const fm=[ce.MRZ_TEXT,ce.VISUAL_TEXT,ce.BARCODE_TEXT];class Ci{type;reference;result;location}Pl([D(),v(ce),ct(fm)],Ci.prototype,"type");Pl([D(),ae()],Ci.prototype,"reference");Pl([D(),ae()],Ci.prototype,"result");Pl([D(),j(),K(()=>Qs)],Ci.prototype,"location");class W_{checkType;checkResult}var Nm=Object.defineProperty,I3=Object.getOwnPropertyDescriptor,S3=(e,t,r)=>t in e?Nm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oo=(e,t,r,s)=>{for(var n=s>1?void 0:s?I3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Nm(t,r,n),n},pm=(e,t,r)=>S3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityFibersCheck=class extends W_{checkType;location;diagnose;checkResult;colorValues;rectCount;expectedCount};pm(exports.RAuthenticityFibersCheck,"fromPlain",e=>Zo(exports.RAuthenticityFibersCheck,e));pm(exports.RAuthenticityFibersCheck,"isBelongs",e=>{const t=e;return p_.includes(t?.checkType)});Oo([D(),ct(p_)],exports.RAuthenticityFibersCheck.prototype,"checkType",2);Oo([p(),j(),K(()=>Qs)],exports.RAuthenticityFibersCheck.prototype,"location",2);Oo([D(),v(ne)],exports.RAuthenticityFibersCheck.prototype,"diagnose",2);Oo([D(),v(V)],exports.RAuthenticityFibersCheck.prototype,"checkResult",2);Oo([D(),$({each:!0})],exports.RAuthenticityFibersCheck.prototype,"colorValues",2);Oo([D(),$()],exports.RAuthenticityFibersCheck.prototype,"rectCount",2);Oo([D(),$()],exports.RAuthenticityFibersCheck.prototype,"expectedCount",2);exports.RAuthenticityFibersCheck=Oo([Xe()],exports.RAuthenticityFibersCheck);var Lm=Object.defineProperty,R3=Object.getOwnPropertyDescriptor,A3=(e,t,r)=>t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zs=(e,t,r,s)=>{for(var n=s>1?void 0:s?R3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Lm(t,r,n),n},hm=(e,t,r)=>A3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityIdentCheck=class extends W_{checkType;location;similarity;type;image;referenceImage;diagnose;checkResult};hm(exports.RAuthenticityIdentCheck,"fromPlain",e=>Zo(exports.RAuthenticityIdentCheck,e));hm(exports.RAuthenticityIdentCheck,"isBelongs",e=>{const t=e;return L_.includes(t?.checkType)});zs([D(),ct(L_)],exports.RAuthenticityIdentCheck.prototype,"checkType",2);zs([p(),j(),K(()=>Qs)],exports.RAuthenticityIdentCheck.prototype,"location",2);zs([D(),He()],exports.RAuthenticityIdentCheck.prototype,"similarity",2);zs([D(),v(De)],exports.RAuthenticityIdentCheck.prototype,"type",2);zs([D(),ae()],exports.RAuthenticityIdentCheck.prototype,"image",2);zs([D(),ae()],exports.RAuthenticityIdentCheck.prototype,"referenceImage",2);zs([D(),v(ne)],exports.RAuthenticityIdentCheck.prototype,"diagnose",2);zs([D(),v(V)],exports.RAuthenticityIdentCheck.prototype,"checkResult",2);exports.RAuthenticityIdentCheck=zs([Xe()],exports.RAuthenticityIdentCheck);var mm=Object.defineProperty,C3=Object.getOwnPropertyDescriptor,O3=(e,t,r)=>t in e?mm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oi=(e,t,r,s)=>{for(var n=s>1?void 0:s?C3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&mm(t,r,n),n},ym=(e,t,r)=>O3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityPhotoIdentCheck=class extends W_{checkType;location;image;diagnose;checkResult};ym(exports.RAuthenticityPhotoIdentCheck,"fromPlain",e=>Zo(exports.RAuthenticityPhotoIdentCheck,e));ym(exports.RAuthenticityPhotoIdentCheck,"isBelongs",e=>{const t=e;return m_.includes(t?.checkType)});Oi([D(),ct(m_)],exports.RAuthenticityPhotoIdentCheck.prototype,"checkType",2);Oi([p(),j(),K(()=>Qs)],exports.RAuthenticityPhotoIdentCheck.prototype,"location",2);Oi([D(),ae()],exports.RAuthenticityPhotoIdentCheck.prototype,"image",2);Oi([D(),v(ne)],exports.RAuthenticityPhotoIdentCheck.prototype,"diagnose",2);Oi([D(),v(V)],exports.RAuthenticityPhotoIdentCheck.prototype,"checkResult",2);exports.RAuthenticityPhotoIdentCheck=Oi([Xe()],exports.RAuthenticityPhotoIdentCheck);var gm=Object.defineProperty,D3=Object.getOwnPropertyDescriptor,T3=(e,t,r)=>t in e?gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Di=(e,t,r,s)=>{for(var n=s>1?void 0:s?D3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&gm(t,r,n),n},Pm=(e,t,r)=>T3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticitySecurityCheck=class extends W_{checkType;location;feature;diagnose;checkResult};Pm(exports.RAuthenticitySecurityCheck,"fromPlain",e=>Zo(exports.RAuthenticitySecurityCheck,e));Pm(exports.RAuthenticitySecurityCheck,"isBelongs",e=>{const t=e;return y_.includes(t?.checkType)});Di([D(),ct(y_)],exports.RAuthenticitySecurityCheck.prototype,"checkType",2);Di([p(),j(),K(()=>Qs)],exports.RAuthenticitySecurityCheck.prototype,"location",2);Di([D(),v(De)],exports.RAuthenticitySecurityCheck.prototype,"feature",2);Di([D(),v(ne)],exports.RAuthenticitySecurityCheck.prototype,"diagnose",2);Di([D(),v(V)],exports.RAuthenticitySecurityCheck.prototype,"checkResult",2);exports.RAuthenticitySecurityCheck=Di([Xe()],exports.RAuthenticitySecurityCheck);var Mm=Object.defineProperty,d3=Object.getOwnPropertyDescriptor,f3=(e,t,r)=>t in e?Mm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ua=(e,t,r,s)=>{for(var n=s>1?void 0:s?d3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Mm(t,r,n),n},vm=(e,t,r)=>f3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityTextCheck=class extends W_{reference;checkType;location;checkResult;type;diagnose};vm(exports.RAuthenticityTextCheck,"fromPlain",e=>Zo(exports.RAuthenticityTextCheck,e));vm(exports.RAuthenticityTextCheck,"isBelongs",e=>{const t=e;return h_.includes(t?.checkType)});ua([D(),j(),K(()=>Ci)],exports.RAuthenticityTextCheck.prototype,"reference",2);ua([D(),ct(h_)],exports.RAuthenticityTextCheck.prototype,"checkType",2);ua([D(),j(),K(()=>Qs)],exports.RAuthenticityTextCheck.prototype,"location",2);ua([D(),v(V)],exports.RAuthenticityTextCheck.prototype,"checkResult",2);ua([D(),v(A)],exports.RAuthenticityTextCheck.prototype,"type",2);ua([D(),v(ne)],exports.RAuthenticityTextCheck.prototype,"diagnose",2);exports.RAuthenticityTextCheck=ua([Xe()],exports.RAuthenticityTextCheck);const Fm=e=>{const t=[];return e.forEach(r=>{if(!ja(r)||!("checkType"in r))return;const{checkType:s}=r;switch(s){case J.UV_FIBERS:t.push(exports.RAuthenticityFibersCheck.fromPlain(r));break;case J.IMAGE_PATTERN:case J.IR_VISIBILITY:case J.OVI:case J.PORTRAIT_COMPARISON:case J.KINEGRAM:case J.LETTER_SCREEN:case J.HOLOGRAM_DETECTION:case J.FINGERPRINT_COMPARISON:case J.LIVENESS:t.push(exports.RAuthenticityIdentCheck.fromPlain(r));break;case J.OCR_SECURITY_TEXT:case J.ENCRYPTED_IPI:t.push(exports.RAuthenticityTextCheck.fromPlain(r));break;case J.IPI:t.push(exports.RAuthenticityPhotoIdentCheck.fromPlain(r));break;case J.UV_LUMINESCENCE:case J.IR_B900:case J.AXIAL_PROTECTION:case J.PHOTO_EMBED_TYPE:case J.HOLOGRAMS:case J.PHOTO_AREA:case J.BARCODE_FORMAT_CHECK:case J.EXTENDED_OCR_CHECK:case J.EXTENDED_MRZ_CHECK:t.push(exports.RAuthenticitySecurityCheck.fromPlain(r));break}}),t};var bm=Object.defineProperty,N3=Object.getOwnPropertyDescriptor,p3=(e,t,r)=>t in e?bm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ml=(e,t,r,s)=>{for(var n=s>1?void 0:s?N3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&bm(t,r,n),n},L3=(e,t,r)=>p3(e,t+"",r);exports.RAuthenticityCheckGroup=class{group;checkResult;checks};L3(exports.RAuthenticityCheckGroup,"fromPlain",e=>Zo(exports.RAuthenticityCheckGroup,e));Ml([D(),v(J)],exports.RAuthenticityCheckGroup.prototype,"group",2);Ml([D(),v(V)],exports.RAuthenticityCheckGroup.prototype,"checkResult",2);Ml([j({each:!0}),co(({obj:e})=>Fm(e.checks),{toClassOnly:!0}),Ve()],exports.RAuthenticityCheckGroup.prototype,"checks",2);exports.RAuthenticityCheckGroup=Ml([Xe()],exports.RAuthenticityCheckGroup);var Um=Object.defineProperty,h3=Object.getOwnPropertyDescriptor,m3=(e,t,r)=>t in e?Um(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vl=(e,t,r,s)=>{for(var n=s>1?void 0:s?h3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Um(t,r,n),n},Bm=(e,t,r)=>m3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityCheckGroupsItem=class{page;checkResult;groups};Bm(exports.RAuthenticityCheckGroupsItem,"fromPlain",e=>nt(exports.RAuthenticityCheckGroupsItem,e));Bm(exports.RAuthenticityCheckGroupsItem,"getValidationErrors",e=>_t(e));vl([D(),$()],exports.RAuthenticityCheckGroupsItem.prototype,"page",2);vl([D(),v(V)],exports.RAuthenticityCheckGroupsItem.prototype,"checkResult",2);vl([D(),j({each:!0}),K(()=>exports.RAuthenticityCheckGroup)],exports.RAuthenticityCheckGroupsItem.prototype,"groups",2);exports.RAuthenticityCheckGroupsItem=vl([Xe()],exports.RAuthenticityCheckGroupsItem);const Qf=[De.PORTRAIT_COMPARISON_VS_CAMERA,De.PORTRAIT_COMPARISON_RFID_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_VISUAL,De.PORTRAIT_COMPARISON_EXT_VS_RFID,De.PORTRAIT_COMPARISON_EXT_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_BARCODE,De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA],Hm=e=>{const t=exports.AuthenticityCheckListContainer.fromProcessResponse(e),r=[];return t.forEach(s=>{const n=s.AuthenticityCheckList.List,o=exports.RAuthenticityCheckGroupsItem.fromPlain({checkResult:V.WAS_NOT_DONE,page:s.page_idx??0,groups:[]});n.forEach(i=>{if(exports.AuthenticityFibersTypeCheckResult.isBelongs(i)&&i.List.forEach(c=>{let _=o.groups.findIndex(E=>E.group===c.Type);_===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:c.Type,checkResult:i.Result,checks:[]})),_=o.groups.length-1),o.groups[_].checks.push(exports.RAuthenticityFibersCheck.fromPlain({colorValues:c.ColorValues,rectCount:c.RectCount,expectedCount:c.ExpectedCount,checkType:c.Type,location:{light:void 0,rect:c.RectArray},diagnose:c.ElementDiagnose??ne.UNKNOWN,checkResult:c.ElementResult??V.WAS_NOT_DONE}))}),exports.AuthenticityIdentCheckResult.isBelongs(i)&&i.List.forEach(c=>{const _=c.LightIndex;if(Qf.includes(c.ElementType))return;let E=o.groups.findIndex(u=>u.group===c.Type);E===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:c.Type,checkResult:i.Result,checks:[]})),E=o.groups.length-1),o.groups[E].checks.push(exports.RAuthenticityIdentCheck.fromPlain({checkType:c.Type,checkResult:c.ElementResult??V.WAS_NOT_DONE,diagnose:c.ElementDiagnose??ne.UNKNOWN,image:c.Image.image,referenceImage:c.EtalonImage.image,similarity:c.PercentValue??0,type:c.ElementType,location:{light:_,rect:c.Area?[c.Area]:[]}}))}),exports.AuthenticityOCRSecurityTextCheckResult.isBelongs(i)){let c=o.groups.findIndex(_=>_.group===i.Type);i.List.forEach(_=>{c===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:_.Type,checkResult:i.Result,checks:[]})),c=o.groups.length-1),o.groups[c].checks.push(exports.RAuthenticityTextCheck.fromPlain({reference:{type:_.EtalonResultType,reference:_.EtalonResultOCR,result:_.SecurityTextResultOCR,location:{light:_.EtalonLightType,rect:_.EtalonFieldRect?[_.EtalonFieldRect]:[]}},checkType:_.Type,checkResult:_.ElementResult??V.WAS_NOT_DONE,type:_.EtalonFieldType,diagnose:_.ElementDiagnose??ne.UNKNOWN,location:{light:_.LightType,rect:_.FieldRect?[_.FieldRect]:[]}}))}),i.List?.length||o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:i.Type,checkResult:i.Result,checks:[]}))}if(exports.AuthenticityPhotoIdentCheckResult.isBelongs(i)&&i.List.forEach(c=>{const _=c.LightIndex;if(c.ResultImages?.Images?.length){let E=o.groups.findIndex(u=>u.group===c.Type);E===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:c.Type,checkResult:i.Result,checks:[]})),E=o.groups.length-1),o.groups[E].checks.push(exports.RAuthenticityPhotoIdentCheck.fromPlain({checkType:c.Type,checkResult:c.ElementResult??V.WAS_NOT_DONE,diagnose:c.ElementDiagnose??ne.UNKNOWN,image:c.ResultImages.Images[0].image,location:_===Pt.OFF?void 0:{light:_,rect:c.Area?[c.Area]:[]}}))}}),exports.AuthenticitySecurityFeatureCheckResult.isBelongs(i)){let c=o.groups.findIndex(_=>_.group===i.Type);i.List.forEach(_=>{Qf.includes(_.ElementType)||(c===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:_.Type,checkResult:i.Result,checks:[]})),c=o.groups.length-1),o.groups[c].checks.push(exports.RAuthenticitySecurityCheck.fromPlain({checkType:_.Type,checkResult:_.ElementResult??V.WAS_NOT_DONE,diagnose:_.ElementDiagnose??ne.UNKNOWN,feature:_.ElementType??De.BLANK,location:{light:void 0,rect:_.ElementRect?[_.ElementRect]:[]}})))}),i.List?.length||o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:i.Type,checkResult:i.Result,checks:[]}))}}),o.groups.forEach(i=>i.checks.sort((c,_)=>c.checkResult-_.checkResult));const a=o.groups.map(({checkResult:i})=>i);o.checkResult=Tm(a),o.groups.sort((i,c)=>i.checkResult-c.checkResult),r.push(o)}),r.sort((s,n)=>s.page-n.page)};var xt=(e=>(e[e.PORTRAIT=1]="PORTRAIT",e[e.CAMERA=2]="CAMERA",e[e.RFID=3]="RFID",e[e.VISUAL=4]="VISUAL",e[e.EXTERNAL=5]="EXTERNAL",e[e.BARCODE=6]="BARCODE",e))(xt||{}),xm=Object.defineProperty,y3=Object.getOwnPropertyDescriptor,g3=(e,t,r)=>t in e?xm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z_=(e,t,r,s)=>{for(var n=s>1?void 0:s?y3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&xm(t,r,n),n},P3=(e,t,r)=>g3(e,t+"",r);exports.RPortraitComparisonComparable=class{source;checkResult;similarity;image};P3(exports.RPortraitComparisonComparable,"fromPlain",e=>nt(exports.RPortraitComparisonComparable,e));Z_([D(),v(xt)],exports.RPortraitComparisonComparable.prototype,"source",2);Z_([D(),v(V)],exports.RPortraitComparisonComparable.prototype,"checkResult",2);Z_([D(),He()],exports.RPortraitComparisonComparable.prototype,"similarity",2);Z_([D(),ae()],exports.RPortraitComparisonComparable.prototype,"image",2);exports.RPortraitComparisonComparable=Z_([Xe()],exports.RPortraitComparisonComparable);var Gm=Object.defineProperty,M3=Object.getOwnPropertyDescriptor,v3=(e,t,r)=>t in e?Gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X_=(e,t,r,s)=>{for(var n=s>1?void 0:s?M3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Gm(t,r,n),n},F3=(e,t,r)=>v3(e,t+"",r);exports.RPortraitsComparison=class{image;source;comparable;diagnose};F3(exports.RPortraitsComparison,"fromPlain",e=>Zo(exports.RPortraitsComparison,e));X_([D(),ae()],exports.RPortraitsComparison.prototype,"image",2);X_([D(),v(xt)],exports.RPortraitsComparison.prototype,"source",2);X_([D(),j({each:!0}),K(()=>exports.RPortraitComparisonComparable)],exports.RPortraitsComparison.prototype,"comparable",2);X_([D(),v(ne)],exports.RPortraitsComparison.prototype,"diagnose",2);exports.RPortraitsComparison=X_([Xe()],exports.RPortraitsComparison);const wm=e=>{const t=exports.AuthenticityCheckListContainer.fromProcessResponse(e),r=[];return t.forEach(s=>{s.AuthenticityCheckList.List.forEach(o=>{if(exports.AuthenticityIdentCheckResult.isBelongs(o)){if(o.Type!==J.PORTRAIT_COMPARISON)return;o.List.forEach(a=>{if(![De.PORTRAIT_COMPARISON_VS_CAMERA,De.PORTRAIT_COMPARISON_RFID_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_VISUAL,De.PORTRAIT_COMPARISON_EXT_VS_RFID,De.PORTRAIT_COMPARISON_EXT_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_BARCODE,De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(a.ElementType))return;let i=xt.PORTRAIT,c=xt.CAMERA;switch(a.ElementType){case De.PORTRAIT_COMPARISON_VS_CAMERA:i=xt.PORTRAIT,c=xt.CAMERA;break;case De.PORTRAIT_COMPARISON_RFID_VS_CAMERA:i=xt.RFID,c=xt.CAMERA;break;case De.PORTRAIT_COMPARISON_EXT_VS_VISUAL:i=xt.EXTERNAL,c=xt.VISUAL;break;case De.PORTRAIT_COMPARISON_EXT_VS_RFID:i=xt.EXTERNAL,c=xt.RFID;break;case De.PORTRAIT_COMPARISON_EXT_VS_CAMERA:i=xt.EXTERNAL,c=xt.CAMERA;break;case De.PORTRAIT_COMPARISON_EXT_VS_BARCODE:i=xt.EXTERNAL,c=xt.BARCODE;break;case De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA:i=xt.BARCODE,c=xt.CAMERA;break}const _=[De.PORTRAIT_COMPARISON_VS_CAMERA,De.PORTRAIT_COMPARISON_RFID_VS_CAMERA,De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(a.ElementType);let E=r.findIndex(u=>_?u.source===c:u.source===i);E===-1&&(r.push(exports.RPortraitsComparison.fromPlain({diagnose:a.ElementDiagnose,source:_?c:i,comparable:[],image:_?a.Image.image:a.EtalonImage.image})),E=r.length-1),r[E].comparable.push(exports.RPortraitComparisonComparable.fromPlain({source:_?i:c,checkResult:a.ElementResult,similarity:a.PercentValue,image:_?a.EtalonImage.image:a.Image.image}))})}})}),r};var b3=Object.defineProperty,aO=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&b3(t,r,n),n};class Ti{length;type;data}aO([D(),He()],Ti.prototype,"length");aO([D(),v(xE)],Ti.prototype,"type");aO([D(),ae()],Ti.prototype,"data");var U3=Object.defineProperty,Fl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&U3(t,r,n),n};class Ia{fieldIndex;type;resultCode;modulesData}Fl([D(),He()],Ia.prototype,"fieldIndex");Fl([D(),v(f_)],Ia.prototype,"type");Fl([D(),v(kE)],Ia.prototype,"resultCode");Fl([D(),K(()=>Ti),j({each:!0})],Ia.prototype,"modulesData");var $m=Object.defineProperty,B3=Object.getOwnPropertyDescriptor,H3=(e,t,r)=>t in e?$m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iO=(e,t,r,s)=>{for(var n=s>1?void 0:s?B3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&$m(t,r,n),n},_O=(e,t,r)=>H3(e,typeof t!="symbol"?t+"":t,r);exports.RDocumentBarcode=class{pageIndex;fields};_O(exports.RDocumentBarcode,"fromPlain",e=>nt(exports.RDocumentBarcode,e));_O(exports.RDocumentBarcode,"getValidationErrors",e=>_t(e));_O(exports.RDocumentBarcode,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RDocumentBarcode.getValidationErrors(r).length===0));iO([D(),He()],exports.RDocumentBarcode.prototype,"pageIndex",2);iO([D(),K(()=>Ia),j({each:!0})],exports.RDocumentBarcode.prototype,"fields",2);exports.RDocumentBarcode=iO([Xe()],exports.RDocumentBarcode);const x3=e=>{const t=[];return exports.DocBarCodeInfoContainer.fromProcessResponse(e).forEach(s=>{if(!s.DocBarCodeInfo?.pArrayFields?.length)return;const n=new exports.RDocumentBarcode;n.pageIndex=s.page_idx??0,n.fields=[],s.DocBarCodeInfo.pArrayFields.map((o,a)=>{const i=new Ia;i.fieldIndex=a,i.resultCode=o.bcCodeResult??kE.NO_ERR,i.type=o.bcType_DECODE??f_.UNKNOWN,i.modulesData=[],o.bcDataModule?.map(c=>{if(typeof c.mLength>"u"||typeof c.mType>"u"||typeof c.mData>"u")return;const _=new Ti;_.data=c.mData,_.length=c.mLength,_.type=c.mType,i.modulesData.push(_)}),n.fields.push(i)}),t.push(n)}),t.filter(s=>!!s.fields.length)};var G3=Object.defineProperty,q_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&G3(t,r,n),n};class Js{pageIndex;src;width;height;source}q_([D(),$()],Js.prototype,"pageIndex");q_([p(),ae()],Js.prototype,"src");q_([D(),$()],Js.prototype,"width");q_([D(),$()],Js.prototype,"height");q_([D(),v(Gt)],Js.prototype,"source");var Vm=Object.defineProperty,w3=Object.getOwnPropertyDescriptor,$3=(e,t,r)=>t in e?Vm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q_=(e,t,r,s)=>{for(var n=s>1?void 0:s?w3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Vm(t,r,n),n},cO=(e,t,r)=>$3(e,typeof t!="symbol"?t+"":t,r);exports.RDocumentImage=class{light;fieldType;name;pages};cO(exports.RDocumentImage,"fromPlain",e=>nt(exports.RDocumentImage,e));cO(exports.RDocumentImage,"getValidationErrors",e=>_t(e));cO(exports.RDocumentImage,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>!exports.RDocumentImage.getValidationErrors(r).length));Q_([D(),v(Pt)],exports.RDocumentImage.prototype,"light",2);Q_([D(),v(At)],exports.RDocumentImage.prototype,"fieldType",2);Q_([D(),ae()],exports.RDocumentImage.prototype,"name",2);Q_([D(),K(()=>Js),j({each:!0})],exports.RDocumentImage.prototype,"pages",2);exports.RDocumentImage=Q_([Xe()],exports.RDocumentImage);const V3=async(e,t,r)=>{const s=[],n=exports.ImagesResultContainer.fromProcessResponse(e);if(!n.length)return s;const o=uo.fromContainers(n,t);for(let a=0;a<o.length;a++){const i=o[a],{fieldName:c}=i;for(let _=0;_<i.valueList.length;_++){const E=i.valueList[_],{lightIndex:u,pageIndex:I,value:S,containerType:R}=E;if(r&&!r.includes(R))continue;let O=s.findIndex(L=>L.light===u&&L.fieldType===i.fieldType);if(O<0){const L=new exports.RDocumentImage;L.name=c,L.fieldType=i.fieldType,L.light=u,L.pages=[],O=s.push(L)-1}const T=S?`data:image/jpeg;base64,${S}`:void 0;let f={width:0,height:0};T&&(f=await rO(T));const N=new Js;N.pageIndex=I,N.src=T,N.width=f.width,N.height=f.height,N.source=E.source,s[O].pages.push(N)}}return s},bl=(e,t,r)=>{const s=[],n=exports.ImagesResultContainer.fromProcessResponse(e);if(!n.length)return s;const o=uo.fromContainers(n,t);for(let a=0;a<o.length;a++){const i=o[a],{fieldName:c}=i;for(let _=0;_<i.valueList.length;_++){const E=i.valueList[_],{lightIndex:u,pageIndex:I,value:S,containerType:R}=E;if(r&&!r.includes(R))continue;let O=s.findIndex(N=>N.light===u&&N.fieldType===i.fieldType);if(O<0){const N=new exports.RDocumentImage;N.name=c,N.fieldType=i.fieldType,N.light=u,N.pages=[],O=s.push(N)-1}const T=S?`data:image/jpeg;base64,${S}`:void 0,f=new Js;f.pageIndex=I,f.src=T,f.width=0,f.height=0,f.source=E.source,s[O].pages.push(f)}}return s};var Ym=Object.defineProperty,Y3=Object.getOwnPropertyDescriptor,j3=(e,t,r)=>t in e?Ym(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ul=(e,t,r,s)=>{for(var n=s>1?void 0:s?Y3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Ym(t,r,n),n},EO=(e,t,r)=>j3(e,typeof t!="symbol"?t+"":t,r);exports.RGraphicField=class{src;width;height};EO(exports.RGraphicField,"fromPlain",e=>nt(exports.RGraphicField,e));EO(exports.RGraphicField,"getValidationErrors",e=>_t(e));EO(exports.RGraphicField,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RGraphicField.getValidationErrors(r).length===0));Ul([D(),ae()],exports.RGraphicField.prototype,"src",2);Ul([D(),$()],exports.RGraphicField.prototype,"width",2);Ul([D(),$()],exports.RGraphicField.prototype,"height",2);exports.RGraphicField=Ul([Xe()],exports.RGraphicField);const jm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAoMBgDTD2qgAAAAASUVORK5CYII=";async function k3(e,t,r=!0,s){const n=new exports.RGraphicField;n.width=1,n.height=1,n.src=jm;const o=exports.ImagesResultContainer.fromProcessResponse(e);if(!o.length)return r?n:void 0;let a;if(o.forEach(i=>{if(!a)for(let c=0;c<i.Images.fieldList.length;c++){const _=i.Images.fieldList[c];if(_.fieldType===t)for(let E=0;E<_.valueList.length;E++){const u=_.valueList[E];if(s&&s.includes(u.lightIndex)||!s){a=u.value;break}}}}),a){n.src=`data:image/jpeg;base64,${a}`;const i=await rO(n.src);n.width=i.width,n.height=i.height}else if(!r)return;return n}function K3(e,t,r=!0,s){const n=new exports.RGraphicField;n.width=1,n.height=1,n.src=jm;const o=exports.ImagesResultContainer.fromProcessResponse(e);if(!o.length)return r?n:void 0;let a;if(o.forEach(i=>{if(!a)for(let c=0;c<i.Images.fieldList.length;c++){const _=i.Images.fieldList[c];if(_.fieldType===t)for(let E=0;E<_.valueList.length;E++){const u=_.valueList[E];if(s&&s.includes(u.lightIndex)||!s){a=u.value;break}}}}),a)n.src=`data:image/jpeg;base64,${a}`,n.width=0,n.height=0;else if(!r)return;return n}var W3=Object.defineProperty,km=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&W3(t,r,n),n};class z_{checkType;checkResult}km([D(),v($r)],z_.prototype,"checkType");km([D(),v(V)],z_.prototype,"checkResult");var Km=Object.defineProperty,Z3=Object.getOwnPropertyDescriptor,X3=(e,t,r)=>t in e?Km(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bl=(e,t,r,s)=>{for(var n=s>1?void 0:s?Z3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Km(t,r,n),n},lO=(e,t,r)=>X3(e,typeof t!="symbol"?t+"":t,r);exports.RImageQuality=class{pageIndex;checkResult;checks};lO(exports.RImageQuality,"fromPlain",e=>nt(exports.RImageQuality,e));lO(exports.RImageQuality,"getValidationErrors",e=>_t(e));lO(exports.RImageQuality,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RImageQuality.getValidationErrors(r).length===0));Bl([D(),He()],exports.RImageQuality.prototype,"pageIndex",2);Bl([D(),v(V)],exports.RImageQuality.prototype,"checkResult",2);Bl([D(),K(()=>z_),j({each:!0})],exports.RImageQuality.prototype,"checks",2);exports.RImageQuality=Bl([Xe()],exports.RImageQuality);var xS,zf;function q3(){return zf||(zf=1,xS=(function(){function e(n){return n}function t(n){return typeof n=="string"?n.toLowerCase():n}function r(n,o){if(o=typeof o=="object"?o:{direction:o},typeof n!="function"){var a=n;n=function(u){return u[a]?u[a]:""}}if(n.length===1){var i=n,c=o.ignoreCase?t:e,_=o.cmp||function(u,I){return u<I?-1:u>I?1:0};n=function(u,I){return _(c(i(u)),c(i(I)))}}const E={"-1":"",desc:""};return o.direction in E?function(u,I){return-n(u,I)}:n}function s(n,o){var a=typeof this=="function"&&!this.firstBy?this:!1,i=r(n,o),c=a?function(_,E){return a(_,E)||i(_,E)}:i;return c.thenBy=s,c}return s.firstBy=s,s})()),xS}var Q3=q3();const Wm=e=>{const t=[];return exports.ImageQualityCheckListContainer.fromProcessResponse(e).sort(Q3.firstBy(s=>s.page_idx)).forEach(s=>{const n=new exports.RImageQuality;n.pageIndex=s.page_idx??0,n.checks=[],n.checkResult=s.ImageQualityCheckList.result,s.ImageQualityCheckList.List.forEach(o=>{if(typeof o.result>"u"||typeof o.type>"u")return;const a=new z_;a.checkResult=o.result,a.checkType=o.type,n.checks.push(a)}),t.push(n)}),t.filter(s=>s.checks.length)};var Zm=Object.defineProperty,z3=Object.getOwnPropertyDescriptor,J3=(e,t,r)=>t in e?Zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Do=(e,t,r,s)=>{for(var n=s>1?void 0:s?z3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Zm(t,r,n),n},Xm=(e,t,r)=>J3(e,typeof t!="symbol"?t+"":t,r);exports.RRfidCertificate=class{certificateType;publicKeyAlgorithm;signatureAlgorithm;issuer;subject;validFrom;validTo};Xm(exports.RRfidCertificate,"fromPlain",e=>nt(exports.RRfidCertificate,e));Xm(exports.RRfidCertificate,"getValidationErrors",e=>_t(e));Do([D(),v(nn)],exports.RRfidCertificate.prototype,"certificateType",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"publicKeyAlgorithm",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"signatureAlgorithm",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"issuer",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"subject",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"validFrom",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"validTo",2);exports.RRfidCertificate=Do([Xe()],exports.RRfidCertificate);const qm=(e,t="UNKNOWN")=>{const r=exports.DocBinaryInfoContainer.fromProcessResponse(e),s=[];return r.forEach(n=>{n.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data?.SecurityObjects.forEach(a=>{a.SignerInfos.forEach(i=>{i.CertificateChain.forEach(c=>{const _=new exports.RRfidCertificate;_.certificateType=c.Type??nn.UNDEFINED,_.publicKeyAlgorithm=c.SubjectPKAlgorithm??t,_.signatureAlgorithm=c.SignatureAlgorithm??t,_.issuer=c.Issuer.FriendlyName.Data??t,_.subject=c.Subject.FriendlyName.Data??t,c.Validity.NotBefore.Data?_.validFrom=bR(c.Validity.NotBefore.Data):_.validFrom=t,c.Validity.NotAfter.Data?_.validTo=bR(c.Validity.NotAfter.Data):_.validTo=t,s.push(_)})})})}),s},uO=e=>{const t=exports.StatusContainer.fromProcessResponse(e),r=[];if(t.forEach(n=>{n.Status.detailsRFID&&r.push(n.Status.detailsRFID)}),r.length)return r[0];const s=new Wn;return s.AA=V.WAS_NOT_DONE,s.BAC=V.WAS_NOT_DONE,s.CA=V.WAS_NOT_DONE,s.PA=V.WAS_NOT_DONE,s.PACE=V.WAS_NOT_DONE,s.TA=V.WAS_NOT_DONE,s.overallStatus=V.WAS_NOT_DONE,s};var on=(e=>(e[e.NOT_PERFORMED=nr.RFID_Error_NotPerformed]="NOT_PERFORMED",e[e.NOT_AVAILABLE=nr.RFID_Error_NotAvailable]="NOT_AVAILABLE",e[e.NO_ERROR=nr.RFID_Error_NoError]="NO_ERROR",e[e.FAILED=nr.RFID_Error_Failed]="FAILED",e))(on||{}),Qm=Object.defineProperty,e5=Object.getOwnPropertyDescriptor,t5=(e,t,r)=>t in e?Qm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,IO=(e,t,r,s)=>{for(var n=s>1?void 0:s?e5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Qm(t,r,n),n},zm=(e,t,r)=>t5(e,typeof t!="symbol"?t+"":t,r);exports.RRfidDataGroupStatus=class{group;status};zm(exports.RRfidDataGroupStatus,"fromPlain",e=>nt(exports.RRfidDataGroupStatus,e));zm(exports.RRfidDataGroupStatus,"getValidationErrors",e=>_t(e));IO([D(),$()],exports.RRfidDataGroupStatus.prototype,"group",2);IO([D(),v(on)],exports.RRfidDataGroupStatus.prototype,"status",2);exports.RRfidDataGroupStatus=IO([Xe()],exports.RRfidDataGroupStatus);const Jf=e=>{let t;switch(e){case k.ID_DG1:case k.PASSPORT_DG1:case k.DL_DG1:t=1;break;case k.ID_DG2:case k.PASSPORT_DG2:case k.DL_DG2:t=2;break;case k.ID_DG3:case k.PASSPORT_DG3:case k.DL_DG3:t=3;break;case k.ID_DG4:case k.PASSPORT_DG4:case k.DL_DG4:t=4;break;case k.ID_DG5:case k.PASSPORT_DG5:case k.DL_DG5:t=5;break;case k.ID_DG6:case k.PASSPORT_DG6:case k.DL_DG6:t=6;break;case k.ID_DG7:case k.PASSPORT_DG7:case k.DL_DG7:t=7;break;case k.ID_DG8:case k.PASSPORT_DG8:case k.DL_DG8:t=8;break;case k.ID_DG9:case k.PASSPORT_DG9:case k.DL_DG9:t=9;break;case k.ID_DG10:case k.PASSPORT_DG10:case k.DL_DG10:t=10;break;case k.ID_DG11:case k.PASSPORT_DG11:case k.DL_DG11:t=11;break;case k.ID_DG12:case k.PASSPORT_DG12:case k.DL_DG12:t=12;break;case k.ID_DG13:case k.PASSPORT_DG13:case k.DL_DG13:t=13;break;case k.ID_DG14:case k.PASSPORT_DG14:case k.DL_DG14:t=14;break;case k.ID_DG15:case k.PASSPORT_DG15:t=15;break;case k.ID_DG16:case k.PASSPORT_DG16:t=16;break;case k.ID_DG17:case k.PASSPORT_DG17:case k.DTC_DG17:t=17;break;case k.ID_DG18:case k.PASSPORT_DG18:case k.DTC_DG18:t=18;break;case k.ID_DG19:case k.PASSPORT_DG19:t=19;break;case k.ID_DG20:case k.PASSPORT_DG20:t=20;break;case k.ID_DG21:t=21;break;case k.DTC_DG22:t=22;break;case k.DTC_DG23:t=23;break;case k.DTC_DG24:t=24;break}return t},Jm=e=>{const t=exports.DocBinaryInfoContainer.fromProcessResponse(e);let r=[];return t.forEach(s=>{const n=s.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data,o=s.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_ePassp_Directory||[];n?.Applications.forEach((a,i,c)=>{const _=a.Type,E=[];if(!(_===Wt.eDTC_PC&&c.length>1)&&(a.Files.forEach(u=>{const I=u.Type,S=Jf(I);let R=on.NOT_AVAILABLE;switch(u.PA_Status){case nr.RFID_Error_NoError:R=on.NO_ERROR;break;case nr.RFID_Error_NotPerformed:R=on.NOT_PERFORMED;break;case nr.RFID_Error_NotAvailable:R=on.NOT_AVAILABLE;break;case nr.RFID_Error_Failed:R=on.FAILED;break}S&&E.push({index:S,status:R})}),o.forEach(u=>{const I=Jf(u),S=E.findIndex(R=>R.index===I);typeof I<"u"&&S<0&&E.push({index:I,status:on.NOT_PERFORMED})}),E.length)){const u=E.sort((S,R)=>S.index-R.index);let I=0;switch(_){case Wt.E_PASSPORT:I=16;break;case Wt.E_ID:I=21;break;case Wt.E_DL:I=14;break;default:{const S=u.map(O=>O.index),R=Math.max(...S);S.includes(2)&&S.includes(3)&&S.includes(8)&&R<=8?I=8:S.includes(1)&&S.includes(2)&&S.includes(6)&&S.includes(10)&&R<=10?I=10:I=R;break}}for(let S=1;S<=I;S++)u.find(R=>R.index===S)||u.splice(S-1,0,{index:S,status:on.NOT_AVAILABLE});r=u.map(S=>{const R=new exports.RRfidDataGroupStatus;return R.group=S.index,R.status=S.status,R})}})}),r};var r5=Object.defineProperty,ey=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&r5(t,r,n),n};class Hl{group;status}ey([D(),v(k)],Hl.prototype,"group");ey([D(),v(V)],Hl.prototype,"status");var ty=Object.defineProperty,n5=Object.getOwnPropertyDescriptor,s5=(e,t,r)=>t in e?ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SO=(e,t,r,s)=>{for(var n=s>1?void 0:s?n5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ty(t,r,n),n},ry=(e,t,r)=>s5(e,typeof t!="symbol"?t+"":t,r);exports.RRfidApplicationItem=class{type;groups};ry(exports.RRfidApplicationItem,"fromPlain",e=>nt(exports.RRfidApplicationItem,e));ry(exports.RRfidApplicationItem,"getValidationErrors",e=>_t(e));SO([D(),v(Wt)],exports.RRfidApplicationItem.prototype,"type",2);SO([D(),K(()=>Hl),j({each:!0})],exports.RRfidApplicationItem.prototype,"groups",2);exports.RRfidApplicationItem=SO([Xe()],exports.RRfidApplicationItem);const ny=e=>{const t=exports.DocBinaryInfoContainer.fromProcessResponse(e),r=[];return t.forEach(s=>{s.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data?.Applications.forEach(o=>{const a={type:o.Type,groups:[]};o.Files.forEach(i=>{const c=i.Type;let _=V.WAS_NOT_DONE;switch(i.PA_Status){case nr.RFID_Error_NotPerformed:case nr.RFID_Error_NotAvailable:_=V.WAS_NOT_DONE;break;case nr.RFID_Error_NoError:_=V.OK;break;default:_=V.ERROR;break}a.groups.push({group:c,status:_})}),r.push(a)})}),r};var ze=(e=>(e.DOC_TYPE="DOC_TYPE",e.EXPIRY="EXPIRY",e.IMAGE_QA="IMAGE_QA",e.MRZ="MRZ",e.SECURITY="SECURITY",e.TEXT="TEXT",e))(ze||{}),Tt=(e=>(e.AA="AA",e.BAC="BAC",e.CA="CA",e.PA="PA",e.PACE="PACE",e.TA="TA",e))(Tt||{}),qt=(e=>(e.OPTICAL="optical",e.PORTRAIT="portrait",e.RFID="rfid",e.STOP_LIST="stopList",e))(qt||{}),o5=Object.defineProperty,di=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&o5(t,r,n),n},sy,oy,ay,iy,_y,cy;class Gn{[cy=ze.DOC_TYPE];[_y=ze.EXPIRY];[iy=ze.IMAGE_QA];[ay=ze.MRZ];[oy=ze.SECURITY];[sy=ze.TEXT]}di([D(),v(V)],Gn.prototype,cy);di([D(),v(V)],Gn.prototype,_y);di([D(),v(V)],Gn.prototype,iy);di([D(),v(V)],Gn.prototype,ay);di([D(),v(V)],Gn.prototype,oy);di([D(),v(V)],Gn.prototype,sy);var a5=Object.defineProperty,xl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&a5(t,r,n),n},Ey,ly,uy,Iy;class Bs{[Iy=qt.OPTICAL];[uy=qt.PORTRAIT];[ly=qt.RFID];[Ey=qt.STOP_LIST]}xl([D(),v(V)],Bs.prototype,Iy);xl([D(),v(V)],Bs.prototype,uy);xl([D(),v(V)],Bs.prototype,ly);xl([D(),v(V)],Bs.prototype,Ey);var i5=Object.defineProperty,fi=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&i5(t,r,n),n},Sy,Ry,Ay,Cy,Oy,Dy;class wn{[Dy=Tt.AA];[Oy=Tt.BAC];[Cy=Tt.CA];[Ay=Tt.PACE];[Ry=Tt.PA];[Sy=Tt.TA]}fi([D(),v(V)],wn.prototype,Dy);fi([D(),v(V)],wn.prototype,Oy);fi([D(),v(V)],wn.prototype,Cy);fi([D(),v(V)],wn.prototype,Ay);fi([D(),v(V)],wn.prototype,Ry);fi([D(),v(V)],wn.prototype,Sy);var Ty=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,c5=(e,t,r)=>t in e?Ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J_=(e,t,r,s)=>{for(var n=s>1?void 0:s?_5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Ty(t,r,n),n},RO=(e,t,r)=>c5(e,typeof t!="symbol"?t+"":t,r);exports.RDetailedStatus=class{overallStatus;optical;rfId;summary};RO(exports.RDetailedStatus,"fromPlain",e=>nt(exports.RDetailedStatus,e));RO(exports.RDetailedStatus,"getValidationErrors",e=>_t(e));RO(exports.RDetailedStatus,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RDetailedStatus.getValidationErrors(r).length===0));J_([D(),v(V)],exports.RDetailedStatus.prototype,"overallStatus",2);J_([D(),K(()=>Gn),j()],exports.RDetailedStatus.prototype,"optical",2);J_([D(),K(()=>wn),j()],exports.RDetailedStatus.prototype,"rfId",2);J_([D(),K(()=>Bs),j()],exports.RDetailedStatus.prototype,"summary",2);exports.RDetailedStatus=J_([Xe()],exports.RDetailedStatus);const Gl=e=>{const t=new exports.RDetailedStatus,r=exports.StatusContainer.fromProcessResponse(e);if(t.overallStatus=V.WAS_NOT_DONE,!r.length)return t.optical=new Gn,t.optical[ze.DOC_TYPE]=V.WAS_NOT_DONE,t.optical[ze.TEXT]=V.WAS_NOT_DONE,t.optical[ze.SECURITY]=V.WAS_NOT_DONE,t.optical[ze.MRZ]=V.WAS_NOT_DONE,t.optical[ze.IMAGE_QA]=V.WAS_NOT_DONE,t.optical[ze.EXPIRY]=V.WAS_NOT_DONE,t.rfId=new wn,t.rfId[Tt.AA]=V.WAS_NOT_DONE,t.rfId[Tt.BAC]=V.WAS_NOT_DONE,t.rfId[Tt.CA]=V.WAS_NOT_DONE,t.rfId[Tt.PA]=V.WAS_NOT_DONE,t.rfId[Tt.PACE]=V.WAS_NOT_DONE,t.rfId[Tt.TA]=V.WAS_NOT_DONE,t.summary=new Bs,t.summary[qt.OPTICAL]=V.WAS_NOT_DONE,t.summary[qt.PORTRAIT]=V.WAS_NOT_DONE,t.summary[qt.RFID]=V.WAS_NOT_DONE,t.summary[qt.STOP_LIST]=V.WAS_NOT_DONE,t;const s=r[0].Status;return t.overallStatus=s.overallStatus,t.optical=new Gn,t.optical[ze.DOC_TYPE]=s.detailsOptical.docType??V.WAS_NOT_DONE,t.optical[ze.TEXT]=s.detailsOptical.text??V.WAS_NOT_DONE,t.optical[ze.SECURITY]=s.detailsOptical.security??V.WAS_NOT_DONE,t.optical[ze.MRZ]=s.detailsOptical.mrz??V.WAS_NOT_DONE,t.optical[ze.IMAGE_QA]=s.detailsOptical.imageQA??V.WAS_NOT_DONE,t.optical[ze.EXPIRY]=s.detailsOptical.expiry??V.WAS_NOT_DONE,t.rfId=new wn,t.rfId[Tt.AA]=s.detailsRFID?.AA??V.WAS_NOT_DONE,t.rfId[Tt.BAC]=s.detailsRFID?.BAC??V.WAS_NOT_DONE,t.rfId[Tt.CA]=s.detailsRFID?.CA??V.WAS_NOT_DONE,t.rfId[Tt.PA]=s.detailsRFID?.PA??V.WAS_NOT_DONE,t.rfId[Tt.PACE]=s.detailsRFID?.PACE??V.WAS_NOT_DONE,t.rfId[Tt.TA]=s.detailsRFID?.TA??V.WAS_NOT_DONE,t.summary=new Bs,t.summary[qt.OPTICAL]=s.optical??V.WAS_NOT_DONE,t.summary[qt.PORTRAIT]=s.portrait??V.WAS_NOT_DONE,t.summary[qt.RFID]=s.rfid??V.WAS_NOT_DONE,t.summary[qt.STOP_LIST]=s.stopList??V.WAS_NOT_DONE,t},Ar=(e,t)=>e.reduce((r,s)=>r===V.ERROR||t(s)===V.ERROR?V.ERROR:r===V.WAS_NOT_DONE&&t(s)===V.OK?V.OK:V.WAS_NOT_DONE,V.WAS_NOT_DONE),E5=e=>{const t=new exports.RDetailedStatus;return t.overallStatus=Ar(e,r=>r.overallStatus),t.optical=new Gn,t.optical[ze.DOC_TYPE]=Ar(e,r=>r.optical[ze.DOC_TYPE]),t.optical[ze.TEXT]=Ar(e,r=>r.optical[ze.TEXT]),t.optical[ze.SECURITY]=Ar(e,r=>r.optical[ze.SECURITY]),t.optical[ze.MRZ]=Ar(e,r=>r.optical[ze.MRZ]),t.optical[ze.IMAGE_QA]=Ar(e,r=>r.optical[ze.IMAGE_QA]),t.optical[ze.EXPIRY]=Ar(e,r=>r.optical[ze.EXPIRY]),t.rfId=new wn,t.rfId[Tt.AA]=Ar(e,r=>r.rfId[Tt.AA]),t.rfId[Tt.BAC]=Ar(e,r=>r.rfId[Tt.BAC]),t.rfId[Tt.CA]=Ar(e,r=>r.rfId[Tt.CA]),t.rfId[Tt.PA]=Ar(e,r=>r.rfId[Tt.PA]),t.rfId[Tt.PACE]=Ar(e,r=>r.rfId[Tt.PACE]),t.rfId[Tt.TA]=Ar(e,r=>r.rfId[Tt.TA]),t.summary=new Bs,t.summary[qt.OPTICAL]=Ar(e,r=>r.summary[qt.OPTICAL]),t.summary[qt.PORTRAIT]=Ar(e,r=>r.summary[qt.PORTRAIT]),t.summary[qt.RFID]=Ar(e,r=>r.summary[qt.RFID]),t.summary[qt.STOP_LIST]=Ar(e,r=>r.summary[qt.STOP_LIST]),t};var dy=Object.defineProperty,l5=Object.getOwnPropertyDescriptor,u5=(e,t,r)=>t in e?dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sa=(e,t,r,s)=>{for(var n=s>1?void 0:s?l5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&dy(t,r,n),n},AO=(e,t,r)=>u5(e,typeof t!="symbol"?t+"":t,r);exports.RDocumentIdentification=class{pageIndex;documentName;isDeprecated;probability;documentId;documentCategory};AO(exports.RDocumentIdentification,"fromPlain",e=>nt(exports.RDocumentIdentification,e));AO(exports.RDocumentIdentification,"getValidationErrors",e=>_t(e));AO(exports.RDocumentIdentification,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RDocumentIdentification.getValidationErrors(r).length===0));Sa([D(),He()],exports.RDocumentIdentification.prototype,"pageIndex",2);Sa([D(),ae()],exports.RDocumentIdentification.prototype,"documentName",2);Sa([D(),Be()],exports.RDocumentIdentification.prototype,"isDeprecated",2);Sa([D(),He()],exports.RDocumentIdentification.prototype,"probability",2);Sa([D(),He()],exports.RDocumentIdentification.prototype,"documentId",2);Sa([p(),ae()],exports.RDocumentIdentification.prototype,"documentCategory",2);exports.RDocumentIdentification=Sa([Xe()],exports.RDocumentIdentification);function CO(e){const t=exports.OneCandidateContainer.fromProcessResponse(e),r=[];for(let s=0;s<t.length;s++){const n=t[s];n.OneCandidate?.DocumentName&&r.push(exports.RDocumentIdentification.fromPlain({documentName:n.OneCandidate.DocumentName,pageIndex:n.page_idx??0,isDeprecated:n.OneCandidate.FDSIDList?.isDeprecated,documentId:n.OneCandidate.ID,probability:n.OneCandidate.P,documentCategory:n.OneCandidate.FDSIDList?.dDescription}))}return r}var fy=Object.defineProperty,I5=Object.getOwnPropertyDescriptor,S5=(e,t,r)=>t in e?fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t,r,s)=>{for(var n=s>1?void 0:s?I5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&fy(t,r,n),n},OO=(e,t,r)=>S5(e,typeof t!="symbol"?t+"":t,r);exports.RNameSurname=class{value;checkResult;lcid};OO(exports.RNameSurname,"fromPlain",e=>nt(exports.RNameSurname,e));OO(exports.RNameSurname,"getValidationErrors",e=>_t(e));OO(exports.RNameSurname,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RNameSurname.getValidationErrors(r).length===0));wl([D(),ae()],exports.RNameSurname.prototype,"value",2);wl([D(),v(V)],exports.RNameSurname.prototype,"checkResult",2);wl([D(),v(Y)],exports.RNameSurname.prototype,"lcid",2);exports.RNameSurname=wl([Xe()],exports.RNameSurname);const Ny=(e,t="UNKNOWN")=>{const r=exports.TextResultContainer.fromProcessResponse(e),s=exports.RNameSurname.fromPlain({value:t,checkResult:V.ERROR,lcid:Y.LATIN});if(!r.length)return s;for(let n=0;n<r.length;n++){const o=r[n],{Text:a}=o,i=a.fieldList.findIndex(c=>c.lcid===Y.LATIN&&c.fieldType===A.SURNAME_AND_GIVEN_NAMES);if(i!==-1){const c=a.fieldList[i];return exports.RNameSurname.fromPlain({value:c.value,checkResult:c.status,lcid:c.lcid})}}for(let n=0;n<r.length;n++){const o=r[n],{Text:a}=o;for(let i=0;i<a.fieldList.length;i++){const c=a.fieldList[i];if(c.fieldType===A.SURNAME_AND_GIVEN_NAMES&&c.value)return exports.RNameSurname.fromPlain({value:c.value,checkResult:c.status,lcid:c.lcid})}}return s};var R5=Object.defineProperty,Ra=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&R5(t,r,n),n};class Ns{source;checkResult;value;probability;pageIndex;rect;rfidOrigin}Ra([D(),v(Gt)],Ns.prototype,"source");Ra([D(),v(V)],Ns.prototype,"checkResult");Ra([D(),ae()],Ns.prototype,"value");Ra([D()],Ns.prototype,"probability");Ra([D()],Ns.prototype,"pageIndex");Ra([p(),K(()=>jt),j()],Ns.prototype,"rect");Ra([p(),K(()=>Ao),j()],Ns.prototype,"rfidOrigin");var A5=Object.defineProperty,DO=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&A5(t,r,n),n};class Ni{sourceLeft;sourceRight;status}DO([D(),v(Gt)],Ni.prototype,"sourceLeft");DO([D(),v(Gt)],Ni.prototype,"sourceRight");DO([D(),v(V)],Ni.prototype,"status");var py=Object.defineProperty,C5=Object.getOwnPropertyDescriptor,O5=(e,t,r)=>t in e?py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Aa=(e,t,r,s)=>{for(var n=s>1?void 0:s?C5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&py(t,r,n),n},TO=(e,t,r)=>O5(e,typeof t!="symbol"?t+"":t,r);exports.RTextData=class{type;value;checkResult;lcid;comparisonList;bySource};TO(exports.RTextData,"fromPlain",e=>nt(exports.RTextData,e));TO(exports.RTextData,"getValidationErrors",e=>_t(e));TO(exports.RTextData,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RTextData.getValidationErrors(r).length===0));Aa([D(),v(A)],exports.RTextData.prototype,"type",2);Aa([D(),ae()],exports.RTextData.prototype,"value",2);Aa([D(),v(V)],exports.RTextData.prototype,"checkResult",2);Aa([D(),v(Y)],exports.RTextData.prototype,"lcid",2);Aa([D(),j({each:!0}),K(()=>Ni)],exports.RTextData.prototype,"comparisonList",2);Aa([D(),K(()=>Ns),j({each:!0})],exports.RTextData.prototype,"bySource",2);exports.RTextData=Aa([Xe()],exports.RTextData);const Ly=e=>{const t=[],r=exports.TextResultContainer.fromProcessResponse(e);return r.length&&r.forEach(s=>{const n=s.Text.availableSourceList.map(o=>o.source);s.Text.fieldList.forEach(o=>{const a=new exports.RTextData;a.type=o.fieldType,a.value=o.value,a.lcid=o.lcid,a.checkResult=o.status,a.comparisonList=o.comparisonList?.map(i=>{const c=new Ni;return c.sourceLeft=i.sourceLeft,c.sourceRight=i.sourceRight,c.status=i.status,c})||[],a.bySource=[],n.forEach(i=>{const c=o.validityList.find(E=>E.source===i);o.valueList.filter(E=>E.source===i).forEach(E=>{const u=new Ns;u.checkResult=c?.status??V.WAS_NOT_DONE,u.source=E.source,u.value=E?.value??"",u.pageIndex=E?.pageIndex??0,u.probability=E?.probability??0,E.fieldRect&&(u.rect=E.fieldRect),E.rfidOrigin&&(u.rfidOrigin=E.rfidOrigin),a.bySource.push(u)})}),a.bySource.length&&t.push(a)})}),t};var hy=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,T5=(e,t,r)=>t in e?hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$l=(e,t,r,s)=>{for(var n=s>1?void 0:s?D5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&hy(t,r,n),n},dO=(e,t,r)=>T5(e,typeof t!="symbol"?t+"":t,r);exports.RTextFieldValue=class{value;status;lcid};dO(exports.RTextFieldValue,"fromPlain",e=>nt(exports.RTextFieldValue,e));dO(exports.RTextFieldValue,"getValidationErrors",e=>_t(e));dO(exports.RTextFieldValue,"isValid",e=>Array.isArray(e)?e.every(t=>exports.RTextFieldValue.getValidationErrors(t).length===0):exports.RTextFieldValue.getValidationErrors(e).length===0);$l([D(),ae()],exports.RTextFieldValue.prototype,"value",2);$l([D(),v(V)],exports.RTextFieldValue.prototype,"status",2);$l([D(),v(Y)],exports.RTextFieldValue.prototype,"lcid",2);exports.RTextFieldValue=$l([Xe()],exports.RTextFieldValue);function Hs(e,t){const r=exports.TextResultContainer.fromProcessResponse(e),s=[];for(let n=0;n<r.length;n++)r[n].Text.fieldList.forEach(a=>{a.fieldType===t&&s.push(exports.RTextFieldValue.fromPlain({value:a.value,status:a.status,lcid:a.lcid}))});return s.sort((n,o)=>n.lcid-o.lcid)}function my(e){return Hs(e,A.DATE_OF_EXPIRY)}function yy(e){return Hs(e,A.ISSUING_STATE_NAME)}function gy(e){return Hs(e,A.DOCUMENT_NUMBER)}function Py(e){return Hs(e,A.AGE)}function d5(e){return Hs(e,A.NATIONALITY_CODE)}function My(e){return Hs(e,A.SEX)}class Bt extends TypeError{errors;constructor(t,r){super(t),this.name="DocReaderTypeError",this.message=t,this.errors=r}}var GS={exports:{}};/*!
23
+ - This validation runs before any file with validation decorator was parsed by NodeJS.`);var i=this.validatorOptions?this.validatorOptions.groups:void 0,c=this.validatorOptions&&this.validatorOptions.strictGroups||!1,_=this.validatorOptions&&this.validatorOptions.always||!1,E=((a=this.validatorOptions)===null||a===void 0?void 0:a.forbidUnknownValues)===void 0||this.validatorOptions.forbidUnknownValues!==!1,u=this.metadataStorage.getTargetValidationMetadatas(t.constructor,r,_,c,i),I=this.metadataStorage.groupByPropertyName(u);if(E&&!u.length){var S=new dd;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(S.target=t),S.value=void 0,S.property=void 0,S.children=[],S.constraints={unknownValue:"an unknown value was passed to the validate function"},s.push(S);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(t,I,s),Object.keys(I).forEach(function(R){var O=t[R],T=I[R].filter(function(N){return N.type===pr.IS_DEFINED}),f=I[R].filter(function(N){return N.type!==pr.IS_DEFINED&&N.type!==pr.WHITELIST});O instanceof Promise&&f.find(function(N){return N.type===pr.PROMISE_VALIDATION})?n.awaitingPromises.push(O.then(function(N){n.performValidations(t,N,R,T,f,s)})):n.performValidations(t,O,R,T,f,s)})},e.prototype.whitelist=function(t,r,s){var n=this,o=[];Object.keys(t).forEach(function(a){(!r[a]||r[a].length===0)&&o.push(a)}),o.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?o.forEach(function(a){var i,c=n.generateValidationError(t,t[a],a);c.constraints=(i={},i[pr.WHITELIST]="property ".concat(a," should not exist"),i),c.children=void 0,s.push(c)}):o.forEach(function(a){return delete t[a]}))},e.prototype.stripEmptyErrors=function(t){var r=this;return t.filter(function(s){if(s.children&&(s.children=r.stripEmptyErrors(s.children)),Object.keys(s.constraints).length===0){if(s.children.length===0)return!1;delete s.constraints}return!0})},e.prototype.performValidations=function(t,r,s,n,o,a){var i=o.filter(function(I){return I.type===pr.CUSTOM_VALIDATION}),c=o.filter(function(I){return I.type===pr.NESTED_VALIDATION}),_=o.filter(function(I){return I.type===pr.CONDITIONAL_VALIDATION}),E=this.generateValidationError(t,r,s);a.push(E);var u=this.conditionalValidations(t,r,_);u&&(this.customValidations(t,r,n,E),this.mapContexts(t,r,n,E),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(t,r,i,E),this.nestedValidations(r,c,E),this.mapContexts(t,r,o,E),this.mapContexts(t,r,i,E))))},e.prototype.generateValidationError=function(t,r,s){var n=new dd;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(n.target=t),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(n.value=r),n.property=s,n.children=[],n.constraints={},n},e.prototype.conditionalValidations=function(t,r,s){return s.map(function(n){return n.constraints[0](t,r)}).reduce(function(n,o){return n&&o},!0)},e.prototype.customValidations=function(t,r,s,n){var o=this;s.forEach(function(a){o.metadataStorage.getTargetValidatorConstraints(a.constraintCls).forEach(function(i){if(!(i.async&&o.ignoreAsyncValidations)&&!(o.validatorOptions&&o.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0)){var c={targetName:t.constructor?t.constructor.name:void 0,property:a.propertyName,object:t,value:r,constraints:a.constraints};if(!a.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){var _=i.instance.validate(r,c);if(KI(_)){var E=_.then(function(m){if(!m){var g=vi(o.createValidationError(t,r,a,i),2),h=g[0],b=g[1];n.constraints[h]=b,a.context&&(n.contexts||(n.contexts={}),n.contexts[h]=Object.assign(n.contexts[h]||{},a.context))}});o.awaitingPromises.push(E)}else if(!_){var u=vi(o.createValidationError(t,r,a,i),2),I=u[0],S=u[1];n.constraints[I]=S}return}var R=E2(r),O=R.map(function(m){return i.instance.validate(m,c)}),T=O.some(function(m){return KI(m)});if(T){var f=O.map(function(m){return KI(m)?m:Promise.resolve(m)}),N=Promise.all(f).then(function(m){var g=m.every(function(y){return y});if(!g){var h=vi(o.createValidationError(t,r,a,i),2),b=h[0],B=h[1];n.constraints[b]=B,a.context&&(n.contexts||(n.contexts={}),n.contexts[b]=Object.assign(n.contexts[b]||{},a.context))}});o.awaitingPromises.push(N);return}var L=O.every(function(m){return m});if(!L){var d=vi(o.createValidationError(t,r,a,i),2),I=d[0],S=d[1];n.constraints[I]=S}}})})},e.prototype.nestedValidations=function(t,r,s){var n=this;t!==void 0&&r.forEach(function(o){if(!(o.type!==pr.NESTED_VALIDATION&&o.type!==pr.PROMISE_VALIDATION)&&!(n.validatorOptions&&n.validatorOptions.stopAtFirstError&&Object.keys(s.constraints||{}).length>0))if(Array.isArray(t)||t instanceof Set||t instanceof Map){var a=t instanceof Set?Array.from(t):t;a.forEach(function(u,I){n.performValidations(t,u,I.toString(),[],r,s.children)})}else if(t instanceof Object){var i=typeof o.target=="string"?o.target:o.target.name;n.execute(t,i,s.children)}else{var c=vi(n.createValidationError(o.target,t,o),2),_=c[0],E=c[1];s.constraints[_]=E}})},e.prototype.mapContexts=function(t,r,s,n){var o=this;return s.forEach(function(a){if(a.context){var i=void 0;if(a.type===pr.CUSTOM_VALIDATION){var c=o.metadataStorage.getTargetValidatorConstraints(a.constraintCls);i=c[0]}var _=o.getConstraintType(a,i);n.constraints[_]&&(n.contexts||(n.contexts={}),n.contexts[_]=Object.assign(n.contexts[_]||{},a.context))}})},e.prototype.createValidationError=function(t,r,s,n){var o=t.constructor?t.constructor.name:void 0,a=this.getConstraintType(s,n),i={targetName:o,property:s.propertyName,object:t,value:r,constraints:s.constraints},c=s.message||"";!s.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&n&&n.instance.defaultMessage instanceof Function&&(c=n.instance.defaultMessage(i));var _=R2.replaceMessageSpecialTokens(c,i);return[a,_]},e.prototype.getConstraintType=function(t,r){var s=r&&r.name?r.name:t.type;return s},e})(),A2=function(e,t,r,s){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function i(E){try{_(s.next(E))}catch(u){a(u)}}function c(E){try{_(s.throw(E))}catch(u){a(u)}}function _(E){E.done?o(E.value):n(E.value).then(i,c)}_((s=s.apply(e,t||[])).next())})},C2=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,n,o,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(_){return function(E){return c([_,E])}}function c(_){if(s)throw new TypeError("Generator is already executing.");for(;a&&(a=0,_[0]&&(r=0)),r;)try{if(s=1,n&&(o=_[0]&2?n.return:_[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,_[1])).done)return o;switch(n=0,o&&(_=[_[0]&2,o.value]),_[0]){case 0:case 1:o=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,n=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!o||_[1]>o[0]&&_[1]<o[3])){r.label=_[1];break}if(_[0]===6&&r.label<o[1]){r.label=o[1],o=_;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(_);break}o[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(E){_=[6,E],n=0}finally{s=o=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Nd=(function(){function e(){}return e.prototype.validate=function(t,r,s){return this.coreValidate(t,r,s)},e.prototype.validateOrReject=function(t,r,s){return A2(this,void 0,void 0,function(){var n;return C2(this,function(o){switch(o.label){case 0:return[4,this.coreValidate(t,r,s)];case 1:return n=o.sent(),n.length?[2,Promise.reject(n)]:[2]}})})},e.prototype.validateSync=function(t,r,s){var n=typeof t=="string"?r:t,o=typeof t=="string"?s:r,a=typeof t=="string"?t:void 0,i=new fd(this,o);i.ignoreAsyncValidations=!0;var c=[];return i.execute(n,a,c),i.stripEmptyErrors(c)},e.prototype.coreValidate=function(t,r,s){var n=typeof t=="string"?r:t,o=typeof t=="string"?s:r,a=typeof t=="string"?t:void 0,i=new fd(this,o),c=[];return i.execute(n,a,c),Promise.all(i.awaitingPromises).then(function(){return i.stripEmptyErrors(c)})},e})(),O2=new((function(){function e(){this.instances=[]}return e.prototype.get=function(t){var r=this.instances.find(function(s){return s.type===t});return r||(r={type:t,object:new t},this.instances.push(r)),r.object},e})());function cE(e){return O2.get(e)}var D2=(function(){function e(t,r,s){s===void 0&&(s=!1),this.target=t,this.name=r,this.async=s}return Object.defineProperty(e.prototype,"instance",{get:function(){return cE(this.target)},enumerable:!1,configurable:!0}),e})();function th(e){var t;if(e.validator instanceof Function){t=e.validator;var r=cE(eh).getTargetValidatorConstraints(e.validator);if(r.length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(e.target.name,":").concat(e.propertyName)}else{var s=e.validator;t=(function(){function o(){}return o.prototype.validate=function(a,i){return s.validate(a,i)},o.prototype.defaultMessage=function(a){return s.defaultMessage?s.defaultMessage(a):""},o})(),s_().addConstraintMetadata(new D2(t,e.name,e.async))}var n={type:e.name&&pr.isValid(e.name)?e.name:pr.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};s_().addValidationMetadata(new KE(n))}function En(e,t){return function(r){var s=t&&t.each?"each value in ":"";return e(s,r)}}function ln(e,t){return function(r,s){th({name:e.name,target:r.constructor,propertyName:s,options:t,constraints:e.constraints,validator:e.validator})}}var T2=pr.IS_DEFINED;function d2(e){return e!=null}function D(e){return ln({name:T2,validator:{validate:function(t){return d2(t)},defaultMessage:En(function(t){return t+"$property should not be null or undefined"},e)}},e)}var f2="isOptional";function p(e){return function(t,r){var s={type:pr.CONDITIONAL_VALIDATION,name:f2,target:t.constructor,propertyName:r,constraints:[function(n,o){return n[r]!==null&&n[r]!==void 0}],validationOptions:e};s_().addValidationMetadata(new KE(s))}}var mR=function(){return mR=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},mR.apply(this,arguments)};function j(e){var t=mR({},e),r=t.each?"each value in ":"";return t.message=t.message||r+"nested property $property must be either object or array",function(s,n){var o={type:pr.NESTED_VALIDATION,target:s.constructor,propertyName:n,validationOptions:t};s_().addValidationMetadata(new KE(o))}}var Ec={exports:{}},pd;function rh(){return pd||(pd=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(s){if(s==null)throw new TypeError("Expected a string but received a ".concat(s));if(s.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(s.constructor.name))}e.exports=t.default,e.exports.default=t.default})(Ec,Ec.exports)),Ec.exports}var lc={exports:{}},Ld;function N2(){return Ld||(Ld=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;for(var o in n)typeof s[o]>"u"&&(s[o]=n[o]);return s}e.exports=t.default,e.exports.default=t.default})(lc,lc.exports)),lc.exports}var p2="isIn";function L2(e,t){return Array.isArray(t)&&t.some(function(r){return r===e})}function ct(e,t){return ln({name:p2,constraints:[e],validator:{validate:function(r,s){return L2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be one of the following values: $constraint1"},t)}},t)}var h2="min";function m2(e,t){return typeof e=="number"&&typeof t=="number"&&e>=t}function N_(e,t){return ln({name:h2,constraints:[e],validator:{validate:function(r,s){return m2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must not be less than $constraint1"},t)}},t)}var uc={exports:{}},hd;function y2(){return hd||(hd=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=n(rh()),s=n(N2());function n(E){return E&&E.__esModule?E:{default:E}}var o=/^[A-Za-z0-9+/]+={0,2}$/,a=/^[A-Za-z0-9+/]+$/,i=/^[A-Za-z0-9_-]+={0,2}$/,c=/^[A-Za-z0-9_-]+$/;function _(E,u){var I;if((0,r.default)(E),u=(0,s.default)(u,{urlSafe:!1,padding:!((I=u)!==null&&I!==void 0&&I.urlSafe)}),E==="")return!0;if(u.padding&&E.length%4!==0)return!1;var S;return u.urlSafe?S=u.padding?i:c:S=u.padding?o:a,(!u.padding||E.length%4===0)&&S.test(E)}e.exports=t.default,e.exports.default=t.default})(uc,uc.exports)),uc.exports}var g2=y2();const P2=Qa(g2);var M2="isBase64";function v2(e,t){return typeof e=="string"&&P2(e,t)}function dn(e,t){return ln({name:M2,constraints:[e],validator:{validate:function(r,s){return v2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be base64 encoded"},t)}},t)}var Ic={exports:{}},md;function F2(){return md||(md=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=s(rh());function s(a){return a&&a.__esModule?a:{default:a}}function n(a){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(a)}function o(a,i){(0,r.default)(a);var c,_;n(i)==="object"?(c=i.min||0,_=i.max):(c=arguments[1]||0,_=arguments[2]);var E=a.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],u=a.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],I=a.length-E.length-u.length,S=I>=c&&(typeof _>"u"||I<=_);return S&&Array.isArray(i?.discreteLengths)?i.discreteLengths.some(function(R){return R===I}):S}e.exports=t.default,e.exports.default=t.default})(Ic,Ic.exports)),Ic.exports}var b2=F2();const U2=Qa(b2);var B2="maxLength";function H2(e,t){return typeof e=="string"&&U2(e,{min:0,max:t})}function x2(e,t){return ln({name:B2,constraints:[e],validator:{validate:function(r,s){return H2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be shorter than or equal to $constraint1 characters"},t)}},t)}var G2="isBoolean";function w2(e){return e instanceof Boolean||typeof e=="boolean"}function Be(e){return ln({name:G2,validator:{validate:function(t,r){return w2(t)},defaultMessage:En(function(t){return t+"$property must be a boolean value"},e)}},e)}var $2="isNumber";function V2(e,t){if(t===void 0&&(t={}),typeof e!="number")return!1;if(e===1/0||e===-1/0)return!!t.allowInfinity;if(Number.isNaN(e))return!!t.allowNaN;if(t.maxDecimalPlaces!==void 0){var r=0;if(e%1!==0&&(r=e.toString().split(".")[1].length),r>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function He(e,t){return e===void 0&&(e={}),ln({name:$2,constraints:[e],validator:{validate:function(r,s){return V2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be a number conforming to the specified constraints"},t)}},t)}var yd=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),n,o=[],a;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(i){a={error:i}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return o},Y2="isEnum";function j2(e,t){var r=Object.keys(t).map(function(s){return t[s]});return r.includes(e)}function k2(e){return Object.entries(e).filter(function(t){var r=yd(t,2),s=r[0];return r[1],isNaN(parseInt(s))}).map(function(t){var r=yd(t,2);r[0];var s=r[1];return s})}function v(e,t){return ln({name:Y2,constraints:[e,k2(e)],validator:{validate:function(r,s){return j2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must be one of the following values: $constraint2"},t)}},t)}var K2="isInt";function W2(e){return typeof e=="number"&&Number.isInteger(e)}function $(e){return ln({name:K2,validator:{validate:function(t,r){return W2(t)},defaultMessage:En(function(t){return t+"$property must be an integer number"},e)}},e)}var Z2="isString";function X2(e){return e instanceof String||typeof e=="string"}function ae(e){return ln({name:Z2,validator:{validate:function(t,r){return X2(t)},defaultMessage:En(function(t){return t+"$property must be a string"},e)}},e)}var q2="isArray";function Q2(e){return Array.isArray(e)}function Ve(e){return ln({name:q2,validator:{validate:function(t,r){return Q2(t)},defaultMessage:En(function(t){return t+"$property must be an array"},e)}},e)}var z2="arrayMinSize";function J2(e,t){return Array.isArray(e)&&e.length>=t}function nh(e,t){return ln({name:z2,constraints:[e],validator:{validate:function(r,s){return J2(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must contain at least $constraint1 elements"},t)}},t)}var eU="arrayMaxSize";function tU(e,t){return Array.isArray(e)&&e.length<=t}function sh(e,t){return ln({name:eU,constraints:[e],validator:{validate:function(r,s){return tU(r,s?.constraints[0])},defaultMessage:En(function(r){return r+"$property must contain no more than $constraint1 elements"},t)}},t)}function _t(e,t,r){return typeof e=="string"?cE(Nd).validateSync(e,t,r):cE(Nd).validateSync(e,t)}var Et;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Et||(Et={}));var rU=(function(){function e(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return e.prototype.addTypeMetadata=function(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.addTransformMetadata=function(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)},e.prototype.addExposeMetadata=function(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.addExcludeMetadata=function(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)},e.prototype.findTransformMetadatas=function(t,r,s){return this.findMetadatas(this._transformMetadatas,t,r).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?s===Et.CLASS_TO_CLASS||s===Et.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?s===Et.CLASS_TO_PLAIN:!0})},e.prototype.findExcludeMetadata=function(t,r){return this.findMetadata(this._excludeMetadatas,t,r)},e.prototype.findExposeMetadata=function(t,r){return this.findMetadata(this._exposeMetadatas,t,r)},e.prototype.findExposeMetadataByCustomName=function(t,r){return this.getExposedMetadatas(t).find(function(s){return s.options&&s.options.name===r})},e.prototype.findTypeMetadata=function(t,r){return this.findMetadata(this._typeMetadatas,t,r)},e.prototype.getStrategy=function(t){var r=this._excludeMetadatas.get(t),s=r&&r.get(void 0),n=this._exposeMetadatas.get(t),o=n&&n.get(void 0);return s&&o||!s&&!o?"none":s?"excludeAll":"exposeAll"},e.prototype.getExposedMetadatas=function(t){return this.getMetadata(this._exposeMetadatas,t)},e.prototype.getExcludedMetadatas=function(t){return this.getMetadata(this._excludeMetadatas,t)},e.prototype.getExposedProperties=function(t,r){return this.getExposedMetadatas(t).filter(function(s){return!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?r===Et.CLASS_TO_CLASS||r===Et.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?r===Et.CLASS_TO_PLAIN:!0}).map(function(s){return s.propertyName})},e.prototype.getExcludedProperties=function(t,r){return this.getExcludedMetadatas(t).filter(function(s){return!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?r===Et.CLASS_TO_CLASS||r===Et.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?r===Et.CLASS_TO_PLAIN:!0}).map(function(s){return s.propertyName})},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(t,r){var s=t.get(r),n;s&&(n=Array.from(s.values()).filter(function(u){return u.propertyName!==void 0}));for(var o=[],a=0,i=this.getAncestors(r);a<i.length;a++){var c=i[a],_=t.get(c);if(_){var E=Array.from(_.values()).filter(function(u){return u.propertyName!==void 0});o.push.apply(o,E)}}return o.concat(n||[])},e.prototype.findMetadata=function(t,r,s){var n=t.get(r);if(n){var o=n.get(s);if(o)return o}for(var a=0,i=this.getAncestors(r);a<i.length;a++){var c=i[a],_=t.get(c);if(_){var E=_.get(s);if(E)return E}}},e.prototype.findMetadatas=function(t,r,s){var n=t.get(r),o;n&&(o=n.get(s));for(var a=[],i=0,c=this.getAncestors(r);i<c.length;i++){var _=c[i],E=t.get(_);E&&E.has(s)&&a.push.apply(a,E.get(s))}return a.slice().reverse().concat((o||[]).slice().reverse())},e.prototype.getAncestors=function(t){if(!t)return[];if(!this._ancestorsMap.has(t)){for(var r=[],s=Object.getPrototypeOf(t.prototype.constructor);typeof s.prototype<"u";s=Object.getPrototypeOf(s.prototype.constructor))r.push(s);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)},e})(),Cr=new rU;function nU(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function sU(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var gd=function(e,t,r){if(r||arguments.length===2)for(var s=0,n=t.length,o;s<n;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))};function oU(e){var t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var Ta=(function(){function e(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}return e.prototype.transform=function(t,r,s,n,o,a){var i=this;if(a===void 0&&(a=0),Array.isArray(r)||r instanceof Set){var c=n&&this.transformationType===Et.PLAIN_TO_CLASS?oU(n):[];return r.forEach(function(T,f){var N=t?t[f]:void 0;if(!i.options.enableCircularCheck||!i.isCircular(T)){var L=void 0;if(typeof s!="function"&&s&&s.options&&s.options.discriminator&&s.options.discriminator.property&&s.options.discriminator.subTypes){if(i.transformationType===Et.PLAIN_TO_CLASS){L=s.options.discriminator.subTypes.find(function(h){return h.name===T[s.options.discriminator.property]});var d={newObject:c,object:T,property:void 0},m=s.typeFunction(d);L===void 0?L=m:L=L.value,s.options.keepDiscriminatorProperty||delete T[s.options.discriminator.property]}i.transformationType===Et.CLASS_TO_CLASS&&(L=T.constructor),i.transformationType===Et.CLASS_TO_PLAIN&&(T[s.options.discriminator.property]=s.options.discriminator.subTypes.find(function(h){return h.value===T.constructor}).name)}else L=s;var g=i.transform(N,T,L,void 0,T instanceof Map,a+1);c instanceof Set?c.add(g):c.push(g)}else i.transformationType===Et.CLASS_TO_CLASS&&(c instanceof Set?c.add(T):c.push(T))}),c}else{if(s===String&&!o)return r==null?r:String(r);if(s===Number&&!o)return r==null?r:Number(r);if(s===Boolean&&!o)return r==null?r:!!r;if((s===Date||r instanceof Date)&&!o)return r instanceof Date?new Date(r.valueOf()):r==null?r:new Date(r);if(nU().Buffer&&(s===Buffer||r instanceof Buffer)&&!o)return r==null?r:Buffer.from(r);if(sU(r)&&!o)return new Promise(function(T,f){r.then(function(N){return T(i.transform(void 0,N,s,void 0,void 0,a+1))},f)});if(!o&&r!==null&&typeof r=="object"&&typeof r.then=="function")return r;if(typeof r=="object"&&r!==null){!s&&r.constructor!==Object&&(!Array.isArray(r)&&r.constructor===Array||(s=r.constructor)),!s&&t&&(s=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(r);var _=this.getKeys(s,r,o),E=t||{};!t&&(this.transformationType===Et.PLAIN_TO_CLASS||this.transformationType===Et.CLASS_TO_CLASS)&&(o?E=new Map:s?E=new s:E={});for(var u=function(T){if(T==="__proto__"||T==="constructor")return"continue";var f=T,N=T,L=T;if(!I.options.ignoreDecorators&&s){if(I.transformationType===Et.PLAIN_TO_CLASS){var d=Cr.findExposeMetadataByCustomName(s,T);d&&(L=d.propertyName,N=d.propertyName)}else if(I.transformationType===Et.CLASS_TO_PLAIN||I.transformationType===Et.CLASS_TO_CLASS){var d=Cr.findExposeMetadata(s,T);d&&d.options&&d.options.name&&(N=d.options.name)}}var m=void 0;I.transformationType===Et.PLAIN_TO_CLASS?m=r[f]:r instanceof Map?m=r.get(f):r[f]instanceof Function?m=r[f]():m=r[f];var g=void 0,h=m instanceof Map;if(s&&o)g=s;else if(s){var b=Cr.findTypeMetadata(s,L);if(b){var B={newObject:E,object:r,property:L},y=b.typeFunction?b.typeFunction(B):b.reflectedType;b.options&&b.options.discriminator&&b.options.discriminator.property&&b.options.discriminator.subTypes?r[f]instanceof Array?g=b:(I.transformationType===Et.PLAIN_TO_CLASS&&(g=b.options.discriminator.subTypes.find(function(Ne){if(m&&m instanceof Object&&b.options.discriminator.property in m)return Ne.name===m[b.options.discriminator.property]}),g===void 0?g=y:g=g.value,b.options.keepDiscriminatorProperty||m&&m instanceof Object&&b.options.discriminator.property in m&&delete m[b.options.discriminator.property]),I.transformationType===Et.CLASS_TO_CLASS&&(g=m.constructor),I.transformationType===Et.CLASS_TO_PLAIN&&m&&(m[b.options.discriminator.property]=b.options.discriminator.subTypes.find(function(Ne){return Ne.value===m.constructor}).name)):g=y,h=h||b.reflectedType===Map}else if(I.options.targetMaps)I.options.targetMaps.filter(function(Ne){return Ne.target===s&&!!Ne.properties[L]}).forEach(function(Ne){return g=Ne.properties[L]});else if(I.options.enableImplicitConversion&&I.transformationType===Et.PLAIN_TO_CLASS){var M=Reflect.getMetadata("design:type",s.prototype,L);M&&(g=M)}}var F=Array.isArray(r[f])?I.getReflectedType(s,L):void 0,X=t?t[f]:void 0;if(E.constructor.prototype){var Z=Object.getOwnPropertyDescriptor(E.constructor.prototype,N);if((I.transformationType===Et.PLAIN_TO_CLASS||I.transformationType===Et.CLASS_TO_CLASS)&&(Z&&!Z.set||E[N]instanceof Function))return"continue"}if(!I.options.enableCircularCheck||!I.isCircular(m)){var Ce=I.transformationType===Et.PLAIN_TO_CLASS?N:T,_e=void 0;I.transformationType===Et.CLASS_TO_PLAIN?(_e=r[Ce],_e=I.applyCustomTransformations(_e,s,Ce,r,I.transformationType),_e=r[Ce]===_e?m:_e,_e=I.transform(X,_e,g,F,h,a+1)):m===void 0&&I.options.exposeDefaultValues?_e=E[N]:(_e=I.transform(X,m,g,F,h,a+1),_e=I.applyCustomTransformations(_e,s,Ce,r,I.transformationType)),(_e!==void 0||I.options.exposeUnsetFields)&&(E instanceof Map?E.set(N,_e):E[N]=_e)}else if(I.transformationType===Et.CLASS_TO_CLASS){var _e=m;_e=I.applyCustomTransformations(_e,s,T,r,I.transformationType),(_e!==void 0||I.options.exposeUnsetFields)&&(E instanceof Map?E.set(N,_e):E[N]=_e)}},I=this,S=0,R=_;S<R.length;S++){var O=R[S];u(O)}return this.options.enableCircularCheck&&this.recursionStack.delete(r),E}else return r}},e.prototype.applyCustomTransformations=function(t,r,s,n,o){var a=this,i=Cr.findTransformMetadatas(r,s,this.transformationType);return this.options.version!==void 0&&(i=i.filter(function(c){return c.options?a.checkVersion(c.options.since,c.options.until):!0})),this.options.groups&&this.options.groups.length?i=i.filter(function(c){return c.options?a.checkGroups(c.options.groups):!0}):i=i.filter(function(c){return!c.options||!c.options.groups||!c.options.groups.length}),i.forEach(function(c){t=c.transformFn({value:t,key:s,obj:n,type:o,options:a.options})}),t},e.prototype.isCircular=function(t){return this.recursionStack.has(t)},e.prototype.getReflectedType=function(t,r){if(t){var s=Cr.findTypeMetadata(t,r);return s?s.reflectedType:void 0}},e.prototype.getKeys=function(t,r,s){var n=this,o=Cr.getStrategy(t);o==="none"&&(o=this.options.strategy||"exposeAll");var a=[];if((o==="exposeAll"||s)&&(r instanceof Map?a=Array.from(r.keys()):a=Object.keys(r)),s)return a;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){var i=Cr.getExposedProperties(t,this.transformationType),c=Cr.getExcludedProperties(t,this.transformationType);a=gd(gd([],i,!0),c,!0)}if(!this.options.ignoreDecorators&&t){var i=Cr.getExposedProperties(t,this.transformationType);this.transformationType===Et.PLAIN_TO_CLASS&&(i=i.map(function(u){var I=Cr.findExposeMetadata(t,u);return I&&I.options&&I.options.name?I.options.name:u})),this.options.excludeExtraneousValues?a=i:a=a.concat(i);var _=Cr.getExcludedProperties(t,this.transformationType);_.length>0&&(a=a.filter(function(u){return!_.includes(u)})),this.options.version!==void 0&&(a=a.filter(function(u){var I=Cr.findExposeMetadata(t,u);return!I||!I.options?!0:n.checkVersion(I.options.since,I.options.until)})),this.options.groups&&this.options.groups.length?a=a.filter(function(u){var I=Cr.findExposeMetadata(t,u);return!I||!I.options?!0:n.checkGroups(I.options.groups)}):a=a.filter(function(u){var I=Cr.findExposeMetadata(t,u);return!I||!I.options||!I.options.groups||!I.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(a=a.filter(function(E){return n.options.excludePrefixes.every(function(u){return E.substr(0,u.length)!==u})})),a=a.filter(function(E,u,I){return I.indexOf(E)===u}),a},e.prototype.checkVersion=function(t,r){var s=!0;return s&&t&&(s=this.options.version>=t),s&&r&&(s=this.options.version<r),s},e.prototype.checkGroups=function(t){return t?this.options.groups.some(function(r){return t.includes(r)}):!0},e})(),da={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0},wr=function(){return wr=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wr.apply(this,arguments)},aU=(function(){function e(){}return e.prototype.instanceToPlain=function(t,r){var s=new Ta(Et.CLASS_TO_PLAIN,wr(wr({},da),r));return s.transform(void 0,t,void 0,void 0,void 0,void 0)},e.prototype.classToPlainFromExist=function(t,r,s){var n=new Ta(Et.CLASS_TO_PLAIN,wr(wr({},da),s));return n.transform(r,t,void 0,void 0,void 0,void 0)},e.prototype.plainToInstance=function(t,r,s){var n=new Ta(Et.PLAIN_TO_CLASS,wr(wr({},da),s));return n.transform(void 0,r,t,void 0,void 0,void 0)},e.prototype.plainToClassFromExist=function(t,r,s){var n=new Ta(Et.PLAIN_TO_CLASS,wr(wr({},da),s));return n.transform(t,r,void 0,void 0,void 0,void 0)},e.prototype.instanceToInstance=function(t,r){var s=new Ta(Et.CLASS_TO_CLASS,wr(wr({},da),r));return s.transform(void 0,t,void 0,void 0,void 0,void 0)},e.prototype.classToClassFromExist=function(t,r,s){var n=new Ta(Et.CLASS_TO_CLASS,wr(wr({},da),s));return n.transform(r,t,void 0,void 0,void 0,void 0)},e.prototype.serialize=function(t,r){return JSON.stringify(this.instanceToPlain(t,r))},e.prototype.deserialize=function(t,r,s){var n=JSON.parse(r);return this.plainToInstance(t,n,s)},e.prototype.deserializeArray=function(t,r,s){var n=JSON.parse(r);return this.plainToInstance(t,n,s)},e})();function Xe(e){return e===void 0&&(e={}),function(t,r){Cr.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}function co(e,t){return t===void 0&&(t={}),function(r,s){Cr.addTransformMetadata({target:r.constructor,propertyName:s,transformFn:e,options:t})}}function K(e,t){return t===void 0&&(t={}),function(r,s){var n=Reflect.getMetadata("design:type",r,s);Cr.addTypeMetadata({target:r.constructor,propertyName:s,reflectedType:n,typeFunction:e,options:t})}}var BA=new aU;function Yt(e,t){return BA.instanceToPlain(e,t)}function nt(e,t,r){return BA.plainToInstance(e,t,r)}function Zo(e,t,r){return BA.plainToInstance(e,t,r)}var iU=Object.defineProperty,_U=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&iU(t,r,n),n};class HA{PointsList}_U([D(),Ve(),j({each:!0}),K(()=>Os)],HA.prototype,"PointsList");var cU=Object.defineProperty,xA=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cU(t,r,n),n};class Xo{Count;List;Points}xA([D(),$()],Xo.prototype,"Count");xA([D(),j({each:!0}),Ve(),K(()=>jt)],Xo.prototype,"List");xA([D(),j({each:!0}),Ve(),K(()=>HA)],Xo.prototype,"Points");var EU=Object.defineProperty,Fr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&EU(t,r,n),n};class ir{docFormat;Angle;Width;Height;Center;LeftBottom;LeftTop;RightBottom;RightTop;Dpi;Inverse;ObjArea;ObjIntAngleDev;PerspectiveTr;ResultStatus}Fr([D(),v(ri)],ir.prototype,"docFormat");Fr([D(),He()],ir.prototype,"Angle");Fr([D(),He()],ir.prototype,"Width");Fr([D(),He()],ir.prototype,"Height");Fr([D(),j(),K(()=>Os)],ir.prototype,"Center");Fr([D(),j(),K(()=>Os)],ir.prototype,"LeftBottom");Fr([D(),j(),K(()=>Os)],ir.prototype,"LeftTop");Fr([D(),j(),K(()=>Os)],ir.prototype,"RightBottom");Fr([D(),j(),K(()=>Os)],ir.prototype,"RightTop");Fr([D(),$()],ir.prototype,"Dpi");Fr([p(),$()],ir.prototype,"Inverse");Fr([p(),$()],ir.prototype,"ObjArea");Fr([p(),$()],ir.prototype,"ObjIntAngleDev");Fr([p(),$()],ir.prototype,"PerspectiveTr");Fr([p(),$()],ir.prototype,"ResultStatus");var lU=Object.defineProperty,WE=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&lU(t,r,n),n};class xs{Type;ElementResult;ElementDiagnose;PercentValue}WE([D(),v(J)],xs.prototype,"Type");WE([p(),v(V)],xs.prototype,"ElementResult");WE([p(),v(ne)],xs.prototype,"ElementDiagnose");WE([p(),$()],xs.prototype,"PercentValue");var oh=Object.defineProperty,uU=Object.getOwnPropertyDescriptor,IU=(e,t,r)=>t in e?oh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jn=(e,t,r,s)=>{for(var n=s>1?void 0:s?uU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&oh(t,r,n),n},ah=(e,t,r)=>IU(e,typeof t!="symbol"?t+"":t,r);exports.FibersType=class extends xs{RectCount;ExpectedCount;LightValue;LightDisp;RectArray;Width;Length;Area;ColorValues;Type};ah(exports.FibersType,"fromPlain",e=>nt(exports.FibersType,e));ah(exports.FibersType,"validate",e=>{const t=_t(exports.FibersType.fromPlain(e));if(t.length)throw new Bt("FibersTypeElement validation error: the data received does not match model structure!",t);return!0});jn([D(),$()],exports.FibersType.prototype,"RectCount",2);jn([D(),$()],exports.FibersType.prototype,"ExpectedCount",2);jn([p(),v(Pt)],exports.FibersType.prototype,"LightValue",2);jn([p(),$()],exports.FibersType.prototype,"LightDisp",2);jn([D(),Ve(),j({each:!0}),K(()=>jt)],exports.FibersType.prototype,"RectArray",2);jn([D(),Ve(),$({each:!0})],exports.FibersType.prototype,"Width",2);jn([D(),Ve(),$({each:!0})],exports.FibersType.prototype,"Length",2);jn([D(),Ve(),$({each:!0})],exports.FibersType.prototype,"Area",2);jn([D(),Ve(),sh(3),nh(3),$({each:!0})],exports.FibersType.prototype,"ColorValues",2);jn([D(),ct([J.UV_FIBERS]),v(J)],exports.FibersType.prototype,"Type",2);exports.FibersType=jn([Xe()],exports.FibersType);var SU=Object.defineProperty,ZE=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&SU(t,r,n),n};class Gs{Type;Result;Count;List}ZE([D(),v(J)],Gs.prototype,"Type");ZE([D(),v(V)],Gs.prototype,"Result");ZE([p(),$()],Gs.prototype,"Count");ZE([D(),Ve()],Gs.prototype,"List");var ih=Object.defineProperty,RU=Object.getOwnPropertyDescriptor,AU=(e,t,r)=>t in e?ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,GA=(e,t,r,s)=>{for(var n=s>1?void 0:s?RU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ih(t,r,n),n},_h=(e,t,r)=>AU(e,typeof t!="symbol"?t+"":t,r);const p_=[J.UV_FIBERS];exports.AuthenticityFibersTypeCheckResult=class extends Gs{Type;List};_h(exports.AuthenticityFibersTypeCheckResult,"fromPlain",e=>nt(exports.AuthenticityFibersTypeCheckResult,e));_h(exports.AuthenticityFibersTypeCheckResult,"isBelongs",e=>{const t=e;return p_.includes(t?.Type)});GA([D(),ct(p_),v(J)],exports.AuthenticityFibersTypeCheckResult.prototype,"Type",2);GA([D(),Ve(),j({each:!0}),K(()=>exports.FibersType)],exports.AuthenticityFibersTypeCheckResult.prototype,"List",2);exports.AuthenticityFibersTypeCheckResult=GA([Xe()],exports.AuthenticityFibersTypeCheckResult);var CU=Object.defineProperty,Eo=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&CU(t,r,n),n};class ls extends xs{ElementType;LightIndex;Area;Image;EtalonImage;AreaList;ElementID;Type}Eo([D(),v(De)],ls.prototype,"ElementType");Eo([D(),v(Pt)],ls.prototype,"LightIndex");Eo([p(),j(),K(()=>jt)],ls.prototype,"Area");Eo([D(),j(),K(()=>Cs)],ls.prototype,"Image");Eo([D(),j(),K(()=>Cs)],ls.prototype,"EtalonImage");Eo([p(),j(),K(()=>Xo)],ls.prototype,"AreaList");Eo([p(),He()],ls.prototype,"ElementID");Eo([D(),ct([J.IMAGE_PATTERN,J.IR_VISIBILITY,J.OVI,J.PORTRAIT_COMPARISON,J.KINEGRAM,J.LETTER_SCREEN,J.HOLOGRAM_DETECTION,J.FINGERPRINT_COMPARISON,J.LIVENESS]),v(J)],ls.prototype,"Type");var ch=Object.defineProperty,OU=Object.getOwnPropertyDescriptor,DU=(e,t,r)=>t in e?ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wA=(e,t,r,s)=>{for(var n=s>1?void 0:s?OU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ch(t,r,n),n},Eh=(e,t,r)=>DU(e,typeof t!="symbol"?t+"":t,r);const L_=[J.IMAGE_PATTERN,J.IR_VISIBILITY,J.OVI,J.PORTRAIT_COMPARISON,J.KINEGRAM,J.LETTER_SCREEN,J.HOLOGRAM_DETECTION,J.FINGERPRINT_COMPARISON,J.LIVENESS];exports.AuthenticityIdentCheckResult=class extends Gs{Type;List};Eh(exports.AuthenticityIdentCheckResult,"fromPlain",e=>nt(exports.AuthenticityIdentCheckResult,e));Eh(exports.AuthenticityIdentCheckResult,"isBelongs",e=>L_.includes(e?.Type));wA([D(),ct(L_),v(J)],exports.AuthenticityIdentCheckResult.prototype,"Type",2);wA([D(),Ve(),j({each:!0}),K(()=>ls)],exports.AuthenticityIdentCheckResult.prototype,"List",2);exports.AuthenticityIdentCheckResult=wA([Xe()],exports.AuthenticityIdentCheckResult);var TU=Object.defineProperty,fn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&TU(t,r,n),n};class Zr extends xs{CriticalFlag;LightType;FieldRect;EtalonResultType;EtalonFieldType;EtalonLightType;EtalonFieldRect;SecurityTextResultOCR;EtalonResultOCR;Reserved1;Reserved2;Type}fn([D(),v(GE)],Zr.prototype,"CriticalFlag");fn([D(),v(Pt)],Zr.prototype,"LightType");fn([D(),j(),K(()=>jt)],Zr.prototype,"FieldRect");fn([D(),He()],Zr.prototype,"EtalonResultType");fn([D(),v(A)],Zr.prototype,"EtalonFieldType");fn([D(),v(Pt)],Zr.prototype,"EtalonLightType");fn([D(),j(),K(()=>jt)],Zr.prototype,"EtalonFieldRect");fn([D(),ae()],Zr.prototype,"SecurityTextResultOCR");fn([D(),ae()],Zr.prototype,"EtalonResultOCR");fn([p()],Zr.prototype,"Reserved1");fn([p()],Zr.prototype,"Reserved2");fn([D(),ct([J.OCR_SECURITY_TEXT,J.ENCRYPTED_IPI]),v(J)],Zr.prototype,"Type");var lh=Object.defineProperty,dU=Object.getOwnPropertyDescriptor,fU=(e,t,r)=>t in e?lh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$A=(e,t,r,s)=>{for(var n=s>1?void 0:s?dU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&lh(t,r,n),n},uh=(e,t,r)=>fU(e,typeof t!="symbol"?t+"":t,r);const h_=[J.OCR_SECURITY_TEXT,J.ENCRYPTED_IPI];exports.AuthenticityOCRSecurityTextCheckResult=class extends Gs{Type;List};uh(exports.AuthenticityOCRSecurityTextCheckResult,"fromPlain",e=>nt(exports.AuthenticityOCRSecurityTextCheckResult,e));uh(exports.AuthenticityOCRSecurityTextCheckResult,"isBelongs",e=>h_.includes(e.Type));$A([D(),ct(h_),v(J)],exports.AuthenticityOCRSecurityTextCheckResult.prototype,"Type",2);$A([D(),Ve(),j({each:!0}),K(()=>Zr)],exports.AuthenticityOCRSecurityTextCheckResult.prototype,"List",2);exports.AuthenticityOCRSecurityTextCheckResult=$A([Xe()],exports.AuthenticityOCRSecurityTextCheckResult);var NU=Object.defineProperty,Ih=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&NU(t,r,n),n};class XE{Count;Images}Ih([D(),$()],XE.prototype,"Count");Ih([D(),Ve(),j({each:!0}),K(()=>Cs)],XE.prototype,"Images");var pU=Object.defineProperty,us=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&pU(t,r,n),n};class Nn extends xs{LightIndex;Area;SourceImage;ResultImages;FieldTypesCount;FieldTypesList;Step;Angle;Reserved3;Type}us([D(),v(Pt)],Nn.prototype,"LightIndex");us([D(),j(),K(()=>jt)],Nn.prototype,"Area");us([D(),j(),K(()=>Cs)],Nn.prototype,"SourceImage");us([D(),j(),K(()=>XE)],Nn.prototype,"ResultImages");us([p(),$()],Nn.prototype,"FieldTypesCount");us([p(),Ve(),$({each:!0})],Nn.prototype,"FieldTypesList");us([p(),$()],Nn.prototype,"Step");us([p(),$()],Nn.prototype,"Angle");us([p(),$()],Nn.prototype,"Reserved3");us([D(),ct([J.IPI]),v(J)],Nn.prototype,"Type");var Sh=Object.defineProperty,LU=Object.getOwnPropertyDescriptor,hU=(e,t,r)=>t in e?Sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VA=(e,t,r,s)=>{for(var n=s>1?void 0:s?LU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Sh(t,r,n),n},Rh=(e,t,r)=>hU(e,typeof t!="symbol"?t+"":t,r);const m_=[J.IPI];exports.AuthenticityPhotoIdentCheckResult=class extends Gs{Type;List};Rh(exports.AuthenticityPhotoIdentCheckResult,"fromPlain",e=>nt(exports.AuthenticityPhotoIdentCheckResult,e));Rh(exports.AuthenticityPhotoIdentCheckResult,"isBelongs",e=>m_.includes(e?.Type));VA([D(),ct(m_),v(J)],exports.AuthenticityPhotoIdentCheckResult.prototype,"Type",2);VA([D(),Ve(),j({each:!0}),K(()=>Nn)],exports.AuthenticityPhotoIdentCheckResult.prototype,"List",2);exports.AuthenticityPhotoIdentCheckResult=VA([Xe()],exports.AuthenticityPhotoIdentCheckResult);var mU=Object.defineProperty,qo=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&mU(t,r,n),n};class ws extends xs{ElementType;ElementRect;Visibility;CriticalFlag;AreaList;Reserved2;Type}qo([D(),v(De)],ws.prototype,"ElementType");qo([D(),j(),K(()=>jt)],ws.prototype,"ElementRect");qo([D(),v(Dn)],ws.prototype,"Visibility");qo([D(),v(GE)],ws.prototype,"CriticalFlag");qo([p(),j(),K(()=>Xo)],ws.prototype,"AreaList");qo([p(),$()],ws.prototype,"Reserved2");qo([D(),ct([J.UV_LUMINESCENCE,J.IR_B900,J.AXIAL_PROTECTION,J.PHOTO_EMBED_TYPE,J.HOLOGRAMS,J.PHOTO_AREA,J.BARCODE_FORMAT_CHECK,J.EXTENDED_OCR_CHECK,J.EXTENDED_MRZ_CHECK]),v(J)],ws.prototype,"Type");var Ah=Object.defineProperty,yU=Object.getOwnPropertyDescriptor,gU=(e,t,r)=>t in e?Ah(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YA=(e,t,r,s)=>{for(var n=s>1?void 0:s?yU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Ah(t,r,n),n},Ch=(e,t,r)=>gU(e,typeof t!="symbol"?t+"":t,r);const y_=[J.UV_LUMINESCENCE,J.IR_B900,J.AXIAL_PROTECTION,J.PHOTO_EMBED_TYPE,J.HOLOGRAMS,J.PHOTO_AREA,J.BARCODE_FORMAT_CHECK,J.EXTENDED_OCR_CHECK,J.EXTENDED_MRZ_CHECK];exports.AuthenticitySecurityFeatureCheckResult=class extends Gs{Type;List};Ch(exports.AuthenticitySecurityFeatureCheckResult,"fromPlain",e=>nt(exports.AuthenticitySecurityFeatureCheckResult,e));Ch(exports.AuthenticitySecurityFeatureCheckResult,"isBelongs",e=>y_.includes(e?.Type));YA([D(),ct(y_),v(J)],exports.AuthenticitySecurityFeatureCheckResult.prototype,"Type",2);YA([D(),Ve(),j({each:!0}),K(()=>ws)],exports.AuthenticitySecurityFeatureCheckResult.prototype,"List",2);exports.AuthenticitySecurityFeatureCheckResult=YA([Xe()],exports.AuthenticitySecurityFeatureCheckResult);const Oh=e=>{const t=[];return e.forEach(r=>{if(!ja(r)||!("Type"in r))return;const{Type:s}=r;switch(s){case J.UV_FIBERS:t.push(exports.AuthenticityFibersTypeCheckResult.fromPlain(r));break;case J.IMAGE_PATTERN:case J.IR_VISIBILITY:case J.OVI:case J.PORTRAIT_COMPARISON:case J.KINEGRAM:case J.LETTER_SCREEN:case J.HOLOGRAM_DETECTION:case J.FINGERPRINT_COMPARISON:case J.LIVENESS:t.push(exports.AuthenticityIdentCheckResult.fromPlain(r));break;case J.OCR_SECURITY_TEXT:case J.ENCRYPTED_IPI:t.push(exports.AuthenticityOCRSecurityTextCheckResult.fromPlain(r));break;case J.IPI:t.push(exports.AuthenticityPhotoIdentCheckResult.fromPlain(r));break;case J.UV_LUMINESCENCE:case J.IR_B900:case J.AXIAL_PROTECTION:case J.PHOTO_EMBED_TYPE:case J.HOLOGRAMS:case J.PHOTO_AREA:case J.BARCODE_FORMAT_CHECK:case J.EXTENDED_OCR_CHECK:case J.EXTENDED_MRZ_CHECK:t.push(exports.AuthenticitySecurityFeatureCheckResult.fromPlain(r));break}}),t};var PU=Object.defineProperty,Dh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&PU(t,r,n),n};class qE{Count;List}Dh([D(),$()],qE.prototype,"Count");Dh([j({each:!0}),co(({obj:e})=>Oh(e.List),{toClassOnly:!0}),Ve()],qE.prototype,"List");var MU=Object.defineProperty,g_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&MU(t,r,n),n};class Mt{buf_length;light;list_idx;page_idx;result_type;static getLightingScheme=t=>Ho(typeof t=="number"?t:t?.light??Pt.OFF)}g_([p(),$()],Mt.prototype,"buf_length");g_([p(),v(Pt)],Mt.prototype,"light");g_([p(),$()],Mt.prototype,"list_idx");g_([p(),$()],Mt.prototype,"page_idx");g_([D(),v(ce)],Mt.prototype,"result_type");var Th=Object.defineProperty,vU=Object.getOwnPropertyDescriptor,FU=(e,t,r)=>t in e?Th(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jA=(e,t,r,s)=>{for(var n=s>1?void 0:s?vU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Th(t,r,n),n},dh=(e,t,r)=>FU(e,typeof t!="symbol"?t+"":t,r);const kA=[ce.AUTHENTICITY,ce.FINGERPRINT_COMPARISON,ce.PORTRAIT_COMPARISON];exports.AuthenticityCheckListContainer=class extends Mt{AuthenticityCheckList;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!s)return[];const n=s.List.filter(o=>kA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};dh(exports.AuthenticityCheckListContainer,"fromPlain",e=>nt(exports.AuthenticityCheckListContainer,e));dh(exports.AuthenticityCheckListContainer,"validate",e=>{const t=_t(exports.AuthenticityCheckListContainer.fromPlain(e));if(t.length)throw new Bt("AuthenticityContainer validation error: the data received does not match model structure!",t);return!0});jA([D(),j(),K(()=>qE)],exports.AuthenticityCheckListContainer.prototype,"AuthenticityCheckList",2);jA([D(),v(ce),ct(kA)],exports.AuthenticityCheckListContainer.prototype,"result_type",2);exports.AuthenticityCheckListContainer=jA([Xe()],exports.AuthenticityCheckListContainer);var fh=Object.defineProperty,bU=Object.getOwnPropertyDescriptor,UU=(e,t,r)=>t in e?fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KA=(e,t,r,s)=>{for(var n=s>1?void 0:s?bU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&fh(t,r,n),n},Nh=(e,t,r)=>UU(e,typeof t!="symbol"?t+"":t,r);const WA=[ce.DOCUMENT_POSITION];exports.BoundsResultContainer=class extends Mt{DocumentPosition;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!Array.isArray(s))return[];const n=s.List.filter(o=>WA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Nh(exports.BoundsResultContainer,"fromPlain",e=>nt(exports.BoundsResultContainer,e));Nh(exports.BoundsResultContainer,"validate",e=>{const t=_t(exports.BoundsResultContainer.fromPlain(e));if(t.length)throw new Bt("BoundsResultContainer validation error: the data received does not match model structure!",t);return!0});KA([D(),j(),K(()=>ir)],exports.BoundsResultContainer.prototype,"DocumentPosition",2);KA([D(),v(ce),ct(WA)],exports.BoundsResultContainer.prototype,"result_type",2);exports.BoundsResultContainer=KA([Xe()],exports.BoundsResultContainer);var ph=Object.defineProperty,BU=Object.getOwnPropertyDescriptor,HU=(e,t,r)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ZA=(e,t,r,s)=>{for(var n=s>1?void 0:s?BU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ph(t,r,n),n},Lh=(e,t,r)=>HU(e,typeof t!="symbol"?t+"":t,r);const XA=[ce.BARCODE_POSITION];exports.BarcodeBoundsResultContainer=class extends Mt{BarcodePosition;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!Array.isArray(s))return[];const n=s.List.filter(o=>XA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Lh(exports.BarcodeBoundsResultContainer,"fromPlain",e=>nt(exports.BarcodeBoundsResultContainer,e));Lh(exports.BarcodeBoundsResultContainer,"validate",e=>{const t=_t(exports.BarcodeBoundsResultContainer.fromPlain(e));if(t.length)throw new Bt("BarcodeBoundsResultContainer validation error: the data received does not match model structure!",t);return!0});ZA([D(),j(),K(()=>ir)],exports.BarcodeBoundsResultContainer.prototype,"BarcodePosition",2);ZA([D(),v(ce),ct(XA)],exports.BarcodeBoundsResultContainer.prototype,"result_type",2);exports.BarcodeBoundsResultContainer=ZA([Xe()],exports.BarcodeBoundsResultContainer);var xU=Object.defineProperty,P_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&xU(t,r,n),n};class Qo{mData;mLength;mReserved1;mReserver2;mType}P_([D(),ae()],Qo.prototype,"mData");P_([D(),He()],Qo.prototype,"mLength");P_([p()],Qo.prototype,"mReserved1");P_([p()],Qo.prototype,"mReserver2");P_([D(),v(xE)],Qo.prototype,"mType");var GU=Object.defineProperty,si=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&GU(t,r,n),n};class lo{Angle;bcColumn;bcErrorLevel;bcRow;minX;minY}si([D(),He()],lo.prototype,"Angle");si([D(),He()],lo.prototype,"bcColumn");si([D(),He()],lo.prototype,"bcErrorLevel");si([D(),He()],lo.prototype,"bcRow");si([p(),He()],lo.prototype,"minX");si([p(),He()],lo.prototype,"minY");var wU=Object.defineProperty,Is=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&wU(t,r,n),n};class pn{bcAngle_DETECT;bcCodeResult;bcCountModule;bcDataModule;bcPDF417INFO;bcROI_DETECT;bcTextDecoderTypes;bcTextFieldType;bcType_DECODE;bcType_DETECT}Is([D(),He()],pn.prototype,"bcAngle_DETECT");Is([D(),He()],pn.prototype,"bcCodeResult");Is([D(),He()],pn.prototype,"bcCountModule");Is([D(),Ve(),j({each:!0}),K(()=>Qo)],pn.prototype,"bcDataModule");Is([p(),j(),K(()=>lo)],pn.prototype,"bcPDF417INFO");Is([D(),j(),K(()=>jt)],pn.prototype,"bcROI_DETECT");Is([p(),He()],pn.prototype,"bcTextDecoderTypes");Is([p(),v(A)],pn.prototype,"bcTextFieldType");Is([D(),v(f_)],pn.prototype,"bcType_DECODE");Is([D(),He()],pn.prototype,"bcType_DETECT");var $U=Object.defineProperty,hh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&$U(t,r,n),n};class QE{nFields;pArrayFields}hh([D(),$()],QE.prototype,"nFields");hh([D(),j({each:!0}),K(()=>pn),Ve()],QE.prototype,"pArrayFields");var mh=Object.defineProperty,VU=Object.getOwnPropertyDescriptor,YU=(e,t,r)=>t in e?mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qA=(e,t,r,s)=>{for(var n=s>1?void 0:s?VU(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&mh(t,r,n),n},yh=(e,t,r)=>YU(e,typeof t!="symbol"?t+"":t,r);const QA=[ce.BARCODES];exports.DocBarCodeInfoContainer=class extends Mt{DocBarCodeInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!s)return[];const n=s.List.filter(o=>QA.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};yh(exports.DocBarCodeInfoContainer,"fromPlain",e=>nt(exports.DocBarCodeInfoContainer,e));yh(exports.DocBarCodeInfoContainer,"validate",e=>{const t=_t(exports.DocBarCodeInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocBarCodeInfoContainer validation error: the data received does not match model structure!",t);return!0});qA([D(),j(),K(()=>QE)],exports.DocBarCodeInfoContainer.prototype,"DocBarCodeInfo",2);qA([D(),v(ce),ct(QA)],exports.DocBarCodeInfoContainer.prototype,"result_type",2);exports.DocBarCodeInfoContainer=qA([Xe()],exports.DocBarCodeInfoContainer);var jU=Object.defineProperty,mr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&jU(t,r,n),n};class Ir{Type;DocumentID;DocumentType;State;Holder;DocumentNumber;CheckDigitDocumentNumber;Nationality;Birthday;CheckDigitBirthday;Sex;ExpiryDate;CheckDigitExpiryDate;OptionalData;CheckDigitOptionalData;CheckDigitComposite}mr([D(),$()],Ir.prototype,"Type");mr([D(),v(ri)],Ir.prototype,"DocumentID");mr([D(),ae()],Ir.prototype,"DocumentType");mr([D(),ae()],Ir.prototype,"State");mr([D(),ae()],Ir.prototype,"Holder");mr([D(),ae()],Ir.prototype,"DocumentNumber");mr([D(),$()],Ir.prototype,"CheckDigitDocumentNumber");mr([D(),ae()],Ir.prototype,"Nationality");mr([D(),ae()],Ir.prototype,"Birthday");mr([D(),$()],Ir.prototype,"CheckDigitBirthday");mr([D(),ae()],Ir.prototype,"Sex");mr([D(),ae()],Ir.prototype,"ExpiryDate");mr([D(),$()],Ir.prototype,"CheckDigitExpiryDate");mr([D(),ae()],Ir.prototype,"OptionalData");mr([D(),$()],Ir.prototype,"CheckDigitOptionalData");mr([D(),$()],Ir.prototype,"CheckDigitComposite");var kU=Object.defineProperty,M_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&kU(t,r,n),n};class zo{Type;Status;ActiveOptionIdx;Notifications;AccessControlOptions}M_([D(),v(VE)],zo.prototype,"Type");M_([D(),v(nr)],zo.prototype,"Status");M_([p(),$()],zo.prototype,"ActiveOptionIdx");M_([D(),Ve(),$({each:!0})],zo.prototype,"Notifications");M_([p(),Ve()],zo.prototype,"AccessControlOptions");var KU=Object.defineProperty,zE=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&KU(t,r,n),n};class oi{AccessKey;KeyType;AccessType;CheckFullKeyMatching}zE([D(),ae()],oi.prototype,"AccessKey");zE([D(),v(PA)],oi.prototype,"KeyType");zE([D(),v(VE)],oi.prototype,"AccessType");zE([D(),Be()],oi.prototype,"CheckFullKeyMatching");var WU=Object.defineProperty,ZU=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&WU(t,r,n),n};class zA{ParsingNotifications}ZU([p(),v($E,{each:!0})],zA.prototype,"ParsingNotifications");var XU=Object.defineProperty,gh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&XU(t,r,n),n};class JE{Data;Length}gh([D(),ae()],JE.prototype,"Data");gh([D(),He()],JE.prototype,"Length");var qU=Object.defineProperty,QU=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&qU(t,r,n),n};class JA{Certificate_Data}QU([p(),K(()=>JE),j()],JA.prototype,"Certificate_Data");var zU=Object.defineProperty,Ln=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&zU(t,r,n),n};class Xr{FileID;Type;FileData;ReadingStatus;ReadingTime;PA_Status;Notifications;DocFields_Text;DocFields_Graphics;DocFields_Originals;ParsedData;SecurityObject_Certificates}Ln([ae(),p()],Xr.prototype,"FileID");Ln([D(),v(k)],Xr.prototype,"Type");Ln([p(),K(()=>Zs),j()],Xr.prototype,"FileData");Ln([D(),v(nr)],Xr.prototype,"ReadingStatus");Ln([p(),$()],Xr.prototype,"ReadingTime");Ln([p(),v(nr)],Xr.prototype,"PA_Status");Ln([p(),Ve(),$({each:!0})],Xr.prototype,"Notifications");Ln([p(),v(A,{each:!0})],Xr.prototype,"DocFields_Text");Ln([p(),v(At,{each:!0})],Xr.prototype,"DocFields_Graphics");Ln([p(),v(At,{each:!0})],Xr.prototype,"DocFields_Originals");Ln([p(),K(()=>zA),j()],Xr.prototype,"ParsedData");Ln([p(),K(()=>JA),j()],Xr.prototype,"SecurityObject_Certificates");var JU=Object.defineProperty,Jo=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&JU(t,r,n),n};class $s{Type;Status;ApplicationID;Version;UnicodeVersion;DataHashAlgorithm;Files}Jo([D(),v(Wt)],$s.prototype,"Type");Jo([D(),v(nr)],$s.prototype,"Status");Jo([D(),ae()],$s.prototype,"ApplicationID");Jo([D(),ae()],$s.prototype,"Version");Jo([D(),ae()],$s.prototype,"UnicodeVersion");Jo([D(),ae()],$s.prototype,"DataHashAlgorithm");Jo([D(),K(()=>Xr),j({each:!0})],$s.prototype,"Files");var eB=Object.defineProperty,qr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&eB(t,r,n),n};class yr{RFID_Type;Baudrate1;Baudrate2;Support_4;ChipType_A;Support_Mifare;MifareMemory;UID;ATQ_A;SAK;ATQ_B;BitRateS;BitRateR;ATR}qr([D(),v(vA)],yr.prototype,"RFID_Type");qr([D(),ae()],yr.prototype,"Baudrate1");qr([D(),ae()],yr.prototype,"Baudrate2");qr([D(),Be()],yr.prototype,"Support_4");qr([D(),v(mA)],yr.prototype,"ChipType_A");qr([D(),Be()],yr.prototype,"Support_Mifare");qr([D(),$()],yr.prototype,"MifareMemory");qr([D(),ae()],yr.prototype,"UID");qr([D()],yr.prototype,"ATQ_A");qr([D()],yr.prototype,"SAK");qr([D()],yr.prototype,"ATQ_B");qr([D(),v(YE)],yr.prototype,"BitRateS");qr([D(),v(YE)],yr.prototype,"BitRateR");qr([D(),ae()],yr.prototype,"ATR");var tB=Object.defineProperty,Ph=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&tB(t,r,n),n};class el{Type;Data}Ph([D(),ae()],el.prototype,"Type");Ph([D(),ae(),dn()],el.prototype,"Data");var rB=Object.defineProperty,Mh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&rB(t,r,n),n};class tl{Type;Data}Mh([D(),ae()],tl.prototype,"Type");Mh([D(),ae(),dn()],tl.prototype,"Data");var nB=Object.defineProperty,vh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&nB(t,r,n),n};class rl{NotBefore;NotAfter}vh([D(),K(()=>Ds),j()],rl.prototype,"NotBefore");vh([D(),K(()=>Ds),j()],rl.prototype,"NotAfter");var sB=Object.defineProperty,un=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&sB(t,r,n),n};class br{Version;SerialNumber;SignatureAlgorithm;Issuer;Validity;Subject;SubjectPKAlgorithm;Extensions;Notifications;Origin;Type;FileName;PA_Status}un([D(),He()],br.prototype,"Version");un([D(),dn(),ae()],br.prototype,"SerialNumber");un([D(),ae()],br.prototype,"SignatureAlgorithm");un([D(),K(()=>ca),j()],br.prototype,"Issuer");un([D(),K(()=>rl),j()],br.prototype,"Validity");un([D(),K(()=>ca),j()],br.prototype,"Subject");un([D(),ae()],br.prototype,"SubjectPKAlgorithm");un([D(),K(()=>tl),j({each:!0}),Ve()],br.prototype,"Extensions");un([D(),Ve(),$({each:!0})],br.prototype,"Notifications");un([D(),v(gA)],br.prototype,"Origin");un([D(),v(nn)],br.prototype,"Type");un([D(),K(()=>Ds),j()],br.prototype,"FileName");un([D(),v(nr)],br.prototype,"PA_Status");var oB=Object.defineProperty,hn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&oB(t,r,n),n};class Qr{Version;Issuer;SerialNumber;SubjectKeyIdentifier;DigestAlgorithm;SignedAttributes;SignatureAlgorithm;Signature;PA_Status;CertificateChain;DataToHash;Notifications}hn([D(),He()],Qr.prototype,"Version");hn([D(),K(()=>ca),j()],Qr.prototype,"Issuer");hn([D(),K(()=>Zs),j()],Qr.prototype,"SerialNumber");hn([D(),K(()=>Zs),j()],Qr.prototype,"SubjectKeyIdentifier");hn([D(),ae()],Qr.prototype,"DigestAlgorithm");hn([D(),K(()=>el),j({each:!0}),Ve()],Qr.prototype,"SignedAttributes");hn([D(),ae()],Qr.prototype,"SignatureAlgorithm");hn([D(),K(()=>Zs),j()],Qr.prototype,"Signature");hn([D(),v(nr)],Qr.prototype,"PA_Status");hn([D(),K(()=>br),j({each:!0}),Ve()],Qr.prototype,"CertificateChain");hn([D(),ae(),dn()],Qr.prototype,"DataToHash");hn([D(),Ve(),$({each:!0})],Qr.prototype,"Notifications");var aB=Object.defineProperty,v_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&aB(t,r,n),n};class ea{Version;ObjectType;FileReference;Notifications;SignerInfos}v_([D(),He()],ea.prototype,"Version");v_([D(),ae()],ea.prototype,"ObjectType");v_([D(),$()],ea.prototype,"FileReference");v_([D(),Ve(),$({each:!0})],ea.prototype,"Notifications");v_([D(),K(()=>Qr),Ve()],ea.prototype,"SignerInfos");var iB=Object.defineProperty,eC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&iB(t,r,n),n};class F_{TermType;AuthReq;AuthReq2;static getAuthReq=t=>qi(typeof t=="number"?t:t.AuthReq);static getAuthReq2=t=>qi(typeof t=="number"?t:t.AuthReq2)}eC([D(),v(MA)],F_.prototype,"TermType");eC([D(),$()],F_.prototype,"AuthReq");eC([D(),$()],F_.prototype,"AuthReq2");var _B=Object.defineProperty,Ur=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&_B(t,r,n),n};class Or{VirtualMode;SDKVersion;DriverVersion;FirmwareVersion;Applications;AccessControls;CardProperties;ExtLeSupport;ProcessTime;RootFiles;TotalBytesSent;TotalBytesReceived;Session_key;Session_terminal;Session_procedure;SecurityObjects}Ur([p(),Be()],Or.prototype,"VirtualMode");Ur([p(),ae()],Or.prototype,"SDKVersion");Ur([p(),ae()],Or.prototype,"DriverVersion");Ur([p(),ae()],Or.prototype,"FirmwareVersion");Ur([D(),j({each:!0}),K(()=>$s)],Or.prototype,"Applications");Ur([D(),j({each:!0}),K(()=>zo)],Or.prototype,"AccessControls");Ur([D(),j(),K(()=>yr)],Or.prototype,"CardProperties");Ur([D(),v(nr)],Or.prototype,"ExtLeSupport");Ur([D(),$()],Or.prototype,"ProcessTime");Ur([D(),$()],Or.prototype,"TotalBytesSent");Ur([D(),$()],Or.prototype,"TotalBytesReceived");Ur([D(),j(),K(()=>oi)],Or.prototype,"Session_key");Ur([D(),j(),K(()=>F_)],Or.prototype,"Session_terminal");Ur([D(),v(yA)],Or.prototype,"Session_procedure");Ur([D(),j({each:!0}),K(()=>ea)],Or.prototype,"SecurityObjects");var cB=Object.defineProperty,we=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cB(t,r,n),n};class xe{RFID_Authentication_Info;RFID_MIFARE_Data_Validity;RFID_MIFARE_Data;RFID_EF_COM;RFID_DG1;RFID_DG2;RFID_DG3;RFID_DG4;RFID_DG5;RFID_DG6;RFID_DG7;RFID_DG8;RFID_DG9;RFID_DG10;RFID_DG11;RFID_DG12;RFID_DG13;RFID_DG14;RFID_DG15;RFID_DG16;RFID_EF_SOD;eID_DG1;eID_DG2;eID_DG3;eID_DG4;eID_DG5;eID_DG6;eID_DG7;eID_DG8;eID_DG9;eID_DG10;eID_DG11;eID_DG12;eID_DG13;eID_DG14;eID_DG15;eID_DG16;eID_DG17;eID_DG18;eID_DG19;eID_DG20;eID_DG21;eDL_COM;eDL_SOD;eDL_DG1;eDL_DG2;eDL_DG3;eDL_DG4;eDL_DG5;eDL_DG6;eDL_DG7;eDL_DG8;eDL_DG9;eDL_DG10;eDL_DG11;eDL_DG12;eDL_DG13;eDL_DG14;Visible_Digital_Seal;Visible_Digital_Seal_NC;Digital_Signature;RFID_Session_Data;RFID_Session_Data_Status;RFID_ePassp_Directory}we([p()],xe.prototype,"RFID_Authentication_Info");we([p()],xe.prototype,"RFID_MIFARE_Data_Validity");we([p()],xe.prototype,"RFID_MIFARE_Data");we([p()],xe.prototype,"RFID_EF_COM");we([p(),j(),K(()=>Ir)],xe.prototype,"RFID_DG1");we([p()],xe.prototype,"RFID_DG2");we([p()],xe.prototype,"RFID_DG3");we([p()],xe.prototype,"RFID_DG4");we([p()],xe.prototype,"RFID_DG5");we([p()],xe.prototype,"RFID_DG6");we([p()],xe.prototype,"RFID_DG7");we([p()],xe.prototype,"RFID_DG8");we([p()],xe.prototype,"RFID_DG9");we([p()],xe.prototype,"RFID_DG10");we([p()],xe.prototype,"RFID_DG11");we([p()],xe.prototype,"RFID_DG12");we([p()],xe.prototype,"RFID_DG13");we([p()],xe.prototype,"RFID_DG14");we([p()],xe.prototype,"RFID_DG15");we([p()],xe.prototype,"RFID_DG16");we([p()],xe.prototype,"RFID_EF_SOD");we([p()],xe.prototype,"eID_DG1");we([p()],xe.prototype,"eID_DG2");we([p()],xe.prototype,"eID_DG3");we([p()],xe.prototype,"eID_DG4");we([p()],xe.prototype,"eID_DG5");we([p()],xe.prototype,"eID_DG6");we([p()],xe.prototype,"eID_DG7");we([p()],xe.prototype,"eID_DG8");we([p()],xe.prototype,"eID_DG9");we([p()],xe.prototype,"eID_DG10");we([p()],xe.prototype,"eID_DG11");we([p()],xe.prototype,"eID_DG12");we([p()],xe.prototype,"eID_DG13");we([p()],xe.prototype,"eID_DG14");we([p()],xe.prototype,"eID_DG15");we([p()],xe.prototype,"eID_DG16");we([p()],xe.prototype,"eID_DG17");we([p()],xe.prototype,"eID_DG18");we([p()],xe.prototype,"eID_DG19");we([p()],xe.prototype,"eID_DG20");we([p()],xe.prototype,"eID_DG21");we([p()],xe.prototype,"eDL_COM");we([p()],xe.prototype,"eDL_SOD");we([p()],xe.prototype,"eDL_DG1");we([p()],xe.prototype,"eDL_DG2");we([p()],xe.prototype,"eDL_DG3");we([p()],xe.prototype,"eDL_DG4");we([p()],xe.prototype,"eDL_DG5");we([p()],xe.prototype,"eDL_DG6");we([p()],xe.prototype,"eDL_DG7");we([p()],xe.prototype,"eDL_DG8");we([p()],xe.prototype,"eDL_DG9");we([p()],xe.prototype,"eDL_DG10");we([p()],xe.prototype,"eDL_DG11");we([p()],xe.prototype,"eDL_DG12");we([p()],xe.prototype,"eDL_DG13");we([p()],xe.prototype,"eDL_DG14");we([p()],xe.prototype,"Visible_Digital_Seal");we([p()],xe.prototype,"Visible_Digital_Seal_NC");we([p()],xe.prototype,"Digital_Signature");we([p(),j(),K(()=>Or)],xe.prototype,"RFID_Session_Data");we([p(),j(),K(()=>Wn)],xe.prototype,"RFID_Session_Data_Status");we([p(),Ve(),v(k,{each:!0})],xe.prototype,"RFID_ePassp_Directory");var EB=Object.defineProperty,Fh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&EB(t,r,n),n};class nl{Data;FieldType}Fh([D(),ae()],nl.prototype,"Data");Fh([D(),He()],nl.prototype,"FieldType");var lB=Object.defineProperty,bh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&lB(t,r,n),n};class sl{RFID_BINARY_DATA;RFID_RAW_DATA}bh([p(),j(),K(()=>xe)],sl.prototype,"RFID_BINARY_DATA");bh([p(),j(),K(()=>nl)],sl.prototype,"RFID_RAW_DATA");var Uh=Object.defineProperty,uB=Object.getOwnPropertyDescriptor,IB=(e,t,r)=>t in e?Uh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tC=(e,t,r,s)=>{for(var n=s>1?void 0:s?uB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Uh(t,r,n),n},Bh=(e,t,r)=>IB(e,typeof t!="symbol"?t+"":t,r);const rC=[ce.RFID_BINARY_DATA,ce.RFID_RAW_DATA];exports.DocBinaryInfoContainer=class extends Mt{TDocBinaryInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t;if(!s)return[];const n=s.List.filter(o=>rC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Bh(exports.DocBinaryInfoContainer,"fromPlain",e=>nt(exports.DocBinaryInfoContainer,e));Bh(exports.DocBinaryInfoContainer,"validate",e=>{const t=_t(exports.DocBinaryInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocBinaryInfoContainer validation error: the data received does not match model structure!",t);return!0});tC([D(),j(),K(()=>sl)],exports.DocBinaryInfoContainer.prototype,"TDocBinaryInfo",2);tC([D(),v(ce),ct(rC)],exports.DocBinaryInfoContainer.prototype,"result_type",2);exports.DocBinaryInfoContainer=tC([Xe()],exports.DocBinaryInfoContainer);var SB=Object.defineProperty,ol=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&SB(t,r,n),n};class ai{FieldRect;FieldType;FieldName;image}ol([D(),j(),K(()=>jt)],ai.prototype,"FieldRect");ol([D(),v(At)],ai.prototype,"FieldType");ol([D(),ae()],ai.prototype,"FieldName");ol([D(),j(),K(()=>Cs)],ai.prototype,"image");var RB=Object.defineProperty,Hh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&RB(t,r,n),n};class al{pArrayFields;nFields}Hh([D(),j(),K(()=>ai)],al.prototype,"pArrayFields");Hh([D(),$()],al.prototype,"nFields");var xh=Object.defineProperty,AB=Object.getOwnPropertyDescriptor,CB=(e,t,r)=>t in e?xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nC=(e,t,r,s)=>{for(var n=s>1?void 0:s?AB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&xh(t,r,n),n},Gh=(e,t,r)=>CB(e,typeof t!="symbol"?t+"":t,r);const sC=[ce.VISUAL_GRAPHICS,ce.BARCODE_GRAPHICS,ce.LIVE_PORTRAIT,ce.EXT_PORTRAIT,ce.FINGERPRINTS,ce.RFID_GRAPHICS];exports.DocGraphicsInfoContainer=class extends Mt{DocGraphicsInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>sC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Gh(exports.DocGraphicsInfoContainer,"fromPlain",e=>nt(exports.DocGraphicsInfoContainer,e));Gh(exports.DocGraphicsInfoContainer,"validate",e=>{const t=_t(exports.DocGraphicsInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocGraphicsInfoContainer validation error: the data received does not match model structure!",t);return!0});nC([D(),j(),K(()=>al)],exports.DocGraphicsInfoContainer.prototype,"DocGraphicsInfo",2);nC([D(),v(ce),ct(sC)],exports.DocGraphicsInfoContainer.prototype,"result_type",2);exports.DocGraphicsInfoContainer=nC([Xe()],exports.DocGraphicsInfoContainer);var OB=Object.defineProperty,il=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&OB(t,r,n),n};class ii{SymbolCode;SymbolProbability;Class;SubClass}il([D(),$()],ii.prototype,"SymbolCode");il([D(),$()],ii.prototype,"SymbolProbability");il([p(),$()],ii.prototype,"Class");il([p(),$()],ii.prototype,"SubClass");var DB=Object.defineProperty,b_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&DB(t,r,n),n};class ta{SymbolRect;CandidatesCount;ListOfCandidates;BaseLineBottom;BaseLineTop}b_([p(),j({each:!0}),K(()=>jt)],ta.prototype,"SymbolRect");b_([D(),$()],ta.prototype,"CandidatesCount");b_([D(),j({each:!0}),K(()=>ii)],ta.prototype,"ListOfCandidates");b_([p(),$()],ta.prototype,"BaseLineBottom");b_([p(),$()],ta.prototype,"BaseLineTop");var TB=Object.defineProperty,U_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&TB(t,r,n),n};class ra{SymbolsCount;StringResult;Buf_Length;Buf_Text;Reserved}U_([D(),$()],ra.prototype,"SymbolsCount");U_([D(),j({each:!0}),K(()=>ta)],ra.prototype,"StringResult");U_([p(),$()],ra.prototype,"Buf_Length");U_([p(),ae()],ra.prototype,"Buf_Text");U_([p(),$()],ra.prototype,"Reserved");var dB=Object.defineProperty,mn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&dB(t,r,n),n};class Br{wFieldType;FieldName;StringsCount;StringsResult;Buf_Length;Buf_Text;FieldMask;Validity;InComparison;wLCID;Reserved2;Reserved3}mn([D(),v(A)],Br.prototype,"wFieldType");mn([D(),ae()],Br.prototype,"FieldName");mn([D(),$()],Br.prototype,"StringsCount");mn([D(),j({each:!0}),K(()=>ra)],Br.prototype,"StringsResult");mn([D(),$()],Br.prototype,"Buf_Length");mn([D(),ae()],Br.prototype,"Buf_Text");mn([p(),ae()],Br.prototype,"FieldMask");mn([p(),$()],Br.prototype,"Validity");mn([p(),$()],Br.prototype,"InComparison");mn([p(),v(Y)],Br.prototype,"wLCID");mn([p(),$()],Br.prototype,"Reserved2");mn([p(),$()],Br.prototype,"Reserved3");var fB=Object.defineProperty,NB=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&fB(t,r,n),n};class oC extends Br{FieldRect}NB([D(),j({each:!0}),K(()=>jt)],oC.prototype,"FieldRect");var pB=Object.defineProperty,wh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&pB(t,r,n),n};class _l{nFields;pArrayFields}wh([D(),$()],_l.prototype,"nFields");wh([D(),j({each:!0}),K(()=>oC)],_l.prototype,"pArrayFields");var $h=Object.defineProperty,LB=Object.getOwnPropertyDescriptor,hB=(e,t,r)=>t in e?$h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aC=(e,t,r,s)=>{for(var n=s>1?void 0:s?LB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&$h(t,r,n),n},Vh=(e,t,r)=>hB(e,typeof t!="symbol"?t+"":t,r);const iC=[ce.VISUAL_TEXT,ce.MRZ_TEXT,ce.BARCODE_TEXT,ce.MAGNETIC_STRIPE_TEXT_DATA,ce.RFID_TEXT];exports.DocVisualExtendedInfoContainer=class extends Mt{DocVisualExtendedInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>iC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Vh(exports.DocVisualExtendedInfoContainer,"fromPlain",e=>nt(exports.DocVisualExtendedInfoContainer,e));Vh(exports.DocVisualExtendedInfoContainer,"validate",e=>{const t=_t(exports.DocVisualExtendedInfoContainer.fromPlain(e));if(t.length)throw new Bt("DocVisualExtendedInfoContainer validation error: the data received does not match model structure!",t);return!0});aC([D(),j(),K(()=>_l)],exports.DocVisualExtendedInfoContainer.prototype,"DocVisualExtendedInfo",2);aC([D(),v(ce),ct(iC)],exports.DocVisualExtendedInfoContainer.prototype,"result_type",2);exports.DocVisualExtendedInfoContainer=aC([Xe()],exports.DocVisualExtendedInfoContainer);var Yh=Object.defineProperty,mB=Object.getOwnPropertyDescriptor,yB=(e,t,r)=>t in e?Yh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_C=(e,t,r,s)=>{for(var n=s>1?void 0:s?mB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Yh(t,r,n),n},jh=(e,t,r)=>yB(e,typeof t!="symbol"?t+"":t,r);const cC=[ce.ENCRYPTED_RCL];exports.EncryptedRCLContainer=class extends Mt{EncryptedRCL;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>cC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};jh(exports.EncryptedRCLContainer,"fromPlain",e=>nt(exports.EncryptedRCLContainer,e));jh(exports.EncryptedRCLContainer,"validate",e=>{const t=_t(exports.EncryptedRCLContainer.fromPlain(e));if(t.length)throw new Bt("EncryptedRCLContainer validation error: the data received does not match model structure!",t);return!0});_C([D(),ae(),dn()],exports.EncryptedRCLContainer.prototype,"EncryptedRCL",2);_C([D(),v(ce),ct(cC)],exports.EncryptedRCLContainer.prototype,"result_type",2);exports.EncryptedRCLContainer=_C([Xe()],exports.EncryptedRCLContainer);var gB=Object.defineProperty,na=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&gB(t,r,n),n};class Vs{type;result;featureType;areas;mean;std_dev;probability}na([D(),v($r)],Vs.prototype,"type");na([D(),v(V)],Vs.prototype,"result");na([D(),v(De)],Vs.prototype,"featureType");na([p(),j(),K(()=>Xo)],Vs.prototype,"areas");na([D(),He()],Vs.prototype,"mean");na([D(),He()],Vs.prototype,"std_dev");na([D(),$()],Vs.prototype,"probability");var PB=Object.defineProperty,EC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&PB(t,r,n),n};class B_{result;List;Count}EC([D(),v(V)],B_.prototype,"result");EC([D(),j({each:!0}),K(()=>Vs),Ve()],B_.prototype,"List");EC([D(),$()],B_.prototype,"Count");var kh=Object.defineProperty,MB=Object.getOwnPropertyDescriptor,vB=(e,t,r)=>t in e?kh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lC=(e,t,r,s)=>{for(var n=s>1?void 0:s?MB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&kh(t,r,n),n},Kh=(e,t,r)=>vB(e,typeof t!="symbol"?t+"":t,r);const uC=[ce.IMAGE_QUALITY];exports.ImageQualityCheckListContainer=class extends Mt{ImageQualityCheckList;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>uC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Kh(exports.ImageQualityCheckListContainer,"fromPlain",e=>nt(exports.ImageQualityCheckListContainer,e));Kh(exports.ImageQualityCheckListContainer,"validate",e=>{const t=_t(exports.ImageQualityCheckListContainer.fromPlain(e));if(t.length)throw new Bt("ImageQualityCheckListContainer validation error: the data received does not match model structure!",t);return!0});lC([D(),j(),K(()=>B_)],exports.ImageQualityCheckListContainer.prototype,"ImageQualityCheckList",2);lC([D(),v(ce),ct(uC)],exports.ImageQualityCheckListContainer.prototype,"result_type",2);exports.ImageQualityCheckListContainer=lC([Xe()],exports.ImageQualityCheckListContainer);var FB=Object.defineProperty,Ys=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&FB(t,r,n),n};class kn{source;value;originalValue;originalPageIndex;pageIndex;lightIndex;containerType;fieldRect;rfidOrigin}Ys([D(),v(Gt)],kn.prototype,"source");Ys([p(),ae(),dn()],kn.prototype,"value");Ys([p(),ae(),dn()],kn.prototype,"originalValue");Ys([p(),$()],kn.prototype,"originalPageIndex");Ys([D(),$()],kn.prototype,"pageIndex");Ys([D(),v(Pt)],kn.prototype,"lightIndex");Ys([D(),$()],kn.prototype,"containerType");Ys([p(),j(),K(()=>jt)],kn.prototype,"fieldRect");Ys([p(),j(),K(()=>Ao)],kn.prototype,"rfidOrigin");var bB=Object.defineProperty,cl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&bB(t,r,n),n};class uo{fieldName;fieldType;valueList;valueCount;static fromContainers=(t,r)=>{const s=[];return t.forEach(n=>{const{Images:o}=n;o.fieldList.forEach(a=>{if(!r){s.push(a);return}r.includes(a.fieldType)&&s.push(a)})}),s}}cl([D(),ae()],uo.prototype,"fieldName");cl([D(),v(At)],uo.prototype,"fieldType");cl([D(),j({each:!0}),K(()=>kn),Ve()],uo.prototype,"valueList");cl([p(),$(),co(({obj:e})=>e.valueList.length,{toClassOnly:!0})],uo.prototype,"valueCount");var UB=Object.defineProperty,Wh=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&UB(t,r,n),n};class El{containerType;source}Wh([D(),He()],El.prototype,"containerType");Wh([D(),v(Gt)],El.prototype,"source");var BB=Object.defineProperty,ll=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&BB(t,r,n),n};class _i{fieldCount;availableSourceCount;availableSourceList;fieldList}ll([p(),$(),co(({obj:e})=>e.fieldList.length,{toClassOnly:!0})],_i.prototype,"fieldCount");ll([p(),$(),co(({obj:e})=>e.availableSourceList.length,{toClassOnly:!0})],_i.prototype,"availableSourceCount");ll([D(),j({each:!0}),K(()=>El),Ve()],_i.prototype,"availableSourceList");ll([D(),j({each:!0}),K(()=>uo),Ve()],_i.prototype,"fieldList");var Zh=Object.defineProperty,HB=Object.getOwnPropertyDescriptor,xB=(e,t,r)=>t in e?Zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,IC=(e,t,r,s)=>{for(var n=s>1?void 0:s?HB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Zh(t,r,n),n},Xh=(e,t,r)=>xB(e,typeof t!="symbol"?t+"":t,r);const SC=[ce.IMAGES];exports.ImagesResultContainer=class extends Mt{Images;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>SC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Xh(exports.ImagesResultContainer,"fromPlain",e=>nt(exports.ImagesResultContainer,e));Xh(exports.ImagesResultContainer,"validate",e=>{const t=_t(exports.ImagesResultContainer.fromPlain(e));if(t.length)throw new Bt("ImagesResultContainer validation error: the data received does not match model structure!",t);return!0});IC([D(),j(),K(()=>_i)],exports.ImagesResultContainer.prototype,"Images",2);IC([D(),v(ce),ct(SC)],exports.ImagesResultContainer.prototype,"result_type",2);exports.ImagesResultContainer=IC([Xe()],exports.ImagesResultContainer);var qh=Object.defineProperty,GB=Object.getOwnPropertyDescriptor,wB=(e,t,r)=>t in e?qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RC=(e,t,r,s)=>{for(var n=s>1?void 0:s?GB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&qh(t,r,n),n},Qh=(e,t,r)=>wB(e,typeof t!="symbol"?t+"":t,r);const AC=[ce.LICENSE];exports.LicenseContainer=class extends Mt{License;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>AC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Qh(exports.LicenseContainer,"fromPlain",e=>nt(exports.LicenseContainer,e));Qh(exports.LicenseContainer,"validate",e=>{const t=_t(exports.LicenseContainer.fromPlain(e));if(t.length)throw new Bt("LicenseContainer validation error: the data received does not match model structure!",t);return!0});RC([D(),ae(),dn()],exports.LicenseContainer.prototype,"License",2);RC([D(),v(ce),ct(AC)],exports.LicenseContainer.prototype,"result_type",2);exports.LicenseContainer=RC([Xe()],exports.LicenseContainer);var $B=Object.defineProperty,sa=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&$B(t,r,n),n};class js{wFieldType;wLCID;Field_MRZ;Field_Visual;Field_Barcode;Field_RFID;Matrix;static getMRZDataVerificationResult=t=>t.Matrix[0];static getRFIDDataVerificationResult=t=>t.Matrix[1];static getVisualDataVerificationResult=t=>t.Matrix[2];static getBarcodeDataVerificationResult=t=>t.Matrix[3];static getMRZAndRFIDDataComparingResult=t=>t.Matrix[4];static getMRZAndVisualDataComparingResult=t=>t.Matrix[5];static getMRZAndBarcodeDataComparingResult=t=>t.Matrix[6];static getVisualAndRFIDDataComparingResult=t=>t.Matrix[7];static getVisualAndBarcodeDataComparingResult=t=>t.Matrix[8];static getRFIDAndBarcodeDataComparingResult=t=>t.Matrix[9]}sa([D(),v(A)],js.prototype,"wFieldType");sa([p(),v(Y)],js.prototype,"wLCID");sa([p(),ae()],js.prototype,"Field_MRZ");sa([p(),ae()],js.prototype,"Field_Visual");sa([p(),ae()],js.prototype,"Field_Barcode");sa([p(),ae()],js.prototype,"Field_RFID");sa([D(),v(UA,{each:!0}),Ve(),nh(10),sh(10)],js.prototype,"Matrix");var VB=Object.defineProperty,CC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&VB(t,r,n),n};class H_{Count;pFieldMaps;pDateFormat}CC([D(),$()],H_.prototype,"Count");CC([D(),Ve(),j({each:!0}),K(()=>js)],H_.prototype,"pFieldMaps");CC([p(),ae()],H_.prototype,"pDateFormat");var zh=Object.defineProperty,YB=Object.getOwnPropertyDescriptor,jB=(e,t,r)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,OC=(e,t,r,s)=>{for(var n=s>1?void 0:s?YB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&zh(t,r,n),n},Jh=(e,t,r)=>jB(e,typeof t!="symbol"?t+"":t,r);const DC=[ce.LEXICAL_ANALYSIS];exports.ListVerifiedFieldContainer=class extends Mt{ListVerifiedFields;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>DC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};Jh(exports.ListVerifiedFieldContainer,"fromPlain",e=>nt(exports.ListVerifiedFieldContainer,e));Jh(exports.ListVerifiedFieldContainer,"validate",e=>{const t=_t(exports.ListVerifiedFieldContainer.fromPlain(e));if(t.length)throw new Bt("ListVerifiedFieldContainer validation error: the data received does not match model structure!",t);return!0});OC([D(),j(),K(()=>H_)],exports.ListVerifiedFieldContainer.prototype,"ListVerifiedFields",2);OC([D(),v(ce),ct(DC)],exports.ListVerifiedFieldContainer.prototype,"result_type",2);exports.ListVerifiedFieldContainer=OC([Xe()],exports.ListVerifiedFieldContainer);var e1=Object.defineProperty,kB=Object.getOwnPropertyDescriptor,KB=(e,t,r)=>t in e?e1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ul=(e,t,r,s)=>{for(var n=s>1?void 0:s?kB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&e1(t,r,n),n},t1=(e,t,r)=>KB(e,typeof t!="symbol"?t+"":t,r);const TC=[ce.DOCUMENT_TYPE];exports.OneCandidateContainer=class extends Mt{OneCandidate;XML_buffer;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>TC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};t1(exports.OneCandidateContainer,"fromPlain",e=>nt(exports.OneCandidateContainer,e));t1(exports.OneCandidateContainer,"validate",e=>{const t=_t(exports.OneCandidateContainer.fromPlain(e));if(t.length)throw new Bt("ChosenDocumentTypeContainer validation error: the data received does not match model structure!",t);return!0});ul([D(),j(),K(()=>Hr)],exports.OneCandidateContainer.prototype,"OneCandidate",2);ul([p(),ae()],exports.OneCandidateContainer.prototype,"XML_buffer",2);ul([D(),v(ce),ct(TC)],exports.OneCandidateContainer.prototype,"result_type",2);exports.OneCandidateContainer=ul([Xe()],exports.OneCandidateContainer);var r1=Object.defineProperty,WB=Object.getOwnPropertyDescriptor,ZB=(e,t,r)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dC=(e,t,r,s)=>{for(var n=s>1?void 0:s?WB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&r1(t,r,n),n},n1=(e,t,r)=>ZB(e,typeof t!="symbol"?t+"":t,r);const fC=[ce.DOCUMENT_IMAGE,ce.RAW_UNCROPPED_IMAGE];exports.RawImageContainer=class extends Mt{RawImageContainer;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>fC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};n1(exports.RawImageContainer,"fromPlain",e=>nt(exports.RawImageContainer,e));n1(exports.RawImageContainer,"validate",e=>{const t=_t(exports.RawImageContainer.fromPlain(e));if(t.length)throw new Bt("RawImageContainer validation error: the data received does not match model structure!",t);return!0});dC([D(),j(),K(()=>Cs)],exports.RawImageContainer.prototype,"RawImageContainer",2);dC([D(),v(ce),ct(fC)],exports.RawImageContainer.prototype,"result_type",2);exports.RawImageContainer=dC([Xe()],exports.RawImageContainer);var XB=Object.defineProperty,ks=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&XB(t,r,n),n};class Kn{overallStatus;docType;expiry;imageQA;mrz;pagesCount;security;text;vds}ks([D(),v(V)],Kn.prototype,"overallStatus");ks([D(),v(V)],Kn.prototype,"docType");ks([D(),v(V)],Kn.prototype,"expiry");ks([D(),v(V)],Kn.prototype,"imageQA");ks([D(),v(V)],Kn.prototype,"mrz");ks([D(),$()],Kn.prototype,"pagesCount");ks([D(),v(V)],Kn.prototype,"security");ks([D(),v(V)],Kn.prototype,"text");ks([p(),$()],Kn.prototype,"vds");var qB=Object.defineProperty,oa=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&qB(t,r,n),n};class Wn{overallStatus;AA;BAC;CA;PA;PACE;TA}oa([D(),v(V)],Wn.prototype,"overallStatus");oa([D(),v(V)],Wn.prototype,"AA");oa([D(),v(V)],Wn.prototype,"BAC");oa([D(),v(V)],Wn.prototype,"CA");oa([D(),v(V)],Wn.prototype,"PA");oa([D(),v(V)],Wn.prototype,"PACE");oa([D(),v(V)],Wn.prototype,"TA");var QB=Object.defineProperty,aa=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&QB(t,r,n),n};class Ks{overallStatus;optical;portrait;rfid;stopList;detailsRFID;detailsOptical}aa([D(),v(V)],Ks.prototype,"overallStatus");aa([D(),v(V)],Ks.prototype,"optical");aa([D(),v(V)],Ks.prototype,"portrait");aa([D(),v(V)],Ks.prototype,"rfid");aa([D(),v(V)],Ks.prototype,"stopList");aa([p(),j(),K(()=>Wn)],Ks.prototype,"detailsRFID");aa([D(),j(),K(()=>Kn)],Ks.prototype,"detailsOptical");var s1=Object.defineProperty,zB=Object.getOwnPropertyDescriptor,JB=(e,t,r)=>t in e?s1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NC=(e,t,r,s)=>{for(var n=s>1?void 0:s?zB(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&s1(t,r,n),n},o1=(e,t,r)=>JB(e,typeof t!="symbol"?t+"":t,r);const pC=[ce.STATUS];exports.StatusContainer=class extends Mt{Status;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>pC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};o1(exports.StatusContainer,"fromPlain",e=>nt(exports.StatusContainer,e,{exposeUnsetFields:!1}));o1(exports.StatusContainer,"validate",e=>{const t=_t(exports.StatusContainer.fromPlain(e));if(t.length)throw new Bt("StatusContainer validation error: the data received does not match model structure!",t);return!0});NC([D(),j(),K(()=>Ks)],exports.StatusContainer.prototype,"Status",2);NC([D(),v(ce),ct(pC)],exports.StatusContainer.prototype,"result_type",2);exports.StatusContainer=NC([Xe()],exports.StatusContainer);var eH=Object.defineProperty,LC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&eH(t,r,n),n};class x_{sourceLeft;sourceRight;status}LC([D(),v(Gt)],x_.prototype,"sourceLeft");LC([D(),v(Gt)],x_.prototype,"sourceRight");LC([D(),v(V)],x_.prototype,"status");var tH=Object.defineProperty,hC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&tH(t,r,n),n};class G_{code;probability;rect}hC([D(),$()],G_.prototype,"code");hC([D(),$()],G_.prototype,"probability");hC([p(),j(),K(()=>jt)],G_.prototype,"rect");var rH=Object.defineProperty,Ss=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&rH(t,r,n),n};class yn{source;value;originalValue;originalValidity;originalSymbols;pageIndex;probability;fieldRect;rfidOrigin;containerType}Ss([D(),v(Gt)],yn.prototype,"source");Ss([ae(),D(),co(({value:e})=>e?String(e):"")],yn.prototype,"value");Ss([p(),ae()],yn.prototype,"originalValue");Ss([D(),v(V)],yn.prototype,"originalValidity");Ss([p(),j({each:!0}),K(()=>G_),Ve()],yn.prototype,"originalSymbols");Ss([D(),$()],yn.prototype,"pageIndex");Ss([D(),He()],yn.prototype,"probability");Ss([p(),j(),K(()=>jt)],yn.prototype,"fieldRect");Ss([p(),j(),K(()=>Ao)],yn.prototype,"rfidOrigin");Ss([p(),$()],yn.prototype,"containerType");var nH=Object.defineProperty,a1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&nH(t,r,n),n};class Il{source;status}a1([D(),v(Gt)],Il.prototype,"source");a1([D(),v(V)],Il.prototype,"status");var sH=Object.defineProperty,Zn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&sH(t,r,n),n};class In{fieldType;fieldName;lcid;lcidName;status;validityStatus;comparisonStatus;value;valueList;validityList;comparisonList;static fromContainers=(t,r)=>{const s=[];return t.forEach(n=>{const{Text:o}=n;o.fieldList.forEach(a=>{a.fieldType===r&&s.push(a)})}),s}}Zn([D(),v(A)],In.prototype,"fieldType");Zn([D(),ae()],In.prototype,"fieldName");Zn([D(),v(Y)],In.prototype,"lcid");Zn([p(),ae()],In.prototype,"lcidName");Zn([D(),v(V)],In.prototype,"status");Zn([D(),v(V)],In.prototype,"validityStatus");Zn([D(),v(V)],In.prototype,"comparisonStatus");Zn([D(),ae(),co(({value:e})=>e?String(e):"")],In.prototype,"value");Zn([D(),j({each:!0}),K(()=>yn),Ve()],In.prototype,"valueList");Zn([D(),j({each:!0}),K(()=>Il),Ve()],In.prototype,"validityList");Zn([D(),j({each:!0}),K(()=>x_),Ve()],In.prototype,"comparisonList");var oH=Object.defineProperty,mC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&oH(t,r,n),n};class w_{source;validityStatus;containerType}mC([D(),v(Gt)],w_.prototype,"source");mC([D(),v(V)],w_.prototype,"validityStatus");mC([p(),$()],w_.prototype,"containerType");var aH=Object.defineProperty,ci=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&aH(t,r,n),n};class Io{status;validityStatus;comparisonStatus;dateFormat;fieldList;availableSourceList}ci([D(),v(V)],Io.prototype,"status");ci([D(),v(V)],Io.prototype,"validityStatus");ci([D(),v(V)],Io.prototype,"comparisonStatus");ci([D(),ae()],Io.prototype,"dateFormat");ci([D(),j({each:!0}),K(()=>In),Ve()],Io.prototype,"fieldList");ci([D(),j({each:!0}),K(()=>w_),Ve()],Io.prototype,"availableSourceList");var i1=Object.defineProperty,iH=Object.getOwnPropertyDescriptor,_H=(e,t,r)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yC=(e,t,r,s)=>{for(var n=s>1?void 0:s?iH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&i1(t,r,n),n},_1=(e,t,r)=>_H(e,typeof t!="symbol"?t+"":t,r);const gC=[ce.TEXT];exports.TextResultContainer=class extends Mt{Text;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>gC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};_1(exports.TextResultContainer,"fromPlain",e=>nt(exports.TextResultContainer,e,{exposeUnsetFields:!1}));_1(exports.TextResultContainer,"validate",e=>{const t=_t(exports.TextResultContainer.fromPlain(e));if(t.length)throw new Bt("TextResultContainer validation error: the data received does not match model structure!",t);return!0});yC([D(),j(),K(()=>Io)],exports.TextResultContainer.prototype,"Text",2);yC([D(),v(ce),ct(gC)],exports.TextResultContainer.prototype,"result_type",2);exports.TextResultContainer=yC([Xe()],exports.TextResultContainer);var cH=Object.defineProperty,Sl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cH(t,r,n),n};class Ei extends Br{OriginDG;OriginDGTag;OriginTagEntry;OriginEntryView}Sl([D(),$()],Ei.prototype,"OriginDG");Sl([p(),$()],Ei.prototype,"OriginDGTag");Sl([D(),$()],Ei.prototype,"OriginTagEntry");Sl([p(),$()],Ei.prototype,"OriginEntryView");var EH=Object.defineProperty,c1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&EH(t,r,n),n};class Rl{nFields;pArrayFields}c1([D(),$()],Rl.prototype,"nFields");c1([D(),j(),K(()=>Ei)],Rl.prototype,"pArrayFields");var E1=Object.defineProperty,lH=Object.getOwnPropertyDescriptor,uH=(e,t,r)=>t in e?E1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PC=(e,t,r,s)=>{for(var n=s>1?void 0:s?lH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&E1(t,r,n),n},l1=(e,t,r)=>uH(e,typeof t!="symbol"?t+"":t,r);const MC=[ce.RFID_TEXT];exports.RFIDTextDataContainer=class extends Mt{DocVisualExtendedInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>MC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};l1(exports.RFIDTextDataContainer,"fromPlain",e=>nt(exports.RFIDTextDataContainer,e));l1(exports.RFIDTextDataContainer,"validate",e=>{const t=_t(exports.RFIDTextDataContainer.fromPlain(e));if(t.length)throw new Bt("RFIDTextDataContainer validation error: the data received does not match model structure!",t);return!0});PC([D(),j(),K(()=>Rl)],exports.RFIDTextDataContainer.prototype,"DocVisualExtendedInfo",2);PC([D(),v(ce),ct(MC)],exports.RFIDTextDataContainer.prototype,"result_type",2);exports.RFIDTextDataContainer=PC([Xe()],exports.RFIDTextDataContainer);var u1=Object.defineProperty,IH=Object.getOwnPropertyDescriptor,SH=(e,t,r)=>t in e?u1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vC=(e,t,r,s)=>{for(var n=s>1?void 0:s?IH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&u1(t,r,n),n},I1=(e,t,r)=>SH(e,typeof t!="symbol"?t+"":t,r);const FC=[ce.MRZ_POSITION];exports.MRZPositionContainer=class extends Mt{MrzPosition;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>FC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};I1(exports.MRZPositionContainer,"fromPlain",e=>nt(exports.MRZPositionContainer,e));I1(exports.MRZPositionContainer,"validate",e=>{const t=_t(exports.MRZPositionContainer.fromPlain(e));if(t.length)throw new Bt("MRZPositionContainer validation error: the data received does not match model structure!",t);return!0});vC([D(),j(),K(()=>ir)],exports.MRZPositionContainer.prototype,"MrzPosition",2);vC([D(),v(ce),ct(FC)],exports.MRZPositionContainer.prototype,"result_type",2);exports.MRZPositionContainer=vC([Xe()],exports.MRZPositionContainer);var RH=Object.defineProperty,Al=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&RH(t,r,n),n};class li{Left;Top;Right;Bottom}Al([p(),$()],li.prototype,"Left");Al([p(),$()],li.prototype,"Top");Al([p(),$()],li.prototype,"Right");Al([p(),$()],li.prototype,"Bottom");var AH=Object.defineProperty,ui=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&AH(t,r,n),n};class So{FieldLength;FieldPos;FieldType;TEST_RESULT;ValidCheckSum;reserved}ui([D(),$()],So.prototype,"FieldLength");ui([D(),$()],So.prototype,"FieldPos");ui([D(),$()],So.prototype,"FieldType");ui([D(),$()],So.prototype,"TEST_RESULT");ui([D(),$()],So.prototype,"ValidCheckSum");ui([D(),$()],So.prototype,"reserved");var CH=Object.defineProperty,Dr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&CH(t,r,n),n};class _r{ALIGNMENT_NEAREST_SYMBOLS;CONTRAST_PRINT;CONTRAST_SYMBOL;CharSymbol;EDGE;EMPTINESS;STAIN;SYMBOLS_INTERVAL;SYMBOL_PARAM;SYMBOL_SIZE;SizeErrorAlignWithNext;SizeErrorAlignWithPrev;SizeErrorIntervWithNext;SizeErrorIntervWithPrev;SizeErrorSymbolHeight;SizeErrorSymbolWidth;SymbolBounds}Dr([D(),$()],_r.prototype,"ALIGNMENT_NEAREST_SYMBOLS");Dr([D(),$()],_r.prototype,"CONTRAST_PRINT");Dr([D(),$()],_r.prototype,"CONTRAST_SYMBOL");Dr([D(),$()],_r.prototype,"CharSymbol");Dr([D(),$()],_r.prototype,"EDGE");Dr([D(),$()],_r.prototype,"EMPTINESS");Dr([D(),$()],_r.prototype,"STAIN");Dr([D(),$()],_r.prototype,"SYMBOLS_INTERVAL");Dr([D(),$()],_r.prototype,"SYMBOL_PARAM");Dr([D(),$()],_r.prototype,"SYMBOL_SIZE");Dr([D(),$()],_r.prototype,"SizeErrorAlignWithNext");Dr([D(),$()],_r.prototype,"SizeErrorAlignWithPrev");Dr([D(),$()],_r.prototype,"SizeErrorIntervWithNext");Dr([D(),$()],_r.prototype,"SizeErrorIntervWithPrev");Dr([D(),$()],_r.prototype,"SizeErrorSymbolHeight");Dr([D(),$()],_r.prototype,"SizeErrorSymbolWidth");Dr([D(),j(),K(()=>jt)],_r.prototype,"SymbolBounds");var OH=Object.defineProperty,Tr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&OH(t,r,n),n};class cr{ALIGNMENT_SYMBOLS_IN_STRING;CHECK_SUMS;ErrorPOSITION;FieldCount;Fields;STRINGS_DISTANCE;STRINGS_INTERVAL;STRING_FILLING;STRINGS_POSITION;SYMBOLS_PARAM;SizeError_ALIGNMENT;SizeError_DISTANCE;SizeError_INTERVAL;StringAngle;StringBorders;SymbolsCount;SymbolsEstimations}Tr([D(),v(V)],cr.prototype,"ALIGNMENT_SYMBOLS_IN_STRING");Tr([D(),v(V)],cr.prototype,"CHECK_SUMS");Tr([D(),j(),K(()=>li)],cr.prototype,"ErrorPOSITION");Tr([D(),$()],cr.prototype,"FieldCount");Tr([D(),j({each:!0}),Ve(),K(()=>So)],cr.prototype,"Fields");Tr([D(),v(V)],cr.prototype,"STRINGS_DISTANCE");Tr([D(),v(V)],cr.prototype,"STRINGS_INTERVAL");Tr([D(),v(V)],cr.prototype,"STRING_FILLING");Tr([p(),v(V)],cr.prototype,"STRINGS_POSITION");Tr([D(),v(V)],cr.prototype,"SYMBOLS_PARAM");Tr([D(),$()],cr.prototype,"SizeError_ALIGNMENT");Tr([D(),$()],cr.prototype,"SizeError_DISTANCE");Tr([D(),$()],cr.prototype,"SizeError_INTERVAL");Tr([D(),$()],cr.prototype,"StringAngle");Tr([D(),j(),K(()=>jt)],cr.prototype,"StringBorders");Tr([D(),$()],cr.prototype,"SymbolsCount");Tr([D(),j({each:!0}),Ve(),K(()=>_r)],cr.prototype,"SymbolsEstimations");var DH=Object.defineProperty,Rs=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&DH(t,r,n),n};class gn{CHECK_SUMS;CONTRAST_PRINT;DOC_FORMAT;MRZ_FORMAT;PRINT_POSITION;STAIN_MRZ;SYMBOLS_PARAM;StrCount;Strings;TEXTUAL_FILLING}Rs([D(),v(V)],gn.prototype,"CHECK_SUMS");Rs([D(),v(V)],gn.prototype,"CONTRAST_PRINT");Rs([D(),$()],gn.prototype,"DOC_FORMAT");Rs([D(),$()],gn.prototype,"MRZ_FORMAT");Rs([D(),v(V)],gn.prototype,"PRINT_POSITION");Rs([D(),v(V)],gn.prototype,"STAIN_MRZ");Rs([D(),v(V)],gn.prototype,"SYMBOLS_PARAM");Rs([D(),$()],gn.prototype,"StrCount");Rs([D(),j(),K(()=>cr)],gn.prototype,"Strings");Rs([D(),v(V)],gn.prototype,"TEXTUAL_FILLING");var S1=Object.defineProperty,TH=Object.getOwnPropertyDescriptor,dH=(e,t,r)=>t in e?S1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bC=(e,t,r,s)=>{for(var n=s>1?void 0:s?TH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&S1(t,r,n),n},R1=(e,t,r)=>dH(e,typeof t!="symbol"?t+"":t,r);const UC=[ce.MRZ_TEST_QUALITY];exports.MRZTestQualityContainer=class extends Mt{MRZTestQuality;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>UC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};R1(exports.MRZTestQualityContainer,"fromPlain",e=>nt(exports.MRZTestQualityContainer,e));R1(exports.MRZTestQualityContainer,"validate",e=>{const t=_t(exports.MRZTestQualityContainer.fromPlain(e));if(t.length)throw new Bt("MRZTestQualityContainer validation error: the data received does not match model structure!",t);return!0});bC([D(),j(),K(()=>gn)],exports.MRZTestQualityContainer.prototype,"MRZTestQuality",2);bC([D(),v(ce),ct(UC)],exports.MRZTestQualityContainer.prototype,"result_type",2);exports.MRZTestQualityContainer=bC([Xe()],exports.MRZTestQualityContainer);var fH=Object.defineProperty,A1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&fH(t,r,n),n};class Cl{RecResult;Candidates}A1([p(),v(DA)],Cl.prototype,"RecResult");A1([p(),j({each:!0}),K(()=>Hr),Ve()],Cl.prototype,"Candidates");var C1=Object.defineProperty,NH=Object.getOwnPropertyDescriptor,pH=(e,t,r)=>t in e?C1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BC=(e,t,r,s)=>{for(var n=s>1?void 0:s?NH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&C1(t,r,n),n},O1=(e,t,r)=>pH(e,typeof t!="symbol"?t+"":t,r);const HC=[ce.DOCUMENT_TYPE_CANDIDATES];exports.DocumentTypesCandidatesContainer=class extends Mt{CandidatesList;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>HC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};O1(exports.DocumentTypesCandidatesContainer,"fromPlain",e=>nt(exports.DocumentTypesCandidatesContainer,e));O1(exports.DocumentTypesCandidatesContainer,"validate",e=>{const t=_t(exports.DocumentTypesCandidatesContainer.fromPlain(e));if(t.length)throw new Bt("DocumentTypesCandidatesContainer validation error: the data received does not match model structure!",t);return!0});BC([p(),j(),K(()=>Cl)],exports.DocumentTypesCandidatesContainer.prototype,"CandidatesList",2);BC([D(),v(ce),ct(HC)],exports.DocumentTypesCandidatesContainer.prototype,"result_type",2);exports.DocumentTypesCandidatesContainer=BC([Xe()],exports.DocumentTypesCandidatesContainer);var LH=Object.defineProperty,hH=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&LH(t,r,n),n};let xC=class{boundingRect};hH([D(),Ve(),$({each:!0})],xC.prototype,"boundingRect");var mH=Object.defineProperty,GC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&mH(t,r,n),n};class Ol{length;maxLength;symbols}GC([D(),$()],Ol.prototype,"length");GC([D(),$()],Ol.prototype,"maxLength");GC([D(),j({each:!0}),K(()=>xC),Ve()],Ol.prototype,"symbols");var yH=Object.defineProperty,wC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&yH(t,r,n),n};class $_{MRZFormat;MRZRows;MRZRowsNum;boundingQuadrangle}wC([D(),$()],$_.prototype,"MRZFormat");wC([D(),$()],$_.prototype,"MRZRowsNum");wC([D(),Ve(),$({each:!0})],$_.prototype,"boundingQuadrangle");var D1=Object.defineProperty,gH=Object.getOwnPropertyDescriptor,PH=(e,t,r)=>t in e?D1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$C=(e,t,r,s)=>{for(var n=s>1?void 0:s?gH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&D1(t,r,n),n},T1=(e,t,r)=>PH(e,typeof t!="symbol"?t+"":t,r);const VC=[ce.MRZ_DETECTOR];exports.MRZDetectorContainer=class extends Mt{ResultMRZDetector;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>VC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};T1(exports.MRZDetectorContainer,"fromPlain",e=>nt(exports.MRZDetectorContainer,e));T1(exports.MRZDetectorContainer,"validate",e=>{const t=_t(exports.MRZDetectorContainer.fromPlain(e));if(t.length)throw new Bt("MRZDetectorContainer validation error: the data received does not match model structure!",t);return!0});$C([D(),j(),K(()=>$_)],exports.MRZDetectorContainer.prototype,"ResultMRZDetector",2);$C([D(),v(ce),ct(VC)],exports.MRZDetectorContainer.prototype,"result_type",2);exports.MRZDetectorContainer=$C([Xe()],exports.MRZDetectorContainer);var MH=Object.defineProperty,Ro=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&MH(t,r,n),n};class As{CoincidenceToPhotoArea;FaceRect;FieldRect;GraphFieldNumber;Landmarks;LightType;Orientation;Probability}Ro([D(),$()],As.prototype,"CoincidenceToPhotoArea");Ro([D(),j(),K(()=>jt)],As.prototype,"FaceRect");Ro([D(),j(),K(()=>jt)],As.prototype,"FieldRect");Ro([D(),$()],As.prototype,"GraphFieldNumber");Ro([D(),j({each:!0}),K(()=>Os),Ve()],As.prototype,"Landmarks");Ro([D(),v(Pt)],As.prototype,"LightType");Ro([D(),$()],As.prototype,"Orientation");Ro([D(),$()],As.prototype,"Probability");var vH=Object.defineProperty,V_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&vH(t,r,n),n};class ia{Count;CountFalseDetection;Res;Reserved1;Reserved2}V_([D(),$()],ia.prototype,"Count");V_([D(),$()],ia.prototype,"CountFalseDetection");V_([D(),j({each:!0}),K(()=>As),Ve()],ia.prototype,"Res");V_([p(),$()],ia.prototype,"Reserved1");V_([p(),$()],ia.prototype,"Reserved2");var d1=Object.defineProperty,FH=Object.getOwnPropertyDescriptor,bH=(e,t,r)=>t in e?d1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YC=(e,t,r,s)=>{for(var n=s>1?void 0:s?FH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&d1(t,r,n),n},f1=(e,t,r)=>bH(e,typeof t!="symbol"?t+"":t,r);const jC=[ce.FACE_DETECTION];exports.FaceDetectionContainer=class extends Mt{FaceDetection;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>jC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};f1(exports.FaceDetectionContainer,"fromPlain",e=>nt(exports.FaceDetectionContainer,e));f1(exports.FaceDetectionContainer,"validate",e=>{const t=_t(exports.FaceDetectionContainer.fromPlain(e));if(t.length)throw new Bt("FaceDetectionContainer validation error: the data received does not match model structure!",t);return!0});YC([p(),j(),K(()=>ia)],exports.FaceDetectionContainer.prototype,"FaceDetection",2);YC([D(),v(ce),ct(jC)],exports.FaceDetectionContainer.prototype,"result_type",2);exports.FaceDetectionContainer=YC([Xe()],exports.FaceDetectionContainer);var UH=Object.defineProperty,N1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&UH(t,r,n),n};class Dl{Data;Length}N1([D(),ae()],Dl.prototype,"Data");N1([D(),$()],Dl.prototype,"Length");var BH=Object.defineProperty,_a=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&BH(t,r,n),n};class Ws{FieldType;File_Image;GraphicsType;OriginDG;OriginDGTag;OriginEntryView;OriginTagEntry}_a([D(),$()],Ws.prototype,"FieldType");_a([D(),j(),K(()=>Dl)],Ws.prototype,"File_Image");_a([D(),$()],Ws.prototype,"GraphicsType");_a([D(),$()],Ws.prototype,"OriginDG");_a([D(),$()],Ws.prototype,"OriginDGTag");_a([D(),$()],Ws.prototype,"OriginEntryView");_a([D(),$()],Ws.prototype,"OriginTagEntry");var HH=Object.defineProperty,xH=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&HH(t,r,n),n};class kC{RFID_ORIGINAL_GRAPH_DATA}xH([D(),j({each:!0}),K(()=>Ws),Ve()],kC.prototype,"RFID_ORIGINAL_GRAPH_DATA");var p1=Object.defineProperty,GH=Object.getOwnPropertyDescriptor,wH=(e,t,r)=>t in e?p1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KC=(e,t,r,s)=>{for(var n=s>1?void 0:s?GH(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&p1(t,r,n),n},L1=(e,t,r)=>wH(e,typeof t!="symbol"?t+"":t,r);const WC=[ce.RFID_ORIGINAL_GRAPHICS];exports.RFIDGraphicsInfoContainer=class extends Mt{TOriginalRFIDGraphicsInfo;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>WC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};L1(exports.RFIDGraphicsInfoContainer,"fromPlain",e=>nt(exports.RFIDGraphicsInfoContainer,e));L1(exports.RFIDGraphicsInfoContainer,"validate",e=>{const t=_t(exports.RFIDGraphicsInfoContainer.fromPlain(e));if(t.length)throw new Bt("RFIDGraphicsInfoContainer validation error: the data received does not match model structure!",t);return!0});KC([D(),j(),K(()=>kC)],exports.RFIDGraphicsInfoContainer.prototype,"TOriginalRFIDGraphicsInfo",2);KC([D(),v(ce),ct(WC)],exports.RFIDGraphicsInfoContainer.prototype,"result_type",2);exports.RFIDGraphicsInfoContainer=KC([Xe()],exports.RFIDGraphicsInfoContainer);var h1=Object.defineProperty,$H=Object.getOwnPropertyDescriptor,VH=(e,t,r)=>t in e?h1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ZC=(e,t,r,s)=>{for(var n=s>1?void 0:s?$H(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&h1(t,r,n),n},m1=(e,t,r)=>VH(e,typeof t!="symbol"?t+"":t,r);const XC=[ce.DTC_VC];exports.ByteArrayContainer=class extends Mt{ByteArray;result_type;static fromProcessResponse(t,r=!1){try{const{ContainerList:s}=t,n=s.List.filter(o=>XC.includes(o.result_type));return r?n.map(o=>Yt(o,{exposeUnsetFields:!1})):n}catch{return[]}}};m1(exports.ByteArrayContainer,"fromPlain",e=>nt(exports.ByteArrayContainer,e));m1(exports.ByteArrayContainer,"validate",e=>{const t=_t(exports.ByteArrayContainer.fromPlain(e));if(t.length)throw new Bt("ByteArrayContainer validation error: the data received does not match model structure!",t);return!0});ZC([D(),ae()],exports.ByteArrayContainer.prototype,"ByteArray",2);ZC([D(),v(ce),ct(XC)],exports.ByteArrayContainer.prototype,"result_type",2);exports.ByteArrayContainer=ZC([Xe()],exports.ByteArrayContainer);const y1=e=>{const t=[];if(!Array.isArray(e))return t;for(const r of e){if(!ja(r)||!("result_type"in r))continue;const{result_type:s}=r;switch(s){case ce.MRZ_TEST_QUALITY:t.push(exports.MRZTestQualityContainer.fromPlain(r));break;case ce.DOCUMENT_TYPE_CANDIDATES:t.push(exports.DocumentTypesCandidatesContainer.fromPlain(r));break;case ce.AUTHENTICITY:case ce.PORTRAIT_COMPARISON:case ce.FINGERPRINT_COMPARISON:t.push(exports.AuthenticityCheckListContainer.fromPlain(r));break;case ce.BARCODE_POSITION:t.push(exports.BarcodeBoundsResultContainer.fromPlain(r));break;case ce.DOCUMENT_POSITION:t.push(exports.BoundsResultContainer.fromPlain(r));break;case ce.MRZ_DETECTOR:t.push(exports.MRZDetectorContainer.fromPlain(r));break;case ce.FACE_DETECTION:t.push(exports.FaceDetectionContainer.fromPlain(r));break;case ce.MRZ_POSITION:t.push(exports.MRZPositionContainer.fromPlain(r));break;case ce.BARCODES:t.push(exports.DocBarCodeInfoContainer.fromPlain(r));break;case ce.RFID_RAW_DATA:case ce.RFID_BINARY_DATA:t.push(exports.DocBinaryInfoContainer.fromPlain(r));break;case ce.DTC_VC:t.push(exports.ByteArrayContainer.fromPlain(r));break;case ce.RFID_ORIGINAL_GRAPHICS:t.push(exports.RFIDGraphicsInfoContainer.fromPlain(r));break;case ce.VISUAL_GRAPHICS:case ce.BARCODE_GRAPHICS:case ce.LIVE_PORTRAIT:case ce.EXT_PORTRAIT:case ce.FINGERPRINTS:case ce.RFID_GRAPHICS:t.push(exports.DocGraphicsInfoContainer.fromPlain(r));break;case ce.VISUAL_TEXT:case ce.MRZ_TEXT:case ce.BARCODE_TEXT:case ce.MAGNETIC_STRIPE_TEXT_DATA:t.push(exports.DocVisualExtendedInfoContainer.fromPlain(r));break;case ce.RFID_TEXT:t.push(exports.RFIDTextDataContainer.fromPlain(r));break;case ce.ENCRYPTED_RCL:t.push(exports.EncryptedRCLContainer.fromPlain(r));break;case ce.IMAGE_QUALITY:t.push(exports.ImageQualityCheckListContainer.fromPlain(r));break;case ce.IMAGES:t.push(exports.ImagesResultContainer.fromPlain(r));break;case ce.LICENSE:t.push(exports.LicenseContainer.fromPlain(r));break;case ce.LEXICAL_ANALYSIS:t.push(exports.ListVerifiedFieldContainer.fromPlain(r));break;case ce.DOCUMENT_TYPE:t.push(exports.OneCandidateContainer.fromPlain(r));break;case ce.DOCUMENT_IMAGE:case ce.RAW_UNCROPPED_IMAGE:t.push(exports.RawImageContainer.fromPlain(r));break;case ce.STATUS:t.push(exports.StatusContainer.fromPlain(r));break;case ce.TEXT:t.push(exports.TextResultContainer.fromPlain(r));break}}return t};var YH=Object.defineProperty,g1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&YH(t,r,n),n};class Y_{Count;List}g1([p(),$()],Y_.prototype,"Count");g1([D(),Ve(),j({each:!0}),co(({obj:e})=>y1(e.List),{toClassOnly:!0})],Y_.prototype,"List");var jH=Object.defineProperty,P1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&jH(t,r,n),n};class Cs{image;format}P1([ae(),p(),dn()],Cs.prototype,"image");P1([ae(),p()],Cs.prototype,"format");var kH=Object.defineProperty,M1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&kH(t,r,n),n};class Os{x;y}M1([D(),He()],Os.prototype,"x");M1([p(),He()],Os.prototype,"y");var KH=Object.defineProperty,Tl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&KH(t,r,n),n};class jt{left;top;right;bottom}Tl([D(),He()],jt.prototype,"left");Tl([D(),He()],jt.prototype,"top");Tl([D(),He()],jt.prototype,"right");Tl([D(),He()],jt.prototype,"bottom");var WH=Object.defineProperty,v1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&WH(t,r,n),n};class dl{Type;Value}v1([D(),ae()],dl.prototype,"Type");v1([D(),K(()=>Ds),j()],dl.prototype,"Value");var ZH=Object.defineProperty,qC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ZH(t,r,n),n};class ca{Data;FriendlyName;Attributes}qC([D(),dn(),ae()],ca.prototype,"Data");qC([D(),K(()=>Ds),j()],ca.prototype,"FriendlyName");qC([D(),K(()=>dl),j({each:!0}),Ve()],ca.prototype,"Attributes");var XH=Object.defineProperty,fl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&XH(t,r,n),n};class Ao{dg;dgTag;tagEntry;entryView}fl([D(),He()],Ao.prototype,"dg");fl([D(),He()],Ao.prototype,"dgTag");fl([D(),He()],Ao.prototype,"tagEntry");fl([D(),He()],Ao.prototype,"entryView");var qH=Object.defineProperty,Nl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&qH(t,r,n),n};class Zs{Type;Status;Length;Data}Nl([D(),He()],Zs.prototype,"Type");Nl([D(),He()],Zs.prototype,"Status");Nl([D(),$()],Zs.prototype,"Length");Nl([D()],Zs.prototype,"Data");var QH=Object.defineProperty,pl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&QH(t,r,n),n};class Ds{Type;Status;Format;Data}pl([p(),He()],Ds.prototype,"Type");pl([p(),He()],Ds.prototype,"Status");pl([p(),ae()],Ds.prototype,"Format");pl([D(),ae()],Ds.prototype,"Data");var zH=Object.defineProperty,Pn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&zH(t,r,n),n};class zr{ICAOCode;Count;List;dType;dFormat;dMRZ;dDescription;dYear;dCountryName;dStateCode;dStateName;isDeprecated}Pn([ae(),x2(4),D()],zr.prototype,"ICAOCode");Pn([p(),$()],zr.prototype,"Count");Pn([p(),Ve(),$({each:!0})],zr.prototype,"List");Pn([D(),v(wE)],zr.prototype,"dType");Pn([D(),v(ri)],zr.prototype,"dFormat");Pn([D(),Be()],zr.prototype,"dMRZ");Pn([p(),ae()],zr.prototype,"dDescription");Pn([p(),ae()],zr.prototype,"dYear");Pn([D(),ae()],zr.prototype,"dCountryName");Pn([p(),ae()],zr.prototype,"dStateCode");Pn([p(),ae()],zr.prototype,"dStateName");Pn([D(),Be()],zr.prototype,"isDeprecated");var JH=Object.defineProperty,Mn=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&JH(t,r,n),n};class Hr{DocumentName;ID;P;Rotated180;RFID_Presence;FDSIDList;NecessaryLights;CheckAuthenticity;UVExp;AuthenticityNecessaryLights;OVIExp;RotationAngle;static getNecessaryLights=t=>Ho(typeof t=="number"?t:t.NecessaryLights);static getCheckAuthenticity=t=>hR(typeof t=="number"?t:t.CheckAuthenticity);static getAuthenticityNecessaryLights=t=>Ho(typeof t=="number"?t:t.AuthenticityNecessaryLights)}Mn([p(),ae()],Hr.prototype,"DocumentName");Mn([D(),$()],Hr.prototype,"ID");Mn([D(),He()],Hr.prototype,"P");Mn([D(),He()],Hr.prototype,"Rotated180");Mn([D(),v(jE)],Hr.prototype,"RFID_Presence");Mn([p(),j(),K(()=>zr)],Hr.prototype,"FDSIDList");Mn([D(),He()],Hr.prototype,"NecessaryLights");Mn([D(),$()],Hr.prototype,"CheckAuthenticity");Mn([D(),He()],Hr.prototype,"UVExp");Mn([D(),He()],Hr.prototype,"AuthenticityNecessaryLights");Mn([D(),He()],Hr.prototype,"OVIExp");Mn([p(),$()],Hr.prototype,"RotationAngle");var ex=Object.defineProperty,QC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ex(t,r,n),n};class j_{limit;threshold;group_ids}QC([p(),He()],j_.prototype,"limit");QC([p(),He()],j_.prototype,"threshold");QC([p(),He({},{each:!0})],j_.prototype,"group_ids");var tx=Object.defineProperty,Ts=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&tx(t,r,n),n};class vn{url;mode;search;threshold;serviceTimeout;proxy;proxy_userpwd;proxy_type;childAgeThreshold;childDocValidityYears}Ts([p(),ae()],vn.prototype,"url");Ts([p(),ae()],vn.prototype,"mode");Ts([p(),j(),K(()=>j_)],vn.prototype,"search");Ts([p(),He()],vn.prototype,"threshold");Ts([p(),He()],vn.prototype,"serviceTimeout");Ts([p(),ae()],vn.prototype,"proxy");Ts([p(),ae()],vn.prototype,"proxy_userpwd");Ts([p(),He()],vn.prototype,"proxy_type");Ts([p(),He()],vn.prototype,"childAgeThreshold");Ts([p(),He()],vn.prototype,"childDocValidityYears");var rx=Object.defineProperty,Xs=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&rx(t,r,n),n};class ds{brightnessThreshold;dpiThreshold;angleThreshold;focusCheck;glaresCheck;colornessCheck;moireCheck;documentPositionIndent;expectedPass}Xs([p(),He()],ds.prototype,"brightnessThreshold");Xs([p(),$()],ds.prototype,"dpiThreshold");Xs([p(),$()],ds.prototype,"angleThreshold");Xs([Be(),p()],ds.prototype,"focusCheck");Xs([Be(),p()],ds.prototype,"glaresCheck");Xs([Be(),p()],ds.prototype,"colornessCheck");Xs([Be(),p()],ds.prototype,"moireCheck");Xs([p(),He()],ds.prototype,"documentPositionIndent");Xs([p(),Ve(),v(dA,{each:!0})],ds.prototype,"expectedPass");var nx=Object.defineProperty,F1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&nx(t,r,n),n};class Ll{docID;excludeAuthChecks}F1([p(),$({each:!0}),Ve()],Ll.prototype,"docID");F1([p(),$()],Ll.prototype,"excludeAuthChecks");var sx=Object.defineProperty,ox=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&sx(t,r,n),n};class zC{paIgnoreNotificationCodes}ox([p(),v($E,{each:!0}),Ve()],zC.prototype,"paIgnoreNotificationCodes");var ax=Object.defineProperty,Ea=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ax(t,r,n),n};class qs{checkOVI;checkMLI;checkHolo;checkED;checkBlackAndWhiteCopy;checkDynaprint;checkGeometry}Ea([p(),Be()],qs.prototype,"checkOVI");Ea([p(),Be()],qs.prototype,"checkMLI");Ea([p(),Be()],qs.prototype,"checkHolo");Ea([p(),Be()],qs.prototype,"checkED");Ea([p(),Be()],qs.prototype,"checkBlackAndWhiteCopy");Ea([p(),Be()],qs.prototype,"checkDynaprint");Ea([p(),Be()],qs.prototype,"checkGeometry");var ix=Object.defineProperty,gr=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&ix(t,r,n),n};class Sr{checkLiveness;livenessParams;checkUVLuminiscence;checkIRB900;checkImagePatterns;checkFibers;checkExtMRZ;checkExtOCR;checkAxial;checkBarcodeFormat;checkIRVisibility;checkIPI;checkPhotoEmbedding;checkPhotoComparison;checkLetterScreen;checkSecurityText}gr([p(),Be()],Sr.prototype,"checkLiveness");gr([p(),j(),K(()=>qs)],Sr.prototype,"livenessParams");gr([p(),Be()],Sr.prototype,"checkUVLuminiscence");gr([p(),Be()],Sr.prototype,"checkIRB900");gr([p(),Be()],Sr.prototype,"checkImagePatterns");gr([p(),Be()],Sr.prototype,"checkFibers");gr([p(),Be()],Sr.prototype,"checkExtMRZ");gr([p(),Be()],Sr.prototype,"checkExtOCR");gr([p(),Be()],Sr.prototype,"checkAxial");gr([p(),Be()],Sr.prototype,"checkBarcodeFormat");gr([p(),Be()],Sr.prototype,"checkIRVisibility");gr([p(),Be()],Sr.prototype,"checkIPI");gr([p(),Be()],Sr.prototype,"checkPhotoEmbedding");gr([p(),Be()],Sr.prototype,"checkPhotoComparison");gr([p(),Be()],Sr.prototype,"checkLetterScreen");gr([p(),Be()],Sr.prototype,"checkSecurityText");const k_=e=>(t,r)=>{th({name:"IsStringObjectRecord",target:t.constructor,propertyName:String(r),constraints:[],options:{message:`${String(r)} must be a Record<string, object>`,...e},validator:{validate(s,n){return ja(s)?Object.keys(s).length===0?!0:Object.keys(s).every(a=>!(typeof a!="string"||!ja(s[a]))):!1}}})};var _x=Object.defineProperty,Ge=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&_x(t,r,n),n};class Ue{generateDTCVC;lcidFilter;checkLiveness;lcidIgnoreFilter;oneShotIdentification;useFaceApi;faceApi;doDetectCan;imageOutputMaxHeight;imageOutputMaxWidth;scenario;resultTypeOutput;doublePageSpread;generateDoublePageSpreadImage;fieldTypesFilter;dateFormat;measureSystem;imageDpiOutMax;alreadyCropped;customParams;config;log;logLevel;forceDocID;matchTextFieldMask;fastDocDetect;updateOCRValidityByGlare;checkRequiredTextFields;returnCroppedBarcode;imageQa;strictImageQuality;respectImageQuality;forceDocFormat;noGraphics;depersonalizeLog;multiDocOnImage;shiftExpiryDate;minimalHolderAge;returnUncroppedImage;mrzFormatsFilter;forceReadMrzBeforeLocate;parseBarcodes;convertCase;splitNames;disablePerforationOCR;documentGroupFilter;processAuth;deviceId;deviceType;deviceTypeHex;ignoreDeviceIdFromImage;documentIdList;rfid;checkAuth;authParams;mrzDetectMode;generateNumericCodes;strictBarcodeDigitalSignatureCheck;selectLongestNames;doBarcodes;strictDLCategoryExpiry;generateAlpha2Codes;pdfPagesLimit;disableAuthResolutionFilter;strictSecurityChecks}Ge([p(),Be()],Ue.prototype,"generateDTCVC");Ge([p(),v(Y,{each:!0})],Ue.prototype,"lcidFilter");Ge([p(),Be()],Ue.prototype,"checkLiveness");Ge([p(),v(Y,{each:!0})],Ue.prototype,"lcidIgnoreFilter");Ge([p(),Be()],Ue.prototype,"oneShotIdentification");Ge([p(),Be()],Ue.prototype,"useFaceApi");Ge([p(),j(),K(()=>vn)],Ue.prototype,"faceApi");Ge([p(),Be()],Ue.prototype,"doDetectCan");Ge([p(),$(),N_(0)],Ue.prototype,"imageOutputMaxHeight");Ge([p(),$(),N_(0)],Ue.prototype,"imageOutputMaxWidth");Ge([D(),v(FA)],Ue.prototype,"scenario");Ge([p(),v(ce,{each:!0})],Ue.prototype,"resultTypeOutput");Ge([p(),Be()],Ue.prototype,"doublePageSpread");Ge([p(),Be()],Ue.prototype,"generateDoublePageSpreadImage");Ge([p(),v(A,{each:!0})],Ue.prototype,"fieldTypesFilter");Ge([p(),ae()],Ue.prototype,"dateFormat");Ge([p(),v(pA)],Ue.prototype,"measureSystem");Ge([p(),$()],Ue.prototype,"imageDpiOutMax");Ge([p(),Be()],Ue.prototype,"alreadyCropped");Ge([p(),k_()],Ue.prototype,"customParams");Ge([p(),j({each:!0}),K(()=>Ll)],Ue.prototype,"config");Ge([p(),Be()],Ue.prototype,"log");Ge([p(),v(fA)],Ue.prototype,"logLevel");Ge([p(),$()],Ue.prototype,"forceDocID");Ge([p(),Be()],Ue.prototype,"matchTextFieldMask");Ge([p(),Be()],Ue.prototype,"fastDocDetect");Ge([p(),Be()],Ue.prototype,"updateOCRValidityByGlare");Ge([p(),Be()],Ue.prototype,"checkRequiredTextFields");Ge([p(),Be()],Ue.prototype,"returnCroppedBarcode");Ge([p(),j()],Ue.prototype,"imageQa");Ge([p(),Be()],Ue.prototype,"strictImageQuality");Ge([p(),Be()],Ue.prototype,"respectImageQuality");Ge([p(),v(ri)],Ue.prototype,"forceDocFormat");Ge([p(),Be()],Ue.prototype,"noGraphics");Ge([p(),Be()],Ue.prototype,"depersonalizeLog");Ge([p(),Be()],Ue.prototype,"multiDocOnImage");Ge([p(),$()],Ue.prototype,"shiftExpiryDate");Ge([p(),$(),N_(0)],Ue.prototype,"minimalHolderAge");Ge([p(),Be()],Ue.prototype,"returnUncroppedImage");Ge([p(),v(NA,{each:!0})],Ue.prototype,"mrzFormatsFilter");Ge([p(),Be()],Ue.prototype,"forceReadMrzBeforeLocate");Ge([p(),Be()],Ue.prototype,"parseBarcodes");Ge([p(),v(bA)],Ue.prototype,"convertCase");Ge([p(),Be()],Ue.prototype,"splitNames");Ge([p(),Be()],Ue.prototype,"disablePerforationOCR");Ge([p(),v(wE,{each:!0})],Ue.prototype,"documentGroupFilter");Ge([p(),$()],Ue.prototype,"processAuth");Ge([p(),$()],Ue.prototype,"deviceId");Ge([p(),$()],Ue.prototype,"deviceType");Ge([p(),ae()],Ue.prototype,"deviceTypeHex");Ge([p(),Be()],Ue.prototype,"ignoreDeviceIdFromImage");Ge([p(),$({each:!0})],Ue.prototype,"documentIdList");Ge([p(),j(),K(()=>zC)],Ue.prototype,"rfid");Ge([p(),Be()],Ue.prototype,"checkAuth");Ge([p(),j(),K(()=>Sr)],Ue.prototype,"authParams");Ge([p(),v(LA)],Ue.prototype,"mrzDetectMode");Ge([p(),Be()],Ue.prototype,"generateNumericCodes");Ge([p(),Be()],Ue.prototype,"strictBarcodeDigitalSignatureCheck");Ge([p(),Be()],Ue.prototype,"selectLongestNames");Ge([p(),Ve(),v(TA,{each:!0})],Ue.prototype,"doBarcodes");Ge([p(),Be()],Ue.prototype,"strictDLCategoryExpiry");Ge([p(),Be()],Ue.prototype,"generateAlpha2Codes");Ge([p(),He()],Ue.prototype,"pdfPagesLimit");Ge([p(),Be()],Ue.prototype,"disableAuthResolutionFilter");Ge([p(),Be()],Ue.prototype,"strictSecurityChecks");var cx=Object.defineProperty,JC=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&cx(t,r,n),n};class K_{ImageData;light;page_idx}JC([j(),K(()=>Cs)],K_.prototype,"ImageData");JC([v(Pt),p()],K_.prototype,"light");JC([$(),p()],K_.prototype,"page_idx");var Ex=Object.defineProperty,b1=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&Ex(t,r,n),n};class hl{license;recaptcha_token}b1([p(),ae(),dn()],hl.prototype,"license");b1([p(),ae()],hl.prototype,"recaptcha_token");var U1=Object.defineProperty,lx=Object.getOwnPropertyDescriptor,ux=(e,t,r)=>t in e?U1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t,r,s)=>{for(var n=s>1?void 0:s?lx(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&U1(t,r,n),n},eO=(e,t,r)=>ux(e,typeof t!="symbol"?t+"":t,r);exports.ProcessRequest=class{processParam;List;tag;tenant;env;livePortrait;extPortrait;ContainerList;systemInfo;passBackObject;dtc;ImageUrls};eO(exports.ProcessRequest,"fromPlain",e=>nt(exports.ProcessRequest,e));eO(exports.ProcessRequest,"toPlain",e=>Yt(e,{excludeExtraneousValues:!0}));eO(exports.ProcessRequest,"validate",e=>{const t=_t(exports.ProcessRequest.toPlain(e));if(t.length)throw new Bt("ProcessRequest validation error: the data received does not match model structure!",t);return!0});Sn([j(),D(),K(()=>Ue)],exports.ProcessRequest.prototype,"processParam",2);Sn([j({each:!0}),p(),K(()=>K_)],exports.ProcessRequest.prototype,"List",2);Sn([ae(),p()],exports.ProcessRequest.prototype,"tag",2);Sn([ae(),p()],exports.ProcessRequest.prototype,"tenant",2);Sn([ae(),p()],exports.ProcessRequest.prototype,"env",2);Sn([p(),ae()],exports.ProcessRequest.prototype,"livePortrait",2);Sn([p(),ae()],exports.ProcessRequest.prototype,"extPortrait",2);Sn([p(),j(),K(()=>Y_)],exports.ProcessRequest.prototype,"ContainerList",2);Sn([p(),j(),K(()=>hl)],exports.ProcessRequest.prototype,"systemInfo",2);Sn([p(),k_()],exports.ProcessRequest.prototype,"passBackObject",2);Sn([p(),ae()],exports.ProcessRequest.prototype,"dtc",2);Sn([p(),Ve(),$({each:!0})],exports.ProcessRequest.prototype,"ImageUrls",2);exports.ProcessRequest=Sn([Xe()],exports.ProcessRequest);var Ix=Object.defineProperty,ml=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&Ix(t,r,n),n};class Ii{Description;ExportDate;ID;Version}ml([p(),ae()],Ii.prototype,"Description");ml([p(),ae()],Ii.prototype,"ExportDate");ml([p(),ae()],Ii.prototype,"ID");ml([p(),ae()],Ii.prototype,"Version");var Sx=Object.defineProperty,Co=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&Sx(t,r,n),n};class fs{ComputerName;DateTime;DocumentsDatabase;SystemInfo;Tag;TransactionID;UserName;Version}Co([p(),ae()],fs.prototype,"ComputerName");Co([p(),ae()],fs.prototype,"DateTime");Co([p(),j(),K(()=>Ii)],fs.prototype,"DocumentsDatabase");Co([p(),ae()],fs.prototype,"SystemInfo");Co([p(),ae()],fs.prototype,"Tag");Co([p(),ae()],fs.prototype,"TransactionID");Co([p(),ae()],fs.prototype,"UserName");Co([p(),ae()],fs.prototype,"Version");var WI,Pd;function B1(){if(Pd)return WI;Pd=1;var e=Wo(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return WI=t,WI}var ZI,Md;function tO(){if(Md)return ZI;Md=1;var e=B1();function t(r,s,n){s=="__proto__"&&e?e(r,s,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[s]=n}return ZI=t,ZI}var XI,vd;function H1(){if(vd)return XI;vd=1;var e=tO(),t=A_();function r(s,n,o){(o!==void 0&&!t(s[n],o)||o===void 0&&!(n in s))&&e(s,n,o)}return XI=r,XI}var qI,Fd;function Rx(){if(Fd)return qI;Fd=1;function e(t){return function(r,s,n){for(var o=-1,a=Object(r),i=n(r),c=i.length;c--;){var _=i[t?c:++o];if(s(a[_],_,a)===!1)break}return r}}return qI=e,qI}var QI,bd;function Ax(){if(bd)return QI;bd=1;var e=Rx(),t=e();return QI=t,QI}var Qi={exports:{}};Qi.exports;var Ud;function Cx(){return Ud||(Ud=1,(function(e,t){var r=Es(),s=t&&!t.nodeType&&t,n=s&&!0&&e&&!e.nodeType&&e,o=n&&n.exports===s,a=o?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;function c(_,E){if(E)return _.slice();var u=_.length,I=i?i(u):new _.constructor(u);return _.copy(I),I}e.exports=c})(Qi,Qi.exports)),Qi.exports}var zI,Bd;function Ox(){if(Bd)return zI;Bd=1;var e=uL();function t(r){var s=new r.constructor(r.byteLength);return new e(s).set(new e(r)),s}return zI=t,zI}var JI,Hd;function Dx(){if(Hd)return JI;Hd=1;var e=Ox();function t(r,s){var n=s?e(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}return JI=t,JI}var eS,xd;function Tx(){if(xd)return eS;xd=1;function e(t,r){var s=-1,n=t.length;for(r||(r=Array(n));++s<n;)r[s]=t[s];return r}return eS=e,eS}var tS,Gd;function dx(){if(Gd)return tS;Gd=1;var e=Ko(),t=Object.create,r=(function(){function s(){}return function(n){if(!e(n))return{};if(t)return t(n);s.prototype=n;var o=new s;return s.prototype=void 0,o}})();return tS=r,tS}var rS,wd;function x1(){if(wd)return rS;wd=1;var e=CL(),t=e(Object.getPrototypeOf,Object);return rS=t,rS}var nS,$d;function fx(){if($d)return nS;$d=1;var e=dx(),t=x1(),r=RA();function s(n){return typeof n.constructor=="function"&&!r(n)?e(t(n)):{}}return nS=s,nS}var sS,Vd;function Nx(){if(Vd)return sS;Vd=1;var e=ME(),t=za();function r(s){return t(s)&&e(s)}return sS=r,sS}var oS,Yd;function px(){if(Yd)return oS;Yd=1;var e=C_(),t=x1(),r=za(),s="[object Object]",n=Function.prototype,o=Object.prototype,a=n.toString,i=o.hasOwnProperty,c=a.call(Object);function _(E){if(!r(E)||e(E)!=s)return!1;var u=t(E);if(u===null)return!0;var I=i.call(u,"constructor")&&u.constructor;return typeof I=="function"&&I instanceof I&&a.call(I)==c}return oS=_,oS}var aS,jd;function G1(){if(jd)return aS;jd=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return aS=e,aS}var iS,kd;function Lx(){if(kd)return iS;kd=1;var e=tO(),t=A_(),r=Object.prototype,s=r.hasOwnProperty;function n(o,a,i){var c=o[a];(!(s.call(o,a)&&t(c,i))||i===void 0&&!(a in o))&&e(o,a,i)}return iS=n,iS}var _S,Kd;function hx(){if(Kd)return _S;Kd=1;var e=Lx(),t=tO();function r(s,n,o,a){var i=!o;o||(o={});for(var c=-1,_=n.length;++c<_;){var E=n[c],u=a?a(o[E],s[E],E,o,s):void 0;u===void 0&&(u=s[E]),i?t(o,E,u):e(o,E,u)}return o}return _S=r,_S}var cS,Wd;function mx(){if(Wd)return cS;Wd=1;function e(t){var r=[];if(t!=null)for(var s in Object(t))r.push(s);return r}return cS=e,cS}var ES,Zd;function yx(){if(Zd)return ES;Zd=1;var e=Ko(),t=RA(),r=mx(),s=Object.prototype,n=s.hasOwnProperty;function o(a){if(!e(a))return r(a);var i=t(a),c=[];for(var _ in a)_=="constructor"&&(i||!n.call(a,_))||c.push(_);return c}return ES=o,ES}var lS,Xd;function w1(){if(Xd)return lS;Xd=1;var e=AL(),t=yx(),r=ME();function s(n){return r(n)?e(n,!0):t(n)}return lS=s,lS}var uS,qd;function gx(){if(qd)return uS;qd=1;var e=hx(),t=w1();function r(s){return e(s,t(s))}return uS=r,uS}var IS,Qd;function Px(){if(Qd)return IS;Qd=1;var e=H1(),t=Cx(),r=Dx(),s=Tx(),n=fx(),o=IL(),a=PE(),i=Nx(),c=IA(),_=lA(),E=Ko(),u=px(),I=SA(),S=G1(),R=gx();function O(T,f,N,L,d,m,g){var h=S(T,N),b=S(f,N),B=g.get(b);if(B){e(T,N,B);return}var y=m?m(h,b,N+"",T,f,g):void 0,M=y===void 0;if(M){var F=a(b),X=!F&&c(b),Z=!F&&!X&&I(b);y=b,F||X||Z?a(h)?y=h:i(h)?y=s(h):X?(M=!1,y=t(b,!0)):Z?(M=!1,y=r(b,!0)):y=[]:u(b)||o(b)?(y=h,o(h)?y=R(h):(!E(h)||_(h))&&(y=n(b))):M=!1}M&&(g.set(b,y),d(y,b,L,m,g),g.delete(b)),e(T,N,y)}return IS=O,IS}var SS,zd;function Mx(){if(zd)return SS;zd=1;var e=EL(),t=H1(),r=Ax(),s=Px(),n=Ko(),o=w1(),a=G1();function i(c,_,E,u,I){c!==_&&r(_,function(S,R){if(I||(I=new e),n(S))s(c,_,R,E,i,u,I);else{var O=u?u(a(c,R),S,R+"",c,_,I):void 0;O===void 0&&(O=S),t(c,R,O)}},o)}return SS=i,SS}var RS,Jd;function $1(){if(Jd)return RS;Jd=1;function e(t){return t}return RS=e,RS}var AS,ef;function vx(){if(ef)return AS;ef=1;function e(t,r,s){switch(s.length){case 0:return t.call(r);case 1:return t.call(r,s[0]);case 2:return t.call(r,s[0],s[1]);case 3:return t.call(r,s[0],s[1],s[2])}return t.apply(r,s)}return AS=e,AS}var CS,tf;function Fx(){if(tf)return CS;tf=1;var e=vx(),t=Math.max;function r(s,n,o){return n=t(n===void 0?s.length-1:n,0),function(){for(var a=arguments,i=-1,c=t(a.length-n,0),_=Array(c);++i<c;)_[i]=a[n+i];i=-1;for(var E=Array(n+1);++i<n;)E[i]=a[i];return E[n]=o(_),e(s,this,E)}}return CS=r,CS}var OS,rf;function bx(){if(rf)return OS;rf=1;function e(t){return function(){return t}}return OS=e,OS}var DS,nf;function Ux(){if(nf)return DS;nf=1;var e=bx(),t=B1(),r=$1(),s=t?function(n,o){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return DS=s,DS}var TS,sf;function Bx(){if(sf)return TS;sf=1;var e=800,t=16,r=Date.now;function s(n){var o=0,a=0;return function(){var i=r(),c=t-(i-a);if(a=i,c>0){if(++o>=e)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}return TS=s,TS}var dS,of;function Hx(){if(of)return dS;of=1;var e=Ux(),t=Bx(),r=t(e);return dS=r,dS}var fS,af;function xx(){if(af)return fS;af=1;var e=$1(),t=Fx(),r=Hx();function s(n,o){return r(t(n,o,e),n+"")}return fS=s,fS}var NS,_f;function Gx(){if(_f)return NS;_f=1;var e=A_(),t=ME(),r=SL(),s=Ko();function n(o,a,i){if(!s(i))return!1;var c=typeof a;return(c=="number"?t(i)&&r(a,i.length):c=="string"&&a in i)?e(i[a],o):!1}return NS=n,NS}var pS,cf;function wx(){if(cf)return pS;cf=1;var e=xx(),t=Gx();function r(s){return e(function(n,o){var a=-1,i=o.length,c=i>1?o[i-1]:void 0,_=i>2?o[2]:void 0;for(c=s.length>3&&typeof c=="function"?(i--,c):void 0,_&&t(o[0],o[1],_)&&(c=i<3?void 0:c,i=1),n=Object(n);++a<i;){var E=o[a];E&&s(n,E,a,c)}return n})}return pS=r,pS}var LS,Ef;function $x(){if(Ef)return LS;Ef=1;var e=Mx(),t=wx(),r=t(function(s,n,o){e(s,n,o)});return LS=r,LS}var Vx=$x();const lf=Qa(Vx);var hS,uf;function Yx(){if(uf)return hS;uf=1;function e(t,r){for(var s=-1,n=t==null?0:t.length,o=Array(n);++s<n;)o[s]=r(t[s],s,t);return o}return hS=e,hS}var mS,If;function jx(){if(If)return mS;If=1;var e=Yx();function t(r,s){return e(s,function(n){return r[n]})}return mS=t,mS}var yS,Sf;function kx(){if(Sf)return yS;Sf=1;var e=jx(),t=OL();function r(s){return s==null?[]:e(s,t(s))}return yS=r,yS}var Kx=kx();const Wx=Qa(Kx);var V1=Object.defineProperty,Zx=Object.getOwnPropertyDescriptor,Xx=(e,t,r)=>t in e?V1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xn=(e,t,r,s)=>{for(var n=s>1?void 0:s?Zx(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&V1(t,r,n),n},Si=(e,t,r)=>Xx(e,typeof t!="symbol"?t+"":t,r);exports.ProcessResponse=class{ChipPage;CoreLibResultCode;ProcessingFinished;ContainerList;TransactionInfo;log;passBackObject;morePagesAvailable;elapsedTime;metadata};Si(exports.ProcessResponse,"fromPlain",e=>{const t=nt(exports.ProcessResponse,e,{exposeUnsetFields:!1});return exports.ProcessResponse.inform(t),t});Si(exports.ProcessResponse,"validate",e=>{const t=_t(exports.ProcessResponse.fromPlain(e));if(t.length)throw new Bt("ProcessResponse validation error: the data received does not match model structure!",t);return!0});Si(exports.ProcessResponse,"isValid",e=>{try{return exports.ProcessResponse.validate(e),!0}catch{return!1}});Si(exports.ProcessResponse,"decodeLog",e=>typeof e=="string"?MR(e):!e||!e.log?"":MR(e.log));Si(exports.ProcessResponse,"inform",e=>{if(typeof window>"u"||typeof localStorage>"u"||!localStorage.getItem("docreader_typings_log")||!e||!(e instanceof exports.ProcessResponse))return;const r=_t(e),s=exports.ProcessResponse.simplifyErrors("",r);for(const[n,o]of Object.entries(s))console.info(`Error in ${n}: ${o.join(", ")}`)});Si(exports.ProcessResponse,"simplifyErrors",(e,t)=>{let r={};for(let s=0;s<t.length;s++){const n=t[s].property,o=e?`${e}.${n}`:n;t[s].children&&t[s].children?.length&&(r=lf(r,exports.ProcessResponse.simplifyErrors(o,t[s].children))),t[s].constraints&&(r[o]=Wx(lf(t[s].constraints,r[o])))}return r});Xn([D(),v(jE)],exports.ProcessResponse.prototype,"ChipPage",2);Xn([p(),$()],exports.ProcessResponse.prototype,"CoreLibResultCode",2);Xn([D(),v(hA)],exports.ProcessResponse.prototype,"ProcessingFinished",2);Xn([j(),K(()=>Y_)],exports.ProcessResponse.prototype,"ContainerList",2);Xn([D(),j(),K(()=>fs)],exports.ProcessResponse.prototype,"TransactionInfo",2);Xn([p(),ae(),dn()],exports.ProcessResponse.prototype,"log",2);Xn([p(),k_()],exports.ProcessResponse.prototype,"passBackObject",2);Xn([p(),$(),N_(0)],exports.ProcessResponse.prototype,"morePagesAvailable",2);Xn([p(),$(),N_(0)],exports.ProcessResponse.prototype,"elapsedTime",2);Xn([p(),k_()],exports.ProcessResponse.prototype,"metadata",2);exports.ProcessResponse=Xn([Xe()],exports.ProcessResponse);function Ri(e){let t=e.length;for(;--t>=0;)e[t]=0}const qx=3,Qx=258,Y1=29,zx=256,Jx=zx+1+Y1,j1=30,eG=512,tG=new Array((Jx+2)*2);Ri(tG);const rG=new Array(j1*2);Ri(rG);const nG=new Array(eG);Ri(nG);const sG=new Array(Qx-qx+1);Ri(sG);const oG=new Array(Y1);Ri(oG);const aG=new Array(j1);Ri(aG);const iG=(e,t,r,s)=>{let n=e&65535|0,o=e>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do n=n+t[s++]|0,o=o+n|0;while(--a);n%=65521,o%=65521}return n|o<<16|0};var yR=iG;const _G=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var s=0;s<8;s++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},cG=new Uint32Array(_G()),EG=(e,t,r,s)=>{const n=cG,o=s+r;e^=-1;for(let a=s;a<o;a++)e=e>>>8^n[(e^t[a])&255];return e^-1};var es=EG,gR={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},k1={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const lG=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var uG=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const s in r)lG(r,s)&&(e[s]=r[s])}}return e},IG=e=>{let t=0;for(let s=0,n=e.length;s<n;s++)t+=e[s].length;const r=new Uint8Array(t);for(let s=0,n=0,o=e.length;s<o;s++){let a=e[s];r.set(a,n),n+=a.length}return r},K1={assign:uG,flattenChunks:IG};let W1=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{W1=!1}const o_=new Uint8Array(256);for(let e=0;e<256;e++)o_[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;o_[254]=o_[254]=1;var SG=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,s,n,o,a=e.length,i=0;for(n=0;n<a;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<a&&(s=e.charCodeAt(n+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),n++)),i+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(i),o=0,n=0;o<i;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<a&&(s=e.charCodeAt(n+1),(s&64512)===56320&&(r=65536+(r-55296<<10)+(s-56320),n++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const RG=(e,t)=>{if(t<65534&&e.subarray&&W1)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r};var AG=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let s,n;const o=new Array(r*2);for(n=0,s=0;s<r;){let a=e[s++];if(a<128){o[n++]=a;continue}let i=o_[a];if(i>4){o[n++]=65533,s+=i-1;continue}for(a&=i===2?31:i===3?15:7;i>1&&s<r;)a=a<<6|e[s++]&63,i--;if(i>1){o[n++]=65533;continue}a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|a&1023)}return RG(o,n)},CG=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+o_[e[r]]>t?r:t},PR={string2buf:SG,buf2string:AG,utf8border:CG};function OG(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var DG=OG;const Sc=16209,TG=16191;var dG=function(t,r){let s,n,o,a,i,c,_,E,u,I,S,R,O,T,f,N,L,d,m,g,h,b,B,y;const M=t.state;s=t.next_in,B=t.input,n=s+(t.avail_in-5),o=t.next_out,y=t.output,a=o-(r-t.avail_out),i=o+(t.avail_out-257),c=M.dmax,_=M.wsize,E=M.whave,u=M.wnext,I=M.window,S=M.hold,R=M.bits,O=M.lencode,T=M.distcode,f=(1<<M.lenbits)-1,N=(1<<M.distbits)-1;e:do{R<15&&(S+=B[s++]<<R,R+=8,S+=B[s++]<<R,R+=8),L=O[S&f];t:for(;;){if(d=L>>>24,S>>>=d,R-=d,d=L>>>16&255,d===0)y[o++]=L&65535;else if(d&16){m=L&65535,d&=15,d&&(R<d&&(S+=B[s++]<<R,R+=8),m+=S&(1<<d)-1,S>>>=d,R-=d),R<15&&(S+=B[s++]<<R,R+=8,S+=B[s++]<<R,R+=8),L=T[S&N];r:for(;;){if(d=L>>>24,S>>>=d,R-=d,d=L>>>16&255,d&16){if(g=L&65535,d&=15,R<d&&(S+=B[s++]<<R,R+=8,R<d&&(S+=B[s++]<<R,R+=8)),g+=S&(1<<d)-1,g>c){t.msg="invalid distance too far back",M.mode=Sc;break e}if(S>>>=d,R-=d,d=o-a,g>d){if(d=g-d,d>E&&M.sane){t.msg="invalid distance too far back",M.mode=Sc;break e}if(h=0,b=I,u===0){if(h+=_-d,d<m){m-=d;do y[o++]=I[h++];while(--d);h=o-g,b=y}}else if(u<d){if(h+=_+u-d,d-=u,d<m){m-=d;do y[o++]=I[h++];while(--d);if(h=0,u<m){d=u,m-=d;do y[o++]=I[h++];while(--d);h=o-g,b=y}}}else if(h+=u-d,d<m){m-=d;do y[o++]=I[h++];while(--d);h=o-g,b=y}for(;m>2;)y[o++]=b[h++],y[o++]=b[h++],y[o++]=b[h++],m-=3;m&&(y[o++]=b[h++],m>1&&(y[o++]=b[h++]))}else{h=o-g;do y[o++]=y[h++],y[o++]=y[h++],y[o++]=y[h++],m-=3;while(m>2);m&&(y[o++]=y[h++],m>1&&(y[o++]=y[h++]))}}else if((d&64)===0){L=T[(L&65535)+(S&(1<<d)-1)];continue r}else{t.msg="invalid distance code",M.mode=Sc;break e}break}}else if((d&64)===0){L=O[(L&65535)+(S&(1<<d)-1)];continue t}else if(d&32){M.mode=TG;break e}else{t.msg="invalid literal/length code",M.mode=Sc;break e}break}}while(s<n&&o<i);m=R>>3,s-=m,R-=m<<3,S&=(1<<R)-1,t.next_in=s,t.next_out=o,t.avail_in=s<n?5+(n-s):5-(s-n),t.avail_out=o<i?257+(i-o):257-(o-i),M.hold=S,M.bits=R};const fa=15,Rf=852,Af=592,Cf=0,gS=1,Of=2,fG=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),NG=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),pG=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),LG=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),hG=(e,t,r,s,n,o,a,i)=>{const c=i.bits;let _=0,E=0,u=0,I=0,S=0,R=0,O=0,T=0,f=0,N=0,L,d,m,g,h,b=null,B;const y=new Uint16Array(fa+1),M=new Uint16Array(fa+1);let F=null,X,Z,Ce;for(_=0;_<=fa;_++)y[_]=0;for(E=0;E<s;E++)y[t[r+E]]++;for(S=c,I=fa;I>=1&&y[I]===0;I--);if(S>I&&(S=I),I===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,i.bits=1,0;for(u=1;u<I&&y[u]===0;u++);for(S<u&&(S=u),T=1,_=1;_<=fa;_++)if(T<<=1,T-=y[_],T<0)return-1;if(T>0&&(e===Cf||I!==1))return-1;for(M[1]=0,_=1;_<fa;_++)M[_+1]=M[_]+y[_];for(E=0;E<s;E++)t[r+E]!==0&&(a[M[t[r+E]]++]=E);if(e===Cf?(b=F=a,B=20):e===gS?(b=fG,F=NG,B=257):(b=pG,F=LG,B=0),N=0,E=0,_=u,h=o,R=S,O=0,m=-1,f=1<<S,g=f-1,e===gS&&f>Rf||e===Of&&f>Af)return 1;for(;;){X=_-O,a[E]+1<B?(Z=0,Ce=a[E]):a[E]>=B?(Z=F[a[E]-B],Ce=b[a[E]-B]):(Z=96,Ce=0),L=1<<_-O,d=1<<R,u=d;do d-=L,n[h+(N>>O)+d]=X<<24|Z<<16|Ce|0;while(d!==0);for(L=1<<_-1;N&L;)L>>=1;if(L!==0?(N&=L-1,N+=L):N=0,E++,--y[_]===0){if(_===I)break;_=t[r+a[E]]}if(_>S&&(N&g)!==m){for(O===0&&(O=S),h+=u,R=_-O,T=1<<R;R+O<I&&(T-=y[R+O],!(T<=0));)R++,T<<=1;if(f+=1<<R,e===gS&&f>Rf||e===Of&&f>Af)return 1;m=N&g,n[m]=S<<24|R<<16|h-o|0}}return N!==0&&(n[h+N]=_-O<<24|64<<16|0),i.bits=S,0};var t_=hG;const mG=0,Z1=1,X1=2,{Z_FINISH:Df,Z_BLOCK:yG,Z_TREES:Rc,Z_OK:Yo,Z_STREAM_END:gG,Z_NEED_DICT:PG,Z_STREAM_ERROR:Tn,Z_DATA_ERROR:q1,Z_MEM_ERROR:Q1,Z_BUF_ERROR:MG,Z_DEFLATED:Tf}=k1,yl=16180,df=16181,ff=16182,Nf=16183,pf=16184,Lf=16185,hf=16186,mf=16187,yf=16188,gf=16189,EE=16190,Ls=16191,PS=16192,Pf=16193,MS=16194,Mf=16195,vf=16196,Ff=16197,bf=16198,Ac=16199,Cc=16200,Uf=16201,Bf=16202,Hf=16203,xf=16204,Gf=16205,vS=16206,wf=16207,$f=16208,kt=16209,z1=16210,J1=16211,vG=852,FG=592,bG=15,UG=bG,Vf=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function BG(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const la=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<yl||t.mode>J1?1:0},em=e=>{if(la(e))return Tn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=yl,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(vG),t.distcode=t.distdyn=new Int32Array(FG),t.sane=1,t.back=-1,Yo},tm=e=>{if(la(e))return Tn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,em(e)},rm=(e,t)=>{let r;if(la(e))return Tn;const s=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Tn:(s.window!==null&&s.wbits!==t&&(s.window=null),s.wrap=r,s.wbits=t,tm(e))},nm=(e,t)=>{if(!e)return Tn;const r=new BG;e.state=r,r.strm=e,r.window=null,r.mode=yl;const s=rm(e,t);return s!==Yo&&(e.state=null),s},HG=e=>nm(e,UG);let Yf=!0,FS,bS;const xG=e=>{if(Yf){FS=new Int32Array(512),bS=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(t_(Z1,e.lens,0,288,FS,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;t_(X1,e.lens,0,32,bS,0,e.work,{bits:5}),Yf=!1}e.lencode=FS,e.lenbits=9,e.distcode=bS,e.distbits=5},sm=(e,t,r,s)=>{let n;const o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),s>=o.wsize?(o.window.set(t.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):(n=o.wsize-o.wnext,n>s&&(n=s),o.window.set(t.subarray(r-s,r-s+n),o.wnext),s-=n,s?(o.window.set(t.subarray(r-s,r),0),o.wnext=s,o.whave=o.wsize):(o.wnext+=n,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=n))),0},GG=(e,t)=>{let r,s,n,o,a,i,c,_,E,u,I,S,R,O,T=0,f,N,L,d,m,g,h,b;const B=new Uint8Array(4);let y,M;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(la(e)||!e.output||!e.input&&e.avail_in!==0)return Tn;r=e.state,r.mode===Ls&&(r.mode=PS),a=e.next_out,n=e.output,c=e.avail_out,o=e.next_in,s=e.input,i=e.avail_in,_=r.hold,E=r.bits,u=i,I=c,b=Yo;e:for(;;)switch(r.mode){case yl:if(r.wrap===0){r.mode=PS;break}for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.wrap&2&&_===35615){r.wbits===0&&(r.wbits=15),r.check=0,B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0),_=0,E=0,r.mode=df;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((_&255)<<8)+(_>>8))%31){e.msg="incorrect header check",r.mode=kt;break}if((_&15)!==Tf){e.msg="unknown compression method",r.mode=kt;break}if(_>>>=4,E-=4,h=(_&15)+8,r.wbits===0&&(r.wbits=h),h>15||h>r.wbits){e.msg="invalid window size",r.mode=kt;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=_&512?gf:Ls,_=0,E=0;break;case df:for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.flags=_,(r.flags&255)!==Tf){e.msg="unknown compression method",r.mode=kt;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=kt;break}r.head&&(r.head.text=_>>8&1),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0)),_=0,E=0,r.mode=ff;case ff:for(;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.head&&(r.head.time=_),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,B[2]=_>>>16&255,B[3]=_>>>24&255,r.check=es(r.check,B,4,0)),_=0,E=0,r.mode=Nf;case Nf:for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.head&&(r.head.xflags=_&255,r.head.os=_>>8),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0)),_=0,E=0,r.mode=pf;case pf:if(r.flags&1024){for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.length=_,r.head&&(r.head.extra_len=_),r.flags&512&&r.wrap&4&&(B[0]=_&255,B[1]=_>>>8&255,r.check=es(r.check,B,2,0)),_=0,E=0}else r.head&&(r.head.extra=null);r.mode=Lf;case Lf:if(r.flags&1024&&(S=r.length,S>i&&(S=i),S&&(r.head&&(h=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(s.subarray(o,o+S),h)),r.flags&512&&r.wrap&4&&(r.check=es(r.check,s,S,o)),i-=S,o+=S,r.length-=S),r.length))break e;r.length=0,r.mode=hf;case hf:if(r.flags&2048){if(i===0)break e;S=0;do h=s[o+S++],r.head&&h&&r.length<65536&&(r.head.name+=String.fromCharCode(h));while(h&&S<i);if(r.flags&512&&r.wrap&4&&(r.check=es(r.check,s,S,o)),i-=S,o+=S,h)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=mf;case mf:if(r.flags&4096){if(i===0)break e;S=0;do h=s[o+S++],r.head&&h&&r.length<65536&&(r.head.comment+=String.fromCharCode(h));while(h&&S<i);if(r.flags&512&&r.wrap&4&&(r.check=es(r.check,s,S,o)),i-=S,o+=S,h)break e}else r.head&&(r.head.comment=null);r.mode=yf;case yf:if(r.flags&512){for(;E<16;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.wrap&4&&_!==(r.check&65535)){e.msg="header crc mismatch",r.mode=kt;break}_=0,E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Ls;break;case gf:for(;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}e.adler=r.check=Vf(_),_=0,E=0,r.mode=EE;case EE:if(r.havedict===0)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=i,r.hold=_,r.bits=E,PG;e.adler=r.check=1,r.mode=Ls;case Ls:if(t===yG||t===Rc)break e;case PS:if(r.last){_>>>=E&7,E-=E&7,r.mode=vS;break}for(;E<3;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}switch(r.last=_&1,_>>>=1,E-=1,_&3){case 0:r.mode=Pf;break;case 1:if(xG(r),r.mode=Ac,t===Rc){_>>>=2,E-=2;break e}break;case 2:r.mode=vf;break;case 3:e.msg="invalid block type",r.mode=kt}_>>>=2,E-=2;break;case Pf:for(_>>>=E&7,E-=E&7;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if((_&65535)!==(_>>>16^65535)){e.msg="invalid stored block lengths",r.mode=kt;break}if(r.length=_&65535,_=0,E=0,r.mode=MS,t===Rc)break e;case MS:r.mode=Mf;case Mf:if(S=r.length,S){if(S>i&&(S=i),S>c&&(S=c),S===0)break e;n.set(s.subarray(o,o+S),a),i-=S,o+=S,c-=S,a+=S,r.length-=S;break}r.mode=Ls;break;case vf:for(;E<14;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.nlen=(_&31)+257,_>>>=5,E-=5,r.ndist=(_&31)+1,_>>>=5,E-=5,r.ncode=(_&15)+4,_>>>=4,E-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=kt;break}r.have=0,r.mode=Ff;case Ff:for(;r.have<r.ncode;){for(;E<3;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.lens[F[r.have++]]=_&7,_>>>=3,E-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,y={bits:r.lenbits},b=t_(mG,r.lens,0,19,r.lencode,0,r.work,y),r.lenbits=y.bits,b){e.msg="invalid code lengths set",r.mode=kt;break}r.have=0,r.mode=bf;case bf:for(;r.have<r.nlen+r.ndist;){for(;T=r.lencode[_&(1<<r.lenbits)-1],f=T>>>24,N=T>>>16&255,L=T&65535,!(f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(L<16)_>>>=f,E-=f,r.lens[r.have++]=L;else{if(L===16){for(M=f+2;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(_>>>=f,E-=f,r.have===0){e.msg="invalid bit length repeat",r.mode=kt;break}h=r.lens[r.have-1],S=3+(_&3),_>>>=2,E-=2}else if(L===17){for(M=f+3;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=f,E-=f,h=0,S=3+(_&7),_>>>=3,E-=3}else{for(M=f+7;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=f,E-=f,h=0,S=11+(_&127),_>>>=7,E-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=kt;break}for(;S--;)r.lens[r.have++]=h}}if(r.mode===kt)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=kt;break}if(r.lenbits=9,y={bits:r.lenbits},b=t_(Z1,r.lens,0,r.nlen,r.lencode,0,r.work,y),r.lenbits=y.bits,b){e.msg="invalid literal/lengths set",r.mode=kt;break}if(r.distbits=6,r.distcode=r.distdyn,y={bits:r.distbits},b=t_(X1,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,y),r.distbits=y.bits,b){e.msg="invalid distances set",r.mode=kt;break}if(r.mode=Ac,t===Rc)break e;case Ac:r.mode=Cc;case Cc:if(i>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=i,r.hold=_,r.bits=E,dG(e,I),a=e.next_out,n=e.output,c=e.avail_out,o=e.next_in,s=e.input,i=e.avail_in,_=r.hold,E=r.bits,r.mode===Ls&&(r.back=-1);break}for(r.back=0;T=r.lencode[_&(1<<r.lenbits)-1],f=T>>>24,N=T>>>16&255,L=T&65535,!(f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(N&&(N&240)===0){for(d=f,m=N,g=L;T=r.lencode[g+((_&(1<<d+m)-1)>>d)],f=T>>>24,N=T>>>16&255,L=T&65535,!(d+f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=d,E-=d,r.back+=d}if(_>>>=f,E-=f,r.back+=f,r.length=L,N===0){r.mode=Gf;break}if(N&32){r.back=-1,r.mode=Ls;break}if(N&64){e.msg="invalid literal/length code",r.mode=kt;break}r.extra=N&15,r.mode=Uf;case Uf:if(r.extra){for(M=r.extra;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.length+=_&(1<<r.extra)-1,_>>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Bf;case Bf:for(;T=r.distcode[_&(1<<r.distbits)-1],f=T>>>24,N=T>>>16&255,L=T&65535,!(f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if((N&240)===0){for(d=f,m=N,g=L;T=r.distcode[g+((_&(1<<d+m)-1)>>d)],f=T>>>24,N=T>>>16&255,L=T&65535,!(d+f<=E);){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}_>>>=d,E-=d,r.back+=d}if(_>>>=f,E-=f,r.back+=f,N&64){e.msg="invalid distance code",r.mode=kt;break}r.offset=L,r.extra=N&15,r.mode=Hf;case Hf:if(r.extra){for(M=r.extra;E<M;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}r.offset+=_&(1<<r.extra)-1,_>>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=kt;break}r.mode=xf;case xf:if(c===0)break e;if(S=I-c,r.offset>S){if(S=r.offset-S,S>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=kt;break}S>r.wnext?(S-=r.wnext,R=r.wsize-S):R=r.wnext-S,S>r.length&&(S=r.length),O=r.window}else O=n,R=a-r.offset,S=r.length;S>c&&(S=c),c-=S,r.length-=S;do n[a++]=O[R++];while(--S);r.length===0&&(r.mode=Cc);break;case Gf:if(c===0)break e;n[a++]=r.length,c--,r.mode=Cc;break;case vS:if(r.wrap){for(;E<32;){if(i===0)break e;i--,_|=s[o++]<<E,E+=8}if(I-=c,e.total_out+=I,r.total+=I,r.wrap&4&&I&&(e.adler=r.check=r.flags?es(r.check,n,I,a-I):yR(r.check,n,I,a-I)),I=c,r.wrap&4&&(r.flags?_:Vf(_))!==r.check){e.msg="incorrect data check",r.mode=kt;break}_=0,E=0}r.mode=wf;case wf:if(r.wrap&&r.flags){for(;E<32;){if(i===0)break e;i--,_+=s[o++]<<E,E+=8}if(r.wrap&4&&_!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=kt;break}_=0,E=0}r.mode=$f;case $f:b=gG;break e;case kt:b=q1;break e;case z1:return Q1;case J1:default:return Tn}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=i,r.hold=_,r.bits=E,(r.wsize||I!==e.avail_out&&r.mode<kt&&(r.mode<vS||t!==Df))&&sm(e,e.output,e.next_out,I-e.avail_out),u-=e.avail_in,I-=e.avail_out,e.total_in+=u,e.total_out+=I,r.total+=I,r.wrap&4&&I&&(e.adler=r.check=r.flags?es(r.check,n,I,e.next_out-I):yR(r.check,n,I,e.next_out-I)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ls?128:0)+(r.mode===Ac||r.mode===MS?256:0),(u===0&&I===0||t===Df)&&b===Yo&&(b=MG),b},wG=e=>{if(la(e))return Tn;let t=e.state;return t.window&&(t.window=null),e.state=null,Yo},$G=(e,t)=>{if(la(e))return Tn;const r=e.state;return(r.wrap&2)===0?Tn:(r.head=t,t.done=!1,Yo)},VG=(e,t)=>{const r=t.length;let s,n,o;return la(e)||(s=e.state,s.wrap!==0&&s.mode!==EE)?Tn:s.mode===EE&&(n=1,n=yR(n,t,r,0),n!==s.check)?q1:(o=sm(e,t,r,r),o?(s.mode=z1,Q1):(s.havedict=1,Yo))};var YG=tm,jG=rm,kG=em,KG=HG,WG=nm,ZG=GG,XG=wG,qG=$G,QG=VG,zG="pako inflate (from Nodeca project)",vs={inflateReset:YG,inflateReset2:jG,inflateResetKeep:kG,inflateInit:KG,inflateInit2:WG,inflate:ZG,inflateEnd:XG,inflateGetHeader:qG,inflateSetDictionary:QG,inflateInfo:zG};function JG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ew=JG;const om=Object.prototype.toString,{Z_NO_FLUSH:tw,Z_FINISH:rw,Z_OK:a_,Z_STREAM_END:US,Z_NEED_DICT:BS,Z_STREAM_ERROR:nw,Z_DATA_ERROR:jf,Z_MEM_ERROR:sw}=k1;function gl(e){this.options=K1.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new DG,this.strm.avail_out=0;let r=vs.inflateInit2(this.strm,t.windowBits);if(r!==a_)throw new Error(gR[r]);if(this.header=new ew,vs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=PR.string2buf(t.dictionary):om.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=vs.inflateSetDictionary(this.strm,t.dictionary),r!==a_)))throw new Error(gR[r])}gl.prototype.push=function(e,t){const r=this.strm,s=this.options.chunkSize,n=this.options.dictionary;let o,a,i;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?rw:tw,om.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(s),r.next_out=0,r.avail_out=s),o=vs.inflate(r,a),o===BS&&n&&(o=vs.inflateSetDictionary(r,n),o===a_?o=vs.inflate(r,a):o===jf&&(o=BS));r.avail_in>0&&o===US&&r.state.wrap>0&&e[r.next_in]!==0;)vs.inflateReset(r),o=vs.inflate(r,a);switch(o){case nw:case jf:case BS:case sw:return this.onEnd(o),this.ended=!0,!1}if(i=r.avail_out,r.next_out&&(r.avail_out===0||o===US))if(this.options.to==="string"){let c=PR.utf8border(r.output,r.next_out),_=r.next_out-c,E=PR.buf2string(r.output,c);r.next_out=_,r.avail_out=s-_,_&&r.output.set(r.output.subarray(c,c+_),0),this.onData(E)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(o===a_&&i===0)){if(o===US)return o=vs.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};gl.prototype.onData=function(e){this.chunks.push(e)};gl.prototype.onEnd=function(e){e===a_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=K1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ow(e,t){const r=new gl(t);if(r.push(e),r.err)throw r.msg||gR[r.err];return r.result}var aw=ow,iw={inflate:aw};const{inflate:_w}=iw;var cw=_w;const MR=e=>{const t=typeof atob<"u"?atob(e):Buffer.from(e,"base64").toString("binary"),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);let s;try{s=cw(r)}catch{s=r}return new TextDecoder("utf-8").decode(s)},ja=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),rO=e=>new Promise(function(t,r){if(typeof window>"u"){t({width:0,height:0});return}const s=new Image;s.onload=()=>{t({width:s.width,height:s.height})},s.onerror=n=>{r(n)},s.src=e}),am=6048e5,Ew=864e5,im=6e4,lw=36e5,uw=1e3,kf=Symbol.for("constructDateFrom");function lr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&kf in e?e[kf](t):e instanceof Date?new e.constructor(t):new Date(t)}function or(e,t){return lr(t||e,e)}function Iw(e,t,r){const s=or(e,r?.in);return s.setTime(s.getTime()+t*im),s}const Sw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rw=(e,t,r)=>{let s;const n=Sw[e];return typeof n=="string"?s=n:t===1?s=n.one:s=n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};function HS(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Aw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Cw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ow={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dw={date:HS({formats:Aw,defaultWidth:"full"}),time:HS({formats:Cw,defaultWidth:"full"}),dateTime:HS({formats:Ow,defaultWidth:"full"})},Tw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dw=(e,t,r,s)=>Tw[e];function Fi(e){return(t,r)=>{const s=r?.context?String(r.context):"standalone";let n;if(s==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):a;n=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return n[o]}}const fw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Lw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},mw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yw=(e,t)=>{const r=Number(e),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},gw={ordinalNumber:yw,era:Fi({values:fw,defaultWidth:"wide"}),quarter:Fi({values:Nw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fi({values:pw,defaultWidth:"wide"}),day:Fi({values:Lw,defaultWidth:"wide"}),dayPeriod:Fi({values:hw,defaultWidth:"wide",formattingValues:mw,defaultFormattingWidth:"wide"})};function bi(e){return(t,r={})=>{const s=r.width,n=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],o=t.match(n);if(!o)return null;const a=o[0],i=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(i)?Mw(i,u=>u.test(a)):Pw(i,u=>u.test(a));let _;_=e.valueCallback?e.valueCallback(c):c,_=r.valueCallback?r.valueCallback(_):_;const E=t.slice(a.length);return{value:_,rest:E}}}function Pw(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Mw(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function vw(e){return(t,r={})=>{const s=t.match(e.matchPattern);if(!s)return null;const n=s[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;const i=t.slice(n.length);return{value:a,rest:i}}}const Fw=/^(\d+)(th|st|nd|rd)?/i,bw=/\d+/i,Uw={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Bw={any:[/^b/i,/^(a|c)/i]},Hw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xw={any:[/1/i,/2/i,/3/i,/4/i]},Gw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ww={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$w={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yw={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},jw={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kw={ordinalNumber:vw({matchPattern:Fw,parsePattern:bw,valueCallback:e=>parseInt(e,10)}),era:bi({matchPatterns:Uw,defaultMatchWidth:"wide",parsePatterns:Bw,defaultParseWidth:"any"}),quarter:bi({matchPatterns:Hw,defaultMatchWidth:"wide",parsePatterns:xw,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bi({matchPatterns:Gw,defaultMatchWidth:"wide",parsePatterns:ww,defaultParseWidth:"any"}),day:bi({matchPatterns:$w,defaultMatchWidth:"wide",parsePatterns:Vw,defaultParseWidth:"any"}),dayPeriod:bi({matchPatterns:Yw,defaultMatchWidth:"any",parsePatterns:jw,defaultParseWidth:"any"})},_m={code:"en-US",formatDistance:Rw,formatLong:Dw,formatRelative:dw,localize:gw,match:kw,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Kw={};function Ai(){return Kw}function lE(e){const t=or(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Ww(e,...t){const r=lr.bind(null,t.find(s=>typeof s=="object"));return t.map(r)}function Kf(e,t){const r=or(e,t?.in);return r.setHours(0,0,0,0),r}function Zw(e,t,r){const[s,n]=Ww(r?.in,e,t),o=Kf(s),a=Kf(n),i=+o-lE(o),c=+a-lE(a);return Math.round((i-c)/Ew)}function Xw(e,t){const r=or(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function qw(e,t){const r=or(e,t?.in);return Zw(r,Xw(r))+1}function _o(e,t){const r=Ai(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=or(e,t?.in),o=n.getDay(),a=(o<s?7:0)+o-s;return n.setDate(n.getDate()-a),n.setHours(0,0,0,0),n}function ka(e,t){return _o(e,{...t,weekStartsOn:1})}function cm(e,t){const r=or(e,t?.in),s=r.getFullYear(),n=lr(r,0);n.setFullYear(s+1,0,4),n.setHours(0,0,0,0);const o=ka(n),a=lr(r,0);a.setFullYear(s,0,4),a.setHours(0,0,0,0);const i=ka(a);return r.getTime()>=o.getTime()?s+1:r.getTime()>=i.getTime()?s:s-1}function Qw(e,t){const r=cm(e,t),s=lr(e,0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),ka(s)}function Em(e,t){const r=or(e,t?.in),s=+ka(r)-+Qw(r);return Math.round(s/am)+1}function nO(e,t){const r=or(e,t?.in),s=r.getFullYear(),n=Ai(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=lr(t?.in||e,0);a.setFullYear(s+1,0,o),a.setHours(0,0,0,0);const i=_o(a,t),c=lr(t?.in||e,0);c.setFullYear(s,0,o),c.setHours(0,0,0,0);const _=_o(c,t);return+r>=+i?s+1:+r>=+_?s:s-1}function zw(e,t){const r=Ai(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=nO(e,t),o=lr(t?.in||e,0);return o.setFullYear(n,0,s),o.setHours(0,0,0,0),_o(o,t)}function lm(e,t){const r=or(e,t?.in),s=+_o(r,t)-+zw(r,t);return Math.round(s/am)+1}function gt(e,t){const r=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return r+s}const to={y(e,t){const r=e.getFullYear(),s=r>0?r:1-r;return gt(t==="yy"?s%100:s,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):gt(r+1,2)},d(e,t){return gt(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return gt(e.getHours()%12||12,t.length)},H(e,t){return gt(e.getHours(),t.length)},m(e,t){return gt(e.getMinutes(),t.length)},s(e,t){return gt(e.getSeconds(),t.length)},S(e,t){const r=t.length,s=e.getMilliseconds(),n=Math.trunc(s*Math.pow(10,r-3));return gt(n,t.length)}},Na={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wf={G:function(e,t,r){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(s,{width:"abbreviated"});case"GGGGG":return r.era(s,{width:"narrow"});case"GGGG":default:return r.era(s,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const s=e.getFullYear(),n=s>0?s:1-s;return r.ordinalNumber(n,{unit:"year"})}return to.y(e,t)},Y:function(e,t,r,s){const n=nO(e,s),o=n>0?n:1-n;if(t==="YY"){const a=o%100;return gt(a,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):gt(o,t.length)},R:function(e,t){const r=cm(e);return gt(r,t.length)},u:function(e,t){const r=e.getFullYear();return gt(r,t.length)},Q:function(e,t,r){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return gt(s,2);case"Qo":return r.ordinalNumber(s,{unit:"quarter"});case"QQQ":return r.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,r){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return gt(s,2);case"qo":return r.ordinalNumber(s,{unit:"quarter"});case"qqq":return r.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,r){const s=e.getMonth();switch(t){case"M":case"MM":return to.M(e,t);case"Mo":return r.ordinalNumber(s+1,{unit:"month"});case"MMM":return r.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,r){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return gt(s+1,2);case"Lo":return r.ordinalNumber(s+1,{unit:"month"});case"LLL":return r.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,r,s){const n=lm(e,s);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):gt(n,t.length)},I:function(e,t,r){const s=Em(e);return t==="Io"?r.ordinalNumber(s,{unit:"week"}):gt(s,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):to.d(e,t)},D:function(e,t,r){const s=qw(e);return t==="Do"?r.ordinalNumber(s,{unit:"dayOfYear"}):gt(s,t.length)},E:function(e,t,r){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(s,{width:"short",context:"formatting"});case"EEEE":default:return r.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,r,s){const n=e.getDay(),o=(n-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,s){const n=e.getDay(),o=(n-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){const s=e.getDay(),n=s===0?7:s;switch(t){case"i":return String(n);case"ii":return gt(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(s,{width:"short",context:"formatting"});case"iiii":default:return r.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const s=e.getHours();let n;switch(s===12?n=Na.noon:s===0?n=Na.midnight:n=s/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){const s=e.getHours();let n;switch(s>=17?n=Na.evening:s>=12?n=Na.afternoon:s>=4?n=Na.morning:n=Na.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return to.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):to.H(e,t)},K:function(e,t,r){const s=e.getHours()%12;return t==="Ko"?r.ordinalNumber(s,{unit:"hour"}):gt(s,t.length)},k:function(e,t,r){let s=e.getHours();return s===0&&(s=24),t==="ko"?r.ordinalNumber(s,{unit:"hour"}):gt(s,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):to.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):to.s(e,t)},S:function(e,t){return to.S(e,t)},X:function(e,t,r){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return Xf(s);case"XXXX":case"XX":return Fo(s);case"XXXXX":case"XXX":default:return Fo(s,":")}},x:function(e,t,r){const s=e.getTimezoneOffset();switch(t){case"x":return Xf(s);case"xxxx":case"xx":return Fo(s);case"xxxxx":case"xxx":default:return Fo(s,":")}},O:function(e,t,r){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Zf(s,":");case"OOOO":default:return"GMT"+Fo(s,":")}},z:function(e,t,r){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Zf(s,":");case"zzzz":default:return"GMT"+Fo(s,":")}},t:function(e,t,r){const s=Math.trunc(+e/1e3);return gt(s,t.length)},T:function(e,t,r){return gt(+e,t.length)}};function Zf(e,t=""){const r=e>0?"-":"+",s=Math.abs(e),n=Math.trunc(s/60),o=s%60;return o===0?r+String(n):r+String(n)+t+gt(o,2)}function Xf(e,t){return e%60===0?(e>0?"-":"+")+gt(Math.abs(e)/60,2):Fo(e,t)}function Fo(e,t=""){const r=e>0?"-":"+",s=Math.abs(e),n=gt(Math.trunc(s/60),2),o=gt(s%60,2);return r+n+t+o}const qf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},um=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Jw=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],s=r[1],n=r[2];if(!n)return qf(e,t);let o;switch(s){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",qf(s,t)).replace("{{time}}",um(n,t))},vR={p:um,P:Jw},e4=/^D+$/,t4=/^Y+$/,r4=["D","DD","YY","YYYY"];function Im(e){return e4.test(e)}function Sm(e){return t4.test(e)}function FR(e,t,r){const s=n4(e,t,r);if(console.warn(s),r4.includes(e))throw new RangeError(s)}function n4(e,t,r){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function s4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function o4(e){return!(!s4(e)&&typeof e!="number"||isNaN(+or(e)))}const a4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,i4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_4=/^'([^]*?)'?$/,c4=/''/g,E4=/[a-zA-Z]/;function l4(e,t,r){const s=Ai(),n=s.locale??_m,o=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,a=s.weekStartsOn??s.locale?.options?.weekStartsOn??0,i=or(e,r?.in);if(!o4(i))throw new RangeError("Invalid time value");let c=t.match(i4).map(E=>{const u=E[0];if(u==="p"||u==="P"){const I=vR[u];return I(E,n.formatLong)}return E}).join("").match(a4).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const u=E[0];if(u==="'")return{isToken:!1,value:u4(E)};if(Wf[u])return{isToken:!0,value:E};if(u.match(E4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:E}});n.localize.preprocessor&&(c=n.localize.preprocessor(i,c));const _={firstWeekContainsDate:o,weekStartsOn:a,locale:n};return c.map(E=>{if(!E.isToken)return E.value;const u=E.value;(Sm(u)||Im(u))&&FR(u,t,String(e));const I=Wf[u[0]];return I(i,u,n.localize,_)}).join("")}function u4(e){const t=e.match(_4);return t?t[1].replace(c4,"'"):e}function I4(){return Object.assign({},Ai())}function S4(e,t){const r=R4(t)?new t(0):lr(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function R4(e){return typeof e=="function"&&e.prototype?.constructor===e}const A4=10;class Rm{subPriority=0;validate(t,r){return!0}}class C4 extends Rm{constructor(t,r,s,n,o){super(),this.value=t,this.validateValue=r,this.setValue=s,this.priority=n,o&&(this.subPriority=o)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,s){return this.setValue(t,r,this.value,s)}}class O4 extends Rm{priority=A4;subPriority=-1;constructor(t,r){super(),this.context=t||(s=>lr(r,s))}set(t,r){return r.timestampIsSet?t:lr(t,S4(t,this.context))}}class Nt{run(t,r,s,n){const o=this.parse(t,r,s,n);return o?{setter:new C4(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,r,s){return!0}}class D4 extends Nt{priority=140;parse(t,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"});case"GGGGG":return s.era(t,{width:"narrow"});case"GGGG":default:return s.era(t,{width:"wide"})||s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"})}}set(t,r,s){return r.era=s,t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const er={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ss={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function tr(e,t){return e&&{value:t(e.value),rest:e.rest}}function Zt(e,t){const r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function os(e,t){const r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};const s=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:s*(n*lw+o*im+a*uw),rest:t.slice(r[0].length)}}function Am(e){return Zt(er.anyDigitsSigned,e)}function Qt(e,t){switch(e){case 1:return Zt(er.singleDigit,t);case 2:return Zt(er.twoDigits,t);case 3:return Zt(er.threeDigits,t);case 4:return Zt(er.fourDigits,t);default:return Zt(new RegExp("^\\d{1,"+e+"}"),t)}}function uE(e,t){switch(e){case 1:return Zt(er.singleDigitSigned,t);case 2:return Zt(er.twoDigitsSigned,t);case 3:return Zt(er.threeDigitsSigned,t);case 4:return Zt(er.fourDigitsSigned,t);default:return Zt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function sO(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Cm(e,t){const r=t>0,s=r?t:1-t;let n;if(s<=50)n=e||100;else{const o=s+50,a=Math.trunc(o/100)*100,i=e>=o%100;n=e+a-(i?100:0)}return r?n:1-n}function Om(e){return e%400===0||e%4===0&&e%100!==0}class T4 extends Nt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,s){const n=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return tr(Qt(4,t),n);case"yo":return tr(s.ordinalNumber(t,{unit:"year"}),n);default:return tr(Qt(r.length,t),n)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,s){const n=t.getFullYear();if(s.isTwoDigitYear){const a=Cm(s.year,n);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}const o=!("era"in r)||r.era===1?s.year:1-s.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class d4 extends Nt{priority=130;parse(t,r,s){const n=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return tr(Qt(4,t),n);case"Yo":return tr(s.ordinalNumber(t,{unit:"year"}),n);default:return tr(Qt(r.length,t),n)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,s,n){const o=nO(t,n);if(s.isTwoDigitYear){const i=Cm(s.year,o);return t.setFullYear(i,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),_o(t,n)}const a=!("era"in r)||r.era===1?s.year:1-s.year;return t.setFullYear(a,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),_o(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class f4 extends Nt{priority=130;parse(t,r){return uE(r==="R"?4:r.length,t)}set(t,r,s){const n=lr(t,0);return n.setFullYear(s,0,4),n.setHours(0,0,0,0),ka(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class N4 extends Nt{priority=130;parse(t,r){return uE(r==="u"?4:r.length,t)}set(t,r,s){return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class p4 extends Nt{priority=120;parse(t,r,s){switch(r){case"Q":case"QQ":return Qt(r.length,t);case"Qo":return s.ordinalNumber(t,{unit:"quarter"});case"QQQ":return s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(t,{width:"wide",context:"formatting"})||s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class L4 extends Nt{priority=120;parse(t,r,s){switch(r){case"q":case"qq":return Qt(r.length,t);case"qo":return s.ordinalNumber(t,{unit:"quarter"});case"qqq":return s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(t,{width:"wide",context:"standalone"})||s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class h4 extends Nt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,s){const n=o=>o-1;switch(r){case"M":return tr(Zt(er.month,t),n);case"MM":return tr(Qt(2,t),n);case"Mo":return tr(s.ordinalNumber(t,{unit:"month"}),n);case"MMM":return s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(t,{width:"wide",context:"formatting"})||s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}}class m4 extends Nt{priority=110;parse(t,r,s){const n=o=>o-1;switch(r){case"L":return tr(Zt(er.month,t),n);case"LL":return tr(Qt(2,t),n);case"Lo":return tr(s.ordinalNumber(t,{unit:"month"}),n);case"LLL":return s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(t,{width:"wide",context:"standalone"})||s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function y4(e,t,r){const s=or(e,r?.in),n=lm(s,r)-t;return s.setDate(s.getDate()-n*7),or(s,r?.in)}class g4 extends Nt{priority=100;parse(t,r,s){switch(r){case"w":return Zt(er.week,t);case"wo":return s.ordinalNumber(t,{unit:"week"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,s,n){return _o(y4(t,s,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function P4(e,t,r){const s=or(e,r?.in),n=Em(s,r)-t;return s.setDate(s.getDate()-n*7),s}class M4 extends Nt{priority=100;parse(t,r,s){switch(r){case"I":return Zt(er.week,t);case"Io":return s.ordinalNumber(t,{unit:"week"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,s){return ka(P4(t,s))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const v4=[31,28,31,30,31,30,31,31,30,31,30,31],F4=[31,29,31,30,31,30,31,31,30,31,30,31];class b4 extends Nt{priority=90;subPriority=1;parse(t,r,s){switch(r){case"d":return Zt(er.date,t);case"do":return s.ordinalNumber(t,{unit:"date"});default:return Qt(r.length,t)}}validate(t,r){const s=t.getFullYear(),n=Om(s),o=t.getMonth();return n?r>=1&&r<=F4[o]:r>=1&&r<=v4[o]}set(t,r,s){return t.setDate(s),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class U4 extends Nt{priority=90;subpriority=1;parse(t,r,s){switch(r){case"D":case"DD":return Zt(er.dayOfYear,t);case"Do":return s.ordinalNumber(t,{unit:"date"});default:return Qt(r.length,t)}}validate(t,r){const s=t.getFullYear();return Om(s)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,s){return t.setMonth(0,s),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Dm(e,t,r){const s=or(e,r?.in);return isNaN(t)?lr(r?.in||e,NaN):(t&&s.setDate(s.getDate()+t),s)}function oO(e,t,r){const s=Ai(),n=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,o=or(e,r?.in),a=o.getDay(),c=(t%7+7)%7,_=7-n,E=t<0||t>6?t-(a+_)%7:(c+_)%7-(a+_)%7;return Dm(o,E,r)}class B4 extends Nt{priority=90;parse(t,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,s,n){return t=oO(t,s,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class H4 extends Nt{priority=90;parse(t,r,s,n){const o=a=>{const i=Math.floor((a-1)/7)*7;return(a+n.weekStartsOn+6)%7+i};switch(r){case"e":case"ee":return tr(Qt(r.length,t),o);case"eo":return tr(s.ordinalNumber(t,{unit:"day"}),o);case"eee":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeeee":return s.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,s,n){return t=oO(t,s,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class x4 extends Nt{priority=90;parse(t,r,s,n){const o=a=>{const i=Math.floor((a-1)/7)*7;return(a+n.weekStartsOn+6)%7+i};switch(r){case"c":case"cc":return tr(Qt(r.length,t),o);case"co":return tr(s.ordinalNumber(t,{unit:"day"}),o);case"ccc":return s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"ccccc":return s.day(t,{width:"narrow",context:"standalone"});case"cccccc":return s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(t,{width:"wide",context:"standalone"})||s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,s,n){return t=oO(t,s,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function G4(e,t){const r=or(e,t?.in).getDay();return r===0?7:r}function w4(e,t,r){const s=or(e,r?.in),n=G4(s,r),o=t-n;return Dm(s,o,r)}class $4 extends Nt{priority=90;parse(t,r,s){const n=o=>o===0?7:o;switch(r){case"i":case"ii":return Qt(r.length,t);case"io":return s.ordinalNumber(t,{unit:"day"});case"iii":return tr(s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return tr(s.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return tr(s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),n);case"iiii":default:return tr(s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,r){return r>=1&&r<=7}set(t,r,s){return t=w4(t,s),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class V4 extends Nt{priority=80;parse(t,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,s){return t.setHours(sO(s),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class Y4 extends Nt{priority=80;parse(t,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,s){return t.setHours(sO(s),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class j4 extends Nt{priority=80;parse(t,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,s){return t.setHours(sO(s),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class k4 extends Nt{priority=70;parse(t,r,s){switch(r){case"h":return Zt(er.hour12h,t);case"ho":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,s){const n=t.getHours()>=12;return n&&s<12?t.setHours(s+12,0,0,0):!n&&s===12?t.setHours(0,0,0,0):t.setHours(s,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class K4 extends Nt{priority=70;parse(t,r,s){switch(r){case"H":return Zt(er.hour23h,t);case"Ho":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,s){return t.setHours(s,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class W4 extends Nt{priority=70;parse(t,r,s){switch(r){case"K":return Zt(er.hour11h,t);case"Ko":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,s){return t.getHours()>=12&&s<12?t.setHours(s+12,0,0,0):t.setHours(s,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class Z4 extends Nt{priority=70;parse(t,r,s){switch(r){case"k":return Zt(er.hour24h,t);case"ko":return s.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,s){const n=s<=24?s%24:s;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class X4 extends Nt{priority=60;parse(t,r,s){switch(r){case"m":return Zt(er.minute,t);case"mo":return s.ordinalNumber(t,{unit:"minute"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,s){return t.setMinutes(s,0,0),t}incompatibleTokens=["t","T"]}class q4 extends Nt{priority=50;parse(t,r,s){switch(r){case"s":return Zt(er.second,t);case"so":return s.ordinalNumber(t,{unit:"second"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,s){return t.setSeconds(s,0),t}incompatibleTokens=["t","T"]}class Q4 extends Nt{priority=30;parse(t,r){const s=n=>Math.trunc(n*Math.pow(10,-r.length+3));return tr(Qt(r.length,t),s)}set(t,r,s){return t.setMilliseconds(s),t}incompatibleTokens=["t","T"]}class z4 extends Nt{priority=10;parse(t,r){switch(r){case"X":return os(ss.basicOptionalMinutes,t);case"XX":return os(ss.basic,t);case"XXXX":return os(ss.basicOptionalSeconds,t);case"XXXXX":return os(ss.extendedOptionalSeconds,t);case"XXX":default:return os(ss.extended,t)}}set(t,r,s){return r.timestampIsSet?t:lr(t,t.getTime()-lE(t)-s)}incompatibleTokens=["t","T","x"]}class J4 extends Nt{priority=10;parse(t,r){switch(r){case"x":return os(ss.basicOptionalMinutes,t);case"xx":return os(ss.basic,t);case"xxxx":return os(ss.basicOptionalSeconds,t);case"xxxxx":return os(ss.extendedOptionalSeconds,t);case"xxx":default:return os(ss.extended,t)}}set(t,r,s){return r.timestampIsSet?t:lr(t,t.getTime()-lE(t)-s)}incompatibleTokens=["t","T","X"]}class e3 extends Nt{priority=40;parse(t){return Am(t)}set(t,r,s){return[lr(t,s*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class t3 extends Nt{priority=20;parse(t){return Am(t)}set(t,r,s){return[lr(t,s),{timestampIsSet:!0}]}incompatibleTokens="*"}const r3={G:new D4,y:new T4,Y:new d4,R:new f4,u:new N4,Q:new p4,q:new L4,M:new h4,L:new m4,w:new g4,I:new M4,d:new b4,D:new U4,E:new B4,e:new H4,c:new x4,i:new $4,a:new V4,b:new Y4,B:new j4,h:new k4,H:new K4,K:new W4,k:new Z4,m:new X4,s:new q4,S:new Q4,X:new z4,x:new J4,t:new e3,T:new t3},n3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,s3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,o3=/^'([^]*?)'?$/,a3=/''/g,i3=/\S/,_3=/[a-zA-Z]/;function c3(e,t,r,s){const n=()=>lr(r,NaN),o=I4(),a=o.locale??_m,i=o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=o.weekStartsOn??o.locale?.options?.weekStartsOn??0,_={firstWeekContainsDate:i,weekStartsOn:c,locale:a},E=[new O4(s?.in,r)],u=t.match(s3).map(T=>{const f=T[0];if(f in vR){const N=vR[f];return N(T,a.formatLong)}return T}).join("").match(n3),I=[];for(let T of u){Sm(T)&&FR(T,t,e),Im(T)&&FR(T,t,e);const f=T[0],N=r3[f];if(N){const{incompatibleTokens:L}=N;if(Array.isArray(L)){const m=I.find(g=>L.includes(g.token)||g.token===f);if(m)throw new RangeError(`The format string mustn't contain \`${m.fullToken}\` and \`${T}\` at the same time`)}else if(N.incompatibleTokens==="*"&&I.length>0)throw new RangeError(`The format string mustn't contain \`${T}\` and any other token at the same time`);I.push({token:f,fullToken:T});const d=N.run(e,T,a.match,_);if(!d)return n();E.push(d.setter),e=d.rest}else{if(f.match(_3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");if(T==="''"?T="'":f==="'"&&(T=E3(T)),e.indexOf(T)===0)e=e.slice(T.length);else return n()}}if(e.length>0&&i3.test(e))return n();const S=E.map(T=>T.priority).sort((T,f)=>f-T).filter((T,f,N)=>N.indexOf(T)===f).map(T=>E.filter(f=>f.priority===T).sort((f,N)=>N.subPriority-f.subPriority)).map(T=>T[0]);let R=or(r,s?.in);if(isNaN(+R))return n();const O={};for(const T of S){if(!T.validate(R,_))return n();const f=T.set(R,O,_);Array.isArray(f)?(R=f[0],Object.assign(O,f[1])):R=f}return R}function E3(e){return e.match(o3)[1].replace(a3,"'")}const bR=e=>{const t=c3(e,"yyMMddHHmmssX",new Date),r=new Date().getTimezoneOffset(),s=Iw(t,-r),n=-r/60,o=`GMT${n>=0?"+":""}${n}`;return l4(s,`dd/MM/yyyy HH:mm:ss '${o}'`)},Tm=e=>{let t=V.WAS_NOT_DONE;for(const r of e){if(r===V.ERROR)return V.ERROR;t===V.WAS_NOT_DONE&&r===V.OK&&(t=V.OK)}return t};var l3=Object.defineProperty,dm=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&l3(t,r,n),n};class Qs{light;rect}dm([p(),v(Pt)],Qs.prototype,"light");dm([D(),K(()=>jt),j({each:!0})],Qs.prototype,"rect");var u3=Object.defineProperty,Pl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&u3(t,r,n),n};const fm=[ce.MRZ_TEXT,ce.VISUAL_TEXT,ce.BARCODE_TEXT];class Ci{type;reference;result;location}Pl([D(),v(ce),ct(fm)],Ci.prototype,"type");Pl([D(),ae()],Ci.prototype,"reference");Pl([D(),ae()],Ci.prototype,"result");Pl([D(),j(),K(()=>Qs)],Ci.prototype,"location");class W_{checkType;checkResult}var Nm=Object.defineProperty,I3=Object.getOwnPropertyDescriptor,S3=(e,t,r)=>t in e?Nm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oo=(e,t,r,s)=>{for(var n=s>1?void 0:s?I3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Nm(t,r,n),n},pm=(e,t,r)=>S3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityFibersCheck=class extends W_{checkType;location;diagnose;checkResult;colorValues;rectCount;expectedCount};pm(exports.RAuthenticityFibersCheck,"fromPlain",e=>Zo(exports.RAuthenticityFibersCheck,e));pm(exports.RAuthenticityFibersCheck,"isBelongs",e=>{const t=e;return p_.includes(t?.checkType)});Oo([D(),ct(p_)],exports.RAuthenticityFibersCheck.prototype,"checkType",2);Oo([p(),j(),K(()=>Qs)],exports.RAuthenticityFibersCheck.prototype,"location",2);Oo([D(),v(ne)],exports.RAuthenticityFibersCheck.prototype,"diagnose",2);Oo([D(),v(V)],exports.RAuthenticityFibersCheck.prototype,"checkResult",2);Oo([D(),$({each:!0})],exports.RAuthenticityFibersCheck.prototype,"colorValues",2);Oo([D(),$()],exports.RAuthenticityFibersCheck.prototype,"rectCount",2);Oo([D(),$()],exports.RAuthenticityFibersCheck.prototype,"expectedCount",2);exports.RAuthenticityFibersCheck=Oo([Xe()],exports.RAuthenticityFibersCheck);var Lm=Object.defineProperty,R3=Object.getOwnPropertyDescriptor,A3=(e,t,r)=>t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zs=(e,t,r,s)=>{for(var n=s>1?void 0:s?R3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Lm(t,r,n),n},hm=(e,t,r)=>A3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityIdentCheck=class extends W_{checkType;location;similarity;type;image;referenceImage;diagnose;checkResult};hm(exports.RAuthenticityIdentCheck,"fromPlain",e=>Zo(exports.RAuthenticityIdentCheck,e));hm(exports.RAuthenticityIdentCheck,"isBelongs",e=>{const t=e;return L_.includes(t?.checkType)});zs([D(),ct(L_)],exports.RAuthenticityIdentCheck.prototype,"checkType",2);zs([p(),j(),K(()=>Qs)],exports.RAuthenticityIdentCheck.prototype,"location",2);zs([D(),He()],exports.RAuthenticityIdentCheck.prototype,"similarity",2);zs([D(),v(De)],exports.RAuthenticityIdentCheck.prototype,"type",2);zs([D(),ae()],exports.RAuthenticityIdentCheck.prototype,"image",2);zs([D(),ae()],exports.RAuthenticityIdentCheck.prototype,"referenceImage",2);zs([D(),v(ne)],exports.RAuthenticityIdentCheck.prototype,"diagnose",2);zs([D(),v(V)],exports.RAuthenticityIdentCheck.prototype,"checkResult",2);exports.RAuthenticityIdentCheck=zs([Xe()],exports.RAuthenticityIdentCheck);var mm=Object.defineProperty,C3=Object.getOwnPropertyDescriptor,O3=(e,t,r)=>t in e?mm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oi=(e,t,r,s)=>{for(var n=s>1?void 0:s?C3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&mm(t,r,n),n},ym=(e,t,r)=>O3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityPhotoIdentCheck=class extends W_{checkType;location;image;diagnose;checkResult};ym(exports.RAuthenticityPhotoIdentCheck,"fromPlain",e=>Zo(exports.RAuthenticityPhotoIdentCheck,e));ym(exports.RAuthenticityPhotoIdentCheck,"isBelongs",e=>{const t=e;return m_.includes(t?.checkType)});Oi([D(),ct(m_)],exports.RAuthenticityPhotoIdentCheck.prototype,"checkType",2);Oi([p(),j(),K(()=>Qs)],exports.RAuthenticityPhotoIdentCheck.prototype,"location",2);Oi([D(),ae()],exports.RAuthenticityPhotoIdentCheck.prototype,"image",2);Oi([D(),v(ne)],exports.RAuthenticityPhotoIdentCheck.prototype,"diagnose",2);Oi([D(),v(V)],exports.RAuthenticityPhotoIdentCheck.prototype,"checkResult",2);exports.RAuthenticityPhotoIdentCheck=Oi([Xe()],exports.RAuthenticityPhotoIdentCheck);var gm=Object.defineProperty,D3=Object.getOwnPropertyDescriptor,T3=(e,t,r)=>t in e?gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Di=(e,t,r,s)=>{for(var n=s>1?void 0:s?D3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&gm(t,r,n),n},Pm=(e,t,r)=>T3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticitySecurityCheck=class extends W_{checkType;location;feature;diagnose;checkResult};Pm(exports.RAuthenticitySecurityCheck,"fromPlain",e=>Zo(exports.RAuthenticitySecurityCheck,e));Pm(exports.RAuthenticitySecurityCheck,"isBelongs",e=>{const t=e;return y_.includes(t?.checkType)});Di([D(),ct(y_)],exports.RAuthenticitySecurityCheck.prototype,"checkType",2);Di([p(),j(),K(()=>Qs)],exports.RAuthenticitySecurityCheck.prototype,"location",2);Di([D(),v(De)],exports.RAuthenticitySecurityCheck.prototype,"feature",2);Di([D(),v(ne)],exports.RAuthenticitySecurityCheck.prototype,"diagnose",2);Di([D(),v(V)],exports.RAuthenticitySecurityCheck.prototype,"checkResult",2);exports.RAuthenticitySecurityCheck=Di([Xe()],exports.RAuthenticitySecurityCheck);var Mm=Object.defineProperty,d3=Object.getOwnPropertyDescriptor,f3=(e,t,r)=>t in e?Mm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ua=(e,t,r,s)=>{for(var n=s>1?void 0:s?d3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Mm(t,r,n),n},vm=(e,t,r)=>f3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityTextCheck=class extends W_{reference;checkType;location;checkResult;type;diagnose};vm(exports.RAuthenticityTextCheck,"fromPlain",e=>Zo(exports.RAuthenticityTextCheck,e));vm(exports.RAuthenticityTextCheck,"isBelongs",e=>{const t=e;return h_.includes(t?.checkType)});ua([D(),j(),K(()=>Ci)],exports.RAuthenticityTextCheck.prototype,"reference",2);ua([D(),ct(h_)],exports.RAuthenticityTextCheck.prototype,"checkType",2);ua([D(),j(),K(()=>Qs)],exports.RAuthenticityTextCheck.prototype,"location",2);ua([D(),v(V)],exports.RAuthenticityTextCheck.prototype,"checkResult",2);ua([D(),v(A)],exports.RAuthenticityTextCheck.prototype,"type",2);ua([D(),v(ne)],exports.RAuthenticityTextCheck.prototype,"diagnose",2);exports.RAuthenticityTextCheck=ua([Xe()],exports.RAuthenticityTextCheck);const Fm=e=>{const t=[];return e.forEach(r=>{if(!ja(r)||!("checkType"in r))return;const{checkType:s}=r;switch(s){case J.UV_FIBERS:t.push(exports.RAuthenticityFibersCheck.fromPlain(r));break;case J.IMAGE_PATTERN:case J.IR_VISIBILITY:case J.OVI:case J.PORTRAIT_COMPARISON:case J.KINEGRAM:case J.LETTER_SCREEN:case J.HOLOGRAM_DETECTION:case J.FINGERPRINT_COMPARISON:case J.LIVENESS:t.push(exports.RAuthenticityIdentCheck.fromPlain(r));break;case J.OCR_SECURITY_TEXT:case J.ENCRYPTED_IPI:t.push(exports.RAuthenticityTextCheck.fromPlain(r));break;case J.IPI:t.push(exports.RAuthenticityPhotoIdentCheck.fromPlain(r));break;case J.UV_LUMINESCENCE:case J.IR_B900:case J.AXIAL_PROTECTION:case J.PHOTO_EMBED_TYPE:case J.HOLOGRAMS:case J.PHOTO_AREA:case J.BARCODE_FORMAT_CHECK:case J.EXTENDED_OCR_CHECK:case J.EXTENDED_MRZ_CHECK:t.push(exports.RAuthenticitySecurityCheck.fromPlain(r));break}}),t};var bm=Object.defineProperty,N3=Object.getOwnPropertyDescriptor,p3=(e,t,r)=>t in e?bm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ml=(e,t,r,s)=>{for(var n=s>1?void 0:s?N3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&bm(t,r,n),n},L3=(e,t,r)=>p3(e,t+"",r);exports.RAuthenticityCheckGroup=class{group;checkResult;checks};L3(exports.RAuthenticityCheckGroup,"fromPlain",e=>Zo(exports.RAuthenticityCheckGroup,e));Ml([D(),v(J)],exports.RAuthenticityCheckGroup.prototype,"group",2);Ml([D(),v(V)],exports.RAuthenticityCheckGroup.prototype,"checkResult",2);Ml([j({each:!0}),co(({obj:e})=>Fm(e.checks),{toClassOnly:!0}),Ve()],exports.RAuthenticityCheckGroup.prototype,"checks",2);exports.RAuthenticityCheckGroup=Ml([Xe()],exports.RAuthenticityCheckGroup);var Um=Object.defineProperty,h3=Object.getOwnPropertyDescriptor,m3=(e,t,r)=>t in e?Um(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vl=(e,t,r,s)=>{for(var n=s>1?void 0:s?h3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Um(t,r,n),n},Bm=(e,t,r)=>m3(e,typeof t!="symbol"?t+"":t,r);exports.RAuthenticityCheckGroupsItem=class{page;checkResult;groups};Bm(exports.RAuthenticityCheckGroupsItem,"fromPlain",e=>nt(exports.RAuthenticityCheckGroupsItem,e));Bm(exports.RAuthenticityCheckGroupsItem,"getValidationErrors",e=>_t(e));vl([D(),$()],exports.RAuthenticityCheckGroupsItem.prototype,"page",2);vl([D(),v(V)],exports.RAuthenticityCheckGroupsItem.prototype,"checkResult",2);vl([D(),j({each:!0}),K(()=>exports.RAuthenticityCheckGroup)],exports.RAuthenticityCheckGroupsItem.prototype,"groups",2);exports.RAuthenticityCheckGroupsItem=vl([Xe()],exports.RAuthenticityCheckGroupsItem);const Qf=[De.PORTRAIT_COMPARISON_VS_CAMERA,De.PORTRAIT_COMPARISON_RFID_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_VISUAL,De.PORTRAIT_COMPARISON_EXT_VS_RFID,De.PORTRAIT_COMPARISON_EXT_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_BARCODE,De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA],Hm=e=>{const t=exports.AuthenticityCheckListContainer.fromProcessResponse(e),r=[];return t.forEach(s=>{const n=s.AuthenticityCheckList.List,o=exports.RAuthenticityCheckGroupsItem.fromPlain({checkResult:V.WAS_NOT_DONE,page:s.page_idx??0,groups:[]});n.forEach(i=>{if(exports.AuthenticityFibersTypeCheckResult.isBelongs(i)&&i.List.forEach(c=>{let _=o.groups.findIndex(E=>E.group===c.Type);_===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:c.Type,checkResult:i.Result,checks:[]})),_=o.groups.length-1),o.groups[_].checks.push(exports.RAuthenticityFibersCheck.fromPlain({colorValues:c.ColorValues,rectCount:c.RectCount,expectedCount:c.ExpectedCount,checkType:c.Type,location:{light:void 0,rect:c.RectArray},diagnose:c.ElementDiagnose??ne.UNKNOWN,checkResult:c.ElementResult??V.WAS_NOT_DONE}))}),exports.AuthenticityIdentCheckResult.isBelongs(i)&&i.List.forEach(c=>{const _=c.LightIndex;if(Qf.includes(c.ElementType))return;let E=o.groups.findIndex(u=>u.group===c.Type);E===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:c.Type,checkResult:i.Result,checks:[]})),E=o.groups.length-1),o.groups[E].checks.push(exports.RAuthenticityIdentCheck.fromPlain({checkType:c.Type,checkResult:c.ElementResult??V.WAS_NOT_DONE,diagnose:c.ElementDiagnose??ne.UNKNOWN,image:c.Image.image,referenceImage:c.EtalonImage.image,similarity:c.PercentValue??0,type:c.ElementType,location:{light:_,rect:c.Area?[c.Area]:[]}}))}),exports.AuthenticityOCRSecurityTextCheckResult.isBelongs(i)){let c=o.groups.findIndex(_=>_.group===i.Type);i.List.forEach(_=>{c===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:_.Type,checkResult:i.Result,checks:[]})),c=o.groups.length-1),o.groups[c].checks.push(exports.RAuthenticityTextCheck.fromPlain({reference:{type:_.EtalonResultType,reference:_.EtalonResultOCR,result:_.SecurityTextResultOCR,location:{light:_.EtalonLightType,rect:_.EtalonFieldRect?[_.EtalonFieldRect]:[]}},checkType:_.Type,checkResult:_.ElementResult??V.WAS_NOT_DONE,type:_.EtalonFieldType,diagnose:_.ElementDiagnose??ne.UNKNOWN,location:{light:_.LightType,rect:_.FieldRect?[_.FieldRect]:[]}}))}),i.List?.length||o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:i.Type,checkResult:i.Result,checks:[]}))}if(exports.AuthenticityPhotoIdentCheckResult.isBelongs(i)&&i.List.forEach(c=>{const _=c.LightIndex;if(c.ResultImages?.Images?.length){let E=o.groups.findIndex(u=>u.group===c.Type);E===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:c.Type,checkResult:i.Result,checks:[]})),E=o.groups.length-1),o.groups[E].checks.push(exports.RAuthenticityPhotoIdentCheck.fromPlain({checkType:c.Type,checkResult:c.ElementResult??V.WAS_NOT_DONE,diagnose:c.ElementDiagnose??ne.UNKNOWN,image:c.ResultImages.Images[0].image,location:_===Pt.OFF?void 0:{light:_,rect:c.Area?[c.Area]:[]}}))}}),exports.AuthenticitySecurityFeatureCheckResult.isBelongs(i)){let c=o.groups.findIndex(_=>_.group===i.Type);i.List.forEach(_=>{Qf.includes(_.ElementType)||(c===-1&&(o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:_.Type,checkResult:i.Result,checks:[]})),c=o.groups.length-1),o.groups[c].checks.push(exports.RAuthenticitySecurityCheck.fromPlain({checkType:_.Type,checkResult:_.ElementResult??V.WAS_NOT_DONE,diagnose:_.ElementDiagnose??ne.UNKNOWN,feature:_.ElementType??De.BLANK,location:{light:void 0,rect:_.ElementRect?[_.ElementRect]:[]}})))}),i.List?.length||o.groups.push(exports.RAuthenticityCheckGroup.fromPlain({group:i.Type,checkResult:i.Result,checks:[]}))}}),o.groups.forEach(i=>i.checks.sort((c,_)=>c.checkResult-_.checkResult));const a=o.groups.map(({checkResult:i})=>i);o.checkResult=Tm(a),o.groups.sort((i,c)=>i.checkResult-c.checkResult),r.push(o)}),r.sort((s,n)=>s.page-n.page)};var xt=(e=>(e[e.PORTRAIT=1]="PORTRAIT",e[e.CAMERA=2]="CAMERA",e[e.RFID=3]="RFID",e[e.VISUAL=4]="VISUAL",e[e.EXTERNAL=5]="EXTERNAL",e[e.BARCODE=6]="BARCODE",e))(xt||{}),xm=Object.defineProperty,y3=Object.getOwnPropertyDescriptor,g3=(e,t,r)=>t in e?xm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z_=(e,t,r,s)=>{for(var n=s>1?void 0:s?y3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&xm(t,r,n),n},P3=(e,t,r)=>g3(e,t+"",r);exports.RPortraitComparisonComparable=class{source;checkResult;similarity;image};P3(exports.RPortraitComparisonComparable,"fromPlain",e=>nt(exports.RPortraitComparisonComparable,e));Z_([D(),v(xt)],exports.RPortraitComparisonComparable.prototype,"source",2);Z_([D(),v(V)],exports.RPortraitComparisonComparable.prototype,"checkResult",2);Z_([D(),He()],exports.RPortraitComparisonComparable.prototype,"similarity",2);Z_([D(),ae()],exports.RPortraitComparisonComparable.prototype,"image",2);exports.RPortraitComparisonComparable=Z_([Xe()],exports.RPortraitComparisonComparable);var Gm=Object.defineProperty,M3=Object.getOwnPropertyDescriptor,v3=(e,t,r)=>t in e?Gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X_=(e,t,r,s)=>{for(var n=s>1?void 0:s?M3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Gm(t,r,n),n},F3=(e,t,r)=>v3(e,t+"",r);exports.RPortraitsComparison=class{image;source;comparable;diagnose};F3(exports.RPortraitsComparison,"fromPlain",e=>Zo(exports.RPortraitsComparison,e));X_([D(),ae()],exports.RPortraitsComparison.prototype,"image",2);X_([D(),v(xt)],exports.RPortraitsComparison.prototype,"source",2);X_([D(),j({each:!0}),K(()=>exports.RPortraitComparisonComparable)],exports.RPortraitsComparison.prototype,"comparable",2);X_([D(),v(ne)],exports.RPortraitsComparison.prototype,"diagnose",2);exports.RPortraitsComparison=X_([Xe()],exports.RPortraitsComparison);const wm=e=>{const t=exports.AuthenticityCheckListContainer.fromProcessResponse(e),r=[];return t.forEach(s=>{s.AuthenticityCheckList.List.forEach(o=>{if(exports.AuthenticityIdentCheckResult.isBelongs(o)){if(o.Type!==J.PORTRAIT_COMPARISON)return;o.List.forEach(a=>{if(![De.PORTRAIT_COMPARISON_VS_CAMERA,De.PORTRAIT_COMPARISON_RFID_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_VISUAL,De.PORTRAIT_COMPARISON_EXT_VS_RFID,De.PORTRAIT_COMPARISON_EXT_VS_CAMERA,De.PORTRAIT_COMPARISON_EXT_VS_BARCODE,De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(a.ElementType))return;let i=xt.PORTRAIT,c=xt.CAMERA;switch(a.ElementType){case De.PORTRAIT_COMPARISON_VS_CAMERA:i=xt.PORTRAIT,c=xt.CAMERA;break;case De.PORTRAIT_COMPARISON_RFID_VS_CAMERA:i=xt.RFID,c=xt.CAMERA;break;case De.PORTRAIT_COMPARISON_EXT_VS_VISUAL:i=xt.EXTERNAL,c=xt.VISUAL;break;case De.PORTRAIT_COMPARISON_EXT_VS_RFID:i=xt.EXTERNAL,c=xt.RFID;break;case De.PORTRAIT_COMPARISON_EXT_VS_CAMERA:i=xt.EXTERNAL,c=xt.CAMERA;break;case De.PORTRAIT_COMPARISON_EXT_VS_BARCODE:i=xt.EXTERNAL,c=xt.BARCODE;break;case De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA:i=xt.BARCODE,c=xt.CAMERA;break}const _=[De.PORTRAIT_COMPARISON_VS_CAMERA,De.PORTRAIT_COMPARISON_RFID_VS_CAMERA,De.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(a.ElementType);let E=r.findIndex(u=>_?u.source===c:u.source===i);E===-1&&(r.push(exports.RPortraitsComparison.fromPlain({diagnose:a.ElementDiagnose,source:_?c:i,comparable:[],image:_?a.Image.image:a.EtalonImage.image})),E=r.length-1),r[E].comparable.push(exports.RPortraitComparisonComparable.fromPlain({source:_?i:c,checkResult:a.ElementResult,similarity:a.PercentValue,image:_?a.EtalonImage.image:a.Image.image}))})}})}),r};var b3=Object.defineProperty,aO=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&b3(t,r,n),n};class Ti{length;type;data}aO([D(),He()],Ti.prototype,"length");aO([D(),v(xE)],Ti.prototype,"type");aO([D(),ae()],Ti.prototype,"data");var U3=Object.defineProperty,Fl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&U3(t,r,n),n};class Ia{fieldIndex;type;resultCode;modulesData}Fl([D(),He()],Ia.prototype,"fieldIndex");Fl([D(),v(f_)],Ia.prototype,"type");Fl([D(),v(kE)],Ia.prototype,"resultCode");Fl([D(),K(()=>Ti),j({each:!0})],Ia.prototype,"modulesData");var $m=Object.defineProperty,B3=Object.getOwnPropertyDescriptor,H3=(e,t,r)=>t in e?$m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iO=(e,t,r,s)=>{for(var n=s>1?void 0:s?B3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&$m(t,r,n),n},_O=(e,t,r)=>H3(e,typeof t!="symbol"?t+"":t,r);exports.RDocumentBarcode=class{pageIndex;fields};_O(exports.RDocumentBarcode,"fromPlain",e=>nt(exports.RDocumentBarcode,e));_O(exports.RDocumentBarcode,"getValidationErrors",e=>_t(e));_O(exports.RDocumentBarcode,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RDocumentBarcode.getValidationErrors(r).length===0));iO([D(),He()],exports.RDocumentBarcode.prototype,"pageIndex",2);iO([D(),K(()=>Ia),j({each:!0})],exports.RDocumentBarcode.prototype,"fields",2);exports.RDocumentBarcode=iO([Xe()],exports.RDocumentBarcode);const x3=e=>{const t=[];return exports.DocBarCodeInfoContainer.fromProcessResponse(e).forEach(s=>{if(!s.DocBarCodeInfo?.pArrayFields?.length)return;const n=new exports.RDocumentBarcode;n.pageIndex=s.page_idx??0,n.fields=[],s.DocBarCodeInfo.pArrayFields.map((o,a)=>{const i=new Ia;i.fieldIndex=a,i.resultCode=o.bcCodeResult??kE.NO_ERR,i.type=o.bcType_DECODE??f_.UNKNOWN,i.modulesData=[],o.bcDataModule?.map(c=>{if(typeof c.mLength>"u"||typeof c.mType>"u"||typeof c.mData>"u")return;const _=new Ti;_.data=c.mData,_.length=c.mLength,_.type=c.mType,i.modulesData.push(_)}),n.fields.push(i)}),t.push(n)}),t.filter(s=>!!s.fields.length)};var G3=Object.defineProperty,q_=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&G3(t,r,n),n};class Js{pageIndex;src;width;height;source}q_([D(),$()],Js.prototype,"pageIndex");q_([p(),ae()],Js.prototype,"src");q_([D(),$()],Js.prototype,"width");q_([D(),$()],Js.prototype,"height");q_([D(),v(Gt)],Js.prototype,"source");var Vm=Object.defineProperty,w3=Object.getOwnPropertyDescriptor,$3=(e,t,r)=>t in e?Vm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q_=(e,t,r,s)=>{for(var n=s>1?void 0:s?w3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Vm(t,r,n),n},cO=(e,t,r)=>$3(e,typeof t!="symbol"?t+"":t,r);exports.RDocumentImage=class{light;fieldType;name;pages};cO(exports.RDocumentImage,"fromPlain",e=>nt(exports.RDocumentImage,e));cO(exports.RDocumentImage,"getValidationErrors",e=>_t(e));cO(exports.RDocumentImage,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>!exports.RDocumentImage.getValidationErrors(r).length));Q_([D(),v(Pt)],exports.RDocumentImage.prototype,"light",2);Q_([D(),v(At)],exports.RDocumentImage.prototype,"fieldType",2);Q_([D(),ae()],exports.RDocumentImage.prototype,"name",2);Q_([D(),K(()=>Js),j({each:!0})],exports.RDocumentImage.prototype,"pages",2);exports.RDocumentImage=Q_([Xe()],exports.RDocumentImage);const V3=async(e,t,r)=>{const s=[],n=exports.ImagesResultContainer.fromProcessResponse(e);if(!n.length)return s;const o=uo.fromContainers(n,t);for(let a=0;a<o.length;a++){const i=o[a],{fieldName:c}=i;for(let _=0;_<i.valueList.length;_++){const E=i.valueList[_],{lightIndex:u,pageIndex:I,value:S,containerType:R}=E;if(r&&!r.includes(R))continue;let O=s.findIndex(L=>L.light===u&&L.fieldType===i.fieldType);if(O<0){const L=new exports.RDocumentImage;L.name=c,L.fieldType=i.fieldType,L.light=u,L.pages=[],O=s.push(L)-1}const T=S?`data:image/jpeg;base64,${S}`:void 0;let f={width:0,height:0};T&&(f=await rO(T));const N=new Js;N.pageIndex=I,N.src=T,N.width=f.width,N.height=f.height,N.source=E.source,s[O].pages.push(N)}}return s},bl=(e,t,r)=>{const s=[],n=exports.ImagesResultContainer.fromProcessResponse(e);if(!n.length)return s;const o=uo.fromContainers(n,t);for(let a=0;a<o.length;a++){const i=o[a],{fieldName:c}=i;for(let _=0;_<i.valueList.length;_++){const E=i.valueList[_],{lightIndex:u,pageIndex:I,value:S,containerType:R}=E;if(r&&!r.includes(R))continue;let O=s.findIndex(N=>N.light===u&&N.fieldType===i.fieldType);if(O<0){const N=new exports.RDocumentImage;N.name=c,N.fieldType=i.fieldType,N.light=u,N.pages=[],O=s.push(N)-1}const T=S?`data:image/jpeg;base64,${S}`:void 0,f=new Js;f.pageIndex=I,f.src=T,f.width=0,f.height=0,f.source=E.source,s[O].pages.push(f)}}return s};var Ym=Object.defineProperty,Y3=Object.getOwnPropertyDescriptor,j3=(e,t,r)=>t in e?Ym(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ul=(e,t,r,s)=>{for(var n=s>1?void 0:s?Y3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Ym(t,r,n),n},EO=(e,t,r)=>j3(e,typeof t!="symbol"?t+"":t,r);exports.RGraphicField=class{src;width;height};EO(exports.RGraphicField,"fromPlain",e=>nt(exports.RGraphicField,e));EO(exports.RGraphicField,"getValidationErrors",e=>_t(e));EO(exports.RGraphicField,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RGraphicField.getValidationErrors(r).length===0));Ul([D(),ae()],exports.RGraphicField.prototype,"src",2);Ul([D(),$()],exports.RGraphicField.prototype,"width",2);Ul([D(),$()],exports.RGraphicField.prototype,"height",2);exports.RGraphicField=Ul([Xe()],exports.RGraphicField);const jm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAoMBgDTD2qgAAAAASUVORK5CYII=";async function k3(e,t,r=!0,s){const n=new exports.RGraphicField;n.width=1,n.height=1,n.src=jm;const o=exports.ImagesResultContainer.fromProcessResponse(e);if(!o.length)return r?n:void 0;let a;if(o.forEach(i=>{if(!a)for(let c=0;c<i.Images.fieldList.length;c++){const _=i.Images.fieldList[c];if(_.fieldType===t)for(let E=0;E<_.valueList.length;E++){const u=_.valueList[E];if(s&&s.includes(u.lightIndex)||!s){a=u.value;break}}}}),a){n.src=`data:image/jpeg;base64,${a}`;const i=await rO(n.src);n.width=i.width,n.height=i.height}else if(!r)return;return n}function K3(e,t,r=!0,s){const n=new exports.RGraphicField;n.width=1,n.height=1,n.src=jm;const o=exports.ImagesResultContainer.fromProcessResponse(e);if(!o.length)return r?n:void 0;let a;if(o.forEach(i=>{if(!a)for(let c=0;c<i.Images.fieldList.length;c++){const _=i.Images.fieldList[c];if(_.fieldType===t)for(let E=0;E<_.valueList.length;E++){const u=_.valueList[E];if(s&&s.includes(u.lightIndex)||!s){a=u.value;break}}}}),a)n.src=`data:image/jpeg;base64,${a}`,n.width=0,n.height=0;else if(!r)return;return n}var W3=Object.defineProperty,km=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&W3(t,r,n),n};class z_{checkType;checkResult}km([D(),v($r)],z_.prototype,"checkType");km([D(),v(V)],z_.prototype,"checkResult");var Km=Object.defineProperty,Z3=Object.getOwnPropertyDescriptor,X3=(e,t,r)=>t in e?Km(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bl=(e,t,r,s)=>{for(var n=s>1?void 0:s?Z3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Km(t,r,n),n},lO=(e,t,r)=>X3(e,typeof t!="symbol"?t+"":t,r);exports.RImageQuality=class{pageIndex;checkResult;checks};lO(exports.RImageQuality,"fromPlain",e=>nt(exports.RImageQuality,e));lO(exports.RImageQuality,"getValidationErrors",e=>_t(e));lO(exports.RImageQuality,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RImageQuality.getValidationErrors(r).length===0));Bl([D(),He()],exports.RImageQuality.prototype,"pageIndex",2);Bl([D(),v(V)],exports.RImageQuality.prototype,"checkResult",2);Bl([D(),K(()=>z_),j({each:!0})],exports.RImageQuality.prototype,"checks",2);exports.RImageQuality=Bl([Xe()],exports.RImageQuality);var xS,zf;function q3(){return zf||(zf=1,xS=(function(){function e(n){return n}function t(n){return typeof n=="string"?n.toLowerCase():n}function r(n,o){if(o=typeof o=="object"?o:{direction:o},typeof n!="function"){var a=n;n=function(u){return u[a]?u[a]:""}}if(n.length===1){var i=n,c=o.ignoreCase?t:e,_=o.cmp||function(u,I){return u<I?-1:u>I?1:0};n=function(u,I){return _(c(i(u)),c(i(I)))}}const E={"-1":"",desc:""};return o.direction in E?function(u,I){return-n(u,I)}:n}function s(n,o){var a=typeof this=="function"&&!this.firstBy?this:!1,i=r(n,o),c=a?function(_,E){return a(_,E)||i(_,E)}:i;return c.thenBy=s,c}return s.firstBy=s,s})()),xS}var Q3=q3();const Wm=e=>{const t=[];return exports.ImageQualityCheckListContainer.fromProcessResponse(e).sort(Q3.firstBy(s=>s.page_idx)).forEach(s=>{const n=new exports.RImageQuality;n.pageIndex=s.page_idx??0,n.checks=[],n.checkResult=s.ImageQualityCheckList.result,s.ImageQualityCheckList.List.forEach(o=>{if(typeof o.result>"u"||typeof o.type>"u")return;const a=new z_;a.checkResult=o.result,a.checkType=o.type,n.checks.push(a)}),t.push(n)}),t.filter(s=>s.checks.length)};var Zm=Object.defineProperty,z3=Object.getOwnPropertyDescriptor,J3=(e,t,r)=>t in e?Zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Do=(e,t,r,s)=>{for(var n=s>1?void 0:s?z3(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Zm(t,r,n),n},Xm=(e,t,r)=>J3(e,typeof t!="symbol"?t+"":t,r);exports.RRfidCertificate=class{certificateType;publicKeyAlgorithm;signatureAlgorithm;issuer;subject;validFrom;validTo};Xm(exports.RRfidCertificate,"fromPlain",e=>nt(exports.RRfidCertificate,e));Xm(exports.RRfidCertificate,"getValidationErrors",e=>_t(e));Do([D(),v(nn)],exports.RRfidCertificate.prototype,"certificateType",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"publicKeyAlgorithm",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"signatureAlgorithm",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"issuer",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"subject",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"validFrom",2);Do([D(),ae()],exports.RRfidCertificate.prototype,"validTo",2);exports.RRfidCertificate=Do([Xe()],exports.RRfidCertificate);const qm=(e,t="UNKNOWN")=>{const r=exports.DocBinaryInfoContainer.fromProcessResponse(e),s=[];return r.forEach(n=>{n.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data?.SecurityObjects.forEach(a=>{a.SignerInfos.forEach(i=>{i.CertificateChain.forEach(c=>{const _=new exports.RRfidCertificate;_.certificateType=c.Type??nn.UNDEFINED,_.publicKeyAlgorithm=c.SubjectPKAlgorithm??t,_.signatureAlgorithm=c.SignatureAlgorithm??t,_.issuer=c.Issuer.FriendlyName.Data??t,_.subject=c.Subject.FriendlyName.Data??t,c.Validity.NotBefore.Data?_.validFrom=bR(c.Validity.NotBefore.Data):_.validFrom=t,c.Validity.NotAfter.Data?_.validTo=bR(c.Validity.NotAfter.Data):_.validTo=t,s.push(_)})})})}),s},uO=e=>{const t=exports.StatusContainer.fromProcessResponse(e),r=[];if(t.forEach(n=>{n.Status.detailsRFID&&r.push(n.Status.detailsRFID)}),r.length)return r[0];const s=new Wn;return s.AA=V.WAS_NOT_DONE,s.BAC=V.WAS_NOT_DONE,s.CA=V.WAS_NOT_DONE,s.PA=V.WAS_NOT_DONE,s.PACE=V.WAS_NOT_DONE,s.TA=V.WAS_NOT_DONE,s.overallStatus=V.WAS_NOT_DONE,s};var on=(e=>(e[e.NOT_PERFORMED=nr.RFID_Error_NotPerformed]="NOT_PERFORMED",e[e.NOT_AVAILABLE=nr.RFID_Error_NotAvailable]="NOT_AVAILABLE",e[e.NO_ERROR=nr.RFID_Error_NoError]="NO_ERROR",e[e.FAILED=nr.RFID_Error_Failed]="FAILED",e))(on||{}),Qm=Object.defineProperty,e5=Object.getOwnPropertyDescriptor,t5=(e,t,r)=>t in e?Qm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,IO=(e,t,r,s)=>{for(var n=s>1?void 0:s?e5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Qm(t,r,n),n},zm=(e,t,r)=>t5(e,typeof t!="symbol"?t+"":t,r);exports.RRfidDataGroupStatus=class{group;status};zm(exports.RRfidDataGroupStatus,"fromPlain",e=>nt(exports.RRfidDataGroupStatus,e));zm(exports.RRfidDataGroupStatus,"getValidationErrors",e=>_t(e));IO([D(),$()],exports.RRfidDataGroupStatus.prototype,"group",2);IO([D(),v(on)],exports.RRfidDataGroupStatus.prototype,"status",2);exports.RRfidDataGroupStatus=IO([Xe()],exports.RRfidDataGroupStatus);const Jf=e=>{let t;switch(e){case k.ID_DG1:case k.PASSPORT_DG1:case k.DL_DG1:t=1;break;case k.ID_DG2:case k.PASSPORT_DG2:case k.DL_DG2:t=2;break;case k.ID_DG3:case k.PASSPORT_DG3:case k.DL_DG3:t=3;break;case k.ID_DG4:case k.PASSPORT_DG4:case k.DL_DG4:t=4;break;case k.ID_DG5:case k.PASSPORT_DG5:case k.DL_DG5:t=5;break;case k.ID_DG6:case k.PASSPORT_DG6:case k.DL_DG6:t=6;break;case k.ID_DG7:case k.PASSPORT_DG7:case k.DL_DG7:t=7;break;case k.ID_DG8:case k.PASSPORT_DG8:case k.DL_DG8:t=8;break;case k.ID_DG9:case k.PASSPORT_DG9:case k.DL_DG9:t=9;break;case k.ID_DG10:case k.PASSPORT_DG10:case k.DL_DG10:t=10;break;case k.ID_DG11:case k.PASSPORT_DG11:case k.DL_DG11:t=11;break;case k.ID_DG12:case k.PASSPORT_DG12:case k.DL_DG12:t=12;break;case k.ID_DG13:case k.PASSPORT_DG13:case k.DL_DG13:t=13;break;case k.ID_DG14:case k.PASSPORT_DG14:case k.DL_DG14:t=14;break;case k.ID_DG15:case k.PASSPORT_DG15:t=15;break;case k.ID_DG16:case k.PASSPORT_DG16:t=16;break;case k.ID_DG17:case k.PASSPORT_DG17:case k.DTC_DG17:t=17;break;case k.ID_DG18:case k.PASSPORT_DG18:case k.DTC_DG18:t=18;break;case k.ID_DG19:case k.PASSPORT_DG19:t=19;break;case k.ID_DG20:case k.PASSPORT_DG20:t=20;break;case k.ID_DG21:t=21;break;case k.DTC_DG22:t=22;break;case k.DTC_DG23:t=23;break;case k.DTC_DG24:t=24;break}return t},Jm=e=>{const t=exports.DocBinaryInfoContainer.fromProcessResponse(e);let r=[];return t.forEach(s=>{const n=s.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data,o=s.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_ePassp_Directory||[];n?.Applications.forEach((a,i,c)=>{const _=a.Type,E=[];if(!(_===Wt.eDTC_PC&&c.length>1)&&(a.Files.forEach(u=>{const I=u.Type,S=Jf(I);let R=on.NOT_AVAILABLE;switch(u.PA_Status){case nr.RFID_Error_NoError:R=on.NO_ERROR;break;case nr.RFID_Error_NotPerformed:R=on.NOT_PERFORMED;break;case nr.RFID_Error_NotAvailable:R=on.NOT_AVAILABLE;break;case nr.RFID_Error_Failed:R=on.FAILED;break}S&&E.push({index:S,status:R})}),o.forEach(u=>{const I=Jf(u),S=E.findIndex(R=>R.index===I);typeof I<"u"&&S<0&&E.push({index:I,status:on.NOT_PERFORMED})}),E.length)){const u=E.sort((S,R)=>S.index-R.index);let I=0;switch(_){case Wt.E_PASSPORT:I=16;break;case Wt.E_ID:I=21;break;case Wt.E_DL:I=14;break;default:{const S=u.map(O=>O.index),R=Math.max(...S);S.includes(2)&&S.includes(3)&&S.includes(8)&&R<=8?I=8:S.includes(1)&&S.includes(2)&&S.includes(6)&&S.includes(10)&&R<=10?I=10:I=R;break}}for(let S=1;S<=I;S++)u.find(R=>R.index===S)||u.splice(S-1,0,{index:S,status:on.NOT_AVAILABLE});r=u.map(S=>{const R=new exports.RRfidDataGroupStatus;return R.group=S.index,R.status=S.status,R})}})}),r};var r5=Object.defineProperty,ey=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&r5(t,r,n),n};class Hl{group;status}ey([D(),v(k)],Hl.prototype,"group");ey([D(),v(V)],Hl.prototype,"status");var ty=Object.defineProperty,n5=Object.getOwnPropertyDescriptor,s5=(e,t,r)=>t in e?ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SO=(e,t,r,s)=>{for(var n=s>1?void 0:s?n5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&ty(t,r,n),n},ry=(e,t,r)=>s5(e,typeof t!="symbol"?t+"":t,r);exports.RRfidApplicationItem=class{type;groups};ry(exports.RRfidApplicationItem,"fromPlain",e=>nt(exports.RRfidApplicationItem,e));ry(exports.RRfidApplicationItem,"getValidationErrors",e=>_t(e));SO([D(),v(Wt)],exports.RRfidApplicationItem.prototype,"type",2);SO([D(),K(()=>Hl),j({each:!0})],exports.RRfidApplicationItem.prototype,"groups",2);exports.RRfidApplicationItem=SO([Xe()],exports.RRfidApplicationItem);const ny=e=>{const t=exports.DocBinaryInfoContainer.fromProcessResponse(e),r=[];return t.forEach(s=>{s.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data?.Applications.forEach(o=>{const a={type:o.Type,groups:[]};o.Files.forEach(i=>{const c=i.Type;let _=V.WAS_NOT_DONE;switch(i.PA_Status){case nr.RFID_Error_NotPerformed:case nr.RFID_Error_NotAvailable:_=V.WAS_NOT_DONE;break;case nr.RFID_Error_NoError:_=V.OK;break;default:_=V.ERROR;break}a.groups.push({group:c,status:_})}),r.push(a)})}),r};var ze=(e=>(e.DOC_TYPE="DOC_TYPE",e.EXPIRY="EXPIRY",e.IMAGE_QA="IMAGE_QA",e.MRZ="MRZ",e.SECURITY="SECURITY",e.TEXT="TEXT",e))(ze||{}),Tt=(e=>(e.AA="AA",e.BAC="BAC",e.CA="CA",e.PA="PA",e.PACE="PACE",e.TA="TA",e))(Tt||{}),qt=(e=>(e.OPTICAL="optical",e.PORTRAIT="portrait",e.RFID="rfid",e.STOP_LIST="stopList",e))(qt||{}),o5=Object.defineProperty,di=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&o5(t,r,n),n},sy,oy,ay,iy,_y,cy;class Gn{[cy=ze.DOC_TYPE];[_y=ze.EXPIRY];[iy=ze.IMAGE_QA];[ay=ze.MRZ];[oy=ze.SECURITY];[sy=ze.TEXT]}di([D(),v(V)],Gn.prototype,cy);di([D(),v(V)],Gn.prototype,_y);di([D(),v(V)],Gn.prototype,iy);di([D(),v(V)],Gn.prototype,ay);di([D(),v(V)],Gn.prototype,oy);di([D(),v(V)],Gn.prototype,sy);var a5=Object.defineProperty,xl=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&a5(t,r,n),n},Ey,ly,uy,Iy;class Bs{[Iy=qt.OPTICAL];[uy=qt.PORTRAIT];[ly=qt.RFID];[Ey=qt.STOP_LIST]}xl([D(),v(V)],Bs.prototype,Iy);xl([D(),v(V)],Bs.prototype,uy);xl([D(),v(V)],Bs.prototype,ly);xl([D(),v(V)],Bs.prototype,Ey);var i5=Object.defineProperty,fi=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&i5(t,r,n),n},Sy,Ry,Ay,Cy,Oy,Dy;class wn{[Dy=Tt.AA];[Oy=Tt.BAC];[Cy=Tt.CA];[Ay=Tt.PACE];[Ry=Tt.PA];[Sy=Tt.TA]}fi([D(),v(V)],wn.prototype,Dy);fi([D(),v(V)],wn.prototype,Oy);fi([D(),v(V)],wn.prototype,Cy);fi([D(),v(V)],wn.prototype,Ay);fi([D(),v(V)],wn.prototype,Ry);fi([D(),v(V)],wn.prototype,Sy);var Ty=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,c5=(e,t,r)=>t in e?Ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J_=(e,t,r,s)=>{for(var n=s>1?void 0:s?_5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&Ty(t,r,n),n},RO=(e,t,r)=>c5(e,typeof t!="symbol"?t+"":t,r);exports.RDetailedStatus=class{overallStatus;optical;rfId;summary};RO(exports.RDetailedStatus,"fromPlain",e=>nt(exports.RDetailedStatus,e));RO(exports.RDetailedStatus,"getValidationErrors",e=>_t(e));RO(exports.RDetailedStatus,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RDetailedStatus.getValidationErrors(r).length===0));J_([D(),v(V)],exports.RDetailedStatus.prototype,"overallStatus",2);J_([D(),K(()=>Gn),j()],exports.RDetailedStatus.prototype,"optical",2);J_([D(),K(()=>wn),j()],exports.RDetailedStatus.prototype,"rfId",2);J_([D(),K(()=>Bs),j()],exports.RDetailedStatus.prototype,"summary",2);exports.RDetailedStatus=J_([Xe()],exports.RDetailedStatus);const Gl=e=>{const t=new exports.RDetailedStatus,r=exports.StatusContainer.fromProcessResponse(e);if(t.overallStatus=V.WAS_NOT_DONE,!r.length)return t.optical=new Gn,t.optical[ze.DOC_TYPE]=V.WAS_NOT_DONE,t.optical[ze.TEXT]=V.WAS_NOT_DONE,t.optical[ze.SECURITY]=V.WAS_NOT_DONE,t.optical[ze.MRZ]=V.WAS_NOT_DONE,t.optical[ze.IMAGE_QA]=V.WAS_NOT_DONE,t.optical[ze.EXPIRY]=V.WAS_NOT_DONE,t.rfId=new wn,t.rfId[Tt.AA]=V.WAS_NOT_DONE,t.rfId[Tt.BAC]=V.WAS_NOT_DONE,t.rfId[Tt.CA]=V.WAS_NOT_DONE,t.rfId[Tt.PA]=V.WAS_NOT_DONE,t.rfId[Tt.PACE]=V.WAS_NOT_DONE,t.rfId[Tt.TA]=V.WAS_NOT_DONE,t.summary=new Bs,t.summary[qt.OPTICAL]=V.WAS_NOT_DONE,t.summary[qt.PORTRAIT]=V.WAS_NOT_DONE,t.summary[qt.RFID]=V.WAS_NOT_DONE,t.summary[qt.STOP_LIST]=V.WAS_NOT_DONE,t;const s=r[0].Status;return t.overallStatus=s.overallStatus,t.optical=new Gn,t.optical[ze.DOC_TYPE]=s.detailsOptical.docType??V.WAS_NOT_DONE,t.optical[ze.TEXT]=s.detailsOptical.text??V.WAS_NOT_DONE,t.optical[ze.SECURITY]=s.detailsOptical.security??V.WAS_NOT_DONE,t.optical[ze.MRZ]=s.detailsOptical.mrz??V.WAS_NOT_DONE,t.optical[ze.IMAGE_QA]=s.detailsOptical.imageQA??V.WAS_NOT_DONE,t.optical[ze.EXPIRY]=s.detailsOptical.expiry??V.WAS_NOT_DONE,t.rfId=new wn,t.rfId[Tt.AA]=s.detailsRFID?.AA??V.WAS_NOT_DONE,t.rfId[Tt.BAC]=s.detailsRFID?.BAC??V.WAS_NOT_DONE,t.rfId[Tt.CA]=s.detailsRFID?.CA??V.WAS_NOT_DONE,t.rfId[Tt.PA]=s.detailsRFID?.PA??V.WAS_NOT_DONE,t.rfId[Tt.PACE]=s.detailsRFID?.PACE??V.WAS_NOT_DONE,t.rfId[Tt.TA]=s.detailsRFID?.TA??V.WAS_NOT_DONE,t.summary=new Bs,t.summary[qt.OPTICAL]=s.optical??V.WAS_NOT_DONE,t.summary[qt.PORTRAIT]=s.portrait??V.WAS_NOT_DONE,t.summary[qt.RFID]=s.rfid??V.WAS_NOT_DONE,t.summary[qt.STOP_LIST]=s.stopList??V.WAS_NOT_DONE,t},Ar=(e,t)=>e.reduce((r,s)=>r===V.ERROR||t(s)===V.ERROR?V.ERROR:r===V.WAS_NOT_DONE&&t(s)===V.OK?V.OK:V.WAS_NOT_DONE,V.WAS_NOT_DONE),E5=e=>{const t=new exports.RDetailedStatus;return t.overallStatus=Ar(e,r=>r.overallStatus),t.optical=new Gn,t.optical[ze.DOC_TYPE]=Ar(e,r=>r.optical[ze.DOC_TYPE]),t.optical[ze.TEXT]=Ar(e,r=>r.optical[ze.TEXT]),t.optical[ze.SECURITY]=Ar(e,r=>r.optical[ze.SECURITY]),t.optical[ze.MRZ]=Ar(e,r=>r.optical[ze.MRZ]),t.optical[ze.IMAGE_QA]=Ar(e,r=>r.optical[ze.IMAGE_QA]),t.optical[ze.EXPIRY]=Ar(e,r=>r.optical[ze.EXPIRY]),t.rfId=new wn,t.rfId[Tt.AA]=Ar(e,r=>r.rfId[Tt.AA]),t.rfId[Tt.BAC]=Ar(e,r=>r.rfId[Tt.BAC]),t.rfId[Tt.CA]=Ar(e,r=>r.rfId[Tt.CA]),t.rfId[Tt.PA]=Ar(e,r=>r.rfId[Tt.PA]),t.rfId[Tt.PACE]=Ar(e,r=>r.rfId[Tt.PACE]),t.rfId[Tt.TA]=Ar(e,r=>r.rfId[Tt.TA]),t.summary=new Bs,t.summary[qt.OPTICAL]=Ar(e,r=>r.summary[qt.OPTICAL]),t.summary[qt.PORTRAIT]=Ar(e,r=>r.summary[qt.PORTRAIT]),t.summary[qt.RFID]=Ar(e,r=>r.summary[qt.RFID]),t.summary[qt.STOP_LIST]=Ar(e,r=>r.summary[qt.STOP_LIST]),t};var dy=Object.defineProperty,l5=Object.getOwnPropertyDescriptor,u5=(e,t,r)=>t in e?dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sa=(e,t,r,s)=>{for(var n=s>1?void 0:s?l5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&dy(t,r,n),n},AO=(e,t,r)=>u5(e,typeof t!="symbol"?t+"":t,r);exports.RDocumentIdentification=class{pageIndex;documentName;isDeprecated;probability;documentId;documentCategory};AO(exports.RDocumentIdentification,"fromPlain",e=>nt(exports.RDocumentIdentification,e));AO(exports.RDocumentIdentification,"getValidationErrors",e=>_t(e));AO(exports.RDocumentIdentification,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RDocumentIdentification.getValidationErrors(r).length===0));Sa([D(),He()],exports.RDocumentIdentification.prototype,"pageIndex",2);Sa([D(),ae()],exports.RDocumentIdentification.prototype,"documentName",2);Sa([D(),Be()],exports.RDocumentIdentification.prototype,"isDeprecated",2);Sa([D(),He()],exports.RDocumentIdentification.prototype,"probability",2);Sa([D(),He()],exports.RDocumentIdentification.prototype,"documentId",2);Sa([p(),ae()],exports.RDocumentIdentification.prototype,"documentCategory",2);exports.RDocumentIdentification=Sa([Xe()],exports.RDocumentIdentification);function CO(e){const t=exports.OneCandidateContainer.fromProcessResponse(e),r=[];for(let s=0;s<t.length;s++){const n=t[s];n.OneCandidate?.DocumentName&&r.push(exports.RDocumentIdentification.fromPlain({documentName:n.OneCandidate.DocumentName,pageIndex:n.page_idx??0,isDeprecated:n.OneCandidate.FDSIDList?.isDeprecated,documentId:n.OneCandidate.ID,probability:n.OneCandidate.P,documentCategory:n.OneCandidate.FDSIDList?.dDescription}))}return r}var fy=Object.defineProperty,I5=Object.getOwnPropertyDescriptor,S5=(e,t,r)=>t in e?fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t,r,s)=>{for(var n=s>1?void 0:s?I5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&fy(t,r,n),n},OO=(e,t,r)=>S5(e,typeof t!="symbol"?t+"":t,r);exports.RNameSurname=class{value;checkResult;lcid};OO(exports.RNameSurname,"fromPlain",e=>nt(exports.RNameSurname,e));OO(exports.RNameSurname,"getValidationErrors",e=>_t(e));OO(exports.RNameSurname,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RNameSurname.getValidationErrors(r).length===0));wl([D(),ae()],exports.RNameSurname.prototype,"value",2);wl([D(),v(V)],exports.RNameSurname.prototype,"checkResult",2);wl([D(),v(Y)],exports.RNameSurname.prototype,"lcid",2);exports.RNameSurname=wl([Xe()],exports.RNameSurname);const Ny=(e,t="UNKNOWN")=>{const r=exports.TextResultContainer.fromProcessResponse(e),s=exports.RNameSurname.fromPlain({value:t,checkResult:V.ERROR,lcid:Y.LATIN});if(!r.length)return s;for(let n=0;n<r.length;n++){const o=r[n],{Text:a}=o,i=a.fieldList.findIndex(c=>c.lcid===Y.LATIN&&c.fieldType===A.SURNAME_AND_GIVEN_NAMES);if(i!==-1){const c=a.fieldList[i];return exports.RNameSurname.fromPlain({value:c.value,checkResult:c.status,lcid:c.lcid})}}for(let n=0;n<r.length;n++){const o=r[n],{Text:a}=o;for(let i=0;i<a.fieldList.length;i++){const c=a.fieldList[i];if(c.fieldType===A.SURNAME_AND_GIVEN_NAMES&&c.value)return exports.RNameSurname.fromPlain({value:c.value,checkResult:c.status,lcid:c.lcid})}}return s};var R5=Object.defineProperty,Ra=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&R5(t,r,n),n};class Ns{source;checkResult;value;probability;pageIndex;rect;rfidOrigin}Ra([D(),v(Gt)],Ns.prototype,"source");Ra([D(),v(V)],Ns.prototype,"checkResult");Ra([D(),ae()],Ns.prototype,"value");Ra([D()],Ns.prototype,"probability");Ra([D()],Ns.prototype,"pageIndex");Ra([p(),K(()=>jt),j()],Ns.prototype,"rect");Ra([p(),K(()=>Ao),j()],Ns.prototype,"rfidOrigin");var A5=Object.defineProperty,DO=(e,t,r,s)=>{for(var n=void 0,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=a(t,r,n)||n);return n&&A5(t,r,n),n};class Ni{sourceLeft;sourceRight;status}DO([D(),v(Gt)],Ni.prototype,"sourceLeft");DO([D(),v(Gt)],Ni.prototype,"sourceRight");DO([D(),v(V)],Ni.prototype,"status");var py=Object.defineProperty,C5=Object.getOwnPropertyDescriptor,O5=(e,t,r)=>t in e?py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Aa=(e,t,r,s)=>{for(var n=s>1?void 0:s?C5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&py(t,r,n),n},TO=(e,t,r)=>O5(e,typeof t!="symbol"?t+"":t,r);exports.RTextData=class{type;value;checkResult;lcid;comparisonList;bySource};TO(exports.RTextData,"fromPlain",e=>nt(exports.RTextData,e));TO(exports.RTextData,"getValidationErrors",e=>_t(e));TO(exports.RTextData,"isValid",e=>(Array.isArray(e)?e:[e]).every(r=>exports.RTextData.getValidationErrors(r).length===0));Aa([D(),v(A)],exports.RTextData.prototype,"type",2);Aa([D(),ae()],exports.RTextData.prototype,"value",2);Aa([D(),v(V)],exports.RTextData.prototype,"checkResult",2);Aa([D(),v(Y)],exports.RTextData.prototype,"lcid",2);Aa([D(),j({each:!0}),K(()=>Ni)],exports.RTextData.prototype,"comparisonList",2);Aa([D(),K(()=>Ns),j({each:!0})],exports.RTextData.prototype,"bySource",2);exports.RTextData=Aa([Xe()],exports.RTextData);const Ly=e=>{const t=[],r=exports.TextResultContainer.fromProcessResponse(e);return r.length&&r.forEach(s=>{const n=s.Text.availableSourceList.map(o=>o.source);s.Text.fieldList.forEach(o=>{const a=new exports.RTextData;a.type=o.fieldType,a.value=o.value,a.lcid=o.lcid,a.checkResult=o.status,a.comparisonList=o.comparisonList?.map(i=>{const c=new Ni;return c.sourceLeft=i.sourceLeft,c.sourceRight=i.sourceRight,c.status=i.status,c})||[],a.bySource=[],n.forEach(i=>{const c=o.validityList.find(E=>E.source===i);o.valueList.filter(E=>E.source===i).forEach(E=>{const u=new Ns;u.checkResult=c?.status??V.WAS_NOT_DONE,u.source=E.source,u.value=E?.value??"",u.pageIndex=E?.pageIndex??0,u.probability=E?.probability??0,E.fieldRect&&(u.rect=E.fieldRect),E.rfidOrigin&&(u.rfidOrigin=E.rfidOrigin),a.bySource.push(u)})}),a.bySource.length&&t.push(a)})}),t};var hy=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,T5=(e,t,r)=>t in e?hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$l=(e,t,r,s)=>{for(var n=s>1?void 0:s?D5(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(t,r,n):a(n))||n);return s&&n&&hy(t,r,n),n},dO=(e,t,r)=>T5(e,typeof t!="symbol"?t+"":t,r);exports.RTextFieldValue=class{value;status;lcid};dO(exports.RTextFieldValue,"fromPlain",e=>nt(exports.RTextFieldValue,e));dO(exports.RTextFieldValue,"getValidationErrors",e=>_t(e));dO(exports.RTextFieldValue,"isValid",e=>Array.isArray(e)?e.every(t=>exports.RTextFieldValue.getValidationErrors(t).length===0):exports.RTextFieldValue.getValidationErrors(e).length===0);$l([D(),ae()],exports.RTextFieldValue.prototype,"value",2);$l([D(),v(V)],exports.RTextFieldValue.prototype,"status",2);$l([D(),v(Y)],exports.RTextFieldValue.prototype,"lcid",2);exports.RTextFieldValue=$l([Xe()],exports.RTextFieldValue);function Hs(e,t){const r=exports.TextResultContainer.fromProcessResponse(e),s=[];for(let n=0;n<r.length;n++)r[n].Text.fieldList.forEach(a=>{a.fieldType===t&&s.push(exports.RTextFieldValue.fromPlain({value:a.value,status:a.status,lcid:a.lcid}))});return s.sort((n,o)=>n.lcid-o.lcid)}function my(e){return Hs(e,A.DATE_OF_EXPIRY)}function yy(e){return Hs(e,A.ISSUING_STATE_NAME)}function gy(e){return Hs(e,A.DOCUMENT_NUMBER)}function Py(e){return Hs(e,A.AGE)}function d5(e){return Hs(e,A.NATIONALITY_CODE)}function My(e){return Hs(e,A.SEX)}class Bt extends TypeError{errors;constructor(t,r){super(t),this.name="DocReaderTypeError",this.message=t,this.errors=r}}var GS={exports:{}};/*!
24
24
  Copyright (c) 2018 Jed Watson.
25
25
  Licensed under the MIT License (MIT), see
26
26
  http://jedwatson.github.io/classnames