@rippling/pebble-sdui-mobile 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/2020-BHvuyx7H.cjs +9 -0
  2. package/dist/2020-BHvuyx7H.cjs.map +1 -0
  3. package/dist/2020-CtiehJXS.js +4988 -0
  4. package/dist/2020-CtiehJXS.js.map +1 -0
  5. package/dist/catalogs/core/action-params.d.ts +24 -0
  6. package/dist/catalogs/core/actions.d.ts +8 -0
  7. package/dist/catalogs/core/catalog.d.ts +33 -0
  8. package/dist/catalogs/core/component-events.d.ts +87 -0
  9. package/dist/catalogs/core/component-props.d.ts +1866 -0
  10. package/dist/catalogs/core/components.d.ts +88 -0
  11. package/dist/catalogs/core/function-params.d.ts +36 -0
  12. package/dist/catalogs/core/functions.d.ts +37 -0
  13. package/dist/catalogs/core/index.cjs +3 -0
  14. package/dist/catalogs/core/index.cjs.map +1 -0
  15. package/dist/catalogs/core/index.d.ts +15 -0
  16. package/dist/catalogs/core/index.js +11070 -0
  17. package/dist/catalogs/core/index.js.map +1 -0
  18. package/dist/catalogs/core/render.d.ts +20 -0
  19. package/dist/catalogs/custom-apps/action-params.d.ts +4 -0
  20. package/dist/catalogs/custom-apps/actions.d.ts +2 -1
  21. package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
  22. package/dist/catalogs/custom-apps/index.cjs +2 -8
  23. package/dist/catalogs/custom-apps/index.cjs.map +1 -1
  24. package/dist/catalogs/custom-apps/index.d.ts +2 -2
  25. package/dist/catalogs/custom-apps/index.js +206 -5171
  26. package/dist/catalogs/custom-apps/index.js.map +1 -1
  27. package/dist/docs/typescript/mobile/catalogs/core/actions.md +151 -0
  28. package/dist/docs/typescript/mobile/catalogs/core/components.md +2314 -0
  29. package/dist/docs/typescript/mobile/catalogs/core/computed-functions.md +162 -0
  30. package/dist/docs/typescript/mobile/catalogs/core/definitions.md +3894 -0
  31. package/dist/docs/typescript/mobile/catalogs/core/readme.md +16 -0
  32. package/dist/docs/typescript/mobile/catalogs/core/types.md +1585 -0
  33. package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +28 -0
  34. package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
  35. package/package.json +6 -1
@@ -0,0 +1,9 @@
1
+ "use strict";var Xt={exports:{}},qn={},ne={},Ce={},tt={},C={},et={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(_){if(super(),!e.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((P,k)=>`${P}${k}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_:this._names=this._items.reduce((P,k)=>(k instanceof r&&(P[k.str]=(P[k.str]||0)+1),P),{})}}e._Code=n,e.nil=new n("");function s(f,..._){const P=[f[0]];let k=0;for(;k<_.length;)c(P,_[k]),P.push(f[++k]);return new n(P)}e._=s;const a=new n("+");function i(f,..._){const P=[w(f[0])];let k=0;for(;k<_.length;)P.push(a),c(P,_[k]),P.push(a,w(f[++k]));return u(P),new n(P)}e.str=i;function c(f,_){_ instanceof n?f.push(..._._items):_ instanceof r?f.push(_):f.push(m(_))}e.addCodeArg=c;function u(f){let _=1;for(;_<f.length-1;){if(f[_]===a){const P=d(f[_-1],f[_+1]);if(P!==void 0){f.splice(_-1,3,P);continue}f[_++]="+"}_++}}function d(f,_){if(_==='""')return f;if(f==='""')return _;if(typeof f=="string")return _ instanceof r||f[f.length-1]!=='"'?void 0:typeof _!="string"?`${f.slice(0,-1)}${_}"`:_[0]==='"'?f.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(f instanceof r))return`"${f}${_.slice(1)}`}function h(f,_){return _.emptyStr()?f:f.emptyStr()?_:i`${f}${_}`}e.strConcat=h;function m(f){return typeof f=="number"||typeof f=="boolean"||f===null?f:w(Array.isArray(f)?f.join(","):f)}function E(f){return new n(w(f))}e.stringify=E;function w(f){return JSON.stringify(f).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=w;function v(f){return typeof f=="string"&&e.IDENTIFIER.test(f)?new n(`.${f}`):s`[${f}]`}e.getProperty=v;function b(f){if(typeof f=="string"&&e.IDENTIFIER.test(f))return new n(`${f}`);throw new Error(`CodeGen: invalid export name: ${f}, use explicit $id name mapping`)}e.getEsmExportName=b;function $(f){return new n(f.toString())}e.regexpCode=$})(et);var Zt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=et;class r extends Error{constructor(d){super(`CodeGen: "code" for ${d} not defined`),this.value=d.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:d,parent:h}={}){this._names={},this._prefixes=d,this._parent=h}toName(d){return d instanceof t.Name?d:this.name(d)}name(d){return new t.Name(this._newName(d))}_newName(d){const h=this._names[d]||this._nameGroup(d);return`${d}${h.index++}`}_nameGroup(d){var h,m;if(!((m=(h=this._parent)===null||h===void 0?void 0:h._prefixes)===null||m===void 0)&&m.has(d)||this._prefixes&&!this._prefixes.has(d))throw new Error(`CodeGen: prefix "${d}" is not allowed in this scope`);return this._names[d]={prefix:d,index:0}}}e.Scope=s;class a extends t.Name{constructor(d,h){super(h),this.prefix=d}setValue(d,{property:h,itemIndex:m}){this.value=d,this.scopePath=(0,t._)`.${new t.Name(h)}[${m}]`}}e.ValueScopeName=a;const i=(0,t._)`\n`;class c extends s{constructor(d){super(d),this._values={},this._scope=d.scope,this.opts={...d,_n:d.lines?i:t.nil}}get(){return this._scope}name(d){return new a(d,this._newName(d))}value(d,h){var m;if(h.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const E=this.toName(d),{prefix:w}=E,v=(m=h.key)!==null&&m!==void 0?m:h.ref;let b=this._values[w];if(b){const _=b.get(v);if(_)return _}else b=this._values[w]=new Map;b.set(v,E);const $=this._scope[w]||(this._scope[w]=[]),f=$.length;return $[f]=h.ref,E.setValue(h,{property:w,itemIndex:f}),E}getValue(d,h){const m=this._values[d];if(m)return m.get(h)}scopeRefs(d,h=this._values){return this._reduceValues(h,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${d}${m.scopePath}`})}scopeCode(d=this._values,h,m){return this._reduceValues(d,E=>{if(E.value===void 0)throw new Error(`CodeGen: name "${E}" has no value`);return E.value.code},h,m)}_reduceValues(d,h,m={},E){let w=t.nil;for(const v in d){const b=d[v];if(!b)continue;const $=m[v]=m[v]||new Map;b.forEach(f=>{if($.has(f))return;$.set(f,n.Started);let _=h(f);if(_){const P=this.opts.es5?e.varKinds.var:e.varKinds.const;w=(0,t._)`${w}${P} ${f} = ${_};${this.opts._n}`}else if(_=E==null?void 0:E(f))w=(0,t._)`${w}${_}${this.opts._n}`;else throw new r(f);$.set(f,n.Completed)})}return w}}e.ValueScope=c})(Zt);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=et,r=Zt;var n=et;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Zt;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(o,l){return this}}class i extends a{constructor(o,l,g){super(),this.varKind=o,this.name=l,this.rhs=g}render({es5:o,_n:l}){const g=o?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${g} ${this.name}${I};`+l}optimizeNames(o,l){if(o[this.name.str])return this.rhs&&(this.rhs=fe(this.rhs,o,l)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends a{constructor(o,l,g){super(),this.lhs=o,this.rhs=l,this.sideEffects=g}render({_n:o}){return`${this.lhs} = ${this.rhs};`+o}optimizeNames(o,l){if(!(this.lhs instanceof t.Name&&!o[this.lhs.str]&&!this.sideEffects))return this.rhs=fe(this.rhs,o,l),this}get names(){const o=this.lhs instanceof t.Name?{}:{...this.lhs.names};return je(o,this.rhs)}}class u extends c{constructor(o,l,g,I){super(o,g,I),this.op=l}render({_n:o}){return`${this.lhs} ${this.op}= ${this.rhs};`+o}}class d extends a{constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`${this.label}:`+o}}class h extends a{constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`break${this.label?` ${this.label}`:""};`+o}}class m extends a{constructor(o){super(),this.error=o}render({_n:o}){return`throw ${this.error};`+o}get names(){return this.error.names}}class E extends a{constructor(o){super(),this.code=o}render({_n:o}){return`${this.code};`+o}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(o,l){return this.code=fe(this.code,o,l),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class w extends a{constructor(o=[]){super(),this.nodes=o}render(o){return this.nodes.reduce((l,g)=>l+g.render(o),"")}optimizeNodes(){const{nodes:o}=this;let l=o.length;for(;l--;){const g=o[l].optimizeNodes();Array.isArray(g)?o.splice(l,1,...g):g?o[l]=g:o.splice(l,1)}return o.length>0?this:void 0}optimizeNames(o,l){const{nodes:g}=this;let I=g.length;for(;I--;){const T=g[I];T.optimizeNames(o,l)||(Le(o,T.names),g.splice(I,1))}return g.length>0?this:void 0}get names(){return this.nodes.reduce((o,l)=>ie(o,l.names),{})}}class v extends w{render(o){return"{"+o._n+super.render(o)+"}"+o._n}}class b extends w{}class $ extends v{}$.kind="else";class f extends v{constructor(o,l){super(l),this.condition=o}render(o){let l=`if(${this.condition})`+super.render(o);return this.else&&(l+="else "+this.else.render(o)),l}optimizeNodes(){super.optimizeNodes();const o=this.condition;if(o===!0)return this.nodes;let l=this.else;if(l){const g=l.optimizeNodes();l=this.else=Array.isArray(g)?new $(g):g}if(l)return o===!1?l instanceof f?l:l.nodes:this.nodes.length?this:new f(st(o),l instanceof f?[l]:l.nodes);if(!(o===!1||!this.nodes.length))return this}optimizeNames(o,l){var g;if(this.else=(g=this.else)===null||g===void 0?void 0:g.optimizeNames(o,l),!!(super.optimizeNames(o,l)||this.else))return this.condition=fe(this.condition,o,l),this}get names(){const o=super.names;return je(o,this.condition),this.else&&ie(o,this.else.names),o}}f.kind="if";class _ extends v{}_.kind="for";class P extends _{constructor(o){super(),this.iteration=o}render(o){return`for(${this.iteration})`+super.render(o)}optimizeNames(o,l){if(super.optimizeNames(o,l))return this.iteration=fe(this.iteration,o,l),this}get names(){return ie(super.names,this.iteration.names)}}class k extends _{constructor(o,l,g,I){super(),this.varKind=o,this.name=l,this.from=g,this.to=I}render(o){const l=o.es5?r.varKinds.var:this.varKind,{name:g,from:I,to:T}=this;return`for(${l} ${g}=${I}; ${g}<${T}; ${g}++)`+super.render(o)}get names(){const o=je(super.names,this.from);return je(o,this.to)}}class O extends _{constructor(o,l,g,I){super(),this.loop=o,this.varKind=l,this.name=g,this.iterable=I}render(o){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(o)}optimizeNames(o,l){if(super.optimizeNames(o,l))return this.iterable=fe(this.iterable,o,l),this}get names(){return ie(super.names,this.iterable.names)}}class U extends v{constructor(o,l,g){super(),this.name=o,this.args=l,this.async=g}render(o){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(o)}}U.kind="func";class L extends w{render(o){return"return "+super.render(o)}}L.kind="return";class oe extends v{render(o){let l="try"+super.render(o);return this.catch&&(l+=this.catch.render(o)),this.finally&&(l+=this.finally.render(o)),l}optimizeNodes(){var o,l;return super.optimizeNodes(),(o=this.catch)===null||o===void 0||o.optimizeNodes(),(l=this.finally)===null||l===void 0||l.optimizeNodes(),this}optimizeNames(o,l){var g,I;return super.optimizeNames(o,l),(g=this.catch)===null||g===void 0||g.optimizeNames(o,l),(I=this.finally)===null||I===void 0||I.optimizeNames(o,l),this}get names(){const o=super.names;return this.catch&&ie(o,this.catch.names),this.finally&&ie(o,this.finally.names),o}}class le extends v{constructor(o){super(),this.error=o}render(o){return`catch(${this.error})`+super.render(o)}}le.kind="catch";class _e extends v{render(o){return"finally"+super.render(o)}}_e.kind="finally";class Ke{constructor(o,l={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...l,_n:l.lines?`
2
+ `:""},this._extScope=o,this._scope=new r.Scope({parent:o}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(o){return this._scope.name(o)}scopeName(o){return this._extScope.name(o)}scopeValue(o,l){const g=this._extScope.value(o,l);return(this._values[g.prefix]||(this._values[g.prefix]=new Set)).add(g),g}getScopeValue(o,l){return this._extScope.getValue(o,l)}scopeRefs(o){return this._extScope.scopeRefs(o,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(o,l,g,I){const T=this._scope.toName(l);return g!==void 0&&I&&(this._constants[T.str]=g),this._leafNode(new i(o,T,g)),T}const(o,l,g){return this._def(r.varKinds.const,o,l,g)}let(o,l,g){return this._def(r.varKinds.let,o,l,g)}var(o,l,g){return this._def(r.varKinds.var,o,l,g)}assign(o,l,g){return this._leafNode(new c(o,l,g))}add(o,l){return this._leafNode(new u(o,e.operators.ADD,l))}code(o){return typeof o=="function"?o():o!==t.nil&&this._leafNode(new E(o)),this}object(...o){const l=["{"];for(const[g,I]of o)l.length>1&&l.push(","),l.push(g),(g!==I||this.opts.es5)&&(l.push(":"),(0,t.addCodeArg)(l,I));return l.push("}"),new t._Code(l)}if(o,l,g){if(this._blockNode(new f(o)),l&&g)this.code(l).else().code(g).endIf();else if(l)this.code(l).endIf();else if(g)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(o){return this._elseNode(new f(o))}else(){return this._elseNode(new $)}endIf(){return this._endBlockNode(f,$)}_for(o,l){return this._blockNode(o),l&&this.code(l).endFor(),this}for(o,l){return this._for(new P(o),l)}forRange(o,l,g,I,T=this.opts.es5?r.varKinds.var:r.varKinds.let){const z=this._scope.toName(o);return this._for(new k(T,z,l,g),()=>I(z))}forOf(o,l,g,I=r.varKinds.const){const T=this._scope.toName(o);if(this.opts.es5){const z=l instanceof t.Name?l:this.var("_arr",l);return this.forRange("_i",0,(0,t._)`${z}.length`,V=>{this.var(T,(0,t._)`${z}[${V}]`),g(T)})}return this._for(new O("of",I,T,l),()=>g(T))}forIn(o,l,g,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(o,(0,t._)`Object.keys(${l})`,g);const T=this._scope.toName(o);return this._for(new O("in",I,T,l),()=>g(T))}endFor(){return this._endBlockNode(_)}label(o){return this._leafNode(new d(o))}break(o){return this._leafNode(new h(o))}return(o){const l=new L;if(this._blockNode(l),this.code(o),l.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(L)}try(o,l,g){if(!l&&!g)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new oe;if(this._blockNode(I),this.code(o),l){const T=this.name("e");this._currNode=I.catch=new le(T),l(T)}return g&&(this._currNode=I.finally=new _e,this.code(g)),this._endBlockNode(le,_e)}throw(o){return this._leafNode(new m(o))}block(o,l){return this._blockStarts.push(this._nodes.length),o&&this.code(o).endBlock(l),this}endBlock(o){const l=this._blockStarts.pop();if(l===void 0)throw new Error("CodeGen: not in self-balancing block");const g=this._nodes.length-l;if(g<0||o!==void 0&&g!==o)throw new Error(`CodeGen: wrong number of nodes: ${g} vs ${o} expected`);return this._nodes.length=l,this}func(o,l=t.nil,g,I){return this._blockNode(new U(o,l,g)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode(U)}optimize(o=1){for(;o-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(o){return this._currNode.nodes.push(o),this}_blockNode(o){this._currNode.nodes.push(o),this._nodes.push(o)}_endBlockNode(o,l){const g=this._currNode;if(g instanceof o||l&&g instanceof l)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${l?`${o.kind}/${l.kind}`:o.kind}"`)}_elseNode(o){const l=this._currNode;if(!(l instanceof f))throw new Error('CodeGen: "else" without "if"');return this._currNode=l.else=o,this}get _root(){return this._nodes[0]}get _currNode(){const o=this._nodes;return o[o.length-1]}set _currNode(o){const l=this._nodes;l[l.length-1]=o}}e.CodeGen=Ke;function ie(y,o){for(const l in o)y[l]=(y[l]||0)+(o[l]||0);return y}function je(y,o){return o instanceof t._CodeOrName?ie(y,o.names):y}function fe(y,o,l){if(y instanceof t.Name)return g(y);if(!I(y))return y;return new t._Code(y._items.reduce((T,z)=>(z instanceof t.Name&&(z=g(z)),z instanceof t._Code?T.push(...z._items):T.push(z),T),[]));function g(T){const z=l[T.str];return z===void 0||o[T.str]!==1?T:(delete o[T.str],z)}function I(T){return T instanceof t._Code&&T._items.some(z=>z instanceof t.Name&&o[z.str]===1&&l[z.str]!==void 0)}}function Le(y,o){for(const l in o)y[l]=(y[l]||0)-(o[l]||0)}function st(y){return typeof y=="boolean"||typeof y=="number"||y===null?!y:(0,t._)`!${S(y)}`}e.not=st;const kt=p(e.operators.AND);function Ot(...y){return y.reduce(kt)}e.and=Ot;const at=p(e.operators.OR);function j(...y){return y.reduce(at)}e.or=j;function p(y){return(o,l)=>o===t.nil?l:l===t.nil?o:(0,t._)`${S(o)} ${y} ${S(l)}`}function S(y){return y instanceof t.Name?y:(0,t._)`(${y})`}})(C);var N={};Object.defineProperty(N,"__esModule",{value:!0});N.checkStrictMode=N.getErrorPath=N.Type=N.useFunc=N.setEvaluated=N.evaluatedPropsToName=N.mergeEvaluated=N.eachItem=N.unescapeJsonPointer=N.escapeJsonPointer=N.escapeFragment=N.unescapeFragment=N.schemaRefOrVal=N.schemaHasRulesButRef=N.schemaHasRules=N.checkUnknownRules=N.alwaysValidSchema=N.toHash=void 0;const q=C,Ls=et;function Hs(e){const t={};for(const r of e)t[r]=!0;return t}N.toHash=Hs;function Gs(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Un(e,t),!Fn(t,e.self.RULES.all))}N.alwaysValidSchema=Gs;function Un(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;const s=n.RULES.keywords;for(const a in t)s[a]||Hn(e,`unknown keyword: "${a}"`)}N.checkUnknownRules=Un;function Fn(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return!0;return!1}N.schemaHasRules=Fn;function Js(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}N.schemaHasRulesButRef=Js;function Bs({topSchemaRef:e,schemaPath:t},r,n,s){if(!s){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,q._)`${r}`}return(0,q._)`${e}${t}${(0,q.getProperty)(n)}`}N.schemaRefOrVal=Bs;function Ws(e){return Kn(decodeURIComponent(e))}N.unescapeFragment=Ws;function Qs(e){return encodeURIComponent(sr(e))}N.escapeFragment=Qs;function sr(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}N.escapeJsonPointer=sr;function Kn(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}N.unescapeJsonPointer=Kn;function Xs(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)}N.eachItem=Xs;function un({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(s,a,i,c)=>{const u=i===void 0?a:i instanceof q.Name?(a instanceof q.Name?e(s,a,i):t(s,a,i),i):a instanceof q.Name?(t(s,i,a),a):r(a,i);return c===q.Name&&!(u instanceof q.Name)?n(s,u):u}}N.mergeEvaluated={props:un({mergeNames:(e,t,r)=>e.if((0,q._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,q._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,q._)`${r} || {}`).code((0,q._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,q._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,q._)`${r} || {}`),ar(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Ln}),items:un({mergeNames:(e,t,r)=>e.if((0,q._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,q._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,q._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,q._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Ln(e,t){if(t===!0)return e.var("props",!0);const r=e.var("props",(0,q._)`{}`);return t!==void 0&&ar(e,r,t),r}N.evaluatedPropsToName=Ln;function ar(e,t,r){Object.keys(r).forEach(n=>e.assign((0,q._)`${t}${(0,q.getProperty)(n)}`,!0))}N.setEvaluated=ar;const dn={};function Zs(e,t){return e.scopeValue("func",{ref:t,code:dn[t.code]||(dn[t.code]=new Ls._Code(t.code))})}N.useFunc=Zs;var Yt;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Yt||(N.Type=Yt={}));function Ys(e,t,r){if(e instanceof q.Name){const n=t===Yt.Num;return r?n?(0,q._)`"[" + ${e} + "]"`:(0,q._)`"['" + ${e} + "']"`:n?(0,q._)`"/" + ${e}`:(0,q._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,q.getProperty)(e).toString():"/"+sr(e)}N.getErrorPath=Ys;function Hn(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}N.checkStrictMode=Hn;var Y={};Object.defineProperty(Y,"__esModule",{value:!0});const W=C,xs={data:new W.Name("data"),valCxt:new W.Name("valCxt"),instancePath:new W.Name("instancePath"),parentData:new W.Name("parentData"),parentDataProperty:new W.Name("parentDataProperty"),rootData:new W.Name("rootData"),dynamicAnchors:new W.Name("dynamicAnchors"),vErrors:new W.Name("vErrors"),errors:new W.Name("errors"),this:new W.Name("this"),self:new W.Name("self"),scope:new W.Name("scope"),json:new W.Name("json"),jsonPos:new W.Name("jsonPos"),jsonLen:new W.Name("jsonLen"),jsonPart:new W.Name("jsonPart")};Y.default=xs;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=C,r=N,n=Y;e.keywordError={message:({keyword:$})=>(0,t.str)`must pass "${$}" keyword validation`},e.keyword$DataError={message:({keyword:$,schemaType:f})=>f?(0,t.str)`"${$}" keyword must be ${f} ($data)`:(0,t.str)`"${$}" keyword is invalid ($data)`};function s($,f=e.keywordError,_,P){const{it:k}=$,{gen:O,compositeRule:U,allErrors:L}=k,oe=m($,f,_);P??(U||L)?u(O,oe):d(k,(0,t._)`[${oe}]`)}e.reportError=s;function a($,f=e.keywordError,_){const{it:P}=$,{gen:k,compositeRule:O,allErrors:U}=P,L=m($,f,_);u(k,L),O||U||d(P,n.default.vErrors)}e.reportExtraError=a;function i($,f){$.assign(n.default.errors,f),$.if((0,t._)`${n.default.vErrors} !== null`,()=>$.if(f,()=>$.assign((0,t._)`${n.default.vErrors}.length`,f),()=>$.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function c({gen:$,keyword:f,schemaValue:_,data:P,errsCount:k,it:O}){if(k===void 0)throw new Error("ajv implementation error");const U=$.name("err");$.forRange("i",k,n.default.errors,L=>{$.const(U,(0,t._)`${n.default.vErrors}[${L}]`),$.if((0,t._)`${U}.instancePath === undefined`,()=>$.assign((0,t._)`${U}.instancePath`,(0,t.strConcat)(n.default.instancePath,O.errorPath))),$.assign((0,t._)`${U}.schemaPath`,(0,t.str)`${O.errSchemaPath}/${f}`),O.opts.verbose&&($.assign((0,t._)`${U}.schema`,_),$.assign((0,t._)`${U}.data`,P))})}e.extendErrors=c;function u($,f){const _=$.const("err",f);$.if((0,t._)`${n.default.vErrors} === null`,()=>$.assign(n.default.vErrors,(0,t._)`[${_}]`),(0,t._)`${n.default.vErrors}.push(${_})`),$.code((0,t._)`${n.default.errors}++`)}function d($,f){const{gen:_,validateName:P,schemaEnv:k}=$;k.$async?_.throw((0,t._)`new ${$.ValidationError}(${f})`):(_.assign((0,t._)`${P}.errors`,f),_.return(!1))}const h={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function m($,f,_){const{createErrors:P}=$.it;return P===!1?(0,t._)`{}`:E($,f,_)}function E($,f,_={}){const{gen:P,it:k}=$,O=[w(k,_),v($,_)];return b($,f,O),P.object(...O)}function w({errorPath:$},{instancePath:f}){const _=f?(0,t.str)`${$}${(0,r.getErrorPath)(f,r.Type.Str)}`:$;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,_)]}function v({keyword:$,it:{errSchemaPath:f}},{schemaPath:_,parentSchema:P}){let k=P?f:(0,t.str)`${f}/${$}`;return _&&(k=(0,t.str)`${k}${(0,r.getErrorPath)(_,r.Type.Str)}`),[h.schemaPath,k]}function b($,{params:f,message:_},P){const{keyword:k,data:O,schemaValue:U,it:L}=$,{opts:oe,propertyName:le,topSchemaRef:_e,schemaPath:Ke}=L;P.push([h.keyword,k],[h.params,typeof f=="function"?f($):f||(0,t._)`{}`]),oe.messages&&P.push([h.message,typeof _=="function"?_($):_]),oe.verbose&&P.push([h.schema,U],[h.parentSchema,(0,t._)`${_e}${Ke}`],[n.default.data,O]),le&&P.push([h.propertyName,le])}})(tt);Object.defineProperty(Ce,"__esModule",{value:!0});Ce.boolOrEmptySchema=Ce.topBoolOrEmptySchema=void 0;const ea=tt,ta=C,ra=Y,na={message:"boolean schema is false"};function sa(e){const{gen:t,schema:r,validateName:n}=e;r===!1?Gn(e,!1):typeof r=="object"&&r.$async===!0?t.return(ra.default.data):(t.assign((0,ta._)`${n}.errors`,null),t.return(!0))}Ce.topBoolOrEmptySchema=sa;function aa(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Gn(e)):r.var(t,!0)}Ce.boolOrEmptySchema=aa;function Gn(e,t){const{gen:r,data:n}=e,s={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,ea.reportError)(s,na,void 0,t)}var H={},Se={};Object.defineProperty(Se,"__esModule",{value:!0});Se.getRules=Se.isJSONType=void 0;const oa=["string","number","integer","boolean","null","object","array"],ia=new Set(oa);function ca(e){return typeof e=="string"&&ia.has(e)}Se.isJSONType=ca;function ua(){const 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:{}}}Se.getRules=ua;var ce={};Object.defineProperty(ce,"__esModule",{value:!0});ce.shouldUseRule=ce.shouldUseGroup=ce.schemaHasRulesForType=void 0;function da({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&Jn(e,n)}ce.schemaHasRulesForType=da;function Jn(e,t){return t.rules.some(r=>Bn(e,r))}ce.shouldUseGroup=Jn;function Bn(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}ce.shouldUseRule=Bn;Object.defineProperty(H,"__esModule",{value:!0});H.reportTypeError=H.checkDataTypes=H.checkDataType=H.coerceAndCheckDataType=H.getJSONTypes=H.getSchemaTypes=H.DataType=void 0;const la=Se,fa=ce,ha=tt,M=C,Wn=N;var Te;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Te||(H.DataType=Te={}));function ma(e){const t=Qn(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}H.getSchemaTypes=ma;function Qn(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(la.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}H.getJSONTypes=Qn;function pa(e,t){const{gen:r,data:n,opts:s}=e,a=$a(t,s.coerceTypes),i=t.length>0&&!(a.length===0&&t.length===1&&(0,fa.schemaHasRulesForType)(e,t[0]));if(i){const c=or(t,n,s.strictNumbers,Te.Wrong);r.if(c,()=>{a.length?ya(e,t,a):ir(e)})}return i}H.coerceAndCheckDataType=pa;const Xn=new Set(["string","number","integer","boolean","null"]);function $a(e,t){return t?e.filter(r=>Xn.has(r)||t==="array"&&r==="array"):[]}function ya(e,t,r){const{gen:n,data:s,opts:a}=e,i=n.let("dataType",(0,M._)`typeof ${s}`),c=n.let("coerced",(0,M._)`undefined`);a.coerceTypes==="array"&&n.if((0,M._)`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,(0,M._)`${s}[0]`).assign(i,(0,M._)`typeof ${s}`).if(or(t,s,a.strictNumbers),()=>n.assign(c,s))),n.if((0,M._)`${c} !== undefined`);for(const d of r)(Xn.has(d)||d==="array"&&a.coerceTypes==="array")&&u(d);n.else(),ir(e),n.endIf(),n.if((0,M._)`${c} !== undefined`,()=>{n.assign(s,c),_a(e,c)});function u(d){switch(d){case"string":n.elseIf((0,M._)`${i} == "number" || ${i} == "boolean"`).assign(c,(0,M._)`"" + ${s}`).elseIf((0,M._)`${s} === null`).assign(c,(0,M._)`""`);return;case"number":n.elseIf((0,M._)`${i} == "boolean" || ${s} === null
3
+ || (${i} == "string" && ${s} && ${s} == +${s})`).assign(c,(0,M._)`+${s}`);return;case"integer":n.elseIf((0,M._)`${i} === "boolean" || ${s} === null
4
+ || (${i} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(c,(0,M._)`+${s}`);return;case"boolean":n.elseIf((0,M._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(c,!1).elseIf((0,M._)`${s} === "true" || ${s} === 1`).assign(c,!0);return;case"null":n.elseIf((0,M._)`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(c,null);return;case"array":n.elseIf((0,M._)`${i} === "string" || ${i} === "number"
5
+ || ${i} === "boolean" || ${s} === null`).assign(c,(0,M._)`[${s}]`)}}}function _a({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,M._)`${t} !== undefined`,()=>e.assign((0,M._)`${t}[${r}]`,n))}function xt(e,t,r,n=Te.Correct){const s=n===Te.Correct?M.operators.EQ:M.operators.NEQ;let a;switch(e){case"null":return(0,M._)`${t} ${s} null`;case"array":a=(0,M._)`Array.isArray(${t})`;break;case"object":a=(0,M._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=i((0,M._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=i();break;default:return(0,M._)`typeof ${t} ${s} ${e}`}return n===Te.Correct?a:(0,M.not)(a);function i(c=M.nil){return(0,M.and)((0,M._)`typeof ${t} == "number"`,c,r?(0,M._)`isFinite(${t})`:M.nil)}}H.checkDataType=xt;function or(e,t,r,n){if(e.length===1)return xt(e[0],t,r,n);let s;const a=(0,Wn.toHash)(e);if(a.array&&a.object){const i=(0,M._)`typeof ${t} != "object"`;s=a.null?i:(0,M._)`!${t} || ${i}`,delete a.null,delete a.array,delete a.object}else s=M.nil;a.number&&delete a.integer;for(const i in a)s=(0,M.and)(s,xt(i,t,r,n));return s}H.checkDataTypes=or;const va={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,M._)`{type: ${e}}`:(0,M._)`{type: ${t}}`};function ir(e){const t=ga(e);(0,ha.reportError)(t,va)}H.reportTypeError=ir;function ga(e){const{gen:t,data:r,schema:n}=e,s=(0,Wn.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.assignDefaults=void 0;const ke=C,ba=N;function wa(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const s in r)ln(e,s,r[s].default);else t==="array"&&Array.isArray(n)&&n.forEach((s,a)=>ln(e,a,s.default))}bt.assignDefaults=wa;function ln(e,t,r){const{gen:n,compositeRule:s,data:a,opts:i}=e;if(r===void 0)return;const c=(0,ke._)`${a}${(0,ke.getProperty)(t)}`;if(s){(0,ba.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,ke._)`${c} === undefined`;i.useDefaults==="empty"&&(u=(0,ke._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,ke._)`${c} = ${(0,ke.stringify)(r)}`)}var ae={},D={};Object.defineProperty(D,"__esModule",{value:!0});D.validateUnion=D.validateArray=D.usePattern=D.callValidateCode=D.schemaProperties=D.allSchemaProperties=D.noPropertyInData=D.propertyInData=D.isOwnProperty=D.hasPropFunc=D.reportMissingProp=D.checkMissingProp=D.checkReportMissingProp=void 0;const F=C,cr=N,he=Y,Ea=N;function Sa(e,t){const{gen:r,data:n,it:s}=e;r.if(dr(r,n,t,s.opts.ownProperties),()=>{e.setParams({missingProperty:(0,F._)`${t}`},!0),e.error()})}D.checkReportMissingProp=Sa;function Pa({gen:e,data:t,it:{opts:r}},n,s){return(0,F.or)(...n.map(a=>(0,F.and)(dr(e,t,a,r.ownProperties),(0,F._)`${s} = ${a}`)))}D.checkMissingProp=Pa;function ja(e,t){e.setParams({missingProperty:t},!0),e.error()}D.reportMissingProp=ja;function Zn(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,F._)`Object.prototype.hasOwnProperty`})}D.hasPropFunc=Zn;function ur(e,t,r){return(0,F._)`${Zn(e)}.call(${t}, ${r})`}D.isOwnProperty=ur;function Na(e,t,r,n){const s=(0,F._)`${t}${(0,F.getProperty)(r)} !== undefined`;return n?(0,F._)`${s} && ${ur(e,t,r)}`:s}D.propertyInData=Na;function dr(e,t,r,n){const s=(0,F._)`${t}${(0,F.getProperty)(r)} === undefined`;return n?(0,F.or)(s,(0,F.not)(ur(e,t,r))):s}D.noPropertyInData=dr;function Yn(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}D.allSchemaProperties=Yn;function ka(e,t){return Yn(t).filter(r=>!(0,cr.alwaysValidSchema)(e,t[r]))}D.schemaProperties=ka;function Oa({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:s,errorPath:a},it:i},c,u,d){const h=d?(0,F._)`${e}, ${t}, ${n}${s}`:t,m=[[he.default.instancePath,(0,F.strConcat)(he.default.instancePath,a)],[he.default.parentData,i.parentData],[he.default.parentDataProperty,i.parentDataProperty],[he.default.rootData,he.default.rootData]];i.opts.dynamicRef&&m.push([he.default.dynamicAnchors,he.default.dynamicAnchors]);const E=(0,F._)`${h}, ${r.object(...m)}`;return u!==F.nil?(0,F._)`${c}.call(${u}, ${E})`:(0,F._)`${c}(${E})`}D.callValidateCode=Oa;const Ra=(0,F._)`new RegExp`;function Ia({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:s}=t.code,a=s(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,F._)`${s.code==="new RegExp"?Ra:(0,Ea.useFunc)(e,s)}(${r}, ${n})`})}D.usePattern=Ia;function Ta(e){const{gen:t,data:r,keyword:n,it:s}=e,a=t.name("valid");if(s.allErrors){const c=t.let("valid",!0);return i(()=>t.assign(c,!1)),c}return t.var(a,!0),i(()=>t.break()),a;function i(c){const u=t.const("len",(0,F._)`${r}.length`);t.forRange("i",0,u,d=>{e.subschema({keyword:n,dataProp:d,dataPropType:cr.Type.Num},a),t.if((0,F.not)(a),c)})}}D.validateArray=Ta;function Aa(e){const{gen:t,schema:r,keyword:n,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,cr.alwaysValidSchema)(s,u))&&!s.opts.unevaluated)return;const i=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,d)=>{const h=e.subschema({keyword:n,schemaProp:d,compositeRule:!0},c);t.assign(i,(0,F._)`${i} || ${c}`),e.mergeValidEvaluated(h,c)||t.if((0,F.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}D.validateUnion=Aa;Object.defineProperty(ae,"__esModule",{value:!0});ae.validateKeywordUsage=ae.validSchemaType=ae.funcKeywordCode=ae.macroKeywordCode=void 0;const Q=C,ge=Y,Ca=D,Ma=tt;function Da(e,t){const{gen:r,keyword:n,schema:s,parentSchema:a,it:i}=e,c=t.macro.call(i.self,s,a,i),u=xn(r,n,c);i.opts.validateSchema!==!1&&i.self.validateSchema(c,!0);const d=r.name("valid");e.subschema({schema:c,schemaPath:Q.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,()=>e.error(!0))}ae.macroKeywordCode=Da;function Va(e,t){var r;const{gen:n,keyword:s,schema:a,parentSchema:i,$data:c,it:u}=e;qa(u,t);const d=!c&&t.compile?t.compile.call(u.self,a,i,u):t.validate,h=xn(n,s,d),m=n.let("valid");e.block$data(m,E),e.ok((r=t.valid)!==null&&r!==void 0?r:m);function E(){if(t.errors===!1)b(),t.modifying&&fn(e),$(()=>e.error());else{const f=t.async?w():v();t.modifying&&fn(e),$(()=>za(e,f))}}function w(){const f=n.let("ruleErrs",null);return n.try(()=>b((0,Q._)`await `),_=>n.assign(m,!1).if((0,Q._)`${_} instanceof ${u.ValidationError}`,()=>n.assign(f,(0,Q._)`${_}.errors`),()=>n.throw(_))),f}function v(){const f=(0,Q._)`${h}.errors`;return n.assign(f,null),b(Q.nil),f}function b(f=t.async?(0,Q._)`await `:Q.nil){const _=u.opts.passContext?ge.default.this:ge.default.self,P=!("compile"in t&&!c||t.schema===!1);n.assign(m,(0,Q._)`${f}${(0,Ca.callValidateCode)(e,h,_,P)}`,t.modifying)}function $(f){var _;n.if((0,Q.not)((_=t.valid)!==null&&_!==void 0?_:m),f)}}ae.funcKeywordCode=Va;function fn(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Q._)`${n.parentData}[${n.parentDataProperty}]`))}function za(e,t){const{gen:r}=e;r.if((0,Q._)`Array.isArray(${t})`,()=>{r.assign(ge.default.vErrors,(0,Q._)`${ge.default.vErrors} === null ? ${t} : ${ge.default.vErrors}.concat(${t})`).assign(ge.default.errors,(0,Q._)`${ge.default.vErrors}.length`),(0,Ma.extendErrors)(e)},()=>e.error())}function qa({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function xn(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Q.stringify)(r)})}function Ua(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}ae.validSchemaType=Ua;function Fa({schema:e,opts:t,self:r,errSchemaPath:n},s,a){if(Array.isArray(s.keyword)?!s.keyword.includes(a):s.keyword!==a)throw new Error("ajv implementation error");const i=s.dependencies;if(i!=null&&i.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(s.validateSchema&&!s.validateSchema(e[a])){const u=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}ae.validateKeywordUsage=Fa;var ye={};Object.defineProperty(ye,"__esModule",{value:!0});ye.extendSubschemaMode=ye.extendSubschemaData=ye.getSubschema=void 0;const se=C,es=N;function Ka(e,{keyword:t,schemaProp:r,schema:n,schemaPath:s,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,se._)`${e.schemaPath}${(0,se.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,se._)`${e.schemaPath}${(0,se.getProperty)(t)}${(0,se.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,es.escapeFragment)(r)}`}}if(n!==void 0){if(s===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}ye.getSubschema=Ka;function La(e,t,{dataProp:r,dataPropType:n,data:s,dataTypes:a,propertyName:i}){if(s!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(r!==void 0){const{errorPath:d,dataPathArr:h,opts:m}=t,E=c.let("data",(0,se._)`${t.data}${(0,se.getProperty)(r)}`,!0);u(E),e.errorPath=(0,se.str)`${d}${(0,es.getErrorPath)(r,n,m.jsPropertySyntax)}`,e.parentDataProperty=(0,se._)`${r}`,e.dataPathArr=[...h,e.parentDataProperty]}if(s!==void 0){const d=s instanceof se.Name?s:c.let("data",s,!0);u(d),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function u(d){e.data=d,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,d]}}ye.extendSubschemaData=La;function Ha(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:a}){n!==void 0&&(e.compositeRule=n),s!==void 0&&(e.createErrors=s),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}ye.extendSubschemaMode=Ha;var B={},ts=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,s,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!e(t[s],r[s]))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(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[s]))return!1;for(s=n;s--!==0;){var i=a[s];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r},rs={exports:{}},$e=rs.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};lt(t,n,s,e,"",e)};$e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};$e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};$e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};$e.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};function lt(e,t,r,n,s,a,i,c,u,d){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,s,a,i,c,u,d);for(var h in n){var m=n[h];if(Array.isArray(m)){if(h in $e.arrayKeywords)for(var E=0;E<m.length;E++)lt(e,t,r,m[E],s+"/"+h+"/"+E,a,s,h,n,E)}else if(h in $e.propsKeywords){if(m&&typeof m=="object")for(var w in m)lt(e,t,r,m[w],s+"/"+h+"/"+Ga(w),a,s,h,n,w)}else(h in $e.keywords||e.allKeys&&!(h in $e.skipKeywords))&&lt(e,t,r,m,s+"/"+h,a,s,h,n)}r(n,s,a,i,c,u,d)}}function Ga(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var Ja=rs.exports;Object.defineProperty(B,"__esModule",{value:!0});B.getSchemaRefs=B.resolveUrl=B.normalizeId=B._getFullPath=B.getFullPath=B.inlineRef=void 0;const Ba=N,Wa=ts,Qa=Ja,Xa=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Za(e,t=!0){return typeof e=="boolean"?!0:t===!0?!er(e):t?ns(e)<=t:!1}B.inlineRef=Za;const Ya=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function er(e){for(const t in e){if(Ya.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(er)||typeof r=="object"&&er(r))return!0}return!1}function ns(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!Xa.has(r)&&(typeof e[r]=="object"&&(0,Ba.eachItem)(e[r],n=>t+=ns(n)),t===1/0))return 1/0}return t}function ss(e,t="",r){r!==!1&&(t=Ae(t));const n=e.parse(t);return as(e,n)}B.getFullPath=ss;function as(e,t){return e.serialize(t).split("#")[0]+"#"}B._getFullPath=as;const xa=/#\/?$/;function Ae(e){return e?e.replace(xa,""):""}B.normalizeId=Ae;function eo(e,t,r){return r=Ae(r),e.resolve(t,r)}B.resolveUrl=eo;const to=/^[a-z_][-a-z0-9._]*$/i;function ro(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,s=Ae(e[r]||t),a={"":s},i=ss(n,s,!1),c={},u=new Set;return Qa(e,{allKeys:!0},(m,E,w,v)=>{if(v===void 0)return;const b=i+E;let $=a[v];typeof m[r]=="string"&&($=f.call(this,m[r])),_.call(this,m.$anchor),_.call(this,m.$dynamicAnchor),a[E]=$;function f(P){const k=this.opts.uriResolver.resolve;if(P=Ae($?k($,P):P),u.has(P))throw h(P);u.add(P);let O=this.refs[P];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?d(m,O.schema,P):P!==Ae(b)&&(P[0]==="#"?(d(m,c[P],P),c[P]=m):this.refs[P]=b),P}function _(P){if(typeof P=="string"){if(!to.test(P))throw new Error(`invalid anchor "${P}"`);f.call(this,`#${P}`)}}}),c;function d(m,E,w){if(E!==void 0&&!Wa(m,E))throw h(w)}function h(m){return new Error(`reference "${m}" resolves to more than one schema`)}}B.getSchemaRefs=ro;Object.defineProperty(ne,"__esModule",{value:!0});ne.getData=ne.KeywordCxt=ne.validateFunctionCode=void 0;const os=Ce,hn=H,lr=ce,$t=H,no=bt,Qe=ae,Ht=ye,R=C,A=Y,so=B,ue=N,Ge=tt;function ao(e){if(us(e)&&(ds(e),cs(e))){co(e);return}is(e,()=>(0,os.topBoolOrEmptySchema)(e))}ne.validateFunctionCode=ao;function is({gen:e,validateName:t,schema:r,schemaEnv:n,opts:s},a){s.code.es5?e.func(t,(0,R._)`${A.default.data}, ${A.default.valCxt}`,n.$async,()=>{e.code((0,R._)`"use strict"; ${mn(r,s)}`),io(e,s),e.code(a)}):e.func(t,(0,R._)`${A.default.data}, ${oo(s)}`,n.$async,()=>e.code(mn(r,s)).code(a))}function oo(e){return(0,R._)`{${A.default.instancePath}="", ${A.default.parentData}, ${A.default.parentDataProperty}, ${A.default.rootData}=${A.default.data}${e.dynamicRef?(0,R._)`, ${A.default.dynamicAnchors}={}`:R.nil}}={}`}function io(e,t){e.if(A.default.valCxt,()=>{e.var(A.default.instancePath,(0,R._)`${A.default.valCxt}.${A.default.instancePath}`),e.var(A.default.parentData,(0,R._)`${A.default.valCxt}.${A.default.parentData}`),e.var(A.default.parentDataProperty,(0,R._)`${A.default.valCxt}.${A.default.parentDataProperty}`),e.var(A.default.rootData,(0,R._)`${A.default.valCxt}.${A.default.rootData}`),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,R._)`${A.default.valCxt}.${A.default.dynamicAnchors}`)},()=>{e.var(A.default.instancePath,(0,R._)`""`),e.var(A.default.parentData,(0,R._)`undefined`),e.var(A.default.parentDataProperty,(0,R._)`undefined`),e.var(A.default.rootData,A.default.data),t.dynamicRef&&e.var(A.default.dynamicAnchors,(0,R._)`{}`)})}function co(e){const{schema:t,opts:r,gen:n}=e;is(e,()=>{r.$comment&&t.$comment&&fs(e),mo(e),n.let(A.default.vErrors,null),n.let(A.default.errors,0),r.unevaluated&&uo(e),ls(e),yo(e)})}function uo(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,R._)`${r}.evaluated`),t.if((0,R._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,R._)`${e.evaluated}.props`,(0,R._)`undefined`)),t.if((0,R._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,R._)`${e.evaluated}.items`,(0,R._)`undefined`))}function mn(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,R._)`/*# sourceURL=${r} */`:R.nil}function lo(e,t){if(us(e)&&(ds(e),cs(e))){fo(e,t);return}(0,os.boolOrEmptySchema)(e,t)}function cs({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function us(e){return typeof e.schema!="boolean"}function fo(e,t){const{schema:r,gen:n,opts:s}=e;s.$comment&&r.$comment&&fs(e),po(e),$o(e);const a=n.const("_errs",A.default.errors);ls(e,a),n.var(t,(0,R._)`${a} === ${A.default.errors}`)}function ds(e){(0,ue.checkUnknownRules)(e),ho(e)}function ls(e,t){if(e.opts.jtd)return pn(e,[],!1,t);const r=(0,hn.getSchemaTypes)(e.schema),n=(0,hn.coerceAndCheckDataType)(e,r);pn(e,r,!n,t)}function ho(e){const{schema:t,errSchemaPath:r,opts:n,self:s}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,ue.schemaHasRulesButRef)(t,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function mo(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,ue.checkStrictMode)(e,"default is ignored in the schema root")}function po(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,so.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function $o(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function fs({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:s}){const a=r.$comment;if(s.$comment===!0)e.code((0,R._)`${A.default.self}.logger.log(${a})`);else if(typeof s.$comment=="function"){const i=(0,R.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,R._)`${A.default.self}.opts.$comment(${a}, ${i}, ${c}.schema)`)}}function yo(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:s,opts:a}=e;r.$async?t.if((0,R._)`${A.default.errors} === 0`,()=>t.return(A.default.data),()=>t.throw((0,R._)`new ${s}(${A.default.vErrors})`)):(t.assign((0,R._)`${n}.errors`,A.default.vErrors),a.unevaluated&&_o(e),t.return((0,R._)`${A.default.errors} === 0`))}function _o({gen:e,evaluated:t,props:r,items:n}){r instanceof R.Name&&e.assign((0,R._)`${t}.props`,r),n instanceof R.Name&&e.assign((0,R._)`${t}.items`,n)}function pn(e,t,r,n){const{gen:s,schema:a,data:i,allErrors:c,opts:u,self:d}=e,{RULES:h}=d;if(a.$ref&&(u.ignoreKeywordsWithRef||!(0,ue.schemaHasRulesButRef)(a,h))){s.block(()=>ps(e,"$ref",h.all.$ref.definition));return}u.jtd||vo(e,t),s.block(()=>{for(const E of h.rules)m(E);m(h.post)});function m(E){(0,lr.shouldUseGroup)(a,E)&&(E.type?(s.if((0,$t.checkDataType)(E.type,i,u.strictNumbers)),$n(e,E),t.length===1&&t[0]===E.type&&r&&(s.else(),(0,$t.reportTypeError)(e)),s.endIf()):$n(e,E),c||s.if((0,R._)`${A.default.errors} === ${n||0}`))}}function $n(e,t){const{gen:r,schema:n,opts:{useDefaults:s}}=e;s&&(0,no.assignDefaults)(e,t.type),r.block(()=>{for(const a of t.rules)(0,lr.shouldUseRule)(n,a)&&ps(e,a.keyword,a.definition,t.type)})}function vo(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(go(e,t),e.opts.allowUnionTypes||bo(e,t),wo(e,e.dataTypes))}function go(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{hs(e.dataTypes,r)||fr(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),So(e,t)}}function bo(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&fr(e,"use allowUnionTypes to allow union type keyword")}function wo(e,t){const r=e.self.RULES.all;for(const n in r){const s=r[n];if(typeof s=="object"&&(0,lr.shouldUseRule)(e.schema,s)){const{type:a}=s.definition;a.length&&!a.some(i=>Eo(t,i))&&fr(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function Eo(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function hs(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function So(e,t){const r=[];for(const n of e.dataTypes)hs(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function fr(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,ue.checkStrictMode)(e,t,e.opts.strictTypes)}class ms{constructor(t,r,n){if((0,Qe.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ue.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",$s(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Qe.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",A.default.errors))}result(t,r,n){this.failResult((0,R.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,R.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,R._)`${r} !== undefined && (${(0,R.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Ge.reportExtraError:Ge.reportError)(this,this.def.error,r)}$dataError(){(0,Ge.reportError)(this,this.def.$dataError||Ge.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ge.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=R.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=R.nil,r=R.nil){if(!this.$data)return;const{gen:n,schemaCode:s,schemaType:a,def:i}=this;n.if((0,R.or)((0,R._)`${s} === undefined`,r)),t!==R.nil&&n.assign(t,!0),(a.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==R.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:s,it:a}=this;return(0,R.or)(i(),c());function i(){if(n.length){if(!(r instanceof R.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,R._)`${(0,$t.checkDataTypes)(u,r,a.opts.strictNumbers,$t.DataType.Wrong)}`}return R.nil}function c(){if(s.validateSchema){const u=t.scopeValue("validate$data",{ref:s.validateSchema});return(0,R._)`!${u}(${r})`}return R.nil}}subschema(t,r){const n=(0,Ht.getSubschema)(this.it,t);(0,Ht.extendSubschemaData)(n,this.it,t),(0,Ht.extendSubschemaMode)(n,t);const s={...this.it,...n,items:void 0,props:void 0};return lo(s,r),s}mergeEvaluated(t,r){const{it:n,gen:s}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=ue.mergeEvaluated.props(s,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=ue.mergeEvaluated.items(s,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(r,()=>this.mergeEvaluated(t,R.Name)),!0}}ne.KeywordCxt=ms;function ps(e,t,r,n){const s=new ms(e,r,t);"code"in r?r.code(s,n):s.$data&&r.validate?(0,Qe.funcKeywordCode)(s,r):"macro"in r?(0,Qe.macroKeywordCode)(s,r):(r.compile||r.validate)&&(0,Qe.funcKeywordCode)(s,r)}const Po=/^\/(?:[^~]|~0|~1)*$/,jo=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $s(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let s,a;if(e==="")return A.default.rootData;if(e[0]==="/"){if(!Po.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e,a=A.default.rootData}else{const d=jo.exec(e);if(!d)throw new Error(`Invalid JSON-pointer: ${e}`);const h=+d[1];if(s=d[2],s==="#"){if(h>=t)throw new Error(u("property/index",h));return n[t-h]}if(h>t)throw new Error(u("data",h));if(a=r[t-h],!s)return a}let i=a;const c=s.split("/");for(const d of c)d&&(a=(0,R._)`${a}${(0,R.getProperty)((0,ue.unescapeJsonPointer)(d))}`,i=(0,R._)`${i} && ${a}`);return i;function u(d,h){return`Cannot access ${d} ${h} levels up, current level is ${t}`}}ne.getData=$s;var rt={};Object.defineProperty(rt,"__esModule",{value:!0});class No extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}rt.default=No;var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});const Gt=B;class ko extends Error{constructor(t,r,n,s){super(s||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Gt.resolveUrl)(t,r,n),this.missingSchema=(0,Gt.normalizeId)((0,Gt.getFullPath)(t,this.missingRef))}}Ve.default=ko;var X={};Object.defineProperty(X,"__esModule",{value:!0});X.resolveSchema=X.getCompilingSchema=X.resolveRef=X.compileSchema=X.SchemaEnv=void 0;const ee=C,Oo=rt,ve=Y,re=B,yn=N,Ro=ne;class wt{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,re.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}X.SchemaEnv=wt;function hr(e){const t=ys.call(this,e);if(t)return t;const r=(0,re.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:a}=this.opts,i=new ee.CodeGen(this.scope,{es5:n,lines:s,ownProperties:a});let c;e.$async&&(c=i.scopeValue("Error",{ref:Oo.default,code:(0,ee._)`require("ajv/dist/runtime/validation_error").default`}));const u=i.scopeName("validate");e.validateName=u;const d={gen:i,allErrors:this.opts.allErrors,data:ve.default.data,parentData:ve.default.parentData,parentDataProperty:ve.default.parentDataProperty,dataNames:[ve.default.data],dataPathArr:[ee.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ee.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ee.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ee._)`""`,opts:this.opts,self:this};let h;try{this._compilations.add(e),(0,Ro.validateFunctionCode)(d),i.optimize(this.opts.code.optimize);const m=i.toString();h=`${i.scopeRefs(ve.default.scope)}return ${m}`,this.opts.code.process&&(h=this.opts.code.process(h,e));const w=new Function(`${ve.default.self}`,`${ve.default.scope}`,h)(this,this.scope.get());if(this.scope.value(u,{ref:w}),w.errors=null,w.schema=e.schema,w.schemaEnv=e,e.$async&&(w.$async=!0),this.opts.code.source===!0&&(w.source={validateName:u,validateCode:m,scopeValues:i._values}),this.opts.unevaluated){const{props:v,items:b}=d;w.evaluated={props:v instanceof ee.Name?void 0:v,items:b instanceof ee.Name?void 0:b,dynamicProps:v instanceof ee.Name,dynamicItems:b instanceof ee.Name},w.source&&(w.source.evaluated=(0,ee.stringify)(w.evaluated))}return e.validate=w,e}catch(m){throw delete e.validate,delete e.validateName,h&&this.logger.error("Error compiling schema, function code:",h),m}finally{this._compilations.delete(e)}}X.compileSchema=hr;function Io(e,t,r){var n;r=(0,re.resolveUrl)(this.opts.uriResolver,t,r);const s=e.refs[r];if(s)return s;let a=Co.call(this,e,r);if(a===void 0){const i=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;i&&(a=new wt({schema:i,schemaId:c,root:e,baseId:t}))}if(a!==void 0)return e.refs[r]=To.call(this,a)}X.resolveRef=Io;function To(e){return(0,re.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:hr.call(this,e)}function ys(e){for(const t of this._compilations)if(Ao(t,e))return t}X.getCompilingSchema=ys;function Ao(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Co(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Et.call(this,e,t)}function Et(e,t){const r=this.opts.uriResolver.parse(t),n=(0,re._getFullPath)(this.opts.uriResolver,r);let s=(0,re.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===s)return Jt.call(this,r,e);const a=(0,re.normalizeId)(n),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const c=Et.call(this,e,i);return typeof(c==null?void 0:c.schema)!="object"?void 0:Jt.call(this,r,c)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||hr.call(this,i),a===(0,re.normalizeId)(t)){const{schema:c}=i,{schemaId:u}=this.opts,d=c[u];return d&&(s=(0,re.resolveUrl)(this.opts.uriResolver,s,d)),new wt({schema:c,schemaId:u,root:e,baseId:s})}return Jt.call(this,r,i)}}X.resolveSchema=Et;const Mo=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Jt(e,{baseId:t,schema:r,root:n}){var s;if(((s=e.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,yn.unescapeFragment)(c)];if(u===void 0)return;r=u;const d=typeof r=="object"&&r[this.opts.schemaId];!Mo.has(c)&&d&&(t=(0,re.resolveUrl)(this.opts.uriResolver,t,d))}let a;if(typeof r!="boolean"&&r.$ref&&!(0,yn.schemaHasRulesButRef)(r,this.RULES)){const c=(0,re.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=Et.call(this,n,c)}const{schemaId:i}=this.opts;if(a=a||new wt({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema)return a}const Do="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Vo="Meta-schema for $data reference (JSON AnySchema extension proposal)",zo="object",qo=["$data"],Uo={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Fo=!1,Ko={$id:Do,description:Vo,type:zo,required:qo,properties:Uo,additionalProperties:Fo};var mr={},St={exports:{}};const Lo=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),_s=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),pr=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),vs=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),Ho=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function gs(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}const Go=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function _n(e){return e.length=0,!0}function Jo(e,t,r){if(e.length){const n=gs(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function Bo(e){let t=0;const r={error:!1,address:"",zone:""},n=[],s=[];let a=!1,i=!1,c=Jo;for(let u=0;u<e.length;u++){const d=e[u];if(!(d==="["||d==="]"))if(d===":"){if(a===!0&&(i=!0),!c(s,n,r))break;if(++t>7){r.error=!0;break}u>0&&e[u-1]===":"&&(a=!0),n.push(":");continue}else if(d==="%"){if(!c(s,n,r))break;c=_n}else{s.push(d);continue}}return s.length&&(c===_n?r.zone=s.join(""):i?n.push(s.join("")):n.push(gs(s))),r.address=n.join(""),r}function bs(e){if(Wo(e,":")<2)return{host:e,isIPV6:!1};const t=Bo(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function Wo(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function Qo(e){let t=e;const r=[];let n=-1,s=0;for(;s=t.length;){if(s===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(s===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(s===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}const Xo={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},Zo=/[@/?#:]/g,Yo=/[@/?#]/g;function ws(e,t){const r=t?Yo:Zo;return r.lastIndex=0,e.replace(r,n=>Xo[n])}function xo(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){const s=e.slice(n+1,n+3);if(pr(s)){const a=s.toUpperCase(),i=String.fromCharCode(parseInt(a,16));t&&vs(i)?r+=i:r+="%"+a,n+=2;continue}}r+=e[n]}return r}function ei(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){const n=e.slice(r+1,r+3);if(pr(n)){const s=n.toUpperCase(),a=String.fromCharCode(parseInt(s,16));a!=="."&&vs(a)?t+=a:t+="%"+s,r+=2;continue}}Ho(e[r])?t+=e[r]:t+=escape(e[r])}return t}function ti(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){const n=e.slice(r+1,r+3);if(pr(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function ri(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!_s(r)){const n=bs(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=ws(r,!1)}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}var Es={nonSimpleDomain:Go,recomposeAuthority:ri,reescapeHostDelimiters:ws,normalizePercentEncoding:xo,normalizePathEncoding:ei,escapePreservingEscapes:ti,removeDotSegments:Qo,isIPv4:_s,isUUID:Lo,normalizeIPv6:bs};const{isUUID:ni}=Es,si=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Ss(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Ps(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function js(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function ai(e){return e.secure=Ss(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function oi(e){if((e.port===(Ss(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function ii(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(si);if(r){const n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const s=`${n}:${t.nid||e.nid}`,a=$r(s);e.path=void 0,a&&(e=a.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function ci(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),s=`${r}:${t.nid||n}`,a=$r(s);a&&(e=a.serialize(e,t));const i=e,c=e.nss;return i.path=`${n||t.nid}:${c}`,t.skipEscape=!0,i}function ui(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!ni(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function di(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const Ns={scheme:"http",domainHost:!0,parse:Ps,serialize:js},li={scheme:"https",domainHost:Ns.domainHost,parse:Ps,serialize:js},ft={scheme:"ws",domainHost:!0,parse:ai,serialize:oi},fi={scheme:"wss",domainHost:ft.domainHost,parse:ft.parse,serialize:ft.serialize},hi={scheme:"urn",parse:ii,serialize:ci,skipNormalize:!0},mi={scheme:"urn:uuid",parse:ui,serialize:di,skipNormalize:!0},yt={http:Ns,https:li,ws:ft,wss:fi,urn:hi,"urn:uuid":mi};Object.setPrototypeOf(yt,null);function $r(e){return e&&(yt[e]||yt[e.toLowerCase()])||void 0}var pi={SCHEMES:yt,getSchemeHandler:$r};const{normalizeIPv6:$i,removeDotSegments:Be,recomposeAuthority:yi,normalizePercentEncoding:_i,normalizePathEncoding:vi,escapePreservingEscapes:gi,reescapeHostDelimiters:bi,isIPv4:wi,nonSimpleDomain:Ei}=Es,{SCHEMES:Si,getSchemeHandler:ks}=pi;function Pi(e,t){return typeof e=="string"?e=Ri(e,t):typeof e=="object"&&(e=Me(Pe(e,t),t)),e}function ji(e,t,r){const n=r?Object.assign({scheme:"null"},r):{scheme:"null"},s=Os(Me(e,n),Me(t,n),n,!0);return n.skipEscape=!0,Pe(s,n)}function Os(e,t,r,n){const s={};return n||(e=Me(Pe(e,r),r),t=Me(Pe(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(s.scheme=t.scheme,s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=Be(t.path||""),s.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=Be(t.path||""),s.query=t.query):(t.path?(t.path[0]==="/"?s.path=Be(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?s.path="/"+t.path:e.path?s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:s.path=t.path,s.path=Be(s.path)),s.query=t.query):(s.path=e.path,t.query!==void 0?s.query=t.query:s.query=e.query),s.userinfo=e.userinfo,s.host=e.host,s.port=e.port),s.scheme=e.scheme),s.fragment=t.fragment,s}function Ni(e,t,r){const n=vn(e,r),s=vn(t,r);return n!==void 0&&s!==void 0&&n.toLowerCase()===s.toLowerCase()}function Pe(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),s=[],a=ks(n.scheme||r.scheme);a&&a.serialize&&a.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=_i(r.path):(r.path=gi(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&s.push(r.scheme,":");const i=yi(r);if(i!==void 0&&(n.reference!=="suffix"&&s.push("//"),s.push(i),r.path&&r.path[0]!=="/"&&s.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!a||!a.absolutePath)&&(c=Be(c)),i===void 0&&c[0]==="/"&&c[1]==="/"&&(c="/%2F"+c.slice(2)),s.push(c)}return r.query!==void 0&&s.push("?",r.query),r.fragment!==void 0&&s.push("#",r.fragment),s.join("")}const ki=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Oi(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function Rs(e,t){const r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let s=!1,a=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);const i=e.match(ki);if(i){n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5]);const c=Oi(n,i);if(c!==void 0&&(n.error=n.error||c,s=!0),n.host)if(wi(n.host)===!1){const h=$i(n.host);n.host=h.host.toLowerCase(),a=h.isIPV6}else a=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");const u=ks(r.scheme||n.scheme);if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&a===!1&&Ei(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(d){n.error=n.error||"Host's domain name can not be converted to ASCII: "+d}if((!u||u&&!u.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=bi(unescape(n.host),a))),n.path&&(n.path=vi(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:s}}function Me(e,t){return Rs(e,t).parsed}function Ri(e,t){return Is(e,t).normalized}function Is(e,t){const{parsed:r,malformedAuthorityOrPort:n}=Rs(e,t);return{normalized:n?e:Pe(r,t),malformedAuthorityOrPort:n}}function vn(e,t){if(typeof e=="string"){const{normalized:r,malformedAuthorityOrPort:n}=Is(e,t);return n?void 0:r}if(typeof e=="object")return Pe(e,t)}const yr={SCHEMES:Si,normalize:Pi,resolve:ji,resolveComponent:Os,equal:Ni,serialize:Pe,parse:Me};St.exports=yr;St.exports.default=yr;St.exports.fastUri=yr;var Ii=St.exports;Object.defineProperty(mr,"__esModule",{value:!0});const Ts=Ii;Ts.code='require("ajv/dist/runtime/uri").default';mr.default=Ts;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=ne;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=C;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=rt,s=Ve,a=Se,i=X,c=C,u=B,d=H,h=N,m=Ko,E=mr,w=(j,p)=>new RegExp(j,p);w.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),$={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."},f={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function P(j){var p,S,y,o,l,g,I,T,z,V,G,Ne,Rt,It,Tt,At,Ct,Mt,Dt,Vt,zt,qt,Ut,Ft,Kt;const He=j.strict,Lt=(p=j.code)===null||p===void 0?void 0:p.optimize,on=Lt===!0||Lt===void 0?1:Lt||0,cn=(y=(S=j.code)===null||S===void 0?void 0:S.regExp)!==null&&y!==void 0?y:w,Ks=(o=j.uriResolver)!==null&&o!==void 0?o:E.default;return{strictSchema:(g=(l=j.strictSchema)!==null&&l!==void 0?l:He)!==null&&g!==void 0?g:!0,strictNumbers:(T=(I=j.strictNumbers)!==null&&I!==void 0?I:He)!==null&&T!==void 0?T:!0,strictTypes:(V=(z=j.strictTypes)!==null&&z!==void 0?z:He)!==null&&V!==void 0?V:"log",strictTuples:(Ne=(G=j.strictTuples)!==null&&G!==void 0?G:He)!==null&&Ne!==void 0?Ne:"log",strictRequired:(It=(Rt=j.strictRequired)!==null&&Rt!==void 0?Rt:He)!==null&&It!==void 0?It:!1,code:j.code?{...j.code,optimize:on,regExp:cn}:{optimize:on,regExp:cn},loopRequired:(Tt=j.loopRequired)!==null&&Tt!==void 0?Tt:_,loopEnum:(At=j.loopEnum)!==null&&At!==void 0?At:_,meta:(Ct=j.meta)!==null&&Ct!==void 0?Ct:!0,messages:(Mt=j.messages)!==null&&Mt!==void 0?Mt:!0,inlineRefs:(Dt=j.inlineRefs)!==null&&Dt!==void 0?Dt:!0,schemaId:(Vt=j.schemaId)!==null&&Vt!==void 0?Vt:"$id",addUsedSchema:(zt=j.addUsedSchema)!==null&&zt!==void 0?zt:!0,validateSchema:(qt=j.validateSchema)!==null&&qt!==void 0?qt:!0,validateFormats:(Ut=j.validateFormats)!==null&&Ut!==void 0?Ut:!0,unicodeRegExp:(Ft=j.unicodeRegExp)!==null&&Ft!==void 0?Ft:!0,int32range:(Kt=j.int32range)!==null&&Kt!==void 0?Kt:!0,uriResolver:Ks}}class k{constructor(p={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,p=this.opts={...p,...P(p)};const{es5:S,lines:y}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:b,es5:S,lines:y}),this.logger=ie(p.logger);const o=p.validateFormats;p.validateFormats=!1,this.RULES=(0,a.getRules)(),O.call(this,$,p,"NOT SUPPORTED"),O.call(this,f,p,"DEPRECATED","warn"),this._metaOpts=_e.call(this),p.formats&&oe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),p.keywords&&le.call(this,p.keywords),typeof p.meta=="object"&&this.addMetaSchema(p.meta),L.call(this),p.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:p,meta:S,schemaId:y}=this.opts;let o=m;y==="id"&&(o={...m},o.id=o.$id,delete o.$id),S&&p&&this.addMetaSchema(o,o[y],!1)}defaultMeta(){const{meta:p,schemaId:S}=this.opts;return this.opts.defaultMeta=typeof p=="object"?p[S]||p:void 0}validate(p,S){let y;if(typeof p=="string"){if(y=this.getSchema(p),!y)throw new Error(`no schema with key or ref "${p}"`)}else y=this.compile(p);const o=y(S);return"$async"in y||(this.errors=y.errors),o}compile(p,S){const y=this._addSchema(p,S);return y.validate||this._compileSchemaEnv(y)}compileAsync(p,S){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:y}=this.opts;return o.call(this,p,S);async function o(V,G){await l.call(this,V.$schema);const Ne=this._addSchema(V,G);return Ne.validate||g.call(this,Ne)}async function l(V){V&&!this.getSchema(V)&&await o.call(this,{$ref:V},!0)}async function g(V){try{return this._compileSchemaEnv(V)}catch(G){if(!(G instanceof s.default))throw G;return I.call(this,G),await T.call(this,G.missingSchema),g.call(this,V)}}function I({missingSchema:V,missingRef:G}){if(this.refs[V])throw new Error(`AnySchema ${V} is loaded but ${G} cannot be resolved`)}async function T(V){const G=await z.call(this,V);this.refs[V]||await l.call(this,G.$schema),this.refs[V]||this.addSchema(G,V,S)}async function z(V){const G=this._loading[V];if(G)return G;try{return await(this._loading[V]=y(V))}finally{delete this._loading[V]}}}addSchema(p,S,y,o=this.opts.validateSchema){if(Array.isArray(p)){for(const g of p)this.addSchema(g,void 0,y,o);return this}let l;if(typeof p=="object"){const{schemaId:g}=this.opts;if(l=p[g],l!==void 0&&typeof l!="string")throw new Error(`schema ${g} must be string`)}return S=(0,u.normalizeId)(S||l),this._checkUnique(S),this.schemas[S]=this._addSchema(p,y,S,o,!0),this}addMetaSchema(p,S,y=this.opts.validateSchema){return this.addSchema(p,S,!0,y),this}validateSchema(p,S){if(typeof p=="boolean")return!0;let y;if(y=p.$schema,y!==void 0&&typeof y!="string")throw new Error("$schema must be a string");if(y=y||this.opts.defaultMeta||this.defaultMeta(),!y)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const o=this.validate(y,p);if(!o&&S){const l="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(l);else throw new Error(l)}return o}getSchema(p){let S;for(;typeof(S=U.call(this,p))=="string";)p=S;if(S===void 0){const{schemaId:y}=this.opts,o=new i.SchemaEnv({schema:{},schemaId:y});if(S=i.resolveSchema.call(this,o,p),!S)return;this.refs[p]=S}return S.validate||this._compileSchemaEnv(S)}removeSchema(p){if(p instanceof RegExp)return this._removeAllSchemas(this.schemas,p),this._removeAllSchemas(this.refs,p),this;switch(typeof p){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const S=U.call(this,p);return typeof S=="object"&&this._cache.delete(S.schema),delete this.schemas[p],delete this.refs[p],this}case"object":{const S=p;this._cache.delete(S);let y=p[this.opts.schemaId];return y&&(y=(0,u.normalizeId)(y),delete this.schemas[y],delete this.refs[y]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(p){for(const S of p)this.addKeyword(S);return this}addKeyword(p,S){let y;if(typeof p=="string")y=p,typeof S=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),S.keyword=y);else if(typeof p=="object"&&S===void 0){if(S=p,y=S.keyword,Array.isArray(y)&&!y.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(fe.call(this,y,S),!S)return(0,h.eachItem)(y,l=>Le.call(this,l)),this;kt.call(this,S);const o={...S,type:(0,d.getJSONTypes)(S.type),schemaType:(0,d.getJSONTypes)(S.schemaType)};return(0,h.eachItem)(y,o.type.length===0?l=>Le.call(this,l,o):l=>o.type.forEach(g=>Le.call(this,l,o,g))),this}getKeyword(p){const S=this.RULES.all[p];return typeof S=="object"?S.definition:!!S}removeKeyword(p){const{RULES:S}=this;delete S.keywords[p],delete S.all[p];for(const y of S.rules){const o=y.rules.findIndex(l=>l.keyword===p);o>=0&&y.rules.splice(o,1)}return this}addFormat(p,S){return typeof S=="string"&&(S=new RegExp(S)),this.formats[p]=S,this}errorsText(p=this.errors,{separator:S=", ",dataVar:y="data"}={}){return!p||p.length===0?"No errors":p.map(o=>`${y}${o.instancePath} ${o.message}`).reduce((o,l)=>o+S+l)}$dataMetaSchema(p,S){const y=this.RULES.all;p=JSON.parse(JSON.stringify(p));for(const o of S){const l=o.split("/").slice(1);let g=p;for(const I of l)g=g[I];for(const I in y){const T=y[I];if(typeof T!="object")continue;const{$data:z}=T.definition,V=g[I];z&&V&&(g[I]=at(V))}}return p}_removeAllSchemas(p,S){for(const y in p){const o=p[y];(!S||S.test(y))&&(typeof o=="string"?delete p[y]:o&&!o.meta&&(this._cache.delete(o.schema),delete p[y]))}}_addSchema(p,S,y,o=this.opts.validateSchema,l=this.opts.addUsedSchema){let g;const{schemaId:I}=this.opts;if(typeof p=="object")g=p[I];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof p!="boolean")throw new Error("schema must be object or boolean")}let T=this._cache.get(p);if(T!==void 0)return T;y=(0,u.normalizeId)(g||y);const z=u.getSchemaRefs.call(this,p,y);return T=new i.SchemaEnv({schema:p,schemaId:I,meta:S,baseId:y,localRefs:z}),this._cache.set(T.schema,T),l&&!y.startsWith("#")&&(y&&this._checkUnique(y),this.refs[y]=T),o&&this.validateSchema(p,!0),T}_checkUnique(p){if(this.schemas[p]||this.refs[p])throw new Error(`schema with key or id "${p}" already exists`)}_compileSchemaEnv(p){if(p.meta?this._compileMetaSchema(p):i.compileSchema.call(this,p),!p.validate)throw new Error("ajv implementation error");return p.validate}_compileMetaSchema(p){const S=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,p)}finally{this.opts=S}}}k.ValidationError=n.default,k.MissingRefError=s.default,e.default=k;function O(j,p,S,y="error"){for(const o in j){const l=o;l in p&&this.logger[y](`${S}: option ${o}. ${j[l]}`)}}function U(j){return j=(0,u.normalizeId)(j),this.schemas[j]||this.refs[j]}function L(){const j=this.opts.schemas;if(j)if(Array.isArray(j))this.addSchema(j);else for(const p in j)this.addSchema(j[p],p)}function oe(){for(const j in this.opts.formats){const p=this.opts.formats[j];p&&this.addFormat(j,p)}}function le(j){if(Array.isArray(j)){this.addVocabulary(j);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const p in j){const S=j[p];S.keyword||(S.keyword=p),this.addKeyword(S)}}function _e(){const j={...this.opts};for(const p of v)delete j[p];return j}const Ke={log(){},warn(){},error(){}};function ie(j){if(j===!1)return Ke;if(j===void 0)return console;if(j.log&&j.warn&&j.error)return j;throw new Error("logger must implement log, warn and error methods")}const je=/^[a-z_$][a-z0-9_$:-]*$/i;function fe(j,p){const{RULES:S}=this;if((0,h.eachItem)(j,y=>{if(S.keywords[y])throw new Error(`Keyword ${y} is already defined`);if(!je.test(y))throw new Error(`Keyword ${y} has invalid name`)}),!!p&&p.$data&&!("code"in p||"validate"in p))throw new Error('$data keyword must have "code" or "validate" function')}function Le(j,p,S){var y;const o=p==null?void 0:p.post;if(S&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:l}=this;let g=o?l.post:l.rules.find(({type:T})=>T===S);if(g||(g={type:S,rules:[]},l.rules.push(g)),l.keywords[j]=!0,!p)return;const I={keyword:j,definition:{...p,type:(0,d.getJSONTypes)(p.type),schemaType:(0,d.getJSONTypes)(p.schemaType)}};p.before?st.call(this,g,I,p.before):g.rules.push(I),l.all[j]=I,(y=p.implements)===null||y===void 0||y.forEach(T=>this.addKeyword(T))}function st(j,p,S){const y=j.rules.findIndex(o=>o.keyword===S);y>=0?j.rules.splice(y,0,p):(j.rules.push(p),this.logger.warn(`rule ${S} is not defined`))}function kt(j){let{metaSchema:p}=j;p!==void 0&&(j.$data&&this.opts.$data&&(p=at(p)),j.validateSchema=this.compile(p,!0))}const Ot={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(j){return{anyOf:[j,Ot]}}})(qn);var _r={},vr={},gr={};Object.defineProperty(gr,"__esModule",{value:!0});const Ti={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};gr.default=Ti;var de={};Object.defineProperty(de,"__esModule",{value:!0});de.callRef=de.getValidate=void 0;const Ai=Ve,gn=D,Z=C,Oe=Y,bn=X,ot=N,Ci={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:s,schemaEnv:a,validateName:i,opts:c,self:u}=n,{root:d}=a;if((r==="#"||r==="#/")&&s===d.baseId)return m();const h=bn.resolveRef.call(u,d,s,r);if(h===void 0)throw new Ai.default(n.opts.uriResolver,s,r);if(h instanceof bn.SchemaEnv)return E(h);return w(h);function m(){if(a===d)return ht(e,i,a,a.$async);const v=t.scopeValue("root",{ref:d});return ht(e,(0,Z._)`${v}.validate`,d,d.$async)}function E(v){const b=As(e,v);ht(e,b,v,v.$async)}function w(v){const b=t.scopeValue("schema",c.code.source===!0?{ref:v,code:(0,Z.stringify)(v)}:{ref:v}),$=t.name("valid"),f=e.subschema({schema:v,dataTypes:[],schemaPath:Z.nil,topSchemaRef:b,errSchemaPath:r},$);e.mergeEvaluated(f),e.ok($)}}};function As(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Z._)`${r.scopeValue("wrapper",{ref:t})}.validate`}de.getValidate=As;function ht(e,t,r,n){const{gen:s,it:a}=e,{allErrors:i,schemaEnv:c,opts:u}=a,d=u.passContext?Oe.default.this:Z.nil;n?h():m();function h(){if(!c.$async)throw new Error("async schema referenced by sync schema");const v=s.let("valid");s.try(()=>{s.code((0,Z._)`await ${(0,gn.callValidateCode)(e,t,d)}`),w(t),i||s.assign(v,!0)},b=>{s.if((0,Z._)`!(${b} instanceof ${a.ValidationError})`,()=>s.throw(b)),E(b),i||s.assign(v,!1)}),e.ok(v)}function m(){e.result((0,gn.callValidateCode)(e,t,d),()=>w(t),()=>E(t))}function E(v){const b=(0,Z._)`${v}.errors`;s.assign(Oe.default.vErrors,(0,Z._)`${Oe.default.vErrors} === null ? ${b} : ${Oe.default.vErrors}.concat(${b})`),s.assign(Oe.default.errors,(0,Z._)`${Oe.default.vErrors}.length`)}function w(v){var b;if(!a.opts.unevaluated)return;const $=(b=r==null?void 0:r.validate)===null||b===void 0?void 0:b.evaluated;if(a.props!==!0)if($&&!$.dynamicProps)$.props!==void 0&&(a.props=ot.mergeEvaluated.props(s,$.props,a.props));else{const f=s.var("props",(0,Z._)`${v}.evaluated.props`);a.props=ot.mergeEvaluated.props(s,f,a.props,Z.Name)}if(a.items!==!0)if($&&!$.dynamicItems)$.items!==void 0&&(a.items=ot.mergeEvaluated.items(s,$.items,a.items));else{const f=s.var("items",(0,Z._)`${v}.evaluated.items`);a.items=ot.mergeEvaluated.items(s,f,a.items,Z.Name)}}}de.callRef=ht;de.default=Ci;Object.defineProperty(vr,"__esModule",{value:!0});const Mi=gr,Di=de,Vi=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Mi.default,Di.default];vr.default=Vi;var br={},wr={};Object.defineProperty(wr,"__esModule",{value:!0});const _t=C,me=_t.operators,vt={maximum:{okStr:"<=",ok:me.LTE,fail:me.GT},minimum:{okStr:">=",ok:me.GTE,fail:me.LT},exclusiveMaximum:{okStr:"<",ok:me.LT,fail:me.GTE},exclusiveMinimum:{okStr:">",ok:me.GT,fail:me.LTE}},zi={message:({keyword:e,schemaCode:t})=>(0,_t.str)`must be ${vt[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,_t._)`{comparison: ${vt[e].okStr}, limit: ${t}}`},qi={keyword:Object.keys(vt),type:"number",schemaType:"number",$data:!0,error:zi,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,_t._)`${r} ${vt[t].fail} ${n} || isNaN(${r})`)}};wr.default=qi;var Er={};Object.defineProperty(Er,"__esModule",{value:!0});const Xe=C,Ui={message:({schemaCode:e})=>(0,Xe.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Xe._)`{multipleOf: ${e}}`},Fi={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Ui,code(e){const{gen:t,data:r,schemaCode:n,it:s}=e,a=s.opts.multipleOfPrecision,i=t.let("res"),c=a?(0,Xe._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Xe._)`${i} !== parseInt(${i})`;e.fail$data((0,Xe._)`(${n} === 0 || (${i} = ${r}/${n}, ${c}))`)}};Er.default=Fi;var Sr={},Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});function Cs(e){const t=e.length;let r=0,n=0,s;for(;n<t;)r++,s=e.charCodeAt(n++),s>=55296&&s<=56319&&n<t&&(s=e.charCodeAt(n),(s&64512)===56320&&n++);return r}Pr.default=Cs;Cs.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Sr,"__esModule",{value:!0});const be=C,Ki=N,Li=Pr,Hi={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,be.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,be._)`{limit: ${e}}`},Gi={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Hi,code(e){const{keyword:t,data:r,schemaCode:n,it:s}=e,a=t==="maxLength"?be.operators.GT:be.operators.LT,i=s.opts.unicode===!1?(0,be._)`${r}.length`:(0,be._)`${(0,Ki.useFunc)(e.gen,Li.default)}(${r})`;e.fail$data((0,be._)`${i} ${a} ${n}`)}};Sr.default=Gi;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});const Ji=D,Bi=N,Ie=C,Wi={message:({schemaCode:e})=>(0,Ie.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ie._)`{pattern: ${e}}`},Qi={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Wi,code(e){const{gen:t,data:r,$data:n,schema:s,schemaCode:a,it:i}=e,c=i.opts.unicodeRegExp?"u":"";if(n){const{regExp:u}=i.opts.code,d=u.code==="new RegExp"?(0,Ie._)`new RegExp`:(0,Bi.useFunc)(t,u),h=t.let("valid");t.try(()=>t.assign(h,(0,Ie._)`${d}(${a}, ${c}).test(${r})`),()=>t.assign(h,!1)),e.fail$data((0,Ie._)`!${h}`)}else{const u=(0,Ji.usePattern)(e,s);e.fail$data((0,Ie._)`!${u}.test(${r})`)}}};jr.default=Qi;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});const Ze=C,Xi={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Ze.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ze._)`{limit: ${e}}`},Zi={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Xi,code(e){const{keyword:t,data:r,schemaCode:n}=e,s=t==="maxProperties"?Ze.operators.GT:Ze.operators.LT;e.fail$data((0,Ze._)`Object.keys(${r}).length ${s} ${n}`)}};Nr.default=Zi;var kr={};Object.defineProperty(kr,"__esModule",{value:!0});const Je=D,Ye=C,Yi=N,xi={message:({params:{missingProperty:e}})=>(0,Ye.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ye._)`{missingProperty: ${e}}`},ec={keyword:"required",type:"object",schemaType:"array",$data:!0,error:xi,code(e){const{gen:t,schema:r,schemaCode:n,data:s,$data:a,it:i}=e,{opts:c}=i;if(!a&&r.length===0)return;const u=r.length>=c.loopRequired;if(i.allErrors?d():h(),c.strictRequired){const w=e.parentSchema.properties,{definedProperties:v}=e.it;for(const b of r)if((w==null?void 0:w[b])===void 0&&!v.has(b)){const $=i.schemaEnv.baseId+i.errSchemaPath,f=`required property "${b}" is not defined at "${$}" (strictRequired)`;(0,Yi.checkStrictMode)(i,f,i.opts.strictRequired)}}function d(){if(u||a)e.block$data(Ye.nil,m);else for(const w of r)(0,Je.checkReportMissingProp)(e,w)}function h(){const w=t.let("missing");if(u||a){const v=t.let("valid",!0);e.block$data(v,()=>E(w,v)),e.ok(v)}else t.if((0,Je.checkMissingProp)(e,r,w)),(0,Je.reportMissingProp)(e,w),t.else()}function m(){t.forOf("prop",n,w=>{e.setParams({missingProperty:w}),t.if((0,Je.noPropertyInData)(t,s,w,c.ownProperties),()=>e.error())})}function E(w,v){e.setParams({missingProperty:w}),t.forOf(w,n,()=>{t.assign(v,(0,Je.propertyInData)(t,s,w,c.ownProperties)),t.if((0,Ye.not)(v),()=>{e.error(),t.break()})},Ye.nil)}}};kr.default=ec;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});const xe=C,tc={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,xe.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,xe._)`{limit: ${e}}`},rc={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tc,code(e){const{keyword:t,data:r,schemaCode:n}=e,s=t==="maxItems"?xe.operators.GT:xe.operators.LT;e.fail$data((0,xe._)`${r}.length ${s} ${n}`)}};Or.default=rc;var Rr={},nt={};Object.defineProperty(nt,"__esModule",{value:!0});const Ms=ts;Ms.code='require("ajv/dist/runtime/equal").default';nt.default=Ms;Object.defineProperty(Rr,"__esModule",{value:!0});const Bt=H,J=C,nc=N,sc=nt,ac={message:({params:{i:e,j:t}})=>(0,J.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,J._)`{i: ${e}, j: ${t}}`},oc={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ac,code(e){const{gen:t,data:r,$data:n,schema:s,parentSchema:a,schemaCode:i,it:c}=e;if(!n&&!s)return;const u=t.let("valid"),d=a.items?(0,Bt.getSchemaTypes)(a.items):[];e.block$data(u,h,(0,J._)`${i} === false`),e.ok(u);function h(){const v=t.let("i",(0,J._)`${r}.length`),b=t.let("j");e.setParams({i:v,j:b}),t.assign(u,!0),t.if((0,J._)`${v} > 1`,()=>(m()?E:w)(v,b))}function m(){return d.length>0&&!d.some(v=>v==="object"||v==="array")}function E(v,b){const $=t.name("item"),f=(0,Bt.checkDataTypes)(d,$,c.opts.strictNumbers,Bt.DataType.Wrong),_=t.const("indices",(0,J._)`{}`);t.for((0,J._)`;${v}--;`,()=>{t.let($,(0,J._)`${r}[${v}]`),t.if(f,(0,J._)`continue`),d.length>1&&t.if((0,J._)`typeof ${$} == "string"`,(0,J._)`${$} += "_"`),t.if((0,J._)`typeof ${_}[${$}] == "number"`,()=>{t.assign(b,(0,J._)`${_}[${$}]`),e.error(),t.assign(u,!1).break()}).code((0,J._)`${_}[${$}] = ${v}`)})}function w(v,b){const $=(0,nc.useFunc)(t,sc.default),f=t.name("outer");t.label(f).for((0,J._)`;${v}--;`,()=>t.for((0,J._)`${b} = ${v}; ${b}--;`,()=>t.if((0,J._)`${$}(${r}[${v}], ${r}[${b}])`,()=>{e.error(),t.assign(u,!1).break(f)})))}}};Rr.default=oc;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const tr=C,ic=N,cc=nt,uc={message:"must be equal to constant",params:({schemaCode:e})=>(0,tr._)`{allowedValue: ${e}}`},dc={keyword:"const",$data:!0,error:uc,code(e){const{gen:t,data:r,$data:n,schemaCode:s,schema:a}=e;n||a&&typeof a=="object"?e.fail$data((0,tr._)`!${(0,ic.useFunc)(t,cc.default)}(${r}, ${s})`):e.fail((0,tr._)`${a} !== ${r}`)}};Ir.default=dc;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const We=C,lc=N,fc=nt,hc={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,We._)`{allowedValues: ${e}}`},mc={keyword:"enum",schemaType:"array",$data:!0,error:hc,code(e){const{gen:t,data:r,$data:n,schema:s,schemaCode:a,it:i}=e;if(!n&&s.length===0)throw new Error("enum must have non-empty array");const c=s.length>=i.opts.loopEnum;let u;const d=()=>u??(u=(0,lc.useFunc)(t,fc.default));let h;if(c||n)h=t.let("valid"),e.block$data(h,m);else{if(!Array.isArray(s))throw new Error("ajv implementation error");const w=t.const("vSchema",a);h=(0,We.or)(...s.map((v,b)=>E(w,b)))}e.pass(h);function m(){t.assign(h,!1),t.forOf("v",a,w=>t.if((0,We._)`${d()}(${r}, ${w})`,()=>t.assign(h,!0).break()))}function E(w,v){const b=s[v];return typeof b=="object"&&b!==null?(0,We._)`${d()}(${r}, ${w}[${v}])`:(0,We._)`${r} === ${b}`}}};Tr.default=mc;Object.defineProperty(br,"__esModule",{value:!0});const pc=wr,$c=Er,yc=Sr,_c=jr,vc=Nr,gc=kr,bc=Or,wc=Rr,Ec=Ir,Sc=Tr,Pc=[pc.default,$c.default,yc.default,_c.default,vc.default,gc.default,bc.default,wc.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ec.default,Sc.default];br.default=Pc;var Ar={},ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.validateAdditionalItems=void 0;const we=C,rr=N,jc={message:({params:{len:e}})=>(0,we.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,we._)`{limit: ${e}}`},Nc={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:jc,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,rr.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ds(e,n)}};function Ds(e,t){const{gen:r,schema:n,data:s,keyword:a,it:i}=e;i.items=!0;const c=r.const("len",(0,we._)`${s}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,we._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,rr.alwaysValidSchema)(i,n)){const d=r.var("valid",(0,we._)`${c} <= ${t.length}`);r.if((0,we.not)(d),()=>u(d)),e.ok(d)}function u(d){r.forRange("i",t.length,c,h=>{e.subschema({keyword:a,dataProp:h,dataPropType:rr.Type.Num},d),i.allErrors||r.if((0,we.not)(d),()=>r.break())})}}ze.validateAdditionalItems=Ds;ze.default=Nc;var Cr={},qe={};Object.defineProperty(qe,"__esModule",{value:!0});qe.validateTuple=void 0;const wn=C,mt=N,kc=D,Oc={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return Vs(e,"additionalItems",t);r.items=!0,!(0,mt.alwaysValidSchema)(r,t)&&e.ok((0,kc.validateArray)(e))}};function Vs(e,t,r=e.schema){const{gen:n,parentSchema:s,data:a,keyword:i,it:c}=e;h(s),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=mt.mergeEvaluated.items(n,r.length,c.items));const u=n.name("valid"),d=n.const("len",(0,wn._)`${a}.length`);r.forEach((m,E)=>{(0,mt.alwaysValidSchema)(c,m)||(n.if((0,wn._)`${d} > ${E}`,()=>e.subschema({keyword:i,schemaProp:E,dataProp:E},u)),e.ok(u))});function h(m){const{opts:E,errSchemaPath:w}=c,v=r.length,b=v===m.minItems&&(v===m.maxItems||m[t]===!1);if(E.strictTuples&&!b){const $=`"${i}" is ${v}-tuple, but minItems or maxItems/${t} are not specified or different at path "${w}"`;(0,mt.checkStrictMode)(c,$,E.strictTuples)}}}qe.validateTuple=Vs;qe.default=Oc;Object.defineProperty(Cr,"__esModule",{value:!0});const Rc=qe,Ic={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Rc.validateTuple)(e,"items")};Cr.default=Ic;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});const En=C,Tc=N,Ac=D,Cc=ze,Mc={message:({params:{len:e}})=>(0,En.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,En._)`{limit: ${e}}`},Dc={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Mc,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:s}=r;n.items=!0,!(0,Tc.alwaysValidSchema)(n,t)&&(s?(0,Cc.validateAdditionalItems)(e,s):e.ok((0,Ac.validateArray)(e)))}};Mr.default=Dc;var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});const x=C,it=N,Vc={message:({params:{min:e,max:t}})=>t===void 0?(0,x.str)`must contain at least ${e} valid item(s)`:(0,x.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,x._)`{minContains: ${e}}`:(0,x._)`{minContains: ${e}, maxContains: ${t}}`},zc={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Vc,code(e){const{gen:t,schema:r,parentSchema:n,data:s,it:a}=e;let i,c;const{minContains:u,maxContains:d}=n;a.opts.next?(i=u===void 0?1:u,c=d):i=1;const h=t.const("len",(0,x._)`${s}.length`);if(e.setParams({min:i,max:c}),c===void 0&&i===0){(0,it.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&i>c){(0,it.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,it.alwaysValidSchema)(a,r)){let b=(0,x._)`${h} >= ${i}`;c!==void 0&&(b=(0,x._)`${b} && ${h} <= ${c}`),e.pass(b);return}a.items=!0;const m=t.name("valid");c===void 0&&i===1?w(m,()=>t.if(m,()=>t.break())):i===0?(t.let(m,!0),c!==void 0&&t.if((0,x._)`${s}.length > 0`,E)):(t.let(m,!1),E()),e.result(m,()=>e.reset());function E(){const b=t.name("_valid"),$=t.let("count",0);w(b,()=>t.if(b,()=>v($)))}function w(b,$){t.forRange("i",0,h,f=>{e.subschema({keyword:"contains",dataProp:f,dataPropType:it.Type.Num,compositeRule:!0},b),$()})}function v(b){t.code((0,x._)`${b}++`),c===void 0?t.if((0,x._)`${b} >= ${i}`,()=>t.assign(m,!0).break()):(t.if((0,x._)`${b} > ${c}`,()=>t.assign(m,!1).break()),i===1?t.assign(m,!0):t.if((0,x._)`${b} >= ${i}`,()=>t.assign(m,!0)))}}};Dr.default=zc;var Pt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=C,r=N,n=D;e.error={message:({params:{property:u,depsCount:d,deps:h}})=>{const m=d===1?"property":"properties";return(0,t.str)`must have ${m} ${h} when property ${u} is present`},params:({params:{property:u,depsCount:d,deps:h,missingProperty:m}})=>(0,t._)`{property: ${u},
6
+ missingProperty: ${m},
7
+ depsCount: ${d},
8
+ deps: ${h}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[d,h]=a(u);i(u,d),c(u,h)}};function a({schema:u}){const d={},h={};for(const m in u){if(m==="__proto__")continue;const E=Array.isArray(u[m])?d:h;E[m]=u[m]}return[d,h]}function i(u,d=u.schema){const{gen:h,data:m,it:E}=u;if(Object.keys(d).length===0)return;const w=h.let("missing");for(const v in d){const b=d[v];if(b.length===0)continue;const $=(0,n.propertyInData)(h,m,v,E.opts.ownProperties);u.setParams({property:v,depsCount:b.length,deps:b.join(", ")}),E.allErrors?h.if($,()=>{for(const f of b)(0,n.checkReportMissingProp)(u,f)}):(h.if((0,t._)`${$} && (${(0,n.checkMissingProp)(u,b,w)})`),(0,n.reportMissingProp)(u,w),h.else())}}e.validatePropertyDeps=i;function c(u,d=u.schema){const{gen:h,data:m,keyword:E,it:w}=u,v=h.name("valid");for(const b in d)(0,r.alwaysValidSchema)(w,d[b])||(h.if((0,n.propertyInData)(h,m,b,w.opts.ownProperties),()=>{const $=u.subschema({keyword:E,schemaProp:b},v);u.mergeValidEvaluated($,v)},()=>h.var(v,!0)),u.ok(v))}e.validateSchemaDeps=c,e.default=s})(Pt);var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});const zs=C,qc=N,Uc={message:"property name must be valid",params:({params:e})=>(0,zs._)`{propertyName: ${e.propertyName}}`},Fc={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Uc,code(e){const{gen:t,schema:r,data:n,it:s}=e;if((0,qc.alwaysValidSchema)(s,r))return;const a=t.name("valid");t.forIn("key",n,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,zs.not)(a),()=>{e.error(!0),s.allErrors||t.break()})}),e.ok(a)}};Vr.default=Fc;var jt={};Object.defineProperty(jt,"__esModule",{value:!0});const ct=D,te=C,Kc=Y,ut=N,Lc={message:"must NOT have additional properties",params:({params:e})=>(0,te._)`{additionalProperty: ${e.additionalProperty}}`},Hc={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Lc,code(e){const{gen:t,schema:r,parentSchema:n,data:s,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:c,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,ut.alwaysValidSchema)(i,r))return;const d=(0,ct.allSchemaProperties)(n.properties),h=(0,ct.allSchemaProperties)(n.patternProperties);m(),e.ok((0,te._)`${a} === ${Kc.default.errors}`);function m(){t.forIn("key",s,$=>{!d.length&&!h.length?v($):t.if(E($),()=>v($))})}function E($){let f;if(d.length>8){const _=(0,ut.schemaRefOrVal)(i,n.properties,"properties");f=(0,ct.isOwnProperty)(t,_,$)}else d.length?f=(0,te.or)(...d.map(_=>(0,te._)`${$} === ${_}`)):f=te.nil;return h.length&&(f=(0,te.or)(f,...h.map(_=>(0,te._)`${(0,ct.usePattern)(e,_)}.test(${$})`))),(0,te.not)(f)}function w($){t.code((0,te._)`delete ${s}[${$}]`)}function v($){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){w($);return}if(r===!1){e.setParams({additionalProperty:$}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,ut.alwaysValidSchema)(i,r)){const f=t.name("valid");u.removeAdditional==="failing"?(b($,f,!1),t.if((0,te.not)(f),()=>{e.reset(),w($)})):(b($,f),c||t.if((0,te.not)(f),()=>t.break()))}}function b($,f,_){const P={keyword:"additionalProperties",dataProp:$,dataPropType:ut.Type.Str};_===!1&&Object.assign(P,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(P,f)}}};jt.default=Hc;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});const Gc=ne,Sn=D,Wt=N,Pn=jt,Jc={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:s,it:a}=e;a.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Pn.default.code(new Gc.KeywordCxt(a,Pn.default,"additionalProperties"));const i=(0,Sn.allSchemaProperties)(r);for(const m of i)a.definedProperties.add(m);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Wt.mergeEvaluated.props(t,(0,Wt.toHash)(i),a.props));const c=i.filter(m=>!(0,Wt.alwaysValidSchema)(a,r[m]));if(c.length===0)return;const u=t.name("valid");for(const m of c)d(m)?h(m):(t.if((0,Sn.propertyInData)(t,s,m,a.opts.ownProperties)),h(m),a.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(m),e.ok(u);function d(m){return a.opts.useDefaults&&!a.compositeRule&&r[m].default!==void 0}function h(m){e.subschema({keyword:"properties",schemaProp:m,dataProp:m},u)}}};zr.default=Jc;var qr={};Object.defineProperty(qr,"__esModule",{value:!0});const jn=D,dt=C,Nn=N,kn=N,Bc={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:s,it:a}=e,{opts:i}=a,c=(0,jn.allSchemaProperties)(r),u=c.filter(b=>(0,Nn.alwaysValidSchema)(a,r[b]));if(c.length===0||u.length===c.length&&(!a.opts.unevaluated||a.props===!0))return;const d=i.strictSchema&&!i.allowMatchingProperties&&s.properties,h=t.name("valid");a.props!==!0&&!(a.props instanceof dt.Name)&&(a.props=(0,kn.evaluatedPropsToName)(t,a.props));const{props:m}=a;E();function E(){for(const b of c)d&&w(b),a.allErrors?v(b):(t.var(h,!0),v(b),t.if(h))}function w(b){for(const $ in d)new RegExp(b).test($)&&(0,Nn.checkStrictMode)(a,`property ${$} matches pattern ${b} (use allowMatchingProperties)`)}function v(b){t.forIn("key",n,$=>{t.if((0,dt._)`${(0,jn.usePattern)(e,b)}.test(${$})`,()=>{const f=u.includes(b);f||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:$,dataPropType:kn.Type.Str},h),a.opts.unevaluated&&m!==!0?t.assign((0,dt._)`${m}[${$}]`,!0):!f&&!a.allErrors&&t.if((0,dt.not)(h),()=>t.break())})})}}};qr.default=Bc;var Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});const Wc=N,Qc={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,Wc.alwaysValidSchema)(n,r)){e.fail();return}const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Ur.default=Qc;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});const Xc=D,Zc={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Xc.validateUnion,error:{message:"must match a schema in anyOf"}};Fr.default=Zc;var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});const pt=C,Yc=N,xc={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,pt._)`{passingSchemas: ${e.passing}}`},eu={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:xc,code(e){const{gen:t,schema:r,parentSchema:n,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(d),e.result(i,()=>e.reset(),()=>e.error(!0));function d(){a.forEach((h,m)=>{let E;(0,Yc.alwaysValidSchema)(s,h)?t.var(u,!0):E=e.subschema({keyword:"oneOf",schemaProp:m,compositeRule:!0},u),m>0&&t.if((0,pt._)`${u} && ${i}`).assign(i,!1).assign(c,(0,pt._)`[${c}, ${m}]`).else(),t.if(u,()=>{t.assign(i,!0),t.assign(c,m),E&&e.mergeEvaluated(E,pt.Name)})})}}};Kr.default=eu;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});const tu=N,ru={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=t.name("valid");r.forEach((a,i)=>{if((0,tu.alwaysValidSchema)(n,a))return;const c=e.subschema({keyword:"allOf",schemaProp:i},s);e.ok(s),e.mergeEvaluated(c)})}};Lr.default=ru;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});const gt=C,qs=N,nu={message:({params:e})=>(0,gt.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,gt._)`{failingKeyword: ${e.ifClause}}`},su={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:nu,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,qs.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const s=On(n,"then"),a=On(n,"else");if(!s&&!a)return;const i=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),s&&a){const h=t.let("ifClause");e.setParams({ifClause:h}),t.if(c,d("then",h),d("else",h))}else s?t.if(c,d("then")):t.if((0,gt.not)(c),d("else"));e.pass(i,()=>e.error(!0));function u(){const h=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(h)}function d(h,m){return()=>{const E=e.subschema({keyword:h},c);t.assign(i,c),e.mergeValidEvaluated(E,i),m?t.assign(m,(0,gt._)`${h}`):e.setParams({ifClause:h})}}}};function On(e,t){const r=e.schema[t];return r!==void 0&&!(0,qs.alwaysValidSchema)(e,r)}Hr.default=su;var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});const au=N,ou={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,au.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Gr.default=ou;Object.defineProperty(Ar,"__esModule",{value:!0});const iu=ze,cu=Cr,uu=qe,du=Mr,lu=Dr,fu=Pt,hu=Vr,mu=jt,pu=zr,$u=qr,yu=Ur,_u=Fr,vu=Kr,gu=Lr,bu=Hr,wu=Gr;function Eu(e=!1){const t=[yu.default,_u.default,vu.default,gu.default,bu.default,wu.default,hu.default,mu.default,fu.default,pu.default,$u.default];return e?t.push(cu.default,du.default):t.push(iu.default,uu.default),t.push(lu.default),t}Ar.default=Eu;var Jr={},Ue={};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.dynamicAnchor=void 0;const Qt=C,Su=Y,Rn=X,Pu=de,ju={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Us(e,e.schema)};function Us(e,t){const{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;const s=(0,Qt._)`${Su.default.dynamicAnchors}${(0,Qt.getProperty)(t)}`,a=n.errSchemaPath==="#"?n.validateName:Nu(e);r.if((0,Qt._)`!${s}`,()=>r.assign(s,a))}Ue.dynamicAnchor=Us;function Nu(e){const{schemaEnv:t,schema:r,self:n}=e.it,{root:s,baseId:a,localRefs:i,meta:c}=t.root,{schemaId:u}=n.opts,d=new Rn.SchemaEnv({schema:r,schemaId:u,root:s,baseId:a,localRefs:i,meta:c});return Rn.compileSchema.call(n,d),(0,Pu.getValidate)(e,d)}Ue.default=ju;var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.dynamicRef=void 0;const In=C,ku=Y,Tn=de,Ou={keyword:"$dynamicRef",schemaType:"string",code:e=>Fs(e,e.schema)};function Fs(e,t){const{gen:r,keyword:n,it:s}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);const a=t.slice(1);if(s.allErrors)i();else{const u=r.let("valid",!1);i(u),e.ok(u)}function i(u){if(s.schemaEnv.root.dynamicAnchors[a]){const d=r.let("_v",(0,In._)`${ku.default.dynamicAnchors}${(0,In.getProperty)(a)}`);r.if(d,c(d,u),c(s.validateName,u))}else c(s.validateName,u)()}function c(u,d){return d?()=>r.block(()=>{(0,Tn.callRef)(e,u),r.let(d,!0)}):()=>(0,Tn.callRef)(e,u)}}Fe.dynamicRef=Fs;Fe.default=Ou;var Br={};Object.defineProperty(Br,"__esModule",{value:!0});const Ru=Ue,Iu=N,Tu={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,Ru.dynamicAnchor)(e,""):(0,Iu.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Br.default=Tu;var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0});const Au=Fe,Cu={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,Au.dynamicRef)(e,e.schema)};Wr.default=Cu;Object.defineProperty(Jr,"__esModule",{value:!0});const Mu=Ue,Du=Fe,Vu=Br,zu=Wr,qu=[Mu.default,Du.default,Vu.default,zu.default];Jr.default=qu;var Qr={},Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});const An=Pt,Uu={keyword:"dependentRequired",type:"object",schemaType:"object",error:An.error,code:e=>(0,An.validatePropertyDeps)(e)};Xr.default=Uu;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});const Fu=Pt,Ku={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,Fu.validateSchemaDeps)(e)};Zr.default=Ku;var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});const Lu=N,Hu={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Lu.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Yr.default=Hu;Object.defineProperty(Qr,"__esModule",{value:!0});const Gu=Xr,Ju=Zr,Bu=Yr,Wu=[Gu.default,Ju.default,Bu.default];Qr.default=Wu;var xr={},en={};Object.defineProperty(en,"__esModule",{value:!0});const pe=C,Cn=N,Qu=Y,Xu={message:"must NOT have unevaluated properties",params:({params:e})=>(0,pe._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},Zu={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Xu,code(e){const{gen:t,schema:r,data:n,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:i,props:c}=a;c instanceof pe.Name?t.if((0,pe._)`${c} !== true`,()=>t.forIn("key",n,m=>t.if(d(c,m),()=>u(m)))):c!==!0&&t.forIn("key",n,m=>c===void 0?u(m):t.if(h(c,m),()=>u(m))),a.props=!0,e.ok((0,pe._)`${s} === ${Qu.default.errors}`);function u(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),i||t.break();return}if(!(0,Cn.alwaysValidSchema)(a,r)){const E=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:Cn.Type.Str},E),i||t.if((0,pe.not)(E),()=>t.break())}}function d(m,E){return(0,pe._)`!${m} || !${m}[${E}]`}function h(m,E){const w=[];for(const v in m)m[v]===!0&&w.push((0,pe._)`${E} !== ${v}`);return(0,pe.and)(...w)}}};en.default=Zu;var tn={};Object.defineProperty(tn,"__esModule",{value:!0});const Ee=C,Mn=N,Yu={message:({params:{len:e}})=>(0,Ee.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ee._)`{limit: ${e}}`},xu={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Yu,code(e){const{gen:t,schema:r,data:n,it:s}=e,a=s.items||0;if(a===!0)return;const i=t.const("len",(0,Ee._)`${n}.length`);if(r===!1)e.setParams({len:a}),e.fail((0,Ee._)`${i} > ${a}`);else if(typeof r=="object"&&!(0,Mn.alwaysValidSchema)(s,r)){const u=t.var("valid",(0,Ee._)`${i} <= ${a}`);t.if((0,Ee.not)(u),()=>c(u,a)),e.ok(u)}s.items=!0;function c(u,d){t.forRange("i",d,i,h=>{e.subschema({keyword:"unevaluatedItems",dataProp:h,dataPropType:Mn.Type.Num},u),s.allErrors||t.if((0,Ee.not)(u),()=>t.break())})}}};tn.default=xu;Object.defineProperty(xr,"__esModule",{value:!0});const ed=en,td=tn,rd=[ed.default,td.default];xr.default=rd;var rn={},nn={};Object.defineProperty(nn,"__esModule",{value:!0});const K=C,nd={message:({schemaCode:e})=>(0,K.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,K._)`{format: ${e}}`},sd={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:nd,code(e,t){const{gen:r,data:n,$data:s,schema:a,schemaCode:i,it:c}=e,{opts:u,errSchemaPath:d,schemaEnv:h,self:m}=c;if(!u.validateFormats)return;s?E():w();function E(){const v=r.scopeValue("formats",{ref:m.formats,code:u.code.formats}),b=r.const("fDef",(0,K._)`${v}[${i}]`),$=r.let("fType"),f=r.let("format");r.if((0,K._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign($,(0,K._)`${b}.type || "string"`).assign(f,(0,K._)`${b}.validate`),()=>r.assign($,(0,K._)`"string"`).assign(f,b)),e.fail$data((0,K.or)(_(),P()));function _(){return u.strictSchema===!1?K.nil:(0,K._)`${i} && !${f}`}function P(){const k=h.$async?(0,K._)`(${b}.async ? await ${f}(${n}) : ${f}(${n}))`:(0,K._)`${f}(${n})`,O=(0,K._)`(typeof ${f} == "function" ? ${k} : ${f}.test(${n}))`;return(0,K._)`${f} && ${f} !== true && ${$} === ${t} && !${O}`}}function w(){const v=m.formats[a];if(!v){_();return}if(v===!0)return;const[b,$,f]=P(v);b===t&&e.pass(k());function _(){if(u.strictSchema===!1){m.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${a}" ignored in schema at path "${d}"`}}function P(O){const U=O instanceof RegExp?(0,K.regexpCode)(O):u.code.formats?(0,K._)`${u.code.formats}${(0,K.getProperty)(a)}`:void 0,L=r.scopeValue("formats",{key:a,ref:O,code:U});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,K._)`${L}.validate`]:["string",O,L]}function k(){if(typeof v=="object"&&!(v instanceof RegExp)&&v.async){if(!h.$async)throw new Error("async format in sync schema");return(0,K._)`await ${f}(${n})`}return typeof $=="function"?(0,K._)`${f}(${n})`:(0,K._)`${f}.test(${n})`}}}};nn.default=sd;Object.defineProperty(rn,"__esModule",{value:!0});const ad=nn,od=[ad.default];rn.default=od;var De={};Object.defineProperty(De,"__esModule",{value:!0});De.contentVocabulary=De.metadataVocabulary=void 0;De.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];De.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(_r,"__esModule",{value:!0});const id=vr,cd=br,ud=Ar,dd=Jr,ld=Qr,fd=xr,hd=rn,Dn=De,md=[dd.default,id.default,cd.default,(0,ud.default)(!0),hd.default,Dn.metadataVocabulary,Dn.contentVocabulary,ld.default,fd.default];_r.default=md;var sn={},Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.DiscrError=void 0;var Vn;(function(e){e.Tag="tag",e.Mapping="mapping"})(Vn||(Nt.DiscrError=Vn={}));Object.defineProperty(sn,"__esModule",{value:!0});const Re=C,nr=Nt,zn=X,pd=Ve,$d=N,yd={message:({params:{discrError:e,tagName:t}})=>e===nr.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Re._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},_d={keyword:"discriminator",type:"object",schemaType:"object",error:yd,code(e){const{gen:t,data:r,schema:n,parentSchema:s,it:a}=e,{oneOf:i}=s;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),d=t.const("tag",(0,Re._)`${r}${(0,Re.getProperty)(c)}`);t.if((0,Re._)`typeof ${d} == "string"`,()=>h(),()=>e.error(!1,{discrError:nr.DiscrError.Tag,tag:d,tagName:c})),e.ok(u);function h(){const w=E();t.if(!1);for(const v in w)t.elseIf((0,Re._)`${d} === ${v}`),t.assign(u,m(w[v]));t.else(),e.error(!1,{discrError:nr.DiscrError.Mapping,tag:d,tagName:c}),t.endIf()}function m(w){const v=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:w},v);return e.mergeEvaluated(b,Re.Name),v}function E(){var w;const v={},b=f(s);let $=!0;for(let k=0;k<i.length;k++){let O=i[k];if(O!=null&&O.$ref&&!(0,$d.schemaHasRulesButRef)(O,a.self.RULES)){const L=O.$ref;if(O=zn.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,L),O instanceof zn.SchemaEnv&&(O=O.schema),O===void 0)throw new pd.default(a.opts.uriResolver,a.baseId,L)}const U=(w=O==null?void 0:O.properties)===null||w===void 0?void 0:w[c];if(typeof U!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);$=$&&(b||f(O)),_(U,k)}if(!$)throw new Error(`discriminator: "${c}" must be required`);return v;function f({required:k}){return Array.isArray(k)&&k.includes(c)}function _(k,O){if(k.const)P(k.const,O);else if(k.enum)for(const U of k.enum)P(U,O);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function P(k,O){if(typeof k!="string"||k in v)throw new Error(`discriminator: "${c}" values must be unique strings`);v[k]=O}}}};sn.default=_d;var an={};const vd="https://json-schema.org/draft/2020-12/schema",gd="https://json-schema.org/draft/2020-12/schema",bd={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},wd="meta",Ed="Core and Validation specifications meta-schema",Sd=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],Pd=["object","boolean"],jd="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",Nd={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},kd={$schema:vd,$id:gd,$vocabulary:bd,$dynamicAnchor:wd,title:Ed,allOf:Sd,type:Pd,$comment:jd,properties:Nd},Od="https://json-schema.org/draft/2020-12/schema",Rd="https://json-schema.org/draft/2020-12/meta/applicator",Id={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Td="meta",Ad="Applicator vocabulary meta-schema",Cd=["object","boolean"],Md={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},Dd={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Vd={$schema:Od,$id:Rd,$vocabulary:Id,$dynamicAnchor:Td,title:Ad,type:Cd,properties:Md,$defs:Dd},zd="https://json-schema.org/draft/2020-12/schema",qd="https://json-schema.org/draft/2020-12/meta/unevaluated",Ud={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Fd="meta",Kd="Unevaluated applicator vocabulary meta-schema",Ld=["object","boolean"],Hd={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Gd={$schema:zd,$id:qd,$vocabulary:Ud,$dynamicAnchor:Fd,title:Kd,type:Ld,properties:Hd},Jd="https://json-schema.org/draft/2020-12/schema",Bd="https://json-schema.org/draft/2020-12/meta/content",Wd={"https://json-schema.org/draft/2020-12/vocab/content":!0},Qd="meta",Xd="Content vocabulary meta-schema",Zd=["object","boolean"],Yd={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},xd={$schema:Jd,$id:Bd,$vocabulary:Wd,$dynamicAnchor:Qd,title:Xd,type:Zd,properties:Yd},el="https://json-schema.org/draft/2020-12/schema",tl="https://json-schema.org/draft/2020-12/meta/core",rl={"https://json-schema.org/draft/2020-12/vocab/core":!0},nl="meta",sl="Core vocabulary meta-schema",al=["object","boolean"],ol={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},il={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},cl={$schema:el,$id:tl,$vocabulary:rl,$dynamicAnchor:nl,title:sl,type:al,properties:ol,$defs:il},ul="https://json-schema.org/draft/2020-12/schema",dl="https://json-schema.org/draft/2020-12/meta/format-annotation",ll={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},fl="meta",hl="Format vocabulary meta-schema for annotation results",ml=["object","boolean"],pl={format:{type:"string"}},$l={$schema:ul,$id:dl,$vocabulary:ll,$dynamicAnchor:fl,title:hl,type:ml,properties:pl},yl="https://json-schema.org/draft/2020-12/schema",_l="https://json-schema.org/draft/2020-12/meta/meta-data",vl={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},gl="meta",bl="Meta-data vocabulary meta-schema",wl=["object","boolean"],El={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},Sl={$schema:yl,$id:_l,$vocabulary:vl,$dynamicAnchor:gl,title:bl,type:wl,properties:El},Pl="https://json-schema.org/draft/2020-12/schema",jl="https://json-schema.org/draft/2020-12/meta/validation",Nl={"https://json-schema.org/draft/2020-12/vocab/validation":!0},kl="meta",Ol="Validation vocabulary meta-schema",Rl=["object","boolean"],Il={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},Tl={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Al={$schema:Pl,$id:jl,$vocabulary:Nl,$dynamicAnchor:kl,title:Ol,type:Rl,properties:Il,$defs:Tl};Object.defineProperty(an,"__esModule",{value:!0});const Cl=kd,Ml=Vd,Dl=Gd,Vl=xd,zl=cl,ql=$l,Ul=Sl,Fl=Al,Kl=["/properties"];function Ll(e){return[Cl,Ml,Dl,Vl,zl,t(this,ql),Ul,t(this,Fl)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Kl):n}}an.default=Ll;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=qn,n=_r,s=sn,a=an,i="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(w={}){super({...w,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(w=>this.addVocabulary(w)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:w,meta:v}=this.opts;v&&(a.default.call(this,w),this.refs["http://json-schema.org/schema"]=i)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=ne;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=C;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=rt;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var m=Ve;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(Xt,Xt.exports);var Hl=Xt.exports;exports._2020Exports=Hl;
9
+ //# sourceMappingURL=2020-BHvuyx7H.cjs.map