(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2464],{34846:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;let n=r(72992),a=r(79506),i=r(746),o=r(89787),s=["/properties"],l="http://json-schema.org/draft-07/schema";class u extends n.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=r(65886);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var f=r(2088);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var d=r(97700);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=r(97829);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},57440:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class a extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function i(e,...t){let r=[e[0]],n=0;for(;n<t.length;)l(r,t[n]),r.push(e[++n]);return new a(r)}t._Code=a,t.nil=new a(""),t._=i;let o=new a("+");function s(e,...t){let r=[u(e[0])],i=0;for(;i<t.length;)r.push(o),l(r,t[i]),r.push(o,u(e[++i]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===o){var r,a;let i=(r=e[t-1],'""'===(a=e[t+1])?r:'""'===r?a:"string"==typeof r?a instanceof n||'"'!==r[r.length-1]?void 0:"string"!=typeof a?`${r.slice(0,-1)}${a}"`:'"'===a[0]?r.slice(0,-1)+a.slice(1):void 0:"string"!=typeof a||'"'!==a[0]||r instanceof n?void 0:`"${r}${a.slice(1)}`);if(void 0!==i){e.splice(t-1,3,i);continue}e[t++]="+"}t++}}(r),new a(r)}function l(e,t){t instanceof a?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof t||"boolean"==typeof t||null===t?t:u(Array.isArray(t)?t.join(","):t))}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=s,t.addCodeArg=l,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},t.stringify=function(e){return new a(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new a(`.${e}`):i`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new a(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new a(e.toString())}},2088:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;let n=r(57440),a=r(54110);var i=r(57440);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}});var o=r(54110);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){let r=e?a.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class u extends s{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=T(this.rhs,e,t),this}get names(){return x(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class c extends u{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class f extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){let t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=T(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:r}=this,n=r.length;for(;n--;){let a=r[n];a.optimizeNames(e,t)||(function(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}(e,a.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>A(e,t.names),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class $ extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){let e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof $?t:t.nodes:this.nodes.length?this:new $(C(e),t instanceof $?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=T(this.condition,e,t),this}get names(){let e=super.names;return x(e,this.condition),this.else&&A(e,this.else.names),e}}$.kind="if";class _ extends y{}_.kind="for";class b extends _{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=T(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class w extends _{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){let t=e.es5?a.varKinds.var:this.varKind,{name:r,from:n,to:i}=this;return`for(${t} ${r}=${n}; ${r}<${i}; ${r}++)`+super.render(e)}get names(){let e=x(super.names,this.from);return x(e,this.to)}}class E extends _{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=T(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class P extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){let t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}P.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class k extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class N extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}N.kind="catch";class O extends y{render(e){return"finally"+super.render(e)}}O.kind="finally";class j{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new a.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){let a=this._scope.toName(t);return void 0!==r&&n&&(this._constants[a.str]=r),this._leafNode(new l(e,a,r)),a}const(e,t,r){return this._def(a.varKinds.const,e,t,r)}let(e,t,r){return this._def(a.varKinds.let,e,t,r)}var(e,t,r){return this._def(a.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new c(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new p(e)),this}object(...e){let t=["{"];for(let[r,a]of e)t.length>1&&t.push(","),t.push(r),(r!==a||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,a));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new $(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new $(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode($,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,r,n,i=this.opts.es5?a.varKinds.var:a.varKinds.let){let o=this._scope.toName(e);return this._for(new w(i,o,t,r),()=>n(o))}forOf(e,t,r,i=a.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,n._)`${e}.length`,t=>{this.var(o,(0,n._)`${e}[${t}]`),r(o)})}return this._for(new E("of",i,o,t),()=>r(o))}forIn(e,t,r,i=this.opts.es5?a.varKinds.var:a.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,n._)`Object.keys(${t})`,r);let o=this._scope.toName(e);return this._for(new E("in",i,o,t),()=>r(o))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new f(e))}break(e){return this._leafNode(new d(e))}return(e){let t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw Error('CodeGen: "try" without "catch" and "finally"');let n=new k;if(this._blockNode(n),this.code(e),t){let e=this.name("e");this._currNode=n.catch=new N(e),t(e)}return r&&(this._currNode=n.finally=new O,this.code(r)),this._endBlockNode(N,O)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(void 0===t)throw Error("CodeGen: not in self-balancing block");let r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,a){return this._blockNode(new P(e,t,r)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(P)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof $))throw Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}}function A(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function x(e,t){return t instanceof n._CodeOrName?A(e,t.names):e}function T(e,t,r){if(e instanceof n.Name)return a(e);if(!(e instanceof n._Code&&e._items.some(e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str])))return e;return new n._Code(e._items.reduce((e,t)=>(t instanceof n.Name&&(t=a(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e),[]));function a(e){let n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function C(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,n._)`!${D(e)}`}t.CodeGen=j,t.not=C;let I=M(t.operators.AND);t.and=function(...e){return e.reduce(I)};let R=M(t.operators.OR);function M(e){return(t,r)=>t===n.nil?r:r===n.nil?t:(0,n._)`${D(t)} ${e} ${D(r)}`}function D(e){return e instanceof n.Name?e:(0,n._)`(${e})`}t.or=function(...e){return e.reduce(R)}},54110:function(e,t,r){"use strict";var n,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;let i=r(57440);class o extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}(a=n||(t.UsedValueState=n={}))[a.Started=0]="Started",a[a.Completed=1]="Completed",t.varKinds={const:new i.Name("const"),let:new i.Name("let"),var:new i.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof i.Name?e:this.name(e)}name(e){return new i.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class l extends i.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=(0,i._)`.${new i.Name(t)}[${r}]`}}t.ValueScopeName=l;let u=(0,i._)`\n`;class c extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?u:i.nil}}get(){return this._scope}name(e){return new l(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:a}=n,i=null!==(r=t.key)&&void 0!==r?r:t.ref,o=this._values[a];if(o){let e=o.get(i);if(e)return e}else o=this._values[a]=new Map;o.set(i,n);let s=this._scope[a]||(this._scope[a]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:a,itemIndex:l}),n}getValue(e,t){let r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw Error(`CodeGen: name "${t}" has no value`);return(0,i._)`${e}${t.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(e,r,a={},s){let l=i.nil;for(let u in e){let c=e[u];if(!c)continue;let f=a[u]=a[u]||new Map;c.forEach(e=>{if(f.has(e))return;f.set(e,n.Started);let a=r(e);if(a){let r=this.opts.es5?t.varKinds.var:t.varKinds.const;l=(0,i._)`${l}${r} ${e} = ${a};${this.opts._n}`}else if(a=null==s?void 0:s(e))l=(0,i._)`${l}${a}${this.opts._n}`;else throw new o(e);f.set(e,n.Completed)})}return l}}t.ValueScope=c},83568:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;let n=r(2088),a=r(96205),i=r(45006);function o(e,t){let r=e.const("err",t);e.if((0,n._)`${i.default.vErrors} === null`,()=>e.assign(i.default.vErrors,(0,n._)`[${r}]`),(0,n._)`${i.default.vErrors}.push(${r})`),e.code((0,n._)`${i.default.errors}++`)}function s(e,t){let{gen:r,validateName:a,schemaEnv:i}=e;i.$async?r.throw((0,n._)`new ${e.ValidationError}(${t})`):(r.assign((0,n._)`${a}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>(0,n.str)`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,n.str)`"${e}" keyword must be ${t} ($data)`:(0,n.str)`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,a,i){let{it:l}=e,{gen:c,compositeRule:f,allErrors:d}=l,h=u(e,r,a);(null!=i?i:f||d)?o(c,h):s(l,(0,n._)`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,n){let{it:a}=e,{gen:l,compositeRule:c,allErrors:f}=a;o(l,u(e,r,n)),c||f||s(a,i.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(i.default.errors,t),e.if((0,n._)`${i.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,n._)`${i.default.vErrors}.length`,t),()=>e.assign(i.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:a,errsCount:o,it:s}){if(void 0===o)throw Error("ajv implementation error");let l=e.name("err");e.forRange("i",o,i.default.errors,o=>{e.const(l,(0,n._)`${i.default.vErrors}[${o}]`),e.if((0,n._)`${l}.instancePath === undefined`,()=>e.assign((0,n._)`${l}.instancePath`,(0,n.strConcat)(i.default.instancePath,s.errorPath))),e.assign((0,n._)`${l}.schemaPath`,(0,n.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,n._)`${l}.schema`,r),e.assign((0,n._)`${l}.data`,a))})};let l={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function u(e,t,r){let{createErrors:o}=e.it;return!1===o?(0,n._)`{}`:function(e,t,r={}){let{gen:o,it:s}=e,u=[function({errorPath:e},{instancePath:t}){let r=t?(0,n.str)`${e}${(0,a.getErrorPath)(t,a.Type.Str)}`:e;return[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,r)]}(s,r),function({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let o=i?t:(0,n.str)`${t}/${e}`;return r&&(o=(0,n.str)`${o}${(0,a.getErrorPath)(r,a.Type.Str)}`),[l.schemaPath,o]}(e,r)];return function(e,{params:t,message:r},a){let{keyword:o,data:s,schemaValue:u,it:c}=e,{opts:f,propertyName:d,topSchemaRef:h,schemaPath:p}=c;a.push([l.keyword,o],[l.params,"function"==typeof t?t(e):t||(0,n._)`{}`]),f.messages&&a.push([l.message,"function"==typeof r?r(e):r]),f.verbose&&a.push([l.schema,u],[l.parentSchema,(0,n._)`${h}${p}`],[i.default.data,s]),d&&a.push([l.propertyName,d])}(e,t,u),o.object(...u)}(e,t,r)}},27525:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;let n=r(2088),a=r(97700),i=r(45006),o=r(38750),s=r(96205),l=r(65886);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,o.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function c(e){let t,r;let s=d.call(this,e);if(s)return s;let u=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:f}=this.opts.code,{ownProperties:h}=this.opts,p=new n.CodeGen(this.scope,{es5:c,lines:f,ownProperties:h});e.$async&&(t=p.scopeValue("Error",{ref:a.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));let m=p.scopeName("validate");e.validateName=m;let y={gen:p,allErrors:this.opts.allErrors,data:i.default.data,parentData:i.default.parentData,parentDataProperty:i.default.parentDataProperty,dataNames:[i.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:t,schema:e.schema,schemaEnv:e,rootId:u,baseId:e.baseId||u,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};try{this._compilations.add(e),(0,l.validateFunctionCode)(y),p.optimize(this.opts.code.optimize);let t=p.toString();r=`${p.scopeRefs(i.default.scope)}return ${t}`,this.opts.code.process&&(r=this.opts.code.process(r,e));let a=Function(`${i.default.self}`,`${i.default.scope}`,r)(this,this.scope.get());if(this.scope.value(m,{ref:a}),a.errors=null,a.schema=e.schema,a.schemaEnv=e,e.$async&&(a.$async=!0),!0===this.opts.code.source&&(a.source={validateName:m,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){let{props:e,items:t}=y;a.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},a.source&&(a.source.evaluated=(0,n.stringify)(a.evaluated))}return e.validate=a,e}catch(t){throw delete e.validate,delete e.validateName,r&&this.logger.error("Error compiling schema, function code:",r),t}finally{this._compilations.delete(e)}}function f(e){return(0,o.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function d(e){for(let t of this._compilations){if(t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId)return t}}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||p.call(this,e,t)}function p(e,t){let r=this.opts.uriResolver.parse(t),n=(0,o._getFullPath)(this.opts.uriResolver,r),a=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===a)return y.call(this,r,e);let i=(0,o.normalizeId)(n),s=this.refs[i]||this.schemas[i];if("string"==typeof s){let t=p.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||c.call(this,s),i===(0,o.normalizeId)(t)){let{schema:t}=s,{schemaId:r}=this.opts,n=t[r];return n&&(a=(0,o.resolveUrl)(this.opts.uriResolver,a,n)),new u({schema:t,schemaId:r,root:e,baseId:a})}return y.call(this,r,s)}}t.SchemaEnv=u,t.compileSchema=c,t.resolveRef=function(e,t,r){var n;r=(0,o.resolveUrl)(this.opts.uriResolver,t,r);let a=e.refs[r];if(a)return a;let i=h.call(this,e,r);if(void 0===i){let a=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:o}=this.opts;a&&(i=new u({schema:a,schemaId:o,root:e,baseId:t}))}if(void 0!==i)return e.refs[r]=f.call(this,i)},t.getCompilingSchema=d,t.resolveSchema=p;let m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var a;let i;if((null===(a=e.fragment)||void 0===a?void 0:a[0])!=="/")return;for(let n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;let e=r[(0,s.unescapeFragment)(n)];if(void 0===e)return;let a="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&a&&(t=(0,o.resolveUrl)(this.opts.uriResolver,t,a))}if("boolean"!=typeof r&&r.$ref&&!(0,s.schemaHasRulesButRef)(r,this.RULES)){let e=(0,o.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=p.call(this,n,e)}let{schemaId:l}=this.opts;if((i=i||new u({schema:r,schemaId:l,root:n,baseId:t})).schema!==i.root.schema)return i}},45006:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=a},97829:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(38750);class a extends Error{constructor(e,t,r,a){super(a||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=a},38750:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;let n=r(96205),a=r(27122),i=r(60619),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!function e(t){for(let r in t){if(s.has(r))return!0;let n=t[r];if(Array.isArray(n)&&n.some(e)||"object"==typeof n&&e(n))return!0}return!1}(e):!!t&&function e(t){let r=0;for(let a in t)if("$ref"===a||(r++,!o.has(a)&&("object"==typeof t[a]&&(0,n.eachItem)(t[a],t=>r+=e(t)),r===1/0)))return 1/0;return r}(e)<=t)};let s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e,t="",r){!1!==r&&(t=f(t));let n=e.parse(t);return u(e,n)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=u;let c=/#\/?$/;function f(e){return e?e.replace(c,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,r){return r=f(r),e.resolve(t,r)};let d=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};let{schemaId:r,uriResolver:n}=this.opts,o=f(e[r]||t),s={"":o},u=l(n,o,!1),c={},h=new Set;return i(e,{allKeys:!0},(e,t,n,a)=>{if(void 0===a)return;let i=u+t,o=s[a];function l(t){let r=this.opts.uriResolver.resolve;if(t=f(o?r(o,t):t),h.has(t))throw m(t);h.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?p(e,n.schema,t):t!==f(i)&&("#"===t[0]?(p(e,c[t],t),c[t]=e):this.refs[t]=i),t}function y(e){if("string"==typeof e){if(!d.test(e))throw Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[r]&&(o=l.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),s[t]=o}),c;function p(e,t,r){if(void 0!==t&&!a(e,t))throw m(r)}function m(e){return Error(`reference "${e}" resolves to more than one schema`)}}},39239:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;let r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},96205:function(e,t,r){"use strict";var n,a;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;let i=r(2088),o=r(57440);function s(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||"boolean"==typeof t)return;let a=n.RULES.keywords;for(let r in t)a[r]||m(e,`unknown keyword: "${r}"`)}function l(e,t){if("boolean"==typeof e)return!e;for(let r in e)if(t[r])return!0;return!1}function u(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function f({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(a,o,s,l)=>{let u=void 0===s?o:s instanceof i.Name?(o instanceof i.Name?e(a,o,s):t(a,o,s),s):o instanceof i.Name?(t(a,s,o),o):r(o,s);return l!==i.Name||u instanceof i.Name?u:n(a,u)}}function d(e,t){if(!0===t)return e.var("props",!0);let r=e.var("props",(0,i._)`{}`);return void 0!==t&&h(e,r,t),r}function h(e,t,r){Object.keys(r).forEach(r=>e.assign((0,i._)`${t}${(0,i.getProperty)(r)}`,!0))}t.toHash=function(e){let t={};for(let r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(s(e,t),!l(t,e.self.RULES.all))},t.checkUnknownRules=s,t.schemaHasRules=l,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(let r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,a){if(!a){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return(0,i._)`${r}`}return(0,i._)`${e}${t}${(0,i.getProperty)(n)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(u(e))},t.escapeJsonPointer=u,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)},t.mergeEvaluated={props:f({mergeNames:(e,t,r)=>e.if((0,i._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,i._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,i._)`${r} || {}`).code((0,i._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,i._)`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,(0,i._)`${r} || {}`),h(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),items:f({mergeNames:(e,t,r)=>e.if((0,i._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,i._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,i._)`${r} !== true`,()=>e.assign(r,!0===t||(0,i._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=d,t.setEvaluated=h;let p={};function m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:p[t.code]||(p[t.code]=new o._Code(t.code))})},(a=n||(t.Type=n={}))[a.Num=0]="Num",a[a.Str=1]="Str",t.getErrorPath=function(e,t,r){if(e instanceof i.Name){let a=t===n.Num;return r?a?(0,i._)`"[" + ${e} + "]"`:(0,i._)`"['" + ${e} + "']"`:a?(0,i._)`"/" + ${e}`:(0,i._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,i.getProperty)(e).toString():"/"+u(e)},t.checkStrictMode=m},4805:function(e,t){"use strict";function r(e,t){return t.rules.some(t=>n(e,t))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){let a=t.RULES.types[n];return a&&!0!==a&&r(e,a)},t.shouldUseGroup=r,t.shouldUseRule=n},93773:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;let n=r(83568),a=r(2088),i=r(45006),o={message:"boolean schema is false"};function s(e,t){let{gen:r,data:a}=e;(0,n.reportError)({gen:r,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e},o,void 0,t)}t.topBoolOrEmptySchema=function(e){let{gen:t,schema:r,validateName:n}=e;!1===r?s(e,!1):"object"==typeof r&&!0===r.$async?t.return(i.default.data):(t.assign((0,a._)`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){let{gen:r,schema:n}=e;!1===n?(r.var(t,!1),s(e)):r.var(t,!0)}},1565:function(e,t,r){"use strict";var n,a;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;let i=r(39239),o=r(4805),s=r(83568),l=r(2088),u=r(96205);function c(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(i.isJSONType))return t;throw Error("type must be JSONType or JSONType[]: "+t.join(","))}(a=n||(t.DataType=n={}))[a.Correct=0]="Correct",a[a.Wrong=1]="Wrong",t.getSchemaTypes=function(e){let t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){var r;let{gen:a,data:i,opts:s}=e,u=(r=s.coerceTypes)?t.filter(e=>f.has(e)||"array"===r&&"array"===e):[],c=t.length>0&&!(0===u.length&&1===t.length&&(0,o.schemaHasRulesForType)(e,t[0]));if(c){let r=h(t,i,s.strictNumbers,n.Wrong);a.if(r,()=>{u.length?function(e,t,r){let{gen:n,data:a,opts:i}=e,o=n.let("dataType",(0,l._)`typeof ${a}`),s=n.let("coerced",(0,l._)`undefined`);for(let e of("array"===i.coerceTypes&&n.if((0,l._)`${o} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,l._)`${a}[0]`).assign(o,(0,l._)`typeof ${a}`).if(h(t,a,i.strictNumbers),()=>n.assign(s,a))),n.if((0,l._)`${s} !== undefined`),r))(f.has(e)||"array"===e&&"array"===i.coerceTypes)&&function(e){switch(e){case"string":n.elseIf((0,l._)`${o} == "number" || ${o} == "boolean"`).assign(s,(0,l._)`"" + ${a}`).elseIf((0,l._)`${a} === null`).assign(s,(0,l._)`""`);return;case"number":n.elseIf((0,l._)`${o} == "boolean" || ${a} === null
              || (${o} == "string" && ${a} && ${a} == +${a})`).assign(s,(0,l._)`+${a}`);return;case"integer":n.elseIf((0,l._)`${o} === "boolean" || ${a} === null
              || (${o} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(s,(0,l._)`+${a}`);return;case"boolean":n.elseIf((0,l._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(s,!1).elseIf((0,l._)`${a} === "true" || ${a} === 1`).assign(s,!0);return;case"null":n.elseIf((0,l._)`${a} === "" || ${a} === 0 || ${a} === false`),n.assign(s,null);return;case"array":n.elseIf((0,l._)`${o} === "string" || ${o} === "number"
              || ${o} === "boolean" || ${a} === null`).assign(s,(0,l._)`[${a}]`)}}(e);n.else(),m(e),n.endIf(),n.if((0,l._)`${s} !== undefined`,()=>{n.assign(a,s),function({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,l._)`${t} !== undefined`,()=>e.assign((0,l._)`${t}[${r}]`,n))}(e,s)})}(e,t,u):m(e)})}return c};let f=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,a=n.Correct){let i;let o=a===n.Correct?l.operators.EQ:l.operators.NEQ;switch(e){case"null":return(0,l._)`${t} ${o} null`;case"array":i=(0,l._)`Array.isArray(${t})`;break;case"object":i=(0,l._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,l._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,l._)`typeof ${t} ${o} ${e}`}return a===n.Correct?i:(0,l.not)(i);function s(e=l.nil){return(0,l.and)((0,l._)`typeof ${t} == "number"`,e,r?(0,l._)`isFinite(${t})`:l.nil)}}function h(e,t,r,n){let a;if(1===e.length)return d(e[0],t,r,n);let i=(0,u.toHash)(e);if(i.array&&i.object){let e=(0,l._)`typeof ${t} != "object"`;a=i.null?e:(0,l._)`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else a=l.nil;for(let e in i.number&&delete i.integer,i)a=(0,l.and)(a,d(e,t,r,n));return a}t.checkDataType=d,t.checkDataTypes=h;let p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?(0,l._)`{type: ${e}}`:(0,l._)`{type: ${t}}`};function m(e){let t=function(e){let{gen:t,data:r,schema:n}=e,a=(0,u.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:e}}(e);(0,s.reportError)(t,p)}t.reportTypeError=m},89544:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;let n=r(2088),a=r(96205);function i(e,t,r){let{gen:i,compositeRule:o,data:s,opts:l}=e;if(void 0===r)return;let u=(0,n._)`${s}${(0,n.getProperty)(t)}`;if(o){(0,a.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,n._)`${u} === undefined`;"empty"===l.useDefaults&&(c=(0,n._)`${c} || ${u} === null || ${u} === ""`),i.if(c,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){let{properties:r,items:n}=e.schema;if("object"===t&&r)for(let t in r)i(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach((t,r)=>i(e,r,t.default))}},65886:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;let n=r(93773),a=r(1565),i=r(4805),o=r(1565),s=r(89544),l=r(96018),u=r(86561),c=r(2088),f=r(45006),d=r(38750),h=r(96205),p=r(83568);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:a},i){a.code.es5?e.func(t,(0,c._)`${f.default.data}, ${f.default.valCxt}`,n.$async,()=>{e.code((0,c._)`"use strict"; ${y(r,a)}`),function(e,t){e.if(f.default.valCxt,()=>{e.var(f.default.instancePath,(0,c._)`${f.default.valCxt}.${f.default.instancePath}`),e.var(f.default.parentData,(0,c._)`${f.default.valCxt}.${f.default.parentData}`),e.var(f.default.parentDataProperty,(0,c._)`${f.default.valCxt}.${f.default.parentDataProperty}`),e.var(f.default.rootData,(0,c._)`${f.default.valCxt}.${f.default.rootData}`),t.dynamicRef&&e.var(f.default.dynamicAnchors,(0,c._)`${f.default.valCxt}.${f.default.dynamicAnchors}`)},()=>{e.var(f.default.instancePath,(0,c._)`""`),e.var(f.default.parentData,(0,c._)`undefined`),e.var(f.default.parentDataProperty,(0,c._)`undefined`),e.var(f.default.rootData,f.default.data),t.dynamicRef&&e.var(f.default.dynamicAnchors,(0,c._)`{}`)})}(e,a),e.code(i)}):e.func(t,(0,c._)`${f.default.data}, ${(0,c._)`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${a.dynamicRef?(0,c._)`, ${f.default.dynamicAnchors}={}`:c.nil}}={}`}`,n.$async,()=>e.code(y(r,a)).code(i))}function y(e,t){let r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${r} */`:c.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function $(e){(0,h.checkUnknownRules)(e),function(e){let{schema:t,errSchemaPath:r,opts:n,self:a}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,t){if(e.opts.jtd)return w(e,[],!1,t);let r=(0,a.getSchemaTypes)(e.schema),n=(0,a.coerceAndCheckDataType)(e,r);w(e,r,!n,t)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:a}){let i=r.$comment;if(!0===a.$comment)e.code((0,c._)`${f.default.self}.logger.log(${i})`);else if("function"==typeof a.$comment){let r=(0,c.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,c._)`${f.default.self}.opts.$comment(${i}, ${r}, ${a}.schema)`)}}function w(e,t,r,n){let{gen:a,schema:s,data:l,allErrors:u,opts:d,self:p}=e,{RULES:m}=p;if(s.$ref&&(d.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(s,m))){a.block(()=>N(e,"$ref",m.all.$ref.definition));return}function y(h){(0,i.shouldUseGroup)(s,h)&&(h.type?(a.if((0,o.checkDataType)(h.type,l,d.strictNumbers)),E(e,h),1===t.length&&t[0]===h.type&&r&&(a.else(),(0,o.reportTypeError)(e)),a.endIf()):E(e,h),u||a.if((0,c._)`${f.default.errors} === ${n||0}`))}d.jtd||!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{P(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){let r=[];for(let n of e.dataTypes)P(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)}}(e,t),e.opts.allowUnionTypes||t.length>1&&!(2===t.length&&t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword"),function(e,t){let r=e.self.RULES.all;for(let n in r){let a=r[n];if("object"==typeof a&&(0,i.shouldUseRule)(e.schema,a)){let{type:r}=a.definition;r.length&&!r.some(e=>t.includes(e)||"number"===e&&t.includes("integer"))&&S(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)),a.block(()=>{for(let e of m.rules)y(e);y(m.post)})}function E(e,t){let{gen:r,schema:n,opts:{useDefaults:a}}=e;a&&(0,s.assignDefaults)(e,t.type),r.block(()=>{for(let r of t.rules)(0,i.shouldUseRule)(n,r)&&N(e,r.keyword,r.definition,t.type)})}function P(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){if(v(e)&&($(e),g(e))){!function(e){let{schema:t,opts:r,gen:n}=e;m(e,()=>{r.$comment&&t.$comment&&b(e),function(e){let{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(f.default.vErrors,null),n.let(f.default.errors,0),r.unevaluated&&function(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,c._)`${r}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}(e),_(e),function(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:a,opts:i}=e;r.$async?t.if((0,c._)`${f.default.errors} === 0`,()=>t.return(f.default.data),()=>t.throw((0,c._)`new ${a}(${f.default.vErrors})`)):(t.assign((0,c._)`${n}.errors`,f.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof c.Name&&e.assign((0,c._)`${t}.props`,r),n instanceof c.Name&&e.assign((0,c._)`${t}.items`,n)}(e),t.return((0,c._)`${f.default.errors} === 0`))}(e)})}(e);return}m(e,()=>(0,n.topBoolOrEmptySchema)(e))};class k{constructor(e,t,r){if((0,l.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,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",A(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,l.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",f.default.errors))}result(e,t,r){this.failResult((0,c.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():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,c.not)(e),void 0,t)}fail(e){if(void 0===e){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,p.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,r=c.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:r,schemaCode:n,schemaType:a,def:i}=this;r.if((0,c.or)((0,c._)`${n} === undefined`,t)),e!==c.nil&&r.assign(e,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:r,def:n,it:a}=this;return(0,c.or)(function(){if(r.length){if(!(t instanceof c.Name))throw Error("ajv implementation error");let e=Array.isArray(r)?r:[r];return(0,c._)`${(0,o.checkDataTypes)(e,t,a.opts.strictNumbers,o.DataType.Wrong)}`}return c.nil}(),function(){if(n.validateSchema){let r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,c._)`!${r}(${t})`}return c.nil}())}subschema(e,t){let r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);let a={...this.it,...r,items:void 0,props:void 0};return!function(e,t){if(v(e)&&($(e),g(e))){(function(e,t){let{schema:r,gen:n,opts:a}=e;a.$comment&&r.$comment&&b(e),function(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}(e);let i=n.const("_errs",f.default.errors);_(e,i),n.var(t,(0,c._)`${i} === ${f.default.errors}`)})(e,t);return}(0,n.boolOrEmptySchema)(e,t)}(a,t),a}mergeEvaluated(e,t){let{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){let{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}}function N(e,t,r,n){let a=new k(e,r,t);"code"in r?r.code(a,n):a.$data&&r.validate?(0,l.funcKeywordCode)(a,r):"macro"in r?(0,l.macroKeywordCode)(a,r):(r.compile||r.validate)&&(0,l.funcKeywordCode)(a,r)}t.KeywordCxt=k;let O=/^\/(?:[^~]|~0|~1)*$/,j=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function A(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let a,i;if(""===e)return f.default.rootData;if("/"===e[0]){if(!O.test(e))throw Error(`Invalid JSON-pointer: ${e}`);a=e,i=f.default.rootData}else{let o=j.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let l=+o[1];if("#"===(a=o[2])){if(l>=t)throw Error(s("property/index",l));return n[t-l]}if(l>t)throw Error(s("data",l));if(i=r[t-l],!a)return i}let o=i;for(let e of a.split("/"))e&&(i=(0,c._)`${i}${(0,c.getProperty)((0,h.unescapeJsonPointer)(e))}`,o=(0,c._)`${o} && ${i}`);return o;function s(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=A},96018:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;let n=r(2088),a=r(45006),i=r(66026),o=r(83568);function s(e){let{gen:t,data:r,it:a}=e;t.if(a.parentData,()=>t.assign(r,(0,n._)`${a.parentData}[${a.parentDataProperty}]`))}function l(e,t,r){if(void 0===r)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){let{gen:r,keyword:a,schema:i,parentSchema:o,it:s}=e,u=t.macro.call(s.self,i,o,s),c=l(r,a,u);!1!==s.opts.validateSchema&&s.self.validateSchema(u,!0);let f=r.name("valid");e.subschema({schema:u,schemaPath:n.nil,errSchemaPath:`${s.errSchemaPath}/${a}`,topSchemaRef:c,compositeRule:!0},f),e.pass(f,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var r;let{gen:u,keyword:c,schema:f,parentSchema:d,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}(p,t);let m=l(u,c,!h&&t.compile?t.compile.call(p.self,f,d,p):t.validate),y=u.let("valid");function g(r=t.async?(0,n._)`await `:n.nil){let o=p.opts.passContext?a.default.this:a.default.self,s=!("compile"in t&&!h||!1===t.schema);u.assign(y,(0,n._)`${r}${(0,i.callValidateCode)(e,m,o,s)}`,t.modifying)}function v(e){var r;u.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:y),e)}e.block$data(y,function(){if(!1===t.errors)g(),t.modifying&&s(e),v(()=>e.error());else{let r=t.async?function(){let e=u.let("ruleErrs",null);return u.try(()=>g((0,n._)`await `),t=>u.assign(y,!1).if((0,n._)`${t} instanceof ${p.ValidationError}`,()=>u.assign(e,(0,n._)`${t}.errors`),()=>u.throw(t))),e}():function(){let e=(0,n._)`${m}.errors`;return u.assign(e,null),g(n.nil),e}();t.modifying&&s(e),v(()=>(function(e,t){let{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,()=>{r.assign(a.default.vErrors,(0,n._)`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`).assign(a.default.errors,(0,n._)`${a.default.vErrors}.length`),(0,o.extendErrors)(e)},()=>e.error())})(e,r))}}),e.ok(null!==(r=t.valid)&&void 0!==r?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},a,i){if(Array.isArray(a.keyword)?!a.keyword.includes(i):a.keyword!==i)throw Error("ajv implementation error");let o=a.dependencies;if(null==o?void 0:o.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${i}: ${o.join(",")}`);if(a.validateSchema&&!a.validateSchema(e[i])){let e=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(a.validateSchema.errors);if("log"===t.validateSchema)r.logger.error(e);else throw Error(e)}}},86561:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;let n=r(2088),a=r(96205);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:i,schemaPath:o,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==i)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){let i=e.schema[t];return void 0===r?{schema:i,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,a.escapeFragment)(r)}`}}if(void 0!==i){if(void 0===o||void 0===s||void 0===l)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:o,topSchemaRef:l,errSchemaPath:s}}throw Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:i,data:o,dataTypes:s,propertyName:l}){if(void 0!==o&&void 0!==r)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(void 0!==r){let{errorPath:o,dataPathArr:s,opts:l}=t;c(u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=(0,n.str)`${o}${(0,a.getErrorPath)(r,i,l.jsPropertySyntax)}`,e.parentDataProperty=(0,n._)`${r}`,e.dataPathArr=[...s,e.parentDataProperty]}function c(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==o&&(c(o instanceof n.Name?o:u.let("data",o,!0)),void 0!==l&&(e.propertyName=l)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:a,allErrors:i}){void 0!==n&&(e.compositeRule=n),void 0!==a&&(e.createErrors=a),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}},72992:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(65886);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var a=r(2088);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});let i=r(97700),o=r(97829),s=r(39239),l=r(27525),u=r(2088),c=r(38750),f=r(1565),d=r(96205),h=r(25183),p=r(4291),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";let y=["removeAdditional","useDefaults","coerceTypes"],g=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."},$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...function(e){var t,r,n,a,i,o,s,l,u,c,f,d,h,y,g,v,$,_,b,w,E,P,S,k,N;let O=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,A=!0===j||void 0===j?1:j||0,x=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,T=null!==(a=e.uriResolver)&&void 0!==a?a:p.default;return{strictSchema:null===(o=null!==(i=e.strictSchema)&&void 0!==i?i:O)||void 0===o||o,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:O)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:O)&&void 0!==c?c:"log",strictTuples:null!==(d=null!==(f=e.strictTuples)&&void 0!==f?f:O)&&void 0!==d?d:"log",strictRequired:null!==(y=null!==(h=e.strictRequired)&&void 0!==h?h:O)&&void 0!==y&&y,code:e.code?{...e.code,optimize:A,regExp:x}:{optimize:A,regExp:x},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===($=e.meta)||void 0===$||$,messages:null===(_=e.messages)||void 0===_||_,inlineRefs:null===(b=e.inlineRefs)||void 0===b||b,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(E=e.addUsedSchema)||void 0===E||E,validateSchema:null===(P=e.validateSchema)||void 0===P||P,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(k=e.unicodeRegExp)||void 0===k||k,int32range:null===(N=e.int32range)||void 0===N||N,uriResolver:T}}(e)};let{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return N;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}(e.logger);let n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),b.call(this,v,e,"NOT SUPPORTED"),b.call(this,$,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&S.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),E.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:r}=this.opts,n=h;"id"===r&&((n={...h}).id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){let r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);let r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){let r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){let t=this._loading[e];if(t)return t;try{return await (this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){let a;if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,r,n);return this}if("object"==typeof e){let{schemaId:t}=this.opts;if(void 0!==(a=e[t])&&"string"!=typeof a)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||a),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){let r;if("boolean"==typeof e)return!0;if(void 0!==(r=e.$schema)&&"string"!=typeof r)throw Error("$schema must be a string");if(!(r=r||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(r,e);if(!n&&t){let e="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(e);else throw Error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=w.call(this,e));)e=t;if(void 0===t){let{schemaId:r}=this.opts,n=new l.SchemaEnv({schema:{},schemaId:r});if(!(t=l.resolveSchema.call(this,n,e)))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":{let 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":{this._cache.delete(e);let t=e[this.opts.schemaId];return t&&(t=(0,c.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else if("object"==typeof e&&void 0===t){if(Array.isArray(r=(t=e).keyword)&&!r.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(j.call(this,r,t),!t)return(0,d.eachItem)(r,e=>A.call(this,e)),this;T.call(this,t);let n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===n.type.length?e=>A.call(this,e,n):e=>n.type.forEach(t=>A.call(this,e,n,t))),this}getKeyword(e){let t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;for(let r of(delete t.keywords[e],delete t.all[e],t.rules)){let t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.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:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){let r=this.RULES.all;for(let n of(e=JSON.parse(JSON.stringify(e)),t)){let t=n.split("/").slice(1),a=e;for(let e of t)a=a[e];for(let e in r){let t=r[e];if("object"!=typeof t)continue;let{$data:n}=t.definition,i=a[e];n&&i&&(a[e]=I(i))}}return e}_removeAllSchemas(e,t){for(let r in e){let n=e[r];(!t||t.test(r))&&("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,a=this.opts.addUsedSchema){let i;let{schemaId:o}=this.opts;if("object"==typeof e)i=e[o];else{if(this.opts.jtd)throw Error("schema must be object");if("boolean"!=typeof e)throw Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;r=(0,c.normalizeId)(i||r);let u=c.getSchemaRefs.call(this,e,r);return s=new l.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u}),this._cache.set(s.schema,s),a&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=s),n&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):l.compileSchema.call(this,e),!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,r,n="error"){for(let a in e)a in t&&this.logger[n](`${r}: option ${a}. ${e[a]}`)}function w(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function E(){let e=this.opts.schemas;if(e){if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}}function P(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function S(e){if(Array.isArray(e)){this.addVocabulary(e);return}for(let t in this.logger.warn("keywords option as map is deprecated, pass array"),e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function k(){let e={...this.opts};for(let t of y)delete e[t];return e}_.ValidationError=i.default,_.MissingRefError=o.default,t.default=_;let N={log(){},warn(){},error(){}},O=/^[a-z_$][a-z0-9_$:-]*$/i;function j(e,t){let{RULES:r}=this;if((0,d.eachItem)(e,e=>{if(r.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!O.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t||"validate"in t))throw Error('$data keyword must have "code" or "validate" function')}function A(e,t,r){var n;let a=null==t?void 0:t.post;if(r&&a)throw Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,o=a?i.post:i.rules.find(({type:e})=>e===r);if(o||(o={type:r,rules:[]},i.rules.push(o)),i.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?x.call(this,o,s,t.before):o.rules.push(s),i.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach(e=>this.addKeyword(e))}function x(e,t,r){let n=e.rules.findIndex(e=>e.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function T(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=I(t)),e.validateSchema=this.compile(t,!0))}let C={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function I(e){return{anyOf:[e,C]}}},72849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(27122);n.code='require("ajv/dist/runtime/equal").default',t.default=n},35467:function(e,t){"use strict";function r(e){let t;let r=e.length,n=0,a=0;for(;a<r;)n++,(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<r&&(64512&(t=e.charCodeAt(a)))==56320&&a++;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},4291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(59542);n.code='require("ajv/dist/runtime/uri").default',t.default=n},97700:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},94814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;let n=r(2088),a=r(96205);function i(e,t){let{gen:r,schema:i,data:o,keyword:s,it:l}=e;l.items=!0;let u=r.const("len",(0,n._)`${o}.length`);if(!1===i)e.setParams({len:t.length}),e.pass((0,n._)`${u} <= ${t.length}`);else if("object"==typeof i&&!(0,a.alwaysValidSchema)(l,i)){let i=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(i),()=>{r.forRange("i",t.length,u,t=>{e.subschema({keyword:s,dataProp:t,dataPropType:a.Type.Num},i),l.allErrors||r.if((0,n.not)(i),()=>r.break())})}),e.ok(i)}}t.validateAdditionalItems=i,t.default={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,a.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(e,n)}}},91700:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(66026),a=r(2088),i=r(45006),o=r(96205);t.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,a._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:t,schema:r,parentSchema:s,data:l,errsCount:u,it:c}=e;if(!u)throw Error("ajv implementation error");let{allErrors:f,opts:d}=c;if(c.props=!0,"all"!==d.removeAdditional&&(0,o.alwaysValidSchema)(c,r))return;let h=(0,n.allSchemaProperties)(s.properties),p=(0,n.allSchemaProperties)(s.patternProperties);function m(e){t.code((0,a._)`delete ${l}[${e}]`)}function y(n){if("all"===d.removeAdditional||d.removeAdditional&&!1===r){m(n);return}if(!1===r){e.setParams({additionalProperty:n}),e.error(),f||t.break();return}if("object"==typeof r&&!(0,o.alwaysValidSchema)(c,r)){let r=t.name("valid");"failing"===d.removeAdditional?(g(n,r,!1),t.if((0,a.not)(r),()=>{e.reset(),m(n)})):(g(n,r),f||t.if((0,a.not)(r),()=>t.break()))}}function g(t,r,n){let a={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};!1===n&&Object.assign(a,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(a,r)}t.forIn("key",l,r=>{h.length||p.length?t.if(function(r){let i;if(h.length>8){let e=(0,o.schemaRefOrVal)(c,s.properties,"properties");i=(0,n.isOwnProperty)(t,e,r)}else i=h.length?(0,a.or)(...h.map(e=>(0,a._)`${r} === ${e}`)):a.nil;return p.length&&(i=(0,a.or)(i,...p.map(t=>(0,a._)`${(0,n.usePattern)(e,t)}.test(${r})`))),(0,a.not)(i)}(r),()=>y(r)):y(r)}),e.ok((0,a._)`${u} === ${i.default.errors}`)}}},80912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(96205);t.default={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:a}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let i=t.name("valid");r.forEach((t,r)=>{if((0,n.alwaysValidSchema)(a,t))return;let o=e.subschema({keyword:"allOf",schemaProp:r},i);e.ok(i),e.mergeEvaluated(o)})}}},26882:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(66026).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},61964:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205);t.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`},code(e){let t,r;let{gen:i,schema:o,parentSchema:s,data:l,it:u}=e,{minContains:c,maxContains:f}=s;u.opts.next?(t=void 0===c?1:c,r=f):t=1;let d=i.const("len",(0,n._)`${l}.length`);if(e.setParams({min:t,max:r}),void 0===r&&0===t){(0,a.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(void 0!==r&&t>r){(0,a.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,a.alwaysValidSchema)(u,o)){let a=(0,n._)`${d} >= ${t}`;void 0!==r&&(a=(0,n._)`${a} && ${d} <= ${r}`),e.pass(a);return}u.items=!0;let h=i.name("valid");function p(){let e=i.name("_valid"),a=i.let("count",0);m(e,()=>i.if(e,()=>{i.code((0,n._)`${a}++`),void 0===r?i.if((0,n._)`${a} >= ${t}`,()=>i.assign(h,!0).break()):(i.if((0,n._)`${a} > ${r}`,()=>i.assign(h,!1).break()),1===t?i.assign(h,!0):i.if((0,n._)`${a} >= ${t}`,()=>i.assign(h,!0)))}))}function m(t,r){i.forRange("i",0,d,n=>{e.subschema({keyword:"contains",dataProp:n,dataPropType:a.Type.Num,compositeRule:!0},t),r()})}void 0===r&&1===t?m(h,()=>i.if(h,()=>i.break())):0===t?(i.let(h,!0),void 0!==r&&i.if((0,n._)`${l}.length > 0`,p)):(i.let(h,!1),p()),e.result(h,()=>e.reset())}}},94363:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;let n=r(2088),a=r(96205),i=r(66026);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>(0,n.str)`must have ${1===t?"property":"properties"} ${r} when property ${e} is present`,params:({params:{property:e,depsCount:t,deps:r,missingProperty:a}})=>(0,n._)`{property: ${e},
    missingProperty: ${a},
    depsCount: ${t},
    deps: ${r}}`};let o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){let[t,r]=function({schema:e}){let t={},r={};for(let n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);s(e,t),l(e,r)}};function s(e,t=e.schema){let{gen:r,data:a,it:o}=e;if(0===Object.keys(t).length)return;let s=r.let("missing");for(let l in t){let u=t[l];if(0===u.length)continue;let c=(0,i.propertyInData)(r,a,l,o.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),o.allErrors?r.if(c,()=>{for(let t of u)(0,i.checkReportMissingProp)(e,t)}):(r.if((0,n._)`${c} && (${(0,i.checkMissingProp)(e,u,s)})`),(0,i.reportMissingProp)(e,s),r.else())}}function l(e,t=e.schema){let{gen:r,data:n,keyword:o,it:s}=e,l=r.name("valid");for(let u in t)(0,a.alwaysValidSchema)(s,t[u])||(r.if((0,i.propertyInData)(r,n,u,s.opts.ownProperties),()=>{let t=e.subschema({keyword:o,schemaProp:u},l);e.mergeValidEvaluated(t,l)},()=>r.var(l,!0)),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=o},47920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205);function i(e,t){let r=e.schema[t];return void 0!==r&&!(0,a.alwaysValidSchema)(e,r)}t.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,n.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,n._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:t,parentSchema:r,it:o}=e;void 0===r.then&&void 0===r.else&&(0,a.checkStrictMode)(o,'"if" without "then" and "else" is ignored');let s=i(o,"then"),l=i(o,"else");if(!s&&!l)return;let u=t.let("valid",!0),c=t.name("_valid");if(function(){let t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),s&&l){let r=t.let("ifClause");e.setParams({ifClause:r}),t.if(c,f("then",r),f("else",r))}else s?t.if(c,f("then")):t.if((0,n.not)(c),f("else"));function f(r,a){return()=>{let i=e.subschema({keyword:r},c);t.assign(u,c),e.mergeValidEvaluated(i,u),a?t.assign(a,(0,n._)`${r}`):e.setParams({ifClause:r})}}e.pass(u,()=>e.error(!0))}}},17911:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(94814),a=r(63430),i=r(11e3),o=r(95633),s=r(61964),l=r(94363),u=r(5554),c=r(91700),f=r(59244),d=r(87103),h=r(100),p=r(26882),m=r(11423),y=r(80912),g=r(47920),v=r(51018);t.default=function(e=!1){let t=[h.default,p.default,m.default,y.default,g.default,v.default,u.default,c.default,l.default,f.default,d.default];return e?t.push(a.default,o.default):t.push(n.default,i.default),t.push(s.default),t}},11e3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;let n=r(2088),a=r(96205),i=r(66026);function o(e,t,r=e.schema){let{gen:i,parentSchema:o,data:s,keyword:l,it:u}=e;(function(e){let{opts:n,errSchemaPath:i}=u,o=r.length,s=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(n.strictTuples&&!s){let e=`"${l}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;(0,a.checkStrictMode)(u,e,n.strictTuples)}})(o),u.opts.unevaluated&&r.length&&!0!==u.items&&(u.items=a.mergeEvaluated.items(i,r.length,u.items));let c=i.name("valid"),f=i.const("len",(0,n._)`${s}.length`);r.forEach((t,r)=>{(0,a.alwaysValidSchema)(u,t)||(i.if((0,n._)`${f} > ${r}`,()=>e.subschema({keyword:l,schemaProp:r,dataProp:r},c)),e.ok(c))})}t.validateTuple=o,t.default={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return o(e,"additionalItems",t);r.items=!0,(0,a.alwaysValidSchema)(r,t)||e.ok((0,i.validateArray)(e))}}},95633:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205),i=r(66026),o=r(94814);t.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:s}=r;n.items=!0,(0,a.alwaysValidSchema)(n,t)||(s?(0,o.validateAdditionalItems)(e,s):e.ok((0,i.validateArray)(e)))}}},100:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(96205);t.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:a}=e;if((0,n.alwaysValidSchema)(a,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}}},11423:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205);t.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,n._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:t,schema:r,parentSchema:i,it:o}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator)return;let s=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block(function(){r.forEach((r,i)=>{let c;(0,a.alwaysValidSchema)(o,r)?t.var(u,!0):c=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},u),i>0&&t.if((0,n._)`${u} && ${s}`).assign(s,!1).assign(l,(0,n._)`[${l}, ${i}]`).else(),t.if(u,()=>{t.assign(s,!0),t.assign(l,i),c&&e.mergeEvaluated(c,n.Name)})})}),e.result(s,()=>e.reset(),()=>e.error(!0))}}},87103:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(66026),a=r(2088),i=r(96205),o=r(96205);t.default={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:s,parentSchema:l,it:u}=e,{opts:c}=u,f=(0,n.allSchemaProperties)(r),d=f.filter(e=>(0,i.alwaysValidSchema)(u,r[e]));if(0===f.length||d.length===f.length&&(!u.opts.unevaluated||!0===u.props))return;let h=c.strictSchema&&!c.allowMatchingProperties&&l.properties,p=t.name("valid");!0===u.props||u.props instanceof a.Name||(u.props=(0,o.evaluatedPropsToName)(t,u.props));let{props:m}=u;function y(r){t.forIn("key",s,i=>{t.if((0,a._)`${(0,n.usePattern)(e,r)}.test(${i})`,()=>{let n=d.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:i,dataPropType:o.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign((0,a._)`${m}[${i}]`,!0):n||u.allErrors||t.if((0,a.not)(p),()=>t.break())})})}!function(){for(let e of f)h&&function(e){for(let t in h)new RegExp(e).test(t)&&(0,i.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}(e),u.allErrors?y(e):(t.var(p,!0),y(e),t.if(p))}()}}},63430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(11e3);t.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")}},59244:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(65886),a=r(66026),i=r(96205),o=r(91700);t.default={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:s,data:l,it:u}=e;"all"===u.opts.removeAdditional&&void 0===s.additionalProperties&&o.default.code(new n.KeywordCxt(u,o.default,"additionalProperties"));let c=(0,a.allSchemaProperties)(r);for(let e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=i.mergeEvaluated.props(t,(0,i.toHash)(c),u.props));let f=c.filter(e=>!(0,i.alwaysValidSchema)(u,r[e]));if(0===f.length)return;let d=t.name("valid");for(let n of f)u.opts.useDefaults&&!u.compositeRule&&void 0!==r[n].default?h(n):(t.if((0,a.propertyInData)(t,l,n,u.opts.ownProperties)),h(n),u.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}}},5554:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205);t.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,n._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:t,schema:r,data:i,it:o}=e;if((0,a.alwaysValidSchema)(o,r))return;let s=t.name("valid");t.forIn("key",i,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},s),t.if((0,n.not)(s),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(s)}}},51018:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(96205);t.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}},66026:function(e,t,r){"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;let n=r(2088),a=r(96205),i=r(45006),o=r(96205);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}function l(e,t,r){return(0,n._)`${s(e)}.call(${t}, ${r})`}function u(e,t,r,a){let i=(0,n._)`${t}${(0,n.getProperty)(r)} === undefined`;return a?(0,n.or)(i,(0,n.not)(l(e,t,r))):i}function c(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){let{gen:r,data:a,it:i}=e;r.if(u(r,a,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,n._)`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},a,i){return(0,n.or)(...a.map(a=>(0,n.and)(u(e,t,a,r.ownProperties),(0,n._)`${i} = ${a}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=l,t.propertyInData=function(e,t,r,a){let i=(0,n._)`${t}${(0,n.getProperty)(r)} !== undefined`;return a?(0,n._)`${i} && ${l(e,t,r)}`:i},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter(r=>!(0,a.alwaysValidSchema)(e,t[r]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:a,schemaPath:o,errorPath:s},it:l},u,c,f){let d=f?(0,n._)`${e}, ${t}, ${a}${o}`:t,h=[[i.default.instancePath,(0,n.strConcat)(i.default.instancePath,s)],[i.default.parentData,l.parentData],[i.default.parentDataProperty,l.parentDataProperty],[i.default.rootData,i.default.rootData]];l.opts.dynamicRef&&h.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);let p=(0,n._)`${d}, ${r.object(...h)}`;return c!==n.nil?(0,n._)`${u}.call(${c}, ${p})`:(0,n._)`${u}(${p})`};let f=(0,n._)`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){let a=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,a);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,n._)`${"new RegExp"===i.code?f:(0,o.useFunc)(e,i)}(${r}, ${a})`})},t.validateArray=function(e){let{gen:t,data:r,keyword:i,it:o}=e,s=t.name("valid");if(o.allErrors){let e=t.let("valid",!0);return l(()=>t.assign(e,!1)),e}return t.var(s,!0),l(()=>t.break()),s;function l(o){let l=t.const("len",(0,n._)`${r}.length`);t.forRange("i",0,l,r=>{e.subschema({keyword:i,dataProp:r,dataPropType:a.Type.Num},s),t.if((0,n.not)(s),o)})}},t.validateUnion=function(e){let{gen:t,schema:r,keyword:i,it:o}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(r.some(e=>(0,a.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let s=t.let("valid",!1),l=t.name("_valid");t.block(()=>r.forEach((r,a)=>{let o=e.subschema({keyword:i,schemaProp:a,compositeRule:!0},l);t.assign(s,(0,n._)`${s} || ${l}`),e.mergeValidEvaluated(o,l)||t.if((0,n.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}},18112:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},70817:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(18112),a=r(19904),i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,a.default];t.default=i},19904:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;let n=r(97829),a=r(66026),i=r(2088),o=r(45006),s=r(27525),l=r(96205);function u(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,i._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function c(e,t,r,n){let{gen:s,it:u}=e,{allErrors:c,schemaEnv:f,opts:d}=u,h=d.passContext?o.default.this:i.nil;function p(e){let t=(0,i._)`${e}.errors`;s.assign(o.default.vErrors,(0,i._)`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),s.assign(o.default.errors,(0,i._)`${o.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;let n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props){if(n&&!n.dynamicProps)void 0!==n.props&&(u.props=l.mergeEvaluated.props(s,n.props,u.props));else{let t=s.var("props",(0,i._)`${e}.evaluated.props`);u.props=l.mergeEvaluated.props(s,t,u.props,i.Name)}}if(!0!==u.items){if(n&&!n.dynamicItems)void 0!==n.items&&(u.items=l.mergeEvaluated.items(s,n.items,u.items));else{let t=s.var("items",(0,i._)`${e}.evaluated.items`);u.items=l.mergeEvaluated.items(s,t,u.items,i.Name)}}}n?function(){if(!f.$async)throw Error("async schema referenced by sync schema");let r=s.let("valid");s.try(()=>{s.code((0,i._)`await ${(0,a.callValidateCode)(e,t,h)}`),m(t),c||s.assign(r,!0)},e=>{s.if((0,i._)`!(${e} instanceof ${u.ValidationError})`,()=>s.throw(e)),p(e),c||s.assign(r,!1)}),e.ok(r)}():e.result((0,a.callValidateCode)(e,t,h),()=>m(t),()=>p(t))}t.getValidate=u,t.callRef=c,t.default={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:a}=e,{baseId:o,schemaEnv:l,validateName:f,opts:d,self:h}=a,{root:p}=l;if(("#"===r||"#/"===r)&&o===p.baseId)return function(){if(l===p)return c(e,f,l,l.$async);let r=t.scopeValue("root",{ref:p});return c(e,(0,i._)`${r}.validate`,p,p.$async)}();let m=s.resolveRef.call(h,p,o,r);if(void 0===m)throw new n.default(a.opts.uriResolver,o,r);return m instanceof s.SchemaEnv?function(t){let r=u(e,t);c(e,r,t,t.$async)}(m):function(n){let a=t.scopeValue("schema",!0===d.code.source?{ref:n,code:(0,i.stringify)(n)}:{ref:n}),o=t.name("valid"),s=e.subschema({schema:n,dataTypes:[],schemaPath:i.nil,topSchemaRef:a,errSchemaPath:r},o);e.mergeEvaluated(s),e.ok(o)}(m)}}},746:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(32508),i=r(27525),o=r(96205);t.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===a.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){let{gen:t,data:r,schema:s,parentSchema:l,it:u}=e,{oneOf:c}=l;if(!u.opts.discriminator)throw Error("discriminator: requires discriminator option");let f=s.propertyName;if("string"!=typeof f)throw Error("discriminator: requires propertyName");if(s.mapping)throw Error("discriminator: mapping is not supported");if(!c)throw Error("discriminator: requires oneOf keyword");let d=t.let("valid",!1),h=t.const("tag",(0,n._)`${r}${(0,n.getProperty)(f)}`);t.if((0,n._)`typeof ${h} == "string"`,()=>(function(){let r=function(){var e;let t={},r=a(l),n=!0;for(let t=0;t<c.length;t++){let l=c[t];(null==l?void 0:l.$ref)&&!(0,o.schemaHasRulesButRef)(l,u.self.RULES)&&(l=i.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,null==l?void 0:l.$ref))instanceof i.SchemaEnv&&(l=l.schema);let d=null===(e=null==l?void 0:l.properties)||void 0===e?void 0:e[f];if("object"!=typeof d)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||a(l)),function(e,t){if(e.const)s(e.const,t);else if(e.enum)for(let r of e.enum)s(r,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}(d,t)}if(!n)throw Error(`discriminator: "${f}" must be required`);return t;function a({required:e}){return Array.isArray(e)&&e.includes(f)}function s(e,r){if("string"!=typeof e||e in t)throw Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();for(let a in t.if(!1),r)t.elseIf((0,n._)`${h} === ${a}`),t.assign(d,function(r){let a=t.name("valid"),i=e.subschema({keyword:"oneOf",schemaProp:r},a);return e.mergeEvaluated(i,n.Name),a}(r[a]));t.else(),e.error(!1,{discrError:a.DiscrError.Mapping,tag:h,tagName:f}),t.endIf()})(),()=>e.error(!1,{discrError:a.DiscrError.Tag,tag:h,tagName:f})),e.ok(d)}}},32508:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=r||(t.DiscrError=r={})).Tag="tag",n.Mapping="mapping"},79506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(70817),a=r(87737),i=r(17911),o=r(48091),s=r(15663),l=[n.default,a.default,(0,i.default)(),o.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},68664:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088);t.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`},code(e,t){let{gen:r,data:a,$data:i,schema:o,schemaCode:s,it:l}=e,{opts:u,errSchemaPath:c,schemaEnv:f,self:d}=l;u.validateFormats&&(i?function(){let i=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),o=r.const("fDef",(0,n._)`${i}[${s}]`),l=r.let("fType"),c=r.let("format");r.if((0,n._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(l,(0,n._)`${o}.type || "string"`).assign(c,(0,n._)`${o}.validate`),()=>r.assign(l,(0,n._)`"string"`).assign(c,o)),e.fail$data((0,n.or)(!1===u.strictSchema?n.nil:(0,n._)`${s} && !${c}`,function(){let e=f.$async?(0,n._)`(${o}.async ? await ${c}(${a}) : ${c}(${a}))`:(0,n._)`${c}(${a})`,r=(0,n._)`(typeof ${c} == "function" ? ${e} : ${c}.test(${a}))`;return(0,n._)`${c} && ${c} !== true && ${l} === ${t} && !${r}`}()))}():function(){let i=d.formats[o];if(!i){!function(){if(!1===u.strictSchema){d.logger.warn(e());return}throw Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${c}"`}}();return}if(!0===i)return;let[s,l,h]=function(e){let t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(o)}`:void 0,a=r.scopeValue("formats",{key:o,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,a]:[e.type||"string",e.validate,(0,n._)`${a}.validate`]}(i);s===t&&e.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!f.$async)throw Error("async format in sync schema");return(0,n._)`await ${h}(${a})`}return"function"==typeof l?(0,n._)`${h}(${a})`:(0,n._)`${h}.test(${a})`}())}())}}},48091:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=[r(68664).default];t.default=n},15663:function(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"]},32350:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205),i=r(72849);t.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,n._)`{allowedValue: ${e}}`},code(e){let{gen:t,data:r,$data:o,schemaCode:s,schema:l}=e;o||l&&"object"==typeof l?e.fail$data((0,n._)`!${(0,a.useFunc)(t,i.default)}(${r}, ${s})`):e.fail((0,n._)`${l} !== ${r}`)}}},55775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205),i=r(72849);t.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,n._)`{allowedValues: ${e}}`},code(e){let t,r;let{gen:o,data:s,$data:l,schema:u,schemaCode:c,it:f}=e;if(!l&&0===u.length)throw Error("enum must have non-empty array");let d=u.length>=f.opts.loopEnum,h=()=>null!=t?t:t=(0,a.useFunc)(o,i.default);if(d||l)r=o.let("valid"),e.block$data(r,function(){o.assign(r,!1),o.forOf("v",c,e=>o.if((0,n._)`${h()}(${s}, ${e})`,()=>o.assign(r,!0).break()))});else{if(!Array.isArray(u))throw Error("ajv implementation error");let e=o.const("vSchema",c);r=(0,n.or)(...u.map((t,r)=>(function(e,t){let r=u[t];return"object"==typeof r&&null!==r?(0,n._)`${h()}(${s}, ${e}[${t}])`:(0,n._)`${s} === ${r}`})(e,r)))}e.pass(r)}}},87737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(51771),a=r(45040),i=r(70338),o=r(446),s=r(17144),l=r(76741),u=r(27222),c=r(96895),f=r(32350),d=r(55775),h=[n.default,a.default,i.default,o.default,s.default,l.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,d.default];t.default=h},27222:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088);t.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxItems"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:a}=e,i="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${i} ${a}`)}}},70338:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=r(96205),i=r(35467);t.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxLength"===e?"more":"fewer"} than ${t} characters`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:o,it:s}=e,l="maxLength"===t?n.operators.GT:n.operators.LT,u=!1===s.opts.unicode?(0,n._)`${r}.length`:(0,n._)`${(0,a.useFunc)(e.gen,i.default)}(${r})`;e.fail$data((0,n._)`${u} ${l} ${o}`)}}},51771:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088),a=n.operators,i={maximum:{okStr:"<=",ok:a.LTE,fail:a.GT},minimum:{okStr:">=",ok:a.GTE,fail:a.LT},exclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},exclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},o={keyword:Object.keys(i),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${i[e].okStr}, limit: ${t}}`},code(e){let{keyword:t,data:r,schemaCode:a}=e;e.fail$data((0,n._)`${r} ${i[t].fail} ${a} || isNaN(${r})`)}};t.default=o},17144:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088);t.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${t} properties`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:a}=e,i="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`Object.keys(${r}).length ${i} ${a}`)}}},45040:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(2088);t.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,n._)`{multipleOf: ${e}}`},code(e){let{gen:t,data:r,schemaCode:a,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),l=o?(0,n._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,n._)`${s} !== parseInt(${s})`;e.fail$data((0,n._)`(${a} === 0 || (${s} = ${r}/${a}, ${l}))`)}}},446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(66026),a=r(2088);t.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,a.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,a._)`{pattern: ${e}}`},code(e){let{data:t,$data:r,schema:i,schemaCode:o,it:s}=e,l=s.opts.unicodeRegExp?"u":"",u=r?(0,a._)`(new RegExp(${o}, ${l}))`:(0,n.usePattern)(e,i);e.fail$data((0,a._)`!${u}.test(${t})`)}}},76741:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(66026),a=r(2088),i=r(96205);t.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,a.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,a._)`{missingProperty: ${e}}`},code(e){let{gen:t,schema:r,schemaCode:o,data:s,$data:l,it:u}=e,{opts:c}=u;if(!l&&0===r.length)return;let f=r.length>=c.loopRequired;if(u.allErrors?function(){if(f||l)e.block$data(a.nil,d);else for(let t of r)(0,n.checkReportMissingProp)(e,t)}():function(){let i=t.let("missing");if(f||l){let r=t.let("valid",!0);e.block$data(r,()=>{e.setParams({missingProperty:i}),t.forOf(i,o,()=>{t.assign(r,(0,n.propertyInData)(t,s,i,c.ownProperties)),t.if((0,a.not)(r),()=>{e.error(),t.break()})},a.nil)}),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,i)),(0,n.reportMissingProp)(e,i),t.else()}(),c.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of r)if((null==t?void 0:t[e])===void 0&&!n.has(e)){let t=u.schemaEnv.baseId+u.errSchemaPath,r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,i.checkStrictMode)(u,r,u.opts.strictRequired)}}function d(){t.forOf("prop",o,r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,s,r,c.ownProperties),()=>e.error())})}}}},96895:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(1565),a=r(2088),i=r(96205),o=r(72849);t.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,a.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,a._)`{i: ${e}, j: ${t}}`},code(e){let{gen:t,data:r,$data:s,schema:l,parentSchema:u,schemaCode:c,it:f}=e;if(!s&&!l)return;let d=t.let("valid"),h=u.items?(0,n.getSchemaTypes)(u.items):[];e.block$data(d,function(){let s=t.let("i",(0,a._)`${r}.length`),l=t.let("j");e.setParams({i:s,j:l}),t.assign(d,!0),t.if((0,a._)`${s} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?function(i,o){let s=t.name("item"),l=(0,n.checkDataTypes)(h,s,f.opts.strictNumbers,n.DataType.Wrong),u=t.const("indices",(0,a._)`{}`);t.for((0,a._)`;${i}--;`,()=>{t.let(s,(0,a._)`${r}[${i}]`),t.if(l,(0,a._)`continue`),h.length>1&&t.if((0,a._)`typeof ${s} == "string"`,(0,a._)`${s} += "_"`),t.if((0,a._)`typeof ${u}[${s}] == "number"`,()=>{t.assign(o,(0,a._)`${u}[${s}]`),e.error(),t.assign(d,!1).break()}).code((0,a._)`${u}[${s}] = ${i}`)})}:function(n,s){let l=(0,i.useFunc)(t,o.default),u=t.name("outer");t.label(u).for((0,a._)`;${n}--;`,()=>t.for((0,a._)`${s} = ${n}; ${s}--;`,()=>t.if((0,a._)`${l}(${r}[${n}], ${r}[${s}])`,()=>{e.error(),t.assign(d,!1).break(u)})))})(s,l))},(0,a._)`${c} === false`),e.ok(d)}}},74678:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),o=i[0],s=i[1],u=new a((o+s)*3/4-s),c=0,f=s>0?o-4:o;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,i=[],o=0,s=n-a;o<s;o+=16383)i.push(function(e,t,n){for(var a,i=[],o=t;o<n;o+=3)i.push(r[(a=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}(e,o,o+16383>s?s:o+16383));return 1===a?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===a&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o<s;++o)r[o]=i[o],n[i.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},23824:function(e,t,r){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var n=r(74678),a=r(37817),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=o(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var a=function(e){if(s.isBuffer(e)){var t,r=0|d(e.length),n=o(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|d(e))}function f(e){for(var t=e.length<0?0:0|d(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(a)return n?-1:S(e).length;t=(""+t).toLowerCase(),a=!0}}function p(e,t,r){var a,i,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=t;i<r;++i)a+=A[e[i]];return a}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}(this,t,r);case"base64":return a=t,i=r,0===a&&i===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(a,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,a){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return -1;r=e.length-1}else if(r<0){if(!a)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,a);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,a);throw TypeError("val must be string, number or Buffer")}function g(e,t,r,n,a){var i,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var c=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*o}else -1!==c&&(i-=i-c),c=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return -1}function v(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var i,o,s,l,u=e[a],c=null,f=u>239?4:u>223?3:u>191?2:1;if(a+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(i=e[a+1]))==128&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[a+1],o=e[a+2],(192&i)==128&&(192&o)==128&&(l=(15&u)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),a+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function $(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,a,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function b(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function w(e,t,r,n,i){return t=+t,r>>>=0,i||b(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,i){return t=+t,r>>>=0,i||b(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(j(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,a),a+=i.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,a){if(j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var i=a-n,o=r-t,l=Math.min(i,o),u=this.slice(n,a),c=e.slice(t,r),f=0;f<l;++f)if(u[f]!==c[f]){i=u[f],o=c[f];break}return i<o?-1:o<i?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a,i,o,s,l,u,c,f,d,h,p,m,y=this.length-t;if((void 0===r||r>y)&&(r=y),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var g=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(s!=s)break;e[r+o]=s}return o}(this,e,t,r);case"utf8":case"utf-8":return l=t,u=r,O(S(e,this.length-l),this,l,u);case"ascii":return c=t,f=r,O(k(e),this,c,f);case"latin1":case"binary":return a=this,i=e,o=t,s=r,O(k(i),a,o,s);case"base64":return d=t,h=r,O(N(e),this,d,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,m=r,O(function(e,t){for(var r,n,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,a.push(r%256),a.push(n);return a}(e,this.length-p),this,p,m);default:if(g)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),g=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||$(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||$(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||$(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||$(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||$(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||$(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||$(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||$(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||$(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||$(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||$(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||$(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||$(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||$(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;_(this,e,t,r,a,0)}var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;_(this,e,t,r,a,0)}var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);_(this,e,t,r,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);_(this,e,t,r,a-1,-a)}var i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return w(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return w(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=a-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var a,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,n),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%l]}return this};var P=/[^+/0-9A-Za-z-_]/g;function S(e,t){t=t||1/0;for(var r,n=e.length,a=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319||o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function k(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function N(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,a=0;a<16;++a)t[n+a]=e[r]+e[a];return t}()},27122:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;0!=a--;){var n,a,i,o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},37817:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,l=(1<<s)-1,u=l>>1,c=-7,f=r?a-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=n;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),i-=u}return(h?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,s,l,u=8*i-a-1,c=(1<<u)-1,f=c>>1,d=23===a?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=d/l:t+=d*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,a),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+h]=255&s,h+=p,s/=256,a-=8);for(o=o<<a|s,u+=a;u>0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*m}},60619:function(e){"use strict";var t=e.exports=function(e,r,n){"function"==typeof r&&(n=r,r={});var a="function"==typeof(n=r.cb||n)?n:n.pre||function(){};!function e(r,n,a,i,o,s,l,u,c,f){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var d in n(i,o,s,l,u,c,f),i){var h=i[d];if(Array.isArray(h)){if(d in t.arrayKeywords)for(var p=0;p<h.length;p++)e(r,n,a,h[p],o+"/"+d+"/"+p,s,o,d,i,p)}else if(d in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)e(r,n,a,h[m],o+"/"+d+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,o,d,i,m)}else(d in t.keywords||r.allKeys&&!(d in t.skipKeywords))&&e(r,n,a,h,o+"/"+d,s,o,d,i)}a(i,o,s,l,u,c,f)}}(r,a,n.post||function(){},e,"",e)};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}},59542:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!(t.length>1))return t[0];t[0]=t[0].slice(0,-1);for(var n=t.length-1,a=1;a<n;++a)t[a]=t[a].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function a(e){return e.toUpperCase()}function i(e){var n="[A-Za-z]",a="[0-9]",i=t(a,"[A-Fa-f]"),o=r(r("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+r("%[89A-Fa-f]"+i+"%"+i+i)+"|"+r("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",c=t(n,a,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),f=r(n+t(n,a,"[\\+\\-\\.]")+"*"),d=r(r(o+"|"+t(c,s,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+a)+"|"+r("1"+a+a)+"|"+r("[1-9]"+a)+"|"+a),r(r("25[0-5]")+"|"+r("2[0-4]"+a)+"|"+r("1"+a+a)+"|"+r("0?[1-9]"+a)+"|0?0?"+a)),p=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(i+"{1,4}"),y=r(r(m+"\\:"+m)+"|"+p),g=r(r(m+"\\:")+"{6}"+y),v=r("\\:\\:"+r(m+"\\:")+"{5}"+y),$=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+y),_=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+y),b=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+y),w=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+y),E=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+y),P=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),S=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),k=r([g,v,$,_,b,w,E,P,S].join("|")),N=r(r(c+"|"+o)+"+"),O=(r(k+"\\%25"+N),r(k+r("\\%25|\\%(?!"+i+"{2})")+N)),j=r("[vV]"+i+"+\\."+t(c,s,"[\\:]")+"+"),A=r("\\["+r(O+"|"+k+"|"+j)+"\\]"),x=r(r(o+"|"+t(c,s))+"*"),T=r(A+"|"+p+"(?!"+x+")|"+x),C=r(a+"*"),I=r(r(d+"@")+"?"+T+r("\\:"+C)+"?"),R=r(o+"|"+t(c,s,"[\\:\\@]")),M=r(R+"*"),D=r(R+"+"),U=r(r(o+"|"+t(c,s,"[\\@]"))+"+"),V=r(r("\\/"+M)+"*"),L=r("\\/"+r(D+V)+"?"),F=r(U+V),z=r(D+V),B="(?!"+R+")",q=(r(V+"|"+L+"|"+F+"|"+z+"|"+B),r(r(R+"|"+t("[\\/\\?]",u))+"*")),K=r(r(R+"|[\\/\\?]")+"*"),Z=r(r("\\/\\/"+I+V)+"|"+L+"|"+z+"|"+B),H=r(f+"\\:"+Z+r("\\?"+q)+"?"+r("\\#"+K)+"?"),G=r(r("\\/\\/"+I+V)+"|"+L+"|"+F+"|"+B),J=r(G+r("\\?"+q)+"?"+r("\\#"+K)+"?");return r(H+"|"+J),r(f+"\\:"+Z+r("\\?"+q)+"?"),r(r("\\/\\/("+r("("+d+")@")+"?("+T+")"+r("\\:("+C+")")+"?)")+"?("+V+"|"+L+"|"+z+"|"+B+")"),r("\\?("+q+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+T+")"+r("\\:("+C+")")+"?)")+"?("+V+"|"+L+"|"+F+"|"+B+")"),r("\\?("+q+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+T+")"+r("\\:("+C+")")+"?)")+"?("+V+"|"+L+"|"+z+"|"+B+")"),r("\\?("+q+")"),r("\\#("+K+")"),r("("+d+")@"),r("\\:("+C+")"),{NOT_SCHEME:RegExp(t("[^]",n,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:RegExp(t("[^\\%\\:]",c,s),"g"),NOT_HOST:RegExp(t("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:RegExp(t("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:RegExp(t("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:RegExp(t("[^]",c,s),"g"),UNRESERVED:RegExp(c,"g"),OTHER_CHARS:RegExp(t("[^\\%]",c,l),"g"),PCT_ENCODED:RegExp(o,"g"),IPV4ADDRESS:RegExp("^("+p+")$"),IPV6ADDRESS:RegExp("^\\[?("+k+")"+r(r("\\%25|\\%(?!"+i+"{2})")+"("+N+")")+"?\\]?$")}}var o=i(!1),s=i(!0),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},u=/^xn--/,c=/[^\0-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,p=String.fromCharCode;function m(e){throw RangeError(d[e])}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+(function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r})((e=e.replace(f,".")).split("."),t).join(".")}var g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},v=function(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))},$=function(e){var t=[],r=e.length,n=0,a=128,i=72,o=e.lastIndexOf("-");o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&m("not-basic"),t.push(e.charCodeAt(s));for(var l=o>0?o+1:0;l<r;){for(var u=n,c=1,f=36;;f+=36){l>=r&&m("invalid-input");var d,p=(d=e.charCodeAt(l++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36;(p>=36||p>h((2147483647-n)/c))&&m("overflow"),n+=p*c;var y=f<=i?1:f>=i+26?26:f-i;if(p<y)break;var g=36-y;c>h(2147483647/g)&&m("overflow"),c*=g}var $=t.length+1;i=v(n-u,$,0==u),h(n/$)>2147483647-a&&m("overflow"),a+=h(n/$),n%=$,t.splice(n++,0,a)}return String.fromCodePoint.apply(String,t)},_=function(e){var t=[],r=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);(64512&i)==56320?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),r--)}else t.push(a)}return t}(e)).length,n=128,a=0,i=72,o=!0,s=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var f=u.value;f<128&&t.push(p(f))}}catch(e){s=!0,l=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw l}}var d=t.length,y=d;for(d&&t.push("-");y<r;){var $=2147483647,_=!0,b=!1,w=void 0;try{for(var E,P=e[Symbol.iterator]();!(_=(E=P.next()).done);_=!0){var S=E.value;S>=n&&S<$&&($=S)}}catch(e){b=!0,w=e}finally{try{!_&&P.return&&P.return()}finally{if(b)throw w}}var k=y+1;$-n>h((2147483647-a)/k)&&m("overflow"),a+=($-n)*k,n=$;var N=!0,O=!1,j=void 0;try{for(var A,x=e[Symbol.iterator]();!(N=(A=x.next()).done);N=!0){var T=A.value;if(T<n&&++a>2147483647&&m("overflow"),T==n){for(var C=a,I=36;;I+=36){var R=I<=i?1:I>=i+26?26:I-i;if(C<R)break;var M=C-R,D=36-R;t.push(p(g(R+M%D,0))),C=h(M/D)}t.push(p(g(C,0))),i=v(a,k,y==d),a=0,++y}}}catch(e){O=!0,j=e}finally{try{!N&&x.return&&x.return()}finally{if(O)throw j}}++a,++n}return t.join("")},b={toASCII:function(e){return y(e,function(e){return c.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return y(e,function(e){return u.test(e)?$(e.slice(4).toLowerCase()):e})}},w={};function E(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function P(e){for(var t="",r=0,n=e.length;r<n;){var a=parseInt(e.substr(r+1,2),16);a<128?(t+=String.fromCharCode(a),r+=3):a>=194&&a<224?(n-r>=6?t+=String.fromCharCode((31&a)<<6|63&parseInt(e.substr(r+4,2),16)):t+=e.substr(r,6),r+=6):a>=224?(n-r>=9?t+=String.fromCharCode((15&a)<<12|(63&parseInt(e.substr(r+4,2),16))<<6|63&parseInt(e.substr(r+7,2),16)):t+=e.substr(r,9),r+=9):(t+=e.substr(r,3),r+=3)}return t}function S(e,t){function r(e){var r=P(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,E).replace(t.PCT_ENCODED,a)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,E).replace(t.PCT_ENCODED,a)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,E).replace(t.PCT_ENCODED,a)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,E).replace(t.PCT_ENCODED,a)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,E).replace(t.PCT_ENCODED,a)),e}function k(e){return e.replace(/^0*(.*)/,"$1")||"0"}function N(e,t){var r=l(e.match(t.IPV4ADDRESS)||[],2)[1];return r?r.split(".").map(k).join("."):e}function O(e,t){var r=l(e.match(t.IPV6ADDRESS)||[],3),n=r[1],a=r[2];if(!n)return e;for(var i=l(n.toLowerCase().split("::").reverse(),2),o=i[0],s=i[1],u=s?s.split(":").map(k):[],c=o.split(":").map(k),f=t.IPV4ADDRESS.test(c[c.length-1]),d=f?7:8,h=c.length-d,p=Array(d),m=0;m<d;++m)p[m]=u[m]||c[h+m]||"";f&&(p[d-1]=N(p[d-1],t));var y=p.reduce(function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e},[]).sort(function(e,t){return t.length-e.length})[0],g=void 0;if(y&&y.length>1){var v=p.slice(0,y.index),$=p.slice(y.index+y.length);g=v.join(":")+"::"+$.join(":")}else g=p.join(":");return a&&(g+="%"+a),g}var j=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,A=void 0==="".match(/(){0}/)[1];function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?s:o;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var a=e.match(j);if(a){A?(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5])):(r.scheme=a[1]||void 0,r.userinfo=-1!==e.indexOf("@")?a[3]:void 0,r.host=-1!==e.indexOf("//")?a[4]:void 0,r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=-1!==e.indexOf("?")?a[7]:void 0,r.fragment=-1!==e.indexOf("#")?a[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?a[4]:void 0)),r.host&&(r.host=O(N(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var i=w[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)S(r,n);else{if(r.host&&(t.domainHost||i&&i.domainHost))try{r.host=b.toASCII(r.host.replace(n.PCT_ENCODED,P).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}S(r,o)}i&&i.parse&&i.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var T=/^\.\.?\//,C=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,R=/^\/?(?:.|\n)*?(?=\/|$)/;function M(e){for(var t=[];e.length;)if(e.match(T))e=e.replace(T,"");else if(e.match(C))e=e.replace(C,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(R);if(r){var n=r[0];e=e.slice(n.length),t.push(n)}else throw Error("Unexpected dot segment condition")}return t.join("")}function D(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.iri?s:o,i=[],l=w[(n.scheme||e.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(e,n),e.host){if(a.IPV6ADDRESS.test(e.host));else if(n.domainHost||l&&l.domainHost)try{e.host=n.iri?b.toUnicode(e.host):b.toASCII(e.host.replace(a.PCT_ENCODED,P).toLowerCase())}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(n.iri?"Unicode":"ASCII")+" via punycode: "+t}}S(e,a),"suffix"!==n.reference&&e.scheme&&(i.push(e.scheme),i.push(":"));var u=(t=!1!==n.iri?s:o,r=[],void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(O(N(String(e.host),t),t).replace(t.IPV6ADDRESS,function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})),("number"==typeof e.port||"string"==typeof e.port)&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0);if(void 0!==u&&("suffix"!==n.reference&&i.push("//"),i.push(u),e.path&&"/"!==e.path.charAt(0)&&i.push("/")),void 0!==e.path){var c=e.path;n.absolutePath||l&&l.absolutePath||(c=M(c)),void 0===u&&(c=c.replace(/^\/\//,"/%2F")),i.push(c)}return void 0!==e.query&&(i.push("?"),i.push(e.query)),void 0!==e.fragment&&(i.push("#"),i.push(e.fragment)),i.join("")}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],a={};return n||(e=x(D(e,r),r),t=x(D(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=M(t.path||""),a.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=M(t.path||""),a.query=t.query):(t.path?("/"===t.path.charAt(0)?a.path=M(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:a.path=t.path:a.path="/"+t.path,a.path=M(a.path)),a.query=t.query):(a.path=e.path,void 0!==t.query?a.query=t.query:a.query=e.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function V(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:o.PCT_ENCODED,P)}var L={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return(e.port===(r?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}},F={scheme:"https",domainHost:L.domainHost,parse:L.parse,serialize:L.serialize};function z(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var B={scheme:"ws",domainHost:!0,parse:function(e,t){return e.secure=z(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e,t){if((e.port===(z(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=l(e.resourceName.split("?"),2),n=r[0],a=r[1];e.path=n&&"/"!==n?n:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},q={scheme:"wss",domainHost:B.domainHost,parse:B.parse,serialize:B.serialize},K={},Z="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",H="[0-9A-Fa-f]",G=r(r("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+r("%[89A-Fa-f]"+H+"%"+H+H)+"|"+r("%"+H+H)),J=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),W=RegExp(Z,"g"),Y=RegExp(G,"g"),Q=RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',J),"g"),X=RegExp(t("[^]",Z,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g");function ee(e){var t=P(e);return t.match(W)?t:e}var et={scheme:"mailto",parse:function(e,t){var r=e.to=e.path?e.path.split(","):[];if(e.path=void 0,e.query){for(var n=!1,a={},i=e.query.split("&"),o=0,s=i.length;o<s;++o){var l=i[o].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),c=0,f=u.length;c<f;++c)r.push(u[c]);break;case"subject":e.subject=V(l[1],t);break;case"body":e.body=V(l[1],t);break;default:n=!0,a[V(l[0],t)]=V(l[1],t)}}n&&(e.headers=a)}e.query=void 0;for(var d=0,h=r.length;d<h;++d){var p=r[d].split("@");if(p[0]=V(p[0]),t.unicodeSupport)p[1]=V(p[1],t).toLowerCase();else try{p[1]=b.toASCII(V(p[1],t).toLowerCase())}catch(t){e.error=e.error||"Email address's domain name can not be converted to ASCII via punycode: "+t}r[d]=p.join("@")}return e},serialize:function(e,t){var r,n=null!=(r=e.to)?r instanceof Array?r:"number"!=typeof r.length||r.split||r.setInterval||r.call?[r]:Array.prototype.slice.call(r):[];if(n){for(var i=0,o=n.length;i<o;++i){var s=String(n[i]),l=s.lastIndexOf("@"),u=s.slice(0,l).replace(Y,ee).replace(Y,a).replace(Q,E),c=s.slice(l+1);try{c=t.iri?b.toUnicode(c):b.toASCII(V(c,t).toLowerCase())}catch(r){e.error=e.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}n[i]=u+"@"+c}e.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var d=[];for(var h in f)f[h]!==K[h]&&d.push(h.replace(Y,ee).replace(Y,a).replace(X,E)+"="+f[h].replace(Y,ee).replace(Y,a).replace(X,E));return d.length&&(e.query=d.join("&")),e}},er=/^([^\:]+)\:(.*)/,en={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(er),n=e;if(r){var a=t.scheme||n.scheme||"urn",i=r[1].toLowerCase(),o=r[2],s=w[a+":"+(t.nid||i)];n.nid=i,n.nss=o,n.path=void 0,s&&(n=s.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,a=w[r+":"+(t.nid||n)];a&&(e=a.serialize(e,t));var i=e,o=e.nss;return i.path=(n||t.nid)+":"+o,i}},ea=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ei={scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&e.uuid.match(ea)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e,t){return e.nss=(e.uuid||"").toLowerCase(),e}};w[L.scheme]=L,w[F.scheme]=F,w[B.scheme]=B,w[q.scheme]=q,w[et.scheme]=et,w[en.scheme]=en,w[ei.scheme]=ei,e.SCHEMES=w,e.pctEncChar=E,e.pctDecChars=P,e.parse=x,e.removeDotSegments=M,e.serialize=D,e.resolveComponents=U,e.resolve=function(e,t,r){var n=function(e,t){if(t)for(var r in t)e[r]=t[r];return e}({scheme:"null"},r);return D(U(x(e,n),x(t,n),n,!0),n)},e.normalize=function(e,t){return"string"==typeof e?e=D(x(e,t),t):"object"===n(e)&&(e=x(D(e,t),t)),e},e.equal=function(e,t,r){return"string"==typeof e?e=D(x(e,r),r):"object"===n(e)&&(e=D(e,r)),"string"==typeof t?t=D(x(t,r),r):"object"===n(t)&&(t=D(t,r)),e===t},e.escapeComponent=function(e,t){return e&&e.toString().replace(t&&t.iri?s.ESCAPE:o.ESCAPE,E)},e.unescapeComponent=V,Object.defineProperty(e,"__esModule",{value:!0})}(t)},85422:function(e,t,r){"use strict";var n=r(99632);t.Z=function(e){let t;if(!(0,n.Z)(e))throw TypeError("Invalid UUID");let r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},87416:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n=r(99632);let a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function i(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}t.Z=function(e,t=0){let r=i(e,t);if(!(0,n.Z)(r))throw TypeError("Stringified UUID is invalid");return r}},99632:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,a=function(e){return"string"==typeof e&&n.test(e)}},86274:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:function(){return n}})},6298:function(e,t,r){"use strict";r.d(t,{ZP:function(){return j},kQ:function(){return n}});let n=Symbol("Let zodToJsonSchema decide on which parser to use"),a={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",emailStrategy:"format:email"},i=e=>"string"==typeof e?{...a,name:e}:{...a,...e};var o=r(95370);function s(e,t,r,n){n?.errorMessages&&r&&(e.errorMessage={...e.errorMessage,[t]:r})}function l(e,t,r,n,a){e[t]=r,s(e,t,n,a)}let u=(e,t)=>E(e.innerType._def,t),c=(e,t)=>{let r={type:"integer",format:"unix-time"};if("openApi3"===t.target)return r;for(let n of e.checks)switch(n.kind){case"min":l(r,"minimum",n.value,n.message,t);break;case"max":l(r,"maximum",n.value,n.message,t)}return r},f=e=>(!("type"in e)||"string"!==e.type)&&"allOf"in e,d={cuid:"^[cC][^\\s-]{8,}$",cuid2:"^[a-z][a-z0-9]*$",ulid:"^[0-9A-HJKMNP-TV-Z]{26}$",email:"^(?!\\.)(?!.*\\.\\.)([a-zA-Z0-9_+-\\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\\-]*\\.)+[a-zA-Z]{2,}$",emoji:"^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"};function h(e,t){let r={type:"string"};function n(e){return"escape"===t.patternStrategy?p(e):e}if(e.checks)for(let a of e.checks)switch(a.kind){case"min":l(r,"minLength","number"==typeof r.minLength?Math.max(r.minLength,a.value):a.value,a.message,t);break;case"max":l(r,"maxLength","number"==typeof r.maxLength?Math.min(r.maxLength,a.value):a.value,a.message,t);break;case"email":switch(t.emailStrategy){case"format:email":m(r,"email",a.message,t);break;case"format:idn-email":m(r,"idn-email",a.message,t);break;case"pattern:zod":y(r,d.email,a.message,t)}break;case"url":m(r,"uri",a.message,t);break;case"uuid":m(r,"uuid",a.message,t);break;case"regex":y(r,a.regex.source,a.message,t);break;case"cuid":y(r,d.cuid,a.message,t);break;case"cuid2":y(r,d.cuid2,a.message,t);break;case"startsWith":y(r,"^"+n(a.value),a.message,t);break;case"endsWith":y(r,n(a.value)+"$",a.message,t);break;case"datetime":m(r,"date-time",a.message,t);break;case"length":l(r,"minLength","number"==typeof r.minLength?Math.max(r.minLength,a.value):a.value,a.message,t),l(r,"maxLength","number"==typeof r.maxLength?Math.min(r.maxLength,a.value):a.value,a.message,t);break;case"includes":y(r,n(a.value),a.message,t);break;case"ip":"v6"!==a.version&&m(r,"ipv4",a.message,t),"v4"!==a.version&&m(r,"ipv6",a.message,t);break;case"emoji":y(r,d.emoji,a.message,t);break;case"ulid":y(r,d.ulid,a.message,t)}return r}let p=e=>Array.from(e).map(e=>/[a-zA-Z0-9]/.test(e)?e:`\\${e}`).join(""),m=(e,t,r,n)=>{e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&n.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):l(e,"format",t,r,n)},y=(e,t,r,n)=>{e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&n.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push({pattern:t,...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):l(e,"pattern",t,r,n)};function g(e,t){if("openApi3"===t.target&&e.keyType?._def.typeName===o.pA.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((r,n)=>({...r,[n]:E(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",n]})??{}}),{}),additionalProperties:!1};let r={type:"object",additionalProperties:E(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??{}};if("openApi3"===t.target)return r;if(e.keyType?._def.typeName===o.pA.ZodString&&e.keyType._def.checks?.length){let n=Object.entries(h(e.keyType._def,t)).reduce((e,[t,r])=>"type"===t?e:{...e,[t]:r},{});return{...r,propertyNames:n}}return e.keyType?._def.typeName===o.pA.ZodEnum?{...r,propertyNames:{enum:e.keyType._def.values}}:r}let v={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},$=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,r)=>E(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return r.length?{anyOf:r}:void 0},_=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return E(e.innerType._def,t);let r=E(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:{}},r]}:{}},b=(e,t)=>{if("input"===t.pipeStrategy)return E(e.in._def,t);if("output"===t.pipeStrategy)return E(e.out._def,t);let r=E(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=E(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(e=>void 0!==e)}},w=(e,t)=>E(e.innerType._def,t);function E(e,t,r=!1){let a=t.seen.get(e);if(t.override){let i=t.override?.(e,t,a,r);if(i!==n)return i}if(a&&!r){let e=P(a,t);if(void 0!==e)return e}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let o=k(e,e.typeName,t);return o&&N(e,t,o),i.jsonSchema=o,o}let P=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:S(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,r)=>t.currentPath[r]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},S=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")},k=(e,t,r)=>{switch(t){case o.pA.ZodString:return h(e,r);case o.pA.ZodNumber:return function(e,t){let r={type:"number"};if(!e.checks)return r;for(let n of e.checks)switch(n.kind){case"int":r.type="integer",s(r,"type",n.message,t);break;case"min":"jsonSchema7"===t.target?n.inclusive?l(r,"minimum",n.value,n.message,t):l(r,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(r.exclusiveMinimum=!0),l(r,"minimum",n.value,n.message,t));break;case"max":"jsonSchema7"===t.target?n.inclusive?l(r,"maximum",n.value,n.message,t):l(r,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(r.exclusiveMaximum=!0),l(r,"maximum",n.value,n.message,t));break;case"multipleOf":l(r,"multipleOf",n.value,n.message,t)}return r}(e,r);case o.pA.ZodObject:return function(e,t){let r={type:"object",...Object.entries(e.shape()).reduce((e,[r,n])=>{if(void 0===n||void 0===n._def)return e;let a=E(n._def,{...t,currentPath:[...t.currentPath,"properties",r],propertyPath:[...t.currentPath,"properties",r]});return void 0===a?e:{properties:{...e.properties,[r]:a},required:n.isOptional()?e.required:[...e.required,r]}},{properties:{},required:[]}),additionalProperties:"strict"===t.removeAdditionalStrategy?"ZodNever"===e.catchall._def.typeName?"strict"!==e.unknownKeys:E(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??!0:"ZodNever"===e.catchall._def.typeName?"passthrough"===e.unknownKeys:E(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??!0};return r.required.length||delete r.required,r}(e,r);case o.pA.ZodBigInt:return function(e,t){let r={type:"integer",format:"int64"};if(!e.checks)return r;for(let n of e.checks)switch(n.kind){case"min":"jsonSchema7"===t.target?n.inclusive?l(r,"minimum",n.value,n.message,t):l(r,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(r.exclusiveMinimum=!0),l(r,"minimum",n.value,n.message,t));break;case"max":"jsonSchema7"===t.target?n.inclusive?l(r,"maximum",n.value,n.message,t):l(r,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(r.exclusiveMaximum=!0),l(r,"maximum",n.value,n.message,t));break;case"multipleOf":l(r,"multipleOf",n.value,n.message,t)}return r}(e,r);case o.pA.ZodBoolean:return{type:"boolean"};case o.pA.ZodDate:return function e(t,r,n){let a=n??r.dateStrategy;if(Array.isArray(a))return{anyOf:a.map((n,a)=>e(t,r,n))};switch(a){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return c(t,r)}}(e,r);case o.pA.ZodUndefined:return{not:{}};case o.pA.ZodNull:return"openApi3"===r.target?{enum:["null"],nullable:!0}:{type:"null"};case o.pA.ZodArray:return function(e,t){let r={type:"array"};return e.type?._def?.typeName!==o.pA.ZodAny&&(r.items=E(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&l(r,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&l(r,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(l(r,"minItems",e.exactLength.value,e.exactLength.message,t),l(r,"maxItems",e.exactLength.value,e.exactLength.message,t)),r}(e,r);case o.pA.ZodUnion:case o.pA.ZodDiscriminatedUnion:return function(e,t){if("openApi3"===t.target)return $(e,t);let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(e=>e._def.typeName in v&&(!e._def.checks||!e._def.checks.length))){let e=r.reduce((e,t)=>{let r=v[t._def.typeName];return r&&!e.includes(r)?[...e,r]:e},[]);return{type:e.length>1?e:e[0]}}if(r.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=r.reduce((e,t)=>{let r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===r.length){let t=e.filter((e,t,r)=>r.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:r.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(r.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:r.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return $(e,t)}(e,r);case o.pA.ZodIntersection:return function(e,t){let r=[E(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),E(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(e=>!!e),n="jsonSchema2019-09"===t.target?{unevaluatedProperties:!1}:void 0,a=[];return r.forEach(e=>{if(f(e))a.push(...e.allOf),void 0===e.unevaluatedProperties&&(n=void 0);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:r,...n}=e;t=n}else n=void 0;a.push(t)}}),a.length?{allOf:a,...n}:void 0}(e,r);case o.pA.ZodTuple:return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,t)=>E(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:E(e.rest._def,{...r,currentPath:[...r.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,t)=>E(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case o.pA.ZodRecord:return g(e,r);case o.pA.ZodLiteral:return function(e,t){let r=typeof e.value;return"bigint"!==r&&"number"!==r&&"boolean"!==r&&"string"!==r?{type:Array.isArray(e.value)?"array":"object"}:"openApi3"===t.target?{type:"bigint"===r?"integer":r,enum:[e.value]}:{type:"bigint"===r?"integer":r,const:e.value}}(e,r);case o.pA.ZodEnum:return{type:"string",enum:e.values};case o.pA.ZodNativeEnum:return function(e){let t=e.values,r=Object.keys(e.values).filter(e=>"number"!=typeof t[t[e]]).map(e=>t[e]),n=Array.from(new Set(r.map(e=>typeof e)));return{type:1===n.length?"string"===n[0]?"string":"number":["string","number"],enum:r}}(e);case o.pA.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return"openApi3"===t.target?{type:v[e.innerType._def.typeName],nullable:!0}:{type:[v[e.innerType._def.typeName],"null"]};if("openApi3"===t.target){let r=E(e.innerType._def,{...t,currentPath:[...t.currentPath]});return r&&"$ref"in r?{allOf:[r],nullable:!0}:r&&{...r,nullable:!0}}let r=E(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}(e,r);case o.pA.ZodOptional:return _(e,r);case o.pA.ZodMap:return"record"===r.mapStrategy?g(e,r):{type:"array",maxItems:125,items:{type:"array",items:[E(e.keyType._def,{...r,currentPath:[...r.currentPath,"items","items","0"]})||{},E(e.valueType._def,{...r,currentPath:[...r.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case o.pA.ZodSet:return function(e,t){let r={type:"array",uniqueItems:!0,items:E(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&l(r,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&l(r,"maxItems",e.maxSize.value,e.maxSize.message,t),r}(e,r);case o.pA.ZodLazy:return E(e.getter()._def,r);case o.pA.ZodPromise:return E(e.type._def,r);case o.pA.ZodNaN:case o.pA.ZodNever:return{not:{}};case o.pA.ZodEffects:return"input"===r.effectStrategy?E(e.schema._def,r):{};case o.pA.ZodAny:case o.pA.ZodUnknown:return{};case o.pA.ZodDefault:return{...E(e.innerType._def,r),default:e.defaultValue()};case o.pA.ZodBranded:return E(e.type._def,r);case o.pA.ZodReadonly:return w(e,r);case o.pA.ZodCatch:return u(e,r);case o.pA.ZodPipeline:return b(e,r);case o.pA.ZodFunction:case o.pA.ZodVoid:case o.pA.ZodSymbol:default:return}},N=(e,t,r)=>(e.description&&(r.description=e.description,t.markdownDescription&&(r.markdownDescription=e.description)),r),O=e=>{let t=i(e),r=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}};var j=(e,t)=>{let r=O(t),n="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,n])=>({...e,[t]:E(n._def,{...r,currentPath:[...r.basePath,r.definitionPath,t]},!0)??{}}),{}):void 0,a="string"==typeof t?t:t?.name,i=E(e._def,void 0===a?r:{...r,currentPath:[...r.basePath,r.definitionPath,a]},!1)??{},o=void 0===a?n?{...i,[r.definitionPath]:n}:i:{$ref:[..."relative"===r.$refStrategy?[]:r.basePath,r.definitionPath,a].join("/"),[r.definitionPath]:{...n,[a]:i}};return"jsonSchema7"===r.target?o.$schema="http://json-schema.org/draft-07/schema#":"jsonSchema2019-09"===r.target&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),o}},25183:function(e){"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},89787:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]);