@techdocs/cli 1.8.17-next.1 → 1.8.17-next.2
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.
- package/CHANGELOG.md +11 -0
- package/dist/embedded-app/.config-schema.json +86 -11
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/124.a0a572f3.chunk.js +6 -0
- package/dist/embedded-app/static/124.a0a572f3.chunk.js.map +1 -0
- package/dist/embedded-app/static/{1297.f8916d08.chunk.js → 1297.b4799570.chunk.js} +3 -3
- package/dist/embedded-app/static/1297.b4799570.chunk.js.map +1 -0
- package/dist/embedded-app/static/1902.6f404f8c.chunk.js +10 -0
- package/dist/embedded-app/static/1902.6f404f8c.chunk.js.map +1 -0
- package/dist/embedded-app/static/2401.14631655.chunk.js +6 -0
- package/dist/embedded-app/static/2401.14631655.chunk.js.map +1 -0
- package/dist/embedded-app/static/2420.f9fbc916.chunk.js +6 -0
- package/dist/embedded-app/static/2420.f9fbc916.chunk.js.map +1 -0
- package/dist/embedded-app/static/287.961ccb08.chunk.js +6 -0
- package/dist/embedded-app/static/287.961ccb08.chunk.js.map +1 -0
- package/dist/embedded-app/static/3182.3cbe56e4.chunk.js +7 -0
- package/dist/embedded-app/static/3182.3cbe56e4.chunk.js.map +1 -0
- package/dist/embedded-app/static/3632.681a005c.chunk.js +6 -0
- package/dist/embedded-app/static/3632.681a005c.chunk.js.map +1 -0
- package/dist/embedded-app/static/3720.1978cecb.chunk.js +11 -0
- package/dist/embedded-app/static/3720.1978cecb.chunk.js.map +1 -0
- package/dist/embedded-app/static/4036.a029793d.chunk.js +3 -0
- package/dist/embedded-app/static/4036.a029793d.chunk.js.map +1 -0
- package/dist/embedded-app/static/4487.f9cc6633.chunk.js +3 -0
- package/dist/embedded-app/static/4487.f9cc6633.chunk.js.map +1 -0
- package/dist/embedded-app/static/4516.b1a92d53.chunk.js +3 -0
- package/dist/embedded-app/static/4516.b1a92d53.chunk.js.map +1 -0
- package/dist/embedded-app/static/4919.e2124196.chunk.js +3 -0
- package/dist/embedded-app/static/4919.e2124196.chunk.js.map +1 -0
- package/dist/embedded-app/static/5724.8c459ffd.chunk.js +4 -0
- package/dist/embedded-app/static/5724.8c459ffd.chunk.js.map +1 -0
- package/dist/embedded-app/static/6271.1952ce76.chunk.js +6 -0
- package/dist/embedded-app/static/6271.1952ce76.chunk.js.map +1 -0
- package/dist/embedded-app/static/6415.3f0e01a6.chunk.js +6 -0
- package/dist/embedded-app/static/6415.3f0e01a6.chunk.js.map +1 -0
- package/dist/embedded-app/static/8307.fd2c3bf0.chunk.js +9 -0
- package/dist/embedded-app/static/8307.fd2c3bf0.chunk.js.map +1 -0
- package/dist/embedded-app/static/8384.96619c53.chunk.js +6 -0
- package/dist/embedded-app/static/8384.96619c53.chunk.js.map +1 -0
- package/dist/embedded-app/static/898.815b96f0.chunk.js +4 -0
- package/dist/embedded-app/static/898.815b96f0.chunk.js.map +1 -0
- package/dist/embedded-app/static/{9234.ac5ee4d5.chunk.js → 9234.ad94610e.chunk.js} +2 -2
- package/dist/embedded-app/static/{9234.ac5ee4d5.chunk.js.map → 9234.ad94610e.chunk.js.map} +1 -1
- package/dist/embedded-app/static/9605.18e9db70.chunk.js +11 -0
- package/dist/embedded-app/static/9605.18e9db70.chunk.js.map +1 -0
- package/dist/embedded-app/static/9652.8daa9515.chunk.js +6 -0
- package/dist/embedded-app/static/9652.8daa9515.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.6518d659.js +509 -0
- package/dist/embedded-app/static/main.6518d659.js.map +1 -0
- package/dist/embedded-app/static/{module-material-table.60f080a9.js → module-material-table.695896b2.js} +2 -2
- package/dist/embedded-app/static/{module-material-table.60f080a9.js.map → module-material-table.695896b2.js.map} +1 -1
- package/dist/embedded-app/static/module-material-ui.3807a580.js +24 -0
- package/dist/embedded-app/static/module-material-ui.3807a580.js.map +1 -0
- package/dist/embedded-app/static/module-zod.9a0df421.js +3 -0
- package/dist/embedded-app/static/{module-zod.18508a39.js.map → module-zod.9a0df421.js.map} +1 -1
- package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4a81e0ae.chunk.js → react-syntax-highlighter_languages_highlight_lisp.e1c07c6d.chunk.js} +2 -2
- package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4a81e0ae.chunk.js.map → react-syntax-highlighter_languages_highlight_lisp.e1c07c6d.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{runtime.e9838633.js → runtime.6518d659.js} +2 -2
- package/dist/embedded-app/static/runtime.6518d659.js.map +1 -0
- package/dist/embedded-app/static/vendor.6518d659.js +155 -0
- package/dist/embedded-app/static/vendor.6518d659.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/124.5ba6885f.chunk.js +0 -6
- package/dist/embedded-app/static/124.5ba6885f.chunk.js.map +0 -1
- package/dist/embedded-app/static/1297.f8916d08.chunk.js.map +0 -1
- package/dist/embedded-app/static/2401.d309433f.chunk.js +0 -6
- package/dist/embedded-app/static/2401.d309433f.chunk.js.map +0 -1
- package/dist/embedded-app/static/2420.037cfc15.chunk.js +0 -6
- package/dist/embedded-app/static/2420.037cfc15.chunk.js.map +0 -1
- package/dist/embedded-app/static/2745.5b1c08b3.chunk.js +0 -6
- package/dist/embedded-app/static/2745.5b1c08b3.chunk.js.map +0 -1
- package/dist/embedded-app/static/2772.bdf6f4ac.chunk.js +0 -168
- package/dist/embedded-app/static/2772.bdf6f4ac.chunk.js.map +0 -1
- package/dist/embedded-app/static/287.0d76734a.chunk.js +0 -6
- package/dist/embedded-app/static/287.0d76734a.chunk.js.map +0 -1
- package/dist/embedded-app/static/3182.690c18de.chunk.js +0 -7
- package/dist/embedded-app/static/3182.690c18de.chunk.js.map +0 -1
- package/dist/embedded-app/static/3632.c54686af.chunk.js +0 -6
- package/dist/embedded-app/static/3632.c54686af.chunk.js.map +0 -1
- package/dist/embedded-app/static/4036.6d4f48ee.chunk.js +0 -3
- package/dist/embedded-app/static/4036.6d4f48ee.chunk.js.map +0 -1
- package/dist/embedded-app/static/4400.74f2ff55.chunk.js +0 -6
- package/dist/embedded-app/static/4400.74f2ff55.chunk.js.map +0 -1
- package/dist/embedded-app/static/4943.f9ffc89d.chunk.js +0 -4
- package/dist/embedded-app/static/4943.f9ffc89d.chunk.js.map +0 -1
- package/dist/embedded-app/static/5502.59e5e2d7.chunk.js +0 -3
- package/dist/embedded-app/static/5502.59e5e2d7.chunk.js.map +0 -1
- package/dist/embedded-app/static/5580.aad136c2.chunk.js +0 -4
- package/dist/embedded-app/static/5580.aad136c2.chunk.js.map +0 -1
- package/dist/embedded-app/static/6066.c5fcf8d3.chunk.js +0 -3
- package/dist/embedded-app/static/6066.c5fcf8d3.chunk.js.map +0 -1
- package/dist/embedded-app/static/6271.50d6fc37.chunk.js +0 -6
- package/dist/embedded-app/static/6271.50d6fc37.chunk.js.map +0 -1
- package/dist/embedded-app/static/6545.2f399250.chunk.js +0 -3
- package/dist/embedded-app/static/6545.2f399250.chunk.js.map +0 -1
- package/dist/embedded-app/static/7137.9e328e07.chunk.js +0 -3
- package/dist/embedded-app/static/7137.9e328e07.chunk.js.map +0 -1
- package/dist/embedded-app/static/8307.0cba06d7.chunk.js +0 -9
- package/dist/embedded-app/static/8307.0cba06d7.chunk.js.map +0 -1
- package/dist/embedded-app/static/8384.e32c3b89.chunk.js +0 -6
- package/dist/embedded-app/static/8384.e32c3b89.chunk.js.map +0 -1
- package/dist/embedded-app/static/8721.77fdaf76.chunk.js +0 -11
- package/dist/embedded-app/static/8721.77fdaf76.chunk.js.map +0 -1
- package/dist/embedded-app/static/9605.c3d05fe5.chunk.js +0 -11
- package/dist/embedded-app/static/9605.c3d05fe5.chunk.js.map +0 -1
- package/dist/embedded-app/static/9652.f79c63a2.chunk.js +0 -6
- package/dist/embedded-app/static/9652.f79c63a2.chunk.js.map +0 -1
- package/dist/embedded-app/static/9797.047c7087.chunk.js +0 -10
- package/dist/embedded-app/static/9797.047c7087.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.e9838633.js +0 -513
- package/dist/embedded-app/static/main.e9838633.js.map +0 -1
- package/dist/embedded-app/static/module-material-ui.b719b7fa.js +0 -24
- package/dist/embedded-app/static/module-material-ui.b719b7fa.js.map +0 -1
- package/dist/embedded-app/static/module-zod.18508a39.js +0 -3
- package/dist/embedded-app/static/runtime.e9838633.js.map +0 -1
- package/dist/embedded-app/static/vendor.e9838633.js +0 -155
- package/dist/embedded-app/static/vendor.e9838633.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1902],{74011:(J,e,n)=>{"use strict";var t,r=n(4293),v=n(78920);t={value:!0},e.A=void 0;var f=v(n(14041)),w=r(n(74044)),o=(0,w.default)(f.createElement("path",{d:"M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");e.A=o},23127:(J,e,n)=>{"use strict";var t,r=n(4293),v=n(78920);t={value:!0},e.A=void 0;var f=v(n(14041)),w=r(n(74044)),o=(0,w.default)(f.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");e.A=o},86613:(J,e,n)=>{"use strict";var t,r=n(4293),v=n(78920);t={value:!0},e.A=void 0;var f=v(n(14041)),w=r(n(74044)),o=(0,w.default)(f.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");e.A=o},11601:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=n(65319),r=n(2431),v=n(11672),f=n(33928),w=["/properties"],o="http://json-schema.org/draft-07/schema";class h extends t.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(O=>this.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(v.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(f,w):f;this.addMetaSchema(O,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}J.exports=e=h,Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var a=n(96223);Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return a.KeywordCxt}});var l=n(17898);Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var E=n(95031);Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return E.default}});var _=n(85748);Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return _.default}})},83277:(J,e)=>{"use strict";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 n{}e._CodeOrName=n,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends n{constructor(i){if(super(),!e.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=t;class r extends n{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((b,d)=>`${b}${d}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((b,d)=>(d instanceof t&&(b[d.str]=(b[d.str]||0)+1),b),{})}}e._Code=r,e.nil=new r("");function v(u,...i){const b=[u[0]];let d=0;for(;d<i.length;)o(b,i[d]),b.push(u[++d]);return new r(b)}e._=v;const f=new r("+");function w(u,...i){const b=[N(u[0])];let d=0;for(;d<i.length;)b.push(f),o(b,i[d]),b.push(f,N(u[++d]));return h(b),new r(b)}e.str=w;function o(u,i){i instanceof r?u.push(...i._items):i instanceof t?u.push(i):u.push(E(i))}e.addCodeArg=o;function h(u){let i=1;for(;i<u.length-1;){if(u[i]===f){const b=a(u[i-1],u[i+1]);if(b!==void 0){u.splice(i-1,3,b);continue}u[i++]="+"}i++}}function a(u,i){if(i==='""')return u;if(u==='""')return i;if(typeof u=="string")return i instanceof t||u[u.length-1]!=='"'?void 0:typeof i!="string"?`${u.slice(0,-1)}${i}"`:i[0]==='"'?u.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(u instanceof t))return`"${u}${i.slice(1)}`}function l(u,i){return i.emptyStr()?u:u.emptyStr()?i:w`${u}${i}`}e.strConcat=l;function E(u){return typeof u=="number"||typeof u=="boolean"||u===null?u:N(Array.isArray(u)?u.join(","):u)}function _(u){return new r(N(u))}e.stringify=_;function N(u){return JSON.stringify(u).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=N;function O(u){return typeof u=="string"&&e.IDENTIFIER.test(u)?new r(`.${u}`):v`[${u}]`}e.getProperty=O;function C(u){if(typeof u=="string"&&e.IDENTIFIER.test(u))return new r(`${u}`);throw new Error(`CodeGen: invalid export name: ${u}, use explicit $id name mapping`)}e.getEsmExportName=C;function A(u){return new r(u.toString())}e.regexpCode=A},17898:(J,e,n)=>{"use strict";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=n(83277),r=n(76930);var v=n(83277);Object.defineProperty(e,"_",{enumerable:!0,get:function(){return v._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return v.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return v.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return v.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return v.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return v.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return v.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return v.Name}});var f=n(76930);Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return f.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return f.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return f.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return f.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 w{optimizeNodes(){return this}optimizeNames(s,y){return this}}class o extends w{constructor(s,y,V){super(),this.varKind=s,this.name=y,this.rhs=V}render({es5:s,_n:y}){const V=s?r.varKinds.var:this.varKind,Q=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${Q};`+y}optimizeNames(s,y){if(s[this.name.str])return this.rhs&&(this.rhs=Z(this.rhs,s,y)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class h extends w{constructor(s,y,V){super(),this.lhs=s,this.rhs=y,this.sideEffects=V}render({_n:s}){return`${this.lhs} = ${this.rhs};`+s}optimizeNames(s,y){if(!(this.lhs instanceof t.Name&&!s[this.lhs.str]&&!this.sideEffects))return this.rhs=Z(this.rhs,s,y),this}get names(){const s=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ue(s,this.rhs)}}class a extends h{constructor(s,y,V,Q){super(s,V,Q),this.op=y}render({_n:s}){return`${this.lhs} ${this.op}= ${this.rhs};`+s}}class l extends w{constructor(s){super(),this.label=s,this.names={}}render({_n:s}){return`${this.label}:`+s}}class E extends w{constructor(s){super(),this.label=s,this.names={}}render({_n:s}){return`break${this.label?` ${this.label}`:""};`+s}}class _ extends w{constructor(s){super(),this.error=s}render({_n:s}){return`throw ${this.error};`+s}get names(){return this.error.names}}class N extends w{constructor(s){super(),this.code=s}render({_n:s}){return`${this.code};`+s}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(s,y){return this.code=Z(this.code,s,y),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class O extends w{constructor(s=[]){super(),this.nodes=s}render(s){return this.nodes.reduce((y,V)=>y+V.render(s),"")}optimizeNodes(){const{nodes:s}=this;let y=s.length;for(;y--;){const V=s[y].optimizeNodes();Array.isArray(V)?s.splice(y,1,...V):V?s[y]=V:s.splice(y,1)}return s.length>0?this:void 0}optimizeNames(s,y){const{nodes:V}=this;let Q=V.length;for(;Q--;){const X=V[Q];X.optimizeNames(s,y)||(se(s,X.names),V.splice(Q,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((s,y)=>B(s,y.names),{})}}class C extends O{render(s){return"{"+s._n+super.render(s)+"}"+s._n}}class A extends O{}class u extends C{}u.kind="else";class i extends C{constructor(s,y){super(y),this.condition=s}render(s){let y=`if(${this.condition})`+super.render(s);return this.else&&(y+="else "+this.else.render(s)),y}optimizeNodes(){super.optimizeNodes();const s=this.condition;if(s===!0)return this.nodes;let y=this.else;if(y){const V=y.optimizeNodes();y=this.else=Array.isArray(V)?new u(V):V}if(y)return s===!1?y instanceof i?y:y.nodes:this.nodes.length?this:new i(_e(s),y instanceof i?[y]:y.nodes);if(!(s===!1||!this.nodes.length))return this}optimizeNames(s,y){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(s,y),!!(super.optimizeNames(s,y)||this.else))return this.condition=Z(this.condition,s,y),this}get names(){const s=super.names;return ue(s,this.condition),this.else&&B(s,this.else.names),s}}i.kind="if";class b extends C{}b.kind="for";class d extends b{constructor(s){super(),this.iteration=s}render(s){return`for(${this.iteration})`+super.render(s)}optimizeNames(s,y){if(super.optimizeNames(s,y))return this.iteration=Z(this.iteration,s,y),this}get names(){return B(super.names,this.iteration.names)}}class g extends b{constructor(s,y,V,Q){super(),this.varKind=s,this.name=y,this.from=V,this.to=Q}render(s){const y=s.es5?r.varKinds.var:this.varKind,{name:V,from:Q,to:X}=this;return`for(${y} ${V}=${Q}; ${V}<${X}; ${V}++)`+super.render(s)}get names(){const s=ue(super.names,this.from);return ue(s,this.to)}}class R extends b{constructor(s,y,V,Q){super(),this.loop=s,this.varKind=y,this.name=V,this.iterable=Q}render(s){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(s)}optimizeNames(s,y){if(super.optimizeNames(s,y))return this.iterable=Z(this.iterable,s,y),this}get names(){return B(super.names,this.iterable.names)}}class p extends C{constructor(s,y,V){super(),this.name=s,this.args=y,this.async=V}render(s){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(s)}}p.kind="func";class m extends O{render(s){return"return "+super.render(s)}}m.kind="return";class P extends C{render(s){let y="try"+super.render(s);return this.catch&&(y+=this.catch.render(s)),this.finally&&(y+=this.finally.render(s)),y}optimizeNodes(){var s,y;return super.optimizeNodes(),(s=this.catch)===null||s===void 0||s.optimizeNodes(),(y=this.finally)===null||y===void 0||y.optimizeNodes(),this}optimizeNames(s,y){var V,Q;return super.optimizeNames(s,y),(V=this.catch)===null||V===void 0||V.optimizeNames(s,y),(Q=this.finally)===null||Q===void 0||Q.optimizeNames(s,y),this}get names(){const s=super.names;return this.catch&&B(s,this.catch.names),this.finally&&B(s,this.finally.names),s}}class F extends C{constructor(s){super(),this.error=s}render(s){return`catch(${this.error})`+super.render(s)}}F.kind="catch";class L extends C{render(s){return"finally"+super.render(s)}}L.kind="finally";class G{constructor(s,y={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...y,_n:y.lines?`
|
|
2
|
+
`:""},this._extScope=s,this._scope=new r.Scope({parent:s}),this._nodes=[new A]}toString(){return this._root.render(this.opts)}name(s){return this._scope.name(s)}scopeName(s){return this._extScope.name(s)}scopeValue(s,y){const V=this._extScope.value(s,y);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(s,y){return this._extScope.getValue(s,y)}scopeRefs(s){return this._extScope.scopeRefs(s,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(s,y,V,Q){const X=this._scope.toName(y);return V!==void 0&&Q&&(this._constants[X.str]=V),this._leafNode(new o(s,X,V)),X}const(s,y,V){return this._def(r.varKinds.const,s,y,V)}let(s,y,V){return this._def(r.varKinds.let,s,y,V)}var(s,y,V){return this._def(r.varKinds.var,s,y,V)}assign(s,y,V){return this._leafNode(new h(s,y,V))}add(s,y){return this._leafNode(new a(s,e.operators.ADD,y))}code(s){return typeof s=="function"?s():s!==t.nil&&this._leafNode(new N(s)),this}object(...s){const y=["{"];for(const[V,Q]of s)y.length>1&&y.push(","),y.push(V),(V!==Q||this.opts.es5)&&(y.push(":"),(0,t.addCodeArg)(y,Q));return y.push("}"),new t._Code(y)}if(s,y,V){if(this._blockNode(new i(s)),y&&V)this.code(y).else().code(V).endIf();else if(y)this.code(y).endIf();else if(V)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(s){return this._elseNode(new i(s))}else(){return this._elseNode(new u)}endIf(){return this._endBlockNode(i,u)}_for(s,y){return this._blockNode(s),y&&this.code(y).endFor(),this}for(s,y){return this._for(new d(s),y)}forRange(s,y,V,Q,X=this.opts.es5?r.varKinds.var:r.varKinds.let){const te=this._scope.toName(s);return this._for(new g(X,te,y,V),()=>Q(te))}forOf(s,y,V,Q=r.varKinds.const){const X=this._scope.toName(s);if(this.opts.es5){const te=y instanceof t.Name?y:this.var("_arr",y);return this.forRange("_i",0,(0,t._)`${te}.length`,ee=>{this.var(X,(0,t._)`${te}[${ee}]`),V(X)})}return this._for(new R("of",Q,X,y),()=>V(X))}forIn(s,y,V,Q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(s,(0,t._)`Object.keys(${y})`,V);const X=this._scope.toName(s);return this._for(new R("in",Q,X,y),()=>V(X))}endFor(){return this._endBlockNode(b)}label(s){return this._leafNode(new l(s))}break(s){return this._leafNode(new E(s))}return(s){const y=new m;if(this._blockNode(y),this.code(s),y.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(m)}try(s,y,V){if(!y&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const Q=new P;if(this._blockNode(Q),this.code(s),y){const X=this.name("e");this._currNode=Q.catch=new F(X),y(X)}return V&&(this._currNode=Q.finally=new L,this.code(V)),this._endBlockNode(F,L)}throw(s){return this._leafNode(new _(s))}block(s,y){return this._blockStarts.push(this._nodes.length),s&&this.code(s).endBlock(y),this}endBlock(s){const y=this._blockStarts.pop();if(y===void 0)throw new Error("CodeGen: not in self-balancing block");const V=this._nodes.length-y;if(V<0||s!==void 0&&V!==s)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${s} expected`);return this._nodes.length=y,this}func(s,y=t.nil,V,Q){return this._blockNode(new p(s,y,V)),Q&&this.code(Q).endFunc(),this}endFunc(){return this._endBlockNode(p)}optimize(s=1){for(;s-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(s){return this._currNode.nodes.push(s),this}_blockNode(s){this._currNode.nodes.push(s),this._nodes.push(s)}_endBlockNode(s,y){const V=this._currNode;if(V instanceof s||y&&V instanceof y)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${y?`${s.kind}/${y.kind}`:s.kind}"`)}_elseNode(s){const y=this._currNode;if(!(y instanceof i))throw new Error('CodeGen: "else" without "if"');return this._currNode=y.else=s,this}get _root(){return this._nodes[0]}get _currNode(){const s=this._nodes;return s[s.length-1]}set _currNode(s){const y=this._nodes;y[y.length-1]=s}}e.CodeGen=G;function B(D,s){for(const y in s)D[y]=(D[y]||0)+(s[y]||0);return D}function ue(D,s){return s instanceof t._CodeOrName?B(D,s.names):D}function Z(D,s,y){if(D instanceof t.Name)return V(D);if(!Q(D))return D;return new t._Code(D._items.reduce((X,te)=>(te instanceof t.Name&&(te=V(te)),te instanceof t._Code?X.push(...te._items):X.push(te),X),[]));function V(X){const te=y[X.str];return te===void 0||s[X.str]!==1?X:(delete s[X.str],te)}function Q(X){return X instanceof t._Code&&X._items.some(te=>te instanceof t.Name&&s[te.str]===1&&y[te.str]!==void 0)}}function se(D,s){for(const y in s)D[y]=(D[y]||0)-(s[y]||0)}function _e(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${z(D)}`}e.not=_e;const Te=T(e.operators.AND);function Oe(...D){return D.reduce(Te)}e.and=Oe;const oe=T(e.operators.OR);function H(...D){return D.reduce(oe)}e.or=H;function T(D){return(s,y)=>s===t.nil?y:y===t.nil?s:(0,t._)`${z(s)} ${D} ${z(y)}`}function z(D){return D instanceof t.Name?D:(0,t._)`(${D})`}},76930:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=n(83277);class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var v;(function(a){a[a.Started=0]="Started",a[a.Completed=1]="Completed"})(v=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class f{constructor({prefixes:l,parent:E}={}){this._names={},this._prefixes=l,this._parent=E}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const E=this._names[l]||this._nameGroup(l);return`${l}${E.index++}`}_nameGroup(l){var E,_;if(!((_=(E=this._parent)===null||E===void 0?void 0:E._prefixes)===null||_===void 0)&&_.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=f;class w extends t.Name{constructor(l,E){super(E),this.prefix=l}setValue(l,{property:E,itemIndex:_}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(E)}[${_}]`}}e.ValueScopeName=w;const o=(0,t._)`\n`;class h extends f{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?o:t.nil}}get(){return this._scope}name(l){return new w(l,this._newName(l))}value(l,E){var _;if(E.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const N=this.toName(l),{prefix:O}=N,C=(_=E.key)!==null&&_!==void 0?_:E.ref;let A=this._values[O];if(A){const b=A.get(C);if(b)return b}else A=this._values[O]=new Map;A.set(C,N);const u=this._scope[O]||(this._scope[O]=[]),i=u.length;return u[i]=E.ref,N.setValue(E,{property:O,itemIndex:i}),N}getValue(l,E){const _=this._values[l];if(_)return _.get(E)}scopeRefs(l,E=this._values){return this._reduceValues(E,_=>{if(_.scopePath===void 0)throw new Error(`CodeGen: name "${_}" has no value`);return(0,t._)`${l}${_.scopePath}`})}scopeCode(l=this._values,E,_){return this._reduceValues(l,N=>{if(N.value===void 0)throw new Error(`CodeGen: name "${N}" has no value`);return N.value.code},E,_)}_reduceValues(l,E,_={},N){let O=t.nil;for(const C in l){const A=l[C];if(!A)continue;const u=_[C]=_[C]||new Map;A.forEach(i=>{if(u.has(i))return;u.set(i,v.Started);let b=E(i);if(b){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;O=(0,t._)`${O}${d} ${i} = ${b};${this.opts._n}`}else if(b=N?.(i))O=(0,t._)`${O}${b}${this.opts._n}`;else throw new r(i);u.set(i,v.Completed)})}return O}}e.ValueScope=h},49409:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=n(17898),r=n(50458),v=n(63036);e.keywordError={message:({keyword:u})=>(0,t.str)`must pass "${u}" keyword validation`},e.keyword$DataError={message:({keyword:u,schemaType:i})=>i?(0,t.str)`"${u}" keyword must be ${i} ($data)`:(0,t.str)`"${u}" keyword is invalid ($data)`};function f(u,i=e.keywordError,b,d){const{it:g}=u,{gen:R,compositeRule:p,allErrors:m}=g,P=_(u,i,b);d??(p||m)?a(R,P):l(g,(0,t._)`[${P}]`)}e.reportError=f;function w(u,i=e.keywordError,b){const{it:d}=u,{gen:g,compositeRule:R,allErrors:p}=d,m=_(u,i,b);a(g,m),R||p||l(d,v.default.vErrors)}e.reportExtraError=w;function o(u,i){u.assign(v.default.errors,i),u.if((0,t._)`${v.default.vErrors} !== null`,()=>u.if(i,()=>u.assign((0,t._)`${v.default.vErrors}.length`,i),()=>u.assign(v.default.vErrors,null)))}e.resetErrorsCount=o;function h({gen:u,keyword:i,schemaValue:b,data:d,errsCount:g,it:R}){if(g===void 0)throw new Error("ajv implementation error");const p=u.name("err");u.forRange("i",g,v.default.errors,m=>{u.const(p,(0,t._)`${v.default.vErrors}[${m}]`),u.if((0,t._)`${p}.instancePath === undefined`,()=>u.assign((0,t._)`${p}.instancePath`,(0,t.strConcat)(v.default.instancePath,R.errorPath))),u.assign((0,t._)`${p}.schemaPath`,(0,t.str)`${R.errSchemaPath}/${i}`),R.opts.verbose&&(u.assign((0,t._)`${p}.schema`,b),u.assign((0,t._)`${p}.data`,d))})}e.extendErrors=h;function a(u,i){const b=u.const("err",i);u.if((0,t._)`${v.default.vErrors} === null`,()=>u.assign(v.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${v.default.vErrors}.push(${b})`),u.code((0,t._)`${v.default.errors}++`)}function l(u,i){const{gen:b,validateName:d,schemaEnv:g}=u;g.$async?b.throw((0,t._)`new ${u.ValidationError}(${i})`):(b.assign((0,t._)`${d}.errors`,i),b.return(!1))}const E={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 _(u,i,b){const{createErrors:d}=u.it;return d===!1?(0,t._)`{}`:N(u,i,b)}function N(u,i,b={}){const{gen:d,it:g}=u,R=[O(g,b),C(u,b)];return A(u,i,R),d.object(...R)}function O({errorPath:u},{instancePath:i}){const b=i?(0,t.str)`${u}${(0,r.getErrorPath)(i,r.Type.Str)}`:u;return[v.default.instancePath,(0,t.strConcat)(v.default.instancePath,b)]}function C({keyword:u,it:{errSchemaPath:i}},{schemaPath:b,parentSchema:d}){let g=d?i:(0,t.str)`${i}/${u}`;return b&&(g=(0,t.str)`${g}${(0,r.getErrorPath)(b,r.Type.Str)}`),[E.schemaPath,g]}function A(u,{params:i,message:b},d){const{keyword:g,data:R,schemaValue:p,it:m}=u,{opts:P,propertyName:F,topSchemaRef:L,schemaPath:G}=m;d.push([E.keyword,g],[E.params,typeof i=="function"?i(u):i||(0,t._)`{}`]),P.messages&&d.push([E.message,typeof b=="function"?b(u):b]),P.verbose&&d.push([E.schema,p],[E.parentSchema,(0,t._)`${L}${G}`],[v.default.data,R]),F&&d.push([E.propertyName,F])}},49392:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;const t=n(17898),r=n(95031),v=n(63036),f=n(14856),w=n(50458),o=n(96223);class h{constructor(b){var d;this.refs={},this.dynamicAnchors={};let g;typeof b.schema=="object"&&(g=b.schema),this.schema=b.schema,this.schemaId=b.schemaId,this.root=b.root||this,this.baseId=(d=b.baseId)!==null&&d!==void 0?d:(0,f.normalizeId)(g?.[b.schemaId||"$id"]),this.schemaPath=b.schemaPath,this.localRefs=b.localRefs,this.meta=b.meta,this.$async=g?.$async,this.refs={}}}e.SchemaEnv=h;function a(i){const b=_.call(this,i);if(b)return b;const d=(0,f.getFullPath)(this.opts.uriResolver,i.root.baseId),{es5:g,lines:R}=this.opts.code,{ownProperties:p}=this.opts,m=new t.CodeGen(this.scope,{es5:g,lines:R,ownProperties:p});let P;i.$async&&(P=m.scopeValue("Error",{ref:r.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const F=m.scopeName("validate");i.validateName=F;const L={gen:m,allErrors:this.opts.allErrors,data:v.default.data,parentData:v.default.parentData,parentDataProperty:v.default.parentDataProperty,dataNames:[v.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:m.scopeValue("schema",this.opts.code.source===!0?{ref:i.schema,code:(0,t.stringify)(i.schema)}:{ref:i.schema}),validateName:F,ValidationError:P,schema:i.schema,schemaEnv:i,rootId:d,baseId:i.baseId||d,schemaPath:t.nil,errSchemaPath:i.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let G;try{this._compilations.add(i),(0,o.validateFunctionCode)(L),m.optimize(this.opts.code.optimize);const B=m.toString();G=`${m.scopeRefs(v.default.scope)}return ${B}`,this.opts.code.process&&(G=this.opts.code.process(G,i));const Z=new Function(`${v.default.self}`,`${v.default.scope}`,G)(this,this.scope.get());if(this.scope.value(F,{ref:Z}),Z.errors=null,Z.schema=i.schema,Z.schemaEnv=i,i.$async&&(Z.$async=!0),this.opts.code.source===!0&&(Z.source={validateName:F,validateCode:B,scopeValues:m._values}),this.opts.unevaluated){const{props:se,items:_e}=L;Z.evaluated={props:se instanceof t.Name?void 0:se,items:_e instanceof t.Name?void 0:_e,dynamicProps:se instanceof t.Name,dynamicItems:_e instanceof t.Name},Z.source&&(Z.source.evaluated=(0,t.stringify)(Z.evaluated))}return i.validate=Z,i}catch(B){throw delete i.validate,delete i.validateName,G&&this.logger.error("Error compiling schema, function code:",G),B}finally{this._compilations.delete(i)}}e.compileSchema=a;function l(i,b,d){var g;d=(0,f.resolveUrl)(this.opts.uriResolver,b,d);const R=i.refs[d];if(R)return R;let p=O.call(this,i,d);if(p===void 0){const m=(g=i.localRefs)===null||g===void 0?void 0:g[d],{schemaId:P}=this.opts;m&&(p=new h({schema:m,schemaId:P,root:i,baseId:b}))}if(p!==void 0)return i.refs[d]=E.call(this,p)}e.resolveRef=l;function E(i){return(0,f.inlineRef)(i.schema,this.opts.inlineRefs)?i.schema:i.validate?i:a.call(this,i)}function _(i){for(const b of this._compilations)if(N(b,i))return b}e.getCompilingSchema=_;function N(i,b){return i.schema===b.schema&&i.root===b.root&&i.baseId===b.baseId}function O(i,b){let d;for(;typeof(d=this.refs[b])=="string";)b=d;return d||this.schemas[b]||C.call(this,i,b)}function C(i,b){const d=this.opts.uriResolver.parse(b),g=(0,f._getFullPath)(this.opts.uriResolver,d);let R=(0,f.getFullPath)(this.opts.uriResolver,i.baseId,void 0);if(Object.keys(i.schema).length>0&&g===R)return u.call(this,d,i);const p=(0,f.normalizeId)(g),m=this.refs[p]||this.schemas[p];if(typeof m=="string"){const P=C.call(this,i,m);return typeof P?.schema!="object"?void 0:u.call(this,d,P)}if(typeof m?.schema=="object"){if(m.validate||a.call(this,m),p===(0,f.normalizeId)(b)){const{schema:P}=m,{schemaId:F}=this.opts,L=P[F];return L&&(R=(0,f.resolveUrl)(this.opts.uriResolver,R,L)),new h({schema:P,schemaId:F,root:i,baseId:R})}return u.call(this,d,m)}}e.resolveSchema=C;const A=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function u(i,{baseId:b,schema:d,root:g}){var R;if(((R=i.fragment)===null||R===void 0?void 0:R[0])!=="/")return;for(const P of i.fragment.slice(1).split("/")){if(typeof d=="boolean")return;const F=d[(0,w.unescapeFragment)(P)];if(F===void 0)return;d=F;const L=typeof d=="object"&&d[this.opts.schemaId];!A.has(P)&&L&&(b=(0,f.resolveUrl)(this.opts.uriResolver,b,L))}let p;if(typeof d!="boolean"&&d.$ref&&!(0,w.schemaHasRulesButRef)(d,this.RULES)){const P=(0,f.resolveUrl)(this.opts.uriResolver,b,d.$ref);p=C.call(this,g,P)}const{schemaId:m}=this.opts;if(p=p||new h({schema:d,schemaId:m,root:g,baseId:b}),p.schema!==p.root.schema)return p}},63036:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r={data:new t.Name("data"),valCxt:new t.Name("valCxt"),instancePath:new t.Name("instancePath"),parentData:new t.Name("parentData"),parentDataProperty:new t.Name("parentDataProperty"),rootData:new t.Name("rootData"),dynamicAnchors:new t.Name("dynamicAnchors"),vErrors:new t.Name("vErrors"),errors:new t.Name("errors"),this:new t.Name("this"),self:new t.Name("self"),scope:new t.Name("scope"),json:new t.Name("json"),jsonPos:new t.Name("jsonPos"),jsonLen:new t.Name("jsonLen"),jsonPart:new t.Name("jsonPart")};e.default=r},85748:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(14856);class r extends Error{constructor(f,w,o,h){super(h||`can't resolve reference ${o} from id ${w}`),this.missingRef=(0,t.resolveUrl)(f,w,o),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(f,this.missingRef))}}e.default=r},14856:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;const t=n(50458),r=n(38792),v=n(1645),f=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function w(u,i=!0){return typeof u=="boolean"?!0:i===!0?!h(u):i?a(u)<=i:!1}e.inlineRef=w;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function h(u){for(const i in u){if(o.has(i))return!0;const b=u[i];if(Array.isArray(b)&&b.some(h)||typeof b=="object"&&h(b))return!0}return!1}function a(u){let i=0;for(const b in u){if(b==="$ref")return 1/0;if(i++,!f.has(b)&&(typeof u[b]=="object"&&(0,t.eachItem)(u[b],d=>i+=a(d)),i===1/0))return 1/0}return i}function l(u,i="",b){b!==!1&&(i=N(i));const d=u.parse(i);return E(u,d)}e.getFullPath=l;function E(u,i){return u.serialize(i).split("#")[0]+"#"}e._getFullPath=E;const _=/#\/?$/;function N(u){return u?u.replace(_,""):""}e.normalizeId=N;function O(u,i,b){return b=N(b),u.resolve(i,b)}e.resolveUrl=O;const C=/^[a-z_][-a-z0-9._]*$/i;function A(u,i){if(typeof u=="boolean")return{};const{schemaId:b,uriResolver:d}=this.opts,g=N(u[b]||i),R={"":g},p=l(d,g,!1),m={},P=new Set;return v(u,{allKeys:!0},(G,B,ue,Z)=>{if(Z===void 0)return;const se=p+B;let _e=R[Z];typeof G[b]=="string"&&(_e=Te.call(this,G[b])),Oe.call(this,G.$anchor),Oe.call(this,G.$dynamicAnchor),R[B]=_e;function Te(oe){const H=this.opts.uriResolver.resolve;if(oe=N(_e?H(_e,oe):oe),P.has(oe))throw L(oe);P.add(oe);let T=this.refs[oe];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?F(G,T.schema,oe):oe!==N(se)&&(oe[0]==="#"?(F(G,m[oe],oe),m[oe]=G):this.refs[oe]=se),oe}function Oe(oe){if(typeof oe=="string"){if(!C.test(oe))throw new Error(`invalid anchor "${oe}"`);Te.call(this,`#${oe}`)}}}),m;function F(G,B,ue){if(B!==void 0&&!r(G,B))throw L(ue)}function L(G){return new Error(`reference "${G}" resolves to more than one schema`)}}e.getSchemaRefs=A},90383:(J,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;const n=["string","number","integer","boolean","null","object","array"],t=new Set(n);function r(f){return typeof f=="string"&&t.has(f)}e.isJSONType=r;function v(){const f={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...f,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},f.number,f.string,f.array,f.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=v},50458:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=n(17898),r=n(83277);function v(p){const m={};for(const P of p)m[P]=!0;return m}e.toHash=v;function f(p,m){return typeof m=="boolean"?m:Object.keys(m).length===0?!0:(w(p,m),!o(m,p.self.RULES.all))}e.alwaysValidSchema=f;function w(p,m=p.schema){const{opts:P,self:F}=p;if(!P.strictSchema||typeof m=="boolean")return;const L=F.RULES.keywords;for(const G in m)L[G]||R(p,`unknown keyword: "${G}"`)}e.checkUnknownRules=w;function o(p,m){if(typeof p=="boolean")return!p;for(const P in p)if(m[P])return!0;return!1}e.schemaHasRules=o;function h(p,m){if(typeof p=="boolean")return!p;for(const P in p)if(P!=="$ref"&&m.all[P])return!0;return!1}e.schemaHasRulesButRef=h;function a({topSchemaRef:p,schemaPath:m},P,F,L){if(!L){if(typeof P=="number"||typeof P=="boolean")return P;if(typeof P=="string")return(0,t._)`${P}`}return(0,t._)`${p}${m}${(0,t.getProperty)(F)}`}e.schemaRefOrVal=a;function l(p){return N(decodeURIComponent(p))}e.unescapeFragment=l;function E(p){return encodeURIComponent(_(p))}e.escapeFragment=E;function _(p){return typeof p=="number"?`${p}`:p.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=_;function N(p){return p.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=N;function O(p,m){if(Array.isArray(p))for(const P of p)m(P);else m(p)}e.eachItem=O;function C({mergeNames:p,mergeToName:m,mergeValues:P,resultToName:F}){return(L,G,B,ue)=>{const Z=B===void 0?G:B instanceof t.Name?(G instanceof t.Name?p(L,G,B):m(L,G,B),B):G instanceof t.Name?(m(L,B,G),G):P(G,B);return ue===t.Name&&!(Z instanceof t.Name)?F(L,Z):Z}}e.mergeEvaluated={props:C({mergeNames:(p,m,P)=>p.if((0,t._)`${P} !== true && ${m} !== undefined`,()=>{p.if((0,t._)`${m} === true`,()=>p.assign(P,!0),()=>p.assign(P,(0,t._)`${P} || {}`).code((0,t._)`Object.assign(${P}, ${m})`))}),mergeToName:(p,m,P)=>p.if((0,t._)`${P} !== true`,()=>{m===!0?p.assign(P,!0):(p.assign(P,(0,t._)`${P} || {}`),u(p,P,m))}),mergeValues:(p,m)=>p===!0?!0:{...p,...m},resultToName:A}),items:C({mergeNames:(p,m,P)=>p.if((0,t._)`${P} !== true && ${m} !== undefined`,()=>p.assign(P,(0,t._)`${m} === true ? true : ${P} > ${m} ? ${P} : ${m}`)),mergeToName:(p,m,P)=>p.if((0,t._)`${P} !== true`,()=>p.assign(P,m===!0?!0:(0,t._)`${P} > ${m} ? ${P} : ${m}`)),mergeValues:(p,m)=>p===!0?!0:Math.max(p,m),resultToName:(p,m)=>p.var("items",m)})};function A(p,m){if(m===!0)return p.var("props",!0);const P=p.var("props",(0,t._)`{}`);return m!==void 0&&u(p,P,m),P}e.evaluatedPropsToName=A;function u(p,m,P){Object.keys(P).forEach(F=>p.assign((0,t._)`${m}${(0,t.getProperty)(F)}`,!0))}e.setEvaluated=u;const i={};function b(p,m){return p.scopeValue("func",{ref:m,code:i[m.code]||(i[m.code]=new r._Code(m.code))})}e.useFunc=b;var d;(function(p){p[p.Num=0]="Num",p[p.Str=1]="Str"})(d=e.Type||(e.Type={}));function g(p,m,P){if(p instanceof t.Name){const F=m===d.Num;return P?F?(0,t._)`"[" + ${p} + "]"`:(0,t._)`"['" + ${p} + "']"`:F?(0,t._)`"/" + ${p}`:(0,t._)`"/" + ${p}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return P?(0,t.getProperty)(p).toString():"/"+_(p)}e.getErrorPath=g;function R(p,m,P=p.opts.strictSchema){if(P){if(m=`strict mode: ${m}`,P===!0)throw new Error(m);p.self.logger.warn(m)}}e.checkStrictMode=R},74758:(J,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function n({schema:v,self:f},w){const o=f.RULES.types[w];return o&&o!==!0&&t(v,o)}e.schemaHasRulesForType=n;function t(v,f){return f.rules.some(w=>r(v,w))}e.shouldUseGroup=t;function r(v,f){var w;return v[f.keyword]!==void 0||((w=f.definition.implements)===null||w===void 0?void 0:w.some(o=>v[o]!==void 0))}e.shouldUseRule=r},15948:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;const t=n(49409),r=n(17898),v=n(63036),f={message:"boolean schema is false"};function w(a){const{gen:l,schema:E,validateName:_}=a;E===!1?h(a,!1):typeof E=="object"&&E.$async===!0?l.return(v.default.data):(l.assign((0,r._)`${_}.errors`,null),l.return(!0))}e.topBoolOrEmptySchema=w;function o(a,l){const{gen:E,schema:_}=a;_===!1?(E.var(l,!1),h(a)):E.var(l,!0)}e.boolOrEmptySchema=o;function h(a,l){const{gen:E,data:_}=a,N={gen:E,keyword:"false schema",data:_,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,t.reportError)(N,f,void 0,l)}},69003:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=n(90383),r=n(74758),v=n(49409),f=n(17898),w=n(50458);var o;(function(d){d[d.Correct=0]="Correct",d[d.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function h(d){const g=a(d.type);if(g.includes("null")){if(d.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!g.length&&d.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');d.nullable===!0&&g.push("null")}return g}e.getSchemaTypes=h;function a(d){const g=Array.isArray(d)?d:d?[d]:[];if(g.every(t.isJSONType))return g;throw new Error("type must be JSONType or JSONType[]: "+g.join(","))}e.getJSONTypes=a;function l(d,g){const{gen:R,data:p,opts:m}=d,P=_(g,m.coerceTypes),F=g.length>0&&!(P.length===0&&g.length===1&&(0,r.schemaHasRulesForType)(d,g[0]));if(F){const L=A(g,p,m.strictNumbers,o.Wrong);R.if(L,()=>{P.length?N(d,g,P):i(d)})}return F}e.coerceAndCheckDataType=l;const E=new Set(["string","number","integer","boolean","null"]);function _(d,g){return g?d.filter(R=>E.has(R)||g==="array"&&R==="array"):[]}function N(d,g,R){const{gen:p,data:m,opts:P}=d,F=p.let("dataType",(0,f._)`typeof ${m}`),L=p.let("coerced",(0,f._)`undefined`);P.coerceTypes==="array"&&p.if((0,f._)`${F} == 'object' && Array.isArray(${m}) && ${m}.length == 1`,()=>p.assign(m,(0,f._)`${m}[0]`).assign(F,(0,f._)`typeof ${m}`).if(A(g,m,P.strictNumbers),()=>p.assign(L,m))),p.if((0,f._)`${L} !== undefined`);for(const B of R)(E.has(B)||B==="array"&&P.coerceTypes==="array")&&G(B);p.else(),i(d),p.endIf(),p.if((0,f._)`${L} !== undefined`,()=>{p.assign(m,L),O(d,L)});function G(B){switch(B){case"string":p.elseIf((0,f._)`${F} == "number" || ${F} == "boolean"`).assign(L,(0,f._)`"" + ${m}`).elseIf((0,f._)`${m} === null`).assign(L,(0,f._)`""`);return;case"number":p.elseIf((0,f._)`${F} == "boolean" || ${m} === null
|
|
3
|
+
|| (${F} == "string" && ${m} && ${m} == +${m})`).assign(L,(0,f._)`+${m}`);return;case"integer":p.elseIf((0,f._)`${F} === "boolean" || ${m} === null
|
|
4
|
+
|| (${F} === "string" && ${m} && ${m} == +${m} && !(${m} % 1))`).assign(L,(0,f._)`+${m}`);return;case"boolean":p.elseIf((0,f._)`${m} === "false" || ${m} === 0 || ${m} === null`).assign(L,!1).elseIf((0,f._)`${m} === "true" || ${m} === 1`).assign(L,!0);return;case"null":p.elseIf((0,f._)`${m} === "" || ${m} === 0 || ${m} === false`),p.assign(L,null);return;case"array":p.elseIf((0,f._)`${F} === "string" || ${F} === "number"
|
|
5
|
+
|| ${F} === "boolean" || ${m} === null`).assign(L,(0,f._)`[${m}]`)}}}function O({gen:d,parentData:g,parentDataProperty:R},p){d.if((0,f._)`${g} !== undefined`,()=>d.assign((0,f._)`${g}[${R}]`,p))}function C(d,g,R,p=o.Correct){const m=p===o.Correct?f.operators.EQ:f.operators.NEQ;let P;switch(d){case"null":return(0,f._)`${g} ${m} null`;case"array":P=(0,f._)`Array.isArray(${g})`;break;case"object":P=(0,f._)`${g} && typeof ${g} == "object" && !Array.isArray(${g})`;break;case"integer":P=F((0,f._)`!(${g} % 1) && !isNaN(${g})`);break;case"number":P=F();break;default:return(0,f._)`typeof ${g} ${m} ${d}`}return p===o.Correct?P:(0,f.not)(P);function F(L=f.nil){return(0,f.and)((0,f._)`typeof ${g} == "number"`,L,R?(0,f._)`isFinite(${g})`:f.nil)}}e.checkDataType=C;function A(d,g,R,p){if(d.length===1)return C(d[0],g,R,p);let m;const P=(0,w.toHash)(d);if(P.array&&P.object){const F=(0,f._)`typeof ${g} != "object"`;m=P.null?F:(0,f._)`!${g} || ${F}`,delete P.null,delete P.array,delete P.object}else m=f.nil;P.number&&delete P.integer;for(const F in P)m=(0,f.and)(m,C(F,g,R,p));return m}e.checkDataTypes=A;const u={message:({schema:d})=>`must be ${d}`,params:({schema:d,schemaValue:g})=>typeof d=="string"?(0,f._)`{type: ${d}}`:(0,f._)`{type: ${g}}`};function i(d){const g=b(d);(0,v.reportError)(g,u)}e.reportTypeError=i;function b(d){const{gen:g,data:R,schema:p}=d,m=(0,w.schemaRefOrVal)(d,p,"type");return{gen:g,keyword:"type",data:R,schema:p.type,schemaCode:m,schemaValue:m,parentSchema:p,params:{},it:d}}},96841:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;const t=n(17898),r=n(50458);function v(w,o){const{properties:h,items:a}=w.schema;if(o==="object"&&h)for(const l in h)f(w,l,h[l].default);else o==="array"&&Array.isArray(a)&&a.forEach((l,E)=>f(w,E,l.default))}e.assignDefaults=v;function f(w,o,h){const{gen:a,compositeRule:l,data:E,opts:_}=w;if(h===void 0)return;const N=(0,t._)`${E}${(0,t.getProperty)(o)}`;if(l){(0,r.checkStrictMode)(w,`default is ignored for: ${N}`);return}let O=(0,t._)`${N} === undefined`;_.useDefaults==="empty"&&(O=(0,t._)`${O} || ${N} === null || ${N} === ""`),a.if(O,(0,t._)`${N} = ${(0,t.stringify)(h)}`)}},96223:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;const t=n(15948),r=n(69003),v=n(74758),f=n(69003),w=n(96841),o=n(49348),h=n(53322),a=n(17898),l=n(63036),E=n(14856),_=n(50458),N=n(49409);function O(I){if(p(I)&&(P(I),R(I))){i(I);return}C(I,()=>(0,t.topBoolOrEmptySchema)(I))}e.validateFunctionCode=O;function C({gen:I,validateName:j,schema:U,schemaEnv:K,opts:Y},q){Y.code.es5?I.func(j,(0,a._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{I.code((0,a._)`"use strict"; ${d(U,Y)}`),u(I,Y),I.code(q)}):I.func(j,(0,a._)`${l.default.data}, ${A(Y)}`,K.$async,()=>I.code(d(U,Y)).code(q))}function A(I){return(0,a._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${I.dynamicRef?(0,a._)`, ${l.default.dynamicAnchors}={}`:a.nil}}={}`}function u(I,j){I.if(l.default.valCxt,()=>{I.var(l.default.instancePath,(0,a._)`${l.default.valCxt}.${l.default.instancePath}`),I.var(l.default.parentData,(0,a._)`${l.default.valCxt}.${l.default.parentData}`),I.var(l.default.parentDataProperty,(0,a._)`${l.default.valCxt}.${l.default.parentDataProperty}`),I.var(l.default.rootData,(0,a._)`${l.default.valCxt}.${l.default.rootData}`),j.dynamicRef&&I.var(l.default.dynamicAnchors,(0,a._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{I.var(l.default.instancePath,(0,a._)`""`),I.var(l.default.parentData,(0,a._)`undefined`),I.var(l.default.parentDataProperty,(0,a._)`undefined`),I.var(l.default.rootData,l.default.data),j.dynamicRef&&I.var(l.default.dynamicAnchors,(0,a._)`{}`)})}function i(I){const{schema:j,opts:U,gen:K}=I;C(I,()=>{U.$comment&&j.$comment&&Z(I),G(I),K.let(l.default.vErrors,null),K.let(l.default.errors,0),U.unevaluated&&b(I),F(I),se(I)})}function b(I){const{gen:j,validateName:U}=I;I.evaluated=j.const("evaluated",(0,a._)`${U}.evaluated`),j.if((0,a._)`${I.evaluated}.dynamicProps`,()=>j.assign((0,a._)`${I.evaluated}.props`,(0,a._)`undefined`)),j.if((0,a._)`${I.evaluated}.dynamicItems`,()=>j.assign((0,a._)`${I.evaluated}.items`,(0,a._)`undefined`))}function d(I,j){const U=typeof I=="object"&&I[j.schemaId];return U&&(j.code.source||j.code.process)?(0,a._)`/*# sourceURL=${U} */`:a.nil}function g(I,j){if(p(I)&&(P(I),R(I))){m(I,j);return}(0,t.boolOrEmptySchema)(I,j)}function R({schema:I,self:j}){if(typeof I=="boolean")return!I;for(const U in I)if(j.RULES.all[U])return!0;return!1}function p(I){return typeof I.schema!="boolean"}function m(I,j){const{schema:U,gen:K,opts:Y}=I;Y.$comment&&U.$comment&&Z(I),B(I),ue(I);const q=K.const("_errs",l.default.errors);F(I,q),K.var(j,(0,a._)`${q} === ${l.default.errors}`)}function P(I){(0,_.checkUnknownRules)(I),L(I)}function F(I,j){if(I.opts.jtd)return Te(I,[],!1,j);const U=(0,r.getSchemaTypes)(I.schema),K=(0,r.coerceAndCheckDataType)(I,U);Te(I,U,!K,j)}function L(I){const{schema:j,errSchemaPath:U,opts:K,self:Y}=I;j.$ref&&K.ignoreKeywordsWithRef&&(0,_.schemaHasRulesButRef)(j,Y.RULES)&&Y.logger.warn(`$ref: keywords ignored in schema at path "${U}"`)}function G(I){const{schema:j,opts:U}=I;j.default!==void 0&&U.useDefaults&&U.strictSchema&&(0,_.checkStrictMode)(I,"default is ignored in the schema root")}function B(I){const j=I.schema[I.opts.schemaId];j&&(I.baseId=(0,E.resolveUrl)(I.opts.uriResolver,I.baseId,j))}function ue(I){if(I.schema.$async&&!I.schemaEnv.$async)throw new Error("async schema in sync schema")}function Z({gen:I,schemaEnv:j,schema:U,errSchemaPath:K,opts:Y}){const q=U.$comment;if(Y.$comment===!0)I.code((0,a._)`${l.default.self}.logger.log(${q})`);else if(typeof Y.$comment=="function"){const ve=(0,a.str)`${K}/$comment`,Se=I.scopeValue("root",{ref:j.root});I.code((0,a._)`${l.default.self}.opts.$comment(${q}, ${ve}, ${Se}.schema)`)}}function se(I){const{gen:j,schemaEnv:U,validateName:K,ValidationError:Y,opts:q}=I;U.$async?j.if((0,a._)`${l.default.errors} === 0`,()=>j.return(l.default.data),()=>j.throw((0,a._)`new ${Y}(${l.default.vErrors})`)):(j.assign((0,a._)`${K}.errors`,l.default.vErrors),q.unevaluated&&_e(I),j.return((0,a._)`${l.default.errors} === 0`))}function _e({gen:I,evaluated:j,props:U,items:K}){U instanceof a.Name&&I.assign((0,a._)`${j}.props`,U),K instanceof a.Name&&I.assign((0,a._)`${j}.items`,K)}function Te(I,j,U,K){const{gen:Y,schema:q,data:ve,allErrors:Se,opts:ye,self:de}=I,{RULES:ge}=de;if(q.$ref&&(ye.ignoreKeywordsWithRef||!(0,_.schemaHasRulesButRef)(q,ge))){Y.block(()=>X(I,"$ref",ge.all.$ref.definition));return}ye.jtd||oe(I,j),Y.block(()=>{for(const we of ge.rules)ke(we);ke(ge.post)});function ke(we){(0,v.shouldUseGroup)(q,we)&&(we.type?(Y.if((0,f.checkDataType)(we.type,ve,ye.strictNumbers)),Oe(I,we),j.length===1&&j[0]===we.type&&U&&(Y.else(),(0,f.reportTypeError)(I)),Y.endIf()):Oe(I,we),Se||Y.if((0,a._)`${l.default.errors} === ${K||0}`))}}function Oe(I,j){const{gen:U,schema:K,opts:{useDefaults:Y}}=I;Y&&(0,w.assignDefaults)(I,j.type),U.block(()=>{for(const q of j.rules)(0,v.shouldUseRule)(K,q)&&X(I,q.keyword,q.definition,j.type)})}function oe(I,j){I.schemaEnv.meta||!I.opts.strictTypes||(H(I,j),I.opts.allowUnionTypes||T(I,j),z(I,I.dataTypes))}function H(I,j){if(j.length){if(!I.dataTypes.length){I.dataTypes=j;return}j.forEach(U=>{s(I.dataTypes,U)||V(I,`type "${U}" not allowed by context "${I.dataTypes.join(",")}"`)}),y(I,j)}}function T(I,j){j.length>1&&!(j.length===2&&j.includes("null"))&&V(I,"use allowUnionTypes to allow union type keyword")}function z(I,j){const U=I.self.RULES.all;for(const K in U){const Y=U[K];if(typeof Y=="object"&&(0,v.shouldUseRule)(I.schema,Y)){const{type:q}=Y.definition;q.length&&!q.some(ve=>D(j,ve))&&V(I,`missing type "${q.join(",")}" for keyword "${K}"`)}}}function D(I,j){return I.includes(j)||j==="number"&&I.includes("integer")}function s(I,j){return I.includes(j)||j==="integer"&&I.includes("number")}function y(I,j){const U=[];for(const K of I.dataTypes)s(j,K)?U.push(K):j.includes("integer")&&K==="number"&&U.push("integer");I.dataTypes=U}function V(I,j){const U=I.schemaEnv.baseId+I.errSchemaPath;j+=` at "${U}" (strictTypes)`,(0,_.checkStrictMode)(I,j,I.opts.strictTypes)}class Q{constructor(j,U,K){if((0,o.validateKeywordUsage)(j,U,K),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=K,this.data=j.data,this.schema=j.schema[K],this.$data=U.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,_.schemaRefOrVal)(j,this.schema,K,this.$data),this.schemaType=U.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=U,this.$data)this.schemaCode=j.gen.const("vSchema",fe(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,U.schemaType,U.allowUndefined))throw new Error(`${K} value must be ${JSON.stringify(U.schemaType)}`);("code"in U?U.trackErrors:U.errors!==!1)&&(this.errsCount=j.gen.const("_errs",l.default.errors))}result(j,U,K){this.failResult((0,a.not)(j),U,K)}failResult(j,U,K){this.gen.if(j),K?K():this.error(),U?(this.gen.else(),U(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,U){this.failResult((0,a.not)(j),void 0,U)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:U}=this;this.fail((0,a._)`${U} !== undefined && (${(0,a.or)(this.invalid$data(),j)})`)}error(j,U,K){if(U){this.setParams(U),this._error(j,K),this.setParams({});return}this._error(j,K)}_error(j,U){(j?N.reportExtraError:N.reportError)(this,this.def.error,U)}$dataError(){(0,N.reportError)(this,this.def.$dataError||N.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,N.resetErrorsCount)(this.gen,this.errsCount)}ok(j){this.allErrors||this.gen.if(j)}setParams(j,U){U?Object.assign(this.params,j):this.params=j}block$data(j,U,K=a.nil){this.gen.block(()=>{this.check$data(j,K),U()})}check$data(j=a.nil,U=a.nil){if(!this.$data)return;const{gen:K,schemaCode:Y,schemaType:q,def:ve}=this;K.if((0,a.or)((0,a._)`${Y} === undefined`,U)),j!==a.nil&&K.assign(j,!0),(q.length||ve.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),j!==a.nil&&K.assign(j,!1)),K.else()}invalid$data(){const{gen:j,schemaCode:U,schemaType:K,def:Y,it:q}=this;return(0,a.or)(ve(),Se());function ve(){if(K.length){if(!(U instanceof a.Name))throw new Error("ajv implementation error");const ye=Array.isArray(K)?K:[K];return(0,a._)`${(0,f.checkDataTypes)(ye,U,q.opts.strictNumbers,f.DataType.Wrong)}`}return a.nil}function Se(){if(Y.validateSchema){const ye=j.scopeValue("validate$data",{ref:Y.validateSchema});return(0,a._)`!${ye}(${U})`}return a.nil}}subschema(j,U){const K=(0,h.getSubschema)(this.it,j);(0,h.extendSubschemaData)(K,this.it,j),(0,h.extendSubschemaMode)(K,j);const Y={...this.it,...K,items:void 0,props:void 0};return g(Y,U),Y}mergeEvaluated(j,U){const{it:K,gen:Y}=this;K.opts.unevaluated&&(K.props!==!0&&j.props!==void 0&&(K.props=_.mergeEvaluated.props(Y,j.props,K.props,U)),K.items!==!0&&j.items!==void 0&&(K.items=_.mergeEvaluated.items(Y,j.items,K.items,U)))}mergeValidEvaluated(j,U){const{it:K,gen:Y}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return Y.if(U,()=>this.mergeEvaluated(j,a.Name)),!0}}e.KeywordCxt=Q;function X(I,j,U,K){const Y=new Q(I,U,j);"code"in U?U.code(Y,K):Y.$data&&U.validate?(0,o.funcKeywordCode)(Y,U):"macro"in U?(0,o.macroKeywordCode)(Y,U):(U.compile||U.validate)&&(0,o.funcKeywordCode)(Y,U)}const te=/^\/(?:[^~]|~0|~1)*$/,ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function fe(I,{dataLevel:j,dataNames:U,dataPathArr:K}){let Y,q;if(I==="")return l.default.rootData;if(I[0]==="/"){if(!te.test(I))throw new Error(`Invalid JSON-pointer: ${I}`);Y=I,q=l.default.rootData}else{const de=ee.exec(I);if(!de)throw new Error(`Invalid JSON-pointer: ${I}`);const ge=+de[1];if(Y=de[2],Y==="#"){if(ge>=j)throw new Error(ye("property/index",ge));return K[j-ge]}if(ge>j)throw new Error(ye("data",ge));if(q=U[j-ge],!Y)return q}let ve=q;const Se=Y.split("/");for(const de of Se)de&&(q=(0,a._)`${q}${(0,a.getProperty)((0,_.unescapeJsonPointer)(de))}`,ve=(0,a._)`${ve} && ${q}`);return ve;function ye(de,ge){return`Cannot access ${de} ${ge} levels up, current level is ${j}`}}e.getData=fe},49348:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;const t=n(17898),r=n(63036),v=n(94450),f=n(49409);function w(O,C){const{gen:A,keyword:u,schema:i,parentSchema:b,it:d}=O,g=C.macro.call(d.self,i,b,d),R=E(A,u,g);d.opts.validateSchema!==!1&&d.self.validateSchema(g,!0);const p=A.name("valid");O.subschema({schema:g,schemaPath:t.nil,errSchemaPath:`${d.errSchemaPath}/${u}`,topSchemaRef:R,compositeRule:!0},p),O.pass(p,()=>O.error(!0))}e.macroKeywordCode=w;function o(O,C){var A;const{gen:u,keyword:i,schema:b,parentSchema:d,$data:g,it:R}=O;l(R,C);const p=!g&&C.compile?C.compile.call(R.self,b,d,R):C.validate,m=E(u,i,p),P=u.let("valid");O.block$data(P,F),O.ok((A=C.valid)!==null&&A!==void 0?A:P);function F(){if(C.errors===!1)B(),C.modifying&&h(O),ue(()=>O.error());else{const Z=C.async?L():G();C.modifying&&h(O),ue(()=>a(O,Z))}}function L(){const Z=u.let("ruleErrs",null);return u.try(()=>B((0,t._)`await `),se=>u.assign(P,!1).if((0,t._)`${se} instanceof ${R.ValidationError}`,()=>u.assign(Z,(0,t._)`${se}.errors`),()=>u.throw(se))),Z}function G(){const Z=(0,t._)`${m}.errors`;return u.assign(Z,null),B(t.nil),Z}function B(Z=C.async?(0,t._)`await `:t.nil){const se=R.opts.passContext?r.default.this:r.default.self,_e=!("compile"in C&&!g||C.schema===!1);u.assign(P,(0,t._)`${Z}${(0,v.callValidateCode)(O,m,se,_e)}`,C.modifying)}function ue(Z){var se;u.if((0,t.not)((se=C.valid)!==null&&se!==void 0?se:P),Z)}}e.funcKeywordCode=o;function h(O){const{gen:C,data:A,it:u}=O;C.if(u.parentData,()=>C.assign(A,(0,t._)`${u.parentData}[${u.parentDataProperty}]`))}function a(O,C){const{gen:A}=O;A.if((0,t._)`Array.isArray(${C})`,()=>{A.assign(r.default.vErrors,(0,t._)`${r.default.vErrors} === null ? ${C} : ${r.default.vErrors}.concat(${C})`).assign(r.default.errors,(0,t._)`${r.default.vErrors}.length`),(0,f.extendErrors)(O)},()=>O.error())}function l({schemaEnv:O},C){if(C.async&&!O.$async)throw new Error("async keyword in sync schema")}function E(O,C,A){if(A===void 0)throw new Error(`keyword "${C}" failed to compile`);return O.scopeValue("keyword",typeof A=="function"?{ref:A}:{ref:A,code:(0,t.stringify)(A)})}function _(O,C,A=!1){return!C.length||C.some(u=>u==="array"?Array.isArray(O):u==="object"?O&&typeof O=="object"&&!Array.isArray(O):typeof O==u||A&&typeof O>"u")}e.validSchemaType=_;function N({schema:O,opts:C,self:A,errSchemaPath:u},i,b){if(Array.isArray(i.keyword)?!i.keyword.includes(b):i.keyword!==b)throw new Error("ajv implementation error");const d=i.dependencies;if(d?.some(g=>!Object.prototype.hasOwnProperty.call(O,g)))throw new Error(`parent schema must have dependencies of ${b}: ${d.join(",")}`);if(i.validateSchema&&!i.validateSchema(O[b])){const R=`keyword "${b}" value is invalid at path "${u}": `+A.errorsText(i.validateSchema.errors);if(C.validateSchema==="log")A.logger.error(R);else throw new Error(R)}}e.validateKeywordUsage=N},53322:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;const t=n(17898),r=n(50458);function v(o,{keyword:h,schemaProp:a,schema:l,schemaPath:E,errSchemaPath:_,topSchemaRef:N}){if(h!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(h!==void 0){const O=o.schema[h];return a===void 0?{schema:O,schemaPath:(0,t._)`${o.schemaPath}${(0,t.getProperty)(h)}`,errSchemaPath:`${o.errSchemaPath}/${h}`}:{schema:O[a],schemaPath:(0,t._)`${o.schemaPath}${(0,t.getProperty)(h)}${(0,t.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${h}/${(0,r.escapeFragment)(a)}`}}if(l!==void 0){if(E===void 0||_===void 0||N===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:E,topSchemaRef:N,errSchemaPath:_}}throw new Error('either "keyword" or "schema" must be passed')}e.getSubschema=v;function f(o,h,{dataProp:a,dataPropType:l,data:E,dataTypes:_,propertyName:N}){if(E!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:O}=h;if(a!==void 0){const{errorPath:A,dataPathArr:u,opts:i}=h,b=O.let("data",(0,t._)`${h.data}${(0,t.getProperty)(a)}`,!0);C(b),o.errorPath=(0,t.str)`${A}${(0,r.getErrorPath)(a,l,i.jsPropertySyntax)}`,o.parentDataProperty=(0,t._)`${a}`,o.dataPathArr=[...u,o.parentDataProperty]}if(E!==void 0){const A=E instanceof t.Name?E:O.let("data",E,!0);C(A),N!==void 0&&(o.propertyName=N)}_&&(o.dataTypes=_);function C(A){o.data=A,o.dataLevel=h.dataLevel+1,o.dataTypes=[],h.definedProperties=new Set,o.parentData=h.data,o.dataNames=[...h.dataNames,A]}}e.extendSubschemaData=f;function w(o,{jtdDiscriminator:h,jtdMetadata:a,compositeRule:l,createErrors:E,allErrors:_}){l!==void 0&&(o.compositeRule=l),E!==void 0&&(o.createErrors=E),_!==void 0&&(o.allErrors=_),o.jtdDiscriminator=h,o.jtdMetadata=a}e.extendSubschemaMode=w},65319:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=n(96223);Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=n(17898);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 v=n(95031),f=n(85748),w=n(90383),o=n(49392),h=n(17898),a=n(14856),l=n(69003),E=n(50458),_=n(93770),N=n(7903),O=(H,T)=>new RegExp(H,T);O.code="new RegExp";const C=["removeAdditional","useDefaults","coerceTypes"],A=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),u={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."},i={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function d(H){var T,z,D,s,y,V,Q,X,te,ee,fe,I,j,U,K,Y,q,ve,Se,ye,de,ge,ke,we,Xe;const Fe=H.strict,be=(T=H.code)===null||T===void 0?void 0:T.optimize,Ve=be===!0||be===void 0?1:be||0,Ye=(D=(z=H.code)===null||z===void 0?void 0:z.regExp)!==null&&D!==void 0?D:O,nt=(s=H.uriResolver)!==null&&s!==void 0?s:N.default;return{strictSchema:(V=(y=H.strictSchema)!==null&&y!==void 0?y:Fe)!==null&&V!==void 0?V:!0,strictNumbers:(X=(Q=H.strictNumbers)!==null&&Q!==void 0?Q:Fe)!==null&&X!==void 0?X:!0,strictTypes:(ee=(te=H.strictTypes)!==null&&te!==void 0?te:Fe)!==null&&ee!==void 0?ee:"log",strictTuples:(I=(fe=H.strictTuples)!==null&&fe!==void 0?fe:Fe)!==null&&I!==void 0?I:"log",strictRequired:(U=(j=H.strictRequired)!==null&&j!==void 0?j:Fe)!==null&&U!==void 0?U:!1,code:H.code?{...H.code,optimize:Ve,regExp:Ye}:{optimize:Ve,regExp:Ye},loopRequired:(K=H.loopRequired)!==null&&K!==void 0?K:b,loopEnum:(Y=H.loopEnum)!==null&&Y!==void 0?Y:b,meta:(q=H.meta)!==null&&q!==void 0?q:!0,messages:(ve=H.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Se=H.inlineRefs)!==null&&Se!==void 0?Se:!0,schemaId:(ye=H.schemaId)!==null&&ye!==void 0?ye:"$id",addUsedSchema:(de=H.addUsedSchema)!==null&&de!==void 0?de:!0,validateSchema:(ge=H.validateSchema)!==null&&ge!==void 0?ge:!0,validateFormats:(ke=H.validateFormats)!==null&&ke!==void 0?ke:!0,unicodeRegExp:(we=H.unicodeRegExp)!==null&&we!==void 0?we:!0,int32range:(Xe=H.int32range)!==null&&Xe!==void 0?Xe:!0,uriResolver:nt}}class g{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...d(T)};const{es5:z,lines:D}=this.opts.code;this.scope=new h.ValueScope({scope:{},prefixes:A,es5:z,lines:D}),this.logger=B(T.logger);const s=T.validateFormats;T.validateFormats=!1,this.RULES=(0,w.getRules)(),R.call(this,u,T,"NOT SUPPORTED"),R.call(this,i,T,"DEPRECATED","warn"),this._metaOpts=L.call(this),T.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&F.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),m.call(this),T.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:z,schemaId:D}=this.opts;let s=_;D==="id"&&(s={..._},s.id=s.$id,delete s.$id),z&&T&&this.addMetaSchema(s,s[D],!1)}defaultMeta(){const{meta:T,schemaId:z}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[z]||T:void 0}validate(T,z){let D;if(typeof T=="string"){if(D=this.getSchema(T),!D)throw new Error(`no schema with key or ref "${T}"`)}else D=this.compile(T);const s=D(z);return"$async"in D||(this.errors=D.errors),s}compile(T,z){const D=this._addSchema(T,z);return D.validate||this._compileSchemaEnv(D)}compileAsync(T,z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return s.call(this,T,z);async function s(ee,fe){await y.call(this,ee.$schema);const I=this._addSchema(ee,fe);return I.validate||V.call(this,I)}async function y(ee){ee&&!this.getSchema(ee)&&await s.call(this,{$ref:ee},!0)}async function V(ee){try{return this._compileSchemaEnv(ee)}catch(fe){if(!(fe instanceof f.default))throw fe;return Q.call(this,fe),await X.call(this,fe.missingSchema),V.call(this,ee)}}function Q({missingSchema:ee,missingRef:fe}){if(this.refs[ee])throw new Error(`AnySchema ${ee} is loaded but ${fe} cannot be resolved`)}async function X(ee){const fe=await te.call(this,ee);this.refs[ee]||await y.call(this,fe.$schema),this.refs[ee]||this.addSchema(fe,ee,z)}async function te(ee){const fe=this._loading[ee];if(fe)return fe;try{return await(this._loading[ee]=D(ee))}finally{delete this._loading[ee]}}}addSchema(T,z,D,s=this.opts.validateSchema){if(Array.isArray(T)){for(const V of T)this.addSchema(V,void 0,D,s);return this}let y;if(typeof T=="object"){const{schemaId:V}=this.opts;if(y=T[V],y!==void 0&&typeof y!="string")throw new Error(`schema ${V} must be string`)}return z=(0,a.normalizeId)(z||y),this._checkUnique(z),this.schemas[z]=this._addSchema(T,D,z,s,!0),this}addMetaSchema(T,z,D=this.opts.validateSchema){return this.addSchema(T,z,!0,D),this}validateSchema(T,z){if(typeof T=="boolean")return!0;let D;if(D=T.$schema,D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this.opts.defaultMeta||this.defaultMeta(),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const s=this.validate(D,T);if(!s&&z){const y="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(y);else throw new Error(y)}return s}getSchema(T){let z;for(;typeof(z=p.call(this,T))=="string";)T=z;if(z===void 0){const{schemaId:D}=this.opts,s=new o.SchemaEnv({schema:{},schemaId:D});if(z=o.resolveSchema.call(this,s,T),!z)return;this.refs[T]=z}return z.validate||this._compileSchemaEnv(z)}removeSchema(T){if(T instanceof RegExp)return this._removeAllSchemas(this.schemas,T),this._removeAllSchemas(this.refs,T),this;switch(typeof T){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const z=p.call(this,T);return typeof z=="object"&&this._cache.delete(z.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const z=T;this._cache.delete(z);let D=T[this.opts.schemaId];return D&&(D=(0,a.normalizeId)(D),delete this.schemas[D],delete this.refs[D]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const z of T)this.addKeyword(z);return this}addKeyword(T,z){let D;if(typeof T=="string")D=T,typeof z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),z.keyword=D);else if(typeof T=="object"&&z===void 0){if(z=T,D=z.keyword,Array.isArray(D)&&!D.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Z.call(this,D,z),!z)return(0,E.eachItem)(D,y=>se.call(this,y)),this;Te.call(this,z);const s={...z,type:(0,l.getJSONTypes)(z.type),schemaType:(0,l.getJSONTypes)(z.schemaType)};return(0,E.eachItem)(D,s.type.length===0?y=>se.call(this,y,s):y=>s.type.forEach(V=>se.call(this,y,s,V))),this}getKeyword(T){const z=this.RULES.all[T];return typeof z=="object"?z.definition:!!z}removeKeyword(T){const{RULES:z}=this;delete z.keywords[T],delete z.all[T];for(const D of z.rules){const s=D.rules.findIndex(y=>y.keyword===T);s>=0&&D.rules.splice(s,1)}return this}addFormat(T,z){return typeof z=="string"&&(z=new RegExp(z)),this.formats[T]=z,this}errorsText(T=this.errors,{separator:z=", ",dataVar:D="data"}={}){return!T||T.length===0?"No errors":T.map(s=>`${D}${s.instancePath} ${s.message}`).reduce((s,y)=>s+z+y)}$dataMetaSchema(T,z){const D=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const s of z){const y=s.split("/").slice(1);let V=T;for(const Q of y)V=V[Q];for(const Q in D){const X=D[Q];if(typeof X!="object")continue;const{$data:te}=X.definition,ee=V[Q];te&&ee&&(V[Q]=oe(ee))}}return T}_removeAllSchemas(T,z){for(const D in T){const s=T[D];(!z||z.test(D))&&(typeof s=="string"?delete T[D]:s&&!s.meta&&(this._cache.delete(s.schema),delete T[D]))}}_addSchema(T,z,D,s=this.opts.validateSchema,y=this.opts.addUsedSchema){let V;const{schemaId:Q}=this.opts;if(typeof T=="object")V=T[Q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof T!="boolean")throw new Error("schema must be object or boolean")}let X=this._cache.get(T);if(X!==void 0)return X;D=(0,a.normalizeId)(V||D);const te=a.getSchemaRefs.call(this,T,D);return X=new o.SchemaEnv({schema:T,schemaId:Q,meta:z,baseId:D,localRefs:te}),this._cache.set(X.schema,X),y&&!D.startsWith("#")&&(D&&this._checkUnique(D),this.refs[D]=X),s&&this.validateSchema(T,!0),X}_checkUnique(T){if(this.schemas[T]||this.refs[T])throw new Error(`schema with key or id "${T}" already exists`)}_compileSchemaEnv(T){if(T.meta?this._compileMetaSchema(T):o.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const z=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,T)}finally{this.opts=z}}}e.default=g,g.ValidationError=v.default,g.MissingRefError=f.default;function R(H,T,z,D="error"){for(const s in H){const y=s;y in T&&this.logger[D](`${z}: option ${s}. ${H[y]}`)}}function p(H){return H=(0,a.normalizeId)(H),this.schemas[H]||this.refs[H]}function m(){const H=this.opts.schemas;if(H)if(Array.isArray(H))this.addSchema(H);else for(const T in H)this.addSchema(H[T],T)}function P(){for(const H in this.opts.formats){const T=this.opts.formats[H];T&&this.addFormat(H,T)}}function F(H){if(Array.isArray(H)){this.addVocabulary(H);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in H){const z=H[T];z.keyword||(z.keyword=T),this.addKeyword(z)}}function L(){const H={...this.opts};for(const T of C)delete H[T];return H}const G={log(){},warn(){},error(){}};function B(H){if(H===!1)return G;if(H===void 0)return console;if(H.log&&H.warn&&H.error)return H;throw new Error("logger must implement log, warn and error methods")}const ue=/^[a-z_$][a-z0-9_$:-]*$/i;function Z(H,T){const{RULES:z}=this;if((0,E.eachItem)(H,D=>{if(z.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!ue.test(D))throw new Error(`Keyword ${D} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function se(H,T,z){var D;const s=T?.post;if(z&&s)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:y}=this;let V=s?y.post:y.rules.find(({type:X})=>X===z);if(V||(V={type:z,rules:[]},y.rules.push(V)),y.keywords[H]=!0,!T)return;const Q={keyword:H,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?_e.call(this,V,Q,T.before):V.rules.push(Q),y.all[H]=Q,(D=T.implements)===null||D===void 0||D.forEach(X=>this.addKeyword(X))}function _e(H,T,z){const D=H.rules.findIndex(s=>s.keyword===z);D>=0?H.rules.splice(D,0,T):(H.rules.push(T),this.logger.warn(`rule ${z} is not defined`))}function Te(H){let{metaSchema:T}=H;T!==void 0&&(H.$data&&this.opts.$data&&(T=oe(T)),H.validateSchema=this.compile(T,!0))}const Oe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function oe(H){return{anyOf:[H,Oe]}}},72725:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(38792);t.code='require("ajv/dist/runtime/equal").default',e.default=t},26308:(J,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){const r=t.length;let v=0,f=0,w;for(;f<r;)v++,w=t.charCodeAt(f++),w>=55296&&w<=56319&&f<r&&(w=t.charCodeAt(f),(w&64512)===56320&&f++);return v}e.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},7903:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(2862);t.code='require("ajv/dist/runtime/uri").default',e.default=t},95031:(J,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}e.default=n},93426:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;const t=n(17898),r=n(50458),f={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,t.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,t._)`{limit: ${o}}`},code(o){const{parentSchema:h,it:a}=o,{items:l}=h;if(!Array.isArray(l)){(0,r.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}w(o,l)}};function w(o,h){const{gen:a,schema:l,data:E,keyword:_,it:N}=o;N.items=!0;const O=a.const("len",(0,t._)`${E}.length`);if(l===!1)o.setParams({len:h.length}),o.pass((0,t._)`${O} <= ${h.length}`);else if(typeof l=="object"&&!(0,r.alwaysValidSchema)(N,l)){const A=a.var("valid",(0,t._)`${O} <= ${h.length}`);a.if((0,t.not)(A),()=>C(A)),o.ok(A)}function C(A){a.forRange("i",h.length,O,u=>{o.subschema({keyword:_,dataProp:u,dataPropType:r.Type.Num},A),N.allErrors||a.if((0,t.not)(A),()=>a.break())})}}e.validateAdditionalItems=w,e.default=f},92697:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(94450),r=n(17898),v=n(63036),f=n(50458),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:h})=>(0,r._)`{additionalProperty: ${h.additionalProperty}}`},code(h){const{gen:a,schema:l,parentSchema:E,data:_,errsCount:N,it:O}=h;if(!N)throw new Error("ajv implementation error");const{allErrors:C,opts:A}=O;if(O.props=!0,A.removeAdditional!=="all"&&(0,f.alwaysValidSchema)(O,l))return;const u=(0,t.allSchemaProperties)(E.properties),i=(0,t.allSchemaProperties)(E.patternProperties);b(),h.ok((0,r._)`${N} === ${v.default.errors}`);function b(){a.forIn("key",_,m=>{!u.length&&!i.length?R(m):a.if(d(m),()=>R(m))})}function d(m){let P;if(u.length>8){const F=(0,f.schemaRefOrVal)(O,E.properties,"properties");P=(0,t.isOwnProperty)(a,F,m)}else u.length?P=(0,r.or)(...u.map(F=>(0,r._)`${m} === ${F}`)):P=r.nil;return i.length&&(P=(0,r.or)(P,...i.map(F=>(0,r._)`${(0,t.usePattern)(h,F)}.test(${m})`))),(0,r.not)(P)}function g(m){a.code((0,r._)`delete ${_}[${m}]`)}function R(m){if(A.removeAdditional==="all"||A.removeAdditional&&l===!1){g(m);return}if(l===!1){h.setParams({additionalProperty:m}),h.error(),C||a.break();return}if(typeof l=="object"&&!(0,f.alwaysValidSchema)(O,l)){const P=a.name("valid");A.removeAdditional==="failing"?(p(m,P,!1),a.if((0,r.not)(P),()=>{h.reset(),g(m)})):(p(m,P),C||a.if((0,r.not)(P),()=>a.break()))}}function p(m,P,F){const L={keyword:"additionalProperties",dataProp:m,dataPropType:f.Type.Str};F===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),h.subschema(L,P)}}};e.default=o},79355:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(50458),r={keyword:"allOf",schemaType:"array",code(v){const{gen:f,schema:w,it:o}=v;if(!Array.isArray(w))throw new Error("ajv implementation error");const h=f.name("valid");w.forEach((a,l)=>{if((0,t.alwaysValidSchema)(o,a))return;const E=v.subschema({keyword:"allOf",schemaProp:l},h);v.ok(h),v.mergeEvaluated(E)})}};e.default=r},19430:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(94450).validateUnion,error:{message:"must match a schema in anyOf"}};e.default=r},35724:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),f={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:w,max:o}})=>o===void 0?(0,t.str)`must contain at least ${w} valid item(s)`:(0,t.str)`must contain at least ${w} and no more than ${o} valid item(s)`,params:({params:{min:w,max:o}})=>o===void 0?(0,t._)`{minContains: ${w}}`:(0,t._)`{minContains: ${w}, maxContains: ${o}}`},code(w){const{gen:o,schema:h,parentSchema:a,data:l,it:E}=w;let _,N;const{minContains:O,maxContains:C}=a;E.opts.next?(_=O===void 0?1:O,N=C):_=1;const A=o.const("len",(0,t._)`${l}.length`);if(w.setParams({min:_,max:N}),N===void 0&&_===0){(0,r.checkStrictMode)(E,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(N!==void 0&&_>N){(0,r.checkStrictMode)(E,'"minContains" > "maxContains" is always invalid'),w.fail();return}if((0,r.alwaysValidSchema)(E,h)){let g=(0,t._)`${A} >= ${_}`;N!==void 0&&(g=(0,t._)`${g} && ${A} <= ${N}`),w.pass(g);return}E.items=!0;const u=o.name("valid");N===void 0&&_===1?b(u,()=>o.if(u,()=>o.break())):_===0?(o.let(u,!0),N!==void 0&&o.if((0,t._)`${l}.length > 0`,i)):(o.let(u,!1),i()),w.result(u,()=>w.reset());function i(){const g=o.name("_valid"),R=o.let("count",0);b(g,()=>o.if(g,()=>d(R)))}function b(g,R){o.forRange("i",0,A,p=>{w.subschema({keyword:"contains",dataProp:p,dataPropType:r.Type.Num,compositeRule:!0},g),R()})}function d(g){o.code((0,t._)`${g}++`),N===void 0?o.if((0,t._)`${g} >= ${_}`,()=>o.assign(u,!0).break()):(o.if((0,t._)`${g} > ${N}`,()=>o.assign(u,!1).break()),_===1?o.assign(u,!0):o.if((0,t._)`${g} >= ${_}`,()=>o.assign(u,!0)))}}};e.default=f},99868:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=n(17898),r=n(50458),v=n(94450);e.error={message:({params:{property:a,depsCount:l,deps:E}})=>{const _=l===1?"property":"properties";return(0,t.str)`must have ${_} ${E} when property ${a} is present`},params:({params:{property:a,depsCount:l,deps:E,missingProperty:_}})=>(0,t._)`{property: ${a},
|
|
6
|
+
missingProperty: ${_},
|
|
7
|
+
depsCount: ${l},
|
|
8
|
+
deps: ${E}}`};const f={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(a){const[l,E]=w(a);o(a,l),h(a,E)}};function w({schema:a}){const l={},E={};for(const _ in a){if(_==="__proto__")continue;const N=Array.isArray(a[_])?l:E;N[_]=a[_]}return[l,E]}function o(a,l=a.schema){const{gen:E,data:_,it:N}=a;if(Object.keys(l).length===0)return;const O=E.let("missing");for(const C in l){const A=l[C];if(A.length===0)continue;const u=(0,v.propertyInData)(E,_,C,N.opts.ownProperties);a.setParams({property:C,depsCount:A.length,deps:A.join(", ")}),N.allErrors?E.if(u,()=>{for(const i of A)(0,v.checkReportMissingProp)(a,i)}):(E.if((0,t._)`${u} && (${(0,v.checkMissingProp)(a,A,O)})`),(0,v.reportMissingProp)(a,O),E.else())}}e.validatePropertyDeps=o;function h(a,l=a.schema){const{gen:E,data:_,keyword:N,it:O}=a,C=E.name("valid");for(const A in l)(0,r.alwaysValidSchema)(O,l[A])||(E.if((0,v.propertyInData)(E,_,A,O.opts.ownProperties),()=>{const u=a.subschema({keyword:N,schemaProp:A},C);a.mergeValidEvaluated(u,C)},()=>E.var(C,!0)),a.ok(C))}e.validateSchemaDeps=h,e.default=f},70510:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),f={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,t.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,t._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:h,parentSchema:a,it:l}=o;a.then===void 0&&a.else===void 0&&(0,r.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const E=w(l,"then"),_=w(l,"else");if(!E&&!_)return;const N=h.let("valid",!0),O=h.name("_valid");if(C(),o.reset(),E&&_){const u=h.let("ifClause");o.setParams({ifClause:u}),h.if(O,A("then",u),A("else",u))}else E?h.if(O,A("then")):h.if((0,t.not)(O),A("else"));o.pass(N,()=>o.error(!0));function C(){const u=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},O);o.mergeEvaluated(u)}function A(u,i){return()=>{const b=o.subschema({keyword:u},O);h.assign(N,O),o.mergeValidEvaluated(b,N),i?h.assign(i,(0,t._)`${u}`):o.setParams({ifClause:u})}}}};function w(o,h){const a=o.schema[h];return a!==void 0&&!(0,r.alwaysValidSchema)(o,a)}e.default=f},18225:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(93426),r=n(61349),v=n(44153),f=n(19753),w=n(35724),o=n(99868),h=n(67486),a=n(92697),l=n(19660),E=n(98422),_=n(65532),N=n(19430),O=n(98768),C=n(79355),A=n(70510),u=n(45255);function i(b=!1){const d=[_.default,N.default,O.default,C.default,A.default,u.default,h.default,a.default,o.default,l.default,E.default];return b?d.push(r.default,f.default):d.push(t.default,v.default),d.push(w.default),d}e.default=i},44153:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;const t=n(17898),r=n(50458),v=n(94450),f={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:h,it:a}=o;if(Array.isArray(h))return w(o,"additionalItems",h);a.items=!0,!(0,r.alwaysValidSchema)(a,h)&&o.ok((0,v.validateArray)(o))}};function w(o,h,a=o.schema){const{gen:l,parentSchema:E,data:_,keyword:N,it:O}=o;u(E),O.opts.unevaluated&&a.length&&O.items!==!0&&(O.items=r.mergeEvaluated.items(l,a.length,O.items));const C=l.name("valid"),A=l.const("len",(0,t._)`${_}.length`);a.forEach((i,b)=>{(0,r.alwaysValidSchema)(O,i)||(l.if((0,t._)`${A} > ${b}`,()=>o.subschema({keyword:N,schemaProp:b,dataProp:b},C)),o.ok(C))});function u(i){const{opts:b,errSchemaPath:d}=O,g=a.length,R=g===i.minItems&&(g===i.maxItems||i[h]===!1);if(b.strictTuples&&!R){const p=`"${N}" is ${g}-tuple, but minItems or maxItems/${h} are not specified or different at path "${d}"`;(0,r.checkStrictMode)(O,p,b.strictTuples)}}}e.validateTuple=w,e.default=f},19753:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),v=n(94450),f=n(93426),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:h}})=>(0,t.str)`must NOT have more than ${h} items`,params:({params:{len:h}})=>(0,t._)`{limit: ${h}}`},code(h){const{schema:a,parentSchema:l,it:E}=h,{prefixItems:_}=l;E.items=!0,!(0,r.alwaysValidSchema)(E,a)&&(_?(0,f.validateAdditionalItems)(h,_):h.ok((0,v.validateArray)(h)))}};e.default=o},65532:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(50458),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(v){const{gen:f,schema:w,it:o}=v;if((0,t.alwaysValidSchema)(o,w)){v.fail();return}const h=f.name("valid");v.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},h),v.failResult(h,()=>v.reset(),()=>v.error())},error:{message:"must NOT be valid"}};e.default=r},98768:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),f={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:w})=>(0,t._)`{passingSchemas: ${w.passing}}`},code(w){const{gen:o,schema:h,parentSchema:a,it:l}=w;if(!Array.isArray(h))throw new Error("ajv implementation error");if(l.opts.discriminator&&a.discriminator)return;const E=h,_=o.let("valid",!1),N=o.let("passing",null),O=o.name("_valid");w.setParams({passing:N}),o.block(C),w.result(_,()=>w.reset(),()=>w.error(!0));function C(){E.forEach((A,u)=>{let i;(0,r.alwaysValidSchema)(l,A)?o.var(O,!0):i=w.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},O),u>0&&o.if((0,t._)`${O} && ${_}`).assign(_,!1).assign(N,(0,t._)`[${N}, ${u}]`).else(),o.if(O,()=>{o.assign(_,!0),o.assign(N,u),i&&w.mergeEvaluated(i,t.Name)})})}}};e.default=f},98422:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(94450),r=n(17898),v=n(50458),f=n(50458),w={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:h,schema:a,data:l,parentSchema:E,it:_}=o,{opts:N}=_,O=(0,t.allSchemaProperties)(a),C=O.filter(R=>(0,v.alwaysValidSchema)(_,a[R]));if(O.length===0||C.length===O.length&&(!_.opts.unevaluated||_.props===!0))return;const A=N.strictSchema&&!N.allowMatchingProperties&&E.properties,u=h.name("valid");_.props!==!0&&!(_.props instanceof r.Name)&&(_.props=(0,f.evaluatedPropsToName)(h,_.props));const{props:i}=_;b();function b(){for(const R of O)A&&d(R),_.allErrors?g(R):(h.var(u,!0),g(R),h.if(u))}function d(R){for(const p in A)new RegExp(R).test(p)&&(0,v.checkStrictMode)(_,`property ${p} matches pattern ${R} (use allowMatchingProperties)`)}function g(R){h.forIn("key",l,p=>{h.if((0,r._)`${(0,t.usePattern)(o,R)}.test(${p})`,()=>{const m=C.includes(R);m||o.subschema({keyword:"patternProperties",schemaProp:R,dataProp:p,dataPropType:f.Type.Str},u),_.opts.unevaluated&&i!==!0?h.assign((0,r._)`${i}[${p}]`,!0):!m&&!_.allErrors&&h.if((0,r.not)(u),()=>h.break())})})}}};e.default=w},61349:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(44153),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:v=>(0,t.validateTuple)(v,"items")};e.default=r},19660:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(96223),r=n(94450),v=n(50458),f=n(92697),w={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:h,schema:a,parentSchema:l,data:E,it:_}=o;_.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&f.default.code(new t.KeywordCxt(_,f.default,"additionalProperties"));const N=(0,r.allSchemaProperties)(a);for(const i of N)_.definedProperties.add(i);_.opts.unevaluated&&N.length&&_.props!==!0&&(_.props=v.mergeEvaluated.props(h,(0,v.toHash)(N),_.props));const O=N.filter(i=>!(0,v.alwaysValidSchema)(_,a[i]));if(O.length===0)return;const C=h.name("valid");for(const i of O)A(i)?u(i):(h.if((0,r.propertyInData)(h,E,i,_.opts.ownProperties)),u(i),_.allErrors||h.else().var(C,!0),h.endIf()),o.it.definedProperties.add(i),o.ok(C);function A(i){return _.opts.useDefaults&&!_.compositeRule&&a[i].default!==void 0}function u(i){o.subschema({keyword:"properties",schemaProp:i,dataProp:i},C)}}};e.default=w},67486:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),f={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:w})=>(0,t._)`{propertyName: ${w.propertyName}}`},code(w){const{gen:o,schema:h,data:a,it:l}=w;if((0,r.alwaysValidSchema)(l,h))return;const E=o.name("valid");o.forIn("key",a,_=>{w.setParams({propertyName:_}),w.subschema({keyword:"propertyNames",data:_,dataTypes:["string"],propertyName:_,compositeRule:!0},E),o.if((0,t.not)(E),()=>{w.error(!0),l.allErrors||o.break()})}),w.ok(E)}};e.default=f},45255:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(50458),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:v,parentSchema:f,it:w}){f.if===void 0&&(0,t.checkStrictMode)(w,`"${v}" without "if" is ignored`)}};e.default=r},94450:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;const t=n(17898),r=n(50458),v=n(63036),f=n(50458);function w(d,g){const{gen:R,data:p,it:m}=d;R.if(_(R,p,g,m.opts.ownProperties),()=>{d.setParams({missingProperty:(0,t._)`${g}`},!0),d.error()})}e.checkReportMissingProp=w;function o({gen:d,data:g,it:{opts:R}},p,m){return(0,t.or)(...p.map(P=>(0,t.and)(_(d,g,P,R.ownProperties),(0,t._)`${m} = ${P}`)))}e.checkMissingProp=o;function h(d,g){d.setParams({missingProperty:g},!0),d.error()}e.reportMissingProp=h;function a(d){return d.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=a;function l(d,g,R){return(0,t._)`${a(d)}.call(${g}, ${R})`}e.isOwnProperty=l;function E(d,g,R,p){const m=(0,t._)`${g}${(0,t.getProperty)(R)} !== undefined`;return p?(0,t._)`${m} && ${l(d,g,R)}`:m}e.propertyInData=E;function _(d,g,R,p){const m=(0,t._)`${g}${(0,t.getProperty)(R)} === undefined`;return p?(0,t.or)(m,(0,t.not)(l(d,g,R))):m}e.noPropertyInData=_;function N(d){return d?Object.keys(d).filter(g=>g!=="__proto__"):[]}e.allSchemaProperties=N;function O(d,g){return N(g).filter(R=>!(0,r.alwaysValidSchema)(d,g[R]))}e.schemaProperties=O;function C({schemaCode:d,data:g,it:{gen:R,topSchemaRef:p,schemaPath:m,errorPath:P},it:F},L,G,B){const ue=B?(0,t._)`${d}, ${g}, ${p}${m}`:g,Z=[[v.default.instancePath,(0,t.strConcat)(v.default.instancePath,P)],[v.default.parentData,F.parentData],[v.default.parentDataProperty,F.parentDataProperty],[v.default.rootData,v.default.rootData]];F.opts.dynamicRef&&Z.push([v.default.dynamicAnchors,v.default.dynamicAnchors]);const se=(0,t._)`${ue}, ${R.object(...Z)}`;return G!==t.nil?(0,t._)`${L}.call(${G}, ${se})`:(0,t._)`${L}(${se})`}e.callValidateCode=C;const A=(0,t._)`new RegExp`;function u({gen:d,it:{opts:g}},R){const p=g.unicodeRegExp?"u":"",{regExp:m}=g.code,P=m(R,p);return d.scopeValue("pattern",{key:P.toString(),ref:P,code:(0,t._)`${m.code==="new RegExp"?A:(0,f.useFunc)(d,m)}(${R}, ${p})`})}e.usePattern=u;function i(d){const{gen:g,data:R,keyword:p,it:m}=d,P=g.name("valid");if(m.allErrors){const L=g.let("valid",!0);return F(()=>g.assign(L,!1)),L}return g.var(P,!0),F(()=>g.break()),P;function F(L){const G=g.const("len",(0,t._)`${R}.length`);g.forRange("i",0,G,B=>{d.subschema({keyword:p,dataProp:B,dataPropType:r.Type.Num},P),g.if((0,t.not)(P),L)})}}e.validateArray=i;function b(d){const{gen:g,schema:R,keyword:p,it:m}=d;if(!Array.isArray(R))throw new Error("ajv implementation error");if(R.some(G=>(0,r.alwaysValidSchema)(m,G))&&!m.opts.unevaluated)return;const F=g.let("valid",!1),L=g.name("_valid");g.block(()=>R.forEach((G,B)=>{const ue=d.subschema({keyword:p,schemaProp:B,compositeRule:!0},L);g.assign(F,(0,t._)`${F} || ${L}`),d.mergeValidEvaluated(ue,L)||g.if((0,t.not)(F))})),d.result(F,()=>d.reset(),()=>d.error(!0))}e.validateUnion=b},73946:(J,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};e.default=n},3839:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(73946),r=n(26138),v=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,r.default];e.default=v},26138:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;const t=n(85748),r=n(94450),v=n(17898),f=n(63036),w=n(49392),o=n(50458),h={keyword:"$ref",schemaType:"string",code(E){const{gen:_,schema:N,it:O}=E,{baseId:C,schemaEnv:A,validateName:u,opts:i,self:b}=O,{root:d}=A;if((N==="#"||N==="#/")&&C===d.baseId)return R();const g=w.resolveRef.call(b,d,C,N);if(g===void 0)throw new t.default(O.opts.uriResolver,C,N);if(g instanceof w.SchemaEnv)return p(g);return m(g);function R(){if(A===d)return l(E,u,A,A.$async);const P=_.scopeValue("root",{ref:d});return l(E,(0,v._)`${P}.validate`,d,d.$async)}function p(P){const F=a(E,P);l(E,F,P,P.$async)}function m(P){const F=_.scopeValue("schema",i.code.source===!0?{ref:P,code:(0,v.stringify)(P)}:{ref:P}),L=_.name("valid"),G=E.subschema({schema:P,dataTypes:[],schemaPath:v.nil,topSchemaRef:F,errSchemaPath:N},L);E.mergeEvaluated(G),E.ok(L)}}};function a(E,_){const{gen:N}=E;return _.validate?N.scopeValue("validate",{ref:_.validate}):(0,v._)`${N.scopeValue("wrapper",{ref:_})}.validate`}e.getValidate=a;function l(E,_,N,O){const{gen:C,it:A}=E,{allErrors:u,schemaEnv:i,opts:b}=A,d=b.passContext?f.default.this:v.nil;O?g():R();function g(){if(!i.$async)throw new Error("async schema referenced by sync schema");const P=C.let("valid");C.try(()=>{C.code((0,v._)`await ${(0,r.callValidateCode)(E,_,d)}`),m(_),u||C.assign(P,!0)},F=>{C.if((0,v._)`!(${F} instanceof ${A.ValidationError})`,()=>C.throw(F)),p(F),u||C.assign(P,!1)}),E.ok(P)}function R(){E.result((0,r.callValidateCode)(E,_,d),()=>m(_),()=>p(_))}function p(P){const F=(0,v._)`${P}.errors`;C.assign(f.default.vErrors,(0,v._)`${f.default.vErrors} === null ? ${F} : ${f.default.vErrors}.concat(${F})`),C.assign(f.default.errors,(0,v._)`${f.default.vErrors}.length`)}function m(P){var F;if(!A.opts.unevaluated)return;const L=(F=N?.validate)===null||F===void 0?void 0:F.evaluated;if(A.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(A.props=o.mergeEvaluated.props(C,L.props,A.props));else{const G=C.var("props",(0,v._)`${P}.evaluated.props`);A.props=o.mergeEvaluated.props(C,G,A.props,v.Name)}if(A.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(A.items=o.mergeEvaluated.items(C,L.items,A.items));else{const G=C.var("items",(0,v._)`${P}.evaluated.items`);A.items=o.mergeEvaluated.items(C,G,A.items,v.Name)}}}e.callRef=l,e.default=h},11672:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(88925),v=n(49392),f=n(50458),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:h,tagName:a}})=>h===r.DiscrError.Tag?`tag "${a}" must be string`:`value of tag "${a}" must be in oneOf`,params:({params:{discrError:h,tag:a,tagName:l}})=>(0,t._)`{error: ${h}, tag: ${l}, tagValue: ${a}}`},code(h){const{gen:a,data:l,schema:E,parentSchema:_,it:N}=h,{oneOf:O}=_;if(!N.opts.discriminator)throw new Error("discriminator: requires discriminator option");const C=E.propertyName;if(typeof C!="string")throw new Error("discriminator: requires propertyName");if(E.mapping)throw new Error("discriminator: mapping is not supported");if(!O)throw new Error("discriminator: requires oneOf keyword");const A=a.let("valid",!1),u=a.const("tag",(0,t._)`${l}${(0,t.getProperty)(C)}`);a.if((0,t._)`typeof ${u} == "string"`,()=>i(),()=>h.error(!1,{discrError:r.DiscrError.Tag,tag:u,tagName:C})),h.ok(A);function i(){const g=d();a.if(!1);for(const R in g)a.elseIf((0,t._)`${u} === ${R}`),a.assign(A,b(g[R]));a.else(),h.error(!1,{discrError:r.DiscrError.Mapping,tag:u,tagName:C}),a.endIf()}function b(g){const R=a.name("valid"),p=h.subschema({keyword:"oneOf",schemaProp:g},R);return h.mergeEvaluated(p,t.Name),R}function d(){var g;const R={},p=P(_);let m=!0;for(let G=0;G<O.length;G++){let B=O[G];B?.$ref&&!(0,f.schemaHasRulesButRef)(B,N.self.RULES)&&(B=v.resolveRef.call(N.self,N.schemaEnv.root,N.baseId,B?.$ref),B instanceof v.SchemaEnv&&(B=B.schema));const ue=(g=B?.properties)===null||g===void 0?void 0:g[C];if(typeof ue!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${C}"`);m=m&&(p||P(B)),F(ue,G)}if(!m)throw new Error(`discriminator: "${C}" must be required`);return R;function P({required:G}){return Array.isArray(G)&&G.includes(C)}function F(G,B){if(G.const)L(G.const,B);else if(G.enum)for(const ue of G.enum)L(ue,B);else throw new Error(`discriminator: "properties/${C}" must have "const" or "enum"`)}function L(G,B){if(typeof G!="string"||G in R)throw new Error(`discriminator: "${C}" values must be unique strings`);R[G]=B}}}};e.default=o},88925:(J,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var n;(function(t){t.Tag="tag",t.Mapping="mapping"})(n=e.DiscrError||(e.DiscrError={}))},2431:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(3839),r=n(17851),v=n(18225),f=n(26699),w=n(34882),o=[t.default,r.default,(0,v.default)(),f.default,w.metadataVocabulary,w.contentVocabulary];e.default=o},37072:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),v={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:f})=>(0,t.str)`must match format "${f}"`,params:({schemaCode:f})=>(0,t._)`{format: ${f}}`},code(f,w){const{gen:o,data:h,$data:a,schema:l,schemaCode:E,it:_}=f,{opts:N,errSchemaPath:O,schemaEnv:C,self:A}=_;if(!N.validateFormats)return;a?u():i();function u(){const b=o.scopeValue("formats",{ref:A.formats,code:N.code.formats}),d=o.const("fDef",(0,t._)`${b}[${E}]`),g=o.let("fType"),R=o.let("format");o.if((0,t._)`typeof ${d} == "object" && !(${d} instanceof RegExp)`,()=>o.assign(g,(0,t._)`${d}.type || "string"`).assign(R,(0,t._)`${d}.validate`),()=>o.assign(g,(0,t._)`"string"`).assign(R,d)),f.fail$data((0,t.or)(p(),m()));function p(){return N.strictSchema===!1?t.nil:(0,t._)`${E} && !${R}`}function m(){const P=C.$async?(0,t._)`(${d}.async ? await ${R}(${h}) : ${R}(${h}))`:(0,t._)`${R}(${h})`,F=(0,t._)`(typeof ${R} == "function" ? ${P} : ${R}.test(${h}))`;return(0,t._)`${R} && ${R} !== true && ${g} === ${w} && !${F}`}}function i(){const b=A.formats[l];if(!b){p();return}if(b===!0)return;const[d,g,R]=m(b);d===w&&f.pass(P());function p(){if(N.strictSchema===!1){A.logger.warn(F());return}throw new Error(F());function F(){return`unknown format "${l}" ignored in schema at path "${O}"`}}function m(F){const L=F instanceof RegExp?(0,t.regexpCode)(F):N.code.formats?(0,t._)`${N.code.formats}${(0,t.getProperty)(l)}`:void 0,G=o.scopeValue("formats",{key:l,ref:F,code:L});return typeof F=="object"&&!(F instanceof RegExp)?[F.type||"string",F.validate,(0,t._)`${G}.validate`]:["string",F,G]}function P(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!C.$async)throw new Error("async format in sync schema");return(0,t._)`await ${R}(${h})`}return typeof g=="function"?(0,t._)`${R}(${h})`:(0,t._)`${R}.test(${h})`}}}};e.default=v},26699:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=[n(37072).default];e.default=r},34882:(J,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},79520:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),v=n(72725),w={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,t._)`{allowedValue: ${o}}`},code(o){const{gen:h,data:a,$data:l,schemaCode:E,schema:_}=o;l||_&&typeof _=="object"?o.fail$data((0,t._)`!${(0,r.useFunc)(h,v.default)}(${a}, ${E})`):o.fail((0,t._)`${_} !== ${a}`)}};e.default=w},36742:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),v=n(72725),w={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,t._)`{allowedValues: ${o}}`},code(o){const{gen:h,data:a,$data:l,schema:E,schemaCode:_,it:N}=o;if(!l&&E.length===0)throw new Error("enum must have non-empty array");const O=E.length>=N.opts.loopEnum;let C;const A=()=>C??(C=(0,r.useFunc)(h,v.default));let u;if(O||l)u=h.let("valid"),o.block$data(u,i);else{if(!Array.isArray(E))throw new Error("ajv implementation error");const d=h.const("vSchema",_);u=(0,t.or)(...E.map((g,R)=>b(d,R)))}o.pass(u);function i(){h.assign(u,!1),h.forOf("v",_,d=>h.if((0,t._)`${A()}(${a}, ${d})`,()=>h.assign(u,!0).break()))}function b(d,g){const R=E[g];return typeof R=="object"&&R!==null?(0,t._)`${A()}(${a}, ${d}[${g}])`:(0,t._)`${a} === ${R}`}}};e.default=w},17851:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(72333),r=n(21230),v=n(3936),f=n(81005),w=n(71589),o=n(29594),h=n(38558),a=n(44058),l=n(79520),E=n(36742),_=[t.default,r.default,v.default,f.default,w.default,o.default,h.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,E.default];e.default=_},38558:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),v={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:f,schemaCode:w}){const o=f==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${w} items`},params:({schemaCode:f})=>(0,t._)`{limit: ${f}}`},code(f){const{keyword:w,data:o,schemaCode:h}=f,a=w==="maxItems"?t.operators.GT:t.operators.LT;f.fail$data((0,t._)`${o}.length ${a} ${h}`)}};e.default=v},3936:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),v=n(26308),w={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:h}){const a=o==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${a} than ${h} characters`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){const{keyword:h,data:a,schemaCode:l,it:E}=o,_=h==="maxLength"?t.operators.GT:t.operators.LT,N=E.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,r.useFunc)(o.gen,v.default)}(${a})`;o.fail$data((0,t._)`${N} ${_} ${l}`)}};e.default=w},72333:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=t.operators,v={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},f={message:({keyword:o,schemaCode:h})=>(0,t.str)`must be ${v[o].okStr} ${h}`,params:({keyword:o,schemaCode:h})=>(0,t._)`{comparison: ${v[o].okStr}, limit: ${h}}`},w={keyword:Object.keys(v),type:"number",schemaType:"number",$data:!0,error:f,code(o){const{keyword:h,data:a,schemaCode:l}=o;o.fail$data((0,t._)`${a} ${v[h].fail} ${l} || isNaN(${a})`)}};e.default=w},71589:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),v={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:f,schemaCode:w}){const o=f==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${w} properties`},params:({schemaCode:f})=>(0,t._)`{limit: ${f}}`},code(f){const{keyword:w,data:o,schemaCode:h}=f,a=w==="maxProperties"?t.operators.GT:t.operators.LT;f.fail$data((0,t._)`Object.keys(${o}).length ${a} ${h}`)}};e.default=v},21230:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),v={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:f})=>(0,t.str)`must be multiple of ${f}`,params:({schemaCode:f})=>(0,t._)`{multipleOf: ${f}}`},code(f){const{gen:w,data:o,schemaCode:h,it:a}=f,l=a.opts.multipleOfPrecision,E=w.let("res"),_=l?(0,t._)`Math.abs(Math.round(${E}) - ${E}) > 1e-${l}`:(0,t._)`${E} !== parseInt(${E})`;f.fail$data((0,t._)`(${h} === 0 || (${E} = ${o}/${h}, ${_}))`)}};e.default=v},81005:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(94450),r=n(17898),f={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:w})=>(0,r.str)`must match pattern "${w}"`,params:({schemaCode:w})=>(0,r._)`{pattern: ${w}}`},code(w){const{data:o,$data:h,schema:a,schemaCode:l,it:E}=w,_=E.opts.unicodeRegExp?"u":"",N=h?(0,r._)`(new RegExp(${l}, ${_}))`:(0,t.usePattern)(w,a);w.fail$data((0,r._)`!${N}.test(${o})`)}};e.default=f},29594:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(94450),r=n(17898),v=n(50458),w={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:o}})=>(0,r.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,r._)`{missingProperty: ${o}}`},code(o){const{gen:h,schema:a,schemaCode:l,data:E,$data:_,it:N}=o,{opts:O}=N;if(!_&&a.length===0)return;const C=a.length>=O.loopRequired;if(N.allErrors?A():u(),O.strictRequired){const d=o.parentSchema.properties,{definedProperties:g}=o.it;for(const R of a)if(d?.[R]===void 0&&!g.has(R)){const p=N.schemaEnv.baseId+N.errSchemaPath,m=`required property "${R}" is not defined at "${p}" (strictRequired)`;(0,v.checkStrictMode)(N,m,N.opts.strictRequired)}}function A(){if(C||_)o.block$data(r.nil,i);else for(const d of a)(0,t.checkReportMissingProp)(o,d)}function u(){const d=h.let("missing");if(C||_){const g=h.let("valid",!0);o.block$data(g,()=>b(d,g)),o.ok(g)}else h.if((0,t.checkMissingProp)(o,a,d)),(0,t.reportMissingProp)(o,d),h.else()}function i(){h.forOf("prop",l,d=>{o.setParams({missingProperty:d}),h.if((0,t.noPropertyInData)(h,E,d,O.ownProperties),()=>o.error())})}function b(d,g){o.setParams({missingProperty:d}),h.forOf(d,l,()=>{h.assign(g,(0,t.propertyInData)(h,E,d,O.ownProperties)),h.if((0,r.not)(g),()=>{o.error(),h.break()})},r.nil)}}};e.default=w},44058:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(69003),r=n(17898),v=n(50458),f=n(72725),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:h,j:a}})=>(0,r.str)`must NOT have duplicate items (items ## ${a} and ${h} are identical)`,params:({params:{i:h,j:a}})=>(0,r._)`{i: ${h}, j: ${a}}`},code(h){const{gen:a,data:l,$data:E,schema:_,parentSchema:N,schemaCode:O,it:C}=h;if(!E&&!_)return;const A=a.let("valid"),u=N.items?(0,t.getSchemaTypes)(N.items):[];h.block$data(A,i,(0,r._)`${O} === false`),h.ok(A);function i(){const R=a.let("i",(0,r._)`${l}.length`),p=a.let("j");h.setParams({i:R,j:p}),a.assign(A,!0),a.if((0,r._)`${R} > 1`,()=>(b()?d:g)(R,p))}function b(){return u.length>0&&!u.some(R=>R==="object"||R==="array")}function d(R,p){const m=a.name("item"),P=(0,t.checkDataTypes)(u,m,C.opts.strictNumbers,t.DataType.Wrong),F=a.const("indices",(0,r._)`{}`);a.for((0,r._)`;${R}--;`,()=>{a.let(m,(0,r._)`${l}[${R}]`),a.if(P,(0,r._)`continue`),u.length>1&&a.if((0,r._)`typeof ${m} == "string"`,(0,r._)`${m} += "_"`),a.if((0,r._)`typeof ${F}[${m}] == "number"`,()=>{a.assign(p,(0,r._)`${F}[${m}]`),h.error(),a.assign(A,!1).break()}).code((0,r._)`${F}[${m}] = ${R}`)})}function g(R,p){const m=(0,v.useFunc)(a,f.default),P=a.name("outer");a.label(P).for((0,r._)`;${R}--;`,()=>a.for((0,r._)`${p} = ${R}; ${p}--;`,()=>a.if((0,r._)`${m}(${l}[${R}], ${l}[${p}])`,()=>{h.error(),a.assign(A,!1).break(P)})))}}};e.default=o},38792:J=>{"use strict";J.exports=function e(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){if(n.constructor!==t.constructor)return!1;var r,v,f;if(Array.isArray(n)){if(r=n.length,r!=t.length)return!1;for(v=r;v--!==0;)if(!e(n[v],t[v]))return!1;return!0}if(n.constructor===RegExp)return n.source===t.source&&n.flags===t.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===t.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===t.toString();if(f=Object.keys(n),r=f.length,r!==Object.keys(t).length)return!1;for(v=r;v--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[v]))return!1;for(v=r;v--!==0;){var w=f[v];if(!e(n[w],t[w]))return!1}return!0}return n!==n&&t!==t}},1645:J=>{"use strict";var e=J.exports=function(r,v,f){typeof v=="function"&&(f=v,v={}),f=v.cb||f;var w=typeof f=="function"?f:f.pre||function(){},o=f.post||function(){};n(v,w,o,r,"",r)};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 n(r,v,f,w,o,h,a,l,E,_){if(w&&typeof w=="object"&&!Array.isArray(w)){v(w,o,h,a,l,E,_);for(var N in w){var O=w[N];if(Array.isArray(O)){if(N in e.arrayKeywords)for(var C=0;C<O.length;C++)n(r,v,f,O[C],o+"/"+N+"/"+C,h,o,N,w,C)}else if(N in e.propsKeywords){if(O&&typeof O=="object")for(var A in O)n(r,v,f,O[A],o+"/"+N+"/"+t(A),h,o,N,w,A)}else(N in e.keywords||r.allKeys&&!(N in e.skipKeywords))&&n(r,v,f,O,o+"/"+N,h,o,N,w)}f(w,o,h,a,l,E,_)}}function t(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}},91638:(J,e,n)=>{"use strict";var t;t={value:!0};var r=n(85608),v=n(14041),f=r.__importDefault(n(5030));function w(o,h){h===void 0&&(h=[]);var a=f.default(o,h,{loading:!0}),l=a[0],E=a[1];return v.useEffect(function(){E()},[E]),l}e.A=w},5030:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=n(85608),r=n(14041),v=t.__importDefault(n(10009));function f(w,o,h){o===void 0&&(o=[]),h===void 0&&(h={loading:!1});var a=r.useRef(0),l=v.default(),E=r.useState(h),_=E[0],N=E[1],O=r.useCallback(function(){for(var C=[],A=0;A<arguments.length;A++)C[A]=arguments[A];var u=++a.current;return _.loading||N(function(i){return t.__assign(t.__assign({},i),{loading:!0})}),w.apply(void 0,C).then(function(i){return l()&&u===a.current&&N({value:i,loading:!1}),i},function(i){return l()&&u===a.current&&N({error:i,loading:!1}),i})},o);return[_,O]}e.default=f},10009:(J,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=n(14041);function r(){var v=t.useRef(!1),f=t.useCallback(function(){return v.current},[]);return t.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]),f}e.default=r},2862:function(J,e){/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(n,t){t(e)})(this,function(n){"use strict";function t(){for(var $=arguments.length,c=Array($),S=0;S<$;S++)c[S]=arguments[S];if(c.length>1){c[0]=c[0].slice(0,-1);for(var M=c.length-1,k=1;k<M;++k)c[k]=c[k].slice(1,-1);return c[M]=c[M].slice(1),c.join("")}else return c[0]}function r($){return"(?:"+$+")"}function v($){return $===void 0?"undefined":$===null?"null":Object.prototype.toString.call($).split(" ").pop().split("]").shift().toLowerCase()}function f($){return $.toUpperCase()}function w($){return $!=null?$ instanceof Array?$:typeof $.length!="number"||$.split||$.setInterval||$.call?[$]:Array.prototype.slice.call($):[]}function o($,c){var S=$;if(c)for(var M in c)S[M]=c[M];return S}function h($){var c="[A-Za-z]",S="[\\x0D]",M="[0-9]",k="[\\x22]",W=t(M,"[A-Fa-f]"),x="[\\x0A]",ne="[\\x20]",ie=r(r("%[EFef]"+W+"%"+W+W+"%"+W+W)+"|"+r("%[89A-Fa-f]"+W+"%"+W+W)+"|"+r("%"+W+W)),$e="[\\:\\/\\?\\#\\[\\]\\@]",re="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",me=t($e,re),Ee=$?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",he=$?"[\\uE000-\\uF8FF]":"[]",ae=t(c,M,"[\\-\\.\\_\\~]",Ee),pe=r(c+t(c,M,"[\\+\\-\\.]")+"*"),ce=r(r(ie+"|"+t(ae,re,"[\\:]"))+"*"),Ue=r(r("25[0-5]")+"|"+r("2[0-4]"+M)+"|"+r("1"+M+M)+"|"+r("[1-9]"+M)+"|"+M),Pe=r(r("25[0-5]")+"|"+r("2[0-4]"+M)+"|"+r("1"+M+M)+"|"+r("0?[1-9]"+M)+"|0?0?"+M),Re=r(Pe+"\\."+Pe+"\\."+Pe+"\\."+Pe),le=r(W+"{1,4}"),Ne=r(r(le+"\\:"+le)+"|"+Re),Ce=r(r(le+"\\:")+"{6}"+Ne),Ae=r("\\:\\:"+r(le+"\\:")+"{5}"+Ne),ze=r(r(le)+"?\\:\\:"+r(le+"\\:")+"{4}"+Ne),je=r(r(r(le+"\\:")+"{0,1}"+le)+"?\\:\\:"+r(le+"\\:")+"{3}"+Ne),qe=r(r(r(le+"\\:")+"{0,2}"+le)+"?\\:\\:"+r(le+"\\:")+"{2}"+Ne),at=r(r(r(le+"\\:")+"{0,3}"+le)+"?\\:\\:"+le+"\\:"+Ne),st=r(r(r(le+"\\:")+"{0,4}"+le)+"?\\:\\:"+Ne),He=r(r(r(le+"\\:")+"{0,5}"+le)+"?\\:\\:"+le),Ge=r(r(r(le+"\\:")+"{0,6}"+le)+"?\\:\\:"),De=r([Ce,Ae,ze,je,qe,at,st,He,Ge].join("|")),Je=r(r(ae+"|"+ie)+"+"),ut=r(De+"\\%25"+Je),Le=r(De+r("\\%25|\\%(?!"+W+"{2})")+Je),At=r("[vV]"+W+"+\\."+t(ae,re,"[\\:]")+"+"),jt=r("\\["+r(Le+"|"+De+"|"+At)+"\\]"),yt=r(r(ie+"|"+t(ae,re))+"*"),xe=r(jt+"|"+Re+"(?!"+yt+")|"+yt),et=r(M+"*"),vt=r(r(ce+"@")+"?"+xe+r("\\:"+et)+"?"),tt=r(ie+"|"+t(ae,re,"[\\:\\@]")),Dt=r(tt+"*"),gt=r(tt+"+"),Mt=r(r(ie+"|"+t(ae,re,"[\\@]"))+"+"),Me=r(r("\\/"+Dt)+"*"),Be=r("\\/"+r(gt+Me)+"?"),ct=r(Mt+Me),ot=r(gt+Me),We="(?!"+tt+")",Ut=r(Me+"|"+Be+"|"+ct+"|"+ot+"|"+We),Qe=r(r(tt+"|"+t("[\\/\\?]",he))+"*"),rt=r(r(tt+"|[\\/\\?]")+"*"),$t=r(r("\\/\\/"+vt+Me)+"|"+Be+"|"+ot+"|"+We),kt=r(pe+"\\:"+$t+r("\\?"+Qe)+"?"+r("\\#"+rt)+"?"),Vt=r(r("\\/\\/"+vt+Me)+"|"+Be+"|"+ct+"|"+We),Ft=r(Vt+r("\\?"+Qe)+"?"+r("\\#"+rt)+"?"),zt=r(kt+"|"+Ft),Lt=r(pe+"\\:"+$t+r("\\?"+Qe)+"?"),Kt="^("+pe+")\\:"+r(r("\\/\\/("+r("("+ce+")@")+"?("+xe+")"+r("\\:("+et+")")+"?)")+"?("+Me+"|"+Be+"|"+ot+"|"+We+")")+r("\\?("+Qe+")")+"?"+r("\\#("+rt+")")+"?$",Ht="^(){0}"+r(r("\\/\\/("+r("("+ce+")@")+"?("+xe+")"+r("\\:("+et+")")+"?)")+"?("+Me+"|"+Be+"|"+ct+"|"+We+")")+r("\\?("+Qe+")")+"?"+r("\\#("+rt+")")+"?$",Gt="^("+pe+")\\:"+r(r("\\/\\/("+r("("+ce+")@")+"?("+xe+")"+r("\\:("+et+")")+"?)")+"?("+Me+"|"+Be+"|"+ot+"|"+We+")")+r("\\?("+Qe+")")+"?$",Jt="^"+r("\\#("+rt+")")+"?$",Bt="^"+r("("+ce+")@")+"?("+xe+")"+r("\\:("+et+")")+"?$";return{NOT_SCHEME:new RegExp(t("[^]",c,M,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",ae,re),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",ae,re),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",ae,re),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",ae,re),"g"),NOT_QUERY:new RegExp(t("[^\\%]",ae,re,"[\\:\\@\\/\\?]",he),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",ae,re,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",ae,re),"g"),UNRESERVED:new RegExp(ae,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",ae,me),"g"),PCT_ENCODED:new RegExp(ie,"g"),IPV4ADDRESS:new RegExp("^("+Re+")$"),IPV6ADDRESS:new RegExp("^\\[?("+De+")"+r(r("\\%25|\\%(?!"+W+"{2})")+"("+Je+")")+"?\\]?$")}}var a=h(!1),l=h(!0),E=function(){function $(c,S){var M=[],k=!0,W=!1,x=void 0;try{for(var ne=c[Symbol.iterator](),ie;!(k=(ie=ne.next()).done)&&(M.push(ie.value),!(S&&M.length===S));k=!0);}catch($e){W=!0,x=$e}finally{try{!k&&ne.return&&ne.return()}finally{if(W)throw x}}return M}return function(c,S){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return $(c,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function($){if(Array.isArray($)){for(var c=0,S=Array($.length);c<$.length;c++)S[c]=$[c];return S}else return Array.from($)},N=2147483647,O=36,C=1,A=26,u=38,i=700,b=72,d=128,g="-",R=/^xn--/,p=/[^\0-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=O-C,L=Math.floor,G=String.fromCharCode;function B($){throw new RangeError(P[$])}function ue($,c){for(var S=[],M=$.length;M--;)S[M]=c($[M]);return S}function Z($,c){var S=$.split("@"),M="";S.length>1&&(M=S[0]+"@",$=S[1]),$=$.replace(m,".");var k=$.split("."),W=ue(k,c).join(".");return M+W}function se($){for(var c=[],S=0,M=$.length;S<M;){var k=$.charCodeAt(S++);if(k>=55296&&k<=56319&&S<M){var W=$.charCodeAt(S++);(W&64512)==56320?c.push(((k&1023)<<10)+(W&1023)+65536):(c.push(k),S--)}else c.push(k)}return c}var _e=function(c){return String.fromCodePoint.apply(String,_(c))},Te=function(c){return c-48<10?c-22:c-65<26?c-65:c-97<26?c-97:O},Oe=function(c,S){return c+22+75*(c<26)-((S!=0)<<5)},oe=function(c,S,M){var k=0;for(c=M?L(c/i):c>>1,c+=L(c/S);c>F*A>>1;k+=O)c=L(c/F);return L(k+(F+1)*c/(c+u))},H=function(c){var S=[],M=c.length,k=0,W=d,x=b,ne=c.lastIndexOf(g);ne<0&&(ne=0);for(var ie=0;ie<ne;++ie)c.charCodeAt(ie)>=128&&B("not-basic"),S.push(c.charCodeAt(ie));for(var $e=ne>0?ne+1:0;$e<M;){for(var re=k,me=1,Ee=O;;Ee+=O){$e>=M&&B("invalid-input");var he=Te(c.charCodeAt($e++));(he>=O||he>L((N-k)/me))&&B("overflow"),k+=he*me;var ae=Ee<=x?C:Ee>=x+A?A:Ee-x;if(he<ae)break;var pe=O-ae;me>L(N/pe)&&B("overflow"),me*=pe}var ce=S.length+1;x=oe(k-re,ce,re==0),L(k/ce)>N-W&&B("overflow"),W+=L(k/ce),k%=ce,S.splice(k++,0,W)}return String.fromCodePoint.apply(String,S)},T=function(c){var S=[];c=se(c);var M=c.length,k=d,W=0,x=b,ne=!0,ie=!1,$e=void 0;try{for(var re=c[Symbol.iterator](),me;!(ne=(me=re.next()).done);ne=!0){var Ee=me.value;Ee<128&&S.push(G(Ee))}}catch(Le){ie=!0,$e=Le}finally{try{!ne&&re.return&&re.return()}finally{if(ie)throw $e}}var he=S.length,ae=he;for(he&&S.push(g);ae<M;){var pe=N,ce=!0,Ue=!1,Pe=void 0;try{for(var Re=c[Symbol.iterator](),le;!(ce=(le=Re.next()).done);ce=!0){var Ne=le.value;Ne>=k&&Ne<pe&&(pe=Ne)}}catch(Le){Ue=!0,Pe=Le}finally{try{!ce&&Re.return&&Re.return()}finally{if(Ue)throw Pe}}var Ce=ae+1;pe-k>L((N-W)/Ce)&&B("overflow"),W+=(pe-k)*Ce,k=pe;var Ae=!0,ze=!1,je=void 0;try{for(var qe=c[Symbol.iterator](),at;!(Ae=(at=qe.next()).done);Ae=!0){var st=at.value;if(st<k&&++W>N&&B("overflow"),st==k){for(var He=W,Ge=O;;Ge+=O){var De=Ge<=x?C:Ge>=x+A?A:Ge-x;if(He<De)break;var Je=He-De,ut=O-De;S.push(G(Oe(De+Je%ut,0))),He=L(Je/ut)}S.push(G(Oe(He,0))),x=oe(W,Ce,ae==he),W=0,++ae}}}catch(Le){ze=!0,je=Le}finally{try{!Ae&&qe.return&&qe.return()}finally{if(ze)throw je}}++W,++k}return S.join("")},z=function(c){return Z(c,function(S){return R.test(S)?H(S.slice(4).toLowerCase()):S})},D=function(c){return Z(c,function(S){return p.test(S)?"xn--"+T(S):S})},s={version:"2.1.0",ucs2:{decode:se,encode:_e},decode:H,encode:T,toASCII:D,toUnicode:z},y={};function V($){var c=$.charCodeAt(0),S=void 0;return c<16?S="%0"+c.toString(16).toUpperCase():c<128?S="%"+c.toString(16).toUpperCase():c<2048?S="%"+(c>>6|192).toString(16).toUpperCase()+"%"+(c&63|128).toString(16).toUpperCase():S="%"+(c>>12|224).toString(16).toUpperCase()+"%"+(c>>6&63|128).toString(16).toUpperCase()+"%"+(c&63|128).toString(16).toUpperCase(),S}function Q($){for(var c="",S=0,M=$.length;S<M;){var k=parseInt($.substr(S+1,2),16);if(k<128)c+=String.fromCharCode(k),S+=3;else if(k>=194&&k<224){if(M-S>=6){var W=parseInt($.substr(S+4,2),16);c+=String.fromCharCode((k&31)<<6|W&63)}else c+=$.substr(S,6);S+=6}else if(k>=224){if(M-S>=9){var x=parseInt($.substr(S+4,2),16),ne=parseInt($.substr(S+7,2),16);c+=String.fromCharCode((k&15)<<12|(x&63)<<6|ne&63)}else c+=$.substr(S,9);S+=9}else c+=$.substr(S,3),S+=3}return c}function X($,c){function S(M){var k=Q(M);return k.match(c.UNRESERVED)?k:M}return $.scheme&&($.scheme=String($.scheme).replace(c.PCT_ENCODED,S).toLowerCase().replace(c.NOT_SCHEME,"")),$.userinfo!==void 0&&($.userinfo=String($.userinfo).replace(c.PCT_ENCODED,S).replace(c.NOT_USERINFO,V).replace(c.PCT_ENCODED,f)),$.host!==void 0&&($.host=String($.host).replace(c.PCT_ENCODED,S).toLowerCase().replace(c.NOT_HOST,V).replace(c.PCT_ENCODED,f)),$.path!==void 0&&($.path=String($.path).replace(c.PCT_ENCODED,S).replace($.scheme?c.NOT_PATH:c.NOT_PATH_NOSCHEME,V).replace(c.PCT_ENCODED,f)),$.query!==void 0&&($.query=String($.query).replace(c.PCT_ENCODED,S).replace(c.NOT_QUERY,V).replace(c.PCT_ENCODED,f)),$.fragment!==void 0&&($.fragment=String($.fragment).replace(c.PCT_ENCODED,S).replace(c.NOT_FRAGMENT,V).replace(c.PCT_ENCODED,f)),$}function te($){return $.replace(/^0*(.*)/,"$1")||"0"}function ee($,c){var S=$.match(c.IPV4ADDRESS)||[],M=E(S,2),k=M[1];return k?k.split(".").map(te).join("."):$}function fe($,c){var S=$.match(c.IPV6ADDRESS)||[],M=E(S,3),k=M[1],W=M[2];if(k){for(var x=k.toLowerCase().split("::").reverse(),ne=E(x,2),ie=ne[0],$e=ne[1],re=$e?$e.split(":").map(te):[],me=ie.split(":").map(te),Ee=c.IPV4ADDRESS.test(me[me.length-1]),he=Ee?7:8,ae=me.length-he,pe=Array(he),ce=0;ce<he;++ce)pe[ce]=re[ce]||me[ae+ce]||"";Ee&&(pe[he-1]=ee(pe[he-1],c));var Ue=pe.reduce(function(Ce,Ae,ze){if(!Ae||Ae==="0"){var je=Ce[Ce.length-1];je&&je.index+je.length===ze?je.length++:Ce.push({index:ze,length:1})}return Ce},[]),Pe=Ue.sort(function(Ce,Ae){return Ae.length-Ce.length})[0],Re=void 0;if(Pe&&Pe.length>1){var le=pe.slice(0,Pe.index),Ne=pe.slice(Pe.index+Pe.length);Re=le.join(":")+"::"+Ne.join(":")}else Re=pe.join(":");return W&&(Re+="%"+W),Re}else return $}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,j="".match(/(){0}/)[1]===void 0;function U($){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S={},M=c.iri!==!1?l:a;c.reference==="suffix"&&($=(c.scheme?c.scheme+":":"")+"//"+$);var k=$.match(I);if(k){j?(S.scheme=k[1],S.userinfo=k[3],S.host=k[4],S.port=parseInt(k[5],10),S.path=k[6]||"",S.query=k[7],S.fragment=k[8],isNaN(S.port)&&(S.port=k[5])):(S.scheme=k[1]||void 0,S.userinfo=$.indexOf("@")!==-1?k[3]:void 0,S.host=$.indexOf("//")!==-1?k[4]:void 0,S.port=parseInt(k[5],10),S.path=k[6]||"",S.query=$.indexOf("?")!==-1?k[7]:void 0,S.fragment=$.indexOf("#")!==-1?k[8]:void 0,isNaN(S.port)&&(S.port=$.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?k[4]:void 0)),S.host&&(S.host=fe(ee(S.host,M),M)),S.scheme===void 0&&S.userinfo===void 0&&S.host===void 0&&S.port===void 0&&!S.path&&S.query===void 0?S.reference="same-document":S.scheme===void 0?S.reference="relative":S.fragment===void 0?S.reference="absolute":S.reference="uri",c.reference&&c.reference!=="suffix"&&c.reference!==S.reference&&(S.error=S.error||"URI is not a "+c.reference+" reference.");var W=y[(c.scheme||S.scheme||"").toLowerCase()];if(!c.unicodeSupport&&(!W||!W.unicodeSupport)){if(S.host&&(c.domainHost||W&&W.domainHost))try{S.host=s.toASCII(S.host.replace(M.PCT_ENCODED,Q).toLowerCase())}catch(x){S.error=S.error||"Host's domain name can not be converted to ASCII via punycode: "+x}X(S,a)}else X(S,M);W&&W.parse&&W.parse(S,c)}else S.error=S.error||"URI can not be parsed.";return S}function K($,c){var S=c.iri!==!1?l:a,M=[];return $.userinfo!==void 0&&(M.push($.userinfo),M.push("@")),$.host!==void 0&&M.push(fe(ee(String($.host),S),S).replace(S.IPV6ADDRESS,function(k,W,x){return"["+W+(x?"%25"+x:"")+"]"})),(typeof $.port=="number"||typeof $.port=="string")&&(M.push(":"),M.push(String($.port))),M.length?M.join(""):void 0}var Y=/^\.\.?\//,q=/^\/\.(\/|$)/,ve=/^\/\.\.(\/|$)/,Se=/^\/?(?:.|\n)*?(?=\/|$)/;function ye($){for(var c=[];$.length;)if($.match(Y))$=$.replace(Y,"");else if($.match(q))$=$.replace(q,"/");else if($.match(ve))$=$.replace(ve,"/"),c.pop();else if($==="."||$==="..")$="";else{var S=$.match(Se);if(S){var M=S[0];$=$.slice(M.length),c.push(M)}else throw new Error("Unexpected dot segment condition")}return c.join("")}function de($){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=c.iri?l:a,M=[],k=y[(c.scheme||$.scheme||"").toLowerCase()];if(k&&k.serialize&&k.serialize($,c),$.host&&!S.IPV6ADDRESS.test($.host)){if(c.domainHost||k&&k.domainHost)try{$.host=c.iri?s.toUnicode($.host):s.toASCII($.host.replace(S.PCT_ENCODED,Q).toLowerCase())}catch(ne){$.error=$.error||"Host's domain name can not be converted to "+(c.iri?"Unicode":"ASCII")+" via punycode: "+ne}}X($,S),c.reference!=="suffix"&&$.scheme&&(M.push($.scheme),M.push(":"));var W=K($,c);if(W!==void 0&&(c.reference!=="suffix"&&M.push("//"),M.push(W),$.path&&$.path.charAt(0)!=="/"&&M.push("/")),$.path!==void 0){var x=$.path;!c.absolutePath&&(!k||!k.absolutePath)&&(x=ye(x)),W===void 0&&(x=x.replace(/^\/\//,"/%2F")),M.push(x)}return $.query!==void 0&&(M.push("?"),M.push($.query)),$.fragment!==void 0&&(M.push("#"),M.push($.fragment)),M.join("")}function ge($,c){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},M=arguments[3],k={};return M||($=U(de($,S),S),c=U(de(c,S),S)),S=S||{},!S.tolerant&&c.scheme?(k.scheme=c.scheme,k.userinfo=c.userinfo,k.host=c.host,k.port=c.port,k.path=ye(c.path||""),k.query=c.query):(c.userinfo!==void 0||c.host!==void 0||c.port!==void 0?(k.userinfo=c.userinfo,k.host=c.host,k.port=c.port,k.path=ye(c.path||""),k.query=c.query):(c.path?(c.path.charAt(0)==="/"?k.path=ye(c.path):(($.userinfo!==void 0||$.host!==void 0||$.port!==void 0)&&!$.path?k.path="/"+c.path:$.path?k.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+c.path:k.path=c.path,k.path=ye(k.path)),k.query=c.query):(k.path=$.path,c.query!==void 0?k.query=c.query:k.query=$.query),k.userinfo=$.userinfo,k.host=$.host,k.port=$.port),k.scheme=$.scheme),k.fragment=c.fragment,k}function ke($,c,S){var M=o({scheme:"null"},S);return de(ge(U($,M),U(c,M),M,!0),M)}function we($,c){return typeof $=="string"?$=de(U($,c),c):v($)==="object"&&($=U(de($,c),c)),$}function Xe($,c,S){return typeof $=="string"?$=de(U($,S),S):v($)==="object"&&($=de($,S)),typeof c=="string"?c=de(U(c,S),S):v(c)==="object"&&(c=de(c,S)),$===c}function Fe($,c){return $&&$.toString().replace(!c||!c.iri?a.ESCAPE:l.ESCAPE,V)}function be($,c){return $&&$.toString().replace(!c||!c.iri?a.PCT_ENCODED:l.PCT_ENCODED,Q)}var Ve={scheme:"http",domainHost:!0,parse:function(c,S){return c.host||(c.error=c.error||"HTTP URIs must have a host."),c},serialize:function(c,S){var M=String(c.scheme).toLowerCase()==="https";return(c.port===(M?443:80)||c.port==="")&&(c.port=void 0),c.path||(c.path="/"),c}},Ye={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize};function nt($){return typeof $.secure=="boolean"?$.secure:String($.scheme).toLowerCase()==="wss"}var Ze={scheme:"ws",domainHost:!0,parse:function(c,S){var M=c;return M.secure=nt(M),M.resourceName=(M.path||"/")+(M.query?"?"+M.query:""),M.path=void 0,M.query=void 0,M},serialize:function(c,S){if((c.port===(nt(c)?443:80)||c.port==="")&&(c.port=void 0),typeof c.secure=="boolean"&&(c.scheme=c.secure?"wss":"ws",c.secure=void 0),c.resourceName){var M=c.resourceName.split("?"),k=E(M,2),W=k[0],x=k[1];c.path=W&&W!=="/"?W:void 0,c.query=x,c.resourceName=void 0}return c.fragment=void 0,c}},lt={scheme:"wss",domainHost:Ze.domainHost,parse:Ze.parse,serialize:Ze.serialize},Et={},_t=!0,dt="[A-Za-z0-9\\-\\.\\_\\~"+(_t?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ie="[0-9A-Fa-f]",wt=r(r("%[EFef]"+Ie+"%"+Ie+Ie+"%"+Ie+Ie)+"|"+r("%[89A-Fa-f]"+Ie+"%"+Ie+Ie)+"|"+r("%"+Ie+Ie)),St="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",bt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Pt=t(bt,'[\\"\\\\]'),Nt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ot=new RegExp(dt,"g"),Ke=new RegExp(wt,"g"),Rt=new RegExp(t("[^]",St,"[\\.]",'[\\"]',Pt),"g"),ft=new RegExp(t("[^]",dt,Nt),"g"),Ct=ft;function it($){var c=Q($);return c.match(Ot)?c:$}var ht={scheme:"mailto",parse:function(c,S){var M=c,k=M.to=M.path?M.path.split(","):[];if(M.path=void 0,M.query){for(var W=!1,x={},ne=M.query.split("&"),ie=0,$e=ne.length;ie<$e;++ie){var re=ne[ie].split("=");switch(re[0]){case"to":for(var me=re[1].split(","),Ee=0,he=me.length;Ee<he;++Ee)k.push(me[Ee]);break;case"subject":M.subject=be(re[1],S);break;case"body":M.body=be(re[1],S);break;default:W=!0,x[be(re[0],S)]=be(re[1],S);break}}W&&(M.headers=x)}M.query=void 0;for(var ae=0,pe=k.length;ae<pe;++ae){var ce=k[ae].split("@");if(ce[0]=be(ce[0]),S.unicodeSupport)ce[1]=be(ce[1],S).toLowerCase();else try{ce[1]=s.toASCII(be(ce[1],S).toLowerCase())}catch(Ue){M.error=M.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ue}k[ae]=ce.join("@")}return M},serialize:function(c,S){var M=c,k=w(c.to);if(k){for(var W=0,x=k.length;W<x;++W){var ne=String(k[W]),ie=ne.lastIndexOf("@"),$e=ne.slice(0,ie).replace(Ke,it).replace(Ke,f).replace(Rt,V),re=ne.slice(ie+1);try{re=S.iri?s.toUnicode(re):s.toASCII(be(re,S).toLowerCase())}catch(ae){M.error=M.error||"Email address's domain name can not be converted to "+(S.iri?"Unicode":"ASCII")+" via punycode: "+ae}k[W]=$e+"@"+re}M.path=k.join(",")}var me=c.headers=c.headers||{};c.subject&&(me.subject=c.subject),c.body&&(me.body=c.body);var Ee=[];for(var he in me)me[he]!==Et[he]&&Ee.push(he.replace(Ke,it).replace(Ke,f).replace(ft,V)+"="+me[he].replace(Ke,it).replace(Ke,f).replace(Ct,V));return Ee.length&&(M.query=Ee.join("&")),M}},Tt=/^([^\:]+)\:(.*)/,mt={scheme:"urn",parse:function(c,S){var M=c.path&&c.path.match(Tt),k=c;if(M){var W=S.scheme||k.scheme||"urn",x=M[1].toLowerCase(),ne=M[2],ie=W+":"+(S.nid||x),$e=y[ie];k.nid=x,k.nss=ne,k.path=void 0,$e&&(k=$e.parse(k,S))}else k.error=k.error||"URN can not be parsed.";return k},serialize:function(c,S){var M=S.scheme||c.scheme||"urn",k=c.nid,W=M+":"+(S.nid||k),x=y[W];x&&(c=x.serialize(c,S));var ne=c,ie=c.nss;return ne.path=(k||S.nid)+":"+ie,ne}},It=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,pt={scheme:"urn:uuid",parse:function(c,S){var M=c;return M.uuid=M.nss,M.nss=void 0,!S.tolerant&&(!M.uuid||!M.uuid.match(It))&&(M.error=M.error||"UUID is not valid."),M},serialize:function(c,S){var M=c;return M.nss=(c.uuid||"").toLowerCase(),M}};y[Ve.scheme]=Ve,y[Ye.scheme]=Ye,y[Ze.scheme]=Ze,y[lt.scheme]=lt,y[ht.scheme]=ht,y[mt.scheme]=mt,y[pt.scheme]=pt,n.SCHEMES=y,n.pctEncChar=V,n.pctDecChars=Q,n.parse=U,n.removeDotSegments=ye,n.serialize=de,n.resolveComponents=ge,n.resolve=ke,n.normalize=we,n.equal=Xe,n.escapeComponent=Fe,n.unescapeComponent=be,Object.defineProperty(n,"__esModule",{value:!0})})},93770:J=>{"use strict";J.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},33928:J=>{"use strict";J.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]);})();
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=1902.6f404f8c.chunk.js.map
|