elseIf(o._`${a} === "boolean" || ${r} === null
              || (${a} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(c,o._`+${r}`);case"boolean":return void i.elseIf(o._`${r} === "false" || ${r} === 0 || ${r} === null`).assign(c,!1).elseIf(o._`${r} === "true" || ${r} === 1`).assign(c,!0);case"null":return i.elseIf(o._`${r} === "" || ${r} === 0 || ${r} === false`),void i.assign(c,null);case"array":i.elseIf(o._`${a} === "string" || ${a} === "number"
              || ${a} === "boolean" || ${r} === null`).assign(c,o._`[${r}]`)}}i.else(),m(e),i.endIf(),i.if(o._`${c} !== undefined`,(()=>{i.assign(r,c),function({gen:e,parentData:t,parentDataProperty:n},i){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${n}]`,i)))}(e,c)}))}(e,t,a):m(e)}))}return p};const d=new Set(["string","number","integer","boolean","null"]);function l(e,t,n,i=c.Correct){const r=i===c.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${r} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return o._`typeof ${t} ${r} ${e}`}return i===c.Correct?s:(0,o.not)(s);function a(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,n?o._`isFinite(${t})`:o.nil)}}function f(e,t,n,i){if(1===e.length)return l(e[0],t,n,i);let r;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;r=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else r=o.nil;s.number&&delete s.integer;for(const e in s)r=(0,o.and)(r,l(e,t,n,i));return r}t.checkDataType=l,t.checkDataTypes=f;const u={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:n,schema:i}=e,r=(0,a.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:n,schema:i.type,schemaCode:r,schemaValue:r,parentSchema:i,params:{},it:e}}(e);(0,s.reportError)(t,u)}t.reportTypeError=m},57054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const i=n(48461),r=n(40950);function s(e,t,n){const{gen:s,compositeRule:o,data:a,opts:c}=e;if(void 0===n)return;const p=i._`${a}${(0,i.getProperty)(t)}`;if(o)return void(0,r.checkStrictMode)(e,`default is ignored for: ${p}`);let d=i._`${p} === undefined`;"empty"===c.useDefaults&&(d=i._`${d} || ${p} === null || ${p} === ""`),s.if(d,i._`${p} = ${(0,i.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:i}=e.schema;if("object"===t&&n)for(const t in n)s(e,t,n[t].default);else"array"===t&&Array.isArray(i)&&i.forEach(((t,n)=>s(e,n,t.default)))}},25700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const i=n(57122),r=n(85298),s=n(51134),o=n(85298),a=n(57054),c=n(83134),p=n(75197),d=n(48461),l=n(5077),f=n(77679),u=n(40950),m=n(2024);function h({gen:e,validateName:t,schema:n,schemaEnv:i,opts:r},s){r.code.es5?e.func(t,d._`${l.default.data}, ${l.default.valCxt}`,i.$async,(()=>{e.code(d._`"use strict"; ${y(n,r)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,d._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,d._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,d._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,d._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,d._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,d._`""`),e.var(l.default.parentData,d._`undefined`),e.var(l.default.parentDataProperty,d._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,d._`{}`)}))}(e,r),e.code(s)})):e.func(t,d._`${l.default.data}, ${function(e){return d._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?d._`, ${l.default.dynamicAnchors}={}`:d.nil}}={}`}(r)}`,i.$async,(()=>e.code(y(n,r)).code(s)))}function y(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?d._`/*# sourceURL=${n} */`:d.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function v(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:i,self:r}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,r.RULES)&&r.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function j(e,t){if(e.opts.jtd)return x(e,[],!1,t);const n=(0,r.getSchemaTypes)(e.schema);x(e,n,!(0,r.coerceAndCheckDataType)(e,n),t)}function $({gen:e,schemaEnv:t,schema:n,errSchemaPath:i,opts:r}){const s=n.$comment;if(!0===r.$comment)e.code(d._`${l.default.self}.logger.log(${s})`);else if("function"==typeof r.$comment){const n=d.str`${i}/$comment`,r=e.scopeValue("root",{ref:t.root});e.code(d._`${l.default.self}.opts.$comment(${s}, ${n}, ${r}.schema)`)}}function x(e,t,n,i){const{gen:r,schema:a,data:c,allErrors:p,opts:f,self:m}=e,{RULES:h}=m;function y(u){(0,s.shouldUseGroup)(a,u)&&(u.type?(r.if((0,o.checkDataType)(u.type,c,f.strictNumbers)),_(e,u),1===t.length&&t[0]===u.type&&n&&(r.else(),(0,o.reportTypeError)(e)),r.endIf()):_(e,u),p||r.if(d._`${l.default.errors} === ${i||0}`))}!a.$ref||!f.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(a,h)?(f.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{w(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const i of e.dataTypes)w(t,i)?n.push(i):t.includes("integer")&&"number"===i&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const i in n){const r=n[i];if("object"==typeof r&&(0,s.shouldUseRule)(e.schema,r)){const{type:n}=r.definition;n.length&&!n.some((e=>{return i=e,(n=t).includes(i)||"number"===i&&n.includes("integer");var n,i}))&&S(e,`missing type "${n.join(",")}" for keyword "${i}"`)}}}(e,e.dataTypes))}(e,t),r.block((()=>{for(const e of h.rules)y(e);y(h.post)}))):r.block((()=>O(e,"$ref",h.all.$ref.definition)))}function _(e,t){const{gen:n,schema:i,opts:{useDefaults:r}}=e;r&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,s.shouldUseRule)(i,n)&&O(e,n.keyword,n.definition,t.type)}))}function w(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(v(e),g(e))?function(e){const{schema:t,opts:n,gen:i}=e;h(e,(()=>{n.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),i.let(l.default.vErrors,null),i.let(l.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",d._`${n}.evaluated`),t.if(d._`${e.evaluated}.dynamicProps`,(()=>t.assign(d._`${e.evaluated}.props`,d._`undefined`))),t.if(d._`${e.evaluated}.dynamicItems`,(()=>t.assign(d._`${e.evaluated}.items`,d._`undefined`)))}(e),j(e),function(e){const{gen:t,schemaEnv:n,validateName:i,ValidationError:r,opts:s}=e;n.$async?t.if(d._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(d._`new ${r}(${l.default.vErrors})`))):(t.assign(d._`${i}.errors`,l.default.vErrors),s.unevaluated&&function({gen:e,evaluated:t,props:n,items:i}){n instanceof d.Name&&e.assign(d._`${t}.props`,n),i instanceof d.Name&&e.assign(d._`${t}.items`,i)}(e),t.return(d._`${l.default.errors} === 0`))}(e)}))}(e):h(e,(()=>(0,i.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",T(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,n){this.failResult((0,d.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,d.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(d._`${t} !== undefined && (${(0,d.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=d.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=d.nil,t=d.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:r,def:s}=this;n.if((0,d.or)(d._`${i} === undefined`,t)),e!==d.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==d.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:i,it:r}=this;return(0,d.or)(function(){if(n.length){if(!(t instanceof d.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return d._`${(0,o.checkDataTypes)(e,t,r.opts.strictNumbers,o.DataType.Wrong)}`}return d.nil}(),function(){if(i.validateSchema){const n=e.scopeValue("validate$data",{ref:i.validateSchema});return d._`!${n}(${t})`}return d.nil}())}subschema(e,t){const n=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(n,this.it,e),(0,p.extendSubschemaMode)(n,e);const r={...this.it,...n,items:void 0,props:void 0};return function(e,t){b(e)&&(v(e),g(e))?function(e,t){const{schema:n,gen:i,opts:r}=e;r.$comment&&n.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const s=i.const("_errs",l.default.errors);j(e,s),i.var(t,d._`${s} === ${l.default.errors}`)}(e,t):(0,i.boolOrEmptySchema)(e,t)}(r,t),r}mergeEvaluated(e,t){const{it:n,gen:i}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=u.mergeEvaluated.props(i,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=u.mergeEvaluated.items(i,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return i.if(t,(()=>this.mergeEvaluated(e,d.Name))),!0}}function O(e,t,n,i){const r=new P(e,n,t);"code"in n?n.code(r,i):r.$data&&n.validate?(0,c.funcKeywordCode)(r,n):"macro"in n?(0,c.macroKeywordCode)(r,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(r,n)}t.KeywordCxt=P;const E=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function T(e,{dataLevel:t,dataNames:n,dataPathArr:i}){let r,s;if(""===e)return l.default.rootData;if("/"===e[0]){if(!E.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);r=e,s=l.default.rootData}else{const o=A.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+o[1];if(r=o[2],"#"===r){if(a>=t)throw new Error(c("property/index",a));return i[t-a]}if(a>t)throw new Error(c("data",a));if(s=n[t-a],!r)return s}let o=s;const a=r.split("/");for(const e of a)e&&(s=d._`${s}${(0,d.getProperty)((0,u.unescapeJsonPointer)(e))}`,o=d._`${o} && ${s}`);return o;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=T},83134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const i=n(48461),r=n(5077),s=n(47813),o=n(2024);function a(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,(()=>t.assign(n,i._`${r.parentData}[${r.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,i.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:r,schema:s,parentSchema:o,it:a}=e,p=t.macro.call(a.self,s,o,a),d=c(n,r,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const l=n.name("valid");e.subschema({schema:p,schemaPath:i.nil,errSchemaPath:`${a.errSchemaPath}/${r}`,topSchemaRef:d,compositeRule:!0},l),e.pass(l,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:p,keyword:d,schema:l,parentSchema:f,$data:u,it:m}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,t);const h=!u&&t.compile?t.compile.call(m.self,l,f,m):t.validate,y=c(p,d,h),g=p.let("valid");function b(n=(t.async?i._`await `:i.nil)){const o=m.opts.passContext?r.default.this:r.default.self,a=!("compile"in t&&!u||!1===t.schema);p.assign(g,i._`${n}${(0,s.callValidateCode)(e,y,o,a)}`,t.modifying)}function v(e){var n;p.if((0,i.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,(function(){if(!1===t.errors)b(),t.modifying&&a(e),v((()=>e.error()));else{const n=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>b(i._`await `)),(t=>p.assign(g,!1).if(i._`${t} instanceof ${m.ValidationError}`,(()=>p.assign(e,i._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=i._`${y}.errors`;return p.assign(e,null),b(i.nil),e}();t.modifying&&a(e),v((()=>function(e,t){const{gen:n}=e;n.if(i._`Array.isArray(${t})`,(()=>{n.assign(r.default.vErrors,i._`${r.default.vErrors} === null ? ${t} : ${r.default.vErrors}.concat(${t})`).assign(r.default.errors,i._`${r.default.vErrors}.length`),(0,o.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:i},r,s){if(Array.isArray(r.keyword)?!r.keyword.includes(s):r.keyword!==s)throw new Error("ajv implementation error");const o=r.dependencies;if(null==o?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(r.validateSchema&&!r.validateSchema(e[s])){const e=`keyword "${s}" value is invalid at path "${i}": `+n.errorsText(r.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},75197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const i=n(48461),r=n(40950);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:s,schemaPath:o,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const s=e.schema[t];return void 0===n?{schema:s,schemaPath:i._`${e.schemaPath}${(0,i.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:i._`${e.schemaPath}${(0,i.getProperty)(t)}${(0,i.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,r.escapeFragment)(n)}`}}if(void 0!==s){if(void 0===o||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:o,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:s,data:o,dataTypes:a,propertyName:c}){if(void 0!==o&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==n){const{errorPath:o,dataPathArr:a,opts:c}=t;d(p.let("data",i._`${t.data}${(0,i.getProperty)(n)}`,!0)),e.errorPath=i.str`${o}${(0,r.getErrorPath)(n,s,c.jsPropertySyntax)}`,e.parentDataProperty=i._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function d(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==o&&(d(o instanceof i.Name?o:p.let("data",o,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:i,createErrors:r,allErrors:s}){void 0!==i&&(e.compositeRule=i),void 0!==r&&(e.createErrors=r),void 0!==s&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=n}},70623:(e,t,n)=>{"use strict";var i=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(25700);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var s=n(48461);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return s.CodeGen}});const o=n(14007),a=n(32381),c=n(68803),p=n(22478),d=n(48461),l=n(77679),f=n(85298),u=n(40950),m=n(87099),h=n(10579),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},j={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,n,i,r,s,o,a,c,p,d,l,f,u,m,g,b,v,j,$,x,_,w,S,P,O;const E=e.strict,A=null===(t=e.code)||void 0===t?void 0:t.optimize,T=!0===A||void 0===A?1:A||0,I=null!==(i=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==i?i:y,k=null!==(r=e.uriResolver)&&void 0!==r?r:h.default;return{strictSchema:null===(o=null!==(s=e.strictSchema)&&void 0!==s?s:E)||void 0===o||o,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:E)||void 0===c||c,strictTypes:null!==(d=null!==(p=e.strictTypes)&&void 0!==p?p:E)&&void 0!==d?d:"log",strictTuples:null!==(f=null!==(l=e.strictTuples)&&void 0!==l?l:E)&&void 0!==f?f:"log",strictRequired:null!==(m=null!==(u=e.strictRequired)&&void 0!==u?u:E)&&void 0!==m&&m,code:e.code?{...e.code,optimize:T,regExp:I}:{optimize:T,regExp:I},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(b=e.loopEnum)&&void 0!==b?b:200,meta:null===(v=e.meta)||void 0===v||v,messages:null===(j=e.messages)||void 0===j||j,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===(w=e.validateSchema)||void 0===w||w,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:k}}class x{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new d.ValueScope({scope:{},prefixes:b,es5:t,lines:n}),this.logger=function(e){if(!1===e)return A;if(void 0===e)return i;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,c.getRules)(),_.call(this,v,e,"NOT SUPPORTED"),_.call(this,j,e,"DEPRECATED","warn"),this._metaOpts=E.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&O.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let i=m;"id"===n&&(i={...m},i.id=i.$id,delete i.$id),t&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const i=n(t);return"$async"in n||(this.errors=n.errors),i}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return i.call(this,e,t);async function i(e,t){await r.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||s.call(this,n)}async function r(e){e&&!this.getSchema(e)&&await i.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return o.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function o({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await p.call(this,e);this.refs[e]||await r.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,i);return this}let r;if("object"==typeof e){const{schemaId:t}=this.opts;if(r=e[t],void 0!==r&&"string"!=typeof r)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||r),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,i,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const i=this.validate(n,e);if(!i&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return i}getSchema(e){let t;for(;"string"==typeof(t=w.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,i=new p.SchemaEnv({schema:{},schemaId:n});if(t=p.resolveSchema.call(this,i,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=w.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(I.call(this,n,t),!t)return(0,u.eachItem)(n,(e=>k.call(this,e))),this;R.call(this,t);const i={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,0===i.type.length?e=>k.call(this,e,i):e=>i.type.forEach((t=>k.call(this,e,i,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const i of t){const t=i.split("/").slice(1);let r=e;for(const e of t)r=r[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:i}=t.definition,s=r[e];i&&s&&(r[e]=N(s))}}return e}_removeAllSchemas(e,t){for(const n in e){const i=e[n];t&&!t.test(n)||("string"==typeof i?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,t,n,i=this.opts.validateSchema,r=this.opts.addUsedSchema){let s;const{schemaId:o}=this.opts;if("object"==typeof e)s=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,l.normalizeId)(s||n);const c=l.getSchemaRefs.call(this,e,n);return a=new p.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:n,localRefs:c}),this._cache.set(a.schema,a),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),i&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}function _(e,t,n,i="error"){for(const r in e){const s=r;s in t&&this.logger[i](`${n}: option ${r}. ${e[s]}`)}}function w(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function O(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function E(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=x,x.ValidationError=o.default,x.MissingRefError=a.default;const A={log(){},warn(){},error(){}},T=/^[a-z_$][a-z0-9_$:-]*$/i;function I(e,t){const{RULES:n}=this;if((0,u.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!T.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function k(e,t,n){var i;const r=null==t?void 0:t.post;if(n&&r)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let o=r?s.post:s.rules.find((({type:e})=>e===n));if(o||(o={type:n,rules:[]},s.rules.push(o)),s.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?M.call(this,o,a,t.before):o.rules.push(a),s.all[e]=a,null===(i=t.implements)||void 0===i||i.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const i=e.rules.findIndex((e=>e.keyword===n));i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=N(t)),e.validateSchema=this.compile(t,!0))}const q={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function N(e){return{anyOf:[e,q]}}},22444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(64063);i.code='require("ajv/dist/runtime/equal").default',t.default=i},36670:(e,t)=>{"use strict";function n(e){const t=e.length;let n,i=0,r=0;for(;r<t;)i++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<t&&(n=e.charCodeAt(r),56320==(64512&n)&&r++);return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},10579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(60540);i.code='require("ajv/dist/runtime/uri").default',t.default=i},14007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},59756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const i=n(48461),r=n(40950),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>i.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>i._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:i}=t;Array.isArray(i)?o(e,i):(0,r.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function o(e,t){const{gen:n,schema:s,data:o,keyword:a,it:c}=e;c.items=!0;const p=n.const("len",i._`${o}.length`);if(!1===s)e.setParams({len:t.length}),e.pass(i._`${p} <= ${t.length}`);else if("object"==typeof s&&!(0,r.alwaysValidSchema)(c,s)){const s=n.var("valid",i._`${p} <= ${t.length}`);n.if((0,i.not)(s),(()=>function(s){n.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:r.Type.Num},s),c.allErrors||n.if((0,i.not)(s),(()=>n.break()))}))}(s))),e.ok(s)}}t.validateAdditionalItems=o,t.default=s},79670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(47813),r=n(48461),s=n(5077),o=n(40950),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>r._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:p,it:d}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:l,opts:f}=d;if(d.props=!0,"all"!==f.removeAdditional&&(0,o.alwaysValidSchema)(d,n))return;const u=(0,i.allSchemaProperties)(a.properties),m=(0,i.allSchemaProperties)(a.patternProperties);function h(e){t.code(r._`delete ${c}[${e}]`)}function y(i){if("all"===f.removeAdditional||f.removeAdditional&&!1===n)h(i);else{if(!1===n)return e.setParams({additionalProperty:i}),e.error(),void(l||t.break());if("object"==typeof n&&!(0,o.alwaysValidSchema)(d,n)){const n=t.name("valid");"failing"===f.removeAdditional?(g(i,n,!1),t.if((0,r.not)(n),(()=>{e.reset(),h(i)}))):(g(i,n),l||t.if((0,r.not)(n),(()=>t.break())))}}}function g(t,n,i){const r={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};!1===i&&Object.assign(r,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(r,n)}t.forIn("key",c,(n=>{u.length||m.length?t.if(function(n){let s;if(u.length>8){const e=(0,o.schemaRefOrVal)(d,a.properties,"properties");s=(0,i.isOwnProperty)(t,e,n)}else s=u.length?(0,r.or)(...u.map((e=>r._`${n} === ${e}`))):r.nil;return m.length&&(s=(0,r.or)(s,...m.map((t=>r._`${(0,i.usePattern)(e,t)}.test(${n})`)))),(0,r.not)(s)}(n),(()=>y(n))):y(n)})),e.ok(r._`${p} === ${s.default.errors}`)}};t.default=a},67516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(40950),r={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=t.name("valid");n.forEach(((t,n)=>{if((0,i.alwaysValidSchema)(r,t))return;const o=e.subschema({keyword:"allOf",schemaProp:n},s);e.ok(s),e.mergeEvaluated(o)}))}};t.default=r},55812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(47813).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=i},90220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?i.str`must contain at least ${e} valid item(s)`:i.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?i._`{minContains: ${e}}`:i._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:o,it:a}=e;let c,p;const{minContains:d,maxContains:l}=s;a.opts.next?(c=void 0===d?1:d,p=l):c=1;const f=t.const("len",i._`${o}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,r.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,r.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,r.alwaysValidSchema)(a,n)){let t=i._`${f} >= ${c}`;return void 0!==p&&(t=i._`${t} && ${f} <= ${p}`),void e.pass(t)}a.items=!0;const u=t.name("valid");function m(){const e=t.name("_valid"),n=t.let("count",0);h(e,(()=>t.if(e,(()=>function(e){t.code(i._`${e}++`),void 0===p?t.if(i._`${e} >= ${c}`,(()=>t.assign(u,!0).break())):(t.if(i._`${e} > ${p}`,(()=>t.assign(u,!1).break())),1===c?t.assign(u,!0):t.if(i._`${e} >= ${c}`,(()=>t.assign(u,!0))))}(n)))))}function h(n,i){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:r.Type.Num,compositeRule:!0},n),i()}))}void 0===p&&1===c?h(u,(()=>t.if(u,(()=>t.break())))):0===c?(t.let(u,!0),void 0!==p&&t.if(i._`${o}.length > 0`,m)):(t.let(u,!1),m()),e.result(u,(()=>e.reset()))}};t.default=s},54853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const i=n(48461),r=n(40950),s=n(47813);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const r=1===t?"property":"properties";return i.str`must have ${r} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:r}})=>i._`{property: ${e},
    missingProperty: ${r},
    depsCount: ${t},
    deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const i in e)"__proto__"!==i&&((Array.isArray(e[i])?t:n)[i]=e[i]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:r,it:o}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const d=(0,s.propertyInData)(n,r,c,o.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),o.allErrors?n.if(d,(()=>{for(const t of p)(0,s.checkReportMissingProp)(e,t)})):(n.if(i._`${d} && (${(0,s.checkMissingProp)(e,p,a)})`),(0,s.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:i,keyword:o,it:a}=e,c=n.name("valid");for(const p in t)(0,r.alwaysValidSchema)(a,t[p])||(n.if((0,s.propertyInData)(n,i,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=o},73449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>i.str`must match "${e.ifClause}" schema`,params:({params:e})=>i._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:s}=e;void 0===n.then&&void 0===n.else&&(0,r.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const a=o(s,"then"),c=o(s,"else");if(!a&&!c)return;const p=t.let("valid",!0),d=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(d,l("then",n),l("else",n))}else a?t.if(d,l("then")):t.if((0,i.not)(d),l("else"));function l(n,r){return()=>{const s=e.subschema({keyword:n},d);t.assign(p,d),e.mergeValidEvaluated(s,p),r?t.assign(r,i._`${n}`):e.setParams({ifClause:n})}}e.pass(p,(()=>e.error(!0)))}};function o(e,t){const n=e.schema[t];return void 0!==n&&!(0,r.alwaysValidSchema)(e,n)}t.default=s},61964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(59756),r=n(81849),s=n(42031),o=n(8089),a=n(90220),c=n(54853),p=n(21523),d=n(79670),l=n(90704),f=n(66125),u=n(98556),m=n(55812),h=n(94164),y=n(67516),g=n(73449),b=n(65846);t.default=function(e=!1){const t=[u.default,m.default,h.default,y.default,g.default,b.default,p.default,d.default,c.default,l.default,f.default];return e?t.push(r.default,o.default):t.push(i.default,s.default),t.push(a.default),t}},42031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const i=n(48461),r=n(40950),s=n(47813),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,r.alwaysValidSchema)(n,t)||e.ok((0,s.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:s,parentSchema:o,data:a,keyword:c,it:p}=e;!function(e){const{opts:i,errSchemaPath:s}=p,o=n.length,a=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(i.strictTuples&&!a){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${s}"`;(0,r.checkStrictMode)(p,e,i.strictTuples)}}(o),p.opts.unevaluated&&n.length&&!0!==p.items&&(p.items=r.mergeEvaluated.items(s,n.length,p.items));const d=s.name("valid"),l=s.const("len",i._`${a}.length`);n.forEach(((t,n)=>{(0,r.alwaysValidSchema)(p,t)||(s.if(i._`${l} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},d))),e.ok(d))}))}t.validateTuple=a,t.default=o},8089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s=n(47813),o=n(59756),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>i.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>i._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:i}=e,{prefixItems:a}=n;i.items=!0,(0,r.alwaysValidSchema)(i,t)||(a?(0,o.validateAdditionalItems)(e,a):e.ok((0,s.validateArray)(e)))}};t.default=a},98556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(40950),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,i.alwaysValidSchema)(r,n))return void e.fail();const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=r},94164:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>i._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:s,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&s.discriminator)return;const a=n,c=t.let("valid",!1),p=t.let("passing",null),d=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((n,s)=>{let a;(0,r.alwaysValidSchema)(o,n)?t.var(d,!0):a=e.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},d),s>0&&t.if(i._`${d} && ${c}`).assign(c,!1).assign(p,i._`[${p}, ${s}]`).else(),t.if(d,(()=>{t.assign(c,!0),t.assign(p,s),a&&e.mergeEvaluated(a,i.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=s},66125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(47813),r=n(48461),s=n(40950),o=n(40950),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:p}=e,{opts:d}=p,l=(0,i.allSchemaProperties)(n),f=l.filter((e=>(0,s.alwaysValidSchema)(p,n[e])));if(0===l.length||f.length===l.length&&(!p.opts.unevaluated||!0===p.props))return;const u=d.strictSchema&&!d.allowMatchingProperties&&c.properties,m=t.name("valid");!0===p.props||p.props instanceof r.Name||(p.props=(0,o.evaluatedPropsToName)(t,p.props));const{props:h}=p;function y(e){for(const t in u)new RegExp(e).test(t)&&(0,s.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,(s=>{t.if(r._`${(0,i.usePattern)(e,n)}.test(${s})`,(()=>{const i=f.includes(n);i||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:s,dataPropType:o.Type.Str},m),p.opts.unevaluated&&!0!==h?t.assign(r._`${h}[${s}]`,!0):i||p.allErrors||t.if((0,r.not)(m),(()=>t.break()))}))}))}!function(){for(const e of l)u&&y(e),p.allErrors?g(e):(t.var(m,!0),g(e),t.if(m))}()}};t.default=a},81849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(42031),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,i.validateTuple)(e,"items")};t.default=r},90704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(25700),r=n(47813),s=n(40950),o=n(79670),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&o.default.code(new i.KeywordCxt(p,o.default,"additionalProperties"));const d=(0,r.allSchemaProperties)(n);for(const e of d)p.definedProperties.add(e);p.opts.unevaluated&&d.length&&!0!==p.props&&(p.props=s.mergeEvaluated.props(t,(0,s.toHash)(d),p.props));const l=d.filter((e=>!(0,s.alwaysValidSchema)(p,n[e])));if(0===l.length)return;const f=t.name("valid");for(const n of l)u(n)?m(n):(t.if((0,r.propertyInData)(t,c,n,p.opts.ownProperties)),m(n),p.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function u(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==n[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=a},21523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>i._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:s,it:o}=e;if((0,r.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",s,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,i.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};t.default=s},65846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(40950),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,i.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=r},47813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const i=n(48461),r=n(40950),s=n(5077),o=n(40950);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:i._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return i._`${a(e)}.call(${t}, ${n})`}function p(e,t,n,r){const s=i._`${t}${(0,i.getProperty)(n)} === undefined`;return r?(0,i.or)(s,(0,i.not)(c(e,t,n))):s}function d(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:r,it:s}=e;n.if(p(n,r,t,s.opts.ownProperties),(()=>{e.setParams({missingProperty:i._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},r,s){return(0,i.or)(...r.map((r=>(0,i.and)(p(e,t,r,n.ownProperties),i._`${s} = ${r}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,r){const s=i._`${t}${(0,i.getProperty)(n)} !== undefined`;return r?i._`${s} && ${c(e,t,n)}`:s},t.noPropertyInData=p,t.allSchemaProperties=d,t.schemaProperties=function(e,t){return d(t).filter((n=>!(0,r.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:c},p,d,l){const f=l?i._`${e}, ${t}, ${r}${o}`:t,u=[[s.default.instancePath,(0,i.strConcat)(s.default.instancePath,a)],[s.default.parentData,c.parentData],[s.default.parentDataProperty,c.parentDataProperty],[s.default.rootData,s.default.rootData]];c.opts.dynamicRef&&u.push([s.default.dynamicAnchors,s.default.dynamicAnchors]);const m=i._`${f}, ${n.object(...u)}`;return d!==i.nil?i._`${p}.call(${d}, ${m})`:i._`${p}(${m})`};const l=i._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:s}=t.code,a=s(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:i._`${"new RegExp"===s.code?l:(0,o.useFunc)(e,s)}(${n}, ${r})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:s,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(o){const c=t.const("len",i._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:s,dataProp:n,dataPropType:r.Type.Num},a),t.if((0,i.not)(a),o)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:s,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,r.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,r)=>{const o=e.subschema({keyword:s,schemaProp:r,compositeRule:!0},c);t.assign(a,i._`${a} || ${c}`),e.mergeValidEvaluated(o,c)||t.if((0,i.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},59899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},69265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(59899),r=n(3672),s=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",i.default,r.default];t.default=s},3672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const i=n(32381),r=n(47813),s=n(48461),o=n(5077),a=n(22478),c=n(40950),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:c,validateName:p,opts:f,self:u}=r,{root:m}=c;if(("#"===n||"#/"===n)&&o===m.baseId)return function(){if(c===m)return l(e,p,c,c.$async);const n=t.scopeValue("root",{ref:m});return l(e,s._`${n}.validate`,m,m.$async)}();const h=a.resolveRef.call(u,m,o,n);if(void 0===h)throw new i.default(r.opts.uriResolver,o,n);return h instanceof a.SchemaEnv?function(t){const n=d(e,t);l(e,n,t,t.$async)}(h):function(i){const r=t.scopeValue("schema",!0===f.code.source?{ref:i,code:(0,s.stringify)(i)}:{ref:i}),o=t.name("valid"),a=e.subschema({schema:i,dataTypes:[],schemaPath:s.nil,topSchemaRef:r,errSchemaPath:n},o);e.mergeEvaluated(a),e.ok(o)}(h)}};function d(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):s._`${n.scopeValue("wrapper",{ref:t})}.validate`}function l(e,t,n,i){const{gen:a,it:p}=e,{allErrors:d,schemaEnv:l,opts:f}=p,u=f.passContext?o.default.this:s.nil;function m(e){const t=s._`${e}.errors`;a.assign(o.default.vErrors,s._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),a.assign(o.default.errors,s._`${o.default.vErrors}.length`)}function h(e){var t;if(!p.opts.unevaluated)return;const i=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(i&&!i.dynamicProps)void 0!==i.props&&(p.props=c.mergeEvaluated.props(a,i.props,p.props));else{const t=a.var("props",s._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,s.Name)}if(!0!==p.items)if(i&&!i.dynamicItems)void 0!==i.items&&(p.items=c.mergeEvaluated.items(a,i.items,p.items));else{const t=a.var("items",s._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,s.Name)}}i?function(){if(!l.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(s._`await ${(0,r.callValidateCode)(e,t,u)}`),h(t),d||a.assign(n,!0)}),(e=>{a.if(s._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),m(e),d||a.assign(n,!1)})),e.ok(n)}():e.result((0,r.callValidateCode)(e,t,u),(()=>h(t)),(()=>m(t)))}t.getValidate=d,t.callRef=l,t.default=p},85451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(5447),s=n(22478),o=n(40950),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===r.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>i._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:p}=e,{oneOf:d}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=a.propertyName;if("string"!=typeof l)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",!1),u=t.const("tag",i._`${n}${(0,i.getProperty)(l)}`);function m(n){const r=t.name("valid"),s=e.subschema({keyword:"oneOf",schemaProp:n},r);return e.mergeEvaluated(s,i.Name),r}t.if(i._`typeof ${u} == "string"`,(()=>function(){const n=function(){var e;const t={},n=r(c);let i=!0;for(let t=0;t<d.length;t++){let c=d[t];(null==c?void 0:c.$ref)&&!(0,o.schemaHasRulesButRef)(c,p.self.RULES)&&(c=s.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,null==c?void 0:c.$ref),c instanceof s.SchemaEnv&&(c=c.schema));const f=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[l];if("object"!=typeof f)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);i=i&&(n||r(c)),a(f,t)}if(!i)throw new Error(`discriminator: "${l}" must be required`);return t;function r({required:e}){return Array.isArray(e)&&e.includes(l)}function a(e,t){if(e.const)f(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`);for(const n of e.enum)f(n,t)}}function f(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${l}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(i._`${u} === ${e}`),t.assign(f,m(n[e]));t.else(),e.error(!1,{discrError:r.DiscrError.Mapping,tag:u,tagName:l}),t.endIf()}()),(()=>e.error(!1,{discrError:r.DiscrError.Tag,tag:u,tagName:l}))),e.ok(f)}};t.default=a},5447:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},60892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(69265),r=n(67978),s=n(61964),o=n(89179),a=n(26001),c=[i.default,r.default,(0,s.default)(),o.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},9079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match format "${e}"`,params:({schemaCode:e})=>i._`{format: ${e}}`},code(e,t){const{gen:n,data:r,$data:s,schema:o,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:d,schemaEnv:l,self:f}=c;p.validateFormats&&(s?function(){const s=n.scopeValue("formats",{ref:f.formats,code:p.code.formats}),o=n.const("fDef",i._`${s}[${a}]`),c=n.let("fType"),d=n.let("format");n.if(i._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>n.assign(c,i._`${o}.type || "string"`).assign(d,i._`${o}.validate`)),(()=>n.assign(c,i._`"string"`).assign(d,o))),e.fail$data((0,i.or)(!1===p.strictSchema?i.nil:i._`${a} && !${d}`,function(){const e=l.$async?i._`(${o}.async ? await ${d}(${r}) : ${d}(${r}))`:i._`${d}(${r})`,n=i._`(typeof ${d} == "function" ? ${e} : ${d}.test(${r}))`;return i._`${d} && ${d} !== true && ${c} === ${t} && !${n}`}()))}():function(){const s=f.formats[o];if(!s)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${d}"`}f.logger.warn(e())}();if(!0===s)return;const[a,c,u]=function(e){const t=e instanceof RegExp?(0,i.regexpCode)(e):p.code.formats?i._`${p.code.formats}${(0,i.getProperty)(o)}`:void 0,r=n.scopeValue("formats",{key:o,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,r]:[e.type||"string",e.validate,i._`${r}.validate`]}(s);a===t&&e.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!l.$async)throw new Error("async format in sync schema");return i._`await ${u}(${r})`}return"function"==typeof c?i._`${u}(${r})`:i._`${u}.test(${r})`}())}())}};t.default=r},89179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=[n(9079).default];t.default=i},26001:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},23723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s=n(22444),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>i._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:o,schemaCode:a,schema:c}=e;o||c&&"object"==typeof c?e.fail$data(i._`!${(0,r.useFunc)(t,s.default)}(${n}, ${a})`):e.fail(i._`${c} !== ${n}`)}};t.default=o},73186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s=n(22444),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>i._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:o,schema:a,schemaCode:c,it:p}=e;if(!o&&0===a.length)throw new Error("enum must have non-empty array");const d=a.length>=p.opts.loopEnum;let l;const f=()=>null!=l?l:l=(0,r.useFunc)(t,s.default);let u;if(d||o)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",c,(e=>t.if(i._`${f()}(${n}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);u=(0,i.or)(...a.map(((t,r)=>function(e,t){const r=a[t];return"object"==typeof r&&null!==r?i._`${f()}(${n}, ${e}[${t}])`:i._`${n} === ${r}`}(e,r))))}e.pass(u)}};t.default=o},67978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(80949),r=n(43229),s=n(66346),o=n(41244),a=n(12561),c=n(19798),p=n(35767),d=n(89320),l=n(23723),f=n(73186),u=[i.default,r.default,s.default,o.default,a.default,c.default,p.default,d.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,f.default];t.default=u},35767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return i.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:r}=e,s="maxItems"===t?i.operators.GT:i.operators.LT;e.fail$data(i._`${n}.length ${s} ${r}`)}};t.default=r},66346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=n(40950),s=n(36670),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return i.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o,it:a}=e,c="maxLength"===t?i.operators.GT:i.operators.LT,p=!1===a.opts.unicode?i._`${n}.length`:i._`${(0,r.useFunc)(e.gen,s.default)}(${n})`;e.fail$data(i._`${p} ${c} ${o}`)}};t.default=o},80949:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r=i.operators,s={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},o={message:({keyword:e,schemaCode:t})=>i.str`must be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>i._`{comparison: ${s[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(s),type:"number",schemaType:"number",$data:!0,error:o,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data(i._`${n} ${s[t].fail} ${r} || isNaN(${n})`)}};t.default=a},12561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return i.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:r}=e,s="maxProperties"===t?i.operators.GT:i.operators.LT;e.fail$data(i._`Object.keys(${n}).length ${s} ${r}`)}};t.default=r},43229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(48461),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>i.str`must be multiple of ${e}`,params:({schemaCode:e})=>i._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:r,it:s}=e,o=s.opts.multipleOfPrecision,a=t.let("res"),c=o?i._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:i._`${a} !== parseInt(${a})`;e.fail$data(i._`(${r} === 0 || (${a} = ${n}/${r}, ${c}))`)}};t.default=r},41244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(47813),r=n(48461),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match pattern "${e}"`,params:({schemaCode:e})=>r._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:s,schemaCode:o,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=n?r._`(new RegExp(${o}, ${c}))`:(0,i.usePattern)(e,s);e.fail$data(r._`!${p}.test(${t})`)}};t.default=s},19798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(47813),r=n(48461),s=n(40950),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>r.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>r._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:o,data:a,$data:c,it:p}=e,{opts:d}=p;if(!c&&0===n.length)return;const l=n.length>=d.loopRequired;if(p.allErrors?function(){if(l||c)e.block$data(r.nil,f);else for(const t of n)(0,i.checkReportMissingProp)(e,t)}():function(){const s=t.let("missing");if(l||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,s){e.setParams({missingProperty:n}),t.forOf(n,o,(()=>{t.assign(s,(0,i.propertyInData)(t,a,n,d.ownProperties)),t.if((0,r.not)(s),(()=>{e.error(),t.break()}))}),r.nil)}(s,n))),e.ok(n)}else t.if((0,i.checkMissingProp)(e,n,s)),(0,i.reportMissingProp)(e,s),t.else()}(),d.strictRequired){const t=e.parentSchema.properties,{definedProperties:i}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!i.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,s.checkStrictMode)(p,t,p.opts.strictRequired)}}function f(){t.forOf("prop",o,(n=>{e.setParams({missingProperty:n}),t.if((0,i.noPropertyInData)(t,a,n,d.ownProperties),(()=>e.error()))}))}}};t.default=o},89320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(85298),r=n(48461),s=n(40950),o=n(22444),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>r.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>r._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:p,schemaCode:d,it:l}=e;if(!a&&!c)return;const f=t.let("valid"),u=p.items?(0,i.getSchemaTypes)(p.items):[];function m(s,o){const a=t.name("item"),c=(0,i.checkDataTypes)(u,a,l.opts.strictNumbers,i.DataType.Wrong),p=t.const("indices",r._`{}`);t.for(r._`;${s}--;`,(()=>{t.let(a,r._`${n}[${s}]`),t.if(c,r._`continue`),u.length>1&&t.if(r._`typeof ${a} == "string"`,r._`${a} += "_"`),t.if(r._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(o,r._`${p}[${a}]`),e.error(),t.assign(f,!1).break()})).code(r._`${p}[${a}] = ${s}`)}))}function h(i,a){const c=(0,s.useFunc)(t,o.default),p=t.name("outer");t.label(p).for(r._`;${i}--;`,(()=>t.for(r._`${a} = ${i}; ${a}--;`,(()=>t.if(r._`${c}(${n}[${i}], ${n}[${a}])`,(()=>{e.error(),t.assign(f,!1).break(p)}))))))}e.block$data(f,(function(){const i=t.let("i",r._`${n}.length`),s=t.let("j");e.setParams({i,j:s}),t.assign(f,!0),t.if(r._`${i} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?m:h)(i,s)))}),r._`${d} === false`),e.ok(f)}};t.default=a},55136:e=>{"use strict";var t=e.exports=function(e,t,i){"function"==typeof t&&(i=t,t={}),n(t,"function"==typeof(i=t.cb||i)?i:i.pre||function(){},i.post||function(){},e,"",e)};function n(e,i,r,s,o,a,c,p,d,l){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var f in i(s,o,a,c,p,d,l),s){var u=s[f];if(Array.isArray(u)){if(f in t.arrayKeywords)for(var m=0;m<u.length;m++)n(e,i,r,u[m],o+"/"+f+"/"+m,a,o,f,s,m)}else if(f in t.propsKeywords){if(u&&"object"==typeof u)for(var h in u)n(e,i,r,u[h],o+"/"+f+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,f,s,h)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&n(e,i,r,u,o+"/"+f,a,o,f,s)}r(s,o,a,c,p,d,l)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},69282:(e,t,n)=>{"use strict";var i=n(34155),r=n(25108);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===s(r)?r:String(r)),i)}var r}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var c,p,d=n(62136).codes,l=d.ERR_AMBIGUOUS_ARGUMENT,f=d.ERR_INVALID_ARG_TYPE,u=d.ERR_INVALID_ARG_VALUE,m=d.ERR_INVALID_RETURN_VALUE,h=d.ERR_MISSING_ARGS,y=n(25961),g=n(89539).inspect,b=n(89539).types,v=b.isPromise,j=b.isRegExp,$=n(28162)(),x=n(75624)(),_=n(21924)("RegExp.prototype.test");function w(){var e=n(19158);c=e.isDeepEqual,p=e.isDeepStrictEqual}new Map;var S=!1,P=e.exports=T,O={};function E(e){if(e.message instanceof Error)throw e.message;throw new y(e)}function A(e,t,n,i){if(!n){var r=!1;if(0===t)r=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var s=new y({actual:n,expected:!0,message:i,operator:"==",stackStartFn:e});throw s.generatedMessage=r,s}}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[T,t.length].concat(t))}P.fail=function e(t,n,s,o,a){var c,p=arguments.length;if(0===p?c="Failed":1===p?(s=t,t=void 0):(!1===S&&(S=!0,(i.emitWarning?i.emitWarning:r.warn.bind(r))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===p&&(o="!=")),s instanceof Error)throw s;var d={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==s&&(d.message=s);var l=new y(d);throw c&&(l.message=c,l.generatedMessage=!0),l},P.AssertionError=y,P.ok=T,P.equal=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");t!=n&&E({actual:t,expected:n,message:i,operator:"==",stackStartFn:e})},P.notEqual=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");t==n&&E({actual:t,expected:n,message:i,operator:"!=",stackStartFn:e})},P.deepEqual=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");void 0===c&&w(),c(t,n)||E({actual:t,expected:n,message:i,operator:"deepEqual",stackStartFn:e})},P.notDeepEqual=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");void 0===c&&w(),c(t,n)&&E({actual:t,expected:n,message:i,operator:"notDeepEqual",stackStartFn:e})},P.deepStrictEqual=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");void 0===c&&w(),p(t,n)||E({actual:t,expected:n,message:i,operator:"deepStrictEqual",stackStartFn:e})},P.notDeepStrictEqual=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");void 0===c&&w(),p(t,n)&&E({actual:t,expected:n,message:i,operator:"notDeepStrictEqual",stackStartFn:e})},P.strictEqual=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");x(t,n)||E({actual:t,expected:n,message:i,operator:"strictEqual",stackStartFn:e})},P.notStrictEqual=function e(t,n,i){if(arguments.length<2)throw new h("actual","expected");x(t,n)&&E({actual:t,expected:n,message:i,operator:"notStrictEqual",stackStartFn:e})};var I=a((function e(t,n,i){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==i&&"string"==typeof i[e]&&j(t[e])&&_(t[e],i[e])?r[e]=i[e]:r[e]=t[e])}))}));function k(e,t,n,i){if("function"!=typeof t){if(j(t))return _(t,e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==s(e)||null===e){var r=new y({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:i});throw r.operator=i.name,r}var o=Object.keys(t);if(t instanceof Error)o.push("name","message");else if(0===o.length)throw new u("error",t,"may not be an empty object");return void 0===c&&w(),o.forEach((function(r){"string"==typeof e[r]&&j(t[r])&&_(t[r],e[r])||function(e,t,n,i,r,s){if(!(n in e)||!p(e[n],t[n])){if(!i){var o=new I(e,r),a=new I(t,r,e),c=new y({actual:o,expected:a,operator:"deepStrictEqual",stackStartFn:s});throw c.actual=e,c.expected=t,c.operator=s.name,c}E({actual:e,expected:t,message:i,operator:s.name,stackStartFn:s})}}(e,t,r,n,o,i)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return O}function R(e){return v(e)||null!==e&&"object"===s(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function q(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!R(t=e()))throw new m("instance of Promise","promiseFn",t)}else{if(!R(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return O})).catch((function(e){return e}))}))}function N(e,t,n,i){if("string"==typeof n){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],n);if("object"===s(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));i=n,n=void 0}else if(null!=n&&"object"!==s(n)&&"function"!=typeof n)throw new f("error",["Object","Error","Function","RegExp"],n);if(t===O){var r="";n&&n.name&&(r+=" (".concat(n.name,")")),r+=i?": ".concat(i):".";var o="rejects"===e.name?"rejection":"exception";E({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(r),stackStartFn:e})}if(n&&!k(t,n,i,e))throw t}function C(e,t,n,i){if(t!==O){if("string"==typeof n&&(i=n,n=void 0),!n||k(t,n)){var r=i?": ".concat(i):".",s="doesNotReject"===e.name?"rejection":"exception";E({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(s).concat(r,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function D(e,t,n,i,r){if(!j(t))throw new f("regexp","RegExp",t);var o="match"===r;if("string"!=typeof e||_(t,e)!==o){if(n instanceof Error)throw n;var a=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(s(e)," (").concat(g(e),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var c=new y({actual:e,expected:t,message:n,operator:r,stackStartFn:i});throw c.generatedMessage=a,c}}function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[F,t.length].concat(t))}P.throws=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];N.apply(void 0,[e,M(t)].concat(i))},P.rejects=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return q(t).then((function(t){return N.apply(void 0,[e,t].concat(i))}))},P.doesNotThrow=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];C.apply(void 0,[e,M(t)].concat(i))},P.doesNotReject=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return q(t).then((function(t){return C.apply(void 0,[e,t].concat(i))}))},P.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===s(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=g(t);var i=new y({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),r=t.stack;if("string"==typeof r){var o=r.split("\n");o.shift();for(var a=i.stack.split("\n"),c=0;c<o.length;c++){var p=a.indexOf(o[c]);if(-1!==p){a=a.slice(0,p);break}}i.stack="".concat(a.join("\n"),"\n").concat(o.join("\n"))}throw i}},P.match=function e(t,n,i){D(t,n,i,e,"match")},P.doesNotMatch=function e(t,n,i){D(t,n,i,e,"doesNotMatch")},P.strict=$(F,P,{equal:P.strictEqual,deepEqual:P.deepStrictEqual,notEqual:P.notStrictEqual,notDeepEqual:P.notDeepStrictEqual}),P.strict.strict=P.strict},25961:(e,t,n)=>{"use strict";var i=n(34155);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){var i,r,s;i=e,r=t,s=n[t],(r=a(r))in i?Object.defineProperty(i,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[r]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===h(t)?t:String(t)}function c(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return l(e,arguments,m(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),u(i,e)},d(e)}function l(e,t,n){return l=f()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&u(r,n.prototype),r},l.apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}var y=n(89539).inspect,g=n(62136).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var v="",j="",$="",x="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function S(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(P,e);var n,r,a,d,l=(n=P,r=f(),function(){var e,t=m(n);if(r){var i=m(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return c(this,e)});function P(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),"object"!==h(e)||null===e)throw new g("options","Object",e);var n=e.message,r=e.operator,s=e.stackStartFn,o=e.actual,a=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=l.call(this,String(n));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(v="