@techdocs/cli 1.8.9-next.0 → 1.8.9
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 +22 -0
- package/dist/embedded-app/.config-schema.json +158 -540
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/115.dcb79bb0.chunk.js +3 -0
- package/dist/embedded-app/static/115.dcb79bb0.chunk.js.map +1 -0
- package/dist/embedded-app/static/{124.79598769.chunk.js → 124.843ab31e.chunk.js} +1 -1
- package/dist/embedded-app/static/{124.79598769.chunk.js.map → 124.843ab31e.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{1297.83f0988f.chunk.js → 1297.cdfd490e.chunk.js} +1 -1
- package/dist/embedded-app/static/{1297.83f0988f.chunk.js.map → 1297.cdfd490e.chunk.js.map} +1 -1
- package/dist/embedded-app/static/1902.2554ddcf.chunk.js +10 -0
- package/dist/embedded-app/static/1902.2554ddcf.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2401.1d69db66.chunk.js → 2401.4df01527.chunk.js} +1 -1
- package/dist/embedded-app/static/{2401.1d69db66.chunk.js.map → 2401.4df01527.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{2420.af0a138a.chunk.js → 2420.18b68427.chunk.js} +1 -1
- package/dist/embedded-app/static/{2420.af0a138a.chunk.js.map → 2420.18b68427.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{287.e4086426.chunk.js → 287.ee4ee196.chunk.js} +1 -1
- package/dist/embedded-app/static/{287.e4086426.chunk.js.map → 287.ee4ee196.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{3182.cf05e43d.chunk.js → 3182.232eb781.chunk.js} +1 -1
- package/dist/embedded-app/static/{3182.cf05e43d.chunk.js.map → 3182.232eb781.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{3632.311321b8.chunk.js → 3632.95b279c9.chunk.js} +1 -1
- package/dist/embedded-app/static/{3632.311321b8.chunk.js.map → 3632.95b279c9.chunk.js.map} +1 -1
- package/dist/embedded-app/static/4036.509d373a.chunk.js +3 -0
- package/dist/embedded-app/static/4036.509d373a.chunk.js.map +1 -0
- package/dist/embedded-app/static/4487.06c23d1b.chunk.js +3 -0
- package/dist/embedded-app/static/{4487.f1f04a33.chunk.js.map → 4487.06c23d1b.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{4516.88dfcdbc.chunk.js → 4516.aaba7206.chunk.js} +1 -1
- package/dist/embedded-app/static/{4516.88dfcdbc.chunk.js.map → 4516.aaba7206.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{5788.bb1922dd.chunk.js → 5788.d10b3d46.chunk.js} +1 -1
- package/dist/embedded-app/static/{5788.bb1922dd.chunk.js.map → 5788.d10b3d46.chunk.js.map} +1 -1
- package/dist/embedded-app/static/5974.633b23c0.chunk.js +3 -0
- package/dist/embedded-app/static/5974.633b23c0.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6271.25bd2120.chunk.js → 6271.25803276.chunk.js} +1 -1
- package/dist/embedded-app/static/{6271.25bd2120.chunk.js.map → 6271.25803276.chunk.js.map} +1 -1
- package/dist/embedded-app/static/73.618ea766.chunk.js +3 -0
- package/dist/embedded-app/static/73.618ea766.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8307.de0b4611.chunk.js → 8307.42c405fe.chunk.js} +1 -1
- package/dist/embedded-app/static/{8307.de0b4611.chunk.js.map → 8307.42c405fe.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8384.6e8b1108.chunk.js → 8384.a139d26a.chunk.js} +1 -1
- package/dist/embedded-app/static/{8384.6e8b1108.chunk.js.map → 8384.a139d26a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9234.2136bcf4.chunk.js → 9234.2973b189.chunk.js} +1 -1
- package/dist/embedded-app/static/{9234.2136bcf4.chunk.js.map → 9234.2973b189.chunk.js.map} +1 -1
- package/dist/embedded-app/static/9605.3cd9c86f.chunk.js +11 -0
- package/dist/embedded-app/static/9605.3cd9c86f.chunk.js.map +1 -0
- package/dist/embedded-app/static/{9652.b4fc9f0c.chunk.js → 9652.9a93372c.chunk.js} +1 -1
- package/dist/embedded-app/static/{9652.b4fc9f0c.chunk.js.map → 9652.9a93372c.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.e02a8f27.js +497 -0
- package/dist/embedded-app/static/main.e02a8f27.js.map +1 -0
- package/dist/embedded-app/static/{module-material-ui.033f9fa6.js → module-material-ui.1eefc717.js} +2 -2
- package/dist/embedded-app/static/{module-material-ui.033f9fa6.js.map → module-material-ui.1eefc717.js.map} +1 -1
- package/dist/embedded-app/static/module-mui.3056800b.js +3 -0
- package/dist/embedded-app/static/module-mui.3056800b.js.map +1 -0
- package/dist/embedded-app/static/{runtime.d92320cd.js → runtime.e02a8f27.js} +2 -2
- package/dist/embedded-app/static/{runtime.d92320cd.js.map → runtime.e02a8f27.js.map} +1 -1
- package/dist/embedded-app/static/vendor.e02a8f27.js +160 -0
- package/dist/embedded-app/static/vendor.e02a8f27.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/1833.22027501.chunk.js +0 -3
- package/dist/embedded-app/static/1833.22027501.chunk.js.map +0 -1
- package/dist/embedded-app/static/233.35298ac1.chunk.js +0 -3
- package/dist/embedded-app/static/233.35298ac1.chunk.js.map +0 -1
- package/dist/embedded-app/static/4036.f54a4b20.chunk.js +0 -3
- package/dist/embedded-app/static/4036.f54a4b20.chunk.js.map +0 -1
- package/dist/embedded-app/static/4487.f1f04a33.chunk.js +0 -3
- package/dist/embedded-app/static/5974.625a945e.chunk.js +0 -3
- package/dist/embedded-app/static/5974.625a945e.chunk.js.map +0 -1
- package/dist/embedded-app/static/5977.dab5093f.chunk.js +0 -10
- package/dist/embedded-app/static/5977.dab5093f.chunk.js.map +0 -1
- package/dist/embedded-app/static/9605.ad516747.chunk.js +0 -11
- package/dist/embedded-app/static/9605.ad516747.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.d92320cd.js +0 -497
- package/dist/embedded-app/static/main.d92320cd.js.map +0 -1
- package/dist/embedded-app/static/vendor.d92320cd.js +0 -160
- package/dist/embedded-app/static/vendor.d92320cd.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5977],{74011:function(B,e,n){"use strict";var t,r=n(4293),$=n(78920);t={value:!0},e.A=void 0;var f=$(n(14041)),S=r(n(74044)),o=(0,S.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:function(B,e,n){"use strict";var t,r=n(4293),$=n(78920);t={value:!0},e.A=void 0;var f=$(n(14041)),S=r(n(74044)),o=(0,S.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:function(B,e,n){"use strict";var t,r=n(4293),$=n(78920);t={value:!0},e.A=void 0;var f=$(n(14041)),S=r(n(74044)),o=(0,S.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:function(B,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),$=n(11672),f=n(33928),S=["/properties"],o="http://json-schema.org/draft-07/schema";class h extends t.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(R=>this.addVocabulary(R)),this.opts.discriminator&&this.addKeyword($.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const R=this.opts.$data?this.$dataMetaSchema(f,S):f;this.addMetaSchema(R,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}B.exports=e=h,Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var s=n(96223);Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return s.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 _=n(95031);Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return _.default}});var E=n(85748);Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return E.default}})},83277:function(B,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(c){if(super(),!e.IDENTIFIER.test(c))throw new Error("CodeGen: name must be a valid identifier");this.str=c}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=t;class r extends n{constructor(c){super(),this._items=typeof c=="string"?[c]:c}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const c=this._items[0];return c===""||c==='""'}get str(){var c;return(c=this._str)!==null&&c!==void 0?c:this._str=this._items.reduce((P,d)=>`${P}${d}`,"")}get names(){var c;return(c=this._names)!==null&&c!==void 0?c:this._names=this._items.reduce((P,d)=>(d instanceof t&&(P[d.str]=(P[d.str]||0)+1),P),{})}}e._Code=r,e.nil=new r("");function $(u,...c){const P=[u[0]];let d=0;for(;d<c.length;)o(P,c[d]),P.push(u[++d]);return new r(P)}e._=$;const f=new r("+");function S(u,...c){const P=[N(u[0])];let d=0;for(;d<c.length;)P.push(f),o(P,c[d]),P.push(f,N(u[++d]));return h(P),new r(P)}e.str=S;function o(u,c){c instanceof r?u.push(...c._items):c instanceof t?u.push(c):u.push(_(c))}e.addCodeArg=o;function h(u){let c=1;for(;c<u.length-1;){if(u[c]===f){const P=s(u[c-1],u[c+1]);if(P!==void 0){u.splice(c-1,3,P);continue}u[c++]="+"}c++}}function s(u,c){if(c==='""')return u;if(u==='""')return c;if(typeof u=="string")return c instanceof t||u[u.length-1]!=='"'?void 0:typeof c!="string"?`${u.slice(0,-1)}${c}"`:c[0]==='"'?u.slice(0,-1)+c.slice(1):void 0;if(typeof c=="string"&&c[0]==='"'&&!(u instanceof t))return`"${u}${c.slice(1)}`}function l(u,c){return c.emptyStr()?u:u.emptyStr()?c:S`${u}${c}`}e.strConcat=l;function _(u){return typeof u=="number"||typeof u=="boolean"||u===null?u:N(Array.isArray(u)?u.join(","):u)}function E(u){return new r(N(u))}e.stringify=E;function N(u){return JSON.stringify(u).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=N;function R(u){return typeof u=="string"&&e.IDENTIFIER.test(u)?new r(`.${u}`):$`[${u}]`}e.getProperty=R;function I(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=I;function A(u){return new r(u.toString())}e.regexpCode=A},17898:function(B,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 $=n(83277);Object.defineProperty(e,"_",{enumerable:!0,get:function(){return $._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return $.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return $.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return $.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return $.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return $.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return $.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return $.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 S{optimizeNodes(){return this}optimizeNames(a,y){return this}}class o extends S{constructor(a,y,V){super(),this.varKind=a,this.name=y,this.rhs=V}render({es5:a,_n:y}){const V=a?r.varKinds.var:this.varKind,Q=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${Q};`+y}optimizeNames(a,y){if(a[this.name.str])return this.rhs&&(this.rhs=Z(this.rhs,a,y)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class h extends S{constructor(a,y,V){super(),this.lhs=a,this.rhs=y,this.sideEffects=V}render({_n:a}){return`${this.lhs} = ${this.rhs};`+a}optimizeNames(a,y){if(!(this.lhs instanceof t.Name&&!a[this.lhs.str]&&!this.sideEffects))return this.rhs=Z(this.rhs,a,y),this}get names(){const a=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ce(a,this.rhs)}}class s extends h{constructor(a,y,V,Q){super(a,V,Q),this.op=y}render({_n:a}){return`${this.lhs} ${this.op}= ${this.rhs};`+a}}class l extends S{constructor(a){super(),this.label=a,this.names={}}render({_n:a}){return`${this.label}:`+a}}class _ extends S{constructor(a){super(),this.label=a,this.names={}}render({_n:a}){return`break${this.label?` ${this.label}`:""};`+a}}class E extends S{constructor(a){super(),this.error=a}render({_n:a}){return`throw ${this.error};`+a}get names(){return this.error.names}}class N extends S{constructor(a){super(),this.code=a}render({_n:a}){return`${this.code};`+a}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(a,y){return this.code=Z(this.code,a,y),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class R extends S{constructor(a=[]){super(),this.nodes=a}render(a){return this.nodes.reduce((y,V)=>y+V.render(a),"")}optimizeNodes(){const{nodes:a}=this;let y=a.length;for(;y--;){const V=a[y].optimizeNodes();Array.isArray(V)?a.splice(y,1,...V):V?a[y]=V:a.splice(y,1)}return a.length>0?this:void 0}optimizeNames(a,y){const{nodes:V}=this;let Q=V.length;for(;Q--;){const X=V[Q];X.optimizeNames(a,y)||(se(a,X.names),V.splice(Q,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((a,y)=>J(a,y.names),{})}}class I extends R{render(a){return"{"+a._n+super.render(a)+"}"+a._n}}class A extends R{}class u extends I{}u.kind="else";class c extends I{constructor(a,y){super(y),this.condition=a}render(a){let y=`if(${this.condition})`+super.render(a);return this.else&&(y+="else "+this.else.render(a)),y}optimizeNodes(){super.optimizeNodes();const a=this.condition;if(a===!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 a===!1?y instanceof c?y:y.nodes:this.nodes.length?this:new c(_e(a),y instanceof c?[y]:y.nodes);if(!(a===!1||!this.nodes.length))return this}optimizeNames(a,y){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(a,y),!!(super.optimizeNames(a,y)||this.else))return this.condition=Z(this.condition,a,y),this}get names(){const a=super.names;return ce(a,this.condition),this.else&&J(a,this.else.names),a}}c.kind="if";class P extends I{}P.kind="for";class d extends P{constructor(a){super(),this.iteration=a}render(a){return`for(${this.iteration})`+super.render(a)}optimizeNames(a,y){if(super.optimizeNames(a,y))return this.iteration=Z(this.iteration,a,y),this}get names(){return J(super.names,this.iteration.names)}}class v extends P{constructor(a,y,V,Q){super(),this.varKind=a,this.name=y,this.from=V,this.to=Q}render(a){const y=a.es5?r.varKinds.var:this.varKind,{name:V,from:Q,to:X}=this;return`for(${y} ${V}=${Q}; ${V}<${X}; ${V}++)`+super.render(a)}get names(){const a=ce(super.names,this.from);return ce(a,this.to)}}class O extends P{constructor(a,y,V,Q){super(),this.loop=a,this.varKind=y,this.name=V,this.iterable=Q}render(a){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(a)}optimizeNames(a,y){if(super.optimizeNames(a,y))return this.iterable=Z(this.iterable,a,y),this}get names(){return J(super.names,this.iterable.names)}}class p extends I{constructor(a,y,V){super(),this.name=a,this.args=y,this.async=V}render(a){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(a)}}p.kind="func";class m extends R{render(a){return"return "+super.render(a)}}m.kind="return";class b extends I{render(a){let y="try"+super.render(a);return this.catch&&(y+=this.catch.render(a)),this.finally&&(y+=this.finally.render(a)),y}optimizeNodes(){var a,y;return super.optimizeNodes(),(a=this.catch)===null||a===void 0||a.optimizeNodes(),(y=this.finally)===null||y===void 0||y.optimizeNodes(),this}optimizeNames(a,y){var V,Q;return super.optimizeNames(a,y),(V=this.catch)===null||V===void 0||V.optimizeNames(a,y),(Q=this.finally)===null||Q===void 0||Q.optimizeNames(a,y),this}get names(){const a=super.names;return this.catch&&J(a,this.catch.names),this.finally&&J(a,this.finally.names),a}}class F extends I{constructor(a){super(),this.error=a}render(a){return`catch(${this.error})`+super.render(a)}}F.kind="catch";class L extends I{render(a){return"finally"+super.render(a)}}L.kind="finally";class G{constructor(a,y={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...y,_n:y.lines?`
|
|
2
|
-
`:""},this._extScope=a,this._scope=new r.Scope({parent:a}),this._nodes=[new A]}toString(){return this._root.render(this.opts)}name(a){return this._scope.name(a)}scopeName(a){return this._extScope.name(a)}scopeValue(a,y){const V=this._extScope.value(a,y);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(a,y){return this._extScope.getValue(a,y)}scopeRefs(a){return this._extScope.scopeRefs(a,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(a,y,V,Q){const X=this._scope.toName(y);return V!==void 0&&Q&&(this._constants[X.str]=V),this._leafNode(new o(a,X,V)),X}const(a,y,V){return this._def(r.varKinds.const,a,y,V)}let(a,y,V){return this._def(r.varKinds.let,a,y,V)}var(a,y,V){return this._def(r.varKinds.var,a,y,V)}assign(a,y,V){return this._leafNode(new h(a,y,V))}add(a,y){return this._leafNode(new s(a,e.operators.ADD,y))}code(a){return typeof a=="function"?a():a!==t.nil&&this._leafNode(new N(a)),this}object(...a){const y=["{"];for(const[V,Q]of a)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(a,y,V){if(this._blockNode(new c(a)),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(a){return this._elseNode(new c(a))}else(){return this._elseNode(new u)}endIf(){return this._endBlockNode(c,u)}_for(a,y){return this._blockNode(a),y&&this.code(y).endFor(),this}for(a,y){return this._for(new d(a),y)}forRange(a,y,V,Q,X=this.opts.es5?r.varKinds.var:r.varKinds.let){const te=this._scope.toName(a);return this._for(new v(X,te,y,V),()=>Q(te))}forOf(a,y,V,Q=r.varKinds.const){const X=this._scope.toName(a);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 O("of",Q,X,y),()=>V(X))}forIn(a,y,V,Q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(a,(0,t._)`Object.keys(${y})`,V);const X=this._scope.toName(a);return this._for(new O("in",Q,X,y),()=>V(X))}endFor(){return this._endBlockNode(P)}label(a){return this._leafNode(new l(a))}break(a){return this._leafNode(new _(a))}return(a){const y=new m;if(this._blockNode(y),this.code(a),y.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(m)}try(a,y,V){if(!y&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const Q=new b;if(this._blockNode(Q),this.code(a),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(a){return this._leafNode(new E(a))}block(a,y){return this._blockStarts.push(this._nodes.length),a&&this.code(a).endBlock(y),this}endBlock(a){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||a!==void 0&&V!==a)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${a} expected`);return this._nodes.length=y,this}func(a,y=t.nil,V,Q){return this._blockNode(new p(a,y,V)),Q&&this.code(Q).endFunc(),this}endFunc(){return this._endBlockNode(p)}optimize(a=1){for(;a-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(a){return this._currNode.nodes.push(a),this}_blockNode(a){this._currNode.nodes.push(a),this._nodes.push(a)}_endBlockNode(a,y){const V=this._currNode;if(V instanceof a||y&&V instanceof y)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${y?`${a.kind}/${y.kind}`:a.kind}"`)}_elseNode(a){const y=this._currNode;if(!(y instanceof c))throw new Error('CodeGen: "else" without "if"');return this._currNode=y.else=a,this}get _root(){return this._nodes[0]}get _currNode(){const a=this._nodes;return a[a.length-1]}set _currNode(a){const y=this._nodes;y[y.length-1]=a}}e.CodeGen=G;function J(D,a){for(const y in a)D[y]=(D[y]||0)+(a[y]||0);return D}function ce(D,a){return a instanceof t._CodeOrName?J(D,a.names):D}function Z(D,a,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||a[X.str]!==1?X:(delete a[X.str],te)}function Q(X){return X instanceof t._Code&&X._items.some(te=>te instanceof t.Name&&a[te.str]===1&&y[te.str]!==void 0)}}function se(D,a){for(const y in a)D[y]=(D[y]||0)-(a[y]||0)}function _e(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${z(D)}`}e.not=_e;const Te=C(e.operators.AND);function Oe(...D){return D.reduce(Te)}e.and=Oe;const oe=C(e.operators.OR);function H(...D){return D.reduce(oe)}e.or=H;function C(D){return(a,y)=>a===t.nil?y:y===t.nil?a:(0,t._)`${z(a)} ${D} ${z(y)}`}function z(D){return D instanceof t.Name?D:(0,t._)`(${D})`}},76930:function(B,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 $;(function(s){s[s.Started=0]="Started",s[s.Completed=1]="Completed"})($=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:_}={}){this._names={},this._prefixes=l,this._parent=_}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const _=this._names[l]||this._nameGroup(l);return`${l}${_.index++}`}_nameGroup(l){var _,E;if(!((E=(_=this._parent)===null||_===void 0?void 0:_._prefixes)===null||E===void 0)&&E.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 S extends t.Name{constructor(l,_){super(_),this.prefix=l}setValue(l,{property:_,itemIndex:E}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(_)}[${E}]`}}e.ValueScopeName=S;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 S(l,this._newName(l))}value(l,_){var E;if(_.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const N=this.toName(l),{prefix:R}=N,I=(E=_.key)!==null&&E!==void 0?E:_.ref;let A=this._values[R];if(A){const P=A.get(I);if(P)return P}else A=this._values[R]=new Map;A.set(I,N);const u=this._scope[R]||(this._scope[R]=[]),c=u.length;return u[c]=_.ref,N.setValue(_,{property:R,itemIndex:c}),N}getValue(l,_){const E=this._values[l];if(E)return E.get(_)}scopeRefs(l,_=this._values){return this._reduceValues(_,E=>{if(E.scopePath===void 0)throw new Error(`CodeGen: name "${E}" has no value`);return(0,t._)`${l}${E.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 R=t.nil;for(const I in l){const A=l[I];if(!A)continue;const u=E[I]=E[I]||new Map;A.forEach(c=>{if(u.has(c))return;u.set(c,$.Started);let P=_(c);if(P){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;R=(0,t._)`${R}${d} ${c} = ${P};${this.opts._n}`}else if(P=N==null?void 0:N(c))R=(0,t._)`${R}${P}${this.opts._n}`;else throw new r(c);u.set(c,$.Completed)})}return R}}e.ValueScope=h},49409:function(B,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),$=n(63036);e.keywordError={message:({keyword:u})=>(0,t.str)`must pass "${u}" keyword validation`},e.keyword$DataError={message:({keyword:u,schemaType:c})=>c?(0,t.str)`"${u}" keyword must be ${c} ($data)`:(0,t.str)`"${u}" keyword is invalid ($data)`};function f(u,c=e.keywordError,P,d){const{it:v}=u,{gen:O,compositeRule:p,allErrors:m}=v,b=E(u,c,P);(d!=null?d:p||m)?s(O,b):l(v,(0,t._)`[${b}]`)}e.reportError=f;function S(u,c=e.keywordError,P){const{it:d}=u,{gen:v,compositeRule:O,allErrors:p}=d,m=E(u,c,P);s(v,m),O||p||l(d,$.default.vErrors)}e.reportExtraError=S;function o(u,c){u.assign($.default.errors,c),u.if((0,t._)`${$.default.vErrors} !== null`,()=>u.if(c,()=>u.assign((0,t._)`${$.default.vErrors}.length`,c),()=>u.assign($.default.vErrors,null)))}e.resetErrorsCount=o;function h({gen:u,keyword:c,schemaValue:P,data:d,errsCount:v,it:O}){if(v===void 0)throw new Error("ajv implementation error");const p=u.name("err");u.forRange("i",v,$.default.errors,m=>{u.const(p,(0,t._)`${$.default.vErrors}[${m}]`),u.if((0,t._)`${p}.instancePath === undefined`,()=>u.assign((0,t._)`${p}.instancePath`,(0,t.strConcat)($.default.instancePath,O.errorPath))),u.assign((0,t._)`${p}.schemaPath`,(0,t.str)`${O.errSchemaPath}/${c}`),O.opts.verbose&&(u.assign((0,t._)`${p}.schema`,P),u.assign((0,t._)`${p}.data`,d))})}e.extendErrors=h;function s(u,c){const P=u.const("err",c);u.if((0,t._)`${$.default.vErrors} === null`,()=>u.assign($.default.vErrors,(0,t._)`[${P}]`),(0,t._)`${$.default.vErrors}.push(${P})`),u.code((0,t._)`${$.default.errors}++`)}function l(u,c){const{gen:P,validateName:d,schemaEnv:v}=u;v.$async?P.throw((0,t._)`new ${u.ValidationError}(${c})`):(P.assign((0,t._)`${d}.errors`,c),P.return(!1))}const _={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 E(u,c,P){const{createErrors:d}=u.it;return d===!1?(0,t._)`{}`:N(u,c,P)}function N(u,c,P={}){const{gen:d,it:v}=u,O=[R(v,P),I(u,P)];return A(u,c,O),d.object(...O)}function R({errorPath:u},{instancePath:c}){const P=c?(0,t.str)`${u}${(0,r.getErrorPath)(c,r.Type.Str)}`:u;return[$.default.instancePath,(0,t.strConcat)($.default.instancePath,P)]}function I({keyword:u,it:{errSchemaPath:c}},{schemaPath:P,parentSchema:d}){let v=d?c:(0,t.str)`${c}/${u}`;return P&&(v=(0,t.str)`${v}${(0,r.getErrorPath)(P,r.Type.Str)}`),[_.schemaPath,v]}function A(u,{params:c,message:P},d){const{keyword:v,data:O,schemaValue:p,it:m}=u,{opts:b,propertyName:F,topSchemaRef:L,schemaPath:G}=m;d.push([_.keyword,v],[_.params,typeof c=="function"?c(u):c||(0,t._)`{}`]),b.messages&&d.push([_.message,typeof P=="function"?P(u):P]),b.verbose&&d.push([_.schema,p],[_.parentSchema,(0,t._)`${L}${G}`],[$.default.data,O]),F&&d.push([_.propertyName,F])}},49392:function(B,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),$=n(63036),f=n(14856),S=n(50458),o=n(96223);class h{constructor(P){var d;this.refs={},this.dynamicAnchors={};let v;typeof P.schema=="object"&&(v=P.schema),this.schema=P.schema,this.schemaId=P.schemaId,this.root=P.root||this,this.baseId=(d=P.baseId)!==null&&d!==void 0?d:(0,f.normalizeId)(v==null?void 0:v[P.schemaId||"$id"]),this.schemaPath=P.schemaPath,this.localRefs=P.localRefs,this.meta=P.meta,this.$async=v==null?void 0:v.$async,this.refs={}}}e.SchemaEnv=h;function s(c){const P=E.call(this,c);if(P)return P;const d=(0,f.getFullPath)(this.opts.uriResolver,c.root.baseId),{es5:v,lines:O}=this.opts.code,{ownProperties:p}=this.opts,m=new t.CodeGen(this.scope,{es5:v,lines:O,ownProperties:p});let b;c.$async&&(b=m.scopeValue("Error",{ref:r.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const F=m.scopeName("validate");c.validateName=F;const L={gen:m,allErrors:this.opts.allErrors,data:$.default.data,parentData:$.default.parentData,parentDataProperty:$.default.parentDataProperty,dataNames:[$.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:m.scopeValue("schema",this.opts.code.source===!0?{ref:c.schema,code:(0,t.stringify)(c.schema)}:{ref:c.schema}),validateName:F,ValidationError:b,schema:c.schema,schemaEnv:c,rootId:d,baseId:c.baseId||d,schemaPath:t.nil,errSchemaPath:c.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let G;try{this._compilations.add(c),(0,o.validateFunctionCode)(L),m.optimize(this.opts.code.optimize);const J=m.toString();G=`${m.scopeRefs($.default.scope)}return ${J}`,this.opts.code.process&&(G=this.opts.code.process(G,c));const Z=new Function(`${$.default.self}`,`${$.default.scope}`,G)(this,this.scope.get());if(this.scope.value(F,{ref:Z}),Z.errors=null,Z.schema=c.schema,Z.schemaEnv=c,c.$async&&(Z.$async=!0),this.opts.code.source===!0&&(Z.source={validateName:F,validateCode:J,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 c.validate=Z,c}catch(J){throw delete c.validate,delete c.validateName,G&&this.logger.error("Error compiling schema, function code:",G),J}finally{this._compilations.delete(c)}}e.compileSchema=s;function l(c,P,d){var v;d=(0,f.resolveUrl)(this.opts.uriResolver,P,d);const O=c.refs[d];if(O)return O;let p=R.call(this,c,d);if(p===void 0){const m=(v=c.localRefs)===null||v===void 0?void 0:v[d],{schemaId:b}=this.opts;m&&(p=new h({schema:m,schemaId:b,root:c,baseId:P}))}if(p!==void 0)return c.refs[d]=_.call(this,p)}e.resolveRef=l;function _(c){return(0,f.inlineRef)(c.schema,this.opts.inlineRefs)?c.schema:c.validate?c:s.call(this,c)}function E(c){for(const P of this._compilations)if(N(P,c))return P}e.getCompilingSchema=E;function N(c,P){return c.schema===P.schema&&c.root===P.root&&c.baseId===P.baseId}function R(c,P){let d;for(;typeof(d=this.refs[P])=="string";)P=d;return d||this.schemas[P]||I.call(this,c,P)}function I(c,P){const d=this.opts.uriResolver.parse(P),v=(0,f._getFullPath)(this.opts.uriResolver,d);let O=(0,f.getFullPath)(this.opts.uriResolver,c.baseId,void 0);if(Object.keys(c.schema).length>0&&v===O)return u.call(this,d,c);const p=(0,f.normalizeId)(v),m=this.refs[p]||this.schemas[p];if(typeof m=="string"){const b=I.call(this,c,m);return typeof(b==null?void 0:b.schema)!="object"?void 0:u.call(this,d,b)}if(typeof(m==null?void 0:m.schema)=="object"){if(m.validate||s.call(this,m),p===(0,f.normalizeId)(P)){const{schema:b}=m,{schemaId:F}=this.opts,L=b[F];return L&&(O=(0,f.resolveUrl)(this.opts.uriResolver,O,L)),new h({schema:b,schemaId:F,root:c,baseId:O})}return u.call(this,d,m)}}e.resolveSchema=I;const A=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function u(c,{baseId:P,schema:d,root:v}){var O;if(((O=c.fragment)===null||O===void 0?void 0:O[0])!=="/")return;for(const b of c.fragment.slice(1).split("/")){if(typeof d=="boolean")return;const F=d[(0,S.unescapeFragment)(b)];if(F===void 0)return;d=F;const L=typeof d=="object"&&d[this.opts.schemaId];!A.has(b)&&L&&(P=(0,f.resolveUrl)(this.opts.uriResolver,P,L))}let p;if(typeof d!="boolean"&&d.$ref&&!(0,S.schemaHasRulesButRef)(d,this.RULES)){const b=(0,f.resolveUrl)(this.opts.uriResolver,P,d.$ref);p=I.call(this,v,b)}const{schemaId:m}=this.opts;if(p=p||new h({schema:d,schemaId:m,root:v,baseId:P}),p.schema!==p.root.schema)return p}},63036:function(B,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:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(14856);class r extends Error{constructor(f,S,o,h){super(h||`can't resolve reference ${o} from id ${S}`),this.missingRef=(0,t.resolveUrl)(f,S,o),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(f,this.missingRef))}}e.default=r},14856:function(B,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),$=n(1645),f=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function S(u,c=!0){return typeof u=="boolean"?!0:c===!0?!h(u):c?s(u)<=c:!1}e.inlineRef=S;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function h(u){for(const c in u){if(o.has(c))return!0;const P=u[c];if(Array.isArray(P)&&P.some(h)||typeof P=="object"&&h(P))return!0}return!1}function s(u){let c=0;for(const P in u){if(P==="$ref")return 1/0;if(c++,!f.has(P)&&(typeof u[P]=="object"&&(0,t.eachItem)(u[P],d=>c+=s(d)),c===1/0))return 1/0}return c}function l(u,c="",P){P!==!1&&(c=N(c));const d=u.parse(c);return _(u,d)}e.getFullPath=l;function _(u,c){return u.serialize(c).split("#")[0]+"#"}e._getFullPath=_;const E=/#\/?$/;function N(u){return u?u.replace(E,""):""}e.normalizeId=N;function R(u,c,P){return P=N(P),u.resolve(c,P)}e.resolveUrl=R;const I=/^[a-z_][-a-z0-9._]*$/i;function A(u,c){if(typeof u=="boolean")return{};const{schemaId:P,uriResolver:d}=this.opts,v=N(u[P]||c),O={"":v},p=l(d,v,!1),m={},b=new Set;return $(u,{allKeys:!0},(G,J,ce,Z)=>{if(Z===void 0)return;const se=p+J;let _e=O[Z];typeof G[P]=="string"&&(_e=Te.call(this,G[P])),Oe.call(this,G.$anchor),Oe.call(this,G.$dynamicAnchor),O[J]=_e;function Te(oe){const H=this.opts.uriResolver.resolve;if(oe=N(_e?H(_e,oe):oe),b.has(oe))throw L(oe);b.add(oe);let C=this.refs[oe];return typeof C=="string"&&(C=this.refs[C]),typeof C=="object"?F(G,C.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(!I.test(oe))throw new Error(`invalid anchor "${oe}"`);Te.call(this,`#${oe}`)}}}),m;function F(G,J,ce){if(J!==void 0&&!r(G,J))throw L(ce)}function L(G){return new Error(`reference "${G}" resolves to more than one schema`)}}e.getSchemaRefs=A},90383:function(B,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 $(){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=$},50458:function(B,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 $(p){const m={};for(const b of p)m[b]=!0;return m}e.toHash=$;function f(p,m){return typeof m=="boolean"?m:Object.keys(m).length===0?!0:(S(p,m),!o(m,p.self.RULES.all))}e.alwaysValidSchema=f;function S(p,m=p.schema){const{opts:b,self:F}=p;if(!b.strictSchema||typeof m=="boolean")return;const L=F.RULES.keywords;for(const G in m)L[G]||O(p,`unknown keyword: "${G}"`)}e.checkUnknownRules=S;function o(p,m){if(typeof p=="boolean")return!p;for(const b in p)if(m[b])return!0;return!1}e.schemaHasRules=o;function h(p,m){if(typeof p=="boolean")return!p;for(const b in p)if(b!=="$ref"&&m.all[b])return!0;return!1}e.schemaHasRulesButRef=h;function s({topSchemaRef:p,schemaPath:m},b,F,L){if(!L){if(typeof b=="number"||typeof b=="boolean")return b;if(typeof b=="string")return(0,t._)`${b}`}return(0,t._)`${p}${m}${(0,t.getProperty)(F)}`}e.schemaRefOrVal=s;function l(p){return N(decodeURIComponent(p))}e.unescapeFragment=l;function _(p){return encodeURIComponent(E(p))}e.escapeFragment=_;function E(p){return typeof p=="number"?`${p}`:p.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=E;function N(p){return p.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=N;function R(p,m){if(Array.isArray(p))for(const b of p)m(b);else m(p)}e.eachItem=R;function I({mergeNames:p,mergeToName:m,mergeValues:b,resultToName:F}){return(L,G,J,ce)=>{const Z=J===void 0?G:J instanceof t.Name?(G instanceof t.Name?p(L,G,J):m(L,G,J),J):G instanceof t.Name?(m(L,J,G),G):b(G,J);return ce===t.Name&&!(Z instanceof t.Name)?F(L,Z):Z}}e.mergeEvaluated={props:I({mergeNames:(p,m,b)=>p.if((0,t._)`${b} !== true && ${m} !== undefined`,()=>{p.if((0,t._)`${m} === true`,()=>p.assign(b,!0),()=>p.assign(b,(0,t._)`${b} || {}`).code((0,t._)`Object.assign(${b}, ${m})`))}),mergeToName:(p,m,b)=>p.if((0,t._)`${b} !== true`,()=>{m===!0?p.assign(b,!0):(p.assign(b,(0,t._)`${b} || {}`),u(p,b,m))}),mergeValues:(p,m)=>p===!0?!0:{...p,...m},resultToName:A}),items:I({mergeNames:(p,m,b)=>p.if((0,t._)`${b} !== true && ${m} !== undefined`,()=>p.assign(b,(0,t._)`${m} === true ? true : ${b} > ${m} ? ${b} : ${m}`)),mergeToName:(p,m,b)=>p.if((0,t._)`${b} !== true`,()=>p.assign(b,m===!0?!0:(0,t._)`${b} > ${m} ? ${b} : ${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 b=p.var("props",(0,t._)`{}`);return m!==void 0&&u(p,b,m),b}e.evaluatedPropsToName=A;function u(p,m,b){Object.keys(b).forEach(F=>p.assign((0,t._)`${m}${(0,t.getProperty)(F)}`,!0))}e.setEvaluated=u;const c={};function P(p,m){return p.scopeValue("func",{ref:m,code:c[m.code]||(c[m.code]=new r._Code(m.code))})}e.useFunc=P;var d;(function(p){p[p.Num=0]="Num",p[p.Str=1]="Str"})(d=e.Type||(e.Type={}));function v(p,m,b){if(p instanceof t.Name){const F=m===d.Num;return b?F?(0,t._)`"[" + ${p} + "]"`:(0,t._)`"['" + ${p} + "']"`:F?(0,t._)`"/" + ${p}`:(0,t._)`"/" + ${p}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return b?(0,t.getProperty)(p).toString():"/"+E(p)}e.getErrorPath=v;function O(p,m,b=p.opts.strictSchema){if(b){if(m=`strict mode: ${m}`,b===!0)throw new Error(m);p.self.logger.warn(m)}}e.checkStrictMode=O},74758:function(B,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function n({schema:$,self:f},S){const o=f.RULES.types[S];return o&&o!==!0&&t($,o)}e.schemaHasRulesForType=n;function t($,f){return f.rules.some(S=>r($,S))}e.shouldUseGroup=t;function r($,f){var S;return $[f.keyword]!==void 0||((S=f.definition.implements)===null||S===void 0?void 0:S.some(o=>$[o]!==void 0))}e.shouldUseRule=r},15948:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;const t=n(49409),r=n(17898),$=n(63036),f={message:"boolean schema is false"};function S(s){const{gen:l,schema:_,validateName:E}=s;_===!1?h(s,!1):typeof _=="object"&&_.$async===!0?l.return($.default.data):(l.assign((0,r._)`${E}.errors`,null),l.return(!0))}e.topBoolOrEmptySchema=S;function o(s,l){const{gen:_,schema:E}=s;E===!1?(_.var(l,!1),h(s)):_.var(l,!0)}e.boolOrEmptySchema=o;function h(s,l){const{gen:_,data:E}=s,N={gen:_,keyword:"false schema",data:E,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,t.reportError)(N,f,void 0,l)}},69003:function(B,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),$=n(49409),f=n(17898),S=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 v=s(d.type);if(v.includes("null")){if(d.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&d.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');d.nullable===!0&&v.push("null")}return v}e.getSchemaTypes=h;function s(d){const v=Array.isArray(d)?d:d?[d]:[];if(v.every(t.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}e.getJSONTypes=s;function l(d,v){const{gen:O,data:p,opts:m}=d,b=E(v,m.coerceTypes),F=v.length>0&&!(b.length===0&&v.length===1&&(0,r.schemaHasRulesForType)(d,v[0]));if(F){const L=A(v,p,m.strictNumbers,o.Wrong);O.if(L,()=>{b.length?N(d,v,b):c(d)})}return F}e.coerceAndCheckDataType=l;const _=new Set(["string","number","integer","boolean","null"]);function E(d,v){return v?d.filter(O=>_.has(O)||v==="array"&&O==="array"):[]}function N(d,v,O){const{gen:p,data:m,opts:b}=d,F=p.let("dataType",(0,f._)`typeof ${m}`),L=p.let("coerced",(0,f._)`undefined`);b.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(v,m,b.strictNumbers),()=>p.assign(L,m))),p.if((0,f._)`${L} !== undefined`);for(const J of O)(_.has(J)||J==="array"&&b.coerceTypes==="array")&&G(J);p.else(),c(d),p.endIf(),p.if((0,f._)`${L} !== undefined`,()=>{p.assign(m,L),R(d,L)});function G(J){switch(J){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 R({gen:d,parentData:v,parentDataProperty:O},p){d.if((0,f._)`${v} !== undefined`,()=>d.assign((0,f._)`${v}[${O}]`,p))}function I(d,v,O,p=o.Correct){const m=p===o.Correct?f.operators.EQ:f.operators.NEQ;let b;switch(d){case"null":return(0,f._)`${v} ${m} null`;case"array":b=(0,f._)`Array.isArray(${v})`;break;case"object":b=(0,f._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":b=F((0,f._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":b=F();break;default:return(0,f._)`typeof ${v} ${m} ${d}`}return p===o.Correct?b:(0,f.not)(b);function F(L=f.nil){return(0,f.and)((0,f._)`typeof ${v} == "number"`,L,O?(0,f._)`isFinite(${v})`:f.nil)}}e.checkDataType=I;function A(d,v,O,p){if(d.length===1)return I(d[0],v,O,p);let m;const b=(0,S.toHash)(d);if(b.array&&b.object){const F=(0,f._)`typeof ${v} != "object"`;m=b.null?F:(0,f._)`!${v} || ${F}`,delete b.null,delete b.array,delete b.object}else m=f.nil;b.number&&delete b.integer;for(const F in b)m=(0,f.and)(m,I(F,v,O,p));return m}e.checkDataTypes=A;const u={message:({schema:d})=>`must be ${d}`,params:({schema:d,schemaValue:v})=>typeof d=="string"?(0,f._)`{type: ${d}}`:(0,f._)`{type: ${v}}`};function c(d){const v=P(d);(0,$.reportError)(v,u)}e.reportTypeError=c;function P(d){const{gen:v,data:O,schema:p}=d,m=(0,S.schemaRefOrVal)(d,p,"type");return{gen:v,keyword:"type",data:O,schema:p.type,schemaCode:m,schemaValue:m,parentSchema:p,params:{},it:d}}},96841:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;const t=n(17898),r=n(50458);function $(S,o){const{properties:h,items:s}=S.schema;if(o==="object"&&h)for(const l in h)f(S,l,h[l].default);else o==="array"&&Array.isArray(s)&&s.forEach((l,_)=>f(S,_,l.default))}e.assignDefaults=$;function f(S,o,h){const{gen:s,compositeRule:l,data:_,opts:E}=S;if(h===void 0)return;const N=(0,t._)`${_}${(0,t.getProperty)(o)}`;if(l){(0,r.checkStrictMode)(S,`default is ignored for: ${N}`);return}let R=(0,t._)`${N} === undefined`;E.useDefaults==="empty"&&(R=(0,t._)`${R} || ${N} === null || ${N} === ""`),s.if(R,(0,t._)`${N} = ${(0,t.stringify)(h)}`)}},96223:function(B,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),$=n(74758),f=n(69003),S=n(96841),o=n(49348),h=n(53322),s=n(17898),l=n(63036),_=n(14856),E=n(50458),N=n(49409);function R(T){if(p(T)&&(b(T),O(T))){c(T);return}I(T,()=>(0,t.topBoolOrEmptySchema)(T))}e.validateFunctionCode=R;function I({gen:T,validateName:j,schema:U,schemaEnv:K,opts:Y},q){Y.code.es5?T.func(j,(0,s._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{T.code((0,s._)`"use strict"; ${d(U,Y)}`),u(T,Y),T.code(q)}):T.func(j,(0,s._)`${l.default.data}, ${A(Y)}`,K.$async,()=>T.code(d(U,Y)).code(q))}function A(T){return(0,s._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${T.dynamicRef?(0,s._)`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}function u(T,j){T.if(l.default.valCxt,()=>{T.var(l.default.instancePath,(0,s._)`${l.default.valCxt}.${l.default.instancePath}`),T.var(l.default.parentData,(0,s._)`${l.default.valCxt}.${l.default.parentData}`),T.var(l.default.parentDataProperty,(0,s._)`${l.default.valCxt}.${l.default.parentDataProperty}`),T.var(l.default.rootData,(0,s._)`${l.default.valCxt}.${l.default.rootData}`),j.dynamicRef&&T.var(l.default.dynamicAnchors,(0,s._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{T.var(l.default.instancePath,(0,s._)`""`),T.var(l.default.parentData,(0,s._)`undefined`),T.var(l.default.parentDataProperty,(0,s._)`undefined`),T.var(l.default.rootData,l.default.data),j.dynamicRef&&T.var(l.default.dynamicAnchors,(0,s._)`{}`)})}function c(T){const{schema:j,opts:U,gen:K}=T;I(T,()=>{U.$comment&&j.$comment&&Z(T),G(T),K.let(l.default.vErrors,null),K.let(l.default.errors,0),U.unevaluated&&P(T),F(T),se(T)})}function P(T){const{gen:j,validateName:U}=T;T.evaluated=j.const("evaluated",(0,s._)`${U}.evaluated`),j.if((0,s._)`${T.evaluated}.dynamicProps`,()=>j.assign((0,s._)`${T.evaluated}.props`,(0,s._)`undefined`)),j.if((0,s._)`${T.evaluated}.dynamicItems`,()=>j.assign((0,s._)`${T.evaluated}.items`,(0,s._)`undefined`))}function d(T,j){const U=typeof T=="object"&&T[j.schemaId];return U&&(j.code.source||j.code.process)?(0,s._)`/*# sourceURL=${U} */`:s.nil}function v(T,j){if(p(T)&&(b(T),O(T))){m(T,j);return}(0,t.boolOrEmptySchema)(T,j)}function O({schema:T,self:j}){if(typeof T=="boolean")return!T;for(const U in T)if(j.RULES.all[U])return!0;return!1}function p(T){return typeof T.schema!="boolean"}function m(T,j){const{schema:U,gen:K,opts:Y}=T;Y.$comment&&U.$comment&&Z(T),J(T),ce(T);const q=K.const("_errs",l.default.errors);F(T,q),K.var(j,(0,s._)`${q} === ${l.default.errors}`)}function b(T){(0,E.checkUnknownRules)(T),L(T)}function F(T,j){if(T.opts.jtd)return Te(T,[],!1,j);const U=(0,r.getSchemaTypes)(T.schema),K=(0,r.coerceAndCheckDataType)(T,U);Te(T,U,!K,j)}function L(T){const{schema:j,errSchemaPath:U,opts:K,self:Y}=T;j.$ref&&K.ignoreKeywordsWithRef&&(0,E.schemaHasRulesButRef)(j,Y.RULES)&&Y.logger.warn(`$ref: keywords ignored in schema at path "${U}"`)}function G(T){const{schema:j,opts:U}=T;j.default!==void 0&&U.useDefaults&&U.strictSchema&&(0,E.checkStrictMode)(T,"default is ignored in the schema root")}function J(T){const j=T.schema[T.opts.schemaId];j&&(T.baseId=(0,_.resolveUrl)(T.opts.uriResolver,T.baseId,j))}function ce(T){if(T.schema.$async&&!T.schemaEnv.$async)throw new Error("async schema in sync schema")}function Z({gen:T,schemaEnv:j,schema:U,errSchemaPath:K,opts:Y}){const q=U.$comment;if(Y.$comment===!0)T.code((0,s._)`${l.default.self}.logger.log(${q})`);else if(typeof Y.$comment=="function"){const ve=(0,s.str)`${K}/$comment`,Se=T.scopeValue("root",{ref:j.root});T.code((0,s._)`${l.default.self}.opts.$comment(${q}, ${ve}, ${Se}.schema)`)}}function se(T){const{gen:j,schemaEnv:U,validateName:K,ValidationError:Y,opts:q}=T;U.$async?j.if((0,s._)`${l.default.errors} === 0`,()=>j.return(l.default.data),()=>j.throw((0,s._)`new ${Y}(${l.default.vErrors})`)):(j.assign((0,s._)`${K}.errors`,l.default.vErrors),q.unevaluated&&_e(T),j.return((0,s._)`${l.default.errors} === 0`))}function _e({gen:T,evaluated:j,props:U,items:K}){U instanceof s.Name&&T.assign((0,s._)`${j}.props`,U),K instanceof s.Name&&T.assign((0,s._)`${j}.items`,K)}function Te(T,j,U,K){const{gen:Y,schema:q,data:ve,allErrors:Se,opts:ye,self:de}=T,{RULES:ge}=de;if(q.$ref&&(ye.ignoreKeywordsWithRef||!(0,E.schemaHasRulesButRef)(q,ge))){Y.block(()=>X(T,"$ref",ge.all.$ref.definition));return}ye.jtd||oe(T,j),Y.block(()=>{for(const we of ge.rules)ke(we);ke(ge.post)});function ke(we){(0,$.shouldUseGroup)(q,we)&&(we.type?(Y.if((0,f.checkDataType)(we.type,ve,ye.strictNumbers)),Oe(T,we),j.length===1&&j[0]===we.type&&U&&(Y.else(),(0,f.reportTypeError)(T)),Y.endIf()):Oe(T,we),Se||Y.if((0,s._)`${l.default.errors} === ${K||0}`))}}function Oe(T,j){const{gen:U,schema:K,opts:{useDefaults:Y}}=T;Y&&(0,S.assignDefaults)(T,j.type),U.block(()=>{for(const q of j.rules)(0,$.shouldUseRule)(K,q)&&X(T,q.keyword,q.definition,j.type)})}function oe(T,j){T.schemaEnv.meta||!T.opts.strictTypes||(H(T,j),T.opts.allowUnionTypes||C(T,j),z(T,T.dataTypes))}function H(T,j){if(j.length){if(!T.dataTypes.length){T.dataTypes=j;return}j.forEach(U=>{a(T.dataTypes,U)||V(T,`type "${U}" not allowed by context "${T.dataTypes.join(",")}"`)}),y(T,j)}}function C(T,j){j.length>1&&!(j.length===2&&j.includes("null"))&&V(T,"use allowUnionTypes to allow union type keyword")}function z(T,j){const U=T.self.RULES.all;for(const K in U){const Y=U[K];if(typeof Y=="object"&&(0,$.shouldUseRule)(T.schema,Y)){const{type:q}=Y.definition;q.length&&!q.some(ve=>D(j,ve))&&V(T,`missing type "${q.join(",")}" for keyword "${K}"`)}}}function D(T,j){return T.includes(j)||j==="number"&&T.includes("integer")}function a(T,j){return T.includes(j)||j==="integer"&&T.includes("number")}function y(T,j){const U=[];for(const K of T.dataTypes)a(j,K)?U.push(K):j.includes("integer")&&K==="number"&&U.push("integer");T.dataTypes=U}function V(T,j){const U=T.schemaEnv.baseId+T.errSchemaPath;j+=` at "${U}" (strictTypes)`,(0,E.checkStrictMode)(T,j,T.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,E.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,s.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,s.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,s._)`${U} !== undefined && (${(0,s.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=s.nil){this.gen.block(()=>{this.check$data(j,K),U()})}check$data(j=s.nil,U=s.nil){if(!this.$data)return;const{gen:K,schemaCode:Y,schemaType:q,def:ve}=this;K.if((0,s.or)((0,s._)`${Y} === undefined`,U)),j!==s.nil&&K.assign(j,!0),(q.length||ve.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),j!==s.nil&&K.assign(j,!1)),K.else()}invalid$data(){const{gen:j,schemaCode:U,schemaType:K,def:Y,it:q}=this;return(0,s.or)(ve(),Se());function ve(){if(K.length){if(!(U instanceof s.Name))throw new Error("ajv implementation error");const ye=Array.isArray(K)?K:[K];return(0,s._)`${(0,f.checkDataTypes)(ye,U,q.opts.strictNumbers,f.DataType.Wrong)}`}return s.nil}function Se(){if(Y.validateSchema){const ye=j.scopeValue("validate$data",{ref:Y.validateSchema});return(0,s._)`!${ye}(${U})`}return s.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 v(Y,U),Y}mergeEvaluated(j,U){const{it:K,gen:Y}=this;K.opts.unevaluated&&(K.props!==!0&&j.props!==void 0&&(K.props=E.mergeEvaluated.props(Y,j.props,K.props,U)),K.items!==!0&&j.items!==void 0&&(K.items=E.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,s.Name)),!0}}e.KeywordCxt=Q;function X(T,j,U,K){const Y=new Q(T,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(T,{dataLevel:j,dataNames:U,dataPathArr:K}){let Y,q;if(T==="")return l.default.rootData;if(T[0]==="/"){if(!te.test(T))throw new Error(`Invalid JSON-pointer: ${T}`);Y=T,q=l.default.rootData}else{const de=ee.exec(T);if(!de)throw new Error(`Invalid JSON-pointer: ${T}`);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,s._)`${q}${(0,s.getProperty)((0,E.unescapeJsonPointer)(de))}`,ve=(0,s._)`${ve} && ${q}`);return ve;function ye(de,ge){return`Cannot access ${de} ${ge} levels up, current level is ${j}`}}e.getData=fe},49348:function(B,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),$=n(94450),f=n(49409);function S(R,I){const{gen:A,keyword:u,schema:c,parentSchema:P,it:d}=R,v=I.macro.call(d.self,c,P,d),O=_(A,u,v);d.opts.validateSchema!==!1&&d.self.validateSchema(v,!0);const p=A.name("valid");R.subschema({schema:v,schemaPath:t.nil,errSchemaPath:`${d.errSchemaPath}/${u}`,topSchemaRef:O,compositeRule:!0},p),R.pass(p,()=>R.error(!0))}e.macroKeywordCode=S;function o(R,I){var A;const{gen:u,keyword:c,schema:P,parentSchema:d,$data:v,it:O}=R;l(O,I);const p=!v&&I.compile?I.compile.call(O.self,P,d,O):I.validate,m=_(u,c,p),b=u.let("valid");R.block$data(b,F),R.ok((A=I.valid)!==null&&A!==void 0?A:b);function F(){if(I.errors===!1)J(),I.modifying&&h(R),ce(()=>R.error());else{const Z=I.async?L():G();I.modifying&&h(R),ce(()=>s(R,Z))}}function L(){const Z=u.let("ruleErrs",null);return u.try(()=>J((0,t._)`await `),se=>u.assign(b,!1).if((0,t._)`${se} instanceof ${O.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),J(t.nil),Z}function J(Z=I.async?(0,t._)`await `:t.nil){const se=O.opts.passContext?r.default.this:r.default.self,_e=!("compile"in I&&!v||I.schema===!1);u.assign(b,(0,t._)`${Z}${(0,$.callValidateCode)(R,m,se,_e)}`,I.modifying)}function ce(Z){var se;u.if((0,t.not)((se=I.valid)!==null&&se!==void 0?se:b),Z)}}e.funcKeywordCode=o;function h(R){const{gen:I,data:A,it:u}=R;I.if(u.parentData,()=>I.assign(A,(0,t._)`${u.parentData}[${u.parentDataProperty}]`))}function s(R,I){const{gen:A}=R;A.if((0,t._)`Array.isArray(${I})`,()=>{A.assign(r.default.vErrors,(0,t._)`${r.default.vErrors} === null ? ${I} : ${r.default.vErrors}.concat(${I})`).assign(r.default.errors,(0,t._)`${r.default.vErrors}.length`),(0,f.extendErrors)(R)},()=>R.error())}function l({schemaEnv:R},I){if(I.async&&!R.$async)throw new Error("async keyword in sync schema")}function _(R,I,A){if(A===void 0)throw new Error(`keyword "${I}" failed to compile`);return R.scopeValue("keyword",typeof A=="function"?{ref:A}:{ref:A,code:(0,t.stringify)(A)})}function E(R,I,A=!1){return!I.length||I.some(u=>u==="array"?Array.isArray(R):u==="object"?R&&typeof R=="object"&&!Array.isArray(R):typeof R==u||A&&typeof R=="undefined")}e.validSchemaType=E;function N({schema:R,opts:I,self:A,errSchemaPath:u},c,P){if(Array.isArray(c.keyword)?!c.keyword.includes(P):c.keyword!==P)throw new Error("ajv implementation error");const d=c.dependencies;if(d!=null&&d.some(v=>!Object.prototype.hasOwnProperty.call(R,v)))throw new Error(`parent schema must have dependencies of ${P}: ${d.join(",")}`);if(c.validateSchema&&!c.validateSchema(R[P])){const O=`keyword "${P}" value is invalid at path "${u}": `+A.errorsText(c.validateSchema.errors);if(I.validateSchema==="log")A.logger.error(O);else throw new Error(O)}}e.validateKeywordUsage=N},53322:function(B,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 $(o,{keyword:h,schemaProp:s,schema:l,schemaPath:_,errSchemaPath:E,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 R=o.schema[h];return s===void 0?{schema:R,schemaPath:(0,t._)`${o.schemaPath}${(0,t.getProperty)(h)}`,errSchemaPath:`${o.errSchemaPath}/${h}`}:{schema:R[s],schemaPath:(0,t._)`${o.schemaPath}${(0,t.getProperty)(h)}${(0,t.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${h}/${(0,r.escapeFragment)(s)}`}}if(l!==void 0){if(_===void 0||E===void 0||N===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:_,topSchemaRef:N,errSchemaPath:E}}throw new Error('either "keyword" or "schema" must be passed')}e.getSubschema=$;function f(o,h,{dataProp:s,dataPropType:l,data:_,dataTypes:E,propertyName:N}){if(_!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:R}=h;if(s!==void 0){const{errorPath:A,dataPathArr:u,opts:c}=h,P=R.let("data",(0,t._)`${h.data}${(0,t.getProperty)(s)}`,!0);I(P),o.errorPath=(0,t.str)`${A}${(0,r.getErrorPath)(s,l,c.jsPropertySyntax)}`,o.parentDataProperty=(0,t._)`${s}`,o.dataPathArr=[...u,o.parentDataProperty]}if(_!==void 0){const A=_ instanceof t.Name?_:R.let("data",_,!0);I(A),N!==void 0&&(o.propertyName=N)}E&&(o.dataTypes=E);function I(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 S(o,{jtdDiscriminator:h,jtdMetadata:s,compositeRule:l,createErrors:_,allErrors:E}){l!==void 0&&(o.compositeRule=l),_!==void 0&&(o.createErrors=_),E!==void 0&&(o.allErrors=E),o.jtdDiscriminator=h,o.jtdMetadata=s}e.extendSubschemaMode=S},65319:function(B,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 $=n(95031),f=n(85748),S=n(90383),o=n(49392),h=n(17898),s=n(14856),l=n(69003),_=n(50458),E=n(93770),N=n(7903),R=(H,C)=>new RegExp(H,C);R.code="new RegExp";const I=["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."},c={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},P=200;function d(H){var C,z,D,a,y,V,Q,X,te,ee,fe,T,j,U,K,Y,q,ve,Se,ye,de,ge,ke,we,Xe;const Fe=H.strict,Pe=(C=H.code)===null||C===void 0?void 0:C.optimize,Ve=Pe===!0||Pe===void 0?1:Pe||0,Ye=(D=(z=H.code)===null||z===void 0?void 0:z.regExp)!==null&&D!==void 0?D:R,nt=(a=H.uriResolver)!==null&&a!==void 0?a: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:(T=(fe=H.strictTuples)!==null&&fe!==void 0?fe:Fe)!==null&&T!==void 0?T:"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:P,loopEnum:(Y=H.loopEnum)!==null&&Y!==void 0?Y:P,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 v{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,...d(C)};const{es5:z,lines:D}=this.opts.code;this.scope=new h.ValueScope({scope:{},prefixes:A,es5:z,lines:D}),this.logger=J(C.logger);const a=C.validateFormats;C.validateFormats=!1,this.RULES=(0,S.getRules)(),O.call(this,u,C,"NOT SUPPORTED"),O.call(this,c,C,"DEPRECATED","warn"),this._metaOpts=L.call(this),C.formats&&b.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&F.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),m.call(this),C.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:z,schemaId:D}=this.opts;let a=E;D==="id"&&(a={...E},a.id=a.$id,delete a.$id),z&&C&&this.addMetaSchema(a,a[D],!1)}defaultMeta(){const{meta:C,schemaId:z}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[z]||C:void 0}validate(C,z){let D;if(typeof C=="string"){if(D=this.getSchema(C),!D)throw new Error(`no schema with key or ref "${C}"`)}else D=this.compile(C);const a=D(z);return"$async"in D||(this.errors=D.errors),a}compile(C,z){const D=this._addSchema(C,z);return D.validate||this._compileSchemaEnv(D)}compileAsync(C,z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return a.call(this,C,z);async function a(ee,fe){await y.call(this,ee.$schema);const T=this._addSchema(ee,fe);return T.validate||V.call(this,T)}async function y(ee){ee&&!this.getSchema(ee)&&await a.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(C,z,D,a=this.opts.validateSchema){if(Array.isArray(C)){for(const V of C)this.addSchema(V,void 0,D,a);return this}let y;if(typeof C=="object"){const{schemaId:V}=this.opts;if(y=C[V],y!==void 0&&typeof y!="string")throw new Error(`schema ${V} must be string`)}return z=(0,s.normalizeId)(z||y),this._checkUnique(z),this.schemas[z]=this._addSchema(C,D,z,a,!0),this}addMetaSchema(C,z,D=this.opts.validateSchema){return this.addSchema(C,z,!0,D),this}validateSchema(C,z){if(typeof C=="boolean")return!0;let D;if(D=C.$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 a=this.validate(D,C);if(!a&&z){const y="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(y);else throw new Error(y)}return a}getSchema(C){let z;for(;typeof(z=p.call(this,C))=="string";)C=z;if(z===void 0){const{schemaId:D}=this.opts,a=new o.SchemaEnv({schema:{},schemaId:D});if(z=o.resolveSchema.call(this,a,C),!z)return;this.refs[C]=z}return z.validate||this._compileSchemaEnv(z)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const z=p.call(this,C);return typeof z=="object"&&this._cache.delete(z.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const z=C;this._cache.delete(z);let D=C[this.opts.schemaId];return D&&(D=(0,s.normalizeId)(D),delete this.schemas[D],delete this.refs[D]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const z of C)this.addKeyword(z);return this}addKeyword(C,z){let D;if(typeof C=="string")D=C,typeof z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),z.keyword=D);else if(typeof C=="object"&&z===void 0){if(z=C,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,_.eachItem)(D,y=>se.call(this,y)),this;Te.call(this,z);const a={...z,type:(0,l.getJSONTypes)(z.type),schemaType:(0,l.getJSONTypes)(z.schemaType)};return(0,_.eachItem)(D,a.type.length===0?y=>se.call(this,y,a):y=>a.type.forEach(V=>se.call(this,y,a,V))),this}getKeyword(C){const z=this.RULES.all[C];return typeof z=="object"?z.definition:!!z}removeKeyword(C){const{RULES:z}=this;delete z.keywords[C],delete z.all[C];for(const D of z.rules){const a=D.rules.findIndex(y=>y.keyword===C);a>=0&&D.rules.splice(a,1)}return this}addFormat(C,z){return typeof z=="string"&&(z=new RegExp(z)),this.formats[C]=z,this}errorsText(C=this.errors,{separator:z=", ",dataVar:D="data"}={}){return!C||C.length===0?"No errors":C.map(a=>`${D}${a.instancePath} ${a.message}`).reduce((a,y)=>a+z+y)}$dataMetaSchema(C,z){const D=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const a of z){const y=a.split("/").slice(1);let V=C;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 C}_removeAllSchemas(C,z){for(const D in C){const a=C[D];(!z||z.test(D))&&(typeof a=="string"?delete C[D]:a&&!a.meta&&(this._cache.delete(a.schema),delete C[D]))}}_addSchema(C,z,D,a=this.opts.validateSchema,y=this.opts.addUsedSchema){let V;const{schemaId:Q}=this.opts;if(typeof C=="object")V=C[Q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let X=this._cache.get(C);if(X!==void 0)return X;D=(0,s.normalizeId)(V||D);const te=s.getSchemaRefs.call(this,C,D);return X=new o.SchemaEnv({schema:C,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),a&&this.validateSchema(C,!0),X}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):o.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const z=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,C)}finally{this.opts=z}}}e.default=v,v.ValidationError=$.default,v.MissingRefError=f.default;function O(H,C,z,D="error"){for(const a in H){const y=a;y in C&&this.logger[D](`${z}: option ${a}. ${H[y]}`)}}function p(H){return H=(0,s.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 C in H)this.addSchema(H[C],C)}function b(){for(const H in this.opts.formats){const C=this.opts.formats[H];C&&this.addFormat(H,C)}}function F(H){if(Array.isArray(H)){this.addVocabulary(H);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in H){const z=H[C];z.keyword||(z.keyword=C),this.addKeyword(z)}}function L(){const H={...this.opts};for(const C of I)delete H[C];return H}const G={log(){},warn(){},error(){}};function J(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 ce=/^[a-z_$][a-z0-9_$:-]*$/i;function Z(H,C){const{RULES:z}=this;if((0,_.eachItem)(H,D=>{if(z.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!ce.test(D))throw new Error(`Keyword ${D} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function se(H,C,z){var D;const a=C==null?void 0:C.post;if(z&&a)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:y}=this;let V=a?y.post:y.rules.find(({type:X})=>X===z);if(V||(V={type:z,rules:[]},y.rules.push(V)),y.keywords[H]=!0,!C)return;const Q={keyword:H,definition:{...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)}};C.before?_e.call(this,V,Q,C.before):V.rules.push(Q),y.all[H]=Q,(D=C.implements)===null||D===void 0||D.forEach(X=>this.addKeyword(X))}function _e(H,C,z){const D=H.rules.findIndex(a=>a.keyword===z);D>=0?H.rules.splice(D,0,C):(H.rules.push(C),this.logger.warn(`rule ${z} is not defined`))}function Te(H){let{metaSchema:C}=H;C!==void 0&&(H.$data&&this.opts.$data&&(C=oe(C)),H.validateSchema=this.compile(C,!0))}const Oe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function oe(H){return{anyOf:[H,Oe]}}},72725:function(B,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:function(B,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){const r=t.length;let $=0,f=0,S;for(;f<r;)$++,S=t.charCodeAt(f++),S>=55296&&S<=56319&&f<r&&(S=t.charCodeAt(f),(S&64512)===56320&&f++);return $}e.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},7903:function(B,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:function(B,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:function(B,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:s}=o,{items:l}=h;if(!Array.isArray(l)){(0,r.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}S(o,l)}};function S(o,h){const{gen:s,schema:l,data:_,keyword:E,it:N}=o;N.items=!0;const R=s.const("len",(0,t._)`${_}.length`);if(l===!1)o.setParams({len:h.length}),o.pass((0,t._)`${R} <= ${h.length}`);else if(typeof l=="object"&&!(0,r.alwaysValidSchema)(N,l)){const A=s.var("valid",(0,t._)`${R} <= ${h.length}`);s.if((0,t.not)(A),()=>I(A)),o.ok(A)}function I(A){s.forRange("i",h.length,R,u=>{o.subschema({keyword:E,dataProp:u,dataPropType:r.Type.Num},A),N.allErrors||s.if((0,t.not)(A),()=>s.break())})}}e.validateAdditionalItems=S,e.default=f},92697:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(94450),r=n(17898),$=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:s,schema:l,parentSchema:_,data:E,errsCount:N,it:R}=h;if(!N)throw new Error("ajv implementation error");const{allErrors:I,opts:A}=R;if(R.props=!0,A.removeAdditional!=="all"&&(0,f.alwaysValidSchema)(R,l))return;const u=(0,t.allSchemaProperties)(_.properties),c=(0,t.allSchemaProperties)(_.patternProperties);P(),h.ok((0,r._)`${N} === ${$.default.errors}`);function P(){s.forIn("key",E,m=>{!u.length&&!c.length?O(m):s.if(d(m),()=>O(m))})}function d(m){let b;if(u.length>8){const F=(0,f.schemaRefOrVal)(R,_.properties,"properties");b=(0,t.isOwnProperty)(s,F,m)}else u.length?b=(0,r.or)(...u.map(F=>(0,r._)`${m} === ${F}`)):b=r.nil;return c.length&&(b=(0,r.or)(b,...c.map(F=>(0,r._)`${(0,t.usePattern)(h,F)}.test(${m})`))),(0,r.not)(b)}function v(m){s.code((0,r._)`delete ${E}[${m}]`)}function O(m){if(A.removeAdditional==="all"||A.removeAdditional&&l===!1){v(m);return}if(l===!1){h.setParams({additionalProperty:m}),h.error(),I||s.break();return}if(typeof l=="object"&&!(0,f.alwaysValidSchema)(R,l)){const b=s.name("valid");A.removeAdditional==="failing"?(p(m,b,!1),s.if((0,r.not)(b),()=>{h.reset(),v(m)})):(p(m,b),I||s.if((0,r.not)(b),()=>s.break()))}}function p(m,b,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,b)}}};e.default=o},79355:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(50458),r={keyword:"allOf",schemaType:"array",code($){const{gen:f,schema:S,it:o}=$;if(!Array.isArray(S))throw new Error("ajv implementation error");const h=f.name("valid");S.forEach((s,l)=>{if((0,t.alwaysValidSchema)(o,s))return;const _=$.subschema({keyword:"allOf",schemaProp:l},h);$.ok(h),$.mergeEvaluated(_)})}};e.default=r},19430:function(B,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:function(B,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:S,max:o}})=>o===void 0?(0,t.str)`must contain at least ${S} valid item(s)`:(0,t.str)`must contain at least ${S} and no more than ${o} valid item(s)`,params:({params:{min:S,max:o}})=>o===void 0?(0,t._)`{minContains: ${S}}`:(0,t._)`{minContains: ${S}, maxContains: ${o}}`},code(S){const{gen:o,schema:h,parentSchema:s,data:l,it:_}=S;let E,N;const{minContains:R,maxContains:I}=s;_.opts.next?(E=R===void 0?1:R,N=I):E=1;const A=o.const("len",(0,t._)`${l}.length`);if(S.setParams({min:E,max:N}),N===void 0&&E===0){(0,r.checkStrictMode)(_,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(N!==void 0&&E>N){(0,r.checkStrictMode)(_,'"minContains" > "maxContains" is always invalid'),S.fail();return}if((0,r.alwaysValidSchema)(_,h)){let v=(0,t._)`${A} >= ${E}`;N!==void 0&&(v=(0,t._)`${v} && ${A} <= ${N}`),S.pass(v);return}_.items=!0;const u=o.name("valid");N===void 0&&E===1?P(u,()=>o.if(u,()=>o.break())):E===0?(o.let(u,!0),N!==void 0&&o.if((0,t._)`${l}.length > 0`,c)):(o.let(u,!1),c()),S.result(u,()=>S.reset());function c(){const v=o.name("_valid"),O=o.let("count",0);P(v,()=>o.if(v,()=>d(O)))}function P(v,O){o.forRange("i",0,A,p=>{S.subschema({keyword:"contains",dataProp:p,dataPropType:r.Type.Num,compositeRule:!0},v),O()})}function d(v){o.code((0,t._)`${v}++`),N===void 0?o.if((0,t._)`${v} >= ${E}`,()=>o.assign(u,!0).break()):(o.if((0,t._)`${v} > ${N}`,()=>o.assign(u,!1).break()),E===1?o.assign(u,!0):o.if((0,t._)`${v} >= ${E}`,()=>o.assign(u,!0)))}}};e.default=f},99868:function(B,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),$=n(94450);e.error={message:({params:{property:s,depsCount:l,deps:_}})=>{const E=l===1?"property":"properties";return(0,t.str)`must have ${E} ${_} when property ${s} is present`},params:({params:{property:s,depsCount:l,deps:_,missingProperty:E}})=>(0,t._)`{property: ${s},
|
|
6
|
-
missingProperty: ${E},
|
|
7
|
-
depsCount: ${l},
|
|
8
|
-
deps: ${_}}`};const f={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(s){const[l,_]=S(s);o(s,l),h(s,_)}};function S({schema:s}){const l={},_={};for(const E in s){if(E==="__proto__")continue;const N=Array.isArray(s[E])?l:_;N[E]=s[E]}return[l,_]}function o(s,l=s.schema){const{gen:_,data:E,it:N}=s;if(Object.keys(l).length===0)return;const R=_.let("missing");for(const I in l){const A=l[I];if(A.length===0)continue;const u=(0,$.propertyInData)(_,E,I,N.opts.ownProperties);s.setParams({property:I,depsCount:A.length,deps:A.join(", ")}),N.allErrors?_.if(u,()=>{for(const c of A)(0,$.checkReportMissingProp)(s,c)}):(_.if((0,t._)`${u} && (${(0,$.checkMissingProp)(s,A,R)})`),(0,$.reportMissingProp)(s,R),_.else())}}e.validatePropertyDeps=o;function h(s,l=s.schema){const{gen:_,data:E,keyword:N,it:R}=s,I=_.name("valid");for(const A in l)(0,r.alwaysValidSchema)(R,l[A])||(_.if((0,$.propertyInData)(_,E,A,R.opts.ownProperties),()=>{const u=s.subschema({keyword:N,schemaProp:A},I);s.mergeValidEvaluated(u,I)},()=>_.var(I,!0)),s.ok(I))}e.validateSchemaDeps=h,e.default=f},70510:function(B,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:s,it:l}=o;s.then===void 0&&s.else===void 0&&(0,r.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const _=S(l,"then"),E=S(l,"else");if(!_&&!E)return;const N=h.let("valid",!0),R=h.name("_valid");if(I(),o.reset(),_&&E){const u=h.let("ifClause");o.setParams({ifClause:u}),h.if(R,A("then",u),A("else",u))}else _?h.if(R,A("then")):h.if((0,t.not)(R),A("else"));o.pass(N,()=>o.error(!0));function I(){const u=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},R);o.mergeEvaluated(u)}function A(u,c){return()=>{const P=o.subschema({keyword:u},R);h.assign(N,R),o.mergeValidEvaluated(P,N),c?h.assign(c,(0,t._)`${u}`):o.setParams({ifClause:u})}}}};function S(o,h){const s=o.schema[h];return s!==void 0&&!(0,r.alwaysValidSchema)(o,s)}e.default=f},18225:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(93426),r=n(61349),$=n(44153),f=n(19753),S=n(35724),o=n(99868),h=n(67486),s=n(92697),l=n(19660),_=n(98422),E=n(65532),N=n(19430),R=n(98768),I=n(79355),A=n(70510),u=n(45255);function c(P=!1){const d=[E.default,N.default,R.default,I.default,A.default,u.default,h.default,s.default,o.default,l.default,_.default];return P?d.push(r.default,f.default):d.push(t.default,$.default),d.push(S.default),d}e.default=c},44153:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;const t=n(17898),r=n(50458),$=n(94450),f={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:h,it:s}=o;if(Array.isArray(h))return S(o,"additionalItems",h);s.items=!0,!(0,r.alwaysValidSchema)(s,h)&&o.ok((0,$.validateArray)(o))}};function S(o,h,s=o.schema){const{gen:l,parentSchema:_,data:E,keyword:N,it:R}=o;u(_),R.opts.unevaluated&&s.length&&R.items!==!0&&(R.items=r.mergeEvaluated.items(l,s.length,R.items));const I=l.name("valid"),A=l.const("len",(0,t._)`${E}.length`);s.forEach((c,P)=>{(0,r.alwaysValidSchema)(R,c)||(l.if((0,t._)`${A} > ${P}`,()=>o.subschema({keyword:N,schemaProp:P,dataProp:P},I)),o.ok(I))});function u(c){const{opts:P,errSchemaPath:d}=R,v=s.length,O=v===c.minItems&&(v===c.maxItems||c[h]===!1);if(P.strictTuples&&!O){const p=`"${N}" is ${v}-tuple, but minItems or maxItems/${h} are not specified or different at path "${d}"`;(0,r.checkStrictMode)(R,p,P.strictTuples)}}}e.validateTuple=S,e.default=f},19753:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),$=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:s,parentSchema:l,it:_}=h,{prefixItems:E}=l;_.items=!0,!(0,r.alwaysValidSchema)(_,s)&&(E?(0,f.validateAdditionalItems)(h,E):h.ok((0,$.validateArray)(h)))}};e.default=o},65532:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(50458),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code($){const{gen:f,schema:S,it:o}=$;if((0,t.alwaysValidSchema)(o,S)){$.fail();return}const h=f.name("valid");$.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},h),$.failResult(h,()=>$.reset(),()=>$.error())},error:{message:"must NOT be valid"}};e.default=r},98768:function(B,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:S})=>(0,t._)`{passingSchemas: ${S.passing}}`},code(S){const{gen:o,schema:h,parentSchema:s,it:l}=S;if(!Array.isArray(h))throw new Error("ajv implementation error");if(l.opts.discriminator&&s.discriminator)return;const _=h,E=o.let("valid",!1),N=o.let("passing",null),R=o.name("_valid");S.setParams({passing:N}),o.block(I),S.result(E,()=>S.reset(),()=>S.error(!0));function I(){_.forEach((A,u)=>{let c;(0,r.alwaysValidSchema)(l,A)?o.var(R,!0):c=S.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},R),u>0&&o.if((0,t._)`${R} && ${E}`).assign(E,!1).assign(N,(0,t._)`[${N}, ${u}]`).else(),o.if(R,()=>{o.assign(E,!0),o.assign(N,u),c&&S.mergeEvaluated(c,t.Name)})})}}};e.default=f},98422:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(94450),r=n(17898),$=n(50458),f=n(50458),S={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:h,schema:s,data:l,parentSchema:_,it:E}=o,{opts:N}=E,R=(0,t.allSchemaProperties)(s),I=R.filter(O=>(0,$.alwaysValidSchema)(E,s[O]));if(R.length===0||I.length===R.length&&(!E.opts.unevaluated||E.props===!0))return;const A=N.strictSchema&&!N.allowMatchingProperties&&_.properties,u=h.name("valid");E.props!==!0&&!(E.props instanceof r.Name)&&(E.props=(0,f.evaluatedPropsToName)(h,E.props));const{props:c}=E;P();function P(){for(const O of R)A&&d(O),E.allErrors?v(O):(h.var(u,!0),v(O),h.if(u))}function d(O){for(const p in A)new RegExp(O).test(p)&&(0,$.checkStrictMode)(E,`property ${p} matches pattern ${O} (use allowMatchingProperties)`)}function v(O){h.forIn("key",l,p=>{h.if((0,r._)`${(0,t.usePattern)(o,O)}.test(${p})`,()=>{const m=I.includes(O);m||o.subschema({keyword:"patternProperties",schemaProp:O,dataProp:p,dataPropType:f.Type.Str},u),E.opts.unevaluated&&c!==!0?h.assign((0,r._)`${c}[${p}]`,!0):!m&&!E.allErrors&&h.if((0,r.not)(u),()=>h.break())})})}}};e.default=S},61349:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(44153),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:$=>(0,t.validateTuple)($,"items")};e.default=r},19660:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(96223),r=n(94450),$=n(50458),f=n(92697),S={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:h,schema:s,parentSchema:l,data:_,it:E}=o;E.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&f.default.code(new t.KeywordCxt(E,f.default,"additionalProperties"));const N=(0,r.allSchemaProperties)(s);for(const c of N)E.definedProperties.add(c);E.opts.unevaluated&&N.length&&E.props!==!0&&(E.props=$.mergeEvaluated.props(h,(0,$.toHash)(N),E.props));const R=N.filter(c=>!(0,$.alwaysValidSchema)(E,s[c]));if(R.length===0)return;const I=h.name("valid");for(const c of R)A(c)?u(c):(h.if((0,r.propertyInData)(h,_,c,E.opts.ownProperties)),u(c),E.allErrors||h.else().var(I,!0),h.endIf()),o.it.definedProperties.add(c),o.ok(I);function A(c){return E.opts.useDefaults&&!E.compositeRule&&s[c].default!==void 0}function u(c){o.subschema({keyword:"properties",schemaProp:c,dataProp:c},I)}}};e.default=S},67486:function(B,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:S})=>(0,t._)`{propertyName: ${S.propertyName}}`},code(S){const{gen:o,schema:h,data:s,it:l}=S;if((0,r.alwaysValidSchema)(l,h))return;const _=o.name("valid");o.forIn("key",s,E=>{S.setParams({propertyName:E}),S.subschema({keyword:"propertyNames",data:E,dataTypes:["string"],propertyName:E,compositeRule:!0},_),o.if((0,t.not)(_),()=>{S.error(!0),l.allErrors||o.break()})}),S.ok(_)}};e.default=f},45255:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(50458),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:$,parentSchema:f,it:S}){f.if===void 0&&(0,t.checkStrictMode)(S,`"${$}" without "if" is ignored`)}};e.default=r},94450:function(B,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),$=n(63036),f=n(50458);function S(d,v){const{gen:O,data:p,it:m}=d;O.if(E(O,p,v,m.opts.ownProperties),()=>{d.setParams({missingProperty:(0,t._)`${v}`},!0),d.error()})}e.checkReportMissingProp=S;function o({gen:d,data:v,it:{opts:O}},p,m){return(0,t.or)(...p.map(b=>(0,t.and)(E(d,v,b,O.ownProperties),(0,t._)`${m} = ${b}`)))}e.checkMissingProp=o;function h(d,v){d.setParams({missingProperty:v},!0),d.error()}e.reportMissingProp=h;function s(d){return d.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=s;function l(d,v,O){return(0,t._)`${s(d)}.call(${v}, ${O})`}e.isOwnProperty=l;function _(d,v,O,p){const m=(0,t._)`${v}${(0,t.getProperty)(O)} !== undefined`;return p?(0,t._)`${m} && ${l(d,v,O)}`:m}e.propertyInData=_;function E(d,v,O,p){const m=(0,t._)`${v}${(0,t.getProperty)(O)} === undefined`;return p?(0,t.or)(m,(0,t.not)(l(d,v,O))):m}e.noPropertyInData=E;function N(d){return d?Object.keys(d).filter(v=>v!=="__proto__"):[]}e.allSchemaProperties=N;function R(d,v){return N(v).filter(O=>!(0,r.alwaysValidSchema)(d,v[O]))}e.schemaProperties=R;function I({schemaCode:d,data:v,it:{gen:O,topSchemaRef:p,schemaPath:m,errorPath:b},it:F},L,G,J){const ce=J?(0,t._)`${d}, ${v}, ${p}${m}`:v,Z=[[$.default.instancePath,(0,t.strConcat)($.default.instancePath,b)],[$.default.parentData,F.parentData],[$.default.parentDataProperty,F.parentDataProperty],[$.default.rootData,$.default.rootData]];F.opts.dynamicRef&&Z.push([$.default.dynamicAnchors,$.default.dynamicAnchors]);const se=(0,t._)`${ce}, ${O.object(...Z)}`;return G!==t.nil?(0,t._)`${L}.call(${G}, ${se})`:(0,t._)`${L}(${se})`}e.callValidateCode=I;const A=(0,t._)`new RegExp`;function u({gen:d,it:{opts:v}},O){const p=v.unicodeRegExp?"u":"",{regExp:m}=v.code,b=m(O,p);return d.scopeValue("pattern",{key:b.toString(),ref:b,code:(0,t._)`${m.code==="new RegExp"?A:(0,f.useFunc)(d,m)}(${O}, ${p})`})}e.usePattern=u;function c(d){const{gen:v,data:O,keyword:p,it:m}=d,b=v.name("valid");if(m.allErrors){const L=v.let("valid",!0);return F(()=>v.assign(L,!1)),L}return v.var(b,!0),F(()=>v.break()),b;function F(L){const G=v.const("len",(0,t._)`${O}.length`);v.forRange("i",0,G,J=>{d.subschema({keyword:p,dataProp:J,dataPropType:r.Type.Num},b),v.if((0,t.not)(b),L)})}}e.validateArray=c;function P(d){const{gen:v,schema:O,keyword:p,it:m}=d;if(!Array.isArray(O))throw new Error("ajv implementation error");if(O.some(G=>(0,r.alwaysValidSchema)(m,G))&&!m.opts.unevaluated)return;const F=v.let("valid",!1),L=v.name("_valid");v.block(()=>O.forEach((G,J)=>{const ce=d.subschema({keyword:p,schemaProp:J,compositeRule:!0},L);v.assign(F,(0,t._)`${F} || ${L}`),d.mergeValidEvaluated(ce,L)||v.if((0,t.not)(F))})),d.result(F,()=>d.reset(),()=>d.error(!0))}e.validateUnion=P},73946:function(B,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:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(73946),r=n(26138),$=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,r.default];e.default=$},26138:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;const t=n(85748),r=n(94450),$=n(17898),f=n(63036),S=n(49392),o=n(50458),h={keyword:"$ref",schemaType:"string",code(_){const{gen:E,schema:N,it:R}=_,{baseId:I,schemaEnv:A,validateName:u,opts:c,self:P}=R,{root:d}=A;if((N==="#"||N==="#/")&&I===d.baseId)return O();const v=S.resolveRef.call(P,d,I,N);if(v===void 0)throw new t.default(R.opts.uriResolver,I,N);if(v instanceof S.SchemaEnv)return p(v);return m(v);function O(){if(A===d)return l(_,u,A,A.$async);const b=E.scopeValue("root",{ref:d});return l(_,(0,$._)`${b}.validate`,d,d.$async)}function p(b){const F=s(_,b);l(_,F,b,b.$async)}function m(b){const F=E.scopeValue("schema",c.code.source===!0?{ref:b,code:(0,$.stringify)(b)}:{ref:b}),L=E.name("valid"),G=_.subschema({schema:b,dataTypes:[],schemaPath:$.nil,topSchemaRef:F,errSchemaPath:N},L);_.mergeEvaluated(G),_.ok(L)}}};function s(_,E){const{gen:N}=_;return E.validate?N.scopeValue("validate",{ref:E.validate}):(0,$._)`${N.scopeValue("wrapper",{ref:E})}.validate`}e.getValidate=s;function l(_,E,N,R){const{gen:I,it:A}=_,{allErrors:u,schemaEnv:c,opts:P}=A,d=P.passContext?f.default.this:$.nil;R?v():O();function v(){if(!c.$async)throw new Error("async schema referenced by sync schema");const b=I.let("valid");I.try(()=>{I.code((0,$._)`await ${(0,r.callValidateCode)(_,E,d)}`),m(E),u||I.assign(b,!0)},F=>{I.if((0,$._)`!(${F} instanceof ${A.ValidationError})`,()=>I.throw(F)),p(F),u||I.assign(b,!1)}),_.ok(b)}function O(){_.result((0,r.callValidateCode)(_,E,d),()=>m(E),()=>p(E))}function p(b){const F=(0,$._)`${b}.errors`;I.assign(f.default.vErrors,(0,$._)`${f.default.vErrors} === null ? ${F} : ${f.default.vErrors}.concat(${F})`),I.assign(f.default.errors,(0,$._)`${f.default.vErrors}.length`)}function m(b){var F;if(!A.opts.unevaluated)return;const L=(F=N==null?void 0: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(I,L.props,A.props));else{const G=I.var("props",(0,$._)`${b}.evaluated.props`);A.props=o.mergeEvaluated.props(I,G,A.props,$.Name)}if(A.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(A.items=o.mergeEvaluated.items(I,L.items,A.items));else{const G=I.var("items",(0,$._)`${b}.evaluated.items`);A.items=o.mergeEvaluated.items(I,G,A.items,$.Name)}}}e.callRef=l,e.default=h},11672:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(88925),$=n(49392),f=n(50458),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:h,tagName:s}})=>h===r.DiscrError.Tag?`tag "${s}" must be string`:`value of tag "${s}" must be in oneOf`,params:({params:{discrError:h,tag:s,tagName:l}})=>(0,t._)`{error: ${h}, tag: ${l}, tagValue: ${s}}`},code(h){const{gen:s,data:l,schema:_,parentSchema:E,it:N}=h,{oneOf:R}=E;if(!N.opts.discriminator)throw new Error("discriminator: requires discriminator option");const I=_.propertyName;if(typeof I!="string")throw new Error("discriminator: requires propertyName");if(_.mapping)throw new Error("discriminator: mapping is not supported");if(!R)throw new Error("discriminator: requires oneOf keyword");const A=s.let("valid",!1),u=s.const("tag",(0,t._)`${l}${(0,t.getProperty)(I)}`);s.if((0,t._)`typeof ${u} == "string"`,()=>c(),()=>h.error(!1,{discrError:r.DiscrError.Tag,tag:u,tagName:I})),h.ok(A);function c(){const v=d();s.if(!1);for(const O in v)s.elseIf((0,t._)`${u} === ${O}`),s.assign(A,P(v[O]));s.else(),h.error(!1,{discrError:r.DiscrError.Mapping,tag:u,tagName:I}),s.endIf()}function P(v){const O=s.name("valid"),p=h.subschema({keyword:"oneOf",schemaProp:v},O);return h.mergeEvaluated(p,t.Name),O}function d(){var v;const O={},p=b(E);let m=!0;for(let G=0;G<R.length;G++){let J=R[G];J!=null&&J.$ref&&!(0,f.schemaHasRulesButRef)(J,N.self.RULES)&&(J=$.resolveRef.call(N.self,N.schemaEnv.root,N.baseId,J==null?void 0:J.$ref),J instanceof $.SchemaEnv&&(J=J.schema));const ce=(v=J==null?void 0:J.properties)===null||v===void 0?void 0:v[I];if(typeof ce!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${I}"`);m=m&&(p||b(J)),F(ce,G)}if(!m)throw new Error(`discriminator: "${I}" must be required`);return O;function b({required:G}){return Array.isArray(G)&&G.includes(I)}function F(G,J){if(G.const)L(G.const,J);else if(G.enum)for(const ce of G.enum)L(ce,J);else throw new Error(`discriminator: "properties/${I}" must have "const" or "enum"`)}function L(G,J){if(typeof G!="string"||G in O)throw new Error(`discriminator: "${I}" values must be unique strings`);O[G]=J}}}};e.default=o},88925:function(B,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:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(3839),r=n(17851),$=n(18225),f=n(26699),S=n(34882),o=[t.default,r.default,(0,$.default)(),f.default,S.metadataVocabulary,S.contentVocabulary];e.default=o},37072:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),$={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,S){const{gen:o,data:h,$data:s,schema:l,schemaCode:_,it:E}=f,{opts:N,errSchemaPath:R,schemaEnv:I,self:A}=E;if(!N.validateFormats)return;s?u():c();function u(){const P=o.scopeValue("formats",{ref:A.formats,code:N.code.formats}),d=o.const("fDef",(0,t._)`${P}[${_}]`),v=o.let("fType"),O=o.let("format");o.if((0,t._)`typeof ${d} == "object" && !(${d} instanceof RegExp)`,()=>o.assign(v,(0,t._)`${d}.type || "string"`).assign(O,(0,t._)`${d}.validate`),()=>o.assign(v,(0,t._)`"string"`).assign(O,d)),f.fail$data((0,t.or)(p(),m()));function p(){return N.strictSchema===!1?t.nil:(0,t._)`${_} && !${O}`}function m(){const b=I.$async?(0,t._)`(${d}.async ? await ${O}(${h}) : ${O}(${h}))`:(0,t._)`${O}(${h})`,F=(0,t._)`(typeof ${O} == "function" ? ${b} : ${O}.test(${h}))`;return(0,t._)`${O} && ${O} !== true && ${v} === ${S} && !${F}`}}function c(){const P=A.formats[l];if(!P){p();return}if(P===!0)return;const[d,v,O]=m(P);d===S&&f.pass(b());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 "${R}"`}}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 b(){if(typeof P=="object"&&!(P instanceof RegExp)&&P.async){if(!I.$async)throw new Error("async format in sync schema");return(0,t._)`await ${O}(${h})`}return typeof v=="function"?(0,t._)`${O}(${h})`:(0,t._)`${O}.test(${h})`}}}};e.default=$},26699:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=[n(37072).default];e.default=r},34882:function(B,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:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),$=n(72725),S={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,t._)`{allowedValue: ${o}}`},code(o){const{gen:h,data:s,$data:l,schemaCode:_,schema:E}=o;l||E&&typeof E=="object"?o.fail$data((0,t._)`!${(0,r.useFunc)(h,$.default)}(${s}, ${_})`):o.fail((0,t._)`${E} !== ${s}`)}};e.default=S},36742:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),$=n(72725),S={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:s,$data:l,schema:_,schemaCode:E,it:N}=o;if(!l&&_.length===0)throw new Error("enum must have non-empty array");const R=_.length>=N.opts.loopEnum;let I;const A=()=>I!=null?I:I=(0,r.useFunc)(h,$.default);let u;if(R||l)u=h.let("valid"),o.block$data(u,c);else{if(!Array.isArray(_))throw new Error("ajv implementation error");const d=h.const("vSchema",E);u=(0,t.or)(..._.map((v,O)=>P(d,O)))}o.pass(u);function c(){h.assign(u,!1),h.forOf("v",E,d=>h.if((0,t._)`${A()}(${s}, ${d})`,()=>h.assign(u,!0).break()))}function P(d,v){const O=_[v];return typeof O=="object"&&O!==null?(0,t._)`${A()}(${s}, ${d}[${v}])`:(0,t._)`${s} === ${O}`}}};e.default=S},17851:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(72333),r=n(21230),$=n(3936),f=n(81005),S=n(71589),o=n(29594),h=n(38558),s=n(44058),l=n(79520),_=n(36742),E=[t.default,r.default,$.default,f.default,S.default,o.default,h.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,_.default];e.default=E},38558:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:f,schemaCode:S}){const o=f==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${S} items`},params:({schemaCode:f})=>(0,t._)`{limit: ${f}}`},code(f){const{keyword:S,data:o,schemaCode:h}=f,s=S==="maxItems"?t.operators.GT:t.operators.LT;f.fail$data((0,t._)`${o}.length ${s} ${h}`)}};e.default=$},3936:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=n(50458),$=n(26308),S={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:h}){const s=o==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${s} than ${h} characters`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){const{keyword:h,data:s,schemaCode:l,it:_}=o,E=h==="maxLength"?t.operators.GT:t.operators.LT,N=_.opts.unicode===!1?(0,t._)`${s}.length`:(0,t._)`${(0,r.useFunc)(o.gen,$.default)}(${s})`;o.fail$data((0,t._)`${N} ${E} ${l}`)}};e.default=S},72333:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),r=t.operators,$={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 ${$[o].okStr} ${h}`,params:({keyword:o,schemaCode:h})=>(0,t._)`{comparison: ${$[o].okStr}, limit: ${h}}`},S={keyword:Object.keys($),type:"number",schemaType:"number",$data:!0,error:f,code(o){const{keyword:h,data:s,schemaCode:l}=o;o.fail$data((0,t._)`${s} ${$[h].fail} ${l} || isNaN(${s})`)}};e.default=S},71589:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:f,schemaCode:S}){const o=f==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${o} than ${S} properties`},params:({schemaCode:f})=>(0,t._)`{limit: ${f}}`},code(f){const{keyword:S,data:o,schemaCode:h}=f,s=S==="maxProperties"?t.operators.GT:t.operators.LT;f.fail$data((0,t._)`Object.keys(${o}).length ${s} ${h}`)}};e.default=$},21230:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(17898),$={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:S,data:o,schemaCode:h,it:s}=f,l=s.opts.multipleOfPrecision,_=S.let("res"),E=l?(0,t._)`Math.abs(Math.round(${_}) - ${_}) > 1e-${l}`:(0,t._)`${_} !== parseInt(${_})`;f.fail$data((0,t._)`(${h} === 0 || (${_} = ${o}/${h}, ${E}))`)}};e.default=$},81005:function(B,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:S})=>(0,r.str)`must match pattern "${S}"`,params:({schemaCode:S})=>(0,r._)`{pattern: ${S}}`},code(S){const{data:o,$data:h,schema:s,schemaCode:l,it:_}=S,E=_.opts.unicodeRegExp?"u":"",N=h?(0,r._)`(new RegExp(${l}, ${E}))`:(0,t.usePattern)(S,s);S.fail$data((0,r._)`!${N}.test(${o})`)}};e.default=f},29594:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(94450),r=n(17898),$=n(50458),S={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:s,schemaCode:l,data:_,$data:E,it:N}=o,{opts:R}=N;if(!E&&s.length===0)return;const I=s.length>=R.loopRequired;if(N.allErrors?A():u(),R.strictRequired){const d=o.parentSchema.properties,{definedProperties:v}=o.it;for(const O of s)if((d==null?void 0:d[O])===void 0&&!v.has(O)){const p=N.schemaEnv.baseId+N.errSchemaPath,m=`required property "${O}" is not defined at "${p}" (strictRequired)`;(0,$.checkStrictMode)(N,m,N.opts.strictRequired)}}function A(){if(I||E)o.block$data(r.nil,c);else for(const d of s)(0,t.checkReportMissingProp)(o,d)}function u(){const d=h.let("missing");if(I||E){const v=h.let("valid",!0);o.block$data(v,()=>P(d,v)),o.ok(v)}else h.if((0,t.checkMissingProp)(o,s,d)),(0,t.reportMissingProp)(o,d),h.else()}function c(){h.forOf("prop",l,d=>{o.setParams({missingProperty:d}),h.if((0,t.noPropertyInData)(h,_,d,R.ownProperties),()=>o.error())})}function P(d,v){o.setParams({missingProperty:d}),h.forOf(d,l,()=>{h.assign(v,(0,t.propertyInData)(h,_,d,R.ownProperties)),h.if((0,r.not)(v),()=>{o.error(),h.break()})},r.nil)}}};e.default=S},44058:function(B,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const t=n(69003),r=n(17898),$=n(50458),f=n(72725),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:h,j:s}})=>(0,r.str)`must NOT have duplicate items (items ## ${s} and ${h} are identical)`,params:({params:{i:h,j:s}})=>(0,r._)`{i: ${h}, j: ${s}}`},code(h){const{gen:s,data:l,$data:_,schema:E,parentSchema:N,schemaCode:R,it:I}=h;if(!_&&!E)return;const A=s.let("valid"),u=N.items?(0,t.getSchemaTypes)(N.items):[];h.block$data(A,c,(0,r._)`${R} === false`),h.ok(A);function c(){const O=s.let("i",(0,r._)`${l}.length`),p=s.let("j");h.setParams({i:O,j:p}),s.assign(A,!0),s.if((0,r._)`${O} > 1`,()=>(P()?d:v)(O,p))}function P(){return u.length>0&&!u.some(O=>O==="object"||O==="array")}function d(O,p){const m=s.name("item"),b=(0,t.checkDataTypes)(u,m,I.opts.strictNumbers,t.DataType.Wrong),F=s.const("indices",(0,r._)`{}`);s.for((0,r._)`;${O}--;`,()=>{s.let(m,(0,r._)`${l}[${O}]`),s.if(b,(0,r._)`continue`),u.length>1&&s.if((0,r._)`typeof ${m} == "string"`,(0,r._)`${m} += "_"`),s.if((0,r._)`typeof ${F}[${m}] == "number"`,()=>{s.assign(p,(0,r._)`${F}[${m}]`),h.error(),s.assign(A,!1).break()}).code((0,r._)`${F}[${m}] = ${O}`)})}function v(O,p){const m=(0,$.useFunc)(s,f.default),b=s.name("outer");s.label(b).for((0,r._)`;${O}--;`,()=>s.for((0,r._)`${p} = ${O}; ${p}--;`,()=>s.if((0,r._)`${m}(${l}[${O}], ${l}[${p}])`,()=>{h.error(),s.assign(A,!1).break(b)})))}}};e.default=o},38792:function(B){"use strict";B.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,$,f;if(Array.isArray(n)){if(r=n.length,r!=t.length)return!1;for($=r;$--!==0;)if(!e(n[$],t[$]))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($=r;$--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[$]))return!1;for($=r;$--!==0;){var S=f[$];if(!e(n[S],t[S]))return!1}return!0}return n!==n&&t!==t}},1645:function(B){"use strict";var e=B.exports=function(r,$,f){typeof $=="function"&&(f=$,$={}),f=$.cb||f;var S=typeof f=="function"?f:f.pre||function(){},o=f.post||function(){};n($,S,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,$,f,S,o,h,s,l,_,E){if(S&&typeof S=="object"&&!Array.isArray(S)){$(S,o,h,s,l,_,E);for(var N in S){var R=S[N];if(Array.isArray(R)){if(N in e.arrayKeywords)for(var I=0;I<R.length;I++)n(r,$,f,R[I],o+"/"+N+"/"+I,h,o,N,S,I)}else if(N in e.propsKeywords){if(R&&typeof R=="object")for(var A in R)n(r,$,f,R[A],o+"/"+N+"/"+t(A),h,o,N,S,A)}else(N in e.keywords||r.allKeys&&!(N in e.skipKeywords))&&n(r,$,f,R,o+"/"+N,h,o,N,S)}f(S,o,h,s,l,_,E)}}function t(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}},2862:function(B,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 g=arguments.length,i=Array(g),w=0;w<g;w++)i[w]=arguments[w];if(i.length>1){i[0]=i[0].slice(0,-1);for(var M=i.length-1,k=1;k<M;++k)i[k]=i[k].slice(1,-1);return i[M]=i[M].slice(1),i.join("")}else return i[0]}function r(g){return"(?:"+g+")"}function $(g){return g===void 0?"undefined":g===null?"null":Object.prototype.toString.call(g).split(" ").pop().split("]").shift().toLowerCase()}function f(g){return g.toUpperCase()}function S(g){return g!=null?g instanceof Array?g:typeof g.length!="number"||g.split||g.setInterval||g.call?[g]:Array.prototype.slice.call(g):[]}function o(g,i){var w=g;if(i)for(var M in i)w[M]=i[M];return w}function h(g){var i="[A-Za-z]",w="[\\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=g?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",he=g?"[\\uE000-\\uF8FF]":"[]",ae=t(i,M,"[\\-\\.\\_\\~]",Ee),pe=r(i+t(i,M,"[\\+\\-\\.]")+"*"),ue=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),be=r(r("25[0-5]")+"|"+r("2[0-4]"+M)+"|"+r("1"+M+M)+"|"+r("0?[1-9]"+M)+"|0?0?"+M),Re=r(be+"\\."+be+"\\."+be+"\\."+be),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)+"+"),ct=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(ue+"@")+"?"+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)+"?"),ut=r(Mt+Me),ot=r(gt+Me),We="(?!"+tt+")",Ut=r(Me+"|"+Be+"|"+ut+"|"+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+"|"+ut+"|"+We),Ft=r(Vt+r("\\?"+Qe)+"?"+r("\\#"+rt)+"?"),zt=r(kt+"|"+Ft),Lt=r(pe+"\\:"+$t+r("\\?"+Qe)+"?"),Kt="^("+pe+")\\:"+r(r("\\/\\/("+r("("+ue+")@")+"?("+xe+")"+r("\\:("+et+")")+"?)")+"?("+Me+"|"+Be+"|"+ot+"|"+We+")")+r("\\?("+Qe+")")+"?"+r("\\#("+rt+")")+"?$",Ht="^(){0}"+r(r("\\/\\/("+r("("+ue+")@")+"?("+xe+")"+r("\\:("+et+")")+"?)")+"?("+Me+"|"+Be+"|"+ut+"|"+We+")")+r("\\?("+Qe+")")+"?"+r("\\#("+rt+")")+"?$",Gt="^("+pe+")\\:"+r(r("\\/\\/("+r("("+ue+")@")+"?("+xe+")"+r("\\:("+et+")")+"?)")+"?("+Me+"|"+Be+"|"+ot+"|"+We+")")+r("\\?("+Qe+")")+"?$",Jt="^"+r("\\#("+rt+")")+"?$",Bt="^"+r("("+ue+")@")+"?("+xe+")"+r("\\:("+et+")")+"?$";return{NOT_SCHEME:new RegExp(t("[^]",i,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 s=h(!1),l=h(!0),_=function(){function g(i,w){var M=[],k=!0,W=!1,x=void 0;try{for(var ne=i[Symbol.iterator](),ie;!(k=(ie=ne.next()).done)&&(M.push(ie.value),!(w&&M.length===w));k=!0);}catch($e){W=!0,x=$e}finally{try{!k&&ne.return&&ne.return()}finally{if(W)throw x}}return M}return function(i,w){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return g(i,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(g){if(Array.isArray(g)){for(var i=0,w=Array(g.length);i<g.length;i++)w[i]=g[i];return w}else return Array.from(g)},N=2147483647,R=36,I=1,A=26,u=38,c=700,P=72,d=128,v="-",O=/^xn--/,p=/[^\0-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=R-I,L=Math.floor,G=String.fromCharCode;function J(g){throw new RangeError(b[g])}function ce(g,i){for(var w=[],M=g.length;M--;)w[M]=i(g[M]);return w}function Z(g,i){var w=g.split("@"),M="";w.length>1&&(M=w[0]+"@",g=w[1]),g=g.replace(m,".");var k=g.split("."),W=ce(k,i).join(".");return M+W}function se(g){for(var i=[],w=0,M=g.length;w<M;){var k=g.charCodeAt(w++);if(k>=55296&&k<=56319&&w<M){var W=g.charCodeAt(w++);(W&64512)==56320?i.push(((k&1023)<<10)+(W&1023)+65536):(i.push(k),w--)}else i.push(k)}return i}var _e=function(i){return String.fromCodePoint.apply(String,E(i))},Te=function(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:R},Oe=function(i,w){return i+22+75*(i<26)-((w!=0)<<5)},oe=function(i,w,M){var k=0;for(i=M?L(i/c):i>>1,i+=L(i/w);i>F*A>>1;k+=R)i=L(i/F);return L(k+(F+1)*i/(i+u))},H=function(i){var w=[],M=i.length,k=0,W=d,x=P,ne=i.lastIndexOf(v);ne<0&&(ne=0);for(var ie=0;ie<ne;++ie)i.charCodeAt(ie)>=128&&J("not-basic"),w.push(i.charCodeAt(ie));for(var $e=ne>0?ne+1:0;$e<M;){for(var re=k,me=1,Ee=R;;Ee+=R){$e>=M&&J("invalid-input");var he=Te(i.charCodeAt($e++));(he>=R||he>L((N-k)/me))&&J("overflow"),k+=he*me;var ae=Ee<=x?I:Ee>=x+A?A:Ee-x;if(he<ae)break;var pe=R-ae;me>L(N/pe)&&J("overflow"),me*=pe}var ue=w.length+1;x=oe(k-re,ue,re==0),L(k/ue)>N-W&&J("overflow"),W+=L(k/ue),k%=ue,w.splice(k++,0,W)}return String.fromCodePoint.apply(String,w)},C=function(i){var w=[];i=se(i);var M=i.length,k=d,W=0,x=P,ne=!0,ie=!1,$e=void 0;try{for(var re=i[Symbol.iterator](),me;!(ne=(me=re.next()).done);ne=!0){var Ee=me.value;Ee<128&&w.push(G(Ee))}}catch(Le){ie=!0,$e=Le}finally{try{!ne&&re.return&&re.return()}finally{if(ie)throw $e}}var he=w.length,ae=he;for(he&&w.push(v);ae<M;){var pe=N,ue=!0,Ue=!1,be=void 0;try{for(var Re=i[Symbol.iterator](),le;!(ue=(le=Re.next()).done);ue=!0){var Ne=le.value;Ne>=k&&Ne<pe&&(pe=Ne)}}catch(Le){Ue=!0,be=Le}finally{try{!ue&&Re.return&&Re.return()}finally{if(Ue)throw be}}var Ce=ae+1;pe-k>L((N-W)/Ce)&&J("overflow"),W+=(pe-k)*Ce,k=pe;var Ae=!0,ze=!1,je=void 0;try{for(var qe=i[Symbol.iterator](),at;!(Ae=(at=qe.next()).done);Ae=!0){var st=at.value;if(st<k&&++W>N&&J("overflow"),st==k){for(var He=W,Ge=R;;Ge+=R){var De=Ge<=x?I:Ge>=x+A?A:Ge-x;if(He<De)break;var Je=He-De,ct=R-De;w.push(G(Oe(De+Je%ct,0))),He=L(Je/ct)}w.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 w.join("")},z=function(i){return Z(i,function(w){return O.test(w)?H(w.slice(4).toLowerCase()):w})},D=function(i){return Z(i,function(w){return p.test(w)?"xn--"+C(w):w})},a={version:"2.1.0",ucs2:{decode:se,encode:_e},decode:H,encode:C,toASCII:D,toUnicode:z},y={};function V(g){var i=g.charCodeAt(0),w=void 0;return i<16?w="%0"+i.toString(16).toUpperCase():i<128?w="%"+i.toString(16).toUpperCase():i<2048?w="%"+(i>>6|192).toString(16).toUpperCase()+"%"+(i&63|128).toString(16).toUpperCase():w="%"+(i>>12|224).toString(16).toUpperCase()+"%"+(i>>6&63|128).toString(16).toUpperCase()+"%"+(i&63|128).toString(16).toUpperCase(),w}function Q(g){for(var i="",w=0,M=g.length;w<M;){var k=parseInt(g.substr(w+1,2),16);if(k<128)i+=String.fromCharCode(k),w+=3;else if(k>=194&&k<224){if(M-w>=6){var W=parseInt(g.substr(w+4,2),16);i+=String.fromCharCode((k&31)<<6|W&63)}else i+=g.substr(w,6);w+=6}else if(k>=224){if(M-w>=9){var x=parseInt(g.substr(w+4,2),16),ne=parseInt(g.substr(w+7,2),16);i+=String.fromCharCode((k&15)<<12|(x&63)<<6|ne&63)}else i+=g.substr(w,9);w+=9}else i+=g.substr(w,3),w+=3}return i}function X(g,i){function w(M){var k=Q(M);return k.match(i.UNRESERVED)?k:M}return g.scheme&&(g.scheme=String(g.scheme).replace(i.PCT_ENCODED,w).toLowerCase().replace(i.NOT_SCHEME,"")),g.userinfo!==void 0&&(g.userinfo=String(g.userinfo).replace(i.PCT_ENCODED,w).replace(i.NOT_USERINFO,V).replace(i.PCT_ENCODED,f)),g.host!==void 0&&(g.host=String(g.host).replace(i.PCT_ENCODED,w).toLowerCase().replace(i.NOT_HOST,V).replace(i.PCT_ENCODED,f)),g.path!==void 0&&(g.path=String(g.path).replace(i.PCT_ENCODED,w).replace(g.scheme?i.NOT_PATH:i.NOT_PATH_NOSCHEME,V).replace(i.PCT_ENCODED,f)),g.query!==void 0&&(g.query=String(g.query).replace(i.PCT_ENCODED,w).replace(i.NOT_QUERY,V).replace(i.PCT_ENCODED,f)),g.fragment!==void 0&&(g.fragment=String(g.fragment).replace(i.PCT_ENCODED,w).replace(i.NOT_FRAGMENT,V).replace(i.PCT_ENCODED,f)),g}function te(g){return g.replace(/^0*(.*)/,"$1")||"0"}function ee(g,i){var w=g.match(i.IPV4ADDRESS)||[],M=_(w,2),k=M[1];return k?k.split(".").map(te).join("."):g}function fe(g,i){var w=g.match(i.IPV6ADDRESS)||[],M=_(w,3),k=M[1],W=M[2];if(k){for(var x=k.toLowerCase().split("::").reverse(),ne=_(x,2),ie=ne[0],$e=ne[1],re=$e?$e.split(":").map(te):[],me=ie.split(":").map(te),Ee=i.IPV4ADDRESS.test(me[me.length-1]),he=Ee?7:8,ae=me.length-he,pe=Array(he),ue=0;ue<he;++ue)pe[ue]=re[ue]||me[ae+ue]||"";Ee&&(pe[he-1]=ee(pe[he-1],i));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},[]),be=Ue.sort(function(Ce,Ae){return Ae.length-Ce.length})[0],Re=void 0;if(be&&be.length>1){var le=pe.slice(0,be.index),Ne=pe.slice(be.index+be.length);Re=le.join(":")+"::"+Ne.join(":")}else Re=pe.join(":");return W&&(Re+="%"+W),Re}else return g}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,j="".match(/(){0}/)[1]===void 0;function U(g){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w={},M=i.iri!==!1?l:s;i.reference==="suffix"&&(g=(i.scheme?i.scheme+":":"")+"//"+g);var k=g.match(T);if(k){j?(w.scheme=k[1],w.userinfo=k[3],w.host=k[4],w.port=parseInt(k[5],10),w.path=k[6]||"",w.query=k[7],w.fragment=k[8],isNaN(w.port)&&(w.port=k[5])):(w.scheme=k[1]||void 0,w.userinfo=g.indexOf("@")!==-1?k[3]:void 0,w.host=g.indexOf("//")!==-1?k[4]:void 0,w.port=parseInt(k[5],10),w.path=k[6]||"",w.query=g.indexOf("?")!==-1?k[7]:void 0,w.fragment=g.indexOf("#")!==-1?k[8]:void 0,isNaN(w.port)&&(w.port=g.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?k[4]:void 0)),w.host&&(w.host=fe(ee(w.host,M),M)),w.scheme===void 0&&w.userinfo===void 0&&w.host===void 0&&w.port===void 0&&!w.path&&w.query===void 0?w.reference="same-document":w.scheme===void 0?w.reference="relative":w.fragment===void 0?w.reference="absolute":w.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==w.reference&&(w.error=w.error||"URI is not a "+i.reference+" reference.");var W=y[(i.scheme||w.scheme||"").toLowerCase()];if(!i.unicodeSupport&&(!W||!W.unicodeSupport)){if(w.host&&(i.domainHost||W&&W.domainHost))try{w.host=a.toASCII(w.host.replace(M.PCT_ENCODED,Q).toLowerCase())}catch(x){w.error=w.error||"Host's domain name can not be converted to ASCII via punycode: "+x}X(w,s)}else X(w,M);W&&W.parse&&W.parse(w,i)}else w.error=w.error||"URI can not be parsed.";return w}function K(g,i){var w=i.iri!==!1?l:s,M=[];return g.userinfo!==void 0&&(M.push(g.userinfo),M.push("@")),g.host!==void 0&&M.push(fe(ee(String(g.host),w),w).replace(w.IPV6ADDRESS,function(k,W,x){return"["+W+(x?"%25"+x:"")+"]"})),(typeof g.port=="number"||typeof g.port=="string")&&(M.push(":"),M.push(String(g.port))),M.length?M.join(""):void 0}var Y=/^\.\.?\//,q=/^\/\.(\/|$)/,ve=/^\/\.\.(\/|$)/,Se=/^\/?(?:.|\n)*?(?=\/|$)/;function ye(g){for(var i=[];g.length;)if(g.match(Y))g=g.replace(Y,"");else if(g.match(q))g=g.replace(q,"/");else if(g.match(ve))g=g.replace(ve,"/"),i.pop();else if(g==="."||g==="..")g="";else{var w=g.match(Se);if(w){var M=w[0];g=g.slice(M.length),i.push(M)}else throw new Error("Unexpected dot segment condition")}return i.join("")}function de(g){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=i.iri?l:s,M=[],k=y[(i.scheme||g.scheme||"").toLowerCase()];if(k&&k.serialize&&k.serialize(g,i),g.host&&!w.IPV6ADDRESS.test(g.host)){if(i.domainHost||k&&k.domainHost)try{g.host=i.iri?a.toUnicode(g.host):a.toASCII(g.host.replace(w.PCT_ENCODED,Q).toLowerCase())}catch(ne){g.error=g.error||"Host's domain name can not be converted to "+(i.iri?"Unicode":"ASCII")+" via punycode: "+ne}}X(g,w),i.reference!=="suffix"&&g.scheme&&(M.push(g.scheme),M.push(":"));var W=K(g,i);if(W!==void 0&&(i.reference!=="suffix"&&M.push("//"),M.push(W),g.path&&g.path.charAt(0)!=="/"&&M.push("/")),g.path!==void 0){var x=g.path;!i.absolutePath&&(!k||!k.absolutePath)&&(x=ye(x)),W===void 0&&(x=x.replace(/^\/\//,"/%2F")),M.push(x)}return g.query!==void 0&&(M.push("?"),M.push(g.query)),g.fragment!==void 0&&(M.push("#"),M.push(g.fragment)),M.join("")}function ge(g,i){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},M=arguments[3],k={};return M||(g=U(de(g,w),w),i=U(de(i,w),w)),w=w||{},!w.tolerant&&i.scheme?(k.scheme=i.scheme,k.userinfo=i.userinfo,k.host=i.host,k.port=i.port,k.path=ye(i.path||""),k.query=i.query):(i.userinfo!==void 0||i.host!==void 0||i.port!==void 0?(k.userinfo=i.userinfo,k.host=i.host,k.port=i.port,k.path=ye(i.path||""),k.query=i.query):(i.path?(i.path.charAt(0)==="/"?k.path=ye(i.path):((g.userinfo!==void 0||g.host!==void 0||g.port!==void 0)&&!g.path?k.path="/"+i.path:g.path?k.path=g.path.slice(0,g.path.lastIndexOf("/")+1)+i.path:k.path=i.path,k.path=ye(k.path)),k.query=i.query):(k.path=g.path,i.query!==void 0?k.query=i.query:k.query=g.query),k.userinfo=g.userinfo,k.host=g.host,k.port=g.port),k.scheme=g.scheme),k.fragment=i.fragment,k}function ke(g,i,w){var M=o({scheme:"null"},w);return de(ge(U(g,M),U(i,M),M,!0),M)}function we(g,i){return typeof g=="string"?g=de(U(g,i),i):$(g)==="object"&&(g=U(de(g,i),i)),g}function Xe(g,i,w){return typeof g=="string"?g=de(U(g,w),w):$(g)==="object"&&(g=de(g,w)),typeof i=="string"?i=de(U(i,w),w):$(i)==="object"&&(i=de(i,w)),g===i}function Fe(g,i){return g&&g.toString().replace(!i||!i.iri?s.ESCAPE:l.ESCAPE,V)}function Pe(g,i){return g&&g.toString().replace(!i||!i.iri?s.PCT_ENCODED:l.PCT_ENCODED,Q)}var Ve={scheme:"http",domainHost:!0,parse:function(i,w){return i.host||(i.error=i.error||"HTTP URIs must have a host."),i},serialize:function(i,w){var M=String(i.scheme).toLowerCase()==="https";return(i.port===(M?443:80)||i.port==="")&&(i.port=void 0),i.path||(i.path="/"),i}},Ye={scheme:"https",domainHost:Ve.domainHost,parse:Ve.parse,serialize:Ve.serialize};function nt(g){return typeof g.secure=="boolean"?g.secure:String(g.scheme).toLowerCase()==="wss"}var Ze={scheme:"ws",domainHost:!0,parse:function(i,w){var M=i;return M.secure=nt(M),M.resourceName=(M.path||"/")+(M.query?"?"+M.query:""),M.path=void 0,M.query=void 0,M},serialize:function(i,w){if((i.port===(nt(i)?443:80)||i.port==="")&&(i.port=void 0),typeof i.secure=="boolean"&&(i.scheme=i.secure?"wss":"ws",i.secure=void 0),i.resourceName){var M=i.resourceName.split("?"),k=_(M,2),W=k[0],x=k[1];i.path=W&&W!=="/"?W:void 0,i.query=x,i.resourceName=void 0}return i.fragment=void 0,i}},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\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Pt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",bt=t(Pt,'[\\"\\\\]'),Nt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ot=new RegExp(dt,"g"),Ke=new RegExp(wt,"g"),Rt=new RegExp(t("[^]",St,"[\\.]",'[\\"]',bt),"g"),ft=new RegExp(t("[^]",dt,Nt),"g"),Ct=ft;function it(g){var i=Q(g);return i.match(Ot)?i:g}var ht={scheme:"mailto",parse:function(i,w){var M=i,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=Pe(re[1],w);break;case"body":M.body=Pe(re[1],w);break;default:W=!0,x[Pe(re[0],w)]=Pe(re[1],w);break}}W&&(M.headers=x)}M.query=void 0;for(var ae=0,pe=k.length;ae<pe;++ae){var ue=k[ae].split("@");if(ue[0]=Pe(ue[0]),w.unicodeSupport)ue[1]=Pe(ue[1],w).toLowerCase();else try{ue[1]=a.toASCII(Pe(ue[1],w).toLowerCase())}catch(Ue){M.error=M.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ue}k[ae]=ue.join("@")}return M},serialize:function(i,w){var M=i,k=S(i.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=w.iri?a.toUnicode(re):a.toASCII(Pe(re,w).toLowerCase())}catch(ae){M.error=M.error||"Email address's domain name can not be converted to "+(w.iri?"Unicode":"ASCII")+" via punycode: "+ae}k[W]=$e+"@"+re}M.path=k.join(",")}var me=i.headers=i.headers||{};i.subject&&(me.subject=i.subject),i.body&&(me.body=i.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(i,w){var M=i.path&&i.path.match(Tt),k=i;if(M){var W=w.scheme||k.scheme||"urn",x=M[1].toLowerCase(),ne=M[2],ie=W+":"+(w.nid||x),$e=y[ie];k.nid=x,k.nss=ne,k.path=void 0,$e&&(k=$e.parse(k,w))}else k.error=k.error||"URN can not be parsed.";return k},serialize:function(i,w){var M=w.scheme||i.scheme||"urn",k=i.nid,W=M+":"+(w.nid||k),x=y[W];x&&(i=x.serialize(i,w));var ne=i,ie=i.nss;return ne.path=(k||w.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(i,w){var M=i;return M.uuid=M.nss,M.nss=void 0,!w.tolerant&&(!M.uuid||!M.uuid.match(It))&&(M.error=M.error||"UUID is not valid."),M},serialize:function(i,w){var M=i;return M.nss=(i.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=Pe,Object.defineProperty(n,"__esModule",{value:!0})})},93770:function(B){"use strict";B.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:function(B){"use strict";B.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=5977.dab5093f.chunk.js.map
|