@regulaforensics/ui-components 9.7.1052-rc → 9.7.1053-nightly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,4 +10,4 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
10
10
  `};if(t){var l=Number.isInteger(+this.property)?`[${this.property}]`:`${n?`.`:``}${this.property}`;return this.constraints?c(l):this.children?this.children.map(function(t){return t.toString(e,!0,`${n}${l}`,r)}).join(``):``}else return`An instance of ${a}${this.target?this.target.constructor.name:`an object`}${o} has failed the validation:
11
11
  `+(this.constraints?c(this.property):``)+(this.children?this.children.map(function(t){return t.toString(e,!0,i.property,r)}).join(``):``)},e}(),yo=function(){function e(){}return e.isValid=function(e){var t=this;return e!==`isValid`&&e!==`getMessage`&&Object.keys(this).map(function(e){return t[e]}).indexOf(e)!==-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 bo(e){return Array.isArray(e)?e.join(`, `):(typeof e==`symbol`&&(e=e.description),`${e}`)}var xo=function(){function e(){}return e.replaceMessageSpecialTokens=function(e,t){var n;return e instanceof Function?n=e(t):typeof e==`string`&&(n=e),n&&Array.isArray(t.constraints)&&t.constraints.forEach(function(e,t){n=n.replace(RegExp(`\\\$constraint${t+1}`,`g`),bo(e))}),n&&t.value!==void 0&&t.value!==null&&[`string`,`boolean`,`number`].includes(typeof t.value)&&(n=n.replace(/\$value/g,t.value)),n&&=n.replace(/\$property/g,t.property),n&&=n.replace(/\$target/g,t.targetName),n},e}(),So=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Co=function(){function e(e,t){this.validator=e,this.validatorOptions=t,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=_o()}return e.prototype.execute=function(e,t,n){var r=this;!this.metadataStorage.hasValidationMetaData&&this.validatorOptions?.enableDebugMessages===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
12
12
  - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
13
- - This validation runs before any file with validation decorator was parsed by NodeJS.`);var i=this.validatorOptions?this.validatorOptions.groups:void 0,a=this.validatorOptions&&this.validatorOptions.strictGroups||!1,o=this.validatorOptions&&this.validatorOptions.always||!1,s=this.validatorOptions?.forbidUnknownValues===void 0||this.validatorOptions.forbidUnknownValues!==!1,c=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,o,a,i),l=this.metadataStorage.groupByPropertyName(c);if(s&&!c.length){var u=new vo;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(u.target=e),u.value=void 0,u.property=void 0,u.children=[],u.constraints={unknownValue:`an unknown value was passed to the validate function`},n.push(u);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,l,n),Object.keys(l).forEach(function(t){var i=e[t],a=l[t].filter(function(e){return e.type===yo.IS_DEFINED}),o=l[t].filter(function(e){return e.type!==yo.IS_DEFINED&&e.type!==yo.WHITELIST});i instanceof Promise&&o.find(function(e){return e.type===yo.PROMISE_VALIDATION})?r.awaitingPromises.push(i.then(function(i){r.performValidations(e,i,t,a,o,n)})):r.performValidations(e,i,t,a,o,n)})},e.prototype.whitelist=function(e,t,n){var r=this,i=[];Object.keys(e).forEach(function(e){(!t[e]||t[e].length===0)&&i.push(e)}),i.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?i.forEach(function(t){var i,a=r.generateValidationError(e,e[t],t);a.constraints=(i={},i[yo.WHITELIST]=`property ${t} should not exist`,i),a.children=void 0,n.push(a)}):i.forEach(function(t){return delete e[t]}))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter(function(e){if(e.children&&=t.stripEmptyErrors(e.children),Object.keys(e.constraints).length===0){if(e.children.length===0)return!1;delete e.constraints}return!0})},e.prototype.performValidations=function(e,t,n,r,i,a){var o=i.filter(function(e){return e.type===yo.CUSTOM_VALIDATION}),s=i.filter(function(e){return e.type===yo.NESTED_VALIDATION}),c=i.filter(function(e){return e.type===yo.CONDITIONAL_VALIDATION}),l=this.generateValidationError(e,t,n);a.push(l),this.conditionalValidations(e,t,c)&&(this.customValidations(e,t,r,l),this.mapContexts(e,t,r,l),!(t===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(t===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||t==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,t,o,l),this.nestedValidations(t,s,l),this.mapContexts(e,t,i,l),this.mapContexts(e,t,o,l))))},e.prototype.generateValidationError=function(e,t,n){var r=new vo;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(r.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(r.value=t),r.property=n,r.children=[],r.constraints={},r},e.prototype.conditionalValidations=function(e,t,n){return n.map(function(n){return n.constraints[0](e,t)}).reduce(function(e,t){return e&&t},!0)},e.prototype.customValidations=function(e,t,n,r){var i=this;n.forEach(function(n){var a=function(){return{targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints}};n.validateIf&&!n.validateIf(e,t)||i.metadataStorage.getTargetValidatorConstraints(n.constraintCls).forEach(function(o){if(!(o.async&&i.ignoreAsyncValidations)&&!(i.validatorOptions&&i.validatorOptions.stopAtFirstError&&Object.keys(r.constraints||{}).length>0)){var s=a();if(!n.each||!(Array.isArray(t)||t instanceof Set||t instanceof Map)){var c=o.instance.validate(t,s);if(fo(c)){var l=c.then(function(a){if(!a){var s=So(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(l)}else if(!c){var u=So(i.createValidationError(e,t,n,o),2),d=u[0],f=u[1];r.constraints[d]=f}return}var p=lo(t).map(function(e){return o.instance.validate(e,s)});if(p.some(function(e){return fo(e)})){var m=p.map(function(e){return fo(e)?e:Promise.resolve(e)}),h=Promise.all(m).then(function(a){if(!a.every(function(e){return e})){var s=So(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(h);return}if(!p.every(function(e){return e})){var g=So(i.createValidationError(e,t,n,o),2),d=g[0],f=g[1];r.constraints[d]=f}}})})},e.prototype.nestedValidations=function(e,t,n){var r=this;e!==void 0&&t.forEach(function(i){if(!(i.type!==yo.NESTED_VALIDATION&&i.type!==yo.PROMISE_VALIDATION)&&!(r.validatorOptions&&r.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map)(e instanceof Set?Array.from(e):e).forEach(function(i,a){r.performValidations(e,i,a.toString(),[],t,n.children)});else if(e instanceof Object){var a=typeof i.target==`string`?i.target:i.target.name;r.execute(e,a,n.children)}else{var o=So(r.createValidationError(i.target,e,i),2),s=o[0],c=o[1];n.constraints[s]=c}})},e.prototype.mapContexts=function(e,t,n,r){var i=this;return n.forEach(function(e){if(e.context){var t=void 0;e.type===yo.CUSTOM_VALIDATION&&(t=i.metadataStorage.getTargetValidatorConstraints(e.constraintCls)[0]);var n=i.getConstraintType(e,t);r.constraints[n]&&(r.contexts||={},r.contexts[n]=Object.assign(r.contexts[n]||{},e.context))}})},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,a=this.getConstraintType(n,r),o={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},s=n.message||``;return!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&r&&r.instance.defaultMessage instanceof Function&&(s=r.instance.defaultMessage(o)),[a,xo.replaceMessageSpecialTokens(s,o)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}(),wo=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},To=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Eo=function(){function e(){}return e.prototype.validate=function(e,t,n){return this.coreValidate(e,t,n)},e.prototype.validateOrReject=function(e,t,n){return wo(this,void 0,void 0,function(){var r;return To(this,function(i){switch(i.label){case 0:return[4,this.coreValidate(e,t,n)];case 1:return r=i.sent(),r.length?[2,Promise.reject(r)]:[2]}})})},e.prototype.validateSync=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new Co(this,i);o.ignoreAsyncValidations=!0;var s=[];return o.execute(r,a,s),o.stripEmptyErrors(s)},e.prototype.coreValidate=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new Co(this,i),s=[];return o.execute(r,a,s),Promise.all(o.awaitingPromises).then(function(){return o.stripEmptyErrors(s)})},e}(),Do=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),Oo,ko;function Ao(e){if(Oo)try{var t=Oo.get(e);if(t||!ko||!ko.fallback)return t}catch(e){if(!ko||!ko.fallbackOnErrors)throw e}return Do.get(e)}var jo=function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return Ao(this.target)},enumerable:!1,configurable:!0}),e}();function Mo(e){var t;if(e.validator instanceof Function){if(t=e.validator,Ao(go).getTargetValidatorConstraints(e.validator).length>1)throw`More than one implementation of ValidatorConstraintInterface found for validator on: ${e.target.name}:${e.propertyName}`}else{var n=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return n.validate(e,t)},e.prototype.defaultMessage=function(e){return n.defaultMessage?n.defaultMessage(e):``},e}(),_o().addConstraintMetadata(new jo(t,e.name,e.async))}var r={type:e.name&&yo.isValid(e.name)?e.name:yo.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};_o().addValidationMetadata(new so(r))}function No(e,t){return function(n){return e(t&&t.each?`each value in `:``,n)}}function Po(e,t){return function(n,r){Mo({name:e.name,target:n.constructor,propertyName:r,options:t,constraints:e.constraints,validator:e.validator})}}var Fo=yo.IS_DEFINED;function Io(e){return e!=null}function F(e){return Po({name:Fo,validator:{validate:function(e){return Io(e)},defaultMessage:No(function(e){return e+`$property should not be null or undefined`},e)}},e)}var Lo=`isOptional`;function I(e){return function(t,n){var r={type:yo.CONDITIONAL_VALIDATION,name:Lo,target:t.constructor,propertyName:n,constraints:[function(e,t){return e[n]!==null&&e[n]!==void 0}],validationOptions:e};_o().addValidationMetadata(new so(r))}}var Ro=function(){return Ro=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ro.apply(this,arguments)};function L(e){var t=Ro({},e),n=t.each?`each value in `:``;return t.message=t.message||n+`nested property $property must be either object or array`,function(e,n){var r={type:yo.NESTED_VALIDATION,target:e.constructor,propertyName:n,validationOptions:t};_o().addValidationMetadata(new so(r))}}var zo=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(e){if(e==null)throw TypeError(`Expected a string but received a ${e}`);if(e.constructor.name!==`String`)throw TypeError(`Expected a string but received a ${e.constructor.name}`)}t.exports=e.default,t.exports.default=e.default})),Bo=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}t.exports=e.default,t.exports.default=e.default})),Vo=`isIn`;function Ho(e,t){return Array.isArray(t)&&t.some(function(t){return t===e})}function R(e,t){return Po({name:Vo,constraints:[e],validator:{validate:function(e,t){return Ho(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be one of the following values: $constraint1`},t)}},t)}function Uo(e,t){return typeof e==`number`&&typeof t==`number`&&e>=t}function Wo(e,t){return Po({name:`min`,constraints:[e],validator:{validate:function(e,t){return Uo(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must not be less than $constraint1`},t)}},t)}var Go=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var n=i(zo()),r=i(Bo());function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Za-z0-9+/]+={0,2}$/,o=/^[A-Za-z0-9+/]+$/,s=/^[A-Za-z0-9_-]+={0,2}$/,c=/^[A-Za-z0-9_-]+$/;function l(e,t){var i;if((0,n.default)(e),t=(0,r.default)(t,{urlSafe:!1,padding:!((i=t)!=null&&i.urlSafe)}),e===``)return!0;if(t.padding&&e.length%4!=0)return!1;var l=t.urlSafe?t.padding?s:c:t.padding?a:o;return(!t.padding||e.length%4==0)&&l.test(e)}t.exports=e.default,t.exports.default=e.default}))()),Ko=`isBase64`;function qo(e,t){return typeof e==`string`&&(0,Go.default)(e,t)}function Jo(e,t){return Po({name:Ko,constraints:[e],validator:{validate:function(e,t){return qo(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be base64 encoded`},t)}},t)}var Yo=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var n=r(zo());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){(0,n.default)(e);var r,a;i(t)===`object`?(r=t.min||0,a=t.max):(r=arguments[1]||0,a=arguments[2]);var o=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],c=e.length-o.length-s.length,l=c>=r&&(a===void 0||c<=a);return l&&Array.isArray(t?.discreteLengths)?t.discreteLengths.some(function(e){return e===c}):l}t.exports=e.default,t.exports.default=e.default}))()),Xo=`maxLength`;function Zo(e,t){return typeof e==`string`&&(0,Yo.default)(e,{min:0,max:t})}function Qo(e,t){return Po({name:Xo,constraints:[e],validator:{validate:function(e,t){return Zo(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be shorter than or equal to $constraint1 characters`},t)}},t)}var $o=`isBoolean`;function es(e){return e instanceof Boolean||typeof e==`boolean`}function z(e){return Po({name:$o,validator:{validate:function(e,t){return es(e)},defaultMessage:No(function(e){return e+`$property must be a boolean value`},e)}},e)}var ts=`isNumber`;function ns(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 n=0;if(e%1!=0&&(n=e.toString().split(`.`)[1].length),n>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function B(e,t){return e===void 0&&(e={}),Po({name:ts,constraints:[e],validator:{validate:function(e,t){return ns(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be a number conforming to the specified constraints`},t)}},t)}var rs=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},is=`isEnum`;function as(e,t){return Object.keys(t).map(function(e){return t[e]}).includes(e)}function os(e){return Object.entries(e).filter(function(e){var t=rs(e,2),n=t[0];return t[1],isNaN(parseInt(n))}).map(function(e){var t=rs(e,2);return t[0],t[1]})}function V(e,t){return Po({name:is,constraints:[e,os(e)],validator:{validate:function(e,t){return as(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be one of the following values: $constraint2`},t)}},t)}var ss=`isInt`;function cs(e){return typeof e==`number`&&Number.isInteger(e)}function H(e){return Po({name:ss,validator:{validate:function(e,t){return cs(e)},defaultMessage:No(function(e){return e+`$property must be an integer number`},e)}},e)}var ls=`isString`;function us(e){return e instanceof String||typeof e==`string`}function U(e){return Po({name:ls,validator:{validate:function(e,t){return us(e)},defaultMessage:No(function(e){return e+`$property must be a string`},e)}},e)}var ds=`isArray`;function fs(e){return Array.isArray(e)}function W(e){return Po({name:ds,validator:{validate:function(e,t){return fs(e)},defaultMessage:No(function(e){return e+`$property must be an array`},e)}},e)}var ps=`arrayMinSize`;function ms(e,t){return Array.isArray(e)&&e.length>=t}function hs(e,t){return Po({name:ps,constraints:[e],validator:{validate:function(e,t){return ms(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must contain at least $constraint1 elements`},t)}},t)}var gs=`arrayMaxSize`;function _s(e,t){return Array.isArray(e)&&e.length<=t}function vs(e,t){return Po({name:gs,constraints:[e],validator:{validate:function(e,t){return _s(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must contain no more than $constraint1 elements`},t)}},t)}function G(e,t,n){return typeof e==`string`?Ao(Eo).validateSync(e,t,n):Ao(Eo).validateSync(e,t)}function K(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var ys=class{};q([F(),B(),K(`design:type`,Number)],ys.prototype,`x`,void 0),q([I(),B(),K(`design:type`,Number)],ys.prototype,`y`,void 0);var bs;(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`})(bs||={});var xs=new(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(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},e.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.findTransformMetadatas=function(e,t,n){return this.findMetadatas(this._transformMetadatas,e,t).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?n===bs.CLASS_TO_CLASS||n===bs.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?n===bs.CLASS_TO_PLAIN:!0})},e.prototype.findExcludeMetadata=function(e,t){return this.findMetadata(this._excludeMetadatas,e,t)},e.prototype.findExposeMetadata=function(e,t){return this.findMetadata(this._exposeMetadatas,e,t)},e.prototype.findExposeMetadataByCustomName=function(e,t){return this.getExposedMetadatas(e).find(function(e){return e.options&&e.options.name===t})},e.prototype.findTypeMetadata=function(e,t){return this.findMetadata(this._typeMetadatas,e,t)},e.prototype.getStrategy=function(e){var t=this._excludeMetadatas.get(e),n=t&&t.get(void 0),r=this._exposeMetadatas.get(e),i=r&&r.get(void 0);return n&&i||!n&&!i?`none`:n?`excludeAll`:`exposeAll`},e.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},e.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},e.prototype.getExposedProperties=function(e,t){return this.getExposedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===bs.CLASS_TO_CLASS||t===bs.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===bs.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.getExcludedProperties=function(e,t){return this.getExcludedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===bs.CLASS_TO_CLASS||t===bs.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===bs.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(e,t){var n=e.get(t),r;n&&(r=Array.from(n.values()).filter(function(e){return e.propertyName!==void 0}));for(var i=[],a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=Array.from(c.values()).filter(function(e){return e.propertyName!==void 0});i.push.apply(i,l)}}return i.concat(r||[])},e.prototype.findMetadata=function(e,t,n){var r=e.get(t);if(r){var i=r.get(n);if(i)return i}for(var a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=c.get(n);if(l)return l}}},e.prototype.findMetadatas=function(e,t,n){var r=e.get(t),i;r&&(i=r.get(n));for(var a=[],o=0,s=this.getAncestors(t);o<s.length;o++){var c=s[o],l=e.get(c);l&&l.has(n)&&a.push.apply(a,l.get(n))}return a.slice().reverse().concat((i||[]).slice().reverse())},e.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var t=[],n=Object.getPrototypeOf(e.prototype.constructor);n.prototype!==void 0;n=Object.getPrototypeOf(n.prototype.constructor))t.push(n);this._ancestorsMap.set(e,t)}return this._ancestorsMap.get(e)},e}());function Ss(){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 Cs(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var ws=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function Ts(e){var t=new e;return!(t instanceof Set)&&!(`push`in t)?[]:t}var Es=function(){function e(e,t){this.transformationType=e,this.options=t,this.recursionStack=new Set}return e.prototype.transform=function(e,t,n,r,i,a){var o=this;if(a===void 0&&(a=0),Array.isArray(t)||t instanceof Set){var s=r&&this.transformationType===bs.PLAIN_TO_CLASS?Ts(r):[];return t.forEach(function(t,r){var i=e?e[r]:void 0;if(!o.options.enableCircularCheck||!o.isCircular(t)){var c=void 0;if(typeof n!=`function`&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(o.transformationType===bs.PLAIN_TO_CLASS){c=n.options.discriminator.subTypes.find(function(e){return e.name===t[n.options.discriminator.property]});var l={newObject:s,object:t,property:void 0},u=n.typeFunction(l);c=c===void 0?u:c.value,n.options.keepDiscriminatorProperty||delete t[n.options.discriminator.property]}o.transformationType===bs.CLASS_TO_CLASS&&(c=t.constructor),o.transformationType===bs.CLASS_TO_PLAIN&&(t[n.options.discriminator.property]=n.options.discriminator.subTypes.find(function(e){return e.value===t.constructor}).name)}else c=n;var d=o.transform(i,t,c,void 0,t instanceof Map,a+1);s instanceof Set?s.add(d):s.push(d)}else o.transformationType===bs.CLASS_TO_CLASS&&(s instanceof Set?s.add(t):s.push(t))}),s}else if(n===String&&!i)return t==null?t:String(t);else if(n===Number&&!i)return t==null?t:Number(t);else if(n===Boolean&&!i)return t==null?t:!!t;else if((n===Date||t instanceof Date)&&!i)return t instanceof Date?new Date(t.valueOf()):t==null?t:new Date(t);else if(Ss().Buffer&&(n===Buffer||t instanceof Buffer)&&!i)return t==null?t:Buffer.from(t);else if(Cs(t)&&!i)return new Promise(function(e,r){t.then(function(t){return e(o.transform(void 0,t,n,void 0,void 0,a+1))},r)});else if(!i&&typeof t==`object`&&t&&typeof t.then==`function`)return t;else if(typeof t==`object`&&t){!n&&t.constructor!==Object&&(!Array.isArray(t)&&t.constructor===Array||(n=t.constructor)),!n&&e&&(n=e.constructor),this.options.enableCircularCheck&&this.recursionStack.add(t);var c=this.getKeys(n,t,i),l=e||{};!e&&(this.transformationType===bs.PLAIN_TO_CLASS||this.transformationType===bs.CLASS_TO_CLASS)&&(l=i?new Map:n?new n:{});for(var u=function(r){if(r===`__proto__`||r===`constructor`)return`continue`;var o=r,s=r,c=r;if(!d.options.ignoreDecorators&&n){if(d.transformationType===bs.PLAIN_TO_CLASS){var u=xs.findExposeMetadataByCustomName(n,r);u&&(c=u.propertyName,s=u.propertyName)}else if(d.transformationType===bs.CLASS_TO_PLAIN||d.transformationType===bs.CLASS_TO_CLASS){var u=xs.findExposeMetadata(n,r);u&&u.options&&u.options.name&&(s=u.options.name)}}var f=void 0;f=d.transformationType===bs.PLAIN_TO_CLASS?t[o]:t instanceof Map?t.get(o):t[o]instanceof Function?t[o]():t[o];var p=void 0,m=f instanceof Map;if(n&&i)p=n;else if(n){var h=xs.findTypeMetadata(n,c);if(h){var g={newObject:l,object:t,property:c},_=h.typeFunction?h.typeFunction(g):h.reflectedType;h.options&&h.options.discriminator&&h.options.discriminator.property&&h.options.discriminator.subTypes?t[o]instanceof Array?p=h:(d.transformationType===bs.PLAIN_TO_CLASS&&(p=h.options.discriminator.subTypes.find(function(e){if(f&&f instanceof Object&&h.options.discriminator.property in f)return e.name===f[h.options.discriminator.property]}),p=p===void 0?_:p.value,h.options.keepDiscriminatorProperty||f&&f instanceof Object&&h.options.discriminator.property in f&&delete f[h.options.discriminator.property]),d.transformationType===bs.CLASS_TO_CLASS&&(p=f.constructor),d.transformationType===bs.CLASS_TO_PLAIN&&f&&(f[h.options.discriminator.property]=h.options.discriminator.subTypes.find(function(e){return e.value===f.constructor}).name)):p=_,m||=h.reflectedType===Map}else if(d.options.targetMaps)d.options.targetMaps.filter(function(e){return e.target===n&&!!e.properties[c]}).forEach(function(e){return p=e.properties[c]});else if(d.options.enableImplicitConversion&&d.transformationType===bs.PLAIN_TO_CLASS){var v=Reflect.getMetadata(`design:type`,n.prototype,c);v&&(p=v)}}var y=Array.isArray(t[o])?d.getReflectedType(n,c):void 0,b=e?e[o]:void 0;if(l.constructor.prototype){var x=Object.getOwnPropertyDescriptor(l.constructor.prototype,s);if((d.transformationType===bs.PLAIN_TO_CLASS||d.transformationType===bs.CLASS_TO_CLASS)&&(x&&!x.set||l[s]instanceof Function))return`continue`}if(!d.options.enableCircularCheck||!d.isCircular(f)){var S=d.transformationType===bs.PLAIN_TO_CLASS?s:r,C=void 0;d.transformationType===bs.CLASS_TO_PLAIN?(C=t[S],C=d.applyCustomTransformations(C,n,S,t,d.transformationType),C=t[S]===C?f:C,C=d.transform(b,C,p,y,m,a+1)):f===void 0&&d.options.exposeDefaultValues?C=l[s]:(C=d.transform(b,f,p,y,m,a+1),C=d.applyCustomTransformations(C,n,S,t,d.transformationType)),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}else if(d.transformationType===bs.CLASS_TO_CLASS){var C=f;C=d.applyCustomTransformations(C,n,r,t,d.transformationType),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}},d=this,f=0,p=c;f<p.length;f++){var m=p[f];u(m)}return this.options.enableCircularCheck&&this.recursionStack.delete(t),l}else return t},e.prototype.applyCustomTransformations=function(e,t,n,r,i){var a=this,o=xs.findTransformMetadatas(t,n,this.transformationType);return this.options.version!==void 0&&(o=o.filter(function(e){return e.options?a.checkVersion(e.options.since,e.options.until):!0})),o=this.options.groups&&this.options.groups.length?o.filter(function(e){return e.options?a.checkGroups(e.options.groups):!0}):o.filter(function(e){return!e.options||!e.options.groups||!e.options.groups.length}),o.forEach(function(t){e=t.transformFn({value:e,key:n,obj:r,type:i,options:a.options})}),e},e.prototype.isCircular=function(e){return this.recursionStack.has(e)},e.prototype.getReflectedType=function(e,t){if(e){var n=xs.findTypeMetadata(e,t);return n?n.reflectedType:void 0}},e.prototype.getKeys=function(e,t,n){var r=this,i=xs.getStrategy(e);i===`none`&&(i=this.options.strategy||`exposeAll`);var a=[];if((i===`exposeAll`||n)&&(a=t instanceof Map?Array.from(t.keys()):Object.keys(t)),n)return a;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&e){var o=xs.getExposedProperties(e,this.transformationType),s=xs.getExcludedProperties(e,this.transformationType);a=ws(ws([],o,!0),s,!0)}if(!this.options.ignoreDecorators&&e){var o=xs.getExposedProperties(e,this.transformationType);this.transformationType===bs.PLAIN_TO_CLASS&&(o=o.map(function(t){var n=xs.findExposeMetadata(e,t);return n&&n.options&&n.options.name?n.options.name:t})),a=this.options.excludeExtraneousValues?o:a.concat(o);var c=xs.getExcludedProperties(e,this.transformationType);c.length>0&&(a=a.filter(function(e){return!c.includes(e)})),this.options.version!==void 0&&(a=a.filter(function(t){var n=xs.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkVersion(n.options.since,n.options.until)})),a=this.options.groups&&this.options.groups.length?a.filter(function(t){var n=xs.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkGroups(n.options.groups)}):a.filter(function(t){var n=xs.findExposeMetadata(e,t);return!n||!n.options||!n.options.groups||!n.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(a=a.filter(function(e){return r.options.excludePrefixes.every(function(t){return e.substr(0,t.length)!==t})})),a=a.filter(function(e,t,n){return n.indexOf(e)===t}),a},e.prototype.checkVersion=function(e,t){var n=!0;return n&&e&&(n=this.options.version>=e),n&&t&&(n=this.options.version<t),n},e.prototype.checkGroups=function(e){return e?this.options.groups.some(function(t){return e.includes(t)}):!0},e}(),Ds={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},Os=function(){return Os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Os.apply(this,arguments)},ks=function(){function e(){}return e.prototype.instanceToPlain=function(e,t){return new Es(bs.CLASS_TO_PLAIN,Os(Os({},Ds),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToPlainFromExist=function(e,t,n){return new Es(bs.CLASS_TO_PLAIN,Os(Os({},Ds),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.plainToInstance=function(e,t,n){return new Es(bs.PLAIN_TO_CLASS,Os(Os({},Ds),n)).transform(void 0,t,e,void 0,void 0,void 0)},e.prototype.plainToClassFromExist=function(e,t,n){return new Es(bs.PLAIN_TO_CLASS,Os(Os({},Ds),n)).transform(e,t,void 0,void 0,void 0,void 0)},e.prototype.instanceToInstance=function(e,t){return new Es(bs.CLASS_TO_CLASS,Os(Os({},Ds),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToClassFromExist=function(e,t,n){return new Es(bs.CLASS_TO_CLASS,Os(Os({},Ds),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.serialize=function(e,t){return JSON.stringify(this.instanceToPlain(e,t))},e.prototype.deserialize=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e.prototype.deserializeArray=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e}();function J(e){return e===void 0&&(e={}),function(t,n){xs.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}function As(e,t){return t===void 0&&(t={}),function(n,r){xs.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}function Y(e,t){return t===void 0&&(t={}),function(n,r){var i=Reflect.getMetadata(`design:type`,n,r);xs.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}var js=new ks;function Ms(e,t){return js.instanceToPlain(e,t)}function X(e,t,n){return js.plainToInstance(e,t,n)}function Ns(e,t,n){return js.plainToInstance(e,t,n)}var Ps=class{};q([F(),W(),L({each:!0}),Y(()=>ys),K(`design:type`,Array)],Ps.prototype,`PointsList`,void 0);var Fs=class{};q([F(),H(),K(`design:type`,Number)],Fs.prototype,`Count`,void 0),q([F(),L({each:!0}),W(),Y(()=>Z),K(`design:type`,Array)],Fs.prototype,`List`,void 0),q([F(),L({each:!0}),W(),Y(()=>Ps),K(`design:type`,Array)],Fs.prototype,`Points`,void 0);var Is=class{};q([F(),V(or),K(`design:type`,or===void 0?Object:or)],Is.prototype,`docFormat`,void 0),q([F(),B(),K(`design:type`,Number)],Is.prototype,`Angle`,void 0),q([F(),B(),K(`design:type`,Number)],Is.prototype,`Width`,void 0),q([F(),B(),K(`design:type`,Number)],Is.prototype,`Height`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`Center`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`LeftBottom`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`LeftTop`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`RightBottom`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`RightTop`,void 0),q([F(),H(),K(`design:type`,Number)],Is.prototype,`Dpi`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`Inverse`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`ObjArea`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`ObjIntAngleDev`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`PerspectiveTr`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`ResultStatus`,void 0);var Ls=class{};q([U(),I(),Jo(),K(`design:type`,String)],Ls.prototype,`image`,void 0),q([U(),I(),K(`design:type`,String)],Ls.prototype,`format`,void 0);var Z=class{};q([F(),B(),K(`design:type`,Number)],Z.prototype,`left`,void 0),q([F(),B(),K(`design:type`,Number)],Z.prototype,`top`,void 0),q([F(),B(),K(`design:type`,Number)],Z.prototype,`right`,void 0),q([F(),B(),K(`design:type`,Number)],Z.prototype,`bottom`,void 0);var Rs=class{};q([F(),B(),K(`design:type`,Number)],Rs.prototype,`dg`,void 0),q([F(),B(),K(`design:type`,Number)],Rs.prototype,`dgTag`,void 0),q([F(),B(),K(`design:type`,Number)],Rs.prototype,`tagEntry`,void 0),q([F(),B(),K(`design:type`,Number)],Rs.prototype,`entryView`,void 0);var zs=class{};q([U(),Qo(4),F(),K(`design:type`,String)],zs.prototype,`ICAOCode`,void 0),q([I(),H(),K(`design:type`,Number)],zs.prototype,`Count`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],zs.prototype,`List`,void 0),q([F(),V(sr),K(`design:type`,sr===void 0?Object:sr)],zs.prototype,`dType`,void 0),q([F(),V(or),K(`design:type`,or===void 0?Object:or)],zs.prototype,`dFormat`,void 0),q([F(),z(),K(`design:type`,Boolean)],zs.prototype,`dMRZ`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dDescription`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dYear`,void 0),q([F(),U(),K(`design:type`,String)],zs.prototype,`dCountryName`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dStateCode`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dStateName`,void 0),q([F(),z(),K(`design:type`,Boolean)],zs.prototype,`isDeprecated`,void 0);var Bs=class{static{this.getNecessaryLights=e=>Za(typeof e==`number`?e:e.NecessaryLights)}static{this.getCheckAuthenticity=e=>qa(typeof e==`number`?e:e.CheckAuthenticity)}static{this.getAuthenticityNecessaryLights=e=>Za(typeof e==`number`?e:e.AuthenticityNecessaryLights)}};q([I(),U(),K(`design:type`,String)],Bs.prototype,`DocumentName`,void 0),q([F(),H(),K(`design:type`,Number)],Bs.prototype,`ID`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`P`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`Rotated180`,void 0),q([F(),V(Pr),K(`design:type`,Pr===void 0?Object:Pr)],Bs.prototype,`RFID_Presence`,void 0),q([I(),L(),Y(()=>zs),K(`design:type`,zs===void 0?Object:zs)],Bs.prototype,`FDSIDList`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`NecessaryLights`,void 0),q([F(),H(),K(`design:type`,Number)],Bs.prototype,`CheckAuthenticity`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`UVExp`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`AuthenticityNecessaryLights`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`OVIExp`,void 0),q([I(),H(),K(`design:type`,Number)],Bs.prototype,`RotationAngle`,void 0);var Vs=class{};q([F(),B(),K(`design:type`,Number)],Vs.prototype,`Type`,void 0),q([F(),B(),K(`design:type`,Number)],Vs.prototype,`Status`,void 0),q([F(),H(),K(`design:type`,Number)],Vs.prototype,`Length`,void 0),q([F(),K(`design:type`,Object)],Vs.prototype,`Data`,void 0);var Hs=class{};q([I(),B(),K(`design:type`,Number)],Hs.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],Hs.prototype,`Status`,void 0),q([I(),U(),K(`design:type`,String)],Hs.prototype,`Format`,void 0),q([F(),U(),K(`design:type`,String)],Hs.prototype,`Data`,void 0);var Us=class{};q([F(),U(),K(`design:type`,String)],Us.prototype,`Type`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Us.prototype,`Value`,void 0);var Ws=class{};q([F(),Jo(),U(),K(`design:type`,String)],Ws.prototype,`Data`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Ws.prototype,`FriendlyName`,void 0),q([F(),Y(()=>Us),L({each:!0}),W(),K(`design:type`,Array)],Ws.prototype,`Attributes`,void 0);var Gs=class{static{this.getLightingScheme=e=>Za(typeof e==`number`?e:e?.light??mr.OFF)}};q([I(),H(),K(`design:type`,Number)],Gs.prototype,`buf_length`,void 0),q([I(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Gs.prototype,`light`,void 0),q([I(),H(),K(`design:type`,Number)],Gs.prototype,`list_idx`,void 0),q([I(),H(),K(`design:type`,Number)],Gs.prototype,`page_idx`,void 0),q([F(),V(M),K(`design:type`,M===void 0?Object:M)],Gs.prototype,`result_type`,void 0);var Ks=class{};q([F(),V(A),K(`design:type`,A===void 0?Object:A)],Ks.prototype,`Type`,void 0),q([I(),V(j),K(`design:type`,j===void 0?Object:j)],Ks.prototype,`ElementResult`,void 0),q([I(),V(ir),K(`design:type`,ir===void 0?Object:ir)],Ks.prototype,`ElementDiagnose`,void 0),q([I(),H(),K(`design:type`,Number)],Ks.prototype,`PercentValue`,void 0);var qs,Js=class extends Ks{static{qs=this}static{this.fromPlain=e=>X(qs,e)}static{this.validate=e=>{let t=G(qs.fromPlain(e));if(t.length)throw new NS(`FibersTypeElement validation error: the data received does not match model structure!`,t);return!0}}};q([F(),H(),K(`design:type`,Number)],Js.prototype,`RectCount`,void 0),q([F(),H(),K(`design:type`,Number)],Js.prototype,`ExpectedCount`,void 0),q([I(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Js.prototype,`LightValue`,void 0),q([I(),H(),K(`design:type`,Number)],Js.prototype,`LightDisp`,void 0),q([F(),W(),L({each:!0}),Y(()=>Z),K(`design:type`,Array)],Js.prototype,`RectArray`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Js.prototype,`Width`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Js.prototype,`Length`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Js.prototype,`Area`,void 0),q([F(),W(),vs(3),hs(3),H({each:!0}),K(`design:type`,Array)],Js.prototype,`ColorValues`,void 0),q([F(),R([A.UV_FIBERS]),V(A),K(`design:type`,A===void 0||A.UV_FIBERS===void 0?Object:A.UV_FIBERS)],Js.prototype,`Type`,void 0),Js=qs=q([J()],Js);var Ys=class{};q([F(),V(A),K(`design:type`,A===void 0?Object:A)],Ys.prototype,`Type`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Ys.prototype,`Result`,void 0),q([I(),H(),K(`design:type`,Number)],Ys.prototype,`Count`,void 0),q([F(),W(),K(`design:type`,Array)],Ys.prototype,`List`,void 0);var Xs,Zs=[A.UV_FIBERS],Qs=class extends Ys{static{Xs=this}static{this.fromPlain=e=>X(Xs,e)}static{this.isBelongs=e=>{let t=e;return Zs.includes(t?.Type)}}};q([F(),R(Zs),V(A),K(`design:type`,Object)],Qs.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>Js),K(`design:type`,Array)],Qs.prototype,`List`,void 0),Qs=Xs=q([J()],Qs);var $s=class extends Ks{};q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],$s.prototype,`ElementType`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],$s.prototype,`LightIndex`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],$s.prototype,`Area`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],$s.prototype,`Image`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],$s.prototype,`EtalonImage`,void 0),q([I(),L(),Y(()=>Fs),K(`design:type`,Fs===void 0?Object:Fs)],$s.prototype,`AreaList`,void 0),q([I(),B(),K(`design:type`,Number)],$s.prototype,`ElementID`,void 0),q([F(),R([A.IMAGE_PATTERN,A.IR_VISIBILITY,A.OVI,A.PORTRAIT_COMPARISON,A.KINEGRAM,A.LETTER_SCREEN,A.HOLOGRAM_DETECTION,A.FINGERPRINT_COMPARISON,A.LIVENESS]),V(A),K(`design:type`,Object)],$s.prototype,`Type`,void 0);var ec,tc=[A.IMAGE_PATTERN,A.IR_VISIBILITY,A.OVI,A.PORTRAIT_COMPARISON,A.KINEGRAM,A.LETTER_SCREEN,A.HOLOGRAM_DETECTION,A.FINGERPRINT_COMPARISON,A.LIVENESS],nc=class extends Ys{static{ec=this}static{this.fromPlain=e=>X(ec,e)}static{this.isBelongs=e=>tc.includes(e?.Type)}};q([F(),R(tc),V(A),K(`design:type`,Object)],nc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>$s),K(`design:type`,Array)],nc.prototype,`List`,void 0),nc=ec=q([J()],nc);var rc=class extends Ks{};q([F(),V(ar),K(`design:type`,ar===void 0?Object:ar)],rc.prototype,`CriticalFlag`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],rc.prototype,`LightType`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],rc.prototype,`FieldRect`,void 0),q([F(),B(),K(`design:type`,Number)],rc.prototype,`EtalonResultType`,void 0),q([F(),V(P),K(`design:type`,P===void 0?Object:P)],rc.prototype,`EtalonFieldType`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],rc.prototype,`EtalonLightType`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],rc.prototype,`EtalonFieldRect`,void 0),q([F(),U(),K(`design:type`,String)],rc.prototype,`SecurityTextResultOCR`,void 0),q([F(),U(),K(`design:type`,String)],rc.prototype,`EtalonResultOCR`,void 0),q([I(),K(`design:type`,Number)],rc.prototype,`Reserved1`,void 0),q([I(),K(`design:type`,Number)],rc.prototype,`Reserved2`,void 0),q([F(),R([A.OCR_SECURITY_TEXT,A.ENCRYPTED_IPI]),V(A),K(`design:type`,Object)],rc.prototype,`Type`,void 0);var ic,ac=[A.OCR_SECURITY_TEXT,A.ENCRYPTED_IPI],oc=class extends Ys{static{ic=this}static{this.fromPlain=e=>X(ic,e)}static{this.isBelongs=e=>ac.includes(e.Type)}};q([F(),R(ac),V(A),K(`design:type`,Object)],oc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>rc),K(`design:type`,Array)],oc.prototype,`List`,void 0),oc=ic=q([J()],oc);var sc=class{};q([F(),H(),K(`design:type`,Number)],sc.prototype,`Count`,void 0),q([F(),W(),L({each:!0}),Y(()=>Ls),K(`design:type`,Array)],sc.prototype,`Images`,void 0);var cc=class extends Ks{};q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],cc.prototype,`LightIndex`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],cc.prototype,`Area`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],cc.prototype,`SourceImage`,void 0),q([F(),L(),Y(()=>sc),K(`design:type`,sc===void 0?Object:sc)],cc.prototype,`ResultImages`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`FieldTypesCount`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],cc.prototype,`FieldTypesList`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`Step`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`Angle`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`Reserved3`,void 0),q([F(),R([A.IPI]),V(A),K(`design:type`,A===void 0||A.IPI===void 0?Object:A.IPI)],cc.prototype,`Type`,void 0);var lc,uc=[A.IPI],dc=class extends Ys{static{lc=this}static{this.fromPlain=e=>X(lc,e)}static{this.isBelongs=e=>uc.includes(e?.Type)}};q([F(),R(uc),V(A),K(`design:type`,Object)],dc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>cc),K(`design:type`,Array)],dc.prototype,`List`,void 0),dc=lc=q([J()],dc);var fc=class extends Ks{};q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],fc.prototype,`ElementType`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],fc.prototype,`ElementRect`,void 0),q([F(),V(Ur),K(`design:type`,Ur===void 0?Object:Ur)],fc.prototype,`Visibility`,void 0),q([F(),V(ar),K(`design:type`,ar===void 0?Object:ar)],fc.prototype,`CriticalFlag`,void 0),q([I(),L(),Y(()=>Fs),K(`design:type`,Fs===void 0?Object:Fs)],fc.prototype,`AreaList`,void 0),q([I(),H(),K(`design:type`,Number)],fc.prototype,`Reserved2`,void 0),q([F(),R([A.UV_LUMINESCENCE,A.IR_B900,A.AXIAL_PROTECTION,A.PHOTO_EMBED_TYPE,A.HOLOGRAMS,A.PHOTO_AREA,A.BARCODE_FORMAT_CHECK,A.EXTENDED_OCR_CHECK,A.EXTENDED_MRZ_CHECK]),V(A),K(`design:type`,Object)],fc.prototype,`Type`,void 0);var pc,mc=[A.UV_LUMINESCENCE,A.IR_B900,A.AXIAL_PROTECTION,A.PHOTO_EMBED_TYPE,A.HOLOGRAMS,A.PHOTO_AREA,A.BARCODE_FORMAT_CHECK,A.EXTENDED_OCR_CHECK,A.EXTENDED_MRZ_CHECK],hc=class extends Ys{static{pc=this}static{this.fromPlain=e=>X(pc,e)}static{this.isBelongs=e=>mc.includes(e?.Type)}};q([F(),R(mc),V(A),K(`design:type`,Object)],hc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>fc),K(`design:type`,Array)],hc.prototype,`List`,void 0),hc=pc=q([J()],hc);var gc=e=>{let t=[];return e.forEach(e=>{if(!xv(e)||!(`Type`in e))return;let{Type:n}=e;switch(n){case A.UV_FIBERS:t.push(Qs.fromPlain(e));break;case A.IMAGE_PATTERN:case A.IR_VISIBILITY:case A.OVI:case A.PORTRAIT_COMPARISON:case A.KINEGRAM:case A.LETTER_SCREEN:case A.HOLOGRAM_DETECTION:case A.FINGERPRINT_COMPARISON:case A.LIVENESS:t.push(nc.fromPlain(e));break;case A.OCR_SECURITY_TEXT:case A.ENCRYPTED_IPI:t.push(oc.fromPlain(e));break;case A.IPI:t.push(dc.fromPlain(e));break;case A.UV_LUMINESCENCE:case A.IR_B900:case A.AXIAL_PROTECTION:case A.PHOTO_EMBED_TYPE:case A.HOLOGRAMS:case A.PHOTO_AREA:case A.BARCODE_FORMAT_CHECK:case A.EXTENDED_OCR_CHECK:case A.EXTENDED_MRZ_CHECK:t.push(hc.fromPlain(e));break}}),t},_c=class{};q([F(),H(),K(`design:type`,Number)],_c.prototype,`Count`,void 0),q([L({each:!0}),As(({obj:e})=>gc(e.List),{toClassOnly:!0}),W(),K(`design:type`,Array)],_c.prototype,`List`,void 0);var vc,yc=[M.AUTHENTICITY,M.FINGERPRINT_COMPARISON,M.PORTRAIT_COMPARISON],bc=class extends Gs{static{vc=this}static{this.fromPlain=e=>X(vc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>yc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(vc.fromPlain(e));if(t.length)throw new NS(`AuthenticityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>_c),K(`design:type`,_c===void 0?Object:_c)],bc.prototype,`AuthenticityCheckList`,void 0),q([F(),V(M),R(yc),K(`design:type`,Object)],bc.prototype,`result_type`,void 0),bc=vc=q([J()],bc);var xc,Sc=[M.DOCUMENT_POSITION],Cc=class extends Gs{static{xc=this}static{this.fromPlain=e=>X(xc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>Sc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(xc.fromPlain(e));if(t.length)throw new NS(`BoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Is),K(`design:type`,Is===void 0?Object:Is)],Cc.prototype,`DocumentPosition`,void 0),q([F(),V(M),R(Sc),K(`design:type`,Object)],Cc.prototype,`result_type`,void 0),Cc=xc=q([J()],Cc);var wc,Tc=[M.BARCODE_POSITION],Ec=class extends Gs{static{wc=this}static{this.fromPlain=e=>X(wc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>Tc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(wc.fromPlain(e));if(t.length)throw new NS(`BarcodeBoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Is),K(`design:type`,Is===void 0?Object:Is)],Ec.prototype,`BarcodePosition`,void 0),q([F(),V(M),R(Tc),K(`design:type`,Object)],Ec.prototype,`result_type`,void 0),Ec=wc=q([J()],Ec);var Dc=class{};q([F(),U(),K(`design:type`,String)],Dc.prototype,`mData`,void 0),q([F(),B(),K(`design:type`,Number)],Dc.prototype,`mLength`,void 0),q([I(),K(`design:type`,Number)],Dc.prototype,`mReserved1`,void 0),q([I(),K(`design:type`,Number)],Dc.prototype,`mReserver2`,void 0),q([F(),V(nr),K(`design:type`,nr===void 0?Object:nr)],Dc.prototype,`mType`,void 0);var Oc=class{};q([F(),B(),K(`design:type`,Number)],Oc.prototype,`Angle`,void 0),q([F(),B(),K(`design:type`,Number)],Oc.prototype,`bcColumn`,void 0),q([F(),B(),K(`design:type`,Number)],Oc.prototype,`bcErrorLevel`,void 0),q([F(),B(),K(`design:type`,Number)],Oc.prototype,`bcRow`,void 0),q([I(),B(),K(`design:type`,Number)],Oc.prototype,`minX`,void 0),q([I(),B(),K(`design:type`,Number)],Oc.prototype,`minY`,void 0);var kc=class{};q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcAngle_DETECT`,void 0),q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcCodeResult`,void 0),q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcCountModule`,void 0),q([F(),W(),L({each:!0}),Y(()=>Dc),K(`design:type`,Array)],kc.prototype,`bcDataModule`,void 0),q([I(),L(),Y(()=>Oc),K(`design:type`,Oc===void 0?Object:Oc)],kc.prototype,`bcPDF417INFO`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],kc.prototype,`bcROI_DETECT`,void 0),q([I(),B(),K(`design:type`,Number)],kc.prototype,`bcTextDecoderTypes`,void 0),q([I(),V(P),K(`design:type`,P===void 0?Object:P)],kc.prototype,`bcTextFieldType`,void 0),q([F(),V(rr),K(`design:type`,rr===void 0?Object:rr)],kc.prototype,`bcType_DECODE`,void 0),q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcType_DETECT`,void 0);var Ac=class{};q([F(),H(),K(`design:type`,Number)],Ac.prototype,`nFields`,void 0),q([F(),L({each:!0}),Y(()=>kc),W(),K(`design:type`,Array)],Ac.prototype,`pArrayFields`,void 0);var jc,Mc=[M.BARCODES],Nc=class extends Gs{static{jc=this}static{this.fromPlain=e=>X(jc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>Mc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(jc.fromPlain(e));if(t.length)throw new NS(`DocBarCodeInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Ac),K(`design:type`,Ac===void 0?Object:Ac)],Nc.prototype,`DocBarCodeInfo`,void 0),q([F(),V(M),R(Mc),K(`design:type`,Object)],Nc.prototype,`result_type`,void 0),Nc=jc=q([J()],Nc);var Pc=class{};q([F(),H(),K(`design:type`,Number)],Pc.prototype,`Type`,void 0),q([F(),V(or),K(`design:type`,or===void 0?Object:or)],Pc.prototype,`DocumentID`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`DocumentType`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`State`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Holder`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`DocumentNumber`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitDocumentNumber`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Nationality`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Birthday`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitBirthday`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Sex`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`ExpiryDate`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitExpiryDate`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`OptionalData`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitOptionalData`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitComposite`,void 0);var Fc=class{};q([F(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Fc.prototype,`Type`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Fc.prototype,`Status`,void 0),q([I(),H(),K(`design:type`,Number)],Fc.prototype,`ActiveOptionIdx`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Fc.prototype,`Notifications`,void 0),q([I(),W(),K(`design:type`,Array)],Fc.prototype,`AccessControlOptions`,void 0);var Ic=class{};q([F(),U(),K(`design:type`,String)],Ic.prototype,`AccessKey`,void 0),q([F(),V(Fr),K(`design:type`,Fr===void 0?Object:Fr)],Ic.prototype,`KeyType`,void 0),q([F(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Ic.prototype,`AccessType`,void 0),q([F(),z(),K(`design:type`,Boolean)],Ic.prototype,`CheckFullKeyMatching`,void 0);var Lc=class{};q([I(),V(Cr,{each:!0}),K(`design:type`,Array)],Lc.prototype,`ParsingNotifications`,void 0);var Rc=class{};q([F(),U(),K(`design:type`,String)],Rc.prototype,`Data`,void 0),q([F(),B(),K(`design:type`,Number)],Rc.prototype,`Length`,void 0);var zc=class{};q([I(),Y(()=>Rc),L(),K(`design:type`,Rc===void 0?Object:Rc)],zc.prototype,`Certificate_Data`,void 0);var Bc=class{};q([U(),I(),K(`design:type`,String)],Bc.prototype,`FileID`,void 0),q([F(),V(N),K(`design:type`,N===void 0?Object:N)],Bc.prototype,`Type`,void 0),q([I(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],Bc.prototype,`FileData`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Bc.prototype,`ReadingStatus`,void 0),q([I(),H(),K(`design:type`,Number)],Bc.prototype,`ReadingTime`,void 0),q([I(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Bc.prototype,`PA_Status`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Bc.prototype,`Notifications`,void 0),q([I(),V(P,{each:!0}),K(`design:type`,Array)],Bc.prototype,`DocFields_Text`,void 0),q([I(),V(lr,{each:!0}),K(`design:type`,Array)],Bc.prototype,`DocFields_Graphics`,void 0),q([I(),V(lr,{each:!0}),K(`design:type`,Array)],Bc.prototype,`DocFields_Originals`,void 0),q([I(),Y(()=>Lc),L(),K(`design:type`,Lc===void 0?Object:Lc)],Bc.prototype,`ParsedData`,void 0),q([I(),Y(()=>zc),L(),K(`design:type`,zc===void 0?Object:zc)],Bc.prototype,`SecurityObject_Certificates`,void 0);var Vc=class{};q([F(),V(kr),K(`design:type`,kr===void 0?Object:kr)],Vc.prototype,`Type`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Vc.prototype,`Status`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`ApplicationID`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`Version`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`UnicodeVersion`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`DataHashAlgorithm`,void 0),q([F(),Y(()=>Bc),L({each:!0}),K(`design:type`,Array)],Vc.prototype,`Files`,void 0);var Hc=class{};q([F(),V(Lr),K(`design:type`,Lr===void 0?Object:Lr)],Hc.prototype,`RFID_Type`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`Baudrate1`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`Baudrate2`,void 0),q([F(),z(),K(`design:type`,Boolean)],Hc.prototype,`Support_4`,void 0),q([F(),V(Dr),K(`design:type`,Dr===void 0?Object:Dr)],Hc.prototype,`ChipType_A`,void 0),q([F(),z(),K(`design:type`,Boolean)],Hc.prototype,`Support_Mifare`,void 0),q([F(),H(),K(`design:type`,Number)],Hc.prototype,`MifareMemory`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`UID`,void 0),q([F(),K(`design:type`,Object)],Hc.prototype,`ATQ_A`,void 0),q([F(),K(`design:type`,Object)],Hc.prototype,`SAK`,void 0),q([F(),K(`design:type`,Object)],Hc.prototype,`ATQ_B`,void 0),q([F(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Hc.prototype,`BitRateS`,void 0),q([F(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Hc.prototype,`BitRateR`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`ATR`,void 0);var Uc=class{};q([F(),U(),K(`design:type`,String)],Uc.prototype,`Type`,void 0),q([F(),U(),Jo(),K(`design:type`,String)],Uc.prototype,`Data`,void 0);var Wc=class{};q([F(),U(),K(`design:type`,String)],Wc.prototype,`Type`,void 0),q([F(),U(),Jo(),K(`design:type`,String)],Wc.prototype,`Data`,void 0);var Gc=class{};q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Gc.prototype,`NotBefore`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Gc.prototype,`NotAfter`,void 0);var Kc=class{};q([F(),B(),K(`design:type`,Number)],Kc.prototype,`Version`,void 0),q([F(),Jo(),U(),K(`design:type`,String)],Kc.prototype,`SerialNumber`,void 0),q([F(),U(),K(`design:type`,String)],Kc.prototype,`SignatureAlgorithm`,void 0),q([F(),Y(()=>Ws),L(),K(`design:type`,Ws===void 0?Object:Ws)],Kc.prototype,`Issuer`,void 0),q([F(),Y(()=>Gc),L(),K(`design:type`,Gc===void 0?Object:Gc)],Kc.prototype,`Validity`,void 0),q([F(),Y(()=>Ws),L(),K(`design:type`,Ws===void 0?Object:Ws)],Kc.prototype,`Subject`,void 0),q([F(),U(),K(`design:type`,String)],Kc.prototype,`SubjectPKAlgorithm`,void 0),q([F(),Y(()=>Wc),L({each:!0}),W(),K(`design:type`,Array)],Kc.prototype,`Extensions`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Kc.prototype,`Notifications`,void 0),q([F(),V(Mr),K(`design:type`,Mr===void 0?Object:Mr)],Kc.prototype,`Origin`,void 0),q([F(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Kc.prototype,`Type`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Kc.prototype,`FileName`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Kc.prototype,`PA_Status`,void 0);var qc=class{};q([F(),B(),K(`design:type`,Number)],qc.prototype,`Version`,void 0),q([F(),Y(()=>Ws),L(),K(`design:type`,Ws===void 0?Object:Ws)],qc.prototype,`Issuer`,void 0),q([F(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],qc.prototype,`SerialNumber`,void 0),q([F(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],qc.prototype,`SubjectKeyIdentifier`,void 0),q([F(),U(),K(`design:type`,String)],qc.prototype,`DigestAlgorithm`,void 0),q([F(),Y(()=>Uc),L({each:!0}),W(),K(`design:type`,Array)],qc.prototype,`SignedAttributes`,void 0),q([F(),U(),K(`design:type`,String)],qc.prototype,`SignatureAlgorithm`,void 0),q([F(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],qc.prototype,`Signature`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],qc.prototype,`PA_Status`,void 0),q([F(),Y(()=>Kc),L({each:!0}),W(),K(`design:type`,Array)],qc.prototype,`CertificateChain`,void 0),q([F(),U(),Jo(),K(`design:type`,String)],qc.prototype,`DataToHash`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],qc.prototype,`Notifications`,void 0);var Jc=class{};q([F(),B(),K(`design:type`,Number)],Jc.prototype,`Version`,void 0),q([F(),U(),K(`design:type`,String)],Jc.prototype,`ObjectType`,void 0),q([F(),H(),K(`design:type`,Number)],Jc.prototype,`FileReference`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Jc.prototype,`Notifications`,void 0),q([F(),Y(()=>qc),W(),K(`design:type`,Array)],Jc.prototype,`SignerInfos`,void 0);var Yc=class{static{this.getAuthReq=e=>eo(typeof e==`number`?e:e.AuthReq)}static{this.getAuthReq2=e=>eo(typeof e==`number`?e:e.AuthReq2)}};q([F(),V(Ir),K(`design:type`,Ir===void 0?Object:Ir)],Yc.prototype,`TermType`,void 0),q([F(),H(),K(`design:type`,Number)],Yc.prototype,`AuthReq`,void 0),q([F(),H(),K(`design:type`,Number)],Yc.prototype,`AuthReq2`,void 0);var Xc=class{};q([I(),z(),K(`design:type`,Boolean)],Xc.prototype,`VirtualMode`,void 0),q([I(),U(),K(`design:type`,String)],Xc.prototype,`SDKVersion`,void 0),q([I(),U(),K(`design:type`,String)],Xc.prototype,`DriverVersion`,void 0),q([I(),U(),K(`design:type`,String)],Xc.prototype,`FirmwareVersion`,void 0),q([F(),L({each:!0}),Y(()=>Vc),K(`design:type`,Array)],Xc.prototype,`Applications`,void 0),q([F(),L({each:!0}),Y(()=>Fc),K(`design:type`,Array)],Xc.prototype,`AccessControls`,void 0),q([F(),L(),Y(()=>Hc),K(`design:type`,Hc===void 0?Object:Hc)],Xc.prototype,`CardProperties`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Xc.prototype,`ExtLeSupport`,void 0),q([F(),H(),K(`design:type`,Number)],Xc.prototype,`ProcessTime`,void 0),q([F(),H(),K(`design:type`,Number)],Xc.prototype,`TotalBytesSent`,void 0),q([F(),H(),K(`design:type`,Number)],Xc.prototype,`TotalBytesReceived`,void 0),q([F(),L(),Y(()=>Ic),K(`design:type`,Ic===void 0?Object:Ic)],Xc.prototype,`Session_key`,void 0),q([F(),L(),Y(()=>Yc),K(`design:type`,Yc===void 0?Object:Yc)],Xc.prototype,`Session_terminal`,void 0),q([F(),V(Ar),K(`design:type`,Ar===void 0?Object:Ar)],Xc.prototype,`Session_procedure`,void 0),q([F(),L({each:!0}),Y(()=>Jc),K(`design:type`,Array)],Xc.prototype,`SecurityObjects`,void 0);var Zc=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`overallStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`docType`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`expiry`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`imageQA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`mrz`,void 0),q([F(),H(),K(`design:type`,Number)],Zc.prototype,`pagesCount`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`security`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`text`,void 0),q([I(),H(),K(`design:type`,Number)],Zc.prototype,`vds`,void 0);var Qc=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`overallStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`AA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`BAC`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`CA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`PA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`PACE`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`TA`,void 0);var $c=class{};q([F(),H(),K(`design:type`,Number)],$c.prototype,`threshold`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`overThreshold`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over18`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over21`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over25`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over65`,void 0);var el=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`overallStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`optical`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`portrait`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`rfid`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`stopList`,void 0),q([I(),L(),Y(()=>Qc),K(`design:type`,Qc===void 0?Object:Qc)],el.prototype,`detailsRFID`,void 0),q([F(),L(),Y(()=>Zc),K(`design:type`,Zc===void 0?Object:Zc)],el.prototype,`detailsOptical`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`age`,void 0),q([F(),L(),Y(()=>$c),K(`design:type`,$c===void 0?Object:$c)],el.prototype,`detailsAge`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`mDL`,void 0);var tl,nl=[M.STATUS],rl=class extends Gs{static{tl=this}static{this.fromPlain=e=>X(tl,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>nl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(tl.fromPlain(e));if(t.length)throw new NS(`StatusContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>el),K(`design:type`,el===void 0?Object:el)],rl.prototype,`Status`,void 0),q([F(),V(M),R(nl),K(`design:type`,Object)],rl.prototype,`result_type`,void 0),rl=tl=q([J()],rl);var Q=class{};q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_Authentication_Info`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data_Validity`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_COM`,void 0),q([I(),L(),Y(()=>Pc),K(`design:type`,Pc===void 0?Object:Pc)],Q.prototype,`RFID_DG1`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG2`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG3`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG4`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG5`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG6`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG7`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG8`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG9`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG10`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG11`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG12`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG13`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG14`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG15`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG16`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_SOD`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG1`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG2`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG3`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG4`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG5`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG6`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG7`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG8`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG9`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG10`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG11`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG12`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG13`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG14`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG15`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG16`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG17`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG18`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG19`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG20`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG21`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_COM`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_SOD`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG1`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG2`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG3`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG4`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG5`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG6`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG7`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG8`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG9`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG10`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG11`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG12`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG13`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG14`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal_NC`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Digital_Signature`,void 0),q([I(),L(),Y(()=>Xc),K(`design:type`,Xc===void 0?Object:Xc)],Q.prototype,`RFID_Session_Data`,void 0),q([I(),L(),Y(()=>Qc),K(`design:type`,Qc===void 0?Object:Qc)],Q.prototype,`RFID_Session_Data_Status`,void 0),q([I(),W(),V(N,{each:!0}),K(`design:type`,Array)],Q.prototype,`RFID_ePassp_Directory`,void 0);var il=class{};q([F(),U(),K(`design:type`,String)],il.prototype,`Data`,void 0),q([F(),B(),K(`design:type`,Number)],il.prototype,`FieldType`,void 0);var al=class{};q([I(),L(),Y(()=>Q),K(`design:type`,Q===void 0?Object:Q)],al.prototype,`RFID_BINARY_DATA`,void 0),q([I(),L(),Y(()=>il),K(`design:type`,Array)],al.prototype,`RFID_RAW_DATA`,void 0);var ol,sl=[M.RFID_BINARY_DATA,M.RFID_RAW_DATA],cl=class extends Gs{static{ol=this}static{this.fromPlain=e=>X(ol,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>sl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ol.fromPlain(e));if(t.length)throw new NS(`DocBinaryInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>al),K(`design:type`,al===void 0?Object:al)],cl.prototype,`TDocBinaryInfo`,void 0),q([F(),V(M),R(sl),K(`design:type`,Object)],cl.prototype,`result_type`,void 0),cl=ol=q([J()],cl);var ll=class{};q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],ll.prototype,`FieldRect`,void 0),q([F(),V(lr),K(`design:type`,lr===void 0?Object:lr)],ll.prototype,`FieldType`,void 0),q([F(),U(),K(`design:type`,String)],ll.prototype,`FieldName`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],ll.prototype,`image`,void 0);var ul=class{};q([F(),L(),Y(()=>ll),K(`design:type`,Array)],ul.prototype,`pArrayFields`,void 0),q([F(),H(),K(`design:type`,Number)],ul.prototype,`nFields`,void 0);var dl,fl=[M.VISUAL_GRAPHICS,M.BARCODE_GRAPHICS,M.LIVE_PORTRAIT,M.EXT_PORTRAIT,M.FINGERPRINTS,M.RFID_GRAPHICS],pl=class extends Gs{static{dl=this}static{this.fromPlain=e=>X(dl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>fl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(dl.fromPlain(e));if(t.length)throw new NS(`DocGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>ul),K(`design:type`,ul===void 0?Object:ul)],pl.prototype,`DocGraphicsInfo`,void 0),q([F(),V(M),R(fl),K(`design:type`,Object)],pl.prototype,`result_type`,void 0),pl=dl=q([J()],pl);var ml=class{};q([F(),H(),K(`design:type`,Number)],ml.prototype,`SymbolCode`,void 0),q([F(),H(),K(`design:type`,Number)],ml.prototype,`SymbolProbability`,void 0),q([I(),H(),K(`design:type`,Number)],ml.prototype,`Class`,void 0),q([I(),H(),K(`design:type`,Number)],ml.prototype,`SubClass`,void 0);var hl=class{};q([I(),L({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],hl.prototype,`SymbolRect`,void 0),q([F(),H(),K(`design:type`,Number)],hl.prototype,`CandidatesCount`,void 0),q([F(),L({each:!0}),Y(()=>ml),K(`design:type`,Array)],hl.prototype,`ListOfCandidates`,void 0),q([I(),H(),K(`design:type`,Number)],hl.prototype,`BaseLineBottom`,void 0),q([I(),H(),K(`design:type`,Number)],hl.prototype,`BaseLineTop`,void 0);var gl=class{};q([F(),H(),K(`design:type`,Number)],gl.prototype,`SymbolsCount`,void 0),q([F(),L({each:!0}),Y(()=>hl),K(`design:type`,Array)],gl.prototype,`StringResult`,void 0),q([I(),H(),K(`design:type`,Number)],gl.prototype,`Buf_Length`,void 0),q([I(),U(),K(`design:type`,String)],gl.prototype,`Buf_Text`,void 0),q([I(),H(),K(`design:type`,Number)],gl.prototype,`Reserved`,void 0);var _l=class{};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],_l.prototype,`wFieldType`,void 0),q([F(),U(),K(`design:type`,String)],_l.prototype,`FieldName`,void 0),q([F(),H(),K(`design:type`,Number)],_l.prototype,`StringsCount`,void 0),q([F(),L({each:!0}),Y(()=>gl),K(`design:type`,Array)],_l.prototype,`StringsResult`,void 0),q([F(),H(),K(`design:type`,Number)],_l.prototype,`Buf_Length`,void 0),q([F(),U(),K(`design:type`,String)],_l.prototype,`Buf_Text`,void 0),q([I(),U(),K(`design:type`,String)],_l.prototype,`FieldMask`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`Validity`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`InComparison`,void 0),q([I(),V(pr),K(`design:type`,pr===void 0?Object:pr)],_l.prototype,`wLCID`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`Reserved2`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`Reserved3`,void 0);var vl=class extends _l{};q([F(),L({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],vl.prototype,`FieldRect`,void 0);var yl=class{};q([F(),H(),K(`design:type`,Number)],yl.prototype,`nFields`,void 0),q([F(),L({each:!0}),Y(()=>vl),K(`design:type`,Array)],yl.prototype,`pArrayFields`,void 0);var bl,xl=[M.VISUAL_TEXT,M.MRZ_TEXT,M.BARCODE_TEXT,M.MAGNETIC_STRIPE_TEXT_DATA,M.RFID_TEXT],Sl=class extends Gs{static{bl=this}static{this.fromPlain=e=>X(bl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>xl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(bl.fromPlain(e));if(t.length)throw new NS(`DocVisualExtendedInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>yl),K(`design:type`,yl===void 0?Object:yl)],Sl.prototype,`DocVisualExtendedInfo`,void 0),q([F(),V(M),R(xl),K(`design:type`,Object)],Sl.prototype,`result_type`,void 0),Sl=bl=q([J()],Sl);var Cl,wl=[M.ENCRYPTED_RCL],Tl=class extends Gs{static{Cl=this}static{this.fromPlain=e=>X(Cl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>wl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Cl.fromPlain(e));if(t.length)throw new NS(`EncryptedRCLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),Jo(),K(`design:type`,String)],Tl.prototype,`EncryptedRCL`,void 0),q([F(),V(M),R(wl),K(`design:type`,Object)],Tl.prototype,`result_type`,void 0),Tl=Cl=q([J()],Tl);var El=class{};q([F(),V(ur),K(`design:type`,ur===void 0?Object:ur)],El.prototype,`type`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],El.prototype,`result`,void 0),q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],El.prototype,`featureType`,void 0),q([I(),L(),Y(()=>Fs),K(`design:type`,Fs===void 0?Object:Fs)],El.prototype,`areas`,void 0),q([F(),B(),K(`design:type`,Number)],El.prototype,`mean`,void 0),q([F(),B(),K(`design:type`,Number)],El.prototype,`std_dev`,void 0),q([F(),H(),K(`design:type`,Number)],El.prototype,`probability`,void 0);var Dl=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Dl.prototype,`result`,void 0),q([F(),L({each:!0}),Y(()=>El),W(),K(`design:type`,Array)],Dl.prototype,`List`,void 0),q([F(),H(),K(`design:type`,Number)],Dl.prototype,`Count`,void 0);var Ol,kl=[M.IMAGE_QUALITY],Al=class extends Gs{static{Ol=this}static{this.fromPlain=e=>X(Ol,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>kl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Ol.fromPlain(e));if(t.length)throw new NS(`ImageQualityCheckListContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Dl),K(`design:type`,Dl===void 0?Object:Dl)],Al.prototype,`ImageQualityCheckList`,void 0),q([F(),V(M),R(kl),K(`design:type`,Object)],Al.prototype,`result_type`,void 0),Al=Ol=q([J()],Al);var jl=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],jl.prototype,`source`,void 0),q([I(),U(),Jo(),K(`design:type`,String)],jl.prototype,`value`,void 0),q([I(),U(),Jo(),K(`design:type`,String)],jl.prototype,`originalValue`,void 0),q([I(),H(),K(`design:type`,Number)],jl.prototype,`originalPageIndex`,void 0),q([F(),H(),K(`design:type`,Number)],jl.prototype,`pageIndex`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],jl.prototype,`lightIndex`,void 0),q([F(),H(),K(`design:type`,Number)],jl.prototype,`containerType`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],jl.prototype,`fieldRect`,void 0),q([I(),L(),Y(()=>Rs),K(`design:type`,Rs===void 0?Object:Rs)],jl.prototype,`rfidOrigin`,void 0);var Ml=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Images:r}=e;r.fieldList.forEach(e=>{if(!t){n.push(e);return}t.includes(e.fieldType)&&n.push(e)})}),n}}};q([F(),U(),K(`design:type`,String)],Ml.prototype,`fieldName`,void 0),q([F(),V(lr),K(`design:type`,lr===void 0?Object:lr)],Ml.prototype,`fieldType`,void 0),q([F(),L({each:!0}),Y(()=>jl),W(),K(`design:type`,Array)],Ml.prototype,`valueList`,void 0),q([I(),H(),As(({obj:e})=>e.valueList.length,{toClassOnly:!0}),K(`design:type`,Number)],Ml.prototype,`valueCount`,void 0);var Nl=class{};q([F(),B(),K(`design:type`,Number)],Nl.prototype,`containerType`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Nl.prototype,`source`,void 0);var Pl=class{};q([I(),H(),As(({obj:e})=>e.fieldList.length,{toClassOnly:!0}),K(`design:type`,Number)],Pl.prototype,`fieldCount`,void 0),q([I(),H(),As(({obj:e})=>e.availableSourceList.length,{toClassOnly:!0}),K(`design:type`,Number)],Pl.prototype,`availableSourceCount`,void 0),q([F(),L({each:!0}),Y(()=>Nl),W(),K(`design:type`,Array)],Pl.prototype,`availableSourceList`,void 0),q([F(),L({each:!0}),Y(()=>Ml),W(),K(`design:type`,Array)],Pl.prototype,`fieldList`,void 0);var Fl,Il=[M.IMAGES],Ll=class extends Gs{static{Fl=this}static{this.fromPlain=e=>X(Fl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Il.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Fl.fromPlain(e));if(t.length)throw new NS(`ImagesResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Pl),K(`design:type`,Pl===void 0?Object:Pl)],Ll.prototype,`Images`,void 0),q([F(),V(M),R(Il),K(`design:type`,Object)],Ll.prototype,`result_type`,void 0),Ll=Fl=q([J()],Ll);var Rl,zl=[M.LICENSE],Bl=class extends Gs{static{Rl=this}static{this.fromPlain=e=>X(Rl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>zl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Rl.fromPlain(e));if(t.length)throw new NS(`LicenseContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),Jo(),K(`design:type`,String)],Bl.prototype,`License`,void 0),q([F(),V(M),R(zl),K(`design:type`,Object)],Bl.prototype,`result_type`,void 0),Bl=Rl=q([J()],Bl);var Vl=class{static{this.getMRZDataVerificationResult=e=>e.Matrix[0]}static{this.getRFIDDataVerificationResult=e=>e.Matrix[1]}static{this.getVisualDataVerificationResult=e=>e.Matrix[2]}static{this.getBarcodeDataVerificationResult=e=>e.Matrix[3]}static{this.getMRZAndRFIDDataComparingResult=e=>e.Matrix[4]}static{this.getMRZAndVisualDataComparingResult=e=>e.Matrix[5]}static{this.getMRZAndBarcodeDataComparingResult=e=>e.Matrix[6]}static{this.getVisualAndRFIDDataComparingResult=e=>e.Matrix[7]}static{this.getVisualAndBarcodeDataComparingResult=e=>e.Matrix[8]}static{this.getRFIDAndBarcodeDataComparingResult=e=>e.Matrix[9]}};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],Vl.prototype,`wFieldType`,void 0),q([I(),V(pr),K(`design:type`,pr===void 0?Object:pr)],Vl.prototype,`wLCID`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_MRZ`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_Visual`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_Barcode`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_RFID`,void 0),q([F(),V(Hr,{each:!0}),W(),hs(10),vs(10),K(`design:type`,Array)],Vl.prototype,`Matrix`,void 0);var Hl=class{};q([F(),H(),K(`design:type`,Number)],Hl.prototype,`Count`,void 0),q([F(),W(),L({each:!0}),Y(()=>Vl),K(`design:type`,Array)],Hl.prototype,`pFieldMaps`,void 0),q([I(),U(),K(`design:type`,String)],Hl.prototype,`pDateFormat`,void 0);var Ul,Wl=[M.LEXICAL_ANALYSIS],Gl=class extends Gs{static{Ul=this}static{this.fromPlain=e=>X(Ul,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Wl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Ul.fromPlain(e));if(t.length)throw new NS(`ListVerifiedFieldContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Hl),K(`design:type`,Hl===void 0?Object:Hl)],Gl.prototype,`ListVerifiedFields`,void 0),q([F(),V(M),R(Wl),K(`design:type`,Object)],Gl.prototype,`result_type`,void 0),Gl=Ul=q([J()],Gl);var Kl,ql=[M.DOCUMENT_TYPE],Jl=class extends Gs{static{Kl=this}static{this.fromPlain=e=>X(Kl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>ql.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Kl.fromPlain(e));if(t.length)throw new NS(`ChosenDocumentTypeContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Bs),K(`design:type`,Bs===void 0?Object:Bs)],Jl.prototype,`OneCandidate`,void 0),q([I(),U(),K(`design:type`,String)],Jl.prototype,`XML_buffer`,void 0),q([F(),V(M),R(ql),K(`design:type`,Object)],Jl.prototype,`result_type`,void 0),Jl=Kl=q([J()],Jl);var Yl,Xl=[M.DOCUMENT_IMAGE,M.RAW_UNCROPPED_IMAGE],Zl=class extends Gs{static{Yl=this}static{this.fromPlain=e=>X(Yl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Xl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Yl.fromPlain(e));if(t.length)throw new NS(`RawImageContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],Zl.prototype,`RawImageContainer`,void 0),q([F(),V(M),R(Xl),K(`design:type`,Object)],Zl.prototype,`result_type`,void 0),Zl=Yl=q([J()],Zl);var Ql=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Ql.prototype,`sourceLeft`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Ql.prototype,`sourceRight`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Ql.prototype,`status`,void 0);var $l=class{};q([F(),H(),K(`design:type`,Number)],$l.prototype,`code`,void 0),q([F(),H(),K(`design:type`,Number)],$l.prototype,`probability`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],$l.prototype,`rect`,void 0);var eu=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],eu.prototype,`source`,void 0),q([U(),F(),As(({value:e})=>e?String(e):``),K(`design:type`,String)],eu.prototype,`value`,void 0),q([I(),U(),K(`design:type`,String)],eu.prototype,`originalValue`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],eu.prototype,`originalValidity`,void 0),q([I(),L({each:!0}),Y(()=>$l),W(),K(`design:type`,Array)],eu.prototype,`originalSymbols`,void 0),q([F(),H(),K(`design:type`,Number)],eu.prototype,`pageIndex`,void 0),q([F(),B(),K(`design:type`,Number)],eu.prototype,`probability`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],eu.prototype,`fieldRect`,void 0),q([I(),L(),Y(()=>Rs),K(`design:type`,Rs===void 0?Object:Rs)],eu.prototype,`rfidOrigin`,void 0),q([I(),H(),K(`design:type`,Number)],eu.prototype,`containerType`,void 0);var tu=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],tu.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],tu.prototype,`status`,void 0);var nu=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Text:r}=e;r.fieldList.forEach(e=>{e.fieldType===t&&n.push(e)})}),n}}};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],nu.prototype,`fieldType`,void 0),q([F(),U(),K(`design:type`,String)],nu.prototype,`fieldName`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],nu.prototype,`lcid`,void 0),q([I(),U(),K(`design:type`,String)],nu.prototype,`lcidName`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],nu.prototype,`status`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],nu.prototype,`validityStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],nu.prototype,`comparisonStatus`,void 0),q([F(),U(),As(({value:e})=>e?String(e):``),K(`design:type`,String)],nu.prototype,`value`,void 0),q([F(),L({each:!0}),Y(()=>eu),W(),K(`design:type`,Array)],nu.prototype,`valueList`,void 0),q([F(),L({each:!0}),Y(()=>tu),W(),K(`design:type`,Array)],nu.prototype,`validityList`,void 0),q([F(),L({each:!0}),Y(()=>Ql),W(),K(`design:type`,Array)],nu.prototype,`comparisonList`,void 0);var ru=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],ru.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],ru.prototype,`validityStatus`,void 0),q([I(),H(),K(`design:type`,Number)],ru.prototype,`containerType`,void 0);var iu=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],iu.prototype,`status`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],iu.prototype,`validityStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],iu.prototype,`comparisonStatus`,void 0),q([F(),U(),K(`design:type`,String)],iu.prototype,`dateFormat`,void 0),q([F(),L({each:!0}),Y(()=>nu),W(),K(`design:type`,Array)],iu.prototype,`fieldList`,void 0),q([F(),L({each:!0}),Y(()=>ru),W(),K(`design:type`,Array)],iu.prototype,`availableSourceList`,void 0);var au,ou=[M.TEXT],su=class extends Gs{static{au=this}static{this.fromPlain=e=>X(au,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>ou.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(au.fromPlain(e));if(t.length)throw new NS(`TextResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>iu),K(`design:type`,iu===void 0?Object:iu)],su.prototype,`Text`,void 0),q([F(),V(M),R(ou),K(`design:type`,Object)],su.prototype,`result_type`,void 0),su=au=q([J()],su);var cu=class extends _l{};q([F(),H(),K(`design:type`,Number)],cu.prototype,`OriginDG`,void 0),q([I(),H(),K(`design:type`,Number)],cu.prototype,`OriginDGTag`,void 0),q([F(),H(),K(`design:type`,Number)],cu.prototype,`OriginTagEntry`,void 0),q([I(),H(),K(`design:type`,Number)],cu.prototype,`OriginEntryView`,void 0);var lu=class{};q([F(),H(),K(`design:type`,Number)],lu.prototype,`nFields`,void 0),q([F(),L(),Y(()=>cu),K(`design:type`,Array)],lu.prototype,`pArrayFields`,void 0);var uu,du=[M.RFID_TEXT],fu=class extends Gs{static{uu=this}static{this.fromPlain=e=>X(uu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>du.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(uu.fromPlain(e));if(t.length)throw new NS(`RFIDTextDataContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>lu),K(`design:type`,lu===void 0?Object:lu)],fu.prototype,`DocVisualExtendedInfo`,void 0),q([F(),V(M),R(du),K(`design:type`,Object)],fu.prototype,`result_type`,void 0),fu=uu=q([J()],fu);var pu,mu=[M.MRZ_POSITION],hu=class extends Gs{static{pu=this}static{this.fromPlain=e=>X(pu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>mu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(pu.fromPlain(e));if(t.length)throw new NS(`MRZPositionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Is),K(`design:type`,Is===void 0?Object:Is)],hu.prototype,`MrzPosition`,void 0),q([F(),V(M),R(mu),K(`design:type`,Object)],hu.prototype,`result_type`,void 0),hu=pu=q([J()],hu);var gu=class{};q([I(),H(),K(`design:type`,Number)],gu.prototype,`Left`,void 0),q([I(),H(),K(`design:type`,Number)],gu.prototype,`Top`,void 0),q([I(),H(),K(`design:type`,Number)],gu.prototype,`Right`,void 0),q([I(),H(),K(`design:type`,Number)],gu.prototype,`Bottom`,void 0);var _u=class{};q([F(),H(),K(`design:type`,Number)],_u.prototype,`FieldLength`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`FieldPos`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`FieldType`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`TEST_RESULT`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`ValidCheckSum`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`reserved`,void 0);var vu=class{};q([F(),H(),K(`design:type`,Number)],vu.prototype,`ALIGNMENT_NEAREST_SYMBOLS`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`CONTRAST_PRINT`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`CONTRAST_SYMBOL`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`CharSymbol`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`EDGE`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`EMPTINESS`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`STAIN`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SYMBOLS_INTERVAL`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SYMBOL_PARAM`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SYMBOL_SIZE`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorAlignWithNext`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorAlignWithPrev`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorIntervWithNext`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorIntervWithPrev`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorSymbolHeight`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorSymbolWidth`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],vu.prototype,`SymbolBounds`,void 0);var yu=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`ALIGNMENT_SYMBOLS_IN_STRING`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`CHECK_SUMS`,void 0),q([F(),L(),Y(()=>gu),K(`design:type`,gu===void 0?Object:gu)],yu.prototype,`ErrorPOSITION`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`FieldCount`,void 0),q([F(),L({each:!0}),W(),Y(()=>_u),K(`design:type`,Array)],yu.prototype,`Fields`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRINGS_DISTANCE`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRINGS_INTERVAL`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRING_FILLING`,void 0),q([I(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRINGS_POSITION`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`SYMBOLS_PARAM`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SizeError_ALIGNMENT`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SizeError_DISTANCE`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SizeError_INTERVAL`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`StringAngle`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],yu.prototype,`StringBorders`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SymbolsCount`,void 0),q([F(),L({each:!0}),W(),Y(()=>vu),K(`design:type`,Array)],yu.prototype,`SymbolsEstimations`,void 0);var bu=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`CHECK_SUMS`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`CONTRAST_PRINT`,void 0),q([F(),H(),K(`design:type`,Number)],bu.prototype,`DOC_FORMAT`,void 0),q([F(),H(),K(`design:type`,Number)],bu.prototype,`MRZ_FORMAT`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`PRINT_POSITION`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`STAIN_MRZ`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`SYMBOLS_PARAM`,void 0),q([F(),H(),K(`design:type`,Number)],bu.prototype,`StrCount`,void 0),q([F(),L(),Y(()=>yu),K(`design:type`,Array)],bu.prototype,`Strings`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`TEXTUAL_FILLING`,void 0);var xu,Su=[M.MRZ_TEST_QUALITY],Cu=class extends Gs{static{xu=this}static{this.fromPlain=e=>X(xu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Su.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(xu.fromPlain(e));if(t.length)throw new NS(`MRZTestQualityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>bu),K(`design:type`,bu===void 0?Object:bu)],Cu.prototype,`MRZTestQuality`,void 0),q([F(),V(M),R(Su),K(`design:type`,Object)],Cu.prototype,`result_type`,void 0),Cu=xu=q([J()],Cu);var wu=class{};q([I(),V(cr),K(`design:type`,cr===void 0?Object:cr)],wu.prototype,`RecResult`,void 0),q([I(),L({each:!0}),Y(()=>Bs),W(),K(`design:type`,Array)],wu.prototype,`Candidates`,void 0);var Tu,Eu=[M.DOCUMENT_TYPE_CANDIDATES],Du=class extends Gs{static{Tu=this}static{this.fromPlain=e=>X(Tu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Eu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Tu.fromPlain(e));if(t.length)throw new NS(`DocumentTypesCandidatesContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),L(),Y(()=>wu),K(`design:type`,wu===void 0?Object:wu)],Du.prototype,`CandidatesList`,void 0),q([F(),V(M),R(Eu),K(`design:type`,Object)],Du.prototype,`result_type`,void 0),Du=Tu=q([J()],Du);var Ou=class{};q([F(),W(),H({each:!0}),K(`design:type`,Array)],Ou.prototype,`boundingRect`,void 0);var ku=class{};q([F(),H(),K(`design:type`,Number)],ku.prototype,`length`,void 0),q([F(),H(),K(`design:type`,Number)],ku.prototype,`maxLength`,void 0),q([F(),L({each:!0}),Y(()=>Ou),W(),K(`design:type`,Array)],ku.prototype,`symbols`,void 0);var Au=class{};q([F(),H(),K(`design:type`,Number)],Au.prototype,`MRZFormat`,void 0),q([F(),H(),K(`design:type`,Number)],Au.prototype,`MRZRowsNum`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Au.prototype,`boundingQuadrangle`,void 0);var ju,Mu=[M.MRZ_DETECTOR],Nu=class extends Gs{static{ju=this}static{this.fromPlain=e=>X(ju,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Mu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ju.fromPlain(e));if(t.length)throw new NS(`MRZDetectorContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],Nu.prototype,`ResultMRZDetector`,void 0),q([F(),V(M),R(Mu),K(`design:type`,Object)],Nu.prototype,`result_type`,void 0),Nu=ju=q([J()],Nu);var Pu=class{};q([F(),H(),K(`design:type`,Number)],Pu.prototype,`CoincidenceToPhotoArea`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Pu.prototype,`FaceRect`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Pu.prototype,`FieldRect`,void 0),q([F(),H(),K(`design:type`,Number)],Pu.prototype,`GraphFieldNumber`,void 0),q([F(),L({each:!0}),Y(()=>ys),W(),K(`design:type`,Array)],Pu.prototype,`Landmarks`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Pu.prototype,`LightType`,void 0),q([F(),H(),K(`design:type`,Number)],Pu.prototype,`Orientation`,void 0),q([F(),H(),K(`design:type`,Number)],Pu.prototype,`Probability`,void 0);var Fu=class{};q([F(),H(),K(`design:type`,Number)],Fu.prototype,`Count`,void 0),q([F(),H(),K(`design:type`,Number)],Fu.prototype,`CountFalseDetection`,void 0),q([F(),L({each:!0}),Y(()=>Pu),W(),K(`design:type`,Array)],Fu.prototype,`Res`,void 0),q([I(),H(),K(`design:type`,Number)],Fu.prototype,`Reserved1`,void 0),q([I(),H(),K(`design:type`,Number)],Fu.prototype,`Reserved2`,void 0);var Iu,Lu=[M.FACE_DETECTION],Ru=class extends Gs{static{Iu=this}static{this.fromPlain=e=>X(Iu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Lu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Iu.fromPlain(e));if(t.length)throw new NS(`FaceDetectionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),L(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Ru.prototype,`FaceDetection`,void 0),q([F(),V(M),R(Lu),K(`design:type`,Object)],Ru.prototype,`result_type`,void 0),Ru=Iu=q([J()],Ru);var zu=class{};q([F(),U(),K(`design:type`,String)],zu.prototype,`Data`,void 0),q([F(),H(),K(`design:type`,Number)],zu.prototype,`Length`,void 0);var Bu=class{};q([F(),H(),K(`design:type`,Number)],Bu.prototype,`FieldType`,void 0),q([F(),L(),Y(()=>zu),K(`design:type`,zu===void 0?Object:zu)],Bu.prototype,`File_Image`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`GraphicsType`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginDG`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginDGTag`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginEntryView`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginTagEntry`,void 0);var Vu=class{};q([F(),L({each:!0}),Y(()=>Bu),W(),K(`design:type`,Array)],Vu.prototype,`RFID_ORIGINAL_GRAPH_DATA`,void 0);var Hu,Uu=[M.RFID_ORIGINAL_GRAPHICS],Wu=class extends Gs{static{Hu=this}static{this.fromPlain=e=>X(Hu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Uu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Hu.fromPlain(e));if(t.length)throw new NS(`RFIDGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Vu),K(`design:type`,Vu===void 0?Object:Vu)],Wu.prototype,`TOriginalRFIDGraphicsInfo`,void 0),q([F(),V(M),R(Uu),K(`design:type`,Object)],Wu.prototype,`result_type`,void 0),Wu=Hu=q([J()],Wu);var Gu,Ku=[M.DTC_VC],qu=class extends Gs{static{Gu=this}static{this.fromPlain=e=>X(Gu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Ku.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Gu.fromPlain(e));if(t.length)throw new NS(`ByteArrayContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),K(`design:type`,String)],qu.prototype,`ByteArray`,void 0),q([F(),V(M),R(Ku),K(`design:type`,Object)],qu.prototype,`result_type`,void 0),qu=Gu=q([J()],qu);var Ju=class{};q([F(),B(),K(`design:type`,Number)],Ju.prototype,`Type`,void 0),q([F(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],Ju.prototype,`Data`,void 0);var Yu=class{};q([I(),U(),K(`design:type`,String)],Yu.prototype,`Certificate`,void 0),q([I(),W(),L({each:!0}),Y(()=>Kc),K(`design:type`,Array)],Yu.prototype,`CertificateChain`,void 0),q([I(),W(),L({each:!0}),Y(()=>Ju),K(`design:type`,Array)],Yu.prototype,`DocFeatures`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`DocIssueDate`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`DocType`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`FeatureRef`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`IssuingCountry`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Yu.prototype,`Notifications`,void 0),q([I(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],Yu.prototype,`Signature`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`SignatureDate`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`Signer`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`Version`,void 0);var Xu,Zu=[M.VDS],Qu=class extends Gs{static{Xu=this}static{this.fromPlain=e=>X(Xu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Zu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Xu.fromPlain(e));if(t.length)throw new NS(`VDSContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Yu),K(`design:type`,Yu===void 0?Object:Yu)],Qu.prototype,`dftVDS`,void 0),q([F(),V(M),R(Zu),K(`design:type`,Object)],Qu.prototype,`result_type`,void 0),Qu=Xu=q([J()],Qu);var $u=class{};q([I(),U(),K(`design:type`,String)],$u.prototype,`dob`,void 0),q([I(),U(),K(`design:type`,String)],$u.prototype,`i`,void 0),q([I(),U(),K(`design:type`,String)],$u.prototype,`n`,void 0),q([I(),U(),K(`design:type`,String)],$u.prototype,`sex`,void 0);var ed=class{};q([I(),U(),K(`design:type`,String)],ed.prototype,`adm`,void 0),q([I(),U(),K(`design:type`,String)],ed.prototype,`ctr`,void 0),q([I(),U(),K(`design:type`,String)],ed.prototype,`dvc`,void 0),q([I(),U(),K(`design:type`,String)],ed.prototype,`lot`,void 0),q([I(),B(),K(`design:type`,Number)],ed.prototype,`seq`,void 0);var td=class{};q([I(),U(),K(`design:type`,String)],td.prototype,`des`,void 0),q([I(),U(),K(`design:type`,String)],td.prototype,`dis`,void 0),q([I(),U(),K(`design:type`,String)],td.prototype,`nam`,void 0),q([I(),W(),L({each:!0}),Y(()=>ed),K(`design:type`,typeof Array>`u`?Object:Array)],td.prototype,`vd`,void 0);var nd=class{};q([I(),L(),Y(()=>$u),K(`design:type`,$u===void 0?Object:$u)],nd.prototype,`pid`,void 0),q([I(),U(),K(`design:type`,String)],nd.prototype,`uvci`,void 0),q([I(),W(),L({each:!0}),Y(()=>td),K(`design:type`,typeof Array>`u`?Object:Array)],nd.prototype,`ve`,void 0);var rd=class{};q([I(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],rd.prototype,`Certificate`,void 0),q([I(),W(),L({each:!0}),Y(()=>Kc),K(`design:type`,Array)],rd.prototype,`CertificateChain`,void 0),q([I(),U(),K(`design:type`,String)],rd.prototype,`IssuingCountry`,void 0),q([I(),L(),Y(()=>nd),K(`design:type`,nd===void 0?Object:nd)],rd.prototype,`Message`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],rd.prototype,`Notifications`,void 0),q([I(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],rd.prototype,`Signature`,void 0),q([I(),U(),K(`design:type`,String)],rd.prototype,`SignatureAlg`,void 0),q([I(),U(),K(`design:type`,String)],rd.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],rd.prototype,`Version`,void 0);var id,ad=[M.VDS_NC],od=class extends Gs{static{id=this}static{this.fromPlain=e=>X(id,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>ad.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(id.fromPlain(e));if(t.length)throw new NS(`VDSNCContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>rd),K(`design:type`,rd===void 0?Object:rd)],od.prototype,`dftVDS_NC`,void 0),q([F(),V(M),R(ad),K(`design:type`,Object)],od.prototype,`result_type`,void 0),od=id=q([J()],od);var sd,cd=[M.BSI_XML_V2],ld=class extends Gs{static{sd=this}static{this.fromPlain=e=>X(sd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>cd.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(sd.fromPlain(e));if(t.length)throw new NS(`BSIv2Container validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),K(`design:type`,String)],ld.prototype,`XML_buffer`,void 0),q([F(),V(M),R(cd),K(`design:type`,Object)],ld.prototype,`result_type`,void 0),ld=sd=q([J()],ld);var ud,dd=[M.MDL_PARSED_RESPONSE],fd=class extends Gs{static{ud=this}static{this.fromPlain=e=>X(ud,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>dd.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ud.fromPlain(e));if(t.length)throw new NS(`MDLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),K(`design:type`,typeof Record>`u`?Object:Record)],fd.prototype,`MDLParsedResponse`,void 0),q([F(),V(M),R(dd),K(`design:type`,Object)],fd.prototype,`result_type`,void 0),fd=ud=q([J()],fd);var pd=e=>{let t=[];if(!Array.isArray(e))return t;for(let n of e){if(!xv(n)||!(`result_type`in n))continue;let{result_type:e}=n;switch(e){case M.MRZ_TEST_QUALITY:t.push(Cu.fromPlain(n));break;case M.DOCUMENT_TYPE_CANDIDATES:t.push(Du.fromPlain(n));break;case M.AUTHENTICITY:case M.PORTRAIT_COMPARISON:case M.FINGERPRINT_COMPARISON:t.push(bc.fromPlain(n));break;case M.BARCODE_POSITION:t.push(Ec.fromPlain(n));break;case M.DOCUMENT_POSITION:t.push(Cc.fromPlain(n));break;case M.MRZ_DETECTOR:t.push(Nu.fromPlain(n));break;case M.FACE_DETECTION:t.push(Ru.fromPlain(n));break;case M.MRZ_POSITION:t.push(hu.fromPlain(n));break;case M.BARCODES:t.push(Nc.fromPlain(n));break;case M.RFID_RAW_DATA:case M.RFID_BINARY_DATA:t.push(cl.fromPlain(n));break;case M.DTC_VC:t.push(qu.fromPlain(n));break;case M.RFID_ORIGINAL_GRAPHICS:t.push(Wu.fromPlain(n));break;case M.VISUAL_GRAPHICS:case M.BARCODE_GRAPHICS:case M.LIVE_PORTRAIT:case M.EXT_PORTRAIT:case M.FINGERPRINTS:case M.RFID_GRAPHICS:t.push(pl.fromPlain(n));break;case M.VISUAL_TEXT:case M.MRZ_TEXT:case M.BARCODE_TEXT:case M.MAGNETIC_STRIPE_TEXT_DATA:t.push(Sl.fromPlain(n));break;case M.RFID_TEXT:t.push(fu.fromPlain(n));break;case M.ENCRYPTED_RCL:t.push(Tl.fromPlain(n));break;case M.IMAGE_QUALITY:t.push(Al.fromPlain(n));break;case M.IMAGES:t.push(Ll.fromPlain(n));break;case M.LICENSE:t.push(Bl.fromPlain(n));break;case M.LEXICAL_ANALYSIS:t.push(Gl.fromPlain(n));break;case M.DOCUMENT_TYPE:t.push(Jl.fromPlain(n));break;case M.DOCUMENT_IMAGE:case M.RAW_UNCROPPED_IMAGE:t.push(Zl.fromPlain(n));break;case M.STATUS:t.push(rl.fromPlain(n));break;case M.TEXT:t.push(su.fromPlain(n));break;case M.VDS_NC:t.push(od.fromPlain(n));break;case M.VDS:t.push(Qu.fromPlain(n));break;case M.BSI_XML_V2:t.push(ld.fromPlain(n));break;case M.MDL_PARSED_RESPONSE:t.push(fd.fromPlain(n));break}}return t},md=class{};q([I(),H(),K(`design:type`,Number)],md.prototype,`Count`,void 0),q([F(),W(),L({each:!0}),As(({obj:e})=>pd(e.List),{toClassOnly:!0}),K(`design:type`,Array)],md.prototype,`List`,void 0);var hd=class{};q([I(),B(),K(`design:type`,Number)],hd.prototype,`limit`,void 0),q([I(),B(),K(`design:type`,Number)],hd.prototype,`threshold`,void 0),q([I(),B({},{each:!0}),K(`design:type`,Array)],hd.prototype,`group_ids`,void 0);var gd=class{};q([I(),U(),K(`design:type`,String)],gd.prototype,`url`,void 0),q([I(),U(),K(`design:type`,String)],gd.prototype,`mode`,void 0),q([I(),L(),Y(()=>hd),K(`design:type`,hd===void 0?Object:hd)],gd.prototype,`search`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`threshold`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`serviceTimeout`,void 0),q([I(),U(),K(`design:type`,String)],gd.prototype,`proxy`,void 0),q([I(),U(),K(`design:type`,String)],gd.prototype,`proxy_userpwd`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`proxy_type`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`childAgeThreshold`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`childDocValidityYears`,void 0);var _d=class{};q([I(),B(),K(`design:type`,Number)],_d.prototype,`brightnessThreshold`,void 0),q([I(),H(),K(`design:type`,Number)],_d.prototype,`dpiThreshold`,void 0),q([I(),H(),K(`design:type`,Number)],_d.prototype,`angleThreshold`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`focusCheck`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`glaresCheck`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`colornessCheck`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`moireCheck`,void 0),q([I(),B(),K(`design:type`,Number)],_d.prototype,`documentPositionIndent`,void 0),q([I(),W(),V(fr,{each:!0}),K(`design:type`,Array)],_d.prototype,`expectedPass`,void 0);var vd=class{};q([I(),H({each:!0}),W(),K(`design:type`,Array)],vd.prototype,`docID`,void 0),q([I(),H(),K(`design:type`,Number)],vd.prototype,`excludeAuthChecks`,void 0);var yd=class{};q([I(),V(Cr,{each:!0}),W(),K(`design:type`,Array)],yd.prototype,`paIgnoreNotificationCodes`,void 0);var bd=class{};q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkOVI`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkMLI`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkHolo`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkED`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkBlackAndWhiteCopy`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkDynaprint`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkGeometry`,void 0);var xd=class{};q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkLiveness`,void 0),q([I(),L(),Y(()=>bd),K(`design:type`,bd===void 0?Object:bd)],xd.prototype,`livenessParams`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkUVLuminiscence`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkIRB900`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkImagePatterns`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkFibers`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkExtMRZ`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkExtOCR`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkAxial`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkBarcodeFormat`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkIRVisibility`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkIPI`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkPhotoEmbedding`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkPhotoComparison`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkLetterScreen`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkSecurityText`,void 0);var Sd=e=>(t,n)=>{Mo({name:`IsStringObjectRecord`,target:t.constructor,propertyName:String(n),constraints:[],options:{message:`${String(n)} must be a Record<string, object>`,...e},validator:{validate(e,t){return xv(e)?Object.keys(e).length===0?!0:Object.keys(e).every(t=>!(typeof t!=`string`||!xv(e[t]))):!1}}})},$=class{};q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateDTCVC`,void 0),q([I(),V(pr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`checkLiveness`,void 0),q([I(),V(pr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidIgnoreFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`oneShotIdentification`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`useFaceApi`,void 0),q([I(),L(),Y(()=>gd),K(`design:type`,gd===void 0?Object:gd)],$.prototype,`faceApi`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`doDetectCan`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxHeight`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxWidth`,void 0),q([F(),V(Rr),K(`design:type`,Rr===void 0?Object:Rr)],$.prototype,`scenario`,void 0),q([I(),V(M,{each:!0}),K(`design:type`,Array)],$.prototype,`resultTypeOutput`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`doublePageSpread`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateDoublePageSpreadImage`,void 0),q([I(),V(P,{each:!0}),K(`design:type`,Array)],$.prototype,`fieldTypesFilter`,void 0),q([I(),U(),K(`design:type`,String)],$.prototype,`dateFormat`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],$.prototype,`measureSystem`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`imageDpiOutMax`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`alreadyCropped`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],$.prototype,`customParams`,void 0),q([I(),L({each:!0}),Y(()=>vd),K(`design:type`,Array)],$.prototype,`config`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`log`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],$.prototype,`logLevel`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`forceDocID`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`matchTextFieldMask`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`fastDocDetect`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`updateOCRValidityByGlare`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`checkRequiredTextFields`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`returnCroppedBarcode`,void 0),q([I(),L(),K(`design:type`,_d===void 0?Object:_d)],$.prototype,`imageQa`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictImageQuality`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`respectImageQuality`,void 0),q([I(),V(or),K(`design:type`,or===void 0?Object:or)],$.prototype,`forceDocFormat`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`noGraphics`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`depersonalizeLog`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`multiDocOnImage`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`shiftExpiryDate`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],$.prototype,`minimalHolderAge`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`returnUncroppedImage`,void 0),q([I(),V(yr,{each:!0}),K(`design:type`,Array)],$.prototype,`mrzFormatsFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`forceReadMrzBeforeLocate`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`parseBarcodes`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],$.prototype,`convertCase`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`splitNames`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`disablePerforationOCR`,void 0),q([I(),V(sr,{each:!0}),K(`design:type`,Array)],$.prototype,`documentGroupFilter`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`processAuth`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`deviceId`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`deviceType`,void 0),q([I(),U(),K(`design:type`,String)],$.prototype,`deviceTypeHex`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`ignoreDeviceIdFromImage`,void 0),q([I(),H({each:!0}),K(`design:type`,Array)],$.prototype,`documentIdList`,void 0),q([I(),L(),Y(()=>yd),K(`design:type`,yd===void 0?Object:yd)],$.prototype,`rfid`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`checkAuth`,void 0),q([I(),L(),Y(()=>xd),K(`design:type`,xd===void 0?Object:xd)],$.prototype,`authParams`,void 0),q([I(),V(xr),K(`design:type`,xr===void 0?Object:xr)],$.prototype,`mrzDetectMode`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateNumericCodes`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictBarcodeDigitalSignatureCheck`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`selectLongestNames`,void 0),q([I(),W(),V(dr,{each:!0}),K(`design:type`,Array)],$.prototype,`doBarcodes`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictDLCategoryExpiry`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateAlpha2Codes`,void 0),q([I(),B(),K(`design:type`,Number)],$.prototype,`pdfPagesLimit`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`disableAuthResolutionFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictSecurityChecks`,void 0);var Cd=class{};q([L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],Cd.prototype,`ImageData`,void 0),q([V(mr),I(),K(`design:type`,mr===void 0?Object:mr)],Cd.prototype,`light`,void 0),q([H(),I(),K(`design:type`,Number)],Cd.prototype,`page_idx`,void 0);var wd=class{};q([I(),U(),Jo(),K(`design:type`,String)],wd.prototype,`license`,void 0),q([I(),U(),K(`design:type`,String)],wd.prototype,`recaptcha_token`,void 0);var Td,Ed=class{static{Td=this}static{this.fromPlain=e=>X(Td,e)}static{this.toPlain=e=>Ms(e,{excludeExtraneousValues:!0})}static{this.validate=e=>{let t=G(Td.toPlain(e));if(t.length)throw new NS(`ProcessRequest validation error: the data received does not match model structure!`,t);return!0}}};q([L(),F(),Y(()=>$),K(`design:type`,$===void 0?Object:$)],Ed.prototype,`processParam`,void 0),q([L({each:!0}),I(),Y(()=>Cd),K(`design:type`,Array)],Ed.prototype,`List`,void 0),q([U(),I(),K(`design:type`,String)],Ed.prototype,`tag`,void 0),q([U(),I(),K(`design:type`,String)],Ed.prototype,`tenant`,void 0),q([U(),I(),K(`design:type`,String)],Ed.prototype,`env`,void 0),q([I(),U(),K(`design:type`,String)],Ed.prototype,`livePortrait`,void 0),q([I(),U(),K(`design:type`,String)],Ed.prototype,`extPortrait`,void 0),q([I(),L(),Y(()=>md),K(`design:type`,md===void 0?Object:md)],Ed.prototype,`ContainerList`,void 0),q([I(),L(),Y(()=>wd),K(`design:type`,wd===void 0?Object:wd)],Ed.prototype,`systemInfo`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],Ed.prototype,`passBackObject`,void 0),q([I(),U(),K(`design:type`,String)],Ed.prototype,`dtc`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Ed.prototype,`ImageUrls`,void 0),Ed=Td=q([J()],Ed);var Dd=class{};q([I(),U(),K(`design:type`,String)],Dd.prototype,`Description`,void 0),q([I(),U(),K(`design:type`,String)],Dd.prototype,`ExportDate`,void 0),q([I(),U(),K(`design:type`,String)],Dd.prototype,`ID`,void 0),q([I(),U(),K(`design:type`,String)],Dd.prototype,`Version`,void 0);var Od=class{};q([I(),U(),K(`design:type`,String)],Od.prototype,`ComputerName`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`DateTime`,void 0),q([I(),L(),Y(()=>Dd),K(`design:type`,Dd===void 0?Object:Dd)],Od.prototype,`DocumentsDatabase`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`SystemInfo`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Tag`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`TransactionID`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`UserName`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Version`,void 0);var kd=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ad=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),jd=o(((e,t)=>{var n=Ad();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Md=o(((e,t)=>{var n=jd(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Nd=o(((e,t)=>{var n=jd();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Pd=o(((e,t)=>{var n=jd();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Fd=o(((e,t)=>{var n=jd();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Id=o(((e,t)=>{var n=kd(),r=Md(),i=Nd(),a=Pd(),o=Fd();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Ld=o(((e,t)=>{var n=Id();function r(){this.__data__=new n,this.size=0}t.exports=r})),Rd=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),zd=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Bd=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Vd=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Hd=o(((e,t)=>{var n=Vd(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Ud=o(((e,t)=>{t.exports=Hd().Symbol})),Wd=o(((e,t)=>{var n=Ud(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Gd=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Kd=o(((e,t)=>{var n=Ud(),r=Wd(),i=Gd(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),qd=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Jd=o(((e,t)=>{var n=Kd(),r=qd(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Yd=o(((e,t)=>{t.exports=Hd()[`__core-js_shared__`]})),Xd=o(((e,t)=>{var n=Yd(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Zd=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Qd=o(((e,t)=>{var n=Jd(),r=Xd(),i=qd(),a=Zd(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),$d=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),ef=o(((e,t)=>{var n=Qd(),r=$d();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),tf=o(((e,t)=>{t.exports=ef()(Hd(),`Map`)})),nf=o(((e,t)=>{t.exports=ef()(Object,`create`)})),rf=o(((e,t)=>{var n=nf();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),af=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),of=o(((e,t)=>{var n=nf(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),sf=o(((e,t)=>{var n=nf(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),cf=o(((e,t)=>{var n=nf(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),lf=o(((e,t)=>{var n=rf(),r=af(),i=of(),a=sf(),o=cf();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),uf=o(((e,t)=>{var n=lf(),r=Id(),i=tf();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),df=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),ff=o(((e,t)=>{var n=df();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),pf=o(((e,t)=>{var n=ff();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),mf=o(((e,t)=>{var n=ff();function r(e){return n(this,e).get(e)}t.exports=r})),hf=o(((e,t)=>{var n=ff();function r(e){return n(this,e).has(e)}t.exports=r})),gf=o(((e,t)=>{var n=ff();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),_f=o(((e,t)=>{var n=uf(),r=pf(),i=mf(),a=hf(),o=gf();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),vf=o(((e,t)=>{var n=Id(),r=tf(),i=_f(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),yf=o(((e,t)=>{var n=Id(),r=Ld(),i=Rd(),a=zd(),o=Bd(),s=vf();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),bf=o(((e,t)=>{var n=ef();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),xf=o(((e,t)=>{var n=bf();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Sf=o(((e,t)=>{var n=xf(),r=Ad();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),Cf=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),wf=o(((e,t)=>{t.exports=Cf()()})),Tf=o(((e,t)=>{var n=Hd(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),Ef=o(((e,t)=>{t.exports=Hd().Uint8Array})),Df=o(((e,t)=>{var n=Ef();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),Of=o(((e,t)=>{var n=Df();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),kf=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),Af=o(((e,t)=>{var n=qd(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),jf=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Mf=o(((e,t)=>{t.exports=jf()(Object.getPrototypeOf,Object)})),Nf=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Pf=o(((e,t)=>{var n=Af(),r=Mf(),i=Nf();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),Ff=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),If=o(((e,t)=>{var n=Kd(),r=Ff(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Lf=o(((e,t)=>{var n=If(),r=Ff(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Rf=o(((e,t)=>{t.exports=Array.isArray})),zf=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Bf=o(((e,t)=>{var n=Jd(),r=zf();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Vf=o(((e,t)=>{var n=Bf(),r=Ff();function i(e){return r(e)&&n(e)}t.exports=i})),Hf=o(((e,t)=>{function n(){return!1}t.exports=n})),Uf=o(((e,t)=>{var n=Hd(),r=Hf(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Wf=o(((e,t)=>{var n=Kd(),r=Mf(),i=Ff(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),Gf=o(((e,t)=>{var n=Kd(),r=zf(),i=Ff(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,ee=`[object Uint16Array]`,te=`[object Uint32Array]`,ne={};ne[b]=ne[x]=ne[S]=ne[C]=ne[w]=ne[T]=ne[E]=ne[ee]=ne[te]=!0,ne[a]=ne[o]=ne[v]=ne[s]=ne[y]=ne[c]=ne[l]=ne[u]=ne[d]=ne[f]=ne[p]=ne[m]=ne[h]=ne[g]=ne[_]=!1;function re(e){return i(e)&&r(e.length)&&!!ne[n(e)]}t.exports=re})),Kf=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),qf=o(((e,t)=>{var n=Vd(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Jf=o(((e,t)=>{var n=Gf(),r=Kf(),i=qf(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Yf=o(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),Xf=o(((e,t)=>{var n=xf(),r=Ad(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),Zf=o(((e,t)=>{var n=Xf(),r=xf();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),Qf=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),$f=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),ep=o(((e,t)=>{var n=Qf(),r=Lf(),i=Rf(),a=Uf(),o=$f(),s=Jf(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),tp=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),np=o(((e,t)=>{var n=qd(),r=Nf(),i=tp(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),rp=o(((e,t)=>{var n=ep(),r=np(),i=Bf();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),ip=o(((e,t)=>{var n=Zf(),r=rp();function i(e){return n(e,r(e))}t.exports=i})),ap=o(((e,t)=>{var n=Sf(),r=Tf(),i=Of(),a=kf(),o=Pf(),s=Lf(),c=Rf(),l=Vf(),u=Uf(),d=Jd(),f=qd(),p=Wf(),m=Jf(),h=Yf(),g=ip();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var ee=c(C),te=!ee&&u(C),ne=!ee&&!te&&m(C);T=C,ee||te||ne?c(S)?T=S:l(S)?T=a(S):te?(E=!1,T=r(C,!0)):ne?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),op=o(((e,t)=>{var n=yf(),r=Sf(),i=wf(),a=ap(),o=qd(),s=rp(),c=Yf();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),sp=o(((e,t)=>{function n(e){return e}t.exports=n})),cp=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),lp=o(((e,t)=>{var n=cp(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),up=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),dp=o(((e,t)=>{var n=up(),r=bf(),i=sp();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),fp=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),pp=o(((e,t)=>{var n=dp();t.exports=fp()(n)})),mp=o(((e,t)=>{var n=sp(),r=lp(),i=pp();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),hp=o(((e,t)=>{var n=Ad(),r=Bf(),i=$f(),a=qd();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),gp=o(((e,t)=>{var n=mp(),r=hp();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),_p=o(((e,t)=>{var n=op();t.exports=gp()(function(e,t,r){n(e,t,r)})})),vp=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),yp=o(((e,t)=>{var n=vp();function r(e,t){return n(t,function(t){return e[t]})}t.exports=r})),bp=o(((e,t)=>{t.exports=jf()(Object.keys,Object)})),xp=o(((e,t)=>{var n=Nf(),r=bp(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Sp=o(((e,t)=>{var n=ep(),r=xp(),i=Bf();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Cp=o(((e,t)=>{var n=yp(),r=Sp();function i(e){return e==null?[]:n(e,r(e))}t.exports=i})),wp=c(_p(),1),Tp=c(Cp(),1),Ep,Dp=class{static{Ep=this}static{this.fromPlain=e=>{let t=X(Ep,e,{exposeUnsetFields:!1});return Ep.inform(t),t}}static{this.validate=e=>{let t=G(Ep.fromPlain(e));if(t.length)throw new NS(`ProcessResponse validation error: the data received does not match model structure!`,t);return!0}}static{this.isValid=e=>{try{return Ep.validate(e),!0}catch{return!1}}}static{this.decodeLog=e=>typeof e==`string`?bv(e):!e||!e.log?``:bv(e.log)}static{this.inform=e=>{if(typeof window>`u`||typeof localStorage>`u`||!localStorage.getItem(`docreader_typings_log`)||!e||!(e instanceof Ep))return;let t=G(e),n=Ep.simplifyErrors(``,t);for(let[e,t]of Object.entries(n))console.info(`Error in ${e}: ${t.join(`, `)}`)}}static{this.simplifyErrors=(e,t)=>{let n={};for(let r=0;r<t.length;r++){let i=t[r].property,a=e?`${e}.${i}`:i;t[r].children&&t[r].children?.length&&(n=(0,wp.default)(n,Ep.simplifyErrors(a,t[r].children))),t[r].constraints&&(n[a]=(0,Tp.default)((0,wp.default)(t[r].constraints,n[a])))}return n}}};q([F(),V(Pr),K(`design:type`,Pr===void 0?Object:Pr)],Dp.prototype,`ChipPage`,void 0),q([I(),H(),K(`design:type`,Number)],Dp.prototype,`CoreLibResultCode`,void 0),q([F(),V(wr),K(`design:type`,wr===void 0?Object:wr)],Dp.prototype,`ProcessingFinished`,void 0),q([L(),Y(()=>md),K(`design:type`,md===void 0?Object:md)],Dp.prototype,`ContainerList`,void 0),q([F(),L(),Y(()=>Od),K(`design:type`,Od===void 0?Object:Od)],Dp.prototype,`TransactionInfo`,void 0),q([I(),U(),Jo(),K(`design:type`,String)],Dp.prototype,`log`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],Dp.prototype,`passBackObject`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],Dp.prototype,`morePagesAvailable`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],Dp.prototype,`elapsedTime`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],Dp.prototype,`metadata`,void 0),Dp=Ep=q([J()],Dp);var Op=4,kp=0,Ap=1,jp=2;function Mp(e){let t=e.length;for(;--t>=0;)e[t]=0}var Np=0,Pp=1,Fp=2,Ip=29,Lp=256,Rp=286,zp=30,Bp=19,Vp=573,Hp=15,Up=16,Wp=7,Gp=256,Kp=16,qp=17,Jp=18,Yp=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Xp=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Zp=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Qp=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$p=512,em=Array(288*2);Mp(em);var tm=Array(zp*2);Mp(tm);var nm=Array($p);Mp(nm);var rm=Array(256);Mp(rm);var im=Array(Ip);Mp(im);var am=Array(zp);Mp(am);function om(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var sm,cm,lm;function um(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var dm=e=>e<256?nm[e]:nm[256+(e>>>7)],fm=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},pm=(e,t,n)=>{e.bi_valid>Up-n?(e.bi_buf|=t<<e.bi_valid&65535,fm(e,e.bi_buf),e.bi_buf=t>>Up-e.bi_valid,e.bi_valid+=n-Up):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},mm=(e,t,n)=>{pm(e,n[t*2],n[t*2+1])},hm=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},gm=e=>{e.bi_valid===16?(fm(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},_m=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=Hp;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Vp;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}},vm=(e,t,n)=>{let r=Array(16),i=0,a,o;for(a=1;a<=Hp;a++)i=i+n[a-1]<<1,r[a]=i;for(o=0;o<=t;o++){let t=e[o*2+1];t!==0&&(e[o*2]=hm(r[t]++,t))}},ym=()=>{let e,t,n,r,i,a=Array(16);for(n=0,r=0;r<Ip-1;r++)for(im[r]=n,e=0;e<1<<Yp[r];e++)rm[n++]=r;for(rm[n-1]=r,i=0,r=0;r<16;r++)for(am[r]=i,e=0;e<1<<Xp[r];e++)nm[i++]=r;for(i>>=7;r<zp;r++)for(am[r]=i<<7,e=0;e<1<<Xp[r]-7;e++)nm[256+ i++]=r;for(t=0;t<=Hp;t++)a[t]=0;for(e=0;e<=143;)em[e*2+1]=8,e++,a[8]++;for(;e<=255;)em[e*2+1]=9,e++,a[9]++;for(;e<=279;)em[e*2+1]=7,e++,a[7]++;for(;e<=287;)em[e*2+1]=8,e++,a[8]++;for(vm(em,287,a),e=0;e<zp;e++)tm[e*2+1]=5,tm[e*2]=hm(e,5);sm=new om(em,Yp,257,Rp,Hp),cm=new om(tm,Xp,0,zp,Hp),lm=new om([],Zp,0,Bp,Wp)},bm=e=>{let t;for(t=0;t<Rp;t++)e.dyn_ltree[t*2]=0;for(t=0;t<zp;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Bp;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Gp*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},xm=e=>{e.bi_valid>8?fm(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Sm=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},Cm=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Sm(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Sm(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},wm=(e,t,n)=>{let r,i,a=0,o,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+ a++]&255,r+=(e.pending_buf[e.sym_buf+ a++]&255)<<8,i=e.pending_buf[e.sym_buf+ a++],r===0?mm(e,i,t):(o=rm[i],mm(e,o+Lp+1,t),s=Yp[o],s!==0&&(i-=im[o],pm(e,i,s)),r--,o=dm(r),mm(e,o,n),s=Xp[o],s!==0&&(r-=am[o],pm(e,r,s)));while(a<e.sym_next);mm(e,Gp,t)},Tm=(e,t)=>{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=Vp,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)Cm(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Cm(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,Cm(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],_m(e,t),vm(n,c,e.bl_count)},Em=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[qp*2]++:e.bl_tree[Jp*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[Kp*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},Dm=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do mm(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(mm(e,qp,e.bl_tree),pm(e,s-3,3)):(mm(e,Jp,e.bl_tree),pm(e,s-11,7)):(a!==i&&(mm(e,a,e.bl_tree),s--),mm(e,Kp,e.bl_tree),pm(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},Om=e=>{let t;for(Em(e,e.dyn_ltree,e.l_desc.max_code),Em(e,e.dyn_dtree,e.d_desc.max_code),Tm(e,e.bl_desc),t=Bp-1;t>=3&&e.bl_tree[Qp[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},km=(e,t,n,r)=>{let i;for(pm(e,t-257,5),pm(e,n-1,5),pm(e,r-4,4),i=0;i<r;i++)pm(e,e.bl_tree[Qp[i]*2+1],3);Dm(e,e.dyn_ltree,t-1),Dm(e,e.dyn_dtree,n-1)},Am=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return kp;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return Ap;for(n=32;n<Lp;n++)if(e.dyn_ltree[n*2]!==0)return Ap;return kp},jm=!1,Mm=e=>{jm||=(ym(),!0),e.l_desc=new um(e.dyn_ltree,sm),e.d_desc=new um(e.dyn_dtree,cm),e.bl_desc=new um(e.bl_tree,lm),e.bi_buf=0,e.bi_valid=0,bm(e)},Nm=(e,t,n,r)=>{pm(e,(Np<<1)+ +!!r,3),xm(e),fm(e,n),fm(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},Pm={_tr_init:Mm,_tr_stored_block:Nm,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===jp&&(e.strm.data_type=Am(e)),Tm(e,e.l_desc),Tm(e,e.d_desc),o=Om(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?Nm(e,t,n,r):e.strategy===Op||a===i?(pm(e,(Pp<<1)+ +!!r,3),wm(e,em,tm)):(pm(e,(Fp<<1)+ +!!r,3),km(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),wm(e,e.dyn_ltree,e.dyn_dtree)),bm(e),r&&xm(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+ e.sym_next++]=t,e.pending_buf[e.sym_buf+ e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+ e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(rm[n]+Lp+1)*2]++,e.dyn_dtree[dm(t)*2]++),e.sym_next===e.sym_end),_tr_align:e=>{pm(e,Pp<<1,3),mm(e,Gp,em),gm(e)}},Fm=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},Im=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t})()),Lm=(e,t,n,r)=>{let i=Im,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[(e^t[n])&255];return e^-1},Rm={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`},zm={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:Bm,_tr_stored_block:Vm,_tr_flush_block:Hm,_tr_tally:Um,_tr_align:Wm}=Pm,{Z_NO_FLUSH:Gm,Z_PARTIAL_FLUSH:Km,Z_FULL_FLUSH:qm,Z_FINISH:Jm,Z_BLOCK:Ym,Z_OK:Xm,Z_STREAM_END:Zm,Z_STREAM_ERROR:Qm,Z_DATA_ERROR:$m,Z_BUF_ERROR:eh,Z_DEFAULT_COMPRESSION:th,Z_FILTERED:nh,Z_HUFFMAN_ONLY:rh,Z_RLE:ih,Z_FIXED:ah,Z_DEFAULT_STRATEGY:oh,Z_UNKNOWN:sh,Z_DEFLATED:ch}=zm,lh=9,uh=15,dh=8,fh=573,ph=3,mh=258,hh=262,gh=32,_h=42,vh=57,yh=69,bh=73,xh=91,Sh=103,Ch=113,wh=666,Th=1,Eh=2,Dh=3,Oh=4,kh=3,Ah=(e,t)=>(e.msg=Rm[t],t),jh=e=>e*2-(e>4?9:0),Mh=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Nh=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},Ph=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Fh=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Ih=(e,t)=>{Hm(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Fh(e.strm)},Lh=(e,t)=>{e.pending_buf[e.pending++]=t},Rh=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},zh=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Fm(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Lm(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Bh=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-hh?e.strstart-(e.w_size-hh):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+mh,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=mh-(f-r),r=f-mh,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead},Vh=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-hh)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Nh(e),r+=t),e.strm.avail_in===0)break;if(n=zh(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=ph)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ph(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ph(e,e.ins_h,e.window[i+ph-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<ph)););}while(e.lookahead<hh&&e.strm.avail_in!==0)},Hh=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(r===0&&t!==Jm||t===Gm||r!==i+e.strm.avail_in)))break;o=+(t===Jm&&r===i+e.strm.avail_in),Vm(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Fh(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(zh(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Oh:t!==Gm&&t!==Jm&&e.strm.avail_in===0&&e.strstart===e.block_start?Eh:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(zh(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=n||(i||t===Jm)&&t!==Gm&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,o=+(t===Jm&&e.strm.avail_in===0&&r===i),Vm(e,e.block_start,r,o),e.block_start+=r,Fh(e.strm)),o?Dh:Th)},Uh=(e,t)=>{let n,r;for(;;){if(e.lookahead<hh){if(Vh(e),e.lookahead<hh&&t===Gm)return Th;if(e.lookahead===0)break}if(n=0,e.lookahead>=ph&&(e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-hh&&(e.match_length=Bh(e,n)),e.match_length>=ph)if(r=Um(e,e.strstart-e.match_start,e.match_length-ph),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ph){e.match_length--;do e.strstart++,e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+1]);else r=Um(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Ih(e,!1),e.strm.avail_out===0))return Th}return e.insert=e.strstart<ph-1?e.strstart:ph-1,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh},Wh=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<hh){if(Vh(e),e.lookahead<hh&&t===Gm)return Th;if(e.lookahead===0)break}if(n=0,e.lookahead>=ph&&(e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ph-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-hh&&(e.match_length=Bh(e,n),e.match_length<=5&&(e.strategy===nh||e.match_length===ph&&e.strstart-e.match_start>4096)&&(e.match_length=ph-1)),e.prev_length>=ph&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ph,r=Um(e,e.strstart-1-e.prev_match,e.prev_length-ph),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ph-1,e.strstart++,r&&(Ih(e,!1),e.strm.avail_out===0))return Th}else if(e.match_available){if(r=Um(e,0,e.window[e.strstart-1]),r&&Ih(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Th}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=Um(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<ph-1?e.strstart:ph-1,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh},Gh=(e,t)=>{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=mh){if(Vh(e),e.lookahead<=mh&&t===Gm)return Th;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ph&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+mh;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=mh-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ph?(n=Um(e,1,e.match_length-ph),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Um(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Ih(e,!1),e.strm.avail_out===0))return Th}return e.insert=0,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh},Kh=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Vh(e),e.lookahead===0)){if(t===Gm)return Th;break}if(e.match_length=0,n=Um(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ih(e,!1),e.strm.avail_out===0))return Th}return e.insert=0,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh};function qh(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Jh=[new qh(0,0,0,0,Hh),new qh(4,4,8,4,Uh),new qh(4,5,16,8,Uh),new qh(4,6,32,32,Uh),new qh(4,4,16,16,Wh),new qh(8,16,32,32,Wh),new qh(8,16,128,128,Wh),new qh(8,32,128,256,Wh),new qh(32,128,258,1024,Wh),new qh(32,258,258,4096,Wh)],Yh=e=>{e.window_size=2*e.w_size,Mh(e.head),e.max_lazy_match=Jh[e.level].max_lazy,e.good_match=Jh[e.level].good_length,e.nice_match=Jh[e.level].nice_length,e.max_chain_length=Jh[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ph-1,e.match_available=0,e.ins_h=0};function Xh(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ch,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(fh*2),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Mh(this.dyn_ltree),Mh(this.dyn_dtree),Mh(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Mh(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Mh(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Zh=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.status!==_h&&t.status!==vh&&t.status!==yh&&t.status!==bh&&t.status!==xh&&t.status!==Sh&&t.status!==Ch&&t.status!==wh)},Qh=e=>{if(Zh(e))return Ah(e,Qm);e.total_in=e.total_out=0,e.data_type=sh;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?vh:t.wrap?_h:Ch,e.adler=t.wrap===2?0:1,t.last_flush=-2,Bm(t),Xm},$h=e=>{let t=Qh(e);return t===Xm&&Yh(e.state),t},eg=(e,t)=>Zh(e)||e.state.wrap!==2?Qm:(e.state.gzhead=t,Xm),tg=(e,t,n,r,i,a)=>{if(!e)return Qm;let o=1;if(t===th&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>lh||n!==ch||r<8||r>15||t<0||t>9||a<0||a>ah||r===8&&o!==1)return Ah(e,Qm);r===8&&(r=9);let s=new Xh;return e.state=s,s.strm=e,s.status=_h,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+ph-1)/ph),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=a,s.method=n,$h(e)},ng={deflateInit:(e,t)=>tg(e,t,ch,uh,dh,oh),deflateInit2:tg,deflateReset:$h,deflateResetKeep:Qh,deflateSetHeader:eg,deflate:(e,t)=>{if(Zh(e)||t>Ym||t<0)return e?Ah(e,Qm):Qm;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===wh&&t!==Jm)return Ah(e,e.avail_out===0?eh:Qm);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Fh(e),e.avail_out===0)return n.last_flush=-1,Xm}else if(e.avail_in===0&&jh(t)<=jh(r)&&t!==Jm)return Ah(e,eh);if(n.status===wh&&e.avail_in!==0)return Ah(e,eh);if(n.status===_h&&n.wrap===0&&(n.status=Ch),n.status===_h){let t=ch+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=rh||n.level<2?0:n.level<6?1:n.level===6?2:3,t|=r<<6,n.strstart!==0&&(t|=gh),t+=31-t%31,Rh(n,t),n.strstart!==0&&(Rh(n,e.adler>>>16),Rh(n,e.adler&65535)),e.adler=1,n.status=Ch,Fh(e),n.pending!==0)return n.last_flush=-1,Xm}if(n.status===vh){if(e.adler=0,Lh(n,31),Lh(n,139),Lh(n,8),n.gzhead)Lh(n,+!!n.gzhead.text+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Lh(n,n.gzhead.time&255),Lh(n,n.gzhead.time>>8&255),Lh(n,n.gzhead.time>>16&255),Lh(n,n.gzhead.time>>24&255),Lh(n,n.level===9?2:n.strategy>=rh||n.level<2?4:0),Lh(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Lh(n,n.gzhead.extra.length&255),Lh(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Lm(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=yh;else if(Lh(n,0),Lh(n,0),Lh(n,0),Lh(n,0),Lh(n,0),Lh(n,n.level===9?2:n.strategy>=rh||n.level<2?4:0),Lh(n,kh),n.status=Ch,Fh(e),n.pending!==0)return n.last_flush=-1,Xm}if(n.status===yh){if(n.gzhead.extra){let t=n.pending,r=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,Fh(e),n.pending!==0)return n.last_flush=-1,Xm;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=bh}if(n.status===bh){if(n.gzhead.name){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),Fh(e),n.pending!==0)return n.last_flush=-1,Xm;t=0}r=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0,Lh(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=xh}if(n.status===xh){if(n.gzhead.comment){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),Fh(e),n.pending!==0)return n.last_flush=-1,Xm;t=0}r=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0,Lh(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t))}n.status=Sh}if(n.status===Sh){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Fh(e),n.pending!==0))return n.last_flush=-1,Xm;Lh(n,e.adler&255),Lh(n,e.adler>>8&255),e.adler=0}if(n.status=Ch,Fh(e),n.pending!==0)return n.last_flush=-1,Xm}if(e.avail_in!==0||n.lookahead!==0||t!==Gm&&n.status!==wh){let r=n.level===0?Hh(n,t):n.strategy===rh?Kh(n,t):n.strategy===ih?Gh(n,t):Jh[n.level].func(n,t);if((r===Dh||r===Oh)&&(n.status=wh),r===Th||r===Dh)return e.avail_out===0&&(n.last_flush=-1),Xm;if(r===Eh&&(t===Km?Wm(n):t!==Ym&&(Vm(n,0,0,!1),t===qm&&(Mh(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Fh(e),e.avail_out===0))return n.last_flush=-1,Xm}return t===Jm?n.wrap<=0?Zm:(n.wrap===2?(Lh(n,e.adler&255),Lh(n,e.adler>>8&255),Lh(n,e.adler>>16&255),Lh(n,e.adler>>24&255),Lh(n,e.total_in&255),Lh(n,e.total_in>>8&255),Lh(n,e.total_in>>16&255),Lh(n,e.total_in>>24&255)):(Rh(n,e.adler>>>16),Rh(n,e.adler&65535)),Fh(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?Zm:Xm):Xm},deflateEnd:e=>{if(Zh(e))return Qm;let t=e.state.status;return e.state=null,t===Ch?Ah(e,$m):Xm},deflateSetDictionary:(e,t)=>{let n=t.length;if(Zh(e))return Qm;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==_h||r.lookahead)return Qm;if(i===1&&(e.adler=Fm(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Mh(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Vh(r);r.lookahead>=ph;){let e=r.strstart,t=r.lookahead-(ph-1);do r.ins_h=Ph(r,r.ins_h,r.window[e+ph-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=ph-1,Vh(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ph-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,Xm},deflateInfo:`pako deflate (from Nodeca project)`},rg=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ig={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(let t in n)rg(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}},ag=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ag=!1}var og=new Uint8Array(256);for(let e=0;e<256;e++)og[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;og[254]=og[254]=1;var sg=e=>{if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},cg=(e,t)=>{if(t<65534&&e.subarray&&ag)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n=``;for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},lg={string2buf:sg,buf2string:(e,t)=>{let n=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,a=Array(n*2);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=og[t];if(o>4){a[i++]=65533,r+=o-1;continue}for(t&=o===2?31:o===3?15:7;o>1&&r<n;)t=t<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|t&1023)}return cg(a,i)},utf8border:(e,t)=>{t||=e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+og[e[n]]>t?n:t}};function ug(){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=ug,fg=Object.prototype.toString,{Z_NO_FLUSH:pg,Z_SYNC_FLUSH:mg,Z_FULL_FLUSH:hg,Z_FINISH:gg,Z_OK:_g,Z_STREAM_END:vg,Z_DEFAULT_COMPRESSION:yg,Z_DEFAULT_STRATEGY:bg,Z_DEFLATED:xg}=zm;function Sg(e){this.options=ig.assign({level:yg,method:xg,chunkSize:16384,windowBits:15,memLevel:8,strategy:bg},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new dg,this.strm.avail_out=0;let n=ng.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==_g)throw Error(Rm[n]);if(t.header&&ng.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e=typeof t.dictionary==`string`?lg.string2buf(t.dictionary):fg.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,n=ng.deflateSetDictionary(this.strm,e),n!==_g)throw Error(Rm[n]);this._dict_set=!0}}Sg.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(a=t===~~t?t:t===!0?gg:pg,typeof e==`string`?n.input=lg.string2buf(e):fg.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===mg||a===hg)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=ng.deflate(n,a),i===vg)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=ng.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===_g;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},Sg.prototype.onData=function(e){this.chunks.push(e)},Sg.prototype.onEnd=function(e){e===_g&&(this.result=ig.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Cg(e,t){let n=new Sg(t);if(n.push(e,!0),n.err)throw n.msg||Rm[n.err];return n.result}function wg(e,t){return t||={},t.raw=!0,Cg(e,t)}function Tg(e,t){return t||={},t.gzip=!0,Cg(e,t)}var Eg={Deflate:Sg,deflate:Cg,deflateRaw:wg,gzip:Tg,constants:zm},Dg=16209,Og=16191,kg=function(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;top:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];dolen:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y===0)T[i++]=v&65535;else if(y&16){b=v&65535,y&=15,y&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];dodist:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y&16){if(x=v&65535,y&=15,p<y&&(f+=w[n++]<<p,p+=8,p<y&&(f+=w[n++]<<p,p+=8)),x+=f&(1<<y)-1,x>s){e.msg=`invalid distance too far back`,E.mode=Dg;break top}if(f>>>=y,p-=y,y=i-a,x>y){if(y=x-y,y>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=Dg;break top}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,y-=u,y<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){y=u,b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}}else if(y&64){e.msg=`invalid distance code`,E.mode=Dg;break top}else{v=h[(v&65535)+(f&(1<<y)-1)];continue dodist}break}}else if(!(y&64)){v=m[(v&65535)+(f&(1<<y)-1)];continue dolen}else if(y&32){E.mode=Og;break top}else{e.msg=`invalid literal/length code`,E.mode=Dg;break top}break}}while(n<r&&i<o);b=p>>3,n-=b,p-=b<<3,f&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<o?257+(o-i):257-(i-o),E.hold=f,E.bits=p},Ag=15,jg=852,Mg=592,Ng=0,Pg=1,Fg=2,Ig=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]),Lg=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]),Rg=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]),zg=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]),Bg=(e,t,n,r,i,a,o,s)=>{let c=s.bits,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y,b,x,S,C,w=null,T,E=new Uint16Array(16),ee=new Uint16Array(16),te=null,ne,re,ie;for(l=0;l<=Ag;l++)E[l]=0;for(u=0;u<r;u++)E[t[n+u]]++;for(p=c,f=Ag;f>=1&&E[f]===0;f--);if(p>f&&(p=f),f===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(d=1;d<f&&E[d]===0;d++);for(p<d&&(p=d),g=1,l=1;l<=Ag;l++)if(g<<=1,g-=E[l],g<0)return-1;if(g>0&&(e===Ng||f!==1))return-1;for(ee[1]=0,l=1;l<Ag;l++)ee[l+1]=ee[l]+E[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[ee[t[n+u]]++]=u);if(e===Ng?(w=te=o,T=20):e===Pg?(w=Ig,te=Lg,T=257):(w=Rg,te=zg,T=0),v=0,u=0,l=d,C=a,m=p,h=0,x=-1,_=1<<p,S=_-1,e===Pg&&_>jg||e===Fg&&_>Mg)return 1;for(;;){ne=l-h,o[u]+1<T?(re=0,ie=o[u]):o[u]>=T?(re=te[o[u]-T],ie=w[o[u]-T]):(re=96,ie=0),y=1<<l-h,b=1<<m,d=b;do b-=y,i[C+(v>>h)+b]=ne<<24|re<<16|ie|0;while(b!==0);for(y=1<<l-1;v&y;)y>>=1;if(y===0?v=0:(v&=y-1,v+=y),u++,--E[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>p&&(v&S)!==x){for(h===0&&(h=p),C+=d,m=l-h,g=1<<m;m+h<f&&(g-=E[m+h],!(g<=0));)m++,g<<=1;if(_+=1<<m,e===Pg&&_>jg||e===Fg&&_>Mg)return 1;x=v&S,i[x]=p<<24|m<<16|C-a|0}}return v!==0&&(i[C+v]=l-h<<24|4194304),s.bits=p,0},Vg=0,Hg=1,Ug=2,{Z_FINISH:Wg,Z_BLOCK:Gg,Z_TREES:Kg,Z_OK:qg,Z_STREAM_END:Jg,Z_NEED_DICT:Yg,Z_STREAM_ERROR:Xg,Z_DATA_ERROR:Zg,Z_MEM_ERROR:Qg,Z_BUF_ERROR:$g,Z_DEFLATED:e_}=zm,t_=16180,n_=16181,r_=16182,i_=16183,a_=16184,o_=16185,s_=16186,c_=16187,l_=16188,u_=16189,d_=16190,f_=16191,p_=16192,m_=16193,h_=16194,g_=16195,__=16196,v_=16197,y_=16198,b_=16199,x_=16200,S_=16201,C_=16202,w_=16203,T_=16204,E_=16205,D_=16206,O_=16207,k_=16208,A_=16209,j_=16210,M_=16211,N_=852,P_=592,F_=15,I_=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function L_(){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}var R_=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<t_||t.mode>M_)},z_=e=>{if(R_(e))return Xg;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=t_,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(N_),t.distcode=t.distdyn=new Int32Array(P_),t.sane=1,t.back=-1,qg},B_=e=>{if(R_(e))return Xg;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,z_(e)},V_=(e,t)=>{let n;if(R_(e))return Xg;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Xg:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,B_(e))},H_=(e,t)=>{if(!e)return Xg;let n=new L_;e.state=n,n.strm=e,n.window=null,n.mode=t_;let r=V_(e,t);return r!==qg&&(e.state=null),r},U_=e=>H_(e,F_),W_=!0,G_,K_,q_=e=>{if(W_){G_=new Int32Array(512),K_=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(Bg(Hg,e.lens,0,288,G_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Bg(Ug,e.lens,0,32,K_,0,e.work,{bits:5}),W_=!1}e.lencode=G_,e.lenbits=9,e.distcode=K_,e.distbits=5},J_=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Y_={inflateReset:B_,inflateReset2:V_,inflateResetKeep:z_,inflateInit:U_,inflateInit2:H_,inflate:(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,C,w,T=new Uint8Array(4),E,ee,te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(R_(e)||!e.output||!e.input&&e.avail_in!==0)return Xg;n=e.state,n.mode===f_&&(n.mode=p_),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,w=qg;inf_leave:for(;;)switch(n.mode){case t_:if(n.wrap===0){n.mode=p_;break}for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0),l=0,u=0,n.mode=n_;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=A_;break}if((l&15)!==e_){e.msg=`unknown compression method`,n.mode=A_;break}if(l>>>=4,u-=4,C=(l&15)+8,n.wbits===0&&(n.wbits=C),C>15||C>n.wbits){e.msg=`invalid window size`,n.mode=A_;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?u_:f_,l=0,u=0;break;case n_:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==e_){e.msg=`unknown compression method`,n.mode=A_;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=A_;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0)),l=0,u=0,n.mode=r_;case r_:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=Lm(n.check,T,4,0)),l=0,u=0,n.mode=i_;case i_:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0)),l=0,u=0,n.mode=a_;case a_:if(n.flags&1024){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=o_;case o_:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),C)),n.flags&512&&n.wrap&4&&(n.check=Lm(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break inf_leave;n.length=0,n.mode=s_;case s_:if(n.flags&2048){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=Lm(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=c_;case c_:if(n.flags&4096){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=Lm(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.comment=null);n.mode=l_;case l_:if(n.flags&512){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=A_;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=f_;break;case u_:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=I_(l),l=0,u=0,n.mode=d_;case d_:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Yg;e.adler=n.check=1,n.mode=f_;case f_:if(t===Gg||t===Kg)break inf_leave;case p_:if(n.last){l>>>=u&7,u-=u&7,n.mode=D_;break}for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,--u,l&3){case 0:n.mode=m_;break;case 1:if(q_(n),n.mode=b_,t===Kg){l>>>=2,u-=2;break inf_leave}break;case 2:n.mode=__;break;case 3:e.msg=`invalid block type`,n.mode=A_}l>>>=2,u-=2;break;case m_:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if((l&65535)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=A_;break}if(n.length=l&65535,l=0,u=0,n.mode=h_,t===Kg)break inf_leave;case h_:n.mode=g_;case g_:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break inf_leave;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=f_;break;case __:for(;u<14;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=A_;break}n.have=0,n.mode=v_;case v_:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.lens[te[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},w=Bg(Vg,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid code lengths set`,n.mode=A_;break}n.have=0,n.mode=y_;case y_:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=_,u-=_,n.lens[n.have++]=y;else{if(y===16){for(ee=_+2;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(l>>>=_,u-=_,n.have===0){e.msg=`invalid bit length repeat`,n.mode=A_;break}C=n.lens[n.have-1],p=3+(l&3),l>>>=2,u-=2}else if(y===17){for(ee=_+3;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=3+(l&7),l>>>=3,u-=3}else{for(ee=_+7;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=11+(l&127),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=A_;break}for(;p--;)n.lens[n.have++]=C}}if(n.mode===A_)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=A_;break}if(n.lenbits=9,E={bits:n.lenbits},w=Bg(Hg,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid literal/lengths set`,n.mode=A_;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},w=Bg(Ug,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,w){e.msg=`invalid distances set`,n.mode=A_;break}if(n.mode=b_,t===Kg)break inf_leave;case b_:n.mode=x_;case x_:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,kg(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===f_&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(v&&!(v&240)){for(b=_,x=v,S=y;g=n.lencode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,n.length=y,v===0){n.mode=E_;break}if(v&32){n.back=-1,n.mode=f_;break}if(v&64){e.msg=`invalid literal/length code`,n.mode=A_;break}n.extra=v&15,n.mode=S_;case S_:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=C_;case C_:for(;g=n.distcode[l&(1<<n.distbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(!(v&240)){for(b=_,x=v,S=y;g=n.distcode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,v&64){e.msg=`invalid distance code`,n.mode=A_;break}n.offset=y,n.extra=v&15,n.mode=w_;case w_:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=A_;break}n.mode=T_;case T_:if(c===0)break inf_leave;if(p=f-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=A_;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=x_);break;case E_:if(c===0)break inf_leave;i[o++]=n.length,c--,n.mode=x_;break;case D_:if(n.wrap){for(;u<32;){if(s===0)break inf_leave;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Lm(n.check,i,f,o-f):Fm(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:I_(l))!==n.check){e.msg=`incorrect data check`,n.mode=A_;break}l=0,u=0}n.mode=O_;case O_:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg=`incorrect length check`,n.mode=A_;break}l=0,u=0}n.mode=k_;case k_:w=Jg;break inf_leave;case A_:w=Zg;break inf_leave;case j_:return Qg;case M_:default:return Xg}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<A_&&(n.mode<D_||t!==Wg))&&J_(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Lm(n.check,i,f,e.next_out-f):Fm(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===f_?128:0)+(n.mode===b_||n.mode===h_?256:0),(d===0&&f===0||t===Wg)&&w===qg&&(w=$g),w},inflateEnd:e=>{if(R_(e))return Xg;let t=e.state;return t.window&&=null,e.state=null,qg},inflateGetHeader:(e,t)=>{if(R_(e))return Xg;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,qg):Xg},inflateSetDictionary:(e,t)=>{let n=t.length,r,i,a;return R_(e)||(r=e.state,r.wrap!==0&&r.mode!==d_)?Xg:r.mode===d_&&(i=1,i=Fm(i,t,n,0),i!==r.check)?Zg:(a=J_(e,t,n,n),a?(r.mode=j_,Qg):(r.havedict=1,qg))},inflateInfo:`pako inflate (from Nodeca project)`};function X_(){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 Z_=X_,Q_=Object.prototype.toString,{Z_NO_FLUSH:$_,Z_FINISH:ev,Z_OK:tv,Z_STREAM_END:nv,Z_NEED_DICT:rv,Z_STREAM_ERROR:iv,Z_DATA_ERROR:av,Z_MEM_ERROR:ov}=zm;function sv(e){this.options=ig.assign({chunkSize:1024*64,windowBits:15,to:``},e||{});let 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||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new dg,this.strm.avail_out=0;let n=Y_.inflateInit2(this.strm,t.windowBits);if(n!==tv||(this.header=new Z_,Y_.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=lg.string2buf(t.dictionary):Q_.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Y_.inflateSetDictionary(this.strm,t.dictionary),n!==tv))))throw Error(Rm[n])}sv.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(o=t===~~t?t:t===!0?ev:$_,Q_.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Y_.inflate(n,o),a===rv&&i&&(a=Y_.inflateSetDictionary(n,i),a===tv?a=Y_.inflate(n,o):a===av&&(a=rv));n.avail_in>0&&a===nv&&n.state.wrap>0&&e[n.next_in]!==0;)Y_.inflateReset(n),a=Y_.inflate(n,o);switch(a){case iv:case av:case rv:case ov:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===nv))if(this.options.to===`string`){let e=lg.utf8border(n.output,n.next_out),t=n.next_out-e,i=lg.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===tv&&s===0)){if(a===nv)return a=Y_.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},sv.prototype.onData=function(e){this.chunks.push(e)},sv.prototype.onEnd=function(e){e===tv&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=ig.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function cv(e,t){let n=new sv(t);if(n.push(e),n.err)throw n.msg||Rm[n.err];return n.result}function lv(e,t){return t||={},t.raw=!0,cv(e,t)}var uv={Inflate:sv,inflate:cv,inflateRaw:lv,ungzip:cv,constants:zm},{Deflate:dv,deflate:fv,deflateRaw:pv,gzip:mv}=Eg,{Inflate:hv,inflate:gv,inflateRaw:_v,ungzip:vv}=uv,yv=gv,bv=e=>{let t=typeof atob<`u`?atob(e):Buffer.from(e,`base64`).toString(`binary`),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r;try{r=yv(n)}catch{r=n}return new TextDecoder(`utf-8`).decode(r)},xv=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Sv=e=>new Promise(function(t,n){if(typeof window>`u`){t({width:0,height:0});return}let r=new Image;r.onload=()=>{t({width:r.width,height:r.height})},r.onerror=e=>{n(e)},r.src=e}),Cv=365.2425,wv=6048e5,Tv=864e5,Ev=6e4,Dv=36e5,Ov=1e3,kv=3600*24;kv*7,kv*Cv/12*3;var Av=Symbol.for(`constructDateFrom`);function jv(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Av in e?e[Av](t):e instanceof Date?new e.constructor(t):new Date(t)}function Mv(e,t){return jv(t||e,e)}function Nv(e,t,n){let r=Mv(e,n?.in);return r.setTime(r.getTime()+t*Ev),r}var Pv={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`}},Fv=(e,t,n)=>{let r,i=Pv[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function Iv(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Lv={date:Iv({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:Iv({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:Iv({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Rv={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},zv=(e,t,n,r)=>Rv[e];function Bv(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var Vv={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Bv({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Bv({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Bv({values:{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`]},defaultWidth:`wide`}),day:Bv({values:{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`]},defaultWidth:`wide`}),dayPeriod:Bv({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})};function Hv(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Wv(s,e=>e.test(o)):Uv(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function Uv(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Wv(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Gv(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Kv={code:`en-US`,formatDistance:Fv,formatLong:Lv,formatRelative:zv,localize:Vv,match:{ordinalNumber:Gv({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Hv({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Hv({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Hv({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:Hv({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:Hv({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},qv={};function Jv(){return qv}function Yv(e){let t=Mv(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Xv(e,...t){let n=jv.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Zv(e,t){let n=Mv(e,t?.in);return n.setHours(0,0,0,0),n}function Qv(e,t,n){let[r,i]=Xv(n?.in,e,t),a=Zv(r),o=Zv(i),s=+a-Yv(a),c=+o-Yv(o);return Math.round((s-c)/Tv)}function $v(e,t){let n=Mv(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ey(e,t){let n=Mv(e,t?.in);return Qv(n,$v(n))+1}function ty(e,t){let n=Jv(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Mv(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function ny(e,t){return ty(e,{...t,weekStartsOn:1})}function ry(e,t){let n=Mv(e,t?.in),r=n.getFullYear(),i=jv(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=ny(i),o=jv(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=ny(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function iy(e,t){let n=ry(e,t),r=jv(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ny(r)}function ay(e,t){let n=Mv(e,t?.in),r=ny(n)-+iy(n);return Math.round(r/wv)+1}function oy(e,t){let n=Mv(e,t?.in),r=n.getFullYear(),i=Jv(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=jv(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=ty(o,t),c=jv(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=ty(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function sy(e,t){let n=Jv(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=oy(e,t),a=jv(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),ty(a,t)}function cy(e,t){let n=Mv(e,t?.in),r=ty(n,t)-+sy(n,t);return Math.round(r/wv)+1}function ly(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var uy={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return ly(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):ly(n+1,2)},d(e,t){return ly(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return ly(e.getHours()%12||12,t.length)},H(e,t){return ly(e.getHours(),t.length)},m(e,t){return ly(e.getMinutes(),t.length)},s(e,t){return ly(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return ly(Math.trunc(r*10**(n-3)),t.length)}},dy={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},fy={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return uy.y(e,t)},Y:function(e,t,n,r){let i=oy(e,r),a=i>0?i:1-i;return t===`YY`?ly(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):ly(a,t.length)},R:function(e,t){return ly(ry(e),t.length)},u:function(e,t){return ly(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return ly(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return ly(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return uy.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return ly(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=cy(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):ly(i,t.length)},I:function(e,t,n){let r=ay(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):ly(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):uy.d(e,t)},D:function(e,t,n){let r=ey(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):ly(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return ly(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return ly(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return ly(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?dy.noon:r===0?dy.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?dy.evening:r>=12?dy.afternoon:r>=4?dy.morning:dy.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return uy.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):uy.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):ly(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):ly(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):uy.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):uy.s(e,t)},S:function(e,t){return uy.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return my(r);case`XXXX`:case`XX`:return hy(r);default:return hy(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return my(r);case`xxxx`:case`xx`:return hy(r);default:return hy(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+py(r,`:`);default:return`GMT`+hy(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+py(r,`:`);default:return`GMT`+hy(r,`:`)}},t:function(e,t,n){return ly(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return ly(+e,t.length)}};function py(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+ly(a,2)}function my(e,t){return e%60==0?(e>0?`-`:`+`)+ly(Math.abs(e)/60,2):hy(e,t)}function hy(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=ly(Math.trunc(r/60),2),a=ly(r%60,2);return n+i+t+a}var gy=(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`});default:return t.date({width:`full`})}},_y=(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`});default:return t.time({width:`full`})}},vy={p:_y,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return gy(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,gy(r,t)).replace(`{{time}}`,_y(i,t))}},yy=/^D+$/,by=/^Y+$/,xy=[`D`,`DD`,`YY`,`YYYY`];function Sy(e){return yy.test(e)}function Cy(e){return by.test(e)}function wy(e,t,n){let r=Ty(e,t,n);if(console.warn(r),xy.includes(e))throw RangeError(r)}function Ty(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Ey(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Dy(e){return!(!Ey(e)&&typeof e!=`number`||isNaN(+Mv(e)))}var Oy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ky=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ay=/^'([^]*?)'?$/,jy=/''/g,My=/[a-zA-Z]/;function Ny(e,t,n){let r=Jv(),i=n?.locale??r.locale??Kv,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Mv(e,n?.in);if(!Dy(s))throw RangeError(`Invalid time value`);let c=t.match(ky).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=vy[t];return n(e,i.formatLong)}return e}).join(``).match(Oy).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Py(e)};if(fy[t])return{isToken:!0,value:e};if(t.match(My))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Cy(a)||!n?.useAdditionalDayOfYearTokens&&Sy(a))&&wy(a,t,String(e));let o=fy[a[0]];return o(s,a,i.localize,l)}).join(``)}function Py(e){let t=e.match(Ay);return t?t[1].replace(jy,`'`):e}function Fy(){return Object.assign({},Jv())}function Iy(e,t){let n=Ly(t)?new t(0):jv(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Ly(e){return typeof e==`function`&&e.prototype?.constructor===e}var Ry=10,zy=class{subPriority=0;validate(e,t){return!0}},By=class extends zy{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},Vy=class extends zy{priority=Ry;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>jv(t,e))}set(e,t){return t.timestampIsSet?e:jv(e,Iy(e,this.context))}},Hy=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new By(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},Uy=class extends Hy{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},Wy={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}/},Gy={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 Ky(e,t){return e&&{value:t(e.value),rest:e.rest}}function qy(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Jy(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Dv+a*Ev+o*Ov),rest:t.slice(n[0].length)}}function Yy(e){return qy(Wy.anyDigitsSigned,e)}function Xy(e,t){switch(e){case 1:return qy(Wy.singleDigit,t);case 2:return qy(Wy.twoDigits,t);case 3:return qy(Wy.threeDigits,t);case 4:return qy(Wy.fourDigits,t);default:return qy(RegExp(`^\\d{1,`+e+`}`),t)}}function Zy(e,t){switch(e){case 1:return qy(Wy.singleDigitSigned,t);case 2:return qy(Wy.twoDigitsSigned,t);case 3:return qy(Wy.threeDigitsSigned,t);case 4:return qy(Wy.fourDigitsSigned,t);default:return qy(RegExp(`^-?\\d{1,`+e+`}`),t)}}function Qy(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function $y(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function eb(e){return e%400==0||e%4==0&&e%100!=0}var tb=class extends Hy{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return Ky(Xy(4,e),r);case`yo`:return Ky(n.ordinalNumber(e,{unit:`year`}),r);default:return Ky(Xy(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=$y(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},nb=class extends Hy{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return Ky(Xy(4,e),r);case`Yo`:return Ky(n.ordinalNumber(e,{unit:`year`}),r);default:return Ky(Xy(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=oy(e,r);if(n.isTwoDigitYear){let t=$y(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),ty(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),ty(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},rb=class extends Hy{priority=130;parse(e,t){return Zy(t===`R`?4:t.length,e)}set(e,t,n){let r=jv(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ny(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},ib=class extends Hy{priority=130;parse(e,t){return Zy(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},ab=class extends Hy{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return Xy(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},ob=class extends Hy{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return Xy(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},sb=class extends Hy{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return Ky(qy(Wy.month,e),r);case`MM`:return Ky(Xy(2,e),r);case`Mo`:return Ky(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},cb=class extends Hy{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return Ky(qy(Wy.month,e),r);case`LL`:return Ky(Xy(2,e),r);case`Lo`:return Ky(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function lb(e,t,n){let r=Mv(e,n?.in),i=cy(r,n)-t;return r.setDate(r.getDate()-i*7),Mv(r,n?.in)}var ub=class extends Hy{priority=100;parse(e,t,n){switch(t){case`w`:return qy(Wy.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return ty(lb(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function db(e,t,n){let r=Mv(e,n?.in),i=ay(r,n)-t;return r.setDate(r.getDate()-i*7),r}var fb=class extends Hy{priority=100;parse(e,t,n){switch(t){case`I`:return qy(Wy.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return ny(db(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},pb=[31,28,31,30,31,30,31,31,30,31,30,31],mb=[31,29,31,30,31,30,31,31,30,31,30,31],hb=class extends Hy{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return qy(Wy.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return Xy(t.length,e)}}validate(e,t){let n=eb(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=mb[r]:t>=1&&t<=pb[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},gb=class extends Hy{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return qy(Wy.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return Xy(t.length,e)}}validate(e,t){return eb(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function _b(e,t,n){let r=Mv(e,n?.in);return isNaN(t)?jv(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function vb(e,t,n){let r=Jv(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Mv(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return _b(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var yb=class extends Hy{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=vb(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},bb=class extends Hy{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return Ky(Xy(t.length,e),i);case`eo`:return Ky(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=vb(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},xb=class extends Hy{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return Ky(Xy(t.length,e),i);case`co`:return Ky(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=vb(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function Sb(e,t){let n=Mv(e,t?.in).getDay();return n===0?7:n}function Cb(e,t,n){let r=Mv(e,n?.in);return _b(r,t-Sb(r,n),n)}var wb=class extends Hy{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return Xy(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return Ky(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return Ky(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return Ky(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return Ky(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Cb(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Tb=class extends Hy{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qy(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},Eb=class extends Hy{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qy(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},Db=class extends Hy{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qy(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Ob=class extends Hy{priority=70;parse(e,t,n){switch(t){case`h`:return qy(Wy.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},kb=class extends Hy{priority=70;parse(e,t,n){switch(t){case`H`:return qy(Wy.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},Ab=class extends Hy{priority=70;parse(e,t,n){switch(t){case`K`:return qy(Wy.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},jb=class extends Hy{priority=70;parse(e,t,n){switch(t){case`k`:return qy(Wy.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Mb=class extends Hy{priority=60;parse(e,t,n){switch(t){case`m`:return qy(Wy.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},Nb=class extends Hy{priority=50;parse(e,t,n){switch(t){case`s`:return qy(Wy.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},Pb=class extends Hy{priority=30;parse(e,t){return Ky(Xy(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Fb=class extends Hy{priority=10;parse(e,t){switch(t){case`X`:return Jy(Gy.basicOptionalMinutes,e);case`XX`:return Jy(Gy.basic,e);case`XXXX`:return Jy(Gy.basicOptionalSeconds,e);case`XXXXX`:return Jy(Gy.extendedOptionalSeconds,e);default:return Jy(Gy.extended,e)}}set(e,t,n){return t.timestampIsSet?e:jv(e,e.getTime()-Yv(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Ib=class extends Hy{priority=10;parse(e,t){switch(t){case`x`:return Jy(Gy.basicOptionalMinutes,e);case`xx`:return Jy(Gy.basic,e);case`xxxx`:return Jy(Gy.basicOptionalSeconds,e);case`xxxxx`:return Jy(Gy.extendedOptionalSeconds,e);default:return Jy(Gy.extended,e)}}set(e,t,n){return t.timestampIsSet?e:jv(e,e.getTime()-Yv(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Lb=class extends Hy{priority=40;parse(e){return Yy(e)}set(e,t,n){return[jv(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},Rb=class extends Hy{priority=20;parse(e){return Yy(e)}set(e,t,n){return[jv(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},zb={G:new Uy,y:new tb,Y:new nb,R:new rb,u:new ib,Q:new ab,q:new ob,M:new sb,L:new cb,w:new ub,I:new fb,d:new hb,D:new gb,E:new yb,e:new bb,c:new xb,i:new wb,a:new Tb,b:new Eb,B:new Db,h:new Ob,H:new kb,K:new Ab,k:new jb,m:new Mb,s:new Nb,S:new Pb,X:new Fb,x:new Ib,t:new Lb,T:new Rb},Bb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Hb=/^'([^]*?)'?$/,Ub=/''/g,Wb=/\S/,Gb=/[a-zA-Z]/;function Kb(e,t,n,r){let i=()=>jv(r?.in||n,NaN),a=Fy(),o=r?.locale??a.locale??Kv,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():Mv(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new Vy(r?.in,n)],d=t.match(Vb).map(e=>{let t=e[0];if(t in vy){let n=vy[t];return n(e,o.formatLong)}return e}).join(``).match(Bb),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&Cy(n)&&wy(n,t,e),!r?.useAdditionalDayOfYearTokens&&Sy(n)&&wy(n,t,e);let a=n[0],s=zb[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(Gb))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=qb(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&Wb.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=Mv(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function qb(e){return e.match(Hb)[1].replace(Ub,`'`)}var Jb=e=>{let t=Kb(e,`yyMMddHHmmssX`,new Date),n=new Date().getTimezoneOffset(),r=Nv(t,-n),i=-n/60;return Ny(r,`dd/MM/yyyy HH:mm:ss '${`GMT${i>=0?`+`:``}${i}`}'`)},Yb=e=>{let t=j.WAS_NOT_DONE;for(let n of e){if(n===j.ERROR)return j.ERROR;t===j.WAS_NOT_DONE&&n===j.OK&&(t=j.OK)}return t},Xb=class{};q([I(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Xb.prototype,`light`,void 0),q([F(),Y(()=>Z),L({each:!0}),K(`design:type`,Array)],Xb.prototype,`rect`,void 0);var Zb=[M.MRZ_TEXT,M.VISUAL_TEXT,M.BARCODE_TEXT],Qb=class{};q([F(),V(M),R(Zb),K(`design:type`,Object)],Qb.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],Qb.prototype,`reference`,void 0),q([F(),U(),K(`design:type`,String)],Qb.prototype,`result`,void 0),q([F(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],Qb.prototype,`location`,void 0);var $b=class{},ex,tx=class extends $b{static{ex=this}static{this.fromPlain=e=>Ns(ex,e)}static{this.isBelongs=e=>{let t=e;return Zs.includes(t?.checkType)}}};q([F(),R(Zs),K(`design:type`,Object)],tx.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],tx.prototype,`location`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],tx.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],tx.prototype,`checkResult`,void 0),q([F(),H({each:!0}),K(`design:type`,Array)],tx.prototype,`colorValues`,void 0),q([F(),H(),K(`design:type`,Number)],tx.prototype,`rectCount`,void 0),q([F(),H(),K(`design:type`,Number)],tx.prototype,`expectedCount`,void 0),tx=ex=q([J()],tx);var nx,rx=class extends $b{static{nx=this}static{this.fromPlain=e=>Ns(nx,e)}static{this.isBelongs=e=>{let t=e;return tc.includes(t?.checkType)}}};q([F(),R(tc),K(`design:type`,Object)],rx.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],rx.prototype,`location`,void 0),q([F(),B(),K(`design:type`,Number)],rx.prototype,`similarity`,void 0),q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],rx.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],rx.prototype,`image`,void 0),q([F(),U(),K(`design:type`,String)],rx.prototype,`referenceImage`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],rx.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],rx.prototype,`checkResult`,void 0),rx=nx=q([J()],rx);var ix,ax=class extends $b{static{ix=this}static{this.fromPlain=e=>Ns(ix,e)}static{this.isBelongs=e=>{let t=e;return uc.includes(t?.checkType)}}};q([F(),R(uc),K(`design:type`,Object)],ax.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],ax.prototype,`location`,void 0),q([F(),U(),K(`design:type`,String)],ax.prototype,`image`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],ax.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],ax.prototype,`checkResult`,void 0),ax=ix=q([J()],ax);var ox,sx=class extends $b{static{ox=this}static{this.fromPlain=e=>Ns(ox,e)}static{this.isBelongs=e=>{let t=e;return mc.includes(t?.checkType)}}};q([F(),R(mc),K(`design:type`,Object)],sx.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],sx.prototype,`location`,void 0),q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],sx.prototype,`feature`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],sx.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sx.prototype,`checkResult`,void 0),sx=ox=q([J()],sx);var cx,lx=class extends $b{static{cx=this}static{this.fromPlain=e=>Ns(cx,e)}static{this.isBelongs=e=>{let t=e;return ac.includes(t?.checkType)}}};q([F(),L(),Y(()=>Qb),K(`design:type`,Qb===void 0?Object:Qb)],lx.prototype,`reference`,void 0),q([F(),R(ac),K(`design:type`,Object)],lx.prototype,`checkType`,void 0),q([F(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],lx.prototype,`location`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],lx.prototype,`checkResult`,void 0),q([F(),V(P),K(`design:type`,P===void 0?Object:P)],lx.prototype,`type`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],lx.prototype,`diagnose`,void 0),lx=cx=q([J()],lx);var ux=e=>{let t=[];return e.forEach(e=>{if(!xv(e)||!(`checkType`in e))return;let{checkType:n}=e;switch(n){case A.UV_FIBERS:t.push(tx.fromPlain(e));break;case A.IMAGE_PATTERN:case A.IR_VISIBILITY:case A.OVI:case A.PORTRAIT_COMPARISON:case A.KINEGRAM:case A.LETTER_SCREEN:case A.HOLOGRAM_DETECTION:case A.FINGERPRINT_COMPARISON:case A.LIVENESS:t.push(rx.fromPlain(e));break;case A.OCR_SECURITY_TEXT:case A.ENCRYPTED_IPI:t.push(lx.fromPlain(e));break;case A.IPI:t.push(ax.fromPlain(e));break;case A.UV_LUMINESCENCE:case A.IR_B900:case A.AXIAL_PROTECTION:case A.PHOTO_EMBED_TYPE:case A.HOLOGRAMS:case A.PHOTO_AREA:case A.BARCODE_FORMAT_CHECK:case A.EXTENDED_OCR_CHECK:case A.EXTENDED_MRZ_CHECK:t.push(sx.fromPlain(e));break}}),t},dx,fx=class{static{dx=this}static{this.fromPlain=e=>Ns(dx,e)}};q([F(),V(A),K(`design:type`,A===void 0?Object:A)],fx.prototype,`group`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],fx.prototype,`checkResult`,void 0),q([L({each:!0}),As(({obj:e})=>ux(e.checks),{toClassOnly:!0}),W(),K(`design:type`,Array)],fx.prototype,`checks`,void 0),fx=dx=q([J()],fx);var px,mx=class{static{px=this}static{this.fromPlain=e=>X(px,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),H(),K(`design:type`,Number)],mx.prototype,`page`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],mx.prototype,`checkResult`,void 0),q([F(),L({each:!0}),Y(()=>fx),K(`design:type`,Array)],mx.prototype,`groups`,void 0),mx=px=q([J()],mx);var hx=[zr.PORTRAIT_COMPARISON_VS_CAMERA,zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,zr.PORTRAIT_COMPARISON_EXT_VS_RFID,zr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA],gx=e=>{let t=bc.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.AuthenticityCheckList.List,r=mx.fromPlain({checkResult:j.WAS_NOT_DONE,page:e.page_idx??0,groups:[]});t.forEach(e=>{if(Qs.isBelongs(e)&&e.List.forEach(t=>{let n=r.groups.findIndex(e=>e.group===t.Type);n===-1&&(r.groups.push(fx.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),n=r.groups.length-1),r.groups[n].checks.push(tx.fromPlain({colorValues:t.ColorValues,rectCount:t.RectCount,expectedCount:t.ExpectedCount,checkType:t.Type,location:{light:void 0,rect:t.RectArray},diagnose:t.ElementDiagnose??ir.UNKNOWN,checkResult:t.ElementResult??j.WAS_NOT_DONE}))}),nc.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(hx.includes(t.ElementType))return;let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(fx.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push(rx.fromPlain({checkType:t.Type,checkResult:t.ElementResult??j.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ir.UNKNOWN,image:t.Image.image,referenceImage:t.EtalonImage.image,similarity:t.PercentValue??0,type:t.ElementType,location:{light:n,rect:t.Area?[t.Area]:[]}}))}),oc.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{t===-1&&(r.groups.push(fx.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(lx.fromPlain({reference:{type:n.EtalonResultType,reference:n.EtalonResultOCR,result:n.SecurityTextResultOCR,location:{light:n.EtalonLightType,rect:n.EtalonFieldRect?[n.EtalonFieldRect]:[]}},checkType:n.Type,checkResult:n.ElementResult??j.WAS_NOT_DONE,type:n.EtalonFieldType,diagnose:n.ElementDiagnose??ir.UNKNOWN,location:{light:n.LightType,rect:n.FieldRect?[n.FieldRect]:[]}}))}),e.List?.length||r.groups.push(fx.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}if(dc.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(t.ResultImages?.Images?.length){let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(fx.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push(ax.fromPlain({checkType:t.Type,checkResult:t.ElementResult??j.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ir.UNKNOWN,image:t.ResultImages.Images[0].image,location:n===mr.OFF?void 0:{light:n,rect:t.Area?[t.Area]:[]}}))}}),hc.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{hx.includes(n.ElementType)||(t===-1&&(r.groups.push(fx.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(sx.fromPlain({checkType:n.Type,checkResult:n.ElementResult??j.WAS_NOT_DONE,diagnose:n.ElementDiagnose??ir.UNKNOWN,feature:n.ElementType??zr.BLANK,location:{light:void 0,rect:n.ElementRect?[n.ElementRect]:[]}})))}),e.List?.length||r.groups.push(fx.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}}),r.groups.forEach(e=>e.checks.sort((e,t)=>e.checkResult-t.checkResult)),r.checkResult=Yb(r.groups.map(({checkResult:e})=>e)),r.groups.sort((e,t)=>e.checkResult-t.checkResult),n.push(r)}),n.sort((e,t)=>e.page-t.page)},_x=function(e){return 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}({}),vx,yx=class{static{vx=this}static{this.fromPlain=e=>X(vx,e)}};q([F(),V(_x),K(`design:type`,_x===void 0?Object:_x)],yx.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yx.prototype,`checkResult`,void 0),q([F(),B(),K(`design:type`,Number)],yx.prototype,`similarity`,void 0),q([F(),U(),K(`design:type`,String)],yx.prototype,`image`,void 0),yx=vx=q([J()],yx);var bx,xx=class{static{bx=this}static{this.fromPlain=e=>Ns(bx,e)}};q([F(),U(),K(`design:type`,String)],xx.prototype,`image`,void 0),q([F(),V(_x),K(`design:type`,_x===void 0?Object:_x)],xx.prototype,`source`,void 0),q([F(),L({each:!0}),Y(()=>yx),K(`design:type`,Array)],xx.prototype,`comparable`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],xx.prototype,`diagnose`,void 0),xx=bx=q([J()],xx);var Sx=e=>{let t=bc.fromProcessResponse(e),n=[];return t.forEach(e=>{e.AuthenticityCheckList.List.forEach(e=>{if(nc.isBelongs(e)){if(e.Type!==A.PORTRAIT_COMPARISON)return;e.List.forEach(e=>{if(![zr.PORTRAIT_COMPARISON_VS_CAMERA,zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,zr.PORTRAIT_COMPARISON_EXT_VS_RFID,zr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType))return;let t=_x.PORTRAIT,r=_x.CAMERA;switch(e.ElementType){case zr.PORTRAIT_COMPARISON_VS_CAMERA:t=_x.PORTRAIT,r=_x.CAMERA;break;case zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA:t=_x.RFID,r=_x.CAMERA;break;case zr.PORTRAIT_COMPARISON_EXT_VS_VISUAL:t=_x.EXTERNAL,r=_x.VISUAL;break;case zr.PORTRAIT_COMPARISON_EXT_VS_RFID:t=_x.EXTERNAL,r=_x.RFID;break;case zr.PORTRAIT_COMPARISON_EXT_VS_CAMERA:t=_x.EXTERNAL,r=_x.CAMERA;break;case zr.PORTRAIT_COMPARISON_EXT_VS_BARCODE:t=_x.EXTERNAL,r=_x.BARCODE;break;case zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA:t=_x.BARCODE,r=_x.CAMERA;break}let i=[zr.PORTRAIT_COMPARISON_VS_CAMERA,zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType),a=n.findIndex(e=>i?e.source===r:e.source===t);a===-1&&(n.push(xx.fromPlain({diagnose:e.ElementDiagnose,source:i?r:t,comparable:[],image:i?e.Image.image:e.EtalonImage.image})),a=n.length-1),n[a].comparable.push(yx.fromPlain({source:i?t:r,checkResult:e.ElementResult,similarity:e.PercentValue,image:i?e.EtalonImage.image:e.Image.image}))})}})}),n},Cx=class{};q([F(),B(),K(`design:type`,Number)],Cx.prototype,`length`,void 0),q([F(),V(nr),K(`design:type`,nr===void 0?Object:nr)],Cx.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],Cx.prototype,`data`,void 0);var wx=class{};q([F(),B(),K(`design:type`,Number)],wx.prototype,`fieldIndex`,void 0),q([F(),V(rr),K(`design:type`,rr===void 0?Object:rr)],wx.prototype,`type`,void 0),q([F(),V(ro),K(`design:type`,ro===void 0?Object:ro)],wx.prototype,`resultCode`,void 0),q([F(),Y(()=>Cx),L({each:!0}),K(`design:type`,Array)],wx.prototype,`modulesData`,void 0);var Tx,Ex=class{static{Tx=this}static{this.fromPlain=e=>X(Tx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Tx.getValidationErrors(e).length===0)}};q([F(),B(),K(`design:type`,Number)],Ex.prototype,`pageIndex`,void 0),q([F(),Y(()=>wx),L({each:!0}),K(`design:type`,Array)],Ex.prototype,`fields`,void 0),Ex=Tx=q([J()],Ex);var Dx=e=>{let t=[];return Nc.fromProcessResponse(e).forEach(e=>{if(!e.DocBarCodeInfo?.pArrayFields?.length)return;let n=new Ex;n.pageIndex=e.page_idx??0,n.fields=[],e.DocBarCodeInfo.pArrayFields.map((e,t)=>{let r=new wx;r.fieldIndex=t,r.resultCode=e.bcCodeResult??ro.NO_ERR,r.type=e.bcType_DECODE??rr.UNKNOWN,r.modulesData=[],e.bcDataModule?.map(e=>{if(e.mLength===void 0||e.mType===void 0||e.mData===void 0)return;let t=new Cx;t.data=e.mData,t.length=e.mLength,t.type=e.mType,r.modulesData.push(t)}),n.fields.push(r)}),t.push(n)}),t.filter(e=>!!e.fields.length)},Ox=class{};q([F(),H(),K(`design:type`,Number)],Ox.prototype,`pageIndex`,void 0),q([I(),U(),K(`design:type`,String)],Ox.prototype,`src`,void 0),q([F(),H(),K(`design:type`,Number)],Ox.prototype,`width`,void 0),q([F(),H(),K(`design:type`,Number)],Ox.prototype,`height`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Ox.prototype,`source`,void 0);var kx,Ax=class{static{kx=this}static{this.fromPlain=e=>X(kx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>!kx.getValidationErrors(e).length)}};q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Ax.prototype,`light`,void 0),q([F(),V(lr),K(`design:type`,lr===void 0?Object:lr)],Ax.prototype,`fieldType`,void 0),q([F(),U(),K(`design:type`,String)],Ax.prototype,`name`,void 0),q([F(),Y(()=>Ox),L({each:!0}),K(`design:type`,Array)],Ax.prototype,`pages`,void 0),Ax=kx=q([J()],Ax);var jx=async(e,t,n)=>{let r=[],i=Ll.fromProcessResponse(e);if(!i.length)return r;let a=Ml.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new Ax;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f={width:0,height:0};d&&(f=await Sv(d));let p=new Ox;p.pageIndex=s,p.src=d,p.width=f.width,p.height=f.height,p.source=a.source,r[u].pages.push(p)}}return r},Mx=(e,t,n)=>{let r=[],i=Ll.fromProcessResponse(e);if(!i.length)return r;let a=Ml.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new Ax;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f=new Ox;f.pageIndex=s,f.src=d,f.width=0,f.height=0,f.source=a.source,r[u].pages.push(f)}}return r},Nx,Px=class{static{Nx=this}static{this.fromPlain=e=>X(Nx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Nx.getValidationErrors(e).length===0)}};q([F(),U(),K(`design:type`,String)],Px.prototype,`src`,void 0),q([F(),H(),K(`design:type`,Number)],Px.prototype,`width`,void 0),q([F(),H(),K(`design:type`,Number)],Px.prototype,`height`,void 0),Px=Nx=q([J()],Px);var Fx=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAoMBgDTD2qgAAAAASUVORK5CYII=`;async function Ix(e,t,n=!0,r){let i=new Px;i.width=1,i.height=1,i.src=Fx;let a=Ll.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o){i.src=`data:image/jpeg;base64,${o}`;let e=await Sv(i.src);i.width=e.width,i.height=e.height}else if(!n)return;return i}function Lx(e,t,n=!0,r){let i=new Px;i.width=1,i.height=1,i.src=Fx;let a=Ll.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o)i.src=`data:image/jpeg;base64,${o}`,i.width=0,i.height=0;else if(!n)return;return i}var Rx=class{};q([F(),V(ur),K(`design:type`,ur===void 0?Object:ur)],Rx.prototype,`checkType`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Rx.prototype,`checkResult`,void 0);var zx,Bx=class{static{zx=this}static{this.fromPlain=e=>X(zx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>zx.getValidationErrors(e).length===0)}};q([F(),B(),K(`design:type`,Number)],Bx.prototype,`pageIndex`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Bx.prototype,`checkResult`,void 0),q([F(),Y(()=>Rx),L({each:!0}),K(`design:type`,Array)],Bx.prototype,`checks`,void 0),Bx=zx=q([J()],Bx);var Vx=(function(){function e(e){return e}function t(e){return typeof e==`string`?e.toLowerCase():e}function n(n,r){if(r=typeof r==`object`?r:{direction:r},typeof n!=`function`){var i=n;n=function(e){return e[i]?e[i]:``}}if(n.length===1){var a=n,o=r.ignoreCase?t:e,s=r.cmp||function(e,t){return e<t?-1:+(e>t)};n=function(e,t){return s(o(a(e)),o(a(t)))}}return r.direction in{"-1":``,desc:``}?function(e,t){return-n(e,t)}:n}function r(e,t){var i=typeof this==`function`&&!this.firstBy?this:!1,a=n(e,t),o=i?function(e,t){return i(e,t)||a(e,t)}:a;return o.thenBy=r,o}return r.firstBy=r,r})(),Hx=e=>{let t=[];return Al.fromProcessResponse(e).sort(Vx(e=>e.page_idx)).forEach(e=>{let n=new Bx;n.pageIndex=e.page_idx??0,n.checks=[],n.checkResult=e.ImageQualityCheckList.result,e.ImageQualityCheckList.List.forEach(e=>{if(e.result===void 0||e.type===void 0)return;let t=new Rx;t.checkResult=e.result,t.checkType=e.type,n.checks.push(t)}),t.push(n)}),t.filter(e=>e.checks.length)},Ux,Wx=class{static{Ux=this}static{this.fromPlain=e=>X(Ux,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Wx.prototype,`certificateType`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`publicKeyAlgorithm`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`signatureAlgorithm`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`issuer`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`subject`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`validFrom`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`validTo`,void 0),Wx=Ux=q([J()],Wx);var Gx=(e,t=`UNKNOWN`)=>{let n=cl.fromProcessResponse(e),r=[];return n.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.SecurityObjects.forEach(e=>{e.SignerInfos.forEach(e=>{e.CertificateChain.forEach(e=>{let n=new Wx;n.certificateType=e.Type??Nr.UNDEFINED,n.publicKeyAlgorithm=e.SubjectPKAlgorithm??t,n.signatureAlgorithm=e.SignatureAlgorithm??t,n.issuer=e.Issuer.FriendlyName.Data??t,n.subject=e.Subject.FriendlyName.Data??t,e.Validity.NotBefore.Data?n.validFrom=Jb(e.Validity.NotBefore.Data):n.validFrom=t,e.Validity.NotAfter.Data?n.validTo=Jb(e.Validity.NotAfter.Data):n.validTo=t,r.push(n)})})})}),r},Kx=e=>{let t=rl.fromProcessResponse(e),n=[];if(t.forEach(e=>{e.Status.detailsRFID&&n.push(e.Status.detailsRFID)}),n.length)return n[0];let r=new Qc;return r.AA=j.WAS_NOT_DONE,r.BAC=j.WAS_NOT_DONE,r.CA=j.WAS_NOT_DONE,r.PA=j.WAS_NOT_DONE,r.PACE=j.WAS_NOT_DONE,r.TA=j.WAS_NOT_DONE,r.overallStatus=j.WAS_NOT_DONE,r},qx=function(e){return e[e.NOT_PERFORMED=Tr.RFID_Error_NotPerformed]=`NOT_PERFORMED`,e[e.NOT_AVAILABLE=Tr.RFID_Error_NotAvailable]=`NOT_AVAILABLE`,e[e.NO_ERROR=Tr.RFID_Error_NoError]=`NO_ERROR`,e[e.FAILED=Tr.RFID_Error_Failed]=`FAILED`,e}({}),Jx,Yx=class{static{Jx=this}static{this.fromPlain=e=>X(Jx,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),H(),K(`design:type`,Number)],Yx.prototype,`group`,void 0),q([F(),V(qx),K(`design:type`,qx===void 0?Object:qx)],Yx.prototype,`status`,void 0),Yx=Jx=q([J()],Yx);var Xx=e=>{let t;switch(e){case N.ID_DG1:case N.PASSPORT_DG1:case N.DL_DG1:t=1;break;case N.ID_DG2:case N.PASSPORT_DG2:case N.DL_DG2:t=2;break;case N.ID_DG3:case N.PASSPORT_DG3:case N.DL_DG3:t=3;break;case N.ID_DG4:case N.PASSPORT_DG4:case N.DL_DG4:t=4;break;case N.ID_DG5:case N.PASSPORT_DG5:case N.DL_DG5:t=5;break;case N.ID_DG6:case N.PASSPORT_DG6:case N.DL_DG6:t=6;break;case N.ID_DG7:case N.PASSPORT_DG7:case N.DL_DG7:t=7;break;case N.ID_DG8:case N.PASSPORT_DG8:case N.DL_DG8:t=8;break;case N.ID_DG9:case N.PASSPORT_DG9:case N.DL_DG9:t=9;break;case N.ID_DG10:case N.PASSPORT_DG10:case N.DL_DG10:t=10;break;case N.ID_DG11:case N.PASSPORT_DG11:case N.DL_DG11:t=11;break;case N.ID_DG12:case N.PASSPORT_DG12:case N.DL_DG12:t=12;break;case N.ID_DG13:case N.PASSPORT_DG13:case N.DL_DG13:t=13;break;case N.ID_DG14:case N.PASSPORT_DG14:case N.DL_DG14:t=14;break;case N.ID_DG15:case N.PASSPORT_DG15:t=15;break;case N.ID_DG16:case N.PASSPORT_DG16:t=16;break;case N.ID_DG17:case N.PASSPORT_DG17:case N.DTC_DG17:t=17;break;case N.ID_DG18:case N.PASSPORT_DG18:case N.DTC_DG18:t=18;break;case N.ID_DG19:case N.PASSPORT_DG19:t=19;break;case N.ID_DG20:case N.PASSPORT_DG20:t=20;break;case N.ID_DG21:t=21;break;case N.DTC_DG22:t=22;break;case N.DTC_DG23:t=23;break;case N.DTC_DG24:t=24;break}return t},Zx=e=>{let t=cl.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data,r=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_ePassp_Directory||[];t?.Applications.forEach((e,t,i)=>{let a=e.Type,o=[];if(!(a===kr.eDTC_PC&&i.length>1)&&(e.Files.forEach(e=>{let t=e.Type,n=Xx(t),r=qx.NOT_AVAILABLE;switch(e.PA_Status){case Tr.RFID_Error_NoError:r=qx.NO_ERROR;break;case Tr.RFID_Error_NotPerformed:r=qx.NOT_PERFORMED;break;case Tr.RFID_Error_NotAvailable:r=qx.NOT_AVAILABLE;break;case Tr.RFID_Error_Failed:r=qx.FAILED;break}n&&o.push({index:n,status:r})}),r.forEach(e=>{let t=Xx(e),n=o.findIndex(e=>e.index===t);t!==void 0&&n<0&&o.push({index:t,status:qx.NOT_PERFORMED})}),o.length)){let e=o.sort((e,t)=>e.index-t.index),t=0;switch(a){case kr.E_PASSPORT:t=16;break;case kr.E_ID:t=21;break;case kr.E_DL:t=14;break;default:{let n=e.map(e=>e.index),r=Math.max(...n);t=n.includes(2)&&n.includes(3)&&n.includes(8)&&r<=8?8:n.includes(1)&&n.includes(2)&&n.includes(6)&&n.includes(10)&&r<=10?10:r;break}}for(let n=1;n<=t;n++)e.find(e=>e.index===n)||e.splice(n-1,0,{index:n,status:qx.NOT_AVAILABLE});n=e.map(e=>{let t=new Yx;return t.group=e.index,t.status=e.status,t})}})}),n},Qx=class{};q([F(),V(N),K(`design:type`,N===void 0?Object:N)],Qx.prototype,`group`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qx.prototype,`status`,void 0);var $x,eS=class{static{$x=this}static{this.fromPlain=e=>X($x,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),V(kr),K(`design:type`,kr===void 0?Object:kr)],eS.prototype,`type`,void 0),q([F(),Y(()=>Qx),L({each:!0}),K(`design:type`,Array)],eS.prototype,`groups`,void 0),eS=$x=q([J()],eS);var tS=e=>{let t=cl.fromProcessResponse(e),n=[];return t.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.Applications.forEach(e=>{let t={type:e.Type,groups:[]};e.Files.forEach(e=>{let n=e.Type,r=j.WAS_NOT_DONE;switch(e.PA_Status){case Tr.RFID_Error_NotPerformed:case Tr.RFID_Error_NotAvailable:r=j.WAS_NOT_DONE;break;case Tr.RFID_Error_NoError:r=j.OK;break;default:r=j.ERROR;break}t.groups.push({group:n,status:r})}),n.push(t)})}),n},nS=function(e){return e.DOC_TYPE=`DOC_TYPE`,e.EXPIRY=`EXPIRY`,e.IMAGE_QA=`IMAGE_QA`,e.MRZ=`MRZ`,e.SECURITY=`SECURITY`,e.TEXT=`TEXT`,e}({}),rS=function(e){return e.AA=`AA`,e.BAC=`BAC`,e.CA=`CA`,e.PA=`PA`,e.PACE=`PACE`,e.TA=`TA`,e}({}),iS=function(e){return e.OPTICAL=`optical`,e.PORTRAIT=`portrait`,e.RFID=`rfid`,e.STOP_LIST=`stopList`,e}({}),aS=class{static{nS.DOC_TYPE,nS.EXPIRY,nS.IMAGE_QA,nS.MRZ,nS.SECURITY,nS.TEXT}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0);var oS=class{static{iS.OPTICAL,iS.PORTRAIT,iS.RFID,iS.STOP_LIST}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0);var sS=class{static{rS.AA,rS.BAC,rS.CA,rS.PACE,rS.PA,rS.TA}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0);var cS,lS=class{static{cS=this}static{this.fromPlain=e=>X(cS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>cS.getValidationErrors(e).length===0)}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],lS.prototype,`overallStatus`,void 0),q([F(),Y(()=>aS),L(),K(`design:type`,aS===void 0?Object:aS)],lS.prototype,`optical`,void 0),q([F(),Y(()=>sS),L(),K(`design:type`,sS===void 0?Object:sS)],lS.prototype,`rfId`,void 0),q([F(),Y(()=>oS),L(),K(`design:type`,oS===void 0?Object:oS)],lS.prototype,`summary`,void 0),lS=cS=q([J()],lS);var uS=e=>{let t=new lS,n=rl.fromProcessResponse(e);if(t.overallStatus=j.WAS_NOT_DONE,!n.length)return t.optical=new aS,t.optical[nS.DOC_TYPE]=j.WAS_NOT_DONE,t.optical[nS.TEXT]=j.WAS_NOT_DONE,t.optical[nS.SECURITY]=j.WAS_NOT_DONE,t.optical[nS.MRZ]=j.WAS_NOT_DONE,t.optical[nS.IMAGE_QA]=j.WAS_NOT_DONE,t.optical[nS.EXPIRY]=j.WAS_NOT_DONE,t.rfId=new sS,t.rfId[rS.AA]=j.WAS_NOT_DONE,t.rfId[rS.BAC]=j.WAS_NOT_DONE,t.rfId[rS.CA]=j.WAS_NOT_DONE,t.rfId[rS.PA]=j.WAS_NOT_DONE,t.rfId[rS.PACE]=j.WAS_NOT_DONE,t.rfId[rS.TA]=j.WAS_NOT_DONE,t.summary=new oS,t.summary[iS.OPTICAL]=j.WAS_NOT_DONE,t.summary[iS.PORTRAIT]=j.WAS_NOT_DONE,t.summary[iS.RFID]=j.WAS_NOT_DONE,t.summary[iS.STOP_LIST]=j.WAS_NOT_DONE,t;let r=n[0].Status;return t.overallStatus=r.overallStatus,t.optical=new aS,t.optical[nS.DOC_TYPE]=r.detailsOptical.docType??j.WAS_NOT_DONE,t.optical[nS.TEXT]=r.detailsOptical.text??j.WAS_NOT_DONE,t.optical[nS.SECURITY]=r.detailsOptical.security??j.WAS_NOT_DONE,t.optical[nS.MRZ]=r.detailsOptical.mrz??j.WAS_NOT_DONE,t.optical[nS.IMAGE_QA]=r.detailsOptical.imageQA??j.WAS_NOT_DONE,t.optical[nS.EXPIRY]=r.detailsOptical.expiry??j.WAS_NOT_DONE,t.rfId=new sS,t.rfId[rS.AA]=r.detailsRFID?.AA??j.WAS_NOT_DONE,t.rfId[rS.BAC]=r.detailsRFID?.BAC??j.WAS_NOT_DONE,t.rfId[rS.CA]=r.detailsRFID?.CA??j.WAS_NOT_DONE,t.rfId[rS.PA]=r.detailsRFID?.PA??j.WAS_NOT_DONE,t.rfId[rS.PACE]=r.detailsRFID?.PACE??j.WAS_NOT_DONE,t.rfId[rS.TA]=r.detailsRFID?.TA??j.WAS_NOT_DONE,t.summary=new oS,t.summary[iS.OPTICAL]=r.optical??j.WAS_NOT_DONE,t.summary[iS.PORTRAIT]=r.portrait??j.WAS_NOT_DONE,t.summary[iS.RFID]=r.rfid??j.WAS_NOT_DONE,t.summary[iS.STOP_LIST]=r.stopList??j.WAS_NOT_DONE,t},dS=(e,t)=>e.reduce((e,n)=>e===j.ERROR||t(n)===j.ERROR?j.ERROR:e===j.WAS_NOT_DONE&&t(n)===j.OK?j.OK:j.WAS_NOT_DONE,j.WAS_NOT_DONE),fS=e=>{let t=new lS;return t.overallStatus=dS(e,e=>e.overallStatus),t.optical=new aS,t.optical[nS.DOC_TYPE]=dS(e,e=>e.optical[nS.DOC_TYPE]),t.optical[nS.TEXT]=dS(e,e=>e.optical[nS.TEXT]),t.optical[nS.SECURITY]=dS(e,e=>e.optical[nS.SECURITY]),t.optical[nS.MRZ]=dS(e,e=>e.optical[nS.MRZ]),t.optical[nS.IMAGE_QA]=dS(e,e=>e.optical[nS.IMAGE_QA]),t.optical[nS.EXPIRY]=dS(e,e=>e.optical[nS.EXPIRY]),t.rfId=new sS,t.rfId[rS.AA]=dS(e,e=>e.rfId[rS.AA]),t.rfId[rS.BAC]=dS(e,e=>e.rfId[rS.BAC]),t.rfId[rS.CA]=dS(e,e=>e.rfId[rS.CA]),t.rfId[rS.PA]=dS(e,e=>e.rfId[rS.PA]),t.rfId[rS.PACE]=dS(e,e=>e.rfId[rS.PACE]),t.rfId[rS.TA]=dS(e,e=>e.rfId[rS.TA]),t.summary=new oS,t.summary[iS.OPTICAL]=dS(e,e=>e.summary[iS.OPTICAL]),t.summary[iS.PORTRAIT]=dS(e,e=>e.summary[iS.PORTRAIT]),t.summary[iS.RFID]=dS(e,e=>e.summary[iS.RFID]),t.summary[iS.STOP_LIST]=dS(e,e=>e.summary[iS.STOP_LIST]),t},pS,mS=class{static{pS=this}static{this.fromPlain=e=>X(pS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>pS.getValidationErrors(e).length===0)}};q([F(),B(),K(`design:type`,Number)],mS.prototype,`pageIndex`,void 0),q([F(),U(),K(`design:type`,String)],mS.prototype,`documentName`,void 0),q([F(),z(),K(`design:type`,Boolean)],mS.prototype,`isDeprecated`,void 0),q([F(),B(),K(`design:type`,Number)],mS.prototype,`probability`,void 0),q([F(),B(),K(`design:type`,Number)],mS.prototype,`documentId`,void 0),q([I(),U(),K(`design:type`,String)],mS.prototype,`documentCategory`,void 0),mS=pS=q([J()],mS);function hS(e){let t=Jl.fromProcessResponse(e),n=[];for(let e=0;e<t.length;e++){let r=t[e];r.OneCandidate?.DocumentName&&n.push(mS.fromPlain({documentName:r.OneCandidate.DocumentName,pageIndex:r.page_idx??0,isDeprecated:r.OneCandidate.FDSIDList?.isDeprecated,documentId:r.OneCandidate.ID,probability:r.OneCandidate.P,documentCategory:r.OneCandidate.FDSIDList?.dDescription}))}return n}var gS,_S=class{static{gS=this}static{this.fromPlain=e=>X(gS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>gS.getValidationErrors(e).length===0)}};q([F(),U(),K(`design:type`,String)],_S.prototype,`value`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],_S.prototype,`checkResult`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],_S.prototype,`lcid`,void 0),_S=gS=q([J()],_S);var vS=(e,t=`UNKNOWN`)=>{let n=su.fromProcessResponse(e),r=_S.fromPlain({value:t,checkResult:j.ERROR,lcid:pr.LATIN});if(!n.length)return r;for(let e=0;e<n.length;e++){let{Text:t}=n[e],r=t.fieldList.findIndex(e=>e.lcid===pr.LATIN&&e.fieldType===P.SURNAME_AND_GIVEN_NAMES);if(r!==-1){let e=t.fieldList[r];return _S.fromPlain({value:e.value,checkResult:e.status,lcid:e.lcid})}}for(let e=0;e<n.length;e++){let{Text:t}=n[e];for(let e=0;e<t.fieldList.length;e++){let n=t.fieldList[e];if(n.fieldType===P.SURNAME_AND_GIVEN_NAMES&&n.value)return _S.fromPlain({value:n.value,checkResult:n.status,lcid:n.lcid})}}return r},yS=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],yS.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yS.prototype,`checkResult`,void 0),q([F(),U(),K(`design:type`,String)],yS.prototype,`value`,void 0),q([F(),K(`design:type`,Number)],yS.prototype,`probability`,void 0),q([F(),K(`design:type`,Number)],yS.prototype,`pageIndex`,void 0),q([I(),Y(()=>Z),L(),K(`design:type`,Z===void 0?Object:Z)],yS.prototype,`rect`,void 0),q([I(),Y(()=>Rs),L(),K(`design:type`,Rs===void 0?Object:Rs)],yS.prototype,`rfidOrigin`,void 0);var bS=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],bS.prototype,`sourceLeft`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],bS.prototype,`sourceRight`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bS.prototype,`status`,void 0);var xS,SS=class{static{xS=this}static{this.fromPlain=e=>X(xS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>xS.getValidationErrors(e).length===0)}};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],SS.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],SS.prototype,`value`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],SS.prototype,`checkResult`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],SS.prototype,`lcid`,void 0),q([F(),L({each:!0}),Y(()=>bS),K(`design:type`,Array)],SS.prototype,`comparisonList`,void 0),q([F(),Y(()=>yS),L({each:!0}),K(`design:type`,Array)],SS.prototype,`bySource`,void 0),SS=xS=q([J()],SS);var CS=e=>{let t=[],n=su.fromProcessResponse(e);return n.length&&n.forEach(e=>{e.Text.fieldList.forEach(e=>{let n=new SS;n.type=e.fieldType,n.value=e.value,n.lcid=e.lcid,n.checkResult=e.status,n.comparisonList=e.comparisonList?.map(e=>{let t=new bS;return t.sourceLeft=e.sourceLeft,t.sourceRight=e.sourceRight,t.status=e.status,t})||[],n.bySource=[],e.valueList.forEach(t=>{let r=new yS;r.checkResult=e.validityList.find(e=>e.source===t.source)?.status??j.WAS_NOT_DONE,r.source=t.source,r.value=t?.value??``,r.pageIndex=t?.pageIndex??0,r.probability=t?.probability??0,t.fieldRect&&(r.rect=t.fieldRect),t.rfidOrigin&&(r.rfidOrigin=t.rfidOrigin),n.bySource.push(r)}),n.bySource.length&&t.push(n)})}),t},wS,TS=class{static{wS=this}static{this.fromPlain=e=>X(wS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>Array.isArray(e)?e.every(e=>wS.getValidationErrors(e).length===0):wS.getValidationErrors(e).length===0}};q([F(),U(),K(`design:type`,String)],TS.prototype,`value`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],TS.prototype,`status`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],TS.prototype,`lcid`,void 0),TS=wS=q([J()],TS);function ES(e,t){let n=su.fromProcessResponse(e),r=[];for(let e=0;e<n.length;e++)n[e].Text.fieldList.forEach(e=>{e.fieldType===t&&r.push(TS.fromPlain({value:e.value,status:e.status,lcid:e.lcid}))});return r.sort((e,t)=>e.lcid-t.lcid)}function DS(e){return ES(e,P.DATE_OF_EXPIRY)}function OS(e){return ES(e,P.ISSUING_STATE_NAME)}function kS(e){return ES(e,P.DOCUMENT_NUMBER)}function AS(e){return ES(e,P.AGE)}function jS(e){return ES(e,P.NATIONALITY_CODE)}function MS(e){return ES(e,P.SEX)}var NS=class extends TypeError{constructor(e,t){super(e),this.name=`DocReaderTypeError`,this.message=e,this.errors=t}};if(!l)throw Error(`reflect-metadata polyfill failed to load`);exports.AreaArray=Fs,exports.AuthenticityCheckList=_c,Object.defineProperty(exports,"AuthenticityCheckListContainer",{enumerable:!0,get:function(){return bc}}),exports.AuthenticityCheckListContainerResultTypes=yc,Object.defineProperty(exports,"AuthenticityFibersTypeCheckResult",{enumerable:!0,get:function(){return Qs}}),exports.AuthenticityFibersTypeCheckResultTypes=Zs,Object.defineProperty(exports,"AuthenticityIdentCheckResult",{enumerable:!0,get:function(){return nc}}),exports.AuthenticityIdentCheckResultTypes=tc,Object.defineProperty(exports,"AuthenticityOCRSecurityTextCheckResult",{enumerable:!0,get:function(){return oc}}),exports.AuthenticityOCRSecurityTextCheckResultTypes=ac,Object.defineProperty(exports,"AuthenticityPhotoIdentCheckResult",{enumerable:!0,get:function(){return dc}}),exports.AuthenticityPhotoIdentCheckResultTypes=uc,Object.defineProperty(exports,"AuthenticitySecurityFeatureCheckResult",{enumerable:!0,get:function(){return hc}}),exports.AuthenticitySecurityFeatureCheckResultTypes=mc,exports.AuthenticityTextCheckReferenceTypes=Zb,Object.defineProperty(exports,"BSIv2Container",{enumerable:!0,get:function(){return ld}}),exports.BSIv2ContainerResultTypes=cd,Object.defineProperty(exports,"BarcodeBoundsResultContainer",{enumerable:!0,get:function(){return Ec}}),exports.BarcodeBoundsResultContainerResultTypes=Tc,exports.BinaryData=Q,exports.BoundsResult=Is,Object.defineProperty(exports,"BoundsResultContainer",{enumerable:!0,get:function(){return Cc}}),exports.BoundsResultContainerResultTypes=Sc,Object.defineProperty(exports,"ByteArrayContainer",{enumerable:!0,get:function(){return qu}}),exports.ByteArrayContainerResultTypes=Ku,exports.CertificateData=Rc,exports.ContainerList=md,exports.DetailsAge=$c,exports.DetailsOptical=Zc,exports.DetailsRFID=Qc,exports.DocBarCodeField=kc,exports.DocBarCodeInfo=Ac,Object.defineProperty(exports,"DocBarCodeInfoContainer",{enumerable:!0,get:function(){return Nc}}),exports.DocBarCodeInfoContainerResultTypes=Mc,exports.DocBinaryInfo=al,Object.defineProperty(exports,"DocBinaryInfoContainer",{enumerable:!0,get:function(){return cl}}),exports.DocBinaryInfoContainerResultTypes=sl,exports.DocGraphicField=ll,exports.DocGraphicsInfo=ul,Object.defineProperty(exports,"DocGraphicsInfoContainer",{enumerable:!0,get:function(){return pl}}),exports.DocGraphicsInfoContainerResultTypes=fl,exports.DocReaderTypeError=NS,exports.DocVisualExtendedField=vl,exports.DocVisualExtendedInfo=yl,Object.defineProperty(exports,"DocVisualExtendedInfoContainer",{enumerable:!0,get:function(){return Sl}}),exports.DocVisualExtendedInfoContainerResultTypes=xl,Object.defineProperty(exports,"DocumentTypesCandidatesContainer",{enumerable:!0,get:function(){return Du}}),exports.DocumentTypesCandidatesContainerResultTypes=Eu,exports.DocumentTypesCandidatesList=wu,exports.DocumentsDatabase=Dd,Object.defineProperty(exports,"EncryptedRCLContainer",{enumerable:!0,get:function(){return Tl}}),exports.EncryptedRCLContainerResultTypes=wl,exports.ErrorCoordinates=gu,exports.FDSIDList=zs,exports.FaceApi=gd,exports.FaceApiSearch=hd,exports.FaceDetection=Fu,Object.defineProperty(exports,"FaceDetectionContainer",{enumerable:!0,get:function(){return Ru}}),exports.FaceDetectionContainerResultTypes=Lu,exports.FaceItem=Pu,Object.defineProperty(exports,"FibersType",{enumerable:!0,get:function(){return Js}}),exports.FieldItem=_u,exports.FileImage=zu,exports.GraphData=Bu,exports.IdentResult=$s,exports.ImageData=Ls,exports.ImageField=Ml,exports.ImageFieldValue=jl,exports.ImageQA=_d,exports.ImageQualityCheck=El,exports.ImageQualityCheckList=Dl,Object.defineProperty(exports,"ImageQualityCheckListContainer",{enumerable:!0,get:function(){return Al}}),exports.ImageQualityCheckListContainerResultTypes=kl,exports.ImageSource=Nl,exports.ImagesResult=Pl,Object.defineProperty(exports,"ImagesResultContainer",{enumerable:!0,get:function(){return Ll}}),exports.ImagesResultContainerResultTypes=Il,exports.IsStringObjectRecord=Sd,Object.defineProperty(exports,"LicenseContainer",{enumerable:!0,get:function(){return Bl}}),exports.LicenseContainerResultTypes=zl,Object.defineProperty(exports,"ListVerifiedFieldContainer",{enumerable:!0,get:function(){return Gl}}),exports.ListVerifiedFieldContainerResultTypes=Wl,exports.ListVerifiedFields=Hl,exports.LivenessParams=bd,Object.defineProperty(exports,"MDLContainer",{enumerable:!0,get:function(){return fd}}),exports.MDLContainerResultTypes=dd,Object.defineProperty(exports,"MRZDetectorContainer",{enumerable:!0,get:function(){return Nu}}),exports.MRZDetectorContainerResultTypes=Mu,Object.defineProperty(exports,"MRZPositionContainer",{enumerable:!0,get:function(){return hu}}),exports.MRZPositionContainerResultTypes=mu,exports.MRZRowsItem=ku,exports.MRZTestQuality=bu,Object.defineProperty(exports,"MRZTestQualityContainer",{enumerable:!0,get:function(){return Cu}}),exports.MRZTestQualityContainerResultTypes=Su,exports.OCRSecurityTextResult=rc,exports.OneCandidate=Bs,Object.defineProperty(exports,"OneCandidateContainer",{enumerable:!0,get:function(){return Jl}}),exports.OneCandidateContainerResultTypes=ql,exports.PerDocumentConfig=vd,exports.PhotoIdentResult=cc,exports.Point=ys,exports.PointArray=Ps,exports.ProcessParams=$,exports.ProcessParamsAuth=xd,exports.ProcessParamsRfid=yd,Object.defineProperty(exports,"ProcessRequest",{enumerable:!0,get:function(){return Ed}}),exports.ProcessRequestImage=Cd,Object.defineProperty(exports,"ProcessResponse",{enumerable:!0,get:function(){return Dp}}),exports.ProcessSystemInfo=wd,Object.defineProperty(exports,"RAuthenticityCheckGroup",{enumerable:!0,get:function(){return fx}}),Object.defineProperty(exports,"RAuthenticityCheckGroupsItem",{enumerable:!0,get:function(){return mx}}),Object.defineProperty(exports,"RAuthenticityFibersCheck",{enumerable:!0,get:function(){return tx}}),Object.defineProperty(exports,"RAuthenticityIdentCheck",{enumerable:!0,get:function(){return rx}}),Object.defineProperty(exports,"RAuthenticityPhotoIdentCheck",{enumerable:!0,get:function(){return ax}}),Object.defineProperty(exports,"RAuthenticitySecurityCheck",{enumerable:!0,get:function(){return sx}}),Object.defineProperty(exports,"RAuthenticityTextCheck",{enumerable:!0,get:function(){return lx}}),exports.RAuthenticityTextCheckReference=Qb,Object.defineProperty(exports,"RDetailedStatus",{enumerable:!0,get:function(){return lS}}),exports.RDetailedStatusOptical=aS,exports.RDetailedStatusRfid=sS,exports.RDetailedStatusSummary=oS,Object.defineProperty(exports,"RDocumentBarcode",{enumerable:!0,get:function(){return Ex}}),exports.RDocumentBarcodeField=wx,exports.RDocumentBarcodeModuleData=Cx,Object.defineProperty(exports,"RDocumentIdentification",{enumerable:!0,get:function(){return mS}}),Object.defineProperty(exports,"RDocumentImage",{enumerable:!0,get:function(){return Ax}}),exports.RDocumentImagePage=Ox,exports.RFIDDocVisualExtendedField=cu,exports.RFIDDocVisualExtendedInfo=lu,Object.defineProperty(exports,"RFIDGraphicsInfoContainer",{enumerable:!0,get:function(){return Wu}}),exports.RFIDGraphicsInfoContainerResultTypes=Uu,Object.defineProperty(exports,"RFIDTextDataContainer",{enumerable:!0,get:function(){return fu}}),exports.RFIDTextDataContainerResultTypes=du,Object.defineProperty(exports,"RGraphicField",{enumerable:!0,get:function(){return Px}}),Object.defineProperty(exports,"RImageQuality",{enumerable:!0,get:function(){return Bx}}),exports.RImageQualityCheck=Rx,exports.RLocation=Xb,Object.defineProperty(exports,"RNameSurname",{enumerable:!0,get:function(){return _S}}),Object.defineProperty(exports,"RPortraitComparisonComparable",{enumerable:!0,get:function(){return yx}}),Object.defineProperty(exports,"RPortraitsComparison",{enumerable:!0,get:function(){return xx}}),Object.defineProperty(exports,"RRfidApplicationItem",{enumerable:!0,get:function(){return eS}}),Object.defineProperty(exports,"RRfidCertificate",{enumerable:!0,get:function(){return Wx}}),Object.defineProperty(exports,"RRfidDataGroupStatus",{enumerable:!0,get:function(){return Yx}}),exports.RRfidDataGroupStatusItem=Qx,Object.defineProperty(exports,"RTextData",{enumerable:!0,get:function(){return SS}}),exports.RTextDataComparison=bS,exports.RTextDataSource=yS,Object.defineProperty(exports,"RTextFieldValue",{enumerable:!0,get:function(){return TS}}),Object.defineProperty(exports,"RawImageContainer",{enumerable:!0,get:function(){return Zl}}),exports.RawImageContainerList=sc,exports.RawImageContainerResultTypes=Xl,exports.Rect=Z,exports.ResultMRZDetector=Au,exports.RfidAccessControlInfo=Fc,exports.RfidAccessKey=Ic,exports.RfidApplication=Vc,exports.RfidAttributeData=Uc,exports.RfidAttributeName=Us,exports.RfidCardPropertiesExt=Hc,exports.RfidCertificateEx=Kc,exports.RfidDG1=Pc,exports.RfidDataFile=Bc,exports.RfidDistinguishedName=Ws,exports.RfidOrigin=Rs,exports.RfidParsedData=Lc,exports.RfidPkiExtension=Wc,exports.RfidRawData=il,exports.RfidSecurityObject=Jc,exports.RfidSecurityObjectCertificates=zc,exports.RfidSession=Xc,exports.RfidSignerInfoEx=qc,exports.RfidTerminal=Yc,exports.RfidValidity=Gc,exports.SecurityFeatureCheck=fc,exports.Status=el,Object.defineProperty(exports,"StatusContainer",{enumerable:!0,get:function(){return rl}}),exports.StatusContainerResultTypes=nl,exports.StringItem=yu,exports.StringRecognitionResult=gl,exports.Symbol=Ou,exports.SymbolCandidate=ml,exports.SymbolEstimationItem=vu,exports.SymbolRecognitionResult=hl,exports.TOriginalRFIDGraphicsInfo=Vu,exports.TextComparison=Ql,exports.TextField=nu,exports.TextFieldValue=eu,exports.TextResult=iu,Object.defineProperty(exports,"TextResultContainer",{enumerable:!0,get:function(){return su}}),exports.TextResultContainerResultTypes=ou,exports.TextSource=ru,exports.TextSymbol=$l,exports.TextValidity=tu,exports.TipDecodeModule=Dc,exports.TipPDF417Info=Oc,exports.TransactionInfo=Od,exports.TrfFtBytes=Vs,exports.TrfFtString=Hs,Object.defineProperty(exports,"VDSContainer",{enumerable:!0,get:function(){return Qu}}),exports.VDSContainerResultTypes=Zu,exports.VDSData=Yu,Object.defineProperty(exports,"VDSNCContainer",{enumerable:!0,get:function(){return od}}),exports.VDSNCContainerResultTypes=ad,exports.VDSNCData=rd,exports.VerifiedFieldMap=Vl,exports.aContainer=Gs,exports.aVisualExtendedFieldItem=_l,exports.convertGeneralizedDateToLocal=Jb,exports.decode=bv,exports.eAuthenticity=A,exports.eBarCodeDetectionType=no,exports.eBarCodeModuleType=nr,exports.eBarCodeResultCodes=ro,exports.eBarCodeType=rr,exports.eCheckDiagnose=ir,exports.eCheckResult=j,exports.eDataGroupReadStatus=qx,exports.eDocFormat=or,exports.eDocType=sr,exports.eDocumentTypeRecognitionResult=cr,exports.eFieldVerificationResult=Hr,exports.eGraphicFieldType=lr,exports.eIRVisibilityFlag=Ur,exports.eImageQualityCheckType=ur,exports.eInputBarcodeType=dr,exports.eInputImageQualityChecks=fr,exports.eLCID=pr,exports.eLDSParsingErrorCodes=Sr,exports.eLDSParsingNotificationCodes=Cr,exports.eLights=mr,exports.eLogLevel=hr,exports.eMRZDetectMode=xr,exports.eMRZFormat=yr,exports.eMeasureSystem=br,exports.eOpticalStatusField=nS,exports.ePortraitComparisonSource=_x,exports.eProcessingStatus=wr,exports.eResult=M,exports.eResultType=M,exports.eRfidAChip=Dr,exports.eRfidAccessControlProcedureType=Or,exports.eRfidApplicationType=kr,exports.eRfidAuthenticationProcedureType=Ar,exports.eRfidBaudRate=jr,exports.eRfidCertificateOrigin=Mr,exports.eRfidCertificateType=Nr,exports.eRfidDataFileType=N,exports.eRfidErrorCodes=Tr,exports.eRfidFileIdType=io,exports.eRfidOriginalGraphicsType=ao,exports.eRfidPasswordType=Fr,exports.eRfidPresence=Pr,exports.eRfidStatusField=rS,exports.eRfidTerminalAuthorizationRequirement=$a,exports.eRfidTerminalType=Ir,exports.eRfidType=Lr,exports.eRfidVisualFieldType=oo,exports.eScenario=Rr,exports.eSecurityCriticalFlag=ar,exports.eSecurityFeatureType=zr,exports.eSource=Br,exports.eSummaryStatusField=iS,exports.eTextPostProcessing=Vr,exports.eVisualFieldType=P,exports.getAuthenticityArray=qa,exports.getAuthenticityCheckList=gx,exports.getDetailedStatus=uS,exports.getDocumentBarcodes=Dx,exports.getDocumentDateOfExpiry=DS,exports.getDocumentIdentification=hS,exports.getDocumentImages=jx,exports.getDocumentImagesSync=Mx,exports.getDocumentIssuingStateName=OS,exports.getDocumentNumber=kS,exports.getDocumentOwnerAge=AS,exports.getDocumentOwnerNationalityCode=jS,exports.getDocumentOwnerSex=MS,exports.getGraphicField=Ix,exports.getGraphicFieldSync=Lx,exports.getIRVisibilityFlagArray=Ya,exports.getImageDimensions=Sv,exports.getImageQuality=Hx,exports.getLightsArray=Za,exports.getNameSurname=vS,exports.getPortraitsComparison=Sx,exports.getRfidCertificatesData=Gx,exports.getRfidChecksSummary=Kx,exports.getRfidDataGroupsStatus=Zx,exports.getRfidDataGroupsStatusList=tS,exports.getRfidTerminalAuthorizationRequirements=eo,exports.getTextData=CS,exports.getTextFieldValue=ES,exports.isAuthenticity=Ja,exports.isIRVisibilityFlag=Xa,exports.isLights=Qa,exports.isObject=xv,exports.isRfidTerminalAuthorizationRequirement=to,exports.mergeDetailedStatus=fS,exports.mergeStatuses=Yb,exports.transformToAuthenticityCheckResultList=gc,exports.transformToContainerList=pd,exports.transformToRAuthenticityCheckList=ux;
13
+ - This validation runs before any file with validation decorator was parsed by NodeJS.`);var i=this.validatorOptions?this.validatorOptions.groups:void 0,a=this.validatorOptions&&this.validatorOptions.strictGroups||!1,o=this.validatorOptions&&this.validatorOptions.always||!1,s=this.validatorOptions?.forbidUnknownValues===void 0||this.validatorOptions.forbidUnknownValues!==!1,c=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,o,a,i),l=this.metadataStorage.groupByPropertyName(c);if(s&&!c.length){var u=new vo;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(u.target=e),u.value=void 0,u.property=void 0,u.children=[],u.constraints={unknownValue:`an unknown value was passed to the validate function`},n.push(u);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,l,n),Object.keys(l).forEach(function(t){var i=e[t],a=l[t].filter(function(e){return e.type===yo.IS_DEFINED}),o=l[t].filter(function(e){return e.type!==yo.IS_DEFINED&&e.type!==yo.WHITELIST});i instanceof Promise&&o.find(function(e){return e.type===yo.PROMISE_VALIDATION})?r.awaitingPromises.push(i.then(function(i){r.performValidations(e,i,t,a,o,n)})):r.performValidations(e,i,t,a,o,n)})},e.prototype.whitelist=function(e,t,n){var r=this,i=[];Object.keys(e).forEach(function(e){(!t[e]||t[e].length===0)&&i.push(e)}),i.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?i.forEach(function(t){var i,a=r.generateValidationError(e,e[t],t);a.constraints=(i={},i[yo.WHITELIST]=`property ${t} should not exist`,i),a.children=void 0,n.push(a)}):i.forEach(function(t){return delete e[t]}))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter(function(e){if(e.children&&=t.stripEmptyErrors(e.children),Object.keys(e.constraints).length===0){if(e.children.length===0)return!1;delete e.constraints}return!0})},e.prototype.performValidations=function(e,t,n,r,i,a){var o=i.filter(function(e){return e.type===yo.CUSTOM_VALIDATION}),s=i.filter(function(e){return e.type===yo.NESTED_VALIDATION}),c=i.filter(function(e){return e.type===yo.CONDITIONAL_VALIDATION}),l=this.generateValidationError(e,t,n);a.push(l),this.conditionalValidations(e,t,c)&&(this.customValidations(e,t,r,l),this.mapContexts(e,t,r,l),!(t===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(t===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||t==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,t,o,l),this.nestedValidations(t,s,l),this.mapContexts(e,t,i,l),this.mapContexts(e,t,o,l))))},e.prototype.generateValidationError=function(e,t,n){var r=new vo;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(r.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(r.value=t),r.property=n,r.children=[],r.constraints={},r},e.prototype.conditionalValidations=function(e,t,n){return n.map(function(n){return n.constraints[0](e,t)}).reduce(function(e,t){return e&&t},!0)},e.prototype.customValidations=function(e,t,n,r){var i=this;n.forEach(function(n){var a=function(){return{targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints}};n.validateIf&&!n.validateIf(e,t)||i.metadataStorage.getTargetValidatorConstraints(n.constraintCls).forEach(function(o){if(!(o.async&&i.ignoreAsyncValidations)&&!(i.validatorOptions&&i.validatorOptions.stopAtFirstError&&Object.keys(r.constraints||{}).length>0)){var s=a();if(!n.each||!(Array.isArray(t)||t instanceof Set||t instanceof Map)){var c=o.instance.validate(t,s);if(fo(c)){var l=c.then(function(a){if(!a){var s=So(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(l)}else if(!c){var u=So(i.createValidationError(e,t,n,o),2),d=u[0],f=u[1];r.constraints[d]=f}return}var p=lo(t).map(function(e){return o.instance.validate(e,s)});if(p.some(function(e){return fo(e)})){var m=p.map(function(e){return fo(e)?e:Promise.resolve(e)}),h=Promise.all(m).then(function(a){if(!a.every(function(e){return e})){var s=So(i.createValidationError(e,t,n,o),2),c=s[0],l=s[1];r.constraints[c]=l,n.context&&(r.contexts||={},r.contexts[c]=Object.assign(r.contexts[c]||{},n.context))}});i.awaitingPromises.push(h);return}if(!p.every(function(e){return e})){var g=So(i.createValidationError(e,t,n,o),2),d=g[0],f=g[1];r.constraints[d]=f}}})})},e.prototype.nestedValidations=function(e,t,n){var r=this;e!==void 0&&t.forEach(function(i){if(!(i.type!==yo.NESTED_VALIDATION&&i.type!==yo.PROMISE_VALIDATION)&&!(r.validatorOptions&&r.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map)(e instanceof Set?Array.from(e):e).forEach(function(i,a){r.performValidations(e,i,a.toString(),[],t,n.children)});else if(e instanceof Object){var a=typeof i.target==`string`?i.target:i.target.name;r.execute(e,a,n.children)}else{var o=So(r.createValidationError(i.target,e,i),2),s=o[0],c=o[1];n.constraints[s]=c}})},e.prototype.mapContexts=function(e,t,n,r){var i=this;return n.forEach(function(e){if(e.context){var t=void 0;e.type===yo.CUSTOM_VALIDATION&&(t=i.metadataStorage.getTargetValidatorConstraints(e.constraintCls)[0]);var n=i.getConstraintType(e,t);r.constraints[n]&&(r.contexts||={},r.contexts[n]=Object.assign(r.contexts[n]||{},e.context))}})},e.prototype.createValidationError=function(e,t,n,r){var i=e.constructor?e.constructor.name:void 0,a=this.getConstraintType(n,r),o={targetName:i,property:n.propertyName,object:e,value:t,constraints:n.constraints},s=n.message||``;return!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&r&&r.instance.defaultMessage instanceof Function&&(s=r.instance.defaultMessage(o)),[a,xo.replaceMessageSpecialTokens(s,o)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}(),wo=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},To=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Eo=function(){function e(){}return e.prototype.validate=function(e,t,n){return this.coreValidate(e,t,n)},e.prototype.validateOrReject=function(e,t,n){return wo(this,void 0,void 0,function(){var r;return To(this,function(i){switch(i.label){case 0:return[4,this.coreValidate(e,t,n)];case 1:return r=i.sent(),r.length?[2,Promise.reject(r)]:[2]}})})},e.prototype.validateSync=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new Co(this,i);o.ignoreAsyncValidations=!0;var s=[];return o.execute(r,a,s),o.stripEmptyErrors(s)},e.prototype.coreValidate=function(e,t,n){var r=typeof e==`string`?t:e,i=typeof e==`string`?n:t,a=typeof e==`string`?e:void 0,o=new Co(this,i),s=[];return o.execute(r,a,s),Promise.all(o.awaitingPromises).then(function(){return o.stripEmptyErrors(s)})},e}(),Do=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),Oo,ko;function Ao(e){if(Oo)try{var t=Oo.get(e);if(t||!ko||!ko.fallback)return t}catch(e){if(!ko||!ko.fallbackOnErrors)throw e}return Do.get(e)}var jo=function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return Ao(this.target)},enumerable:!1,configurable:!0}),e}();function Mo(e){var t;if(e.validator instanceof Function){if(t=e.validator,Ao(go).getTargetValidatorConstraints(e.validator).length>1)throw`More than one implementation of ValidatorConstraintInterface found for validator on: ${e.target.name}:${e.propertyName}`}else{var n=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return n.validate(e,t)},e.prototype.defaultMessage=function(e){return n.defaultMessage?n.defaultMessage(e):``},e}(),_o().addConstraintMetadata(new jo(t,e.name,e.async))}var r={type:e.name&&yo.isValid(e.name)?e.name:yo.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};_o().addValidationMetadata(new so(r))}function No(e,t){return function(n){return e(t&&t.each?`each value in `:``,n)}}function Po(e,t){return function(n,r){Mo({name:e.name,target:n.constructor,propertyName:r,options:t,constraints:e.constraints,validator:e.validator})}}var Fo=yo.IS_DEFINED;function Io(e){return e!=null}function F(e){return Po({name:Fo,validator:{validate:function(e){return Io(e)},defaultMessage:No(function(e){return e+`$property should not be null or undefined`},e)}},e)}var Lo=`isOptional`;function I(e){return function(t,n){var r={type:yo.CONDITIONAL_VALIDATION,name:Lo,target:t.constructor,propertyName:n,constraints:[function(e,t){return e[n]!==null&&e[n]!==void 0}],validationOptions:e};_o().addValidationMetadata(new so(r))}}var Ro=function(){return Ro=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ro.apply(this,arguments)};function L(e){var t=Ro({},e),n=t.each?`each value in `:``;return t.message=t.message||n+`nested property $property must be either object or array`,function(e,n){var r={type:yo.NESTED_VALIDATION,target:e.constructor,propertyName:n,validationOptions:t};_o().addValidationMetadata(new so(r))}}var zo=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(e){if(e==null)throw TypeError(`Expected a string but received a ${e}`);if(e.constructor.name!==`String`)throw TypeError(`Expected a string but received a ${e.constructor.name}`)}t.exports=e.default,t.exports.default=e.default})),Bo=o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}t.exports=e.default,t.exports.default=e.default})),Vo=`isIn`;function Ho(e,t){return Array.isArray(t)&&t.some(function(t){return t===e})}function R(e,t){return Po({name:Vo,constraints:[e],validator:{validate:function(e,t){return Ho(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be one of the following values: $constraint1`},t)}},t)}function Uo(e,t){return typeof e==`number`&&typeof t==`number`&&e>=t}function Wo(e,t){return Po({name:`min`,constraints:[e],validator:{validate:function(e,t){return Uo(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must not be less than $constraint1`},t)}},t)}var Go=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var n=i(zo()),r=i(Bo());function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Za-z0-9+/]+={0,2}$/,o=/^[A-Za-z0-9+/]+$/,s=/^[A-Za-z0-9_-]+={0,2}$/,c=/^[A-Za-z0-9_-]+$/;function l(e,t){var i;if((0,n.default)(e),t=(0,r.default)(t,{urlSafe:!1,padding:!((i=t)!=null&&i.urlSafe)}),e===``)return!0;if(t.padding&&e.length%4!=0)return!1;var l=t.urlSafe?t.padding?s:c:t.padding?a:o;return(!t.padding||e.length%4==0)&&l.test(e)}t.exports=e.default,t.exports.default=e.default}))()),Ko=`isBase64`;function qo(e,t){return typeof e==`string`&&(0,Go.default)(e,t)}function Jo(e,t){return Po({name:Ko,constraints:[e],validator:{validate:function(e,t){return qo(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be base64 encoded`},t)}},t)}var Yo=c(o(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var n=r(zo());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){(0,n.default)(e);var r,a;i(t)===`object`?(r=t.min||0,a=t.max):(r=arguments[1]||0,a=arguments[2]);var o=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],c=e.length-o.length-s.length,l=c>=r&&(a===void 0||c<=a);return l&&Array.isArray(t?.discreteLengths)?t.discreteLengths.some(function(e){return e===c}):l}t.exports=e.default,t.exports.default=e.default}))()),Xo=`maxLength`;function Zo(e,t){return typeof e==`string`&&(0,Yo.default)(e,{min:0,max:t})}function Qo(e,t){return Po({name:Xo,constraints:[e],validator:{validate:function(e,t){return Zo(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be shorter than or equal to $constraint1 characters`},t)}},t)}var $o=`isBoolean`;function es(e){return e instanceof Boolean||typeof e==`boolean`}function z(e){return Po({name:$o,validator:{validate:function(e,t){return es(e)},defaultMessage:No(function(e){return e+`$property must be a boolean value`},e)}},e)}var ts=`isNumber`;function ns(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 n=0;if(e%1!=0&&(n=e.toString().split(`.`)[1].length),n>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function B(e,t){return e===void 0&&(e={}),Po({name:ts,constraints:[e],validator:{validate:function(e,t){return ns(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be a number conforming to the specified constraints`},t)}},t)}var rs=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},is=`isEnum`;function as(e,t){return Object.keys(t).map(function(e){return t[e]}).includes(e)}function os(e){return Object.entries(e).filter(function(e){var t=rs(e,2),n=t[0];return t[1],isNaN(parseInt(n))}).map(function(e){var t=rs(e,2);return t[0],t[1]})}function V(e,t){return Po({name:is,constraints:[e,os(e)],validator:{validate:function(e,t){return as(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must be one of the following values: $constraint2`},t)}},t)}var ss=`isInt`;function cs(e){return typeof e==`number`&&Number.isInteger(e)}function H(e){return Po({name:ss,validator:{validate:function(e,t){return cs(e)},defaultMessage:No(function(e){return e+`$property must be an integer number`},e)}},e)}var ls=`isString`;function us(e){return e instanceof String||typeof e==`string`}function U(e){return Po({name:ls,validator:{validate:function(e,t){return us(e)},defaultMessage:No(function(e){return e+`$property must be a string`},e)}},e)}var ds=`isArray`;function fs(e){return Array.isArray(e)}function W(e){return Po({name:ds,validator:{validate:function(e,t){return fs(e)},defaultMessage:No(function(e){return e+`$property must be an array`},e)}},e)}var ps=`arrayMinSize`;function ms(e,t){return Array.isArray(e)&&e.length>=t}function hs(e,t){return Po({name:ps,constraints:[e],validator:{validate:function(e,t){return ms(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must contain at least $constraint1 elements`},t)}},t)}var gs=`arrayMaxSize`;function _s(e,t){return Array.isArray(e)&&e.length<=t}function vs(e,t){return Po({name:gs,constraints:[e],validator:{validate:function(e,t){return _s(e,t?.constraints[0])},defaultMessage:No(function(e){return e+`$property must contain no more than $constraint1 elements`},t)}},t)}function G(e,t,n){return typeof e==`string`?Ao(Eo).validateSync(e,t,n):Ao(Eo).validateSync(e,t)}function K(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function q(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var ys=class{};q([F(),B(),K(`design:type`,Number)],ys.prototype,`x`,void 0),q([I(),B(),K(`design:type`,Number)],ys.prototype,`y`,void 0);var bs;(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`})(bs||={});var xs=new(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(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},e.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},e.prototype.findTransformMetadatas=function(e,t,n){return this.findMetadatas(this._transformMetadatas,e,t).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?n===bs.CLASS_TO_CLASS||n===bs.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?n===bs.CLASS_TO_PLAIN:!0})},e.prototype.findExcludeMetadata=function(e,t){return this.findMetadata(this._excludeMetadatas,e,t)},e.prototype.findExposeMetadata=function(e,t){return this.findMetadata(this._exposeMetadatas,e,t)},e.prototype.findExposeMetadataByCustomName=function(e,t){return this.getExposedMetadatas(e).find(function(e){return e.options&&e.options.name===t})},e.prototype.findTypeMetadata=function(e,t){return this.findMetadata(this._typeMetadatas,e,t)},e.prototype.getStrategy=function(e){var t=this._excludeMetadatas.get(e),n=t&&t.get(void 0),r=this._exposeMetadatas.get(e),i=r&&r.get(void 0);return n&&i||!n&&!i?`none`:n?`excludeAll`:`exposeAll`},e.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},e.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},e.prototype.getExposedProperties=function(e,t){return this.getExposedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===bs.CLASS_TO_CLASS||t===bs.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===bs.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.getExcludedProperties=function(e,t){return this.getExcludedMetadatas(e).filter(function(e){return!e.options||e.options.toClassOnly===!0&&e.options.toPlainOnly===!0?!0:e.options.toClassOnly===!0?t===bs.CLASS_TO_CLASS||t===bs.PLAIN_TO_CLASS:e.options.toPlainOnly===!0?t===bs.CLASS_TO_PLAIN:!0}).map(function(e){return e.propertyName})},e.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},e.prototype.getMetadata=function(e,t){var n=e.get(t),r;n&&(r=Array.from(n.values()).filter(function(e){return e.propertyName!==void 0}));for(var i=[],a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=Array.from(c.values()).filter(function(e){return e.propertyName!==void 0});i.push.apply(i,l)}}return i.concat(r||[])},e.prototype.findMetadata=function(e,t,n){var r=e.get(t);if(r){var i=r.get(n);if(i)return i}for(var a=0,o=this.getAncestors(t);a<o.length;a++){var s=o[a],c=e.get(s);if(c){var l=c.get(n);if(l)return l}}},e.prototype.findMetadatas=function(e,t,n){var r=e.get(t),i;r&&(i=r.get(n));for(var a=[],o=0,s=this.getAncestors(t);o<s.length;o++){var c=s[o],l=e.get(c);l&&l.has(n)&&a.push.apply(a,l.get(n))}return a.slice().reverse().concat((i||[]).slice().reverse())},e.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var t=[],n=Object.getPrototypeOf(e.prototype.constructor);n.prototype!==void 0;n=Object.getPrototypeOf(n.prototype.constructor))t.push(n);this._ancestorsMap.set(e,t)}return this._ancestorsMap.get(e)},e}());function Ss(){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 Cs(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}var ws=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function Ts(e){var t=new e;return!(t instanceof Set)&&!(`push`in t)?[]:t}var Es=function(){function e(e,t){this.transformationType=e,this.options=t,this.recursionStack=new Set}return e.prototype.transform=function(e,t,n,r,i,a){var o=this;if(a===void 0&&(a=0),Array.isArray(t)||t instanceof Set){var s=r&&this.transformationType===bs.PLAIN_TO_CLASS?Ts(r):[];return t.forEach(function(t,r){var i=e?e[r]:void 0;if(!o.options.enableCircularCheck||!o.isCircular(t)){var c=void 0;if(typeof n!=`function`&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(o.transformationType===bs.PLAIN_TO_CLASS){c=n.options.discriminator.subTypes.find(function(e){return e.name===t[n.options.discriminator.property]});var l={newObject:s,object:t,property:void 0},u=n.typeFunction(l);c=c===void 0?u:c.value,n.options.keepDiscriminatorProperty||delete t[n.options.discriminator.property]}o.transformationType===bs.CLASS_TO_CLASS&&(c=t.constructor),o.transformationType===bs.CLASS_TO_PLAIN&&(t[n.options.discriminator.property]=n.options.discriminator.subTypes.find(function(e){return e.value===t.constructor}).name)}else c=n;var d=o.transform(i,t,c,void 0,t instanceof Map,a+1);s instanceof Set?s.add(d):s.push(d)}else o.transformationType===bs.CLASS_TO_CLASS&&(s instanceof Set?s.add(t):s.push(t))}),s}else if(n===String&&!i)return t==null?t:String(t);else if(n===Number&&!i)return t==null?t:Number(t);else if(n===Boolean&&!i)return t==null?t:!!t;else if((n===Date||t instanceof Date)&&!i)return t instanceof Date?new Date(t.valueOf()):t==null?t:new Date(t);else if(Ss().Buffer&&(n===Buffer||t instanceof Buffer)&&!i)return t==null?t:Buffer.from(t);else if(Cs(t)&&!i)return new Promise(function(e,r){t.then(function(t){return e(o.transform(void 0,t,n,void 0,void 0,a+1))},r)});else if(!i&&typeof t==`object`&&t&&typeof t.then==`function`)return t;else if(typeof t==`object`&&t){!n&&t.constructor!==Object&&(!Array.isArray(t)&&t.constructor===Array||(n=t.constructor)),!n&&e&&(n=e.constructor),this.options.enableCircularCheck&&this.recursionStack.add(t);var c=this.getKeys(n,t,i),l=e||{};!e&&(this.transformationType===bs.PLAIN_TO_CLASS||this.transformationType===bs.CLASS_TO_CLASS)&&(l=i?new Map:n?new n:{});for(var u=function(r){if(r===`__proto__`||r===`constructor`)return`continue`;var o=r,s=r,c=r;if(!d.options.ignoreDecorators&&n){if(d.transformationType===bs.PLAIN_TO_CLASS){var u=xs.findExposeMetadataByCustomName(n,r);u&&(c=u.propertyName,s=u.propertyName)}else if(d.transformationType===bs.CLASS_TO_PLAIN||d.transformationType===bs.CLASS_TO_CLASS){var u=xs.findExposeMetadata(n,r);u&&u.options&&u.options.name&&(s=u.options.name)}}var f=void 0;f=d.transformationType===bs.PLAIN_TO_CLASS?t[o]:t instanceof Map?t.get(o):t[o]instanceof Function?t[o]():t[o];var p=void 0,m=f instanceof Map;if(n&&i)p=n;else if(n){var h=xs.findTypeMetadata(n,c);if(h){var g={newObject:l,object:t,property:c},_=h.typeFunction?h.typeFunction(g):h.reflectedType;h.options&&h.options.discriminator&&h.options.discriminator.property&&h.options.discriminator.subTypes?t[o]instanceof Array?p=h:(d.transformationType===bs.PLAIN_TO_CLASS&&(p=h.options.discriminator.subTypes.find(function(e){if(f&&f instanceof Object&&h.options.discriminator.property in f)return e.name===f[h.options.discriminator.property]}),p=p===void 0?_:p.value,h.options.keepDiscriminatorProperty||f&&f instanceof Object&&h.options.discriminator.property in f&&delete f[h.options.discriminator.property]),d.transformationType===bs.CLASS_TO_CLASS&&(p=f.constructor),d.transformationType===bs.CLASS_TO_PLAIN&&f&&(f[h.options.discriminator.property]=h.options.discriminator.subTypes.find(function(e){return e.value===f.constructor}).name)):p=_,m||=h.reflectedType===Map}else if(d.options.targetMaps)d.options.targetMaps.filter(function(e){return e.target===n&&!!e.properties[c]}).forEach(function(e){return p=e.properties[c]});else if(d.options.enableImplicitConversion&&d.transformationType===bs.PLAIN_TO_CLASS){var v=Reflect.getMetadata(`design:type`,n.prototype,c);v&&(p=v)}}var y=Array.isArray(t[o])?d.getReflectedType(n,c):void 0,b=e?e[o]:void 0;if(l.constructor.prototype){var x=Object.getOwnPropertyDescriptor(l.constructor.prototype,s);if((d.transformationType===bs.PLAIN_TO_CLASS||d.transformationType===bs.CLASS_TO_CLASS)&&(x&&!x.set||l[s]instanceof Function))return`continue`}if(!d.options.enableCircularCheck||!d.isCircular(f)){var S=d.transformationType===bs.PLAIN_TO_CLASS?s:r,C=void 0;d.transformationType===bs.CLASS_TO_PLAIN?(C=t[S],C=d.applyCustomTransformations(C,n,S,t,d.transformationType),C=t[S]===C?f:C,C=d.transform(b,C,p,y,m,a+1)):f===void 0&&d.options.exposeDefaultValues?C=l[s]:(C=d.transform(b,f,p,y,m,a+1),C=d.applyCustomTransformations(C,n,S,t,d.transformationType)),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}else if(d.transformationType===bs.CLASS_TO_CLASS){var C=f;C=d.applyCustomTransformations(C,n,r,t,d.transformationType),(C!==void 0||d.options.exposeUnsetFields)&&(l instanceof Map?l.set(s,C):l[s]=C)}},d=this,f=0,p=c;f<p.length;f++){var m=p[f];u(m)}return this.options.enableCircularCheck&&this.recursionStack.delete(t),l}else return t},e.prototype.applyCustomTransformations=function(e,t,n,r,i){var a=this,o=xs.findTransformMetadatas(t,n,this.transformationType);return this.options.version!==void 0&&(o=o.filter(function(e){return e.options?a.checkVersion(e.options.since,e.options.until):!0})),o=this.options.groups&&this.options.groups.length?o.filter(function(e){return e.options?a.checkGroups(e.options.groups):!0}):o.filter(function(e){return!e.options||!e.options.groups||!e.options.groups.length}),o.forEach(function(t){e=t.transformFn({value:e,key:n,obj:r,type:i,options:a.options})}),e},e.prototype.isCircular=function(e){return this.recursionStack.has(e)},e.prototype.getReflectedType=function(e,t){if(e){var n=xs.findTypeMetadata(e,t);return n?n.reflectedType:void 0}},e.prototype.getKeys=function(e,t,n){var r=this,i=xs.getStrategy(e);i===`none`&&(i=this.options.strategy||`exposeAll`);var a=[];if((i===`exposeAll`||n)&&(a=t instanceof Map?Array.from(t.keys()):Object.keys(t)),n)return a;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&e){var o=xs.getExposedProperties(e,this.transformationType),s=xs.getExcludedProperties(e,this.transformationType);a=ws(ws([],o,!0),s,!0)}if(!this.options.ignoreDecorators&&e){var o=xs.getExposedProperties(e,this.transformationType);this.transformationType===bs.PLAIN_TO_CLASS&&(o=o.map(function(t){var n=xs.findExposeMetadata(e,t);return n&&n.options&&n.options.name?n.options.name:t})),a=this.options.excludeExtraneousValues?o:a.concat(o);var c=xs.getExcludedProperties(e,this.transformationType);c.length>0&&(a=a.filter(function(e){return!c.includes(e)})),this.options.version!==void 0&&(a=a.filter(function(t){var n=xs.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkVersion(n.options.since,n.options.until)})),a=this.options.groups&&this.options.groups.length?a.filter(function(t){var n=xs.findExposeMetadata(e,t);return!n||!n.options?!0:r.checkGroups(n.options.groups)}):a.filter(function(t){var n=xs.findExposeMetadata(e,t);return!n||!n.options||!n.options.groups||!n.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(a=a.filter(function(e){return r.options.excludePrefixes.every(function(t){return e.substr(0,t.length)!==t})})),a=a.filter(function(e,t,n){return n.indexOf(e)===t}),a},e.prototype.checkVersion=function(e,t){var n=!0;return n&&e&&(n=this.options.version>=e),n&&t&&(n=this.options.version<t),n},e.prototype.checkGroups=function(e){return e?this.options.groups.some(function(t){return e.includes(t)}):!0},e}(),Ds={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},Os=function(){return Os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Os.apply(this,arguments)},ks=function(){function e(){}return e.prototype.instanceToPlain=function(e,t){return new Es(bs.CLASS_TO_PLAIN,Os(Os({},Ds),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToPlainFromExist=function(e,t,n){return new Es(bs.CLASS_TO_PLAIN,Os(Os({},Ds),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.plainToInstance=function(e,t,n){return new Es(bs.PLAIN_TO_CLASS,Os(Os({},Ds),n)).transform(void 0,t,e,void 0,void 0,void 0)},e.prototype.plainToClassFromExist=function(e,t,n){return new Es(bs.PLAIN_TO_CLASS,Os(Os({},Ds),n)).transform(e,t,void 0,void 0,void 0,void 0)},e.prototype.instanceToInstance=function(e,t){return new Es(bs.CLASS_TO_CLASS,Os(Os({},Ds),t)).transform(void 0,e,void 0,void 0,void 0,void 0)},e.prototype.classToClassFromExist=function(e,t,n){return new Es(bs.CLASS_TO_CLASS,Os(Os({},Ds),n)).transform(t,e,void 0,void 0,void 0,void 0)},e.prototype.serialize=function(e,t){return JSON.stringify(this.instanceToPlain(e,t))},e.prototype.deserialize=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e.prototype.deserializeArray=function(e,t,n){var r=JSON.parse(t);return this.plainToInstance(e,r,n)},e}();function J(e){return e===void 0&&(e={}),function(t,n){xs.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}function As(e,t){return t===void 0&&(t={}),function(n,r){xs.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}function Y(e,t){return t===void 0&&(t={}),function(n,r){var i=Reflect.getMetadata(`design:type`,n,r);xs.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}var js=new ks;function Ms(e,t){return js.instanceToPlain(e,t)}function X(e,t,n){return js.plainToInstance(e,t,n)}function Ns(e,t,n){return js.plainToInstance(e,t,n)}var Ps=class{};q([F(),W(),L({each:!0}),Y(()=>ys),K(`design:type`,Array)],Ps.prototype,`PointsList`,void 0);var Fs=class{};q([F(),H(),K(`design:type`,Number)],Fs.prototype,`Count`,void 0),q([F(),L({each:!0}),W(),Y(()=>Z),K(`design:type`,Array)],Fs.prototype,`List`,void 0),q([F(),L({each:!0}),W(),Y(()=>Ps),K(`design:type`,Array)],Fs.prototype,`Points`,void 0);var Is=class{};q([F(),V(or),K(`design:type`,or===void 0?Object:or)],Is.prototype,`docFormat`,void 0),q([F(),B(),K(`design:type`,Number)],Is.prototype,`Angle`,void 0),q([F(),B(),K(`design:type`,Number)],Is.prototype,`Width`,void 0),q([F(),B(),K(`design:type`,Number)],Is.prototype,`Height`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`Center`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`LeftBottom`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`LeftTop`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`RightBottom`,void 0),q([F(),L(),Y(()=>ys),K(`design:type`,ys===void 0?Object:ys)],Is.prototype,`RightTop`,void 0),q([F(),H(),K(`design:type`,Number)],Is.prototype,`Dpi`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`Inverse`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`ObjArea`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`ObjIntAngleDev`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`PerspectiveTr`,void 0),q([I(),H(),K(`design:type`,Number)],Is.prototype,`ResultStatus`,void 0);var Ls=class{};q([U(),I(),Jo(),K(`design:type`,String)],Ls.prototype,`image`,void 0),q([U(),I(),K(`design:type`,String)],Ls.prototype,`format`,void 0);var Z=class{};q([F(),B(),K(`design:type`,Number)],Z.prototype,`left`,void 0),q([F(),B(),K(`design:type`,Number)],Z.prototype,`top`,void 0),q([F(),B(),K(`design:type`,Number)],Z.prototype,`right`,void 0),q([F(),B(),K(`design:type`,Number)],Z.prototype,`bottom`,void 0);var Rs=class{};q([F(),B(),K(`design:type`,Number)],Rs.prototype,`dg`,void 0),q([F(),B(),K(`design:type`,Number)],Rs.prototype,`dgTag`,void 0),q([F(),B(),K(`design:type`,Number)],Rs.prototype,`tagEntry`,void 0),q([F(),B(),K(`design:type`,Number)],Rs.prototype,`entryView`,void 0);var zs=class{};q([U(),Qo(4),F(),K(`design:type`,String)],zs.prototype,`ICAOCode`,void 0),q([I(),H(),K(`design:type`,Number)],zs.prototype,`Count`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],zs.prototype,`List`,void 0),q([F(),V(sr),K(`design:type`,sr===void 0?Object:sr)],zs.prototype,`dType`,void 0),q([F(),V(or),K(`design:type`,or===void 0?Object:or)],zs.prototype,`dFormat`,void 0),q([F(),z(),K(`design:type`,Boolean)],zs.prototype,`dMRZ`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dDescription`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dYear`,void 0),q([F(),U(),K(`design:type`,String)],zs.prototype,`dCountryName`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dStateCode`,void 0),q([I(),U(),K(`design:type`,String)],zs.prototype,`dStateName`,void 0),q([F(),z(),K(`design:type`,Boolean)],zs.prototype,`isDeprecated`,void 0);var Bs=class{static{this.getNecessaryLights=e=>Za(typeof e==`number`?e:e.NecessaryLights)}static{this.getCheckAuthenticity=e=>qa(typeof e==`number`?e:e.CheckAuthenticity)}static{this.getAuthenticityNecessaryLights=e=>Za(typeof e==`number`?e:e.AuthenticityNecessaryLights)}};q([I(),U(),K(`design:type`,String)],Bs.prototype,`DocumentName`,void 0),q([F(),H(),K(`design:type`,Number)],Bs.prototype,`ID`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`P`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`Rotated180`,void 0),q([F(),V(Pr),K(`design:type`,Pr===void 0?Object:Pr)],Bs.prototype,`RFID_Presence`,void 0),q([I(),L(),Y(()=>zs),K(`design:type`,zs===void 0?Object:zs)],Bs.prototype,`FDSIDList`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`NecessaryLights`,void 0),q([F(),H(),K(`design:type`,Number)],Bs.prototype,`CheckAuthenticity`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`UVExp`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`AuthenticityNecessaryLights`,void 0),q([F(),B(),K(`design:type`,Number)],Bs.prototype,`OVIExp`,void 0),q([I(),H(),K(`design:type`,Number)],Bs.prototype,`RotationAngle`,void 0);var Vs=class{};q([F(),B(),K(`design:type`,Number)],Vs.prototype,`Type`,void 0),q([F(),B(),K(`design:type`,Number)],Vs.prototype,`Status`,void 0),q([F(),H(),K(`design:type`,Number)],Vs.prototype,`Length`,void 0),q([F(),K(`design:type`,Object)],Vs.prototype,`Data`,void 0);var Hs=class{};q([I(),B(),K(`design:type`,Number)],Hs.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],Hs.prototype,`Status`,void 0),q([I(),U(),K(`design:type`,String)],Hs.prototype,`Format`,void 0),q([F(),U(),K(`design:type`,String)],Hs.prototype,`Data`,void 0);var Us=class{};q([F(),U(),K(`design:type`,String)],Us.prototype,`Type`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Us.prototype,`Value`,void 0);var Ws=class{};q([F(),Jo(),U(),K(`design:type`,String)],Ws.prototype,`Data`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Ws.prototype,`FriendlyName`,void 0),q([F(),Y(()=>Us),L({each:!0}),W(),K(`design:type`,Array)],Ws.prototype,`Attributes`,void 0);var Gs=class{static{this.getLightingScheme=e=>Za(typeof e==`number`?e:e?.light??mr.OFF)}};q([I(),H(),K(`design:type`,Number)],Gs.prototype,`buf_length`,void 0),q([I(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Gs.prototype,`light`,void 0),q([I(),H(),K(`design:type`,Number)],Gs.prototype,`list_idx`,void 0),q([I(),H(),K(`design:type`,Number)],Gs.prototype,`page_idx`,void 0),q([F(),V(M),K(`design:type`,M===void 0?Object:M)],Gs.prototype,`result_type`,void 0);var Ks=class{};q([F(),V(A),K(`design:type`,A===void 0?Object:A)],Ks.prototype,`Type`,void 0),q([I(),V(j),K(`design:type`,j===void 0?Object:j)],Ks.prototype,`ElementResult`,void 0),q([I(),V(ir),K(`design:type`,ir===void 0?Object:ir)],Ks.prototype,`ElementDiagnose`,void 0),q([I(),H(),K(`design:type`,Number)],Ks.prototype,`PercentValue`,void 0);var qs,Js=class extends Ks{static{qs=this}static{this.fromPlain=e=>X(qs,e)}static{this.validate=e=>{let t=G(qs.fromPlain(e));if(t.length)throw new NS(`FibersTypeElement validation error: the data received does not match model structure!`,t);return!0}}};q([F(),H(),K(`design:type`,Number)],Js.prototype,`RectCount`,void 0),q([F(),H(),K(`design:type`,Number)],Js.prototype,`ExpectedCount`,void 0),q([I(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Js.prototype,`LightValue`,void 0),q([I(),H(),K(`design:type`,Number)],Js.prototype,`LightDisp`,void 0),q([F(),W(),L({each:!0}),Y(()=>Z),K(`design:type`,Array)],Js.prototype,`RectArray`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Js.prototype,`Width`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Js.prototype,`Length`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Js.prototype,`Area`,void 0),q([F(),W(),vs(3),hs(3),H({each:!0}),K(`design:type`,Array)],Js.prototype,`ColorValues`,void 0),q([F(),R([A.UV_FIBERS]),V(A),K(`design:type`,A===void 0||A.UV_FIBERS===void 0?Object:A.UV_FIBERS)],Js.prototype,`Type`,void 0),Js=qs=q([J()],Js);var Ys=class{};q([F(),V(A),K(`design:type`,A===void 0?Object:A)],Ys.prototype,`Type`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Ys.prototype,`Result`,void 0),q([I(),H(),K(`design:type`,Number)],Ys.prototype,`Count`,void 0),q([F(),W(),K(`design:type`,Array)],Ys.prototype,`List`,void 0);var Xs,Zs=[A.UV_FIBERS],Qs=class extends Ys{static{Xs=this}static{this.fromPlain=e=>X(Xs,e)}static{this.isBelongs=e=>{let t=e;return Zs.includes(t?.Type)}}};q([F(),R(Zs),V(A),K(`design:type`,Object)],Qs.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>Js),K(`design:type`,Array)],Qs.prototype,`List`,void 0),Qs=Xs=q([J()],Qs);var $s=class extends Ks{};q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],$s.prototype,`ElementType`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],$s.prototype,`LightIndex`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],$s.prototype,`Area`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],$s.prototype,`Image`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],$s.prototype,`EtalonImage`,void 0),q([I(),L(),Y(()=>Fs),K(`design:type`,Fs===void 0?Object:Fs)],$s.prototype,`AreaList`,void 0),q([I(),B(),K(`design:type`,Number)],$s.prototype,`ElementID`,void 0),q([F(),R([A.IMAGE_PATTERN,A.IR_VISIBILITY,A.OVI,A.PORTRAIT_COMPARISON,A.KINEGRAM,A.LETTER_SCREEN,A.HOLOGRAM_DETECTION,A.FINGERPRINT_COMPARISON,A.LIVENESS]),V(A),K(`design:type`,Object)],$s.prototype,`Type`,void 0);var ec,tc=[A.IMAGE_PATTERN,A.IR_VISIBILITY,A.OVI,A.PORTRAIT_COMPARISON,A.KINEGRAM,A.LETTER_SCREEN,A.HOLOGRAM_DETECTION,A.FINGERPRINT_COMPARISON,A.LIVENESS],nc=class extends Ys{static{ec=this}static{this.fromPlain=e=>X(ec,e)}static{this.isBelongs=e=>tc.includes(e?.Type)}};q([F(),R(tc),V(A),K(`design:type`,Object)],nc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>$s),K(`design:type`,Array)],nc.prototype,`List`,void 0),nc=ec=q([J()],nc);var rc=class extends Ks{};q([F(),V(ar),K(`design:type`,ar===void 0?Object:ar)],rc.prototype,`CriticalFlag`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],rc.prototype,`LightType`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],rc.prototype,`FieldRect`,void 0),q([F(),B(),K(`design:type`,Number)],rc.prototype,`EtalonResultType`,void 0),q([F(),V(P),K(`design:type`,P===void 0?Object:P)],rc.prototype,`EtalonFieldType`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],rc.prototype,`EtalonLightType`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],rc.prototype,`EtalonFieldRect`,void 0),q([F(),U(),K(`design:type`,String)],rc.prototype,`SecurityTextResultOCR`,void 0),q([F(),U(),K(`design:type`,String)],rc.prototype,`EtalonResultOCR`,void 0),q([I(),K(`design:type`,Number)],rc.prototype,`Reserved1`,void 0),q([I(),K(`design:type`,Number)],rc.prototype,`Reserved2`,void 0),q([F(),R([A.OCR_SECURITY_TEXT,A.ENCRYPTED_IPI]),V(A),K(`design:type`,Object)],rc.prototype,`Type`,void 0);var ic,ac=[A.OCR_SECURITY_TEXT,A.ENCRYPTED_IPI],oc=class extends Ys{static{ic=this}static{this.fromPlain=e=>X(ic,e)}static{this.isBelongs=e=>ac.includes(e.Type)}};q([F(),R(ac),V(A),K(`design:type`,Object)],oc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>rc),K(`design:type`,Array)],oc.prototype,`List`,void 0),oc=ic=q([J()],oc);var sc=class{};q([F(),H(),K(`design:type`,Number)],sc.prototype,`Count`,void 0),q([F(),W(),L({each:!0}),Y(()=>Ls),K(`design:type`,Array)],sc.prototype,`Images`,void 0);var cc=class extends Ks{};q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],cc.prototype,`LightIndex`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],cc.prototype,`Area`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],cc.prototype,`SourceImage`,void 0),q([F(),L(),Y(()=>sc),K(`design:type`,sc===void 0?Object:sc)],cc.prototype,`ResultImages`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`FieldTypesCount`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],cc.prototype,`FieldTypesList`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`Step`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`Angle`,void 0),q([I(),H(),K(`design:type`,Number)],cc.prototype,`Reserved3`,void 0),q([F(),R([A.IPI]),V(A),K(`design:type`,A===void 0||A.IPI===void 0?Object:A.IPI)],cc.prototype,`Type`,void 0);var lc,uc=[A.IPI],dc=class extends Ys{static{lc=this}static{this.fromPlain=e=>X(lc,e)}static{this.isBelongs=e=>uc.includes(e?.Type)}};q([F(),R(uc),V(A),K(`design:type`,Object)],dc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>cc),K(`design:type`,Array)],dc.prototype,`List`,void 0),dc=lc=q([J()],dc);var fc=class extends Ks{};q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],fc.prototype,`ElementType`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],fc.prototype,`ElementRect`,void 0),q([F(),V(Ur),K(`design:type`,Ur===void 0?Object:Ur)],fc.prototype,`Visibility`,void 0),q([F(),V(ar),K(`design:type`,ar===void 0?Object:ar)],fc.prototype,`CriticalFlag`,void 0),q([I(),L(),Y(()=>Fs),K(`design:type`,Fs===void 0?Object:Fs)],fc.prototype,`AreaList`,void 0),q([I(),H(),K(`design:type`,Number)],fc.prototype,`Reserved2`,void 0),q([F(),R([A.UV_LUMINESCENCE,A.IR_B900,A.AXIAL_PROTECTION,A.PHOTO_EMBED_TYPE,A.HOLOGRAMS,A.PHOTO_AREA,A.BARCODE_FORMAT_CHECK,A.EXTENDED_OCR_CHECK,A.EXTENDED_MRZ_CHECK]),V(A),K(`design:type`,Object)],fc.prototype,`Type`,void 0);var pc,mc=[A.UV_LUMINESCENCE,A.IR_B900,A.AXIAL_PROTECTION,A.PHOTO_EMBED_TYPE,A.HOLOGRAMS,A.PHOTO_AREA,A.BARCODE_FORMAT_CHECK,A.EXTENDED_OCR_CHECK,A.EXTENDED_MRZ_CHECK],hc=class extends Ys{static{pc=this}static{this.fromPlain=e=>X(pc,e)}static{this.isBelongs=e=>mc.includes(e?.Type)}};q([F(),R(mc),V(A),K(`design:type`,Object)],hc.prototype,`Type`,void 0),q([F(),W(),L({each:!0}),Y(()=>fc),K(`design:type`,Array)],hc.prototype,`List`,void 0),hc=pc=q([J()],hc);var gc=e=>{let t=[];return e.forEach(e=>{if(!xv(e)||!(`Type`in e))return;let{Type:n}=e;switch(n){case A.UV_FIBERS:t.push(Qs.fromPlain(e));break;case A.IMAGE_PATTERN:case A.IR_VISIBILITY:case A.OVI:case A.PORTRAIT_COMPARISON:case A.KINEGRAM:case A.LETTER_SCREEN:case A.HOLOGRAM_DETECTION:case A.FINGERPRINT_COMPARISON:case A.LIVENESS:t.push(nc.fromPlain(e));break;case A.OCR_SECURITY_TEXT:case A.ENCRYPTED_IPI:t.push(oc.fromPlain(e));break;case A.IPI:t.push(dc.fromPlain(e));break;case A.UV_LUMINESCENCE:case A.IR_B900:case A.AXIAL_PROTECTION:case A.PHOTO_EMBED_TYPE:case A.HOLOGRAMS:case A.PHOTO_AREA:case A.BARCODE_FORMAT_CHECK:case A.EXTENDED_OCR_CHECK:case A.EXTENDED_MRZ_CHECK:t.push(hc.fromPlain(e));break}}),t},_c=class{};q([F(),H(),K(`design:type`,Number)],_c.prototype,`Count`,void 0),q([L({each:!0}),As(({obj:e})=>gc(e.List),{toClassOnly:!0}),W(),K(`design:type`,Array)],_c.prototype,`List`,void 0);var vc,yc=[M.AUTHENTICITY,M.FINGERPRINT_COMPARISON,M.PORTRAIT_COMPARISON],bc=class extends Gs{static{vc=this}static{this.fromPlain=e=>X(vc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>yc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(vc.fromPlain(e));if(t.length)throw new NS(`AuthenticityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>_c),K(`design:type`,_c===void 0?Object:_c)],bc.prototype,`AuthenticityCheckList`,void 0),q([F(),V(M),R(yc),K(`design:type`,Object)],bc.prototype,`result_type`,void 0),bc=vc=q([J()],bc);var xc,Sc=[M.DOCUMENT_POSITION],Cc=class extends Gs{static{xc=this}static{this.fromPlain=e=>X(xc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>Sc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(xc.fromPlain(e));if(t.length)throw new NS(`BoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Is),K(`design:type`,Is===void 0?Object:Is)],Cc.prototype,`DocumentPosition`,void 0),q([F(),V(M),R(Sc),K(`design:type`,Object)],Cc.prototype,`result_type`,void 0),Cc=xc=q([J()],Cc);var wc,Tc=[M.BARCODE_POSITION],Ec=class extends Gs{static{wc=this}static{this.fromPlain=e=>X(wc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!Array.isArray(n))return[];let r=n.List.filter(e=>Tc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(wc.fromPlain(e));if(t.length)throw new NS(`BarcodeBoundsResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Is),K(`design:type`,Is===void 0?Object:Is)],Ec.prototype,`BarcodePosition`,void 0),q([F(),V(M),R(Tc),K(`design:type`,Object)],Ec.prototype,`result_type`,void 0),Ec=wc=q([J()],Ec);var Dc=class{};q([F(),U(),K(`design:type`,String)],Dc.prototype,`mData`,void 0),q([F(),B(),K(`design:type`,Number)],Dc.prototype,`mLength`,void 0),q([I(),K(`design:type`,Number)],Dc.prototype,`mReserved1`,void 0),q([I(),K(`design:type`,Number)],Dc.prototype,`mReserver2`,void 0),q([F(),V(nr),K(`design:type`,nr===void 0?Object:nr)],Dc.prototype,`mType`,void 0);var Oc=class{};q([F(),B(),K(`design:type`,Number)],Oc.prototype,`Angle`,void 0),q([F(),B(),K(`design:type`,Number)],Oc.prototype,`bcColumn`,void 0),q([F(),B(),K(`design:type`,Number)],Oc.prototype,`bcErrorLevel`,void 0),q([F(),B(),K(`design:type`,Number)],Oc.prototype,`bcRow`,void 0),q([I(),B(),K(`design:type`,Number)],Oc.prototype,`minX`,void 0),q([I(),B(),K(`design:type`,Number)],Oc.prototype,`minY`,void 0);var kc=class{};q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcAngle_DETECT`,void 0),q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcCodeResult`,void 0),q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcCountModule`,void 0),q([F(),W(),L({each:!0}),Y(()=>Dc),K(`design:type`,Array)],kc.prototype,`bcDataModule`,void 0),q([I(),L(),Y(()=>Oc),K(`design:type`,Oc===void 0?Object:Oc)],kc.prototype,`bcPDF417INFO`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],kc.prototype,`bcROI_DETECT`,void 0),q([I(),B(),K(`design:type`,Number)],kc.prototype,`bcTextDecoderTypes`,void 0),q([I(),V(P),K(`design:type`,P===void 0?Object:P)],kc.prototype,`bcTextFieldType`,void 0),q([F(),V(rr),K(`design:type`,rr===void 0?Object:rr)],kc.prototype,`bcType_DECODE`,void 0),q([F(),B(),K(`design:type`,Number)],kc.prototype,`bcType_DETECT`,void 0);var Ac=class{};q([F(),H(),K(`design:type`,Number)],Ac.prototype,`nFields`,void 0),q([F(),L({each:!0}),Y(()=>kc),W(),K(`design:type`,Array)],Ac.prototype,`pArrayFields`,void 0);var jc,Mc=[M.BARCODES],Nc=class extends Gs{static{jc=this}static{this.fromPlain=e=>X(jc,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>Mc.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(jc.fromPlain(e));if(t.length)throw new NS(`DocBarCodeInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Ac),K(`design:type`,Ac===void 0?Object:Ac)],Nc.prototype,`DocBarCodeInfo`,void 0),q([F(),V(M),R(Mc),K(`design:type`,Object)],Nc.prototype,`result_type`,void 0),Nc=jc=q([J()],Nc);var Pc=class{};q([F(),H(),K(`design:type`,Number)],Pc.prototype,`Type`,void 0),q([F(),V(or),K(`design:type`,or===void 0?Object:or)],Pc.prototype,`DocumentID`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`DocumentType`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`State`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Holder`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`DocumentNumber`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitDocumentNumber`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Nationality`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Birthday`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitBirthday`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`Sex`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`ExpiryDate`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitExpiryDate`,void 0),q([F(),U(),K(`design:type`,String)],Pc.prototype,`OptionalData`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitOptionalData`,void 0),q([F(),H(),K(`design:type`,Number)],Pc.prototype,`CheckDigitComposite`,void 0);var Fc=class{};q([F(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Fc.prototype,`Type`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Fc.prototype,`Status`,void 0),q([I(),H(),K(`design:type`,Number)],Fc.prototype,`ActiveOptionIdx`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Fc.prototype,`Notifications`,void 0),q([I(),W(),K(`design:type`,Array)],Fc.prototype,`AccessControlOptions`,void 0);var Ic=class{};q([F(),U(),K(`design:type`,String)],Ic.prototype,`AccessKey`,void 0),q([F(),V(Fr),K(`design:type`,Fr===void 0?Object:Fr)],Ic.prototype,`KeyType`,void 0),q([F(),V(Or),K(`design:type`,Or===void 0?Object:Or)],Ic.prototype,`AccessType`,void 0),q([F(),z(),K(`design:type`,Boolean)],Ic.prototype,`CheckFullKeyMatching`,void 0);var Lc=class{};q([I(),V(Cr,{each:!0}),K(`design:type`,Array)],Lc.prototype,`ParsingNotifications`,void 0);var Rc=class{};q([F(),U(),K(`design:type`,String)],Rc.prototype,`Data`,void 0),q([F(),B(),K(`design:type`,Number)],Rc.prototype,`Length`,void 0);var zc=class{};q([I(),Y(()=>Rc),L(),K(`design:type`,Rc===void 0?Object:Rc)],zc.prototype,`Certificate_Data`,void 0);var Bc=class{};q([U(),I(),K(`design:type`,String)],Bc.prototype,`FileID`,void 0),q([F(),V(N),K(`design:type`,N===void 0?Object:N)],Bc.prototype,`Type`,void 0),q([I(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],Bc.prototype,`FileData`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Bc.prototype,`ReadingStatus`,void 0),q([I(),H(),K(`design:type`,Number)],Bc.prototype,`ReadingTime`,void 0),q([I(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Bc.prototype,`PA_Status`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Bc.prototype,`Notifications`,void 0),q([I(),V(P,{each:!0}),K(`design:type`,Array)],Bc.prototype,`DocFields_Text`,void 0),q([I(),V(lr,{each:!0}),K(`design:type`,Array)],Bc.prototype,`DocFields_Graphics`,void 0),q([I(),V(lr,{each:!0}),K(`design:type`,Array)],Bc.prototype,`DocFields_Originals`,void 0),q([I(),Y(()=>Lc),L(),K(`design:type`,Lc===void 0?Object:Lc)],Bc.prototype,`ParsedData`,void 0),q([I(),Y(()=>zc),L(),K(`design:type`,zc===void 0?Object:zc)],Bc.prototype,`SecurityObject_Certificates`,void 0);var Vc=class{};q([F(),V(kr),K(`design:type`,kr===void 0?Object:kr)],Vc.prototype,`Type`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Vc.prototype,`Status`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`ApplicationID`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`Version`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`UnicodeVersion`,void 0),q([F(),U(),K(`design:type`,String)],Vc.prototype,`DataHashAlgorithm`,void 0),q([F(),Y(()=>Bc),L({each:!0}),K(`design:type`,Array)],Vc.prototype,`Files`,void 0);var Hc=class{};q([F(),V(Lr),K(`design:type`,Lr===void 0?Object:Lr)],Hc.prototype,`RFID_Type`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`Baudrate1`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`Baudrate2`,void 0),q([F(),z(),K(`design:type`,Boolean)],Hc.prototype,`Support_4`,void 0),q([F(),V(Dr),K(`design:type`,Dr===void 0?Object:Dr)],Hc.prototype,`ChipType_A`,void 0),q([F(),z(),K(`design:type`,Boolean)],Hc.prototype,`Support_Mifare`,void 0),q([F(),H(),K(`design:type`,Number)],Hc.prototype,`MifareMemory`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`UID`,void 0),q([F(),K(`design:type`,Object)],Hc.prototype,`ATQ_A`,void 0),q([F(),K(`design:type`,Object)],Hc.prototype,`SAK`,void 0),q([F(),K(`design:type`,Object)],Hc.prototype,`ATQ_B`,void 0),q([F(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Hc.prototype,`BitRateS`,void 0),q([F(),V(jr),K(`design:type`,jr===void 0?Object:jr)],Hc.prototype,`BitRateR`,void 0),q([F(),U(),K(`design:type`,String)],Hc.prototype,`ATR`,void 0);var Uc=class{};q([F(),U(),K(`design:type`,String)],Uc.prototype,`Type`,void 0),q([F(),U(),Jo(),K(`design:type`,String)],Uc.prototype,`Data`,void 0);var Wc=class{};q([F(),U(),K(`design:type`,String)],Wc.prototype,`Type`,void 0),q([F(),U(),Jo(),K(`design:type`,String)],Wc.prototype,`Data`,void 0);var Gc=class{};q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Gc.prototype,`NotBefore`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Gc.prototype,`NotAfter`,void 0);var Kc=class{};q([F(),B(),K(`design:type`,Number)],Kc.prototype,`Version`,void 0),q([F(),Jo(),U(),K(`design:type`,String)],Kc.prototype,`SerialNumber`,void 0),q([F(),U(),K(`design:type`,String)],Kc.prototype,`SignatureAlgorithm`,void 0),q([F(),Y(()=>Ws),L(),K(`design:type`,Ws===void 0?Object:Ws)],Kc.prototype,`Issuer`,void 0),q([F(),Y(()=>Gc),L(),K(`design:type`,Gc===void 0?Object:Gc)],Kc.prototype,`Validity`,void 0),q([F(),Y(()=>Ws),L(),K(`design:type`,Ws===void 0?Object:Ws)],Kc.prototype,`Subject`,void 0),q([F(),U(),K(`design:type`,String)],Kc.prototype,`SubjectPKAlgorithm`,void 0),q([F(),Y(()=>Wc),L({each:!0}),W(),K(`design:type`,Array)],Kc.prototype,`Extensions`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Kc.prototype,`Notifications`,void 0),q([F(),V(Mr),K(`design:type`,Mr===void 0?Object:Mr)],Kc.prototype,`Origin`,void 0),q([F(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Kc.prototype,`Type`,void 0),q([F(),Y(()=>Hs),L(),K(`design:type`,Hs===void 0?Object:Hs)],Kc.prototype,`FileName`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Kc.prototype,`PA_Status`,void 0);var qc=class{};q([F(),B(),K(`design:type`,Number)],qc.prototype,`Version`,void 0),q([F(),Y(()=>Ws),L(),K(`design:type`,Ws===void 0?Object:Ws)],qc.prototype,`Issuer`,void 0),q([F(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],qc.prototype,`SerialNumber`,void 0),q([F(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],qc.prototype,`SubjectKeyIdentifier`,void 0),q([F(),U(),K(`design:type`,String)],qc.prototype,`DigestAlgorithm`,void 0),q([F(),Y(()=>Uc),L({each:!0}),W(),K(`design:type`,Array)],qc.prototype,`SignedAttributes`,void 0),q([F(),U(),K(`design:type`,String)],qc.prototype,`SignatureAlgorithm`,void 0),q([F(),Y(()=>Vs),L(),K(`design:type`,Vs===void 0?Object:Vs)],qc.prototype,`Signature`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],qc.prototype,`PA_Status`,void 0),q([F(),Y(()=>Kc),L({each:!0}),W(),K(`design:type`,Array)],qc.prototype,`CertificateChain`,void 0),q([F(),U(),Jo(),K(`design:type`,String)],qc.prototype,`DataToHash`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],qc.prototype,`Notifications`,void 0);var Jc=class{};q([F(),B(),K(`design:type`,Number)],Jc.prototype,`Version`,void 0),q([F(),U(),K(`design:type`,String)],Jc.prototype,`ObjectType`,void 0),q([F(),H(),K(`design:type`,Number)],Jc.prototype,`FileReference`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Jc.prototype,`Notifications`,void 0),q([F(),Y(()=>qc),W(),K(`design:type`,Array)],Jc.prototype,`SignerInfos`,void 0);var Yc=class{static{this.getAuthReq=e=>eo(typeof e==`number`?e:e.AuthReq)}static{this.getAuthReq2=e=>eo(typeof e==`number`?e:e.AuthReq2)}};q([F(),V(Ir),K(`design:type`,Ir===void 0?Object:Ir)],Yc.prototype,`TermType`,void 0),q([F(),H(),K(`design:type`,Number)],Yc.prototype,`AuthReq`,void 0),q([F(),H(),K(`design:type`,Number)],Yc.prototype,`AuthReq2`,void 0);var Xc=class{};q([I(),z(),K(`design:type`,Boolean)],Xc.prototype,`VirtualMode`,void 0),q([I(),U(),K(`design:type`,String)],Xc.prototype,`SDKVersion`,void 0),q([I(),U(),K(`design:type`,String)],Xc.prototype,`DriverVersion`,void 0),q([I(),U(),K(`design:type`,String)],Xc.prototype,`FirmwareVersion`,void 0),q([F(),L({each:!0}),Y(()=>Vc),K(`design:type`,Array)],Xc.prototype,`Applications`,void 0),q([F(),L({each:!0}),Y(()=>Fc),K(`design:type`,Array)],Xc.prototype,`AccessControls`,void 0),q([F(),L(),Y(()=>Hc),K(`design:type`,Hc===void 0?Object:Hc)],Xc.prototype,`CardProperties`,void 0),q([F(),V(Tr),K(`design:type`,Tr===void 0?Object:Tr)],Xc.prototype,`ExtLeSupport`,void 0),q([F(),H(),K(`design:type`,Number)],Xc.prototype,`ProcessTime`,void 0),q([F(),H(),K(`design:type`,Number)],Xc.prototype,`TotalBytesSent`,void 0),q([F(),H(),K(`design:type`,Number)],Xc.prototype,`TotalBytesReceived`,void 0),q([F(),L(),Y(()=>Ic),K(`design:type`,Ic===void 0?Object:Ic)],Xc.prototype,`Session_key`,void 0),q([F(),L(),Y(()=>Yc),K(`design:type`,Yc===void 0?Object:Yc)],Xc.prototype,`Session_terminal`,void 0),q([F(),V(Ar),K(`design:type`,Ar===void 0?Object:Ar)],Xc.prototype,`Session_procedure`,void 0),q([F(),L({each:!0}),Y(()=>Jc),K(`design:type`,Array)],Xc.prototype,`SecurityObjects`,void 0);var Zc=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`overallStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`docType`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`expiry`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`imageQA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`mrz`,void 0),q([F(),H(),K(`design:type`,Number)],Zc.prototype,`pagesCount`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`security`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Zc.prototype,`text`,void 0),q([I(),H(),K(`design:type`,Number)],Zc.prototype,`vds`,void 0);var Qc=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`overallStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`AA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`BAC`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`CA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`PA`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`PACE`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qc.prototype,`TA`,void 0);var $c=class{};q([F(),H(),K(`design:type`,Number)],$c.prototype,`threshold`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`overThreshold`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over18`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over21`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over25`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],$c.prototype,`over65`,void 0);var el=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`overallStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`optical`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`portrait`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`rfid`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`stopList`,void 0),q([I(),L(),Y(()=>Qc),K(`design:type`,Qc===void 0?Object:Qc)],el.prototype,`detailsRFID`,void 0),q([F(),L(),Y(()=>Zc),K(`design:type`,Zc===void 0?Object:Zc)],el.prototype,`detailsOptical`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`age`,void 0),q([F(),L(),Y(()=>$c),K(`design:type`,$c===void 0?Object:$c)],el.prototype,`detailsAge`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],el.prototype,`mDL`,void 0);var tl,nl=[M.STATUS],rl=class extends Gs{static{tl=this}static{this.fromPlain=e=>X(tl,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>nl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(tl.fromPlain(e));if(t.length)throw new NS(`StatusContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>el),K(`design:type`,el===void 0?Object:el)],rl.prototype,`Status`,void 0),q([F(),V(M),R(nl),K(`design:type`,Object)],rl.prototype,`result_type`,void 0),rl=tl=q([J()],rl);var Q=class{};q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_Authentication_Info`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data_Validity`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_MIFARE_Data`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_COM`,void 0),q([I(),L(),Y(()=>Pc),K(`design:type`,Pc===void 0?Object:Pc)],Q.prototype,`RFID_DG1`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG2`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG3`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG4`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG5`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG6`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG7`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG8`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG9`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG10`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG11`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG12`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG13`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG14`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG15`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_DG16`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`RFID_EF_SOD`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG1`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG2`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG3`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG4`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG5`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG6`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG7`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG8`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG9`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG10`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG11`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG12`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG13`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG14`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG15`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG16`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG17`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG18`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG19`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG20`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eID_DG21`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_COM`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_SOD`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG1`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG2`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG3`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG4`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG5`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG6`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG7`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG8`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG9`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG10`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG11`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG12`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG13`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`eDL_DG14`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Visible_Digital_Seal_NC`,void 0),q([I(),K(`design:type`,typeof Record>`u`?Object:Record)],Q.prototype,`Digital_Signature`,void 0),q([I(),L(),Y(()=>Xc),K(`design:type`,Xc===void 0?Object:Xc)],Q.prototype,`RFID_Session_Data`,void 0),q([I(),L(),Y(()=>Qc),K(`design:type`,Qc===void 0?Object:Qc)],Q.prototype,`RFID_Session_Data_Status`,void 0),q([I(),W(),V(N,{each:!0}),K(`design:type`,Array)],Q.prototype,`RFID_ePassp_Directory`,void 0);var il=class{};q([F(),U(),K(`design:type`,String)],il.prototype,`Data`,void 0),q([F(),B(),K(`design:type`,Number)],il.prototype,`FieldType`,void 0);var al=class{};q([I(),L(),Y(()=>Q),K(`design:type`,Q===void 0?Object:Q)],al.prototype,`RFID_BINARY_DATA`,void 0),q([I(),L(),Y(()=>il),K(`design:type`,Array)],al.prototype,`RFID_RAW_DATA`,void 0);var ol,sl=[M.RFID_BINARY_DATA,M.RFID_RAW_DATA],cl=class extends Gs{static{ol=this}static{this.fromPlain=e=>X(ol,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e;if(!n)return[];let r=n.List.filter(e=>sl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ol.fromPlain(e));if(t.length)throw new NS(`DocBinaryInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>al),K(`design:type`,al===void 0?Object:al)],cl.prototype,`TDocBinaryInfo`,void 0),q([F(),V(M),R(sl),K(`design:type`,Object)],cl.prototype,`result_type`,void 0),cl=ol=q([J()],cl);var ll=class{};q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],ll.prototype,`FieldRect`,void 0),q([F(),V(lr),K(`design:type`,lr===void 0?Object:lr)],ll.prototype,`FieldType`,void 0),q([F(),U(),K(`design:type`,String)],ll.prototype,`FieldName`,void 0),q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],ll.prototype,`image`,void 0);var ul=class{};q([F(),L(),Y(()=>ll),K(`design:type`,Array)],ul.prototype,`pArrayFields`,void 0),q([F(),H(),K(`design:type`,Number)],ul.prototype,`nFields`,void 0);var dl,fl=[M.VISUAL_GRAPHICS,M.BARCODE_GRAPHICS,M.LIVE_PORTRAIT,M.EXT_PORTRAIT,M.FINGERPRINTS,M.RFID_GRAPHICS],pl=class extends Gs{static{dl=this}static{this.fromPlain=e=>X(dl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>fl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(dl.fromPlain(e));if(t.length)throw new NS(`DocGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>ul),K(`design:type`,ul===void 0?Object:ul)],pl.prototype,`DocGraphicsInfo`,void 0),q([F(),V(M),R(fl),K(`design:type`,Object)],pl.prototype,`result_type`,void 0),pl=dl=q([J()],pl);var ml=class{};q([F(),H(),K(`design:type`,Number)],ml.prototype,`SymbolCode`,void 0),q([F(),H(),K(`design:type`,Number)],ml.prototype,`SymbolProbability`,void 0),q([I(),H(),K(`design:type`,Number)],ml.prototype,`Class`,void 0),q([I(),H(),K(`design:type`,Number)],ml.prototype,`SubClass`,void 0);var hl=class{};q([I(),L({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],hl.prototype,`SymbolRect`,void 0),q([F(),H(),K(`design:type`,Number)],hl.prototype,`CandidatesCount`,void 0),q([F(),L({each:!0}),Y(()=>ml),K(`design:type`,Array)],hl.prototype,`ListOfCandidates`,void 0),q([I(),H(),K(`design:type`,Number)],hl.prototype,`BaseLineBottom`,void 0),q([I(),H(),K(`design:type`,Number)],hl.prototype,`BaseLineTop`,void 0);var gl=class{};q([F(),H(),K(`design:type`,Number)],gl.prototype,`SymbolsCount`,void 0),q([F(),L({each:!0}),Y(()=>hl),K(`design:type`,Array)],gl.prototype,`StringResult`,void 0),q([I(),H(),K(`design:type`,Number)],gl.prototype,`Buf_Length`,void 0),q([I(),U(),K(`design:type`,String)],gl.prototype,`Buf_Text`,void 0),q([I(),H(),K(`design:type`,Number)],gl.prototype,`Reserved`,void 0);var _l=class{};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],_l.prototype,`wFieldType`,void 0),q([F(),U(),K(`design:type`,String)],_l.prototype,`FieldName`,void 0),q([F(),H(),K(`design:type`,Number)],_l.prototype,`StringsCount`,void 0),q([F(),L({each:!0}),Y(()=>gl),K(`design:type`,Array)],_l.prototype,`StringsResult`,void 0),q([F(),H(),K(`design:type`,Number)],_l.prototype,`Buf_Length`,void 0),q([F(),U(),K(`design:type`,String)],_l.prototype,`Buf_Text`,void 0),q([I(),U(),K(`design:type`,String)],_l.prototype,`FieldMask`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`Validity`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`InComparison`,void 0),q([I(),V(pr),K(`design:type`,pr===void 0?Object:pr)],_l.prototype,`wLCID`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`Reserved2`,void 0),q([I(),H(),K(`design:type`,Number)],_l.prototype,`Reserved3`,void 0);var vl=class extends _l{};q([F(),L({each:!0}),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],vl.prototype,`FieldRect`,void 0);var yl=class{};q([F(),H(),K(`design:type`,Number)],yl.prototype,`nFields`,void 0),q([F(),L({each:!0}),Y(()=>vl),K(`design:type`,Array)],yl.prototype,`pArrayFields`,void 0);var bl,xl=[M.VISUAL_TEXT,M.MRZ_TEXT,M.BARCODE_TEXT,M.MAGNETIC_STRIPE_TEXT_DATA,M.RFID_TEXT],Sl=class extends Gs{static{bl=this}static{this.fromPlain=e=>X(bl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>xl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(bl.fromPlain(e));if(t.length)throw new NS(`DocVisualExtendedInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>yl),K(`design:type`,yl===void 0?Object:yl)],Sl.prototype,`DocVisualExtendedInfo`,void 0),q([F(),V(M),R(xl),K(`design:type`,Object)],Sl.prototype,`result_type`,void 0),Sl=bl=q([J()],Sl);var Cl,wl=[M.ENCRYPTED_RCL],Tl=class extends Gs{static{Cl=this}static{this.fromPlain=e=>X(Cl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>wl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Cl.fromPlain(e));if(t.length)throw new NS(`EncryptedRCLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),Jo(),K(`design:type`,String)],Tl.prototype,`EncryptedRCL`,void 0),q([F(),V(M),R(wl),K(`design:type`,Object)],Tl.prototype,`result_type`,void 0),Tl=Cl=q([J()],Tl);var El=class{};q([F(),V(ur),K(`design:type`,ur===void 0?Object:ur)],El.prototype,`type`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],El.prototype,`result`,void 0),q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],El.prototype,`featureType`,void 0),q([I(),L(),Y(()=>Fs),K(`design:type`,Fs===void 0?Object:Fs)],El.prototype,`areas`,void 0),q([F(),B(),K(`design:type`,Number)],El.prototype,`mean`,void 0),q([F(),B(),K(`design:type`,Number)],El.prototype,`std_dev`,void 0),q([F(),H(),K(`design:type`,Number)],El.prototype,`probability`,void 0);var Dl=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Dl.prototype,`result`,void 0),q([F(),L({each:!0}),Y(()=>El),W(),K(`design:type`,Array)],Dl.prototype,`List`,void 0),q([F(),H(),K(`design:type`,Number)],Dl.prototype,`Count`,void 0);var Ol,kl=[M.IMAGE_QUALITY],Al=class extends Gs{static{Ol=this}static{this.fromPlain=e=>X(Ol,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>kl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Ol.fromPlain(e));if(t.length)throw new NS(`ImageQualityCheckListContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Dl),K(`design:type`,Dl===void 0?Object:Dl)],Al.prototype,`ImageQualityCheckList`,void 0),q([F(),V(M),R(kl),K(`design:type`,Object)],Al.prototype,`result_type`,void 0),Al=Ol=q([J()],Al);var jl=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],jl.prototype,`source`,void 0),q([I(),U(),Jo(),K(`design:type`,String)],jl.prototype,`value`,void 0),q([I(),U(),Jo(),K(`design:type`,String)],jl.prototype,`originalValue`,void 0),q([I(),H(),K(`design:type`,Number)],jl.prototype,`originalPageIndex`,void 0),q([F(),H(),K(`design:type`,Number)],jl.prototype,`pageIndex`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],jl.prototype,`lightIndex`,void 0),q([F(),H(),K(`design:type`,Number)],jl.prototype,`containerType`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],jl.prototype,`fieldRect`,void 0),q([I(),L(),Y(()=>Rs),K(`design:type`,Rs===void 0?Object:Rs)],jl.prototype,`rfidOrigin`,void 0);var Ml=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Images:r}=e;r.fieldList.forEach(e=>{if(!t){n.push(e);return}t.includes(e.fieldType)&&n.push(e)})}),n}}};q([F(),U(),K(`design:type`,String)],Ml.prototype,`fieldName`,void 0),q([F(),V(lr),K(`design:type`,lr===void 0?Object:lr)],Ml.prototype,`fieldType`,void 0),q([F(),L({each:!0}),Y(()=>jl),W(),K(`design:type`,Array)],Ml.prototype,`valueList`,void 0),q([I(),H(),As(({obj:e})=>e.valueList.length,{toClassOnly:!0}),K(`design:type`,Number)],Ml.prototype,`valueCount`,void 0);var Nl=class{};q([F(),B(),K(`design:type`,Number)],Nl.prototype,`containerType`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Nl.prototype,`source`,void 0);var Pl=class{};q([I(),H(),As(({obj:e})=>e.fieldList.length,{toClassOnly:!0}),K(`design:type`,Number)],Pl.prototype,`fieldCount`,void 0),q([I(),H(),As(({obj:e})=>e.availableSourceList.length,{toClassOnly:!0}),K(`design:type`,Number)],Pl.prototype,`availableSourceCount`,void 0),q([F(),L({each:!0}),Y(()=>Nl),W(),K(`design:type`,Array)],Pl.prototype,`availableSourceList`,void 0),q([F(),L({each:!0}),Y(()=>Ml),W(),K(`design:type`,Array)],Pl.prototype,`fieldList`,void 0);var Fl,Il=[M.IMAGES],Ll=class extends Gs{static{Fl=this}static{this.fromPlain=e=>X(Fl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Il.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Fl.fromPlain(e));if(t.length)throw new NS(`ImagesResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Pl),K(`design:type`,Pl===void 0?Object:Pl)],Ll.prototype,`Images`,void 0),q([F(),V(M),R(Il),K(`design:type`,Object)],Ll.prototype,`result_type`,void 0),Ll=Fl=q([J()],Ll);var Rl,zl=[M.LICENSE],Bl=class extends Gs{static{Rl=this}static{this.fromPlain=e=>X(Rl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>zl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Rl.fromPlain(e));if(t.length)throw new NS(`LicenseContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),Jo(),K(`design:type`,String)],Bl.prototype,`License`,void 0),q([F(),V(M),R(zl),K(`design:type`,Object)],Bl.prototype,`result_type`,void 0),Bl=Rl=q([J()],Bl);var Vl=class{static{this.getMRZDataVerificationResult=e=>e.Matrix[0]}static{this.getRFIDDataVerificationResult=e=>e.Matrix[1]}static{this.getVisualDataVerificationResult=e=>e.Matrix[2]}static{this.getBarcodeDataVerificationResult=e=>e.Matrix[3]}static{this.getMRZAndRFIDDataComparingResult=e=>e.Matrix[4]}static{this.getMRZAndVisualDataComparingResult=e=>e.Matrix[5]}static{this.getMRZAndBarcodeDataComparingResult=e=>e.Matrix[6]}static{this.getVisualAndRFIDDataComparingResult=e=>e.Matrix[7]}static{this.getVisualAndBarcodeDataComparingResult=e=>e.Matrix[8]}static{this.getRFIDAndBarcodeDataComparingResult=e=>e.Matrix[9]}};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],Vl.prototype,`wFieldType`,void 0),q([I(),V(pr),K(`design:type`,pr===void 0?Object:pr)],Vl.prototype,`wLCID`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_MRZ`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_Visual`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_Barcode`,void 0),q([I(),U(),K(`design:type`,String)],Vl.prototype,`Field_RFID`,void 0),q([F(),V(Hr,{each:!0}),W(),hs(10),vs(10),K(`design:type`,Array)],Vl.prototype,`Matrix`,void 0);var Hl=class{};q([F(),H(),K(`design:type`,Number)],Hl.prototype,`Count`,void 0),q([F(),W(),L({each:!0}),Y(()=>Vl),K(`design:type`,Array)],Hl.prototype,`pFieldMaps`,void 0),q([I(),U(),K(`design:type`,String)],Hl.prototype,`pDateFormat`,void 0);var Ul,Wl=[M.LEXICAL_ANALYSIS],Gl=class extends Gs{static{Ul=this}static{this.fromPlain=e=>X(Ul,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Wl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Ul.fromPlain(e));if(t.length)throw new NS(`ListVerifiedFieldContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Hl),K(`design:type`,Hl===void 0?Object:Hl)],Gl.prototype,`ListVerifiedFields`,void 0),q([F(),V(M),R(Wl),K(`design:type`,Object)],Gl.prototype,`result_type`,void 0),Gl=Ul=q([J()],Gl);var Kl,ql=[M.DOCUMENT_TYPE],Jl=class extends Gs{static{Kl=this}static{this.fromPlain=e=>X(Kl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>ql.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Kl.fromPlain(e));if(t.length)throw new NS(`ChosenDocumentTypeContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Bs),K(`design:type`,Bs===void 0?Object:Bs)],Jl.prototype,`OneCandidate`,void 0),q([I(),U(),K(`design:type`,String)],Jl.prototype,`XML_buffer`,void 0),q([F(),V(M),R(ql),K(`design:type`,Object)],Jl.prototype,`result_type`,void 0),Jl=Kl=q([J()],Jl);var Yl,Xl=[M.DOCUMENT_IMAGE,M.RAW_UNCROPPED_IMAGE],Zl=class extends Gs{static{Yl=this}static{this.fromPlain=e=>X(Yl,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Xl.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Yl.fromPlain(e));if(t.length)throw new NS(`RawImageContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],Zl.prototype,`RawImageContainer`,void 0),q([F(),V(M),R(Xl),K(`design:type`,Object)],Zl.prototype,`result_type`,void 0),Zl=Yl=q([J()],Zl);var Ql=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Ql.prototype,`sourceLeft`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Ql.prototype,`sourceRight`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Ql.prototype,`status`,void 0);var $l=class{};q([F(),H(),K(`design:type`,Number)],$l.prototype,`code`,void 0),q([F(),H(),K(`design:type`,Number)],$l.prototype,`probability`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],$l.prototype,`rect`,void 0);var eu=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],eu.prototype,`source`,void 0),q([U(),F(),As(({value:e})=>e?String(e):``),K(`design:type`,String)],eu.prototype,`value`,void 0),q([I(),U(),K(`design:type`,String)],eu.prototype,`originalValue`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],eu.prototype,`originalValidity`,void 0),q([I(),L({each:!0}),Y(()=>$l),W(),K(`design:type`,Array)],eu.prototype,`originalSymbols`,void 0),q([F(),H(),K(`design:type`,Number)],eu.prototype,`pageIndex`,void 0),q([F(),B(),K(`design:type`,Number)],eu.prototype,`probability`,void 0),q([I(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],eu.prototype,`fieldRect`,void 0),q([I(),L(),Y(()=>Rs),K(`design:type`,Rs===void 0?Object:Rs)],eu.prototype,`rfidOrigin`,void 0),q([I(),H(),K(`design:type`,Number)],eu.prototype,`containerType`,void 0);var tu=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],tu.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],tu.prototype,`status`,void 0);var nu=class{static{this.fromContainers=(e,t)=>{let n=[];return e.forEach(e=>{let{Text:r}=e;r.fieldList.forEach(e=>{e.fieldType===t&&n.push(e)})}),n}}};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],nu.prototype,`fieldType`,void 0),q([F(),U(),K(`design:type`,String)],nu.prototype,`fieldName`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],nu.prototype,`lcid`,void 0),q([I(),U(),K(`design:type`,String)],nu.prototype,`lcidName`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],nu.prototype,`status`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],nu.prototype,`validityStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],nu.prototype,`comparisonStatus`,void 0),q([F(),U(),As(({value:e})=>e?String(e):``),K(`design:type`,String)],nu.prototype,`value`,void 0),q([F(),L({each:!0}),Y(()=>eu),W(),K(`design:type`,Array)],nu.prototype,`valueList`,void 0),q([F(),L({each:!0}),Y(()=>tu),W(),K(`design:type`,Array)],nu.prototype,`validityList`,void 0),q([F(),L({each:!0}),Y(()=>Ql),W(),K(`design:type`,Array)],nu.prototype,`comparisonList`,void 0);var ru=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],ru.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],ru.prototype,`validityStatus`,void 0),q([I(),H(),K(`design:type`,Number)],ru.prototype,`containerType`,void 0);var iu=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],iu.prototype,`status`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],iu.prototype,`validityStatus`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],iu.prototype,`comparisonStatus`,void 0),q([F(),U(),K(`design:type`,String)],iu.prototype,`dateFormat`,void 0),q([F(),L({each:!0}),Y(()=>nu),W(),K(`design:type`,Array)],iu.prototype,`fieldList`,void 0),q([F(),L({each:!0}),Y(()=>ru),W(),K(`design:type`,Array)],iu.prototype,`availableSourceList`,void 0);var au,ou=[M.TEXT],su=class extends Gs{static{au=this}static{this.fromPlain=e=>X(au,e,{exposeUnsetFields:!1})}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>ou.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(au.fromPlain(e));if(t.length)throw new NS(`TextResultContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>iu),K(`design:type`,iu===void 0?Object:iu)],su.prototype,`Text`,void 0),q([F(),V(M),R(ou),K(`design:type`,Object)],su.prototype,`result_type`,void 0),su=au=q([J()],su);var cu=class extends _l{};q([F(),H(),K(`design:type`,Number)],cu.prototype,`OriginDG`,void 0),q([I(),H(),K(`design:type`,Number)],cu.prototype,`OriginDGTag`,void 0),q([F(),H(),K(`design:type`,Number)],cu.prototype,`OriginTagEntry`,void 0),q([I(),H(),K(`design:type`,Number)],cu.prototype,`OriginEntryView`,void 0);var lu=class{};q([F(),H(),K(`design:type`,Number)],lu.prototype,`nFields`,void 0),q([F(),L(),Y(()=>cu),K(`design:type`,Array)],lu.prototype,`pArrayFields`,void 0);var uu,du=[M.RFID_TEXT],fu=class extends Gs{static{uu=this}static{this.fromPlain=e=>X(uu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>du.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(uu.fromPlain(e));if(t.length)throw new NS(`RFIDTextDataContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>lu),K(`design:type`,lu===void 0?Object:lu)],fu.prototype,`DocVisualExtendedInfo`,void 0),q([F(),V(M),R(du),K(`design:type`,Object)],fu.prototype,`result_type`,void 0),fu=uu=q([J()],fu);var pu,mu=[M.MRZ_POSITION],hu=class extends Gs{static{pu=this}static{this.fromPlain=e=>X(pu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>mu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(pu.fromPlain(e));if(t.length)throw new NS(`MRZPositionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Is),K(`design:type`,Is===void 0?Object:Is)],hu.prototype,`MrzPosition`,void 0),q([F(),V(M),R(mu),K(`design:type`,Object)],hu.prototype,`result_type`,void 0),hu=pu=q([J()],hu);var gu=class{};q([I(),H(),K(`design:type`,Number)],gu.prototype,`Left`,void 0),q([I(),H(),K(`design:type`,Number)],gu.prototype,`Top`,void 0),q([I(),H(),K(`design:type`,Number)],gu.prototype,`Right`,void 0),q([I(),H(),K(`design:type`,Number)],gu.prototype,`Bottom`,void 0);var _u=class{};q([F(),H(),K(`design:type`,Number)],_u.prototype,`FieldLength`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`FieldPos`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`FieldType`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`TEST_RESULT`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`ValidCheckSum`,void 0),q([F(),H(),K(`design:type`,Number)],_u.prototype,`reserved`,void 0);var vu=class{};q([F(),H(),K(`design:type`,Number)],vu.prototype,`ALIGNMENT_NEAREST_SYMBOLS`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`CONTRAST_PRINT`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`CONTRAST_SYMBOL`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`CharSymbol`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`EDGE`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`EMPTINESS`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`STAIN`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SYMBOLS_INTERVAL`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SYMBOL_PARAM`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SYMBOL_SIZE`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorAlignWithNext`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorAlignWithPrev`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorIntervWithNext`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorIntervWithPrev`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorSymbolHeight`,void 0),q([F(),H(),K(`design:type`,Number)],vu.prototype,`SizeErrorSymbolWidth`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],vu.prototype,`SymbolBounds`,void 0);var yu=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`ALIGNMENT_SYMBOLS_IN_STRING`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`CHECK_SUMS`,void 0),q([F(),L(),Y(()=>gu),K(`design:type`,gu===void 0?Object:gu)],yu.prototype,`ErrorPOSITION`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`FieldCount`,void 0),q([F(),L({each:!0}),W(),Y(()=>_u),K(`design:type`,Array)],yu.prototype,`Fields`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRINGS_DISTANCE`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRINGS_INTERVAL`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRING_FILLING`,void 0),q([I(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`STRINGS_POSITION`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yu.prototype,`SYMBOLS_PARAM`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SizeError_ALIGNMENT`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SizeError_DISTANCE`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SizeError_INTERVAL`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`StringAngle`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],yu.prototype,`StringBorders`,void 0),q([F(),H(),K(`design:type`,Number)],yu.prototype,`SymbolsCount`,void 0),q([F(),L({each:!0}),W(),Y(()=>vu),K(`design:type`,Array)],yu.prototype,`SymbolsEstimations`,void 0);var bu=class{};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`CHECK_SUMS`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`CONTRAST_PRINT`,void 0),q([F(),H(),K(`design:type`,Number)],bu.prototype,`DOC_FORMAT`,void 0),q([F(),H(),K(`design:type`,Number)],bu.prototype,`MRZ_FORMAT`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`PRINT_POSITION`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`STAIN_MRZ`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`SYMBOLS_PARAM`,void 0),q([F(),H(),K(`design:type`,Number)],bu.prototype,`StrCount`,void 0),q([F(),L(),Y(()=>yu),K(`design:type`,Array)],bu.prototype,`Strings`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bu.prototype,`TEXTUAL_FILLING`,void 0);var xu,Su=[M.MRZ_TEST_QUALITY],Cu=class extends Gs{static{xu=this}static{this.fromPlain=e=>X(xu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Su.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(xu.fromPlain(e));if(t.length)throw new NS(`MRZTestQualityContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>bu),K(`design:type`,bu===void 0?Object:bu)],Cu.prototype,`MRZTestQuality`,void 0),q([F(),V(M),R(Su),K(`design:type`,Object)],Cu.prototype,`result_type`,void 0),Cu=xu=q([J()],Cu);var wu=class{};q([I(),V(cr),K(`design:type`,cr===void 0?Object:cr)],wu.prototype,`RecResult`,void 0),q([I(),L({each:!0}),Y(()=>Bs),W(),K(`design:type`,Array)],wu.prototype,`Candidates`,void 0);var Tu,Eu=[M.DOCUMENT_TYPE_CANDIDATES],Du=class extends Gs{static{Tu=this}static{this.fromPlain=e=>X(Tu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Eu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Tu.fromPlain(e));if(t.length)throw new NS(`DocumentTypesCandidatesContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),L(),Y(()=>wu),K(`design:type`,wu===void 0?Object:wu)],Du.prototype,`CandidatesList`,void 0),q([F(),V(M),R(Eu),K(`design:type`,Object)],Du.prototype,`result_type`,void 0),Du=Tu=q([J()],Du);var Ou=class{};q([F(),W(),H({each:!0}),K(`design:type`,Array)],Ou.prototype,`boundingRect`,void 0);var ku=class{};q([F(),H(),K(`design:type`,Number)],ku.prototype,`length`,void 0),q([F(),H(),K(`design:type`,Number)],ku.prototype,`maxLength`,void 0),q([F(),L({each:!0}),Y(()=>Ou),W(),K(`design:type`,Array)],ku.prototype,`symbols`,void 0);var Au=class{};q([F(),H(),K(`design:type`,Number)],Au.prototype,`MRZFormat`,void 0),q([F(),H(),K(`design:type`,Number)],Au.prototype,`MRZRowsNum`,void 0),q([F(),W(),H({each:!0}),K(`design:type`,Array)],Au.prototype,`boundingQuadrangle`,void 0);var ju,Mu=[M.MRZ_DETECTOR],Nu=class extends Gs{static{ju=this}static{this.fromPlain=e=>X(ju,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Mu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ju.fromPlain(e));if(t.length)throw new NS(`MRZDetectorContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Au),K(`design:type`,Au===void 0?Object:Au)],Nu.prototype,`ResultMRZDetector`,void 0),q([F(),V(M),R(Mu),K(`design:type`,Object)],Nu.prototype,`result_type`,void 0),Nu=ju=q([J()],Nu);var Pu=class{};q([F(),H(),K(`design:type`,Number)],Pu.prototype,`CoincidenceToPhotoArea`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Pu.prototype,`FaceRect`,void 0),q([F(),L(),Y(()=>Z),K(`design:type`,Z===void 0?Object:Z)],Pu.prototype,`FieldRect`,void 0),q([F(),H(),K(`design:type`,Number)],Pu.prototype,`GraphFieldNumber`,void 0),q([F(),L({each:!0}),Y(()=>ys),W(),K(`design:type`,Array)],Pu.prototype,`Landmarks`,void 0),q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Pu.prototype,`LightType`,void 0),q([F(),H(),K(`design:type`,Number)],Pu.prototype,`Orientation`,void 0),q([F(),H(),K(`design:type`,Number)],Pu.prototype,`Probability`,void 0);var Fu=class{};q([F(),H(),K(`design:type`,Number)],Fu.prototype,`Count`,void 0),q([F(),H(),K(`design:type`,Number)],Fu.prototype,`CountFalseDetection`,void 0),q([F(),L({each:!0}),Y(()=>Pu),W(),K(`design:type`,Array)],Fu.prototype,`Res`,void 0),q([I(),H(),K(`design:type`,Number)],Fu.prototype,`Reserved1`,void 0),q([I(),H(),K(`design:type`,Number)],Fu.prototype,`Reserved2`,void 0);var Iu,Lu=[M.FACE_DETECTION],Ru=class extends Gs{static{Iu=this}static{this.fromPlain=e=>X(Iu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Lu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Iu.fromPlain(e));if(t.length)throw new NS(`FaceDetectionContainer validation error: the data received does not match model structure!`,t);return!0}}};q([I(),L(),Y(()=>Fu),K(`design:type`,Fu===void 0?Object:Fu)],Ru.prototype,`FaceDetection`,void 0),q([F(),V(M),R(Lu),K(`design:type`,Object)],Ru.prototype,`result_type`,void 0),Ru=Iu=q([J()],Ru);var zu=class{};q([F(),U(),K(`design:type`,String)],zu.prototype,`Data`,void 0),q([F(),H(),K(`design:type`,Number)],zu.prototype,`Length`,void 0);var Bu=class{};q([F(),H(),K(`design:type`,Number)],Bu.prototype,`FieldType`,void 0),q([F(),L(),Y(()=>zu),K(`design:type`,zu===void 0?Object:zu)],Bu.prototype,`File_Image`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`GraphicsType`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginDG`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginDGTag`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginEntryView`,void 0),q([F(),H(),K(`design:type`,Number)],Bu.prototype,`OriginTagEntry`,void 0);var Vu=class{};q([F(),L({each:!0}),Y(()=>Bu),W(),K(`design:type`,Array)],Vu.prototype,`RFID_ORIGINAL_GRAPH_DATA`,void 0);var Hu,Uu=[M.RFID_ORIGINAL_GRAPHICS],Wu=class extends Gs{static{Hu=this}static{this.fromPlain=e=>X(Hu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Uu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Hu.fromPlain(e));if(t.length)throw new NS(`RFIDGraphicsInfoContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Vu),K(`design:type`,Vu===void 0?Object:Vu)],Wu.prototype,`TOriginalRFIDGraphicsInfo`,void 0),q([F(),V(M),R(Uu),K(`design:type`,Object)],Wu.prototype,`result_type`,void 0),Wu=Hu=q([J()],Wu);var Gu,Ku=[M.DTC_VC],qu=class extends Gs{static{Gu=this}static{this.fromPlain=e=>X(Gu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Ku.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Gu.fromPlain(e));if(t.length)throw new NS(`ByteArrayContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),K(`design:type`,String)],qu.prototype,`ByteArray`,void 0),q([F(),V(M),R(Ku),K(`design:type`,Object)],qu.prototype,`result_type`,void 0),qu=Gu=q([J()],qu);var Ju=class{};q([F(),B(),K(`design:type`,Number)],Ju.prototype,`Type`,void 0),q([F(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],Ju.prototype,`Data`,void 0);var Yu=class{};q([I(),U(),K(`design:type`,String)],Yu.prototype,`Certificate`,void 0),q([I(),W(),L({each:!0}),Y(()=>Kc),K(`design:type`,Array)],Yu.prototype,`CertificateChain`,void 0),q([I(),W(),L({each:!0}),Y(()=>Ju),K(`design:type`,Array)],Yu.prototype,`DocFeatures`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`DocIssueDate`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`DocType`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`FeatureRef`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`IssuingCountry`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Yu.prototype,`Notifications`,void 0),q([I(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],Yu.prototype,`Signature`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`SignatureDate`,void 0),q([I(),U(),K(`design:type`,String)],Yu.prototype,`Signer`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],Yu.prototype,`Version`,void 0);var Xu,Zu=[M.VDS],Qu=class extends Gs{static{Xu=this}static{this.fromPlain=e=>X(Xu,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>Zu.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(Xu.fromPlain(e));if(t.length)throw new NS(`VDSContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>Yu),K(`design:type`,Yu===void 0?Object:Yu)],Qu.prototype,`dftVDS`,void 0),q([F(),V(M),R(Zu),K(`design:type`,Object)],Qu.prototype,`result_type`,void 0),Qu=Xu=q([J()],Qu);var $u=class{};q([I(),U(),K(`design:type`,String)],$u.prototype,`dob`,void 0),q([I(),U(),K(`design:type`,String)],$u.prototype,`i`,void 0),q([I(),U(),K(`design:type`,String)],$u.prototype,`n`,void 0),q([I(),U(),K(`design:type`,String)],$u.prototype,`sex`,void 0);var ed=class{};q([I(),U(),K(`design:type`,String)],ed.prototype,`adm`,void 0),q([I(),U(),K(`design:type`,String)],ed.prototype,`ctr`,void 0),q([I(),U(),K(`design:type`,String)],ed.prototype,`dvc`,void 0),q([I(),U(),K(`design:type`,String)],ed.prototype,`lot`,void 0),q([I(),B(),K(`design:type`,Number)],ed.prototype,`seq`,void 0);var td=class{};q([I(),U(),K(`design:type`,String)],td.prototype,`des`,void 0),q([I(),U(),K(`design:type`,String)],td.prototype,`dis`,void 0),q([I(),U(),K(`design:type`,String)],td.prototype,`nam`,void 0),q([I(),W(),L({each:!0}),Y(()=>ed),K(`design:type`,typeof Array>`u`?Object:Array)],td.prototype,`vd`,void 0);var nd=class{};q([I(),L(),Y(()=>$u),K(`design:type`,$u===void 0?Object:$u)],nd.prototype,`pid`,void 0),q([I(),U(),K(`design:type`,String)],nd.prototype,`uvci`,void 0),q([I(),W(),L({each:!0}),Y(()=>td),K(`design:type`,typeof Array>`u`?Object:Array)],nd.prototype,`ve`,void 0);var rd=class{};q([I(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],rd.prototype,`Certificate`,void 0),q([I(),W(),L({each:!0}),Y(()=>Kc),K(`design:type`,Array)],rd.prototype,`CertificateChain`,void 0),q([I(),U(),K(`design:type`,String)],rd.prototype,`IssuingCountry`,void 0),q([I(),L(),Y(()=>nd),K(`design:type`,nd===void 0?Object:nd)],rd.prototype,`Message`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],rd.prototype,`Notifications`,void 0),q([I(),L(),Y(()=>Vs),K(`design:type`,Vs===void 0?Object:Vs)],rd.prototype,`Signature`,void 0),q([I(),U(),K(`design:type`,String)],rd.prototype,`SignatureAlg`,void 0),q([I(),U(),K(`design:type`,String)],rd.prototype,`Type`,void 0),q([I(),B(),K(`design:type`,Number)],rd.prototype,`Version`,void 0);var id,ad=[M.VDS_NC],od=class extends Gs{static{id=this}static{this.fromPlain=e=>X(id,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>ad.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(id.fromPlain(e));if(t.length)throw new NS(`VDSNCContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),L(),Y(()=>rd),K(`design:type`,rd===void 0?Object:rd)],od.prototype,`dftVDS_NC`,void 0),q([F(),V(M),R(ad),K(`design:type`,Object)],od.prototype,`result_type`,void 0),od=id=q([J()],od);var sd,cd=[M.BSI_XML_V2],ld=class extends Gs{static{sd=this}static{this.fromPlain=e=>X(sd,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>cd.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(sd.fromPlain(e));if(t.length)throw new NS(`BSIv2Container validation error: the data received does not match model structure!`,t);return!0}}};q([F(),U(),K(`design:type`,String)],ld.prototype,`XML_buffer`,void 0),q([F(),V(M),R(cd),K(`design:type`,Object)],ld.prototype,`result_type`,void 0),ld=sd=q([J()],ld);var ud,dd=[M.MDL_PARSED_RESPONSE],fd=class extends Gs{static{ud=this}static{this.fromPlain=e=>X(ud,e)}static fromProcessResponse(e,t=!1){try{let{ContainerList:n}=e,r=n.List.filter(e=>dd.includes(e.result_type));return t?r.map(e=>Ms(e,{exposeUnsetFields:!1})):r}catch{return[]}}static{this.validate=e=>{let t=G(ud.fromPlain(e));if(t.length)throw new NS(`MDLContainer validation error: the data received does not match model structure!`,t);return!0}}};q([F(),K(`design:type`,typeof Record>`u`?Object:Record)],fd.prototype,`MDLParsedResponse`,void 0),q([F(),V(M),R(dd),K(`design:type`,Object)],fd.prototype,`result_type`,void 0),fd=ud=q([J()],fd);var pd=e=>{let t=[];if(!Array.isArray(e))return t;for(let n of e){if(!xv(n)||!(`result_type`in n))continue;let{result_type:e}=n;switch(e){case M.MRZ_TEST_QUALITY:t.push(Cu.fromPlain(n));break;case M.DOCUMENT_TYPE_CANDIDATES:t.push(Du.fromPlain(n));break;case M.AUTHENTICITY:case M.PORTRAIT_COMPARISON:case M.FINGERPRINT_COMPARISON:t.push(bc.fromPlain(n));break;case M.BARCODE_POSITION:t.push(Ec.fromPlain(n));break;case M.DOCUMENT_POSITION:t.push(Cc.fromPlain(n));break;case M.MRZ_DETECTOR:t.push(Nu.fromPlain(n));break;case M.FACE_DETECTION:t.push(Ru.fromPlain(n));break;case M.MRZ_POSITION:t.push(hu.fromPlain(n));break;case M.BARCODES:t.push(Nc.fromPlain(n));break;case M.RFID_RAW_DATA:case M.RFID_BINARY_DATA:t.push(cl.fromPlain(n));break;case M.DTC_VC:t.push(qu.fromPlain(n));break;case M.RFID_ORIGINAL_GRAPHICS:t.push(Wu.fromPlain(n));break;case M.VISUAL_GRAPHICS:case M.BARCODE_GRAPHICS:case M.LIVE_PORTRAIT:case M.EXT_PORTRAIT:case M.FINGERPRINTS:case M.RFID_GRAPHICS:t.push(pl.fromPlain(n));break;case M.VISUAL_TEXT:case M.MRZ_TEXT:case M.BARCODE_TEXT:case M.MAGNETIC_STRIPE_TEXT_DATA:t.push(Sl.fromPlain(n));break;case M.RFID_TEXT:t.push(fu.fromPlain(n));break;case M.ENCRYPTED_RCL:t.push(Tl.fromPlain(n));break;case M.IMAGE_QUALITY:t.push(Al.fromPlain(n));break;case M.IMAGES:t.push(Ll.fromPlain(n));break;case M.LICENSE:t.push(Bl.fromPlain(n));break;case M.LEXICAL_ANALYSIS:t.push(Gl.fromPlain(n));break;case M.DOCUMENT_TYPE:t.push(Jl.fromPlain(n));break;case M.DOCUMENT_IMAGE:case M.RAW_UNCROPPED_IMAGE:t.push(Zl.fromPlain(n));break;case M.STATUS:t.push(rl.fromPlain(n));break;case M.TEXT:t.push(su.fromPlain(n));break;case M.VDS_NC:t.push(od.fromPlain(n));break;case M.VDS:t.push(Qu.fromPlain(n));break;case M.BSI_XML_V2:t.push(ld.fromPlain(n));break;case M.MDL_PARSED_RESPONSE:t.push(fd.fromPlain(n));break}}return t},md=class{};q([I(),H(),K(`design:type`,Number)],md.prototype,`Count`,void 0),q([F(),W(),L({each:!0}),As(({obj:e})=>pd(e.List),{toClassOnly:!0}),K(`design:type`,Array)],md.prototype,`List`,void 0);var hd=class{};q([I(),B(),K(`design:type`,Number)],hd.prototype,`limit`,void 0),q([I(),B(),K(`design:type`,Number)],hd.prototype,`threshold`,void 0),q([I(),B({},{each:!0}),K(`design:type`,Array)],hd.prototype,`group_ids`,void 0);var gd=class{};q([I(),U(),K(`design:type`,String)],gd.prototype,`url`,void 0),q([I(),U(),K(`design:type`,String)],gd.prototype,`mode`,void 0),q([I(),L(),Y(()=>hd),K(`design:type`,hd===void 0?Object:hd)],gd.prototype,`search`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`threshold`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`serviceTimeout`,void 0),q([I(),U(),K(`design:type`,String)],gd.prototype,`proxy`,void 0),q([I(),U(),K(`design:type`,String)],gd.prototype,`proxy_userpwd`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`proxy_type`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`childAgeThreshold`,void 0),q([I(),B(),K(`design:type`,Number)],gd.prototype,`childDocValidityYears`,void 0);var _d=class{};q([I(),B(),K(`design:type`,Number)],_d.prototype,`brightnessThreshold`,void 0),q([I(),H(),K(`design:type`,Number)],_d.prototype,`dpiThreshold`,void 0),q([I(),H(),K(`design:type`,Number)],_d.prototype,`angleThreshold`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`focusCheck`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`glaresCheck`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`colornessCheck`,void 0),q([z(),I(),K(`design:type`,Boolean)],_d.prototype,`moireCheck`,void 0),q([I(),B(),K(`design:type`,Number)],_d.prototype,`documentPositionIndent`,void 0),q([I(),W(),V(fr,{each:!0}),K(`design:type`,Array)],_d.prototype,`expectedPass`,void 0);var vd=class{};q([I(),H({each:!0}),W(),K(`design:type`,Array)],vd.prototype,`docID`,void 0),q([I(),H(),K(`design:type`,Number)],vd.prototype,`excludeAuthChecks`,void 0);var yd=class{};q([I(),V(Cr,{each:!0}),W(),K(`design:type`,Array)],yd.prototype,`paIgnoreNotificationCodes`,void 0);var bd=class{};q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkOVI`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkMLI`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkHolo`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkED`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkBlackAndWhiteCopy`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkDynaprint`,void 0),q([I(),z(),K(`design:type`,Boolean)],bd.prototype,`checkGeometry`,void 0);var xd=class{};q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkLiveness`,void 0),q([I(),L(),Y(()=>bd),K(`design:type`,bd===void 0?Object:bd)],xd.prototype,`livenessParams`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkUVLuminiscence`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkIRB900`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkImagePatterns`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkFibers`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkExtMRZ`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkExtOCR`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkAxial`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkBarcodeFormat`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkIRVisibility`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkIPI`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkPhotoEmbedding`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkPhotoComparison`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkLetterScreen`,void 0),q([I(),z(),K(`design:type`,Boolean)],xd.prototype,`checkSecurityText`,void 0);var Sd=e=>(t,n)=>{Mo({name:`IsStringObjectRecord`,target:t.constructor,propertyName:String(n),constraints:[],options:{message:`${String(n)} must be a Record<string, object>`,...e},validator:{validate(e,t){return xv(e)?Object.keys(e).length===0?!0:Object.keys(e).every(t=>!(typeof t!=`string`||!xv(e[t]))):!1}}})},$=class{};q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateDTCVC`,void 0),q([I(),V(pr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`checkLiveness`,void 0),q([I(),V(pr,{each:!0}),K(`design:type`,Array)],$.prototype,`lcidIgnoreFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`oneShotIdentification`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`useFaceApi`,void 0),q([I(),L(),Y(()=>gd),K(`design:type`,gd===void 0?Object:gd)],$.prototype,`faceApi`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`doDetectCan`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxHeight`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],$.prototype,`imageOutputMaxWidth`,void 0),q([F(),V(Rr),K(`design:type`,Rr===void 0?Object:Rr)],$.prototype,`scenario`,void 0),q([I(),V(M,{each:!0}),K(`design:type`,Array)],$.prototype,`resultTypeOutput`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`doublePageSpread`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateDoublePageSpreadImage`,void 0),q([I(),V(P,{each:!0}),K(`design:type`,Array)],$.prototype,`fieldTypesFilter`,void 0),q([I(),U(),K(`design:type`,String)],$.prototype,`dateFormat`,void 0),q([I(),V(br),K(`design:type`,br===void 0?Object:br)],$.prototype,`measureSystem`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`imageDpiOutMax`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`alreadyCropped`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],$.prototype,`customParams`,void 0),q([I(),L({each:!0}),Y(()=>vd),K(`design:type`,Array)],$.prototype,`config`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`log`,void 0),q([I(),V(hr),K(`design:type`,hr===void 0?Object:hr)],$.prototype,`logLevel`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`forceDocID`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`matchTextFieldMask`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`fastDocDetect`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`updateOCRValidityByGlare`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`checkRequiredTextFields`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`returnCroppedBarcode`,void 0),q([I(),L(),K(`design:type`,_d===void 0?Object:_d)],$.prototype,`imageQa`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictImageQuality`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`respectImageQuality`,void 0),q([I(),V(or),K(`design:type`,or===void 0?Object:or)],$.prototype,`forceDocFormat`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`noGraphics`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`depersonalizeLog`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`multiDocOnImage`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`shiftExpiryDate`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],$.prototype,`minimalHolderAge`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`returnUncroppedImage`,void 0),q([I(),V(yr,{each:!0}),K(`design:type`,Array)],$.prototype,`mrzFormatsFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`forceReadMrzBeforeLocate`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`parseBarcodes`,void 0),q([I(),V(Vr),K(`design:type`,Vr===void 0?Object:Vr)],$.prototype,`convertCase`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`splitNames`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`disablePerforationOCR`,void 0),q([I(),V(sr,{each:!0}),K(`design:type`,Array)],$.prototype,`documentGroupFilter`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`processAuth`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`deviceId`,void 0),q([I(),H(),K(`design:type`,Number)],$.prototype,`deviceType`,void 0),q([I(),U(),K(`design:type`,String)],$.prototype,`deviceTypeHex`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`ignoreDeviceIdFromImage`,void 0),q([I(),H({each:!0}),K(`design:type`,Array)],$.prototype,`documentIdList`,void 0),q([I(),L(),Y(()=>yd),K(`design:type`,yd===void 0?Object:yd)],$.prototype,`rfid`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`checkAuth`,void 0),q([I(),L(),Y(()=>xd),K(`design:type`,xd===void 0?Object:xd)],$.prototype,`authParams`,void 0),q([I(),V(xr),K(`design:type`,xr===void 0?Object:xr)],$.prototype,`mrzDetectMode`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateNumericCodes`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictBarcodeDigitalSignatureCheck`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`selectLongestNames`,void 0),q([I(),W(),V(dr,{each:!0}),K(`design:type`,Array)],$.prototype,`doBarcodes`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictDLCategoryExpiry`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`generateAlpha2Codes`,void 0),q([I(),B(),K(`design:type`,Number)],$.prototype,`pdfPagesLimit`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`disableAuthResolutionFilter`,void 0),q([I(),z(),K(`design:type`,Boolean)],$.prototype,`strictSecurityChecks`,void 0);var Cd=class{};q([L(),Y(()=>Ls),K(`design:type`,Ls===void 0?Object:Ls)],Cd.prototype,`ImageData`,void 0),q([V(mr),I(),K(`design:type`,mr===void 0?Object:mr)],Cd.prototype,`light`,void 0),q([H(),I(),K(`design:type`,Number)],Cd.prototype,`page_idx`,void 0);var wd=class{};q([I(),U(),Jo(),K(`design:type`,String)],wd.prototype,`license`,void 0),q([I(),U(),K(`design:type`,String)],wd.prototype,`recaptcha_token`,void 0);var Td,Ed=class{static{Td=this}static{this.fromPlain=e=>X(Td,e)}static{this.toPlain=e=>Ms(e,{excludeExtraneousValues:!0})}static{this.validate=e=>{let t=G(Td.toPlain(e));if(t.length)throw new NS(`ProcessRequest validation error: the data received does not match model structure!`,t);return!0}}};q([L(),F(),Y(()=>$),K(`design:type`,$===void 0?Object:$)],Ed.prototype,`processParam`,void 0),q([L({each:!0}),I(),Y(()=>Cd),K(`design:type`,Array)],Ed.prototype,`List`,void 0),q([U(),I(),K(`design:type`,String)],Ed.prototype,`tag`,void 0),q([U(),I(),K(`design:type`,String)],Ed.prototype,`tenant`,void 0),q([U(),I(),K(`design:type`,String)],Ed.prototype,`env`,void 0),q([I(),U(),K(`design:type`,String)],Ed.prototype,`livePortrait`,void 0),q([I(),U(),K(`design:type`,String)],Ed.prototype,`extPortrait`,void 0),q([I(),L(),Y(()=>md),K(`design:type`,md===void 0?Object:md)],Ed.prototype,`ContainerList`,void 0),q([I(),L(),Y(()=>wd),K(`design:type`,wd===void 0?Object:wd)],Ed.prototype,`systemInfo`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],Ed.prototype,`passBackObject`,void 0),q([I(),U(),K(`design:type`,String)],Ed.prototype,`dtc`,void 0),q([I(),W(),H({each:!0}),K(`design:type`,Array)],Ed.prototype,`ImageUrls`,void 0),Ed=Td=q([J()],Ed);var Dd=class{};q([I(),U(),K(`design:type`,String)],Dd.prototype,`Description`,void 0),q([I(),U(),K(`design:type`,String)],Dd.prototype,`ExportDate`,void 0),q([I(),U(),K(`design:type`,String)],Dd.prototype,`ID`,void 0),q([I(),U(),K(`design:type`,String)],Dd.prototype,`Version`,void 0);var Od=class{};q([I(),U(),K(`design:type`,String)],Od.prototype,`ComputerName`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`DateTime`,void 0),q([I(),L(),Y(()=>Dd),K(`design:type`,Dd===void 0?Object:Dd)],Od.prototype,`DocumentsDatabase`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`SystemInfo`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Tag`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`TransactionID`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`UserName`,void 0),q([I(),U(),K(`design:type`,String)],Od.prototype,`Version`,void 0);var kd=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ad=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),jd=o(((e,t)=>{var n=Ad();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Md=o(((e,t)=>{var n=jd(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Nd=o(((e,t)=>{var n=jd();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Pd=o(((e,t)=>{var n=jd();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Fd=o(((e,t)=>{var n=jd();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Id=o(((e,t)=>{var n=kd(),r=Md(),i=Nd(),a=Pd(),o=Fd();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Ld=o(((e,t)=>{var n=Id();function r(){this.__data__=new n,this.size=0}t.exports=r})),Rd=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),zd=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Bd=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Vd=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Hd=o(((e,t)=>{var n=Vd(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Ud=o(((e,t)=>{t.exports=Hd().Symbol})),Wd=o(((e,t)=>{var n=Ud(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Gd=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Kd=o(((e,t)=>{var n=Ud(),r=Wd(),i=Gd(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),qd=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Jd=o(((e,t)=>{var n=Kd(),r=qd(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Yd=o(((e,t)=>{t.exports=Hd()[`__core-js_shared__`]})),Xd=o(((e,t)=>{var n=Yd(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Zd=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Qd=o(((e,t)=>{var n=Jd(),r=Xd(),i=qd(),a=Zd(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),$d=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),ef=o(((e,t)=>{var n=Qd(),r=$d();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),tf=o(((e,t)=>{t.exports=ef()(Hd(),`Map`)})),nf=o(((e,t)=>{t.exports=ef()(Object,`create`)})),rf=o(((e,t)=>{var n=nf();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),af=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),of=o(((e,t)=>{var n=nf(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),sf=o(((e,t)=>{var n=nf(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),cf=o(((e,t)=>{var n=nf(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),lf=o(((e,t)=>{var n=rf(),r=af(),i=of(),a=sf(),o=cf();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),uf=o(((e,t)=>{var n=lf(),r=Id(),i=tf();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),df=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),ff=o(((e,t)=>{var n=df();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),pf=o(((e,t)=>{var n=ff();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),mf=o(((e,t)=>{var n=ff();function r(e){return n(this,e).get(e)}t.exports=r})),hf=o(((e,t)=>{var n=ff();function r(e){return n(this,e).has(e)}t.exports=r})),gf=o(((e,t)=>{var n=ff();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),_f=o(((e,t)=>{var n=uf(),r=pf(),i=mf(),a=hf(),o=gf();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),vf=o(((e,t)=>{var n=Id(),r=tf(),i=_f(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),yf=o(((e,t)=>{var n=Id(),r=Ld(),i=Rd(),a=zd(),o=Bd(),s=vf();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),bf=o(((e,t)=>{var n=ef();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),xf=o(((e,t)=>{var n=bf();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Sf=o(((e,t)=>{var n=xf(),r=Ad();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),Cf=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),wf=o(((e,t)=>{t.exports=Cf()()})),Tf=o(((e,t)=>{var n=Hd(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),Ef=o(((e,t)=>{t.exports=Hd().Uint8Array})),Df=o(((e,t)=>{var n=Ef();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),Of=o(((e,t)=>{var n=Df();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),kf=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),Af=o(((e,t)=>{var n=qd(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),jf=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Mf=o(((e,t)=>{t.exports=jf()(Object.getPrototypeOf,Object)})),Nf=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Pf=o(((e,t)=>{var n=Af(),r=Mf(),i=Nf();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),Ff=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),If=o(((e,t)=>{var n=Kd(),r=Ff(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Lf=o(((e,t)=>{var n=If(),r=Ff(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Rf=o(((e,t)=>{t.exports=Array.isArray})),zf=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Bf=o(((e,t)=>{var n=Jd(),r=zf();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Vf=o(((e,t)=>{var n=Bf(),r=Ff();function i(e){return r(e)&&n(e)}t.exports=i})),Hf=o(((e,t)=>{function n(){return!1}t.exports=n})),Uf=o(((e,t)=>{var n=Hd(),r=Hf(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Wf=o(((e,t)=>{var n=Kd(),r=Mf(),i=Ff(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),Gf=o(((e,t)=>{var n=Kd(),r=zf(),i=Ff(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,ee=`[object Uint16Array]`,te=`[object Uint32Array]`,ne={};ne[b]=ne[x]=ne[S]=ne[C]=ne[w]=ne[T]=ne[E]=ne[ee]=ne[te]=!0,ne[a]=ne[o]=ne[v]=ne[s]=ne[y]=ne[c]=ne[l]=ne[u]=ne[d]=ne[f]=ne[p]=ne[m]=ne[h]=ne[g]=ne[_]=!1;function re(e){return i(e)&&r(e.length)&&!!ne[n(e)]}t.exports=re})),Kf=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),qf=o(((e,t)=>{var n=Vd(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Jf=o(((e,t)=>{var n=Gf(),r=Kf(),i=qf(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Yf=o(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),Xf=o(((e,t)=>{var n=xf(),r=Ad(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),Zf=o(((e,t)=>{var n=Xf(),r=xf();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),Qf=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),$f=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),ep=o(((e,t)=>{var n=Qf(),r=Lf(),i=Rf(),a=Uf(),o=$f(),s=Jf(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),tp=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),np=o(((e,t)=>{var n=qd(),r=Nf(),i=tp(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),rp=o(((e,t)=>{var n=ep(),r=np(),i=Bf();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),ip=o(((e,t)=>{var n=Zf(),r=rp();function i(e){return n(e,r(e))}t.exports=i})),ap=o(((e,t)=>{var n=Sf(),r=Tf(),i=Of(),a=kf(),o=Pf(),s=Lf(),c=Rf(),l=Vf(),u=Uf(),d=Jd(),f=qd(),p=Wf(),m=Jf(),h=Yf(),g=ip();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var ee=c(C),te=!ee&&u(C),ne=!ee&&!te&&m(C);T=C,ee||te||ne?c(S)?T=S:l(S)?T=a(S):te?(E=!1,T=r(C,!0)):ne?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),op=o(((e,t)=>{var n=yf(),r=Sf(),i=wf(),a=ap(),o=qd(),s=rp(),c=Yf();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),sp=o(((e,t)=>{function n(e){return e}t.exports=n})),cp=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),lp=o(((e,t)=>{var n=cp(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),up=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),dp=o(((e,t)=>{var n=up(),r=bf(),i=sp();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),fp=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),pp=o(((e,t)=>{var n=dp();t.exports=fp()(n)})),mp=o(((e,t)=>{var n=sp(),r=lp(),i=pp();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),hp=o(((e,t)=>{var n=Ad(),r=Bf(),i=$f(),a=qd();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),gp=o(((e,t)=>{var n=mp(),r=hp();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),_p=o(((e,t)=>{var n=op();t.exports=gp()(function(e,t,r){n(e,t,r)})})),vp=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),yp=o(((e,t)=>{var n=vp();function r(e,t){return n(t,function(t){return e[t]})}t.exports=r})),bp=o(((e,t)=>{t.exports=jf()(Object.keys,Object)})),xp=o(((e,t)=>{var n=Nf(),r=bp(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Sp=o(((e,t)=>{var n=ep(),r=xp(),i=Bf();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Cp=o(((e,t)=>{var n=yp(),r=Sp();function i(e){return e==null?[]:n(e,r(e))}t.exports=i})),wp=c(_p(),1),Tp=c(Cp(),1),Ep,Dp=class{static{Ep=this}static{this.fromPlain=e=>{let t=X(Ep,e,{exposeUnsetFields:!1});return Ep.inform(t),t}}static{this.validate=e=>{let t=G(Ep.fromPlain(e));if(t.length)throw new NS(`ProcessResponse validation error: the data received does not match model structure!`,t);return!0}}static{this.isValid=e=>{try{return Ep.validate(e),!0}catch{return!1}}}static{this.decodeLog=e=>typeof e==`string`?bv(e):!e||!e.log?``:bv(e.log)}static{this.inform=e=>{if(typeof window>`u`||typeof localStorage>`u`||!localStorage.getItem(`docreader_typings_log`)||!e||!(e instanceof Ep))return;let t=G(e),n=Ep.simplifyErrors(``,t);for(let[e,t]of Object.entries(n))console.info(`Error in ${e}: ${t.join(`, `)}`)}}static{this.simplifyErrors=(e,t)=>{let n={};for(let r=0;r<t.length;r++){let i=t[r].property,a=e?`${e}.${i}`:i;t[r].children&&t[r].children?.length&&(n=(0,wp.default)(n,Ep.simplifyErrors(a,t[r].children))),t[r].constraints&&(n[a]=(0,Tp.default)((0,wp.default)(t[r].constraints,n[a])))}return n}}};q([F(),V(Pr),K(`design:type`,Pr===void 0?Object:Pr)],Dp.prototype,`ChipPage`,void 0),q([I(),H(),K(`design:type`,Number)],Dp.prototype,`CoreLibResultCode`,void 0),q([F(),V(wr),K(`design:type`,wr===void 0?Object:wr)],Dp.prototype,`ProcessingFinished`,void 0),q([L(),Y(()=>md),K(`design:type`,md===void 0?Object:md)],Dp.prototype,`ContainerList`,void 0),q([F(),L(),Y(()=>Od),K(`design:type`,Od===void 0?Object:Od)],Dp.prototype,`TransactionInfo`,void 0),q([I(),U(),Jo(),K(`design:type`,String)],Dp.prototype,`log`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],Dp.prototype,`passBackObject`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],Dp.prototype,`morePagesAvailable`,void 0),q([I(),H(),Wo(0),K(`design:type`,Number)],Dp.prototype,`elapsedTime`,void 0),q([I(),Sd(),K(`design:type`,typeof Record>`u`?Object:Record)],Dp.prototype,`metadata`,void 0),Dp=Ep=q([J()],Dp);var Op=4,kp=0,Ap=1,jp=2;function Mp(e){let t=e.length;for(;--t>=0;)e[t]=0}var Np=0,Pp=1,Fp=2,Ip=29,Lp=256,Rp=286,zp=30,Bp=19,Vp=573,Hp=15,Up=16,Wp=7,Gp=256,Kp=16,qp=17,Jp=18,Yp=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Xp=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Zp=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Qp=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$p=512,em=Array(288*2);Mp(em);var tm=Array(zp*2);Mp(tm);var nm=Array($p);Mp(nm);var rm=Array(256);Mp(rm);var im=Array(Ip);Mp(im);var am=Array(zp);Mp(am);function om(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var sm,cm,lm;function um(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var dm=e=>e<256?nm[e]:nm[256+(e>>>7)],fm=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},pm=(e,t,n)=>{e.bi_valid>Up-n?(e.bi_buf|=t<<e.bi_valid&65535,fm(e,e.bi_buf),e.bi_buf=t>>Up-e.bi_valid,e.bi_valid+=n-Up):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},mm=(e,t,n)=>{pm(e,n[t*2],n[t*2+1])},hm=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},gm=e=>{e.bi_valid===16?(fm(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},_m=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=Hp;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Vp;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}},vm=(e,t,n)=>{let r=Array(16),i=0,a,o;for(a=1;a<=Hp;a++)i=i+n[a-1]<<1,r[a]=i;for(o=0;o<=t;o++){let t=e[o*2+1];t!==0&&(e[o*2]=hm(r[t]++,t))}},ym=()=>{let e,t,n,r,i,a=Array(16);for(n=0,r=0;r<Ip-1;r++)for(im[r]=n,e=0;e<1<<Yp[r];e++)rm[n++]=r;for(rm[n-1]=r,i=0,r=0;r<16;r++)for(am[r]=i,e=0;e<1<<Xp[r];e++)nm[i++]=r;for(i>>=7;r<zp;r++)for(am[r]=i<<7,e=0;e<1<<Xp[r]-7;e++)nm[256+ i++]=r;for(t=0;t<=Hp;t++)a[t]=0;for(e=0;e<=143;)em[e*2+1]=8,e++,a[8]++;for(;e<=255;)em[e*2+1]=9,e++,a[9]++;for(;e<=279;)em[e*2+1]=7,e++,a[7]++;for(;e<=287;)em[e*2+1]=8,e++,a[8]++;for(vm(em,287,a),e=0;e<zp;e++)tm[e*2+1]=5,tm[e*2]=hm(e,5);sm=new om(em,Yp,257,Rp,Hp),cm=new om(tm,Xp,0,zp,Hp),lm=new om([],Zp,0,Bp,Wp)},bm=e=>{let t;for(t=0;t<Rp;t++)e.dyn_ltree[t*2]=0;for(t=0;t<zp;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Bp;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Gp*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},xm=e=>{e.bi_valid>8?fm(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Sm=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},Cm=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Sm(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Sm(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},wm=(e,t,n)=>{let r,i,a=0,o,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+ a++]&255,r+=(e.pending_buf[e.sym_buf+ a++]&255)<<8,i=e.pending_buf[e.sym_buf+ a++],r===0?mm(e,i,t):(o=rm[i],mm(e,o+Lp+1,t),s=Yp[o],s!==0&&(i-=im[o],pm(e,i,s)),r--,o=dm(r),mm(e,o,n),s=Xp[o],s!==0&&(r-=am[o],pm(e,r,s)));while(a<e.sym_next);mm(e,Gp,t)},Tm=(e,t)=>{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=Vp,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)Cm(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Cm(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,Cm(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],_m(e,t),vm(n,c,e.bl_count)},Em=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[qp*2]++:e.bl_tree[Jp*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[Kp*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},Dm=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do mm(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(mm(e,qp,e.bl_tree),pm(e,s-3,3)):(mm(e,Jp,e.bl_tree),pm(e,s-11,7)):(a!==i&&(mm(e,a,e.bl_tree),s--),mm(e,Kp,e.bl_tree),pm(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},Om=e=>{let t;for(Em(e,e.dyn_ltree,e.l_desc.max_code),Em(e,e.dyn_dtree,e.d_desc.max_code),Tm(e,e.bl_desc),t=Bp-1;t>=3&&e.bl_tree[Qp[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},km=(e,t,n,r)=>{let i;for(pm(e,t-257,5),pm(e,n-1,5),pm(e,r-4,4),i=0;i<r;i++)pm(e,e.bl_tree[Qp[i]*2+1],3);Dm(e,e.dyn_ltree,t-1),Dm(e,e.dyn_dtree,n-1)},Am=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return kp;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return Ap;for(n=32;n<Lp;n++)if(e.dyn_ltree[n*2]!==0)return Ap;return kp},jm=!1,Mm=e=>{jm||=(ym(),!0),e.l_desc=new um(e.dyn_ltree,sm),e.d_desc=new um(e.dyn_dtree,cm),e.bl_desc=new um(e.bl_tree,lm),e.bi_buf=0,e.bi_valid=0,bm(e)},Nm=(e,t,n,r)=>{pm(e,(Np<<1)+ +!!r,3),xm(e),fm(e,n),fm(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},Pm={_tr_init:Mm,_tr_stored_block:Nm,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===jp&&(e.strm.data_type=Am(e)),Tm(e,e.l_desc),Tm(e,e.d_desc),o=Om(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?Nm(e,t,n,r):e.strategy===Op||a===i?(pm(e,(Pp<<1)+ +!!r,3),wm(e,em,tm)):(pm(e,(Fp<<1)+ +!!r,3),km(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),wm(e,e.dyn_ltree,e.dyn_dtree)),bm(e),r&&xm(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+ e.sym_next++]=t,e.pending_buf[e.sym_buf+ e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+ e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(rm[n]+Lp+1)*2]++,e.dyn_dtree[dm(t)*2]++),e.sym_next===e.sym_end),_tr_align:e=>{pm(e,Pp<<1,3),mm(e,Gp,em),gm(e)}},Fm=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},Im=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t})()),Lm=(e,t,n,r)=>{let i=Im,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[(e^t[n])&255];return e^-1},Rm={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`},zm={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:Bm,_tr_stored_block:Vm,_tr_flush_block:Hm,_tr_tally:Um,_tr_align:Wm}=Pm,{Z_NO_FLUSH:Gm,Z_PARTIAL_FLUSH:Km,Z_FULL_FLUSH:qm,Z_FINISH:Jm,Z_BLOCK:Ym,Z_OK:Xm,Z_STREAM_END:Zm,Z_STREAM_ERROR:Qm,Z_DATA_ERROR:$m,Z_BUF_ERROR:eh,Z_DEFAULT_COMPRESSION:th,Z_FILTERED:nh,Z_HUFFMAN_ONLY:rh,Z_RLE:ih,Z_FIXED:ah,Z_DEFAULT_STRATEGY:oh,Z_UNKNOWN:sh,Z_DEFLATED:ch}=zm,lh=9,uh=15,dh=8,fh=573,ph=3,mh=258,hh=262,gh=32,_h=42,vh=57,yh=69,bh=73,xh=91,Sh=103,Ch=113,wh=666,Th=1,Eh=2,Dh=3,Oh=4,kh=3,Ah=(e,t)=>(e.msg=Rm[t],t),jh=e=>e*2-(e>4?9:0),Mh=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Nh=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},Ph=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Fh=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Ih=(e,t)=>{Hm(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Fh(e.strm)},Lh=(e,t)=>{e.pending_buf[e.pending++]=t},Rh=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},zh=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Fm(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Lm(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Bh=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-hh?e.strstart-(e.w_size-hh):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+mh,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=mh-(f-r),r=f-mh,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead},Vh=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-hh)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Nh(e),r+=t),e.strm.avail_in===0)break;if(n=zh(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=ph)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ph(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ph(e,e.ins_h,e.window[i+ph-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<ph)););}while(e.lookahead<hh&&e.strm.avail_in!==0)},Hh=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(r===0&&t!==Jm||t===Gm||r!==i+e.strm.avail_in)))break;o=+(t===Jm&&r===i+e.strm.avail_in),Vm(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Fh(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(zh(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Oh:t!==Gm&&t!==Jm&&e.strm.avail_in===0&&e.strstart===e.block_start?Eh:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(zh(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=n||(i||t===Jm)&&t!==Gm&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,o=+(t===Jm&&e.strm.avail_in===0&&r===i),Vm(e,e.block_start,r,o),e.block_start+=r,Fh(e.strm)),o?Dh:Th)},Uh=(e,t)=>{let n,r;for(;;){if(e.lookahead<hh){if(Vh(e),e.lookahead<hh&&t===Gm)return Th;if(e.lookahead===0)break}if(n=0,e.lookahead>=ph&&(e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-hh&&(e.match_length=Bh(e,n)),e.match_length>=ph)if(r=Um(e,e.strstart-e.match_start,e.match_length-ph),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ph){e.match_length--;do e.strstart++,e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+1]);else r=Um(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Ih(e,!1),e.strm.avail_out===0))return Th}return e.insert=e.strstart<ph-1?e.strstart:ph-1,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh},Wh=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<hh){if(Vh(e),e.lookahead<hh&&t===Gm)return Th;if(e.lookahead===0)break}if(n=0,e.lookahead>=ph&&(e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ph-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-hh&&(e.match_length=Bh(e,n),e.match_length<=5&&(e.strategy===nh||e.match_length===ph&&e.strstart-e.match_start>4096)&&(e.match_length=ph-1)),e.prev_length>=ph&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ph,r=Um(e,e.strstart-1-e.prev_match,e.prev_length-ph),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ph(e,e.ins_h,e.window[e.strstart+ph-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ph-1,e.strstart++,r&&(Ih(e,!1),e.strm.avail_out===0))return Th}else if(e.match_available){if(r=Um(e,0,e.window[e.strstart-1]),r&&Ih(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Th}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=Um(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<ph-1?e.strstart:ph-1,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh},Gh=(e,t)=>{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=mh){if(Vh(e),e.lookahead<=mh&&t===Gm)return Th;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ph&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+mh;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=mh-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ph?(n=Um(e,1,e.match_length-ph),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Um(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Ih(e,!1),e.strm.avail_out===0))return Th}return e.insert=0,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh},Kh=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Vh(e),e.lookahead===0)){if(t===Gm)return Th;break}if(e.match_length=0,n=Um(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ih(e,!1),e.strm.avail_out===0))return Th}return e.insert=0,t===Jm?(Ih(e,!0),e.strm.avail_out===0?Dh:Oh):e.sym_next&&(Ih(e,!1),e.strm.avail_out===0)?Th:Eh};function qh(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Jh=[new qh(0,0,0,0,Hh),new qh(4,4,8,4,Uh),new qh(4,5,16,8,Uh),new qh(4,6,32,32,Uh),new qh(4,4,16,16,Wh),new qh(8,16,32,32,Wh),new qh(8,16,128,128,Wh),new qh(8,32,128,256,Wh),new qh(32,128,258,1024,Wh),new qh(32,258,258,4096,Wh)],Yh=e=>{e.window_size=2*e.w_size,Mh(e.head),e.max_lazy_match=Jh[e.level].max_lazy,e.good_match=Jh[e.level].good_length,e.nice_match=Jh[e.level].nice_length,e.max_chain_length=Jh[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ph-1,e.match_available=0,e.ins_h=0};function Xh(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ch,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(fh*2),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Mh(this.dyn_ltree),Mh(this.dyn_dtree),Mh(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Mh(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Mh(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Zh=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.status!==_h&&t.status!==vh&&t.status!==yh&&t.status!==bh&&t.status!==xh&&t.status!==Sh&&t.status!==Ch&&t.status!==wh)},Qh=e=>{if(Zh(e))return Ah(e,Qm);e.total_in=e.total_out=0,e.data_type=sh;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?vh:t.wrap?_h:Ch,e.adler=t.wrap===2?0:1,t.last_flush=-2,Bm(t),Xm},$h=e=>{let t=Qh(e);return t===Xm&&Yh(e.state),t},eg=(e,t)=>Zh(e)||e.state.wrap!==2?Qm:(e.state.gzhead=t,Xm),tg=(e,t,n,r,i,a)=>{if(!e)return Qm;let o=1;if(t===th&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>lh||n!==ch||r<8||r>15||t<0||t>9||a<0||a>ah||r===8&&o!==1)return Ah(e,Qm);r===8&&(r=9);let s=new Xh;return e.state=s,s.strm=e,s.status=_h,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+ph-1)/ph),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=a,s.method=n,$h(e)},ng={deflateInit:(e,t)=>tg(e,t,ch,uh,dh,oh),deflateInit2:tg,deflateReset:$h,deflateResetKeep:Qh,deflateSetHeader:eg,deflate:(e,t)=>{if(Zh(e)||t>Ym||t<0)return e?Ah(e,Qm):Qm;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===wh&&t!==Jm)return Ah(e,e.avail_out===0?eh:Qm);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Fh(e),e.avail_out===0)return n.last_flush=-1,Xm}else if(e.avail_in===0&&jh(t)<=jh(r)&&t!==Jm)return Ah(e,eh);if(n.status===wh&&e.avail_in!==0)return Ah(e,eh);if(n.status===_h&&n.wrap===0&&(n.status=Ch),n.status===_h){let t=ch+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=rh||n.level<2?0:n.level<6?1:n.level===6?2:3,t|=r<<6,n.strstart!==0&&(t|=gh),t+=31-t%31,Rh(n,t),n.strstart!==0&&(Rh(n,e.adler>>>16),Rh(n,e.adler&65535)),e.adler=1,n.status=Ch,Fh(e),n.pending!==0)return n.last_flush=-1,Xm}if(n.status===vh){if(e.adler=0,Lh(n,31),Lh(n,139),Lh(n,8),n.gzhead)Lh(n,+!!n.gzhead.text+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Lh(n,n.gzhead.time&255),Lh(n,n.gzhead.time>>8&255),Lh(n,n.gzhead.time>>16&255),Lh(n,n.gzhead.time>>24&255),Lh(n,n.level===9?2:n.strategy>=rh||n.level<2?4:0),Lh(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Lh(n,n.gzhead.extra.length&255),Lh(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Lm(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=yh;else if(Lh(n,0),Lh(n,0),Lh(n,0),Lh(n,0),Lh(n,0),Lh(n,n.level===9?2:n.strategy>=rh||n.level<2?4:0),Lh(n,kh),n.status=Ch,Fh(e),n.pending!==0)return n.last_flush=-1,Xm}if(n.status===yh){if(n.gzhead.extra){let t=n.pending,r=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,Fh(e),n.pending!==0)return n.last_flush=-1,Xm;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=bh}if(n.status===bh){if(n.gzhead.name){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),Fh(e),n.pending!==0)return n.last_flush=-1,Xm;t=0}r=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0,Lh(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=xh}if(n.status===xh){if(n.gzhead.comment){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t)),Fh(e),n.pending!==0)return n.last_flush=-1,Xm;t=0}r=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0,Lh(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=Lm(e.adler,n.pending_buf,n.pending-t,t))}n.status=Sh}if(n.status===Sh){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Fh(e),n.pending!==0))return n.last_flush=-1,Xm;Lh(n,e.adler&255),Lh(n,e.adler>>8&255),e.adler=0}if(n.status=Ch,Fh(e),n.pending!==0)return n.last_flush=-1,Xm}if(e.avail_in!==0||n.lookahead!==0||t!==Gm&&n.status!==wh){let r=n.level===0?Hh(n,t):n.strategy===rh?Kh(n,t):n.strategy===ih?Gh(n,t):Jh[n.level].func(n,t);if((r===Dh||r===Oh)&&(n.status=wh),r===Th||r===Dh)return e.avail_out===0&&(n.last_flush=-1),Xm;if(r===Eh&&(t===Km?Wm(n):t!==Ym&&(Vm(n,0,0,!1),t===qm&&(Mh(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Fh(e),e.avail_out===0))return n.last_flush=-1,Xm}return t===Jm?n.wrap<=0?Zm:(n.wrap===2?(Lh(n,e.adler&255),Lh(n,e.adler>>8&255),Lh(n,e.adler>>16&255),Lh(n,e.adler>>24&255),Lh(n,e.total_in&255),Lh(n,e.total_in>>8&255),Lh(n,e.total_in>>16&255),Lh(n,e.total_in>>24&255)):(Rh(n,e.adler>>>16),Rh(n,e.adler&65535)),Fh(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?Zm:Xm):Xm},deflateEnd:e=>{if(Zh(e))return Qm;let t=e.state.status;return e.state=null,t===Ch?Ah(e,$m):Xm},deflateSetDictionary:(e,t)=>{let n=t.length;if(Zh(e))return Qm;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==_h||r.lookahead)return Qm;if(i===1&&(e.adler=Fm(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Mh(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Vh(r);r.lookahead>=ph;){let e=r.strstart,t=r.lookahead-(ph-1);do r.ins_h=Ph(r,r.ins_h,r.window[e+ph-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=ph-1,Vh(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ph-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,Xm},deflateInfo:`pako deflate (from Nodeca project)`},rg=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ig={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(let t in n)rg(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}},ag=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ag=!1}var og=new Uint8Array(256);for(let e=0;e<256;e++)og[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;og[254]=og[254]=1;var sg=e=>{if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},cg=(e,t)=>{if(t<65534&&e.subarray&&ag)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n=``;for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},lg={string2buf:sg,buf2string:(e,t)=>{let n=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,a=Array(n*2);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=og[t];if(o>4){a[i++]=65533,r+=o-1;continue}for(t&=o===2?31:o===3?15:7;o>1&&r<n;)t=t<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|t&1023)}return cg(a,i)},utf8border:(e,t)=>{t||=e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+og[e[n]]>t?n:t}};function ug(){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=ug,fg=Object.prototype.toString,{Z_NO_FLUSH:pg,Z_SYNC_FLUSH:mg,Z_FULL_FLUSH:hg,Z_FINISH:gg,Z_OK:_g,Z_STREAM_END:vg,Z_DEFAULT_COMPRESSION:yg,Z_DEFAULT_STRATEGY:bg,Z_DEFLATED:xg}=zm;function Sg(e){this.options=ig.assign({level:yg,method:xg,chunkSize:16384,windowBits:15,memLevel:8,strategy:bg},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new dg,this.strm.avail_out=0;let n=ng.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==_g)throw Error(Rm[n]);if(t.header&&ng.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e=typeof t.dictionary==`string`?lg.string2buf(t.dictionary):fg.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,n=ng.deflateSetDictionary(this.strm,e),n!==_g)throw Error(Rm[n]);this._dict_set=!0}}Sg.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(a=t===~~t?t:t===!0?gg:pg,typeof e==`string`?n.input=lg.string2buf(e):fg.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===mg||a===hg)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=ng.deflate(n,a),i===vg)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=ng.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===_g;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},Sg.prototype.onData=function(e){this.chunks.push(e)},Sg.prototype.onEnd=function(e){e===_g&&(this.result=ig.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Cg(e,t){let n=new Sg(t);if(n.push(e,!0),n.err)throw n.msg||Rm[n.err];return n.result}function wg(e,t){return t||={},t.raw=!0,Cg(e,t)}function Tg(e,t){return t||={},t.gzip=!0,Cg(e,t)}var Eg={Deflate:Sg,deflate:Cg,deflateRaw:wg,gzip:Tg,constants:zm},Dg=16209,Og=16191,kg=function(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;top:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];dolen:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y===0)T[i++]=v&65535;else if(y&16){b=v&65535,y&=15,y&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];dodist:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y&16){if(x=v&65535,y&=15,p<y&&(f+=w[n++]<<p,p+=8,p<y&&(f+=w[n++]<<p,p+=8)),x+=f&(1<<y)-1,x>s){e.msg=`invalid distance too far back`,E.mode=Dg;break top}if(f>>>=y,p-=y,y=i-a,x>y){if(y=x-y,y>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=Dg;break top}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,y-=u,y<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){y=u,b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}}else if(y&64){e.msg=`invalid distance code`,E.mode=Dg;break top}else{v=h[(v&65535)+(f&(1<<y)-1)];continue dodist}break}}else if(!(y&64)){v=m[(v&65535)+(f&(1<<y)-1)];continue dolen}else if(y&32){E.mode=Og;break top}else{e.msg=`invalid literal/length code`,E.mode=Dg;break top}break}}while(n<r&&i<o);b=p>>3,n-=b,p-=b<<3,f&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<o?257+(o-i):257-(i-o),E.hold=f,E.bits=p},Ag=15,jg=852,Mg=592,Ng=0,Pg=1,Fg=2,Ig=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]),Lg=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]),Rg=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]),zg=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]),Bg=(e,t,n,r,i,a,o,s)=>{let c=s.bits,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y,b,x,S,C,w=null,T,E=new Uint16Array(16),ee=new Uint16Array(16),te=null,ne,re,ie;for(l=0;l<=Ag;l++)E[l]=0;for(u=0;u<r;u++)E[t[n+u]]++;for(p=c,f=Ag;f>=1&&E[f]===0;f--);if(p>f&&(p=f),f===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(d=1;d<f&&E[d]===0;d++);for(p<d&&(p=d),g=1,l=1;l<=Ag;l++)if(g<<=1,g-=E[l],g<0)return-1;if(g>0&&(e===Ng||f!==1))return-1;for(ee[1]=0,l=1;l<Ag;l++)ee[l+1]=ee[l]+E[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[ee[t[n+u]]++]=u);if(e===Ng?(w=te=o,T=20):e===Pg?(w=Ig,te=Lg,T=257):(w=Rg,te=zg,T=0),v=0,u=0,l=d,C=a,m=p,h=0,x=-1,_=1<<p,S=_-1,e===Pg&&_>jg||e===Fg&&_>Mg)return 1;for(;;){ne=l-h,o[u]+1<T?(re=0,ie=o[u]):o[u]>=T?(re=te[o[u]-T],ie=w[o[u]-T]):(re=96,ie=0),y=1<<l-h,b=1<<m,d=b;do b-=y,i[C+(v>>h)+b]=ne<<24|re<<16|ie|0;while(b!==0);for(y=1<<l-1;v&y;)y>>=1;if(y===0?v=0:(v&=y-1,v+=y),u++,--E[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>p&&(v&S)!==x){for(h===0&&(h=p),C+=d,m=l-h,g=1<<m;m+h<f&&(g-=E[m+h],!(g<=0));)m++,g<<=1;if(_+=1<<m,e===Pg&&_>jg||e===Fg&&_>Mg)return 1;x=v&S,i[x]=p<<24|m<<16|C-a|0}}return v!==0&&(i[C+v]=l-h<<24|4194304),s.bits=p,0},Vg=0,Hg=1,Ug=2,{Z_FINISH:Wg,Z_BLOCK:Gg,Z_TREES:Kg,Z_OK:qg,Z_STREAM_END:Jg,Z_NEED_DICT:Yg,Z_STREAM_ERROR:Xg,Z_DATA_ERROR:Zg,Z_MEM_ERROR:Qg,Z_BUF_ERROR:$g,Z_DEFLATED:e_}=zm,t_=16180,n_=16181,r_=16182,i_=16183,a_=16184,o_=16185,s_=16186,c_=16187,l_=16188,u_=16189,d_=16190,f_=16191,p_=16192,m_=16193,h_=16194,g_=16195,__=16196,v_=16197,y_=16198,b_=16199,x_=16200,S_=16201,C_=16202,w_=16203,T_=16204,E_=16205,D_=16206,O_=16207,k_=16208,A_=16209,j_=16210,M_=16211,N_=852,P_=592,F_=15,I_=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function L_(){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}var R_=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<t_||t.mode>M_)},z_=e=>{if(R_(e))return Xg;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=t_,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(N_),t.distcode=t.distdyn=new Int32Array(P_),t.sane=1,t.back=-1,qg},B_=e=>{if(R_(e))return Xg;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,z_(e)},V_=(e,t)=>{let n;if(R_(e))return Xg;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Xg:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,B_(e))},H_=(e,t)=>{if(!e)return Xg;let n=new L_;e.state=n,n.strm=e,n.window=null,n.mode=t_;let r=V_(e,t);return r!==qg&&(e.state=null),r},U_=e=>H_(e,F_),W_=!0,G_,K_,q_=e=>{if(W_){G_=new Int32Array(512),K_=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(Bg(Hg,e.lens,0,288,G_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Bg(Ug,e.lens,0,32,K_,0,e.work,{bits:5}),W_=!1}e.lencode=G_,e.lenbits=9,e.distcode=K_,e.distbits=5},J_=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Y_={inflateReset:B_,inflateReset2:V_,inflateResetKeep:z_,inflateInit:U_,inflateInit2:H_,inflate:(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,C,w,T=new Uint8Array(4),E,ee,te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(R_(e)||!e.output||!e.input&&e.avail_in!==0)return Xg;n=e.state,n.mode===f_&&(n.mode=p_),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,w=qg;inf_leave:for(;;)switch(n.mode){case t_:if(n.wrap===0){n.mode=p_;break}for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0),l=0,u=0,n.mode=n_;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=A_;break}if((l&15)!==e_){e.msg=`unknown compression method`,n.mode=A_;break}if(l>>>=4,u-=4,C=(l&15)+8,n.wbits===0&&(n.wbits=C),C>15||C>n.wbits){e.msg=`invalid window size`,n.mode=A_;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?u_:f_,l=0,u=0;break;case n_:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==e_){e.msg=`unknown compression method`,n.mode=A_;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=A_;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0)),l=0,u=0,n.mode=r_;case r_:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=Lm(n.check,T,4,0)),l=0,u=0,n.mode=i_;case i_:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0)),l=0,u=0,n.mode=a_;case a_:if(n.flags&1024){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=Lm(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=o_;case o_:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),C)),n.flags&512&&n.wrap&4&&(n.check=Lm(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break inf_leave;n.length=0,n.mode=s_;case s_:if(n.flags&2048){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=Lm(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=c_;case c_:if(n.flags&4096){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=Lm(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.comment=null);n.mode=l_;case l_:if(n.flags&512){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=A_;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=f_;break;case u_:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=I_(l),l=0,u=0,n.mode=d_;case d_:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Yg;e.adler=n.check=1,n.mode=f_;case f_:if(t===Gg||t===Kg)break inf_leave;case p_:if(n.last){l>>>=u&7,u-=u&7,n.mode=D_;break}for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,--u,l&3){case 0:n.mode=m_;break;case 1:if(q_(n),n.mode=b_,t===Kg){l>>>=2,u-=2;break inf_leave}break;case 2:n.mode=__;break;case 3:e.msg=`invalid block type`,n.mode=A_}l>>>=2,u-=2;break;case m_:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if((l&65535)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=A_;break}if(n.length=l&65535,l=0,u=0,n.mode=h_,t===Kg)break inf_leave;case h_:n.mode=g_;case g_:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break inf_leave;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=f_;break;case __:for(;u<14;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=A_;break}n.have=0,n.mode=v_;case v_:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.lens[te[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[te[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},w=Bg(Vg,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid code lengths set`,n.mode=A_;break}n.have=0,n.mode=y_;case y_:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=_,u-=_,n.lens[n.have++]=y;else{if(y===16){for(ee=_+2;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(l>>>=_,u-=_,n.have===0){e.msg=`invalid bit length repeat`,n.mode=A_;break}C=n.lens[n.have-1],p=3+(l&3),l>>>=2,u-=2}else if(y===17){for(ee=_+3;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=3+(l&7),l>>>=3,u-=3}else{for(ee=_+7;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=11+(l&127),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=A_;break}for(;p--;)n.lens[n.have++]=C}}if(n.mode===A_)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=A_;break}if(n.lenbits=9,E={bits:n.lenbits},w=Bg(Hg,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid literal/lengths set`,n.mode=A_;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},w=Bg(Ug,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,w){e.msg=`invalid distances set`,n.mode=A_;break}if(n.mode=b_,t===Kg)break inf_leave;case b_:n.mode=x_;case x_:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,kg(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===f_&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(v&&!(v&240)){for(b=_,x=v,S=y;g=n.lencode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,n.length=y,v===0){n.mode=E_;break}if(v&32){n.back=-1,n.mode=f_;break}if(v&64){e.msg=`invalid literal/length code`,n.mode=A_;break}n.extra=v&15,n.mode=S_;case S_:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=C_;case C_:for(;g=n.distcode[l&(1<<n.distbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(!(v&240)){for(b=_,x=v,S=y;g=n.distcode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,v&64){e.msg=`invalid distance code`,n.mode=A_;break}n.offset=y,n.extra=v&15,n.mode=w_;case w_:if(n.extra){for(ee=n.extra;u<ee;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=A_;break}n.mode=T_;case T_:if(c===0)break inf_leave;if(p=f-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=A_;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=x_);break;case E_:if(c===0)break inf_leave;i[o++]=n.length,c--,n.mode=x_;break;case D_:if(n.wrap){for(;u<32;){if(s===0)break inf_leave;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Lm(n.check,i,f,o-f):Fm(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:I_(l))!==n.check){e.msg=`incorrect data check`,n.mode=A_;break}l=0,u=0}n.mode=O_;case O_:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg=`incorrect length check`,n.mode=A_;break}l=0,u=0}n.mode=k_;case k_:w=Jg;break inf_leave;case A_:w=Zg;break inf_leave;case j_:return Qg;case M_:default:return Xg}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<A_&&(n.mode<D_||t!==Wg))&&J_(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Lm(n.check,i,f,e.next_out-f):Fm(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===f_?128:0)+(n.mode===b_||n.mode===h_?256:0),(d===0&&f===0||t===Wg)&&w===qg&&(w=$g),w},inflateEnd:e=>{if(R_(e))return Xg;let t=e.state;return t.window&&=null,e.state=null,qg},inflateGetHeader:(e,t)=>{if(R_(e))return Xg;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,qg):Xg},inflateSetDictionary:(e,t)=>{let n=t.length,r,i,a;return R_(e)||(r=e.state,r.wrap!==0&&r.mode!==d_)?Xg:r.mode===d_&&(i=1,i=Fm(i,t,n,0),i!==r.check)?Zg:(a=J_(e,t,n,n),a?(r.mode=j_,Qg):(r.havedict=1,qg))},inflateInfo:`pako inflate (from Nodeca project)`};function X_(){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 Z_=X_,Q_=Object.prototype.toString,{Z_NO_FLUSH:$_,Z_FINISH:ev,Z_OK:tv,Z_STREAM_END:nv,Z_NEED_DICT:rv,Z_STREAM_ERROR:iv,Z_DATA_ERROR:av,Z_MEM_ERROR:ov}=zm;function sv(e){this.options=ig.assign({chunkSize:1024*64,windowBits:15,to:``},e||{});let 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||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new dg,this.strm.avail_out=0;let n=Y_.inflateInit2(this.strm,t.windowBits);if(n!==tv||(this.header=new Z_,Y_.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=lg.string2buf(t.dictionary):Q_.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Y_.inflateSetDictionary(this.strm,t.dictionary),n!==tv))))throw Error(Rm[n])}sv.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(o=t===~~t?t:t===!0?ev:$_,Q_.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=Y_.inflate(n,o),a===rv&&i&&(a=Y_.inflateSetDictionary(n,i),a===tv?a=Y_.inflate(n,o):a===av&&(a=rv));n.avail_in>0&&a===nv&&n.state.wrap>0&&e[n.next_in]!==0;)Y_.inflateReset(n),a=Y_.inflate(n,o);switch(a){case iv:case av:case rv:case ov:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===nv))if(this.options.to===`string`){let e=lg.utf8border(n.output,n.next_out),t=n.next_out-e,i=lg.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===tv&&s===0)){if(a===nv)return a=Y_.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},sv.prototype.onData=function(e){this.chunks.push(e)},sv.prototype.onEnd=function(e){e===tv&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=ig.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function cv(e,t){let n=new sv(t);if(n.push(e),n.err)throw n.msg||Rm[n.err];return n.result}function lv(e,t){return t||={},t.raw=!0,cv(e,t)}var uv={Inflate:sv,inflate:cv,inflateRaw:lv,ungzip:cv,constants:zm},{Deflate:dv,deflate:fv,deflateRaw:pv,gzip:mv}=Eg,{Inflate:hv,inflate:gv,inflateRaw:_v,ungzip:vv}=uv,yv=gv,bv=e=>{let t=typeof atob<`u`?atob(e):Buffer.from(e,`base64`).toString(`binary`),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r;try{r=yv(n)}catch{r=n}return new TextDecoder(`utf-8`).decode(r)},xv=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Sv=e=>new Promise(function(t,n){if(typeof window>`u`){t({width:0,height:0});return}let r=new Image;r.onload=()=>{t({width:r.width,height:r.height})},r.onerror=e=>{n(e)},r.src=e}),Cv=365.2425,wv=6048e5,Tv=864e5,Ev=6e4,Dv=36e5,Ov=1e3,kv=3600*24;kv*7,kv*Cv/12*3;var Av=Symbol.for(`constructDateFrom`);function jv(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Av in e?e[Av](t):e instanceof Date?new e.constructor(t):new Date(t)}function Mv(e,t){return jv(t||e,e)}function Nv(e,t,n){let r=Mv(e,n?.in);return r.setTime(r.getTime()+t*Ev),r}var Pv={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`}},Fv=(e,t,n)=>{let r,i=Pv[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function Iv(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Lv={date:Iv({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:Iv({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:Iv({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Rv={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},zv=(e,t,n,r)=>Rv[e];function Bv(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var Vv={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Bv({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Bv({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Bv({values:{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`]},defaultWidth:`wide`}),day:Bv({values:{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`]},defaultWidth:`wide`}),dayPeriod:Bv({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})};function Hv(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Wv(s,e=>e.test(o)):Uv(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function Uv(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Wv(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Gv(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Kv={code:`en-US`,formatDistance:Fv,formatLong:Lv,formatRelative:zv,localize:Vv,match:{ordinalNumber:Gv({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Hv({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Hv({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Hv({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:Hv({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:Hv({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},qv={};function Jv(){return qv}function Yv(e){let t=Mv(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Xv(e,...t){let n=jv.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Zv(e,t){let n=Mv(e,t?.in);return n.setHours(0,0,0,0),n}function Qv(e,t,n){let[r,i]=Xv(n?.in,e,t),a=Zv(r),o=Zv(i),s=+a-Yv(a),c=+o-Yv(o);return Math.round((s-c)/Tv)}function $v(e,t){let n=Mv(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ey(e,t){let n=Mv(e,t?.in);return Qv(n,$v(n))+1}function ty(e,t){let n=Jv(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Mv(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function ny(e,t){return ty(e,{...t,weekStartsOn:1})}function ry(e,t){let n=Mv(e,t?.in),r=n.getFullYear(),i=jv(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=ny(i),o=jv(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=ny(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function iy(e,t){let n=ry(e,t),r=jv(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ny(r)}function ay(e,t){let n=Mv(e,t?.in),r=ny(n)-+iy(n);return Math.round(r/wv)+1}function oy(e,t){let n=Mv(e,t?.in),r=n.getFullYear(),i=Jv(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=jv(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=ty(o,t),c=jv(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=ty(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function sy(e,t){let n=Jv(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=oy(e,t),a=jv(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),ty(a,t)}function cy(e,t){let n=Mv(e,t?.in),r=ty(n,t)-+sy(n,t);return Math.round(r/wv)+1}function ly(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var uy={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return ly(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):ly(n+1,2)},d(e,t){return ly(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return ly(e.getHours()%12||12,t.length)},H(e,t){return ly(e.getHours(),t.length)},m(e,t){return ly(e.getMinutes(),t.length)},s(e,t){return ly(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return ly(Math.trunc(r*10**(n-3)),t.length)}},dy={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},fy={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return uy.y(e,t)},Y:function(e,t,n,r){let i=oy(e,r),a=i>0?i:1-i;return t===`YY`?ly(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):ly(a,t.length)},R:function(e,t){return ly(ry(e),t.length)},u:function(e,t){return ly(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return ly(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return ly(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return uy.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return ly(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=cy(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):ly(i,t.length)},I:function(e,t,n){let r=ay(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):ly(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):uy.d(e,t)},D:function(e,t,n){let r=ey(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):ly(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return ly(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return ly(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return ly(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?dy.noon:r===0?dy.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?dy.evening:r>=12?dy.afternoon:r>=4?dy.morning:dy.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return uy.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):uy.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):ly(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):ly(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):uy.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):uy.s(e,t)},S:function(e,t){return uy.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return my(r);case`XXXX`:case`XX`:return hy(r);default:return hy(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return my(r);case`xxxx`:case`xx`:return hy(r);default:return hy(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+py(r,`:`);default:return`GMT`+hy(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+py(r,`:`);default:return`GMT`+hy(r,`:`)}},t:function(e,t,n){return ly(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return ly(+e,t.length)}};function py(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+ly(a,2)}function my(e,t){return e%60==0?(e>0?`-`:`+`)+ly(Math.abs(e)/60,2):hy(e,t)}function hy(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=ly(Math.trunc(r/60),2),a=ly(r%60,2);return n+i+t+a}var gy=(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`});default:return t.date({width:`full`})}},_y=(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`});default:return t.time({width:`full`})}},vy={p:_y,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return gy(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,gy(r,t)).replace(`{{time}}`,_y(i,t))}},yy=/^D+$/,by=/^Y+$/,xy=[`D`,`DD`,`YY`,`YYYY`];function Sy(e){return yy.test(e)}function Cy(e){return by.test(e)}function wy(e,t,n){let r=Ty(e,t,n);if(console.warn(r),xy.includes(e))throw RangeError(r)}function Ty(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Ey(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Dy(e){return!(!Ey(e)&&typeof e!=`number`||isNaN(+Mv(e)))}var Oy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ky=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ay=/^'([^]*?)'?$/,jy=/''/g,My=/[a-zA-Z]/;function Ny(e,t,n){let r=Jv(),i=n?.locale??r.locale??Kv,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Mv(e,n?.in);if(!Dy(s))throw RangeError(`Invalid time value`);let c=t.match(ky).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=vy[t];return n(e,i.formatLong)}return e}).join(``).match(Oy).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Py(e)};if(fy[t])return{isToken:!0,value:e};if(t.match(My))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Cy(a)||!n?.useAdditionalDayOfYearTokens&&Sy(a))&&wy(a,t,String(e));let o=fy[a[0]];return o(s,a,i.localize,l)}).join(``)}function Py(e){let t=e.match(Ay);return t?t[1].replace(jy,`'`):e}function Fy(){return Object.assign({},Jv())}function Iy(e,t){let n=Ly(t)?new t(0):jv(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Ly(e){return typeof e==`function`&&e.prototype?.constructor===e}var Ry=10,zy=class{subPriority=0;validate(e,t){return!0}},By=class extends zy{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},Vy=class extends zy{priority=Ry;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>jv(t,e))}set(e,t){return t.timestampIsSet?e:jv(e,Iy(e,this.context))}},Hy=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new By(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},Uy=class extends Hy{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},Wy={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}/},Gy={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 Ky(e,t){return e&&{value:t(e.value),rest:e.rest}}function qy(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Jy(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*Dv+a*Ev+o*Ov),rest:t.slice(n[0].length)}}function Yy(e){return qy(Wy.anyDigitsSigned,e)}function Xy(e,t){switch(e){case 1:return qy(Wy.singleDigit,t);case 2:return qy(Wy.twoDigits,t);case 3:return qy(Wy.threeDigits,t);case 4:return qy(Wy.fourDigits,t);default:return qy(RegExp(`^\\d{1,`+e+`}`),t)}}function Zy(e,t){switch(e){case 1:return qy(Wy.singleDigitSigned,t);case 2:return qy(Wy.twoDigitsSigned,t);case 3:return qy(Wy.threeDigitsSigned,t);case 4:return qy(Wy.fourDigitsSigned,t);default:return qy(RegExp(`^-?\\d{1,`+e+`}`),t)}}function Qy(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function $y(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function eb(e){return e%400==0||e%4==0&&e%100!=0}var tb=class extends Hy{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return Ky(Xy(4,e),r);case`yo`:return Ky(n.ordinalNumber(e,{unit:`year`}),r);default:return Ky(Xy(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=$y(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},nb=class extends Hy{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return Ky(Xy(4,e),r);case`Yo`:return Ky(n.ordinalNumber(e,{unit:`year`}),r);default:return Ky(Xy(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=oy(e,r);if(n.isTwoDigitYear){let t=$y(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),ty(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),ty(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},rb=class extends Hy{priority=130;parse(e,t){return Zy(t===`R`?4:t.length,e)}set(e,t,n){let r=jv(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ny(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},ib=class extends Hy{priority=130;parse(e,t){return Zy(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},ab=class extends Hy{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return Xy(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},ob=class extends Hy{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return Xy(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},sb=class extends Hy{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return Ky(qy(Wy.month,e),r);case`MM`:return Ky(Xy(2,e),r);case`Mo`:return Ky(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},cb=class extends Hy{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return Ky(qy(Wy.month,e),r);case`LL`:return Ky(Xy(2,e),r);case`Lo`:return Ky(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function lb(e,t,n){let r=Mv(e,n?.in),i=cy(r,n)-t;return r.setDate(r.getDate()-i*7),Mv(r,n?.in)}var ub=class extends Hy{priority=100;parse(e,t,n){switch(t){case`w`:return qy(Wy.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return ty(lb(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function db(e,t,n){let r=Mv(e,n?.in),i=ay(r,n)-t;return r.setDate(r.getDate()-i*7),r}var fb=class extends Hy{priority=100;parse(e,t,n){switch(t){case`I`:return qy(Wy.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return ny(db(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},pb=[31,28,31,30,31,30,31,31,30,31,30,31],mb=[31,29,31,30,31,30,31,31,30,31,30,31],hb=class extends Hy{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return qy(Wy.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return Xy(t.length,e)}}validate(e,t){let n=eb(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=mb[r]:t>=1&&t<=pb[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},gb=class extends Hy{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return qy(Wy.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return Xy(t.length,e)}}validate(e,t){return eb(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function _b(e,t,n){let r=Mv(e,n?.in);return isNaN(t)?jv(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function vb(e,t,n){let r=Jv(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Mv(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return _b(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var yb=class extends Hy{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=vb(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},bb=class extends Hy{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return Ky(Xy(t.length,e),i);case`eo`:return Ky(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=vb(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},xb=class extends Hy{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return Ky(Xy(t.length,e),i);case`co`:return Ky(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=vb(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function Sb(e,t){let n=Mv(e,t?.in).getDay();return n===0?7:n}function Cb(e,t,n){let r=Mv(e,n?.in);return _b(r,t-Sb(r,n),n)}var wb=class extends Hy{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return Xy(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return Ky(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return Ky(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return Ky(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return Ky(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Cb(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Tb=class extends Hy{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qy(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},Eb=class extends Hy{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qy(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},Db=class extends Hy{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(Qy(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Ob=class extends Hy{priority=70;parse(e,t,n){switch(t){case`h`:return qy(Wy.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},kb=class extends Hy{priority=70;parse(e,t,n){switch(t){case`H`:return qy(Wy.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},Ab=class extends Hy{priority=70;parse(e,t,n){switch(t){case`K`:return qy(Wy.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},jb=class extends Hy{priority=70;parse(e,t,n){switch(t){case`k`:return qy(Wy.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Xy(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Mb=class extends Hy{priority=60;parse(e,t,n){switch(t){case`m`:return qy(Wy.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},Nb=class extends Hy{priority=50;parse(e,t,n){switch(t){case`s`:return qy(Wy.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return Xy(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},Pb=class extends Hy{priority=30;parse(e,t){return Ky(Xy(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Fb=class extends Hy{priority=10;parse(e,t){switch(t){case`X`:return Jy(Gy.basicOptionalMinutes,e);case`XX`:return Jy(Gy.basic,e);case`XXXX`:return Jy(Gy.basicOptionalSeconds,e);case`XXXXX`:return Jy(Gy.extendedOptionalSeconds,e);default:return Jy(Gy.extended,e)}}set(e,t,n){return t.timestampIsSet?e:jv(e,e.getTime()-Yv(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Ib=class extends Hy{priority=10;parse(e,t){switch(t){case`x`:return Jy(Gy.basicOptionalMinutes,e);case`xx`:return Jy(Gy.basic,e);case`xxxx`:return Jy(Gy.basicOptionalSeconds,e);case`xxxxx`:return Jy(Gy.extendedOptionalSeconds,e);default:return Jy(Gy.extended,e)}}set(e,t,n){return t.timestampIsSet?e:jv(e,e.getTime()-Yv(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Lb=class extends Hy{priority=40;parse(e){return Yy(e)}set(e,t,n){return[jv(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},Rb=class extends Hy{priority=20;parse(e){return Yy(e)}set(e,t,n){return[jv(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},zb={G:new Uy,y:new tb,Y:new nb,R:new rb,u:new ib,Q:new ab,q:new ob,M:new sb,L:new cb,w:new ub,I:new fb,d:new hb,D:new gb,E:new yb,e:new bb,c:new xb,i:new wb,a:new Tb,b:new Eb,B:new Db,h:new Ob,H:new kb,K:new Ab,k:new jb,m:new Mb,s:new Nb,S:new Pb,X:new Fb,x:new Ib,t:new Lb,T:new Rb},Bb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Hb=/^'([^]*?)'?$/,Ub=/''/g,Wb=/\S/,Gb=/[a-zA-Z]/;function Kb(e,t,n,r){let i=()=>jv(r?.in||n,NaN),a=Fy(),o=r?.locale??a.locale??Kv,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():Mv(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new Vy(r?.in,n)],d=t.match(Vb).map(e=>{let t=e[0];if(t in vy){let n=vy[t];return n(e,o.formatLong)}return e}).join(``).match(Bb),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&Cy(n)&&wy(n,t,e),!r?.useAdditionalDayOfYearTokens&&Sy(n)&&wy(n,t,e);let a=n[0],s=zb[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(Gb))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=qb(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&Wb.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=Mv(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function qb(e){return e.match(Hb)[1].replace(Ub,`'`)}var Jb=e=>{let t=Kb(e,`yyMMddHHmmssX`,new Date),n=new Date().getTimezoneOffset(),r=Nv(t,-n),i=-n/60;return Ny(r,`dd/MM/yyyy HH:mm:ss '${`GMT${i>=0?`+`:``}${i}`}'`)},Yb=e=>{let t=j.WAS_NOT_DONE;for(let n of e){if(n===j.ERROR)return j.ERROR;t===j.WAS_NOT_DONE&&n===j.OK&&(t=j.OK)}return t},Xb=class{};q([I(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Xb.prototype,`light`,void 0),q([F(),Y(()=>Z),L({each:!0}),K(`design:type`,Array)],Xb.prototype,`rect`,void 0);var Zb=[M.MRZ_TEXT,M.VISUAL_TEXT,M.BARCODE_TEXT],Qb=class{};q([F(),V(M),R(Zb),K(`design:type`,Object)],Qb.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],Qb.prototype,`reference`,void 0),q([F(),U(),K(`design:type`,String)],Qb.prototype,`result`,void 0),q([F(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],Qb.prototype,`location`,void 0);var $b=class{},ex,tx=class extends $b{static{ex=this}static{this.fromPlain=e=>Ns(ex,e)}static{this.isBelongs=e=>{let t=e;return Zs.includes(t?.checkType)}}};q([F(),R(Zs),K(`design:type`,Object)],tx.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],tx.prototype,`location`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],tx.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],tx.prototype,`checkResult`,void 0),q([F(),H({each:!0}),K(`design:type`,Array)],tx.prototype,`colorValues`,void 0),q([F(),H(),K(`design:type`,Number)],tx.prototype,`rectCount`,void 0),q([F(),H(),K(`design:type`,Number)],tx.prototype,`expectedCount`,void 0),tx=ex=q([J()],tx);var nx,rx=class extends $b{static{nx=this}static{this.fromPlain=e=>Ns(nx,e)}static{this.isBelongs=e=>{let t=e;return tc.includes(t?.checkType)}}};q([F(),R(tc),K(`design:type`,Object)],rx.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],rx.prototype,`location`,void 0),q([F(),B(),K(`design:type`,Number)],rx.prototype,`similarity`,void 0),q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],rx.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],rx.prototype,`image`,void 0),q([F(),U(),K(`design:type`,String)],rx.prototype,`referenceImage`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],rx.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],rx.prototype,`checkResult`,void 0),rx=nx=q([J()],rx);var ix,ax=class extends $b{static{ix=this}static{this.fromPlain=e=>Ns(ix,e)}static{this.isBelongs=e=>{let t=e;return uc.includes(t?.checkType)}}};q([F(),R(uc),K(`design:type`,Object)],ax.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],ax.prototype,`location`,void 0),q([F(),U(),K(`design:type`,String)],ax.prototype,`image`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],ax.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],ax.prototype,`checkResult`,void 0),ax=ix=q([J()],ax);var ox,sx=class extends $b{static{ox=this}static{this.fromPlain=e=>Ns(ox,e)}static{this.isBelongs=e=>{let t=e;return mc.includes(t?.checkType)}}};q([F(),R(mc),K(`design:type`,Object)],sx.prototype,`checkType`,void 0),q([I(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],sx.prototype,`location`,void 0),q([F(),V(zr),K(`design:type`,zr===void 0?Object:zr)],sx.prototype,`feature`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],sx.prototype,`diagnose`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sx.prototype,`checkResult`,void 0),sx=ox=q([J()],sx);var cx,lx=class extends $b{static{cx=this}static{this.fromPlain=e=>Ns(cx,e)}static{this.isBelongs=e=>{let t=e;return ac.includes(t?.checkType)}}};q([F(),L(),Y(()=>Qb),K(`design:type`,Qb===void 0?Object:Qb)],lx.prototype,`reference`,void 0),q([F(),R(ac),K(`design:type`,Object)],lx.prototype,`checkType`,void 0),q([F(),L(),Y(()=>Xb),K(`design:type`,Xb===void 0?Object:Xb)],lx.prototype,`location`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],lx.prototype,`checkResult`,void 0),q([F(),V(P),K(`design:type`,P===void 0?Object:P)],lx.prototype,`type`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],lx.prototype,`diagnose`,void 0),lx=cx=q([J()],lx);var ux=e=>{let t=[];return e.forEach(e=>{if(!xv(e)||!(`checkType`in e))return;let{checkType:n}=e;switch(n){case A.UV_FIBERS:t.push(tx.fromPlain(e));break;case A.IMAGE_PATTERN:case A.IR_VISIBILITY:case A.OVI:case A.PORTRAIT_COMPARISON:case A.KINEGRAM:case A.LETTER_SCREEN:case A.HOLOGRAM_DETECTION:case A.FINGERPRINT_COMPARISON:case A.LIVENESS:t.push(rx.fromPlain(e));break;case A.OCR_SECURITY_TEXT:case A.ENCRYPTED_IPI:t.push(lx.fromPlain(e));break;case A.IPI:t.push(ax.fromPlain(e));break;case A.UV_LUMINESCENCE:case A.IR_B900:case A.AXIAL_PROTECTION:case A.PHOTO_EMBED_TYPE:case A.HOLOGRAMS:case A.PHOTO_AREA:case A.BARCODE_FORMAT_CHECK:case A.EXTENDED_OCR_CHECK:case A.EXTENDED_MRZ_CHECK:t.push(sx.fromPlain(e));break}}),t},dx,fx=class{static{dx=this}static{this.fromPlain=e=>Ns(dx,e)}};q([F(),V(A),K(`design:type`,A===void 0?Object:A)],fx.prototype,`group`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],fx.prototype,`checkResult`,void 0),q([L({each:!0}),As(({obj:e})=>ux(e.checks),{toClassOnly:!0}),W(),K(`design:type`,Array)],fx.prototype,`checks`,void 0),fx=dx=q([J()],fx);var px,mx=class{static{px=this}static{this.fromPlain=e=>X(px,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),H(),K(`design:type`,Number)],mx.prototype,`page`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],mx.prototype,`checkResult`,void 0),q([F(),L({each:!0}),Y(()=>fx),K(`design:type`,Array)],mx.prototype,`groups`,void 0),mx=px=q([J()],mx);var hx=[zr.PORTRAIT_COMPARISON_VS_CAMERA,zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,zr.PORTRAIT_COMPARISON_EXT_VS_RFID,zr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA],gx=e=>{let t=bc.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.AuthenticityCheckList.List,r=mx.fromPlain({checkResult:j.WAS_NOT_DONE,page:e.page_idx??0,groups:[]});t.forEach(e=>{if(Qs.isBelongs(e)&&e.List.forEach(t=>{let n=r.groups.findIndex(e=>e.group===t.Type);n===-1&&(r.groups.push(fx.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),n=r.groups.length-1),r.groups[n].checks.push(tx.fromPlain({colorValues:t.ColorValues,rectCount:t.RectCount,expectedCount:t.ExpectedCount,checkType:t.Type,location:{light:void 0,rect:t.RectArray},diagnose:t.ElementDiagnose??ir.UNKNOWN,checkResult:t.ElementResult??j.WAS_NOT_DONE}))}),nc.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(hx.includes(t.ElementType))return;let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(fx.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push(rx.fromPlain({checkType:t.Type,checkResult:t.ElementResult??j.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ir.UNKNOWN,image:t.Image.image,referenceImage:t.EtalonImage.image,similarity:t.PercentValue??0,type:t.ElementType,location:{light:n,rect:t.Area?[t.Area]:[]}}))}),oc.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{t===-1&&(r.groups.push(fx.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(lx.fromPlain({reference:{type:n.EtalonResultType,reference:n.EtalonResultOCR,result:n.SecurityTextResultOCR,location:{light:n.EtalonLightType,rect:n.EtalonFieldRect?[n.EtalonFieldRect]:[]}},checkType:n.Type,checkResult:n.ElementResult??j.WAS_NOT_DONE,type:n.EtalonFieldType,diagnose:n.ElementDiagnose??ir.UNKNOWN,location:{light:n.LightType,rect:n.FieldRect?[n.FieldRect]:[]}}))}),e.List?.length||r.groups.push(fx.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}if(dc.isBelongs(e)&&e.List.forEach(t=>{let n=t.LightIndex;if(t.ResultImages?.Images?.length){let i=r.groups.findIndex(e=>e.group===t.Type);i===-1&&(r.groups.push(fx.fromPlain({group:t.Type,checkResult:e.Result,checks:[]})),i=r.groups.length-1),r.groups[i].checks.push(ax.fromPlain({checkType:t.Type,checkResult:t.ElementResult??j.WAS_NOT_DONE,diagnose:t.ElementDiagnose??ir.UNKNOWN,image:t.ResultImages.Images[0].image,location:n===mr.OFF?void 0:{light:n,rect:t.Area?[t.Area]:[]}}))}}),hc.isBelongs(e)){let t=r.groups.findIndex(t=>t.group===e.Type);e.List.forEach(n=>{hx.includes(n.ElementType)||(t===-1&&(r.groups.push(fx.fromPlain({group:n.Type,checkResult:e.Result,checks:[]})),t=r.groups.length-1),r.groups[t].checks.push(sx.fromPlain({checkType:n.Type,checkResult:n.ElementResult??j.WAS_NOT_DONE,diagnose:n.ElementDiagnose??ir.UNKNOWN,feature:n.ElementType??zr.BLANK,location:{light:void 0,rect:n.ElementRect?[n.ElementRect]:[]}})))}),e.List?.length||r.groups.push(fx.fromPlain({group:e.Type,checkResult:e.Result,checks:[]}))}}),r.groups.forEach(e=>e.checks.sort((e,t)=>e.checkResult-t.checkResult)),r.checkResult=Yb(r.groups.map(({checkResult:e})=>e)),r.groups.sort((e,t)=>e.checkResult-t.checkResult),n.push(r)}),n.sort((e,t)=>e.page-t.page)},_x=function(e){return 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}({}),vx,yx=class{static{vx=this}static{this.fromPlain=e=>X(vx,e)}};q([F(),V(_x),K(`design:type`,_x===void 0?Object:_x)],yx.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yx.prototype,`checkResult`,void 0),q([F(),B(),K(`design:type`,Number)],yx.prototype,`similarity`,void 0),q([F(),U(),K(`design:type`,String)],yx.prototype,`image`,void 0),yx=vx=q([J()],yx);var bx,xx=class{static{bx=this}static{this.fromPlain=e=>Ns(bx,e)}};q([F(),U(),K(`design:type`,String)],xx.prototype,`image`,void 0),q([F(),V(_x),K(`design:type`,_x===void 0?Object:_x)],xx.prototype,`source`,void 0),q([F(),L({each:!0}),Y(()=>yx),K(`design:type`,Array)],xx.prototype,`comparable`,void 0),q([F(),V(ir),K(`design:type`,ir===void 0?Object:ir)],xx.prototype,`diagnose`,void 0),xx=bx=q([J()],xx);var Sx=e=>{let t=bc.fromProcessResponse(e),n=[];return t.forEach(e=>{e.AuthenticityCheckList.List.forEach(e=>{if(nc.isBelongs(e)){if(e.Type!==A.PORTRAIT_COMPARISON)return;e.List.forEach(e=>{if(![zr.PORTRAIT_COMPARISON_VS_CAMERA,zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_VISUAL,zr.PORTRAIT_COMPARISON_EXT_VS_RFID,zr.PORTRAIT_COMPARISON_EXT_VS_CAMERA,zr.PORTRAIT_COMPARISON_EXT_VS_BARCODE,zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType))return;let t=_x.PORTRAIT,r=_x.CAMERA;switch(e.ElementType){case zr.PORTRAIT_COMPARISON_VS_CAMERA:t=_x.PORTRAIT,r=_x.CAMERA;break;case zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA:t=_x.RFID,r=_x.CAMERA;break;case zr.PORTRAIT_COMPARISON_EXT_VS_VISUAL:t=_x.EXTERNAL,r=_x.VISUAL;break;case zr.PORTRAIT_COMPARISON_EXT_VS_RFID:t=_x.EXTERNAL,r=_x.RFID;break;case zr.PORTRAIT_COMPARISON_EXT_VS_CAMERA:t=_x.EXTERNAL,r=_x.CAMERA;break;case zr.PORTRAIT_COMPARISON_EXT_VS_BARCODE:t=_x.EXTERNAL,r=_x.BARCODE;break;case zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA:t=_x.BARCODE,r=_x.CAMERA;break}let i=[zr.PORTRAIT_COMPARISON_VS_CAMERA,zr.PORTRAIT_COMPARISON_RFID_VS_CAMERA,zr.PORTRAIT_COMPARISON_BARCODE_VS_CAMERA].includes(e.ElementType),a=n.findIndex(e=>i?e.source===r:e.source===t);a===-1&&(n.push(xx.fromPlain({diagnose:e.ElementDiagnose,source:i?r:t,comparable:[],image:i?e.Image.image:e.EtalonImage.image})),a=n.length-1),n[a].comparable.push(yx.fromPlain({source:i?t:r,checkResult:e.ElementResult,similarity:e.PercentValue,image:i?e.EtalonImage.image:e.Image.image}))})}})}),n},Cx=class{};q([F(),B(),K(`design:type`,Number)],Cx.prototype,`length`,void 0),q([F(),V(nr),K(`design:type`,nr===void 0?Object:nr)],Cx.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],Cx.prototype,`data`,void 0);var wx=class{};q([F(),B(),K(`design:type`,Number)],wx.prototype,`fieldIndex`,void 0),q([F(),V(rr),K(`design:type`,rr===void 0?Object:rr)],wx.prototype,`type`,void 0),q([F(),V(ro),K(`design:type`,ro===void 0?Object:ro)],wx.prototype,`resultCode`,void 0),q([F(),Y(()=>Cx),L({each:!0}),K(`design:type`,Array)],wx.prototype,`modulesData`,void 0);var Tx,Ex=class{static{Tx=this}static{this.fromPlain=e=>X(Tx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Tx.getValidationErrors(e).length===0)}};q([F(),B(),K(`design:type`,Number)],Ex.prototype,`pageIndex`,void 0),q([F(),Y(()=>wx),L({each:!0}),K(`design:type`,Array)],Ex.prototype,`fields`,void 0),Ex=Tx=q([J()],Ex);var Dx=e=>{let t=[];return Nc.fromProcessResponse(e).forEach(e=>{if(!e.DocBarCodeInfo?.pArrayFields?.length)return;let n=new Ex;n.pageIndex=e.page_idx??0,n.fields=[],e.DocBarCodeInfo.pArrayFields.map((e,t)=>{let r=new wx;r.fieldIndex=t,r.resultCode=e.bcCodeResult??ro.NO_ERR,r.type=e.bcType_DECODE??rr.UNKNOWN,r.modulesData=[],e.bcDataModule?.map(e=>{if(e.mLength===void 0||e.mType===void 0||e.mData===void 0)return;let t=new Cx;t.data=e.mData,t.length=e.mLength,t.type=e.mType,r.modulesData.push(t)}),n.fields.push(r)}),t.push(n)}),t.filter(e=>!!e.fields.length)},Ox=class{};q([F(),H(),K(`design:type`,Number)],Ox.prototype,`pageIndex`,void 0),q([I(),U(),K(`design:type`,String)],Ox.prototype,`src`,void 0),q([F(),H(),K(`design:type`,Number)],Ox.prototype,`width`,void 0),q([F(),H(),K(`design:type`,Number)],Ox.prototype,`height`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],Ox.prototype,`source`,void 0);var kx,Ax=class{static{kx=this}static{this.fromPlain=e=>X(kx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>!kx.getValidationErrors(e).length)}};q([F(),V(mr),K(`design:type`,mr===void 0?Object:mr)],Ax.prototype,`light`,void 0),q([F(),V(lr),K(`design:type`,lr===void 0?Object:lr)],Ax.prototype,`fieldType`,void 0),q([F(),U(),K(`design:type`,String)],Ax.prototype,`name`,void 0),q([F(),Y(()=>Ox),L({each:!0}),K(`design:type`,Array)],Ax.prototype,`pages`,void 0),Ax=kx=q([J()],Ax);var jx=async(e,t,n)=>{let r=[],i=Ll.fromProcessResponse(e);if(!i.length)return r;let a=Ml.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new Ax;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f={width:0,height:0};d&&(f=await Sv(d));let p=new Ox;p.pageIndex=s,p.src=d,p.width=f.width,p.height=f.height,p.source=a.source,r[u].pages.push(p)}}return r},Mx=(e,t,n)=>{let r=[],i=Ll.fromProcessResponse(e);if(!i.length)return r;let a=Ml.fromContainers(i,t);for(let e=0;e<a.length;e++){let t=a[e],{fieldName:i}=t;for(let e=0;e<t.valueList.length;e++){let a=t.valueList[e],{lightIndex:o,pageIndex:s,value:c,containerType:l}=a;if(n&&!n.includes(l))continue;let u=r.findIndex(e=>e.light===o&&e.fieldType===t.fieldType);if(u<0){let e=new Ax;e.name=i,e.fieldType=t.fieldType,e.light=o,e.pages=[],u=r.push(e)-1}let d=c?`data:image/jpeg;base64,${c}`:void 0,f=new Ox;f.pageIndex=s,f.src=d,f.width=0,f.height=0,f.source=a.source,r[u].pages.push(f)}}return r},Nx,Px=class{static{Nx=this}static{this.fromPlain=e=>X(Nx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>Nx.getValidationErrors(e).length===0)}};q([F(),U(),K(`design:type`,String)],Px.prototype,`src`,void 0),q([F(),H(),K(`design:type`,Number)],Px.prototype,`width`,void 0),q([F(),H(),K(`design:type`,Number)],Px.prototype,`height`,void 0),Px=Nx=q([J()],Px);var Fx=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAoMBgDTD2qgAAAAASUVORK5CYII=`;async function Ix(e,t,n=!0,r){let i=new Px;i.width=1,i.height=1,i.src=Fx;let a=Ll.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o){i.src=`data:image/jpeg;base64,${o}`;let e=await Sv(i.src);i.width=e.width,i.height=e.height}else if(!n)return;return i}function Lx(e,t,n=!0,r){let i=new Px;i.width=1,i.height=1,i.src=Fx;let a=Ll.fromProcessResponse(e);if(!a.length)return n?i:void 0;let o;if(a.forEach(e=>{if(!o)for(let n=0;n<e.Images.fieldList.length;n++){let i=e.Images.fieldList[n];if(i.fieldType===t)for(let e=0;e<i.valueList.length;e++){let t=i.valueList[e];if(r&&r.includes(t.lightIndex)||!r){o=t.value;break}}}}),o)i.src=`data:image/jpeg;base64,${o}`,i.width=0,i.height=0;else if(!n)return;return i}var Rx=class{};q([F(),V(ur),K(`design:type`,ur===void 0?Object:ur)],Rx.prototype,`checkType`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Rx.prototype,`checkResult`,void 0),q([I(),L(),Y(()=>Fs),K(`design:type`,Fs===void 0?Object:Fs)],Rx.prototype,`areas`,void 0);var zx,Bx=class{static{zx=this}static{this.fromPlain=e=>X(zx,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>zx.getValidationErrors(e).length===0)}};q([F(),B(),K(`design:type`,Number)],Bx.prototype,`pageIndex`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Bx.prototype,`checkResult`,void 0),q([F(),Y(()=>Rx),L({each:!0}),K(`design:type`,Array)],Bx.prototype,`checks`,void 0),Bx=zx=q([J()],Bx);var Vx=(function(){function e(e){return e}function t(e){return typeof e==`string`?e.toLowerCase():e}function n(n,r){if(r=typeof r==`object`?r:{direction:r},typeof n!=`function`){var i=n;n=function(e){return e[i]?e[i]:``}}if(n.length===1){var a=n,o=r.ignoreCase?t:e,s=r.cmp||function(e,t){return e<t?-1:+(e>t)};n=function(e,t){return s(o(a(e)),o(a(t)))}}return r.direction in{"-1":``,desc:``}?function(e,t){return-n(e,t)}:n}function r(e,t){var i=typeof this==`function`&&!this.firstBy?this:!1,a=n(e,t),o=i?function(e,t){return i(e,t)||a(e,t)}:a;return o.thenBy=r,o}return r.firstBy=r,r})(),Hx=e=>{let t=[];return Al.fromProcessResponse(e).sort(Vx(e=>e.page_idx)).forEach(e=>{let n=new Bx;n.pageIndex=e.page_idx??0,n.checks=[],n.checkResult=e.ImageQualityCheckList.result,e.ImageQualityCheckList.List.forEach(e=>{if(e.result===void 0||e.type===void 0)return;let t=new Rx;t.checkResult=e.result,t.checkType=e.type,e.areas&&(t.areas=e.areas),n.checks.push(t)}),t.push(n)}),t.filter(e=>e.checks.length)},Ux,Wx=class{static{Ux=this}static{this.fromPlain=e=>X(Ux,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),V(Nr),K(`design:type`,Nr===void 0?Object:Nr)],Wx.prototype,`certificateType`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`publicKeyAlgorithm`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`signatureAlgorithm`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`issuer`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`subject`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`validFrom`,void 0),q([F(),U(),K(`design:type`,String)],Wx.prototype,`validTo`,void 0),Wx=Ux=q([J()],Wx);var Gx=(e,t=`UNKNOWN`)=>{let n=cl.fromProcessResponse(e),r=[];return n.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.SecurityObjects.forEach(e=>{e.SignerInfos.forEach(e=>{e.CertificateChain.forEach(e=>{let n=new Wx;n.certificateType=e.Type??Nr.UNDEFINED,n.publicKeyAlgorithm=e.SubjectPKAlgorithm??t,n.signatureAlgorithm=e.SignatureAlgorithm??t,n.issuer=e.Issuer.FriendlyName.Data??t,n.subject=e.Subject.FriendlyName.Data??t,e.Validity.NotBefore.Data?n.validFrom=Jb(e.Validity.NotBefore.Data):n.validFrom=t,e.Validity.NotAfter.Data?n.validTo=Jb(e.Validity.NotAfter.Data):n.validTo=t,r.push(n)})})})}),r},Kx=e=>{let t=rl.fromProcessResponse(e),n=[];if(t.forEach(e=>{e.Status.detailsRFID&&n.push(e.Status.detailsRFID)}),n.length)return n[0];let r=new Qc;return r.AA=j.WAS_NOT_DONE,r.BAC=j.WAS_NOT_DONE,r.CA=j.WAS_NOT_DONE,r.PA=j.WAS_NOT_DONE,r.PACE=j.WAS_NOT_DONE,r.TA=j.WAS_NOT_DONE,r.overallStatus=j.WAS_NOT_DONE,r},qx=function(e){return e[e.NOT_PERFORMED=Tr.RFID_Error_NotPerformed]=`NOT_PERFORMED`,e[e.NOT_AVAILABLE=Tr.RFID_Error_NotAvailable]=`NOT_AVAILABLE`,e[e.NO_ERROR=Tr.RFID_Error_NoError]=`NO_ERROR`,e[e.FAILED=Tr.RFID_Error_Failed]=`FAILED`,e}({}),Jx,Yx=class{static{Jx=this}static{this.fromPlain=e=>X(Jx,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),H(),K(`design:type`,Number)],Yx.prototype,`group`,void 0),q([F(),V(qx),K(`design:type`,qx===void 0?Object:qx)],Yx.prototype,`status`,void 0),Yx=Jx=q([J()],Yx);var Xx=e=>{let t;switch(e){case N.ID_DG1:case N.PASSPORT_DG1:case N.DL_DG1:t=1;break;case N.ID_DG2:case N.PASSPORT_DG2:case N.DL_DG2:t=2;break;case N.ID_DG3:case N.PASSPORT_DG3:case N.DL_DG3:t=3;break;case N.ID_DG4:case N.PASSPORT_DG4:case N.DL_DG4:t=4;break;case N.ID_DG5:case N.PASSPORT_DG5:case N.DL_DG5:t=5;break;case N.ID_DG6:case N.PASSPORT_DG6:case N.DL_DG6:t=6;break;case N.ID_DG7:case N.PASSPORT_DG7:case N.DL_DG7:t=7;break;case N.ID_DG8:case N.PASSPORT_DG8:case N.DL_DG8:t=8;break;case N.ID_DG9:case N.PASSPORT_DG9:case N.DL_DG9:t=9;break;case N.ID_DG10:case N.PASSPORT_DG10:case N.DL_DG10:t=10;break;case N.ID_DG11:case N.PASSPORT_DG11:case N.DL_DG11:t=11;break;case N.ID_DG12:case N.PASSPORT_DG12:case N.DL_DG12:t=12;break;case N.ID_DG13:case N.PASSPORT_DG13:case N.DL_DG13:t=13;break;case N.ID_DG14:case N.PASSPORT_DG14:case N.DL_DG14:t=14;break;case N.ID_DG15:case N.PASSPORT_DG15:t=15;break;case N.ID_DG16:case N.PASSPORT_DG16:t=16;break;case N.ID_DG17:case N.PASSPORT_DG17:case N.DTC_DG17:t=17;break;case N.ID_DG18:case N.PASSPORT_DG18:case N.DTC_DG18:t=18;break;case N.ID_DG19:case N.PASSPORT_DG19:t=19;break;case N.ID_DG20:case N.PASSPORT_DG20:t=20;break;case N.ID_DG21:t=21;break;case N.DTC_DG22:t=22;break;case N.DTC_DG23:t=23;break;case N.DTC_DG24:t=24;break}return t},Zx=e=>{let t=cl.fromProcessResponse(e),n=[];return t.forEach(e=>{let t=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data,r=e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_ePassp_Directory||[];t?.Applications.forEach((e,t,i)=>{let a=e.Type,o=[];if(!(a===kr.eDTC_PC&&i.length>1)&&(e.Files.forEach(e=>{let t=e.Type,n=Xx(t),r=qx.NOT_AVAILABLE;switch(e.PA_Status){case Tr.RFID_Error_NoError:r=qx.NO_ERROR;break;case Tr.RFID_Error_NotPerformed:r=qx.NOT_PERFORMED;break;case Tr.RFID_Error_NotAvailable:r=qx.NOT_AVAILABLE;break;case Tr.RFID_Error_Failed:r=qx.FAILED;break}n&&o.push({index:n,status:r})}),r.forEach(e=>{let t=Xx(e),n=o.findIndex(e=>e.index===t);t!==void 0&&n<0&&o.push({index:t,status:qx.NOT_PERFORMED})}),o.length)){let e=o.sort((e,t)=>e.index-t.index),t=0;switch(a){case kr.E_PASSPORT:t=16;break;case kr.E_ID:t=21;break;case kr.E_DL:t=14;break;default:{let n=e.map(e=>e.index),r=Math.max(...n);t=n.includes(2)&&n.includes(3)&&n.includes(8)&&r<=8?8:n.includes(1)&&n.includes(2)&&n.includes(6)&&n.includes(10)&&r<=10?10:r;break}}for(let n=1;n<=t;n++)e.find(e=>e.index===n)||e.splice(n-1,0,{index:n,status:qx.NOT_AVAILABLE});n=e.map(e=>{let t=new Yx;return t.group=e.index,t.status=e.status,t})}})}),n},Qx=class{};q([F(),V(N),K(`design:type`,N===void 0?Object:N)],Qx.prototype,`group`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],Qx.prototype,`status`,void 0);var $x,eS=class{static{$x=this}static{this.fromPlain=e=>X($x,e)}static{this.getValidationErrors=e=>G(e)}};q([F(),V(kr),K(`design:type`,kr===void 0?Object:kr)],eS.prototype,`type`,void 0),q([F(),Y(()=>Qx),L({each:!0}),K(`design:type`,Array)],eS.prototype,`groups`,void 0),eS=$x=q([J()],eS);var tS=e=>{let t=cl.fromProcessResponse(e),n=[];return t.forEach(e=>{(e.TDocBinaryInfo.RFID_BINARY_DATA?.RFID_Session_Data)?.Applications.forEach(e=>{let t={type:e.Type,groups:[]};e.Files.forEach(e=>{let n=e.Type,r=j.WAS_NOT_DONE;switch(e.PA_Status){case Tr.RFID_Error_NotPerformed:case Tr.RFID_Error_NotAvailable:r=j.WAS_NOT_DONE;break;case Tr.RFID_Error_NoError:r=j.OK;break;default:r=j.ERROR;break}t.groups.push({group:n,status:r})}),n.push(t)})}),n},nS=function(e){return e.DOC_TYPE=`DOC_TYPE`,e.EXPIRY=`EXPIRY`,e.IMAGE_QA=`IMAGE_QA`,e.MRZ=`MRZ`,e.SECURITY=`SECURITY`,e.TEXT=`TEXT`,e}({}),rS=function(e){return e.AA=`AA`,e.BAC=`BAC`,e.CA=`CA`,e.PA=`PA`,e.PACE=`PACE`,e.TA=`TA`,e}({}),iS=function(e){return e.OPTICAL=`optical`,e.PORTRAIT=`portrait`,e.RFID=`rfid`,e.STOP_LIST=`stopList`,e}({}),aS=class{static{nS.DOC_TYPE,nS.EXPIRY,nS.IMAGE_QA,nS.MRZ,nS.SECURITY,nS.TEXT}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],aS.prototype,null,void 0);var oS=class{static{iS.OPTICAL,iS.PORTRAIT,iS.RFID,iS.STOP_LIST}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],oS.prototype,null,void 0);var sS=class{static{rS.AA,rS.BAC,rS.CA,rS.PACE,rS.PA,rS.TA}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],sS.prototype,null,void 0);var cS,lS=class{static{cS=this}static{this.fromPlain=e=>X(cS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>cS.getValidationErrors(e).length===0)}};q([F(),V(j),K(`design:type`,j===void 0?Object:j)],lS.prototype,`overallStatus`,void 0),q([F(),Y(()=>aS),L(),K(`design:type`,aS===void 0?Object:aS)],lS.prototype,`optical`,void 0),q([F(),Y(()=>sS),L(),K(`design:type`,sS===void 0?Object:sS)],lS.prototype,`rfId`,void 0),q([F(),Y(()=>oS),L(),K(`design:type`,oS===void 0?Object:oS)],lS.prototype,`summary`,void 0),lS=cS=q([J()],lS);var uS=e=>{let t=new lS,n=rl.fromProcessResponse(e);if(t.overallStatus=j.WAS_NOT_DONE,!n.length)return t.optical=new aS,t.optical[nS.DOC_TYPE]=j.WAS_NOT_DONE,t.optical[nS.TEXT]=j.WAS_NOT_DONE,t.optical[nS.SECURITY]=j.WAS_NOT_DONE,t.optical[nS.MRZ]=j.WAS_NOT_DONE,t.optical[nS.IMAGE_QA]=j.WAS_NOT_DONE,t.optical[nS.EXPIRY]=j.WAS_NOT_DONE,t.rfId=new sS,t.rfId[rS.AA]=j.WAS_NOT_DONE,t.rfId[rS.BAC]=j.WAS_NOT_DONE,t.rfId[rS.CA]=j.WAS_NOT_DONE,t.rfId[rS.PA]=j.WAS_NOT_DONE,t.rfId[rS.PACE]=j.WAS_NOT_DONE,t.rfId[rS.TA]=j.WAS_NOT_DONE,t.summary=new oS,t.summary[iS.OPTICAL]=j.WAS_NOT_DONE,t.summary[iS.PORTRAIT]=j.WAS_NOT_DONE,t.summary[iS.RFID]=j.WAS_NOT_DONE,t.summary[iS.STOP_LIST]=j.WAS_NOT_DONE,t;let r=n[0].Status;return t.overallStatus=r.overallStatus,t.optical=new aS,t.optical[nS.DOC_TYPE]=r.detailsOptical.docType??j.WAS_NOT_DONE,t.optical[nS.TEXT]=r.detailsOptical.text??j.WAS_NOT_DONE,t.optical[nS.SECURITY]=r.detailsOptical.security??j.WAS_NOT_DONE,t.optical[nS.MRZ]=r.detailsOptical.mrz??j.WAS_NOT_DONE,t.optical[nS.IMAGE_QA]=r.detailsOptical.imageQA??j.WAS_NOT_DONE,t.optical[nS.EXPIRY]=r.detailsOptical.expiry??j.WAS_NOT_DONE,t.rfId=new sS,t.rfId[rS.AA]=r.detailsRFID?.AA??j.WAS_NOT_DONE,t.rfId[rS.BAC]=r.detailsRFID?.BAC??j.WAS_NOT_DONE,t.rfId[rS.CA]=r.detailsRFID?.CA??j.WAS_NOT_DONE,t.rfId[rS.PA]=r.detailsRFID?.PA??j.WAS_NOT_DONE,t.rfId[rS.PACE]=r.detailsRFID?.PACE??j.WAS_NOT_DONE,t.rfId[rS.TA]=r.detailsRFID?.TA??j.WAS_NOT_DONE,t.summary=new oS,t.summary[iS.OPTICAL]=r.optical??j.WAS_NOT_DONE,t.summary[iS.PORTRAIT]=r.portrait??j.WAS_NOT_DONE,t.summary[iS.RFID]=r.rfid??j.WAS_NOT_DONE,t.summary[iS.STOP_LIST]=r.stopList??j.WAS_NOT_DONE,t},dS=(e,t)=>e.reduce((e,n)=>e===j.ERROR||t(n)===j.ERROR?j.ERROR:e===j.WAS_NOT_DONE&&t(n)===j.OK?j.OK:j.WAS_NOT_DONE,j.WAS_NOT_DONE),fS=e=>{let t=new lS;return t.overallStatus=dS(e,e=>e.overallStatus),t.optical=new aS,t.optical[nS.DOC_TYPE]=dS(e,e=>e.optical[nS.DOC_TYPE]),t.optical[nS.TEXT]=dS(e,e=>e.optical[nS.TEXT]),t.optical[nS.SECURITY]=dS(e,e=>e.optical[nS.SECURITY]),t.optical[nS.MRZ]=dS(e,e=>e.optical[nS.MRZ]),t.optical[nS.IMAGE_QA]=dS(e,e=>e.optical[nS.IMAGE_QA]),t.optical[nS.EXPIRY]=dS(e,e=>e.optical[nS.EXPIRY]),t.rfId=new sS,t.rfId[rS.AA]=dS(e,e=>e.rfId[rS.AA]),t.rfId[rS.BAC]=dS(e,e=>e.rfId[rS.BAC]),t.rfId[rS.CA]=dS(e,e=>e.rfId[rS.CA]),t.rfId[rS.PA]=dS(e,e=>e.rfId[rS.PA]),t.rfId[rS.PACE]=dS(e,e=>e.rfId[rS.PACE]),t.rfId[rS.TA]=dS(e,e=>e.rfId[rS.TA]),t.summary=new oS,t.summary[iS.OPTICAL]=dS(e,e=>e.summary[iS.OPTICAL]),t.summary[iS.PORTRAIT]=dS(e,e=>e.summary[iS.PORTRAIT]),t.summary[iS.RFID]=dS(e,e=>e.summary[iS.RFID]),t.summary[iS.STOP_LIST]=dS(e,e=>e.summary[iS.STOP_LIST]),t},pS,mS=class{static{pS=this}static{this.fromPlain=e=>X(pS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>pS.getValidationErrors(e).length===0)}};q([F(),B(),K(`design:type`,Number)],mS.prototype,`pageIndex`,void 0),q([F(),U(),K(`design:type`,String)],mS.prototype,`documentName`,void 0),q([F(),z(),K(`design:type`,Boolean)],mS.prototype,`isDeprecated`,void 0),q([F(),B(),K(`design:type`,Number)],mS.prototype,`probability`,void 0),q([F(),B(),K(`design:type`,Number)],mS.prototype,`documentId`,void 0),q([I(),U(),K(`design:type`,String)],mS.prototype,`documentCategory`,void 0),mS=pS=q([J()],mS);function hS(e){let t=Jl.fromProcessResponse(e),n=[];for(let e=0;e<t.length;e++){let r=t[e];r.OneCandidate?.DocumentName&&n.push(mS.fromPlain({documentName:r.OneCandidate.DocumentName,pageIndex:r.page_idx??0,isDeprecated:r.OneCandidate.FDSIDList?.isDeprecated,documentId:r.OneCandidate.ID,probability:r.OneCandidate.P,documentCategory:r.OneCandidate.FDSIDList?.dDescription}))}return n}var gS,_S=class{static{gS=this}static{this.fromPlain=e=>X(gS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>gS.getValidationErrors(e).length===0)}};q([F(),U(),K(`design:type`,String)],_S.prototype,`value`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],_S.prototype,`checkResult`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],_S.prototype,`lcid`,void 0),_S=gS=q([J()],_S);var vS=(e,t=`UNKNOWN`)=>{let n=su.fromProcessResponse(e),r=_S.fromPlain({value:t,checkResult:j.ERROR,lcid:pr.LATIN});if(!n.length)return r;for(let e=0;e<n.length;e++){let{Text:t}=n[e],r=t.fieldList.findIndex(e=>e.lcid===pr.LATIN&&e.fieldType===P.SURNAME_AND_GIVEN_NAMES);if(r!==-1){let e=t.fieldList[r];return _S.fromPlain({value:e.value,checkResult:e.status,lcid:e.lcid})}}for(let e=0;e<n.length;e++){let{Text:t}=n[e];for(let e=0;e<t.fieldList.length;e++){let n=t.fieldList[e];if(n.fieldType===P.SURNAME_AND_GIVEN_NAMES&&n.value)return _S.fromPlain({value:n.value,checkResult:n.status,lcid:n.lcid})}}return r},yS=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],yS.prototype,`source`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],yS.prototype,`checkResult`,void 0),q([F(),U(),K(`design:type`,String)],yS.prototype,`value`,void 0),q([F(),K(`design:type`,Number)],yS.prototype,`probability`,void 0),q([F(),K(`design:type`,Number)],yS.prototype,`pageIndex`,void 0),q([I(),Y(()=>Z),L(),K(`design:type`,Z===void 0?Object:Z)],yS.prototype,`rect`,void 0),q([I(),Y(()=>Rs),L(),K(`design:type`,Rs===void 0?Object:Rs)],yS.prototype,`rfidOrigin`,void 0);var bS=class{};q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],bS.prototype,`sourceLeft`,void 0),q([F(),V(Br),K(`design:type`,Br===void 0?Object:Br)],bS.prototype,`sourceRight`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],bS.prototype,`status`,void 0);var xS,SS=class{static{xS=this}static{this.fromPlain=e=>X(xS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>(Array.isArray(e)?e:[e]).every(e=>xS.getValidationErrors(e).length===0)}};q([F(),V(P),K(`design:type`,P===void 0?Object:P)],SS.prototype,`type`,void 0),q([F(),U(),K(`design:type`,String)],SS.prototype,`value`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],SS.prototype,`checkResult`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],SS.prototype,`lcid`,void 0),q([F(),L({each:!0}),Y(()=>bS),K(`design:type`,Array)],SS.prototype,`comparisonList`,void 0),q([F(),Y(()=>yS),L({each:!0}),K(`design:type`,Array)],SS.prototype,`bySource`,void 0),SS=xS=q([J()],SS);var CS=e=>{let t=[],n=su.fromProcessResponse(e);return n.length&&n.forEach(e=>{e.Text.fieldList.forEach(e=>{let n=new SS;n.type=e.fieldType,n.value=e.value,n.lcid=e.lcid,n.checkResult=e.status,n.comparisonList=e.comparisonList?.map(e=>{let t=new bS;return t.sourceLeft=e.sourceLeft,t.sourceRight=e.sourceRight,t.status=e.status,t})||[],n.bySource=[],e.valueList.forEach(t=>{let r=new yS;r.checkResult=e.validityList.find(e=>e.source===t.source)?.status??j.WAS_NOT_DONE,r.source=t.source,r.value=t?.value??``,r.pageIndex=t?.pageIndex??0,r.probability=t?.probability??0,t.fieldRect&&(r.rect=t.fieldRect),t.rfidOrigin&&(r.rfidOrigin=t.rfidOrigin),n.bySource.push(r)}),n.bySource.length&&t.push(n)})}),t},wS,TS=class{static{wS=this}static{this.fromPlain=e=>X(wS,e)}static{this.getValidationErrors=e=>G(e)}static{this.isValid=e=>Array.isArray(e)?e.every(e=>wS.getValidationErrors(e).length===0):wS.getValidationErrors(e).length===0}};q([F(),U(),K(`design:type`,String)],TS.prototype,`value`,void 0),q([F(),V(j),K(`design:type`,j===void 0?Object:j)],TS.prototype,`status`,void 0),q([F(),V(pr),K(`design:type`,pr===void 0?Object:pr)],TS.prototype,`lcid`,void 0),TS=wS=q([J()],TS);function ES(e,t){let n=su.fromProcessResponse(e),r=[];for(let e=0;e<n.length;e++)n[e].Text.fieldList.forEach(e=>{e.fieldType===t&&r.push(TS.fromPlain({value:e.value,status:e.status,lcid:e.lcid}))});return r.sort((e,t)=>e.lcid-t.lcid)}function DS(e){return ES(e,P.DATE_OF_EXPIRY)}function OS(e){return ES(e,P.ISSUING_STATE_NAME)}function kS(e){return ES(e,P.DOCUMENT_NUMBER)}function AS(e){return ES(e,P.AGE)}function jS(e){return ES(e,P.NATIONALITY_CODE)}function MS(e){return ES(e,P.SEX)}var NS=class extends TypeError{constructor(e,t){super(e),this.name=`DocReaderTypeError`,this.message=e,this.errors=t}};if(!l)throw Error(`reflect-metadata polyfill failed to load`);exports.AreaArray=Fs,exports.AuthenticityCheckList=_c,Object.defineProperty(exports,"AuthenticityCheckListContainer",{enumerable:!0,get:function(){return bc}}),exports.AuthenticityCheckListContainerResultTypes=yc,Object.defineProperty(exports,"AuthenticityFibersTypeCheckResult",{enumerable:!0,get:function(){return Qs}}),exports.AuthenticityFibersTypeCheckResultTypes=Zs,Object.defineProperty(exports,"AuthenticityIdentCheckResult",{enumerable:!0,get:function(){return nc}}),exports.AuthenticityIdentCheckResultTypes=tc,Object.defineProperty(exports,"AuthenticityOCRSecurityTextCheckResult",{enumerable:!0,get:function(){return oc}}),exports.AuthenticityOCRSecurityTextCheckResultTypes=ac,Object.defineProperty(exports,"AuthenticityPhotoIdentCheckResult",{enumerable:!0,get:function(){return dc}}),exports.AuthenticityPhotoIdentCheckResultTypes=uc,Object.defineProperty(exports,"AuthenticitySecurityFeatureCheckResult",{enumerable:!0,get:function(){return hc}}),exports.AuthenticitySecurityFeatureCheckResultTypes=mc,exports.AuthenticityTextCheckReferenceTypes=Zb,Object.defineProperty(exports,"BSIv2Container",{enumerable:!0,get:function(){return ld}}),exports.BSIv2ContainerResultTypes=cd,Object.defineProperty(exports,"BarcodeBoundsResultContainer",{enumerable:!0,get:function(){return Ec}}),exports.BarcodeBoundsResultContainerResultTypes=Tc,exports.BinaryData=Q,exports.BoundsResult=Is,Object.defineProperty(exports,"BoundsResultContainer",{enumerable:!0,get:function(){return Cc}}),exports.BoundsResultContainerResultTypes=Sc,Object.defineProperty(exports,"ByteArrayContainer",{enumerable:!0,get:function(){return qu}}),exports.ByteArrayContainerResultTypes=Ku,exports.CertificateData=Rc,exports.ContainerList=md,exports.DetailsAge=$c,exports.DetailsOptical=Zc,exports.DetailsRFID=Qc,exports.DocBarCodeField=kc,exports.DocBarCodeInfo=Ac,Object.defineProperty(exports,"DocBarCodeInfoContainer",{enumerable:!0,get:function(){return Nc}}),exports.DocBarCodeInfoContainerResultTypes=Mc,exports.DocBinaryInfo=al,Object.defineProperty(exports,"DocBinaryInfoContainer",{enumerable:!0,get:function(){return cl}}),exports.DocBinaryInfoContainerResultTypes=sl,exports.DocGraphicField=ll,exports.DocGraphicsInfo=ul,Object.defineProperty(exports,"DocGraphicsInfoContainer",{enumerable:!0,get:function(){return pl}}),exports.DocGraphicsInfoContainerResultTypes=fl,exports.DocReaderTypeError=NS,exports.DocVisualExtendedField=vl,exports.DocVisualExtendedInfo=yl,Object.defineProperty(exports,"DocVisualExtendedInfoContainer",{enumerable:!0,get:function(){return Sl}}),exports.DocVisualExtendedInfoContainerResultTypes=xl,Object.defineProperty(exports,"DocumentTypesCandidatesContainer",{enumerable:!0,get:function(){return Du}}),exports.DocumentTypesCandidatesContainerResultTypes=Eu,exports.DocumentTypesCandidatesList=wu,exports.DocumentsDatabase=Dd,Object.defineProperty(exports,"EncryptedRCLContainer",{enumerable:!0,get:function(){return Tl}}),exports.EncryptedRCLContainerResultTypes=wl,exports.ErrorCoordinates=gu,exports.FDSIDList=zs,exports.FaceApi=gd,exports.FaceApiSearch=hd,exports.FaceDetection=Fu,Object.defineProperty(exports,"FaceDetectionContainer",{enumerable:!0,get:function(){return Ru}}),exports.FaceDetectionContainerResultTypes=Lu,exports.FaceItem=Pu,Object.defineProperty(exports,"FibersType",{enumerable:!0,get:function(){return Js}}),exports.FieldItem=_u,exports.FileImage=zu,exports.GraphData=Bu,exports.IdentResult=$s,exports.ImageData=Ls,exports.ImageField=Ml,exports.ImageFieldValue=jl,exports.ImageQA=_d,exports.ImageQualityCheck=El,exports.ImageQualityCheckList=Dl,Object.defineProperty(exports,"ImageQualityCheckListContainer",{enumerable:!0,get:function(){return Al}}),exports.ImageQualityCheckListContainerResultTypes=kl,exports.ImageSource=Nl,exports.ImagesResult=Pl,Object.defineProperty(exports,"ImagesResultContainer",{enumerable:!0,get:function(){return Ll}}),exports.ImagesResultContainerResultTypes=Il,exports.IsStringObjectRecord=Sd,Object.defineProperty(exports,"LicenseContainer",{enumerable:!0,get:function(){return Bl}}),exports.LicenseContainerResultTypes=zl,Object.defineProperty(exports,"ListVerifiedFieldContainer",{enumerable:!0,get:function(){return Gl}}),exports.ListVerifiedFieldContainerResultTypes=Wl,exports.ListVerifiedFields=Hl,exports.LivenessParams=bd,Object.defineProperty(exports,"MDLContainer",{enumerable:!0,get:function(){return fd}}),exports.MDLContainerResultTypes=dd,Object.defineProperty(exports,"MRZDetectorContainer",{enumerable:!0,get:function(){return Nu}}),exports.MRZDetectorContainerResultTypes=Mu,Object.defineProperty(exports,"MRZPositionContainer",{enumerable:!0,get:function(){return hu}}),exports.MRZPositionContainerResultTypes=mu,exports.MRZRowsItem=ku,exports.MRZTestQuality=bu,Object.defineProperty(exports,"MRZTestQualityContainer",{enumerable:!0,get:function(){return Cu}}),exports.MRZTestQualityContainerResultTypes=Su,exports.OCRSecurityTextResult=rc,exports.OneCandidate=Bs,Object.defineProperty(exports,"OneCandidateContainer",{enumerable:!0,get:function(){return Jl}}),exports.OneCandidateContainerResultTypes=ql,exports.PerDocumentConfig=vd,exports.PhotoIdentResult=cc,exports.Point=ys,exports.PointArray=Ps,exports.ProcessParams=$,exports.ProcessParamsAuth=xd,exports.ProcessParamsRfid=yd,Object.defineProperty(exports,"ProcessRequest",{enumerable:!0,get:function(){return Ed}}),exports.ProcessRequestImage=Cd,Object.defineProperty(exports,"ProcessResponse",{enumerable:!0,get:function(){return Dp}}),exports.ProcessSystemInfo=wd,Object.defineProperty(exports,"RAuthenticityCheckGroup",{enumerable:!0,get:function(){return fx}}),Object.defineProperty(exports,"RAuthenticityCheckGroupsItem",{enumerable:!0,get:function(){return mx}}),Object.defineProperty(exports,"RAuthenticityFibersCheck",{enumerable:!0,get:function(){return tx}}),Object.defineProperty(exports,"RAuthenticityIdentCheck",{enumerable:!0,get:function(){return rx}}),Object.defineProperty(exports,"RAuthenticityPhotoIdentCheck",{enumerable:!0,get:function(){return ax}}),Object.defineProperty(exports,"RAuthenticitySecurityCheck",{enumerable:!0,get:function(){return sx}}),Object.defineProperty(exports,"RAuthenticityTextCheck",{enumerable:!0,get:function(){return lx}}),exports.RAuthenticityTextCheckReference=Qb,Object.defineProperty(exports,"RDetailedStatus",{enumerable:!0,get:function(){return lS}}),exports.RDetailedStatusOptical=aS,exports.RDetailedStatusRfid=sS,exports.RDetailedStatusSummary=oS,Object.defineProperty(exports,"RDocumentBarcode",{enumerable:!0,get:function(){return Ex}}),exports.RDocumentBarcodeField=wx,exports.RDocumentBarcodeModuleData=Cx,Object.defineProperty(exports,"RDocumentIdentification",{enumerable:!0,get:function(){return mS}}),Object.defineProperty(exports,"RDocumentImage",{enumerable:!0,get:function(){return Ax}}),exports.RDocumentImagePage=Ox,exports.RFIDDocVisualExtendedField=cu,exports.RFIDDocVisualExtendedInfo=lu,Object.defineProperty(exports,"RFIDGraphicsInfoContainer",{enumerable:!0,get:function(){return Wu}}),exports.RFIDGraphicsInfoContainerResultTypes=Uu,Object.defineProperty(exports,"RFIDTextDataContainer",{enumerable:!0,get:function(){return fu}}),exports.RFIDTextDataContainerResultTypes=du,Object.defineProperty(exports,"RGraphicField",{enumerable:!0,get:function(){return Px}}),Object.defineProperty(exports,"RImageQuality",{enumerable:!0,get:function(){return Bx}}),exports.RImageQualityCheck=Rx,exports.RLocation=Xb,Object.defineProperty(exports,"RNameSurname",{enumerable:!0,get:function(){return _S}}),Object.defineProperty(exports,"RPortraitComparisonComparable",{enumerable:!0,get:function(){return yx}}),Object.defineProperty(exports,"RPortraitsComparison",{enumerable:!0,get:function(){return xx}}),Object.defineProperty(exports,"RRfidApplicationItem",{enumerable:!0,get:function(){return eS}}),Object.defineProperty(exports,"RRfidCertificate",{enumerable:!0,get:function(){return Wx}}),Object.defineProperty(exports,"RRfidDataGroupStatus",{enumerable:!0,get:function(){return Yx}}),exports.RRfidDataGroupStatusItem=Qx,Object.defineProperty(exports,"RTextData",{enumerable:!0,get:function(){return SS}}),exports.RTextDataComparison=bS,exports.RTextDataSource=yS,Object.defineProperty(exports,"RTextFieldValue",{enumerable:!0,get:function(){return TS}}),Object.defineProperty(exports,"RawImageContainer",{enumerable:!0,get:function(){return Zl}}),exports.RawImageContainerList=sc,exports.RawImageContainerResultTypes=Xl,exports.Rect=Z,exports.ResultMRZDetector=Au,exports.RfidAccessControlInfo=Fc,exports.RfidAccessKey=Ic,exports.RfidApplication=Vc,exports.RfidAttributeData=Uc,exports.RfidAttributeName=Us,exports.RfidCardPropertiesExt=Hc,exports.RfidCertificateEx=Kc,exports.RfidDG1=Pc,exports.RfidDataFile=Bc,exports.RfidDistinguishedName=Ws,exports.RfidOrigin=Rs,exports.RfidParsedData=Lc,exports.RfidPkiExtension=Wc,exports.RfidRawData=il,exports.RfidSecurityObject=Jc,exports.RfidSecurityObjectCertificates=zc,exports.RfidSession=Xc,exports.RfidSignerInfoEx=qc,exports.RfidTerminal=Yc,exports.RfidValidity=Gc,exports.SecurityFeatureCheck=fc,exports.Status=el,Object.defineProperty(exports,"StatusContainer",{enumerable:!0,get:function(){return rl}}),exports.StatusContainerResultTypes=nl,exports.StringItem=yu,exports.StringRecognitionResult=gl,exports.Symbol=Ou,exports.SymbolCandidate=ml,exports.SymbolEstimationItem=vu,exports.SymbolRecognitionResult=hl,exports.TOriginalRFIDGraphicsInfo=Vu,exports.TextComparison=Ql,exports.TextField=nu,exports.TextFieldValue=eu,exports.TextResult=iu,Object.defineProperty(exports,"TextResultContainer",{enumerable:!0,get:function(){return su}}),exports.TextResultContainerResultTypes=ou,exports.TextSource=ru,exports.TextSymbol=$l,exports.TextValidity=tu,exports.TipDecodeModule=Dc,exports.TipPDF417Info=Oc,exports.TransactionInfo=Od,exports.TrfFtBytes=Vs,exports.TrfFtString=Hs,Object.defineProperty(exports,"VDSContainer",{enumerable:!0,get:function(){return Qu}}),exports.VDSContainerResultTypes=Zu,exports.VDSData=Yu,Object.defineProperty(exports,"VDSNCContainer",{enumerable:!0,get:function(){return od}}),exports.VDSNCContainerResultTypes=ad,exports.VDSNCData=rd,exports.VerifiedFieldMap=Vl,exports.aContainer=Gs,exports.aVisualExtendedFieldItem=_l,exports.convertGeneralizedDateToLocal=Jb,exports.decode=bv,exports.eAuthenticity=A,exports.eBarCodeDetectionType=no,exports.eBarCodeModuleType=nr,exports.eBarCodeResultCodes=ro,exports.eBarCodeType=rr,exports.eCheckDiagnose=ir,exports.eCheckResult=j,exports.eDataGroupReadStatus=qx,exports.eDocFormat=or,exports.eDocType=sr,exports.eDocumentTypeRecognitionResult=cr,exports.eFieldVerificationResult=Hr,exports.eGraphicFieldType=lr,exports.eIRVisibilityFlag=Ur,exports.eImageQualityCheckType=ur,exports.eInputBarcodeType=dr,exports.eInputImageQualityChecks=fr,exports.eLCID=pr,exports.eLDSParsingErrorCodes=Sr,exports.eLDSParsingNotificationCodes=Cr,exports.eLights=mr,exports.eLogLevel=hr,exports.eMRZDetectMode=xr,exports.eMRZFormat=yr,exports.eMeasureSystem=br,exports.eOpticalStatusField=nS,exports.ePortraitComparisonSource=_x,exports.eProcessingStatus=wr,exports.eResult=M,exports.eResultType=M,exports.eRfidAChip=Dr,exports.eRfidAccessControlProcedureType=Or,exports.eRfidApplicationType=kr,exports.eRfidAuthenticationProcedureType=Ar,exports.eRfidBaudRate=jr,exports.eRfidCertificateOrigin=Mr,exports.eRfidCertificateType=Nr,exports.eRfidDataFileType=N,exports.eRfidErrorCodes=Tr,exports.eRfidFileIdType=io,exports.eRfidOriginalGraphicsType=ao,exports.eRfidPasswordType=Fr,exports.eRfidPresence=Pr,exports.eRfidStatusField=rS,exports.eRfidTerminalAuthorizationRequirement=$a,exports.eRfidTerminalType=Ir,exports.eRfidType=Lr,exports.eRfidVisualFieldType=oo,exports.eScenario=Rr,exports.eSecurityCriticalFlag=ar,exports.eSecurityFeatureType=zr,exports.eSource=Br,exports.eSummaryStatusField=iS,exports.eTextPostProcessing=Vr,exports.eVisualFieldType=P,exports.getAuthenticityArray=qa,exports.getAuthenticityCheckList=gx,exports.getDetailedStatus=uS,exports.getDocumentBarcodes=Dx,exports.getDocumentDateOfExpiry=DS,exports.getDocumentIdentification=hS,exports.getDocumentImages=jx,exports.getDocumentImagesSync=Mx,exports.getDocumentIssuingStateName=OS,exports.getDocumentNumber=kS,exports.getDocumentOwnerAge=AS,exports.getDocumentOwnerNationalityCode=jS,exports.getDocumentOwnerSex=MS,exports.getGraphicField=Ix,exports.getGraphicFieldSync=Lx,exports.getIRVisibilityFlagArray=Ya,exports.getImageDimensions=Sv,exports.getImageQuality=Hx,exports.getLightsArray=Za,exports.getNameSurname=vS,exports.getPortraitsComparison=Sx,exports.getRfidCertificatesData=Gx,exports.getRfidChecksSummary=Kx,exports.getRfidDataGroupsStatus=Zx,exports.getRfidDataGroupsStatusList=tS,exports.getRfidTerminalAuthorizationRequirements=eo,exports.getTextData=CS,exports.getTextFieldValue=ES,exports.isAuthenticity=Ja,exports.isIRVisibilityFlag=Xa,exports.isLights=Qa,exports.isObject=xv,exports.isRfidTerminalAuthorizationRequirement=to,exports.mergeDetailedStatus=fS,exports.mergeStatuses=Yb,exports.transformToAuthenticityCheckResultList=gc,exports.transformToContainerList=pd,exports.transformToRAuthenticityCheckList=ux;