@povio/openapi-codegen-cli 0.3.9 → 0.4.1
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/README.md +14 -3
- package/dist/commands/generate.d.ts +1 -1
- package/dist/generators/checkOpenAPIDoc.d.ts +1 -4
- package/dist/generators/const/validation.const.d.ts +2 -0
- package/dist/generators/const/zod.const.d.ts +1 -0
- package/dist/generators/core/SchemaResolver.class.d.ts +34 -11
- package/dist/generators/core/endpoints/getEndpointBody.d.ts +1 -3
- package/dist/generators/core/endpoints/getEndpointParameter.d.ts +1 -3
- package/dist/generators/core/endpoints/getEndpointsFromOpenAPIDoc.d.ts +1 -10
- package/dist/generators/core/getDataFromOpenAPIDoc.d.ts +1 -5
- package/dist/generators/core/getMetadataFromOpenAPIDoc.d.ts +1 -4
- package/dist/generators/core/openapi/getOpenAPISchemaComplexity.d.ts +1 -4
- package/dist/generators/core/openapi/getOpenAPISchemaDependencyGraph.d.ts +3 -2
- package/dist/generators/core/openapi/getSchemaRefObjs.d.ts +4 -0
- package/dist/generators/core/openapi/iterateSchema.d.ts +22 -0
- package/dist/generators/core/zod/ZodSchema.class.d.ts +7 -5
- package/dist/generators/core/zod/getZodSchema.d.ts +3 -4
- package/dist/generators/core/zod/getZodSchemaRefs.d.ts +1 -4
- package/dist/generators/core/zod/getZodSchemasFromOpenAPIDoc.d.ts +1 -7
- package/dist/generators/core/zod/resolveZodSchemaName.d.ts +1 -3
- package/dist/generators/core/zod/sortZodSchemasByTopology.d.ts +1 -4
- package/dist/generators/core/zod/updateEnumZodSchemaData.d.ts +13 -0
- package/dist/generators/core/zod/wrapCircularZodSchemas.d.ts +1 -6
- package/dist/generators/generate/generateEndpoints.d.ts +2 -9
- package/dist/generators/generate/generateModels.d.ts +2 -9
- package/dist/generators/generate/generateQueries.d.ts +2 -9
- package/dist/generators/generateCodeFromOpenAPIDoc.d.ts +2 -4
- package/dist/generators/types/generate.d.ts +10 -0
- package/dist/generators/types/metadata.d.ts +1 -1
- package/dist/generators/utils/array.utils.d.ts +1 -0
- package/dist/generators/utils/file.utils.d.ts +3 -6
- package/dist/generators/utils/generate/generate.endpoints.utils.d.ts +3 -7
- package/dist/generators/utils/generate/generate.imports.utils.d.ts +1 -2
- package/dist/generators/utils/generate/generate.zod.utils.d.ts +2 -10
- package/dist/generators/utils/hbs/hbs-template.utils.d.ts +1 -6
- package/dist/generators/utils/hbs/hbs.endpoints.utils.d.ts +1 -2
- package/dist/generators/utils/hbs/hbs.zod.utils.d.ts +1 -2
- package/dist/generators/utils/openapi.utils.d.ts +3 -5
- package/dist/generators/utils/string.utils.d.ts +4 -0
- package/dist/generators/utils/tag.utils.d.ts +20 -0
- package/dist/generators/utils/ts.utils.d.ts +2 -5
- package/dist/generators/utils/validation.utils.d.ts +7 -0
- package/dist/generators/utils/zod-schema.utils.d.ts +7 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +72 -46
- package/dist/sh.js +79 -77
- package/package.json +1 -1
- package/dist/generators/core/openapi/getSchemaRefsDependencyGraph.d.ts +0 -11
package/dist/index.js
CHANGED
|
@@ -1,54 +1,80 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var US=Object.create;var oi=Object.defineProperty;var zS=Object.getOwnPropertyDescriptor;var GS=Object.getOwnPropertyNames;var ZS=Object.getPrototypeOf,KS=Object.prototype.hasOwnProperty;var o=(e,t)=>oi(e,"name",{value:t,configurable:!0});var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),WS=(e,t)=>{for(var r in t)oi(e,r,{get:t[r],enumerable:!0})},Zp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GS(t))!KS.call(e,i)&&i!==r&&oi(e,i,{get:()=>t[i],enumerable:!(n=zS(t,i))||n.enumerable});return e};var De=(e,t,r)=>(r=e!=null?US(ZS(e)):{},Zp(t||!e||!e.__esModule?oi(r,"default",{value:e,enumerable:!0}):r,e)),YS=e=>Zp(oi({},"__esModule",{value:!0}),e);var Ce=m((Te,Wp)=>{"use strict";var $o=/^win/.test(process.platform),QS=/\//g,JS=/^(\w{2,}):\/\//i,Kp=Wp.exports,XS=/~1/g,e2=/~0/g,Ta=[/\?/g,"%3F",/\#/g,"%23"],Ca=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Te.parse=require("url").parse;Te.resolve=require("url").resolve;Te.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Te.getProtocol=o(function(t){let r=JS.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Te.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Te.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Te.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Te.isHttp=o(function(t){let r=Kp.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Te.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Kp.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Te.fromFileSystemPath=o(function(t){$o&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Ta.length;r+=2)t=t.replace(Ta[r],Ta[r+1]);return t},"fromFileSystemPath");Te.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Ca.length;i+=2)t=t.replace(Ca[i],Ca[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),$o&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=$o?t:"/"+t)),$o&&!n&&(t=t.replace(QS,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Te.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(XS,"/").replace(e2,"~"))},"safePointerToPath")});var Oo=m(si=>{"use strict";var Yp=require("util"),t2=Ce();si.format=Yp.format;si.inherits=Yp.inherits;si.swaggerParamRegExp=/\{([^/}]+)}/g;var r2=["get","post","put","delete","patch","options","head","trace"];function Na(e,t){if(e.url&&e.url.startsWith("/")){let r=t2.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(Na,"fixServers");function n2(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>Na(r,t)),["paths","webhooks"].forEach(r=>{Object.keys(e[r]||[]).forEach(n=>{let i=e[r][n];Object.keys(i).forEach(s=>{s==="servers"?i[s].map(a=>Na(a,t)):r2.includes(s)&&i[s].servers&&i[s].servers.map(a=>Na(a,t))})})}))}o(n2,"fixOasRelativeServers");si.fixOasRelativeServers=n2});var Eo=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getDeepKeys=Xr.toJSON=void 0;var i2=["function","symbol","undefined"],o2=["constructor","prototype","__proto__"],s2=Object.getPrototypeOf({});function a2(){let e={},t=this;for(let r of Qp(t))if(typeof r=="string"){let n=t[r],i=typeof n;i2.includes(i)||(e[r]=n)}return e}o(a2,"toJSON");Xr.toJSON=a2;function Qp(e,t=[]){let r=[];for(;e&&e!==s2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(o2))n.delete(i);return n}o(Qp,"getDeepKeys");Xr.getDeepKeys=Qp});var qa=m(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.addInspectMethod=en.format=void 0;var Jp=require("util"),u2=Eo(),Xp=Jp.inspect.custom||Symbol.for("nodejs.util.inspect.custom");en.format=Jp.format;function c2(e){e[Xp]=l2}o(c2,"addInspectMethod");en.addInspectMethod=c2;function l2(){let e={},t=this;for(let r of u2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Xp],e}o(l2,"inspect")});var rd=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.lazyJoinStacks=pt.joinStacks=pt.isWritableStack=pt.isLazyStack=void 0;var f2=/\r?\n/,p2=/\bono[ @]/;function d2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(d2,"isLazyStack");pt.isLazyStack=d2;function h2(e){return!!(!e||e.writable||typeof e.set=="function")}o(h2,"isWritableStack");pt.isWritableStack=h2;function ed(e,t){let r=td(e.stack),n=t?t.stack:void 0;return r&&n?r+`
|
|
2
2
|
|
|
3
|
-
`+n:r||n}
|
|
4
|
-
`)}return e}
|
|
5
|
-
`:"")+r.message),{originalError:r,props:n,message:o}}s(Og,"normalizeArgs");fr.normalizeArgs=Og});var po=h(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.Ono=void 0;var ti=ju(),qu=Au(),xg=Xn(),wg=lo;ri.Ono=wg;function lo(e,t){t=qu.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=qu.normalizeArgs(n,t),c=new e(a);return ti.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(lo,"Ono");lo.toJSON=s(function(t){return xg.toJSON.call(t)},"toJSON");lo.extend=s(function(t,r,n){return n||r instanceof Error?ti.extendError(t,r,n):r?ti.extendError(t,void 0,r):ti.extendError(t)},"extend")});var Iu=h(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.ono=void 0;var Rt=po(),Eg=Fe;ni.ono=Eg;Fe.error=new Rt.Ono(Error);Fe.eval=new Rt.Ono(EvalError);Fe.range=new Rt.Ono(RangeError);Fe.reference=new Rt.Ono(ReferenceError);Fe.syntax=new Rt.Ono(SyntaxError);Fe.type=new Rt.Ono(TypeError);Fe.uri=new Rt.Ono(URIError);var jg=Fe;function Fe(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(jg))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return Fe.error.apply(void 0,e)}s(Fe,"ono")});var Ru=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var zj=require("util")});var Ee=h((we,lr)=>{"use strict";var Ag=we&&we.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:s(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),qg=we&&we.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&Ag(t,e,r)};Object.defineProperty(we,"__esModule",{value:!0});we.ono=void 0;var Nu=Iu();Object.defineProperty(we,"ono",{enumerable:!0,get:s(function(){return Nu.ono},"get")});var Ig=po();Object.defineProperty(we,"Ono",{enumerable:!0,get:s(function(){return Ig.Ono},"get")});qg(Ru(),we);we.default=Nu.ono;typeof lr=="object"&&typeof lr.exports=="object"&&(lr.exports=Object.assign(lr.exports.default,lr.exports))});var nn=h(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.regexpCode=N.getEsmExportName=N.getProperty=N.safeStringify=N.stringify=N.strConcat=N.addCodeArg=N.str=N._=N.nil=N._Code=N.Name=N.IDENTIFIER=N._CodeOrName=void 0;var yo=class yo{};s(yo,"_CodeOrName");var tn=yo;N._CodeOrName=tn;N.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var go=class go extends tn{constructor(t){if(super(),!N.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(go,"Name");var Nt=go;N.Name=Nt;var $o=class $o extends tn{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Nt&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s($o,"_Code");var be=$o;N._Code=be;N.nil=new be("");function ku(e,...t){let r=[e[0]],n=0;for(;n<t.length;)ho(r,t[n]),r.push(e[++n]);return new be(r)}s(ku,"_");N._=ku;var mo=new be("+");function Cu(e,...t){let r=[rn(e[0])],n=0;for(;n<t.length;)r.push(mo),ho(r,t[n]),r.push(mo,rn(e[++n]));return Tg(r),new be(r)}s(Cu,"str");N.str=Cu;function ho(e,t){t instanceof be?e.push(...t._items):t instanceof Nt?e.push(t):e.push(kg(t))}s(ho,"addCodeArg");N.addCodeArg=ho;function Tg(e){let t=1;for(;t<e.length-1;){if(e[t]===mo){let r=Rg(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(Tg,"optimize");function Rg(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Nt||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Nt))return`"${e}${t.slice(1)}`}s(Rg,"mergeExprItems");function Ng(e,t){return t.emptyStr()?e:e.emptyStr()?t:Cu`${e}${t}`}s(Ng,"strConcat");N.strConcat=Ng;function kg(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:rn(Array.isArray(e)?e.join(","):e)}s(kg,"interpolate");function Cg(e){return new be(rn(e))}s(Cg,"stringify");N.stringify=Cg;function rn(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(rn,"safeStringify");N.safeStringify=rn;function Mg(e){return typeof e=="string"&&N.IDENTIFIER.test(e)?new be(`.${e}`):ku`[${e}]`}s(Mg,"getProperty");N.getProperty=Mg;function Dg(e){if(typeof e=="string"&&N.IDENTIFIER.test(e))return new be(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(Dg,"getEsmExportName");N.getEsmExportName=Dg;function Fg(e){return new be(e.toString())}s(Fg,"regexpCode");N.regexpCode=Fg});var xo=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.ValueScope=de.ValueScopeName=de.Scope=de.varKinds=de.UsedValueState=void 0;var pe=nn(),_o=class _o extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(_o,"ValueError");var vo=_o,ii;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(ii||(de.UsedValueState=ii={}));de.varKinds={const:new pe.Name("const"),let:new pe.Name("let"),var:new pe.Name("var")};var Po=class Po{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof pe.Name?t:this.name(t)}name(t){return new pe.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(Po,"Scope");var oi=Po;de.Scope=oi;var So=class So extends pe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,pe._)`.${new pe.Name(r)}[${n}]`}};s(So,"ValueScopeName");var si=So;de.ValueScopeName=si;var Vg=(0,pe._)`\n`,Oo=class Oo extends oi{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Vg:pe.nil}}get(){return this._scope}name(t){return new si(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[o];if(c){let l=c.get(a);if(l)return l}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),f=u.length;return u[f]=r.ref,i.setValue(r,{property:o,itemIndex:f}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,pe._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=pe.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(f=>{if(u.has(f))return;u.set(f,ii.Started);let l=r(f);if(l){let p=this.opts.es5?de.varKinds.var:de.varKinds.const;o=(0,pe._)`${o}${p} ${f} = ${l};${this.opts._n}`}else if(l=i==null?void 0:i(f))o=(0,pe._)`${o}${l}${this.opts._n}`;else throw new vo(f);u.set(f,ii.Completed)})}return o}};s(Oo,"ValueScope");var bo=Oo;de.ValueScope=bo});var w=h(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.or=j.and=j.not=j.CodeGen=j.operators=j.varKinds=j.ValueScopeName=j.ValueScope=j.Scope=j.Name=j.regexpCode=j.stringify=j.getProperty=j.nil=j.strConcat=j.str=j._=void 0;var I=nn(),je=xo(),ct=nn();Object.defineProperty(j,"_",{enumerable:!0,get:s(function(){return ct._},"get")});Object.defineProperty(j,"str",{enumerable:!0,get:s(function(){return ct.str},"get")});Object.defineProperty(j,"strConcat",{enumerable:!0,get:s(function(){return ct.strConcat},"get")});Object.defineProperty(j,"nil",{enumerable:!0,get:s(function(){return ct.nil},"get")});Object.defineProperty(j,"getProperty",{enumerable:!0,get:s(function(){return ct.getProperty},"get")});Object.defineProperty(j,"stringify",{enumerable:!0,get:s(function(){return ct.stringify},"get")});Object.defineProperty(j,"regexpCode",{enumerable:!0,get:s(function(){return ct.regexpCode},"get")});Object.defineProperty(j,"Name",{enumerable:!0,get:s(function(){return ct.Name},"get")});var fi=xo();Object.defineProperty(j,"Scope",{enumerable:!0,get:s(function(){return fi.Scope},"get")});Object.defineProperty(j,"ValueScope",{enumerable:!0,get:s(function(){return fi.ValueScope},"get")});Object.defineProperty(j,"ValueScopeName",{enumerable:!0,get:s(function(){return fi.ValueScopeName},"get")});Object.defineProperty(j,"varKinds",{enumerable:!0,get:s(function(){return fi.varKinds},"get")});j.operators={GT:new I._Code(">"),GTE:new I._Code(">="),LT:new I._Code("<"),LTE:new I._Code("<="),EQ:new I._Code("==="),NEQ:new I._Code("!=="),NOT:new I._Code("!"),OR:new I._Code("||"),AND:new I._Code("&&"),ADD:new I._Code("+")};var Do=class Do{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Do,"Node");var et=Do,Fo=class Fo extends et{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?je.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=mr(this.rhs,t,r)),this}get names(){return this.rhs instanceof I._CodeOrName?this.rhs.names:{}}};s(Fo,"Def");var wo=Fo,Vo=class Vo extends et{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof I.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=mr(this.rhs,t,r),this}get names(){let t=this.lhs instanceof I.Name?{}:{...this.lhs.names};return ui(t,this.rhs)}};s(Vo,"Assign");var ai=Vo,Lo=class Lo extends ai{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(Lo,"AssignOp");var Eo=Lo,zo=class zo extends et{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(zo,"Label");var jo=zo,Uo=class Uo extends et{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(Uo,"Break");var Ao=Uo,Bo=class Bo extends et{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(Bo,"Throw");var qo=Bo,Ho=class Ho extends et{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=mr(this.code,t,r),this}get names(){return this.code instanceof I._CodeOrName?this.code.names:{}}};s(Ho,"AnyCode");var Io=Ho,Go=class Go extends et{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(Lg(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Mt(t,r.names),{})}};s(Go,"ParentNode");var on=Go,Zo=class Zo extends on{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(Zo,"BlockNode");var tt=Zo,Ko=class Ko extends on{};s(Ko,"Root");var To=Ko,Wo=class Wo extends tt{};s(Wo,"Else");var dr=Wo;dr.kind="else";var pr=class pr extends tt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new dr(n):n}if(r)return t===!1?r instanceof pr?r:r.nodes:this.nodes.length?this:new pr(Mu(t),r instanceof pr?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=mr(this.condition,t,r),this}get names(){let t=super.names;return ui(t,this.condition),this.else&&Mt(t,this.else.names),t}};s(pr,"If");var kt=pr;kt.kind="if";var Yo=class Yo extends tt{};s(Yo,"For");var Ct=Yo;Ct.kind="for";var Jo=class Jo extends Ct{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=mr(this.iteration,t,r),this}get names(){return Mt(super.names,this.iteration.names)}};s(Jo,"ForLoop");var Ro=Jo,Xo=class Xo extends Ct{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?je.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=ui(super.names,this.from);return ui(t,this.to)}};s(Xo,"ForRange");var No=Xo,Qo=class Qo extends Ct{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=mr(this.iterable,t,r),this}get names(){return Mt(super.names,this.iterable.names)}};s(Qo,"ForIter");var ci=Qo,es=class es extends tt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(es,"Func");var sn=es;sn.kind="func";var ts=class ts extends on{render(t){return"return "+super.render(t)}};s(ts,"Return");var an=ts;an.kind="return";var rs=class rs extends tt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Mt(t,this.catch.names),this.finally&&Mt(t,this.finally.names),t}};s(rs,"Try");var ko=rs,ns=class ns extends tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(ns,"Catch");var cn=ns;cn.kind="catch";var is=class is extends tt{render(t){return"finally"+super.render(t)}};s(is,"Finally");var un=is;un.kind="finally";var os=class os{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
-
`:""},this._extScope=t,this._scope=new je.Scope({parent:t}),this._nodes=[new To]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new wo(t,o,n)),o}const(t,r,n){return this._def(je.varKinds.const,t,r,n)}let(t,r,n){return this._def(je.varKinds.let,t,r,n)}var(t,r,n){return this._def(je.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new ai(t,r,n))}add(t,r){return this._leafNode(new Eo(t,j.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==I.nil&&this._leafNode(new Io(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,I.addCodeArg)(r,i));return r.push("}"),new I._Code(r)}if(t,r,n){if(this._blockNode(new kt(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new kt(t))}else(){return this._elseNode(new dr)}endIf(){return this._endBlockNode(kt,dr)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ro(t),r)}forRange(t,r,n,i,o=this.opts.es5?je.varKinds.var:je.varKinds.let){let a=this._scope.toName(t);return this._for(new No(o,a,r,n),()=>i(a))}forOf(t,r,n,i=je.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof I.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,I._)`${a}.length`,c=>{this.var(o,(0,I._)`${a}[${c}]`),n(o)})}return this._for(new ci("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?je.varKinds.var:je.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,I._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new ci("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Ct)}label(t){return this._leafNode(new jo(t))}break(t){return this._leafNode(new Ao(t))}return(t){let r=new an;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(an)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ko;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new cn(o),r(o)}return n&&(this._currNode=i.finally=new un,this.code(n)),this._endBlockNode(cn,un)}throw(t){return this._leafNode(new qo(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=I.nil,n,i){return this._blockNode(new sn(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(sn)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof kt))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};s(os,"CodeGen");var Co=os;j.CodeGen=Co;function Mt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Mt,"addNames");function ui(e,t){return t instanceof I._CodeOrName?Mt(e,t.names):e}s(ui,"addExprNames");function mr(e,t,r){if(e instanceof I.Name)return n(e);if(!i(e))return e;return new I._Code(e._items.reduce((o,a)=>(a instanceof I.Name&&(a=n(a)),a instanceof I._Code?o.push(...a._items):o.push(a),o),[]));function n(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof I._Code&&o._items.some(a=>a instanceof I.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(mr,"optimizeExpr");function Lg(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(Lg,"subtractNames");function Mu(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,I._)`!${Mo(e)}`}s(Mu,"not");j.not=Mu;var zg=Du(j.operators.AND);function Ug(...e){return e.reduce(zg)}s(Ug,"and");j.and=Ug;var Bg=Du(j.operators.OR);function Hg(...e){return e.reduce(Bg)}s(Hg,"or");j.or=Hg;function Du(e){return(t,r)=>t===I.nil?r:r===I.nil?t:(0,I._)`${Mo(t)} ${e} ${Mo(r)}`}s(Du,"mappend");function Mo(e){return e instanceof I.Name?e:(0,I._)`(${e})`}s(Mo,"par")});var q=h(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.checkStrictMode=A.getErrorPath=A.Type=A.useFunc=A.setEvaluated=A.evaluatedPropsToName=A.mergeEvaluated=A.eachItem=A.unescapeJsonPointer=A.escapeJsonPointer=A.escapeFragment=A.unescapeFragment=A.schemaRefOrVal=A.schemaHasRulesButRef=A.schemaHasRules=A.checkUnknownRules=A.alwaysValidSchema=A.toHash=void 0;var M=w(),Gg=nn();function Zg(e){let t={};for(let r of e)t[r]=!0;return t}s(Zg,"toHash");A.toHash=Zg;function Kg(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Lu(e,t),!zu(t,e.self.RULES.all))}s(Kg,"alwaysValidSchema");A.alwaysValidSchema=Kg;function Lu(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||Hu(e,`unknown keyword: "${o}"`)}s(Lu,"checkUnknownRules");A.checkUnknownRules=Lu;function zu(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(zu,"schemaHasRules");A.schemaHasRules=zu;function Wg(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(Wg,"schemaHasRulesButRef");A.schemaHasRulesButRef=Wg;function Yg({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,M._)`${r}`}return(0,M._)`${e}${t}${(0,M.getProperty)(n)}`}s(Yg,"schemaRefOrVal");A.schemaRefOrVal=Yg;function Jg(e){return Uu(decodeURIComponent(e))}s(Jg,"unescapeFragment");A.unescapeFragment=Jg;function Xg(e){return encodeURIComponent(as(e))}s(Xg,"escapeFragment");A.escapeFragment=Xg;function as(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(as,"escapeJsonPointer");A.escapeJsonPointer=as;function Uu(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(Uu,"unescapeJsonPointer");A.unescapeJsonPointer=Uu;function Qg(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(Qg,"eachItem");A.eachItem=Qg;function Fu({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof M.Name?(o instanceof M.Name?e(i,o,a):t(i,o,a),a):o instanceof M.Name?(t(i,a,o),o):r(o,a);return c===M.Name&&!(u instanceof M.Name)?n(i,u):u}}s(Fu,"makeMergeEvaluated");A.mergeEvaluated={props:Fu({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,M._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,M._)`${r} || {}`).code((0,M._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,M._)`${r} || {}`),cs(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Bu}),items:Fu({mergeNames:s((e,t,r)=>e.if((0,M._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,M._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,M._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,M._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function Bu(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,M._)`{}`);return t!==void 0&&cs(e,r,t),r}s(Bu,"evaluatedPropsToName");A.evaluatedPropsToName=Bu;function cs(e,t,r){Object.keys(r).forEach(n=>e.assign((0,M._)`${t}${(0,M.getProperty)(n)}`,!0))}s(cs,"setEvaluated");A.setEvaluated=cs;var Vu={};function e$(e,t){return e.scopeValue("func",{ref:t,code:Vu[t.code]||(Vu[t.code]=new Gg._Code(t.code))})}s(e$,"useFunc");A.useFunc=e$;var ss;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ss||(A.Type=ss={}));function t$(e,t,r){if(e instanceof M.Name){let n=t===ss.Num;return r?n?(0,M._)`"[" + ${e} + "]"`:(0,M._)`"['" + ${e} + "']"`:n?(0,M._)`"/" + ${e}`:(0,M._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,M.getProperty)(e).toString():"/"+as(e)}s(t$,"getErrorPath");A.getErrorPath=t$;function Hu(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}s(Hu,"checkStrictMode");A.checkStrictMode=Hu});var _e=h(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var ee=w(),r$={data:new ee.Name("data"),valCxt:new ee.Name("valCxt"),instancePath:new ee.Name("instancePath"),parentData:new ee.Name("parentData"),parentDataProperty:new ee.Name("parentDataProperty"),rootData:new ee.Name("rootData"),dynamicAnchors:new ee.Name("dynamicAnchors"),vErrors:new ee.Name("vErrors"),errors:new ee.Name("errors"),this:new ee.Name("this"),self:new ee.Name("self"),scope:new ee.Name("scope"),json:new ee.Name("json"),jsonPos:new ee.Name("jsonPos"),jsonLen:new ee.Name("jsonLen"),jsonPart:new ee.Name("jsonPart")};us.default=r$});var fn=h(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.extendErrors=te.resetErrorsCount=te.reportExtraError=te.reportError=te.keyword$DataError=te.keywordError=void 0;var T=w(),li=q(),se=_e();te.keywordError={message:s(({keyword:e})=>(0,T.str)`must pass "${e}" keyword validation`,"message")};te.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,T.str)`"${e}" keyword must be ${t} ($data)`:(0,T.str)`"${e}" keyword is invalid ($data)`,"message")};function n$(e,t=te.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=Ku(e,t,r);n??(a||c)?Gu(o,u):Zu(i,(0,T._)`[${u}]`)}s(n$,"reportError");te.reportError=n$;function i$(e,t=te.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=Ku(e,t,r);Gu(i,c),o||a||Zu(n,se.default.vErrors)}s(i$,"reportExtraError");te.reportExtraError=i$;function o$(e,t){e.assign(se.default.errors,t),e.if((0,T._)`${se.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,T._)`${se.default.vErrors}.length`,t),()=>e.assign(se.default.vErrors,null)))}s(o$,"resetErrorsCount");te.resetErrorsCount=o$;function s$({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,se.default.errors,c=>{e.const(a,(0,T._)`${se.default.vErrors}[${c}]`),e.if((0,T._)`${a}.instancePath === undefined`,()=>e.assign((0,T._)`${a}.instancePath`,(0,T.strConcat)(se.default.instancePath,o.errorPath))),e.assign((0,T._)`${a}.schemaPath`,(0,T.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,T._)`${a}.schema`,r),e.assign((0,T._)`${a}.data`,n))})}s(s$,"extendErrors");te.extendErrors=s$;function Gu(e,t){let r=e.const("err",t);e.if((0,T._)`${se.default.vErrors} === null`,()=>e.assign(se.default.vErrors,(0,T._)`[${r}]`),(0,T._)`${se.default.vErrors}.push(${r})`),e.code((0,T._)`${se.default.errors}++`)}s(Gu,"addError");function Zu(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,T._)`new ${e.ValidationError}(${t})`):(r.assign((0,T._)`${n}.errors`,t),r.return(!1))}s(Zu,"returnErrors");var Dt={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 Ku(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,T._)`{}`:a$(e,t,r)}s(Ku,"errorObjectCode");function a$(e,t,r={}){let{gen:n,it:i}=e,o=[c$(i,r),u$(e,r)];return f$(e,t,o),n.object(...o)}s(a$,"errorObject");function c$({errorPath:e},{instancePath:t}){let r=t?(0,T.str)`${e}${(0,li.getErrorPath)(t,li.Type.Str)}`:e;return[se.default.instancePath,(0,T.strConcat)(se.default.instancePath,r)]}s(c$,"errorInstancePath");function u$({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,T.str)`${t}/${e}`;return r&&(i=(0,T.str)`${i}${(0,li.getErrorPath)(r,li.Type.Str)}`),[Dt.schemaPath,i]}s(u$,"errorSchemaPath");function f$(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:f,topSchemaRef:l,schemaPath:p}=c;n.push([Dt.keyword,i],[Dt.params,typeof t=="function"?t(e):t||(0,T._)`{}`]),u.messages&&n.push([Dt.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Dt.schema,a],[Dt.parentSchema,(0,T._)`${l}${p}`],[se.default.data,o]),f&&n.push([Dt.propertyName,f])}s(f$,"extraErrorProps")});var Yu=h(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.boolOrEmptySchema=hr.topBoolOrEmptySchema=void 0;var l$=fn(),p$=w(),d$=_e(),m$={message:"boolean schema is false"};function h$(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Wu(e,!1):typeof r=="object"&&r.$async===!0?t.return(d$.default.data):(t.assign((0,p$._)`${n}.errors`,null),t.return(!0))}s(h$,"topBoolOrEmptySchema");hr.topBoolOrEmptySchema=h$;function y$(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Wu(e)):r.var(t,!0)}s(y$,"boolOrEmptySchema");hr.boolOrEmptySchema=y$;function Wu(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,l$.reportError)(i,m$,void 0,t)}s(Wu,"falseSchemaError")});var fs=h(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.getRules=yr.isJSONType=void 0;var g$=["string","number","integer","boolean","null","object","array"],$$=new Set(g$);function v$(e){return typeof e=="string"&&$$.has(e)}s(v$,"isJSONType");yr.isJSONType=v$;function b$(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(b$,"getRules");yr.getRules=b$});var ls=h(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.shouldUseRule=ut.shouldUseGroup=ut.schemaHasRulesForType=void 0;function _$({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Ju(e,n)}s(_$,"schemaHasRulesForType");ut.schemaHasRulesForType=_$;function Ju(e,t){return t.rules.some(r=>Xu(e,r))}s(Ju,"shouldUseGroup");ut.shouldUseGroup=Ju;function Xu(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}s(Xu,"shouldUseRule");ut.shouldUseRule=Xu});var ln=h(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.reportTypeError=re.checkDataTypes=re.checkDataType=re.coerceAndCheckDataType=re.getJSONTypes=re.getSchemaTypes=re.DataType=void 0;var P$=fs(),S$=ls(),O$=fn(),E=w(),Qu=q(),gr;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(gr||(re.DataType=gr={}));function x$(e){let t=ef(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(x$,"getSchemaTypes");re.getSchemaTypes=x$;function ef(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(P$.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(ef,"getJSONTypes");re.getJSONTypes=ef;function w$(e,t){let{gen:r,data:n,opts:i}=e,o=E$(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,S$.schemaHasRulesForType)(e,t[0]));if(a){let c=ds(t,n,i.strictNumbers,gr.Wrong);r.if(c,()=>{o.length?j$(e,t,o):ms(e)})}return a}s(w$,"coerceAndCheckDataType");re.coerceAndCheckDataType=w$;var tf=new Set(["string","number","integer","boolean","null"]);function E$(e,t){return t?e.filter(r=>tf.has(r)||t==="array"&&r==="array"):[]}s(E$,"coerceToTypes");function j$(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,E._)`typeof ${i}`),c=n.let("coerced",(0,E._)`undefined`);o.coerceTypes==="array"&&n.if((0,E._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,E._)`${i}[0]`).assign(a,(0,E._)`typeof ${i}`).if(ds(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,E._)`${c} !== undefined`);for(let f of r)(tf.has(f)||f==="array"&&o.coerceTypes==="array")&&u(f);n.else(),ms(e),n.endIf(),n.if((0,E._)`${c} !== undefined`,()=>{n.assign(i,c),A$(e,c)});function u(f){switch(f){case"string":n.elseIf((0,E._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,E._)`"" + ${i}`).elseIf((0,E._)`${i} === null`).assign(c,(0,E._)`""`);return;case"number":n.elseIf((0,E._)`${a} == "boolean" || ${i} === null
|
|
7
|
-
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(
|
|
8
|
-
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(
|
|
9
|
-
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,E._)`[${i}]`)}}s(u,"coerceSpecificType")}s(j$,"coerceData");function A$({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,E._)`${t} !== undefined`,()=>e.assign((0,E._)`${t}[${r}]`,n))}s(A$,"assignParentData");function ps(e,t,r,n=gr.Correct){let i=n===gr.Correct?E.operators.EQ:E.operators.NEQ,o;switch(e){case"null":return(0,E._)`${t} ${i} null`;case"array":o=(0,E._)`Array.isArray(${t})`;break;case"object":o=(0,E._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,E._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,E._)`typeof ${t} ${i} ${e}`}return n===gr.Correct?o:(0,E.not)(o);function a(c=E.nil){return(0,E.and)((0,E._)`typeof ${t} == "number"`,c,r?(0,E._)`isFinite(${t})`:E.nil)}}s(ps,"checkDataType");re.checkDataType=ps;function ds(e,t,r,n){if(e.length===1)return ps(e[0],t,r,n);let i,o=(0,Qu.toHash)(e);if(o.array&&o.object){let a=(0,E._)`typeof ${t} != "object"`;i=o.null?a:(0,E._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=E.nil;o.number&&delete o.integer;for(let a in o)i=(0,E.and)(i,ps(a,t,r,n));return i}s(ds,"checkDataTypes");re.checkDataTypes=ds;var q$={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,E._)`{type: ${e}}`:(0,E._)`{type: ${t}}`,"params")};function ms(e){let t=I$(e);(0,O$.reportError)(t,q$)}s(ms,"reportTypeError");re.reportTypeError=ms;function I$(e){let{gen:t,data:r,schema:n}=e,i=(0,Qu.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(I$,"getTypeErrorContext")});var nf=h(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.assignDefaults=void 0;var $r=w(),T$=q();function R$(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)rf(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>rf(e,o,i.default))}s(R$,"assignDefaults");pi.assignDefaults=R$;function rf(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,$r._)`${o}${(0,$r.getProperty)(t)}`;if(i){(0,T$.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,$r._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,$r._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,$r._)`${c} = ${(0,$r.stringify)(r)}`)}s(rf,"assignDefault")});var Pe=h(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.validateUnion=C.validateArray=C.usePattern=C.callValidateCode=C.schemaProperties=C.allSchemaProperties=C.noPropertyInData=C.propertyInData=C.isOwnProperty=C.hasPropFunc=C.reportMissingProp=C.checkMissingProp=C.checkReportMissingProp=void 0;var D=w(),hs=q(),ft=_e(),N$=q();function k$(e,t){let{gen:r,data:n,it:i}=e;r.if(gs(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,D._)`${t}`},!0),e.error()})}s(k$,"checkReportMissingProp");C.checkReportMissingProp=k$;function C$({gen:e,data:t,it:{opts:r}},n,i){return(0,D.or)(...n.map(o=>(0,D.and)(gs(e,t,o,r.ownProperties),(0,D._)`${i} = ${o}`)))}s(C$,"checkMissingProp");C.checkMissingProp=C$;function M$(e,t){e.setParams({missingProperty:t},!0),e.error()}s(M$,"reportMissingProp");C.reportMissingProp=M$;function of(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,D._)`Object.prototype.hasOwnProperty`})}s(of,"hasPropFunc");C.hasPropFunc=of;function ys(e,t,r){return(0,D._)`${of(e)}.call(${t}, ${r})`}s(ys,"isOwnProperty");C.isOwnProperty=ys;function D$(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} !== undefined`;return n?(0,D._)`${i} && ${ys(e,t,r)}`:i}s(D$,"propertyInData");C.propertyInData=D$;function gs(e,t,r,n){let i=(0,D._)`${t}${(0,D.getProperty)(r)} === undefined`;return n?(0,D.or)(i,(0,D.not)(ys(e,t,r))):i}s(gs,"noPropertyInData");C.noPropertyInData=gs;function sf(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(sf,"allSchemaProperties");C.allSchemaProperties=sf;function F$(e,t){return sf(t).filter(r=>!(0,hs.alwaysValidSchema)(e,t[r]))}s(F$,"schemaProperties");C.schemaProperties=F$;function V$({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,f){let l=f?(0,D._)`${e}, ${t}, ${n}${i}`:t,p=[[ft.default.instancePath,(0,D.strConcat)(ft.default.instancePath,o)],[ft.default.parentData,a.parentData],[ft.default.parentDataProperty,a.parentDataProperty],[ft.default.rootData,ft.default.rootData]];a.opts.dynamicRef&&p.push([ft.default.dynamicAnchors,ft.default.dynamicAnchors]);let m=(0,D._)`${l}, ${r.object(...p)}`;return u!==D.nil?(0,D._)`${c}.call(${u}, ${m})`:(0,D._)`${c}(${m})`}s(V$,"callValidateCode");C.callValidateCode=V$;var L$=(0,D._)`new RegExp`;function z$({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,D._)`${i.code==="new RegExp"?L$:(0,N$.useFunc)(e,i)}(${r}, ${n})`})}s(z$,"usePattern");C.usePattern=z$;function U$(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let u=t.const("len",(0,D._)`${r}.length`);t.forRange("i",0,u,f=>{e.subschema({keyword:n,dataProp:f,dataPropType:hs.Type.Num},o),t.if((0,D.not)(o),c)})}s(a,"validateItems")}s(U$,"validateArray");C.validateArray=U$;function B$(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,hs.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,f)=>{let l=e.subschema({keyword:n,schemaProp:f,compositeRule:!0},c);t.assign(a,(0,D._)`${a} || ${c}`),e.mergeValidEvaluated(l,c)||t.if((0,D.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(B$,"validateUnion");C.validateUnion=B$});var uf=h(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.validateKeywordUsage=Ve.validSchemaType=Ve.funcKeywordCode=Ve.macroKeywordCode=void 0;var ae=w(),Ft=_e(),H$=Pe(),G$=fn();function Z$(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=cf(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let f=r.name("valid");e.subschema({schema:c,schemaPath:ae.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,()=>e.error(!0))}s(Z$,"macroKeywordCode");Ve.macroKeywordCode=Z$;function K$(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;Y$(u,t);let f=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,l=cf(n,i,f),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)$(),t.modifying&&af(e),g(()=>e.error());else{let v=t.async?d():y();t.modifying&&af(e),g(()=>W$(e,v))}}s(m,"validateKeyword");function d(){let v=n.let("ruleErrs",null);return n.try(()=>$((0,ae._)`await `),O=>n.assign(p,!1).if((0,ae._)`${O} instanceof ${u.ValidationError}`,()=>n.assign(v,(0,ae._)`${O}.errors`),()=>n.throw(O))),v}s(d,"validateAsync");function y(){let v=(0,ae._)`${l}.errors`;return n.assign(v,null),$(ae.nil),v}s(y,"validateSync");function $(v=t.async?(0,ae._)`await `:ae.nil){let O=u.opts.passContext?Ft.default.this:Ft.default.self,P=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,ae._)`${v}${(0,H$.callValidateCode)(e,l,O,P)}`,t.modifying)}s($,"assignValid");function g(v){var O;n.if((0,ae.not)((O=t.valid)!==null&&O!==void 0?O:p),v)}s(g,"reportErrs")}s(K$,"funcKeywordCode");Ve.funcKeywordCode=K$;function af(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ae._)`${n.parentData}[${n.parentDataProperty}]`))}s(af,"modifyData");function W$(e,t){let{gen:r}=e;r.if((0,ae._)`Array.isArray(${t})`,()=>{r.assign(Ft.default.vErrors,(0,ae._)`${Ft.default.vErrors} === null ? ${t} : ${Ft.default.vErrors}.concat(${t})`).assign(Ft.default.errors,(0,ae._)`${Ft.default.vErrors}.length`),(0,G$.extendErrors)(e)},()=>e.error())}s(W$,"addErrs");function Y$({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(Y$,"checkAsyncKeyword");function cf(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,ae.stringify)(r)})}s(cf,"useKeyword");function J$(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}s(J$,"validSchemaType");Ve.validSchemaType=J$;function X$({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}s(X$,"validateKeywordUsage");Ve.validateKeywordUsage=X$});var lf=h(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.extendSubschemaMode=lt.extendSubschemaData=lt.getSubschema=void 0;var Le=w(),ff=q();function Q$(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,Le._)`${e.schemaPath}${(0,Le.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,Le._)`${e.schemaPath}${(0,Le.getProperty)(t)}${(0,Le.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,ff.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(Q$,"getSubschema");lt.getSubschema=Q$;function e0(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(r!==void 0){let{errorPath:f,dataPathArr:l,opts:p}=t,m=c.let("data",(0,Le._)`${t.data}${(0,Le.getProperty)(r)}`,!0);u(m),e.errorPath=(0,Le.str)`${f}${(0,ff.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Le._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(i!==void 0){let f=i instanceof Le.Name?i:c.let("data",i,!0);u(f),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(f){e.data=f,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,f]}s(u,"dataContextProps")}s(e0,"extendSubschemaData");lt.extendSubschemaData=e0;function t0(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}s(t0,"extendSubschemaMode");lt.extendSubschemaMode=t0});var $s=h(($A,pf)=>{"use strict";pf.exports=s(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var mf=h((bA,df)=>{"use strict";var pt=df.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};di(t,n,i,e,"",e)};pt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};pt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pt.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 di(e,t,r,n,i,o,a,c,u,f){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,f);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in pt.arrayKeywords)for(var m=0;m<p.length;m++)di(e,t,r,p[m],i+"/"+l+"/"+m,o,i,l,n,m)}else if(l in pt.propsKeywords){if(p&&typeof p=="object")for(var d in p)di(e,t,r,p[d],i+"/"+l+"/"+r0(d),o,i,l,n,d)}else(l in pt.keywords||e.allKeys&&!(l in pt.skipKeywords))&&di(e,t,r,p,i+"/"+l,o,i,l,n)}r(n,i,o,a,c,u,f)}}s(di,"_traverse");function r0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(r0,"escapeJsonPtr")});var pn=h(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.getSchemaRefs=me.resolveUrl=me.normalizeId=me._getFullPath=me.getFullPath=me.inlineRef=void 0;var n0=q(),i0=$s(),o0=mf(),s0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a0(e,t=!0){return typeof e=="boolean"?!0:t===!0?!vs(e):t?hf(e)<=t:!1}s(a0,"inlineRef");me.inlineRef=a0;var c0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function vs(e){for(let t in e){if(c0.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(vs)||typeof r=="object"&&vs(r))return!0}return!1}s(vs,"hasRef");function hf(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!s0.has(r)&&(typeof e[r]=="object"&&(0,n0.eachItem)(e[r],n=>t+=hf(n)),t===1/0))return 1/0}return t}s(hf,"countKeys");function yf(e,t="",r){r!==!1&&(t=vr(t));let n=e.parse(t);return gf(e,n)}s(yf,"getFullPath");me.getFullPath=yf;function gf(e,t){return e.serialize(t).split("#")[0]+"#"}s(gf,"_getFullPath");me._getFullPath=gf;var u0=/#\/?$/;function vr(e){return e?e.replace(u0,""):""}s(vr,"normalizeId");me.normalizeId=vr;function f0(e,t,r){return r=vr(r),e.resolve(t,r)}s(f0,"resolveUrl");me.resolveUrl=f0;var l0=/^[a-z_][-a-z0-9._]*$/i;function p0(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=vr(e[r]||t),o={"":i},a=yf(n,i,!1),c={},u=new Set;return o0(e,{allKeys:!0},(p,m,d,y)=>{if(y===void 0)return;let $=a+m,g=o[y];typeof p[r]=="string"&&(g=v.call(this,p[r])),O.call(this,p.$anchor),O.call(this,p.$dynamicAnchor),o[m]=g;function v(P){let R=this.opts.uriResolver.resolve;if(P=vr(g?R(g,P):P),u.has(P))throw l(P);u.add(P);let b=this.refs[P];return typeof b=="string"&&(b=this.refs[b]),typeof b=="object"?f(p,b.schema,P):P!==vr($)&&(P[0]==="#"?(f(p,c[P],P),c[P]=p):this.refs[P]=$),P}s(v,"addRef");function O(P){if(typeof P=="string"){if(!l0.test(P))throw new Error(`invalid anchor "${P}"`);v.call(this,`#${P}`)}}s(O,"addAnchor")}),c;function f(p,m,d){if(m!==void 0&&!i0(p,m))throw l(d)}s(f,"checkAmbiguosRef");function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}s(l,"ambiguos")}s(p0,"getSchemaRefs");me.getSchemaRefs=p0});var hn=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getData=dt.KeywordCxt=dt.validateFunctionCode=void 0;var Pf=Yu(),$f=ln(),_s=ls(),mi=ln(),d0=nf(),mn=uf(),bs=lf(),_=w(),x=_e(),m0=pn(),rt=q(),dn=fn();function h0(e){if(xf(e)&&(wf(e),Of(e))){$0(e);return}Sf(e,()=>(0,Pf.topBoolOrEmptySchema)(e))}s(h0,"validateFunctionCode");dt.validateFunctionCode=h0;function Sf({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,_._)`${x.default.data}, ${x.default.valCxt}`,n.$async,()=>{e.code((0,_._)`"use strict"; ${vf(r,i)}`),g0(e,i),e.code(o)}):e.func(t,(0,_._)`${x.default.data}, ${y0(i)}`,n.$async,()=>e.code(vf(r,i)).code(o))}s(Sf,"validateFunction");function y0(e){return(0,_._)`{${x.default.instancePath}="", ${x.default.parentData}, ${x.default.parentDataProperty}, ${x.default.rootData}=${x.default.data}${e.dynamicRef?(0,_._)`, ${x.default.dynamicAnchors}={}`:_.nil}}={}`}s(y0,"destructureValCxt");function g0(e,t){e.if(x.default.valCxt,()=>{e.var(x.default.instancePath,(0,_._)`${x.default.valCxt}.${x.default.instancePath}`),e.var(x.default.parentData,(0,_._)`${x.default.valCxt}.${x.default.parentData}`),e.var(x.default.parentDataProperty,(0,_._)`${x.default.valCxt}.${x.default.parentDataProperty}`),e.var(x.default.rootData,(0,_._)`${x.default.valCxt}.${x.default.rootData}`),t.dynamicRef&&e.var(x.default.dynamicAnchors,(0,_._)`${x.default.valCxt}.${x.default.dynamicAnchors}`)},()=>{e.var(x.default.instancePath,(0,_._)`""`),e.var(x.default.parentData,(0,_._)`undefined`),e.var(x.default.parentDataProperty,(0,_._)`undefined`),e.var(x.default.rootData,x.default.data),t.dynamicRef&&e.var(x.default.dynamicAnchors,(0,_._)`{}`)})}s(g0,"destructureValCxtES5");function $0(e){let{schema:t,opts:r,gen:n}=e;Sf(e,()=>{r.$comment&&t.$comment&&jf(e),S0(e),n.let(x.default.vErrors,null),n.let(x.default.errors,0),r.unevaluated&&v0(e),Ef(e),w0(e)})}s($0,"topSchemaObjCode");function v0(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,_._)`${r}.evaluated`),t.if((0,_._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,_._)`${e.evaluated}.props`,(0,_._)`undefined`)),t.if((0,_._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,_._)`${e.evaluated}.items`,(0,_._)`undefined`))}s(v0,"resetEvaluated");function vf(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,_._)`/*# sourceURL=${r} */`:_.nil}s(vf,"funcSourceUrl");function b0(e,t){if(xf(e)&&(wf(e),Of(e))){_0(e,t);return}(0,Pf.boolOrEmptySchema)(e,t)}s(b0,"subschemaCode");function Of({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}s(Of,"schemaCxtHasRules");function xf(e){return typeof e.schema!="boolean"}s(xf,"isSchemaObj");function _0(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&jf(e),O0(e),x0(e);let o=n.const("_errs",x.default.errors);Ef(e,o),n.var(t,(0,_._)`${o} === ${x.default.errors}`)}s(_0,"subSchemaObjCode");function wf(e){(0,rt.checkUnknownRules)(e),P0(e)}s(wf,"checkKeywords");function Ef(e,t){if(e.opts.jtd)return bf(e,[],!1,t);let r=(0,$f.getSchemaTypes)(e.schema),n=(0,$f.coerceAndCheckDataType)(e,r);bf(e,r,!n,t)}s(Ef,"typeAndKeywords");function P0(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,rt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(P0,"checkRefsAndKeywords");function S0(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,rt.checkStrictMode)(e,"default is ignored in the schema root")}s(S0,"checkNoDefault");function O0(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,m0.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(O0,"updateContext");function x0(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(x0,"checkAsyncSchema");function jf({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,_._)`${x.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,_.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,_._)`${x.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(jf,"commentKeyword");function w0(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,_._)`${x.default.errors} === 0`,()=>t.return(x.default.data),()=>t.throw((0,_._)`new ${i}(${x.default.vErrors})`)):(t.assign((0,_._)`${n}.errors`,x.default.vErrors),o.unevaluated&&E0(e),t.return((0,_._)`${x.default.errors} === 0`))}s(w0,"returnResults");function E0({gen:e,evaluated:t,props:r,items:n}){r instanceof _.Name&&e.assign((0,_._)`${t}.props`,r),n instanceof _.Name&&e.assign((0,_._)`${t}.items`,n)}s(E0,"assignEvaluated");function bf(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:f}=e,{RULES:l}=f;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,rt.schemaHasRulesButRef)(o,l))){i.block(()=>qf(e,"$ref",l.all.$ref.definition));return}u.jtd||j0(e,t),i.block(()=>{for(let m of l.rules)p(m);p(l.post)});function p(m){(0,_s.shouldUseGroup)(o,m)&&(m.type?(i.if((0,mi.checkDataType)(m.type,a,u.strictNumbers)),_f(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,mi.reportTypeError)(e)),i.endIf()):_f(e,m),c||i.if((0,_._)`${x.default.errors} === ${n||0}`))}s(p,"groupKeywords")}s(bf,"schemaKeywords");function _f(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,d0.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,_s.shouldUseRule)(n,o)&&qf(e,o.keyword,o.definition,t.type)})}s(_f,"iterateKeywords");function j0(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(A0(e,t),e.opts.allowUnionTypes||q0(e,t),I0(e,e.dataTypes))}s(j0,"checkStrictTypes");function A0(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Af(e.dataTypes,r)||Ps(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),R0(e,t)}}s(A0,"checkContextTypes");function q0(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Ps(e,"use allowUnionTypes to allow union type keyword")}s(q0,"checkMultipleTypes");function I0(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,_s.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>T0(t,a))&&Ps(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(I0,"checkKeywordTypes");function T0(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(T0,"hasApplicableType");function Af(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Af,"includesType");function R0(e,t){let r=[];for(let n of e.dataTypes)Af(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(R0,"narrowSchemaTypes");function Ps(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,rt.checkStrictMode)(e,t,e.opts.strictTypes)}s(Ps,"strictTypesError");var Ss=class Ss{constructor(t,r,n){if((0,mn.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,rt.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",If(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,mn.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",x.default.errors))}result(t,r,n){this.failResult((0,_.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,_.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,_._)`${r} !== undefined && (${(0,_.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?dn.reportExtraError:dn.reportError)(this,this.def.error,r)}$dataError(){(0,dn.reportError)(this,this.def.$dataError||dn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,dn.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=_.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=_.nil,r=_.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,_.or)((0,_._)`${i} === undefined`,r)),t!==_.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==_.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,_.or)(a(),c());function a(){if(n.length){if(!(r instanceof _.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,_._)`${(0,mi.checkDataTypes)(u,r,o.opts.strictNumbers,mi.DataType.Wrong)}`}return _.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,_._)`!${u}(${r})`}return _.nil}}subschema(t,r){let n=(0,bs.getSubschema)(this.it,t);(0,bs.extendSubschemaData)(n,this.it,t),(0,bs.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return b0(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=rt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=rt.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,_.Name)),!0}};s(Ss,"KeywordCxt");var hi=Ss;dt.KeywordCxt=hi;function qf(e,t,r,n){let i=new hi(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,mn.funcKeywordCode)(i,r):"macro"in r?(0,mn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,mn.funcKeywordCode)(i,r)}s(qf,"keywordCode");var N0=/^\/(?:[^~]|~0|~1)*$/,k0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function If(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return x.default.rootData;if(e[0]==="/"){if(!N0.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=x.default.rootData}else{let f=k0.exec(e);if(!f)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+f[1];if(i=f[2],i==="#"){if(l>=t)throw new Error(u("property/index",l));return n[t-l]}if(l>t)throw new Error(u("data",l));if(o=r[t-l],!i)return o}let a=o,c=i.split("/");for(let f of c)f&&(o=(0,_._)`${o}${(0,_.getProperty)((0,rt.unescapeJsonPointer)(f))}`,a=(0,_._)`${a} && ${o}`);return a;function u(f,l){return`Cannot access ${f} ${l} levels up, current level is ${t}`}}s(If,"getData");dt.getData=If});var yi=h(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});var ws=class ws extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(ws,"ValidationError");var Os=ws;xs.default=Os});var yn=h(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Es=pn(),qs=class qs extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Es.resolveUrl)(t,r,n),this.missingSchema=(0,Es.normalizeId)((0,Es.getFullPath)(t,this.missingRef))}};s(qs,"MissingRefError");var js=qs;As.default=js});var gn=h(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.resolveSchema=Se.getCompilingSchema=Se.resolveRef=Se.compileSchema=Se.SchemaEnv=void 0;var Ae=w(),C0=yi(),Vt=_e(),qe=pn(),Tf=q(),M0=hn(),Rs=class Rs{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,qe.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};s(Rs,"SchemaEnv");var br=Rs;Se.SchemaEnv=br;function Ts(e){let t=Rf.call(this,e);if(t)return t;let r=(0,qe.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ae.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:C0.default,code:(0,Ae._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let f={gen:a,allErrors:this.opts.allErrors,data:Vt.default.data,parentData:Vt.default.parentData,parentDataProperty:Vt.default.parentDataProperty,dataNames:[Vt.default.data],dataPathArr:[Ae.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ae.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ae.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ae._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,M0.validateFunctionCode)(f),a.optimize(this.opts.code.optimize);let p=a.toString();l=`${a.scopeRefs(Vt.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${Vt.default.self}`,`${Vt.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:y,items:$}=f;d.evaluated={props:y instanceof Ae.Name?void 0:y,items:$ instanceof Ae.Name?void 0:$,dynamicProps:y instanceof Ae.Name,dynamicItems:$ instanceof Ae.Name},d.source&&(d.source.evaluated=(0,Ae.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(e)}}s(Ts,"compileSchema");Se.compileSchema=Ts;function D0(e,t,r){var n;r=(0,qe.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=L0.call(this,e,r);if(o===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(o=new br({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=F0.call(this,o)}s(D0,"resolveRef");Se.resolveRef=D0;function F0(e){return(0,qe.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Ts.call(this,e)}s(F0,"inlineOrCompile");function Rf(e){for(let t of this._compilations)if(V0(t,e))return t}s(Rf,"getCompilingSchema");Se.getCompilingSchema=Rf;function V0(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(V0,"sameSchemaEnv");function L0(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||gi.call(this,e,t)}s(L0,"resolve");function gi(e,t){let r=this.opts.uriResolver.parse(t),n=(0,qe._getFullPath)(this.opts.uriResolver,r),i=(0,qe.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Is.call(this,r,e);let o=(0,qe.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=gi.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Is.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Ts.call(this,a),o===(0,qe.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,f=c[u];return f&&(i=(0,qe.resolveUrl)(this.opts.uriResolver,i,f)),new br({schema:c,schemaId:u,root:e,baseId:i})}return Is.call(this,r,a)}}s(gi,"resolveSchema");Se.resolveSchema=gi;var z0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Is(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,Tf.unescapeFragment)(c)];if(u===void 0)return;r=u;let f=typeof r=="object"&&r[this.opts.schemaId];!z0.has(c)&&f&&(t=(0,qe.resolveUrl)(this.opts.uriResolver,t,f))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Tf.schemaHasRulesButRef)(r,this.RULES)){let c=(0,qe.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=gi.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new br({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Is,"getJsonPointer")});var Nf=h((TA,U0)=>{U0.exports={$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:!1}});var Cf=h((RA,kf)=>{"use strict";var B0={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};kf.exports={HEX:B0}});var Bf=h((NA,Uf)=>{"use strict";var{HEX:H0}=Cf();function Vf(e){if(zf(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:Z0(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(Vf,"normalizeIPv4");function Ns(e,t=!1){let r="",n=!0;for(let i of e){if(H0[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Ns,"stringArrayToHexStripped");function G0(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,a=!1,c=!1;function u(){if(i.length){if(o===!1){let f=Ns(i);if(f!==void 0)n.push(f);else return r.error=!0,!1}i.length=0}return!0}s(u,"consume");for(let f=0;f<e.length;f++){let l=e[f];if(!(l==="["||l==="]"))if(l===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}f-1>=0&&e[f-1]===":"&&(a=!0);continue}else if(l==="%"){if(!u())break;o=!0}else{i.push(l);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(Ns(i))),r.address=n.join(""),r}s(G0,"getIPV6");function Lf(e,t={}){if(zf(e,":")<2)return{host:e,isIPV6:!1};let r=G0(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}s(Lf,"normalizeIPv6");function Z0(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let a=e[o];a==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}s(Z0,"stripLeadingZeros");function zf(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(zf,"findToken");var Mf=/^\.\.?\//u,Df=/^\/\.(?:\/|$)/u,Ff=/^\/\.\.(?:\/|$)/u,K0=/^\/?(?:.|\n)*?(?=\/|$)/u;function W0(e){let t=[];for(;e.length;)if(e.match(Mf))e=e.replace(Mf,"");else if(e.match(Df))e=e.replace(Df,"/");else if(e.match(Ff))e=e.replace(Ff,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(K0);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}s(W0,"removeDotSegments");function Y0(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}s(Y0,"normalizeComponentEncoding");function J0(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=Vf(n);if(i.isIPV4)n=i.host;else{let o=Lf(i.host,{isIPV4:!1});o.isIPV6===!0?n=`[${o.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}s(J0,"recomposeAuthority");Uf.exports={recomposeAuthority:J0,normalizeComponentEncoding:Y0,removeDotSegments:W0,normalizeIPv4:Vf,normalizeIPv6:Lf,stringArrayToHexStripped:Ns}});var Yf=h((CA,Wf)=>{"use strict";var X0=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Q0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Hf(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(Hf,"isSecure");function Gf(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(Gf,"httpParse");function Zf(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(Zf,"httpSerialize");function ev(e){return e.secure=Hf(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(ev,"wsParse");function tv(e){if((e.port===(Hf(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}s(tv,"wsSerialize");function rv(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Q0);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=ks[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(rv,"urnParse");function nv(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=ks[i];o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}s(nv,"urnSerialize");function iv(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!X0.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(iv,"urnuuidParse");function ov(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(ov,"urnuuidSerialize");var Kf={scheme:"http",domainHost:!0,parse:Gf,serialize:Zf},sv={scheme:"https",domainHost:Kf.domainHost,parse:Gf,serialize:Zf},$i={scheme:"ws",domainHost:!0,parse:ev,serialize:tv},av={scheme:"wss",domainHost:$i.domainHost,parse:$i.parse,serialize:$i.serialize},cv={scheme:"urn",parse:rv,serialize:nv,skipNormalize:!0},uv={scheme:"urn:uuid",parse:iv,serialize:ov,skipNormalize:!0},ks={http:Kf,https:sv,ws:$i,wss:av,urn:cv,"urn:uuid":uv};Wf.exports=ks});var Xf=h((DA,bi)=>{"use strict";var{normalizeIPv6:fv,normalizeIPv4:lv,removeDotSegments:$n,recomposeAuthority:pv,normalizeComponentEncoding:vi}=Bf(),Cs=Yf();function dv(e,t){return typeof e=="string"?e=ze(nt(e,t),t):typeof e=="object"&&(e=nt(ze(e,t),t)),e}s(dv,"normalize");function mv(e,t,r){let n=Object.assign({scheme:"null"},r),i=Jf(nt(e,n),nt(t,n),n,!0);return ze(i,{...n,skipEscape:!0})}s(mv,"resolve");function Jf(e,t,r,n){let i={};return n||(e=nt(ze(e,r),r),t=nt(ze(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=$n(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=$n(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=$n(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=$n(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(Jf,"resolveComponents");function hv(e,t,r){return typeof e=="string"?(e=unescape(e),e=ze(vi(nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=ze(vi(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=ze(vi(nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=ze(vi(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(hv,"equal");function ze(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=Cs[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=pv(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let c=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(c=$n(c)),a===void 0&&(c=c.replace(/^\/\//u,"/%2F")),i.push(c)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}s(ze,"serialize");var yv=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function gv(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||yv[t])return!0;return!1}s(gv,"nonSimpleDomain");var $v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function nt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match($v);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let u=lv(n.host);if(u.isIPV4===!1){let f=fv(u.host,{isIPV4:!1});n.host=f.host.toLowerCase(),o=f.isIPV6}else n.host=u.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Cs[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&gv(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}(!c||c&&!c.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}s(nt,"parse");var Ms={SCHEMES:Cs,normalize:dv,resolve:mv,resolveComponents:Jf,equal:hv,serialize:ze,parse:nt};bi.exports=Ms;bi.exports.default=Ms;bi.exports.fastUri=Ms});var el=h(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Qf=Xf();Qf.code='require("ajv/dist/runtime/uri").default';Ds.default=Qf});var Pr=h(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.CodeGen=X.Name=X.nil=X.stringify=X.str=X._=X.KeywordCxt=void 0;var vv=hn();Object.defineProperty(X,"KeywordCxt",{enumerable:!0,get:s(function(){return vv.KeywordCxt},"get")});var _r=w();Object.defineProperty(X,"_",{enumerable:!0,get:s(function(){return _r._},"get")});Object.defineProperty(X,"str",{enumerable:!0,get:s(function(){return _r.str},"get")});Object.defineProperty(X,"stringify",{enumerable:!0,get:s(function(){return _r.stringify},"get")});Object.defineProperty(X,"nil",{enumerable:!0,get:s(function(){return _r.nil},"get")});Object.defineProperty(X,"Name",{enumerable:!0,get:s(function(){return _r.Name},"get")});Object.defineProperty(X,"CodeGen",{enumerable:!0,get:s(function(){return _r.CodeGen},"get")});var bv=yi(),ol=yn(),_v=fs(),vn=gn(),Pv=w(),bn=pn(),_i=ln(),Vs=q(),tl=Nf(),Sv=el(),sl=s((e,t)=>new RegExp(e,t),"defaultRegExp");sl.code="new RegExp";var Ov=["removeAdditional","useDefaults","coerceTypes"],xv=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),wv={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."},Ev={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},rl=200;function jv(e){var t,r,n,i,o,a,c,u,f,l,p,m,d,y,$,g,v,O,P,R,b,H,ve,at,fe;let Z=e.strict,le=(t=e.code)===null||t===void 0?void 0:t.optimize,Qe=le===!0||le===void 0?1:le||0,Xr=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:sl,Wn=(i=e.uriResolver)!==null&&i!==void 0?i:Sv.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:Z)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:Z)!==null&&u!==void 0?u:!0,strictTypes:(l=(f=e.strictTypes)!==null&&f!==void 0?f:Z)!==null&&l!==void 0?l:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:Z)!==null&&m!==void 0?m:"log",strictRequired:(y=(d=e.strictRequired)!==null&&d!==void 0?d:Z)!==null&&y!==void 0?y:!1,code:e.code?{...e.code,optimize:Qe,regExp:Xr}:{optimize:Qe,regExp:Xr},loopRequired:($=e.loopRequired)!==null&&$!==void 0?$:rl,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:rl,meta:(v=e.meta)!==null&&v!==void 0?v:!0,messages:(O=e.messages)!==null&&O!==void 0?O:!0,inlineRefs:(P=e.inlineRefs)!==null&&P!==void 0?P:!0,schemaId:(R=e.schemaId)!==null&&R!==void 0?R:"$id",addUsedSchema:(b=e.addUsedSchema)!==null&&b!==void 0?b:!0,validateSchema:(H=e.validateSchema)!==null&&H!==void 0?H:!0,validateFormats:(ve=e.validateFormats)!==null&&ve!==void 0?ve:!0,unicodeRegExp:(at=e.unicodeRegExp)!==null&&at!==void 0?at:!0,int32range:(fe=e.int32range)!==null&&fe!==void 0?fe:!0,uriResolver:Wn}}s(jv,"requiredOptions");var Ls=class Ls{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...jv(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new Pv.ValueScope({scope:{},prefixes:xv,es5:r,lines:n}),this.logger=Nv(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_v.getRules)(),nl.call(this,wv,t,"NOT SUPPORTED"),nl.call(this,Ev,t,"DEPRECATED","warn"),this._metaOpts=Tv.call(this),t.formats&&qv.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Iv.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),Av.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=tl;n==="id"&&(i={...tl},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(l,p){await o.call(this,l.$schema);let m=this._addSchema(l,p);return m.validate||a.call(this,m)}async function o(l){l&&!this.getSchema(l)&&await i.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(p){if(!(p instanceof ol.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,l)}}function c({missingSchema:l,missingRef:p}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${p} cannot be resolved`)}async function u(l){let p=await f.call(this,l);this.refs[l]||await o.call(this,p.$schema),this.refs[l]||this.addSchema(p,l,r)}async function f(l){let p=this._loading[l];if(p)return p;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,bn.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=il.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new vn.SchemaEnv({schema:{},schemaId:n});if(r=vn.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=il.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,bn.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Cv.call(this,n,r),!r)return(0,Vs.eachItem)(n,o=>Fs.call(this,o)),this;Dv.call(this,r);let i={...r,type:(0,_i.getJSONTypes)(r.type),schemaType:(0,_i.getJSONTypes)(r.schemaType)};return(0,Vs.eachItem)(n,i.type.length===0?o=>Fs.call(this,o,i):o=>i.type.forEach(a=>Fs.call(this,o,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),a=t;for(let c of o)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:f}=u.definition,l=a[c];f&&l&&(a[c]=al(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,bn.normalizeId)(a||n);let f=bn.getSchemaRefs.call(this,t,n);return u=new vn.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:f}),this._cache.set(u.schema,u),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):vn.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{vn.compileSchema.call(this,t)}finally{this.opts=r}}};s(Ls,"Ajv");var _n=Ls;_n.ValidationError=bv.default;_n.MissingRefError=ol.default;X.default=_n;function nl(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}s(nl,"checkOptions");function il(e){return e=(0,bn.normalizeId)(e),this.schemas[e]||this.refs[e]}s(il,"getSchEnv");function Av(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(Av,"addInitialSchemas");function qv(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(qv,"addInitialFormats");function Iv(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}s(Iv,"addInitialKeywords");function Tv(){let e={...this.opts};for(let t of Ov)delete e[t];return e}s(Tv,"getMetaSchemaOptions");var Rv={log(){},warn(){},error(){}};function Nv(e){if(e===!1)return Rv;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(Nv,"getLogger");var kv=/^[a-z_$][a-z0-9_$:-]*$/i;function Cv(e,t){let{RULES:r}=this;if((0,Vs.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!kv.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(Cv,"checkKeyword");function Fs(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,_i.getJSONTypes)(t.type),schemaType:(0,_i.getJSONTypes)(t.schemaType)}};t.before?Mv.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}s(Fs,"addRule");function Mv(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}s(Mv,"addBeforeRule");function Dv(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=al(t)),e.validateSchema=this.compile(t,!0))}s(Dv,"keywordMetaschema");var Fv={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function al(e){return{anyOf:[e,Fv]}}s(al,"schemaOrData")});var Pn=h(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.callRef=Lt.getValidate=void 0;var Vv=yn(),cl=Pe(),he=w(),Sr=_e(),ul=gn(),Pi=q(),Lv={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:u}=n,{root:f}=o;if((r==="#"||r==="#/")&&i===f.baseId)return p();let l=ul.resolveRef.call(u,f,i,r);if(l===void 0)throw new Vv.default(n.opts.uriResolver,i,r);if(l instanceof ul.SchemaEnv)return m(l);return d(l);function p(){if(o===f)return Si(e,a,o,o.$async);let y=t.scopeValue("root",{ref:f});return Si(e,(0,he._)`${y}.validate`,f,f.$async)}function m(y){let $=fl(e,y);Si(e,$,y,y.$async)}function d(y){let $=t.scopeValue("schema",c.code.source===!0?{ref:y,code:(0,he.stringify)(y)}:{ref:y}),g=t.name("valid"),v=e.subschema({schema:y,dataTypes:[],schemaPath:he.nil,topSchemaRef:$,errSchemaPath:r},g);e.mergeEvaluated(v),e.ok(g)}}};function fl(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,he._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(fl,"getValidate");Lt.getValidate=fl;function Si(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,f=u.passContext?Sr.default.this:he.nil;n?l():p();function l(){if(!c.$async)throw new Error("async schema referenced by sync schema");let y=i.let("valid");i.try(()=>{i.code((0,he._)`await ${(0,cl.callValidateCode)(e,t,f)}`),d(t),a||i.assign(y,!0)},$=>{i.if((0,he._)`!(${$} instanceof ${o.ValidationError})`,()=>i.throw($)),m($),a||i.assign(y,!1)}),e.ok(y)}s(l,"callAsyncRef");function p(){e.result((0,cl.callValidateCode)(e,t,f),()=>d(t),()=>m(t))}s(p,"callSyncRef");function m(y){let $=(0,he._)`${y}.errors`;i.assign(Sr.default.vErrors,(0,he._)`${Sr.default.vErrors} === null ? ${$} : ${Sr.default.vErrors}.concat(${$})`),i.assign(Sr.default.errors,(0,he._)`${Sr.default.vErrors}.length`)}s(m,"addErrorsFrom");function d(y){var $;if(!o.opts.unevaluated)return;let g=($=r==null?void 0:r.validate)===null||$===void 0?void 0:$.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=Pi.mergeEvaluated.props(i,g.props,o.props));else{let v=i.var("props",(0,he._)`${y}.evaluated.props`);o.props=Pi.mergeEvaluated.props(i,v,o.props,he.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=Pi.mergeEvaluated.items(i,g.items,o.items));else{let v=i.var("items",(0,he._)`${y}.evaluated.items`);o.items=Pi.mergeEvaluated.items(i,v,o.items,he.Name)}}s(d,"addEvaluatedFrom")}s(Si,"callRef");Lt.callRef=Si;Lt.default=Lv});var ll=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var zv=Pn(),Uv=["$schema","id","$defs",{keyword:"$comment"},"definitions",zv.default];zs.default=Uv});var pl=h(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var Us=Pr(),Bv=w(),mt=Bv.operators,Bs={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:mt.LTE,fail:mt.GT},{okStr:"<",ok:mt.LT,fail:mt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:mt.GTE,fail:mt.LT},{okStr:">",ok:mt.GT,fail:mt.LTE}]}},Hv={message:s(e=>Us.str`must be ${Hs(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>Us._`{comparison: ${Hs(e).okStr}, limit: ${e.schemaCode}}`,"params")},Gv={keyword:Object.keys(Bs),type:"number",schemaType:"number",$data:!0,error:Hv,code(e){let{data:t,schemaCode:r}=e;e.fail$data(Us._`${t} ${Hs(e).fail} ${r} || isNaN(${t})`)}};function Hs(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Bs[r].exclusive]?1:0;return Bs[r].ops[n]}s(Hs,"kwdOp");Gs.default=Gv});var ml=h(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var dl={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Zv={keyword:Object.keys(dl),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=dl[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Zs.default=Zv});var Ws=h(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Sn=w(),Kv={message:s(({schemaCode:e})=>(0,Sn.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,Sn._)`{multipleOf: ${e}}`,"params")},Wv={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Kv,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,Sn._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Sn._)`${a} !== parseInt(${a})`;e.fail$data((0,Sn._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};Ks.default=Wv});var yl=h(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});function hl(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}s(hl,"ucs2length");Ys.default=hl;hl.code='require("ajv/dist/runtime/ucs2length").default'});var Xs=h(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var zt=w(),Yv=q(),Jv=yl(),Xv={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,zt.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,zt._)`{limit: ${e}}`,"params")},Qv={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Xv,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?zt.operators.GT:zt.operators.LT,a=i.opts.unicode===!1?(0,zt._)`${r}.length`:(0,zt._)`${(0,Yv.useFunc)(e.gen,Jv.default)}(${r})`;e.fail$data((0,zt._)`${a} ${o} ${n}`)}};Js.default=Qv});var ea=h(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var eb=Pe(),Oi=w(),tb={message:s(({schemaCode:e})=>(0,Oi.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Oi._)`{pattern: ${e}}`,"params")},rb={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:tb,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,Oi._)`(new RegExp(${i}, ${a}))`:(0,eb.usePattern)(e,n);e.fail$data((0,Oi._)`!${c}.test(${t})`)}};Qs.default=rb});var ra=h(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});var On=w(),nb={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,On.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,On._)`{limit: ${e}}`,"params")},ib={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:nb,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?On.operators.GT:On.operators.LT;e.fail$data((0,On._)`Object.keys(${r}).length ${i} ${n}`)}};ta.default=ib});var ia=h(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var xn=Pe(),wn=w(),ob=q(),sb={message:s(({params:{missingProperty:e}})=>(0,wn.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,wn._)`{missingProperty: ${e}}`,"params")},ab={keyword:"required",type:"object",schemaType:"array",$data:!0,error:sb,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?f():l(),c.strictRequired){let d=e.parentSchema.properties,{definedProperties:y}=e.it;for(let $ of r)if((d==null?void 0:d[$])===void 0&&!y.has($)){let g=a.schemaEnv.baseId+a.errSchemaPath,v=`required property "${$}" is not defined at "${g}" (strictRequired)`;(0,ob.checkStrictMode)(a,v,a.opts.strictRequired)}}function f(){if(u||o)e.block$data(wn.nil,p);else for(let d of r)(0,xn.checkReportMissingProp)(e,d)}s(f,"allErrorsMode");function l(){let d=t.let("missing");if(u||o){let y=t.let("valid",!0);e.block$data(y,()=>m(d,y)),e.ok(y)}else t.if((0,xn.checkMissingProp)(e,r,d)),(0,xn.reportMissingProp)(e,d),t.else()}s(l,"exitOnErrorMode");function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,xn.noPropertyInData)(t,i,d,c.ownProperties),()=>e.error())})}s(p,"loopAllRequired");function m(d,y){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(y,(0,xn.propertyInData)(t,i,d,c.ownProperties)),t.if((0,wn.not)(y),()=>{e.error(),t.break()})},wn.nil)}s(m,"loopUntilMissing")}};na.default=ab});var sa=h(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});var En=w(),cb={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,En.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,En._)`{limit: ${e}}`,"params")},ub={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:cb,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?En.operators.GT:En.operators.LT;e.fail$data((0,En._)`${r}.length ${i} ${n}`)}};oa.default=ub});var xi=h(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});var gl=$s();gl.code='require("ajv/dist/runtime/equal").default';aa.default=gl});var fa=h(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var ca=ln(),Q=w(),fb=q(),lb=xi(),pb={message:s(({params:{i:e,j:t}})=>(0,Q.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,Q._)`{i: ${e}, j: ${t}}`,"params")},db={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:pb,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),f=o.items?(0,ca.getSchemaTypes)(o.items):[];e.block$data(u,l,(0,Q._)`${a} === false`),e.ok(u);function l(){let y=t.let("i",(0,Q._)`${r}.length`),$=t.let("j");e.setParams({i:y,j:$}),t.assign(u,!0),t.if((0,Q._)`${y} > 1`,()=>(p()?m:d)(y,$))}s(l,"validateUniqueItems");function p(){return f.length>0&&!f.some(y=>y==="object"||y==="array")}s(p,"canOptimize");function m(y,$){let g=t.name("item"),v=(0,ca.checkDataTypes)(f,g,c.opts.strictNumbers,ca.DataType.Wrong),O=t.const("indices",(0,Q._)`{}`);t.for((0,Q._)`;${y}--;`,()=>{t.let(g,(0,Q._)`${r}[${y}]`),t.if(v,(0,Q._)`continue`),f.length>1&&t.if((0,Q._)`typeof ${g} == "string"`,(0,Q._)`${g} += "_"`),t.if((0,Q._)`typeof ${O}[${g}] == "number"`,()=>{t.assign($,(0,Q._)`${O}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,Q._)`${O}[${g}] = ${y}`)})}s(m,"loopN");function d(y,$){let g=(0,fb.useFunc)(t,lb.default),v=t.name("outer");t.label(v).for((0,Q._)`;${y}--;`,()=>t.for((0,Q._)`${$} = ${y}; ${$}--;`,()=>t.if((0,Q._)`${g}(${r}[${y}], ${r}[${$}])`,()=>{e.error(),t.assign(u,!1).break(v)})))}s(d,"loopN2")}};ua.default=db});var da=h(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var la=w(),mb=q(),hb=xi(),yb={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,la._)`{allowedValue: ${e}}`,"params")},gb={keyword:"const",$data:!0,error:yb,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,la._)`!${(0,mb.useFunc)(t,hb.default)}(${r}, ${i})`):e.fail((0,la._)`${o} !== ${r}`)}};pa.default=gb});var ha=h(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});var jn=w(),$b=q(),vb=xi(),bb={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,jn._)`{allowedValues: ${e}}`,"params")},_b={keyword:"enum",schemaType:"array",$data:!0,error:bb,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,u,f=s(()=>u??(u=(0,$b.useFunc)(t,vb.default)),"getEql"),l;if(c||n)l=t.let("valid"),e.block$data(l,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);l=(0,jn.or)(...i.map((y,$)=>m(d,$)))}e.pass(l);function p(){t.assign(l,!1),t.forOf("v",o,d=>t.if((0,jn._)`${f()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}s(p,"loopEnum");function m(d,y){let $=i[y];return typeof $=="object"&&$!==null?(0,jn._)`${f()}(${r}, ${d}[${y}])`:(0,jn._)`${r} === ${$}`}s(m,"equalCode")}};ma.default=_b});var $l=h(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var Pb=pl(),Sb=ml(),Ob=Ws(),xb=Xs(),wb=ea(),Eb=ra(),jb=ia(),Ab=sa(),qb=fa(),Ib=da(),Tb=ha(),Rb=[Pb.default,Sb.default,Ob.default,xb.default,wb.default,Eb.default,jb.default,Ab.default,qb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ib.default,Tb.default];ya.default=Rb});var $a=h(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.validateAdditionalItems=void 0;var Ut=w(),ga=q(),Nb={message:s(({params:{len:e}})=>(0,Ut.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Ut._)`{limit: ${e}}`,"params")},kb={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Nb,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ga.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}vl(e,n)}};function vl(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,Ut._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ut._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,ga.alwaysValidSchema)(a,n)){let f=r.var("valid",(0,Ut._)`${c} <= ${t.length}`);r.if((0,Ut.not)(f),()=>u(f)),e.ok(f)}function u(f){r.forRange("i",t.length,c,l=>{e.subschema({keyword:o,dataProp:l,dataPropType:ga.Type.Num},f),a.allErrors||r.if((0,Ut.not)(f),()=>r.break())})}s(u,"validateItems")}s(vl,"validateAdditionalItems");An.validateAdditionalItems=vl;An.default=kb});var va=h(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.validateTuple=void 0;var bl=w(),wi=q(),Cb=Pe(),Mb={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return _l(e,"additionalItems",t);r.items=!0,!(0,wi.alwaysValidSchema)(r,t)&&e.ok((0,Cb.validateArray)(e))}};function _l(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;l(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=wi.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),f=n.const("len",(0,bl._)`${o}.length`);r.forEach((p,m)=>{(0,wi.alwaysValidSchema)(c,p)||(n.if((0,bl._)`${f} > ${m}`,()=>e.subschema({keyword:a,schemaProp:m,dataProp:m},u)),e.ok(u))});function l(p){let{opts:m,errSchemaPath:d}=c,y=r.length,$=y===p.minItems&&(y===p.maxItems||p[t]===!1);if(m.strictTuples&&!$){let g=`"${a}" is ${y}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,wi.checkStrictMode)(c,g,m.strictTuples)}}s(l,"checkStrictTuple")}s(_l,"validateTuple");qn.validateTuple=_l;qn.default=Mb});var Pl=h(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Db=va(),Fb={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,Db.validateTuple)(e,"items"),"code")};ba.default=Fb});var Ol=h(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});var Sl=w(),Vb=q(),Lb=Pe(),zb=$a(),Ub={message:s(({params:{len:e}})=>(0,Sl.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Sl._)`{limit: ${e}}`,"params")},Bb={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Ub,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,Vb.alwaysValidSchema)(n,t)&&(i?(0,zb.validateAdditionalItems)(e,i):e.ok((0,Lb.validateArray)(e)))}};_a.default=Bb});var xl=h(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Oe=w(),Ei=q(),Hb={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Oe.str)`must contain at least ${e} valid item(s)`:(0,Oe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,Oe._)`{minContains: ${e}}`:(0,Oe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},Gb={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Hb,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:f}=n;o.opts.next?(a=u===void 0?1:u,c=f):a=1;let l=t.const("len",(0,Oe._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Ei.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Ei.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ei.alwaysValidSchema)(o,r)){let $=(0,Oe._)`${l} >= ${a}`;c!==void 0&&($=(0,Oe._)`${$} && ${l} <= ${c}`),e.pass($);return}o.items=!0;let p=t.name("valid");c===void 0&&a===1?d(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Oe._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let $=t.name("_valid"),g=t.let("count",0);d($,()=>t.if($,()=>y(g)))}s(m,"validateItemsWithCount");function d($,g){t.forRange("i",0,l,v=>{e.subschema({keyword:"contains",dataProp:v,dataPropType:Ei.Type.Num,compositeRule:!0},$),g()})}s(d,"validateItems");function y($){t.code((0,Oe._)`${$}++`),c===void 0?t.if((0,Oe._)`${$} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Oe._)`${$} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Oe._)`${$} >= ${a}`,()=>t.assign(p,!0)))}s(y,"checkLimits")}};Pa.default=Gb});var ji=h(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.validateSchemaDeps=Ue.validatePropertyDeps=Ue.error=void 0;var Sa=w(),Zb=q(),In=Pe();Ue.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Sa.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Sa._)`{property: ${e},
|
|
3
|
+
`+n:r||n}o(ed,"joinStacks");pt.joinStacks=ed;function m2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return ed({stack:n},r)},"get"),enumerable:!1,configurable:!0}):g2(t,e)}o(m2,"lazyJoinStacks");pt.lazyJoinStacks=m2;function td(e){if(e){let t=e.split(f2),r;for(let n=0;n<t.length;n++){let i=t[n];if(p2.test(i))r===void 0&&(r=n);else if(r!==void 0){t.splice(r,n-r);break}}if(t.length>0)return t.join(`
|
|
4
|
+
`)}return e}o(td,"popStack");function g2(e,t){Object.defineProperty(e,"stack",{get:o(()=>td(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(g2,"lazyPopStack")});var od=m(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.extendError=void 0;var nd=qa(),xo=rd(),id=Eo(),y2=["name","message","stack"];function v2(e,t,r){let n=e;return _2(n,t),t&&typeof t=="object"&&b2(n,t),n.toJSON=id.toJSON,nd.addInspectMethod&&nd.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(v2,"extendError");wo.extendError=v2;function _2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");xo.isLazyStack(r)?xo.lazyJoinStacks(r,e,t):xo.isWritableStack(r)&&(e.stack=xo.joinStacks(e,t))}o(_2,"extendStack");function b2(e,t){let r=id.getDeepKeys(t,y2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(b2,"mergeErrors")});var sd=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.normalizeArgs=tn.normalizeOptions=void 0;var S2=qa();function P2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?S2.format:typeof e.format=="function"?e.format:!1}}o(P2,"normalizeOptions");tn.normalizeOptions=P2;function $2(e,t){let r,n,i,s="";return typeof e[0]=="string"?i=e:typeof e[1]=="string"?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(t.format?s=t.format.apply(void 0,i):s=i.join(" ")),t.concatMessages&&r&&r.message&&(s+=(s?`
|
|
5
|
+
`:"")+r.message),{originalError:r,props:n,message:s}}o($2,"normalizeArgs");tn.normalizeArgs=$2});var Ma=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.Ono=void 0;var Ao=od(),ad=sd(),O2=Eo(),E2=ja;Io.Ono=E2;function ja(e,t){t=ad.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=ad.normalizeArgs(n,t),u=new e(a);return Ao.extendError(u,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(ja,"Ono");ja.toJSON=o(function(t){return O2.toJSON.call(t)},"toJSON");ja.extend=o(function(t,r,n){return n||r instanceof Error?Ao.extendError(t,r,n):r?Ao.extendError(t,void 0,r):Ao.extendError(t)},"extend")});var ud=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ono=void 0;var vr=Ma(),x2=dt;ko.ono=x2;dt.error=new vr.Ono(Error);dt.eval=new vr.Ono(EvalError);dt.range=new vr.Ono(RangeError);dt.reference=new vr.Ono(ReferenceError);dt.syntax=new vr.Ono(SyntaxError);dt.type=new vr.Ono(TypeError);dt.uri=new vr.Ono(URIError);var w2=dt;function dt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(w2))if(typeof r=="function"&&r.name==="ono"){let n=r[Symbol.species];if(n&&n!==Error&&(t instanceof n||t.name===n.name))return r.apply(void 0,e)}}return dt.error.apply(void 0,e)}o(dt,"ono")});var ld=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var vq=require("util")});var Qe=m((Ye,rn)=>{"use strict";var A2=Ye&&Ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:o(function(){return t[r]},"get")})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),I2=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&A2(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ono=void 0;var fd=ud();Object.defineProperty(Ye,"ono",{enumerable:!0,get:o(function(){return fd.ono},"get")});var k2=Ma();Object.defineProperty(Ye,"Ono",{enumerable:!0,get:o(function(){return k2.Ono},"get")});I2(ld(),Ye);Ye.default=fd.ono;typeof rn=="object"&&typeof rn.exports=="object"&&(rn.exports=Object.assign(rn.exports.default,rn.exports))});var ci=m(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Fa=class Fa{};o(Fa,"_CodeOrName");var ai=Fa;q._CodeOrName=ai;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Va=class Va extends ai{constructor(t){if(super(),!q.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};o(Va,"Name");var _r=Va;q.Name=_r;var Ba=class Ba extends ai{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof _r&&(r[n.str]=(r[n.str]||0)+1),r),{})}};o(Ba,"_Code");var Le=Ba;q._Code=Le;q.nil=new Le("");function pd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)La(r,t[n]),r.push(e[++n]);return new Le(r)}o(pd,"_");q._=pd;var Da=new Le("+");function dd(e,...t){let r=[ui(e[0])],n=0;for(;n<t.length;)r.push(Da),La(r,t[n]),r.push(Da,ui(e[++n]));return R2(r),new Le(r)}o(dd,"str");q.str=dd;function La(e,t){t instanceof Le?e.push(...t._items):t instanceof _r?e.push(t):e.push(N2(t))}o(La,"addCodeArg");q.addCodeArg=La;function R2(e){let t=1;for(;t<e.length-1;){if(e[t]===Da){let r=T2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(R2,"optimize");function T2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof _r||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof _r))return`"${e}${t.slice(1)}`}o(T2,"mergeExprItems");function C2(e,t){return t.emptyStr()?e:e.emptyStr()?t:dd`${e}${t}`}o(C2,"strConcat");q.strConcat=C2;function N2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ui(Array.isArray(e)?e.join(","):e)}o(N2,"interpolate");function q2(e){return new Le(ui(e))}o(q2,"stringify");q.stringify=q2;function ui(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(ui,"safeStringify");q.safeStringify=ui;function j2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new Le(`.${e}`):pd`[${e}]`}o(j2,"getProperty");q.getProperty=j2;function M2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new Le(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(M2,"getEsmExportName");q.getEsmExportName=M2;function D2(e){return new Le(e.toString())}o(D2,"regexpCode");q.regexpCode=D2});var Wa=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=ci(),za=class za extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(za,"ValueError");var Ha=za,Ro;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ro||(we.UsedValueState=Ro={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var Ga=class Ga{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof xe.Name?t:this.name(t)}name(t){return new xe.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};o(Ga,"Scope");var To=Ga;we.Scope=To;var Za=class Za extends xe.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,xe._)`.${new xe.Name(r)}[${n}]`}};o(Za,"ValueScopeName");var Co=Za;we.ValueScopeName=Co;var L2=(0,xe._)`\n`,Ka=class Ka extends To{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?L2:xe.nil}}get(){return this._scope}name(t){return new Co(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,u=this._values[s];if(u){let p=u.get(a);if(p)return p}else u=this._values[s]=new Map;u.set(a,i);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,xe._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=xe.nil;for(let a in t){let u=t[a];if(!u)continue;let c=n[a]=n[a]||new Map;u.forEach(l=>{if(c.has(l))return;c.set(l,Ro.Started);let p=r(l);if(p){let f=this.opts.es5?we.varKinds.var:we.varKinds.const;s=(0,xe._)`${s}${f} ${l} = ${p};${this.opts._n}`}else if(p=i==null?void 0:i(l))s=(0,xe._)`${s}${p}${this.opts._n}`;else throw new Ha(l);c.set(l,Ro.Completed)})}return s}};o(Ka,"ValueScope");var Ua=Ka;we.ValueScope=Ua});var A=m(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.or=k.and=k.not=k.CodeGen=k.operators=k.varKinds=k.ValueScopeName=k.ValueScope=k.Scope=k.Name=k.regexpCode=k.stringify=k.getProperty=k.nil=k.strConcat=k.str=k._=void 0;var C=ci(),Je=Wa(),Ht=ci();Object.defineProperty(k,"_",{enumerable:!0,get:o(function(){return Ht._},"get")});Object.defineProperty(k,"str",{enumerable:!0,get:o(function(){return Ht.str},"get")});Object.defineProperty(k,"strConcat",{enumerable:!0,get:o(function(){return Ht.strConcat},"get")});Object.defineProperty(k,"nil",{enumerable:!0,get:o(function(){return Ht.nil},"get")});Object.defineProperty(k,"getProperty",{enumerable:!0,get:o(function(){return Ht.getProperty},"get")});Object.defineProperty(k,"stringify",{enumerable:!0,get:o(function(){return Ht.stringify},"get")});Object.defineProperty(k,"regexpCode",{enumerable:!0,get:o(function(){return Ht.regexpCode},"get")});Object.defineProperty(k,"Name",{enumerable:!0,get:o(function(){return Ht.Name},"get")});var Mo=Wa();Object.defineProperty(k,"Scope",{enumerable:!0,get:o(function(){return Mo.Scope},"get")});Object.defineProperty(k,"ValueScope",{enumerable:!0,get:o(function(){return Mo.ValueScope},"get")});Object.defineProperty(k,"ValueScopeName",{enumerable:!0,get:o(function(){return Mo.ValueScopeName},"get")});Object.defineProperty(k,"varKinds",{enumerable:!0,get:o(function(){return Mo.varKinds},"get")});k.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var uu=class uu{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(uu,"Node");var Rt=uu,cu=class cu extends Rt{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Je.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=sn(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};o(cu,"Def");var Ya=cu,lu=class lu extends Rt{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=sn(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return jo(t,this.rhs)}};o(lu,"Assign");var No=lu,fu=class fu extends No{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(fu,"AssignOp");var Qa=fu,pu=class pu extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(pu,"Label");var Ja=pu,du=class du extends Rt{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(du,"Break");var Xa=du,hu=class hu extends Rt{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(hu,"Throw");var eu=hu,mu=class mu extends Rt{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=sn(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};o(mu,"AnyCode");var tu=mu,gu=class gu extends Rt{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(F2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Pr(t,r.names),{})}};o(gu,"ParentNode");var li=gu,yu=class yu extends li{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(yu,"BlockNode");var Tt=yu,vu=class vu extends li{};o(vu,"Root");var ru=vu,_u=class _u extends Tt{};o(_u,"Else");var on=_u;on.kind="else";var nn=class nn extends Tt{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new on(n):n}if(r)return t===!1?r instanceof nn?r:r.nodes:this.nodes.length?this:new nn(hd(t),r instanceof nn?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=sn(this.condition,t,r),this}get names(){let t=super.names;return jo(t,this.condition),this.else&&Pr(t,this.else.names),t}};o(nn,"If");var br=nn;br.kind="if";var bu=class bu extends Tt{};o(bu,"For");var Sr=bu;Sr.kind="for";var Su=class Su extends Sr{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=sn(this.iteration,t,r),this}get names(){return Pr(super.names,this.iteration.names)}};o(Su,"ForLoop");var nu=Su,Pu=class Pu extends Sr{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Je.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=jo(super.names,this.from);return jo(t,this.to)}};o(Pu,"ForRange");var iu=Pu,$u=class $u extends Sr{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=sn(this.iterable,t,r),this}get names(){return Pr(super.names,this.iterable.names)}};o($u,"ForIter");var qo=$u,Ou=class Ou extends Tt{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o(Ou,"Func");var fi=Ou;fi.kind="func";var Eu=class Eu extends li{render(t){return"return "+super.render(t)}};o(Eu,"Return");var pi=Eu;pi.kind="return";var xu=class xu extends Tt{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Pr(t,this.catch.names),this.finally&&Pr(t,this.finally.names),t}};o(xu,"Try");var ou=xu,wu=class wu extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(wu,"Catch");var di=wu;di.kind="catch";var Au=class Au extends Tt{render(t){return"finally"+super.render(t)}};o(Au,"Finally");var hi=Au;hi.kind="finally";var Iu=class Iu{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
+
`:""},this._extScope=t,this._scope=new Je.Scope({parent:t}),this._nodes=[new ru]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new Ya(t,s,n)),s}const(t,r,n){return this._def(Je.varKinds.const,t,r,n)}let(t,r,n){return this._def(Je.varKinds.let,t,r,n)}var(t,r,n){return this._def(Je.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new No(t,r,n))}add(t,r){return this._leafNode(new Qa(t,k.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new tu(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,i));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new br(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new br(t))}else(){return this._elseNode(new on)}endIf(){return this._endBlockNode(br,on)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new nu(t),r)}forRange(t,r,n,i,s=this.opts.es5?Je.varKinds.var:Je.varKinds.let){let a=this._scope.toName(t);return this._for(new iu(s,a,r,n),()=>i(a))}forOf(t,r,n,i=Je.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${a}.length`,u=>{this.var(s,(0,C._)`${a}[${u}]`),n(s)})}return this._for(new qo("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?Je.varKinds.var:Je.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new qo("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Sr)}label(t){return this._leafNode(new Ja(t))}break(t){return this._leafNode(new Xa(t))}return(t){let r=new pi;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(pi)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new ou;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new di(s),r(s)}return n&&(this._currNode=i.finally=new hi,this.code(n)),this._endBlockNode(di,hi)}throw(t){return this._leafNode(new eu(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=C.nil,n,i){return this._blockNode(new fi(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(fi)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof br))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};o(Iu,"CodeGen");var su=Iu;k.CodeGen=su;function Pr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(Pr,"addNames");function jo(e,t){return t instanceof C._CodeOrName?Pr(e,t.names):e}o(jo,"addExprNames");function sn(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((s,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof C._Code&&s._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}o(sn,"optimizeExpr");function F2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(F2,"subtractNames");function hd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${au(e)}`}o(hd,"not");k.not=hd;var V2=md(k.operators.AND);function B2(...e){return e.reduce(V2)}o(B2,"and");k.and=B2;var H2=md(k.operators.OR);function U2(...e){return e.reduce(H2)}o(U2,"or");k.or=U2;function md(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${au(t)} ${e} ${au(r)}`}o(md,"mappend");function au(e){return e instanceof C.Name?e:(0,C._)`(${e})`}o(au,"par")});var T=m(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.checkStrictMode=R.getErrorPath=R.Type=R.useFunc=R.setEvaluated=R.evaluatedPropsToName=R.mergeEvaluated=R.eachItem=R.unescapeJsonPointer=R.escapeJsonPointer=R.escapeFragment=R.unescapeFragment=R.schemaRefOrVal=R.schemaHasRulesButRef=R.schemaHasRules=R.checkUnknownRules=R.alwaysValidSchema=R.toHash=void 0;var F=A(),z2=ci();function G2(e){let t={};for(let r of e)t[r]=!0;return t}o(G2,"toHash");R.toHash=G2;function Z2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(vd(e,t),!_d(t,e.self.RULES.all))}o(Z2,"alwaysValidSchema");R.alwaysValidSchema=Z2;function vd(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||Pd(e,`unknown keyword: "${s}"`)}o(vd,"checkUnknownRules");R.checkUnknownRules=vd;function _d(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(_d,"schemaHasRules");R.schemaHasRules=_d;function K2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(K2,"schemaHasRulesButRef");R.schemaHasRulesButRef=K2;function W2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}o(W2,"schemaRefOrVal");R.schemaRefOrVal=W2;function Y2(e){return bd(decodeURIComponent(e))}o(Y2,"unescapeFragment");R.unescapeFragment=Y2;function Q2(e){return encodeURIComponent(Ru(e))}o(Q2,"escapeFragment");R.escapeFragment=Q2;function Ru(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Ru,"escapeJsonPointer");R.escapeJsonPointer=Ru;function bd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(bd,"unescapeJsonPointer");R.unescapeJsonPointer=bd;function J2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(J2,"eachItem");R.eachItem=J2;function gd({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,u)=>{let c=a===void 0?s:a instanceof F.Name?(s instanceof F.Name?e(i,s,a):t(i,s,a),a):s instanceof F.Name?(t(i,a,s),s):r(s,a);return u===F.Name&&!(c instanceof F.Name)?n(i,c):c}}o(gd,"makeMergeEvaluated");R.mergeEvaluated={props:gd({mergeNames:o((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),Tu(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:Sd}),items:gd({mergeNames:o((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:o((e,t)=>e.var("items",t),"resultToName")})};function Sd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&Tu(e,r,t),r}o(Sd,"evaluatedPropsToName");R.evaluatedPropsToName=Sd;function Tu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}o(Tu,"setEvaluated");R.setEvaluated=Tu;var yd={};function X2(e,t){return e.scopeValue("func",{ref:t,code:yd[t.code]||(yd[t.code]=new z2._Code(t.code))})}o(X2,"useFunc");R.useFunc=X2;var ku;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ku||(R.Type=ku={}));function e1(e,t,r){if(e instanceof F.Name){let n=t===ku.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+Ru(e)}o(e1,"getErrorPath");R.getErrorPath=e1;function Pd(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}o(Pd,"checkStrictMode");R.checkStrictMode=Pd});var Fe=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var fe=A(),t1={data:new fe.Name("data"),valCxt:new fe.Name("valCxt"),instancePath:new fe.Name("instancePath"),parentData:new fe.Name("parentData"),parentDataProperty:new fe.Name("parentDataProperty"),rootData:new fe.Name("rootData"),dynamicAnchors:new fe.Name("dynamicAnchors"),vErrors:new fe.Name("vErrors"),errors:new fe.Name("errors"),this:new fe.Name("this"),self:new fe.Name("self"),scope:new fe.Name("scope"),json:new fe.Name("json"),jsonPos:new fe.Name("jsonPos"),jsonLen:new fe.Name("jsonLen"),jsonPart:new fe.Name("jsonPart")};Cu.default=t1});var mi=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.extendErrors=pe.resetErrorsCount=pe.reportExtraError=pe.reportError=pe.keyword$DataError=pe.keywordError=void 0;var N=A(),Do=T(),_e=Fe();pe.keywordError={message:o(({keyword:e})=>(0,N.str)`must pass "${e}" keyword validation`,"message")};pe.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,N.str)`"${e}" keyword must be ${t} ($data)`:(0,N.str)`"${e}" keyword is invalid ($data)`,"message")};function r1(e,t=pe.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:u}=i,c=Ed(e,t,r);n??(a||u)?$d(s,c):Od(i,(0,N._)`[${c}]`)}o(r1,"reportError");pe.reportError=r1;function n1(e,t=pe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,u=Ed(e,t,r);$d(i,u),s||a||Od(n,_e.default.vErrors)}o(n1,"reportExtraError");pe.reportExtraError=n1;function i1(e,t){e.assign(_e.default.errors,t),e.if((0,N._)`${_e.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,N._)`${_e.default.vErrors}.length`,t),()=>e.assign(_e.default.vErrors,null)))}o(i1,"resetErrorsCount");pe.resetErrorsCount=i1;function o1({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,_e.default.errors,u=>{e.const(a,(0,N._)`${_e.default.vErrors}[${u}]`),e.if((0,N._)`${a}.instancePath === undefined`,()=>e.assign((0,N._)`${a}.instancePath`,(0,N.strConcat)(_e.default.instancePath,s.errorPath))),e.assign((0,N._)`${a}.schemaPath`,(0,N.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,N._)`${a}.schema`,r),e.assign((0,N._)`${a}.data`,n))})}o(o1,"extendErrors");pe.extendErrors=o1;function $d(e,t){let r=e.const("err",t);e.if((0,N._)`${_e.default.vErrors} === null`,()=>e.assign(_e.default.vErrors,(0,N._)`[${r}]`),(0,N._)`${_e.default.vErrors}.push(${r})`),e.code((0,N._)`${_e.default.errors}++`)}o($d,"addError");function Od(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,N._)`new ${e.ValidationError}(${t})`):(r.assign((0,N._)`${n}.errors`,t),r.return(!1))}o(Od,"returnErrors");var $r={keyword:new N.Name("keyword"),schemaPath:new N.Name("schemaPath"),params:new N.Name("params"),propertyName:new N.Name("propertyName"),message:new N.Name("message"),schema:new N.Name("schema"),parentSchema:new N.Name("parentSchema")};function Ed(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,N._)`{}`:s1(e,t,r)}o(Ed,"errorObjectCode");function s1(e,t,r={}){let{gen:n,it:i}=e,s=[a1(i,r),u1(e,r)];return c1(e,t,s),n.object(...s)}o(s1,"errorObject");function a1({errorPath:e},{instancePath:t}){let r=t?(0,N.str)`${e}${(0,Do.getErrorPath)(t,Do.Type.Str)}`:e;return[_e.default.instancePath,(0,N.strConcat)(_e.default.instancePath,r)]}o(a1,"errorInstancePath");function u1({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,N.str)`${t}/${e}`;return r&&(i=(0,N.str)`${i}${(0,Do.getErrorPath)(r,Do.Type.Str)}`),[$r.schemaPath,i]}o(u1,"errorSchemaPath");function c1(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:u}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=u;n.push([$r.keyword,i],[$r.params,typeof t=="function"?t(e):t||(0,N._)`{}`]),c.messages&&n.push([$r.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([$r.schema,a],[$r.parentSchema,(0,N._)`${p}${f}`],[_e.default.data,s]),l&&n.push([$r.propertyName,l])}o(c1,"extraErrorProps")});var wd=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.boolOrEmptySchema=an.topBoolOrEmptySchema=void 0;var l1=mi(),f1=A(),p1=Fe(),d1={message:"boolean schema is false"};function h1(e){let{gen:t,schema:r,validateName:n}=e;r===!1?xd(e,!1):typeof r=="object"&&r.$async===!0?t.return(p1.default.data):(t.assign((0,f1._)`${n}.errors`,null),t.return(!0))}o(h1,"topBoolOrEmptySchema");an.topBoolOrEmptySchema=h1;function m1(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),xd(e)):r.var(t,!0)}o(m1,"boolOrEmptySchema");an.boolOrEmptySchema=m1;function xd(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,l1.reportError)(i,d1,void 0,t)}o(xd,"falseSchemaError")});var Nu=m(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getRules=un.isJSONType=void 0;var g1=["string","number","integer","boolean","null","object","array"],y1=new Set(g1);function v1(e){return typeof e=="string"&&y1.has(e)}o(v1,"isJSONType");un.isJSONType=v1;function _1(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}o(_1,"getRules");un.getRules=_1});var qu=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.shouldUseRule=Ut.shouldUseGroup=Ut.schemaHasRulesForType=void 0;function b1({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Ad(e,n)}o(b1,"schemaHasRulesForType");Ut.schemaHasRulesForType=b1;function Ad(e,t){return t.rules.some(r=>Id(e,r))}o(Ad,"shouldUseGroup");Ut.shouldUseGroup=Ad;function Id(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}o(Id,"shouldUseRule");Ut.shouldUseRule=Id});var gi=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.reportTypeError=de.checkDataTypes=de.checkDataType=de.coerceAndCheckDataType=de.getJSONTypes=de.getSchemaTypes=de.DataType=void 0;var S1=Nu(),P1=qu(),$1=mi(),I=A(),kd=T(),cn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(cn||(de.DataType=cn={}));function O1(e){let t=Rd(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}o(O1,"getSchemaTypes");de.getSchemaTypes=O1;function Rd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(S1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Rd,"getJSONTypes");de.getJSONTypes=Rd;function E1(e,t){let{gen:r,data:n,opts:i}=e,s=x1(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,P1.schemaHasRulesForType)(e,t[0]));if(a){let u=Mu(t,n,i.strictNumbers,cn.Wrong);r.if(u,()=>{s.length?w1(e,t,s):Du(e)})}return a}o(E1,"coerceAndCheckDataType");de.coerceAndCheckDataType=E1;var Td=new Set(["string","number","integer","boolean","null"]);function x1(e,t){return t?e.filter(r=>Td.has(r)||t==="array"&&r==="array"):[]}o(x1,"coerceToTypes");function w1(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),u=n.let("coerced",(0,I._)`undefined`);s.coerceTypes==="array"&&n.if((0,I._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,I._)`${i}[0]`).assign(a,(0,I._)`typeof ${i}`).if(Mu(t,i,s.strictNumbers),()=>n.assign(u,i))),n.if((0,I._)`${u} !== undefined`);for(let l of r)(Td.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),Du(e),n.endIf(),n.if((0,I._)`${u} !== undefined`,()=>{n.assign(i,u),A1(e,u)});function c(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(u,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(u,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
|
|
7
|
+
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(u,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
|
|
8
|
+
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(u,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(u,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(u,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(u,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
|
|
9
|
+
|| ${a} === "boolean" || ${i} === null`).assign(u,(0,I._)`[${i}]`)}}o(c,"coerceSpecificType")}o(w1,"coerceData");function A1({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}o(A1,"assignParentData");function ju(e,t,r,n=cn.Correct){let i=n===cn.Correct?I.operators.EQ:I.operators.NEQ,s;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":s=(0,I._)`Array.isArray(${t})`;break;case"object":s=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===cn.Correct?s:(0,I.not)(s);function a(u=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,u,r?(0,I._)`isFinite(${t})`:I.nil)}}o(ju,"checkDataType");de.checkDataType=ju;function Mu(e,t,r,n){if(e.length===1)return ju(e[0],t,r,n);let i,s=(0,kd.toHash)(e);if(s.array&&s.object){let a=(0,I._)`typeof ${t} != "object"`;i=s.null?a:(0,I._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=I.nil;s.number&&delete s.integer;for(let a in s)i=(0,I.and)(i,ju(a,t,r,n));return i}o(Mu,"checkDataTypes");de.checkDataTypes=Mu;var I1={message:o(({schema:e})=>`must be ${e}`,"message"),params:o(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Du(e){let t=k1(e);(0,$1.reportError)(t,I1)}o(Du,"reportTypeError");de.reportTypeError=Du;function k1(e){let{gen:t,data:r,schema:n}=e,i=(0,kd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(k1,"getTypeErrorContext")});var Nd=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.assignDefaults=void 0;var ln=A(),R1=T();function T1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Cd(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Cd(e,s,i.default))}o(T1,"assignDefaults");Lo.assignDefaults=T1;function Cd(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let u=(0,ln._)`${s}${(0,ln.getProperty)(t)}`;if(i){(0,R1.checkStrictMode)(e,`default is ignored for: ${u}`);return}let c=(0,ln._)`${u} === undefined`;a.useDefaults==="empty"&&(c=(0,ln._)`${c} || ${u} === null || ${u} === ""`),n.if(c,(0,ln._)`${u} = ${(0,ln.stringify)(r)}`)}o(Cd,"assignDefault")});var Ve=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var V=A(),Lu=T(),zt=Fe(),C1=T();function N1(e,t){let{gen:r,data:n,it:i}=e;r.if(Vu(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,V._)`${t}`},!0),e.error()})}o(N1,"checkReportMissingProp");L.checkReportMissingProp=N1;function q1({gen:e,data:t,it:{opts:r}},n,i){return(0,V.or)(...n.map(s=>(0,V.and)(Vu(e,t,s,r.ownProperties),(0,V._)`${i} = ${s}`)))}o(q1,"checkMissingProp");L.checkMissingProp=q1;function j1(e,t){e.setParams({missingProperty:t},!0),e.error()}o(j1,"reportMissingProp");L.reportMissingProp=j1;function qd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,V._)`Object.prototype.hasOwnProperty`})}o(qd,"hasPropFunc");L.hasPropFunc=qd;function Fu(e,t,r){return(0,V._)`${qd(e)}.call(${t}, ${r})`}o(Fu,"isOwnProperty");L.isOwnProperty=Fu;function M1(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} !== undefined`;return n?(0,V._)`${i} && ${Fu(e,t,r)}`:i}o(M1,"propertyInData");L.propertyInData=M1;function Vu(e,t,r,n){let i=(0,V._)`${t}${(0,V.getProperty)(r)} === undefined`;return n?(0,V.or)(i,(0,V.not)(Fu(e,t,r))):i}o(Vu,"noPropertyInData");L.noPropertyInData=Vu;function jd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(jd,"allSchemaProperties");L.allSchemaProperties=jd;function D1(e,t){return jd(t).filter(r=>!(0,Lu.alwaysValidSchema)(e,t[r]))}o(D1,"schemaProperties");L.schemaProperties=D1;function L1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},u,c,l){let p=l?(0,V._)`${e}, ${t}, ${n}${i}`:t,f=[[zt.default.instancePath,(0,V.strConcat)(zt.default.instancePath,s)],[zt.default.parentData,a.parentData],[zt.default.parentDataProperty,a.parentDataProperty],[zt.default.rootData,zt.default.rootData]];a.opts.dynamicRef&&f.push([zt.default.dynamicAnchors,zt.default.dynamicAnchors]);let d=(0,V._)`${p}, ${r.object(...f)}`;return c!==V.nil?(0,V._)`${u}.call(${c}, ${d})`:(0,V._)`${u}(${d})`}o(L1,"callValidateCode");L.callValidateCode=L1;var F1=(0,V._)`new RegExp`;function V1({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,V._)`${i.code==="new RegExp"?F1:(0,C1.useFunc)(e,i)}(${r}, ${n})`})}o(V1,"usePattern");L.usePattern=V1;function B1(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let u=t.let("valid",!0);return a(()=>t.assign(u,!1)),u}return t.var(s,!0),a(()=>t.break()),s;function a(u){let c=t.const("len",(0,V._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Lu.Type.Num},s),t.if((0,V.not)(s),u)})}o(a,"validateItems")}o(B1,"validateArray");L.validateArray=B1;function H1(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Lu.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),u=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},u);t.assign(a,(0,V._)`${a} || ${u}`),e.mergeValidEvaluated(p,u)||t.if((0,V.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(H1,"validateUnion");L.validateUnion=H1});var Ld=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateKeywordUsage=ht.validSchemaType=ht.funcKeywordCode=ht.macroKeywordCode=void 0;var be=A(),Or=Fe(),U1=Ve(),z1=mi();function G1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,u=t.macro.call(a.self,i,s,a),c=Dd(r,n,u);a.opts.validateSchema!==!1&&a.self.validateSchema(u,!0);let l=r.name("valid");e.subschema({schema:u,schemaPath:be.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(G1,"macroKeywordCode");ht.macroKeywordCode=G1;function Z1(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:u,it:c}=e;W1(c,t);let l=!u&&t.compile?t.compile.call(c.self,s,a,c):t.validate,p=Dd(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)y(),t.modifying&&Md(e),v(()=>e.error());else{let _=t.async?h():g();t.modifying&&Md(e),v(()=>K1(e,_))}}o(d,"validateKeyword");function h(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,be._)`await `),b=>n.assign(f,!1).if((0,be._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,be._)`${b}.errors`),()=>n.throw(b))),_}o(h,"validateAsync");function g(){let _=(0,be._)`${p}.errors`;return n.assign(_,null),y(be.nil),_}o(g,"validateSync");function y(_=t.async?(0,be._)`await `:be.nil){let b=c.opts.passContext?Or.default.this:Or.default.self,S=!("compile"in t&&!u||t.schema===!1);n.assign(f,(0,be._)`${_}${(0,U1.callValidateCode)(e,p,b,S)}`,t.modifying)}o(y,"assignValid");function v(_){var b;n.if((0,be.not)((b=t.valid)!==null&&b!==void 0?b:f),_)}o(v,"reportErrs")}o(Z1,"funcKeywordCode");ht.funcKeywordCode=Z1;function Md(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,be._)`${n.parentData}[${n.parentDataProperty}]`))}o(Md,"modifyData");function K1(e,t){let{gen:r}=e;r.if((0,be._)`Array.isArray(${t})`,()=>{r.assign(Or.default.vErrors,(0,be._)`${Or.default.vErrors} === null ? ${t} : ${Or.default.vErrors}.concat(${t})`).assign(Or.default.errors,(0,be._)`${Or.default.vErrors}.length`),(0,z1.extendErrors)(e)},()=>e.error())}o(K1,"addErrs");function W1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(W1,"checkAsyncKeyword");function Dd(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,be.stringify)(r)})}o(Dd,"useKeyword");function Y1(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}o(Y1,"validSchemaType");ht.validSchemaType=Y1;function Q1({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(u=>!Object.prototype.hasOwnProperty.call(e,u)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}o(Q1,"validateKeywordUsage");ht.validateKeywordUsage=Q1});var Vd=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.extendSubschemaMode=Gt.extendSubschemaData=Gt.getSubschema=void 0;var mt=A(),Fd=T();function J1(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let u=e.schema[t];return r===void 0?{schema:u,schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:u[r],schemaPath:(0,mt._)`${e.schemaPath}${(0,mt.getProperty)(t)}${(0,mt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Fd.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}o(J1,"getSubschema");Gt.getSubschema=J1;function X1(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=t,d=u.let("data",(0,mt._)`${t.data}${(0,mt.getProperty)(r)}`,!0);c(d),e.errorPath=(0,mt.str)`${l}${(0,Fd.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mt._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let l=i instanceof mt.Name?i:u.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}o(c,"dataContextProps")}o(X1,"extendSubschemaData");Gt.extendSubschemaData=X1;function eP(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}o(eP,"extendSubschemaMode");Gt.extendSubschemaMode=eP});var Bu=m((Kq,Bd)=>{"use strict";Bd.exports=o(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r},"equal")});var Ud=m((Yq,Hd)=>{"use strict";var Zt=Hd.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Fo(t,n,i,e,"",e)};Zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Zt.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 Fo(e,t,r,n,i,s,a,u,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,u,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in Zt.arrayKeywords)for(var d=0;d<f.length;d++)Fo(e,t,r,f[d],i+"/"+p+"/"+d,s,i,p,n,d)}else if(p in Zt.propsKeywords){if(f&&typeof f=="object")for(var h in f)Fo(e,t,r,f[h],i+"/"+p+"/"+tP(h),s,i,p,n,h)}else(p in Zt.keywords||e.allKeys&&!(p in Zt.skipKeywords))&&Fo(e,t,r,f,i+"/"+p,s,i,p,n)}r(n,i,s,a,u,c,l)}}o(Fo,"_traverse");function tP(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(tP,"escapeJsonPtr")});var yi=m(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var rP=T(),nP=Bu(),iP=Ud(),oP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function sP(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Hu(e):t?zd(e)<=t:!1}o(sP,"inlineRef");Ae.inlineRef=sP;var aP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hu(e){for(let t in e){if(aP.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Hu)||typeof r=="object"&&Hu(r))return!0}return!1}o(Hu,"hasRef");function zd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!oP.has(r)&&(typeof e[r]=="object"&&(0,rP.eachItem)(e[r],n=>t+=zd(n)),t===1/0))return 1/0}return t}o(zd,"countKeys");function Gd(e,t="",r){r!==!1&&(t=fn(t));let n=e.parse(t);return Zd(e,n)}o(Gd,"getFullPath");Ae.getFullPath=Gd;function Zd(e,t){return e.serialize(t).split("#")[0]+"#"}o(Zd,"_getFullPath");Ae._getFullPath=Zd;var uP=/#\/?$/;function fn(e){return e?e.replace(uP,""):""}o(fn,"normalizeId");Ae.normalizeId=fn;function cP(e,t,r){return r=fn(r),e.resolve(t,r)}o(cP,"resolveUrl");Ae.resolveUrl=cP;var lP=/^[a-z_][-a-z0-9._]*$/i;function fP(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=fn(e[r]||t),s={"":i},a=Gd(n,i,!1),u={},c=new Set;return iP(e,{allKeys:!0},(f,d,h,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof f[r]=="string"&&(v=_.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),s[d]=v;function _(S){let E=this.opts.uriResolver.resolve;if(S=fn(v?E(v,S):S),c.has(S))throw p(S);c.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(f,$.schema,S):S!==fn(y)&&(S[0]==="#"?(l(f,u[S],S),u[S]=f):this.refs[S]=y),S}o(_,"addRef");function b(S){if(typeof S=="string"){if(!lP.test(S))throw new Error(`invalid anchor "${S}"`);_.call(this,`#${S}`)}}o(b,"addAnchor")}),u;function l(f,d,h){if(d!==void 0&&!nP(f,d))throw p(h)}o(l,"checkAmbiguosRef");function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(p,"ambiguos")}o(fP,"getSchemaRefs");Ae.getSchemaRefs=fP});var bi=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getData=Kt.KeywordCxt=Kt.validateFunctionCode=void 0;var Jd=wd(),Kd=gi(),zu=qu(),Vo=gi(),pP=Nd(),_i=Ld(),Uu=Vd(),O=A(),w=Fe(),dP=yi(),Ct=T(),vi=mi();function hP(e){if(th(e)&&(rh(e),eh(e))){yP(e);return}Xd(e,()=>(0,Jd.topBoolOrEmptySchema)(e))}o(hP,"validateFunctionCode");Kt.validateFunctionCode=hP;function Xd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Wd(r,i)}`),gP(e,i),e.code(s)}):e.func(t,(0,O._)`${w.default.data}, ${mP(i)}`,n.$async,()=>e.code(Wd(r,i)).code(s))}o(Xd,"validateFunction");function mP(e){return(0,O._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,O._)`, ${w.default.dynamicAnchors}={}`:O.nil}}={}`}o(mP,"destructureValCxt");function gP(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,O._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,O._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,O._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,O._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,O._)`""`),e.var(w.default.parentData,(0,O._)`undefined`),e.var(w.default.parentDataProperty,(0,O._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,O._)`{}`)})}o(gP,"destructureValCxtES5");function yP(e){let{schema:t,opts:r,gen:n}=e;Xd(e,()=>{r.$comment&&t.$comment&&ih(e),PP(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&vP(e),nh(e),EP(e)})}o(yP,"topSchemaObjCode");function vP(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,O._)`${r}.evaluated`),t.if((0,O._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,O._)`${e.evaluated}.props`,(0,O._)`undefined`)),t.if((0,O._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,O._)`${e.evaluated}.items`,(0,O._)`undefined`))}o(vP,"resetEvaluated");function Wd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}o(Wd,"funcSourceUrl");function _P(e,t){if(th(e)&&(rh(e),eh(e))){bP(e,t);return}(0,Jd.boolOrEmptySchema)(e,t)}o(_P,"subschemaCode");function eh({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}o(eh,"schemaCxtHasRules");function th(e){return typeof e.schema!="boolean"}o(th,"isSchemaObj");function bP(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ih(e),$P(e),OP(e);let s=n.const("_errs",w.default.errors);nh(e,s),n.var(t,(0,O._)`${s} === ${w.default.errors}`)}o(bP,"subSchemaObjCode");function rh(e){(0,Ct.checkUnknownRules)(e),SP(e)}o(rh,"checkKeywords");function nh(e,t){if(e.opts.jtd)return Yd(e,[],!1,t);let r=(0,Kd.getSchemaTypes)(e.schema),n=(0,Kd.coerceAndCheckDataType)(e,r);Yd(e,r,!n,t)}o(nh,"typeAndKeywords");function SP(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ct.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(SP,"checkRefsAndKeywords");function PP(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ct.checkStrictMode)(e,"default is ignored in the schema root")}o(PP,"checkNoDefault");function $P(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,dP.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o($P,"updateContext");function OP(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(OP,"checkAsyncSchema");function ih({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,u=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${s}, ${a}, ${u}.schema)`)}}o(ih,"commentKeyword");function EP(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,O._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,O._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,O._)`${n}.errors`,w.default.vErrors),s.unevaluated&&xP(e),t.return((0,O._)`${w.default.errors} === 0`))}o(EP,"returnResults");function xP({gen:e,evaluated:t,props:r,items:n}){r instanceof O.Name&&e.assign((0,O._)`${t}.props`,r),n instanceof O.Name&&e.assign((0,O._)`${t}.items`,n)}o(xP,"assignEvaluated");function Yd(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:u,opts:c,self:l}=e,{RULES:p}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Ct.schemaHasRulesButRef)(s,p))){i.block(()=>sh(e,"$ref",p.all.$ref.definition));return}c.jtd||wP(e,t),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,zu.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Vo.checkDataType)(d.type,a,c.strictNumbers)),Qd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Vo.reportTypeError)(e)),i.endIf()):Qd(e,d),u||i.if((0,O._)`${w.default.errors} === ${n||0}`))}o(f,"groupKeywords")}o(Yd,"schemaKeywords");function Qd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,pP.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,zu.shouldUseRule)(n,s)&&sh(e,s.keyword,s.definition,t.type)})}o(Qd,"iterateKeywords");function wP(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(AP(e,t),e.opts.allowUnionTypes||IP(e,t),kP(e,e.dataTypes))}o(wP,"checkStrictTypes");function AP(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{oh(e.dataTypes,r)||Gu(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),TP(e,t)}}o(AP,"checkContextTypes");function IP(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Gu(e,"use allowUnionTypes to allow union type keyword")}o(IP,"checkMultipleTypes");function kP(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,zu.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>RP(t,a))&&Gu(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(kP,"checkKeywordTypes");function RP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(RP,"hasApplicableType");function oh(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(oh,"includesType");function TP(e,t){let r=[];for(let n of e.dataTypes)oh(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(TP,"narrowSchemaTypes");function Gu(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ct.checkStrictMode)(e,t,e.opts.strictTypes)}o(Gu,"strictTypesError");var Zu=class Zu{constructor(t,r,n){if((0,_i.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ct.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",ah(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,_i.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",w.default.errors))}result(t,r,n){this.failResult((0,O.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,O.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,O._)`${r} !== undefined && (${(0,O.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?vi.reportExtraError:vi.reportError)(this,this.def.error,r)}$dataError(){(0,vi.reportError)(this,this.def.$dataError||vi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,vi.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=O.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==O.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,O.or)(a(),u());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,O._)`${(0,Vo.checkDataTypes)(c,r,s.opts.strictNumbers,Vo.DataType.Wrong)}`}return O.nil}function u(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${c}(${r})`}return O.nil}}subschema(t,r){let n=(0,Uu.getSubschema)(this.it,t);(0,Uu.extendSubschemaData)(n,this.it,t),(0,Uu.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return _P(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ct.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ct.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,O.Name)),!0}};o(Zu,"KeywordCxt");var Bo=Zu;Kt.KeywordCxt=Bo;function sh(e,t,r,n){let i=new Bo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,_i.funcKeywordCode)(i,r):"macro"in r?(0,_i.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,_i.funcKeywordCode)(i,r)}o(sh,"keywordCode");var CP=/^\/(?:[^~]|~0|~1)*$/,NP=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ah(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!CP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=w.default.rootData}else{let l=NP.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(s=r[t-p],!i)return s}let a=s,u=i.split("/");for(let l of u)l&&(s=(0,O._)`${s}${(0,O.getProperty)((0,Ct.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${s}`);return a;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}o(ah,"getData");Kt.getData=ah});var Ho=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Yu=class Yu extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Yu,"ValidationError");var Ku=Yu;Wu.default=Ku});var Si=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var Qu=yi(),ec=class ec extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Qu.resolveUrl)(t,r,n),this.missingSchema=(0,Qu.normalizeId)((0,Qu.getFullPath)(t,this.missingRef))}};o(ec,"MissingRefError");var Ju=ec;Xu.default=Ju});var Pi=m(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.resolveSchema=Be.getCompilingSchema=Be.resolveRef=Be.compileSchema=Be.SchemaEnv=void 0;var Xe=A(),qP=Ho(),Er=Fe(),et=yi(),uh=T(),jP=bi(),nc=class nc{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,et.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};o(nc,"SchemaEnv");var pn=nc;Be.SchemaEnv=pn;function rc(e){let t=ch.call(this,e);if(t)return t;let r=(0,et.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Xe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),u;e.$async&&(u=a.scopeValue("Error",{ref:qP.default,code:(0,Xe._)`require("ajv/dist/runtime/validation_error").default`}));let c=a.scopeName("validate");e.validateName=c;let l={gen:a,allErrors:this.opts.allErrors,data:Er.default.data,parentData:Er.default.parentData,parentDataProperty:Er.default.parentDataProperty,dataNames:[Er.default.data],dataPathArr:[Xe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Xe.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Xe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Xe._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,jP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();p=`${a.scopeRefs(Er.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Er.default.self}`,`${Er.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;h.evaluated={props:g instanceof Xe.Name?void 0:g,items:y instanceof Xe.Name?void 0:y,dynamicProps:g instanceof Xe.Name,dynamicItems:y instanceof Xe.Name},h.source&&(h.source.evaluated=(0,Xe.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(e)}}o(rc,"compileSchema");Be.compileSchema=rc;function MP(e,t,r){var n;r=(0,et.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=FP.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:u}=this.opts;a&&(s=new pn({schema:a,schemaId:u,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=DP.call(this,s)}o(MP,"resolveRef");Be.resolveRef=MP;function DP(e){return(0,et.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:rc.call(this,e)}o(DP,"inlineOrCompile");function ch(e){for(let t of this._compilations)if(LP(t,e))return t}o(ch,"getCompilingSchema");Be.getCompilingSchema=ch;function LP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(LP,"sameSchemaEnv");function FP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Uo.call(this,e,t)}o(FP,"resolve");function Uo(e,t){let r=this.opts.uriResolver.parse(t),n=(0,et._getFullPath)(this.opts.uriResolver,r),i=(0,et.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return tc.call(this,r,e);let s=(0,et.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let u=Uo.call(this,e,a);return typeof(u==null?void 0:u.schema)!="object"?void 0:tc.call(this,r,u)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||rc.call(this,a),s===(0,et.normalizeId)(t)){let{schema:u}=a,{schemaId:c}=this.opts,l=u[c];return l&&(i=(0,et.resolveUrl)(this.opts.uriResolver,i,l)),new pn({schema:u,schemaId:c,root:e,baseId:i})}return tc.call(this,r,a)}}o(Uo,"resolveSchema");Be.resolveSchema=Uo;var VP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tc(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let u of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,uh.unescapeFragment)(u)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!VP.has(u)&&l&&(t=(0,et.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,uh.schemaHasRulesButRef)(r,this.RULES)){let u=(0,et.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Uo.call(this,n,u)}let{schemaId:a}=this.opts;if(s=s||new pn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(tc,"getJsonPointer")});var lh=m((uj,BP)=>{BP.exports={$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:!1}});var ph=m((cj,fh)=>{"use strict";var HP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};fh.exports={HEX:HP}});var bh=m((lj,_h)=>{"use strict";var{HEX:UP}=ph();function gh(e){if(vh(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[r]=t;return r?{host:GP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(gh,"normalizeIPv4");function ic(e,t=!1){let r="",n=!0;for(let i of e){if(UP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(ic,"stringArrayToHexStripped");function zP(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,u=!1;function c(){if(i.length){if(s===!1){let l=ic(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(c,"consume");for(let l=0;l<e.length;l++){let p=e[l];if(!(p==="["||p==="]"))if(p===":"){if(a===!0&&(u=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(p==="%"){if(!c())break;s=!0}else{i.push(p);continue}}return i.length&&(s?r.zone=i.join(""):u?n.push(i.join("")):n.push(ic(i))),r.address=n.join(""),r}o(zP,"getIPV6");function yh(e,t={}){if(vh(e,":")<2)return{host:e,isIPV6:!1};let r=zP(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}o(yh,"normalizeIPv6");function GP(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}o(GP,"stripLeadingZeros");function vh(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(vh,"findToken");var dh=/^\.\.?\//u,hh=/^\/\.(?:\/|$)/u,mh=/^\/\.\.(?:\/|$)/u,ZP=/^\/?(?:.|\n)*?(?=\/|$)/u;function KP(e){let t=[];for(;e.length;)if(e.match(dh))e=e.replace(dh,"");else if(e.match(hh))e=e.replace(hh,"/");else if(e.match(mh))e=e.replace(mh,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(ZP);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}o(KP,"removeDotSegments");function WP(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}o(WP,"normalizeComponentEncoding");function YP(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=gh(n);if(i.isIPV4)n=i.host;else{let s=yh(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}o(YP,"recomposeAuthority");_h.exports={recomposeAuthority:YP,normalizeComponentEncoding:WP,removeDotSegments:KP,normalizeIPv4:gh,normalizeIPv6:yh,stringArrayToHexStripped:ic}});var xh=m((pj,Eh)=>{"use strict";var QP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,JP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function Sh(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(Sh,"isSecure");function Ph(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(Ph,"httpParse");function $h(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}o($h,"httpSerialize");function XP(e){return e.secure=Sh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(XP,"wsParse");function e$(e){if((e.port===(Sh(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}o(e$,"wsSerialize");function t$(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(JP);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=oc[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(t$,"urnParse");function r$(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=oc[i];s&&(e=s.serialize(e,t));let a=e,u=e.nss;return a.path=`${n||t.nid}:${u}`,t.skipEscape=!0,a}o(r$,"urnSerialize");function n$(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!QP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(n$,"urnuuidParse");function i$(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(i$,"urnuuidSerialize");var Oh={scheme:"http",domainHost:!0,parse:Ph,serialize:$h},o$={scheme:"https",domainHost:Oh.domainHost,parse:Ph,serialize:$h},zo={scheme:"ws",domainHost:!0,parse:XP,serialize:e$},s$={scheme:"wss",domainHost:zo.domainHost,parse:zo.parse,serialize:zo.serialize},a$={scheme:"urn",parse:t$,serialize:r$,skipNormalize:!0},u$={scheme:"urn:uuid",parse:n$,serialize:i$,skipNormalize:!0},oc={http:Oh,https:o$,ws:zo,wss:s$,urn:a$,"urn:uuid":u$};Eh.exports=oc});var Ah=m((hj,Zo)=>{"use strict";var{normalizeIPv6:c$,normalizeIPv4:l$,removeDotSegments:$i,recomposeAuthority:f$,normalizeComponentEncoding:Go}=bh(),sc=xh();function p$(e,t){return typeof e=="string"?e=gt(Nt(e,t),t):typeof e=="object"&&(e=Nt(gt(e,t),t)),e}o(p$,"normalize");function d$(e,t,r){let n=Object.assign({scheme:"null"},r),i=wh(Nt(e,n),Nt(t,n),n,!0);return gt(i,{...n,skipEscape:!0})}o(d$,"resolve");function wh(e,t,r,n){let i={};return n||(e=Nt(gt(e,r),r),t=Nt(gt(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=$i(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=$i(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=$i(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=$i(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}o(wh,"resolveComponents");function h$(e,t,r){return typeof e=="string"?(e=unescape(e),e=gt(Go(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=gt(Go(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=gt(Go(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=gt(Go(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(h$,"equal");function gt(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=sc[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=f$(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let u=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(u=$i(u)),a===void 0&&(u=u.replace(/^\/\//u,"/%2F")),i.push(u)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}o(gt,"serialize");var m$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function g$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||m$[t])return!0;return!1}o(g$,"nonSimpleDomain");var y$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Nt(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,s=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let a=e.match(y$);if(a){if(n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]),n.host){let c=l$(n.host);if(c.isIPV4===!1){let l=c$(c.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=c.host,s=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let u=sc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&n.host&&(r.domainHost||u&&u.domainHost)&&s===!1&&g$(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),u&&u.parse&&u.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}o(Nt,"parse");var ac={SCHEMES:sc,normalize:p$,resolve:d$,resolveComponents:wh,equal:h$,serialize:gt,parse:Nt};Zo.exports=ac;Zo.exports.default=ac;Zo.exports.fastUri=ac});var kh=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var Ih=Ah();Ih.code='require("ajv/dist/runtime/uri").default';uc.default=Ih});var hn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.CodeGen=ae.Name=ae.nil=ae.stringify=ae.str=ae._=ae.KeywordCxt=void 0;var v$=bi();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return v$.KeywordCxt},"get")});var dn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return dn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return dn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return dn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return dn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return dn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return dn.CodeGen},"get")});var _$=Ho(),qh=Si(),b$=Nu(),Oi=Pi(),S$=A(),Ei=yi(),Ko=gi(),lc=T(),Rh=lh(),P$=kh(),jh=o((e,t)=>new RegExp(e,t),"defaultRegExp");jh.code="new RegExp";var $$=["removeAdditional","useDefaults","coerceTypes"],O$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E$={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."},x$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Th=200;function w$(e){var t,r,n,i,s,a,u,c,l,p,f,d,h,g,y,v,_,b,S,E,$,M,j,ie,oe;let le=e.strict,Me=(t=e.code)===null||t===void 0?void 0:t.optimize,Ee=Me===!0||Me===void 0?1:Me||0,Bt=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:jh,Jr=(i=e.uriResolver)!==null&&i!==void 0?i:P$.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:le)!==null&&a!==void 0?a:!0,strictNumbers:(c=(u=e.strictNumbers)!==null&&u!==void 0?u:le)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:le)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:le)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:le)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ee,regExp:Bt}:{optimize:Ee,regExp:Bt},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Th,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Th,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(j=e.validateFormats)!==null&&j!==void 0?j:!0,unicodeRegExp:(ie=e.unicodeRegExp)!==null&&ie!==void 0?ie:!0,int32range:(oe=e.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Jr}}o(w$,"requiredOptions");var fc=class fc{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...w$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new S$.ValueScope({scope:{},prefixes:O$,es5:r,lines:n}),this.logger=C$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,b$.getRules)(),Ch.call(this,E$,t,"NOT SUPPORTED"),Ch.call(this,x$,t,"DEPRECATED","warn"),this._metaOpts=R$.call(this),t.formats&&I$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&k$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),A$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Rh;n==="id"&&(i={...Rh},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,f){await s.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||a.call(this,d)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof qh.default))throw f;return u.call(this,f),await c.call(this,f.missingSchema),a.call(this,p)}}function u({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await s.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Ei.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=Nh.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Oi.SchemaEnv({schema:{},schemaId:n});if(r=Oi.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Nh.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Ei.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(q$.call(this,n,r),!r)return(0,lc.eachItem)(n,s=>cc.call(this,s)),this;M$.call(this,r);let i={...r,type:(0,Ko.getJSONTypes)(r.type),schemaType:(0,Ko.getJSONTypes)(r.schemaType)};return(0,lc.eachItem)(n,i.type.length===0?s=>cc.call(this,s,i):s=>i.type.forEach(a=>cc.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let u of s)a=a[u];for(let u in n){let c=n[u];if(typeof c!="object")continue;let{$data:l}=c.definition,p=a[u];l&&p&&(a[u]=Mh(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:u}=this.opts;if(typeof t=="object")a=t[u];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Ei.normalizeId)(a||n);let l=Ei.getSchemaRefs.call(this,t,n);return c=new Oi.SchemaEnv({schema:t,schemaId:u,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Oi.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Oi.compileSchema.call(this,t)}finally{this.opts=r}}};o(fc,"Ajv");var xi=fc;xi.ValidationError=_$.default;xi.MissingRefError=qh.default;ae.default=xi;function Ch(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}o(Ch,"checkOptions");function Nh(e){return e=(0,Ei.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Nh,"getSchEnv");function A$(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}o(A$,"addInitialSchemas");function I$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o(I$,"addInitialFormats");function k$(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}o(k$,"addInitialKeywords");function R$(){let e={...this.opts};for(let t of $$)delete e[t];return e}o(R$,"getMetaSchemaOptions");var T$={log(){},warn(){},error(){}};function C$(e){if(e===!1)return T$;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}o(C$,"getLogger");var N$=/^[a-z_$][a-z0-9_$:-]*$/i;function q$(e,t){let{RULES:r}=this;if((0,lc.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!N$.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}o(q$,"checkKeyword");function cc(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:c})=>c===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let u={keyword:e,definition:{...t,type:(0,Ko.getJSONTypes)(t.type),schemaType:(0,Ko.getJSONTypes)(t.schemaType)}};t.before?j$.call(this,a,u,t.before):a.rules.push(u),s.all[e]=u,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}o(cc,"addRule");function j$(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}o(j$,"addBeforeRule");function M$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Mh(t)),e.validateSchema=this.compile(t,!0))}o(M$,"keywordMetaschema");var D$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Mh(e){return{anyOf:[e,D$]}}o(Mh,"schemaOrData")});var wi=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.callRef=xr.getValidate=void 0;var L$=Si(),Dh=Ve(),Ie=A(),mn=Fe(),Lh=Pi(),Wo=T(),F$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:u,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Lh.resolveRef.call(c,l,i,r);if(p===void 0)throw new L$.default(n.opts.uriResolver,i,r);if(p instanceof Lh.SchemaEnv)return d(p);return h(p);function f(){if(s===l)return Yo(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return Yo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=Fh(e,g);Yo(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,Ie.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:Ie.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Fh(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Fh,"getValidate");xr.getValidate=Fh;function Yo(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:u,opts:c}=s,l=c.passContext?mn.default.this:Ie.nil;n?p():f();function p(){if(!u.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,Dh.callValidateCode)(e,t,l)}`),h(t),a||i.assign(g,!0)},y=>{i.if((0,Ie._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(p,"callAsyncRef");function f(){e.result((0,Dh.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}o(f,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(mn.default.vErrors,(0,Ie._)`${mn.default.vErrors} === null ? ${y} : ${mn.default.vErrors}.concat(${y})`),i.assign(mn.default.errors,(0,Ie._)`${mn.default.vErrors}.length`)}o(d,"addErrorsFrom");function h(g){var y;if(!s.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=Wo.mergeEvaluated.props(i,v.props,s.props));else{let _=i.var("props",(0,Ie._)`${g}.evaluated.props`);s.props=Wo.mergeEvaluated.props(i,_,s.props,Ie.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Wo.mergeEvaluated.items(i,v.items,s.items));else{let _=i.var("items",(0,Ie._)`${g}.evaluated.items`);s.items=Wo.mergeEvaluated.items(i,_,s.items,Ie.Name)}}o(h,"addEvaluatedFrom")}o(Yo,"callRef");xr.callRef=Yo;xr.default=F$});var Vh=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});var V$=wi(),B$=["$schema","id","$defs",{keyword:"$comment"},"definitions",V$.default];pc.default=B$});var Bh=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var dc=hn(),H$=A(),Wt=H$.operators,hc={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Wt.LTE,fail:Wt.GT},{okStr:"<",ok:Wt.LT,fail:Wt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Wt.GTE,fail:Wt.LT},{okStr:">",ok:Wt.GT,fail:Wt.LTE}]}},U$={message:o(e=>dc.str`must be ${mc(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>dc._`{comparison: ${mc(e).okStr}, limit: ${e.schemaCode}}`,"params")},z$={keyword:Object.keys(hc),type:"number",schemaType:"number",$data:!0,error:U$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(dc._`${t} ${mc(e).fail} ${r} || isNaN(${t})`)}};function mc(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[hc[r].exclusive]?1:0;return hc[r].ops[n]}o(mc,"kwdOp");gc.default=z$});var Uh=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var Hh={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},G$={keyword:Object.keys(Hh),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Hh[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};yc.default=G$});var _c=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var Ai=A(),Z$={message:o(({schemaCode:e})=>(0,Ai.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,Ai._)`{multipleOf: ${e}}`,"params")},K$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Z$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),u=s?(0,Ai._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Ai._)`${a} !== parseInt(${a})`;e.fail$data((0,Ai._)`(${n} === 0 || (${a} = ${r}/${n}, ${u}))`)}};vc.default=K$});var Gh=m(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});function zh(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}o(zh,"ucs2length");bc.default=zh;zh.code='require("ajv/dist/runtime/ucs2length").default'});var Pc=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var wr=A(),W$=T(),Y$=Gh(),Q$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,wr._)`{limit: ${e}}`,"params")},J$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Q$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?wr.operators.GT:wr.operators.LT,a=i.opts.unicode===!1?(0,wr._)`${r}.length`:(0,wr._)`${(0,W$.useFunc)(e.gen,Y$.default)}(${r})`;e.fail$data((0,wr._)`${a} ${s} ${n}`)}};Sc.default=J$});var Oc=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var X$=Ve(),Qo=A(),eO={message:o(({schemaCode:e})=>(0,Qo.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Qo._)`{pattern: ${e}}`,"params")},tO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:eO,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",u=r?(0,Qo._)`(new RegExp(${i}, ${a}))`:(0,X$.usePattern)(e,n);e.fail$data((0,Qo._)`!${u}.test(${t})`)}};$c.default=tO});var xc=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var Ii=A(),rO={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ii.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Ii._)`{limit: ${e}}`,"params")},nO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:rO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ii.operators.GT:Ii.operators.LT;e.fail$data((0,Ii._)`Object.keys(${r}).length ${i} ${n}`)}};Ec.default=nO});var Ac=m(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var ki=Ve(),Ri=A(),iO=T(),oO={message:o(({params:{missingProperty:e}})=>(0,Ri.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,Ri._)`{missingProperty: ${e}}`,"params")},sO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:oO,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:u}=a;if(!s&&r.length===0)return;let c=r.length>=u.loopRequired;if(a.allErrors?l():p(),u.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((h==null?void 0:h[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,iO.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||s)e.block$data(Ri.nil,f);else for(let h of r)(0,ki.checkReportMissingProp)(e,h)}o(l,"allErrorsMode");function p(){let h=t.let("missing");if(c||s){let g=t.let("valid",!0);e.block$data(g,()=>d(h,g)),e.ok(g)}else t.if((0,ki.checkMissingProp)(e,r,h)),(0,ki.reportMissingProp)(e,h),t.else()}o(p,"exitOnErrorMode");function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ki.noPropertyInData)(t,i,h,u.ownProperties),()=>e.error())})}o(f,"loopAllRequired");function d(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,ki.propertyInData)(t,i,h,u.ownProperties)),t.if((0,Ri.not)(g),()=>{e.error(),t.break()})},Ri.nil)}o(d,"loopUntilMissing")}};wc.default=sO});var kc=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var Ti=A(),aO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ti.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,Ti._)`{limit: ${e}}`,"params")},uO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:aO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ti.operators.GT:Ti.operators.LT;e.fail$data((0,Ti._)`${r}.length ${i} ${n}`)}};Ic.default=uO});var Jo=m(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var Zh=Bu();Zh.code='require("ajv/dist/runtime/equal").default';Rc.default=Zh});var Nc=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var Tc=gi(),ue=A(),cO=T(),lO=Jo(),fO={message:o(({params:{i:e,j:t}})=>(0,ue.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,ue._)`{i: ${e}, j: ${t}}`,"params")},pO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:u}=e;if(!n&&!i)return;let c=t.let("valid"),l=s.items?(0,Tc.getSchemaTypes)(s.items):[];e.block$data(c,p,(0,ue._)`${a} === false`),e.ok(c);function p(){let g=t.let("i",(0,ue._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(c,!0),t.if((0,ue._)`${g} > 1`,()=>(f()?d:h)(g,y))}o(p,"validateUniqueItems");function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(f,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,Tc.checkDataTypes)(l,v,u.opts.strictNumbers,Tc.DataType.Wrong),b=t.const("indices",(0,ue._)`{}`);t.for((0,ue._)`;${g}--;`,()=>{t.let(v,(0,ue._)`${r}[${g}]`),t.if(_,(0,ue._)`continue`),l.length>1&&t.if((0,ue._)`typeof ${v} == "string"`,(0,ue._)`${v} += "_"`),t.if((0,ue._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ue._)`${b}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,ue._)`${b}[${v}] = ${g}`)})}o(d,"loopN");function h(g,y){let v=(0,cO.useFunc)(t,lO.default),_=t.name("outer");t.label(_).for((0,ue._)`;${g}--;`,()=>t.for((0,ue._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ue._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}o(h,"loopN2")}};Cc.default=pO});var Mc=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var qc=A(),dO=T(),hO=Jo(),mO={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,qc._)`{allowedValue: ${e}}`,"params")},gO={keyword:"const",$data:!0,error:mO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,qc._)`!${(0,dO.useFunc)(t,hO.default)}(${r}, ${i})`):e.fail((0,qc._)`${s} !== ${r}`)}};jc.default=gO});var Lc=m(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});var Ci=A(),yO=T(),vO=Jo(),_O={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Ci._)`{allowedValues: ${e}}`,"params")},bO={keyword:"enum",schemaType:"array",$data:!0,error:_O,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let u=i.length>=a.opts.loopEnum,c,l=o(()=>c??(c=(0,yO.useFunc)(t,vO.default)),"getEql"),p;if(u||n)p=t.let("valid"),e.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);p=(0,Ci.or)(...i.map((g,y)=>d(h,y)))}e.pass(p);function f(){t.assign(p,!1),t.forOf("v",s,h=>t.if((0,Ci._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}o(f,"loopEnum");function d(h,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ci._)`${l()}(${r}, ${h}[${g}])`:(0,Ci._)`${r} === ${y}`}o(d,"equalCode")}};Dc.default=bO});var Kh=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var SO=Bh(),PO=Uh(),$O=_c(),OO=Pc(),EO=Oc(),xO=xc(),wO=Ac(),AO=kc(),IO=Nc(),kO=Mc(),RO=Lc(),TO=[SO.default,PO.default,$O.default,OO.default,EO.default,xO.default,wO.default,AO.default,IO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kO.default,RO.default];Fc.default=TO});var Bc=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.validateAdditionalItems=void 0;var Ar=A(),Vc=T(),CO={message:o(({params:{len:e}})=>(0,Ar.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ar._)`{limit: ${e}}`,"params")},NO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:CO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Vc.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Wh(e,n)}};function Wh(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let u=r.const("len",(0,Ar._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ar._)`${u} <= ${t.length}`);else if(typeof n=="object"&&!(0,Vc.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ar._)`${u} <= ${t.length}`);r.if((0,Ar.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,u,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:Vc.Type.Num},l),a.allErrors||r.if((0,Ar.not)(l),()=>r.break())})}o(c,"validateItems")}o(Wh,"validateAdditionalItems");Ni.validateAdditionalItems=Wh;Ni.default=NO});var Hc=m(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.validateTuple=void 0;var Yh=A(),Xo=T(),qO=Ve(),jO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Qh(e,"additionalItems",t);r.items=!0,!(0,Xo.alwaysValidSchema)(r,t)&&e.ok((0,qO.validateArray)(e))}};function Qh(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:u}=e;p(i),u.opts.unevaluated&&r.length&&u.items!==!0&&(u.items=Xo.mergeEvaluated.items(n,r.length,u.items));let c=n.name("valid"),l=n.const("len",(0,Yh._)`${s}.length`);r.forEach((f,d)=>{(0,Xo.alwaysValidSchema)(u,f)||(n.if((0,Yh._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(f){let{opts:d,errSchemaPath:h}=u,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Xo.checkStrictMode)(u,v,d.strictTuples)}}o(p,"checkStrictTuple")}o(Qh,"validateTuple");qi.validateTuple=Qh;qi.default=jO});var Jh=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var MO=Hc(),DO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,MO.validateTuple)(e,"items"),"code")};Uc.default=DO});var em=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var Xh=A(),LO=T(),FO=Ve(),VO=Bc(),BO={message:o(({params:{len:e}})=>(0,Xh.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Xh._)`{limit: ${e}}`,"params")},HO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:BO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,LO.alwaysValidSchema)(n,t)&&(i?(0,VO.validateAdditionalItems)(e,i):e.ok((0,FO.validateArray)(e)))}};zc.default=HO});var tm=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var He=A(),es=T(),UO={message:o(({params:{min:e,max:t}})=>t===void 0?(0,He.str)`must contain at least ${e} valid item(s)`:(0,He.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:o(({params:{min:e,max:t}})=>t===void 0?(0,He._)`{minContains: ${e}}`:(0,He._)`{minContains: ${e}, maxContains: ${t}}`,"params")},zO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:UO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,u,{minContains:c,maxContains:l}=n;s.opts.next?(a=c===void 0?1:c,u=l):a=1;let p=t.const("len",(0,He._)`${i}.length`);if(e.setParams({min:a,max:u}),u===void 0&&a===0){(0,es.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&a>u){(0,es.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,es.alwaysValidSchema)(s,r)){let y=(0,He._)`${p} >= ${a}`;u!==void 0&&(y=(0,He._)`${y} && ${p} <= ${u}`),e.pass(y);return}s.items=!0;let f=t.name("valid");u===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),u!==void 0&&t.if((0,He._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}o(d,"validateItemsWithCount");function h(y,v){t.forRange("i",0,p,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:es.Type.Num,compositeRule:!0},y),v()})}o(h,"validateItems");function g(y){t.code((0,He._)`${y}++`),u===void 0?t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,He._)`${y} > ${u}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,He._)`${y} >= ${a}`,()=>t.assign(f,!0)))}o(g,"checkLimits")}};Gc.default=zO});var ts=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateSchemaDeps=yt.validatePropertyDeps=yt.error=void 0;var Zc=A(),GO=T(),ji=Ve();yt.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Zc.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Zc._)`{property: ${e},
|
|
10
10
|
missingProperty: ${n},
|
|
11
11
|
depsCount: ${t},
|
|
12
|
-
deps: ${r}}`,"params")};var Kb={keyword:"dependencies",type:"object",schemaType:"object",error:Ue.error,code(e){let[t,r]=Wb(e);wl(e,t),El(e,r)}};function Wb({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}s(Wb,"splitDependencies");function wl(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let u=(0,In.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let f of c)(0,In.checkReportMissingProp)(e,f)}):(r.if((0,Sa._)`${u} && (${(0,In.checkMissingProp)(e,c,o)})`),(0,In.reportMissingProp)(e,o),r.else())}}s(wl,"validatePropertyDeps");Ue.validatePropertyDeps=wl;function El(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,Zb.alwaysValidSchema)(o,t[c])||(r.if((0,In.propertyInData)(r,n,c,o.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}s(El,"validateSchemaDeps");Ue.validateSchemaDeps=El;Ue.default=Kb});var Al=h(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var jl=w(),Yb=q(),Jb={message:"property name must be valid",params:s(({params:e})=>(0,jl._)`{propertyName: ${e.propertyName}}`,"params")},Xb={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Jb,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,Yb.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,jl.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Oa.default=Xb});var wa=h(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var Ai=Pe(),Ie=w(),Qb=_e(),qi=q(),e_={message:"must NOT have additional properties",params:s(({params:e})=>(0,Ie._)`{additionalProperty: ${e.additionalProperty}}`,"params")},t_={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:e_,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,qi.alwaysValidSchema)(a,r))return;let f=(0,Ai.allSchemaProperties)(n.properties),l=(0,Ai.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Ie._)`${o} === ${Qb.default.errors}`);function p(){t.forIn("key",i,g=>{!f.length&&!l.length?y(g):t.if(m(g),()=>y(g))})}s(p,"checkAdditionalProperties");function m(g){let v;if(f.length>8){let O=(0,qi.schemaRefOrVal)(a,n.properties,"properties");v=(0,Ai.isOwnProperty)(t,O,g)}else f.length?v=(0,Ie.or)(...f.map(O=>(0,Ie._)`${g} === ${O}`)):v=Ie.nil;return l.length&&(v=(0,Ie.or)(v,...l.map(O=>(0,Ie._)`${(0,Ai.usePattern)(e,O)}.test(${g})`))),(0,Ie.not)(v)}s(m,"isAdditional");function d(g){t.code((0,Ie._)`delete ${i}[${g}]`)}s(d,"deleteAdditional");function y(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){d(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,qi.alwaysValidSchema)(a,r)){let v=t.name("valid");u.removeAdditional==="failing"?($(g,v,!1),t.if((0,Ie.not)(v),()=>{e.reset(),d(g)})):($(g,v),c||t.if((0,Ie.not)(v),()=>t.break()))}}s(y,"additionalPropertyCode");function $(g,v,O){let P={keyword:"additionalProperties",dataProp:g,dataPropType:qi.Type.Str};O===!1&&Object.assign(P,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(P,v)}s($,"applyAdditionalSchema")}};xa.default=t_});var Tl=h(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var r_=hn(),ql=Pe(),Ea=q(),Il=wa(),n_={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Il.default.code(new r_.KeywordCxt(o,Il.default,"additionalProperties"));let a=(0,ql.allSchemaProperties)(r);for(let p of a)o.definedProperties.add(p);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Ea.mergeEvaluated.props(t,(0,Ea.toHash)(a),o.props));let c=a.filter(p=>!(0,Ea.alwaysValidSchema)(o,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)f(p)?l(p):(t.if((0,ql.propertyInData)(t,i,p,o.opts.ownProperties)),l(p),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function f(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}s(f,"hasDefault");function l(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}s(l,"applyPropertySchema")}};ja.default=n_});var Cl=h(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Rl=Pe(),Ii=w(),Nl=q(),kl=q(),i_={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,Rl.allSchemaProperties)(r),u=c.filter($=>(0,Nl.alwaysValidSchema)(o,r[$]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let f=a.strictSchema&&!a.allowMatchingProperties&&i.properties,l=t.name("valid");o.props!==!0&&!(o.props instanceof Ii.Name)&&(o.props=(0,kl.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let $ of c)f&&d($),o.allErrors?y($):(t.var(l,!0),y($),t.if(l))}s(m,"validatePatternProperties");function d($){for(let g in f)new RegExp($).test(g)&&(0,Nl.checkStrictMode)(o,`property ${g} matches pattern ${$} (use allowMatchingProperties)`)}s(d,"checkMatchingProperties");function y($){t.forIn("key",n,g=>{t.if((0,Ii._)`${(0,Rl.usePattern)(e,$)}.test(${g})`,()=>{let v=u.includes($);v||e.subschema({keyword:"patternProperties",schemaProp:$,dataProp:g,dataPropType:kl.Type.Str},l),o.opts.unevaluated&&p!==!0?t.assign((0,Ii._)`${p}[${g}]`,!0):!v&&!o.allErrors&&t.if((0,Ii.not)(l),()=>t.break())})})}s(y,"validateProperties")}};Aa.default=i_});var Ml=h(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var o_=q(),s_={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,o_.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};qa.default=s_});var Dl=h(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var a_=Pe(),c_={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:a_.validateUnion,error:{message:"must match a schema in anyOf"}};Ia.default=c_});var Fl=h(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var Ti=w(),u_=q(),f_={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Ti._)`{passingSchemas: ${e.passing}}`,"params")},l_={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:f_,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,a=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(f),e.result(a,()=>e.reset(),()=>e.error(!0));function f(){o.forEach((l,p)=>{let m;(0,u_.alwaysValidSchema)(i,l)?t.var(u,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Ti._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Ti._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),m&&e.mergeEvaluated(m,Ti.Name)})})}s(f,"validateOneOf")}};Ta.default=l_});var Vl=h(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var p_=q(),d_={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,a)=>{if((0,p_.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Ra.default=d_});var Ul=h(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});var Ri=w(),zl=q(),m_={message:s(({params:e})=>(0,Ri.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,Ri._)`{failingKeyword: ${e.ifClause}}`,"params")},h_={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:m_,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,zl.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Ll(n,"then"),o=Ll(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(c,f("then",l),f("else",l))}else i?t.if(c,f("then")):t.if((0,Ri.not)(c),f("else"));e.pass(a,()=>e.error(!0));function u(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(l)}s(u,"validateIf");function f(l,p){return()=>{let m=e.subschema({keyword:l},c);t.assign(a,c),e.mergeValidEvaluated(m,a),p?t.assign(p,(0,Ri._)`${l}`):e.setParams({ifClause:l})}}s(f,"validateClause")}};function Ll(e,t){let r=e.schema[t];return r!==void 0&&!(0,zl.alwaysValidSchema)(e,r)}s(Ll,"hasSchema");Na.default=h_});var Bl=h(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var y_=q(),g_={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,y_.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ka.default=g_});var Ma=h(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var $_=$a(),v_=Pl(),b_=va(),__=Ol(),P_=xl(),S_=ji(),O_=Al(),x_=wa(),w_=Tl(),E_=Cl(),j_=Ml(),A_=Dl(),q_=Fl(),I_=Vl(),T_=Ul(),R_=Bl();function N_(e=!1){let t=[j_.default,A_.default,q_.default,I_.default,T_.default,R_.default,O_.default,x_.default,S_.default,w_.default,E_.default];return e?t.push(v_.default,__.default):t.push($_.default,b_.default),t.push(P_.default),t}s(N_,"getApplicator");Ca.default=N_});var Hl=h(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var B=w(),k_={message:s(({schemaCode:e})=>(0,B.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,B._)`{format: ${e}}`,"params")},C_={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:k_,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:f,schemaEnv:l,self:p}=c;if(!u.validateFormats)return;i?m():d();function m(){let y=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),$=r.const("fDef",(0,B._)`${y}[${a}]`),g=r.let("fType"),v=r.let("format");r.if((0,B._)`typeof ${$} == "object" && !(${$} instanceof RegExp)`,()=>r.assign(g,(0,B._)`${$}.type || "string"`).assign(v,(0,B._)`${$}.validate`),()=>r.assign(g,(0,B._)`"string"`).assign(v,$)),e.fail$data((0,B.or)(O(),P()));function O(){return u.strictSchema===!1?B.nil:(0,B._)`${a} && !${v}`}s(O,"unknownFmt");function P(){let R=l.$async?(0,B._)`(${$}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,B._)`${v}(${n})`,b=(0,B._)`(typeof ${v} == "function" ? ${R} : ${v}.test(${n}))`;return(0,B._)`${v} && ${v} !== true && ${g} === ${t} && !${b}`}s(P,"invalidFmt")}s(m,"validate$DataFormat");function d(){let y=p.formats[o];if(!y){O();return}if(y===!0)return;let[$,g,v]=P(y);$===t&&e.pass(R());function O(){if(u.strictSchema===!1){p.logger.warn(b());return}throw new Error(b());function b(){return`unknown format "${o}" ignored in schema at path "${f}"`}}s(O,"unknownFormat");function P(b){let H=b instanceof RegExp?(0,B.regexpCode)(b):u.code.formats?(0,B._)`${u.code.formats}${(0,B.getProperty)(o)}`:void 0,ve=r.scopeValue("formats",{key:o,ref:b,code:H});return typeof b=="object"&&!(b instanceof RegExp)?[b.type||"string",b.validate,(0,B._)`${ve}.validate`]:["string",b,ve]}s(P,"getFormat");function R(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!l.$async)throw new Error("async format in sync schema");return(0,B._)`await ${v}(${n})`}return typeof g=="function"?(0,B._)`${v}(${n})`:(0,B._)`${v}.test(${n})`}s(R,"validCondition")}s(d,"validateFormat")}};Da.default=C_});var Va=h(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var M_=Hl(),D_=[M_.default];Fa.default=D_});var Gl=h(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var F_=ll(),V_=$l(),L_=Ma(),z_=Va(),U_=["title","description","default"],B_=[F_.default,V_.default,L_.default(),z_.default,U_];La.default=B_});var Kl=h(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.DiscrError=void 0;var Zl;(function(e){e.Tag="tag",e.Mapping="mapping"})(Zl||(Ni.DiscrError=Zl={}))});var Ba=h(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var Or=w(),za=Kl(),Wl=gn(),H_=yn(),G_=q(),Z_={message:s(({params:{discrError:e,tagName:t}})=>e===za.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:r}})=>(0,Or._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},K_={keyword:"discriminator",type:"object",schemaType:"object",error:Z_,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=n.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),f=t.const("tag",(0,Or._)`${r}${(0,Or.getProperty)(c)}`);t.if((0,Or._)`typeof ${f} == "string"`,()=>l(),()=>e.error(!1,{discrError:za.DiscrError.Tag,tag:f,tagName:c})),e.ok(u);function l(){let d=m();t.if(!1);for(let y in d)t.elseIf((0,Or._)`${f} === ${y}`),t.assign(u,p(d[y]));t.else(),e.error(!1,{discrError:za.DiscrError.Mapping,tag:f,tagName:c}),t.endIf()}s(l,"validateMapping");function p(d){let y=t.name("valid"),$=e.subschema({keyword:"oneOf",schemaProp:d},y);return e.mergeEvaluated($,Or.Name),y}s(p,"applyTagSchema");function m(){var d;let y={},$=v(i),g=!0;for(let R=0;R<a.length;R++){let b=a[R];if(b!=null&&b.$ref&&!(0,G_.schemaHasRulesButRef)(b,o.self.RULES)){let ve=b.$ref;if(b=Wl.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ve),b instanceof Wl.SchemaEnv&&(b=b.schema),b===void 0)throw new H_.default(o.opts.uriResolver,o.baseId,ve)}let H=(d=b==null?void 0:b.properties)===null||d===void 0?void 0:d[c];if(typeof H!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);g=g&&($||v(b)),O(H,R)}if(!g)throw new Error(`discriminator: "${c}" must be required`);return y;function v({required:R}){return Array.isArray(R)&&R.includes(c)}function O(R,b){if(R.const)P(R.const,b);else if(R.enum)for(let H of R.enum)P(H,b);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function P(R,b){if(typeof R!="string"||R in y)throw new Error(`discriminator: "${c}" values must be unique strings`);y[R]=b}}s(m,"getMapping")}};Ua.default=K_});var Yl=h((eI,W_)=>{W_.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var Ql=h((K,Xl)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.CodeGen=K.Name=K.nil=K.stringify=K.str=K._=K.KeywordCxt=void 0;var Y_=Pr(),J_=Gl(),X_=Ba(),Jl=Yl(),Q_=["/properties"],ki="http://json-schema.org/draft-04/schema",Ha=class Ha extends Y_.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),J_.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(X_.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Jl,Q_):Jl;this.addMetaSchema(t,ki,!1),this.refs["http://json-schema.org/schema"]=ki}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ki)?ki:void 0)}};s(Ha,"Ajv");var Ci=Ha;Xl.exports=K=Ci;Object.defineProperty(K,"__esModule",{value:!0});K.default=Ci;var eP=Pr();Object.defineProperty(K,"KeywordCxt",{enumerable:!0,get:s(function(){return eP.KeywordCxt},"get")});var xr=Pr();Object.defineProperty(K,"_",{enumerable:!0,get:s(function(){return xr._},"get")});Object.defineProperty(K,"str",{enumerable:!0,get:s(function(){return xr.str},"get")});Object.defineProperty(K,"stringify",{enumerable:!0,get:s(function(){return xr.stringify},"get")});Object.defineProperty(K,"nil",{enumerable:!0,get:s(function(){return xr.nil},"get")});Object.defineProperty(K,"Name",{enumerable:!0,get:s(function(){return xr.Name},"get")});Object.defineProperty(K,"CodeGen",{enumerable:!0,get:s(function(){return xr.CodeGen},"get")})});var ep=h(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var tP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Ga.default=tP});var tp=h(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var rP=ep(),nP=Pn(),iP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rP.default,nP.default];Za.default=iP});var rp=h(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Mi=w(),ht=Mi.operators,Di={maximum:{okStr:"<=",ok:ht.LTE,fail:ht.GT},minimum:{okStr:">=",ok:ht.GTE,fail:ht.LT},exclusiveMaximum:{okStr:"<",ok:ht.LT,fail:ht.GTE},exclusiveMinimum:{okStr:">",ok:ht.GT,fail:ht.LTE}},oP={message:s(({keyword:e,schemaCode:t})=>(0,Mi.str)`must be ${Di[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,Mi._)`{comparison: ${Di[e].okStr}, limit: ${t}}`,"params")},sP={keyword:Object.keys(Di),type:"number",schemaType:"number",$data:!0,error:oP,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Mi._)`${r} ${Di[t].fail} ${n} || isNaN(${r})`)}};Ka.default=sP});var np=h(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var aP=rp(),cP=Ws(),uP=Xs(),fP=ea(),lP=ra(),pP=ia(),dP=sa(),mP=fa(),hP=da(),yP=ha(),gP=[aP.default,cP.default,uP.default,fP.default,lP.default,pP.default,dP.default,mP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hP.default,yP.default];Wa.default=gP});var Ja=h(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.dynamicAnchor=void 0;var Ya=w(),$P=_e(),ip=gn(),vP=Pn(),bP={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>op(e,e.schema),"code")};function op(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,Ya._)`${$P.default.dynamicAnchors}${(0,Ya.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:_P(e);r.if((0,Ya._)`!${i}`,()=>r.assign(i,o))}s(op,"dynamicAnchor");Tn.dynamicAnchor=op;function _P(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,f=new ip.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return ip.compileSchema.call(n,f),(0,vP.getValidate)(e,f)}s(_P,"_getValidate");Tn.default=bP});var Xa=h(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.dynamicRef=void 0;var sp=w(),PP=_e(),ap=Pn(),SP={keyword:"$dynamicRef",schemaType:"string",code:s(e=>cp(e,e.schema),"code")};function cp(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)a();else{let u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[o]){let f=r.let("_v",(0,sp._)`${PP.default.dynamicAnchors}${(0,sp.getProperty)(o)}`);r.if(f,c(f,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,f){return f?()=>r.block(()=>{(0,ap.callRef)(e,u),r.let(f,!0)}):()=>(0,ap.callRef)(e,u)}s(c,"_callRef")}s(cp,"dynamicRef");Rn.dynamicRef=cp;Rn.default=SP});var up=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var OP=Ja(),xP=q(),wP={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,OP.dynamicAnchor)(e,""):(0,xP.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Qa.default=wP});var fp=h(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var EP=Xa(),jP={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,EP.dynamicRef)(e,e.schema),"code")};ec.default=jP});var lp=h(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var AP=Ja(),qP=Xa(),IP=up(),TP=fp(),RP=[AP.default,qP.default,IP.default,TP.default];tc.default=RP});var dp=h(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var pp=ji(),NP={keyword:"dependentRequired",type:"object",schemaType:"object",error:pp.error,code:s(e=>(0,pp.validatePropertyDeps)(e),"code")};rc.default=NP});var mp=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var kP=ji(),CP={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,kP.validateSchemaDeps)(e),"code")};nc.default=CP});var hp=h(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var MP=q(),DP={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,MP.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ic.default=DP});var yp=h(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var FP=dp(),VP=mp(),LP=hp(),zP=[FP.default,VP.default,LP.default];oc.default=zP});var $p=h(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var yt=w(),gp=q(),UP=_e(),BP={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,yt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},HP={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:BP,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:o}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;c instanceof yt.Name?t.if((0,yt._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(f(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(l(c,p),()=>u(p))),o.props=!0,e.ok((0,yt._)`${i} === ${UP.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,gp.alwaysValidSchema)(o,r)){let m=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:gp.Type.Str},m),a||t.if((0,yt.not)(m),()=>t.break())}}s(u,"unevaluatedPropCode");function f(p,m){return(0,yt._)`!${p} || !${p}[${m}]`}s(f,"unevaluatedDynamic");function l(p,m){let d=[];for(let y in p)p[y]===!0&&d.push((0,yt._)`${m} !== ${y}`);return(0,yt.and)(...d)}s(l,"unevaluatedStatic")}};sc.default=HP});var bp=h(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Bt=w(),vp=q(),GP={message:s(({params:{len:e}})=>(0,Bt.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Bt._)`{limit: ${e}}`,"params")},ZP={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:GP,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let a=t.const("len",(0,Bt._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Bt._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,vp.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Bt._)`${a} <= ${o}`);t.if((0,Bt.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,f){t.forRange("i",f,a,l=>{e.subschema({keyword:"unevaluatedItems",dataProp:l,dataPropType:vp.Type.Num},u),i.allErrors||t.if((0,Bt.not)(u),()=>t.break())})}s(c,"validateItems")}};ac.default=ZP});var _p=h(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var KP=$p(),WP=bp(),YP=[KP.default,WP.default];cc.default=YP});var Pp=h(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.contentVocabulary=wr.metadataVocabulary=void 0;wr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];wr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Op=h(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var JP=tp(),XP=np(),QP=Ma(),eS=lp(),tS=yp(),rS=_p(),nS=Va(),Sp=Pp(),iS=[eS.default,JP.default,XP.default,(0,QP.default)(!0),nS.default,Sp.metadataVocabulary,Sp.contentVocabulary,tS.default,rS.default];uc.default=iS});var xp=h((jI,oS)=>{oS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var wp=h((AI,sS)=>{sS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Ep=h((qI,aS)=>{aS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var jp=h((II,cS)=>{cS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Ap=h((TI,uS)=>{uS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var qp=h((RI,fS)=>{fS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Ip=h((NI,lS)=>{lS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Tp=h((kI,pS)=>{pS.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Rp=h(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var dS=xp(),mS=wp(),hS=Ep(),yS=jp(),gS=Ap(),$S=qp(),vS=Ip(),bS=Tp(),_S=["/properties"];function PS(e){return[dS,mS,hS,yS,gS,t(this,$S),vS,t(this,bS)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,_S):n}s(t,"with$data")}s(PS,"addMetaSchema2020");fc.default=PS});var Np=h((F,pc)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.MissingRefError=F.ValidationError=F.CodeGen=F.Name=F.nil=F.stringify=F.str=F._=F.KeywordCxt=F.Ajv2020=void 0;var SS=Pr(),OS=Op(),xS=Ba(),wS=Rp(),lc="https://json-schema.org/draft/2020-12/schema",dc=class dc extends SS.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),OS.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(xS.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(wS.default.call(this,t),this.refs["http://json-schema.org/schema"]=lc)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(lc)?lc:void 0)}};s(dc,"Ajv2020");var Er=dc;F.Ajv2020=Er;pc.exports=F=Er;pc.exports.Ajv2020=Er;Object.defineProperty(F,"__esModule",{value:!0});F.default=Er;var ES=hn();Object.defineProperty(F,"KeywordCxt",{enumerable:!0,get:s(function(){return ES.KeywordCxt},"get")});var jr=w();Object.defineProperty(F,"_",{enumerable:!0,get:s(function(){return jr._},"get")});Object.defineProperty(F,"str",{enumerable:!0,get:s(function(){return jr.str},"get")});Object.defineProperty(F,"stringify",{enumerable:!0,get:s(function(){return jr.stringify},"get")});Object.defineProperty(F,"nil",{enumerable:!0,get:s(function(){return jr.nil},"get")});Object.defineProperty(F,"Name",{enumerable:!0,get:s(function(){return jr.Name},"get")});Object.defineProperty(F,"CodeGen",{enumerable:!0,get:s(function(){return jr.CodeGen},"get")});var jS=yi();Object.defineProperty(F,"ValidationError",{enumerable:!0,get:s(function(){return jS.default},"get")});var AS=yn();Object.defineProperty(F,"MissingRefError",{enumerable:!0,get:s(function(){return AS.default},"get")})});var kp=h((FI,qS)=>{qS.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var Cp=h((VI,IS)=>{IS.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var Mp=h((LI,TS)=>{TS.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var Dp=h((zI,RS)=>{RS.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var Fp=h((J,Ar)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.openapi=J.openapiV31=J.openapiV3=J.openapiV2=J.openapiV1=void 0;J.openapiV1=kp();J.openapiV2=Cp();J.openapiV3=Mp();J.openapiV31=Dp();J.openapi={v1:J.openapiV1,v2:J.openapiV2,v3:J.openapiV3,v31:J.openapiV31};J.default=J.openapi;typeof Ar=="object"&&typeof Ar.exports=="object"&&(Ar.exports=Object.assign(Ar.exports.default,Ar.exports))});var yc=h((UI,Vp)=>{"use strict";var NS=Jn(),{ono:kS}=Ee(),CS=Ql(),MS=Np(),{openapi:mc}=Fp();Vp.exports=DS;function DS(e){let t,r;if(e.swagger)r=mc.v2,t=hc();else if(e.openapi.startsWith("3.1")){r=mc.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=hc(!1)}else r=mc.v3,t=hc();if(!t.validate(r,e)){let i=t.errors,o=`Swagger schema validation failed.
|
|
13
|
-
`+
|
|
14
|
-
`);return r}
|
|
15
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(
|
|
16
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){
|
|
17
|
-
`+
|
|
18
|
-
`+r)),n},"toString");
|
|
19
|
-
\r`;function
|
|
20
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}
|
|
21
|
-
`,t-1))}
|
|
22
|
-
`,
|
|
23
|
-
`);break}for(n?
|
|
24
|
-
`,
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
27
|
-
`,
|
|
28
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
29
|
-
`,n),i===-1?(a=e.slice(n),n=
|
|
30
|
-
`&&(
|
|
31
|
-
`+
|
|
12
|
+
deps: ${r}}`,"params")};var ZO={keyword:"dependencies",type:"object",schemaType:"object",error:yt.error,code(e){let[t,r]=KO(e);rm(e,t),nm(e,r)}};function KO({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}o(KO,"splitDependencies");function rm(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let u=t[a];if(u.length===0)continue;let c=(0,ji.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of u)(0,ji.checkReportMissingProp)(e,l)}):(r.if((0,Zc._)`${c} && (${(0,ji.checkMissingProp)(e,u,s)})`),(0,ji.reportMissingProp)(e,s),r.else())}}o(rm,"validatePropertyDeps");yt.validatePropertyDeps=rm;function nm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let u in t)(0,GO.alwaysValidSchema)(s,t[u])||(r.if((0,ji.propertyInData)(r,n,u,s.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:u},a);e.mergeValidEvaluated(c,a)},()=>r.var(a,!0)),e.ok(a))}o(nm,"validateSchemaDeps");yt.validateSchemaDeps=nm;yt.default=ZO});var om=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var im=A(),WO=T(),YO={message:"property name must be valid",params:o(({params:e})=>(0,im._)`{propertyName: ${e.propertyName}}`,"params")},QO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:YO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,WO.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,im.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Kc.default=QO});var Yc=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var rs=Ve(),tt=A(),JO=Fe(),ns=T(),XO={message:"must NOT have additional properties",params:o(({params:e})=>(0,tt._)`{additionalProperty: ${e.additionalProperty}}`,"params")},eE={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:XO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:u,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,ns.alwaysValidSchema)(a,r))return;let l=(0,rs.allSchemaProperties)(n.properties),p=(0,rs.allSchemaProperties)(n.patternProperties);f(),e.ok((0,tt._)`${s} === ${JO.default.errors}`);function f(){t.forIn("key",i,v=>{!l.length&&!p.length?g(v):t.if(d(v),()=>g(v))})}o(f,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,ns.schemaRefOrVal)(a,n.properties,"properties");_=(0,rs.isOwnProperty)(t,b,v)}else l.length?_=(0,tt.or)(...l.map(b=>(0,tt._)`${v} === ${b}`)):_=tt.nil;return p.length&&(_=(0,tt.or)(_,...p.map(b=>(0,tt._)`${(0,rs.usePattern)(e,b)}.test(${v})`))),(0,tt.not)(_)}o(d,"isAdditional");function h(v){t.code((0,tt._)`delete ${i}[${v}]`)}o(h,"deleteAdditional");function g(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),u||t.break();return}if(typeof r=="object"&&!(0,ns.alwaysValidSchema)(a,r)){let _=t.name("valid");c.removeAdditional==="failing"?(y(v,_,!1),t.if((0,tt.not)(_),()=>{e.reset(),h(v)})):(y(v,_),u||t.if((0,tt.not)(_),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,_,b){let S={keyword:"additionalProperties",dataProp:v,dataPropType:ns.Type.Str};b===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,_)}o(y,"applyAdditionalSchema")}};Wc.default=eE});var um=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var tE=bi(),sm=Ve(),Qc=T(),am=Yc(),rE={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&am.default.code(new tE.KeywordCxt(s,am.default,"additionalProperties"));let a=(0,sm.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Qc.mergeEvaluated.props(t,(0,Qc.toHash)(a),s.props));let u=a.filter(f=>!(0,Qc.alwaysValidSchema)(s,r[f]));if(u.length===0)return;let c=t.name("valid");for(let f of u)l(f)?p(f):(t.if((0,sm.propertyInData)(t,i,f,s.opts.ownProperties)),p(f),s.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}o(l,"hasDefault");function p(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}o(p,"applyPropertySchema")}};Jc.default=rE});var pm=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var cm=Ve(),is=A(),lm=T(),fm=T(),nE={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,u=(0,cm.allSchemaProperties)(r),c=u.filter(y=>(0,lm.alwaysValidSchema)(s,r[y]));if(u.length===0||c.length===u.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof is.Name)&&(s.props=(0,fm.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let y of u)l&&h(y),s.allErrors?g(y):(t.var(p,!0),g(y),t.if(p))}o(d,"validatePatternProperties");function h(y){for(let v in l)new RegExp(y).test(v)&&(0,lm.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}o(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,is._)`${(0,cm.usePattern)(e,y)}.test(${v})`,()=>{let _=c.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:fm.Type.Str},p),s.opts.unevaluated&&f!==!0?t.assign((0,is._)`${f}[${v}]`,!0):!_&&!s.allErrors&&t.if((0,is.not)(p),()=>t.break())})})}o(g,"validateProperties")}};Xc.default=nE});var dm=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var iE=T(),oE={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,iE.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};el.default=oE});var hm=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var sE=Ve(),aE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sE.validateUnion,error:{message:"must match a schema in anyOf"}};tl.default=aE});var mm=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var os=A(),uE=T(),cE={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,os._)`{passingSchemas: ${e.passing}}`,"params")},lE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:cE,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),u=t.let("passing",null),c=t.name("_valid");e.setParams({passing:u}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((p,f)=>{let d;(0,uE.alwaysValidSchema)(i,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,os._)`${c} && ${a}`).assign(a,!1).assign(u,(0,os._)`[${u}, ${f}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(u,f),d&&e.mergeEvaluated(d,os.Name)})})}o(l,"validateOneOf")}};rl.default=lE});var gm=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var fE=T(),pE={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,fE.alwaysValidSchema)(n,s))return;let u=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(u)})}};nl.default=pE});var _m=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var ss=A(),vm=T(),dE={message:o(({params:e})=>(0,ss.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,ss._)`{failingKeyword: ${e.ifClause}}`,"params")},hE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:dE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,vm.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=ym(n,"then"),s=ym(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),u=t.name("_valid");if(c(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(u,l("then",p),l("else",p))}else i?t.if(u,l("then")):t.if((0,ss.not)(u),l("else"));e.pass(a,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(p)}o(c,"validateIf");function l(p,f){return()=>{let d=e.subschema({keyword:p},u);t.assign(a,u),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,ss._)`${p}`):e.setParams({ifClause:p})}}o(l,"validateClause")}};function ym(e,t){let r=e.schema[t];return r!==void 0&&!(0,vm.alwaysValidSchema)(e,r)}o(ym,"hasSchema");il.default=hE});var bm=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var mE=T(),gE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,mE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ol.default=gE});var al=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var yE=Bc(),vE=Jh(),_E=Hc(),bE=em(),SE=tm(),PE=ts(),$E=om(),OE=Yc(),EE=um(),xE=pm(),wE=dm(),AE=hm(),IE=mm(),kE=gm(),RE=_m(),TE=bm();function CE(e=!1){let t=[wE.default,AE.default,IE.default,kE.default,RE.default,TE.default,$E.default,OE.default,PE.default,EE.default,xE.default];return e?t.push(vE.default,bE.default):t.push(yE.default,_E.default),t.push(SE.default),t}o(CE,"getApplicator");sl.default=CE});var Sm=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var Q=A(),NE={message:o(({schemaCode:e})=>(0,Q.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,Q._)`{format: ${e}}`,"params")},qE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:NE,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:u}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=u;if(!c.validateFormats)return;i?d():h();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,Q._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,Q._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Q._)`${y}.type || "string"`).assign(_,(0,Q._)`${y}.validate`),()=>r.assign(v,(0,Q._)`"string"`).assign(_,y)),e.fail$data((0,Q.or)(b(),S()));function b(){return c.strictSchema===!1?Q.nil:(0,Q._)`${a} && !${_}`}o(b,"unknownFmt");function S(){let E=p.$async?(0,Q._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,Q._)`${_}(${n})`,$=(0,Q._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,Q._)`${_} && ${_} !== true && ${v} === ${t} && !${$}`}o(S,"invalidFmt")}o(d,"validate$DataFormat");function h(){let g=f.formats[s];if(!g){b();return}if(g===!0)return;let[y,v,_]=S(g);y===t&&e.pass(E());function b(){if(c.strictSchema===!1){f.logger.warn($());return}throw new Error($());function $(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function S($){let M=$ instanceof RegExp?(0,Q.regexpCode)($):c.code.formats?(0,Q._)`${c.code.formats}${(0,Q.getProperty)(s)}`:void 0,j=r.scopeValue("formats",{key:s,ref:$,code:M});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Q._)`${j}.validate`]:["string",$,j]}o(S,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Q._)`await ${_}(${n})`}return typeof v=="function"?(0,Q._)`${_}(${n})`:(0,Q._)`${_}.test(${n})`}o(E,"validCondition")}o(h,"validateFormat")}};ul.default=qE});var ll=m(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var jE=Sm(),ME=[jE.default];cl.default=ME});var Pm=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var DE=Vh(),LE=Kh(),FE=al(),VE=ll(),BE=["title","description","default"],HE=[DE.default,LE.default,FE.default(),VE.default,BE];fl.default=HE});var Om=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.DiscrError=void 0;var $m;(function(e){e.Tag="tag",e.Mapping="mapping"})($m||(as.DiscrError=$m={}))});var hl=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var gn=A(),pl=Om(),Em=Pi(),UE=Si(),zE=T(),GE={message:o(({params:{discrError:e,tagName:t}})=>e===pl.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:o(({params:{discrError:e,tag:t,tagName:r}})=>(0,gn._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},ZE={keyword:"discriminator",type:"object",schemaType:"object",error:GE,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let u=n.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,gn._)`${r}${(0,gn.getProperty)(u)}`);t.if((0,gn._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:pl.DiscrError.Tag,tag:l,tagName:u})),e.ok(c);function p(){let h=d();t.if(!1);for(let g in h)t.elseIf((0,gn._)`${l} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:pl.DiscrError.Mapping,tag:l,tagName:u}),t.endIf()}o(p,"validateMapping");function f(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,gn.Name),g}o(f,"applyTagSchema");function d(){var h;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let $=a[E];if($!=null&&$.$ref&&!(0,zE.schemaHasRulesButRef)($,s.self.RULES)){let j=$.$ref;if($=Em.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,j),$ instanceof Em.SchemaEnv&&($=$.schema),$===void 0)throw new UE.default(s.opts.uriResolver,s.baseId,j)}let M=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[u];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);v=v&&(y||_($)),b(M,E)}if(!v)throw new Error(`discriminator: "${u}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(u)}function b(E,$){if(E.const)S(E.const,$);else if(E.enum)for(let M of E.enum)S(M,$);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function S(E,$){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[E]=$}}o(d,"getMapping")}};dl.default=ZE});var xm=m((k4,KE)=>{KE.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var Im=m((ee,Am)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.CodeGen=ee.Name=ee.nil=ee.stringify=ee.str=ee._=ee.KeywordCxt=void 0;var WE=hn(),YE=Pm(),QE=hl(),wm=xm(),JE=["/properties"],us="http://json-schema.org/draft-04/schema",ml=class ml extends WE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),YE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(QE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(wm,JE):wm;this.addMetaSchema(t,us,!1),this.refs["http://json-schema.org/schema"]=us}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(us)?us:void 0)}};o(ml,"Ajv");var cs=ml;Am.exports=ee=cs;Object.defineProperty(ee,"__esModule",{value:!0});ee.default=cs;var XE=hn();Object.defineProperty(ee,"KeywordCxt",{enumerable:!0,get:o(function(){return XE.KeywordCxt},"get")});var yn=hn();Object.defineProperty(ee,"_",{enumerable:!0,get:o(function(){return yn._},"get")});Object.defineProperty(ee,"str",{enumerable:!0,get:o(function(){return yn.str},"get")});Object.defineProperty(ee,"stringify",{enumerable:!0,get:o(function(){return yn.stringify},"get")});Object.defineProperty(ee,"nil",{enumerable:!0,get:o(function(){return yn.nil},"get")});Object.defineProperty(ee,"Name",{enumerable:!0,get:o(function(){return yn.Name},"get")});Object.defineProperty(ee,"CodeGen",{enumerable:!0,get:o(function(){return yn.CodeGen},"get")})});var km=m(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var ex={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};gl.default=ex});var Rm=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var tx=km(),rx=wi(),nx=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",tx.default,rx.default];yl.default=nx});var Tm=m(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var ls=A(),Yt=ls.operators,fs={maximum:{okStr:"<=",ok:Yt.LTE,fail:Yt.GT},minimum:{okStr:">=",ok:Yt.GTE,fail:Yt.LT},exclusiveMaximum:{okStr:"<",ok:Yt.LT,fail:Yt.GTE},exclusiveMinimum:{okStr:">",ok:Yt.GT,fail:Yt.LTE}},ix={message:o(({keyword:e,schemaCode:t})=>(0,ls.str)`must be ${fs[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,ls._)`{comparison: ${fs[e].okStr}, limit: ${t}}`,"params")},ox={keyword:Object.keys(fs),type:"number",schemaType:"number",$data:!0,error:ix,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ls._)`${r} ${fs[t].fail} ${n} || isNaN(${r})`)}};vl.default=ox});var Cm=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var sx=Tm(),ax=_c(),ux=Pc(),cx=Oc(),lx=xc(),fx=Ac(),px=kc(),dx=Nc(),hx=Mc(),mx=Lc(),gx=[sx.default,ax.default,ux.default,cx.default,lx.default,fx.default,px.default,dx.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hx.default,mx.default];_l.default=gx});var Sl=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.dynamicAnchor=void 0;var bl=A(),yx=Fe(),Nm=Pi(),vx=wi(),_x={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>qm(e,e.schema),"code")};function qm(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,bl._)`${yx.default.dynamicAnchors}${(0,bl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:bx(e);r.if((0,bl._)`!${i}`,()=>r.assign(i,s))}o(qm,"dynamicAnchor");Mi.dynamicAnchor=qm;function bx(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:u}=t.root,{schemaId:c}=n.opts,l=new Nm.SchemaEnv({schema:r,schemaId:c,root:i,baseId:s,localRefs:a,meta:u});return Nm.compileSchema.call(n,l),(0,vx.getValidate)(e,l)}o(bx,"_getValidate");Mi.default=_x});var Pl=m(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.dynamicRef=void 0;var jm=A(),Sx=Fe(),Mm=wi(),Px={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Dm(e,e.schema),"code")};function Dm(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let s=t.slice(1);if(i.allErrors)a();else{let c=r.let("valid",!1);a(c),e.ok(c)}function a(c){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,jm._)`${Sx.default.dynamicAnchors}${(0,jm.getProperty)(s)}`);r.if(l,u(l,c),u(i.validateName,c))}else u(i.validateName,c)()}o(a,"_dynamicRef");function u(c,l){return l?()=>r.block(()=>{(0,Mm.callRef)(e,c),r.let(l,!0)}):()=>(0,Mm.callRef)(e,c)}o(u,"_callRef")}o(Dm,"dynamicRef");Di.dynamicRef=Dm;Di.default=Px});var Lm=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var $x=Sl(),Ox=T(),Ex={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,$x.dynamicAnchor)(e,""):(0,Ox.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};$l.default=Ex});var Fm=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var xx=Pl(),wx={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,xx.dynamicRef)(e,e.schema),"code")};Ol.default=wx});var Vm=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Ax=Sl(),Ix=Pl(),kx=Lm(),Rx=Fm(),Tx=[Ax.default,Ix.default,kx.default,Rx.default];El.default=Tx});var Hm=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Bm=ts(),Cx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Bm.error,code:o(e=>(0,Bm.validatePropertyDeps)(e),"code")};xl.default=Cx});var Um=m(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var Nx=ts(),qx={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,Nx.validateSchemaDeps)(e),"code")};wl.default=qx});var zm=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var jx=T(),Mx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,jx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Al.default=Mx});var Gm=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Dx=Hm(),Lx=Um(),Fx=zm(),Vx=[Dx.default,Lx.default,Fx.default];Il.default=Vx});var Km=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var Qt=A(),Zm=T(),Bx=Fe(),Hx={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Qt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Ux={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Hx,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:u}=s;u instanceof Qt.Name?t.if((0,Qt._)`${u} !== true`,()=>t.forIn("key",n,f=>t.if(l(u,f),()=>c(f)))):u!==!0&&t.forIn("key",n,f=>u===void 0?c(f):t.if(p(u,f),()=>c(f))),s.props=!0,e.ok((0,Qt._)`${i} === ${Bx.default.errors}`);function c(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,Zm.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Zm.Type.Str},d),a||t.if((0,Qt.not)(d),()=>t.break())}}o(c,"unevaluatedPropCode");function l(f,d){return(0,Qt._)`!${f} || !${f}[${d}]`}o(l,"unevaluatedDynamic");function p(f,d){let h=[];for(let g in f)f[g]===!0&&h.push((0,Qt._)`${d} !== ${g}`);return(0,Qt.and)(...h)}o(p,"unevaluatedStatic")}};kl.default=Ux});var Ym=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var Ir=A(),Wm=T(),zx={message:o(({params:{len:e}})=>(0,Ir.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Ir._)`{limit: ${e}}`,"params")},Gx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:zx,code(e){let{gen:t,schema:r,data:n,it:i}=e,s=i.items||0;if(s===!0)return;let a=t.const("len",(0,Ir._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Ir._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Wm.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,Ir._)`${a} <= ${s}`);t.if((0,Ir.not)(c),()=>u(c,s)),e.ok(c)}i.items=!0;function u(c,l){t.forRange("i",l,a,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:Wm.Type.Num},c),i.allErrors||t.if((0,Ir.not)(c),()=>t.break())})}o(u,"validateItems")}};Rl.default=Gx});var Qm=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var Zx=Km(),Kx=Ym(),Wx=[Zx.default,Kx.default];Tl.default=Wx});var Jm=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.contentVocabulary=vn.metadataVocabulary=void 0;vn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var eg=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var Yx=Rm(),Qx=Cm(),Jx=al(),Xx=Vm(),ew=Gm(),tw=Qm(),rw=ll(),Xm=Jm(),nw=[Xx.default,Yx.default,Qx.default,(0,Jx.default)(!0),rw.default,Xm.metadataVocabulary,Xm.contentVocabulary,ew.default,tw.default];Cl.default=nw});var tg=m((iM,iw)=>{iw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var rg=m((oM,ow)=>{ow.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var ng=m((sM,sw)=>{sw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var ig=m((aM,aw)=>{aw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var og=m((uM,uw)=>{uw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var sg=m((cM,cw)=>{cw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var ag=m((lM,lw)=>{lw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var ug=m((fM,fw)=>{fw.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var cg=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var pw=tg(),dw=rg(),hw=ng(),mw=ig(),gw=og(),yw=sg(),vw=ag(),_w=ug(),bw=["/properties"];function Sw(e){return[pw,dw,hw,mw,gw,t(this,yw),vw,t(this,_w)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,bw):n}o(t,"with$data")}o(Sw,"addMetaSchema2020");Nl.default=Sw});var lg=m((B,jl)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Pw=hn(),$w=eg(),Ow=hl(),Ew=cg(),ql="https://json-schema.org/draft/2020-12/schema",Ml=class Ml extends Pw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),$w.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Ow.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Ew.default.call(this,t),this.refs["http://json-schema.org/schema"]=ql)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ql)?ql:void 0)}};o(Ml,"Ajv2020");var _n=Ml;B.Ajv2020=_n;jl.exports=B=_n;jl.exports.Ajv2020=_n;Object.defineProperty(B,"__esModule",{value:!0});B.default=_n;var xw=bi();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:o(function(){return xw.KeywordCxt},"get")});var bn=A();Object.defineProperty(B,"_",{enumerable:!0,get:o(function(){return bn._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:o(function(){return bn.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:o(function(){return bn.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:o(function(){return bn.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:o(function(){return bn.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:o(function(){return bn.CodeGen},"get")});var ww=Ho();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:o(function(){return ww.default},"get")});var Aw=Si();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:o(function(){return Aw.default},"get")})});var fg=m((mM,Iw)=>{Iw.exports={id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}});var pg=m((gM,kw)=>{kw.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}});var dg=m((yM,Rw)=>{Rw.exports={id:"https://spec.openapis.org/oas/3.0/schema/2019-04-02",$schema:"http://json-schema.org/draft-04/schema#",description:"Validation schema for OpenAPI Specification 3.0.X.",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{enum:["bearer"]}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{enum:["bearer"]}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/definitions/Header"}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},additionalProperties:!1}}}});var hg=m((vM,Tw)=>{Tw.exports={$id:"https://spec.openapis.org/oas/3.1/schema/2021-04-15",$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{$ref:"#/$defs/uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"}},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{type:"object",properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["name"],oneOf:[{required:["identifier"]},{required:["url"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{type:"object",properties:{url:{$ref:"#/$defs/uri"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},descriptions:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{type:"object",properties:{description:{type:"string"},url:{$ref:"#/$defs/uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content"}},required:["in"],oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["simple"]}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form"]}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},responses:{type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5][0-9X]{2}$":{$ref:"#/$defs/response-or-reference"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},response:{type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{$ref:"#/$defs/uri"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{type:"object",properties:{operationRef:{$ref:"#/$defs/uri"},operationId:!0,parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},allowEmptyValue:{default:!1,type:"boolean"}},dependentSchemas:{schema:{properties:{style:{default:"simple",enum:["simple"]},explode:{default:!1,type:"boolean"},allowReserved:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"}},$ref:"#/$defs/examples"},content:{properties:{content:{$ref:"#/$defs/content"}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{type:"object",properties:{$ref:{$ref:"#/$defs/uri"},summary:{type:"string"},description:{type:"string"}},unevaluatedProperties:!1},schema:{$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{const:"bearer"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}},required:["scheme"]}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{$ref:"#/$defs/uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},uri:{type:"string",format:"uri"},"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}});var mg=m((se,Sn)=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.openapi=se.openapiV31=se.openapiV3=se.openapiV2=se.openapiV1=void 0;se.openapiV1=fg();se.openapiV2=pg();se.openapiV3=dg();se.openapiV31=hg();se.openapi={v1:se.openapiV1,v2:se.openapiV2,v3:se.openapiV3,v31:se.openapiV31};se.default=se.openapi;typeof Sn=="object"&&typeof Sn.exports=="object"&&(Sn.exports=Object.assign(Sn.exports.default,Sn.exports))});var Fl=m((_M,gg)=>{"use strict";var Cw=Oo(),{ono:Nw}=Qe(),qw=Im(),jw=lg(),{openapi:Dl}=mg();gg.exports=Mw;function Mw(e){let t,r;if(e.swagger)r=Dl.v2,t=Ll();else if(e.openapi.startsWith("3.1")){r=Dl.v31;let i=r.$defs.schema;delete i.$dynamicAnchor,r.$defs.components.properties.schemas.additionalProperties=i,r.$defs.header.dependentSchemas.schema.properties.schema=i,r.$defs["media-type"].properties.schema=i,r.$defs.parameter.properties.schema=i,t=Ll(!1)}else r=Dl.v3,t=Ll();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
|
|
13
|
+
`+Dw(i);throw Nw.syntax(i,{details:i},s)}}o(Mw,"validateSchema");function Ll(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new qw(t):new jw(t)}o(Ll,"initializeAjv");function Dw(e,t){t=t||" ";let r="";for(let n of e)r+=Cw.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
|
|
14
|
+
`);return r}o(Dw,"formatAjvError")});var vg=m((SM,yg)=>{"use strict";yg.exports=["get","put","post","delete","options","head","patch"]});var Hl=m((PM,Pg)=>{"use strict";var Lw=Oo(),{ono:he}=Qe(),Fw=vg(),Vl=["array","boolean","integer","number","string"],bg=["array","boolean","integer","number","string","object","null",void 0];Pg.exports=Vw;function Vw(e){if(e.openapi)return;let t=Object.keys(e.paths||{}),r=[];for(let i of t){let s=e.paths[i],a="/paths"+i;s&&i.indexOf("/")===0&&Bw(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;Sg(s,a)}}o(Vw,"validateSpec");function Bw(e,t,r,n){for(let i of Fw){let s=t[i],a=r+"/"+i;if(s){let u=s.operationId;if(u)if(n.indexOf(u)===-1)n.push(u);else throw he.syntax(`Validation failed. Duplicate operation id '${u}'`);Hw(e,t,r,s,a);let c=Object.keys(s.responses||{});for(let l of c){let p=s.responses[l],f=a+"/responses/"+l;Zw(l,p||{},f)}}}}o(Bw,"validatePath");function Hw(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{_g(s)}catch(c){throw he.syntax(c,`Validation failed. ${r} has duplicate parameters`)}try{_g(a)}catch(c){throw he.syntax(c,`Validation failed. ${i} has duplicate parameters`)}let u=s.reduce((c,l)=>(c.some(f=>f.in===l.in&&f.name===l.name)||c.push(l),c),a.slice());Uw(u,i),zw(u,r,i),Gw(u,e,n,i)}o(Hw,"validateParameters");function Uw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw he.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw he.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(Uw,"validateBodyParameters");function zw(e,t,r){let n=t.match(Lw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw he.syntax(`Validation failed. ${r} has multiple path placeholders named ${n[i]}`);e=e.filter(i=>i.in==="path");for(let i of e){if(i.required!==!0)throw he.syntax(`Validation failed. Path parameters cannot be optional. Set required=true for the "${i.name}" parameter at ${r}`);let s=n.indexOf("{"+i.name+"}");if(s===-1)throw he.syntax(`Validation failed. ${r} has a path parameter named "${i.name}", but there is no corresponding {${i.name}} in the path string`);n.splice(s,1)}if(n.length>0)throw he.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(zw,"validatePathParameters");function Gw(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,u;switch(i.in){case"body":a=i.schema,u=bg;break;case"formData":a=i,u=Vl.concat("file");break;default:a=i,u=Vl}if(Bl(a,s,u),Sg(a,s),a.type==="file"){let c=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>c.test(d)||l.test(d)))throw he.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(Gw,"validateParameterTypes");function _g(e){for(let t=0;t<e.length-1;t++){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(r.name===i.name&&r.in===i.in)throw he.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(_g,"checkForDuplicates");function Zw(e,t,r){if(e!=="default"&&(e<100||e>599))throw he.syntax(`Validation failed. ${r} has an invalid response code (${e})`);let n=Object.keys(t.headers||{});for(let i of n){let s=t.headers[i],a=r+"/headers/"+i;Bl(s,a,Vl)}if(t.schema){let i=bg.concat("file");if(i.indexOf(t.schema.type)===-1)throw he.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Bl(t.schema,r+"/schema",i)}}o(Zw,"validateResponse");function Bl(e,t,r){if(r.indexOf(e.type)===-1)throw he.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw he.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Bl,"validateSchema");function Sg(e,t){function r(n,i){if(n.properties)for(let s in n.properties)n.properties.hasOwnProperty(s)&&(i[s]=n.properties[s]);if(n.allOf)for(let s of n.allOf)r(s,i)}if(o(r,"collectProperties"),e.required&&Array.isArray(e.required)){let n={};r(e,n);for(let i of e.required)if(!n[i])throw he.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(Sg,"validateRequiredPropertiesExist")});var nt=m(rt=>{"use strict";var{Ono:$g}=Qe(),{stripHash:Og,toFileSystemPath:Kw}=Ce(),Pn,Jt=rt.JSONParserError=(Pn=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,$g.extend(this)}},o(Pn,"JSONParserError"),Pn);Xt(Jt);var kr,Eg=rt.JSONParserErrorGroup=(kr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Kw(t.$refs._root$Ref.path)}'`,$g.extend(this)}static getParserErrors(t){let r=[];for(let n of Object.values(t.$refs._$refs))n.errors&&r.push(...n.errors);return r}get errors(){return kr.getParserErrors(this.files)}},o(kr,"JSONParserErrorGroup"),kr);Xt(Eg);var $n,Ww=rt.ParserError=($n=class extends Jt{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o($n,"ParserError"),$n);Xt(Ww);var On,Yw=rt.UnmatchedParserError=(On=class extends Jt{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(On,"UnmatchedParserError"),On);Xt(Yw);var En,Qw=rt.ResolverError=(En=class extends Jt{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(En,"ResolverError"),En);Xt(Qw);var xn,Jw=rt.UnmatchedResolverError=(xn=class extends Jt{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(xn,"UnmatchedResolverError"),xn);Xt(Jw);var wn,Xw=rt.MissingPointerError=(wn=class extends Jt{constructor(t,r){super(`Token "${t}" does not exist.`,Og(r)),this.code="EMISSINGPOINTER"}},o(wn,"MissingPointerError"),wn);Xt(Xw);var An,eA=rt.InvalidPointerError=(An=class extends Jt{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,Og(r)),this.code="EINVALIDPOINTER"}},o(An,"InvalidPointerError"),An);Xt(eA);function Xt(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(Xt,"setErrorName");rt.isHandledError=function(e){return e instanceof Jt||e instanceof Eg};rt.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var wg=m((xM,xg)=>{"use strict";var{ParserError:tA}=nt();xg.exports={order:100,allowEmpty:!0,canParse:".json",async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string"){if(t.trim().length===0)return;try{return JSON.parse(t)}catch(r){throw new tA(r.message,e.url)}}else return t}}});var Tr=m((wM,Rr)=>{"use strict";function Ag(e){return typeof e>"u"||e===null}o(Ag,"isNothing");function rA(e){return typeof e=="object"&&e!==null}o(rA,"isObject");function nA(e){return Array.isArray(e)?e:Ag(e)?[]:[e]}o(nA,"toArray");function iA(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}o(iA,"extend");function oA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(oA,"repeat");function sA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(sA,"isNegativeZero");Rr.exports.isNothing=Ag;Rr.exports.isObject=rA;Rr.exports.toArray=nA;Rr.exports.repeat=oA;Rr.exports.isNegativeZero=sA;Rr.exports.extend=iA});var In=m((IM,Ig)=>{"use strict";function Li(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(Li,"YAMLException");Li.prototype=Object.create(Error.prototype);Li.prototype.constructor=Li;Li.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");Ig.exports=Li});var Tg=m((RM,Rg)=>{"use strict";var kg=Tr();function Ul(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(Ul,"Mark");Ul.prototype.getSnippet=o(function(t,r){var n,i,s,a,u;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
15
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
|
|
16
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return u=this.buffer.slice(i,a),kg.repeat(" ",t)+n+u+s+`
|
|
17
|
+
`+kg.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");Ul.prototype.toString=o(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
18
|
+
`+r)),n},"toString");Rg.exports=Ul});var te=m((CM,Ng)=>{"use strict";var Cg=In(),aA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],uA=["scalar","sequence","mapping"];function cA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(cA,"compileStyleAliases");function lA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(aA.indexOf(r)===-1)throw new Cg('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=cA(t.styleAliases||null),uA.indexOf(this.kind)===-1)throw new Cg('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(lA,"Type");Ng.exports=lA});var Cr=m((qM,jg)=>{"use strict";var qg=Tr(),ps=In(),fA=te();function zl(e,t,r){var n=[];return e.include.forEach(function(i){r=zl(i,t,r)}),e[t].forEach(function(i){r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,s){return n.indexOf(s)===-1})}o(zl,"compileList");function pA(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(o(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}o(pA,"compileMap");function kn(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new ps("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=zl(this,"implicit",[]),this.compiledExplicit=zl(this,"explicit",[]),this.compiledTypeMap=pA(this.compiledImplicit,this.compiledExplicit)}o(kn,"Schema");kn.DEFAULT=null;kn.create=o(function(){var t,r;switch(arguments.length){case 1:t=kn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new ps("Wrong number of arguments for Schema.create function")}if(t=qg.toArray(t),r=qg.toArray(r),!t.every(function(n){return n instanceof kn}))throw new ps("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof fA}))throw new ps("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new kn({include:t,explicit:r})},"createSchema");jg.exports=kn});var Dg=m((MM,Mg)=>{"use strict";var dA=te();Mg.exports=new dA("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var Fg=m((LM,Lg)=>{"use strict";var hA=te();Lg.exports=new hA("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Bg=m((VM,Vg)=>{"use strict";var mA=te();Vg.exports=new mA("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var ds=m((HM,Hg)=>{"use strict";var gA=Cr();Hg.exports=new gA({explicit:[Dg(),Fg(),Bg()]})});var zg=m((UM,Ug)=>{"use strict";var yA=te();function vA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(vA,"resolveYamlNull");function _A(){return null}o(_A,"constructYamlNull");function bA(e){return e===null}o(bA,"isNull");Ug.exports=new yA("tag:yaml.org,2002:null",{kind:"scalar",resolve:vA,construct:_A,predicate:bA,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Zg=m((GM,Gg)=>{"use strict";var SA=te();function PA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}o(PA,"resolveYamlBoolean");function $A(e){return e==="true"||e==="True"||e==="TRUE"}o($A,"constructYamlBoolean");function OA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(OA,"isBoolean");Gg.exports=new SA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:PA,construct:$A,predicate:OA,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var Wg=m((KM,Kg)=>{"use strict";var EA=Tr(),xA=te();function wA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(wA,"isHexCode");function AA(e){return 48<=e&&e<=55}o(AA,"isOctCode");function IA(e){return 48<=e&&e<=57}o(IA,"isDecCode");function kA(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!wA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!AA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!IA(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(kA,"resolveYamlInteger");function RA(e){var t=e,r=1,n,i,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,i=1,s.forEach(function(a){t+=a*i,i*=60}),r*t):r*parseInt(t,10)}o(RA,"constructYamlInteger");function TA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!EA.isNegativeZero(e)}o(TA,"isInteger");Kg.exports=new xA("tag:yaml.org,2002:int",{kind:"scalar",resolve:kA,construct:RA,predicate:TA,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Jg=m((YM,Qg)=>{"use strict";var Yg=Tr(),CA=te(),NA=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qA(e){return!(e===null||!NA.test(e)||e[e.length-1]==="_")}o(qA,"resolveYamlFloat");function jA(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){i.unshift(parseFloat(s,10))}),t=0,n=1,i.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}o(jA,"constructYamlFloat");var MA=/^[-+]?[0-9]+e/;function DA(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Yg.isNegativeZero(e))return"-0.0";return r=e.toString(10),MA.test(r)?r.replace("e",".e"):r}o(DA,"representYamlFloat");function LA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Yg.isNegativeZero(e))}o(LA,"isFloat");Qg.exports=new CA("tag:yaml.org,2002:float",{kind:"scalar",resolve:qA,construct:jA,predicate:LA,represent:DA,defaultStyle:"lowercase"})});var Gl=m((JM,Xg)=>{"use strict";var FA=Cr();Xg.exports=new FA({include:[ds()],implicit:[zg(),Zg(),Wg(),Jg()]})});var Zl=m((XM,ey)=>{"use strict";var VA=Cr();ey.exports=new VA({include:[Gl()]})});var iy=m((e8,ny)=>{"use strict";var BA=te(),ty=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ry=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function HA(e){return e===null?!1:ty.exec(e)!==null||ry.exec(e)!==null}o(HA,"resolveYamlTimestamp");function UA(e){var t,r,n,i,s,a,u,c=0,l=null,p,f,d;if(t=ty.exec(e),t===null&&(t=ry.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],f=+(t[11]||0),l=(p*60+f)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,u,c)),l&&d.setTime(d.getTime()-l),d}o(UA,"constructYamlTimestamp");function zA(e){return e.toISOString()}o(zA,"representYamlTimestamp");ny.exports=new BA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:HA,construct:UA,instanceOf:Date,represent:zA})});var sy=m((r8,oy)=>{"use strict";var GA=te();function ZA(e){return e==="<<"||e===null}o(ZA,"resolveYamlMerge");oy.exports=new GA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ZA})});var cy=m((i8,uy)=>{"use strict";var Nr;try{ay=require,Nr=ay("buffer").Buffer}catch{}var ay,KA=te(),Kl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
19
|
+
\r`;function WA(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Kl;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}o(WA,"resolveYamlBinary");function YA(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Kl,a=0,u=[];for(t=0;t<i;t++)t%4===0&&t&&(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(u.push(a>>16&255),u.push(a>>8&255),u.push(a&255)):r===18?(u.push(a>>10&255),u.push(a>>2&255)):r===12&&u.push(a>>4&255),Nr?Nr.from?Nr.from(u):new Nr(u):u}o(YA,"constructYamlBinary");function QA(e){var t="",r=0,n,i,s=e.length,a=Kl;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}o(QA,"representYamlBinary");function JA(e){return Nr&&Nr.isBuffer(e)}o(JA,"isBinary");uy.exports=new KA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:WA,construct:YA,predicate:JA,represent:QA})});var fy=m((s8,ly)=>{"use strict";var XA=te(),eI=Object.prototype.hasOwnProperty,tI=Object.prototype.toString;function rI(e){if(e===null)return!0;var t=[],r,n,i,s,a,u=e;for(r=0,n=u.length;r<n;r+=1){if(i=u[r],a=!1,tI.call(i)!=="[object Object]")return!1;for(s in i)if(eI.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}o(rI,"resolveYamlOmap");function nI(e){return e!==null?e:[]}o(nI,"constructYamlOmap");ly.exports=new XA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rI,construct:nI})});var dy=m((u8,py)=>{"use strict";var iI=te(),oI=Object.prototype.toString;function sI(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],oI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(sI,"resolveYamlPairs");function aI(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}o(aI,"constructYamlPairs");py.exports=new iI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sI,construct:aI})});var my=m((l8,hy)=>{"use strict";var uI=te(),cI=Object.prototype.hasOwnProperty;function lI(e){if(e===null)return!0;var t,r=e;for(t in r)if(cI.call(r,t)&&r[t]!==null)return!1;return!0}o(lI,"resolveYamlSet");function fI(e){return e!==null?e:{}}o(fI,"constructYamlSet");hy.exports=new uI("tag:yaml.org,2002:set",{kind:"mapping",resolve:lI,construct:fI})});var Rn=m((p8,gy)=>{"use strict";var pI=Cr();gy.exports=new pI({include:[Zl()],implicit:[iy(),sy()],explicit:[cy(),fy(),dy(),my()]})});var vy=m((d8,yy)=>{"use strict";var dI=te();function hI(){return!0}o(hI,"resolveJavascriptUndefined");function mI(){}o(mI,"constructJavascriptUndefined");function gI(){return""}o(gI,"representJavascriptUndefined");function yI(e){return typeof e>"u"}o(yI,"isUndefined");yy.exports=new dI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:hI,construct:mI,predicate:yI,represent:gI})});var by=m((m8,_y)=>{"use strict";var vI=te();function _I(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}o(_I,"resolveJavascriptRegExp");function bI(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}o(bI,"constructJavascriptRegExp");function SI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(SI,"representJavascriptRegExp");function PI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(PI,"isRegExp");_y.exports=new vI("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:_I,construct:bI,predicate:PI,represent:SI})});var $y=m((y8,Py)=>{"use strict";var hs;try{Sy=require,hs=Sy("esprima")}catch{typeof window<"u"&&(hs=window.esprima)}var Sy,$I=te();function OI(e){if(e===null)return!1;try{var t="("+e+")",r=hs.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}o(OI,"resolveJavascriptFunction");function EI(e){var t="("+e+")",r=hs.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}o(EI,"constructJavascriptFunction");function xI(e){return e.toString()}o(xI,"representJavascriptFunction");function wI(e){return Object.prototype.toString.call(e)==="[object Function]"}o(wI,"isFunction");Py.exports=new $I("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:OI,construct:EI,predicate:wI,represent:xI})});var Fi=m((_8,Ey)=>{"use strict";var Oy=Cr();Ey.exports=Oy.DEFAULT=new Oy({include:[Rn()],explicit:[vy(),by(),$y()]})});var Uy=m((b8,Vi)=>{"use strict";var qt=Tr(),Ty=In(),AI=Tg(),Cy=Rn(),II=Fi(),tr=Object.prototype.hasOwnProperty,ms=1,Ny=2,qy=3,gs=4,Wl=1,kI=2,xy=3,RI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,TI=/[\x85\u2028\u2029]/,CI=/[,\[\]\{\}]/,jy=/^(?:!|!!|![a-z\-]+!)$/i,My=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function wy(e){return Object.prototype.toString.call(e)}o(wy,"_class");function vt(e){return e===10||e===13}o(vt,"is_EOL");function jr(e){return e===9||e===32}o(jr,"is_WHITE_SPACE");function ke(e){return e===9||e===32||e===10||e===13}o(ke,"is_WS_OR_EOL");function Tn(e){return e===44||e===91||e===93||e===123||e===125}o(Tn,"is_FLOW_INDICATOR");function NI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(NI,"fromHexCode");function qI(e){return e===120?2:e===117?4:e===85?8:0}o(qI,"escapedHexLen");function jI(e){return 48<=e&&e<=57?e-48:-1}o(jI,"fromDecimalCode");function Ay(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
20
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}o(Ay,"simpleEscapeSequence");function MI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(MI,"charFromCodepoint");var Dy=new Array(256),Ly=new Array(256);for(qr=0;qr<256;qr++)Dy[qr]=Ay(qr)?1:0,Ly[qr]=Ay(qr);var qr;function DI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||II,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}o(DI,"State");function Fy(e,t){return new Ty(t,new AI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(Fy,"generateError");function x(e,t){throw Fy(e,t)}o(x,"throwError");function ys(e,t){e.onWarning&&e.onWarning.call(null,Fy(e,t))}o(ys,"throwWarning");var Iy={YAML:o(function(t,r,n){var i,s,a;t.version!==null&&x(t,"duplication of %YAML directive"),n.length!==1&&x(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&x(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&x(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&ys(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,s;n.length!==2&&x(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],jy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),tr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),My.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function er(e,t,r,n){var i,s,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(i=0,s=u.length;i<s;i+=1)a=u.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else RI.test(u)&&x(e,"the stream contains non-printable characters");e.result+=u}}o(er,"captureSegment");function ky(e,t,r,n){var i,s,a,u;for(qt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,u=i.length;a<u;a+=1)s=i[a],tr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(ky,"mergeMappings");function Cn(e,t,r,n,i,s,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&wy(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&wy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)ky(e,t,s[c],r);else ky(e,t,s,r);else!e.json&&!tr.call(r,i)&&tr.call(t,i)&&(e.line=a||e.line,e.position=u||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(Cn,"storeMappingPair");function Yl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):x(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}o(Yl,"readLineBreak");function J(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;jr(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(vt(i))for(Yl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ys(e,"deficient indentation"),n}o(J,"skipSeparationSpace");function vs(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ke(r)))}o(vs,"testDocumentSeparator");function Ql(e,t){t===1?e.result+=" ":t>1&&(e.result+=qt.repeat(`
|
|
21
|
+
`,t-1))}o(Ql,"writeFoldedLines");function LI(e,t,r){var n,i,s,a,u,c,l,p,f=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),ke(h)||Tn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,u=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),ke(i)||r&&Tn(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),ke(n))break}else{if(e.position===e.lineStart&&vs(e)||r&&Tn(h))break;if(vt(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,J(e,!1,-1),e.lineIndent>=t){u=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=l,e.lineIndent=p;break}}u&&(er(e,s,a,!1),Ql(e,e.line-c),s=a=e.position,u=!1),jr(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return er(e,s,a,!1),e.result?!0:(e.kind=f,e.result=d,!1)}o(LI,"readPlainScalar");function FI(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(er(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else vt(r)?(er(e,n,i,!0),Ql(e,J(e,!1,t)),n=i=e.position):e.position===e.lineStart&&vs(e)?x(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);x(e,"unexpected end of the stream within a single quoted scalar")}o(FI,"readSingleQuotedScalar");function VI(e,t){var r,n,i,s,a,u;if(u=e.input.charCodeAt(e.position),u!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(u=e.input.charCodeAt(e.position))!==0;){if(u===34)return er(e,r,e.position,!0),e.position++,!0;if(u===92){if(er(e,r,e.position,!0),u=e.input.charCodeAt(++e.position),vt(u))J(e,!1,t);else if(u<256&&Dy[u])e.result+=Ly[u],e.position++;else if((a=qI(u))>0){for(i=a,s=0;i>0;i--)u=e.input.charCodeAt(++e.position),(a=NI(u))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=MI(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else vt(u)?(er(e,r,n,!0),Ql(e,J(e,!1,t)),r=n=e.position):e.position===e.lineStart&&vs(e)?x(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}x(e,"unexpected end of the stream within a double quoted scalar")}o(VI,"readDoubleQuotedScalar");function BI(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,u,c,l,p,f,d={},h,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,f=!1,s=[];else if(v===123)c=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(J(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=i,e.anchor=a,e.kind=f?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=h=y=null,l=p=!1,v===63&&(u=e.input.charCodeAt(e.position+1),ke(u)&&(l=p=!0,e.position++,J(e,!0,t))),n=e.line,Nn(e,t,ms,!1,!0),g=e.tag,h=e.result,J(e,!0,t),v=e.input.charCodeAt(e.position),(p||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),J(e,!0,t),Nn(e,t,ms,!1,!0),y=e.result),f?Cn(e,s,d,g,h,y):l?s.push(Cn(e,null,d,g,h,y)):s.push(h),J(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}x(e,"unexpected end of the stream within a flow collection")}o(BI,"readFlowCollection");function HI(e,t){var r,n,i=Wl,s=!1,a=!1,u=t,c=0,l=!1,p,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Wl===i?i=f===43?xy:kI:x(e,"repeat of a chomping mode identifier");else if((p=jI(f))>=0)p===0?x(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?x(e,"repeat of an indentation width identifier"):(u=t+p-1,a=!0);else break;if(jr(f)){do f=e.input.charCodeAt(++e.position);while(jr(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!vt(f)&&f!==0)}for(;f!==0;){for(Yl(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<u)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>u&&(u=e.lineIndent),vt(f)){c++;continue}if(e.lineIndent<u){i===xy?e.result+=qt.repeat(`
|
|
22
|
+
`,s?1+c:c):i===Wl&&s&&(e.result+=`
|
|
23
|
+
`);break}for(n?jr(f)?(l=!0,e.result+=qt.repeat(`
|
|
24
|
+
`,s?1+c:c)):l?(l=!1,e.result+=qt.repeat(`
|
|
25
|
+
`,c+1)):c===0?s&&(e.result+=" "):e.result+=qt.repeat(`
|
|
26
|
+
`,c):e.result+=qt.repeat(`
|
|
27
|
+
`,s?1+c:c),s=!0,a=!0,c=0,r=e.position;!vt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);er(e,r,e.position,!1)}return!0}o(HI,"readBlockScalar");function Ry(e,t){var r,n=e.tag,i=e.anchor,s=[],a,u=!1,c;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(a=e.input.charCodeAt(e.position+1),!ke(a)));){if(u=!0,e.position++,J(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Nn(e,t,qy,!1,!0),s.push(e.result),J(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return u?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(Ry,"readBlockSequence");function UI(e,t,r){var n,i,s,a,u=e.tag,c=e.anchor,l={},p={},f=null,d=null,h=null,g=!1,y=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(v===63||v===58)&&ke(n))v===63?(g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!0,i=!0):g?(g=!1,i=!0):x(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Nn(e,r,Ny,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);jr(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),ke(v)||x(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Cn(e,l,p,f,d,null),f=d=h=null),y=!0,g=!1,i=!1,f=e.tag,d=e.result;else if(y)x(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(y)x(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0;else break;if((e.line===s||e.lineIndent>t)&&(Nn(e,t,gs,!0,i)&&(g?d=e.result:h=e.result),g||(Cn(e,l,p,f,d,h,s,a),f=d=h=null),J(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)x(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Cn(e,l,p,f,d,null),y&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=l),y}o(UI,"readBlockMapping");function zI(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&x(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):x(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ke(a);)a===33&&(n?x(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),jy.test(i)||x(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),CI.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!My.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:tr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:x(e,'undeclared tag handle "'+i+'"'),!0}o(zI,"readTagProperty");function GI(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&x(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ke(r)&&!Tn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}o(GI,"readAnchorProperty");function ZI(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ke(n)&&!Tn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&x(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),tr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],J(e,!0,-1),!0}o(ZI,"readAlias");function Nn(e,t,r,n,i){var s,a,u,c=1,l=!1,p=!1,f,d,h,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=u=gs===r||qy===r,n&&J(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;zI(e)||GI(e);)J(e,!0,-1)?(l=!0,u=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):u=!1;if(u&&(u=l||i),(c===1||gs===r)&&(ms===r||Ny===r?g=t:g=t+1,y=e.position-e.lineStart,c===1?u&&(Ry(e,y)||UI(e,y,g))||BI(e,g)?p=!0:(a&&HI(e,g)||FI(e,g)||VI(e,g)?p=!0:ZI(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):LI(e,g,ms===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=u&&Ry(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&x(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,d=e.implicitTypes.length;f<d;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else tr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):x(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):x(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}o(Nn,"composeNode");function KI(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(J(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&x(e,"directive name must not be less than one character in length");a!==0;){for(;jr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!vt(a));break}if(vt(a))break;for(r=e.position;a!==0&&!ke(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Yl(e),tr.call(Iy,n)?Iy[n](e,n,i):ys(e,'unknown document directive "'+n+'"')}if(J(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,J(e,!0,-1)):s&&x(e,"directives end mark is expected"),Nn(e,e.lineIndent-1,gs,!1,!0),J(e,!0,-1),e.checkLineBreaks&&TI.test(e.input.slice(t,e.position))&&ys(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,J(e,!0,-1));return}if(e.position<e.length-1)x(e,"end of the stream or a document separator is expected");else return}o(KI,"readDocument");function Vy(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
28
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new DI(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,x(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)KI(r);return r.documents}o(Vy,"loadDocuments");function By(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Vy(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(By,"loadAll");function Hy(e,t){var r=Vy(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ty("expected a single document in the stream, but found more")}}o(Hy,"load");function WI(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),By(e,t,qt.extend({schema:Cy},r))}o(WI,"safeLoadAll");function YI(e,t){return Hy(e,qt.extend({schema:Cy},t))}o(YI,"safeLoad");Vi.exports.loadAll=By;Vi.exports.load=Hy;Vi.exports.safeLoadAll=WI;Vi.exports.safeLoad=YI});var d0=m((P8,tf)=>{"use strict";var Hi=Tr(),Ui=In(),QI=Fi(),JI=Rn(),Jy=Object.prototype.toString,Xy=Object.prototype.hasOwnProperty,XI=9,Bi=10,ek=13,tk=32,rk=33,nk=34,e0=35,ik=37,ok=38,sk=39,ak=42,t0=44,uk=45,r0=58,ck=61,lk=62,fk=63,pk=64,n0=91,i0=93,dk=96,o0=123,hk=124,s0=125,me={};me[0]="\\0";me[7]="\\a";me[8]="\\b";me[9]="\\t";me[10]="\\n";me[11]="\\v";me[12]="\\f";me[13]="\\r";me[27]="\\e";me[34]='\\"';me[92]="\\\\";me[133]="\\N";me[160]="\\_";me[8232]="\\L";me[8233]="\\P";var mk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function gk(e,t){var r,n,i,s,a,u,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],u=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&Xy.call(c.styleAliases,u)&&(u=c.styleAliases[u]),r[a]=u;return r}o(gk,"compileStyleMap");function zy(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Ui("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Hi.repeat("0",n-t.length)+t}o(zy,"encodeHex");function yk(e){this.schema=e.schema||QI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Hi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(yk,"State");function Gy(e,t){for(var r=Hi.repeat(" ",t),n=0,i=-1,s="",a,u=e.length;n<u;)i=e.indexOf(`
|
|
29
|
+
`,n),i===-1?(a=e.slice(n),n=u):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
30
|
+
`&&(s+=r),s+=a;return s}o(Gy,"indentString");function Jl(e,t){return`
|
|
31
|
+
`+Hi.repeat(" ",e.indent*t)}o(Jl,"generateNextLine");function vk(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}o(vk,"testImplicitResolving");function ef(e){return e===tk||e===XI}o(ef,"isWhitespace");function qn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}o(qn,"isPrintable");function _k(e){return qn(e)&&!ef(e)&&e!==65279&&e!==ek&&e!==Bi}o(_k,"isNsChar");function Zy(e,t){return qn(e)&&e!==65279&&e!==t0&&e!==n0&&e!==i0&&e!==o0&&e!==s0&&e!==r0&&(e!==e0||t&&_k(t))}o(Zy,"isPlainSafe");function bk(e){return qn(e)&&e!==65279&&!ef(e)&&e!==uk&&e!==fk&&e!==r0&&e!==t0&&e!==n0&&e!==i0&&e!==o0&&e!==s0&&e!==e0&&e!==ok&&e!==ak&&e!==rk&&e!==hk&&e!==ck&&e!==lk&&e!==sk&&e!==nk&&e!==ik&&e!==pk&&e!==dk}o(bk,"isPlainSafeFirst");function a0(e){var t=/^\n* /;return t.test(e)}o(a0,"needIndentIndicator");var u0=1,c0=2,l0=3,f0=4,_s=5;function Sk(e,t,r,n,i){var s,a,u,c=!1,l=!1,p=n!==-1,f=-1,d=bk(e.charCodeAt(0))&&!ef(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!qn(a))return _s;u=s>0?e.charCodeAt(s-1):null,d=d&&Zy(a,u)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Bi)c=!0,p&&(l=l||s-f-1>n&&e[f+1]!==" ",f=s);else if(!qn(a))return _s;u=s>0?e.charCodeAt(s-1):null,d=d&&Zy(a,u)}l=l||p&&s-f-1>n&&e[f+1]!==" "}return!c&&!l?d&&!i(e)?u0:c0:r>9&&a0(e)?_s:l?f0:l0}o(Sk,"chooseScalarStyle");function Pk(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&mk.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return vk(e,c)}switch(o(u,"testAmbiguity"),Sk(t,a,e.indent,s,u)){case u0:return t;case c0:return"'"+t.replace(/'/g,"''")+"'";case l0:return"|"+Ky(t,e.indent)+Wy(Gy(t,i));case f0:return">"+Ky(t,e.indent)+Wy(Gy($k(t,s),i));case _s:return'"'+Ok(t,s)+'"';default:throw new Ui("impossible error: invalid scalar style")}}()}o(Pk,"writeScalar");function Ky(e,t){var r=a0(e)?String(t):"",n=e[e.length-1]===`
|
|
32
32
|
`,i=n&&(e[e.length-2]===`
|
|
33
33
|
`||e===`
|
|
34
|
-
`),
|
|
35
|
-
`}
|
|
36
|
-
`?e.slice(0,-1):e}
|
|
37
|
-
`);return
|
|
38
|
-
`||e[0]===" ",
|
|
39
|
-
`:"")+
|
|
40
|
-
`+e.slice(i,
|
|
41
|
-
`,e.length-i>t&&a>i?
|
|
42
|
-
`+e.slice(a+1):
|
|
43
|
-
`:""}
|
|
34
|
+
`),s=i?"+":n?"":"-";return r+s+`
|
|
35
|
+
`}o(Ky,"blockHeader");function Wy(e){return e[e.length-1]===`
|
|
36
|
+
`?e.slice(0,-1):e}o(Wy,"dropEndingNewline");function $k(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
|
|
37
|
+
`);return l=l!==-1?l:e.length,r.lastIndex=l,Yy(e.slice(0,l),t)}(),i=e[0]===`
|
|
38
|
+
`||e[0]===" ",s,a;a=r.exec(e);){var u=a[1],c=a[2];s=c[0]===" ",n+=u+(!i&&!s&&c!==""?`
|
|
39
|
+
`:"")+Yy(c,t),i=s}return n}o($k,"foldString");function Yy(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,u=0,c="";n=r.exec(e);)u=n.index,u-i>t&&(s=a>i?a:u,c+=`
|
|
40
|
+
`+e.slice(i,s),i=s+1),a=u;return c+=`
|
|
41
|
+
`,e.length-i>t&&a>i?c+=e.slice(i,a)+`
|
|
42
|
+
`+e.slice(a+1):c+=e.slice(i),c.slice(1)}o(Yy,"foldLine");function Ok(e){for(var t="",r,n,i,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=zy((r-55296)*1024+n-56320+65536),s++;continue}i=me[r],t+=!i&&qn(r)?e[s]:i||zy(r)}return t}o(Ok,"escapeString");function Ek(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Mr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(Ek,"writeFlowSequence");function xk(e,t,r,n){var i="",s=e.tag,a,u;for(a=0,u=r.length;a<u;a+=1)Mr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Jl(e,t)),e.dump&&Bi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(xk,"writeBlockSequence");function wk(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,u,c,l,p;for(a=0,u=s.length;a<u;a+=1)p="",a!==0&&(p+=", "),e.condenseFlow&&(p+='"'),c=s[a],l=r[c],Mr(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Mr(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=i,e.dump="{"+n+"}"}o(wk,"writeFlowMapping");function Ak(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),u,c,l,p,f,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Ui("sortKeys must be a boolean or a function");for(u=0,c=a.length;u<c;u+=1)d="",(!n||u!==0)&&(d+=Jl(e,t)),l=a[u],p=r[l],Mr(e,t+1,l,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Bi===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=Jl(e,t)),Mr(e,t+1,p,!0,f)&&(e.dump&&Bi===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(Ak,"writeBlockMapping");function Qy(e,t,r){var n,i,s,a,u,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(u=i[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t=="object"&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(c=e.styleMap[u.tag]||u.defaultStyle,Jy.call(u.represent)==="[object Function]")n=u.represent(t,c);else if(Xy.call(u.represent,c))n=u.represent[c](t,c);else throw new Ui("!<"+u.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}o(Qy,"detectType");function Mr(e,t,r,n,i,s){e.tag=null,e.dump=r,Qy(e,r,!1)||Qy(e,r,!0);var a=Jy.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",c,l;if(u&&(c=e.duplicates.indexOf(r),l=c!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(u&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(Ak(e,t,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(wk(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if(a==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(xk(e,p,e.dump,i),l&&(e.dump="&ref_"+c+e.dump)):(Ek(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&Pk(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Ui("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Mr,"writeNode");function Ik(e,t){var r=[],n=[],i,s;for(Xl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o(Ik,"getDuplicateReferences");function Xl(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Xl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Xl(e[n[i]],t,r)}o(Xl,"inspectNode");function p0(e,t){t=t||{};var r=new yk(t);return r.noRefs||Ik(e,r),Mr(r,0,e,!0,!0)?r.dump+`
|
|
43
|
+
`:""}o(p0,"dump");function kk(e,t){return p0(e,Hi.extend({schema:JI},t))}o(kk,"safeDump");tf.exports.dump=p0;tf.exports.safeDump=kk});var m0=m((O8,K)=>{"use strict";var bs=Uy(),h0=d0();function Ss(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(Ss,"deprecated");K.exports.Type=te();K.exports.Schema=Cr();K.exports.FAILSAFE_SCHEMA=ds();K.exports.JSON_SCHEMA=Gl();K.exports.CORE_SCHEMA=Zl();K.exports.DEFAULT_SAFE_SCHEMA=Rn();K.exports.DEFAULT_FULL_SCHEMA=Fi();K.exports.load=bs.load;K.exports.loadAll=bs.loadAll;K.exports.safeLoad=bs.safeLoad;K.exports.safeLoadAll=bs.safeLoadAll;K.exports.dump=h0.dump;K.exports.safeDump=h0.safeDump;K.exports.YAMLException=In();K.exports.MINIMAL_SCHEMA=ds();K.exports.SAFE_SCHEMA=Rn();K.exports.DEFAULT_SCHEMA=Fi();K.exports.scan=Ss("scan");K.exports.parse=Ss("parse");K.exports.compose=Ss("compose");K.exports.addConstructor=Ss("addConstructor")});var y0=m((x8,g0)=>{"use strict";var Rk=m0();g0.exports=Rk});var _0=m((w8,v0)=>{"use strict";var{ParserError:Tk}=nt(),Ck=y0();v0.exports={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return Ck.safeLoad(t)}catch(r){throw new Tk(r.message,e.url)}else return t}}});var S0=m((A8,b0)=>{"use strict";var{ParserError:Nk}=nt(),qk=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;b0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&qk.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new Nk("data is not text",e.url)}}});var $0=m((I8,P0)=>{"use strict";var jk=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;P0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&jk.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var x0=m((k8,E0)=>{"use strict";var Mk=require("fs"),{ono:rf}=Qe(),O0=Ce(),{ResolverError:nf}=nt();E0.exports={order:100,canRead(e){return O0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=O0.toFileSystemPath(e.url)}catch(i){r(new nf(rf.uri(i,`Malformed URI: ${e.url}`),e.url))}try{Mk.readFile(n,(i,s)=>{i?r(new nf(rf(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new nf(rf(i,`Error opening file "${n}"`),n))}})}}});var k0=m((R8,I0)=>{"use strict";var Dk=require("http"),Lk=require("https"),{ono:Ps}=Qe(),zi=Ce(),{ResolverError:w0}=nt();I0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return zi.isHttp(e.url)},read(e){let t=zi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=zi.parse(location.href).protocol),A0(t,this)}};function A0(e,t,r){return new Promise((n,i)=>{e=zi.parse(e),r=r||[],r.push(e.href),Fk(e,t).then(s=>{if(s.statusCode>=400)throw Ps({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new w0(Ps({status:s.statusCode},`Error downloading ${r[0]}.
|
|
44
44
|
Too many redirects:
|
|
45
45
|
${r.join(`
|
|
46
|
-
`)}`)));else if(
|
|
47
|
-
Cannot set "${t}" of a non-object.`);return r}
|
|
48
|
-
"${n}" not found.`);i.set(r,t)};
|
|
49
|
-
"${i}" not found.`);return
|
|
50
|
-
Parsed value is empty`)):n(l)}s(u,"onParsed");function f(l){!l&&t.continueOnError?i(new dE(e.url)):!l||!("error"in l)?i(zc.syntax(`Unable to parse ${e.url}`)):l.error instanceof xh?i(l.error):i(new xh(l.error.message,e.url))}s(f,"onError")})}s($E,"parseFile");function vE(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}s(vE,"isEmpty")});var qh=h((SR,Ah)=>{"use strict";var Eh=Br(),bE=Ln(),_E=Uc(),Un=$e(),{isHandledError:PE}=Re();Ah.exports=SE;function SE(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=Bc(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(SE,"resolveExternal");function Bc(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(Eh.isExternal$Ref(e))i.push(jh(e,t,r,n));else for(let o of Object.keys(e)){let a=bE.join(t,o),c=e[o];Eh.isExternal$Ref(c)?i.push(jh(c,a,r,n)):i=i.concat(Bc(c,a,r,n))}return i}s(Bc,"crawl");async function jh(e,t,r,n){let i=Un.resolve(t,e.$ref),o=Un.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await _E(i,r,n),c=Bc(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!PE(a))throw a;return r._$refs[o]&&(a.source=Un.stripHash(t),a.path=Un.safePointerToPath(Un.getHash(t))),[]}}s(jh,"resolve$Ref")});var Rh=h((xR,Th)=>{"use strict";var Xi=Br(),Bn=Ln(),Hc=$e();Th.exports=OE;function OE(e,t){let r=[];Gc(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),xE(r)}s(OE,"bundle");function Gc(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(Xi.isAllowed$Ref(u))Ih(e,t,r,n,i,o,a,c);else{let f=Object.keys(u).sort((l,p)=>l==="definitions"?-1:p==="definitions"?1:l.length-p.length);for(let l of f){let p=Bn.join(r,l),m=Bn.join(n,l),d=u[l];Xi.isAllowed$Ref(d)?Ih(u,l,r,m,i,o,a,c):Gc(u,l,p,m,i,o,a,c)}}}s(Gc,"crawl");function Ih(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],f=Hc.resolve(r,u.$ref),l=a._resolve(f,n,c);if(l===null)return;let p=Bn.parse(n).length,m=Hc.stripHash(l.path),d=Hc.getHash(l.path),y=m!==a._root$Ref.path,$=Xi.isExtended$Ref(u);i+=l.indirections;let g=wE(o,e,t);if(g)if(p<g.depth||i<g.indirections)EE(o,g);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:m,hash:d,value:l.value,circular:l.circular,extended:$,external:y,indirections:i}),g||Gc(l.value,null,l.path,n,i+1,o,a,c)}s(Ih,"inventory$Ref");function xE(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),c=o.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Bn.join(n,Bn.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Xi.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(xE,"remap");function wE(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}s(wE,"findInInventory");function EE(e,t){let r=e.indexOf(t);e.splice(r,1)}s(EE,"removeFromInventory")});var Wc=h((ER,Mh)=>{"use strict";var Zc=Br(),Nh=Ln(),{ono:jE}=Ee(),AE=$e();Mh.exports=qE;function qE(e,t){let r=Kc(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(qE,"dereference");function Kc(e,t,r,n,i,o){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),Zc.isAllowed$Ref(e,o))a=kh(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let f=Nh.join(t,u),l=Nh.join(r,u),p=e[u],m=!1;Zc.isAllowed$Ref(p,o)?(a=kh(p,f,l,n,i,o),m=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=Kc(p,f,l,n,i,o),m=a.circular,e[u]!==a.value&&(e[u]=a.value)):m=Ch(f,i,o),c.circular=c.circular||m}n.pop()}return c}s(Kc,"crawl");function kh(e,t,r,n,i,o){let a=AE.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,f=u||n.indexOf(c.value)!==-1;f&&Ch(t,i,o);let l=Zc.dereference(e,c.value);if(!f){let p=Kc(l,c.path,r,n,i,o);f=p.circular,l=p.value}return f&&!u&&o.dereference.circular==="ignore"&&(l=e),u&&(l.$ref=r),{circular:f,value:l}}s(kh,"dereference$Ref");function Ch(e,t,r){if(t.circular=!0,!r.dereference.circular)throw jE.reference(`Circular $ref pointer found at ${e}`);return!0}s(Ch,"foundCircularReference")});var Lh=h((AR,Ge)=>{"use strict";var Vh=bh(),IE=Uc(),Qi=Mc(),TE=qh(),RE=Rh(),NE=Wc(),Hr=$e(),{JSONParserError:kE,InvalidPointerError:CE,MissingPointerError:ME,ResolverError:DE,ParserError:FE,UnmatchedParserError:VE,UnmatchedResolverError:LE,isHandledError:zE,JSONParserErrorGroup:Dh}=Re(),ke=Fc(),{ono:Fh}=Ee();Ge.exports=He;Ge.exports.default=He;Ge.exports.JSONParserError=kE;Ge.exports.InvalidPointerError=CE;Ge.exports.MissingPointerError=ME;Ge.exports.ResolverError=DE;Ge.exports.ParserError=FE;Ge.exports.UnmatchedParserError=VE;Ge.exports.UnmatchedResolverError=LE;function He(){this.schema=null,this.$refs=new Vh}s(He,"$RefParser");He.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");He.prototype.parse=s(async function(t,r,n,i){let o=Qi(arguments),a;if(!o.path&&!o.schema){let f=Fh(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return ke(o.callback,Promise.reject(f))}this.schema=null,this.$refs=new Vh;let c="http";if(Hr.isFileSystemPath(o.path)&&(o.path=Hr.fromFileSystemPath(o.path),c="file"),o.path=Hr.resolve(Hr.cwd(),o.path),o.schema&&typeof o.schema=="object"){let f=this.$refs._add(o.path);f.value=o.schema,f.pathType=c,a=Promise.resolve(o.schema)}else a=IE(o.path,this.$refs,o.options);let u=this;try{let f=await a;if(f!==null&&typeof f=="object"&&!Buffer.isBuffer(f))return u.schema=f,ke(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,ke(o.callback,Promise.resolve(u.schema));throw Fh.syntax(`"${u.$refs._root$Ref.path||f}" is not a valid JSON Schema`)}catch(f){return!o.options.continueOnError||!zE(f)?ke(o.callback,Promise.reject(f)):(this.$refs._$refs[Hr.stripHash(o.path)]&&this.$refs._$refs[Hr.stripHash(o.path)].addError(f),ke(o.callback,Promise.resolve(null)))}},"parse");He.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");He.prototype.resolve=s(async function(t,r,n,i){let o=this,a=Qi(arguments);try{return await this.parse(a.path,a.schema,a.options),await TE(o,a.options),Yc(o),ke(a.callback,Promise.resolve(o.$refs))}catch(c){return ke(a.callback,Promise.reject(c))}},"resolve");He.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");He.prototype.bundle=s(async function(t,r,n,i){let o=this,a=Qi(arguments);try{return await this.resolve(a.path,a.schema,a.options),RE(o,a.options),Yc(o),ke(a.callback,Promise.resolve(o.schema))}catch(c){return ke(a.callback,Promise.reject(c))}},"bundle");He.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");He.prototype.dereference=s(async function(t,r,n,i){let o=this,a=Qi(arguments);try{return await this.resolve(a.path,a.schema,a.options),NE(o,a.options),Yc(o),ke(a.callback,Promise.resolve(o.schema))}catch(c){return ke(a.callback,Promise.reject(c))}},"dereference");function Yc(e){if(Dh.getParserErrors(e).length>0)throw new Dh(e)}s(Yc,"finalize")});var Gh=h((IR,Hh)=>{"use strict";var UE=yc(),BE=vc(),zh=Mc(),Uh=Jn(),Bh=sh(),eo=Fc(),{ono:Ce}=Ee(),Qt=Lh(),HE=Wc();Hh.exports=Ze;function Ze(){Qt.apply(this,arguments)}s(Ze,"SwaggerParser");Uh.inherits(Ze,Qt);Ze.parse=Qt.parse;Ze.resolve=Qt.resolve;Ze.bundle=Qt.bundle;Ze.dereference=Qt.dereference;Object.defineProperty(Ze.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});Ze.prototype.parse=async function(e,t,r,n){let i=zh(arguments);i.options=new Bh(i.options);try{let o=await Qt.prototype.parse.call(this,i.path,i.schema,i.options);if(o.swagger){if(o.swagger===void 0||o.info===void 0||o.paths===void 0)throw Ce.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw Ce.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw Ce.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw Ce.syntax(`Unrecognized Swagger version: ${o.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(o.openapi===void 0||o.info===void 0)throw Ce.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(o.paths===void 0)if(o.openapi==="3.1.0"){if(o.webhooks===void 0)throw Ce.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw Ce.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw Ce.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw Ce.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw Ce.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}Uh.fixOasRelativeServers(o,i.path)}return eo(i.callback,Promise.resolve(o))}catch(o){return eo(i.callback,Promise.reject(o))}};Ze.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};Ze.prototype.validate=async function(e,t,r,n){let i=this,o=zh(arguments);o.options=new Bh(o.options);let a=o.options.dereference.circular;o.options.validate.schema&&(o.options.dereference.circular="ignore");try{if(await this.dereference(o.path,o.schema,o.options),o.options.dereference.circular=a,o.options.validate.schema&&(UE(i.api),i.$refs.circular)){if(a===!0)HE(i,o.options);else if(a===!1)throw Ce.reference("The API contains circular references")}return o.options.validate.spec&&BE(i.api),eo(o.callback,Promise.resolve(i.schema))}catch(c){return eo(o.callback,Promise.reject(c))}}});var Sj={};Wy(Sj,{getGenerateMetadata:()=>Pj});module.exports=Jy(Sj);var Uy=Yy(Gh());var Zh="Schema",Kh="Body",Wh="Param",Yh="Response",Jh="ErrorResponse",Jc="z.void()";var Xh={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:Zh,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ke=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),to=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Xc=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Me=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Qh=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),ey=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),ty=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix");var ry=s(e=>`use${Ke(Me(e.operationName))}`,"getQueryName");function ro({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${to(t)}/`:""}${to(t)}.${i}`:i}s(ro,"getTagFileName");var er=s(({type:e,tag:t,options:r})=>`${Ke(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var tr=s(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var ot=Symbol.for("@ts-pattern/matcher"),GE=Symbol.for("@ts-pattern/isVariadic"),io="@ts-pattern/anonymous-select-key",Qc=s(e=>!!(e&&typeof e=="object"),"r"),no=s(e=>e&&!!e[ot],"i"),Je=s((e,t,r)=>{if(no(e)){let n=e[ot](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(Qc(e)){if(!Qc(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let a of e.keys()){let c=e[a];no(c)&&c[GE]?o.push(c):o.length?i.push(c):n.push(c)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((f,l)=>Je(f,a[l],r))&&i.every((f,l)=>Je(f,c[l],r))&&(o.length===0||Je(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>Je(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||no(o=i)&&o[ot]().matcherType==="optional")&&Je(i,t[n],r);var o})}return Object.is(t,e)},"s"),jt=s(e=>{var t,r,n;return Qc(e)?no(e)?(t=(r=(n=e[ot]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Zn(e,jt):Zn(Object.values(e),jt):[]},"o"),Zn=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function xe(e){return Object.assign(e,{optional:s(()=>ZE(e),"optional"),and:s(t=>V(e,t),"and"),or:s(t=>KE(e,t),"or"),select:s(t=>t===void 0?ny(e):ny(t,e),"select")})}s(xe,"u");function ZE(e){return xe({[ot]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(jt(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Je(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>jt(e),"getSelectionKeys"),matcherType:"optional"})})}s(ZE,"h");function V(...e){return xe({[ot]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>Je(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Zn(e,jt),"getSelectionKeys"),matcherType:"and"})})}s(V,"m");function KE(...e){return xe({[ot]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Zn(e,jt).forEach(i=>n(i,void 0)),{matched:e.some(i=>Je(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Zn(e,jt),"getSelectionKeys"),matcherType:"or"})})}s(KE,"d");function k(e){return{[ot]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(k,"p");function ny(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return xe({[ot]:()=>({match:s(n=>{let i={[t??io]:n};return{matched:r===void 0||Je(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??io].concat(r===void 0?[]:jt(r)),"getSelectionKeys")})})}s(ny,"y");function We(e){return typeof e=="number"}s(We,"v");function Ot(e){return typeof e=="string"}s(Ot,"b");function xt(e){return typeof e=="bigint"}s(xt,"w");var KR=xe(k(function(e){return!0}));var wt=s(e=>Object.assign(xe(e),{startsWith:s(t=>{return wt(V(e,(r=t,k(n=>Ot(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return wt(V(e,(r=t,k(n=>Ot(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>wt(V(e,(r=>k(n=>Ot(n)&&n.length>=r))(t))),"minLength"),length:s(t=>wt(V(e,(r=>k(n=>Ot(n)&&n.length===r))(t))),"length"),maxLength:s(t=>wt(V(e,(r=>k(n=>Ot(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return wt(V(e,(r=t,k(n=>Ot(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return wt(V(e,(r=t,k(n=>Ot(n)&&!!n.match(r)))));var r},"regex")}),"j"),WR=wt(k(Ot)),Ye=s(e=>Object.assign(xe(e),{between:s((t,r)=>Ye(V(e,((n,i)=>k(o=>We(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Ye(V(e,(r=>k(n=>We(n)&&n<r))(t))),"lt"),gt:s(t=>Ye(V(e,(r=>k(n=>We(n)&&n>r))(t))),"gt"),lte:s(t=>Ye(V(e,(r=>k(n=>We(n)&&n<=r))(t))),"lte"),gte:s(t=>Ye(V(e,(r=>k(n=>We(n)&&n>=r))(t))),"gte"),int:s(()=>Ye(V(e,k(t=>We(t)&&Number.isInteger(t)))),"int"),finite:s(()=>Ye(V(e,k(t=>We(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>Ye(V(e,k(t=>We(t)&&t>0))),"positive"),negative:s(()=>Ye(V(e,k(t=>We(t)&&t<0))),"negative")}),"x"),YR=Ye(k(We)),Et=s(e=>Object.assign(xe(e),{between:s((t,r)=>Et(V(e,((n,i)=>k(o=>xt(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>Et(V(e,(r=>k(n=>xt(n)&&n<r))(t))),"lt"),gt:s(t=>Et(V(e,(r=>k(n=>xt(n)&&n>r))(t))),"gt"),lte:s(t=>Et(V(e,(r=>k(n=>xt(n)&&n<=r))(t))),"lte"),gte:s(t=>Et(V(e,(r=>k(n=>xt(n)&&n>=r))(t))),"gte"),positive:s(()=>Et(V(e,k(t=>xt(t)&&t>0))),"positive"),negative:s(()=>Et(V(e,k(t=>xt(t)&&t<0))),"negative")}),"A"),JR=Et(k(xt)),XR=xe(k(function(e){return typeof e=="boolean"})),QR=xe(k(function(e){return typeof e=="symbol"})),e1=xe(k(function(e){return e==null})),t1=xe(k(function(e){return e!=null}));var nu=class nu extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};s(nu,"W");var eu=nu,tu={matched:!1,value:void 0};function oe(e){return new ru(e,tu)}s(oe,"z");var Gn=class Gn{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,a={},c=s((f,l)=>{o=!0,a[f]=l},"a"),u=!n.some(f=>Je(f,this.input,c))||i&&!i(this.input)?tu:{matched:!0,value:r(o?io in a?a[io]:a:this.input,this.input)};return new Gn(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Gn(this.input,n?{matched:!0,value:r(this.input,this.input)}:tu)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new eu(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Gn,"I");var ru=Gn;var iy=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var iu=2,oy=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],sy=["query","header","path"],rr=["get","put","post","delete","options","head","patch","trace"],ay=["string","number","integer","boolean"],nr=["allOf","anyOf","oneOf"];function ir(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(ir,"pick");var uy=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Kn=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),au=s(e=>Kn(e).split("/").at(-1),"getSchemaNameByRef");function z(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(z,"isReferenceObject");function fy(e){let t=WE(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Me(t)}s(fy,"normalizeString");function ly(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(ly,"wrapWithQuotesIfNeeded");function py(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(py,"unwrapQuotesIfNeeded");function WE(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(WE,"prefixStringStartingWithNumberIfNeeded");function cu(e){let t=e.replaceAll("_","#");return Me(t.replaceAll("-","_")).replaceAll("#","_")}s(cu,"pathParamToVariableName");var At=s(e=>ay.includes(e),"isPrimitiveType");function dy(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}s(dy,"escapeControlCharacters");function qt(e){return e.includes("application/")&&e.includes("json")||oy.includes(e)||e.includes("text/")}s(qt,"isParamMediaTypeAllowed");function uu(e){return e>=200&&e<300}s(uu,"isMainResponseStatus");function fu(e){return!(e>=200&&e<300)}s(fu,"isErrorStatus");function Gr(e){return e==="application/json"}s(Gr,"isMediaTypeAllowed");function ou({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${XE(e)}`,a=r.operationId?tr(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,f)=>f===0?u:Ke(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return iy.includes(a)?o:a}s(ou,"getOperationName");function lu({path:e,method:t,operation:r,openApiDoc:n,options:i}){let o=YE(n,i),a=i.splitByTags?Zr(r,i):i.defaultTag,c=ou({path:e,method:t,operation:r,options:i});return o[a].filter(f=>ou({path:e,method:t,operation:f,options:i})===c).length===1?c:ou({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(lu,"getUniqueOperationName");function YE(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=ir(i,rr);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Zr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(YE,"getOperationsByTag");function my(e,t,r){let n=[];for(let i in t.paths){let o=t.paths[i],a=ir(o,rr);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let f=lu({path:i,method:c,operation:u,openApiDoc:t,options:r});n.push(f)}}return n.filter(i=>i===e).length<=1}s(my,"isUniqueOperationNameWithoutSplitByTags");function st(e){return Qh(e)}s(st,"formatTag");function Zr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return st(r??t.defaultTag)}s(Zr,"getOperationTag");var cy=/({\w+})/g,JE=/[^\w\-]+/g;function XE(e){e=Ke(Xc(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(cy)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(cy,"")}By${Ke(r.slice(1,-1))}`}return e.replace(JE,"_")}s(XE,"pathToVariableName");var su=/{(\b\w+(?:-\w+)*\b)}/g;function hy(e){let t=e.match(su);return t===null?e.replaceAll(su,":$1"):(t.forEach(r=>{let n=cu(r.replaceAll(su,":$1"));e=e.replaceAll(r,n)}),e)}s(hy,"replaceHyphenatedPath");var yy=s(e=>e.method==="get","isQuery"),gy=s(e=>e.method!=="get","isMutation");var It=s((e,t)=>ey(Ke(fy(e)),t),"getZodSchemaName"),or=s(e=>!e.startsWith("z."),"isNamedZodSchema"),Kr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),$y=s(e=>Me(`${e}_${Kh}`),"getBodyZodSchemaName"),vy=s((e,t)=>Me(`${e}_${t}${Wh}`),"getParamZodSchemaName"),by=s(e=>Me(`${e}${Yh}`),"getMainResponseZodSchemaName"),_y=s((e,t)=>Me(`${e}_${t}_${Jh}`),"getErrorResponseZodSchemaName");var QE=s((e,t)=>ty(e,t.schemaSuffix),"getZodSchemaInferedTypeName");var pu=s(({resolver:e,zodSchemaName:t,options:r})=>or(t)?`${r.includeNamespaces?`${er({type:"models",tag:e.getTagByZodSchemaName(t),options:r})}.`:""}${QE(t,r)}`:t,"getImportedZodSchemaInferedTypeName");function du(e){return oe(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(du,"primitiveTypeToTsType");function Wr({zodSchemaName:e,schema:t,resolver:r,options:n}){let i="void",o;e&&or(e)?(i=pu({resolver:r,zodSchemaName:e,options:n}),o=r.getTagByZodSchemaName(e)):t!=null&&t.type&&At(t==null?void 0:t.type)&&(i=du(t==null?void 0:t.type));let a=i.split(".");return{type:a[a.length-1],...a.length>1?{namespace:a[0]}:{},...o?{filePath:ro({type:"models",tag:o,includeTagDir:!0,options:n})}:{}}}s(Wr,"getTsTypeBase");function sr({schema:e,isCircular:t,parentTypes:r,resolver:n,options:i}){if(!e)return{metaType:"primitive"};for(let o of nr){let a=e[o];if(a)if(a.length>1){let c=a.map(u=>{let f=n.resolveObject(u);return sr({schema:f,parentTypes:r,resolver:n,options:i})});return c.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:c.reduce((u,{objectProperties:f})=>{let l=f.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...f]},[])}:{metaType:"composite",[o]:c}}else e=n.resolveObject(a[0])}return e.type==="array"?{metaType:"array",arrayType:Py({arraySchema:e,resolver:n,options:i,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:ej({schema:e,parentTypes:r,resolver:n,options:i})}:{metaType:"primitive"}}s(sr,"getSchemaTsMetaType");function Py({arraySchema:e,parentTypes:t,resolver:r,options:n}){let i,o;if(z(e.items)){let f=e.items.$ref;i=r.getZodSchemaNameByRef(f),o=r.getSchemaByRef(f)}else o=e.items;let a=Wr({zodSchemaName:i,schema:o,resolver:r,options:n}),c=Sy(a,t),u=sr({schema:o,isCircular:c,parentTypes:[...t,a],resolver:r,options:n});return{...a,...u}}s(Py,"getArraySchemaTsType");function ej({schema:e,parentTypes:t,resolver:r,options:n}){return Object.entries((e==null?void 0:e.properties)??{}).map(([i,o])=>{var c;let a=((c=e==null?void 0:e.required)==null?void 0:c.includes(i))??!1;if(z(o)){let u=r.getZodSchemaNameByRef(o.$ref),f=r.getSchemaByRef(o.$ref),l=Wr({zodSchemaName:u,schema:f,resolver:r,options:n}),p=Sy(l,t),m=sr({schema:f,isCircular:p,parentTypes:[...t,l],resolver:r,options:n});return{name:i,isRequired:a,...l,...m}}else if(o.type==="array"){let u=Py({arraySchema:o,parentTypes:t,resolver:r,options:n});return{name:i,isRequired:a,type:"array",metaType:"array",arrayType:u}}else if(At(o.type))return{name:i,isRequired:a,type:du(o.type),metaType:"primitive"};return{name:i,isRequired:a,type:"void",metaType:"primitive"}})}s(ej,"getSchemaTsProperties");function Sy(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Sy,"getIsCircular");var Oy="data";function Tt(e){return!z(e)}s(Tt,"isSchemaObject");function xy(e){return e.type==="array"}s(xy,"isArraySchemaObject");function wy(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,o)=>{if(tj(o)){let a=o.required;i[0].push(...a??[])}else i[1].push(o);return i},[[],[]]),n={properties:t.reduce((i,o)=>(i[o]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:s((i,o)=>{if(z(i)){let a=o(i.$ref);a&&n.required.forEach(c=>{var u;n.properties[c]=((u=a==null?void 0:a.properties)==null?void 0:u[c])??{}})}else{let a=i.properties??{};n.required.forEach(c=>{a[c]&&(n.properties[c]=a[c]??{})})}},"patchRequiredSchemaInLoop")}}s(wy,"inferRequiredSchema");var tj=s(e=>!z(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");function Ey(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return st(r??t.defaultTag)}s(Ey,"getEndpointTag");function Xe({schema:e,meta:t,options:r}){let n=[];oe(e.type).with("string",()=>n.push(ij(e))).with("number","integer",()=>n.push(sj(e))).with("array",()=>n.push(aj(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
46
|
+
`)}`)));else if(s.headers.location){let a=zi.resolve(e,s.headers.location);A0(a,t,r).then(n,i)}else throw Ps({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new w0(Ps(s,`Error downloading ${e.href}`),e.href))})})}o(A0,"download");function Fk(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?Lk:Dk).get({hostname:e.hostname,port:e.port,path:e.path,auth:e.auth,protocol:e.protocol,headers:t.headers||{},withCredentials:t.withCredentials});typeof s.setTimeout=="function"&&s.setTimeout(t.timeout),s.on("timeout",()=>{s.abort()}),s.on("error",n),s.once("response",a=>{a.body=Buffer.alloc(0),a.on("data",u=>{a.body=Buffer.concat([a.body,Buffer.from(u)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(Fk,"get")});var af=m((C8,T0)=>{"use strict";var Vk=wg(),Bk=_0(),Hk=S0(),Uk=$0(),zk=x0(),Gk=k0();T0.exports=sf;function sf(e){of(this,sf.defaults),of(this,e)}o(sf,"$RefParserOptions");sf.defaults={parse:{json:Vk,yaml:Bk,text:Hk,binary:Uk},resolve:{file:zk,http:Gk,external:!0},continueOnError:!1,dereference:{circular:!0}};function of(e,t){if(R0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];R0(s)?e[i]=of(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(of,"merge");function R0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(R0,"isMergeable")});var uf=m((q8,N0)=>{"use strict";var C0=af();N0.exports=Zk;function Zk(e){let t,r,n,i;return e=Array.prototype.slice.call(e),typeof e[e.length-1]=="function"&&(i=e.pop()),typeof e[0]=="string"?(t=e[0],typeof e[2]=="object"?(r=e[1],n=e[2]):(r=void 0,n=e[1])):(t="",r=e[0],n=e[1]),n instanceof C0||(n=new C0(n)),{path:t,schema:r,options:n,callback:i}}o(Zk,"normalizeArgs")});var j0=m((M8,q0)=>{"use strict";var cf=af(),Kk=Fl(),Wk=Hl(),Yk=require("util");q0.exports=$s;function $s(e){cf.call(this,$s.defaults),cf.apply(this,arguments)}o($s,"ParserOptions");$s.defaults={validate:{schema:Kk,spec:Wk}};Yk.inherits($s,cf)});var D0=m((L8,M0)=>{"use strict";function Qk(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(Qk,"makeNext");M0.exports=Qk()});var lf=m((V8,F0)=>{"use strict";var L0=D0();F0.exports=o(function(t,r){if(t){r.then(function(n){L0(function(){t(null,n)})},function(n){L0(function(){t(n)})});return}else return r},"maybe")});var Gi=m((H8,H0)=>{"use strict";H0.exports=rr;var ff=jn(),pf=Ce(),{JSONParserError:Jk,InvalidPointerError:Xk,MissingPointerError:eR,isHandledError:tR}=nt(),rR=/\//g,nR=/~/g,iR=/~1/g,oR=/~0/g;function rr(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(rr,"Pointer");rr.prototype.resolve=function(e,t,r){let n=rr.parse(this.path,this.originalPath);this.value=B0(e);for(let i=0;i<n.length;i++){if(Os(this,t)&&(this.path=rr.join(this.path,n.slice(i))),typeof this.value=="object"&&this.value!==null&&"$ref"in this.value)return this;let s=n[i];if(this.value[s]===void 0||this.value[s]===null)throw this.value=null,new eR(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&pf.resolve(this.path,this.value.$ref)!==r)&&Os(this,t),this};rr.prototype.set=function(e,t,r){let n=rr.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=B0(e);for(let s=0;s<n.length-1;s++)Os(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=V0(this,i,{});return Os(this,r),i=n[n.length-1],V0(this,i,t),e};rr.parse=function(e,t){let r=pf.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(iR,"/").replace(oR,"~"));if(r[0]!=="")throw new Xk(r,t===void 0?e:t);return r.slice(1)};rr.join=function(e,t){e.indexOf("#")===-1&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(nR,"~0").replace(rR,"~1"))}return e};function Os(e,t){if(ff.isAllowed$Ref(e.value,t)){let r=pf.resolve(e.path,e.value.$ref);if(r===e.path)e.circular=!0;else{let n=e.$ref.$refs._resolve(r,e.path,t);return e.indirections+=n.indirections+1,ff.isExtended$Ref(e.value)?(e.value=ff.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(Os,"resolveIf$Ref");function V0(e,t,r){if(e.value&&typeof e.value=="object")t==="-"&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r;else throw new Jk(`Error assigning $ref pointer "${e.path}".
|
|
47
|
+
Cannot set "${t}" of a non-object.`);return r}o(V0,"setValue");function B0(e){if(tR(e))throw e;return e}o(B0,"unwrapOrThrow")});var jn=m((z8,G0)=>{"use strict";G0.exports=Se;var z0=Gi(),{InvalidPointerError:sR,isHandledError:aR,normalizeError:U0}=nt(),{safePointerToPath:uR,stripHash:cR,getHash:lR}=Ce();function Se(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Se,"$Ref");Se.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(U0)):this.errors.push(U0(e))};Se.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Se.prototype.get=function(e,t){return this.resolve(e,t).value};Se.prototype.resolve=function(e,t,r,n){let i=new z0(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!aR(s))throw s;return s.path===null&&(s.path=uR(lR(n))),s instanceof sR&&(s.source=cR(n)),this.addError(s),null}};Se.prototype.set=function(e,t){let r=new z0(this,e);this.value=r.set(this.value,t)};Se.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Se.isExternal$Ref=function(e){return Se.is$Ref(e)&&e.$ref[0]!=="#"};Se.isAllowed$Ref=function(e,t){if(Se.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Se.isExtended$Ref=function(e){return Se.is$Ref(e)&&Object.keys(e).length>1};Se.dereference=function(e,t){if(t&&typeof t=="object"&&Se.isExtended$Ref(e)){let r={};for(let n of Object.keys(e))n!=="$ref"&&(r[n]=e[n]);for(let n of Object.keys(t))n in r||(r[n]=t[n]);return r}else return t}});var Y0=m((Z8,W0)=>{"use strict";var{ono:Z0}=Qe(),fR=jn(),nr=Ce();W0.exports=it;function it(){this.circular=!1,this._$refs={},this._root$Ref=null}o(it,"$Refs");it.prototype.paths=function(e){return K0(this._$refs,arguments).map(r=>r.decoded)};it.prototype.values=function(e){let t=this._$refs;return K0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};it.prototype.toJSON=it.prototype.values;it.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};it.prototype.get=function(e,t){return this._resolve(e,"",t).value};it.prototype.set=function(e,t){let r=nr.resolve(this._root$Ref.path,e),n=nr.stripHash(r),i=this._$refs[n];if(!i)throw Z0(`Error resolving $ref pointer "${e}".
|
|
48
|
+
"${n}" not found.`);i.set(r,t)};it.prototype._add=function(e){let t=nr.stripHash(e),r=new fR;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};it.prototype._resolve=function(e,t,r){let n=nr.resolve(this._root$Ref.path,e),i=nr.stripHash(n),s=this._$refs[i];if(!s)throw Z0(`Error resolving $ref pointer "${e}".
|
|
49
|
+
"${i}" not found.`);return s.resolve(n,r,e,t)};it.prototype._get$Ref=function(e){e=nr.resolve(this._root$Ref.path,e);let t=nr.stripHash(e);return this._$refs[t]};function K0(e,t){let r=Object.keys(e);return t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t),t.length>0&&t[0]&&(r=r.filter(n=>t.indexOf(e[n].pathType)!==-1)),r.map(n=>({encoded:n,decoded:e[n].pathType==="file"?nr.toFileSystemPath(n,!0):n}))}o(K0,"getPaths")});var J0=m(Zi=>{"use strict";Zi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Zi.filter=function(e,t,r){return e.filter(n=>!!Q0(n,t,r))};Zi.sort=function(e){for(let t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort((t,r)=>t.order-r.order)};Zi.run=function(e,t,r,n){let i,s,a=0;return new Promise((u,c)=>{l();function l(){if(i=e[a++],!i)return c(s);try{let h=Q0(i,t,r,p,n);if(h&&typeof h.then=="function")h.then(f,d);else if(h!==void 0)f(h);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(h){d(h)}}o(l,"runNextPlugin");function p(h,g){h?d(h):f(g)}o(p,"callback");function f(h){u({plugin:i,result:h})}o(f,"onSuccess");function d(h){s={plugin:i,error:h},l()}o(d,"onError")})};function Q0(e,t,r,n,i){let s=e[t];if(typeof s=="function")return s.apply(e,[r,n,i]);if(!n){if(s instanceof RegExp)return s.test(r.url);if(typeof s=="string")return s===r.extension;if(Array.isArray(s))return s.indexOf(r.extension)!==-1}return s}o(Q0,"getResult")});var hf=m((Q8,rv)=>{"use strict";var{ono:df}=Qe(),X0=Ce(),ir=J0(),{ResolverError:ev,ParserError:tv,UnmatchedParserError:pR,UnmatchedResolverError:dR,isHandledError:hR}=nt();rv.exports=mR;async function mR(e,t,r){e=X0.stripHash(e);let n=t._add(e),i={url:e,extension:X0.getExtension(e)};try{let s=await gR(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await yR(i,r,t);return n.value=a.result,a.result}catch(s){throw hR(s)&&(n.value=s),s}}o(mR,"parse");function gR(e,t,r){return new Promise((n,i)=>{let s=ir.all(t.resolve);s=ir.filter(s,"canRead",e),ir.sort(s),ir.run(s,"read",e,r).then(n,a);function a(u){!u&&t.continueOnError?i(new dR(e.url)):!u||!("error"in u)?i(df.syntax(`Unable to resolve $ref pointer "${e.url}"`)):u.error instanceof ev?i(u.error):i(new ev(u,e.url))}o(a,"onError")})}o(gR,"readFile");function yR(e,t,r){return new Promise((n,i)=>{let s=ir.all(t.parse),a=ir.filter(s,"canParse",e),u=a.length>0?a:s;ir.sort(u),ir.run(u,"parse",e,r).then(c,l);function c(p){!p.plugin.allowEmpty&&vR(p.result)?i(df.syntax(`Error parsing "${e.url}" as ${p.plugin.name}.
|
|
50
|
+
Parsed value is empty`)):n(p)}o(c,"onParsed");function l(p){!p&&t.continueOnError?i(new pR(e.url)):!p||!("error"in p)?i(df.syntax(`Unable to parse ${e.url}`)):p.error instanceof tv?i(p.error):i(new tv(p.error.message,e.url))}o(l,"onError")})}o(yR,"parseFile");function vR(e){return e===void 0||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0||Buffer.isBuffer(e)&&e.length===0}o(vR,"isEmpty")});var sv=m((X8,ov)=>{"use strict";var nv=jn(),_R=Gi(),bR=hf(),Ki=Ce(),{isHandledError:SR}=nt();ov.exports=PR;function PR(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=mf(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(PR,"resolveExternal");function mf(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(nv.isExternal$Ref(e))i.push(iv(e,t,r,n));else for(let s of Object.keys(e)){let a=_R.join(t,s),u=e[s];nv.isExternal$Ref(u)?i.push(iv(u,a,r,n)):i=i.concat(mf(u,a,r,n))}return i}o(mf,"crawl");async function iv(e,t,r,n){let i=Ki.resolve(t,e.$ref),s=Ki.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await bR(i,r,n),u=mf(a,s+"#",r,n);return Promise.all(u)}catch(a){if(!n.continueOnError||!SR(a))throw a;return r._$refs[s]&&(a.source=Ki.stripHash(t),a.path=Ki.safePointerToPath(Ki.getHash(t))),[]}}o(iv,"resolve$Ref")});var cv=m((tD,uv)=>{"use strict";var Es=jn(),Wi=Gi(),gf=Ce();uv.exports=$R;function $R(e,t){let r=[];yf(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),OR(r)}o($R,"bundle");function yf(e,t,r,n,i,s,a,u){let c=t===null?e:e[t];if(c&&typeof c=="object"&&!ArrayBuffer.isView(c))if(Es.isAllowed$Ref(c))av(e,t,r,n,i,s,a,u);else{let l=Object.keys(c).sort((p,f)=>p==="definitions"?-1:f==="definitions"?1:p.length-f.length);for(let p of l){let f=Wi.join(r,p),d=Wi.join(n,p),h=c[p];Es.isAllowed$Ref(h)?av(c,p,r,d,i,s,a,u):yf(c,p,f,d,i,s,a,u)}}}o(yf,"crawl");function av(e,t,r,n,i,s,a,u){let c=t===null?e:e[t],l=gf.resolve(r,c.$ref),p=a._resolve(l,n,u);if(p===null)return;let f=Wi.parse(n).length,d=gf.stripHash(p.path),h=gf.getHash(p.path),g=d!==a._root$Ref.path,y=Es.isExtended$Ref(c);i+=p.indirections;let v=ER(s,e,t);if(v)if(f<v.depth||i<v.indirections)xR(s,v);else return;s.push({$ref:c,parent:e,key:t,pathFromRoot:n,depth:f,file:d,hash:h,value:p.value,circular:p.circular,extended:y,external:g,indirections:i}),v||yf(p.value,null,p.path,n,i+1,s,a,u)}o(av,"inventory$Ref");function OR(e){e.sort((i,s)=>{if(i.file!==s.file)return i.file<s.file?-1:1;if(i.hash!==s.hash)return i.hash<s.hash?-1:1;if(i.circular!==s.circular)return i.circular?-1:1;if(i.extended!==s.extended)return i.extended?1:-1;if(i.indirections!==s.indirections)return i.indirections-s.indirections;if(i.depth!==s.depth)return i.depth-s.depth;{let a=i.pathFromRoot.lastIndexOf("/definitions"),u=s.pathFromRoot.lastIndexOf("/definitions");return a!==u?u-a:i.pathFromRoot.length-s.pathFromRoot.length}});let t,r,n;for(let i of e)i.external?i.file===t&&i.hash===r?i.$ref.$ref=n:i.file===t&&i.hash.indexOf(r+"/")===0?i.$ref.$ref=Wi.join(n,Wi.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=Es.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(OR,"remap");function ER(e,t,r){for(let n=0;n<e.length;n++){let i=e[n];if(i.parent===t&&i.key===r)return i}}o(ER,"findInInventory");function xR(e,t){let r=e.indexOf(t);e.splice(r,1)}o(xR,"removeFromInventory")});var bf=m((nD,dv)=>{"use strict";var vf=jn(),lv=Gi(),{ono:wR}=Qe(),AR=Ce();dv.exports=IR;function IR(e,t){let r=_f(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o(IR,"dereference");function _f(e,t,r,n,i,s){let a,u={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),vf.isAllowed$Ref(e,s))a=fv(e,t,r,n,i,s),u.circular=a.circular,u.value=a.value;else for(let c of Object.keys(e)){let l=lv.join(t,c),p=lv.join(r,c),f=e[c],d=!1;vf.isAllowed$Ref(f,s)?(a=fv(f,l,p,n,i,s),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):n.indexOf(f)===-1?(a=_f(f,l,p,n,i,s),d=a.circular,e[c]!==a.value&&(e[c]=a.value)):d=pv(l,i,s),u.circular=u.circular||d}n.pop()}return u}o(_f,"crawl");function fv(e,t,r,n,i,s){let a=AR.resolve(t,e.$ref),u=i._resolve(a,t,s);if(u===null)return{circular:!1,value:null};let c=u.circular,l=c||n.indexOf(u.value)!==-1;l&&pv(t,i,s);let p=vf.dereference(e,u.value);if(!l){let f=_f(p,u.path,r,n,i,s);l=f.circular,p=f.value}return l&&!c&&s.dereference.circular==="ignore"&&(p=e),c&&(p.$ref=r),{circular:l,value:p}}o(fv,"dereference$Ref");function pv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw wR.reference(`Circular $ref pointer found at ${e}`);return!0}o(pv,"foundCircularReference")});var yv=m((oD,bt)=>{"use strict";var gv=Y0(),kR=hf(),xs=uf(),RR=sv(),TR=cv(),CR=bf(),Mn=Ce(),{JSONParserError:NR,InvalidPointerError:qR,MissingPointerError:jR,ResolverError:MR,ParserError:DR,UnmatchedParserError:LR,UnmatchedResolverError:FR,isHandledError:VR,JSONParserErrorGroup:hv}=nt(),ot=lf(),{ono:mv}=Qe();bt.exports=_t;bt.exports.default=_t;bt.exports.JSONParserError=NR;bt.exports.InvalidPointerError=qR;bt.exports.MissingPointerError=jR;bt.exports.ResolverError=MR;bt.exports.ParserError=DR;bt.exports.UnmatchedParserError=LR;bt.exports.UnmatchedResolverError=FR;function _t(){this.schema=null,this.$refs=new gv}o(_t,"$RefParser");_t.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");_t.prototype.parse=o(async function(t,r,n,i){let s=xs(arguments),a;if(!s.path&&!s.schema){let l=mv(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return ot(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new gv;let u="http";if(Mn.isFileSystemPath(s.path)&&(s.path=Mn.fromFileSystemPath(s.path),u="file"),s.path=Mn.resolve(Mn.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=u,a=Promise.resolve(s.schema)}else a=kR(s.path,this.$refs,s.options);let c=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return c.schema=l,ot(s.callback,Promise.resolve(c.schema));if(s.options.continueOnError)return c.schema=null,ot(s.callback,Promise.resolve(c.schema));throw mv.syntax(`"${c.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!VR(l)?ot(s.callback,Promise.reject(l)):(this.$refs._$refs[Mn.stripHash(s.path)]&&this.$refs._$refs[Mn.stripHash(s.path)].addError(l),ot(s.callback,Promise.resolve(null)))}},"parse");_t.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");_t.prototype.resolve=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.parse(a.path,a.schema,a.options),await RR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.$refs))}catch(u){return ot(a.callback,Promise.reject(u))}},"resolve");_t.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");_t.prototype.bundle=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),TR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"bundle");_t.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");_t.prototype.dereference=o(async function(t,r,n,i){let s=this,a=xs(arguments);try{return await this.resolve(a.path,a.schema,a.options),CR(s,a.options),Sf(s),ot(a.callback,Promise.resolve(s.schema))}catch(u){return ot(a.callback,Promise.reject(u))}},"dereference");function Sf(e){if(hv.getParserErrors(e).length>0)throw new hv(e)}o(Sf,"finalize")});var Pv=m((aD,Sv)=>{"use strict";var BR=Fl(),HR=Hl(),vv=uf(),_v=Oo(),bv=j0(),ws=lf(),{ono:st}=Qe(),Dr=yv(),UR=bf();Sv.exports=St;function St(){Dr.apply(this,arguments)}o(St,"SwaggerParser");_v.inherits(St,Dr);St.parse=Dr.parse;St.resolve=Dr.resolve;St.bundle=Dr.bundle;St.dereference=Dr.dereference;Object.defineProperty(St.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});St.prototype.parse=async function(e,t,r,n){let i=vv(arguments);i.options=new bv(i.options);try{let s=await Dr.prototype.parse.call(this,i.path,i.schema,i.options);if(s.swagger){if(s.swagger===void 0||s.info===void 0||s.paths===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw st.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw st.syntax(`Unrecognized Swagger version: ${s.swagger}. Expected 2.0`)}else{let a=["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0"];if(s.openapi===void 0||s.info===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);if(s.paths===void 0)if(s.openapi==="3.1.0"){if(s.webhooks===void 0)throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw st.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw st.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw st.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw st.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}_v.fixOasRelativeServers(s,i.path)}return ws(i.callback,Promise.resolve(s))}catch(s){return ws(i.callback,Promise.reject(s))}};St.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};St.prototype.validate=async function(e,t,r,n){let i=this,s=vv(arguments);s.options=new bv(s.options);let a=s.options.dereference.circular;s.options.validate.schema&&(s.options.dereference.circular="ignore");try{if(await this.dereference(s.path,s.schema,s.options),s.options.dereference.circular=a,s.options.validate.schema&&(BR(i.api),i.$refs.circular)){if(a===!0)UR(i,s.options);else if(a===!1)throw st.reference("The API contains circular references")}return s.options.validate.spec&&HR(i.api),ws(s.callback,Promise.resolve(i.schema))}catch(u){return ws(s.callback,Promise.reject(u))}}});var Oe=m(qe=>{"use strict";qe.__esModule=!0;qe.extend=F_;qe.indexOf=zT;qe.escapeExpression=GT;qe.isEmpty=ZT;qe.createFrame=KT;qe.blockParams=WT;qe.appendContextPath=YT;var VT={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},BT=/[&<>"'`=]/g,HT=/[&<>"'`=]/;function UT(e){return VT[e]}o(UT,"escapeChar");function F_(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}o(F_,"extend");var Qf=Object.prototype.toString;qe.toString=Qf;var Yf=o(function(t){return typeof t=="function"},"isFunction");Yf(/x/)&&(qe.isFunction=Yf=o(function(e){return typeof e=="function"&&Qf.call(e)==="[object Function]"},"isFunction"));qe.isFunction=Yf;var V_=Array.isArray||function(e){return e&&typeof e=="object"?Qf.call(e)==="[object Array]":!1};qe.isArray=V_;function zT(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(zT,"indexOf");function GT(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return HT.test(e)?e.replace(BT,UT):e}o(GT,"escapeExpression");function ZT(e){return!e&&e!==0?!0:!!(V_(e)&&e.length===0)}o(ZT,"isEmpty");function KT(e){var t=F_({},e);return t._parent=e,t}o(KT,"createFrame");function WT(e,t){return e.path=t,e}o(WT,"blockParams");function YT(e,t){return(e?e+".":"")+t}o(YT,"appendContextPath")});var Ze=m((Ks,B_)=>{"use strict";Ks.__esModule=!0;var Jf=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Xf(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var u=Error.prototype.constructor.call(this,e),c=0;c<Jf.length;c++)this[Jf[c]]=u[Jf[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Xf);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}o(Xf,"Exception");Xf.prototype=new Error;Ks.default=Xf;B_.exports=Ks.default});var U_=m((Ws,H_)=>{"use strict";Ws.__esModule=!0;var ep=Oe();Ws.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(ep.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=ep.createFrame(r.data);s.contextPath=ep.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};H_.exports=Ws.default});var G_=m((Ys,z_)=>{"use strict";Ys.__esModule=!0;function QT(e){return e&&e.__esModule?e:{default:e}}o(QT,"_interopRequireDefault");var co=Oe(),JT=Ze(),XT=QT(JT);Ys.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new XT.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",u=void 0,c=void 0;r.data&&r.ids&&(c=co.appendContextPath(r.data.contextPath,r.ids[0])+"."),co.isFunction(t)&&(t=t.call(this)),r.data&&(u=co.createFrame(r.data));function l(g,y,v){u&&(u.key=g,u.index=y,u.first=y===0,u.last=!!v,c&&(u.contextPath=c+g)),a=a+n(t[g],{data:u,blockParams:co.blockParams([t[g],g],[c+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(co.isArray(t))for(var p=t.length;s<p;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var f=[],d=t[Symbol.iterator](),h=d.next();!h.done;h=d.next())f.push(h.value);t=f;for(var p=t.length;s<p;s++)l(s,s,s===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,s-1),g=y,s++}),g!==void 0&&l(g,s-1,!0)})();return s===0&&(a=i(this)),a})};z_.exports=Ys.default});var K_=m((Qs,Z_)=>{"use strict";Qs.__esModule=!0;function e3(e){return e&&e.__esModule?e:{default:e}}o(e3,"_interopRequireDefault");var t3=Ze(),r3=e3(t3);Qs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r3.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Z_.exports=Qs.default});var J_=m((Js,Q_)=>{"use strict";Js.__esModule=!0;function n3(e){return e&&e.__esModule?e:{default:e}}o(n3,"_interopRequireDefault");var W_=Oe(),i3=Ze(),Y_=n3(i3);Js.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new Y_.default("#if requires exactly one argument");return W_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||W_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new Y_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Q_.exports=Js.default});var eb=m((Xs,X_)=>{"use strict";Xs.__esModule=!0;Xs.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};X_.exports=Xs.default});var rb=m((ea,tb)=>{"use strict";ea.__esModule=!0;ea.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};tb.exports=ea.default});var ib=m((ta,nb)=>{"use strict";ta.__esModule=!0;function o3(e){return e&&e.__esModule?e:{default:e}}o(o3,"_interopRequireDefault");var lo=Oe(),s3=Ze(),a3=o3(s3);ta.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new a3.default("#with requires exactly one argument");lo.isFunction(t)&&(t=t.call(this));var n=r.fn;if(lo.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=lo.createFrame(r.data),i.contextPath=lo.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:lo.blockParams([t],[i&&i.contextPath])})})};nb.exports=ta.default});var tp=m(ra=>{"use strict";ra.__esModule=!0;ra.registerDefaultHelpers=P3;ra.moveHelperToHooks=$3;function Ur(e){return e&&e.__esModule?e:{default:e}}o(Ur,"_interopRequireDefault");var u3=U_(),c3=Ur(u3),l3=G_(),f3=Ur(l3),p3=K_(),d3=Ur(p3),h3=J_(),m3=Ur(h3),g3=eb(),y3=Ur(g3),v3=rb(),_3=Ur(v3),b3=ib(),S3=Ur(b3);function P3(e){c3.default(e),f3.default(e),d3.default(e),m3.default(e),y3.default(e),_3.default(e),S3.default(e)}o(P3,"registerDefaultHelpers");function $3(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o($3,"moveHelperToHooks")});var sb=m((na,ob)=>{"use strict";na.__esModule=!0;var O3=Oe();na.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,u){var c=n.partials;n.partials=O3.extend({},c,r.partials);var l=t(a,u);return n.partials=c,l},"ret")),r.partials[i.args[0]]=i.fn,s})};ob.exports=na.default});var ab=m(rp=>{"use strict";rp.__esModule=!0;rp.registerDefaultDecorators=A3;function E3(e){return e&&e.__esModule?e:{default:e}}o(E3,"_interopRequireDefault");var x3=sb(),w3=E3(x3);function A3(e){w3.default(e)}o(A3,"registerDefaultDecorators")});var np=m((ia,ub)=>{"use strict";ia.__esModule=!0;var I3=Oe(),Gn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=I3.indexOf(Gn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=Gn.lookupLevel(t),typeof console<"u"&&Gn.lookupLevel(Gn.level)<=t){var r=Gn.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}},"log")};ia.default=Gn;ub.exports=ia.default});var cb=m(ip=>{"use strict";ip.__esModule=!0;ip.createNewLookupObject=R3;var k3=Oe();function R3(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return k3.extend.apply(void 0,[Object.create(null)].concat(t))}o(R3,"createNewLookupObject")});var op=m(fo=>{"use strict";fo.__esModule=!0;fo.createProtoAccessControl=q3;fo.resultIsAllowed=j3;fo.resetLoggedProperties=D3;function T3(e){return e&&e.__esModule?e:{default:e}}o(T3,"_interopRequireDefault");var lb=cb(),C3=np(),N3=T3(C3),oa=Object.create(null);function q3(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:lb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:lb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(q3,"createProtoAccessControl");function j3(e,t,r){return fb(typeof e=="function"?t.methods:t.properties,r)}o(j3,"resultIsAllowed");function fb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(M3(t),!1)}o(fb,"checkWhiteList");function M3(e){oa[e]!==!0&&(oa[e]=!0,N3.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
51
|
+
You can add a runtime option to disable the check or this warning:
|
|
52
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(M3,"logUnexpecedPropertyAccessOnce");function D3(){Object.keys(oa).forEach(function(e){delete oa[e]})}o(D3,"resetLoggedProperties")});var aa=m(It=>{"use strict";It.__esModule=!0;It.HandlebarsEnvironment=up;function pb(e){return e&&e.__esModule?e:{default:e}}o(pb,"_interopRequireDefault");var zr=Oe(),L3=Ze(),sp=pb(L3),F3=tp(),V3=ab(),B3=np(),sa=pb(B3),H3=op(),U3="4.7.8";It.VERSION=U3;var z3=8;It.COMPILER_REVISION=z3;var G3=7;It.LAST_COMPATIBLE_COMPILER_REVISION=G3;var Z3={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};It.REVISION_CHANGES=Z3;var ap="[object Object]";function up(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},F3.registerDefaultHelpers(this),V3.registerDefaultDecorators(this)}o(up,"HandlebarsEnvironment");up.prototype={constructor:up,logger:sa.default,log:sa.default.log,registerHelper:o(function(t,r){if(zr.toString.call(t)===ap){if(r)throw new sp.default("Arg not supported with multiple helpers");zr.extend(this.helpers,t)}else this.helpers[t]=r},"registerHelper"),unregisterHelper:o(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:o(function(t,r){if(zr.toString.call(t)===ap)zr.extend(this.partials,t);else{if(typeof r>"u")throw new sp.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},"registerPartial"),unregisterPartial:o(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:o(function(t,r){if(zr.toString.call(t)===ap){if(r)throw new sp.default("Arg not supported with multiple decorators");zr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){H3.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var K3=sa.default.log;It.log=K3;It.createFrame=zr.createFrame;It.logger=sa.default});var hb=m((ua,db)=>{"use strict";ua.__esModule=!0;function cp(e){this.string=e}o(cp,"SafeString");cp.prototype.toString=cp.prototype.toHTML=function(){return""+this.string};ua.default=cp;db.exports=ua.default});var mb=m(lp=>{"use strict";lp.__esModule=!0;lp.wrapHelper=W3;function W3(e,t){if(typeof e!="function")return e;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)},"wrapper");return r}o(W3,"wrapHelper")});var bb=m(mr=>{"use strict";mr.__esModule=!0;mr.checkRevision=tC;mr.template=rC;mr.wrapProgram=ca;mr.resolvePartial=nC;mr.invokePartial=iC;mr.noop=vb;function Y3(e){return e&&e.__esModule?e:{default:e}}o(Y3,"_interopRequireDefault");function Q3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(Q3,"_interopRequireWildcard");var J3=Oe(),Dt=Q3(J3),X3=Ze(),Lt=Y3(X3),Ft=aa(),gb=tp(),eC=mb(),yb=op();function tC(e){var t=e&&e[0]||1,r=Ft.COMPILER_REVISION;if(!(t>=Ft.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Ft.COMPILER_REVISION))if(t<Ft.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ft.REVISION_CHANGES[r],i=Ft.REVISION_CHANGES[t];throw new Lt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Lt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}o(tC,"checkRevision");function rC(e,t){if(!t)throw new Lt.default("No environment passed to template");if(!e||!e.main)throw new Lt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,u,c){c.hash&&(u=Dt.extend({},u,c.hash),c.ids&&(c.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,u,c);var l=Dt.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=t.VM.invokePartial.call(this,a,u,l);if(p==null&&t.compile&&(c.partials[c.name]=t.compile(a,e.compilerOptions,t),p=c.partials[c.name](u,l)),p!=null){if(c.indent){for(var f=p.split(`
|
|
53
|
+
`),d=0,h=f.length;d<h&&!(!f[d]&&d+1===h);d++)f[d]=c.indent+f[d];p=f.join(`
|
|
54
|
+
`)}return p}else throw new Lt.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(u,c,l){if(!u||!(c in u))throw new Lt.default('"'+c+'" not defined in '+u,{loc:l});return i.lookupProperty(u,c)},"strict"),lookupProperty:o(function(u,c){var l=u[c];if(l==null||Object.prototype.hasOwnProperty.call(u,c)||yb.resultIsAllowed(l,i.protoAccessControl,c))return l},"lookupProperty"),lookup:o(function(u,c){for(var l=u.length,p=0;p<l;p++){var f=u[p]&&i.lookupProperty(u[p],c);if(f!=null)return u[p][c]}},"lookup"),lambda:o(function(u,c){return typeof u=="function"?u.call(c):u},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:o(function(u){var c=e[u];return c.decorator=e[u+"_d"],c},"fn"),programs:[],program:o(function(u,c,l,p,f){var d=this.programs[u],h=this.fn(u);return c||f||p||l?d=ca(this,u,h,c,l,p,f):d||(d=this.programs[u]=ca(this,u,h)),d},"program"),data:o(function(u,c){for(;u&&c--;)u=u._parent;return u},"data"),mergeIfNeeded:o(function(u,c){var l=u||c;return u&&c&&u!==c&&(l=Dt.extend({},c,u)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=u.data;s._setup(u),!u.partial&&e.useData&&(c=oC(a,c));var l=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(u.depths?l=a!=u.depths[0]?[a].concat(u.depths):u.depths:l=[a]);function f(d){return""+e.main(i,d,i.helpers,i.partials,c,p,l)}return o(f,"main"),f=_b(e.main,f,i,u.depths||[],c,p),f(a,u)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var u=Dt.extend({},t.helpers,a.helpers);sC(u,i),i.helpers=u,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=Dt.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=yb.createProtoAccessControl(a);var c=a.allowCallsToHelperMissing||r;gb.moveHelperToHooks(i,"helperMissing",c),gb.moveHelperToHooks(i,"blockHelperMissing",c)}},s._child=function(a,u,c,l){if(e.useBlockParams&&!c)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ca(i,a,e[a],u,0,c,l)},s}o(rC,"template");function ca(e,t,r,n,i,s,a){function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&c!=a[0]&&!(c===e.nullContext&&a[0]===null)&&(p=[c].concat(a)),r(e,c,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),p)}return o(u,"prog"),u=_b(r,u,e,a,n,s),u.program=t,u.depth=a?a.length:0,u.blockParams=i||0,u}o(ca,"wrapProgram");function nC(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=r.partials[e]):r.name==="@partial-block"?e=r.data["partial-block"]:e=r.partials[r.name],e}o(nC,"resolvePartial");function iC(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==vb&&function(){r.data=Ft.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Ft.createFrame(c.data),c.data["partial-block"]=n,s(u,c)},"partialBlockWrapper"),s.partials&&(r.partials=Dt.extend({},r.partials,s.partials))}(),e===void 0&&i&&(e=i),e===void 0)throw new Lt.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}o(iC,"invokePartial");function vb(){return""}o(vb,"noop");function oC(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}o(oC,"initData");function _b(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),Dt.extend(t,a)}return t}o(_b,"executeDecorators");function sC(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=aC(n,t)})}o(sC,"wrapHelpersToPassLookupProperty");function aC(e,t){var r=t.lookupProperty;return eC.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}o(aC,"passLookupPropertyOption")});var fp=m((la,Sb)=>{"use strict";la.__esModule=!0;la.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};Sb.exports=la.default});var xb=m((fa,Eb)=>{"use strict";fa.__esModule=!0;function dp(e){return e&&e.__esModule?e:{default:e}}o(dp,"_interopRequireDefault");function hp(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(hp,"_interopRequireWildcard");var uC=aa(),Pb=hp(uC),cC=hb(),lC=dp(cC),fC=Ze(),pC=dp(fC),dC=Oe(),pp=hp(dC),hC=bb(),$b=hp(hC),mC=fp(),gC=dp(mC);function Ob(){var e=new Pb.HandlebarsEnvironment;return pp.extend(e,Pb),e.SafeString=lC.default,e.Exception=pC.default,e.Utils=pp,e.escapeExpression=pp.escapeExpression,e.VM=$b,e.template=function(t){return $b.template(t,e)},e}o(Ob,"create");var po=Ob();po.create=Ob;gC.default(po);po.default=po;fa.default=po;Eb.exports=fa.default});var mp=m((pa,Ab)=>{"use strict";pa.__esModule=!0;var wb={helpers:{helperExpression:o(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:o(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:o(function(t){return t.parts.length===1&&!wb.helpers.scopedId(t)&&!t.depth},"simpleId")}};pa.default=wb;Ab.exports=pa.default});var kb=m((da,Ib)=>{"use strict";da.__esModule=!0;var yC=function(){var e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:o(function(i,s,a,u,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=u.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(l[f]),strip:u.stripFlags(l[f],l[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=u.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:u.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:u.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=u.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),h=u.prepareProgram([d],l[f-1].loc);h.chained=!0,this.$={strip:l[f-2].strip,program:h,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:u.stripFlags(l[f-2],l[f])};break;case 22:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=u.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],u.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:u.stripFlags(l[f-4],l[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:u.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(l[f-2]),value:l[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=u.preparePath(!0,l[f],this._$);break;case 43:this.$=u.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:u.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:u.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:o(function(i,s){throw new Error(i)},"parseError"),parse:o(function(i){var s=this,a=[0],u=[null],c=[],l=this.table,p="",f=0,d=0,h=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;c.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(ft){a.length=a.length-2*ft,u.length=u.length-ft,c.length=c.length-ft}o(b,"popStack");function S(){var ft;return ft=s.lexer.lex()||1,typeof ft!="number"&&(ft=s.symbols_[ft]||ft),ft}o(S,"lex");for(var E,$,M,j,ie,oe,le={},Me,Ee,Bt,Jr;;){if(M=a[a.length-1],this.defaultActions[M]?j=this.defaultActions[M]:((E===null||typeof E>"u")&&(E=S()),j=l[M]&&l[M][E]),typeof j>"u"||!j.length||!j[0]){var Ra="";if(!h){Jr=[];for(Me in l[M])this.terminals_[Me]&&Me>2&&Jr.push("'"+this.terminals_[Me]+"'");this.lexer.showPosition?Ra="Parse error on line "+(f+1)+`:
|
|
55
|
+
`+this.lexer.showPosition()+`
|
|
56
|
+
Expecting `+Jr.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Ra="Parse error on line "+(f+1)+": Unexpected "+(E==1?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Ra,{text:this.lexer.match,token:this.terminals_[E]||E,line:this.lexer.yylineno,loc:v,expected:Jr})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+E);switch(j[0]){case 1:a.push(E),u.push(this.lexer.yytext),c.push(this.lexer.yylloc),a.push(j[1]),E=null,$?(E=$,$=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc,h>0&&h--);break;case 2:if(Ee=this.productions_[j[1]][1],le.$=u[u.length-Ee],le._$={first_line:c[c.length-(Ee||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Ee||1)].first_column,last_column:c[c.length-1].last_column},_&&(le._$.range=[c[c.length-(Ee||1)].range[0],c[c.length-1].range[1]]),oe=this.performAction.call(le,p,d,f,this.yy,j[1],u,c),typeof oe<"u")return oe;Ee&&(a=a.slice(0,-1*Ee*2),u=u.slice(0,-1*Ee),c=c.slice(0,-1*Ee)),a.push(this.productions_[j[1]][0]),u.push(le.$),c.push(le._$),Bt=l[a[a.length-2]][a[a.length-1]],a.push(Bt);break;case 3:return!0}}return!0},"parse")},t=function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var a=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===c.length?this.yylloc.first_column:0)+c[c.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
57
|
+
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,u,c,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(u=this._input.match(this.rules[f[d]]),!(u&&(!a||u[0].length>a[0].length)&&(a=u,c=d,!this.options.flex)));d++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
58
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,u,c){function l(f,d){return a.yytext=a.yytext.substring(f,a.yyleng-d+f)}o(l,"strip");var p=c;switch(u){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n}();e.lexer=t;function r(){this.yy={}}return o(r,"Parser"),r.prototype=e,e.Parser=r,new r}();da.default=yC;Ib.exports=da.default});var ya=m((ga,Cb)=>{"use strict";ga.__esModule=!0;function vC(e){return e&&e.__esModule?e:{default:e}}o(vC,"_interopRequireDefault");var _C=Ze(),gp=vC(_C);function ha(){this.parents=[]}o(ha,"Visitor");ha.prototype={constructor:ha,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!ha.prototype[n.type])throw new gp.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:o(function(t,r){if(this.acceptKey(t,r),!t[r])throw new gp.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(t){if(t){if(!this[t.type])throw new gp.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},"accept"),Program:o(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:ma,Decorator:ma,BlockStatement:Rb,DecoratorBlock:Rb,PartialStatement:Tb,PartialBlockStatement:o(function(t){Tb.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:ma,PathExpression:o(function(){},"PathExpression"),StringLiteral:o(function(){},"StringLiteral"),NumberLiteral:o(function(){},"NumberLiteral"),BooleanLiteral:o(function(){},"BooleanLiteral"),UndefinedLiteral:o(function(){},"UndefinedLiteral"),NullLiteral:o(function(){},"NullLiteral"),Hash:o(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:o(function(t){this.acceptRequired(t,"value")},"HashPair")};function ma(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(ma,"visitSubExpression");function Rb(e){ma.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o(Rb,"visitBlock");function Tb(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Tb,"visitPartial");ga.default=ha;Cb.exports=ga.default});var qb=m((va,Nb)=>{"use strict";va.__esModule=!0;function bC(e){return e&&e.__esModule?e:{default:e}}o(bC,"_interopRequireDefault");var SC=ya(),PC=bC(SC);function kt(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(kt,"WhitespaceControl");kt.prototype=new PC.default;kt.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],u=this.accept(a);if(u){var c=yp(n,i,r),l=vp(n,i,r),p=u.openStandalone&&c,f=u.closeStandalone&&l,d=u.inlineStandalone&&c&&l;u.close&&Gr(n,i,!0),u.open&&gr(n,i,!0),t&&d&&(Gr(n,i),gr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(Gr((a.program||a.inverse).body),gr(n,i)),t&&f&&(Gr(n,i),gr((a.inverse||a.program).body))}}return e};kt.prototype.BlockStatement=kt.prototype.DecoratorBlock=kt.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:vp(t.body),closeStandalone:yp((n||t).body)};if(e.openStrip.close&&Gr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&gr(t.body,null,!0),a.close&&Gr(n.body,null,!0),e.closeStrip.open&&gr(i.body,null,!0),!this.options.ignoreStandalone&&yp(t.body)&&vp(n.body)&&(gr(t.body),Gr(n.body))}else e.closeStrip.open&&gr(t.body,null,!0);return s};kt.prototype.Decorator=kt.prototype.MustacheStatement=function(e){return e.strip};kt.prototype.PartialStatement=kt.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function yp(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}o(yp,"isPrevWhitespace");function vp(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}o(vp,"isNextWhitespace");function Gr(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}o(Gr,"omitRight");function gr(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}o(gr,"omitLeft");va.default=kt;Nb.exports=va.default});var jb=m(Ke=>{"use strict";Ke.__esModule=!0;Ke.SourceLocation=EC;Ke.id=xC;Ke.stripFlags=wC;Ke.stripComment=AC;Ke.preparePath=IC;Ke.prepareMustache=kC;Ke.prepareRawBlock=RC;Ke.prepareBlock=TC;Ke.prepareProgram=CC;Ke.preparePartialBlock=NC;function $C(e){return e&&e.__esModule?e:{default:e}}o($C,"_interopRequireDefault");var OC=Ze(),_p=$C(OC);function bp(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new _p.default(e.path.original+" doesn't match "+t,r)}}o(bp,"validateClose");function EC(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}o(EC,"SourceLocation");function xC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(xC,"id");function wC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(wC,"stripFlags");function AC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(AC,"stripComment");function IC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,u=t.length;a<u;a++){var c=t[a].part,l=t[a].original!==c;if(n+=(t[a].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new _p.default("Invalid path: "+n,{loc:r});c===".."&&s++}else i.push(c)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(IC,"preparePath");function kC(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),u=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:u,strip:i,loc:this.locInfo(s)}}o(kC,"prepareMustache");function RC(e,t,r,n){bp(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}o(RC,"prepareRawBlock");function TC(e,t,r,n,i,s){n&&n.path&&bp(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var u=void 0,c=void 0;if(r){if(a)throw new _p.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,u=r.program}return i&&(i=u,u=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(TC,"prepareBlock");function CC(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}o(CC,"prepareProgram");function NC(e,t,r,n){return bp(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}o(NC,"preparePartialBlock")});var Lb=m(ho=>{"use strict";ho.__esModule=!0;ho.parseWithoutProcessing=Db;ho.parse=BC;function qC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}o(qC,"_interopRequireWildcard");function Mb(e){return e&&e.__esModule?e:{default:e}}o(Mb,"_interopRequireDefault");var jC=kb(),Sp=Mb(jC),MC=qb(),DC=Mb(MC),LC=jb(),FC=qC(LC),VC=Oe();ho.parser=Sp.default;var _a={};VC.extend(_a,FC);function Db(e,t){if(e.type==="Program")return e;Sp.default.yy=_a,_a.locInfo=function(n){return new _a.SourceLocation(t&&t.srcName,n)};var r=Sp.default.parse(e);return r}o(Db,"parseWithoutProcessing");function BC(e,t){var r=Db(e,t),n=new DC.default(t);return n.accept(r)}o(BC,"parse")});var Hb=m(vo=>{"use strict";vo.__esModule=!0;vo.Compiler=Pp;vo.precompile=GC;vo.compile=ZC;function Vb(e){return e&&e.__esModule?e:{default:e}}o(Vb,"_interopRequireDefault");var HC=Ze(),go=Vb(HC),yo=Oe(),UC=mp(),mo=Vb(UC),zC=[].slice;function Pp(){}o(Pp,"Compiler");Pp.prototype={compiler:Pp,equals:o(function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!Bb(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},"equals"),guid:0,compile:o(function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=yo.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},"compile"),compileProgram:o(function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},"compileProgram"),accept:o(function(t){if(!this[t.type])throw new go.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:o(function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},"Program"),BlockStatement:o(function(t){Fb(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:o(function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},"DecoratorBlock"),PartialStatement:o(function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new go.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:o(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:o(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:o(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:o(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:o(function(t){Fb(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:o(function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},"ambiguousSexpr"),simpleSexpr:o(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:o(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new go.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,mo.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=mo.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},"PathExpression"),StringLiteral:o(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:o(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:o(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:o(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:o(function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:o(function(t){this.opcodes.push({opcode:t,args:zC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=mo.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&mo.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],u=this.options;u.knownHelpers[a]?i=!0:u.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},"classifySexpr"),pushParams:o(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:o(function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!mo.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},"pushParam"),setupFullMustacheParams:o(function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},"setupFullMustacheParams"),blockParamIndex:o(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&yo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function GC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new go.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}o(GC,"precompile");function ZC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new go.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=yo.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),u=new r.Compiler().compile(a,t),c=new r.JavaScriptCompiler().compile(u,t,void 0,!0);return r.template(c)}o(i,"compileInput");function s(a,u){return n||(n=i()),n.call(this,a,u)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,u,c,l){return n||(n=i()),n._child(a,u,c,l)},s}o(ZC,"compile");function Bb(e,t){if(e===t)return!0;if(yo.isArray(e)&&yo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Bb(e[r],t[r]))return!1;return!0}}o(Bb,"argEquals");function Fb(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}o(Fb,"transformLiteralToPath")});var zb=m($p=>{var Ub="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");$p.encode=function(e){if(0<=e&&e<Ub.length)return Ub[e];throw new TypeError("Must be between 0 and 63: "+e)};$p.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,u=43,c=47,l=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+p:e==u?62:e==c?63:-1}});var xp=m(Ep=>{var Gb=zb(),Op=5,Zb=1<<Op,Kb=Zb-1,Wb=Zb;function KC(e){return e<0?(-e<<1)+1:(e<<1)+0}o(KC,"toVLQSigned");function WC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(WC,"fromVLQSigned");Ep.encode=o(function(t){var r="",n,i=KC(t);do n=i&Kb,i>>>=Op,i>0&&(n|=Wb),r+=Gb.encode(n);while(i>0);return r},"base64VLQ_encode");Ep.decode=o(function(t,r,n){var i=t.length,s=0,a=0,u,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Gb.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(c&Wb),c&=Kb,s=s+(c<<a),a+=Op}while(u);n.value=WC(s),n.rest=r},"base64VLQ_decode")});var Wn=m(ve=>{function YC(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}o(YC,"getArg");ve.getArg=YC;var Yb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,QC=/^data:.+\,.+$/;function _o(e){var t=e.match(Yb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(_o,"urlParse");ve.urlParse=_o;function Zn(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}o(Zn,"urlGenerate");ve.urlGenerate=Zn;function wp(e){var t=e,r=_o(e);if(r){if(!r.path)return e;t=r.path}for(var n=ve.isAbsolute(t),i=t.split(/\/+/),s,a=0,u=i.length-1;u>=0;u--)s=i[u],s==="."?i.splice(u,1):s===".."?a++:a>0&&(s===""?(i.splice(u+1,a),a=0):(i.splice(u,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Zn(r)):t}o(wp,"normalize");ve.normalize=wp;function Qb(e,t){e===""&&(e="."),t===""&&(t=".");var r=_o(t),n=_o(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Zn(r);if(r||t.match(QC))return t;if(n&&!n.host&&!n.path)return n.host=t,Zn(n);var i=t.charAt(0)==="/"?t:wp(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Zn(n)):i}o(Qb,"join");ve.join=Qb;ve.isAbsolute=function(e){return e.charAt(0)==="/"||Yb.test(e)};function JC(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}o(JC,"relative");ve.relative=JC;var Jb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Xb(e){return e}o(Xb,"identity");function XC(e){return eS(e)?"$"+e:e}o(XC,"toSetString");ve.toSetString=Jb?Xb:XC;function eN(e){return eS(e)?e.slice(1):e}o(eN,"fromSetString");ve.fromSetString=Jb?Xb:eN;function eS(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}o(eS,"isProtoString");function tN(e,t,r){var n=Kn(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Kn(e.name,t.name)}o(tN,"compareByOriginalPositions");ve.compareByOriginalPositions=tN;function rN(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Kn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Kn(e.name,t.name)}o(rN,"compareByGeneratedPositionsDeflated");ve.compareByGeneratedPositionsDeflated=rN;function Kn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Kn,"strcmp");function nN(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Kn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Kn(e.name,t.name)}o(nN,"compareByGeneratedPositionsInflated");ve.compareByGeneratedPositionsInflated=nN;function iN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(iN,"parseSourceMapInput");ve.parseSourceMapInput=iN;function oN(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=_o(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=Qb(Zn(n),t)}return wp(t)}o(oN,"computeSourceURL");ve.computeSourceURL=oN});var kp=m(tS=>{var Ap=Wn(),Ip=Object.prototype.hasOwnProperty,Zr=typeof Map<"u";function Vt(){this._array=[],this._set=Zr?new Map:Object.create(null)}o(Vt,"ArraySet");Vt.fromArray=o(function(t,r){for(var n=new Vt,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Vt.prototype.size=o(function(){return Zr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=o(function(t,r){var n=Zr?t:Ap.toSetString(t),i=Zr?this.has(t):Ip.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Zr?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Vt.prototype.has=o(function(t){if(Zr)return this._set.has(t);var r=Ap.toSetString(t);return Ip.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=o(function(t){if(Zr){var r=this._set.get(t);if(r>=0)return r}else{var n=Ap.toSetString(t);if(Ip.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Vt.prototype.at=o(function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},"ArraySet_at");Vt.prototype.toArray=o(function(){return this._array.slice()},"ArraySet_toArray");tS.ArraySet=Vt});var iS=m(nS=>{var rS=Wn();function sN(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||rS.compareByGeneratedPositionsInflated(e,t)<=0}o(sN,"generatedPositionAfter");function ba(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(ba,"MappingList");ba.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");ba.prototype.add=o(function(t){sN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");ba.prototype.toArray=o(function(){return this._sorted||(this._array.sort(rS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");nS.MappingList=ba});var Rp=m(oS=>{var bo=xp(),X=Wn(),Sa=kp().ArraySet,aN=iS().MappingList;function We(e){e||(e={}),this._file=X.getArg(e,"file",null),this._sourceRoot=X.getArg(e,"sourceRoot",null),this._skipValidation=X.getArg(e,"skipValidation",!1),this._sources=new Sa,this._names=new Sa,this._mappings=new aN,this._sourcesContents=null}o(We,"SourceMapGenerator");We.prototype._version=3;We.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new We({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=X.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=X.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");We.prototype.addMapping=o(function(t){var r=X.getArg(t,"generated"),n=X.getArg(t,"original",null),i=X.getArg(t,"source",null),s=X.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})},"SourceMapGenerator_addMapping");We.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=X.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[X.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[X.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");We.prototype.applySourceMap=o(function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=X.relative(s,i));var a=new Sa,u=new Sa;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=X.join(n,c.source)),s!=null&&(c.source=X.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!a.has(p)&&a.add(p);var f=c.name;f!=null&&!u.has(f)&&u.add(f)},this),this._sources=a,this._names=u,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=X.join(n,c)),s!=null&&(c=X.relative(s,c)),this.setSourceContent(c,l))},this)},"SourceMapGenerator_applySourceMap");We.prototype._validateMapping=o(function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}},"SourceMapGenerator_validateMapping");We.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,u="",c,l,p,f,d=this._mappings.toArray(),h=0,g=d.length;h<g;h++){if(l=d[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!X.compareByGeneratedPositionsInflated(l,d[h-1]))continue;c+=","}c+=bo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=bo.encode(f-a),a=f,c+=bo.encode(l.originalLine-1-i),i=l.originalLine-1,c+=bo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=bo.encode(p-s),s=p)),u+=c}return u},"SourceMapGenerator_serializeMappings");We.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=X.relative(r,n));var i=X.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");We.prototype.toJSON=o(function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},"SourceMapGenerator_toJSON");We.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");oS.SourceMapGenerator=We});var sS=m(Kr=>{Kr.GREATEST_LOWER_BOUND=1;Kr.LEAST_UPPER_BOUND=2;function Tp(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,u=i(r,n[a],!0);return u===0?a:u>0?t-a>1?Tp(a,t,r,n,i,s):s==Kr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Tp(e,a,r,n,i,s):s==Kr.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Tp,"recursiveSearch");Kr.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Tp(-1,r.length,t,r,n,i||Kr.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s},"search")});var uS=m(aS=>{function Cp(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o(Cp,"swap");function uN(e,t){return Math.round(e+Math.random()*(t-e))}o(uN,"randomIntInRange");function Np(e,t,r,n){if(r<n){var i=uN(r,n),s=r-1;Cp(e,i,n);for(var a=e[n],u=r;u<n;u++)t(e[u],a)<=0&&(s+=1,Cp(e,s,u));Cp(e,s+1,u);var c=s+1;Np(e,t,r,c-1),Np(e,t,c+1,n)}}o(Np,"doQuickSort");aS.quickSort=function(e,t){Np(e,t,0,e.length-1)}});var lS=m(Pa=>{var P=Wn(),qp=sS(),Yn=kp().ArraySet,cN=xp(),So=uS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new lt(r,t):new ce(r,t)}o(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ce.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});U.prototype.__originalMappings=null;Object.defineProperty(U.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=o(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=o(function(t,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");U.GENERATED_ORDER=1;U.ORIGINAL_ORDER=2;U.GREATEST_LOWER_BOUND=1;U.LEAST_UPPER_BOUND=2;U.prototype.eachMapping=o(function(t,r,n){var i=r||null,s=n||U.GENERATED_ORDER,a;switch(s){case U.GENERATED_ORDER:a=this._generatedMappings;break;case U.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=P.computeSourceURL(u,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=o(function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,qp.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:P.getArg(a,"generatedLine",null),column:P.getArg(a,"generatedColumn",null),lastColumn:P.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");Pa.SourceMapConsumer=U;function ce(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sources"),s=P.getArg(r,"names",[]),a=P.getArg(r,"sourceRoot",null),u=P.getArg(r,"sourcesContent",null),c=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=P.normalize(a)),i=i.map(String).map(P.normalize).map(function(p){return a&&P.isAbsolute(a)&&P.isAbsolute(p)?P.relative(a,p):p}),this._names=Yn.fromArray(s.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return P.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=t,this.file=l}o(ce,"BasicSourceMapConsumer");ce.prototype=Object.create(U.prototype);ce.prototype.consumer=U;ce.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ce.fromSourceMap=o(function(t,r){var n=Object.create(ce.prototype),i=n._names=Yn.fromArray(t._names.toArray(),!0),s=n._sources=Yn.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return P.computeSourceURL(n.sourceRoot,h,r)});for(var a=t._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=a.length;l<p;l++){var f=a[l],d=new cS;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),u.push(d)}return So(n.__originalMappings,P.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ce.prototype._version=3;Object.defineProperty(ce.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function cS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(cS,"Mapping");ce.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,u=0,c=0,l=t.length,p=0,f={},d={},h=[],g=[],y,v,_,b,S;p<l;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(y=new cS,y.generatedLine=n,b=p;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(p,b),_=f[v],_)p+=v.length;else{for(_=[];p<b;)cN.decode(t,p,d),S=d.value,p=d.rest,_.push(S);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");f[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=u+_[1],u+=_[1],y.originalLine=s+_[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=c+_[4],c+=_[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}So(g,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,So(h,P.compareByOriginalPositions),this.__originalMappings=h},"SourceMapConsumer_parseMappings");ce.prototype._findMapping=o(function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return qp.search(t,r,s,a)},"SourceMapConsumer_findMapping");ce.prototype.computeColumnSpans=o(function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");ce.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=P.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=P.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=P.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:P.getArg(i,"originalLine",null),column:P.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ce.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ce.prototype.sourceContentFor=o(function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=P.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=P.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");ce.prototype.generatedPositionFor=o(function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:P.getArg(s,"generatedLine",null),column:P.getArg(s,"generatedColumn",null),lastColumn:P.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Pa.BasicSourceMapConsumer=ce;function lt(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var n=P.getArg(r,"version"),i=P.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Yn,this._names=new Yn;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var u=P.getArg(a,"offset"),c=P.getArg(u,"line"),l=P.getArg(u,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=u,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new U(P.getArg(a,"map"),t)}})}o(lt,"IndexedSourceMapConsumer");lt.prototype=Object.create(U.prototype);lt.prototype.constructor=U;lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:o(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e},"get")});lt.prototype.originalPositionFor=o(function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=qp.search(r,this._sections,function(s,a){var u=s.generatedLine-a.generatedOffset.generatedLine;return u||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");lt.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");lt.prototype.sourceContentFor=o(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");lt.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");lt.prototype._parseMappings=o(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var u=s[a],c=i.consumer._sources.at(u.source);c=P.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;u.name&&(l=i.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}So(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),So(this.__originalMappings,P.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");Pa.IndexedSourceMapConsumer=lt});var pS=m(fS=>{var lN=Rp().SourceMapGenerator,$a=Wn(),fN=/(\r?\n)/,pN=10,Qn="$$$isSourceNode$$$";function je(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Qn]=!0,n!=null&&this.add(n)}o(je,"SourceNode");je.fromStringWithSourceMap=o(function(t,r,n){var i=new je,s=t.split(fN),a=0,u=o(function(){var d=g(),h=g()||"";return d+h;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,u()),c++,l=0;else{var h=s[a]||"",g=h.substr(0,d.generatedColumn-l);s[a]=h.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(u()),c++;if(l<d.generatedColumn){var h=s[a]||"";i.add(h.substr(0,d.generatedColumn)),s[a]=h.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),a<s.length&&(p&&f(p,u()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var h=r.sourceContentFor(d);h!=null&&(n!=null&&(d=$a.join(n,d)),i.setSourceContent(d,h))}),i;function f(d,h){if(d===null||d.source===void 0)i.add(h);else{var g=n?$a.join(n,d.source):d.source;i.add(new je(d.originalLine,d.originalColumn,g,h,d.name))}}o(f,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");je.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Qn]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_add");je.prototype.prepend=o(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Qn]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},"SourceNode_prepend");je.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Qn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");je.prototype.join=o(function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");je.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Qn]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this},"SourceNode_replaceRight");je.prototype.setSourceContent=o(function(t,r){this.sourceContents[$a.toSetString(t)]=r},"SourceNode_setSourceContent");je.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Qn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t($a.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");je.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");je.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new lN(t),i=!1,s=null,a=null,u=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||u!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,u=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===pN?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");fS.SourceNode=je});var dS=m(Oa=>{Oa.SourceMapGenerator=Rp().SourceMapGenerator;Oa.SourceMapConsumer=lS().SourceMapConsumer;Oa.SourceNode=pS().SourceNode});var yS=m((Ea,gS)=>{"use strict";Ea.__esModule=!0;var Mp=Oe(),Wr=void 0;try{(typeof define!="function"||!define.amd)&&(hS=dS(),Wr=hS.SourceNode)}catch{}var hS;Wr||(Wr=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Wr.prototype={add:o(function(t){Mp.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){Mp.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:o(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:o(function(){return this.src},"toString")});function jp(e,t,r){if(Mp.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}o(jp,"castChunk");function mS(e){this.srcFile=e,this.source=[]}o(mS,"CodeGen");mS.prototype={isEmpty:o(function(){return!this.source.length},"isEmpty"),prepend:o(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:o(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:o(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
59
|
+
`])}),t},"merge"),each:o(function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},"each"),empty:o(function(){var t=this.currentLocation||{start:{}};return new Wr(t.start.line,t.start.column,this.srcFile)},"empty"),wrap:o(function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof Wr?t:(t=jp(t,this,r),new Wr(r.start.line,r.start.column,this.srcFile,t))},"wrap"),functionCall:o(function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=jp(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(jp(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};Ea.default=mS;gS.exports=Ea.default});var PS=m((xa,SS)=>{"use strict";xa.__esModule=!0;function bS(e){return e&&e.__esModule?e:{default:e}}o(bS,"_interopRequireDefault");var vS=aa(),dN=Ze(),Dp=bS(dN),hN=Oe(),mN=yS(),_S=bS(mN);function Jn(e){this.value=e}o(Jn,"Literal");function Xn(){}o(Xn,"JavaScriptCompiler");Xn.prototype={nameLookup:o(function(t,r){return this.internalNameLookup(t,r)},"nameLookup"),depthedLookup:o(function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},"depthedLookup"),compilerInfo:o(function(){var t=vS.COMPILER_REVISION,r=vS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return hN.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,u=void 0,c=void 0,l=void 0;for(c=0,l=s.length;c<l;c++)a=s[c],this.source.currentLocation=a.loc,u=u||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=u,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Dp.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
60
|
+
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
61
|
+
`),this.decorators.push(`}
|
|
62
|
+
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var f={compiler:this.compilerInfo(),main:p};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var d=this.context,h=d.programs,g=d.decorators;for(c=0,l=h.length;c<l;c++)h[c]&&(f[c]=h[c],g[c]&&(f[c+"_d"]=g[c],f.useDecorators=!0));return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new _S.default(this.options.srcName),this.decorators=new _S.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+c,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var u=this.mergeSource(n);return t?(a.push(u),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
63
|
+
`,u,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,u=void 0;return this.source.each(function(c){c.appendToBuffer?(a?c.prepend(" + "):a=c,u=c):(a&&(s?a.prepend("buffer += "):i=!0,u.add(";"),a=u=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),u.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),u.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
|
|
64
|
+
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
|
|
65
|
+
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
66
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
67
|
+
return parent[propertyName];
|
|
68
|
+
}
|
|
69
|
+
return undefined
|
|
70
|
+
}
|
|
71
|
+
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(t){this.lastContext=t},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},"lookupOnContext"),lookupBlockParam:o(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(gN(this.options.strict&&s,this,r,n,t));return}for(var u=r.length;n<u;n++)this.replaceStack(function(c){var l=a.nameLookup(c,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",c]})},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:o(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},"popHash"),pushString:o(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:o(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:o(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var u=["(",this.itemsSeparatedBy(a,"||"),")"],c=this.source.functionCall(u,"call",s.callParams);this.push(c)},"invokeHelper"),itemsSeparatedBy:o(function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:o(function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:o(function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},"assignToHash"),pushId:o(function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Xn,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,u=n.length;a<u;a++){i=n[a],s=new this.compiler;var c=this.matchExistingProgram(i);if(c==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=s.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=c.index,i.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams}},"compileChildren"),matchExistingProgram:o(function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},"matchExistingProgram"),programExpression:o(function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:o(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:o(function(t){return t instanceof Jn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Jn(t))},"pushStackLiteral"),pushSource:o(function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},"pushSource"),replaceStack:o(function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new Dp.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Jn)n=[a.value],r=["(",n],s=!0;else{i=!0;var u=this.incrStack();r=["((",this.push(u)," = ",a,")"],n=this.topStack()}var c=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(c,")"))},"replaceStack"),incrStack:o(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:o(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:o(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Jn)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},"flushInline"),isInline:o(function(){return this.inlineStack.length},"isInline"),popStack:o(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Jn)return n.value;if(!r){if(!this.stackSlot)throw new Dp.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:o(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Jn?r.value:r},"topStack"),contextName:o(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:o(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:o(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:o(function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:o(function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),u=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[u].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],u=[],c=!n,l=void 0;c&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),f=this.popStack();(f||p)&&(i.fn=f||"container.noop",i.inverse=p||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(u[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return c&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(u)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:o(function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s},"setupHelperArgs")};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Xn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Xn.isValidJavaScriptVariableName=function(e){return!Xn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function gN(e,t,r,n,i){var s=t.popStack(),a=r.length;for(e&&a--;n<a;n++)s=t.nameLookup(s,r[n],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}o(gN,"strictLookup");xa.default=Xn;SS.exports=xa.default});var ES=m((wa,OS)=>{"use strict";wa.__esModule=!0;function Po(e){return e&&e.__esModule?e:{default:e}}o(Po,"_interopRequireDefault");var yN=xb(),vN=Po(yN),_N=mp(),bN=Po(_N),Lp=Lb(),Fp=Hb(),SN=PS(),PN=Po(SN),$N=ya(),ON=Po($N),EN=fp(),xN=Po(EN),wN=vN.default.create;function $S(){var e=wN();return e.compile=function(t,r){return Fp.compile(t,r,e)},e.precompile=function(t,r){return Fp.precompile(t,r,e)},e.AST=bN.default,e.Compiler=Fp.Compiler,e.JavaScriptCompiler=PN.default,e.Parser=Lp.parser,e.parse=Lp.parse,e.parseWithoutProcessing=Lp.parseWithoutProcessing,e}o($S,"create");var ei=$S();ei.create=$S;xN.default(ei);ei.Visitor=ON.default;ei.default=ei;wa.default=ei;OS.exports=wa.default});var xS=m(Aa=>{"use strict";Aa.__esModule=!0;Aa.print=RN;Aa.PrintVisitor=Y;function AN(e){return e&&e.__esModule?e:{default:e}}o(AN,"_interopRequireDefault");var IN=ya(),kN=AN(IN);function RN(e){return new Y().accept(e)}o(RN,"print");function Y(){this.padding=0}o(Y,"PrintVisitor");Y.prototype=new kN.default;Y.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
72
|
+
`,t};Y.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Y.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Y.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Y.prototype.BlockStatement=Y.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Y.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Y.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Y.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Y.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Y.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Y.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Y.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Y.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Y.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Y.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Y.prototype.NullLiteral=function(){return"NULL"};Y.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Y.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var Yr=m((ZF,IS)=>{var Ia=ES().default,AS=xS();Ia.PrintVisitor=AS.PrintVisitor;Ia.print=AS.print;IS.exports=Ia;function wS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Ia.compile(n)}o(wS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=wS,require.extensions[".hbs"]=wS)});var XN={};WS(XN,{getGenerateFileData:()=>JN,getGenerateMetadata:()=>QN});module.exports=YS(XN);var Gp=De(Pv());var $v="Schema",Ov="Enum",Ev="Body",xv="Param",wv="Response",Av="ErrorResponse",Pf="z.void()",As={bindings:["z"],from:"zod"};var Yi={input:"input.yaml",output:"output",splitByTags:!0,defaultTag:"Common",excludeTags:[],includeNamespaces:!0,importPath:"ts",extractEnums:!0,configs:{models:{outputFileNameSuffix:"models",namespaceSuffix:"Models"},endpoints:{outputFileNameSuffix:"api",namespaceSuffix:"Api"},queries:{outputFileNameSuffix:"queries",namespaceSuffix:"Queries"}},schemaSuffix:$v,enumSuffix:Ov,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Ne=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var ge=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Qi=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),Is=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),Re=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),Iv=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),$f=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),kv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),zR=o(e=>{var n;let t=e.reduce((i,s)=>({...i,[s]:(i[s]??0)+1}),{});return(n=Object.entries(t).sort((i,s)=>i[1]===s[1]?s[0].length-i[0].length:s[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),Of=o(e=>{let t=e.map(ge).map(GR).map(r=>ZR(r)).flat();return zR(t)},"getMostCommonAdjacentCombinationSplit"),GR=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),ZR=o((e,t=["dto","by","for","of","in","to","and","with"])=>{var n;let r=[];for(let i=0;i<e.length;i++)if(!t.includes(e[i].toLowerCase()))for(let s=i+1;s<=e.length;s++)t.includes((n=e[s-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,s).join(""));return r},"getAdjacentStringCombinations");var ks=o(e=>`use${ge(Re(e.operationName))}`,"getQueryName"),Ef=o(e=>{let t=e.map(({path:s})=>s),r=/^\/[^\/]*/g,n=Ne(t.map(s=>s.match(r)).flat()),i=o(s=>n.length===1?"all":`all${ge(Is(s.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(s=>s!==null).map(s=>({path:s,name:i(s??"")}))},"getAllQueryKeys"),Rv=o((e,t)=>{let n=Ef(t).find(({path:s})=>e.path.startsWith(s));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function or({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Qi(t)}/`:""}${Qi(t)}.${i}`:i}o(or,"getTagFileName");var re=o(({type:e,tag:t,options:r})=>`${ge(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Tv=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),Pt=o(e=>e.replace(/^[^a-zA-Z_$]*/g,"").replace(/[^a-zA-Z0-9_$]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"invalidVariableNameCharactersToCamel");var jt=Symbol.for("@ts-pattern/matcher"),KR=Symbol.for("@ts-pattern/isVariadic"),Ts="@ts-pattern/anonymous-select-key",xf=o(e=>!!(e&&typeof e=="object"),"r"),Rs=o(e=>e&&!!e[jt],"i"),Et=o((e,t,r)=>{if(Rs(e)){let n=e[jt](),{matched:i,selections:s}=n.match(t);return i&&s&&Object.keys(s).forEach(a=>r(a,s[a])),i}if(xf(e)){if(!xf(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let u=e[a];Rs(u)&&u[KR]?s.push(u):s.length?i.push(u):n.push(u)}if(s.length){if(s.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let a=t.slice(0,n.length),u=i.length===0?[]:t.slice(-i.length),c=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,p)=>Et(l,a[p],r))&&i.every((l,p)=>Et(l,u[p],r))&&(s.length===0||Et(s[0],c,r))}return e.length===t.length&&e.every((a,u)=>Et(a,t[u],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Rs(s=i)&&s[jt]().matcherType==="optional")&&Et(i,t[n],r);var s})}return Object.is(t,e)},"s"),lr=o(e=>{var t,r,n;return xf(e)?Rs(e)?(t=(r=(n=e[jt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Xi(e,lr):Xi(Object.values(e),lr):[]},"o"),Xi=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Ue(e){return Object.assign(e,{optional:o(()=>WR(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>YR(e,t),"or"),select:o(t=>t===void 0?Cv(e):Cv(t,e),"select")})}o(Ue,"u");function WR(e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(lr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Et(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>lr(e),"getSelectionKeys"),matcherType:"optional"})})}o(WR,"h");function z(...e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Xi(e,lr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function YR(...e){return Ue({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Xi(e,lr).forEach(i=>n(i,void 0)),{matched:e.some(i=>Et(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Xi(e,lr),"getSelectionKeys"),matcherType:"or"})})}o(YR,"d");function D(e){return{[jt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(D,"p");function Cv(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Ue({[jt]:()=>({match:o(n=>{let i={[t??Ts]:n};return{matched:r===void 0||Et(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??Ts].concat(r===void 0?[]:lr(r)),"getSelectionKeys")})})}o(Cv,"y");function $t(e){return typeof e=="number"}o($t,"v");function sr(e){return typeof e=="string"}o(sr,"b");function ar(e){return typeof e=="bigint"}o(ar,"w");var wD=Ue(D(function(e){return!0}));var ur=o(e=>Object.assign(Ue(e),{startsWith:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length>=r))(t))),"minLength"),length:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length===r))(t))),"length"),maxLength:o(t=>ur(z(e,(r=>D(n=>sr(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return ur(z(e,(r=t,D(n=>sr(n)&&!!n.match(r)))));var r},"regex")}),"j"),AD=ur(D(sr)),Ot=o(e=>Object.assign(Ue(e),{between:o((t,r)=>Ot(z(e,((n,i)=>D(s=>$t(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<r))(t))),"lt"),gt:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>r))(t))),"gt"),lte:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n<=r))(t))),"lte"),gte:o(t=>Ot(z(e,(r=>D(n=>$t(n)&&n>=r))(t))),"gte"),int:o(()=>Ot(z(e,D(t=>$t(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Ot(z(e,D(t=>$t(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Ot(z(e,D(t=>$t(t)&&t>0))),"positive"),negative:o(()=>Ot(z(e,D(t=>$t(t)&&t<0))),"negative")}),"x"),ID=Ot(D($t)),cr=o(e=>Object.assign(Ue(e),{between:o((t,r)=>cr(z(e,((n,i)=>D(s=>ar(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n<r))(t))),"lt"),gt:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n>r))(t))),"gt"),lte:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n<=r))(t))),"lte"),gte:o(t=>cr(z(e,(r=>D(n=>ar(n)&&n>=r))(t))),"gte"),positive:o(()=>cr(z(e,D(t=>ar(t)&&t>0))),"positive"),negative:o(()=>cr(z(e,D(t=>ar(t)&&t<0))),"negative")}),"A"),kD=cr(D(ar)),RD=Ue(D(function(e){return typeof e=="boolean"})),TD=Ue(D(function(e){return typeof e=="symbol"})),CD=Ue(D(function(e){return e==null})),ND=Ue(D(function(e){return e!=null}));var kf=class kf extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}};o(kf,"W");var wf=kf,Af={matched:!1,value:void 0};function ye(e){return new If(e,Af)}o(ye,"z");var Ji=class Ji{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let s=!1,a={},u=o((l,p)=>{s=!0,a[l]=p},"a"),c=!n.some(l=>Et(l,this.input,u))||i&&!i(this.input)?Af:{matched:!0,value:r(s?Ts in a?a[Ts]:a:this.input,this.input)};return new Ji(this.input,c)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Ji(this.input,n?{matched:!0,value:r(this.input,this.input)}:Af)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new wf(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Ji,"I");var If=Ji;var Nv=["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"];var Rf=2,qv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],jv=["query","header","path"],fr=["get","put","post","delete","options","head","patch","trace"],Mv=["string","number","integer","boolean"],Cs=["allOf","anyOf","oneOf"];function pr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(pr,"pick");function xt(e){return Iv(e)}o(xt,"formatTag");function Lr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return xt(r??t.defaultTag)}o(Lr,"getOperationTag");function Dv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=pr(i,fr);for(let a in s){let u=s[a];if(!u||u.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let c=t.splitByTags?Lr(u,t):t.defaultTag;r[c]||(r[c]=[]),r[c].push(u)}}return r}o(Dv,"getOperationsByTag");var Fv=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),Fr=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Dn=o(e=>Fr(e).split("/").at(-1),"getSchemaNameByRef");function H(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(H,"isReferenceObject");function Nf(e){let t=QR(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return Re(t)}o(Nf,"normalizeString");function Vv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(Vv,"wrapWithQuotesIfNeeded");function Bv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(Bv,"unwrapQuotesIfNeeded");function QR(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(QR,"prefixStringStartingWithNumberIfNeeded");function qf(e){let t=e.replaceAll("_","#");return Re(t.replaceAll("-","_")).replaceAll("#","_")}o(qf,"pathParamToVariableName");var Mt=o(e=>Mv.includes(e),"isPrimitiveType");function Hv(e){return e.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/([\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\uFFFE\uFFFF])/g,(t,r)=>{let n=r.codePointAt(),i=n.toString(16);return n<=255?`\\x${`00${i}`.slice(-2)}`:`\\u${`0000${i}`.slice(-4)}`}).replace(/\//g,"\\/")}o(Hv,"escapeControlCharacters");function dr(e){return e.includes("application/")&&e.includes("json")||qv.includes(e)||e.includes("text/")}o(dr,"isParamMediaTypeAllowed");function Ns(e){return e>=200&&e<300}o(Ns,"isMainResponseStatus");function qs(e){return!(e>=200&&e<300)}o(qs,"isErrorStatus");function Ln(e){return e==="application/json"}o(Ln,"isMediaTypeAllowed");function Tf({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${XR(e)}`,a=r.operationId?Pt(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((c,l)=>l===0?c:ge(c)).join("");if(n.removeOperationPrefixEndingWith&&!i){let u=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(u,"")}return Nv.includes(a)?s:a}o(Tf,"getOperationName");function eo({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?Lr(r,i):i.defaultTag,a=Tf({path:e,method:t,operation:r,options:i});return n[s].filter(c=>Tf({path:e,method:t,operation:c,options:i})===a).length===1?a:Tf({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(eo,"getUniqueOperationName");function Uv(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=pr(s,fr);for(let u in a){let c=a[u];if(!c||c.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=eo({path:i,method:u,operation:c,operationsByTag:t,options:r});n.push(l)}}return n}o(Uv,"getUniqueOperationNamesWithoutSplitByTags");var Lv=/({\w+})/g,JR=/[^\w\-]+/g;function XR(e){e=ge(Is(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Lv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Lv,"")}By${ge(r.slice(1,-1))}`}return e.replace(JR,"_")}o(XR,"pathToVariableName");var Cf=/{(\b\w+(?:-\w+)*\b)}/g;function zv(e){let t=e.match(Cf);return t===null?e.replaceAll(Cf,":$1"):(t.forEach(r=>{let n=qf(r.replaceAll(Cf,":$1"));e=e.replaceAll(r,n)}),e)}o(zv,"replaceHyphenatedPath");var Fn=o(e=>e.method==="get","isQuery"),js=o(e=>e.method!=="get","isMutation");var hr=o((e,t)=>$f(ge(Nf(e)),t),"getZodSchemaName"),Gv=o((e,t,r)=>$f(ge(Nf(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=o(e=>!e.startsWith("z."),"isNamedZodSchema"),Vr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),Ms=o(e=>Re(`${e}_${Ev}`),"getBodyZodSchemaName"),Zv=o((e,t)=>Re(`${e}_${t}${xv}`),"getParamZodSchemaName"),eT=o(e=>Re(`${e}${wv}`),"getMainResponseZodSchemaName"),tT=o((e,t)=>Re(`${e}_${t}_${Av}`),"getErrorResponseZodSchemaName");function Ds({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Vr(t,r,n);return!Ns(i)&&e!=="default"&&qs(i)?tT(s,e):eT(s)}o(Ds,"getResponseZodSchemaName");var to=o((e,t)=>kv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Kv=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Ls=o((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${re({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${to(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Fs(e){return ye(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(Fs,"primitiveTypeToTsType");function Vn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Ls(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&Mt(t==null?void 0:t.type)&&(n=Fs(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{filePath:or({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(Vn,"getTsTypeBase");function Br({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of Cs){let s=e[i];if(s)if(s.length>1){let a=s.map(u=>{let c=n.resolveObject(u);return Br({schema:c,parentTypes:r,resolver:n})});return a.every(({metaType:u})=>u==="object")?{metaType:"object",objectProperties:a.reduce((u,{objectProperties:c})=>{let l=c.map(({name:p})=>p);return[...u.filter(({name:p})=>!l.includes(p)),...c]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:Wv({arraySchema:e,resolver:n,parentTypes:r})}:(e.type==="object"||e.properties)&&t?{metaType:"object",objectProperties:[],isCircular:!0}:e.type==="object"||e.properties?{metaType:"object",objectProperties:rT({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Br,"getSchemaTsMetaType");function Wv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(H(e.items)){let c=e.items.$ref;n=r.getZodSchemaNameByRef(c),i=r.getSchemaByRef(c)}else i=e.items;let s=Vn({zodSchemaName:n,schema:i,resolver:r}),a=Yv(s,t),u=Br({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...u}}o(Wv,"getArraySchemaTsType");function rT({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let s=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(H(i)){let u=r.getZodSchemaNameByRef(i.$ref),c=r.getSchemaByRef(i.$ref),l=Vn({zodSchemaName:u,schema:c,resolver:r}),p=Yv(l,t),f=Br({schema:c,isCircular:p,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...f}}else if(i.type==="array"){let u=Wv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:u}}else if(Mt(i.type))return{name:n,isRequired:s,type:Fs(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(rT,"getSchemaTsProperties");function Yv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Yv,"getIsCircular");var jf={"Content-Type":"application/json",Accept:"application/json"},Qv="data";function wt(e){return!H(e)}o(wt,"isSchemaObject");function Jv(e){return e.type==="array"}o(Jv,"isArraySchemaObject");function Xv(e){if(!e.allOf)throw new Error("Function inferRequiredSchema is specialized to handle item with required only in an allOf array.");let[t,r]=e.allOf.reduce((i,s)=>{if(nT(s)){let a=s.required;i[0].push(...a??[])}else i[1].push(s);return i},[[],[]]),n={properties:t.reduce((i,s)=>(i[s]={},i),{}),type:"object",required:t};return{noRequiredOnlyAllof:r,composedRequiredSchema:n,patchRequiredSchemaInLoop:o((i,s)=>{if(H(i)){let a=s(i.$ref);a&&n.required.forEach(u=>{var c;n.properties[u]=((c=a==null?void 0:a.properties)==null?void 0:c[u])??{}})}else{let a=i.properties??{};n.required.forEach(u=>{a[u]&&(n.properties[u]=a[u]??{})})}},"patchRequiredSchemaInLoop")}}o(Xv,"inferRequiredSchema");var nT=o(e=>!H(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var ro=o(e=>Qi(Re(e.operationName)),"getEndpointName");function e_(e,t){return`${t.includeNamespaces?`${re({type:"endpoints",tag:no(e,t),options:t})}.`:""}${ro(e)}`}o(e_,"getImportedEndpointName");var t_=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function no(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return xt(r??t.defaultTag)}o(no,"getEndpointTag");function Mf(e,t){return t.parameters.map(r=>{var i,s,a,u;let n="string";if(Pe(r.zodSchema))n=Ls(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&wt(r.parameterObject.schema)){let c=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;c&&Mt(c)&&(n=Fs(c))}return{name:Pt(r.name),type:n,paramType:r.type,required:((u=r.parameterObject)==null?void 0:u.required)??!0}}).sort((r,n)=>{if(r.required===n.required){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.required?-1:1})}o(Mf,"mapEndpointParamsToFunctionParams");function r_(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Tv(i.name)?i.name:`"${i.name}"`,a=Pt(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==jf["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==jf.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=Pt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(r_,"getEndpointConfig");var n_=o((e=0)=>t=>`\x1B[${t+e}m`,"wrapAnsi16"),i_=o((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"wrapAnsi256"),o_=o((e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,"wrapAnsi16m"),G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V5=Object.keys(G.modifier),iT=Object.keys(G.color),oT=Object.keys(G.bgColor),B5=[...iT,...oT];function sT(){let e=new Map;for(let[t,r]of Object.entries(G)){for(let[n,i]of Object.entries(r))G[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=G[n],e.set(i[0],i[1]);Object.defineProperty(G,t,{value:r,enumerable:!1})}return Object.defineProperty(G,"codes",{value:e,enumerable:!1}),G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi=n_(),G.color.ansi256=i_(),G.color.ansi16m=o_(),G.bgColor.ansi=n_(10),G.bgColor.ansi256=i_(10),G.bgColor.ansi16m=o_(10),Object.defineProperties(G,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:o(t=>G.rgbToAnsi256(...G.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let u=t%36;r=Math.floor(t/36)/5,n=Math.floor(u/6)/5,i=u%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:o((t,r,n)=>G.ansi256ToAnsi(G.rgbToAnsi256(t,r,n)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>G.ansi256ToAnsi(G.hexToAnsi256(t)),"value"),enumerable:!1}}),G}o(sT,"assembleStyles");var aT=sT(),ut=aT;var Bs=De(require("process"),1),a_=De(require("os"),1),Df=De(require("tty"),1);function ze(e,t=globalThis.Deno?globalThis.Deno.args:Bs.default.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}o(ze,"hasFlag");var{env:Z}=Bs.default,Vs;ze("no-color")||ze("no-colors")||ze("color=false")||ze("color=never")?Vs=0:(ze("color")||ze("colors")||ze("color=true")||ze("color=always"))&&(Vs=1);function uT(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}o(uT,"envForceColor");function cT(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(cT,"translateLevel");function lT(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=uT();n!==void 0&&(Vs=n);let i=r?Vs:n;if(i===0)return 0;if(r){if(ze("color=16m")||ze("color=full")||ze("color=truecolor"))return 3;if(ze("color=256"))return 2}if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(Bs.default.platform==="win32"){let a=a_.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Z)return"GITHUB_ACTIONS"in Z||"GITEA_ACTIONS"in Z?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor"||Z.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Z){let a=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}o(lT,"_supportsColor");function s_(e,t={}){let r=lT(e,{streamIsTTY:e&&e.isTTY,...t});return cT(r)}o(s_,"createSupportsColor");var fT={stdout:s_({isTTY:Df.default.isatty(1)}),stderr:s_({isTTY:Df.default.isatty(2)})},u_=fT;function c_(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}o(c_,"stringReplaceAll");function l_(e,t,r,n){let i=0,s="";do{let a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
|
|
73
|
+
`:`
|
|
74
|
+
`)+r,i=n+1,n=e.indexOf(`
|
|
75
|
+
`,i)}while(n!==-1);return s+=e.slice(i),s}o(l_,"stringEncaseCRLFWithFirstIndex");var{stdout:f_,stderr:p_}=u_,Lf=Symbol("GENERATOR"),Bn=Symbol("STYLER"),io=Symbol("IS_EMPTY"),d_=["ansi","ansi","ansi256","ansi16m"],Hn=Object.create(null),pT=o((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=f_?f_.level:0;e.level=t.level===void 0?r:t.level},"applyOptions"),Bf=class Bf{constructor(t){return h_(t)}};o(Bf,"Chalk");var Hs=Bf,h_=o(e=>{let t=o((...r)=>r.join(" "),"chalk");return pT(t,e),Object.setPrototypeOf(t,oo.prototype),t},"chalkFactory");function oo(e){return h_(e)}o(oo,"createChalk");Object.setPrototypeOf(oo.prototype,Function.prototype);for(let[e,t]of Object.entries(ut))Hn[e]={get(){let r=Us(this,Vf(t.open,t.close,this[Bn]),this[io]);return Object.defineProperty(this,e,{value:r}),r}};Hn.visible={get(){let e=Us(this,this[Bn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ff=o((e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ut[r].ansi16m(...n):t==="ansi256"?ut[r].ansi256(ut.rgbToAnsi256(...n)):ut[r].ansi(ut.rgbToAnsi(...n)):e==="hex"?Ff("rgb",t,r,...ut.hexToRgb(...n)):ut[r][e](...n),"getModelAnsi"),dT=["rgb","hex","ansi256"];for(let e of dT){Hn[e]={get(){let{level:r}=this;return function(...n){let i=Vf(Ff(e,d_[r],"color",...n),ut.color.close,this[Bn]);return Us(this,i,this[io])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Hn[t]={get(){let{level:r}=this;return function(...n){let i=Vf(Ff(e,d_[r],"bgColor",...n),ut.bgColor.close,this[Bn]);return Us(this,i,this[io])}}}}var hT=Object.defineProperties(()=>{},{...Hn,level:{enumerable:!0,get(){return this[Lf].level},set(e){this[Lf].level=e}}}),Vf=o((e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},"createStyler"),Us=o((e,t,r)=>{let n=o((...i)=>mT(n,i.length===1?""+i[0]:i.join(" ")),"builder");return Object.setPrototypeOf(n,hT),n[Lf]=e,n[Bn]=t,n[io]=r,n},"createBuilder"),mT=o((e,t)=>{if(e.level<=0||!t)return e[io]?"":t;let r=e[Bn];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=c_(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
76
|
+
`);return s!==-1&&(t=l_(t,i,n,s)),n+t+i},"applyStyle");Object.defineProperties(oo.prototype,Hn);var J5=oo(),X5=oo({level:p_?p_.level:0});var Ge=new Hs;function m_(e){return{type:"invalid-schema",message:`${e} has both reference and composite keyword`}}o(m_,"getInvalidSchemaError");function g_(e){return{type:"invalid-operation-id",message:`Operation ${Ge.gray(e)}`}}o(g_,"getInvalidOperationIdError");function y_(e,t){return{type:"missing-path-parameter",message:`Path ${Ge.gray(t)} is missing [${e.map(({name:r})=>Ge.gray(r)).join(", ")}]`}}o(y_,"getMissingPathParameterError");function v_(e){return{type:"not-allowed-inline-enum",message:e}}o(v_,"getNotAllowedInlineEnumError");function At({schema:e,meta:t,options:r}){let n=[];ye(e.type).with("string",()=>n.push(vT(e))).with("number","integer",()=>n.push(bT(e))).with("array",()=>n.push(ST(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
51
77
|
`,"\r",`\r
|
|
52
|
-
`].some(
|
|
53
|
-
z.discriminatedUnion("${u}", [${e.oneOf.map(
|
|
54
|
-
`)}return t.assign(`z.union([${e.oneOf.map(u=>U({schema:u,resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(uj,"getOneOfZodSchema");function fj({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!(!Tt(e)||!Array.isArray(e.type)))return e.type.length===1?U({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i,options:o}):t.assign(`z.union([${e.type.map(a=>U({schema:{...e,type:a},resolver:r,meta:n,tag:i,options:o}).getCodeString(i,o)).join(", ")}])`)}s(fj,"getArrayZodSchema");function lj({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Tt(e)||!e.anyOf)return;if(e.anyOf.length===1){let c=U({schema:e.anyOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(c.getCodeString(i,o))}let a=e.anyOf.map(c=>U({schema:c,resolver:r,meta:n,tag:i,options:o})).map(c=>c.getCodeString(i,o)).join(", ");return t.assign(`z.union([${a}])`)}s(lj,"getAnyOfZodSchema");function pj({schema:e,zodSchema:t,resolver:r,meta:n,tag:i,options:o}){if(!Tt(e)||!e.allOf)return;if(e.allOf.length===1){let m=U({schema:e.allOf[0],resolver:r,meta:n,tag:i,options:o});return t.assign(m.getCodeString(i,o))}let{patchRequiredSchemaInLoop:a,noRequiredOnlyAllof:c,composedRequiredSchema:u}=wy(e),f=c.map(m=>{let d=U({schema:m,resolver:r,meta:n,tag:i,options:o});return r&&a(m,r.getSchemaByRef.bind(r)),d});u.required.length&&f.push(U({schema:u,resolver:r,meta:n,tag:i,options:o}));let l=f.at(0),p=f.slice(1).map(m=>`merge(${m.getCodeString(i,o)})`).join(".");return t.assign(`${l.getCodeString(i,o)}.${p}`)}s(pj,"getAllOfZodSchema");function dj({schema:e,zodSchema:t}){if(!Tt(e))return;let r=e.type?e.type.toLowerCase():void 0;if(r&&At(r)){if(e.enum){if(r==="string"){if(e.enum.length===1){let n=e.enum[0],i=n===null?"null":`"${n}"`;return t.assign(`z.literal(${i})`)}return t.assign(`z.enum([${e.enum.map(n=>n===null?"null":`"${n}"`).join(", ")}])`)}if(e.enum.some(n=>typeof n=="string"))return t.assign("z.never()");if(e.enum.length===1){let n=e.enum[0];return t.assign(`z.literal(${n===null?"null":n})`)}return t.assign(`z.union([${e.enum.map(n=>`z.literal(${n===null?"null":n})`).join(", ")}])`)}return t.assign(oe(r).with("integer",()=>"z.number()").with("string",()=>oe(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(n=>`z.${n}()`))}}s(dj,"getPrimitiveZodSchema");function Yr({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i,options:o}){var u;let a=t.getCodeString();if((!or(a)||t.ref===void 0)&&r){if(t.complexity<iu)return a;let f=It(r,o.schemaSuffix),l=f;for(;n.getCodeByZodSchemaName(l);){if((u=n.getZodSchemaNamesByCompositeCode(a))!=null&&u.includes(l))return l;if(n.getCodeByZodSchemaName(l)===f)return l;throw new Error(`Can't uniquely resolve zod schema name: ${l}`)}return n.setZodSchema(l,a,i),n.addZodSchemaForCompositeCode(a,t,l,e),l}let c=n.getCodeByZodSchemaName(a);if(!c&&t.ref&&(c=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&c)return Y({current:0,schema:n.getSchemaByRef(t.ref)})<iu?n.getCodeByZodSchemaName(a):a;throw new Error(`Invalid ref: ${t.ref}`)}s(Yr,"resolveZodSchemaName");function Ay({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){var y,$;let a=e.resolveObject(t.requestBody);if(!a)return;let u=Object.keys(a.content??{}).find(qt);if(!u)return;let f=($=(y=a.content)==null?void 0:y[u])==null?void 0:$.schema;if(!f)return;let l=U({schema:f,resolver:e,meta:{isRequired:a.required??!0},tag:i,options:o}),p=e.resolveObject(f),m=Yr({schema:p,zodSchema:l,fallbackName:$y(Kr(r,n,i)),resolver:e,tag:i,options:o}),d=Xe({schema:p,meta:l.meta,options:o});return{endpointParameter:{name:Oy,type:"Body",description:a.description,zodSchema:m+d,bodyObject:a},requestFormat:u}}s(Ay,"getEndpointBody");function qy({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i,options:o}){let a=e.resolveObject(t);if(!sy.includes(a.in))return;let c={};if(a.content){let m=Object.keys(a.content??{}),d=m.find(qt);if(!d)throw new Error(`Unsupported media type for param ${a.name}: ${m.join(", ")}`);let y=a.content[d];if(!y)throw new Error(`No content with media type for param ${a.name}: ${d}`);c=(y==null?void 0:y.schema)??y}else a.schema&&(c=a.schema);o!=null&&o.withDescription&&c&&(c.description=(a.description??"").trim());let u=U({schema:c,resolver:e,meta:{isRequired:a.in==="path"?!0:a.required??!1},tag:i,options:o}),f=e.resolveObject(c),l=Xe({schema:f,meta:u.meta,options:o}),p=Yr({schema:f,zodSchema:u.assign(u.getCodeString(i,o)+l),fallbackName:vy(Kr(r,n,i),a.name),resolver:e,tag:i,options:o});return{name:oe(a.in).with("path",()=>cu(a.name)).otherwise(()=>a.name),type:oe(a.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:a}}s(qy,"getEndpointParameter");function Ty({openApiDoc:e,resolver:t,options:r}){var o,a,c;let n=[],i=[];for(let u in e.paths){let f=e.paths[u],l=ir(f,rr),p=Iy(f.parameters??[]);for(let m in l){let d=l[m];if(!d||d.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;d.operationId&&d.operationId!==tr(d.operationId)&&i.push(`INVALID OPERATION ID: ${d.operationId}`);let $=Object.entries({...p,...Iy(d.parameters??[])}).map(([,b])=>b),g=lu({path:u,method:m,operation:d,openApiDoc:e,options:r}),v=my(g,e,r),O=Zr(d,r),P={method:m,path:hy(u),operationName:g,description:d.description,tags:(o=d.tags)==null?void 0:o.map(st),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(d.requestBody){let b=Ay({resolver:t,operation:d,operationName:g,isUniqueOperationName:v,tag:O,options:r});b&&(P.parameters.push(b.endpointParameter),P.requestFormat=b.requestFormat)}for(let b of $){let H=qy({resolver:t,param:b,operationName:g,isUniqueOperationName:v,tag:O,options:r});H&&P.parameters.push(H)}let R=hj(P);R.forEach(b=>{P.parameters.push(b)}),R.length>0&&i.push(`MISSING PATH PARAMETERS: ${R.map(({name:b})=>b).join(", ")} in ${u}`);for(let b in d.responses){let H=t.resolveObject(d.responses[b]),at=Object.keys(H.content??{}).find(Gr),fe,Z;if(at?(P.responseFormat=at,fe=(c=(a=H.content)==null?void 0:a[at])==null?void 0:c.schema):Z=Jc,fe){let le=U({schema:fe,resolver:t,meta:{isRequired:!0},tag:O,options:r}),Qe=t.resolveObject(fe);Z=Yr({schema:Qe,zodSchema:le,fallbackName:le.ref?void 0:mj({statusCode:b,endpoint:P,operationName:g,isUniqueOperationName:v,tag:O}),resolver:t,tag:O,options:r})+Xe({schema:Qe,meta:le.meta,options:r})}if(Z){let le=Number(b);uu(le)?(P.response=Z,P.responseObject=H):b!=="default"&&fu(le)&&P.errors.push({zodSchema:Z,status:le,description:H.description})}}P.response||(P.response=Jc),n.push(P)}}return{endpoints:n,validationErrorMessages:i}}s(Ty,"getEndpointsFromOpenAPIDoc");function mj({statusCode:e,endpoint:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=Number(e),a=Kr(r,n,i);return(!uu(o)||t.response)&&e!=="default"&&fu(o)?_y(a,e):by(a)}s(mj,"getResponseZodSchemaName");function Iy(e){return Object.fromEntries((e??[]).map(t=>[z(t)?t.$ref:t.name,t]))}s(Iy,"getParameters");function hj(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>yj(r))}s(hj,"getMissingPathParameters");function yj(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(yj,"getPathParameterFromName");function Ry({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){return Jr({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}),{visitedRefs:n,refsDependencyGraph:i}}s(Ry,"getSchemaRefsDependencyGraph");function Jr({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i}){if(!e)return;let o={fromRef:t,getSchemaByRef:r,visitedRefs:n,refsDependencyGraph:i};if(z(e)){if(i[t]||(i[t]=new Set),i[t].add(e.$ref),n[e.$ref])return;n[t]=!0,Jr({...o,schema:r(e.$ref),fromRef:e.$ref});return}for(let a of nr)if(e[a])for(let c of e[a])Jr({...o,schema:c});if(!nr.some(a=>e[a])){if(e.type==="array"){if(!e.items)return;Jr({...o,schema:e.items});return}if(e.type==="object"||e.properties||e.additionalProperties){if(e.properties)for(let a in e.properties)Jr({...o,schema:e.properties[a]});e.additionalProperties&&typeof e.additionalProperties=="object"&&Jr({...o,schema:e.additionalProperties})}}}s(Jr,"visit");function Ny(e,t){let r=gj(e,t),n=$j(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(Ny,"getOpenAPISchemaDependencyGraph");function gj(e,t){let r={},n={};return e.forEach(i=>Ry({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(gj,"getRefsDependencyGraph");function $j(e,t){let r={},n={},i=s((o,a)=>{n[a].add(o),t[o]&&a!==o&&t[o].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(o=>{let a=t[o];a&&(n[o]||(n[o]=new Set),a.forEach(c=>i(c,o)))}),n}s($j,"getDeepRefsDependencyGraph");var hu=class hu{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=Ny(this.schemaRefs,this.getSchemaByRef.bind(this)),this.intializeSchemaInfo(),this.initializeSchemaTags()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];dependencyGraph;validationErrorMessages=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(uy)}getSchemaByRef(t){return this.docSchemas[au(t)]}getZodSchemaNameByRef(t){return this.schemaData.find(r=>r.ref===Kn(t)).zodSchemaName}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var n,i;let r;if(this.options.splitByTags){let o=this.getRefByZodSchemaName(t),a=((n=this.schemaData.find(f=>f.ref===o))==null?void 0:n.tags)??[],c=((i=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:i.tags)??[],u=new Set([...a,...c]);r=u.size===1?u.values().next().value:this.options.defaultTag}return st(r??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(o=>o.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let o={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(c=>c.code===t);a?a.zodSchemas.push(o):this.compositeZodSchemaData.push({code:t,zodSchemas:[o]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(o=>o.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}resolveObject(t){return z(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}intializeSchemaInfo(){this.schemaRefs.forEach(t=>{let r=Kn(t),n=au(r),i=It(n,this.options.schemaSuffix);this.schemaData.push({ref:r,name:n,zodSchemaName:i,tags:[]})})}initializeSchemaTags(){var t,r,n,i,o,a;for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],f=ir(u,rr);for(let l in f){let p=f[l];if(!p||p.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let m=[];if((r=p.parameters)==null||r.map(g=>{let v=g;m.push(...this.getOperationSchemaRefs(v.schema,`${p.operationId??c} parameter ${v.name}`))}),p.requestBody){let g=this.resolveObject(p.requestBody),O=Object.keys(g.content??{}).find(qt);O&&m.push(...this.getOperationSchemaRefs((i=(n=g.content)==null?void 0:n[O])==null?void 0:i.schema,`${p.operationId} request body`))}for(let g in p.responses){let v=this.resolveObject(p.responses[g]),P=Object.keys(v.content??{}).find(Gr);P&&m.push(...this.getOperationSchemaRefs((a=(o=v.content)==null?void 0:o[P])==null?void 0:a.schema,`${p.operationId} response body`))}let y=m.map(g=>Kn(g.$ref)).reduce((g,v)=>{let O=this.dependencyGraph.deepDependencyGraph[v];return[...g,v,...Array.from(O??[])]},[]),$=Zr(p,this.options);y.forEach(g=>{let v=this.schemaData.find(O=>O.ref===g);v&&v.tags.push($)})}}}getOperationSchemaRefs(t,r){if(!t)return[];let n=[],i=z(t);i&&n.push(t);let o=t;return nr.some(a=>a in o&&o[a])&&((o.allOf??o.anyOf??o.oneOf??[]).forEach(c=>n.push(...this.getOperationSchemaRefs(c,r))),i&&this.validationErrorMessages.push(`INVALID SCHEMA: ${r} has both reference and composite keyword`)),o.properties&&(Object.values(o.properties).forEach(a=>n.push(...this.getOperationSchemaRefs(a,r))),i&&this.validationErrorMessages.push(`INVALID SCHEMA: ${r} has both reference and properties`)),o.type==="array"&&(n.push(...this.getOperationSchemaRefs(t.items,r)),i&&this.validationErrorMessages.push(`INVALID SCHEMA: ${r} is both reference and array schema`)),n}};s(hu,"SchemaResolver");var so=hu;function ky({resolver:e,openApiDoc:t,options:r}){var i;let n={};return Object.entries(((i=t.components)==null?void 0:i.schemas)??{}).forEach(([o,a])=>{let c=It(o,r.schemaSuffix);if(!n[c]){let u=e.getTagByZodSchemaName(c);n[c]=U({schema:a,resolver:e,tag:u,options:r}).getCodeString(u,r)}}),n}s(ky,"getZodSchemasFromOpenAPIDoc");function Cy(e){let t=[],r={};function n(i,o){Array.isArray(o)||(o=[]),o.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{o.includes(a)||r[a]||n(a,o.slice(0))}),t.includes(i)||t.push(i)}return s(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}s(Cy,"topologicalSort");function My(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[o])=>t.indexOf(i)-t.indexOf(o)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}s(My,"sortObjKeysFromArray");function Dy({resolver:e,zodSchemas:t}){let r=Cy(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return My(t,r)}s(Dy,"sortZodSchemasByTopology");function Fy({resolver:e,zodSchemas:t,options:r}){let n={};return Object.entries(t).forEach(([i,o])=>{let a=e.getRefByZodSchemaName(i),c=a&&e.isSchemaCircular(a);n[It(i,r.schemaSuffix)]=c?`z.lazy(() => ${o})`:o}),n}s(Fy,"wrapCircularZodSchemas");function Ly({openApiDoc:e,options:t}){let r=new so(e,t),{endpoints:n,validationErrorMessages:i}=Ty({resolver:r,openApiDoc:e,options:t}),a={...ky({resolver:r,openApiDoc:e,options:t}),...r.getZodSchemas()};return a=Fy({resolver:r,zodSchemas:a,options:t}),a=Dy({resolver:r,zodSchemas:a}),{resolver:r,data:vj({resolver:r,endpoints:n,zodSchemas:a,options:t}),validationErrorMessages:i}}s(Ly,"getDataFromOpenAPIDoc");function vj({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Ey(o,n);Vy(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(Vy(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(vj,"splitDataByTags");function Vy(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(Vy,"getTagElement");async function zy({openApiDoc:e,options:t}){let{resolver:r,data:n}=await Ly({openApiDoc:e,options:t}),i=[],o=[];return n.forEach(({endpoints:c,zodSchemas:u},f)=>{var m;((m=t.excludeTags)==null?void 0:m.findIndex(d=>d.toLocaleLowerCase()===f.toLocaleLowerCase()))===-1&&(Object.keys(u).forEach(d=>{let y=r.getRefByZodSchemaName(d),$=y?r.getSchemaByRef(y):r.getSchemaByCompositeZodSchemaName(d),g=Wr({zodSchemaName:d,schema:$,resolver:r,options:t}),v;$&&(v=sr({schema:$,parentTypes:[g],resolver:r,options:t})),i.push({...g,metaType:"primitive",...v})}),c.forEach(d=>{let y="queries",$=st(f);o.push({name:ry(d),filePath:ro({type:y,tag:$,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?er({type:y,tag:$,options:t}):void 0,isQuery:yy(d),isMutation:gy(d),params:bj({resolver:r,endpoint:d,options:t}),response:_j({resolver:r,endpoint:d,options:t})})}))}),{openApiDoc:e,models:i,queries:o}}s(zy,"getMetadataFromOpenAPIDoc");function bj({resolver:e,endpoint:t,options:r}){return t.parameters.map(n=>{var c,u,f,l;let i;if((c=n.parameterObject)!=null&&c.schema)i=e.resolveObject(n.parameterObject.schema);else if(n.bodyObject){let m=Object.keys(n.bodyObject.content??{}).find(qt);m&&(i=e.resolveObject((f=(u=n.bodyObject.content)==null?void 0:u[m])==null?void 0:f.schema))}let o=Wr({zodSchemaName:n.zodSchema,schema:i,resolver:e,options:r}),a;return i&&(a=sr({schema:i,parentTypes:[o],resolver:e,options:r})),{name:tr(n.name),isRequired:((l=n.parameterObject)==null?void 0:l.required)??!0,...o,...a,paramType:n.type}}).sort((n,i)=>{if(n.isRequired===i.isRequired){let o=["Path","Body","Query","Header"];return o.indexOf(n.paramType)-o.indexOf(i.paramType)}return n.isRequired?-1:1}).map(({paramType:n,...i})=>i)}s(bj,"getQueryMetadataParams");function _j({resolver:e,endpoint:t,options:r}){var c,u,f,l;let n,i=Object.keys(((c=t.responseObject)==null?void 0:c.content)??{}).find(Gr);i&&(n=e.resolveObject((l=(f=(u=t.responseObject)==null?void 0:u.content)==null?void 0:f[i])==null?void 0:l.schema));let o=Wr({zodSchemaName:t.response,schema:n,resolver:e,options:r}),a;return n&&(a=sr({schema:n,parentTypes:[o],resolver:e,options:r})),{...o,metaType:"primitive",...a}}s(_j,"getQueryMetadataResponse");async function Pj({input:e,options:t}){let r={...Xh,...t},n=await Uy.default.bundle(e);return await zy({openApiDoc:n,options:r})}s(Pj,"getGenerateMetadata");0&&(module.exports={getGenerateMetadata});
|
|
78
|
+
`].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(gT(e,t),(r==null?void 0:r.withDefaultValues)!==!1?yT(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(At,"getZodChain");function gT(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}o(gT,"getZodChainablePresence");function yT(e){return e.default!==void 0?`default(${ye(e.type).with("number","integer",()=>Bv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(yT,"getZodChainableDefault");function vT(e){let t=[];if(e.enum||(e.minLength!==void 0&&t.push(`min(${e.minLength})`),e.maxLength!==void 0&&t.push(`max(${e.maxLength})`)),e.pattern&&t.push(`regex(${_T(e.pattern)})`),e.format){let r=ye(e.format).with("email",()=>"email()").with("hostname","uri",()=>"url()").with("uuid",()=>"uuid()").with("date-time",()=>"datetime({ offset: true })").otherwise(()=>"");r&&t.push(r)}return t.join(".")}o(vT,"getZodChainableStringValidations");function _T(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=Hv(e),`/${e}/`}o(_T,"formatPatternIfNeeded");function bT(e){let t=[];return e.enum?"":(e.type==="integer"&&t.push("int()"),e.minimum!==void 0?e.exclusiveMinimum===!0?t.push(`gt(${e.minimum})`):t.push(`gte(${e.minimum})`):typeof e.exclusiveMinimum=="number"&&t.push(`gt(${e.exclusiveMinimum})`),e.maximum!==void 0?e.exclusiveMaximum===!0?t.push(`lt(${e.maximum})`):t.push(`lte(${e.maximum})`):typeof e.exclusiveMaximum=="number"&&t.push(`lt(${e.exclusiveMaximum})`),e.multipleOf&&t.push(`multipleOf(${e.multipleOf})`),t.join("."))}o(bT,"getZodChainableNumberValidations");function ST(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(ST,"getZodChainableArrayValidations");var Hr=o(e=>e.reduce((t,r)=>t+r,0),"sum");function ne(e,t){if(!t)return e;if(H(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?$e("oneOf")+ne(e,{...t,type:t.type[0]}):e+$e("oneOf")+Hr(t.type.map(r=>ne(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?$e("oneOf")+ne(e,t.oneOf[0]):e+$e("oneOf")+Hr(t.oneOf.map(r=>ne(0,r)));if(t.anyOf)return t.anyOf.length===1?$e("anyOf")+ne(e,t.anyOf[0]):e+$e("anyOf")+Hr(t.anyOf.map(r=>ne(0,r)));if(t.allOf)return t.allOf.length===1?$e("allOf")+ne(e,t.allOf[0]):e+$e("allOf")+Hr(t.allOf.map(r=>ne(0,r)));if(!t.type)return e;if(Mt(t.type))return t.enum?e+__(t)+$e("enum")+Hr(t.enum.map(r=>ne(0,r))):e+__(t);if(t.type==="array")return t.items?$e("array")+ne(e,t.items):$e("array")+ne(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?$e("record")+ne(e):$e("record")+ne(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+$e("object")+Hr(r.map(n=>ne(0,n)))}return $e("empty-object")+ne(e)}return e}o(ne,"getOpenAPISchemaComplexity");function __(e){return ye(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(__,"complexityByType");function $e(e){return ye(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o($e,"complexityByComposite");var Hf=class Hf{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;H(t)&&(this.ref=t.$ref),i&&(this.enumRef=i),this.meta={...n,referencedBy:[...(n==null?void 0:n.referencedBy)??[]]},this.ref&&this.meta.referencedBy.push(this)}code;ref;enumRef;children=[];meta;getCodeString(t,r){var s,a;if(!this.ref&&this.code)return this.code;if(!this.ref)throw new Error("Zod schema is missing both ref and code");let n=(s=this.resolver)==null?void 0:s.getZodSchemaNameByRef(this.ref);if(!n)return this.ref;let i=(a=this.resolver)==null?void 0:a.getTagByZodSchemaName(n);return r!=null&&r.includeNamespaces&&i&&i!==t?`${re({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ne(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Hf,"ZodSchema");var so=Hf;function W({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new so(e,t,r),s={parent:i.inherit(r==null?void 0:r.parent),referencedBy:[...i.meta.referencedBy]},a={resolver:t,meta:s,tag:n};if(H(e))return PT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let u=OT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let c=$T({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let l=ET({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let p=xT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let f=wT({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let d=t.options.allReadonly?".readonly()":"";if(Jv(e))return e.items?i.assign(`z.array(${W({...a,schema:e.items}).getCodeString(n,t.options)}${At({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let h=e.type?e.type.toLowerCase():void 0;if(h==="object"||e.properties||e.additionalProperties){let y=t.options.additionalPropertiesDefaultValue!==void 0?t.options.additionalPropertiesDefaultValue:!0,_=(e.additionalProperties===null||e.additionalProperties===void 0?y:e.additionalProperties)===!1?"":".passthrough()";if(typeof e.additionalProperties=="object"&&Object.keys(e.additionalProperties).length>0)return i.assign(`z.record(${W({...a,schema:e.additionalProperties}).getCodeString(n,t.options)+At({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options})})`);let b=e.required&&e.required.length>0,S=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),E="{}";e.properties&&(E="{ "+Object.entries(e.properties).map(([ie,oe])=>{var Bt;let le={...s,isRequired:S?!0:b?(Bt=e.required)==null?void 0:Bt.includes(ie):t.options.withImplicitRequiredProps,name:ie},Me=oe;if(H(oe)&&t&&(Me=t.getSchemaByRef(oe.$ref),!Me))throw new Error(`Schema ${oe.$ref} not found`);let Ee=W({...a,schema:oe,meta:le}).getCodeString(n,t.options)+At({schema:Me,meta:le,options:t.options});return[ie,Ee]}).map(([ie,oe])=>`${Vv(ie)}: ${oe}`).join(", ")+" }");let $=S?".partial()":"",M=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${E})${$}${M}${_}${d}`)}if(!h)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${h}`)}o(W,"getZodSchema");function PT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!H(e))return;let s=t.meta.referencedBy.slice(0,-1).map(c=>c.ref?r.getZodSchemaNameByRef(c.ref)??c.ref:void 0).filter(Boolean),a=r.getZodSchemaNameByRef(e.$ref);if(s.length>1&&s.includes(a))return t.assign(r.getCodeByZodSchemaName(t.ref));let u=r.getCodeByZodSchemaName(e.$ref);if(!u){let c=r.getSchemaByRef(e.$ref);if(!c)throw new Error(`Schema ${e.$ref} not found`);u=W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,u,i),t}o(PT,"getReferenceZodSchema");function $T({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!wt(e)||!e.oneOf)return;if(e.oneOf.length===1){let u=W({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(u.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(u=>wt(u)&&((u==null?void 0:u.allOf)||[]).length>1);if(e.discriminator&&!s){let u=e.discriminator.propertyName;return t.assign(`
|
|
79
|
+
z.discriminatedUnion("${u}", [${e.oneOf.map(c=>W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
|
|
80
|
+
`)}return t.assign(`z.union([${e.oneOf.map(u=>W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o($T,"getOneOfZodSchema");function OT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!wt(e)||!Array.isArray(e.type)))return e.type.length===1?W({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(s=>W({schema:{...e,type:s},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(OT,"getArrayZodSchema");function ET({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=W({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let s=e.anyOf.map(a=>W({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${s}])`)}o(ET,"getAnyOfZodSchema");function xT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e)||!e.allOf)return;if(e.allOf.length===1){let f=W({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(f.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:u}=Xv(e),c=a.map(f=>{let d=W({schema:f,resolver:r,meta:n,tag:i});return r&&s(f,r.getSchemaByRef.bind(r)),d});u.required.length&&c.push(W({schema:u,resolver:r,meta:n,tag:i}));let l=c.at(0),p=c.slice(1).map(f=>`merge(${f.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${p}`)}o(xT,"getAllOfZodSchema");function wT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!wt(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&Mt(s)){if(e.enum){if(s==="string")return AT({schema:e,zodSchema:t,resolver:r,meta:n,tag:i});if(e.enum.some(a=>typeof a=="string"))return t.assign("z.never()");if(e.enum.length===1){let a=e.enum[0];return t.assign(`z.literal(${a===null?"null":a})`)}return t.assign(`z.union([${e.enum.map(a=>`z.literal(${a===null?"null":a})`).join(", ")}])`)}return t.assign(ye(s).with("integer",()=>"z.number()").with("string",()=>ye(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(wT,"getPrimitiveZodSchema");function AT({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!wt(t))return;let s=Uf(t),a=e.getEnumZodSchemaDataByCode(s);if(!e.options.extractEnums||!a)return r.assign(s);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${s}`);let u=e.options.includeNamespaces&&a.tag!==i?`${re({type:"models",tag:a.tag,options:e.options})}.`:"";return new so(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${u}${a.zodSchemaName}`)}o(AT,"getEnumZodSchema");function Uf(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(Uf,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var u;let s=t.getCodeString();if((!Pe(s)||t.ref===void 0)&&r){if(t.complexity<Rf)return s;let c=hr(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(c);){if((u=n.getZodSchemaNamesByCompositeCode(s))!=null&&u.includes(c))return c;if(n.getCodeByZodSchemaName(c)===c)return c;throw new Error(`Can't uniquely resolve zod schema name: ${c}`)}return n.setZodSchema(c,s,i),n.addZodSchemaForCompositeCode(s,t,c,e),c}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ne(0,n.getSchemaByRef(t.ref))<Rf?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(Un,"resolveZodSchemaName");function b_({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var h,g;let s=e.resolveObject(t.requestBody);if(!s)return;let u=Object.keys(s.content??{}).find(dr);if(!u)return;let c=(g=(h=s.content)==null?void 0:h[u])==null?void 0:g.schema;if(!c)return;let l=W({schema:c,resolver:e,meta:{isRequired:s.required??!0},tag:i}),p=e.resolveObject(c),f=Un({schema:p,zodSchema:l,fallbackName:Ms(Vr(r,n,i)),resolver:e,tag:i}),d=At({schema:p,meta:l.meta,options:e.options});return{endpointParameter:{name:Qv,type:"Body",description:s.description,zodSchema:f+d,bodyObject:s},requestFormat:u}}o(b_,"getEndpointBody");function S_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!jv.includes(s.in))return;let a={};if(s.content){let f=Object.keys(s.content??{}),d=f.find(dr);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${f.join(", ")}`);let h=s.content[d];if(!h)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(h==null?void 0:h.schema)??h}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let u=W({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),c=e.resolveObject(a),l=At({schema:c,meta:u.meta,options:e.options}),p=Un({schema:c,zodSchema:u.assign(u.getCodeString(i)+l),fallbackName:Zv(Vr(r,n,i),s.name),resolver:e,tag:i});return{name:ye(s.in).with("path",()=>qf(s.name)).otherwise(()=>s.name),type:ye(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:p,parameterObject:s}}o(S_,"getEndpointParameter");function $_(e){var r,n,i;let t=[];for(let s in e.openApiDoc.paths){let a=e.openApiDoc.paths[s],u=pr(a,fr),c=P_(a.parameters??[]);for(let l in u){let p=u[l];if(!p||p.deprecated&&!e.options.withDeprecatedEndpoints)continue;let f=p.operationId&&p.operationId!==Pt(p.operationId);p.operationId&&f&&e.validationErrors.push(g_(p.operationId));let d=Object.entries({...c,...P_(p.parameters??[])}).map(([,b])=>b),h=eo({path:s,method:l,operation:p,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(b=>b===h).length<=1,y=Lr(p,e.options),v={method:l,path:zv(s),operationName:h,description:p.description,tags:(r=p.tags)==null?void 0:r.map(xt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(p.requestBody){let b=b_({resolver:e,operation:p,operationName:h,isUniqueOperationName:g,tag:y});b&&(v.parameters.push(b.endpointParameter),v.requestFormat=b.requestFormat)}for(let b of d){let S=S_({resolver:e,param:b,operationName:h,isUniqueOperationName:g,tag:y});S&&v.parameters.push(S)}let _=IT(v);_.forEach(b=>{v.parameters.push(b)}),_.length>0&&e.validationErrors.push(y_(_,s));for(let b in p.responses){let S=e.resolveObject(p.responses[b]),$=Object.keys(S.content??{}).find(Ln),M,j;if($?(v.responseFormat=$,M=(i=(n=S.content)==null?void 0:n[$])==null?void 0:i.schema):j=Pf,M){let ie=W({schema:M,resolver:e,meta:{isRequired:!0},tag:y}),oe=e.resolveObject(M);j=Un({schema:oe,zodSchema:ie,fallbackName:ie.ref?void 0:Ds({statusCode:b,operationName:h,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+At({schema:oe,meta:ie.meta,options:e.options})}if(j){let ie=Number(b);Ns(ie)?(v.response=j,v.responseObject=S):b!=="default"&&qs(ie)&&v.errors.push({zodSchema:j,status:ie,description:S.description})}}v.response||(v.response=Pf),t.push(v)}}return t}o($_,"getEndpointsFromOpenAPIDoc");function P_(e){return Object.fromEntries((e??[]).map(t=>[H(t)?t.$ref:t.name,t]))}o(P_,"getParameters");function IT(e){return[...e.path.matchAll(/:([a-zA-Z0-9_]+)/g)].map(r=>r[1]).filter(r=>e.parameters.findIndex(({name:n})=>n===r)===-1).map(r=>kT(r))}o(IT,"getMissingPathParameters");function kT(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(kT,"getPathParameterFromName");function ct(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(H(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(Cs.some(s=>s in i&&i[s])){let s=i.allOf??i.anyOf??i.oneOf??[];for(let a of s){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;ct(a,{data:r,onSchema:n})}}if(i.properties)for(let[s,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ct(a,t)}if(i.additionalProperties)for(let[s,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:s})===!0)return;ct(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;ct(s,t)}}o(ct,"iterateSchema");function O_(e,t){let r=RT(e,t),n=TT(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(O_,"getOpenAPISchemaDependencyGraph");function RT(e,t){let r={},n={};return e.forEach(i=>CT({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(RT,"getRefsDependencyGraph");function TT(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(u=>{let c=`${a}__${u}`;r[c]||(r[c]=!0,i(u,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(u=>i(u,s)))}),n}o(TT,"getDeepRefsDependencyGraph");function CT({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:u,data:c}=a;if(i[c.fromRef]||(i[c.fromRef]=new Set),i[c.fromRef].add(u.$ref),n[u.$ref])return!0;n[c.fromRef]=!0,ct(r(u.$ref),{data:{fromRef:u.$ref},onSchema:s})},"onSchema");return ct(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(CT,"getSchemaRefsDependencyGraph");function zs(e,t,r){let n=[];return ct(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):H(i.parentSchema)&&e.validationErrors.push(m_(r))},"onSchema")}),n}o(zs,"getSchemaRefObjs");function E_(e,t){return t.map(i=>Fr(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(E_,"getDeepSchemaRefObjs");function ao({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&x_({schema:e,nameSegments:t,...n}),ct(e,{data:{nameSegments:t},onSchema:o(i=>{var a;if(i.type==="reference")return!0;let s=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&s.push(i.propertyName),x_({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(ao,"updateEnumZodSchemaData");function x_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||H(t)||!t.enum)return;let a=Uf(t),u=e.enumZodSchemaData.find(c=>c.code===a);u?(u.meta.zodSchemaNameSegments.push(s),u.meta.tags.push(...i),u.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(v_(r?`schema ${Ge.gray(Dn(r))} property ${Ge.gray(s[s.length-1])}`:n??s.join("->")))}o(x_,"handleEnumZodSchemaDataUpdate");function A_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=Of(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Gv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!w_(e);)NT(e,t+2),t++;if(!w_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(A_,"resolveEnumZodSchemaNames");function w_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}o(w_,"allEnumZodSchemaNamesAreUnique");function NT(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&qT(n,t)})}o(NT,"additionalResolveEnumZodSchemaName");function qT(e,t=2){e.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(i=>i[i.length-t]).filter(Boolean);if(n.length===1)r.zodSchemaName=[ge(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=Of(n);r.zodSchemaName=[i?ge(i):"",r.zodSchemaName].filter(Boolean).join("")}})}o(qT,"suffixWithPreviousSegmentName");function I_(e){e.enumZodSchemaData.forEach(t=>{let r=Ne(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(I_,"resolveEnumZodSchemaTags");var zf=class zf{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=O_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Dv(t,r),this.operationNames=Uv(t,this.operationsByTag,r),this.initialize()}schemaData=[];zodSchemaData=[];compositeZodSchemaData=[];enumZodSchemaData=[];dependencyGraph;operationsByTag={};operationNames=[];validationErrors=[];get docSchemas(){var t;return((t=this.openApiDoc.components)==null?void 0:t.schemas)??{}}get schemaRefs(){return Object.keys(this.docSchemas).map(Fv)}getSchemaByRef(t){return this.docSchemas[Dn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Fr(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(s=>s.zodSchemaName===t))==null?void 0:i.zodSchemaName);if(!r)throw new Error(`Zod schema not found for ref: ${t}`);return r}getRefByZodSchemaName(t){var r;return(r=this.schemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.ref}getTagByZodSchemaName(t){var c,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(p=>p.zodSchemaName===t);if(r)return xt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((c=this.getSchemaDataByRef(n))==null?void 0:c.tags)??[]:[],s=((l=this.zodSchemaData.find(p=>p.zodSchemaName===t))==null?void 0:l.tags)??[],a=Ne(i,s),u=a.length===1?a[0]:this.options.defaultTag;return xt(u??this.options.defaultTag)}getCodeByZodSchemaName(t){var r;return(r=this.zodSchemaData.find(n=>n.zodSchemaName===t))==null?void 0:r.code}getZodSchemaNamesByCompositeCode(t){var r;return(r=this.compositeZodSchemaData.find(n=>n.code===t))==null?void 0:r.zodSchemas.map(n=>n.zodSchemaName)}setZodSchema(t,r,n){let i=this.zodSchemaData.find(s=>s.zodSchemaName===t);i?(i.code=r,i.tags=(i.tags??[]).concat(n)):this.zodSchemaData.push({zodSchemaName:t,code:r,tags:[n]})}addZodSchemaForCompositeCode(t,r,n,i){let s={zodSchemaName:n,zodSchema:r,schema:i},a=this.compositeZodSchemaData.find(u=>u.code===t);a?a.zodSchemas.push(s):this.compositeZodSchemaData.push({code:t,zodSchemas:[s]})}getCompositeZodSchemaByZodSchemaName(t){var n;let r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t));return(n=r==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.zodSchema}getSchemaByCompositeZodSchemaName(t){var r,n;return(n=(r=this.compositeZodSchemaData.find(i=>i.zodSchemas.some(s=>s.zodSchemaName===t)))==null?void 0:r.zodSchemas.find(i=>i.zodSchemaName===t))==null?void 0:n.schema}getEnumZodSchemaDataByCode(t){return this.enumZodSchemaData.find(r=>r.code===t)}getEnumZodSchemaNamesReferencedBySchemaRef(t){return this.enumZodSchemaData.reduce((r,{zodSchemaName:n,meta:i})=>(n&&i.schemaRefs.includes(t)&&r.push(n),r),[])}getZodSchemas(){return this.zodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>({...t,[r]:n}),{})}getEnumZodSchemas(){return this.enumZodSchemaData.reduce((t,{zodSchemaName:r,code:n})=>r?{...t,[r]:n}:t,{})}resolveObject(t){return H(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(u=>{let c=Fr(u),l=Dn(c),p=hr(l,this.options.schemaSuffix);this.schemaData.push({ref:c,name:l,zodSchemaName:p,tags:[]})});for(let u in this.openApiDoc.paths){let c=this.openApiDoc.paths[u],l=pr(c,fr);for(let p in l){let f=l[p];if(!f||f.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Lr(f,this.options),h=eo({path:u,method:p,operation:f,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===h).length<=1,y=Re(Vr(h,g,d)),v=[];if((r=f.parameters)==null||r.map(b=>{let S=b,E=S.schema,$=`operation ${Ge.gray(f.operationId??u)} parameter ${Ge.gray(S.name)}`;v.push(...zs(this,E,$)),this.options.extractEnums&&ao({resolver:this,schema:E,schemaInfo:$,tags:[d],nameSegments:[y,S.name],includeSelf:!0})}),f.requestBody){let b=this.resolveObject(f.requestBody),E=Object.keys(b.content??{}).find(dr);if(E){let $=(i=(n=b.content)==null?void 0:n[E])==null?void 0:i.schema,M=`operation ${Ge.gray(f.operationId)} request body`;v.push(...zs(this,$,M)),this.options.extractEnums&&ao({resolver:this,schema:$,schemaInfo:M,tags:[d],nameSegments:[Ms(y)]})}}for(let b in f.responses){let S=this.resolveObject(f.responses[b]),$=Object.keys(S.content??{}).find(Ln);if($){let M=(a=(s=S.content)==null?void 0:s[$])==null?void 0:a.schema,j=`operation ${Ge.gray(f.operationId)} response body`;v.push(...zs(this,M,j)),this.options.extractEnums&&ao({resolver:this,schema:M,schemaInfo:j,tags:[d],nameSegments:[Ds({statusCode:b,operationName:h,isUniqueOperationName:g,tag:d})]})}}E_(this,v).forEach(b=>{let S=this.getSchemaDataByRef(b);S&&S.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(u=>{var l;let c=Fr(u);ao({resolver:this,schema:this.getSchemaByRef(c),schemaRef:c,tags:((l=this.getSchemaDataByRef(c))==null?void 0:l.tags)??[],nameSegments:[Dn(c)]})}),A_(this),I_(this))}};o(zf,"SchemaResolver");var Gs=zf;function k_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=hr(n,e.options.schemaSuffix);if(!t[s]){let a=e.getTagByZodSchemaName(s);t[s]=W({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}o(k_,"getZodSchemasFromOpenAPIDoc");function R_(e){let t=[],r={};function n(i,s){Array.isArray(s)||(s=[]),s.push(i),r[i]=!0,e[i]&&e[i].forEach(a=>{s.includes(a)||r[a]||n(a,s.slice(0))}),t.includes(i)||t.push(i)}return o(n,"visit"),Object.keys(e).forEach(i=>n(i,[])),t}o(R_,"topologicalSort");function T_(e,t){let r=Object.entries(e),n=r.filter(([i])=>t.includes(i)).sort(([i],[s])=>t.indexOf(i)-t.indexOf(s)).concat(r.filter(([i])=>!t.includes(i)));return Object.fromEntries(n)}o(T_,"sortObjKeysFromArray");function C_(e,t){let r=R_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return T_(t,r)}o(C_,"sortZodSchemasByTopology");function N_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n),a=s&&e.isSchemaCircular(s);r[hr(n,e.options.schemaSuffix)]=a?`z.lazy(() => ${i})`:i}),r}o(N_,"wrapCircularZodSchemas");function Zs(e,t){let r=new Gs(e,t),n=$_(r),s={...k_(r),...r.getZodSchemas()};return s=N_(r,s),s=C_(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:jT({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Zs,"getDataFromOpenAPIDoc");function jT({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=no(s,n);q_(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let u=e.getTagByZodSchemaName(s);u&&(q_(u,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(jT,"splitDataByTags");function q_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(q_,"getTagElement");async function j_(e,t){let{resolver:r,data:n}=await Zs(e,t),i=[],s=[];return n.forEach(({endpoints:u,zodSchemas:c},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(h=>h.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(c).forEach(h=>{let g=r.getRefByZodSchemaName(h),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(h),v=Vn({zodSchemaName:h,schema:y,resolver:r}),_;y&&(_=Br({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),u.forEach(h=>{let g="queries",y=xt(l);s.push({name:ks(h),filePath:or({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?re({type:g,tag:y,options:t}):void 0,isQuery:Fn(h),isMutation:js(h),params:MT({resolver:r,endpoint:h}),response:DT({resolver:r,endpoint:h})})}))}),{openApiDoc:e,models:i,queries:s}}o(j_,"getMetadataFromOpenAPIDoc");function MT({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,u,c,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let f=Object.keys(r.bodyObject.content??{}).find(dr);f&&(n=e.resolveObject((c=(u=r.bodyObject.content)==null?void 0:u[f])==null?void 0:c.schema))}let i=Vn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Br({schema:n,parentTypes:[i],resolver:e})),{name:Pt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...s,paramType:r.type}}).sort((r,n)=>{if(r.isRequired===n.isRequired){let i=["Path","Body","Query","Header"];return i.indexOf(r.paramType)-i.indexOf(n.paramType)}return r.isRequired?-1:1}).map(({paramType:r,...n})=>n)}o(MT,"getQueryMetadataParams");function DT({resolver:e,endpoint:t}){var a,u,c,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Ln);n&&(r=e.resolveObject((l=(c=(u=t.responseObject)==null?void 0:u.content)==null?void 0:c[n])==null?void 0:l.schema));let i=Vn({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Br({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(DT,"getQueryMetadataResponse");var Gf="src/data",Zf="@/data",Kf="AppRestClient",M_={bindings:[Kf],from:"@/util/rest/clients/app-rest-client"},uo={query:"AppQueryOptions",mutation:"AppMutationOptions"},D_={bindings:[uo.query,uo.mutation],from:"@/types/react-query"};function zn({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(c=>e.getTagByZodSchemaName(c),"getTag"),a=Wf({type:i,tag:t,entities:r,getTag:s,getEntityName:o(c=>c,"getEntityName"),options:e.options}),u=Wf({type:i,tag:t,entities:n,getTag:s,getEntityName:o(c=>to(c,e.options),"getEntityName"),options:e.options});return FT(e.options,a,u)}o(zn,"getModelsImports");function L_({tag:e,endpoints:t,options:r}){return Wf({type:"endpoints",tag:e,entities:t,getTag:o(n=>no(n,r),"getTag"),getEntityName:ro,options:r})}o(L_,"getEndpointsImports");function LT(e){let t=Zf;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Gf}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Gf}`,"g"),Zf)),`${t}/`.replace(/\/\//g,"/")}o(LT,"getImportPath");function Wf({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(u=>{let c=n(u);if(a.has(c))s.includeNamespaces||a.get(c).bindings.push(i(u));else{let l=t===c;a.set(c,{bindings:[s.includeNamespaces?re({type:e,tag:c,options:s}):i(u)],from:`${l?"./":LT(s)}${or({type:e,tag:c,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Wf,"getImports");function FT(e,...t){let r=new Map;return t.forEach(n=>{n.forEach(i=>{r.has(i.from)?e.includeNamespaces||r.get(i.from).bindings.push(...i.bindings):r.set(i.from,i)})}),Array.from(r.values()).map(n=>({...n,bindings:Ne(n.bindings)}))}o(FT,"mergeImports");var zp=De(Yr());var ti=De(require("fs")),Vp=De(require("path"));function Bp(e){let t=`src/generators/templates/${e}.hbs`;return ti.default.readFileSync(Vp.default.join(__dirname,`../${t}`),"utf-8")}o(Bp,"readHbsTemplateSync");function kS({output:e,fileName:t}){return`${e}/${t}.ts`}o(kS,"getOutputFileName");function RS({fileName:e,content:t}){TN(e,t)}o(RS,"writeTsFileSync");function TN(e,t){let r=Vp.default.dirname(e);ti.default.existsSync(r)||ti.default.mkdirSync(r,{recursive:!0}),ti.default.writeFileSync(e,t,"utf-8")}o(TN,"writeFileWithDirSync");var Hp=De(Yr());function TS(){CN(),NN()}o(TS,"registerCommonHbsHelpers");function CN(){Hp.default.registerHelper("isEqual",(e,t)=>e===t)}o(CN,"registerIsEqualHelper");function NN(){Hp.default.registerHelper("commaSeparated",e=>e.join(", "))}o(NN,"registerCommaSeparatedListHelper");var Qr=De(Yr());function CS(e){qN(),jN(e.options),LN(e),MN(),DN(),FN(e)}o(CS,"registerEndpointsHbsHelpers");function qN(){Qr.default.registerHelper("endpointName",ro)}o(qN,"registerEndpointNameHelper");function jN(e){Qr.default.registerHelper("importedEndpointName",t=>e_(t,e))}o(jN,"registerImportedEndpointNameHelper");function MN(){Qr.default.registerHelper("endpointPath",t_)}o(MN,"registerEndpointPathHelper");function DN(){Qr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(DN,"registerEndpointBodyHelper");function LN(e){Qr.default.registerHelper("endpointParams",t=>Mf(e,t))}o(LN,"registerEndpointParamsHelper");function FN(e){Qr.default.registerHelper("endpointArgs",t=>Mf(e,t).map(r=>r.name).join(", "))}o(FN,"registerEndpointArgsHelper");var ri=De(Yr());var yr={query:"useQuery",mutation:"useMutation"},NS={bindings:[yr.query,yr.mutation],from:"@tanstack/react-query"};function qS(){VN(),BN(),HN(),UN(),zN()}o(qS,"registerPartialsHbsHelpers");function VN(){ri.default.registerHelper("genImport",e=>ni("import")({import:e}))}o(VN,"registerImportHelper");function BN(){ri.default.registerHelper("genEndpointParams",e=>ni("endpoint-params")({endpoint:e}))}o(BN,"registerGenerateEndpointParamsHelper");function HN(){ri.default.registerHelper("genEndpointConfig",e=>{let t=r_(e);return Object.keys(t).length===0?"":ni("endpoint-config")({endpointConfig:t})})}o(HN,"registerGenerateEndpointConfigHelper");function UN(){ri.default.registerHelper("genQueryKeys",e=>e.length===0?"":ni("query-keys")({endpoints:e}))}o(UN,"registerGenerateQueryKeysHelper");function zN(){ri.default.registerHelper("genQuery",e=>{let t,r;return Fn(e)?(t="query-use-query",r=yr.query):(t="query-use-mutation",r=yr.mutation),ni(t)({endpoint:e,queryHook:r})})}o(zN,"registerGenerateQueryHelper");var ka=De(Yr());function jS(){GN(),ZN(),KN()}o(jS,"registerQueryHbsHelpers");function GN(){ka.default.registerHelper("queryName",ks)}o(GN,"registerQueryNameHelper");function ZN(){ka.default.registerHelper("allQueryKeys",Ef)}o(ZN,"registerQueryKeysHelper");function KN(){ka.default.registerHelper("endpointPathQueryKeys",Rv)}o(KN,"registerEndpointPathQueryKeysHelper");var Up=De(Yr());function MS(e){WN(e.options),YN(e)}o(MS,"registerZodHbsHelpers");function WN(e){Up.default.registerHelper("zodInferedType",t=>to(t,e))}o(WN,"registerInferedTypeHelper");function YN(e){Up.default.registerHelper("importedZodSchemaName",t=>Kv(e,t))}o(YN,"registerImportedZodSchemaNameHelper");function ii(e,t){let r=Bp(t);return TS(),MS(e),CS(e),jS(),qS(),zp.default.compile(r)}o(ii,"getHbsTemplateDelegate");function ni(e){let t=Bp(`partials/${e}`);return zp.default.compile(t)}o(ni,"getHbsPartialTemplateDelegate");function DS({resolver:e,data:t,tag:r=""}){var l;let n=(l=t.get(r))==null?void 0:l.endpoints;if(!n||n.length===0)return;let i=n.map(p=>p.response),s=i.some(p=>!Pe(p)),a=n.reduce((p,f)=>[...p,...f.parameters],[]),u=zn({resolver:e,tag:r,zodSchemas:Ne(i.filter(Pe)),zodSchemasAsTypes:Ne(a.map(p=>p.zodSchema).filter(Pe))});return ii(e,"endpoints")({restClientImport:M_,hasZodImport:s,zodImport:As,modelsImports:u,includeNamespace:e.options.includeNamespaces,namespace:re({type:"endpoints",tag:r,options:e.options}),restClientName:Kf,endpoints:n})}o(DS,"generateEndpoints");function LS(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),s=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...s]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(FS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(LS,"getZodSchemaRefs");function FS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&FS(n).forEach(s=>r.add(s)),r},new Set)}o(FS,"getSchemaRefs");function VS({resolver:e,data:t,tag:r=""}){var c;let n=(c=t.get(r))==null?void 0:c.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,p)=>[...l,...LS(e,p)],[]).filter(l=>!n[l]),s=zn({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[p,f])=>{let d=e.getRefByZodSchemaName(p);return{...l,[p]:{code:f,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return ii(e,"models")({zodImport:As,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:re({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(VS,"generateModels");function BS({resolver:e,data:t,tag:r=""}){var d;let n=(d=t.get(r))==null?void 0:d.endpoints;if(!n||n.length===0)return;let i=n.filter(Fn),s=n.filter(js),a={...NS,bindings:[...i.length>0?[yr.query]:[],...s.length>0?[yr.mutation]:[]]},u={...D_,bindings:[...i.length>0?[uo.query]:[],...s.length>0?[uo.mutation]:[]]},c=[...i,...s].reduce((h,g)=>[...h,...g.parameters],[]),l=zn({resolver:e,tag:r,zodSchemasAsTypes:Ne(c.map(h=>h.zodSchema).filter(Pe))}),p=L_({tag:r,endpoints:n,options:e.options});return ii(e,"queries")({queryImport:a,queryTypesImport:u,modelsImports:l,endpointsImports:p,includeNamespace:e.options.includeNamespaces,namespace:re({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(BS,"generateQueries");function HS(e,t,r=!0){let n={...Yi,...t},{resolver:i,data:s}=Zs(e,n),a=[],u=["models","endpoints","queries"],c={models:VS,endpoints:DS,queries:BS};return s.forEach((l,p)=>{n.excludeTags.find(d=>d.toLowerCase()===p.toLowerCase())||u.forEach(d=>{let h=c[d]({resolver:i,data:s,tag:p});if(h){let g=kS({output:n.output,fileName:or({tag:p,type:d,options:n})});a.push({fileName:g,content:h})}})}),r&&a.forEach(RS),a}o(HS,"generateCodeFromOpenAPIDoc");async function QN({input:e,options:t}){let r={...Yi,...t},n=await Gp.default.bundle(e);return await j_(n,r)}o(QN,"getGenerateMetadata");async function JN({input:e,options:t}){let r={...Yi,...t},n=await Gp.default.bundle(e);return HS(n,r,!1)}o(JN,"getGenerateFileData");0&&(module.exports={getGenerateFileData,getGenerateMetadata});
|