@povio/openapi-codegen-cli 0.4.6 → 0.4.7
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/dist/generators/utils/generate/generate.acl.utils.d.ts +1 -0
- package/dist/generators/utils/generate/generate.endpoints.utils.d.ts +2 -0
- package/dist/generators/utils/string.utils.d.ts +1 -0
- package/dist/generators/utils/validation.utils.d.ts +4 -2
- package/dist/index.js +53 -52
- package/dist/sh.js +67 -66
- package/package.json +1 -1
- package/src/generators/templates/partials/casl-ability-function.hbs +4 -4
- package/src/generators/templates/partials/query-use-mutation.hbs +9 -0
- package/src/generators/templates/partials/query-use-query.hbs +9 -0
package/dist/index.js
CHANGED
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var DS=Object.create;var ei=Object.defineProperty;var LS=Object.getOwnPropertyDescriptor;var FS=Object.getOwnPropertyNames;var VS=Object.getPrototypeOf,BS=Object.prototype.hasOwnProperty;var o=(e,t)=>ei(e,"name",{value:t,configurable:!0});var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HS=(e,t)=>{for(var r in t)ei(e,r,{get:t[r],enumerable:!0})},Mf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of FS(t))!BS.call(e,i)&&i!==r&&ei(e,i,{get:()=>t[i],enumerable:!(n=LS(t,i))||n.enumerable});return e};var ut=(e,t,r)=>(r=e!=null?DS(VS(e)):{},Mf(t||!e||!e.__esModule?ei(r,"default",{value:e,enumerable:!0}):r,e)),US=e=>Mf(ei({},"__esModule",{value:!0}),e);var Re=h((Ne,Lf)=>{"use strict";var yo=/^win/.test(process.platform),zS=/\//g,GS=/^(\w{2,}):\/\//i,Df=Lf.exports,ZS=/~1/g,KS=/~0/g,Oa=[/\?/g,"%3F",/\#/g,"%23"],Ea=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];Ne.parse=require("url").parse;Ne.resolve=require("url").resolve;Ne.cwd=o(function(){if(process.browser)return location.href;let t=process.cwd(),r=t.slice(-1);return r==="/"||r==="\\"?t:t+"/"},"cwd");Ne.getProtocol=o(function(t){let r=GS.exec(t);if(r)return r[1].toLowerCase()},"getProtocol");Ne.getExtension=o(function(t){let r=t.lastIndexOf(".");return r>=0?t.substr(r).toLowerCase():""},"getExtension");Ne.getHash=o(function(t){let r=t.indexOf("#");return r>=0?t.substr(r):"#"},"getHash");Ne.stripHash=o(function(t){let r=t.indexOf("#");return r>=0&&(t=t.substr(0,r)),t},"stripHash");Ne.isHttp=o(function(t){let r=Df.getProtocol(t);return r==="http"||r==="https"?!0:r===void 0?process.browser:!1},"isHttp");Ne.isFileSystemPath=o(function(t){if(process.browser)return!1;let r=Df.getProtocol(t);return r===void 0||r==="file"},"isFileSystemPath");Ne.fromFileSystemPath=o(function(t){yo&&(t=t.replace(/\\/g,"/")),t=encodeURI(t);for(let r=0;r<Oa.length;r+=2)t=t.replace(Oa[r],Oa[r+1]);return t},"fromFileSystemPath");Ne.toFileSystemPath=o(function(t,r){t=decodeURI(t);for(let i=0;i<Ea.length;i+=2)t=t.replace(Ea[i],Ea[i+1]);let n=t.substr(0,7).toLowerCase()==="file://";return n&&(t=t[7]==="/"?t.substr(8):t.substr(7),yo&&t[1]==="/"&&(t=t[0]+":"+t.substr(1)),r?t="file:///"+t:(n=!1,t=yo?t:"/"+t)),yo&&!n&&(t=t.replace(zS,"\\"),t.substr(1,2)===":\\"&&(t=t[0].toUpperCase()+t.substr(1))),t},"toFileSystemPath");Ne.safePointerToPath=o(function(t){return t.length<=1||t[0]!=="#"||t[1]!=="/"?[]:t.slice(2).split("/").map(r=>decodeURIComponent(r).replace(ZS,"/").replace(KS,"~"))},"safePointerToPath")});var vo=h(ti=>{"use strict";var Ff=require("util"),YS=Re();ti.format=Ff.format;ti.inherits=Ff.inherits;ti.swaggerParamRegExp=/\{([^/}]+)}/g;var WS=["get","post","put","delete","patch","options","head","trace"];function xa(e,t){if(e.url&&e.url.startsWith("/")){let r=YS.parse(t),n=r.protocol+"//"+r.hostname+e.url;return e.url=n,e}}o(xa,"fixServers");function QS(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map(r=>xa(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=>xa(a,t)):WS.includes(s)&&i[s].servers&&i[s].servers.map(a=>xa(a,t))})})}))}o(QS,"fixOasRelativeServers");ti.fixOasRelativeServers=QS});var _o=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getDeepKeys=rn.toJSON=void 0;var JS=["function","symbol","undefined"],XS=["constructor","prototype","__proto__"],e2=Object.getPrototypeOf({});function t2(){let e={},t=this;for(let r of Vf(t))if(typeof r=="string"){let n=t[r],i=typeof n;JS.includes(i)||(e[r]=n)}return e}o(t2,"toJSON");rn.toJSON=t2;function Vf(e,t=[]){let r=[];for(;e&&e!==e2;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let i of t.concat(XS))n.delete(i);return n}o(Vf,"getDeepKeys");rn.getDeepKeys=Vf});var wa=h(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.addInspectMethod=nn.format=void 0;var Bf=require("util"),r2=_o(),Hf=Bf.inspect.custom||Symbol.for("nodejs.util.inspect.custom");nn.format=Bf.format;function n2(e){e[Hf]=i2}o(n2,"addInspectMethod");nn.addInspectMethod=n2;function i2(){let e={},t=this;for(let r of r2.getDeepKeys(t)){let n=t[r];e[r]=n}return delete e[Hf],e}o(i2,"inspect")});var Gf=h(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.lazyJoinStacks=lt.joinStacks=lt.isWritableStack=lt.isLazyStack=void 0;var o2=/\r?\n/,s2=/\bono[ @]/;function a2(e){return!!(e&&e.configurable&&typeof e.get=="function")}o(a2,"isLazyStack");lt.isLazyStack=a2;function c2(e){return!!(!e||e.writable||typeof e.set=="function")}o(c2,"isWritableStack");lt.isWritableStack=c2;function Uf(e,t){let r=zf(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(f2,"normalizeArgs");on.normalizeArgs=f2});var Aa=h($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.Ono=void 0;var Po=Kf(),Wf=Yf(),d2=_o(),m2=wa;$o.Ono=m2;function wa(e,t){t=Wf.normalizeOptions(t);function r(...n){let{originalError:i,props:o,message:a}=Wf.normalizeArgs(n,t),c=new e(a);return Po.extendError(c,i,o)}return s(r,"ono"),r[Symbol.species]=e,r}s(wa,"Ono");wa.toJSON=s(function(t){return d2.toJSON.call(t)},"toJSON");wa.extend=s(function(t,r,n){return n||r instanceof Error?Po.extendError(t,r,n):r?Po.extendError(t,void 0,r):Po.extendError(t)},"extend")});var Qf=h(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ono=void 0;var Sr=Aa(),h2=ut;Oo.ono=h2;ut.error=new Sr.Ono(Error);ut.eval=new Sr.Ono(EvalError);ut.range=new Sr.Ono(RangeError);ut.reference=new Sr.Ono(ReferenceError);ut.syntax=new Sr.Ono(SyntaxError);ut.type=new Sr.Ono(TypeError);ut.uri=new Sr.Ono(URIError);var g2=ut;function ut(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(g2))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 ut.error.apply(void 0,e)}s(ut,"ono")});var Xf=h(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var iq=require("util")});var Ze=h((Ge,sn)=>{"use strict";var y2=Ge&&Ge.__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]}),v2=Ge&&Ge.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&y2(t,e,r)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ono=void 0;var ed=Qf();Object.defineProperty(Ge,"ono",{enumerable:!0,get:s(function(){return ed.ono},"get")});var _2=Aa();Object.defineProperty(Ge,"Ono",{enumerable:!0,get:s(function(){return _2.Ono},"get")});v2(Xf(),Ge);Ge.default=ed.ono;typeof sn=="object"&&typeof sn.exports=="object"&&(sn.exports=Object.assign(sn.exports.default,sn.exports))});var ii=h(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.regexpCode=M.getEsmExportName=M.getProperty=M.safeStringify=M.stringify=M.strConcat=M.addCodeArg=M.str=M._=M.nil=M._Code=M.Name=M.IDENTIFIER=M._CodeOrName=void 0;var ka=class ka{};s(ka,"_CodeOrName");var ri=ka;M._CodeOrName=ri;M.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Na=class Na extends ri{constructor(t){if(super(),!M.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(Na,"Name");var Pr=Na;M.Name=Pr;var Ra=class Ra extends ri{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 Pr&&(r[n.str]=(r[n.str]||0)+1),r),{})}};s(Ra,"_Code");var je=Ra;M._Code=je;M.nil=new je("");function td(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Ta(r,t[n]),r.push(e[++n]);return new je(r)}s(td,"_");M._=td;var Ia=new je("+");function rd(e,...t){let r=[ni(e[0])],n=0;for(;n<t.length;)r.push(Ia),Ta(r,t[n]),r.push(Ia,ni(e[++n]));return b2(r),new je(r)}s(rd,"str");M.str=rd;function Ta(e,t){t instanceof je?e.push(...t._items):t instanceof Pr?e.push(t):e.push($2(t))}s(Ta,"addCodeArg");M.addCodeArg=Ta;function b2(e){let t=1;for(;t<e.length-1;){if(e[t]===Ia){let r=S2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}s(b2,"optimize");function S2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Pr||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 Pr))return`"${e}${t.slice(1)}`}s(S2,"mergeExprItems");function P2(e,t){return t.emptyStr()?e:e.emptyStr()?t:rd`${e}${t}`}s(P2,"strConcat");M.strConcat=P2;function $2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ni(Array.isArray(e)?e.join(","):e)}s($2,"interpolate");function O2(e){return new je(ni(e))}s(O2,"stringify");M.stringify=O2;function ni(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(ni,"safeStringify");M.safeStringify=ni;function E2(e){return typeof e=="string"&&M.IDENTIFIER.test(e)?new je(`.${e}`):td`[${e}]`}s(E2,"getProperty");M.getProperty=E2;function x2(e){if(typeof e=="string"&&M.IDENTIFIER.test(e))return new je(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(x2,"getEsmExportName");M.getEsmExportName=x2;function w2(e){return new je(e.toString())}s(w2,"regexpCode");M.regexpCode=w2});var Fa=h(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ValueScope=we.ValueScopeName=we.Scope=we.varKinds=we.UsedValueState=void 0;var xe=ii(),ja=class ja extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(ja,"ValueError");var Ca=ja,Eo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Eo||(we.UsedValueState=Eo={}));we.varKinds={const:new xe.Name("const"),let:new xe.Name("let"),var:new xe.Name("var")};var Ma=class Ma{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}}};s(Ma,"Scope");var xo=Ma;we.Scope=xo;var Da=class Da 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}]`}};s(Da,"ValueScopeName");var wo=Da;we.ValueScopeName=wo;var A2=(0,xe._)`\n`,La=class La extends xo{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?A2:xe.nil}}get(){return this._scope}name(t){return new wo(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 f=c.get(a);if(f)return f}else c=this._values[o]=new Map;c.set(a,i);let u=this._scope[o]||(this._scope[o]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:o,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 o=xe.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Eo.Started);let f=r(l);if(f){let p=this.opts.es5?we.varKinds.var:we.varKinds.const;o=(0,xe._)`${o}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))o=(0,xe._)`${o}${f}${this.opts._n}`;else throw new Ca(l);u.set(l,Eo.Completed)})}return o}};s(La,"ValueScope");var qa=La;we.ValueScope=qa});var A=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.or=T.and=T.not=T.CodeGen=T.operators=T.varKinds=T.ValueScopeName=T.ValueScope=T.Scope=T.Name=T.regexpCode=T.stringify=T.getProperty=T.nil=T.strConcat=T.str=T._=void 0;var C=ii(),Ke=Fa(),Ut=ii();Object.defineProperty(T,"_",{enumerable:!0,get:s(function(){return Ut._},"get")});Object.defineProperty(T,"str",{enumerable:!0,get:s(function(){return Ut.str},"get")});Object.defineProperty(T,"strConcat",{enumerable:!0,get:s(function(){return Ut.strConcat},"get")});Object.defineProperty(T,"nil",{enumerable:!0,get:s(function(){return Ut.nil},"get")});Object.defineProperty(T,"getProperty",{enumerable:!0,get:s(function(){return Ut.getProperty},"get")});Object.defineProperty(T,"stringify",{enumerable:!0,get:s(function(){return Ut.stringify},"get")});Object.defineProperty(T,"regexpCode",{enumerable:!0,get:s(function(){return Ut.regexpCode},"get")});Object.defineProperty(T,"Name",{enumerable:!0,get:s(function(){return Ut.Name},"get")});var ko=Fa();Object.defineProperty(T,"Scope",{enumerable:!0,get:s(function(){return ko.Scope},"get")});Object.defineProperty(T,"ValueScope",{enumerable:!0,get:s(function(){return ko.ValueScope},"get")});Object.defineProperty(T,"ValueScopeName",{enumerable:!0,get:s(function(){return ko.ValueScopeName},"get")});Object.defineProperty(T,"varKinds",{enumerable:!0,get:s(function(){return ko.varKinds},"get")});T.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 Xa=class Xa{optimizeNodes(){return this}optimizeNames(t,r){return this}};s(Xa,"Node");var It=Xa,ec=class ec extends It{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Ke.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=un(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};s(ec,"Def");var Va=ec,tc=class tc extends It{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=un(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return To(t,this.rhs)}};s(tc,"Assign");var Ao=tc,rc=class rc extends Ao{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(rc,"AssignOp");var Ba=rc,nc=class nc extends It{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(nc,"Label");var Ha=nc,ic=class ic extends It{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(ic,"Break");var Ua=ic,oc=class oc extends It{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(oc,"Throw");var za=oc,sc=class sc extends It{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=un(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};s(sc,"AnyCode");var Ga=sc,ac=class ac extends It{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)||(I2(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Er(t,r.names),{})}};s(ac,"ParentNode");var oi=ac,cc=class cc extends oi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(cc,"BlockNode");var Tt=cc,uc=class uc extends oi{};s(uc,"Root");var Za=uc,lc=class lc extends Tt{};s(lc,"Else");var cn=lc;cn.kind="else";var an=class an 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 cn(n):n}if(r)return t===!1?r instanceof an?r:r.nodes:this.nodes.length?this:new an(nd(t),r instanceof an?[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=un(this.condition,t,r),this}get names(){let t=super.names;return To(t,this.condition),this.else&&Er(t,this.else.names),t}};s(an,"If");var $r=an;$r.kind="if";var pc=class pc extends Tt{};s(pc,"For");var Or=pc;Or.kind="for";var fc=class fc extends Or{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=un(this.iteration,t,r),this}get names(){return Er(super.names,this.iteration.names)}};s(fc,"ForLoop");var Ka=fc,dc=class dc extends Or{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Ke.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=To(super.names,this.from);return To(t,this.to)}};s(dc,"ForRange");var Ya=dc,mc=class mc extends Or{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=un(this.iterable,t,r),this}get names(){return Er(super.names,this.iterable.names)}};s(mc,"ForIter");var Io=mc,hc=class hc 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(hc,"Func");var si=hc;si.kind="func";var gc=class gc extends oi{render(t){return"return "+super.render(t)}};s(gc,"Return");var ai=gc;ai.kind="return";var yc=class yc 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&&Er(t,this.catch.names),this.finally&&Er(t,this.finally.names),t}};s(yc,"Try");var Wa=yc,vc=class vc extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(vc,"Catch");var ci=vc;ci.kind="catch";var _c=class _c extends Tt{render(t){return"finally"+super.render(t)}};s(_c,"Finally");var ui=_c;ui.kind="finally";var bc=class bc{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
-
`:""},this._extScope=t,this._scope=new Ke.Scope({parent:t}),this._nodes=[new Za]}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 Va(t,o,n)),o}const(t,r,n){return this._def(Ke.varKinds.const,t,r,n)}let(t,r,n){return this._def(Ke.varKinds.let,t,r,n)}var(t,r,n){return this._def(Ke.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ao(t,r,n))}add(t,r){return this._leafNode(new Ba(t,T.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new Ga(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 $r(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 $r(t))}else(){return this._elseNode(new cn)}endIf(){return this._endBlockNode($r,cn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ka(t),r)}forRange(t,r,n,i,o=this.opts.es5?Ke.varKinds.var:Ke.varKinds.let){let a=this._scope.toName(t);return this._for(new Ya(o,a,r,n),()=>i(a))}forOf(t,r,n,i=Ke.varKinds.const){let o=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`,c=>{this.var(o,(0,C._)`${a}[${c}]`),n(o)})}return this._for(new Io("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Ke.varKinds.var:Ke.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Io("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Or)}label(t){return this._leafNode(new Ha(t))}break(t){return this._leafNode(new Ua(t))}return(t){let r=new ai;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ai)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Wa;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new ci(o),r(o)}return n&&(this._currNode=i.finally=new ui,this.code(n)),this._endBlockNode(ci,ui)}throw(t){return this._leafNode(new za(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 si(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(si)}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 $r))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(bc,"CodeGen");var Qa=bc;T.CodeGen=Qa;function Er(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}s(Er,"addNames");function To(e,t){return t instanceof C._CodeOrName?Er(e,t.names):e}s(To,"addExprNames");function un(e,t,r){if(e instanceof C.Name)return n(e);if(!i(e))return e;return new C._Code(e._items.reduce((o,a)=>(a instanceof C.Name&&(a=n(a)),a instanceof C._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 C._Code&&o._items.some(a=>a instanceof C.Name&&t[a.str]===1&&r[a.str]!==void 0)}}s(un,"optimizeExpr");function I2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}s(I2,"subtractNames");function nd(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${Ja(e)}`}s(nd,"not");T.not=nd;var T2=id(T.operators.AND);function k2(...e){return e.reduce(T2)}s(k2,"and");T.and=k2;var N2=id(T.operators.OR);function R2(...e){return e.reduce(N2)}s(R2,"or");T.or=R2;function id(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${Ja(t)} ${e} ${Ja(r)}`}s(id,"mappend");function Ja(e){return e instanceof C.Name?e:(0,C._)`(${e})`}s(Ja,"par")});var R=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.checkStrictMode=k.getErrorPath=k.Type=k.useFunc=k.setEvaluated=k.evaluatedPropsToName=k.mergeEvaluated=k.eachItem=k.unescapeJsonPointer=k.escapeJsonPointer=k.escapeFragment=k.unescapeFragment=k.schemaRefOrVal=k.schemaHasRulesButRef=k.schemaHasRules=k.checkUnknownRules=k.alwaysValidSchema=k.toHash=void 0;var V=A(),C2=ii();function q2(e){let t={};for(let r of e)t[r]=!0;return t}s(q2,"toHash");k.toHash=q2;function j2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ad(e,t),!cd(t,e.self.RULES.all))}s(j2,"alwaysValidSchema");k.alwaysValidSchema=j2;function ad(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]||pd(e,`unknown keyword: "${o}"`)}s(ad,"checkUnknownRules");k.checkUnknownRules=ad;function cd(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}s(cd,"schemaHasRules");k.schemaHasRules=cd;function M2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}s(M2,"schemaHasRulesButRef");k.schemaHasRulesButRef=M2;function D2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,V._)`${r}`}return(0,V._)`${e}${t}${(0,V.getProperty)(n)}`}s(D2,"schemaRefOrVal");k.schemaRefOrVal=D2;function L2(e){return ud(decodeURIComponent(e))}s(L2,"unescapeFragment");k.unescapeFragment=L2;function F2(e){return encodeURIComponent(Pc(e))}s(F2,"escapeFragment");k.escapeFragment=F2;function Pc(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(Pc,"escapeJsonPointer");k.escapeJsonPointer=Pc;function ud(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(ud,"unescapeJsonPointer");k.unescapeJsonPointer=ud;function V2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}s(V2,"eachItem");k.eachItem=V2;function od({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,a,c)=>{let u=a===void 0?o:a instanceof V.Name?(o instanceof V.Name?e(i,o,a):t(i,o,a),a):o instanceof V.Name?(t(i,a,o),o):r(o,a);return c===V.Name&&!(u instanceof V.Name)?n(i,u):u}}s(od,"makeMergeEvaluated");k.mergeEvaluated={props:od({mergeNames:s((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,V._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,V._)`${r} || {}`).code((0,V._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,V._)`${r} || {}`),$c(e,r,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:ld}),items:od({mergeNames:s((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,V._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:s((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,V._)`${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 ld(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,V._)`{}`);return t!==void 0&&$c(e,r,t),r}s(ld,"evaluatedPropsToName");k.evaluatedPropsToName=ld;function $c(e,t,r){Object.keys(r).forEach(n=>e.assign((0,V._)`${t}${(0,V.getProperty)(n)}`,!0))}s($c,"setEvaluated");k.setEvaluated=$c;var sd={};function B2(e,t){return e.scopeValue("func",{ref:t,code:sd[t.code]||(sd[t.code]=new C2._Code(t.code))})}s(B2,"useFunc");k.useFunc=B2;var Sc;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Sc||(k.Type=Sc={}));function H2(e,t,r){if(e instanceof V.Name){let n=t===Sc.Num;return r?n?(0,V._)`"[" + ${e} + "]"`:(0,V._)`"['" + ${e} + "']"`:n?(0,V._)`"/" + ${e}`:(0,V._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,V.getProperty)(e).toString():"/"+Pc(e)}s(H2,"getErrorPath");k.getErrorPath=H2;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)}}s(pd,"checkStrictMode");k.checkStrictMode=pd});var Me=h(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var pe=A(),U2={data:new pe.Name("data"),valCxt:new pe.Name("valCxt"),instancePath:new pe.Name("instancePath"),parentData:new pe.Name("parentData"),parentDataProperty:new pe.Name("parentDataProperty"),rootData:new pe.Name("rootData"),dynamicAnchors:new pe.Name("dynamicAnchors"),vErrors:new pe.Name("vErrors"),errors:new pe.Name("errors"),this:new pe.Name("this"),self:new pe.Name("self"),scope:new pe.Name("scope"),json:new pe.Name("json"),jsonPos:new pe.Name("jsonPos"),jsonLen:new pe.Name("jsonLen"),jsonPart:new pe.Name("jsonPart")};Oc.default=U2});var li=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.extendErrors=fe.resetErrorsCount=fe.reportExtraError=fe.reportError=fe.keyword$DataError=fe.keywordError=void 0;var q=A(),No=R(),ve=Me();fe.keywordError={message:s(({keyword:e})=>(0,q.str)`must pass "${e}" keyword validation`,"message")};fe.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,q.str)`"${e}" keyword must be ${t} ($data)`:(0,q.str)`"${e}" keyword is invalid ($data)`,"message")};function z2(e,t=fe.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,u=md(e,t,r);n??(a||c)?fd(o,u):dd(i,(0,q._)`[${u}]`)}s(z2,"reportError");fe.reportError=z2;function G2(e,t=fe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:a}=n,c=md(e,t,r);fd(i,c),o||a||dd(n,ve.default.vErrors)}s(G2,"reportExtraError");fe.reportExtraError=G2;function Z2(e,t){e.assign(ve.default.errors,t),e.if((0,q._)`${ve.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,q._)`${ve.default.vErrors}.length`,t),()=>e.assign(ve.default.vErrors,null)))}s(Z2,"resetErrorsCount");fe.resetErrorsCount=Z2;function K2({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,ve.default.errors,c=>{e.const(a,(0,q._)`${ve.default.vErrors}[${c}]`),e.if((0,q._)`${a}.instancePath === undefined`,()=>e.assign((0,q._)`${a}.instancePath`,(0,q.strConcat)(ve.default.instancePath,o.errorPath))),e.assign((0,q._)`${a}.schemaPath`,(0,q.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,q._)`${a}.schema`,r),e.assign((0,q._)`${a}.data`,n))})}s(K2,"extendErrors");fe.extendErrors=K2;function fd(e,t){let r=e.const("err",t);e.if((0,q._)`${ve.default.vErrors} === null`,()=>e.assign(ve.default.vErrors,(0,q._)`[${r}]`),(0,q._)`${ve.default.vErrors}.push(${r})`),e.code((0,q._)`${ve.default.errors}++`)}s(fd,"addError");function dd(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,q._)`new ${e.ValidationError}(${t})`):(r.assign((0,q._)`${n}.errors`,t),r.return(!1))}s(dd,"returnErrors");var xr={keyword:new q.Name("keyword"),schemaPath:new q.Name("schemaPath"),params:new q.Name("params"),propertyName:new q.Name("propertyName"),message:new q.Name("message"),schema:new q.Name("schema"),parentSchema:new q.Name("parentSchema")};function md(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,q._)`{}`:Y2(e,t,r)}s(md,"errorObjectCode");function Y2(e,t,r={}){let{gen:n,it:i}=e,o=[W2(i,r),Q2(e,r)];return J2(e,t,o),n.object(...o)}s(Y2,"errorObject");function W2({errorPath:e},{instancePath:t}){let r=t?(0,q.str)`${e}${(0,No.getErrorPath)(t,No.Type.Str)}`:e;return[ve.default.instancePath,(0,q.strConcat)(ve.default.instancePath,r)]}s(W2,"errorInstancePath");function Q2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,q.str)`${t}/${e}`;return r&&(i=(0,q.str)`${i}${(0,No.getErrorPath)(r,No.Type.Str)}`),[xr.schemaPath,i]}s(Q2,"errorSchemaPath");function J2(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([xr.keyword,i],[xr.params,typeof t=="function"?t(e):t||(0,q._)`{}`]),u.messages&&n.push([xr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([xr.schema,a],[xr.parentSchema,(0,q._)`${f}${p}`],[ve.default.data,o]),l&&n.push([xr.propertyName,l])}s(J2,"extraErrorProps")});var gd=h(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.boolOrEmptySchema=ln.topBoolOrEmptySchema=void 0;var X2=li(),e1=A(),t1=Me(),r1={message:"boolean schema is false"};function n1(e){let{gen:t,schema:r,validateName:n}=e;r===!1?hd(e,!1):typeof r=="object"&&r.$async===!0?t.return(t1.default.data):(t.assign((0,e1._)`${n}.errors`,null),t.return(!0))}s(n1,"topBoolOrEmptySchema");ln.topBoolOrEmptySchema=n1;function i1(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),hd(e)):r.var(t,!0)}s(i1,"boolOrEmptySchema");ln.boolOrEmptySchema=i1;function hd(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,X2.reportError)(i,r1,void 0,t)}s(hd,"falseSchemaError")});var Ec=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.getRules=pn.isJSONType=void 0;var o1=["string","number","integer","boolean","null","object","array"],s1=new Set(o1);function a1(e){return typeof e=="string"&&s1.has(e)}s(a1,"isJSONType");pn.isJSONType=a1;function c1(){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(c1,"getRules");pn.getRules=c1});var xc=h(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.shouldUseRule=zt.shouldUseGroup=zt.schemaHasRulesForType=void 0;function u1({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&yd(e,n)}s(u1,"schemaHasRulesForType");zt.schemaHasRulesForType=u1;function yd(e,t){return t.rules.some(r=>vd(e,r))}s(yd,"shouldUseGroup");zt.shouldUseGroup=yd;function vd(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(vd,"shouldUseRule");zt.shouldUseRule=vd});var pi=h(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 l1=Ec(),p1=xc(),f1=li(),I=A(),_d=R(),fn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(fn||(de.DataType=fn={}));function d1(e){let t=bd(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(d1,"getSchemaTypes");de.getSchemaTypes=d1;function bd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(l1.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(bd,"getJSONTypes");de.getJSONTypes=bd;function m1(e,t){let{gen:r,data:n,opts:i}=e,o=h1(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,p1.schemaHasRulesForType)(e,t[0]));if(a){let c=Ac(t,n,i.strictNumbers,fn.Wrong);r.if(c,()=>{o.length?g1(e,t,o):Ic(e)})}return a}s(m1,"coerceAndCheckDataType");de.coerceAndCheckDataType=m1;var Sd=new Set(["string","number","integer","boolean","null"]);function h1(e,t){return t?e.filter(r=>Sd.has(r)||t==="array"&&r==="array"):[]}s(h1,"coerceToTypes");function g1(e,t,r){let{gen:n,data:i,opts:o}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),c=n.let("coerced",(0,I._)`undefined`);o.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(Ac(t,i,o.strictNumbers),()=>n.assign(c,i))),n.if((0,I._)`${c} !== undefined`);for(let l of r)(Sd.has(l)||l==="array"&&o.coerceTypes==="array")&&u(l);n.else(),Ic(e),n.endIf(),n.if((0,I._)`${c} !== undefined`,()=>{n.assign(i,c),y1(e,c)});function u(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(c,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
|
|
3
|
+
`+n:r||n}o(Uf,"joinStacks");lt.joinStacks=Uf;function u2(e,t,r){r?Object.defineProperty(t,"stack",{get:o(()=>{let n=e.get.apply(t);return Uf({stack:n},r)},"get"),enumerable:!1,configurable:!0}):l2(t,e)}o(u2,"lazyJoinStacks");lt.lazyJoinStacks=u2;function zf(e){if(e){let t=e.split(o2),r;for(let n=0;n<t.length;n++){let i=t[n];if(s2.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(zf,"popStack");function l2(e,t){Object.defineProperty(e,"stack",{get:o(()=>zf(t.get.apply(e)),"get"),enumerable:!1,configurable:!0})}o(l2,"lazyPopStack")});var Yf=h(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.extendError=void 0;var Zf=wa(),bo=Gf(),Kf=_o(),p2=["name","message","stack"];function f2(e,t,r){let n=e;return d2(n,t),t&&typeof t=="object"&&m2(n,t),n.toJSON=Kf.toJSON,Zf.addInspectMethod&&Zf.addInspectMethod(n),r&&typeof r=="object"&&Object.assign(n,r),n}o(f2,"extendError");So.extendError=f2;function d2(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");bo.isLazyStack(r)?bo.lazyJoinStacks(r,e,t):bo.isWritableStack(r)&&(e.stack=bo.joinStacks(e,t))}o(d2,"extendStack");function m2(e,t){let r=Kf.getDeepKeys(t,p2),n=e,i=t;for(let s of r)if(n[s]===void 0)try{n[s]=i[s]}catch{}}o(m2,"mergeErrors")});var Wf=h(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.normalizeArgs=on.normalizeOptions=void 0;var h2=wa();function g2(e){return e=e||{},{concatMessages:e.concatMessages===void 0?!0:!!e.concatMessages,format:e.format===void 0?h2.format:typeof e.format=="function"?e.format:!1}}o(g2,"normalizeOptions");on.normalizeOptions=g2;function y2(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(y2,"normalizeArgs");on.normalizeArgs=y2});var Ia=h($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.Ono=void 0;var Po=Yf(),Qf=Wf(),v2=_o(),_2=Aa;$o.Ono=_2;function Aa(e,t){t=Qf.normalizeOptions(t);function r(...n){let{originalError:i,props:s,message:a}=Qf.normalizeArgs(n,t),c=new e(a);return Po.extendError(c,i,s)}return o(r,"ono"),r[Symbol.species]=e,r}o(Aa,"Ono");Aa.toJSON=o(function(t){return v2.toJSON.call(t)},"toJSON");Aa.extend=o(function(t,r,n){return n||r instanceof Error?Po.extendError(t,r,n):r?Po.extendError(t,void 0,r):Po.extendError(t)},"extend")});var Jf=h(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ono=void 0;var Pr=Ia(),b2=pt;Oo.ono=b2;pt.error=new Pr.Ono(Error);pt.eval=new Pr.Ono(EvalError);pt.range=new Pr.Ono(RangeError);pt.reference=new Pr.Ono(ReferenceError);pt.syntax=new Pr.Ono(SyntaxError);pt.type=new Pr.Ono(TypeError);pt.uri=new Pr.Ono(URIError);var S2=pt;function pt(...e){let t=e[0];if(typeof t=="object"&&typeof t.name=="string"){for(let r of Object.values(S2))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 pt.error.apply(void 0,e)}o(pt,"ono")});var ed=h(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var pj=require("util")});var Ye=h((Ke,sn)=>{"use strict";var P2=Ke&&Ke.__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]}),$2=Ke&&Ke.__exportStar||function(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&P2(t,e,r)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ono=void 0;var td=Jf();Object.defineProperty(Ke,"ono",{enumerable:!0,get:o(function(){return td.ono},"get")});var O2=Ia();Object.defineProperty(Ke,"Ono",{enumerable:!0,get:o(function(){return O2.Ono},"get")});$2(ed(),Ke);Ke.default=td.ono;typeof sn=="object"&&typeof sn.exports=="object"&&(sn.exports=Object.assign(sn.exports.default,sn.exports))});var ii=h(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 Na=class Na{};o(Na,"_CodeOrName");var ri=Na;q._CodeOrName=ri;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ra=class Ra extends ri{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(Ra,"Name");var $r=Ra;q.Name=$r;var Ca=class Ca extends ri{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(Ca,"_Code");var Me=Ca;q._Code=Me;q.nil=new Me("");function rd(e,...t){let r=[e[0]],n=0;for(;n<t.length;)ka(r,t[n]),r.push(e[++n]);return new Me(r)}o(rd,"_");q._=rd;var Ta=new Me("+");function nd(e,...t){let r=[ni(e[0])],n=0;for(;n<t.length;)r.push(Ta),ka(r,t[n]),r.push(Ta,ni(e[++n]));return E2(r),new Me(r)}o(nd,"str");q.str=nd;function ka(e,t){t instanceof Me?e.push(...t._items):t instanceof $r?e.push(t):e.push(A2(t))}o(ka,"addCodeArg");q.addCodeArg=ka;function E2(e){let t=1;for(;t<e.length-1;){if(e[t]===Ta){let r=x2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}o(E2,"optimize");function x2(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(x2,"mergeExprItems");function w2(e,t){return t.emptyStr()?e:e.emptyStr()?t:nd`${e}${t}`}o(w2,"strConcat");q.strConcat=w2;function A2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ni(Array.isArray(e)?e.join(","):e)}o(A2,"interpolate");function I2(e){return new Me(ni(e))}o(I2,"stringify");q.stringify=I2;function ni(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(ni,"safeStringify");q.safeStringify=ni;function T2(e){return typeof e=="string"&&q.IDENTIFIER.test(e)?new Me(`.${e}`):rd`[${e}]`}o(T2,"getProperty");q.getProperty=T2;function k2(e){if(typeof e=="string"&&q.IDENTIFIER.test(e))return new Me(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}o(k2,"getEsmExportName");q.getEsmExportName=k2;function N2(e){return new Me(e.toString())}o(N2,"regexpCode");q.regexpCode=N2});var Va=h(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.ValueScope=Ae.ValueScopeName=Ae.Scope=Ae.varKinds=Ae.UsedValueState=void 0;var we=ii(),Ma=class Ma extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};o(Ma,"ValueError");var ja=Ma,Eo;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Eo||(Ae.UsedValueState=Eo={}));Ae.varKinds={const:new we.Name("const"),let:new we.Name("let"),var:new we.Name("var")};var Da=class Da{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof we.Name?t:this.name(t)}name(t){return new we.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(Da,"Scope");var xo=Da;Ae.Scope=xo;var La=class La extends we.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,we._)`.${new we.Name(r)}[${n}]`}};o(La,"ValueScopeName");var wo=La;Ae.ValueScopeName=wo;var R2=(0,we._)`\n`,Fa=class Fa extends xo{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?R2:we.nil}}get(){return this._scope}name(t){return new wo(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,c=this._values[s];if(c){let f=c.get(a);if(f)return f}else c=this._values[s]=new Map;c.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[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,we._)`${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=we.nil;for(let a in t){let c=t[a];if(!c)continue;let u=n[a]=n[a]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,Eo.Started);let f=r(l);if(f){let p=this.opts.es5?Ae.varKinds.var:Ae.varKinds.const;s=(0,we._)`${s}${p} ${l} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(l))s=(0,we._)`${s}${f}${this.opts._n}`;else throw new ja(l);u.set(l,Eo.Completed)})}return s}};o(Fa,"ValueScope");var qa=Fa;Ae.ValueScope=qa});var A=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.or=T.and=T.not=T.CodeGen=T.operators=T.varKinds=T.ValueScopeName=T.ValueScope=T.Scope=T.Name=T.regexpCode=T.stringify=T.getProperty=T.nil=T.strConcat=T.str=T._=void 0;var C=ii(),We=Va(),zt=ii();Object.defineProperty(T,"_",{enumerable:!0,get:o(function(){return zt._},"get")});Object.defineProperty(T,"str",{enumerable:!0,get:o(function(){return zt.str},"get")});Object.defineProperty(T,"strConcat",{enumerable:!0,get:o(function(){return zt.strConcat},"get")});Object.defineProperty(T,"nil",{enumerable:!0,get:o(function(){return zt.nil},"get")});Object.defineProperty(T,"getProperty",{enumerable:!0,get:o(function(){return zt.getProperty},"get")});Object.defineProperty(T,"stringify",{enumerable:!0,get:o(function(){return zt.stringify},"get")});Object.defineProperty(T,"regexpCode",{enumerable:!0,get:o(function(){return zt.regexpCode},"get")});Object.defineProperty(T,"Name",{enumerable:!0,get:o(function(){return zt.Name},"get")});var ko=Va();Object.defineProperty(T,"Scope",{enumerable:!0,get:o(function(){return ko.Scope},"get")});Object.defineProperty(T,"ValueScope",{enumerable:!0,get:o(function(){return ko.ValueScope},"get")});Object.defineProperty(T,"ValueScopeName",{enumerable:!0,get:o(function(){return ko.ValueScopeName},"get")});Object.defineProperty(T,"varKinds",{enumerable:!0,get:o(function(){return ko.varKinds},"get")});T.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 ec=class ec{optimizeNodes(){return this}optimizeNames(t,r){return this}};o(ec,"Node");var It=ec,tc=class tc extends It{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?We.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=un(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}};o(tc,"Def");var Ba=tc,rc=class rc extends It{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=un(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return To(t,this.rhs)}};o(rc,"Assign");var Ao=rc,nc=class nc extends Ao{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};o(nc,"AssignOp");var Ha=nc,ic=class ic extends It{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};o(ic,"Label");var Ua=ic,oc=class oc extends It{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};o(oc,"Break");var za=oc,sc=class sc extends It{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};o(sc,"Throw");var Ga=sc,ac=class ac extends It{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=un(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}};o(ac,"AnyCode");var Za=ac,cc=class cc extends It{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)||(C2(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>xr(t,r.names),{})}};o(cc,"ParentNode");var oi=cc,uc=class uc extends oi{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};o(uc,"BlockNode");var Tt=uc,lc=class lc extends oi{};o(lc,"Root");var Ka=lc,pc=class pc extends Tt{};o(pc,"Else");var cn=pc;cn.kind="else";var an=class an 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 cn(n):n}if(r)return t===!1?r instanceof an?r:r.nodes:this.nodes.length?this:new an(id(t),r instanceof an?[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=un(this.condition,t,r),this}get names(){let t=super.names;return To(t,this.condition),this.else&&xr(t,this.else.names),t}};o(an,"If");var Or=an;Or.kind="if";var fc=class fc extends Tt{};o(fc,"For");var Er=fc;Er.kind="for";var dc=class dc extends Er{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=un(this.iteration,t,r),this}get names(){return xr(super.names,this.iteration.names)}};o(dc,"ForLoop");var Ya=dc,mc=class mc extends Er{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?We.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=To(super.names,this.from);return To(t,this.to)}};o(mc,"ForRange");var Wa=mc,hc=class hc extends Er{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=un(this.iterable,t,r),this}get names(){return xr(super.names,this.iterable.names)}};o(hc,"ForIter");var Io=hc,gc=class gc 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(gc,"Func");var si=gc;si.kind="func";var yc=class yc extends oi{render(t){return"return "+super.render(t)}};o(yc,"Return");var ai=yc;ai.kind="return";var vc=class vc 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&&xr(t,this.catch.names),this.finally&&xr(t,this.finally.names),t}};o(vc,"Try");var Qa=vc,_c=class _c extends Tt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};o(_c,"Catch");var ci=_c;ci.kind="catch";var bc=class bc extends Tt{render(t){return"finally"+super.render(t)}};o(bc,"Finally");var ui=bc;ui.kind="finally";var Sc=class Sc{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
6
|
+
`:""},this._extScope=t,this._scope=new We.Scope({parent:t}),this._nodes=[new Ka]}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 Ba(t,s,n)),s}const(t,r,n){return this._def(We.varKinds.const,t,r,n)}let(t,r,n){return this._def(We.varKinds.let,t,r,n)}var(t,r,n){return this._def(We.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ao(t,r,n))}add(t,r){return this._leafNode(new Ha(t,T.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new Za(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 Or(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 Or(t))}else(){return this._elseNode(new cn)}endIf(){return this._endBlockNode(Or,cn)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ya(t),r)}forRange(t,r,n,i,s=this.opts.es5?We.varKinds.var:We.varKinds.let){let a=this._scope.toName(t);return this._for(new Wa(s,a,r,n),()=>i(a))}forOf(t,r,n,i=We.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`,c=>{this.var(s,(0,C._)`${a}[${c}]`),n(s)})}return this._for(new Io("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?We.varKinds.var:We.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 Io("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Er)}label(t){return this._leafNode(new Ua(t))}break(t){return this._leafNode(new za(t))}return(t){let r=new ai;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ai)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Qa;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new ci(s),r(s)}return n&&(this._currNode=i.finally=new ui,this.code(n)),this._endBlockNode(ci,ui)}throw(t){return this._leafNode(new Ga(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 si(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(si)}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 Or))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(Sc,"CodeGen");var Ja=Sc;T.CodeGen=Ja;function xr(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}o(xr,"addNames");function To(e,t){return t instanceof C._CodeOrName?xr(e,t.names):e}o(To,"addExprNames");function un(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(un,"optimizeExpr");function C2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}o(C2,"subtractNames");function id(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${Xa(e)}`}o(id,"not");T.not=id;var j2=od(T.operators.AND);function q2(...e){return e.reduce(j2)}o(q2,"and");T.and=q2;var M2=od(T.operators.OR);function D2(...e){return e.reduce(M2)}o(D2,"or");T.or=D2;function od(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${Xa(t)} ${e} ${Xa(r)}`}o(od,"mappend");function Xa(e){return e instanceof C.Name?e:(0,C._)`(${e})`}o(Xa,"par")});var N=h(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.checkStrictMode=k.getErrorPath=k.Type=k.useFunc=k.setEvaluated=k.evaluatedPropsToName=k.mergeEvaluated=k.eachItem=k.unescapeJsonPointer=k.escapeJsonPointer=k.escapeFragment=k.unescapeFragment=k.schemaRefOrVal=k.schemaHasRulesButRef=k.schemaHasRules=k.checkUnknownRules=k.alwaysValidSchema=k.toHash=void 0;var V=A(),L2=ii();function F2(e){let t={};for(let r of e)t[r]=!0;return t}o(F2,"toHash");k.toHash=F2;function V2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(cd(e,t),!ud(t,e.self.RULES.all))}o(V2,"alwaysValidSchema");k.alwaysValidSchema=V2;function cd(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]||fd(e,`unknown keyword: "${s}"`)}o(cd,"checkUnknownRules");k.checkUnknownRules=cd;function ud(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}o(ud,"schemaHasRules");k.schemaHasRules=ud;function B2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}o(B2,"schemaHasRulesButRef");k.schemaHasRulesButRef=B2;function H2({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,V._)`${r}`}return(0,V._)`${e}${t}${(0,V.getProperty)(n)}`}o(H2,"schemaRefOrVal");k.schemaRefOrVal=H2;function U2(e){return ld(decodeURIComponent(e))}o(U2,"unescapeFragment");k.unescapeFragment=U2;function z2(e){return encodeURIComponent($c(e))}o(z2,"escapeFragment");k.escapeFragment=z2;function $c(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}o($c,"escapeJsonPointer");k.escapeJsonPointer=$c;function ld(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}o(ld,"unescapeJsonPointer");k.unescapeJsonPointer=ld;function G2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}o(G2,"eachItem");k.eachItem=G2;function sd({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,c)=>{let u=a===void 0?s:a instanceof V.Name?(s instanceof V.Name?e(i,s,a):t(i,s,a),a):s instanceof V.Name?(t(i,a,s),s):r(s,a);return c===V.Name&&!(u instanceof V.Name)?n(i,u):u}}o(sd,"makeMergeEvaluated");k.mergeEvaluated={props:sd({mergeNames:o((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,V._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,V._)`${r} || {}`).code((0,V._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,V._)`${r} || {}`),Oc(e,r,t))}),"mergeToName"),mergeValues:o((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:pd}),items:sd({mergeNames:o((e,t,r)=>e.if((0,V._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,V._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:o((e,t,r)=>e.if((0,V._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,V._)`${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 pd(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,V._)`{}`);return t!==void 0&&Oc(e,r,t),r}o(pd,"evaluatedPropsToName");k.evaluatedPropsToName=pd;function Oc(e,t,r){Object.keys(r).forEach(n=>e.assign((0,V._)`${t}${(0,V.getProperty)(n)}`,!0))}o(Oc,"setEvaluated");k.setEvaluated=Oc;var ad={};function Z2(e,t){return e.scopeValue("func",{ref:t,code:ad[t.code]||(ad[t.code]=new L2._Code(t.code))})}o(Z2,"useFunc");k.useFunc=Z2;var Pc;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Pc||(k.Type=Pc={}));function K2(e,t,r){if(e instanceof V.Name){let n=t===Pc.Num;return r?n?(0,V._)`"[" + ${e} + "]"`:(0,V._)`"['" + ${e} + "']"`:n?(0,V._)`"/" + ${e}`:(0,V._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,V.getProperty)(e).toString():"/"+$c(e)}o(K2,"getErrorPath");k.getErrorPath=K2;function fd(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(fd,"checkStrictMode");k.checkStrictMode=fd});var De=h(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var pe=A(),Y2={data:new pe.Name("data"),valCxt:new pe.Name("valCxt"),instancePath:new pe.Name("instancePath"),parentData:new pe.Name("parentData"),parentDataProperty:new pe.Name("parentDataProperty"),rootData:new pe.Name("rootData"),dynamicAnchors:new pe.Name("dynamicAnchors"),vErrors:new pe.Name("vErrors"),errors:new pe.Name("errors"),this:new pe.Name("this"),self:new pe.Name("self"),scope:new pe.Name("scope"),json:new pe.Name("json"),jsonPos:new pe.Name("jsonPos"),jsonLen:new pe.Name("jsonLen"),jsonPart:new pe.Name("jsonPart")};Ec.default=Y2});var li=h(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.extendErrors=fe.resetErrorsCount=fe.reportExtraError=fe.reportError=fe.keyword$DataError=fe.keywordError=void 0;var j=A(),No=N(),be=De();fe.keywordError={message:o(({keyword:e})=>(0,j.str)`must pass "${e}" keyword validation`,"message")};fe.keyword$DataError={message:o(({keyword:e,schemaType:t})=>t?(0,j.str)`"${e}" keyword must be ${t} ($data)`:(0,j.str)`"${e}" keyword is invalid ($data)`,"message")};function W2(e,t=fe.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:c}=i,u=hd(e,t,r);n??(a||c)?dd(s,u):md(i,(0,j._)`[${u}]`)}o(W2,"reportError");fe.reportError=W2;function Q2(e,t=fe.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,c=hd(e,t,r);dd(i,c),s||a||md(n,be.default.vErrors)}o(Q2,"reportExtraError");fe.reportExtraError=Q2;function J2(e,t){e.assign(be.default.errors,t),e.if((0,j._)`${be.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,j._)`${be.default.vErrors}.length`,t),()=>e.assign(be.default.vErrors,null)))}o(J2,"resetErrorsCount");fe.resetErrorsCount=J2;function X2({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,be.default.errors,c=>{e.const(a,(0,j._)`${be.default.vErrors}[${c}]`),e.if((0,j._)`${a}.instancePath === undefined`,()=>e.assign((0,j._)`${a}.instancePath`,(0,j.strConcat)(be.default.instancePath,s.errorPath))),e.assign((0,j._)`${a}.schemaPath`,(0,j.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,j._)`${a}.schema`,r),e.assign((0,j._)`${a}.data`,n))})}o(X2,"extendErrors");fe.extendErrors=X2;function dd(e,t){let r=e.const("err",t);e.if((0,j._)`${be.default.vErrors} === null`,()=>e.assign(be.default.vErrors,(0,j._)`[${r}]`),(0,j._)`${be.default.vErrors}.push(${r})`),e.code((0,j._)`${be.default.errors}++`)}o(dd,"addError");function md(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,j._)`new ${e.ValidationError}(${t})`):(r.assign((0,j._)`${n}.errors`,t),r.return(!1))}o(md,"returnErrors");var wr={keyword:new j.Name("keyword"),schemaPath:new j.Name("schemaPath"),params:new j.Name("params"),propertyName:new j.Name("propertyName"),message:new j.Name("message"),schema:new j.Name("schema"),parentSchema:new j.Name("parentSchema")};function hd(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,j._)`{}`:eP(e,t,r)}o(hd,"errorObjectCode");function eP(e,t,r={}){let{gen:n,it:i}=e,s=[tP(i,r),rP(e,r)];return nP(e,t,s),n.object(...s)}o(eP,"errorObject");function tP({errorPath:e},{instancePath:t}){let r=t?(0,j.str)`${e}${(0,No.getErrorPath)(t,No.Type.Str)}`:e;return[be.default.instancePath,(0,j.strConcat)(be.default.instancePath,r)]}o(tP,"errorInstancePath");function rP({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,j.str)`${t}/${e}`;return r&&(i=(0,j.str)`${i}${(0,No.getErrorPath)(r,No.Type.Str)}`),[wr.schemaPath,i]}o(rP,"errorSchemaPath");function nP(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:c}=e,{opts:u,propertyName:l,topSchemaRef:f,schemaPath:p}=c;n.push([wr.keyword,i],[wr.params,typeof t=="function"?t(e):t||(0,j._)`{}`]),u.messages&&n.push([wr.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([wr.schema,a],[wr.parentSchema,(0,j._)`${f}${p}`],[be.default.data,s]),l&&n.push([wr.propertyName,l])}o(nP,"extraErrorProps")});var yd=h(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.boolOrEmptySchema=ln.topBoolOrEmptySchema=void 0;var iP=li(),oP=A(),sP=De(),aP={message:"boolean schema is false"};function cP(e){let{gen:t,schema:r,validateName:n}=e;r===!1?gd(e,!1):typeof r=="object"&&r.$async===!0?t.return(sP.default.data):(t.assign((0,oP._)`${n}.errors`,null),t.return(!0))}o(cP,"topBoolOrEmptySchema");ln.topBoolOrEmptySchema=cP;function uP(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),gd(e)):r.var(t,!0)}o(uP,"boolOrEmptySchema");ln.boolOrEmptySchema=uP;function gd(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,iP.reportError)(i,aP,void 0,t)}o(gd,"falseSchemaError")});var xc=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.getRules=pn.isJSONType=void 0;var lP=["string","number","integer","boolean","null","object","array"],pP=new Set(lP);function fP(e){return typeof e=="string"&&pP.has(e)}o(fP,"isJSONType");pn.isJSONType=fP;function dP(){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(dP,"getRules");pn.getRules=dP});var wc=h(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.shouldUseRule=Gt.shouldUseGroup=Gt.schemaHasRulesForType=void 0;function mP({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&vd(e,n)}o(mP,"schemaHasRulesForType");Gt.schemaHasRulesForType=mP;function vd(e,t){return t.rules.some(r=>_d(e,r))}o(vd,"shouldUseGroup");Gt.shouldUseGroup=vd;function _d(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(_d,"shouldUseRule");Gt.shouldUseRule=_d});var pi=h(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 hP=xc(),gP=wc(),yP=li(),I=A(),bd=N(),fn;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(fn||(de.DataType=fn={}));function vP(e){let t=Sd(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(vP,"getSchemaTypes");de.getSchemaTypes=vP;function Sd(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(hP.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}o(Sd,"getJSONTypes");de.getJSONTypes=Sd;function _P(e,t){let{gen:r,data:n,opts:i}=e,s=bP(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,gP.schemaHasRulesForType)(e,t[0]));if(a){let c=Ic(t,n,i.strictNumbers,fn.Wrong);r.if(c,()=>{s.length?SP(e,t,s):Tc(e)})}return a}o(_P,"coerceAndCheckDataType");de.coerceAndCheckDataType=_P;var Pd=new Set(["string","number","integer","boolean","null"]);function bP(e,t){return t?e.filter(r=>Pd.has(r)||t==="array"&&r==="array"):[]}o(bP,"coerceToTypes");function SP(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,I._)`typeof ${i}`),c=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(Ic(t,i,s.strictNumbers),()=>n.assign(c,i))),n.if((0,I._)`${c} !== undefined`);for(let l of r)(Pd.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),Tc(e),n.endIf(),n.if((0,I._)`${c} !== undefined`,()=>{n.assign(i,c),PP(e,c)});function u(l){switch(l){case"string":n.elseIf((0,I._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,I._)`"" + ${i}`).elseIf((0,I._)`${i} === null`).assign(c,(0,I._)`""`);return;case"number":n.elseIf((0,I._)`${a} == "boolean" || ${i} === null
|
|
7
7
|
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,I._)`+${i}`);return;case"integer":n.elseIf((0,I._)`${a} === "boolean" || ${i} === null
|
|
8
8
|
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,I._)`+${i}`);return;case"boolean":n.elseIf((0,I._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,I._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":n.elseIf((0,I._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(c,null);return;case"array":n.elseIf((0,I._)`${a} === "string" || ${a} === "number"
|
|
9
|
-
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,I._)`[${i}]`)}}s(u,"coerceSpecificType")}s(g1,"coerceData");function y1({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}s(y1,"assignParentData");function wc(e,t,r,n=fn.Correct){let i=n===fn.Correct?I.operators.EQ:I.operators.NEQ,o;switch(e){case"null":return(0,I._)`${t} ${i} null`;case"array":o=(0,I._)`Array.isArray(${t})`;break;case"object":o=(0,I._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,I._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,I._)`typeof ${t} ${i} ${e}`}return n===fn.Correct?o:(0,I.not)(o);function a(c=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,c,r?(0,I._)`isFinite(${t})`:I.nil)}}s(wc,"checkDataType");de.checkDataType=wc;function Ac(e,t,r,n){if(e.length===1)return wc(e[0],t,r,n);let i,o=(0,_d.toHash)(e);if(o.array&&o.object){let a=(0,I._)`typeof ${t} != "object"`;i=o.null?a:(0,I._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=I.nil;o.number&&delete o.integer;for(let a in o)i=(0,I.and)(i,wc(a,t,r,n));return i}s(Ac,"checkDataTypes");de.checkDataTypes=Ac;var v1={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,I._)`{type: ${e}}`:(0,I._)`{type: ${t}}`,"params")};function Ic(e){let t=_1(e);(0,f1.reportError)(t,v1)}s(Ic,"reportTypeError");de.reportTypeError=Ic;function _1(e){let{gen:t,data:r,schema:n}=e,i=(0,_d.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}s(_1,"getTypeErrorContext")});var $d=h(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.assignDefaults=void 0;var dn=A(),b1=R();function S1(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Pd(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Pd(e,o,i.default))}s(S1,"assignDefaults");Ro.assignDefaults=S1;function Pd(e,t,r){let{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;let c=(0,dn._)`${o}${(0,dn.getProperty)(t)}`;if(i){(0,b1.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,dn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,dn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,dn._)`${c} = ${(0,dn.stringify)(r)}`)}s(Pd,"assignDefault")});var De=h(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 B=A(),Tc=R(),Gt=Me(),P1=R();function $1(e,t){let{gen:r,data:n,it:i}=e;r.if(Nc(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,B._)`${t}`},!0),e.error()})}s($1,"checkReportMissingProp");L.checkReportMissingProp=$1;function O1({gen:e,data:t,it:{opts:r}},n,i){return(0,B.or)(...n.map(o=>(0,B.and)(Nc(e,t,o,r.ownProperties),(0,B._)`${i} = ${o}`)))}s(O1,"checkMissingProp");L.checkMissingProp=O1;function E1(e,t){e.setParams({missingProperty:t},!0),e.error()}s(E1,"reportMissingProp");L.reportMissingProp=E1;function Od(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,B._)`Object.prototype.hasOwnProperty`})}s(Od,"hasPropFunc");L.hasPropFunc=Od;function kc(e,t,r){return(0,B._)`${Od(e)}.call(${t}, ${r})`}s(kc,"isOwnProperty");L.isOwnProperty=kc;function x1(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} !== undefined`;return n?(0,B._)`${i} && ${kc(e,t,r)}`:i}s(x1,"propertyInData");L.propertyInData=x1;function Nc(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} === undefined`;return n?(0,B.or)(i,(0,B.not)(kc(e,t,r))):i}s(Nc,"noPropertyInData");L.noPropertyInData=Nc;function Ed(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(Ed,"allSchemaProperties");L.allSchemaProperties=Ed;function w1(e,t){return Ed(t).filter(r=>!(0,Tc.alwaysValidSchema)(e,t[r]))}s(w1,"schemaProperties");L.schemaProperties=w1;function A1({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},c,u,l){let f=l?(0,B._)`${e}, ${t}, ${n}${i}`:t,p=[[Gt.default.instancePath,(0,B.strConcat)(Gt.default.instancePath,o)],[Gt.default.parentData,a.parentData],[Gt.default.parentDataProperty,a.parentDataProperty],[Gt.default.rootData,Gt.default.rootData]];a.opts.dynamicRef&&p.push([Gt.default.dynamicAnchors,Gt.default.dynamicAnchors]);let d=(0,B._)`${f}, ${r.object(...p)}`;return u!==B.nil?(0,B._)`${c}.call(${u}, ${d})`:(0,B._)`${c}(${d})`}s(A1,"callValidateCode");L.callValidateCode=A1;var I1=(0,B._)`new RegExp`;function T1({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,B._)`${i.code==="new RegExp"?I1:(0,P1.useFunc)(e,i)}(${r}, ${n})`})}s(T1,"usePattern");L.usePattern=T1;function k1(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,B._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Tc.Type.Num},o),t.if((0,B.not)(o),c)})}s(a,"validateItems")}s(k1,"validateArray");L.validateArray=k1;function N1(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,Tc.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let f=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,B._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,B.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(N1,"validateUnion");L.validateUnion=N1});var Ad=h(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.validateKeywordUsage=lt.validSchemaType=lt.funcKeywordCode=lt.macroKeywordCode=void 0;var _e=A(),wr=Me(),R1=De(),C1=li();function q1(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),u=wd(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:_e.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}s(q1,"macroKeywordCode");lt.macroKeywordCode=q1;function j1(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:a,$data:c,it:u}=e;D1(u,t);let l=!c&&t.compile?t.compile.call(u.self,o,a,u):t.validate,f=wd(n,i,l),p=n.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)y(),t.modifying&&xd(e),v(()=>e.error());else{let _=t.async?m():g();t.modifying&&xd(e),v(()=>M1(e,_))}}s(d,"validateKeyword");function m(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,_e._)`await `),b=>n.assign(p,!1).if((0,_e._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(_,(0,_e._)`${b}.errors`),()=>n.throw(b))),_}s(m,"validateAsync");function g(){let _=(0,_e._)`${f}.errors`;return n.assign(_,null),y(_e.nil),_}s(g,"validateSync");function y(_=t.async?(0,_e._)`await `:_e.nil){let b=u.opts.passContext?wr.default.this:wr.default.self,P=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,_e._)`${_}${(0,R1.callValidateCode)(e,f,b,P)}`,t.modifying)}s(y,"assignValid");function v(_){var b;n.if((0,_e.not)((b=t.valid)!==null&&b!==void 0?b:p),_)}s(v,"reportErrs")}s(j1,"funcKeywordCode");lt.funcKeywordCode=j1;function xd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_e._)`${n.parentData}[${n.parentDataProperty}]`))}s(xd,"modifyData");function M1(e,t){let{gen:r}=e;r.if((0,_e._)`Array.isArray(${t})`,()=>{r.assign(wr.default.vErrors,(0,_e._)`${wr.default.vErrors} === null ? ${t} : ${wr.default.vErrors}.concat(${t})`).assign(wr.default.errors,(0,_e._)`${wr.default.vErrors}.length`),(0,C1.extendErrors)(e)},()=>e.error())}s(M1,"addErrs");function D1({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(D1,"checkAsyncKeyword");function wd(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,_e.stringify)(r)})}s(wd,"useKeyword");function L1(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(L1,"validSchemaType");lt.validSchemaType=L1;function F1({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(F1,"validateKeywordUsage");lt.validateKeywordUsage=F1});var Td=h(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.extendSubschemaMode=Zt.extendSubschemaData=Zt.getSubschema=void 0;var pt=A(),Id=R();function V1(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,pt._)`${e.schemaPath}${(0,pt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,pt._)`${e.schemaPath}${(0,pt.getProperty)(t)}${(0,pt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Id.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(V1,"getSubschema");Zt.getSubschema=V1;function B1(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:l,dataPathArr:f,opts:p}=t,d=c.let("data",(0,pt._)`${t.data}${(0,pt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,pt.str)`${l}${(0,Id.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,pt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof pt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}s(u,"dataContextProps")}s(B1,"extendSubschemaData");Zt.extendSubschemaData=B1;function H1(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(H1,"extendSubschemaMode");Zt.extendSubschemaMode=H1});var Rc=h((Cq,kd)=>{"use strict";kd.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 Rd=h((jq,Nd)=>{"use strict";var Kt=Nd.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(){};Co(t,n,i,e,"",e)};Kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Kt.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 Co(e,t,r,n,i,o,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in Kt.arrayKeywords)for(var d=0;d<p.length;d++)Co(e,t,r,p[d],i+"/"+f+"/"+d,o,i,f,n,d)}else if(f in Kt.propsKeywords){if(p&&typeof p=="object")for(var m in p)Co(e,t,r,p[m],i+"/"+f+"/"+U1(m),o,i,f,n,m)}else(f in Kt.keywords||e.allKeys&&!(f in Kt.skipKeywords))&&Co(e,t,r,p,i+"/"+f,o,i,f,n)}r(n,i,o,a,c,u,l)}}s(Co,"_traverse");function U1(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(U1,"escapeJsonPtr")});var fi=h(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.getSchemaRefs=Ae.resolveUrl=Ae.normalizeId=Ae._getFullPath=Ae.getFullPath=Ae.inlineRef=void 0;var z1=R(),G1=Rc(),Z1=Rd(),K1=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Y1(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Cc(e):t?Cd(e)<=t:!1}s(Y1,"inlineRef");Ae.inlineRef=Y1;var W1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Cc(e){for(let t in e){if(W1.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Cc)||typeof r=="object"&&Cc(r))return!0}return!1}s(Cc,"hasRef");function Cd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!K1.has(r)&&(typeof e[r]=="object"&&(0,z1.eachItem)(e[r],n=>t+=Cd(n)),t===1/0))return 1/0}return t}s(Cd,"countKeys");function qd(e,t="",r){r!==!1&&(t=mn(t));let n=e.parse(t);return jd(e,n)}s(qd,"getFullPath");Ae.getFullPath=qd;function jd(e,t){return e.serialize(t).split("#")[0]+"#"}s(jd,"_getFullPath");Ae._getFullPath=jd;var Q1=/#\/?$/;function mn(e){return e?e.replace(Q1,""):""}s(mn,"normalizeId");Ae.normalizeId=mn;function J1(e,t,r){return r=mn(r),e.resolve(t,r)}s(J1,"resolveUrl");Ae.resolveUrl=J1;var X1=/^[a-z_][-a-z0-9._]*$/i;function eP(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=mn(e[r]||t),o={"":i},a=qd(n,i,!1),c={},u=new Set;return Z1(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=o[g];typeof p[r]=="string"&&(v=_.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),o[d]=v;function _(P){let E=this.opts.uriResolver.resolve;if(P=mn(v?E(v,P):P),u.has(P))throw f(P);u.add(P);let S=this.refs[P];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?l(p,S.schema,P):P!==mn(y)&&(P[0]==="#"?(l(p,c[P],P),c[P]=p):this.refs[P]=y),P}s(_,"addRef");function b(P){if(typeof P=="string"){if(!X1.test(P))throw new Error(`invalid anchor "${P}"`);_.call(this,`#${P}`)}}s(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!G1(p,d))throw f(m)}s(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}s(f,"ambiguos")}s(eP,"getSchemaRefs");Ae.getSchemaRefs=eP});var hi=h(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getData=Yt.KeywordCxt=Yt.validateFunctionCode=void 0;var Vd=gd(),Md=pi(),jc=xc(),qo=pi(),tP=$d(),mi=Ad(),qc=Td(),O=A(),w=Me(),rP=fi(),kt=R(),di=li();function nP(e){if(Ud(e)&&(zd(e),Hd(e))){sP(e);return}Bd(e,()=>(0,Vd.topBoolOrEmptySchema)(e))}s(nP,"validateFunctionCode");Yt.validateFunctionCode=nP;function Bd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,O._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,O._)`"use strict"; ${Dd(r,i)}`),oP(e,i),e.code(o)}):e.func(t,(0,O._)`${w.default.data}, ${iP(i)}`,n.$async,()=>e.code(Dd(r,i)).code(o))}s(Bd,"validateFunction");function iP(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}}={}`}s(iP,"destructureValCxt");function oP(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._)`{}`)})}s(oP,"destructureValCxtES5");function sP(e){let{schema:t,opts:r,gen:n}=e;Bd(e,()=>{r.$comment&&t.$comment&&Zd(e),pP(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&aP(e),Gd(e),mP(e)})}s(sP,"topSchemaObjCode");function aP(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`))}s(aP,"resetEvaluated");function Dd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,O._)`/*# sourceURL=${r} */`:O.nil}s(Dd,"funcSourceUrl");function cP(e,t){if(Ud(e)&&(zd(e),Hd(e))){uP(e,t);return}(0,Vd.boolOrEmptySchema)(e,t)}s(cP,"subschemaCode");function Hd({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(Hd,"schemaCxtHasRules");function Ud(e){return typeof e.schema!="boolean"}s(Ud,"isSchemaObj");function uP(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Zd(e),fP(e),dP(e);let o=n.const("_errs",w.default.errors);Gd(e,o),n.var(t,(0,O._)`${o} === ${w.default.errors}`)}s(uP,"subSchemaObjCode");function zd(e){(0,kt.checkUnknownRules)(e),lP(e)}s(zd,"checkKeywords");function Gd(e,t){if(e.opts.jtd)return Ld(e,[],!1,t);let r=(0,Md.getSchemaTypes)(e.schema),n=(0,Md.coerceAndCheckDataType)(e,r);Ld(e,r,!n,t)}s(Gd,"typeAndKeywords");function lP(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,kt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}s(lP,"checkRefsAndKeywords");function pP(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,kt.checkStrictMode)(e,"default is ignored in the schema root")}s(pP,"checkNoDefault");function fP(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,rP.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(fP,"updateContext");function dP(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(dP,"checkAsyncSchema");function Zd({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,O._)`${w.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,O.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,O._)`${w.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(Zd,"commentKeyword");function mP(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=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),o.unevaluated&&hP(e),t.return((0,O._)`${w.default.errors} === 0`))}s(mP,"returnResults");function hP({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)}s(hP,"assignEvaluated");function Ld(e,t,r,n){let{gen:i,schema:o,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,kt.schemaHasRulesButRef)(o,f))){i.block(()=>Yd(e,"$ref",f.all.$ref.definition));return}u.jtd||gP(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,jc.shouldUseGroup)(o,d)&&(d.type?(i.if((0,qo.checkDataType)(d.type,a,u.strictNumbers)),Fd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,qo.reportTypeError)(e)),i.endIf()):Fd(e,d),c||i.if((0,O._)`${w.default.errors} === ${n||0}`))}s(p,"groupKeywords")}s(Ld,"schemaKeywords");function Fd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,tP.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,jc.shouldUseRule)(n,o)&&Yd(e,o.keyword,o.definition,t.type)})}s(Fd,"iterateKeywords");function gP(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(yP(e,t),e.opts.allowUnionTypes||vP(e,t),_P(e,e.dataTypes))}s(gP,"checkStrictTypes");function yP(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Kd(e.dataTypes,r)||Mc(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),SP(e,t)}}s(yP,"checkContextTypes");function vP(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Mc(e,"use allowUnionTypes to allow union type keyword")}s(vP,"checkMultipleTypes");function _P(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,jc.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>bP(t,a))&&Mc(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}s(_P,"checkKeywordTypes");function bP(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(bP,"hasApplicableType");function Kd(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(Kd,"includesType");function SP(e,t){let r=[];for(let n of e.dataTypes)Kd(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}s(SP,"narrowSchemaTypes");function Mc(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,kt.checkStrictMode)(e,t,e.opts.strictTypes)}s(Mc,"strictTypesError");var Dc=class Dc{constructor(t,r,n){if((0,mi.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,kt.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",Wd(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,mi.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?di.reportExtraError:di.reportError)(this,this.def.error,r)}$dataError(){(0,di.reportError)(this,this.def.$dataError||di.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,di.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:o,def:a}=this;n.if((0,O.or)((0,O._)`${i} === undefined`,r)),t!==O.nil&&n.assign(t,!0),(o.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:o}=this;return(0,O.or)(a(),c());function a(){if(n.length){if(!(r instanceof O.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,O._)`${(0,qo.checkDataTypes)(u,r,o.opts.strictNumbers,qo.DataType.Wrong)}`}return O.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,O._)`!${u}(${r})`}return O.nil}}subschema(t,r){let n=(0,qc.getSubschema)(this.it,t);(0,qc.extendSubschemaData)(n,this.it,t),(0,qc.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return cP(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=kt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=kt.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}};s(Dc,"KeywordCxt");var jo=Dc;Yt.KeywordCxt=jo;function Yd(e,t,r,n){let i=new jo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,mi.funcKeywordCode)(i,r):"macro"in r?(0,mi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,mi.funcKeywordCode)(i,r)}s(Yd,"keywordCode");var PP=/^\/(?:[^~]|~0|~1)*$/,$P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Wd(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!PP.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=w.default.rootData}else{let l=$P.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+l[1];if(i=l[2],i==="#"){if(f>=t)throw new Error(u("property/index",f));return n[t-f]}if(f>t)throw new Error(u("data",f));if(o=r[t-f],!i)return o}let a=o,c=i.split("/");for(let l of c)l&&(o=(0,O._)`${o}${(0,O.getProperty)((0,kt.unescapeJsonPointer)(l))}`,a=(0,O._)`${a} && ${o}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}s(Wd,"getData");Yt.getData=Wd});var Mo=h(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var Vc=class Vc extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(Vc,"ValidationError");var Lc=Vc;Fc.default=Lc});var gi=h(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var Bc=fi(),zc=class zc extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Bc.resolveUrl)(t,r,n),this.missingSchema=(0,Bc.normalizeId)((0,Bc.getFullPath)(t,this.missingRef))}};s(zc,"MissingRefError");var Hc=zc;Uc.default=Hc});var yi=h(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.resolveSchema=Le.getCompilingSchema=Le.resolveRef=Le.compileSchema=Le.SchemaEnv=void 0;var Ye=A(),OP=Mo(),Ar=Me(),We=fi(),Qd=R(),EP=hi(),Kc=class Kc{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,We.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(Kc,"SchemaEnv");var hn=Kc;Le.SchemaEnv=hn;function Zc(e){let t=Jd.call(this,e);if(t)return t;let r=(0,We.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ye.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:OP.default,code:(0,Ye._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ar.default.data,parentData:Ar.default.parentData,parentDataProperty:Ar.default.parentDataProperty,dataNames:[Ar.default.data],dataPathArr:[Ye.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ye.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ye.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ye._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,EP.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Ar.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Ar.default.self}`,`${Ar.default.scope}`,f)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof Ye.Name?void 0:g,items:y instanceof Ye.Name?void 0:y,dynamicProps:g instanceof Ye.Name,dynamicItems:y instanceof Ye.Name},m.source&&(m.source.evaluated=(0,Ye.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}s(Zc,"compileSchema");Le.compileSchema=Zc;function xP(e,t,r){var n;r=(0,We.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=IP.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 hn({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=wP.call(this,o)}s(xP,"resolveRef");Le.resolveRef=xP;function wP(e){return(0,We.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Zc.call(this,e)}s(wP,"inlineOrCompile");function Jd(e){for(let t of this._compilations)if(AP(t,e))return t}s(Jd,"getCompilingSchema");Le.getCompilingSchema=Jd;function AP(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(AP,"sameSchemaEnv");function IP(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Do.call(this,e,t)}s(IP,"resolve");function Do(e,t){let r=this.opts.uriResolver.parse(t),n=(0,We._getFullPath)(this.opts.uriResolver,r),i=(0,We.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Gc.call(this,r,e);let o=(0,We.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=Do.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Gc.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Zc.call(this,a),o===(0,We.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,We.resolveUrl)(this.opts.uriResolver,i,l)),new hn({schema:c,schemaId:u,root:e,baseId:i})}return Gc.call(this,r,a)}}s(Do,"resolveSchema");Le.resolveSchema=Do;var TP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Gc(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,Qd.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!TP.has(c)&&l&&(t=(0,We.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Qd.schemaHasRulesButRef)(r,this.RULES)){let c=(0,We.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Do.call(this,n,c)}let{schemaId:a}=this.opts;if(o=o||new hn({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}s(Gc,"getJsonPointer")});var Xd=h((Kq,kP)=>{kP.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 tm=h((Yq,em)=>{"use strict";var NP={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};em.exports={HEX:NP}});var um=h((Wq,cm)=>{"use strict";var{HEX:RP}=tm();function om(e){if(am(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:qP(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}s(om,"normalizeIPv4");function Yc(e,t=!1){let r="",n=!0;for(let i of e){if(RP[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}s(Yc,"stringArrayToHexStripped");function CP(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 l=Yc(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}s(u,"consume");for(let l=0;l<e.length;l++){let f=e[l];if(!(f==="["||f==="]"))if(f===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(f==="%"){if(!u())break;o=!0}else{i.push(f);continue}}return i.length&&(o?r.zone=i.join(""):c?n.push(i.join("")):n.push(Yc(i))),r.address=n.join(""),r}s(CP,"getIPV6");function sm(e,t={}){if(am(e,":")<2)return{host:e,isIPV6:!1};let r=CP(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(sm,"normalizeIPv6");function qP(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(qP,"stripLeadingZeros");function am(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}s(am,"findToken");var rm=/^\.\.?\//u,nm=/^\/\.(?:\/|$)/u,im=/^\/\.\.(?:\/|$)/u,jP=/^\/?(?:.|\n)*?(?=\/|$)/u;function MP(e){let t=[];for(;e.length;)if(e.match(rm))e=e.replace(rm,"");else if(e.match(nm))e=e.replace(nm,"/");else if(e.match(im))e=e.replace(im,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(jP);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(MP,"removeDotSegments");function DP(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(DP,"normalizeComponentEncoding");function LP(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=om(n);if(i.isIPV4)n=i.host;else{let o=sm(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(LP,"recomposeAuthority");cm.exports={recomposeAuthority:LP,normalizeComponentEncoding:DP,removeDotSegments:MP,normalizeIPv4:om,normalizeIPv6:sm,stringArrayToHexStripped:Yc}});var hm=h((Jq,mm)=>{"use strict";var FP=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,VP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function lm(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}s(lm,"isSecure");function pm(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(pm,"httpParse");function fm(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(fm,"httpSerialize");function BP(e){return e.secure=lm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(BP,"wsParse");function HP(e){if((e.port===(lm(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(HP,"wsSerialize");function UP(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(VP);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=Wc[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(UP,"urnParse");function zP(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Wc[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(zP,"urnSerialize");function GP(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!FP.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}s(GP,"urnuuidParse");function ZP(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(ZP,"urnuuidSerialize");var dm={scheme:"http",domainHost:!0,parse:pm,serialize:fm},KP={scheme:"https",domainHost:dm.domainHost,parse:pm,serialize:fm},Lo={scheme:"ws",domainHost:!0,parse:BP,serialize:HP},YP={scheme:"wss",domainHost:Lo.domainHost,parse:Lo.parse,serialize:Lo.serialize},WP={scheme:"urn",parse:UP,serialize:zP,skipNormalize:!0},QP={scheme:"urn:uuid",parse:GP,serialize:ZP,skipNormalize:!0},Wc={http:dm,https:KP,ws:Lo,wss:YP,urn:WP,"urn:uuid":QP};mm.exports=Wc});var ym=h((ej,Vo)=>{"use strict";var{normalizeIPv6:JP,normalizeIPv4:XP,removeDotSegments:vi,recomposeAuthority:e$,normalizeComponentEncoding:Fo}=um(),Qc=hm();function t$(e,t){return typeof e=="string"?e=ft(Nt(e,t),t):typeof e=="object"&&(e=Nt(ft(e,t),t)),e}s(t$,"normalize");function r$(e,t,r){let n=Object.assign({scheme:"null"},r),i=gm(Nt(e,n),Nt(t,n),n,!0);return ft(i,{...n,skipEscape:!0})}s(r$,"resolve");function gm(e,t,r,n){let i={};return n||(e=Nt(ft(e,r),r),t=Nt(ft(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=vi(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=vi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=vi(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=vi(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(gm,"resolveComponents");function n$(e,t,r){return typeof e=="string"?(e=unescape(e),e=ft(Fo(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=ft(Fo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=ft(Fo(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=ft(Fo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}s(n$,"equal");function ft(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=Qc[(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=e$(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=vi(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(ft,"serialize");var i$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function o$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||i$[t])return!0;return!1}s(o$,"nonSimpleDomain");var s$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\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(s$);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=XP(n.host);if(u.isIPV4===!1){let l=JP(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),o=l.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=Qc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&o$(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 Jc={SCHEMES:Qc,normalize:t$,resolve:r$,resolveComponents:gm,equal:n$,serialize:ft,parse:Nt};Vo.exports=Jc;Vo.exports.default=Jc;Vo.exports.fastUri=Jc});var _m=h(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var vm=ym();vm.code='require("ajv/dist/runtime/uri").default';Xc.default=vm});var yn=h(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.CodeGen=se.Name=se.nil=se.stringify=se.str=se._=se.KeywordCxt=void 0;var a$=hi();Object.defineProperty(se,"KeywordCxt",{enumerable:!0,get:s(function(){return a$.KeywordCxt},"get")});var gn=A();Object.defineProperty(se,"_",{enumerable:!0,get:s(function(){return gn._},"get")});Object.defineProperty(se,"str",{enumerable:!0,get:s(function(){return gn.str},"get")});Object.defineProperty(se,"stringify",{enumerable:!0,get:s(function(){return gn.stringify},"get")});Object.defineProperty(se,"nil",{enumerable:!0,get:s(function(){return gn.nil},"get")});Object.defineProperty(se,"Name",{enumerable:!0,get:s(function(){return gn.Name},"get")});Object.defineProperty(se,"CodeGen",{enumerable:!0,get:s(function(){return gn.CodeGen},"get")});var c$=Mo(),Om=gi(),u$=Ec(),_i=yi(),l$=A(),bi=fi(),Bo=pi(),tu=R(),bm=Xd(),p$=_m(),Em=s((e,t)=>new RegExp(e,t),"defaultRegExp");Em.code="new RegExp";var f$=["removeAdditional","useDefaults","coerceTypes"],d$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m$={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."},h$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Sm=200;function g$(e){var t,r,n,i,o,a,c,u,l,f,p,d,m,g,y,v,_,b,P,E,S,j,N,Q,ie;let le=e.strict,qe=(t=e.code)===null||t===void 0?void 0:t.optimize,Ee=qe===!0||qe===void 0?1:qe||0,Ht=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Em,tn=(i=e.uriResolver)!==null&&i!==void 0?i:p$.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:le)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:le)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:le)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:le)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:le)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:Ee,regExp:Ht}:{optimize:Ee,regExp:Ht},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Sm,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Sm,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(P=e.inlineRefs)!==null&&P!==void 0?P:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(j=e.validateSchema)!==null&&j!==void 0?j:!0,validateFormats:(N=e.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(Q=e.unicodeRegExp)!==null&&Q!==void 0?Q:!0,int32range:(ie=e.int32range)!==null&&ie!==void 0?ie:!0,uriResolver:tn}}s(g$,"requiredOptions");var ru=class ru{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...g$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new l$.ValueScope({scope:{},prefixes:d$,es5:r,lines:n}),this.logger=P$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,u$.getRules)(),Pm.call(this,m$,t,"NOT SUPPORTED"),Pm.call(this,h$,t,"DEPRECATED","warn"),this._metaOpts=b$.call(this),t.formats&&v$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&_$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),y$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=bm;n==="id"&&(i={...bm},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(f,p){await o.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function o(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof Om.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function u(f){let p=await l.call(this,f);this.refs[f]||await o.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,r)}async function l(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}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,bi.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=$m.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new _i.SchemaEnv({schema:{},schemaId:n});if(r=_i.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=$m.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,bi.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(O$.call(this,n,r),!r)return(0,tu.eachItem)(n,o=>eu.call(this,o)),this;x$.call(this,r);let i={...r,type:(0,Bo.getJSONTypes)(r.type),schemaType:(0,Bo.getJSONTypes)(r.schemaType)};return(0,tu.eachItem)(n,i.type.length===0?o=>eu.call(this,o,i):o=>i.type.forEach(a=>eu.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:l}=u.definition,f=a[c];l&&f&&(a[c]=xm(f))}}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,bi.normalizeId)(a||n);let l=bi.getSchemaRefs.call(this,t,n);return u=new _i.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),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):_i.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{_i.compileSchema.call(this,t)}finally{this.opts=r}}};s(ru,"Ajv");var Si=ru;Si.ValidationError=c$.default;Si.MissingRefError=Om.default;se.default=Si;function Pm(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(Pm,"checkOptions");function $m(e){return e=(0,bi.normalizeId)(e),this.schemas[e]||this.refs[e]}s($m,"getSchEnv");function y$(){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(y$,"addInitialSchemas");function v$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(v$,"addInitialFormats");function _$(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(_$,"addInitialKeywords");function b$(){let e={...this.opts};for(let t of f$)delete e[t];return e}s(b$,"getMetaSchemaOptions");var S$={log(){},warn(){},error(){}};function P$(e){if(e===!1)return S$;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(P$,"getLogger");var $$=/^[a-z_$][a-z0-9_$:-]*$/i;function O$(e,t){let{RULES:r}=this;if((0,tu.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!$$.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(O$,"checkKeyword");function eu(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,Bo.getJSONTypes)(t.type),schemaType:(0,Bo.getJSONTypes)(t.schemaType)}};t.before?E$.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(eu,"addRule");function E$(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(E$,"addBeforeRule");function x$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=xm(t)),e.validateSchema=this.compile(t,!0))}s(x$,"keywordMetaschema");var w$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function xm(e){return{anyOf:[e,w$]}}s(xm,"schemaOrData")});var Pi=h(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.callRef=Ir.getValidate=void 0;var A$=gi(),wm=De(),Ie=A(),vn=Me(),Am=yi(),Ho=R(),I$={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:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=Am.resolveRef.call(u,l,i,r);if(f===void 0)throw new A$.default(n.opts.uriResolver,i,r);if(f instanceof Am.SchemaEnv)return d(f);return m(f);function p(){if(o===l)return Uo(e,a,o,o.$async);let g=t.scopeValue("root",{ref:l});return Uo(e,(0,Ie._)`${g}.validate`,l,l.$async)}function d(g){let y=Im(e,g);Uo(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.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 Im(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ie._)`${r.scopeValue("wrapper",{ref:t})}.validate`}s(Im,"getValidate");Ir.getValidate=Im;function Uo(e,t,r,n){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:u}=o,l=u.passContext?vn.default.this:Ie.nil;n?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ie._)`await ${(0,wm.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,Ie._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}s(f,"callAsyncRef");function p(){e.result((0,wm.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}s(p,"callSyncRef");function d(g){let y=(0,Ie._)`${g}.errors`;i.assign(vn.default.vErrors,(0,Ie._)`${vn.default.vErrors} === null ? ${y} : ${vn.default.vErrors}.concat(${y})`),i.assign(vn.default.errors,(0,Ie._)`${vn.default.vErrors}.length`)}s(d,"addErrorsFrom");function m(g){var y;if(!o.opts.unevaluated)return;let v=(y=r==null?void 0:r.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Ho.mergeEvaluated.props(i,v.props,o.props));else{let _=i.var("props",(0,Ie._)`${g}.evaluated.props`);o.props=Ho.mergeEvaluated.props(i,_,o.props,Ie.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Ho.mergeEvaluated.items(i,v.items,o.items));else{let _=i.var("items",(0,Ie._)`${g}.evaluated.items`);o.items=Ho.mergeEvaluated.items(i,_,o.items,Ie.Name)}}s(m,"addEvaluatedFrom")}s(Uo,"callRef");Ir.callRef=Uo;Ir.default=I$});var Tm=h(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var T$=Pi(),k$=["$schema","id","$defs",{keyword:"$comment"},"definitions",T$.default];nu.default=k$});var km=h(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var iu=yn(),N$=A(),Wt=N$.operators,ou={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}]}},R$={message:s(e=>iu.str`must be ${su(e).okStr} ${e.schemaCode}`,"message"),params:s(e=>iu._`{comparison: ${su(e).okStr}, limit: ${e.schemaCode}}`,"params")},C$={keyword:Object.keys(ou),type:"number",schemaType:"number",$data:!0,error:R$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(iu._`${t} ${su(e).fail} ${r} || isNaN(${t})`)}};function su(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ou[r].exclusive]?1:0;return ou[r].ops[n]}s(su,"kwdOp");au.default=C$});var Rm=h(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var Nm={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},q$={keyword:Object.keys(Nm),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Nm[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};cu.default=q$});var lu=h(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var $i=A(),j$={message:s(({schemaCode:e})=>(0,$i.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,$i._)`{multipleOf: ${e}}`,"params")},M$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:j$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,$i._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,$i._)`${a} !== parseInt(${a})`;e.fail$data((0,$i._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};uu.default=M$});var qm=h(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});function Cm(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(Cm,"ucs2length");pu.default=Cm;Cm.code='require("ajv/dist/runtime/ucs2length").default'});var du=h(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var Tr=A(),D$=R(),L$=qm(),F$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Tr.str)`must NOT have ${r} than ${t} characters`},params:s(({schemaCode:e})=>(0,Tr._)`{limit: ${e}}`,"params")},V$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:F$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Tr.operators.GT:Tr.operators.LT,a=i.opts.unicode===!1?(0,Tr._)`${r}.length`:(0,Tr._)`${(0,D$.useFunc)(e.gen,L$.default)}(${r})`;e.fail$data((0,Tr._)`${a} ${o} ${n}`)}};fu.default=V$});var hu=h(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var B$=De(),zo=A(),H$={message:s(({schemaCode:e})=>(0,zo.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,zo._)`{pattern: ${e}}`,"params")},U$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:H$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",c=r?(0,zo._)`(new RegExp(${i}, ${a}))`:(0,B$.usePattern)(e,n);e.fail$data((0,zo._)`!${c}.test(${t})`)}};mu.default=U$});var yu=h(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var Oi=A(),z$={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} properties`},params:s(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},G$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:z$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Oi.operators.GT:Oi.operators.LT;e.fail$data((0,Oi._)`Object.keys(${r}).length ${i} ${n}`)}};gu.default=G$});var _u=h(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var Ei=De(),xi=A(),Z$=R(),K$={message:s(({params:{missingProperty:e}})=>(0,xi.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,xi._)`{missingProperty: ${e}}`,"params")},Y$={keyword:"required",type:"object",schemaType:"array",$data:!0,error:K$,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?l():f(),c.strictRequired){let m=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((m==null?void 0:m[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,Z$.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(u||o)e.block$data(xi.nil,p);else for(let m of r)(0,Ei.checkReportMissingProp)(e,m)}s(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||o){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,Ei.checkMissingProp)(e,r,m)),(0,Ei.reportMissingProp)(e,m),t.else()}s(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Ei.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}s(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,Ei.propertyInData)(t,i,m,c.ownProperties)),t.if((0,xi.not)(g),()=>{e.error(),t.break()})},xi.nil)}s(d,"loopUntilMissing")}};vu.default=Y$});var Su=h(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var wi=A(),W$={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,wi.str)`must NOT have ${r} than ${t} items`},params:s(({schemaCode:e})=>(0,wi._)`{limit: ${e}}`,"params")},Q$={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:W$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?wi.operators.GT:wi.operators.LT;e.fail$data((0,wi._)`${r}.length ${i} ${n}`)}};bu.default=Q$});var Go=h(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var jm=Rc();jm.code='require("ajv/dist/runtime/equal").default';Pu.default=jm});var Eu=h(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});var $u=pi(),ae=A(),J$=R(),X$=Go(),eO={message:s(({params:{i:e,j:t}})=>(0,ae.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,ae._)`{i: ${e}, j: ${t}}`,"params")},tO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:eO,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"),l=o.items?(0,$u.getSchemaTypes)(o.items):[];e.block$data(u,f,(0,ae._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,ae._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,ae._)`${g} > 1`,()=>(p()?d:m)(g,y))}s(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}s(p,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,$u.checkDataTypes)(l,v,c.opts.strictNumbers,$u.DataType.Wrong),b=t.const("indices",(0,ae._)`{}`);t.for((0,ae._)`;${g}--;`,()=>{t.let(v,(0,ae._)`${r}[${g}]`),t.if(_,(0,ae._)`continue`),l.length>1&&t.if((0,ae._)`typeof ${v} == "string"`,(0,ae._)`${v} += "_"`),t.if((0,ae._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ae._)`${b}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,ae._)`${b}[${v}] = ${g}`)})}s(d,"loopN");function m(g,y){let v=(0,J$.useFunc)(t,X$.default),_=t.name("outer");t.label(_).for((0,ae._)`;${g}--;`,()=>t.for((0,ae._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ae._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(_)})))}s(m,"loopN2")}};Ou.default=tO});var Au=h(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var xu=A(),rO=R(),nO=Go(),iO={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,xu._)`{allowedValue: ${e}}`,"params")},oO={keyword:"const",$data:!0,error:iO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,xu._)`!${(0,rO.useFunc)(t,nO.default)}(${r}, ${i})`):e.fail((0,xu._)`${o} !== ${r}`)}};wu.default=oO});var Tu=h(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var Ai=A(),sO=R(),aO=Go(),cO={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Ai._)`{allowedValues: ${e}}`,"params")},uO={keyword:"enum",schemaType:"array",$data:!0,error:cO,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,l=s(()=>u??(u=(0,sO.useFunc)(t,aO.default)),"getEql"),f;if(c||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",o);f=(0,Ai.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",o,m=>t.if((0,Ai._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}s(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ai._)`${l()}(${r}, ${m}[${g}])`:(0,Ai._)`${r} === ${y}`}s(d,"equalCode")}};Iu.default=uO});var Mm=h(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var lO=km(),pO=Rm(),fO=lu(),dO=du(),mO=hu(),hO=yu(),gO=_u(),yO=Su(),vO=Eu(),_O=Au(),bO=Tu(),SO=[lO.default,pO.default,fO.default,dO.default,mO.default,hO.default,gO.default,yO.default,vO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_O.default,bO.default];ku.default=SO});var Ru=h(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.validateAdditionalItems=void 0;var kr=A(),Nu=R(),PO={message:s(({params:{len:e}})=>(0,kr.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,kr._)`{limit: ${e}}`,"params")},$O={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:PO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Nu.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Dm(e,n)}};function Dm(e,t){let{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;let c=r.const("len",(0,kr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,kr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Nu.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,kr._)`${c} <= ${t.length}`);r.if((0,kr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:o,dataProp:f,dataPropType:Nu.Type.Num},l),a.allErrors||r.if((0,kr.not)(l),()=>r.break())})}s(u,"validateItems")}s(Dm,"validateAdditionalItems");Ii.validateAdditionalItems=Dm;Ii.default=$O});var Cu=h(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.validateTuple=void 0;var Lm=A(),Zo=R(),OO=De(),EO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Fm(e,"additionalItems",t);r.items=!0,!(0,Zo.alwaysValidSchema)(r,t)&&e.ok((0,OO.validateArray)(e))}};function Fm(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Zo.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Lm._)`${o}.length`);r.forEach((p,d)=>{(0,Zo.alwaysValidSchema)(c,p)||(n.if((0,Lm._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function f(p){let{opts:d,errSchemaPath:m}=c,g=r.length,y=g===p.minItems&&(g===p.maxItems||p[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Zo.checkStrictMode)(c,v,d.strictTuples)}}s(f,"checkStrictTuple")}s(Fm,"validateTuple");Ti.validateTuple=Fm;Ti.default=EO});var Vm=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var xO=Cu(),wO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,xO.validateTuple)(e,"items"),"code")};qu.default=wO});var Hm=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Bm=A(),AO=R(),IO=De(),TO=Ru(),kO={message:s(({params:{len:e}})=>(0,Bm.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Bm._)`{limit: ${e}}`,"params")},NO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:kO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,AO.alwaysValidSchema)(n,t)&&(i?(0,TO.validateAdditionalItems)(e,i):e.ok((0,IO.validateArray)(e)))}};ju.default=NO});var Um=h(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Fe=A(),Ko=R(),RO={message:s(({params:{min:e,max:t}})=>t===void 0?(0,Fe.str)`must contain at least ${e} valid item(s)`:(0,Fe.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,Fe._)`{minContains: ${e}}`:(0,Fe._)`{minContains: ${e}, maxContains: ${t}}`,"params")},CO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:RO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,a,c,{minContains:u,maxContains:l}=n;o.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,Fe._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Ko.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Ko.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ko.alwaysValidSchema)(o,r)){let y=(0,Fe._)`${f} >= ${a}`;c!==void 0&&(y=(0,Fe._)`${y} && ${f} <= ${c}`),e.pass(y);return}o.items=!0;let p=t.name("valid");c===void 0&&a===1?m(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Fe._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);m(y,()=>t.if(y,()=>g(v)))}s(d,"validateItemsWithCount");function m(y,v){t.forRange("i",0,f,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Ko.Type.Num,compositeRule:!0},y),v()})}s(m,"validateItems");function g(y){t.code((0,Fe._)`${y}++`),c===void 0?t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Fe._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Fe._)`${y} >= ${a}`,()=>t.assign(p,!0)))}s(g,"checkLimits")}};Mu.default=CO});var Yo=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.validateSchemaDeps=dt.validatePropertyDeps=dt.error=void 0;var Du=A(),qO=R(),ki=De();dt.error={message:s(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Du.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Du._)`{property: ${e},
|
|
9
|
+
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,I._)`[${i}]`)}}o(u,"coerceSpecificType")}o(SP,"coerceData");function PP({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,I._)`${t} !== undefined`,()=>e.assign((0,I._)`${t}[${r}]`,n))}o(PP,"assignParentData");function Ac(e,t,r,n=fn.Correct){let i=n===fn.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===fn.Correct?s:(0,I.not)(s);function a(c=I.nil){return(0,I.and)((0,I._)`typeof ${t} == "number"`,c,r?(0,I._)`isFinite(${t})`:I.nil)}}o(Ac,"checkDataType");de.checkDataType=Ac;function Ic(e,t,r,n){if(e.length===1)return Ac(e[0],t,r,n);let i,s=(0,bd.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,Ac(a,t,r,n));return i}o(Ic,"checkDataTypes");de.checkDataTypes=Ic;var $P={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 Tc(e){let t=OP(e);(0,yP.reportError)(t,$P)}o(Tc,"reportTypeError");de.reportTypeError=Tc;function OP(e){let{gen:t,data:r,schema:n}=e,i=(0,bd.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}o(OP,"getTypeErrorContext")});var Od=h(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.assignDefaults=void 0;var dn=A(),EP=N();function xP(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)$d(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>$d(e,s,i.default))}o(xP,"assignDefaults");Ro.assignDefaults=xP;function $d(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let c=(0,dn._)`${s}${(0,dn.getProperty)(t)}`;if(i){(0,EP.checkStrictMode)(e,`default is ignored for: ${c}`);return}let u=(0,dn._)`${c} === undefined`;a.useDefaults==="empty"&&(u=(0,dn._)`${u} || ${c} === null || ${c} === ""`),n.if(u,(0,dn._)`${c} = ${(0,dn.stringify)(r)}`)}o($d,"assignDefault")});var Le=h(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 B=A(),kc=N(),Zt=De(),wP=N();function AP(e,t){let{gen:r,data:n,it:i}=e;r.if(Rc(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,B._)`${t}`},!0),e.error()})}o(AP,"checkReportMissingProp");L.checkReportMissingProp=AP;function IP({gen:e,data:t,it:{opts:r}},n,i){return(0,B.or)(...n.map(s=>(0,B.and)(Rc(e,t,s,r.ownProperties),(0,B._)`${i} = ${s}`)))}o(IP,"checkMissingProp");L.checkMissingProp=IP;function TP(e,t){e.setParams({missingProperty:t},!0),e.error()}o(TP,"reportMissingProp");L.reportMissingProp=TP;function Ed(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,B._)`Object.prototype.hasOwnProperty`})}o(Ed,"hasPropFunc");L.hasPropFunc=Ed;function Nc(e,t,r){return(0,B._)`${Ed(e)}.call(${t}, ${r})`}o(Nc,"isOwnProperty");L.isOwnProperty=Nc;function kP(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} !== undefined`;return n?(0,B._)`${i} && ${Nc(e,t,r)}`:i}o(kP,"propertyInData");L.propertyInData=kP;function Rc(e,t,r,n){let i=(0,B._)`${t}${(0,B.getProperty)(r)} === undefined`;return n?(0,B.or)(i,(0,B.not)(Nc(e,t,r))):i}o(Rc,"noPropertyInData");L.noPropertyInData=Rc;function xd(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}o(xd,"allSchemaProperties");L.allSchemaProperties=xd;function NP(e,t){return xd(t).filter(r=>!(0,kc.alwaysValidSchema)(e,t[r]))}o(NP,"schemaProperties");L.schemaProperties=NP;function RP({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},c,u,l){let f=l?(0,B._)`${e}, ${t}, ${n}${i}`:t,p=[[Zt.default.instancePath,(0,B.strConcat)(Zt.default.instancePath,s)],[Zt.default.parentData,a.parentData],[Zt.default.parentDataProperty,a.parentDataProperty],[Zt.default.rootData,Zt.default.rootData]];a.opts.dynamicRef&&p.push([Zt.default.dynamicAnchors,Zt.default.dynamicAnchors]);let d=(0,B._)`${f}, ${r.object(...p)}`;return u!==B.nil?(0,B._)`${c}.call(${u}, ${d})`:(0,B._)`${c}(${d})`}o(RP,"callValidateCode");L.callValidateCode=RP;var CP=(0,B._)`new RegExp`;function jP({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,B._)`${i.code==="new RegExp"?CP:(0,wP.useFunc)(e,i)}(${r}, ${n})`})}o(jP,"usePattern");L.usePattern=jP;function qP(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(s,!0),a(()=>t.break()),s;function a(c){let u=t.const("len",(0,B._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:kc.Type.Num},s),t.if((0,B.not)(s),c)})}o(a,"validateItems")}o(qP,"validateArray");L.validateArray=qP;function MP(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,kc.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let f=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,B._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,B.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}o(MP,"validateUnion");L.validateUnion=MP});var Id=h(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.validateKeywordUsage=ft.validSchemaType=ft.funcKeywordCode=ft.macroKeywordCode=void 0;var Se=A(),Ar=De(),DP=Le(),LP=li();function FP(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,c=t.macro.call(a.self,i,s,a),u=Ad(r,n,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let l=r.name("valid");e.subschema({schema:c,schemaPath:Se.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}o(FP,"macroKeywordCode");ft.macroKeywordCode=FP;function VP(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:c,it:u}=e;HP(u,t);let l=!c&&t.compile?t.compile.call(u.self,s,a,u):t.validate,f=Ad(n,i,l),p=n.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)y(),t.modifying&&wd(e),v(()=>e.error());else{let _=t.async?m():g();t.modifying&&wd(e),v(()=>BP(e,_))}}o(d,"validateKeyword");function m(){let _=n.let("ruleErrs",null);return n.try(()=>y((0,Se._)`await `),b=>n.assign(p,!1).if((0,Se._)`${b} instanceof ${u.ValidationError}`,()=>n.assign(_,(0,Se._)`${b}.errors`),()=>n.throw(b))),_}o(m,"validateAsync");function g(){let _=(0,Se._)`${f}.errors`;return n.assign(_,null),y(Se.nil),_}o(g,"validateSync");function y(_=t.async?(0,Se._)`await `:Se.nil){let b=u.opts.passContext?Ar.default.this:Ar.default.self,O=!("compile"in t&&!c||t.schema===!1);n.assign(p,(0,Se._)`${_}${(0,DP.callValidateCode)(e,f,b,O)}`,t.modifying)}o(y,"assignValid");function v(_){var b;n.if((0,Se.not)((b=t.valid)!==null&&b!==void 0?b:p),_)}o(v,"reportErrs")}o(VP,"funcKeywordCode");ft.funcKeywordCode=VP;function wd(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Se._)`${n.parentData}[${n.parentDataProperty}]`))}o(wd,"modifyData");function BP(e,t){let{gen:r}=e;r.if((0,Se._)`Array.isArray(${t})`,()=>{r.assign(Ar.default.vErrors,(0,Se._)`${Ar.default.vErrors} === null ? ${t} : ${Ar.default.vErrors}.concat(${t})`).assign(Ar.default.errors,(0,Se._)`${Ar.default.vErrors}.length`),(0,LP.extendErrors)(e)},()=>e.error())}o(BP,"addErrs");function HP({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}o(HP,"checkAsyncKeyword");function Ad(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,Se.stringify)(r)})}o(Ad,"useKeyword");function UP(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(UP,"validSchemaType");ft.validSchemaType=UP;function zP({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(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(zP,"validateKeywordUsage");ft.validateKeywordUsage=zP});var kd=h(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.extendSubschemaMode=Kt.extendSubschemaData=Kt.getSubschema=void 0;var dt=A(),Td=N();function GP(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 c=e.schema[t];return r===void 0?{schema:c,schemaPath:(0,dt._)`${e.schemaPath}${(0,dt.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[r],schemaPath:(0,dt._)`${e.schemaPath}${(0,dt.getProperty)(t)}${(0,dt.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Td.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(GP,"getSubschema");Kt.getSubschema=GP;function ZP(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:c}=t;if(r!==void 0){let{errorPath:l,dataPathArr:f,opts:p}=t,d=c.let("data",(0,dt._)`${t.data}${(0,dt.getProperty)(r)}`,!0);u(d),e.errorPath=(0,dt.str)`${l}${(0,Td.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,dt._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let l=i instanceof dt.Name?i:c.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(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(u,"dataContextProps")}o(ZP,"extendSubschemaData");Kt.extendSubschemaData=ZP;function KP(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(KP,"extendSubschemaMode");Kt.extendSubschemaMode=KP});var Cc=h((Vj,Nd)=>{"use strict";Nd.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 Cd=h((Hj,Rd)=>{"use strict";var Yt=Rd.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(){};Co(t,n,i,e,"",e)};Yt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Yt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Yt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Yt.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 Co(e,t,r,n,i,s,a,c,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,c,u,l);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in Yt.arrayKeywords)for(var d=0;d<p.length;d++)Co(e,t,r,p[d],i+"/"+f+"/"+d,s,i,f,n,d)}else if(f in Yt.propsKeywords){if(p&&typeof p=="object")for(var m in p)Co(e,t,r,p[m],i+"/"+f+"/"+YP(m),s,i,f,n,m)}else(f in Yt.keywords||e.allKeys&&!(f in Yt.skipKeywords))&&Co(e,t,r,p,i+"/"+f,s,i,f,n)}r(n,i,s,a,c,u,l)}}o(Co,"_traverse");function YP(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(YP,"escapeJsonPtr")});var fi=h(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getSchemaRefs=Ie.resolveUrl=Ie.normalizeId=Ie._getFullPath=Ie.getFullPath=Ie.inlineRef=void 0;var WP=N(),QP=Cc(),JP=Cd(),XP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function e1(e,t=!0){return typeof e=="boolean"?!0:t===!0?!jc(e):t?jd(e)<=t:!1}o(e1,"inlineRef");Ie.inlineRef=e1;var t1=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function jc(e){for(let t in e){if(t1.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(jc)||typeof r=="object"&&jc(r))return!0}return!1}o(jc,"hasRef");function jd(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!XP.has(r)&&(typeof e[r]=="object"&&(0,WP.eachItem)(e[r],n=>t+=jd(n)),t===1/0))return 1/0}return t}o(jd,"countKeys");function qd(e,t="",r){r!==!1&&(t=mn(t));let n=e.parse(t);return Md(e,n)}o(qd,"getFullPath");Ie.getFullPath=qd;function Md(e,t){return e.serialize(t).split("#")[0]+"#"}o(Md,"_getFullPath");Ie._getFullPath=Md;var r1=/#\/?$/;function mn(e){return e?e.replace(r1,""):""}o(mn,"normalizeId");Ie.normalizeId=mn;function n1(e,t,r){return r=mn(r),e.resolve(t,r)}o(n1,"resolveUrl");Ie.resolveUrl=n1;var i1=/^[a-z_][-a-z0-9._]*$/i;function o1(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=mn(e[r]||t),s={"":i},a=qd(n,i,!1),c={},u=new Set;return JP(e,{allKeys:!0},(p,d,m,g)=>{if(g===void 0)return;let y=a+d,v=s[g];typeof p[r]=="string"&&(v=_.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),s[d]=v;function _(O){let P=this.opts.uriResolver.resolve;if(O=mn(v?P(v,O):O),u.has(O))throw f(O);u.add(O);let S=this.refs[O];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?l(p,S.schema,O):O!==mn(y)&&(O[0]==="#"?(l(p,c[O],O),c[O]=p):this.refs[O]=y),O}o(_,"addRef");function b(O){if(typeof O=="string"){if(!i1.test(O))throw new Error(`invalid anchor "${O}"`);_.call(this,`#${O}`)}}o(b,"addAnchor")}),c;function l(p,d,m){if(d!==void 0&&!QP(p,d))throw f(m)}o(l,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}o(f,"ambiguos")}o(o1,"getSchemaRefs");Ie.getSchemaRefs=o1});var hi=h(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getData=Wt.KeywordCxt=Wt.validateFunctionCode=void 0;var Bd=yd(),Dd=pi(),Mc=wc(),jo=pi(),s1=Od(),mi=Id(),qc=kd(),E=A(),w=De(),a1=fi(),kt=N(),di=li();function c1(e){if(zd(e)&&(Gd(e),Ud(e))){p1(e);return}Hd(e,()=>(0,Bd.topBoolOrEmptySchema)(e))}o(c1,"validateFunctionCode");Wt.validateFunctionCode=c1;function Hd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,E._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{e.code((0,E._)`"use strict"; ${Ld(r,i)}`),l1(e,i),e.code(s)}):e.func(t,(0,E._)`${w.default.data}, ${u1(i)}`,n.$async,()=>e.code(Ld(r,i)).code(s))}o(Hd,"validateFunction");function u1(e){return(0,E._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${e.dynamicRef?(0,E._)`, ${w.default.dynamicAnchors}={}`:E.nil}}={}`}o(u1,"destructureValCxt");function l1(e,t){e.if(w.default.valCxt,()=>{e.var(w.default.instancePath,(0,E._)`${w.default.valCxt}.${w.default.instancePath}`),e.var(w.default.parentData,(0,E._)`${w.default.valCxt}.${w.default.parentData}`),e.var(w.default.parentDataProperty,(0,E._)`${w.default.valCxt}.${w.default.parentDataProperty}`),e.var(w.default.rootData,(0,E._)`${w.default.valCxt}.${w.default.rootData}`),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,E._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{e.var(w.default.instancePath,(0,E._)`""`),e.var(w.default.parentData,(0,E._)`undefined`),e.var(w.default.parentDataProperty,(0,E._)`undefined`),e.var(w.default.rootData,w.default.data),t.dynamicRef&&e.var(w.default.dynamicAnchors,(0,E._)`{}`)})}o(l1,"destructureValCxtES5");function p1(e){let{schema:t,opts:r,gen:n}=e;Hd(e,()=>{r.$comment&&t.$comment&&Kd(e),g1(e),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&f1(e),Zd(e),_1(e)})}o(p1,"topSchemaObjCode");function f1(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,E._)`${r}.evaluated`),t.if((0,E._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,E._)`${e.evaluated}.props`,(0,E._)`undefined`)),t.if((0,E._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,E._)`${e.evaluated}.items`,(0,E._)`undefined`))}o(f1,"resetEvaluated");function Ld(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,E._)`/*# sourceURL=${r} */`:E.nil}o(Ld,"funcSourceUrl");function d1(e,t){if(zd(e)&&(Gd(e),Ud(e))){m1(e,t);return}(0,Bd.boolOrEmptySchema)(e,t)}o(d1,"subschemaCode");function Ud({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(Ud,"schemaCxtHasRules");function zd(e){return typeof e.schema!="boolean"}o(zd,"isSchemaObj");function m1(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Kd(e),y1(e),v1(e);let s=n.const("_errs",w.default.errors);Zd(e,s),n.var(t,(0,E._)`${s} === ${w.default.errors}`)}o(m1,"subSchemaObjCode");function Gd(e){(0,kt.checkUnknownRules)(e),h1(e)}o(Gd,"checkKeywords");function Zd(e,t){if(e.opts.jtd)return Fd(e,[],!1,t);let r=(0,Dd.getSchemaTypes)(e.schema),n=(0,Dd.coerceAndCheckDataType)(e,r);Fd(e,r,!n,t)}o(Zd,"typeAndKeywords");function h1(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,kt.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(h1,"checkRefsAndKeywords");function g1(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,kt.checkStrictMode)(e,"default is ignored in the schema root")}o(g1,"checkNoDefault");function y1(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,a1.resolveUrl)(e.opts.uriResolver,e.baseId,t))}o(y1,"updateContext");function v1(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}o(v1,"checkAsyncSchema");function Kd({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,E._)`${w.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,E.str)`${n}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,E._)`${w.default.self}.opts.$comment(${s}, ${a}, ${c}.schema)`)}}o(Kd,"commentKeyword");function _1(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,E._)`${w.default.errors} === 0`,()=>t.return(w.default.data),()=>t.throw((0,E._)`new ${i}(${w.default.vErrors})`)):(t.assign((0,E._)`${n}.errors`,w.default.vErrors),s.unevaluated&&b1(e),t.return((0,E._)`${w.default.errors} === 0`))}o(_1,"returnResults");function b1({gen:e,evaluated:t,props:r,items:n}){r instanceof E.Name&&e.assign((0,E._)`${t}.props`,r),n instanceof E.Name&&e.assign((0,E._)`${t}.items`,n)}o(b1,"assignEvaluated");function Fd(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:c,opts:u,self:l}=e,{RULES:f}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,kt.schemaHasRulesButRef)(s,f))){i.block(()=>Wd(e,"$ref",f.all.$ref.definition));return}u.jtd||S1(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,Mc.shouldUseGroup)(s,d)&&(d.type?(i.if((0,jo.checkDataType)(d.type,a,u.strictNumbers)),Vd(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,jo.reportTypeError)(e)),i.endIf()):Vd(e,d),c||i.if((0,E._)`${w.default.errors} === ${n||0}`))}o(p,"groupKeywords")}o(Fd,"schemaKeywords");function Vd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,s1.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,Mc.shouldUseRule)(n,s)&&Wd(e,s.keyword,s.definition,t.type)})}o(Vd,"iterateKeywords");function S1(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(P1(e,t),e.opts.allowUnionTypes||$1(e,t),O1(e,e.dataTypes))}o(S1,"checkStrictTypes");function P1(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Yd(e.dataTypes,r)||Dc(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),x1(e,t)}}o(P1,"checkContextTypes");function $1(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Dc(e,"use allowUnionTypes to allow union type keyword")}o($1,"checkMultipleTypes");function O1(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Mc.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>E1(t,a))&&Dc(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}o(O1,"checkKeywordTypes");function E1(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}o(E1,"hasApplicableType");function Yd(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}o(Yd,"includesType");function x1(e,t){let r=[];for(let n of e.dataTypes)Yd(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}o(x1,"narrowSchemaTypes");function Dc(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,kt.checkStrictMode)(e,t,e.opts.strictTypes)}o(Dc,"strictTypesError");var Lc=class Lc{constructor(t,r,n){if((0,mi.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,kt.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",Qd(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,mi.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,E.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,E.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,E._)`${r} !== undefined && (${(0,E.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?di.reportExtraError:di.reportError)(this,this.def.error,r)}$dataError(){(0,di.reportError)(this,this.def.$dataError||di.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,di.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=E.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=E.nil,r=E.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,E.or)((0,E._)`${i} === undefined`,r)),t!==E.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==E.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,E.or)(a(),c());function a(){if(n.length){if(!(r instanceof E.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,E._)`${(0,jo.checkDataTypes)(u,r,s.opts.strictNumbers,jo.DataType.Wrong)}`}return E.nil}function c(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,E._)`!${u}(${r})`}return E.nil}}subschema(t,r){let n=(0,qc.getSubschema)(this.it,t);(0,qc.extendSubschemaData)(n,this.it,t),(0,qc.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return d1(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=kt.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=kt.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,E.Name)),!0}};o(Lc,"KeywordCxt");var qo=Lc;Wt.KeywordCxt=qo;function Wd(e,t,r,n){let i=new qo(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,mi.funcKeywordCode)(i,r):"macro"in r?(0,mi.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,mi.funcKeywordCode)(i,r)}o(Wd,"keywordCode");var w1=/^\/(?:[^~]|~0|~1)*$/,A1=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Qd(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return w.default.rootData;if(e[0]==="/"){if(!w1.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=w.default.rootData}else{let l=A1.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+l[1];if(i=l[2],i==="#"){if(f>=t)throw new Error(u("property/index",f));return n[t-f]}if(f>t)throw new Error(u("data",f));if(s=r[t-f],!i)return s}let a=s,c=i.split("/");for(let l of c)l&&(s=(0,E._)`${s}${(0,E.getProperty)((0,kt.unescapeJsonPointer)(l))}`,a=(0,E._)`${a} && ${s}`);return a;function u(l,f){return`Cannot access ${l} ${f} levels up, current level is ${t}`}}o(Qd,"getData");Wt.getData=Qd});var Mo=h(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var Bc=class Bc extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};o(Bc,"ValidationError");var Fc=Bc;Vc.default=Fc});var gi=h(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var Hc=fi(),Gc=class Gc extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Hc.resolveUrl)(t,r,n),this.missingSchema=(0,Hc.normalizeId)((0,Hc.getFullPath)(t,this.missingRef))}};o(Gc,"MissingRefError");var Uc=Gc;zc.default=Uc});var yi=h(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.resolveSchema=Fe.getCompilingSchema=Fe.resolveRef=Fe.compileSchema=Fe.SchemaEnv=void 0;var Qe=A(),I1=Mo(),Ir=De(),Je=fi(),Jd=N(),T1=hi(),Yc=class Yc{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,Je.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(Yc,"SchemaEnv");var hn=Yc;Fe.SchemaEnv=hn;function Kc(e){let t=Xd.call(this,e);if(t)return t;let r=(0,Je.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Qe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),c;e.$async&&(c=a.scopeValue("Error",{ref:I1.default,code:(0,Qe._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Ir.default.data,parentData:Ir.default.parentData,parentDataProperty:Ir.default.parentDataProperty,dataNames:[Ir.default.data],dataPathArr:[Qe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Qe.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Qe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Qe._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,T1.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(Ir.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let m=new Function(`${Ir.default.self}`,`${Ir.default.scope}`,f)(this,this.scope.get());if(this.scope.value(u,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:u,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof Qe.Name?void 0:g,items:y instanceof Qe.Name?void 0:y,dynamicProps:g instanceof Qe.Name,dynamicItems:y instanceof Qe.Name},m.source&&(m.source.evaluated=(0,Qe.stringify)(m.evaluated))}return e.validate=m,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}o(Kc,"compileSchema");Fe.compileSchema=Kc;function k1(e,t,r){var n;r=(0,Je.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=C1.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:c}=this.opts;a&&(s=new hn({schema:a,schemaId:c,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=N1.call(this,s)}o(k1,"resolveRef");Fe.resolveRef=k1;function N1(e){return(0,Je.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Kc.call(this,e)}o(N1,"inlineOrCompile");function Xd(e){for(let t of this._compilations)if(R1(t,e))return t}o(Xd,"getCompilingSchema");Fe.getCompilingSchema=Xd;function R1(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}o(R1,"sameSchemaEnv");function C1(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Do.call(this,e,t)}o(C1,"resolve");function Do(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Je._getFullPath)(this.opts.uriResolver,r),i=(0,Je.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Zc.call(this,r,e);let s=(0,Je.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let c=Do.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:Zc.call(this,r,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Kc.call(this,a),s===(0,Je.normalizeId)(t)){let{schema:c}=a,{schemaId:u}=this.opts,l=c[u];return l&&(i=(0,Je.resolveUrl)(this.opts.uriResolver,i,l)),new hn({schema:c,schemaId:u,root:e,baseId:i})}return Zc.call(this,r,a)}}o(Do,"resolveSchema");Fe.resolveSchema=Do;var j1=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Zc(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,Jd.unescapeFragment)(c)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!j1.has(c)&&l&&(t=(0,Je.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Jd.schemaHasRulesButRef)(r,this.RULES)){let c=(0,Je.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Do.call(this,n,c)}let{schemaId:a}=this.opts;if(s=s||new hn({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}o(Zc,"getJsonPointer")});var em=h((tq,q1)=>{q1.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 rm=h((rq,tm)=>{"use strict";var M1={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};tm.exports={HEX:M1}});var lm=h((nq,um)=>{"use strict";var{HEX:D1}=rm();function sm(e){if(cm(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:F1(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}o(sm,"normalizeIPv4");function Wc(e,t=!1){let r="",n=!0;for(let i of e){if(D1[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}o(Wc,"stringArrayToHexStripped");function L1(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,c=!1;function u(){if(i.length){if(s===!1){let l=Wc(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}o(u,"consume");for(let l=0;l<e.length;l++){let f=e[l];if(!(f==="["||f==="]"))if(f===":"){if(a===!0&&(c=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(f==="%"){if(!u())break;s=!0}else{i.push(f);continue}}return i.length&&(s?r.zone=i.join(""):c?n.push(i.join("")):n.push(Wc(i))),r.address=n.join(""),r}o(L1,"getIPV6");function am(e,t={}){if(cm(e,":")<2)return{host:e,isIPV6:!1};let r=L1(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(am,"normalizeIPv6");function F1(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(F1,"stripLeadingZeros");function cm(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}o(cm,"findToken");var nm=/^\.\.?\//u,im=/^\/\.(?:\/|$)/u,om=/^\/\.\.(?:\/|$)/u,V1=/^\/?(?:.|\n)*?(?=\/|$)/u;function B1(e){let t=[];for(;e.length;)if(e.match(nm))e=e.replace(nm,"");else if(e.match(im))e=e.replace(im,"/");else if(e.match(om))e=e.replace(om,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(V1);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(B1,"removeDotSegments");function H1(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(H1,"normalizeComponentEncoding");function U1(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=sm(n);if(i.isIPV4)n=i.host;else{let s=am(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(U1,"recomposeAuthority");um.exports={recomposeAuthority:U1,normalizeComponentEncoding:H1,removeDotSegments:B1,normalizeIPv4:sm,normalizeIPv6:am,stringArrayToHexStripped:Wc}});var gm=h((oq,hm)=>{"use strict";var z1=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,G1=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function pm(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}o(pm,"isSecure");function fm(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}o(fm,"httpParse");function dm(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(dm,"httpSerialize");function Z1(e){return e.secure=pm(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}o(Z1,"wsParse");function K1(e){if((e.port===(pm(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(K1,"wsSerialize");function Y1(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(G1);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=Qc[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}o(Y1,"urnParse");function W1(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=Qc[i];s&&(e=s.serialize(e,t));let a=e,c=e.nss;return a.path=`${n||t.nid}:${c}`,t.skipEscape=!0,a}o(W1,"urnSerialize");function Q1(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!z1.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(Q1,"urnuuidParse");function J1(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}o(J1,"urnuuidSerialize");var mm={scheme:"http",domainHost:!0,parse:fm,serialize:dm},X1={scheme:"https",domainHost:mm.domainHost,parse:fm,serialize:dm},Lo={scheme:"ws",domainHost:!0,parse:Z1,serialize:K1},e$={scheme:"wss",domainHost:Lo.domainHost,parse:Lo.parse,serialize:Lo.serialize},t$={scheme:"urn",parse:Y1,serialize:W1,skipNormalize:!0},r$={scheme:"urn:uuid",parse:Q1,serialize:J1,skipNormalize:!0},Qc={http:mm,https:X1,ws:Lo,wss:e$,urn:t$,"urn:uuid":r$};hm.exports=Qc});var vm=h((aq,Vo)=>{"use strict";var{normalizeIPv6:n$,normalizeIPv4:i$,removeDotSegments:vi,recomposeAuthority:o$,normalizeComponentEncoding:Fo}=lm(),Jc=gm();function s$(e,t){return typeof e=="string"?e=mt(Nt(e,t),t):typeof e=="object"&&(e=Nt(mt(e,t),t)),e}o(s$,"normalize");function a$(e,t,r){let n=Object.assign({scheme:"null"},r),i=ym(Nt(e,n),Nt(t,n),n,!0);return mt(i,{...n,skipEscape:!0})}o(a$,"resolve");function ym(e,t,r,n){let i={};return n||(e=Nt(mt(e,r),r),t=Nt(mt(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=vi(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=vi(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=vi(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=vi(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(ym,"resolveComponents");function c$(e,t,r){return typeof e=="string"?(e=unescape(e),e=mt(Fo(Nt(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=mt(Fo(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=mt(Fo(Nt(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=mt(Fo(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}o(c$,"equal");function mt(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=Jc[(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=o$(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&&(!s||!s.absolutePath)&&(c=vi(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("")}o(mt,"serialize");var u$=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function l$(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||u$[t])return!0;return!1}o(l$,"nonSimpleDomain");var p$=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\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(p$);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=i$(n.host);if(u.isIPV4===!1){let l=n$(u.host,{isIPV4:!1});n.host=l.host.toLowerCase(),s=l.isIPV6}else n.host=u.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 c=Jc[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&s===!1&&l$(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}o(Nt,"parse");var Xc={SCHEMES:Jc,normalize:s$,resolve:a$,resolveComponents:ym,equal:c$,serialize:mt,parse:Nt};Vo.exports=Xc;Vo.exports.default=Xc;Vo.exports.fastUri=Xc});var bm=h(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var _m=vm();_m.code='require("ajv/dist/runtime/uri").default';eu.default=_m});var yn=h(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 f$=hi();Object.defineProperty(ae,"KeywordCxt",{enumerable:!0,get:o(function(){return f$.KeywordCxt},"get")});var gn=A();Object.defineProperty(ae,"_",{enumerable:!0,get:o(function(){return gn._},"get")});Object.defineProperty(ae,"str",{enumerable:!0,get:o(function(){return gn.str},"get")});Object.defineProperty(ae,"stringify",{enumerable:!0,get:o(function(){return gn.stringify},"get")});Object.defineProperty(ae,"nil",{enumerable:!0,get:o(function(){return gn.nil},"get")});Object.defineProperty(ae,"Name",{enumerable:!0,get:o(function(){return gn.Name},"get")});Object.defineProperty(ae,"CodeGen",{enumerable:!0,get:o(function(){return gn.CodeGen},"get")});var d$=Mo(),Em=gi(),m$=xc(),_i=yi(),h$=A(),bi=fi(),Bo=pi(),ru=N(),Sm=em(),g$=bm(),xm=o((e,t)=>new RegExp(e,t),"defaultRegExp");xm.code="new RegExp";var y$=["removeAdditional","useDefaults","coerceTypes"],v$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_$={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Pm=200;function S$(e){var t,r,n,i,s,a,c,u,l,f,p,d,m,g,y,v,_,b,O,P,S,D,R,se,J;let G=e.strict,ve=(t=e.code)===null||t===void 0?void 0:t.optimize,_e=ve===!0||ve===void 0?1:ve||0,Ut=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:xm,tn=(i=e.uriResolver)!==null&&i!==void 0?i:g$.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:G)!==null&&a!==void 0?a:!0,strictNumbers:(u=(c=e.strictNumbers)!==null&&c!==void 0?c:G)!==null&&u!==void 0?u:!0,strictTypes:(f=(l=e.strictTypes)!==null&&l!==void 0?l:G)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:G)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=e.strictRequired)!==null&&m!==void 0?m:G)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:_e,regExp:Ut}:{optimize:_e,regExp:Ut},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:Pm,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:Pm,meta:(_=e.meta)!==null&&_!==void 0?_:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(O=e.inlineRefs)!==null&&O!==void 0?O:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(D=e.validateSchema)!==null&&D!==void 0?D:!0,validateFormats:(R=e.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(se=e.unicodeRegExp)!==null&&se!==void 0?se:!0,int32range:(J=e.int32range)!==null&&J!==void 0?J:!0,uriResolver:tn}}o(S$,"requiredOptions");var nu=class nu{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...S$(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new h$.ValueScope({scope:{},prefixes:v$,es5:r,lines:n}),this.logger=w$(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,m$.getRules)(),$m.call(this,_$,t,"NOT SUPPORTED"),$m.call(this,b$,t,"DEPRECATED","warn"),this._metaOpts=E$.call(this),t.formats&&$$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&O$.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),P$.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Sm;n==="id"&&(i={...Sm},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(f,p){await s.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function s(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof Em.default))throw p;return c.call(this,p),await u.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function u(f){let p=await l.call(this,f);this.refs[f]||await s.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,r)}async function l(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}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,bi.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=Om.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new _i.SchemaEnv({schema:{},schemaId:n});if(r=_i.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=Om.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,bi.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(I$.call(this,n,r),!r)return(0,ru.eachItem)(n,s=>tu.call(this,s)),this;k$.call(this,r);let i={...r,type:(0,Bo.getJSONTypes)(r.type),schemaType:(0,Bo.getJSONTypes)(r.schemaType)};return(0,ru.eachItem)(n,i.type.length===0?s=>tu.call(this,s,i):s=>i.type.forEach(a=>tu.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 c of s)a=a[c];for(let c in n){let u=n[c];if(typeof u!="object")continue;let{$data:l}=u.definition,f=a[c];l&&f&&(a[c]=wm(f))}}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: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,bi.normalizeId)(a||n);let l=bi.getSchemaRefs.call(this,t,n);return u=new _i.SchemaEnv({schema:t,schemaId:c,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!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):_i.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{_i.compileSchema.call(this,t)}finally{this.opts=r}}};o(nu,"Ajv");var Si=nu;Si.ValidationError=d$.default;Si.MissingRefError=Em.default;ae.default=Si;function $m(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($m,"checkOptions");function Om(e){return e=(0,bi.normalizeId)(e),this.schemas[e]||this.refs[e]}o(Om,"getSchEnv");function P$(){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(P$,"addInitialSchemas");function $$(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}o($$,"addInitialFormats");function O$(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(O$,"addInitialKeywords");function E$(){let e={...this.opts};for(let t of y$)delete e[t];return e}o(E$,"getMetaSchemaOptions");var x$={log(){},warn(){},error(){}};function w$(e){if(e===!1)return x$;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(w$,"getLogger");var A$=/^[a-z_$][a-z0-9_$:-]*$/i;function I$(e,t){let{RULES:r}=this;if((0,ru.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!A$.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(I$,"checkKeyword");function tu(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:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,Bo.getJSONTypes)(t.type),schemaType:(0,Bo.getJSONTypes)(t.schemaType)}};t.before?T$.call(this,a,c,t.before):a.rules.push(c),s.all[e]=c,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}o(tu,"addRule");function T$(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(T$,"addBeforeRule");function k$(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=wm(t)),e.validateSchema=this.compile(t,!0))}o(k$,"keywordMetaschema");var N$={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function wm(e){return{anyOf:[e,N$]}}o(wm,"schemaOrData")});var Pi=h(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.callRef=Tr.getValidate=void 0;var R$=gi(),Am=Le(),Te=A(),vn=De(),Im=yi(),Ho=N(),C$={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:c,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return p();let f=Im.resolveRef.call(u,l,i,r);if(f===void 0)throw new R$.default(n.opts.uriResolver,i,r);if(f instanceof Im.SchemaEnv)return d(f);return m(f);function p(){if(s===l)return Uo(e,a,s,s.$async);let g=t.scopeValue("root",{ref:l});return Uo(e,(0,Te._)`${g}.validate`,l,l.$async)}function d(g){let y=Tm(e,g);Uo(e,y,g,g.$async)}function m(g){let y=t.scopeValue("schema",c.code.source===!0?{ref:g,code:(0,Te.stringify)(g)}:{ref:g}),v=t.name("valid"),_=e.subschema({schema:g,dataTypes:[],schemaPath:Te.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function Tm(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Te._)`${r.scopeValue("wrapper",{ref:t})}.validate`}o(Tm,"getValidate");Tr.getValidate=Tm;function Uo(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:c,opts:u}=s,l=u.passContext?vn.default.this:Te.nil;n?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Te._)`await ${(0,Am.callValidateCode)(e,t,l)}`),m(t),a||i.assign(g,!0)},y=>{i.if((0,Te._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),d(y),a||i.assign(g,!1)}),e.ok(g)}o(f,"callAsyncRef");function p(){e.result((0,Am.callValidateCode)(e,t,l),()=>m(t),()=>d(t))}o(p,"callSyncRef");function d(g){let y=(0,Te._)`${g}.errors`;i.assign(vn.default.vErrors,(0,Te._)`${vn.default.vErrors} === null ? ${y} : ${vn.default.vErrors}.concat(${y})`),i.assign(vn.default.errors,(0,Te._)`${vn.default.vErrors}.length`)}o(d,"addErrorsFrom");function m(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=Ho.mergeEvaluated.props(i,v.props,s.props));else{let _=i.var("props",(0,Te._)`${g}.evaluated.props`);s.props=Ho.mergeEvaluated.props(i,_,s.props,Te.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=Ho.mergeEvaluated.items(i,v.items,s.items));else{let _=i.var("items",(0,Te._)`${g}.evaluated.items`);s.items=Ho.mergeEvaluated.items(i,_,s.items,Te.Name)}}o(m,"addEvaluatedFrom")}o(Uo,"callRef");Tr.callRef=Uo;Tr.default=C$});var km=h(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var j$=Pi(),q$=["$schema","id","$defs",{keyword:"$comment"},"definitions",j$.default];iu.default=q$});var Nm=h(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var ou=yn(),M$=A(),Qt=M$.operators,su={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Qt.LTE,fail:Qt.GT},{okStr:"<",ok:Qt.LT,fail:Qt.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Qt.GTE,fail:Qt.LT},{okStr:">",ok:Qt.GT,fail:Qt.LTE}]}},D$={message:o(e=>ou.str`must be ${au(e).okStr} ${e.schemaCode}`,"message"),params:o(e=>ou._`{comparison: ${au(e).okStr}, limit: ${e.schemaCode}}`,"params")},L$={keyword:Object.keys(su),type:"number",schemaType:"number",$data:!0,error:D$,code(e){let{data:t,schemaCode:r}=e;e.fail$data(ou._`${t} ${au(e).fail} ${r} || isNaN(${t})`)}};function au(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[su[r].exclusive]?1:0;return su[r].ops[n]}o(au,"kwdOp");cu.default=L$});var Cm=h(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var Rm={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},F$={keyword:Object.keys(Rm),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Rm[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};uu.default=F$});var pu=h(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var $i=A(),V$={message:o(({schemaCode:e})=>(0,$i.str)`must be multiple of ${e}`,"message"),params:o(({schemaCode:e})=>(0,$i._)`{multipleOf: ${e}}`,"params")},B$={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:V$,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),c=s?(0,$i._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,$i._)`${a} !== parseInt(${a})`;e.fail$data((0,$i._)`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};lu.default=B$});var qm=h(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});function jm(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(jm,"ucs2length");fu.default=jm;jm.code='require("ajv/dist/runtime/ucs2length").default'});var mu=h(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var kr=A(),H$=N(),U$=qm(),z$={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,kr.str)`must NOT have ${r} than ${t} characters`},params:o(({schemaCode:e})=>(0,kr._)`{limit: ${e}}`,"params")},G$={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:z$,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?kr.operators.GT:kr.operators.LT,a=i.opts.unicode===!1?(0,kr._)`${r}.length`:(0,kr._)`${(0,H$.useFunc)(e.gen,U$.default)}(${r})`;e.fail$data((0,kr._)`${a} ${s} ${n}`)}};du.default=G$});var gu=h(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});var Z$=Le(),zo=A(),K$={message:o(({schemaCode:e})=>(0,zo.str)`must match pattern "${e}"`,"message"),params:o(({schemaCode:e})=>(0,zo._)`{pattern: ${e}}`,"params")},Y$={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:K$,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",c=r?(0,zo._)`(new RegExp(${i}, ${a}))`:(0,Z$.usePattern)(e,n);e.fail$data((0,zo._)`!${c}.test(${t})`)}};hu.default=Y$});var vu=h(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});var Oi=A(),W$={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${t} properties`},params:o(({schemaCode:e})=>(0,Oi._)`{limit: ${e}}`,"params")},Q$={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:W$,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Oi.operators.GT:Oi.operators.LT;e.fail$data((0,Oi._)`Object.keys(${r}).length ${i} ${n}`)}};yu.default=Q$});var bu=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var Ei=Le(),xi=A(),J$=N(),X$={message:o(({params:{missingProperty:e}})=>(0,xi.str)`must have required property '${e}'`,"message"),params:o(({params:{missingProperty:e}})=>(0,xi._)`{missingProperty: ${e}}`,"params")},eO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:X$,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:c}=a;if(!s&&r.length===0)return;let u=r.length>=c.loopRequired;if(a.allErrors?l():f(),c.strictRequired){let m=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if((m==null?void 0:m[y])===void 0&&!g.has(y)){let v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,J$.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(xi.nil,p);else for(let m of r)(0,Ei.checkReportMissingProp)(e,m)}o(l,"allErrorsMode");function f(){let m=t.let("missing");if(u||s){let g=t.let("valid",!0);e.block$data(g,()=>d(m,g)),e.ok(g)}else t.if((0,Ei.checkMissingProp)(e,r,m)),(0,Ei.reportMissingProp)(e,m),t.else()}o(f,"exitOnErrorMode");function p(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Ei.noPropertyInData)(t,i,m,c.ownProperties),()=>e.error())})}o(p,"loopAllRequired");function d(m,g){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(g,(0,Ei.propertyInData)(t,i,m,c.ownProperties)),t.if((0,xi.not)(g),()=>{e.error(),t.break()})},xi.nil)}o(d,"loopUntilMissing")}};_u.default=eO});var Pu=h(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var wi=A(),tO={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,wi.str)`must NOT have ${r} than ${t} items`},params:o(({schemaCode:e})=>(0,wi._)`{limit: ${e}}`,"params")},rO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tO,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?wi.operators.GT:wi.operators.LT;e.fail$data((0,wi._)`${r}.length ${i} ${n}`)}};Su.default=rO});var Go=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});var Mm=Cc();Mm.code='require("ajv/dist/runtime/equal").default';$u.default=Mm});var xu=h(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var Ou=pi(),ce=A(),nO=N(),iO=Go(),oO={message:o(({params:{i:e,j:t}})=>(0,ce.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:o(({params:{i:e,j:t}})=>(0,ce._)`{i: ${e}, j: ${t}}`,"params")},sO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:oO,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:c}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,Ou.getSchemaTypes)(s.items):[];e.block$data(u,f,(0,ce._)`${a} === false`),e.ok(u);function f(){let g=t.let("i",(0,ce._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(u,!0),t.if((0,ce._)`${g} > 1`,()=>(p()?d:m)(g,y))}o(f,"validateUniqueItems");function p(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}o(p,"canOptimize");function d(g,y){let v=t.name("item"),_=(0,Ou.checkDataTypes)(l,v,c.opts.strictNumbers,Ou.DataType.Wrong),b=t.const("indices",(0,ce._)`{}`);t.for((0,ce._)`;${g}--;`,()=>{t.let(v,(0,ce._)`${r}[${g}]`),t.if(_,(0,ce._)`continue`),l.length>1&&t.if((0,ce._)`typeof ${v} == "string"`,(0,ce._)`${v} += "_"`),t.if((0,ce._)`typeof ${b}[${v}] == "number"`,()=>{t.assign(y,(0,ce._)`${b}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,ce._)`${b}[${v}] = ${g}`)})}o(d,"loopN");function m(g,y){let v=(0,nO.useFunc)(t,iO.default),_=t.name("outer");t.label(_).for((0,ce._)`;${g}--;`,()=>t.for((0,ce._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ce._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(_)})))}o(m,"loopN2")}};Eu.default=sO});var Iu=h(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var wu=A(),aO=N(),cO=Go(),uO={message:"must be equal to constant",params:o(({schemaCode:e})=>(0,wu._)`{allowedValue: ${e}}`,"params")},lO={keyword:"const",$data:!0,error:uO,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,wu._)`!${(0,aO.useFunc)(t,cO.default)}(${r}, ${i})`):e.fail((0,wu._)`${s} !== ${r}`)}};Au.default=lO});var ku=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var Ai=A(),pO=N(),fO=Go(),dO={message:"must be equal to one of the allowed values",params:o(({schemaCode:e})=>(0,Ai._)`{allowedValues: ${e}}`,"params")},mO={keyword:"enum",schemaType:"array",$data:!0,error:dO,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 c=i.length>=a.opts.loopEnum,u,l=o(()=>u??(u=(0,pO.useFunc)(t,fO.default)),"getEql"),f;if(c||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=t.const("vSchema",s);f=(0,Ai.or)(...i.map((g,y)=>d(m,y)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",s,m=>t.if((0,Ai._)`${l()}(${r}, ${m})`,()=>t.assign(f,!0).break()))}o(p,"loopEnum");function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,Ai._)`${l()}(${r}, ${m}[${g}])`:(0,Ai._)`${r} === ${y}`}o(d,"equalCode")}};Tu.default=mO});var Dm=h(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});var hO=Nm(),gO=Cm(),yO=pu(),vO=mu(),_O=gu(),bO=vu(),SO=bu(),PO=Pu(),$O=xu(),OO=Iu(),EO=ku(),xO=[hO.default,gO.default,yO.default,vO.default,_O.default,bO.default,SO.default,PO.default,$O.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},OO.default,EO.default];Nu.default=xO});var Cu=h(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.validateAdditionalItems=void 0;var Nr=A(),Ru=N(),wO={message:o(({params:{len:e}})=>(0,Nr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Nr._)`{limit: ${e}}`,"params")},AO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:wO,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ru.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Lm(e,n)}};function Lm(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let c=r.const("len",(0,Nr._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Nr._)`${c} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ru.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Nr._)`${c} <= ${t.length}`);r.if((0,Nr.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,c,f=>{e.subschema({keyword:s,dataProp:f,dataPropType:Ru.Type.Num},l),a.allErrors||r.if((0,Nr.not)(l),()=>r.break())})}o(u,"validateItems")}o(Lm,"validateAdditionalItems");Ii.validateAdditionalItems=Lm;Ii.default=AO});var ju=h(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.validateTuple=void 0;var Fm=A(),Zo=N(),IO=Le(),TO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return Vm(e,"additionalItems",t);r.items=!0,!(0,Zo.alwaysValidSchema)(r,t)&&e.ok((0,IO.validateArray)(e))}};function Vm(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Zo.mergeEvaluated.items(n,r.length,c.items));let u=n.name("valid"),l=n.const("len",(0,Fm._)`${s}.length`);r.forEach((p,d)=>{(0,Zo.alwaysValidSchema)(c,p)||(n.if((0,Fm._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function f(p){let{opts:d,errSchemaPath:m}=c,g=r.length,y=g===p.minItems&&(g===p.maxItems||p[t]===!1);if(d.strictTuples&&!y){let v=`"${a}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Zo.checkStrictMode)(c,v,d.strictTuples)}}o(f,"checkStrictTuple")}o(Vm,"validateTuple");Ti.validateTuple=Vm;Ti.default=TO});var Bm=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var kO=ju(),NO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(e=>(0,kO.validateTuple)(e,"items"),"code")};qu.default=NO});var Um=h(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Hm=A(),RO=N(),CO=Le(),jO=Cu(),qO={message:o(({params:{len:e}})=>(0,Hm.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Hm._)`{limit: ${e}}`,"params")},MO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:qO,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,RO.alwaysValidSchema)(n,t)&&(i?(0,jO.validateAdditionalItems)(e,i):e.ok((0,CO.validateArray)(e)))}};Mu.default=MO});var zm=h(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var Ve=A(),Ko=N(),DO={message:o(({params:{min:e,max:t}})=>t===void 0?(0,Ve.str)`must contain at least ${e} valid item(s)`:(0,Ve.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,Ve._)`{minContains: ${e}}`:(0,Ve._)`{minContains: ${e}, maxContains: ${t}}`,"params")},LO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:DO,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,c,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,c=l):a=1;let f=t.const("len",(0,Ve._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,Ko.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,Ko.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ko.alwaysValidSchema)(s,r)){let y=(0,Ve._)`${f} >= ${a}`;c!==void 0&&(y=(0,Ve._)`${y} && ${f} <= ${c}`),e.pass(y);return}s.items=!0;let p=t.name("valid");c===void 0&&a===1?m(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,Ve._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let y=t.name("_valid"),v=t.let("count",0);m(y,()=>t.if(y,()=>g(v)))}o(d,"validateItemsWithCount");function m(y,v){t.forRange("i",0,f,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Ko.Type.Num,compositeRule:!0},y),v()})}o(m,"validateItems");function g(y){t.code((0,Ve._)`${y}++`),c===void 0?t.if((0,Ve._)`${y} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Ve._)`${y} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Ve._)`${y} >= ${a}`,()=>t.assign(p,!0)))}o(g,"checkLimits")}};Du.default=LO});var Yo=h(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateSchemaDeps=ht.validatePropertyDeps=ht.error=void 0;var Lu=A(),FO=N(),ki=Le();ht.error={message:o(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Lu.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:o(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Lu._)`{property: ${e},
|
|
10
10
|
missingProperty: ${n},
|
|
11
11
|
depsCount: ${t},
|
|
12
|
-
deps: ${r}}`,"params")};var jO={keyword:"dependencies",type:"object",schemaType:"object",error:dt.error,code(e){let[t,r]=MO(e);zm(e,t),Gm(e,r)}};function MO({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(MO,"splitDependencies");function zm(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,ki.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,ki.checkReportMissingProp)(e,l)}):(r.if((0,Du._)`${u} && (${(0,ki.checkMissingProp)(e,c,o)})`),(0,ki.reportMissingProp)(e,o),r.else())}}s(zm,"validatePropertyDeps");dt.validatePropertyDeps=zm;function Gm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,a=r.name("valid");for(let c in t)(0,qO.alwaysValidSchema)(o,t[c])||(r.if((0,ki.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(Gm,"validateSchemaDeps");dt.validateSchemaDeps=Gm;dt.default=jO});var Km=h(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var Zm=A(),DO=R(),LO={message:"property name must be valid",params:s(({params:e})=>(0,Zm._)`{propertyName: ${e.propertyName}}`,"params")},FO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:LO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,DO.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,Zm.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Lu.default=FO});var Vu=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var Wo=De(),Qe=A(),VO=Me(),Qo=R(),BO={message:"must NOT have additional properties",params:s(({params:e})=>(0,Qe._)`{additionalProperty: ${e.additionalProperty}}`,"params")},HO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:BO,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,Qo.alwaysValidSchema)(a,r))return;let l=(0,Wo.allSchemaProperties)(n.properties),f=(0,Wo.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Qe._)`${o} === ${VO.default.errors}`);function p(){t.forIn("key",i,v=>{!l.length&&!f.length?g(v):t.if(d(v),()=>g(v))})}s(p,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,Qo.schemaRefOrVal)(a,n.properties,"properties");_=(0,Wo.isOwnProperty)(t,b,v)}else l.length?_=(0,Qe.or)(...l.map(b=>(0,Qe._)`${v} === ${b}`)):_=Qe.nil;return f.length&&(_=(0,Qe.or)(_,...f.map(b=>(0,Qe._)`${(0,Wo.usePattern)(e,b)}.test(${v})`))),(0,Qe.not)(_)}s(d,"isAdditional");function m(v){t.code((0,Qe._)`delete ${i}[${v}]`)}s(m,"deleteAdditional");function g(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Qo.alwaysValidSchema)(a,r)){let _=t.name("valid");u.removeAdditional==="failing"?(y(v,_,!1),t.if((0,Qe.not)(_),()=>{e.reset(),m(v)})):(y(v,_),c||t.if((0,Qe.not)(_),()=>t.break()))}}s(g,"additionalPropertyCode");function y(v,_,b){let P={keyword:"additionalProperties",dataProp:v,dataPropType:Qo.Type.Str};b===!1&&Object.assign(P,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(P,_)}s(y,"applyAdditionalSchema")}};Fu.default=HO});var Qm=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});var UO=hi(),Ym=De(),Bu=R(),Wm=Vu(),zO={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&&Wm.default.code(new UO.KeywordCxt(o,Wm.default,"additionalProperties"));let a=(0,Ym.allSchemaProperties)(r);for(let p of a)o.definedProperties.add(p);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=Bu.mergeEvaluated.props(t,(0,Bu.toHash)(a),o.props));let c=a.filter(p=>!(0,Bu.alwaysValidSchema)(o,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,Ym.propertyInData)(t,i,p,o.opts.ownProperties)),f(p),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}s(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}s(f,"applyPropertySchema")}};Hu.default=zO});var th=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var Jm=De(),Jo=A(),Xm=R(),eh=R(),GO={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,Jm.allSchemaProperties)(r),u=c.filter(y=>(0,Xm.alwaysValidSchema)(o,r[y]));if(c.length===0||u.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");o.props!==!0&&!(o.props instanceof Jo.Name)&&(o.props=(0,eh.evaluatedPropsToName)(t,o.props));let{props:p}=o;d();function d(){for(let y of c)l&&m(y),o.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}s(d,"validatePatternProperties");function m(y){for(let v in l)new RegExp(y).test(v)&&(0,Xm.checkStrictMode)(o,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}s(m,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,Jo._)`${(0,Jm.usePattern)(e,y)}.test(${v})`,()=>{let _=u.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:eh.Type.Str},f),o.opts.unevaluated&&p!==!0?t.assign((0,Jo._)`${p}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,Jo.not)(f),()=>t.break())})})}s(g,"validateProperties")}};Uu.default=GO});var rh=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var ZO=R(),KO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,ZO.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"}};zu.default=KO});var nh=h(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var YO=De(),WO={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:YO.validateUnion,error:{message:"must match a schema in anyOf"}};Gu.default=WO});var ih=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var Xo=A(),QO=R(),JO={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,Xo._)`{passingSchemas: ${e.passing}}`,"params")},XO={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:JO,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(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((f,p)=>{let d;(0,QO.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Xo._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Xo._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,Xo.Name)})})}s(l,"validateOneOf")}};Zu.default=XO});var oh=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var eE=R(),tE={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,eE.alwaysValidSchema)(n,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Ku.default=tE});var ch=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var es=A(),ah=R(),rE={message:s(({params:e})=>(0,es.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,es._)`{failingKeyword: ${e.ifClause}}`,"params")},nE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:rE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ah.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=sh(n,"then"),o=sh(n,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&o){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,l("then",f),l("else",f))}else i?t.if(c,l("then")):t.if((0,es.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}s(u,"validateIf");function l(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,es._)`${f}`):e.setParams({ifClause:f})}}s(l,"validateClause")}};function sh(e,t){let r=e.schema[t];return r!==void 0&&!(0,ah.alwaysValidSchema)(e,r)}s(sh,"hasSchema");Yu.default=nE});var uh=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var iE=R(),oE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,iE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Wu.default=oE});var Ju=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var sE=Ru(),aE=Vm(),cE=Cu(),uE=Hm(),lE=Um(),pE=Yo(),fE=Km(),dE=Vu(),mE=Qm(),hE=th(),gE=rh(),yE=nh(),vE=ih(),_E=oh(),bE=ch(),SE=uh();function PE(e=!1){let t=[gE.default,yE.default,vE.default,_E.default,bE.default,SE.default,fE.default,dE.default,pE.default,mE.default,hE.default];return e?t.push(aE.default,uE.default):t.push(sE.default,cE.default),t.push(lE.default),t}s(PE,"getApplicator");Qu.default=PE});var lh=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var W=A(),$E={message:s(({schemaCode:e})=>(0,W.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,W._)`{format: ${e}}`,"params")},OE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:$E,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:p}=c;if(!u.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),y=r.const("fDef",(0,W._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,W._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,W._)`${y}.type || "string"`).assign(_,(0,W._)`${y}.validate`),()=>r.assign(v,(0,W._)`"string"`).assign(_,y)),e.fail$data((0,W.or)(b(),P()));function b(){return u.strictSchema===!1?W.nil:(0,W._)`${a} && !${_}`}s(b,"unknownFmt");function P(){let E=f.$async?(0,W._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,W._)`${_}(${n})`,S=(0,W._)`(typeof ${_} == "function" ? ${E} : ${_}.test(${n}))`;return(0,W._)`${_} && ${_} !== true && ${v} === ${t} && !${S}`}s(P,"invalidFmt")}s(d,"validate$DataFormat");function m(){let g=p.formats[o];if(!g){b();return}if(g===!0)return;let[y,v,_]=P(g);y===t&&e.pass(E());function b(){if(u.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${o}" ignored in schema at path "${l}"`}}s(b,"unknownFormat");function P(S){let j=S instanceof RegExp?(0,W.regexpCode)(S):u.code.formats?(0,W._)`${u.code.formats}${(0,W.getProperty)(o)}`:void 0,N=r.scopeValue("formats",{key:o,ref:S,code:j});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,W._)`${N}.validate`]:["string",S,N]}s(P,"getFormat");function E(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,W._)`await ${_}(${n})`}return typeof v=="function"?(0,W._)`${_}(${n})`:(0,W._)`${_}.test(${n})`}s(E,"validCondition")}s(m,"validateFormat")}};Xu.default=OE});var tl=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var EE=lh(),xE=[EE.default];el.default=xE});var ph=h(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var wE=Tm(),AE=Mm(),IE=Ju(),TE=tl(),kE=["title","description","default"],NE=[wE.default,AE.default,IE.default(),TE.default,kE];rl.default=NE});var dh=h(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DiscrError=void 0;var fh;(function(e){e.Tag="tag",e.Mapping="mapping"})(fh||(ts.DiscrError=fh={}))});var ol=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var _n=A(),nl=dh(),mh=yi(),RE=gi(),CE=R(),qE={message:s(({params:{discrError:e,tagName:t}})=>e===nl.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,_n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},jE={keyword:"discriminator",type:"object",schemaType:"object",error:qE,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),l=t.const("tag",(0,_n._)`${r}${(0,_n.getProperty)(c)}`);t.if((0,_n._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:nl.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function f(){let m=d();t.if(!1);for(let g in m)t.elseIf((0,_n._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:nl.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}s(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,_n.Name),g}s(p,"applyTagSchema");function d(){var m;let g={},y=_(i),v=!0;for(let E=0;E<a.length;E++){let S=a[E];if(S!=null&&S.$ref&&!(0,CE.schemaHasRulesButRef)(S,o.self.RULES)){let N=S.$ref;if(S=mh.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N),S instanceof mh.SchemaEnv&&(S=S.schema),S===void 0)throw new RE.default(o.opts.uriResolver,o.baseId,N)}let j=(m=S==null?void 0:S.properties)===null||m===void 0?void 0:m[c];if(typeof j!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||_(S)),b(j,E)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function _({required:E}){return Array.isArray(E)&&E.includes(c)}function b(E,S){if(E.const)P(E.const,S);else if(E.enum)for(let j of E.enum)P(j,S);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function P(E,S){if(typeof E!="string"||E in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[E]=S}}s(d,"getMapping")}};il.default=jE});var hh=h((g4,ME)=>{ME.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 vh=h((te,yh)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.CodeGen=te.Name=te.nil=te.stringify=te.str=te._=te.KeywordCxt=void 0;var DE=yn(),LE=ph(),FE=ol(),gh=hh(),VE=["/properties"],rs="http://json-schema.org/draft-04/schema",sl=class sl extends DE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),LE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(FE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(gh,VE):gh;this.addMetaSchema(t,rs,!1),this.refs["http://json-schema.org/schema"]=rs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rs)?rs:void 0)}};s(sl,"Ajv");var ns=sl;yh.exports=te=ns;Object.defineProperty(te,"__esModule",{value:!0});te.default=ns;var BE=yn();Object.defineProperty(te,"KeywordCxt",{enumerable:!0,get:s(function(){return BE.KeywordCxt},"get")});var bn=yn();Object.defineProperty(te,"_",{enumerable:!0,get:s(function(){return bn._},"get")});Object.defineProperty(te,"str",{enumerable:!0,get:s(function(){return bn.str},"get")});Object.defineProperty(te,"stringify",{enumerable:!0,get:s(function(){return bn.stringify},"get")});Object.defineProperty(te,"nil",{enumerable:!0,get:s(function(){return bn.nil},"get")});Object.defineProperty(te,"Name",{enumerable:!0,get:s(function(){return bn.Name},"get")});Object.defineProperty(te,"CodeGen",{enumerable:!0,get:s(function(){return bn.CodeGen},"get")})});var _h=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var HE={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};al.default=HE});var bh=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var UE=_h(),zE=Pi(),GE=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",UE.default,zE.default];cl.default=GE});var Sh=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var is=A(),Qt=is.operators,os={maximum:{okStr:"<=",ok:Qt.LTE,fail:Qt.GT},minimum:{okStr:">=",ok:Qt.GTE,fail:Qt.LT},exclusiveMaximum:{okStr:"<",ok:Qt.LT,fail:Qt.GTE},exclusiveMinimum:{okStr:">",ok:Qt.GT,fail:Qt.LTE}},ZE={message:s(({keyword:e,schemaCode:t})=>(0,is.str)`must be ${os[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,is._)`{comparison: ${os[e].okStr}, limit: ${t}}`,"params")},KE={keyword:Object.keys(os),type:"number",schemaType:"number",$data:!0,error:ZE,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,is._)`${r} ${os[t].fail} ${n} || isNaN(${r})`)}};ul.default=KE});var Ph=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var YE=Sh(),WE=lu(),QE=du(),JE=hu(),XE=yu(),ex=_u(),tx=Su(),rx=Eu(),nx=Au(),ix=Tu(),ox=[YE.default,WE.default,QE.default,JE.default,XE.default,ex.default,tx.default,rx.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},nx.default,ix.default];ll.default=ox});var fl=h(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.dynamicAnchor=void 0;var pl=A(),sx=Me(),$h=yi(),ax=Pi(),cx={keyword:"$dynamicAnchor",schemaType:"string",code:s(e=>Oh(e,e.schema),"code")};function Oh(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,pl._)`${sx.default.dynamicAnchors}${(0,pl.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:ux(e);r.if((0,pl._)`!${i}`,()=>r.assign(i,o))}s(Oh,"dynamicAnchor");Ni.dynamicAnchor=Oh;function ux(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new $h.SchemaEnv({schema:r,schemaId:u,root:i,baseId:o,localRefs:a,meta:c});return $h.compileSchema.call(n,l),(0,ax.getValidate)(e,l)}s(ux,"_getValidate");Ni.default=cx});var dl=h(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.dynamicRef=void 0;var Eh=A(),lx=Me(),xh=Pi(),px={keyword:"$dynamicRef",schemaType:"string",code:s(e=>wh(e,e.schema),"code")};function wh(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 l=r.let("_v",(0,Eh._)`${lx.default.dynamicAnchors}${(0,Eh.getProperty)(o)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}s(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,xh.callRef)(e,u),r.let(l,!0)}):()=>(0,xh.callRef)(e,u)}s(c,"_callRef")}s(wh,"dynamicRef");Ri.dynamicRef=wh;Ri.default=px});var Ah=h(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var fx=fl(),dx=R(),mx={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,fx.dynamicAnchor)(e,""):(0,dx.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ml.default=mx});var Ih=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var hx=dl(),gx={keyword:"$recursiveRef",schemaType:"string",code:s(e=>(0,hx.dynamicRef)(e,e.schema),"code")};hl.default=gx});var Th=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var yx=fl(),vx=dl(),_x=Ah(),bx=Ih(),Sx=[yx.default,vx.default,_x.default,bx.default];gl.default=Sx});var Nh=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var kh=Yo(),Px={keyword:"dependentRequired",type:"object",schemaType:"object",error:kh.error,code:s(e=>(0,kh.validatePropertyDeps)(e),"code")};yl.default=Px});var Rh=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var $x=Yo(),Ox={keyword:"dependentSchemas",type:"object",schemaType:"object",code:s(e=>(0,$x.validateSchemaDeps)(e),"code")};vl.default=Ox});var Ch=h(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Ex=R(),xx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Ex.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};_l.default=xx});var qh=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var wx=Nh(),Ax=Rh(),Ix=Ch(),Tx=[wx.default,Ax.default,Ix.default];bl.default=Tx});var Mh=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Jt=A(),jh=R(),kx=Me(),Nx={message:"must NOT have unevaluated properties",params:s(({params:e})=>(0,Jt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Rx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Nx,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 Jt.Name?t.if((0,Jt._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(l(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(f(c,p),()=>u(p))),o.props=!0,e.ok((0,Jt._)`${i} === ${kx.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,jh.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:jh.Type.Str},d),a||t.if((0,Jt.not)(d),()=>t.break())}}s(u,"unevaluatedPropCode");function l(p,d){return(0,Jt._)`!${p} || !${p}[${d}]`}s(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,Jt._)`${d} !== ${g}`);return(0,Jt.and)(...m)}s(f,"unevaluatedStatic")}};Sl.default=Rx});var Lh=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Nr=A(),Dh=R(),Cx={message:s(({params:{len:e}})=>(0,Nr.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,Nr._)`{limit: ${e}}`,"params")},qx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Cx,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,Nr._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,Nr._)`${a} > ${o}`);else if(typeof r=="object"&&!(0,Dh.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Nr._)`${a} <= ${o}`);t.if((0,Nr.not)(u),()=>c(u,o)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:Dh.Type.Num},u),i.allErrors||t.if((0,Nr.not)(u),()=>t.break())})}s(c,"validateItems")}};Pl.default=qx});var Fh=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var jx=Mh(),Mx=Lh(),Dx=[jx.default,Mx.default];$l.default=Dx});var Vh=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.contentVocabulary=Sn.metadataVocabulary=void 0;Sn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Sn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Hh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Lx=bh(),Fx=Ph(),Vx=Ju(),Bx=Th(),Hx=qh(),Ux=Fh(),zx=tl(),Bh=Vh(),Gx=[Bx.default,Lx.default,Fx.default,(0,Vx.default)(!0),zx.default,Bh.metadataVocabulary,Bh.contentVocabulary,Hx.default,Ux.default];Ol.default=Gx});var Uh=h((U4,Zx)=>{Zx.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 zh=h((z4,Kx)=>{Kx.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 Gh=h((G4,Yx)=>{Yx.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 Zh=h((Z4,Wx)=>{Wx.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 Kh=h((K4,Qx)=>{Qx.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 Yh=h((Y4,Jx)=>{Jx.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 Wh=h((W4,Xx)=>{Xx.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 Qh=h((Q4,ew)=>{ew.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 Jh=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var tw=Uh(),rw=zh(),nw=Gh(),iw=Zh(),ow=Kh(),sw=Yh(),aw=Wh(),cw=Qh(),uw=["/properties"];function lw(e){return[tw,rw,nw,iw,ow,t(this,sw),aw,t(this,cw)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,uw):n}s(t,"with$data")}s(lw,"addMetaSchema2020");El.default=lw});var Xh=h((H,wl)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.MissingRefError=H.ValidationError=H.CodeGen=H.Name=H.nil=H.stringify=H.str=H._=H.KeywordCxt=H.Ajv2020=void 0;var pw=yn(),fw=Hh(),dw=ol(),mw=Jh(),xl="https://json-schema.org/draft/2020-12/schema",Al=class Al extends pw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),fw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(dw.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(mw.default.call(this,t),this.refs["http://json-schema.org/schema"]=xl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(xl)?xl:void 0)}};s(Al,"Ajv2020");var Pn=Al;H.Ajv2020=Pn;wl.exports=H=Pn;wl.exports.Ajv2020=Pn;Object.defineProperty(H,"__esModule",{value:!0});H.default=Pn;var hw=hi();Object.defineProperty(H,"KeywordCxt",{enumerable:!0,get:s(function(){return hw.KeywordCxt},"get")});var $n=A();Object.defineProperty(H,"_",{enumerable:!0,get:s(function(){return $n._},"get")});Object.defineProperty(H,"str",{enumerable:!0,get:s(function(){return $n.str},"get")});Object.defineProperty(H,"stringify",{enumerable:!0,get:s(function(){return $n.stringify},"get")});Object.defineProperty(H,"nil",{enumerable:!0,get:s(function(){return $n.nil},"get")});Object.defineProperty(H,"Name",{enumerable:!0,get:s(function(){return $n.Name},"get")});Object.defineProperty(H,"CodeGen",{enumerable:!0,get:s(function(){return $n.CodeGen},"get")});var gw=Mo();Object.defineProperty(H,"ValidationError",{enumerable:!0,get:s(function(){return gw.default},"get")});var yw=gi();Object.defineProperty(H,"MissingRefError",{enumerable:!0,get:s(function(){return yw.default},"get")})});var eg=h((tM,vw)=>{vw.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 tg=h((rM,_w)=>{_w.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 rg=h((nM,bw)=>{bw.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 ng=h((iM,Sw)=>{Sw.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 ig=h((oe,On)=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.openapi=oe.openapiV31=oe.openapiV3=oe.openapiV2=oe.openapiV1=void 0;oe.openapiV1=eg();oe.openapiV2=tg();oe.openapiV3=rg();oe.openapiV31=ng();oe.openapi={v1:oe.openapiV1,v2:oe.openapiV2,v3:oe.openapiV3,v31:oe.openapiV31};oe.default=oe.openapi;typeof On=="object"&&typeof On.exports=="object"&&(On.exports=Object.assign(On.exports.default,On.exports))});var kl=h((oM,og)=>{"use strict";var Pw=vo(),{ono:$w}=Ze(),Ow=vh(),Ew=Xh(),{openapi:Il}=ig();og.exports=xw;function xw(e){let t,r;if(e.swagger)r=Il.v2,t=Tl();else if(e.openapi.startsWith("3.1")){r=Il.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=Tl(!1)}else r=Il.v3,t=Tl();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
|
-
`,u+1)):u===0?
|
|
12
|
+
deps: ${r}}`,"params")};var VO={keyword:"dependencies",type:"object",schemaType:"object",error:ht.error,code(e){let[t,r]=BO(e);Gm(e,t),Zm(e,r)}};function BO({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(BO,"splitDependencies");function Gm(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 c=t[a];if(c.length===0)continue;let u=(0,ki.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of c)(0,ki.checkReportMissingProp)(e,l)}):(r.if((0,Lu._)`${u} && (${(0,ki.checkMissingProp)(e,c,s)})`),(0,ki.reportMissingProp)(e,s),r.else())}}o(Gm,"validatePropertyDeps");ht.validatePropertyDeps=Gm;function Zm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let c in t)(0,FO.alwaysValidSchema)(s,t[c])||(r.if((0,ki.propertyInData)(r,n,c,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}o(Zm,"validateSchemaDeps");ht.validateSchemaDeps=Zm;ht.default=VO});var Ym=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var Km=A(),HO=N(),UO={message:"property name must be valid",params:o(({params:e})=>(0,Km._)`{propertyName: ${e.propertyName}}`,"params")},zO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:UO,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,HO.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,Km.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};Fu.default=zO});var Bu=h(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var Wo=Le(),Xe=A(),GO=De(),Qo=N(),ZO={message:"must NOT have additional properties",params:o(({params:e})=>(0,Xe._)`{additionalProperty: ${e.additionalProperty}}`,"params")},KO={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ZO,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:c,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Qo.alwaysValidSchema)(a,r))return;let l=(0,Wo.allSchemaProperties)(n.properties),f=(0,Wo.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Xe._)`${s} === ${GO.default.errors}`);function p(){t.forIn("key",i,v=>{!l.length&&!f.length?g(v):t.if(d(v),()=>g(v))})}o(p,"checkAdditionalProperties");function d(v){let _;if(l.length>8){let b=(0,Qo.schemaRefOrVal)(a,n.properties,"properties");_=(0,Wo.isOwnProperty)(t,b,v)}else l.length?_=(0,Xe.or)(...l.map(b=>(0,Xe._)`${v} === ${b}`)):_=Xe.nil;return f.length&&(_=(0,Xe.or)(_,...f.map(b=>(0,Xe._)`${(0,Wo.usePattern)(e,b)}.test(${v})`))),(0,Xe.not)(_)}o(d,"isAdditional");function m(v){t.code((0,Xe._)`delete ${i}[${v}]`)}o(m,"deleteAdditional");function g(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){m(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),c||t.break();return}if(typeof r=="object"&&!(0,Qo.alwaysValidSchema)(a,r)){let _=t.name("valid");u.removeAdditional==="failing"?(y(v,_,!1),t.if((0,Xe.not)(_),()=>{e.reset(),m(v)})):(y(v,_),c||t.if((0,Xe.not)(_),()=>t.break()))}}o(g,"additionalPropertyCode");function y(v,_,b){let O={keyword:"additionalProperties",dataProp:v,dataPropType:Qo.Type.Str};b===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(O,_)}o(y,"applyAdditionalSchema")}};Vu.default=KO});var Jm=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});var YO=hi(),Wm=Le(),Hu=N(),Qm=Bu(),WO={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&&Qm.default.code(new YO.KeywordCxt(s,Qm.default,"additionalProperties"));let a=(0,Wm.allSchemaProperties)(r);for(let p of a)s.definedProperties.add(p);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Hu.mergeEvaluated.props(t,(0,Hu.toHash)(a),s.props));let c=a.filter(p=>!(0,Hu.alwaysValidSchema)(s,r[p]));if(c.length===0)return;let u=t.name("valid");for(let p of c)l(p)?f(p):(t.if((0,Wm.propertyInData)(t,i,p,s.opts.ownProperties)),f(p),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(u);function l(p){return s.opts.useDefaults&&!s.compositeRule&&r[p].default!==void 0}o(l,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},u)}o(f,"applyPropertySchema")}};Uu.default=WO});var rh=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});var Xm=Le(),Jo=A(),eh=N(),th=N(),QO={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,c=(0,Xm.allSchemaProperties)(r),u=c.filter(y=>(0,eh.alwaysValidSchema)(s,r[y]));if(c.length===0||u.length===c.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");s.props!==!0&&!(s.props instanceof Jo.Name)&&(s.props=(0,th.evaluatedPropsToName)(t,s.props));let{props:p}=s;d();function d(){for(let y of c)l&&m(y),s.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}o(d,"validatePatternProperties");function m(y){for(let v in l)new RegExp(y).test(v)&&(0,eh.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}o(m,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,Jo._)`${(0,Xm.usePattern)(e,y)}.test(${v})`,()=>{let _=u.includes(y);_||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:th.Type.Str},f),s.opts.unevaluated&&p!==!0?t.assign((0,Jo._)`${p}[${v}]`,!0):!_&&!s.allErrors&&t.if((0,Jo.not)(f),()=>t.break())})})}o(g,"validateProperties")}};zu.default=QO});var nh=h(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var JO=N(),XO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,JO.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"}};Gu.default=XO});var ih=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var eE=Le(),tE={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eE.validateUnion,error:{message:"must match a schema in anyOf"}};Zu.default=tE});var oh=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});var Xo=A(),rE=N(),nE={message:"must match exactly one schema in oneOf",params:o(({params:e})=>(0,Xo._)`{passingSchemas: ${e.passing}}`,"params")},iE={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nE,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),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((f,p)=>{let d;(0,rE.alwaysValidSchema)(i,f)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},u),p>0&&t.if((0,Xo._)`${u} && ${a}`).assign(a,!1).assign(c,(0,Xo._)`[${c}, ${p}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,Xo.Name)})})}o(l,"validateOneOf")}};Ku.default=iE});var sh=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var oE=N(),sE={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,oE.alwaysValidSchema)(n,s))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};Yu.default=sE});var uh=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var es=A(),ch=N(),aE={message:o(({params:e})=>(0,es.str)`must match "${e.ifClause}" schema`,"message"),params:o(({params:e})=>(0,es._)`{failingKeyword: ${e.ifClause}}`,"params")},cE={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:aE,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ch.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=ah(n,"then"),s=ah(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),c=t.name("_valid");if(u(),e.reset(),i&&s){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,l("then",f),l("else",f))}else i?t.if(c,l("then")):t.if((0,es.not)(c),l("else"));e.pass(a,()=>e.error(!0));function u(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}o(u,"validateIf");function l(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,es._)`${f}`):e.setParams({ifClause:f})}}o(l,"validateClause")}};function ah(e,t){let r=e.schema[t];return r!==void 0&&!(0,ch.alwaysValidSchema)(e,r)}o(ah,"hasSchema");Wu.default=cE});var lh=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var uE=N(),lE={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,uE.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Qu.default=lE});var Xu=h(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var pE=Cu(),fE=Bm(),dE=ju(),mE=Um(),hE=zm(),gE=Yo(),yE=Ym(),vE=Bu(),_E=Jm(),bE=rh(),SE=nh(),PE=ih(),$E=oh(),OE=sh(),EE=uh(),xE=lh();function wE(e=!1){let t=[SE.default,PE.default,$E.default,OE.default,EE.default,xE.default,yE.default,vE.default,gE.default,_E.default,bE.default];return e?t.push(fE.default,mE.default):t.push(pE.default,dE.default),t.push(hE.default),t}o(wE,"getApplicator");Ju.default=wE});var ph=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var X=A(),AE={message:o(({schemaCode:e})=>(0,X.str)`must match format "${e}"`,"message"),params:o(({schemaCode:e})=>(0,X._)`{format: ${e}}`,"params")},IE={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:AE,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:f,self:p}=c;if(!u.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:p.formats,code:u.code.formats}),y=r.const("fDef",(0,X._)`${g}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,X._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,X._)`${y}.type || "string"`).assign(_,(0,X._)`${y}.validate`),()=>r.assign(v,(0,X._)`"string"`).assign(_,y)),e.fail$data((0,X.or)(b(),O()));function b(){return u.strictSchema===!1?X.nil:(0,X._)`${a} && !${_}`}o(b,"unknownFmt");function O(){let P=f.$async?(0,X._)`(${y}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,X._)`${_}(${n})`,S=(0,X._)`(typeof ${_} == "function" ? ${P} : ${_}.test(${n}))`;return(0,X._)`${_} && ${_} !== true && ${v} === ${t} && !${S}`}o(O,"invalidFmt")}o(d,"validate$DataFormat");function m(){let g=p.formats[s];if(!g){b();return}if(g===!0)return;let[y,v,_]=O(g);y===t&&e.pass(P());function b(){if(u.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${l}"`}}o(b,"unknownFormat");function O(S){let D=S instanceof RegExp?(0,X.regexpCode)(S):u.code.formats?(0,X._)`${u.code.formats}${(0,X.getProperty)(s)}`:void 0,R=r.scopeValue("formats",{key:s,ref:S,code:D});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,X._)`${R}.validate`]:["string",S,R]}o(O,"getFormat");function P(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,X._)`await ${_}(${n})`}return typeof v=="function"?(0,X._)`${_}(${n})`:(0,X._)`${_}.test(${n})`}o(P,"validCondition")}o(m,"validateFormat")}};el.default=IE});var rl=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var TE=ph(),kE=[TE.default];tl.default=kE});var fh=h(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var NE=km(),RE=Dm(),CE=Xu(),jE=rl(),qE=["title","description","default"],ME=[NE.default,RE.default,CE.default(),jE.default,qE];nl.default=ME});var mh=h(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DiscrError=void 0;var dh;(function(e){e.Tag="tag",e.Mapping="mapping"})(dh||(ts.DiscrError=dh={}))});var sl=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var _n=A(),il=mh(),hh=yi(),DE=gi(),LE=N(),FE={message:o(({params:{discrError:e,tagName:t}})=>e===il.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,_n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},VE={keyword:"discriminator",type:"object",schemaType:"object",error:FE,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 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),l=t.const("tag",(0,_n._)`${r}${(0,_n.getProperty)(c)}`);t.if((0,_n._)`typeof ${l} == "string"`,()=>f(),()=>e.error(!1,{discrError:il.DiscrError.Tag,tag:l,tagName:c})),e.ok(u);function f(){let m=d();t.if(!1);for(let g in m)t.elseIf((0,_n._)`${l} === ${g}`),t.assign(u,p(m[g]));t.else(),e.error(!1,{discrError:il.DiscrError.Mapping,tag:l,tagName:c}),t.endIf()}o(f,"validateMapping");function p(m){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},g);return e.mergeEvaluated(y,_n.Name),g}o(p,"applyTagSchema");function d(){var m;let g={},y=_(i),v=!0;for(let P=0;P<a.length;P++){let S=a[P];if(S!=null&&S.$ref&&!(0,LE.schemaHasRulesButRef)(S,s.self.RULES)){let R=S.$ref;if(S=hh.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,R),S instanceof hh.SchemaEnv&&(S=S.schema),S===void 0)throw new DE.default(s.opts.uriResolver,s.baseId,R)}let D=(m=S==null?void 0:S.properties)===null||m===void 0?void 0:m[c];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);v=v&&(y||_(S)),b(D,P)}if(!v)throw new Error(`discriminator: "${c}" must be required`);return g;function _({required:P}){return Array.isArray(P)&&P.includes(c)}function b(P,S){if(P.const)O(P.const,S);else if(P.enum)for(let D of P.enum)O(D,S);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function O(P,S){if(typeof P!="string"||P in g)throw new Error(`discriminator: "${c}" values must be unique strings`);g[P]=S}}o(d,"getMapping")}};ol.default=VE});var gh=h(($4,BE)=>{BE.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 _h=h((re,vh)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.CodeGen=re.Name=re.nil=re.stringify=re.str=re._=re.KeywordCxt=void 0;var HE=yn(),UE=fh(),zE=sl(),yh=gh(),GE=["/properties"],rs="http://json-schema.org/draft-04/schema",al=class al extends HE.default{constructor(t={}){super({...t,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),UE.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(zE.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(yh,GE):yh;this.addMetaSchema(t,rs,!1),this.refs["http://json-schema.org/schema"]=rs}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rs)?rs:void 0)}};o(al,"Ajv");var ns=al;vh.exports=re=ns;Object.defineProperty(re,"__esModule",{value:!0});re.default=ns;var ZE=yn();Object.defineProperty(re,"KeywordCxt",{enumerable:!0,get:o(function(){return ZE.KeywordCxt},"get")});var bn=yn();Object.defineProperty(re,"_",{enumerable:!0,get:o(function(){return bn._},"get")});Object.defineProperty(re,"str",{enumerable:!0,get:o(function(){return bn.str},"get")});Object.defineProperty(re,"stringify",{enumerable:!0,get:o(function(){return bn.stringify},"get")});Object.defineProperty(re,"nil",{enumerable:!0,get:o(function(){return bn.nil},"get")});Object.defineProperty(re,"Name",{enumerable:!0,get:o(function(){return bn.Name},"get")});Object.defineProperty(re,"CodeGen",{enumerable:!0,get:o(function(){return bn.CodeGen},"get")})});var bh=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var KE={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};cl.default=KE});var Sh=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var YE=bh(),WE=Pi(),QE=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",YE.default,WE.default];ul.default=QE});var Ph=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var is=A(),Jt=is.operators,os={maximum:{okStr:"<=",ok:Jt.LTE,fail:Jt.GT},minimum:{okStr:">=",ok:Jt.GTE,fail:Jt.LT},exclusiveMaximum:{okStr:"<",ok:Jt.LT,fail:Jt.GTE},exclusiveMinimum:{okStr:">",ok:Jt.GT,fail:Jt.LTE}},JE={message:o(({keyword:e,schemaCode:t})=>(0,is.str)`must be ${os[e].okStr} ${t}`,"message"),params:o(({keyword:e,schemaCode:t})=>(0,is._)`{comparison: ${os[e].okStr}, limit: ${t}}`,"params")},XE={keyword:Object.keys(os),type:"number",schemaType:"number",$data:!0,error:JE,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,is._)`${r} ${os[t].fail} ${n} || isNaN(${r})`)}};ll.default=XE});var $h=h(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var ex=Ph(),tx=pu(),rx=mu(),nx=gu(),ix=vu(),ox=bu(),sx=Pu(),ax=xu(),cx=Iu(),ux=ku(),lx=[ex.default,tx.default,rx.default,nx.default,ix.default,ox.default,sx.default,ax.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cx.default,ux.default];pl.default=lx});var dl=h(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.dynamicAnchor=void 0;var fl=A(),px=De(),Oh=yi(),fx=Pi(),dx={keyword:"$dynamicAnchor",schemaType:"string",code:o(e=>Eh(e,e.schema),"code")};function Eh(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,fl._)`${px.default.dynamicAnchors}${(0,fl.getProperty)(t)}`,s=n.errSchemaPath==="#"?n.validateName:mx(e);r.if((0,fl._)`!${i}`,()=>r.assign(i,s))}o(Eh,"dynamicAnchor");Ni.dynamicAnchor=Eh;function mx(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:s,localRefs:a,meta:c}=t.root,{schemaId:u}=n.opts,l=new Oh.SchemaEnv({schema:r,schemaId:u,root:i,baseId:s,localRefs:a,meta:c});return Oh.compileSchema.call(n,l),(0,fx.getValidate)(e,l)}o(mx,"_getValidate");Ni.default=dx});var ml=h(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.dynamicRef=void 0;var xh=A(),hx=De(),wh=Pi(),gx={keyword:"$dynamicRef",schemaType:"string",code:o(e=>Ah(e,e.schema),"code")};function Ah(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 u=r.let("valid",!1);a(u),e.ok(u)}function a(u){if(i.schemaEnv.root.dynamicAnchors[s]){let l=r.let("_v",(0,xh._)`${hx.default.dynamicAnchors}${(0,xh.getProperty)(s)}`);r.if(l,c(l,u),c(i.validateName,u))}else c(i.validateName,u)()}o(a,"_dynamicRef");function c(u,l){return l?()=>r.block(()=>{(0,wh.callRef)(e,u),r.let(l,!0)}):()=>(0,wh.callRef)(e,u)}o(c,"_callRef")}o(Ah,"dynamicRef");Ri.dynamicRef=Ah;Ri.default=gx});var Ih=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var yx=dl(),vx=N(),_x={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,yx.dynamicAnchor)(e,""):(0,vx.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};hl.default=_x});var Th=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var bx=ml(),Sx={keyword:"$recursiveRef",schemaType:"string",code:o(e=>(0,bx.dynamicRef)(e,e.schema),"code")};gl.default=Sx});var kh=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Px=dl(),$x=ml(),Ox=Ih(),Ex=Th(),xx=[Px.default,$x.default,Ox.default,Ex.default];yl.default=xx});var Rh=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var Nh=Yo(),wx={keyword:"dependentRequired",type:"object",schemaType:"object",error:Nh.error,code:o(e=>(0,Nh.validatePropertyDeps)(e),"code")};vl.default=wx});var Ch=h(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var Ax=Yo(),Ix={keyword:"dependentSchemas",type:"object",schemaType:"object",code:o(e=>(0,Ax.validateSchemaDeps)(e),"code")};_l.default=Ix});var jh=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var Tx=N(),kx={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Tx.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};bl.default=kx});var qh=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var Nx=Rh(),Rx=Ch(),Cx=jh(),jx=[Nx.default,Rx.default,Cx.default];Sl.default=jx});var Dh=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Xt=A(),Mh=N(),qx=De(),Mx={message:"must NOT have unevaluated properties",params:o(({params:e})=>(0,Xt._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},Dx={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:Mx,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:c}=s;c instanceof Xt.Name?t.if((0,Xt._)`${c} !== true`,()=>t.forIn("key",n,p=>t.if(l(c,p),()=>u(p)))):c!==!0&&t.forIn("key",n,p=>c===void 0?u(p):t.if(f(c,p),()=>u(p))),s.props=!0,e.ok((0,Xt._)`${i} === ${qx.default.errors}`);function u(p){if(r===!1){e.setParams({unevaluatedProperty:p}),e.error(),a||t.break();return}if(!(0,Mh.alwaysValidSchema)(s,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:p,dataPropType:Mh.Type.Str},d),a||t.if((0,Xt.not)(d),()=>t.break())}}o(u,"unevaluatedPropCode");function l(p,d){return(0,Xt._)`!${p} || !${p}[${d}]`}o(l,"unevaluatedDynamic");function f(p,d){let m=[];for(let g in p)p[g]===!0&&m.push((0,Xt._)`${d} !== ${g}`);return(0,Xt.and)(...m)}o(f,"unevaluatedStatic")}};Pl.default=Dx});var Fh=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var Rr=A(),Lh=N(),Lx={message:o(({params:{len:e}})=>(0,Rr.str)`must NOT have more than ${e} items`,"message"),params:o(({params:{len:e}})=>(0,Rr._)`{limit: ${e}}`,"params")},Fx={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Lx,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,Rr._)`${n}.length`);if(r===!1)e.setParams({len:s}),e.fail((0,Rr._)`${a} > ${s}`);else if(typeof r=="object"&&!(0,Lh.alwaysValidSchema)(i,r)){let u=t.var("valid",(0,Rr._)`${a} <= ${s}`);t.if((0,Rr.not)(u),()=>c(u,s)),e.ok(u)}i.items=!0;function c(u,l){t.forRange("i",l,a,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:Lh.Type.Num},u),i.allErrors||t.if((0,Rr.not)(u),()=>t.break())})}o(c,"validateItems")}};$l.default=Fx});var Vh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var Vx=Dh(),Bx=Fh(),Hx=[Vx.default,Bx.default];Ol.default=Hx});var Bh=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.contentVocabulary=Sn.metadataVocabulary=void 0;Sn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Sn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Uh=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var Ux=Sh(),zx=$h(),Gx=Xu(),Zx=kh(),Kx=qh(),Yx=Vh(),Wx=rl(),Hh=Bh(),Qx=[Zx.default,Ux.default,zx.default,(0,Gx.default)(!0),Wx.default,Hh.metadataVocabulary,Hh.contentVocabulary,Kx.default,Yx.default];El.default=Qx});var zh=h((Q4,Jx)=>{Jx.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 Gh=h((J4,Xx)=>{Xx.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 Zh=h((X4,ew)=>{ew.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 Kh=h((eM,tw)=>{tw.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 Yh=h((tM,rw)=>{rw.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 Wh=h((rM,nw)=>{nw.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 Qh=h((nM,iw)=>{iw.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 Jh=h((iM,ow)=>{ow.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 Xh=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var sw=zh(),aw=Gh(),cw=Zh(),uw=Kh(),lw=Yh(),pw=Wh(),fw=Qh(),dw=Jh(),mw=["/properties"];function hw(e){return[sw,aw,cw,uw,lw,t(this,pw),fw,t(this,dw)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,mw):n}o(t,"with$data")}o(hw,"addMetaSchema2020");xl.default=hw});var eg=h((H,Al)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.MissingRefError=H.ValidationError=H.CodeGen=H.Name=H.nil=H.stringify=H.str=H._=H.KeywordCxt=H.Ajv2020=void 0;var gw=yn(),yw=Uh(),vw=sl(),_w=Xh(),wl="https://json-schema.org/draft/2020-12/schema",Il=class Il extends gw.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),yw.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(vw.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(_w.default.call(this,t),this.refs["http://json-schema.org/schema"]=wl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(wl)?wl:void 0)}};o(Il,"Ajv2020");var Pn=Il;H.Ajv2020=Pn;Al.exports=H=Pn;Al.exports.Ajv2020=Pn;Object.defineProperty(H,"__esModule",{value:!0});H.default=Pn;var bw=hi();Object.defineProperty(H,"KeywordCxt",{enumerable:!0,get:o(function(){return bw.KeywordCxt},"get")});var $n=A();Object.defineProperty(H,"_",{enumerable:!0,get:o(function(){return $n._},"get")});Object.defineProperty(H,"str",{enumerable:!0,get:o(function(){return $n.str},"get")});Object.defineProperty(H,"stringify",{enumerable:!0,get:o(function(){return $n.stringify},"get")});Object.defineProperty(H,"nil",{enumerable:!0,get:o(function(){return $n.nil},"get")});Object.defineProperty(H,"Name",{enumerable:!0,get:o(function(){return $n.Name},"get")});Object.defineProperty(H,"CodeGen",{enumerable:!0,get:o(function(){return $n.CodeGen},"get")});var Sw=Mo();Object.defineProperty(H,"ValidationError",{enumerable:!0,get:o(function(){return Sw.default},"get")});var Pw=gi();Object.defineProperty(H,"MissingRefError",{enumerable:!0,get:o(function(){return Pw.default},"get")})});var tg=h((cM,$w)=>{$w.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 rg=h((uM,Ow)=>{Ow.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 ng=h((lM,Ew)=>{Ew.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 ig=h((pM,xw)=>{xw.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 og=h((oe,On)=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.openapi=oe.openapiV31=oe.openapiV3=oe.openapiV2=oe.openapiV1=void 0;oe.openapiV1=tg();oe.openapiV2=rg();oe.openapiV3=ng();oe.openapiV31=ig();oe.openapi={v1:oe.openapiV1,v2:oe.openapiV2,v3:oe.openapiV3,v31:oe.openapiV31};oe.default=oe.openapi;typeof On=="object"&&typeof On.exports=="object"&&(On.exports=Object.assign(On.exports.default,On.exports))});var Nl=h((fM,sg)=>{"use strict";var ww=vo(),{ono:Aw}=Ye(),Iw=_h(),Tw=eg(),{openapi:Tl}=og();sg.exports=kw;function kw(e){let t,r;if(e.swagger)r=Tl.v2,t=kl();else if(e.openapi.startsWith("3.1")){r=Tl.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=kl(!1)}else r=Tl.v3,t=kl();if(!t.validate(r,e)){let i=t.errors,s=`Swagger schema validation failed.
|
|
13
|
+
`+Nw(i);throw Aw.syntax(i,{details:i},s)}}o(kw,"validateSchema");function kl(e=!0){let t={allErrors:!0,strict:!1,validateFormats:!1};return e?new Iw(t):new Tw(t)}o(kl,"initializeAjv");function Nw(e,t){t=t||" ";let r="";for(let n of e)r+=ww.format(`${t}#${n.instancePath.length?n.instancePath:"/"} ${n.message}
|
|
14
|
+
`);return r}o(Nw,"formatAjvError")});var cg=h((mM,ag)=>{"use strict";ag.exports=["get","put","post","delete","options","head","patch"]});var jl=h((hM,fg)=>{"use strict";var Rw=vo(),{ono:me}=Ye(),Cw=cg(),Rl=["array","boolean","integer","number","string"],lg=["array","boolean","integer","number","string","object","null",void 0];fg.exports=jw;function jw(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&&qw(e,s,a,r)}let n=Object.keys(e.definitions||{});for(let i of n){let s=e.definitions[i],a="/definitions/"+i;pg(s,a)}}o(jw,"validateSpec");function qw(e,t,r,n){for(let i of Cw){let s=t[i],a=r+"/"+i;if(s){let c=s.operationId;if(c)if(n.indexOf(c)===-1)n.push(c);else throw me.syntax(`Validation failed. Duplicate operation id '${c}'`);Mw(e,t,r,s,a);let u=Object.keys(s.responses||{});for(let l of u){let f=s.responses[l],p=a+"/responses/"+l;Vw(l,f||{},p)}}}}o(qw,"validatePath");function Mw(e,t,r,n,i){let s=t.parameters||[],a=n.parameters||[];try{ug(s)}catch(u){throw me.syntax(u,`Validation failed. ${r} has duplicate parameters`)}try{ug(a)}catch(u){throw me.syntax(u,`Validation failed. ${i} has duplicate parameters`)}let c=s.reduce((u,l)=>(u.some(p=>p.in===l.in&&p.name===l.name)||u.push(l),u),a.slice());Dw(c,i),Lw(c,r,i),Fw(c,e,n,i)}o(Mw,"validateParameters");function Dw(e,t){let r=e.filter(i=>i.in==="body"),n=e.filter(i=>i.in==="formData");if(r.length>1)throw me.syntax(`Validation failed. ${t} has ${r.length} body parameters. Only one is allowed.`);if(r.length>0&&n.length>0)throw me.syntax(`Validation failed. ${t} has body parameters and formData parameters. Only one or the other is allowed.`)}o(Dw,"validateBodyParameters");function Lw(e,t,r){let n=t.match(Rw.swaggerParamRegExp)||[];for(let i=0;i<n.length;i++)for(let s=i+1;s<n.length;s++)if(n[i]===n[s])throw me.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 me.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 me.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 me.syntax(`Validation failed. ${r} is missing path parameter(s) for ${n}`)}o(Lw,"validatePathParameters");function Fw(e,t,r,n){for(let i of e){let s=n+"/parameters/"+i.name,a,c;switch(i.in){case"body":a=i.schema,c=lg;break;case"formData":a=i,c=Rl.concat("file");break;default:a=i,c=Rl}if(Cl(a,s,c),pg(a,s),a.type==="file"){let u=/multipart\/(.*\+)?form-data/,l=/application\/(.*\+)?x-www-form-urlencoded/;if(!(r.consumes||t.consumes||[]).some(d=>u.test(d)||l.test(d)))throw me.syntax(`Validation failed. ${n} has a file parameter, so it must consume multipart/form-data or application/x-www-form-urlencoded`)}}}o(Fw,"validateParameterTypes");function ug(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 me.syntax(`Validation failed. Found multiple ${r.in} parameters named "${r.name}"`)}}}o(ug,"checkForDuplicates");function Vw(e,t,r){if(e!=="default"&&(e<100||e>599))throw me.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;Cl(s,a,Rl)}if(t.schema){let i=lg.concat("file");if(i.indexOf(t.schema.type)===-1)throw me.syntax(`Validation failed. ${r} has an invalid response schema type (${t.schema.type})`);Cl(t.schema,r+"/schema",i)}}o(Vw,"validateResponse");function Cl(e,t,r){if(r.indexOf(e.type)===-1)throw me.syntax(`Validation failed. ${t} has an invalid type (${e.type})`);if(e.type==="array"&&!e.items)throw me.syntax(`Validation failed. ${t} is an array, so it must include an "items" schema`)}o(Cl,"validateSchema");function pg(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 me.syntax(`Validation failed. Property '${i}' listed as required but does not exist in '${t}'`)}}o(pg,"validateRequiredPropertiesExist")});var tt=h(et=>{"use strict";var{Ono:dg}=Ye(),{stripHash:mg,toFileSystemPath:Bw}=Re(),En,er=et.JSONParserError=(En=class extends Error{constructor(t,r){super(),this.code="EUNKNOWN",this.message=t,this.source=r,this.path=null,dg.extend(this)}},o(En,"JSONParserError"),En);tr(er);var Cr,hg=et.JSONParserErrorGroup=(Cr=class extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${Bw(t.$refs._root$Ref.path)}'`,dg.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 Cr.getParserErrors(this.files)}},o(Cr,"JSONParserErrorGroup"),Cr);tr(hg);var xn,Hw=et.ParserError=(xn=class extends er{constructor(t,r){super(`Error parsing ${r}: ${t}`,r),this.code="EPARSER"}},o(xn,"ParserError"),xn);tr(Hw);var wn,Uw=et.UnmatchedParserError=(wn=class extends er{constructor(t){super(`Could not find parser for "${t}"`,t),this.code="EUNMATCHEDPARSER"}},o(wn,"UnmatchedParserError"),wn);tr(Uw);var An,zw=et.ResolverError=(An=class extends er{constructor(t,r){super(t.message||`Error reading file "${r}"`,r),this.code="ERESOLVER","code"in t&&(this.ioErrorCode=String(t.code))}},o(An,"ResolverError"),An);tr(zw);var In,Gw=et.UnmatchedResolverError=(In=class extends er{constructor(t){super(`Could not find resolver for "${t}"`,t),this.code="EUNMATCHEDRESOLVER"}},o(In,"UnmatchedResolverError"),In);tr(Gw);var Tn,Zw=et.MissingPointerError=(Tn=class extends er{constructor(t,r){super(`Token "${t}" does not exist.`,mg(r)),this.code="EMISSINGPOINTER"}},o(Tn,"MissingPointerError"),Tn);tr(Zw);var kn,Kw=et.InvalidPointerError=(kn=class extends er{constructor(t,r){super(`Invalid $ref pointer "${t}". Pointers must begin with "#/"`,mg(r)),this.code="EINVALIDPOINTER"}},o(kn,"InvalidPointerError"),kn);tr(Kw);function tr(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}o(tr,"setErrorName");et.isHandledError=function(e){return e instanceof er||e instanceof hg};et.normalizeError=function(e){return e.path===null&&(e.path=[]),e}});var yg=h((_M,gg)=>{"use strict";var{ParserError:Yw}=tt();gg.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 Yw(r.message,e.url)}}else return t}}});var qr=h((bM,jr)=>{"use strict";function vg(e){return typeof e>"u"||e===null}o(vg,"isNothing");function Ww(e){return typeof e=="object"&&e!==null}o(Ww,"isObject");function Qw(e){return Array.isArray(e)?e:vg(e)?[]:[e]}o(Qw,"toArray");function Jw(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(Jw,"extend");function Xw(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}o(Xw,"repeat");function eA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}o(eA,"isNegativeZero");jr.exports.isNothing=vg;jr.exports.isObject=Ww;jr.exports.toArray=Qw;jr.exports.repeat=Xw;jr.exports.isNegativeZero=eA;jr.exports.extend=Jw});var Nn=h((PM,_g)=>{"use strict";function Ci(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(Ci,"YAMLException");Ci.prototype=Object.create(Error.prototype);Ci.prototype.constructor=Ci;Ci.prototype.toString=o(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString");_g.exports=Ci});var Pg=h((OM,Sg)=>{"use strict";var bg=qr();function ql(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}o(ql,"Mark");ql.prototype.getSnippet=o(function(t,r){var n,i,s,a,c;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 c=this.buffer.slice(i,a),bg.repeat(" ",t)+n+c+s+`
|
|
17
|
+
`+bg.repeat(" ",t+this.position-i+n.length)+"^"},"getSnippet");ql.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");Sg.exports=ql});var ne=h((xM,Og)=>{"use strict";var $g=Nn(),tA=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],rA=["scalar","sequence","mapping"];function nA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}o(nA,"compileStyleAliases");function iA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(tA.indexOf(r)===-1)throw new $g('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=nA(t.styleAliases||null),rA.indexOf(this.kind)===-1)throw new $g('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}o(iA,"Type");Og.exports=iA});var Mr=h((AM,xg)=>{"use strict";var Eg=qr(),ss=Nn(),oA=ne();function Ml(e,t,r){var n=[];return e.include.forEach(function(i){r=Ml(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(Ml,"compileList");function sA(){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(sA,"compileMap");function Rn(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 ss("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ml(this,"implicit",[]),this.compiledExplicit=Ml(this,"explicit",[]),this.compiledTypeMap=sA(this.compiledImplicit,this.compiledExplicit)}o(Rn,"Schema");Rn.DEFAULT=null;Rn.create=o(function(){var t,r;switch(arguments.length){case 1:t=Rn.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new ss("Wrong number of arguments for Schema.create function")}if(t=Eg.toArray(t),r=Eg.toArray(r),!t.every(function(n){return n instanceof Rn}))throw new ss("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof oA}))throw new ss("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Rn({include:t,explicit:r})},"createSchema");xg.exports=Rn});var Ag=h((TM,wg)=>{"use strict";var aA=ne();wg.exports=new aA("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")})});var Tg=h((NM,Ig)=>{"use strict";var cA=ne();Ig.exports=new cA("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")})});var Ng=h((CM,kg)=>{"use strict";var uA=ne();kg.exports=new uA("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")})});var as=h((qM,Rg)=>{"use strict";var lA=Mr();Rg.exports=new lA({explicit:[Ag(),Tg(),Ng()]})});var jg=h((MM,Cg)=>{"use strict";var pA=ne();function fA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}o(fA,"resolveYamlNull");function dA(){return null}o(dA,"constructYamlNull");function mA(e){return e===null}o(mA,"isNull");Cg.exports=new pA("tag:yaml.org,2002:null",{kind:"scalar",resolve:fA,construct:dA,predicate:mA,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 Mg=h((LM,qg)=>{"use strict";var hA=ne();function gA(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(gA,"resolveYamlBoolean");function yA(e){return e==="true"||e==="True"||e==="TRUE"}o(yA,"constructYamlBoolean");function vA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}o(vA,"isBoolean");qg.exports=new hA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:gA,construct:yA,predicate:vA,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 Lg=h((VM,Dg)=>{"use strict";var _A=qr(),bA=ne();function SA(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}o(SA,"isHexCode");function PA(e){return 48<=e&&e<=55}o(PA,"isOctCode");function $A(e){return 48<=e&&e<=57}o($A,"isDecCode");function OA(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(!SA(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!PA(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(!$A(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}o(OA,"resolveYamlInteger");function EA(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(EA,"constructYamlInteger");function xA(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!_A.isNegativeZero(e)}o(xA,"isInteger");Dg.exports=new bA("tag:yaml.org,2002:int",{kind:"scalar",resolve:OA,construct:EA,predicate:xA,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 Bg=h((HM,Vg)=>{"use strict";var Fg=qr(),wA=ne(),AA=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 IA(e){return!(e===null||!AA.test(e)||e[e.length-1]==="_")}o(IA,"resolveYamlFloat");function TA(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(TA,"constructYamlFloat");var kA=/^[-+]?[0-9]+e/;function NA(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(Fg.isNegativeZero(e))return"-0.0";return r=e.toString(10),kA.test(r)?r.replace("e",".e"):r}o(NA,"representYamlFloat");function RA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Fg.isNegativeZero(e))}o(RA,"isFloat");Vg.exports=new wA("tag:yaml.org,2002:float",{kind:"scalar",resolve:IA,construct:TA,predicate:RA,represent:NA,defaultStyle:"lowercase"})});var Dl=h((zM,Hg)=>{"use strict";var CA=Mr();Hg.exports=new CA({include:[as()],implicit:[jg(),Mg(),Lg(),Bg()]})});var Ll=h((GM,Ug)=>{"use strict";var jA=Mr();Ug.exports=new jA({include:[Dl()]})});var Kg=h((ZM,Zg)=>{"use strict";var qA=ne(),zg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gg=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 MA(e){return e===null?!1:zg.exec(e)!==null||Gg.exec(e)!==null}o(MA,"resolveYamlTimestamp");function DA(e){var t,r,n,i,s,a,c,u=0,l=null,f,p,d;if(t=zg.exec(e),t===null&&(t=Gg.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],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),l=(f*60+p)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,a,c,u)),l&&d.setTime(d.getTime()-l),d}o(DA,"constructYamlTimestamp");function LA(e){return e.toISOString()}o(LA,"representYamlTimestamp");Zg.exports=new qA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:MA,construct:DA,instanceOf:Date,represent:LA})});var Wg=h((YM,Yg)=>{"use strict";var FA=ne();function VA(e){return e==="<<"||e===null}o(VA,"resolveYamlMerge");Yg.exports=new FA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:VA})});var Xg=h((QM,Jg)=>{"use strict";var Dr;try{Qg=require,Dr=Qg("buffer").Buffer}catch{}var Qg,BA=ne(),Fl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
19
|
+
\r`;function HA(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Fl;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(HA,"resolveYamlBinary");function UA(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Fl,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),Dr?Dr.from?Dr.from(c):new Dr(c):c}o(UA,"constructYamlBinary");function zA(e){var t="",r=0,n,i,s=e.length,a=Fl;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(zA,"representYamlBinary");function GA(e){return Dr&&Dr.isBuffer(e)}o(GA,"isBinary");Jg.exports=new BA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:HA,construct:UA,predicate:GA,represent:zA})});var ty=h((XM,ey)=>{"use strict";var ZA=ne(),KA=Object.prototype.hasOwnProperty,YA=Object.prototype.toString;function WA(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,YA.call(i)!=="[object Object]")return!1;for(s in i)if(KA.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(WA,"resolveYamlOmap");function QA(e){return e!==null?e:[]}o(QA,"constructYamlOmap");ey.exports=new ZA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:WA,construct:QA})});var ny=h((tD,ry)=>{"use strict";var JA=ne(),XA=Object.prototype.toString;function eI(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],XA.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}o(eI,"resolveYamlPairs");function tI(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(tI,"constructYamlPairs");ry.exports=new JA("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eI,construct:tI})});var oy=h((nD,iy)=>{"use strict";var rI=ne(),nI=Object.prototype.hasOwnProperty;function iI(e){if(e===null)return!0;var t,r=e;for(t in r)if(nI.call(r,t)&&r[t]!==null)return!1;return!0}o(iI,"resolveYamlSet");function oI(e){return e!==null?e:{}}o(oI,"constructYamlSet");iy.exports=new rI("tag:yaml.org,2002:set",{kind:"mapping",resolve:iI,construct:oI})});var Cn=h((oD,sy)=>{"use strict";var sI=Mr();sy.exports=new sI({include:[Ll()],implicit:[Kg(),Wg()],explicit:[Xg(),ty(),ny(),oy()]})});var cy=h((sD,ay)=>{"use strict";var aI=ne();function cI(){return!0}o(cI,"resolveJavascriptUndefined");function uI(){}o(uI,"constructJavascriptUndefined");function lI(){return""}o(lI,"representJavascriptUndefined");function pI(e){return typeof e>"u"}o(pI,"isUndefined");ay.exports=new aI("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:cI,construct:uI,predicate:pI,represent:lI})});var ly=h((cD,uy)=>{"use strict";var fI=ne();function dI(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(dI,"resolveJavascriptRegExp");function mI(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(mI,"constructJavascriptRegExp");function hI(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}o(hI,"representJavascriptRegExp");function gI(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(gI,"isRegExp");uy.exports=new fI("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:dI,construct:mI,predicate:gI,represent:hI})});var dy=h((lD,fy)=>{"use strict";var cs;try{py=require,cs=py("esprima")}catch{typeof window<"u"&&(cs=window.esprima)}var py,yI=ne();function vI(e){if(e===null)return!1;try{var t="("+e+")",r=cs.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(vI,"resolveJavascriptFunction");function _I(e){var t="("+e+")",r=cs.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(_I,"constructJavascriptFunction");function bI(e){return e.toString()}o(bI,"representJavascriptFunction");function SI(e){return Object.prototype.toString.call(e)==="[object Function]"}o(SI,"isFunction");fy.exports=new yI("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:vI,construct:_I,predicate:SI,represent:bI})});var ji=h((fD,hy)=>{"use strict";var my=Mr();hy.exports=my.DEFAULT=new my({include:[Cn()],explicit:[cy(),ly(),dy()]})});var Cy=h((dD,qi)=>{"use strict";var Rt=qr(),Py=Nn(),PI=Pg(),$y=Cn(),$I=ji(),nr=Object.prototype.hasOwnProperty,us=1,Oy=2,Ey=3,ls=4,Vl=1,OI=2,gy=3,EI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xI=/[\x85\u2028\u2029]/,wI=/[,\[\]\{\}]/,xy=/^(?:!|!!|![a-z\-]+!)$/i,wy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function yy(e){return Object.prototype.toString.call(e)}o(yy,"_class");function gt(e){return e===10||e===13}o(gt,"is_EOL");function Fr(e){return e===9||e===32}o(Fr,"is_WHITE_SPACE");function ke(e){return e===9||e===32||e===10||e===13}o(ke,"is_WS_OR_EOL");function jn(e){return e===44||e===91||e===93||e===123||e===125}o(jn,"is_FLOW_INDICATOR");function AI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}o(AI,"fromHexCode");function II(e){return e===120?2:e===117?4:e===85?8:0}o(II,"escapedHexLen");function TI(e){return 48<=e&&e<=57?e-48:-1}o(TI,"fromDecimalCode");function vy(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(vy,"simpleEscapeSequence");function kI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}o(kI,"charFromCodepoint");var Ay=new Array(256),Iy=new Array(256);for(Lr=0;Lr<256;Lr++)Ay[Lr]=vy(Lr)?1:0,Iy[Lr]=vy(Lr);var Lr;function NI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$I,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(NI,"State");function Ty(e,t){return new Py(t,new PI(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}o(Ty,"generateError");function x(e,t){throw Ty(e,t)}o(x,"throwError");function ps(e,t){e.onWarning&&e.onWarning.call(null,Ty(e,t))}o(ps,"throwWarning");var _y={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&&ps(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],xy.test(i)||x(t,"ill-formed tag handle (first argument) of the TAG directive"),nr.call(t.tagMap,i)&&x(t,'there is a previously declared suffix for "'+i+'" tag handle'),wy.test(s)||x(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=s},"handleTagDirective")};function rr(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||x(e,"expected valid JSON character");else EI.test(c)&&x(e,"the stream contains non-printable characters");e.result+=c}}o(rr,"captureSegment");function by(e,t,r,n){var i,s,a,c;for(Rt.isObject(r)||x(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],nr.call(t,s)||(t[s]=r[s],n[s]=!0)}o(by,"mergeMappings");function qn(e,t,r,n,i,s,a,c){var u,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,l=i.length;u<l;u+=1)Array.isArray(i[u])&&x(e,"nested arrays are not supported inside keys"),typeof i=="object"&&yy(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&yy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)by(e,t,s[u],r);else by(e,t,s,r);else!e.json&&!nr.call(r,i)&&nr.call(t,i)&&(e.line=a||e.line,e.position=c||e.position,x(e,"duplicated mapping key")),t[i]=s,delete r[i];return t}o(qn,"storeMappingPair");function Bl(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(Bl,"readLineBreak");function ee(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Fr(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(gt(i))for(Bl(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&&ps(e,"deficient indentation"),n}o(ee,"skipSeparationSpace");function fs(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(fs,"testDocumentSeparator");function Hl(e,t){t===1?e.result+=" ":t>1&&(e.result+=Rt.repeat(`
|
|
21
|
+
`,t-1))}o(Hl,"writeFoldedLines");function RI(e,t,r){var n,i,s,a,c,u,l,f,p=e.kind,d=e.result,m;if(m=e.input.charCodeAt(e.position),ke(m)||jn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),ke(i)||r&&jn(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),ke(i)||r&&jn(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),ke(n))break}else{if(e.position===e.lineStart&&fs(e)||r&&jn(m))break;if(gt(m))if(u=e.line,l=e.lineStart,f=e.lineIndent,ee(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=f;break}}c&&(rr(e,s,a,!1),Hl(e,e.line-u),s=a=e.position,c=!1),Fr(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return rr(e,s,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}o(RI,"readPlainScalar");function CI(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(rr(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 gt(r)?(rr(e,n,i,!0),Hl(e,ee(e,!1,t)),n=i=e.position):e.position===e.lineStart&&fs(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(CI,"readSingleQuotedScalar");function jI(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return rr(e,r,e.position,!0),e.position++,!0;if(c===92){if(rr(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),gt(c))ee(e,!1,t);else if(c<256&&Ay[c])e.result+=Iy[c],e.position++;else if((a=II(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=AI(c))>=0?s=(s<<4)+a:x(e,"expected hexadecimal character");e.result+=kI(s),e.position++}else x(e,"unknown escape sequence");r=n=e.position}else gt(c)?(rr(e,r,n,!0),Hl(e,ee(e,!1,t)),r=n=e.position):e.position===e.lineStart&&fs(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(jI,"readDoubleQuotedScalar");function qI(e,t){var r=!0,n,i=e.tag,s,a=e.anchor,c,u,l,f,p,d={},m,g,y,v;if(v=e.input.charCodeAt(e.position),v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(ee(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=i,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||x(e,"missed comma between flow collection entries"),g=m=y=null,l=f=!1,v===63&&(c=e.input.charCodeAt(e.position+1),ke(c)&&(l=f=!0,e.position++,ee(e,!0,t))),n=e.line,Mn(e,t,us,!1,!0),g=e.tag,m=e.result,ee(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===n)&&v===58&&(l=!0,v=e.input.charCodeAt(++e.position),ee(e,!0,t),Mn(e,t,us,!1,!0),y=e.result),p?qn(e,s,d,g,m,y):l?s.push(qn(e,null,d,g,m,y)):s.push(m),ee(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(qI,"readFlowCollection");function MI(e,t){var r,n,i=Vl,s=!1,a=!1,c=t,u=0,l=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Vl===i?i=p===43?gy:OI:x(e,"repeat of a chomping mode identifier");else if((f=TI(p))>=0)f===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"):(c=t+f-1,a=!0);else break;if(Fr(p)){do p=e.input.charCodeAt(++e.position);while(Fr(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!gt(p)&&p!==0)}for(;p!==0;){for(Bl(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),gt(p)){u++;continue}if(e.lineIndent<c){i===gy?e.result+=Rt.repeat(`
|
|
22
|
+
`,s?1+u:u):i===Vl&&s&&(e.result+=`
|
|
23
|
+
`);break}for(n?Fr(p)?(l=!0,e.result+=Rt.repeat(`
|
|
24
|
+
`,s?1+u:u)):l?(l=!1,e.result+=Rt.repeat(`
|
|
25
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=Rt.repeat(`
|
|
26
26
|
`,u):e.result+=Rt.repeat(`
|
|
27
|
-
`,
|
|
28
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new
|
|
27
|
+
`,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!gt(p)&&p!==0;)p=e.input.charCodeAt(++e.position);rr(e,r,e.position,!1)}return!0}o(MI,"readBlockScalar");function Sy(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!ke(a)));){if(c=!0,e.position++,ee(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Mn(e,t,Ey,!1,!0),s.push(e.result),ee(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)x(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}o(Sy,"readBlockSequence");function DI(e,t,r){var n,i,s,a,c=e.tag,u=e.anchor,l={},f={},p=null,d=null,m=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&&(qn(e,l,f,p,d,null),p=d=m=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(Mn(e,r,Oy,!1,!0))if(e.line===s){for(v=e.input.charCodeAt(e.position);Fr(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&&(qn(e,l,f,p,d,null),p=d=m=null),y=!0,g=!1,i=!1,p=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=c,e.anchor=u,!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=c,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Mn(e,t,ls,!0,i)&&(g?d=e.result:m=e.result),g||(qn(e,l,f,p,d,m,s,a),p=d=m=null),ee(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&&qn(e,l,f,p,d,null),y&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=l),y}o(DI,"readBlockMapping");function LI(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),xy.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),wI.test(s)&&x(e,"tag suffix cannot contain flow indicator characters")}return s&&!wy.test(s)&&x(e,"tag name cannot contain such characters: "+s),r?e.tag=s:nr.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(LI,"readTagProperty");function FI(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)&&!jn(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(FI,"readAnchorProperty");function VI(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)&&!jn(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),nr.call(e.anchorMap,r)||x(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ee(e,!0,-1),!0}o(VI,"readAlias");function Mn(e,t,r,n,i){var s,a,c,u=1,l=!1,f=!1,p,d,m,g,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=ls===r||Ey===r,n&&ee(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;LI(e)||FI(e);)ee(e,!0,-1)?(l=!0,c=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=l||i),(u===1||ls===r)&&(us===r||Oy===r?g=t:g=t+1,y=e.position-e.lineStart,u===1?c&&(Sy(e,y)||DI(e,y,g))||qI(e,g)?f=!0:(a&&MI(e,g)||CI(e,g)||jI(e,g)?f=!0:VI(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&x(e,"alias node should not have any properties")):RI(e,g,us===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=c&&Sy(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+'"'),p=0,d=e.implicitTypes.length;p<d;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else nr.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&x(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.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||f}o(Mn,"composeNode");function BI(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&&(ee(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(;Fr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!gt(a));break}if(gt(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&&Bl(e),nr.call(_y,n)?_y[n](e,n,i):ps(e,'unknown document directive "'+n+'"')}if(ee(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,ee(e,!0,-1)):s&&x(e,"directives end mark is expected"),Mn(e,e.lineIndent-1,ls,!1,!0),ee(e,!0,-1),e.checkLineBreaks&&xI.test(e.input.slice(t,e.position))&&ps(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&fs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ee(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(BI,"readDocument");function ky(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 NI(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;)BI(r);return r.documents}o(ky,"loadDocuments");function Ny(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=ky(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}o(Ny,"loadAll");function Ry(e,t){var r=ky(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Py("expected a single document in the stream, but found more")}}o(Ry,"load");function HI(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Ny(e,t,Rt.extend({schema:$y},r))}o(HI,"safeLoadAll");function UI(e,t){return Ry(e,Rt.extend({schema:$y},t))}o(UI,"safeLoad");qi.exports.loadAll=Ny;qi.exports.load=Ry;qi.exports.safeLoadAll=HI;qi.exports.safeLoad=UI});var n0=h((hD,Zl)=>{"use strict";var Di=qr(),Li=Nn(),zI=ji(),GI=Cn(),By=Object.prototype.toString,Hy=Object.prototype.hasOwnProperty,ZI=9,Mi=10,KI=13,YI=32,WI=33,QI=34,Uy=35,JI=37,XI=38,eT=39,tT=42,zy=44,rT=45,Gy=58,nT=61,iT=62,oT=63,sT=64,Zy=91,Ky=93,aT=96,Yy=123,cT=124,Wy=125,he={};he[0]="\\0";he[7]="\\a";he[8]="\\b";he[9]="\\t";he[10]="\\n";he[11]="\\v";he[12]="\\f";he[13]="\\r";he[27]="\\e";he[34]='\\"';he[92]="\\\\";he[133]="\\N";he[160]="\\_";he[8232]="\\L";he[8233]="\\P";var uT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function lT(e,t){var r,n,i,s,a,c,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&Hy.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[a]=c;return r}o(lT,"compileStyleMap");function jy(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 Li("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Di.repeat("0",n-t.length)+t}o(jy,"encodeHex");function pT(e){this.schema=e.schema||zI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Di.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=lT(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(pT,"State");function qy(e,t){for(var r=Di.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
|
|
29
29
|
`,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
30
|
-
`&&(
|
|
31
|
-
`+Di.repeat(" ",e.indent*t)}
|
|
30
|
+
`&&(s+=r),s+=a;return s}o(qy,"indentString");function Ul(e,t){return`
|
|
31
|
+
`+Di.repeat(" ",e.indent*t)}o(Ul,"generateNextLine");function fT(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(fT,"testImplicitResolving");function Gl(e){return e===YI||e===ZI}o(Gl,"isWhitespace");function Dn(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(Dn,"isPrintable");function dT(e){return Dn(e)&&!Gl(e)&&e!==65279&&e!==KI&&e!==Mi}o(dT,"isNsChar");function My(e,t){return Dn(e)&&e!==65279&&e!==zy&&e!==Zy&&e!==Ky&&e!==Yy&&e!==Wy&&e!==Gy&&(e!==Uy||t&&dT(t))}o(My,"isPlainSafe");function mT(e){return Dn(e)&&e!==65279&&!Gl(e)&&e!==rT&&e!==oT&&e!==Gy&&e!==zy&&e!==Zy&&e!==Ky&&e!==Yy&&e!==Wy&&e!==Uy&&e!==XI&&e!==tT&&e!==WI&&e!==cT&&e!==nT&&e!==iT&&e!==eT&&e!==QI&&e!==JI&&e!==sT&&e!==aT}o(mT,"isPlainSafeFirst");function Qy(e){var t=/^\n* /;return t.test(e)}o(Qy,"needIndentIndicator");var Jy=1,Xy=2,e0=3,t0=4,ds=5;function hT(e,t,r,n,i){var s,a,c,u=!1,l=!1,f=n!==-1,p=-1,d=mT(e.charCodeAt(0))&&!Gl(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Dn(a))return ds;c=s>0?e.charCodeAt(s-1):null,d=d&&My(a,c)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===Mi)u=!0,f&&(l=l||s-p-1>n&&e[p+1]!==" ",p=s);else if(!Dn(a))return ds;c=s>0?e.charCodeAt(s-1):null,d=d&&My(a,c)}l=l||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!l?d&&!i(e)?Jy:Xy:r>9&&Qy(e)?ds:l?t0:e0}o(hT,"chooseScalarStyle");function gT(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&uT.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 c(u){return fT(e,u)}switch(o(c,"testAmbiguity"),hT(t,a,e.indent,s,c)){case Jy:return t;case Xy:return"'"+t.replace(/'/g,"''")+"'";case e0:return"|"+Dy(t,e.indent)+Ly(qy(t,i));case t0:return">"+Dy(t,e.indent)+Ly(qy(yT(t,s),i));case ds:return'"'+vT(t,s)+'"';default:throw new Li("impossible error: invalid scalar style")}}()}o(gT,"writeScalar");function Dy(e,t){var r=Qy(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 l=l!==-1?l:e.length,r.lastIndex=l,
|
|
38
|
-
`||e[0]===" ",
|
|
39
|
-
`:"")+
|
|
40
|
-
`+e.slice(i,
|
|
34
|
+
`),s=i?"+":n?"":"-";return r+s+`
|
|
35
|
+
`}o(Dy,"blockHeader");function Ly(e){return e[e.length-1]===`
|
|
36
|
+
`?e.slice(0,-1):e}o(Ly,"dropEndingNewline");function yT(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,Fy(e.slice(0,l),t)}(),i=e[0]===`
|
|
38
|
+
`||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],u=a[2];s=u[0]===" ",n+=c+(!i&&!s&&u!==""?`
|
|
39
|
+
`:"")+Fy(u,t),i=s}return n}o(yT,"foldString");function Fy(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,u="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,u+=`
|
|
40
|
+
`+e.slice(i,s),i=s+1),a=c;return u+=`
|
|
41
41
|
`,e.length-i>t&&a>i?u+=e.slice(i,a)+`
|
|
42
|
-
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}
|
|
43
|
-
`:""}
|
|
42
|
+
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}o(Fy,"foldLine");function vT(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+=jy((r-55296)*1024+n-56320+65536),s++;continue}i=he[r],t+=!i&&Dn(r)?e[s]:i||jy(r)}return t}o(vT,"escapeString");function _T(e,t,r){var n="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Vr(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}o(_T,"writeFlowSequence");function bT(e,t,r,n){var i="",s=e.tag,a,c;for(a=0,c=r.length;a<c;a+=1)Vr(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(i+=Ul(e,t)),e.dump&&Mi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}o(bT,"writeBlockSequence");function ST(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,u,l,f;for(a=0,c=s.length;a<c;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],l=r[u],Vr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Vr(e,t,l,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}o(ST,"writeFlowMapping");function PT(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,u,l,f,p,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Li("sortKeys must be a boolean or a function");for(c=0,u=a.length;c<u;c+=1)d="",(!n||c!==0)&&(d+=Ul(e,t)),l=a[c],f=r[l],Vr(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Mi===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=Ul(e,t)),Vr(e,t+1,f,!0,p)&&(e.dump&&Mi===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=s,e.dump=i||"{}"}o(PT,"writeBlockMapping");function Vy(e,t,r){var n,i,s,a,c,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.tag:"?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,By.call(c.represent)==="[object Function]")n=c.represent(t,u);else if(Hy.call(c.represent,u))n=c.represent[u](t,u);else throw new Li("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}o(Vy,"detectType");function Vr(e,t,r,n,i,s){e.tag=null,e.dump=r,Vy(e,r,!1)||Vy(e,r,!0);var a=By.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,l;if(c&&(u=e.duplicates.indexOf(r),l=u!==-1),(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&t>0)&&(i=!1),l&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&l&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(PT(e,t,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(ST(e,t,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(bT(e,f,e.dump,i),l&&(e.dump="&ref_"+u+e.dump)):(_T(e,f,e.dump),l&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&gT(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new Li("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}o(Vr,"writeNode");function $T(e,t){var r=[],n=[],i,s;for(zl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}o($T,"getDuplicateReferences");function zl(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)zl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)zl(e[n[i]],t,r)}o(zl,"inspectNode");function r0(e,t){t=t||{};var r=new pT(t);return r.noRefs||$T(e,r),Vr(r,0,e,!0,!0)?r.dump+`
|
|
43
|
+
`:""}o(r0,"dump");function OT(e,t){return r0(e,Di.extend({schema:GI},t))}o(OT,"safeDump");Zl.exports.dump=r0;Zl.exports.safeDump=OT});var o0=h((yD,K)=>{"use strict";var ms=Cy(),i0=n0();function hs(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}o(hs,"deprecated");K.exports.Type=ne();K.exports.Schema=Mr();K.exports.FAILSAFE_SCHEMA=as();K.exports.JSON_SCHEMA=Dl();K.exports.CORE_SCHEMA=Ll();K.exports.DEFAULT_SAFE_SCHEMA=Cn();K.exports.DEFAULT_FULL_SCHEMA=ji();K.exports.load=ms.load;K.exports.loadAll=ms.loadAll;K.exports.safeLoad=ms.safeLoad;K.exports.safeLoadAll=ms.safeLoadAll;K.exports.dump=i0.dump;K.exports.safeDump=i0.safeDump;K.exports.YAMLException=Nn();K.exports.MINIMAL_SCHEMA=as();K.exports.SAFE_SCHEMA=Cn();K.exports.DEFAULT_SCHEMA=ji();K.exports.scan=hs("scan");K.exports.parse=hs("parse");K.exports.compose=hs("compose");K.exports.addConstructor=hs("addConstructor")});var a0=h((_D,s0)=>{"use strict";var ET=o0();s0.exports=ET});var u0=h((bD,c0)=>{"use strict";var{ParserError:xT}=tt(),wT=a0();c0.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 wT.safeLoad(t)}catch(r){throw new xT(r.message,e.url)}else return t}}});var p0=h((SD,l0)=>{"use strict";var{ParserError:AT}=tt(),IT=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;l0.exports={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&IT.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 AT("data is not text",e.url)}}});var d0=h((PD,f0)=>{"use strict";var TT=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;f0.exports={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&TT.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}}});var g0=h(($D,h0)=>{"use strict";var kT=require("fs"),{ono:Kl}=Ye(),m0=Re(),{ResolverError:Yl}=tt();h0.exports={order:100,canRead(e){return m0.isFileSystemPath(e.url)},read(e){return new Promise((t,r)=>{let n;try{n=m0.toFileSystemPath(e.url)}catch(i){r(new Yl(Kl.uri(i,`Malformed URI: ${e.url}`),e.url))}try{kT.readFile(n,(i,s)=>{i?r(new Yl(Kl(i,`Error opening file "${n}"`),n)):t(s)})}catch(i){r(new Yl(Kl(i,`Error opening file "${n}"`),n))}})}}});var b0=h((OD,_0)=>{"use strict";var NT=require("http"),RT=require("https"),{ono:gs}=Ye(),Fi=Re(),{ResolverError:y0}=tt();_0.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Fi.isHttp(e.url)},read(e){let t=Fi.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=Fi.parse(location.href).protocol),v0(t,this)}};function v0(e,t,r){return new Promise((n,i)=>{e=Fi.parse(e),r=r||[],r.push(e.href),CT(e,t).then(s=>{if(s.statusCode>=400)throw gs({status:s.statusCode},`HTTP ERROR ${s.statusCode}`);if(s.statusCode>=300)if(r.length>t.redirects)i(new y0(gs({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(f)}s(u,"onParsed");function l(f){!f&&t.continueOnError?i(new tk(e.url)):!f||!("error"in f)?i(np.syntax(`Unable to parse ${e.url}`)):f.error instanceof U0?i(f.error):i(new U0(f.error.message,e.url))}s(l,"onError")})}s(sk,"parseFile");function ak(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(ak,"isEmpty")});var Y0=h((L8,K0)=>{"use strict";var G0=Ln(),ck=Vi(),uk=ip(),Hi=Ne(),{isHandledError:lk}=Xe();K0.exports=pk;function pk(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=op(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}s(pk,"resolveExternal");function op(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(G0.isExternal$Ref(e))i.push(Z0(e,t,r,n));else for(let o of Object.keys(e)){let a=ck.join(t,o),c=e[o];G0.isExternal$Ref(c)?i.push(Z0(c,a,r,n)):i=i.concat(op(c,a,r,n))}return i}s(op,"crawl");async function Z0(e,t,r,n){let i=Hi.resolve(t,e.$ref),o=Hi.stripHash(i);if(e=r._$refs[o],e)return Promise.resolve(e.value);try{let a=await uk(i,r,n),c=op(a,o+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!lk(a))throw a;return r._$refs[o]&&(a.source=Hi.stripHash(t),a.path=Hi.safePointerToPath(Hi.getHash(t))),[]}}s(Z0,"resolve$Ref")});var J0=h((V8,Q0)=>{"use strict";var _s=Ln(),Ui=Vi(),sp=Ne();Q0.exports=fk;function fk(e,t){let r=[];ap(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),dk(r)}s(fk,"bundle");function ap(e,t,r,n,i,o,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(_s.isAllowed$Ref(u))W0(e,t,r,n,i,o,a,c);else{let l=Object.keys(u).sort((f,p)=>f==="definitions"?-1:p==="definitions"?1:f.length-p.length);for(let f of l){let p=Ui.join(r,f),d=Ui.join(n,f),m=u[f];_s.isAllowed$Ref(m)?W0(u,f,r,d,i,o,a,c):ap(u,f,p,d,i,o,a,c)}}}s(ap,"crawl");function W0(e,t,r,n,i,o,a,c){let u=t===null?e:e[t],l=sp.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=Ui.parse(n).length,d=sp.stripHash(f.path),m=sp.getHash(f.path),g=d!==a._root$Ref.path,y=_s.isExtended$Ref(u);i+=f.indirections;let v=mk(o,e,t);if(v)if(p<v.depth||i<v.indirections)hk(o,v);else return;o.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:d,hash:m,value:f.value,circular:f.circular,extended:y,external:g,indirections:i}),v||ap(f.value,null,f.path,n,i+1,o,a,c)}s(W0,"inventory$Ref");function dk(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=Ui.join(n,Ui.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=_s.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}s(dk,"remap");function mk(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(mk,"findInInventory");function hk(e,t){let r=e.indexOf(t);e.splice(r,1)}s(hk,"removeFromInventory")});var lp=h((H8,rv)=>{"use strict";var cp=Ln(),X0=Vi(),{ono:gk}=Ze(),yk=Ne();rv.exports=vk;function vk(e,t){let r=up(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}s(vk,"dereference");function up(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),cp.isAllowed$Ref(e,o))a=ev(e,t,r,n,i,o),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=X0.join(t,u),f=X0.join(r,u),p=e[u],d=!1;cp.isAllowed$Ref(p,o)?(a=ev(p,l,f,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=up(p,l,f,n,i,o),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=tv(l,i,o),c.circular=c.circular||d}n.pop()}return c}s(up,"crawl");function ev(e,t,r,n,i,o){let a=yk.resolve(t,e.$ref),c=i._resolve(a,t,o);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&tv(t,i,o);let f=cp.dereference(e,c.value);if(!l){let p=up(f,c.path,r,n,i,o);l=p.circular,f=p.value}return l&&!u&&o.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}s(ev,"dereference$Ref");function tv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw gk.reference(`Circular $ref pointer found at ${e}`);return!0}s(tv,"foundCircularReference")});var sv=h((z8,gt)=>{"use strict";var ov=L0(),_k=ip(),bs=Jl(),bk=Y0(),Sk=J0(),Pk=lp(),Fn=Ne(),{JSONParserError:$k,InvalidPointerError:Ok,MissingPointerError:Ek,ResolverError:xk,ParserError:wk,UnmatchedParserError:Ak,UnmatchedResolverError:Ik,isHandledError:Tk,JSONParserErrorGroup:nv}=Xe(),tt=ep(),{ono:iv}=Ze();gt.exports=ht;gt.exports.default=ht;gt.exports.JSONParserError=$k;gt.exports.InvalidPointerError=Ok;gt.exports.MissingPointerError=Ek;gt.exports.ResolverError=xk;gt.exports.ParserError=wk;gt.exports.UnmatchedParserError=Ak;gt.exports.UnmatchedResolverError=Ik;function ht(){this.schema=null,this.$refs=new ov}s(ht,"$RefParser");ht.parse=s(function(t,r,n,i){let o=this,a=new o;return a.parse.apply(a,arguments)},"parse");ht.prototype.parse=s(async function(t,r,n,i){let o=bs(arguments),a;if(!o.path&&!o.schema){let l=iv(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return tt(o.callback,Promise.reject(l))}this.schema=null,this.$refs=new ov;let c="http";if(Fn.isFileSystemPath(o.path)&&(o.path=Fn.fromFileSystemPath(o.path),c="file"),o.path=Fn.resolve(Fn.cwd(),o.path),o.schema&&typeof o.schema=="object"){let l=this.$refs._add(o.path);l.value=o.schema,l.pathType=c,a=Promise.resolve(o.schema)}else a=_k(o.path,this.$refs,o.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,tt(o.callback,Promise.resolve(u.schema));if(o.options.continueOnError)return u.schema=null,tt(o.callback,Promise.resolve(u.schema));throw iv.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!o.options.continueOnError||!Tk(l)?tt(o.callback,Promise.reject(l)):(this.$refs._$refs[Fn.stripHash(o.path)]&&this.$refs._$refs[Fn.stripHash(o.path)].addError(l),tt(o.callback,Promise.resolve(null)))}},"parse");ht.resolve=s(function(t,r,n,i){let o=this,a=new o;return a.resolve.apply(a,arguments)},"resolve");ht.prototype.resolve=s(async function(t,r,n,i){let o=this,a=bs(arguments);try{return await this.parse(a.path,a.schema,a.options),await bk(o,a.options),pp(o),tt(a.callback,Promise.resolve(o.$refs))}catch(c){return tt(a.callback,Promise.reject(c))}},"resolve");ht.bundle=s(function(t,r,n,i){let o=this,a=new o;return a.bundle.apply(a,arguments)},"bundle");ht.prototype.bundle=s(async function(t,r,n,i){let o=this,a=bs(arguments);try{return await this.resolve(a.path,a.schema,a.options),Sk(o,a.options),pp(o),tt(a.callback,Promise.resolve(o.schema))}catch(c){return tt(a.callback,Promise.reject(c))}},"bundle");ht.dereference=s(function(t,r,n,i){let o=this,a=new o;return a.dereference.apply(a,arguments)},"dereference");ht.prototype.dereference=s(async function(t,r,n,i){let o=this,a=bs(arguments);try{return await this.resolve(a.path,a.schema,a.options),Pk(o,a.options),pp(o),tt(a.callback,Promise.resolve(o.schema))}catch(c){return tt(a.callback,Promise.reject(c))}},"dereference");function pp(e){if(nv.getParserErrors(e).length>0)throw new nv(e)}s(pp,"finalize")});var pv=h((Z8,lv)=>{"use strict";var kk=kl(),Nk=Cl(),av=Jl(),cv=vo(),uv=E0(),Ss=ep(),{ono:rt}=Ze(),Vr=sv(),Rk=lp();lv.exports=yt;function yt(){Vr.apply(this,arguments)}s(yt,"SwaggerParser");cv.inherits(yt,Vr);yt.parse=Vr.parse;yt.resolve=Vr.resolve;yt.bundle=Vr.bundle;yt.dereference=Vr.dereference;Object.defineProperty(yt.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});yt.prototype.parse=async function(e,t,r,n){let i=av(arguments);i.options=new uv(i.options);try{let o=await Vr.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 rt.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof o.swagger=="number")throw rt.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof o.info.version=="number")throw rt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(o.swagger!=="2.0")throw rt.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 rt.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 rt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw rt.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof o.openapi=="number")throw rt.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof o.info.version=="number")throw rt.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(o.openapi)===-1)throw rt.syntax(`Unsupported OpenAPI version: ${o.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}cv.fixOasRelativeServers(o,i.path)}return Ss(i.callback,Promise.resolve(o))}catch(o){return Ss(i.callback,Promise.reject(o))}};yt.validate=function(e,t,r,n){let i=this,o=new i;return o.validate.apply(o,arguments)};yt.prototype.validate=async function(e,t,r,n){let i=this,o=av(arguments);o.options=new uv(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&&(kk(i.api),i.$refs.circular)){if(a===!0)Rk(i,o.options);else if(a===!1)throw rt.reference("The API contains circular references")}return o.options.validate.spec&&Nk(i.api),Ss(o.callback,Promise.resolve(i.schema))}catch(c){return Ss(o.callback,Promise.reject(c))}}});var Oe=h(Re=>{"use strict";Re.__esModule=!0;Re.extend=w_;Re.indexOf=PN;Re.escapeExpression=$N;Re.isEmpty=ON;Re.createFrame=EN;Re.blockParams=xN;Re.appendContextPath=wN;var vN={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},_N=/[&<>"'`=]/g,bN=/[&<>"'`=]/;function SN(e){return vN[e]}s(SN,"escapeChar");function w_(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}s(w_,"extend");var Dp=Object.prototype.toString;Re.toString=Dp;var Mp=s(function(t){return typeof t=="function"},"isFunction");Mp(/x/)&&(Re.isFunction=Mp=s(function(e){return typeof e=="function"&&Dp.call(e)==="[object Function]"},"isFunction"));Re.isFunction=Mp;var A_=Array.isArray||function(e){return e&&typeof e=="object"?Dp.call(e)==="[object Array]":!1};Re.isArray=A_;function PN(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}s(PN,"indexOf");function $N(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return bN.test(e)?e.replace(_N,SN):e}s($N,"escapeExpression");function ON(e){return!e&&e!==0?!0:!!(A_(e)&&e.length===0)}s(ON,"isEmpty");function EN(e){var t=w_({},e);return t._parent=e,t}s(EN,"createFrame");function xN(e,t){return e.path=t,e}s(xN,"blockParams");function wN(e,t){return(e?e+".":"")+t}s(wN,"appendContextPath")});var He=h((Fs,I_)=>{"use strict";Fs.__esModule=!0;var Lp=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Fp(e,t){var r=t&&t.loc,n=void 0,i=void 0,o=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,a=r.end.column,e+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,e),u=0;u<Lp.length;u++)this[Lp[u]]=c[Lp[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Fp);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}s(Fp,"Exception");Fp.prototype=new Error;Fs.default=Fp;I_.exports=Fs.default});var k_=h((Vs,T_)=>{"use strict";Vs.__esModule=!0;var Vp=Oe();Vs.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(Vp.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 o=Vp.createFrame(r.data);o.contextPath=Vp.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(t,r)})};T_.exports=Vs.default});var R_=h((Bs,N_)=>{"use strict";Bs.__esModule=!0;function AN(e){return e&&e.__esModule?e:{default:e}}s(AN,"_interopRequireDefault");var ro=Oe(),IN=He(),TN=AN(IN);Bs.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new TN.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=ro.appendContextPath(r.data.contextPath,r.ids[0])+"."),ro.isFunction(t)&&(t=t.call(this)),r.data&&(c=ro.createFrame(r.data));function l(g,y,v){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!v,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:ro.blockParams([t[g],g],[u+g,null])})}if(s(l,"execIteration"),t&&typeof t=="object")if(ro.isArray(t))for(var f=t.length;o<f;o++)o in t&&l(o,o,o===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var p=[],d=t[Symbol.iterator](),m=d.next();!m.done;m=d.next())p.push(m.value);t=p;for(var f=t.length;o<f;o++)l(o,o,o===t.length-1)}else(function(){var g=void 0;Object.keys(t).forEach(function(y){g!==void 0&&l(g,o-1),g=y,o++}),g!==void 0&&l(g,o-1,!0)})();return o===0&&(a=i(this)),a})};N_.exports=Bs.default});var q_=h((Hs,C_)=>{"use strict";Hs.__esModule=!0;function kN(e){return e&&e.__esModule?e:{default:e}}s(kN,"_interopRequireDefault");var NN=He(),RN=kN(NN);Hs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new RN.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};C_.exports=Hs.default});var L_=h((Us,D_)=>{"use strict";Us.__esModule=!0;function CN(e){return e&&e.__esModule?e:{default:e}}s(CN,"_interopRequireDefault");var j_=Oe(),qN=He(),M_=CN(qN);Us.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new M_.default("#if requires exactly one argument");return j_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||j_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new M_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};D_.exports=Us.default});var V_=h((zs,F_)=>{"use strict";zs.__esModule=!0;zs.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)})};F_.exports=zs.default});var H_=h((Gs,B_)=>{"use strict";Gs.__esModule=!0;Gs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};B_.exports=Gs.default});var z_=h((Zs,U_)=>{"use strict";Zs.__esModule=!0;function jN(e){return e&&e.__esModule?e:{default:e}}s(jN,"_interopRequireDefault");var no=Oe(),MN=He(),DN=jN(MN);Zs.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new DN.default("#with requires exactly one argument");no.isFunction(t)&&(t=t.call(this));var n=r.fn;if(no.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=no.createFrame(r.data),i.contextPath=no.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:no.blockParams([t],[i&&i.contextPath])})})};U_.exports=Zs.default});var Bp=h(Ks=>{"use strict";Ks.__esModule=!0;Ks.registerDefaultHelpers=XN;Ks.moveHelperToHooks=eR;function Kr(e){return e&&e.__esModule?e:{default:e}}s(Kr,"_interopRequireDefault");var LN=k_(),FN=Kr(LN),VN=R_(),BN=Kr(VN),HN=q_(),UN=Kr(HN),zN=L_(),GN=Kr(zN),ZN=V_(),KN=Kr(ZN),YN=H_(),WN=Kr(YN),QN=z_(),JN=Kr(QN);function XN(e){FN.default(e),BN.default(e),UN.default(e),GN.default(e),KN.default(e),WN.default(e),JN.default(e)}s(XN,"registerDefaultHelpers");function eR(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}s(eR,"moveHelperToHooks")});var Z_=h((Ys,G_)=>{"use strict";Ys.__esModule=!0;var tR=Oe();Ys.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var o=t;return r.partials||(r.partials={},o=s(function(a,c){var u=n.partials;n.partials=tR.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,o})};G_.exports=Ys.default});var K_=h(Hp=>{"use strict";Hp.__esModule=!0;Hp.registerDefaultDecorators=oR;function rR(e){return e&&e.__esModule?e:{default:e}}s(rR,"_interopRequireDefault");var nR=Z_(),iR=rR(nR);function oR(e){iR.default(e)}s(oR,"registerDefaultDecorators")});var Up=h((Ws,Y_)=>{"use strict";Ws.__esModule=!0;var sR=Oe(),zn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:s(function(t){if(typeof t=="string"){var r=sR.indexOf(zn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:s(function(t){if(t=zn.lookupLevel(t),typeof console<"u"&&zn.lookupLevel(zn.level)<=t){var r=zn.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}},"log")};Ws.default=zn;Y_.exports=Ws.default});var W_=h(zp=>{"use strict";zp.__esModule=!0;zp.createNewLookupObject=cR;var aR=Oe();function cR(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return aR.extend.apply(void 0,[Object.create(null)].concat(t))}s(cR,"createNewLookupObject")});var Gp=h(io=>{"use strict";io.__esModule=!0;io.createProtoAccessControl=fR;io.resultIsAllowed=dR;io.resetLoggedProperties=hR;function uR(e){return e&&e.__esModule?e:{default:e}}s(uR,"_interopRequireDefault");var Q_=W_(),lR=Up(),pR=uR(lR),Qs=Object.create(null);function fR(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:Q_.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:Q_.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}s(fR,"createProtoAccessControl");function dR(e,t,r){return J_(typeof e=="function"?t.methods:t.properties,r)}s(dR,"resultIsAllowed");function J_(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(mR(t),!1)}s(J_,"checkWhiteList");function mR(e){Qs[e]!==!0&&(Qs[e]=!0,pR.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
46
|
+
`)}`)));else if(s.headers.location){let a=Fi.resolve(e,s.headers.location);v0(a,t,r).then(n,i)}else throw gs({status:s.statusCode},`HTTP ${s.statusCode} redirect with no location header`);else n(s.body||Buffer.alloc(0))}).catch(s=>{i(new y0(gs(s,`Error downloading ${e.href}`),e.href))})})}o(v0,"download");function CT(e,t){return new Promise((r,n)=>{let s=(e.protocol==="https:"?RT:NT).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",c=>{a.body=Buffer.concat([a.body,Buffer.from(c)])}),a.on("error",n),a.on("end",()=>{r(a)})})})}o(CT,"get")});var Jl=h((xD,P0)=>{"use strict";var jT=yg(),qT=u0(),MT=p0(),DT=d0(),LT=g0(),FT=b0();P0.exports=Ql;function Ql(e){Wl(this,Ql.defaults),Wl(this,e)}o(Ql,"$RefParserOptions");Ql.defaults={parse:{json:jT,yaml:qT,text:MT,binary:DT},resolve:{file:LT,http:FT,external:!0},continueOnError:!1,dereference:{circular:!0}};function Wl(e,t){if(S0(t)){let r=Object.keys(t);for(let n=0;n<r.length;n++){let i=r[n],s=t[i],a=e[i];S0(s)?e[i]=Wl(a||{},s):s!==void 0&&(e[i]=s)}}return e}o(Wl,"merge");function S0(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}o(S0,"isMergeable")});var Xl=h((AD,O0)=>{"use strict";var $0=Jl();O0.exports=VT;function VT(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 $0||(n=new $0(n)),{path:t,schema:r,options:n,callback:i}}o(VT,"normalizeArgs")});var x0=h((TD,E0)=>{"use strict";var ep=Jl(),BT=Nl(),HT=jl(),UT=require("util");E0.exports=ys;function ys(e){ep.call(this,ys.defaults),ep.apply(this,arguments)}o(ys,"ParserOptions");ys.defaults={validate:{schema:BT,spec:HT}};UT.inherits(ys,ep)});var A0=h((ND,w0)=>{"use strict";function zT(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:o(function(t){setTimeout(t,0)},"next")}o(zT,"makeNext");w0.exports=zT()});var tp=h((CD,T0)=>{"use strict";var I0=A0();T0.exports=o(function(t,r){if(t){r.then(function(n){I0(function(){t(null,n)})},function(n){I0(function(){t(n)})});return}else return r},"maybe")});var Vi=h((qD,R0)=>{"use strict";R0.exports=ir;var rp=Ln(),np=Re(),{JSONParserError:GT,InvalidPointerError:ZT,MissingPointerError:KT,isHandledError:YT}=tt(),WT=/\//g,QT=/~/g,JT=/~1/g,XT=/~0/g;function ir(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}o(ir,"Pointer");ir.prototype.resolve=function(e,t,r){let n=ir.parse(this.path,this.originalPath);this.value=N0(e);for(let i=0;i<n.length;i++){if(vs(this,t)&&(this.path=ir.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 KT(s,this.originalPath);this.value=this.value[s]}return(!this.value||this.value.$ref&&np.resolve(this.path,this.value.$ref)!==r)&&vs(this,t),this};ir.prototype.set=function(e,t,r){let n=ir.parse(this.path),i;if(n.length===0)return this.value=t,t;this.value=N0(e);for(let s=0;s<n.length-1;s++)vs(this,r),i=n[s],this.value&&this.value[i]!==void 0?this.value=this.value[i]:this.value=k0(this,i,{});return vs(this,r),i=n[n.length-1],k0(this,i,t),e};ir.parse=function(e,t){let r=np.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let n=0;n<r.length;n++)r[n]=decodeURIComponent(r[n].replace(JT,"/").replace(XT,"~"));if(r[0]!=="")throw new ZT(r,t===void 0?e:t);return r.slice(1)};ir.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(QT,"~0").replace(WT,"~1"))}return e};function vs(e,t){if(rp.isAllowed$Ref(e.value,t)){let r=np.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,rp.isExtended$Ref(e.value)?(e.value=rp.dereference(e.value,n.value),!1):(e.$ref=n.$ref,e.path=n.path,e.value=n.value,!0)}}}o(vs,"resolveIf$Ref");function k0(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 GT(`Error assigning $ref pointer "${e.path}".
|
|
47
|
+
Cannot set "${t}" of a non-object.`);return r}o(k0,"setValue");function N0(e){if(YT(e))throw e;return e}o(N0,"unwrapOrThrow")});var Ln=h((DD,q0)=>{"use strict";q0.exports=Pe;var j0=Vi(),{InvalidPointerError:ek,isHandledError:tk,normalizeError:C0}=tt(),{safePointerToPath:rk,stripHash:nk,getHash:ik}=Re();function Pe(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}o(Pe,"$Ref");Pe.prototype.addError=function(e){this.errors===void 0&&(this.errors=[]),Array.isArray(e.errors)?this.errors.push(...e.errors.map(C0)):this.errors.push(C0(e))};Pe.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch{return!1}};Pe.prototype.get=function(e,t){return this.resolve(e,t).value};Pe.prototype.resolve=function(e,t,r,n){let i=new j0(this,e,r);try{return i.resolve(this.value,t,n)}catch(s){if(!t||!t.continueOnError||!tk(s))throw s;return s.path===null&&(s.path=rk(ik(n))),s instanceof ek&&(s.source=nk(n)),this.addError(s),null}};Pe.prototype.set=function(e,t){let r=new j0(this,e);this.value=r.set(this.value,t)};Pe.is$Ref=function(e){return e&&typeof e=="object"&&typeof e.$ref=="string"&&e.$ref.length>0};Pe.isExternal$Ref=function(e){return Pe.is$Ref(e)&&e.$ref[0]!=="#"};Pe.isAllowed$Ref=function(e,t){if(Pe.is$Ref(e)){if(e.$ref.substr(0,2)==="#/"||e.$ref==="#")return!0;if(e.$ref[0]!=="#"&&(!t||t.resolve.external))return!0}};Pe.isExtended$Ref=function(e){return Pe.is$Ref(e)&&Object.keys(e).length>1};Pe.dereference=function(e,t){if(t&&typeof t=="object"&&Pe.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 F0=h((FD,L0)=>{"use strict";var{ono:M0}=Ye(),ok=Ln(),or=Re();L0.exports=rt;function rt(){this.circular=!1,this._$refs={},this._root$Ref=null}o(rt,"$Refs");rt.prototype.paths=function(e){return D0(this._$refs,arguments).map(r=>r.decoded)};rt.prototype.values=function(e){let t=this._$refs;return D0(t,arguments).reduce((n,i)=>(n[i.decoded]=t[i.encoded].value,n),{})};rt.prototype.toJSON=rt.prototype.values;rt.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch{return!1}};rt.prototype.get=function(e,t){return this._resolve(e,"",t).value};rt.prototype.set=function(e,t){let r=or.resolve(this._root$Ref.path,e),n=or.stripHash(r),i=this._$refs[n];if(!i)throw M0(`Error resolving $ref pointer "${e}".
|
|
48
|
+
"${n}" not found.`);i.set(r,t)};rt.prototype._add=function(e){let t=or.stripHash(e),r=new ok;return r.path=t,r.$refs=this,this._$refs[t]=r,this._root$Ref=this._root$Ref||r,r};rt.prototype._resolve=function(e,t,r){let n=or.resolve(this._root$Ref.path,e),i=or.stripHash(n),s=this._$refs[i];if(!s)throw M0(`Error resolving $ref pointer "${e}".
|
|
49
|
+
"${i}" not found.`);return s.resolve(n,r,e,t)};rt.prototype._get$Ref=function(e){e=or.resolve(this._root$Ref.path,e);let t=or.stripHash(e);return this._$refs[t]};function D0(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"?or.toFileSystemPath(n,!0):n}))}o(D0,"getPaths")});var B0=h(Bi=>{"use strict";Bi.all=function(e){return Object.keys(e).filter(t=>typeof e[t]=="object").map(t=>(e[t].name=t,e[t]))};Bi.filter=function(e,t,r){return e.filter(n=>!!V0(n,t,r))};Bi.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)};Bi.run=function(e,t,r,n){let i,s,a=0;return new Promise((c,u)=>{l();function l(){if(i=e[a++],!i)return u(s);try{let m=V0(i,t,r,f,n);if(m&&typeof m.then=="function")m.then(p,d);else if(m!==void 0)p(m);else if(a===e.length)throw new Error("No promise has been returned or callback has been called.")}catch(m){d(m)}}o(l,"runNextPlugin");function f(m,g){m?d(m):p(g)}o(f,"callback");function p(m){c({plugin:i,result:m})}o(p,"onSuccess");function d(m){s={plugin:i,error:m},l()}o(d,"onError")})};function V0(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(V0,"getResult")});var op=h((UD,G0)=>{"use strict";var{ono:ip}=Ye(),H0=Re(),sr=B0(),{ResolverError:U0,ParserError:z0,UnmatchedParserError:sk,UnmatchedResolverError:ak,isHandledError:ck}=tt();G0.exports=uk;async function uk(e,t,r){e=H0.stripHash(e);let n=t._add(e),i={url:e,extension:H0.getExtension(e)};try{let s=await lk(i,r,t);n.pathType=s.plugin.name,i.data=s.result;let a=await pk(i,r,t);return n.value=a.result,a.result}catch(s){throw ck(s)&&(n.value=s),s}}o(uk,"parse");function lk(e,t,r){return new Promise((n,i)=>{let s=sr.all(t.resolve);s=sr.filter(s,"canRead",e),sr.sort(s),sr.run(s,"read",e,r).then(n,a);function a(c){!c&&t.continueOnError?i(new ak(e.url)):!c||!("error"in c)?i(ip.syntax(`Unable to resolve $ref pointer "${e.url}"`)):c.error instanceof U0?i(c.error):i(new U0(c,e.url))}o(a,"onError")})}o(lk,"readFile");function pk(e,t,r){return new Promise((n,i)=>{let s=sr.all(t.parse),a=sr.filter(s,"canParse",e),c=a.length>0?a:s;sr.sort(c),sr.run(c,"parse",e,r).then(u,l);function u(f){!f.plugin.allowEmpty&&fk(f.result)?i(ip.syntax(`Error parsing "${e.url}" as ${f.plugin.name}.
|
|
50
|
+
Parsed value is empty`)):n(f)}o(u,"onParsed");function l(f){!f&&t.continueOnError?i(new sk(e.url)):!f||!("error"in f)?i(ip.syntax(`Unable to parse ${e.url}`)):f.error instanceof z0?i(f.error):i(new z0(f.error.message,e.url))}o(l,"onError")})}o(pk,"parseFile");function fk(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(fk,"isEmpty")});var W0=h((GD,Y0)=>{"use strict";var Z0=Ln(),dk=Vi(),mk=op(),Hi=Re(),{isHandledError:hk}=tt();Y0.exports=gk;function gk(e,t){if(!t.resolve.external)return Promise.resolve();try{let r=sp(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}o(gk,"resolveExternal");function sp(e,t,r,n){let i=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e))if(Z0.isExternal$Ref(e))i.push(K0(e,t,r,n));else for(let s of Object.keys(e)){let a=dk.join(t,s),c=e[s];Z0.isExternal$Ref(c)?i.push(K0(c,a,r,n)):i=i.concat(sp(c,a,r,n))}return i}o(sp,"crawl");async function K0(e,t,r,n){let i=Hi.resolve(t,e.$ref),s=Hi.stripHash(i);if(e=r._$refs[s],e)return Promise.resolve(e.value);try{let a=await mk(i,r,n),c=sp(a,s+"#",r,n);return Promise.all(c)}catch(a){if(!n.continueOnError||!hk(a))throw a;return r._$refs[s]&&(a.source=Hi.stripHash(t),a.path=Hi.safePointerToPath(Hi.getHash(t))),[]}}o(K0,"resolve$Ref")});var X0=h((KD,J0)=>{"use strict";var _s=Ln(),Ui=Vi(),ap=Re();J0.exports=yk;function yk(e,t){let r=[];cp(e,"schema",e.$refs._root$Ref.path+"#","#",0,r,e.$refs,t),vk(r)}o(yk,"bundle");function cp(e,t,r,n,i,s,a,c){let u=t===null?e:e[t];if(u&&typeof u=="object"&&!ArrayBuffer.isView(u))if(_s.isAllowed$Ref(u))Q0(e,t,r,n,i,s,a,c);else{let l=Object.keys(u).sort((f,p)=>f==="definitions"?-1:p==="definitions"?1:f.length-p.length);for(let f of l){let p=Ui.join(r,f),d=Ui.join(n,f),m=u[f];_s.isAllowed$Ref(m)?Q0(u,f,r,d,i,s,a,c):cp(u,f,p,d,i,s,a,c)}}}o(cp,"crawl");function Q0(e,t,r,n,i,s,a,c){let u=t===null?e:e[t],l=ap.resolve(r,u.$ref),f=a._resolve(l,n,c);if(f===null)return;let p=Ui.parse(n).length,d=ap.stripHash(f.path),m=ap.getHash(f.path),g=d!==a._root$Ref.path,y=_s.isExtended$Ref(u);i+=f.indirections;let v=_k(s,e,t);if(v)if(p<v.depth||i<v.indirections)bk(s,v);else return;s.push({$ref:u,parent:e,key:t,pathFromRoot:n,depth:p,file:d,hash:m,value:f.value,circular:f.circular,extended:y,external:g,indirections:i}),v||cp(f.value,null,f.path,n,i+1,s,a,c)}o(Q0,"inventory$Ref");function vk(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"),c=s.pathFromRoot.lastIndexOf("/definitions");return a!==c?c-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=Ui.join(n,Ui.parse(i.hash.replace(r,"#"))):(t=i.file,r=i.hash,n=i.pathFromRoot,i.$ref=i.parent[i.key]=_s.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}o(vk,"remap");function _k(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(_k,"findInInventory");function bk(e,t){let r=e.indexOf(t);e.splice(r,1)}o(bk,"removeFromInventory")});var pp=h((WD,nv)=>{"use strict";var up=Ln(),ev=Vi(),{ono:Sk}=Ye(),Pk=Re();nv.exports=$k;function $k(e,t){let r=lp(e.schema,e.$refs._root$Ref.path,"#",[],e.$refs,t);e.$refs.circular=r.circular,e.schema=r.value}o($k,"dereference");function lp(e,t,r,n,i,s){let a,c={value:e,circular:!1};if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)){if(n.push(e),up.isAllowed$Ref(e,s))a=tv(e,t,r,n,i,s),c.circular=a.circular,c.value=a.value;else for(let u of Object.keys(e)){let l=ev.join(t,u),f=ev.join(r,u),p=e[u],d=!1;up.isAllowed$Ref(p,s)?(a=tv(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):n.indexOf(p)===-1?(a=lp(p,l,f,n,i,s),d=a.circular,e[u]!==a.value&&(e[u]=a.value)):d=rv(l,i,s),c.circular=c.circular||d}n.pop()}return c}o(lp,"crawl");function tv(e,t,r,n,i,s){let a=Pk.resolve(t,e.$ref),c=i._resolve(a,t,s);if(c===null)return{circular:!1,value:null};let u=c.circular,l=u||n.indexOf(c.value)!==-1;l&&rv(t,i,s);let f=up.dereference(e,c.value);if(!l){let p=lp(f,c.path,r,n,i,s);l=p.circular,f=p.value}return l&&!u&&s.dereference.circular==="ignore"&&(f=e),u&&(f.$ref=r),{circular:l,value:f}}o(tv,"dereference$Ref");function rv(e,t,r){if(t.circular=!0,!r.dereference.circular)throw Sk.reference(`Circular $ref pointer found at ${e}`);return!0}o(rv,"foundCircularReference")});var av=h((JD,vt)=>{"use strict";var sv=F0(),Ok=op(),bs=Xl(),Ek=W0(),xk=X0(),wk=pp(),Fn=Re(),{JSONParserError:Ak,InvalidPointerError:Ik,MissingPointerError:Tk,ResolverError:kk,ParserError:Nk,UnmatchedParserError:Rk,UnmatchedResolverError:Ck,isHandledError:jk,JSONParserErrorGroup:iv}=tt(),nt=tp(),{ono:ov}=Ye();vt.exports=yt;vt.exports.default=yt;vt.exports.JSONParserError=Ak;vt.exports.InvalidPointerError=Ik;vt.exports.MissingPointerError=Tk;vt.exports.ResolverError=kk;vt.exports.ParserError=Nk;vt.exports.UnmatchedParserError=Rk;vt.exports.UnmatchedResolverError=Ck;function yt(){this.schema=null,this.$refs=new sv}o(yt,"$RefParser");yt.parse=o(function(t,r,n,i){let s=this,a=new s;return a.parse.apply(a,arguments)},"parse");yt.prototype.parse=o(async function(t,r,n,i){let s=bs(arguments),a;if(!s.path&&!s.schema){let l=ov(`Expected a file path, URL, or object. Got ${s.path||s.schema}`);return nt(s.callback,Promise.reject(l))}this.schema=null,this.$refs=new sv;let c="http";if(Fn.isFileSystemPath(s.path)&&(s.path=Fn.fromFileSystemPath(s.path),c="file"),s.path=Fn.resolve(Fn.cwd(),s.path),s.schema&&typeof s.schema=="object"){let l=this.$refs._add(s.path);l.value=s.schema,l.pathType=c,a=Promise.resolve(s.schema)}else a=Ok(s.path,this.$refs,s.options);let u=this;try{let l=await a;if(l!==null&&typeof l=="object"&&!Buffer.isBuffer(l))return u.schema=l,nt(s.callback,Promise.resolve(u.schema));if(s.options.continueOnError)return u.schema=null,nt(s.callback,Promise.resolve(u.schema));throw ov.syntax(`"${u.$refs._root$Ref.path||l}" is not a valid JSON Schema`)}catch(l){return!s.options.continueOnError||!jk(l)?nt(s.callback,Promise.reject(l)):(this.$refs._$refs[Fn.stripHash(s.path)]&&this.$refs._$refs[Fn.stripHash(s.path)].addError(l),nt(s.callback,Promise.resolve(null)))}},"parse");yt.resolve=o(function(t,r,n,i){let s=this,a=new s;return a.resolve.apply(a,arguments)},"resolve");yt.prototype.resolve=o(async function(t,r,n,i){let s=this,a=bs(arguments);try{return await this.parse(a.path,a.schema,a.options),await Ek(s,a.options),fp(s),nt(a.callback,Promise.resolve(s.$refs))}catch(c){return nt(a.callback,Promise.reject(c))}},"resolve");yt.bundle=o(function(t,r,n,i){let s=this,a=new s;return a.bundle.apply(a,arguments)},"bundle");yt.prototype.bundle=o(async function(t,r,n,i){let s=this,a=bs(arguments);try{return await this.resolve(a.path,a.schema,a.options),xk(s,a.options),fp(s),nt(a.callback,Promise.resolve(s.schema))}catch(c){return nt(a.callback,Promise.reject(c))}},"bundle");yt.dereference=o(function(t,r,n,i){let s=this,a=new s;return a.dereference.apply(a,arguments)},"dereference");yt.prototype.dereference=o(async function(t,r,n,i){let s=this,a=bs(arguments);try{return await this.resolve(a.path,a.schema,a.options),wk(s,a.options),fp(s),nt(a.callback,Promise.resolve(s.schema))}catch(c){return nt(a.callback,Promise.reject(c))}},"dereference");function fp(e){if(iv.getParserErrors(e).length>0)throw new iv(e)}o(fp,"finalize")});var fv=h((e8,pv)=>{"use strict";var qk=Nl(),Mk=jl(),cv=Xl(),uv=vo(),lv=x0(),Ss=tp(),{ono:it}=Ye(),Br=av(),Dk=pp();pv.exports=_t;function _t(){Br.apply(this,arguments)}o(_t,"SwaggerParser");uv.inherits(_t,Br);_t.parse=Br.parse;_t.resolve=Br.resolve;_t.bundle=Br.bundle;_t.dereference=Br.dereference;Object.defineProperty(_t.prototype,"api",{configurable:!0,enumerable:!0,get(){return this.schema}});_t.prototype.parse=async function(e,t,r,n){let i=cv(arguments);i.options=new lv(i.options);try{let s=await Br.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 it.syntax(`${i.path||i.schema} is not a valid Swagger API definition`);if(typeof s.swagger=="number")throw it.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if(typeof s.info.version=="number")throw it.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(s.swagger!=="2.0")throw it.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 it.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 it.syntax(`${i.path||i.schema} is not a valid Openapi API definition`)}else throw it.syntax(`${i.path||i.schema} is not a valid Openapi API definition`);else{if(typeof s.openapi=="number")throw it.syntax('Openapi version number must be a string (e.g. "3.0.0") not a number.');if(typeof s.info.version=="number")throw it.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(a.indexOf(s.openapi)===-1)throw it.syntax(`Unsupported OpenAPI version: ${s.openapi}. Swagger Parser only supports versions ${a.join(", ")}`)}uv.fixOasRelativeServers(s,i.path)}return Ss(i.callback,Promise.resolve(s))}catch(s){return Ss(i.callback,Promise.reject(s))}};_t.validate=function(e,t,r,n){let i=this,s=new i;return s.validate.apply(s,arguments)};_t.prototype.validate=async function(e,t,r,n){let i=this,s=cv(arguments);s.options=new lv(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&&(qk(i.api),i.$refs.circular)){if(a===!0)Dk(i,s.options);else if(a===!1)throw it.reference("The API contains circular references")}return s.options.validate.spec&&Mk(i.api),Ss(s.callback,Promise.resolve(i.schema))}catch(c){return Ss(s.callback,Promise.reject(c))}}});var xe=h(je=>{"use strict";je.__esModule=!0;je.extend=N_;je.indexOf=xN;je.escapeExpression=wN;je.isEmpty=AN;je.createFrame=IN;je.blockParams=TN;je.appendContextPath=kN;var PN={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},$N=/[&<>"'`=]/g,ON=/[&<>"'`=]/;function EN(e){return PN[e]}o(EN,"escapeChar");function N_(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(N_,"extend");var Fp=Object.prototype.toString;je.toString=Fp;var Lp=o(function(t){return typeof t=="function"},"isFunction");Lp(/x/)&&(je.isFunction=Lp=o(function(e){return typeof e=="function"&&Fp.call(e)==="[object Function]"},"isFunction"));je.isFunction=Lp;var R_=Array.isArray||function(e){return e&&typeof e=="object"?Fp.call(e)==="[object Array]":!1};je.isArray=R_;function xN(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}o(xN,"indexOf");function wN(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return ON.test(e)?e.replace($N,EN):e}o(wN,"escapeExpression");function AN(e){return!e&&e!==0?!0:!!(R_(e)&&e.length===0)}o(AN,"isEmpty");function IN(e){var t=N_({},e);return t._parent=e,t}o(IN,"createFrame");function TN(e,t){return e.path=t,e}o(TN,"blockParams");function kN(e,t){return(e?e+".":"")+t}o(kN,"appendContextPath")});var ze=h((Fs,C_)=>{"use strict";Fs.__esModule=!0;var Vp=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Bp(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 c=Error.prototype.constructor.call(this,e),u=0;u<Vp.length;u++)this[Vp[u]]=c[Vp[u]];Error.captureStackTrace&&Error.captureStackTrace(this,Bp);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(Bp,"Exception");Bp.prototype=new Error;Fs.default=Bp;C_.exports=Fs.default});var q_=h((Vs,j_)=>{"use strict";Vs.__esModule=!0;var Hp=xe();Vs.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(Hp.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=Hp.createFrame(r.data);s.contextPath=Hp.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};j_.exports=Vs.default});var D_=h((Bs,M_)=>{"use strict";Bs.__esModule=!0;function NN(e){return e&&e.__esModule?e:{default:e}}o(NN,"_interopRequireDefault");var ro=xe(),RN=ze(),CN=NN(RN);Bs.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new CN.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",c=void 0,u=void 0;r.data&&r.ids&&(u=ro.appendContextPath(r.data.contextPath,r.ids[0])+"."),ro.isFunction(t)&&(t=t.call(this)),r.data&&(c=ro.createFrame(r.data));function l(g,y,v){c&&(c.key=g,c.index=y,c.first=y===0,c.last=!!v,u&&(c.contextPath=u+g)),a=a+n(t[g],{data:c,blockParams:ro.blockParams([t[g],g],[u+g,null])})}if(o(l,"execIteration"),t&&typeof t=="object")if(ro.isArray(t))for(var f=t.length;s<f;s++)s in t&&l(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var p=[],d=t[Symbol.iterator](),m=d.next();!m.done;m=d.next())p.push(m.value);t=p;for(var f=t.length;s<f;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})};M_.exports=Bs.default});var F_=h((Hs,L_)=>{"use strict";Hs.__esModule=!0;function jN(e){return e&&e.__esModule?e:{default:e}}o(jN,"_interopRequireDefault");var qN=ze(),MN=jN(qN);Hs.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new MN.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};L_.exports=Hs.default});var U_=h((Us,H_)=>{"use strict";Us.__esModule=!0;function DN(e){return e&&e.__esModule?e:{default:e}}o(DN,"_interopRequireDefault");var V_=xe(),LN=ze(),B_=DN(LN);Us.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new B_.default("#if requires exactly one argument");return V_.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||V_.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new B_.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};H_.exports=Us.default});var G_=h((zs,z_)=>{"use strict";zs.__esModule=!0;zs.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)})};z_.exports=zs.default});var K_=h((Gs,Z_)=>{"use strict";Gs.__esModule=!0;Gs.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};Z_.exports=Gs.default});var W_=h((Zs,Y_)=>{"use strict";Zs.__esModule=!0;function FN(e){return e&&e.__esModule?e:{default:e}}o(FN,"_interopRequireDefault");var no=xe(),VN=ze(),BN=FN(VN);Zs.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new BN.default("#with requires exactly one argument");no.isFunction(t)&&(t=t.call(this));var n=r.fn;if(no.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=no.createFrame(r.data),i.contextPath=no.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:no.blockParams([t],[i&&i.contextPath])})})};Y_.exports=Zs.default});var Up=h(Ks=>{"use strict";Ks.__esModule=!0;Ks.registerDefaultHelpers=nR;Ks.moveHelperToHooks=iR;function Yr(e){return e&&e.__esModule?e:{default:e}}o(Yr,"_interopRequireDefault");var HN=q_(),UN=Yr(HN),zN=D_(),GN=Yr(zN),ZN=F_(),KN=Yr(ZN),YN=U_(),WN=Yr(YN),QN=G_(),JN=Yr(QN),XN=K_(),eR=Yr(XN),tR=W_(),rR=Yr(tR);function nR(e){UN.default(e),GN.default(e),KN.default(e),WN.default(e),JN.default(e),eR.default(e),rR.default(e)}o(nR,"registerDefaultHelpers");function iR(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}o(iR,"moveHelperToHooks")});var J_=h((Ys,Q_)=>{"use strict";Ys.__esModule=!0;var oR=xe();Ys.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=o(function(a,c){var u=n.partials;n.partials=oR.extend({},u,r.partials);var l=t(a,c);return n.partials=u,l},"ret")),r.partials[i.args[0]]=i.fn,s})};Q_.exports=Ys.default});var X_=h(zp=>{"use strict";zp.__esModule=!0;zp.registerDefaultDecorators=uR;function sR(e){return e&&e.__esModule?e:{default:e}}o(sR,"_interopRequireDefault");var aR=J_(),cR=sR(aR);function uR(e){cR.default(e)}o(uR,"registerDefaultDecorators")});var Gp=h((Ws,eb)=>{"use strict";Ws.__esModule=!0;var lR=xe(),zn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:o(function(t){if(typeof t=="string"){var r=lR.indexOf(zn.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},"lookupLevel"),log:o(function(t){if(t=zn.lookupLevel(t),typeof console<"u"&&zn.lookupLevel(zn.level)<=t){var r=zn.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")};Ws.default=zn;eb.exports=Ws.default});var tb=h(Zp=>{"use strict";Zp.__esModule=!0;Zp.createNewLookupObject=fR;var pR=xe();function fR(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return pR.extend.apply(void 0,[Object.create(null)].concat(t))}o(fR,"createNewLookupObject")});var Kp=h(io=>{"use strict";io.__esModule=!0;io.createProtoAccessControl=gR;io.resultIsAllowed=yR;io.resetLoggedProperties=_R;function dR(e){return e&&e.__esModule?e:{default:e}}o(dR,"_interopRequireDefault");var rb=tb(),mR=Gp(),hR=dR(mR),Qs=Object.create(null);function gR(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:rb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:rb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}o(gR,"createProtoAccessControl");function yR(e,t,r){return nb(typeof e=="function"?t.methods:t.properties,r)}o(yR,"resultIsAllowed");function nb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(vR(t),!1)}o(nb,"checkWhiteList");function vR(e){Qs[e]!==!0&&(Qs[e]=!0,hR.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
51
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`))}
|
|
52
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(vR,"logUnexpecedPropertyAccessOnce");function _R(){Object.keys(Qs).forEach(function(e){delete Qs[e]})}o(_R,"resetLoggedProperties")});var Xs=h(wt=>{"use strict";wt.__esModule=!0;wt.HandlebarsEnvironment=Qp;function ib(e){return e&&e.__esModule?e:{default:e}}o(ib,"_interopRequireDefault");var Wr=xe(),bR=ze(),Yp=ib(bR),SR=Up(),PR=X_(),$R=Gp(),Js=ib($R),OR=Kp(),ER="4.7.8";wt.VERSION=ER;var xR=8;wt.COMPILER_REVISION=xR;var wR=7;wt.LAST_COMPATIBLE_COMPILER_REVISION=wR;var AR={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"};wt.REVISION_CHANGES=AR;var Wp="[object Object]";function Qp(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},SR.registerDefaultHelpers(this),PR.registerDefaultDecorators(this)}o(Qp,"HandlebarsEnvironment");Qp.prototype={constructor:Qp,logger:Js.default,log:Js.default.log,registerHelper:o(function(t,r){if(Wr.toString.call(t)===Wp){if(r)throw new Yp.default("Arg not supported with multiple helpers");Wr.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(Wr.toString.call(t)===Wp)Wr.extend(this.partials,t);else{if(typeof r>"u")throw new Yp.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(Wr.toString.call(t)===Wp){if(r)throw new Yp.default("Arg not supported with multiple decorators");Wr.extend(this.decorators,t)}else this.decorators[t]=r},"registerDecorator"),unregisterDecorator:o(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){OR.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var IR=Js.default.log;wt.log=IR;wt.createFrame=Wr.createFrame;wt.logger=Js.default});var sb=h((ea,ob)=>{"use strict";ea.__esModule=!0;function Jp(e){this.string=e}o(Jp,"SafeString");Jp.prototype.toString=Jp.prototype.toHTML=function(){return""+this.string};ea.default=Jp;ob.exports=ea.default});var ab=h(Xp=>{"use strict";Xp.__esModule=!0;Xp.wrapHelper=TR;function TR(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(TR,"wrapHelper")});var fb=h(hr=>{"use strict";hr.__esModule=!0;hr.checkRevision=qR;hr.template=MR;hr.wrapProgram=ta;hr.resolvePartial=DR;hr.invokePartial=LR;hr.noop=lb;function kR(e){return e&&e.__esModule?e:{default:e}}o(kR,"_interopRequireDefault");function NR(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(NR,"_interopRequireWildcard");var RR=xe(),Dt=NR(RR),CR=ze(),Lt=kR(CR),Ft=Xs(),cb=Up(),jR=ab(),ub=Kp();function qR(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(qR,"checkRevision");function MR(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,c,u){u.hash&&(c=Dt.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,c,u);var l=Dt.extend({},u,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),f=t.VM.invokePartial.call(this,a,c,l);if(f==null&&t.compile&&(u.partials[u.name]=t.compile(a,e.compilerOptions,t),f=u.partials[u.name](c,l)),f!=null){if(u.indent){for(var p=f.split(`
|
|
53
53
|
`),d=0,m=p.length;d<m&&!(!p[d]&&d+1===m);d++)p[d]=u.indent+p[d];f=p.join(`
|
|
54
|
-
`)}return f}else throw new Lt.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}s(n,"invokePartialWrapper");var i={strict:s(function(c,u,l){if(!c||!(u in c))throw new Lt.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:s(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||ib.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:s(function(c,u){for(var l=c.length,f=0;f<l;f++){var p=c[f]&&i.lookupProperty(c[f],u);if(p!=null)return c[f][u]}},"lookup"),lambda:s(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:s(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:s(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=ta(this,c,m,u,l,f,p):d||(d=this.programs[c]=ta(this,c,m)),d},"program"),data:s(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:s(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Dt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;o._setup(c),!c.partial&&e.useData&&(u=jR(a,u));var l=void 0,f=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function p(d){return""+e.main(i,d,i.helpers,i.partials,u,f,l)}return s(p,"main"),p=sb(e.main,p,i,c.depths||[],u,f),p(a,c)}return s(o,"ret"),o.isTop=!0,o._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 c=Dt.extend({},t.helpers,a.helpers);MR(c,i),i.helpers=c,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=ib.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;nb.moveHelperToHooks(i,"helperMissing",u),nb.moveHelperToHooks(i,"blockHelperMissing",u)}},o._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ta(i,a,e[a],c,0,u,l)},o}s(RR,"template");function ta(e,t,r,n,i,o,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,o&&[l.blockParams].concat(o),f)}return s(c,"prog"),c=sb(r,c,e,a,n,o),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}s(ta,"wrapProgram");function CR(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}s(CR,"resolvePartial");function qR(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!==ob&&function(){r.data=Ft.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=s(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Ft.createFrame(u.data),u.data["partial-block"]=n,o(c,u)},"partialBlockWrapper"),o.partials&&(r.partials=Dt.extend({},r.partials,o.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)}s(qR,"invokePartial");function ob(){return""}s(ob,"noop");function jR(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}s(jR,"initData");function sb(e,t,r,n,i,o){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,o,n),Dt.extend(t,a)}return t}s(sb,"executeDecorators");function MR(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=DR(n,t)})}s(MR,"wrapHelpersToPassLookupProperty");function DR(e,t){var r=t.lookupProperty;return kR.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}s(DR,"passLookupPropertyOption")});var Jp=h((ra,cb)=>{"use strict";ra.__esModule=!0;ra.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}};cb.exports=ra.default});var db=h((na,fb)=>{"use strict";na.__esModule=!0;function ef(e){return e&&e.__esModule?e:{default:e}}s(ef,"_interopRequireDefault");function tf(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}s(tf,"_interopRequireWildcard");var LR=Xs(),ub=tf(LR),FR=tb(),VR=ef(FR),BR=He(),HR=ef(BR),UR=Oe(),Xp=tf(UR),zR=ab(),lb=tf(zR),GR=Jp(),ZR=ef(GR);function pb(){var e=new ub.HandlebarsEnvironment;return Xp.extend(e,ub),e.SafeString=VR.default,e.Exception=HR.default,e.Utils=Xp,e.escapeExpression=Xp.escapeExpression,e.VM=lb,e.template=function(t){return lb.template(t,e)},e}s(pb,"create");var oo=pb();oo.create=pb;ZR.default(oo);oo.default=oo;na.default=oo;fb.exports=na.default});var rf=h((ia,hb)=>{"use strict";ia.__esModule=!0;var mb={helpers:{helperExpression:s(function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},"helperExpression"),scopedId:s(function(t){return/^\.|this\b/.test(t.original)},"scopedId"),simpleId:s(function(t){return t.parts.length===1&&!mb.helpers.scopedId(t)&&!t.depth},"simpleId")}};ia.default=mb;hb.exports=ia.default});var yb=h((oa,gb)=>{"use strict";oa.__esModule=!0;var KR=function(){var e={trace:s(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:s(function(i,o,a,c,u,l,f){var p=l.length-1;switch(u){case 1:return l[p-1];case 2:this.$=c.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[p]),strip:c.stripFlags(l[p],l[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:c.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var d=c.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),m=c.prepareProgram([d],l[p-1].loc);m.chained=!0,this.$={strip:l[p-2].strip,program:m,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:c.stripFlags(l[p-2],l[p])};break;case 22:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:c.stripFlags(l[p-4],l[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:c.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[p-2]),value:l[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=c.preparePath(!0,l[p],this._$);break;case 43:this.$=c.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:c.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:c.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);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:s(function(i,o){throw new Error(i)},"parseError"),parse:s(function(i){var o=this,a=[0],c=[null],u=[],l=this.table,f="",p=0,d=0,m=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;u.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(st){a.length=a.length-2*st,c.length=c.length-st,u.length=u.length-st}s(b,"popStack");function P(){var st;return st=o.lexer.lex()||1,typeof st!="number"&&(st=o.symbols_[st]||st),st}s(P,"lex");for(var E,S,j,N,Q,ie,le={},qe,Ee,Ht,tn;;){if(j=a[a.length-1],this.defaultActions[j]?N=this.defaultActions[j]:((E===null||typeof E>"u")&&(E=P()),N=l[j]&&l[j][E]),typeof N>"u"||!N.length||!N[0]){var Pa="";if(!m){tn=[];for(qe in l[j])this.terminals_[qe]&&qe>2&&tn.push("'"+this.terminals_[qe]+"'");this.lexer.showPosition?Pa="Parse error on line "+(p+1)+`:
|
|
54
|
+
`)}return f}else throw new Lt.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,u,l){if(!c||!(u in c))throw new Lt.default('"'+u+'" not defined in '+c,{loc:l});return i.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||ub.resultIsAllowed(l,i.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var p=c[f]&&i.lookupProperty(c[f],u);if(p!=null)return c[f][u]}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:Dt.escapeExpression,invokePartial:n,fn:o(function(c){var u=e[c];return u.decorator=e[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,p){var d=this.programs[c],m=this.fn(c);return u||p||f||l?d=ta(this,c,m,u,l,f,p):d||(d=this.programs[c]=ta(this,c,m)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=Dt.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&e.useData&&(u=FR(a,u));var l=void 0,f=e.useBlockParams?[]:void 0;e.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function p(d){return""+e.main(i,d,i.helpers,i.partials,u,f,l)}return o(p,"main"),p=pb(e.main,p,i,c.depths||[],u,f),p(a,c)}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 c=Dt.extend({},t.helpers,a.helpers);VR(c,i),i.helpers=c,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=ub.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;cb.moveHelperToHooks(i,"helperMissing",u),cb.moveHelperToHooks(i,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(e.useBlockParams&&!u)throw new Lt.default("must pass block params");if(e.useDepths&&!l)throw new Lt.default("must pass parent depths");return ta(i,a,e[a],c,0,u,l)},s}o(MR,"template");function ta(e,t,r,n,i,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===e.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(e,u,e.helpers,e.partials,l.data||n,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=pb(r,c,e,a,n,s),c.program=t,c.depth=a?a.length:0,c.blockParams=i||0,c}o(ta,"wrapProgram");function DR(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(DR,"resolvePartial");function LR(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!==lb&&function(){r.data=Ft.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Ft.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"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(LR,"invokePartial");function lb(){return""}o(lb,"noop");function FR(e,t){return(!t||!("root"in t))&&(t=t?Ft.createFrame(t):{},t.root=e),t}o(FR,"initData");function pb(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(pb,"executeDecorators");function VR(e,t){Object.keys(e).forEach(function(r){var n=e[r];e[r]=BR(n,t)})}o(VR,"wrapHelpersToPassLookupProperty");function BR(e,t){var r=t.lookupProperty;return jR.wrapHelper(e,function(n){return Dt.extend({lookupProperty:r},n)})}o(BR,"passLookupPropertyOption")});var ef=h((ra,db)=>{"use strict";ra.__esModule=!0;ra.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}};db.exports=ra.default});var vb=h((na,yb)=>{"use strict";na.__esModule=!0;function rf(e){return e&&e.__esModule?e:{default:e}}o(rf,"_interopRequireDefault");function nf(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(nf,"_interopRequireWildcard");var HR=Xs(),mb=nf(HR),UR=sb(),zR=rf(UR),GR=ze(),ZR=rf(GR),KR=xe(),tf=nf(KR),YR=fb(),hb=nf(YR),WR=ef(),QR=rf(WR);function gb(){var e=new mb.HandlebarsEnvironment;return tf.extend(e,mb),e.SafeString=zR.default,e.Exception=ZR.default,e.Utils=tf,e.escapeExpression=tf.escapeExpression,e.VM=hb,e.template=function(t){return hb.template(t,e)},e}o(gb,"create");var oo=gb();oo.create=gb;QR.default(oo);oo.default=oo;na.default=oo;yb.exports=na.default});var of=h((ia,bb)=>{"use strict";ia.__esModule=!0;var _b={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&&!_b.helpers.scopedId(t)&&!t.depth},"simpleId")}};ia.default=_b;bb.exports=ia.default});var Pb=h((oa,Sb)=>{"use strict";oa.__esModule=!0;var JR=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,c,u,l,f){var p=l.length-1;switch(u){case 1:return l[p-1];case 2:this.$=c.prepareProgram(l[p]);break;case 3:this.$=l[p];break;case 4:this.$=l[p];break;case 5:this.$=l[p];break;case 6:this.$=l[p];break;case 7:this.$=l[p];break;case 8:this.$=l[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(l[p]),strip:c.stripFlags(l[p],l[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[p],value:l[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(l[p-2],l[p-1],l[p],this._$);break;case 12:this.$={path:l[p-3],params:l[p-2],hash:l[p-1]};break;case 13:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!1,this._$);break;case 14:this.$=c.prepareBlock(l[p-3],l[p-2],l[p-1],l[p],!0,this._$);break;case 15:this.$={open:l[p-5],path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 16:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 17:this.$={path:l[p-4],params:l[p-3],hash:l[p-2],blockParams:l[p-1],strip:c.stripFlags(l[p-5],l[p])};break;case 18:this.$={strip:c.stripFlags(l[p-1],l[p-1]),program:l[p]};break;case 19:var d=c.prepareBlock(l[p-2],l[p-1],l[p],l[p],!1,this._$),m=c.prepareProgram([d],l[p-1].loc);m.chained=!0,this.$={strip:l[p-2].strip,program:m,chain:!0};break;case 20:this.$=l[p];break;case 21:this.$={path:l[p-1],strip:c.stripFlags(l[p-2],l[p])};break;case 22:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 23:this.$=c.prepareMustache(l[p-3],l[p-2],l[p-1],l[p-4],c.stripFlags(l[p-4],l[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[p-3],params:l[p-2],hash:l[p-1],indent:"",strip:c.stripFlags(l[p-4],l[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(l[p-2],l[p-1],l[p],this._$);break;case 26:this.$={path:l[p-3],params:l[p-2],hash:l[p-1],strip:c.stripFlags(l[p-4],l[p])};break;case 27:this.$=l[p];break;case 28:this.$=l[p];break;case 29:this.$={type:"SubExpression",path:l[p-3],params:l[p-2],hash:l[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(l[p-2]),value:l[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(l[p-1]);break;case 33:this.$=l[p];break;case 34:this.$=l[p];break;case 35:this.$={type:"StringLiteral",value:l[p],original:l[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[p]),original:Number(l[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[p]==="true",original:l[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=l[p];break;case 41:this.$=l[p];break;case 42:this.$=c.preparePath(!0,l[p],this._$);break;case 43:this.$=c.preparePath(!1,l[p],this._$);break;case 44:l[p-2].push({part:c.id(l[p]),original:l[p],separator:l[p-1]}),this.$=l[p-2];break;case 45:this.$=[{part:c.id(l[p]),original:l[p]}];break;case 46:this.$=[];break;case 47:l[p-1].push(l[p]);break;case 48:this.$=[];break;case 49:l[p-1].push(l[p]);break;case 50:this.$=[];break;case 51:l[p-1].push(l[p]);break;case 58:this.$=[];break;case 59:l[p-1].push(l[p]);break;case 64:this.$=[];break;case 65:l[p-1].push(l[p]);break;case 70:this.$=[];break;case 71:l[p-1].push(l[p]);break;case 78:this.$=[];break;case 79:l[p-1].push(l[p]);break;case 82:this.$=[];break;case 83:l[p-1].push(l[p]);break;case 86:this.$=[];break;case 87:l[p-1].push(l[p]);break;case 90:this.$=[];break;case 91:l[p-1].push(l[p]);break;case 94:this.$=[];break;case 95:l[p-1].push(l[p]);break;case 98:this.$=[l[p]];break;case 99:l[p-1].push(l[p]);break;case 100:this.$=[l[p]];break;case 101:l[p-1].push(l[p]);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],c=[null],u=[],l=this.table,f="",p=0,d=0,m=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;u.push(v);var _=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function b(ct){a.length=a.length-2*ct,c.length=c.length-ct,u.length=u.length-ct}o(b,"popStack");function O(){var ct;return ct=s.lexer.lex()||1,typeof ct!="number"&&(ct=s.symbols_[ct]||ct),ct}o(O,"lex");for(var P,S,D,R,se,J,G={},ve,_e,Ut,tn;;){if(D=a[a.length-1],this.defaultActions[D]?R=this.defaultActions[D]:((P===null||typeof P>"u")&&(P=O()),R=l[D]&&l[D][P]),typeof R>"u"||!R.length||!R[0]){var $a="";if(!m){tn=[];for(ve in l[D])this.terminals_[ve]&&ve>2&&tn.push("'"+this.terminals_[ve]+"'");this.lexer.showPosition?$a="Parse error on line "+(p+1)+`:
|
|
55
55
|
`+this.lexer.showPosition()+`
|
|
56
|
-
Expecting `+tn.join(", ")+", got '"+(this.terminals_[
|
|
57
|
-
`+a+"^"},"showPosition"),next:
|
|
58
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:s(function(o){this.conditionStack.push(o)},"begin"),popState:s(function(){return this.conditionStack.pop()},"popState"),_currentRules:s(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:s(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:s(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=s(function(o,a,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}s(l,"strip");var f=u;switch(c){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 s(r,"Parser"),r.prototype=e,e.Parser=r,new r}();oa.default=KR;gb.exports=oa.default});var ua=h((ca,bb)=>{"use strict";ca.__esModule=!0;function YR(e){return e&&e.__esModule?e:{default:e}}s(YR,"_interopRequireDefault");var WR=He(),nf=YR(WR);function sa(){this.parents=[]}s(sa,"Visitor");sa.prototype={constructor:sa,mutating:!1,acceptKey:s(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!sa.prototype[n.type])throw new nf.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},"acceptKey"),acceptRequired:s(function(t,r){if(this.acceptKey(t,r),!t[r])throw new nf.default(t.type+" requires "+r)},"acceptRequired"),acceptArray:s(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:s(function(t){if(t){if(!this[t.type])throw new nf.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:s(function(t){this.acceptArray(t.body)},"Program"),MustacheStatement:aa,Decorator:aa,BlockStatement:vb,DecoratorBlock:vb,PartialStatement:_b,PartialBlockStatement:s(function(t){_b.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:s(function(){},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:aa,PathExpression:s(function(){},"PathExpression"),StringLiteral:s(function(){},"StringLiteral"),NumberLiteral:s(function(){},"NumberLiteral"),BooleanLiteral:s(function(){},"BooleanLiteral"),UndefinedLiteral:s(function(){},"UndefinedLiteral"),NullLiteral:s(function(){},"NullLiteral"),Hash:s(function(t){this.acceptArray(t.pairs)},"Hash"),HashPair:s(function(t){this.acceptRequired(t,"value")},"HashPair")};function aa(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(aa,"visitSubExpression");function vb(e){aa.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}s(vb,"visitBlock");function _b(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s(_b,"visitPartial");ca.default=sa;bb.exports=ca.default});var Pb=h((la,Sb)=>{"use strict";la.__esModule=!0;function QR(e){return e&&e.__esModule?e:{default:e}}s(QR,"_interopRequireDefault");var JR=ua(),XR=QR(JR);function At(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}s(At,"WhitespaceControl");At.prototype=new XR.default;At.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,o=n.length;i<o;i++){var a=n[i],c=this.accept(a);if(c){var u=of(n,i,r),l=sf(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Wr(n,i,!0),c.open&&hr(n,i,!0),t&&d&&(Wr(n,i),hr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(Wr((a.program||a.inverse).body),hr(n,i)),t&&p&&(Wr(n,i),hr((a.inverse||a.program).body))}}return e};At.prototype.BlockStatement=At.prototype.DecoratorBlock=At.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 o={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:sf(t.body),closeStandalone:of((n||t).body)};if(e.openStrip.close&&Wr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&hr(t.body,null,!0),a.close&&Wr(n.body,null,!0),e.closeStrip.open&&hr(i.body,null,!0),!this.options.ignoreStandalone&&of(t.body)&&sf(n.body)&&(hr(t.body),Wr(n.body))}else e.closeStrip.open&&hr(t.body,null,!0);return o};At.prototype.Decorator=At.prototype.MustacheStatement=function(e){return e.strip};At.prototype.PartialStatement=At.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function of(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)}s(of,"isPrevWhitespace");function sf(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)}s(sf,"isNextWhitespace");function Wr(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}}s(Wr,"omitRight");function hr(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}}s(hr,"omitLeft");la.default=At;Sb.exports=la.default});var $b=h(Ue=>{"use strict";Ue.__esModule=!0;Ue.SourceLocation=rC;Ue.id=nC;Ue.stripFlags=iC;Ue.stripComment=oC;Ue.preparePath=sC;Ue.prepareMustache=aC;Ue.prepareRawBlock=cC;Ue.prepareBlock=uC;Ue.prepareProgram=lC;Ue.preparePartialBlock=pC;function eC(e){return e&&e.__esModule?e:{default:e}}s(eC,"_interopRequireDefault");var tC=He(),af=eC(tC);function cf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new af.default(e.path.original+" doesn't match "+t,r)}}s(cf,"validateClose");function rC(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}}s(rC,"SourceLocation");function nC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}s(nC,"id");function iC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}s(iC,"stripFlags");function oC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}s(oC,"stripComment");function sC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],o=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new af.default("Invalid path: "+n,{loc:r});u===".."&&o++}else i.push(u)}return{type:"PathExpression",data:e,depth:o,parts:i,original:n,loc:r}}s(sC,"preparePath");function aC(e,t,r,n,i,o){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(o)}}s(aC,"prepareMustache");function cC(e,t,r,n){cf(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}}s(cC,"prepareRawBlock");function uC(e,t,r,n,i,o){n&&n.path&&cf(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new af.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(o)}}s(uC,"prepareBlock");function lC(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}}s(lC,"prepareProgram");function pC(e,t,r,n){return cf(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)}}s(pC,"preparePartialBlock")});var xb=h(so=>{"use strict";so.__esModule=!0;so.parseWithoutProcessing=Eb;so.parse=_C;function fC(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}s(fC,"_interopRequireWildcard");function Ob(e){return e&&e.__esModule?e:{default:e}}s(Ob,"_interopRequireDefault");var dC=yb(),uf=Ob(dC),mC=Pb(),hC=Ob(mC),gC=$b(),yC=fC(gC),vC=Oe();so.parser=uf.default;var pa={};vC.extend(pa,yC);function Eb(e,t){if(e.type==="Program")return e;uf.default.yy=pa,pa.locInfo=function(n){return new pa.SourceLocation(t&&t.srcName,n)};var r=uf.default.parse(e);return r}s(Eb,"parseWithoutProcessing");function _C(e,t){var r=Eb(e,t),n=new hC.default(t);return n.accept(r)}s(_C,"parse")});var Tb=h(lo=>{"use strict";lo.__esModule=!0;lo.Compiler=lf;lo.precompile=$C;lo.compile=OC;function Ab(e){return e&&e.__esModule?e:{default:e}}s(Ab,"_interopRequireDefault");var bC=He(),co=Ab(bC),uo=Oe(),SC=rf(),ao=Ab(SC),PC=[].slice;function lf(){}s(lf,"Compiler");lf.prototype={compiler:lf,equals:s(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],o=t.opcodes[n];if(i.opcode!==o.opcode||!Ib(i.args,o.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:s(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=uo.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:s(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:s(function(t){if(!this[t.type])throw new co.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},"accept"),Program:s(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:s(function(t){wb(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:s(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:s(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 co.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,o=t.name.type==="SubExpression";o&&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",o,i,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:s(function(t){this.PartialStatement(t)},"PartialBlockStatement"),MustacheStatement:s(function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:s(function(t){this.DecoratorBlock(t)},"Decorator"),ContentStatement:s(function(t){t.value&&this.opcode("appendContent",t.value)},"ContentStatement"),CommentStatement:s(function(){},"CommentStatement"),SubExpression:s(function(t){wb(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},"SubExpression"),ambiguousSexpr:s(function(t,r,n){var i=t.path,o=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",o,a)},"ambiguousSexpr"),simpleSexpr:s(function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:s(function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),o=t.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new co.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,ao.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:s(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=ao.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:s(function(t){this.opcode("pushString",t.value)},"StringLiteral"),NumberLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"NumberLiteral"),BooleanLiteral:s(function(t){this.opcode("pushLiteral",t.value)},"BooleanLiteral"),UndefinedLiteral:s(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:s(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:s(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:s(function(t){this.opcodes.push({opcode:t,args:PC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:s(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:s(function(t){var r=ao.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&ao.default.helpers.helperExpression(t),o=!n&&(i||r);if(o&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:s(function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},"pushParams"),pushParam:s(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&&!ao.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:s(function(t,r,n,i){var o=t.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),o},"setupFullMustacheParams"),blockParamIndex:s(function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&uo.indexOf(i,t);if(i&&o>=0)return[r,o]}},"blockParamIndex")};function $C(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new co.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)}s($C,"precompile");function OC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new co.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=uo.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),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}s(i,"compileInput");function o(a,c){return n||(n=i()),n.call(this,a,c)}return s(o,"ret"),o._setup=function(a){return n||(n=i()),n._setup(a)},o._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},o}s(OC,"compile");function Ib(e,t){if(e===t)return!0;if(uo.isArray(e)&&uo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Ib(e[r],t[r]))return!1;return!0}}s(Ib,"argEquals");function wb(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}}}s(wb,"transformLiteralToPath")});var Nb=h(pf=>{var kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");pf.encode=function(e){if(0<=e&&e<kb.length)return kb[e];throw new TypeError("Must be between 0 and 63: "+e)};pf.decode=function(e){var t=65,r=90,n=97,i=122,o=48,a=57,c=43,u=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=a?e-o+f:e==c?62:e==u?63:-1}});var mf=h(df=>{var Rb=Nb(),ff=5,Cb=1<<ff,qb=Cb-1,jb=Cb;function EC(e){return e<0?(-e<<1)+1:(e<<1)+0}s(EC,"toVLQSigned");function xC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}s(xC,"fromVLQSigned");df.encode=s(function(t){var r="",n,i=EC(t);do n=i&qb,i>>>=ff,i>0&&(n|=jb),r+=Rb.encode(n);while(i>0);return r},"base64VLQ_encode");df.decode=s(function(t,r,n){var i=t.length,o=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Rb.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&jb),u&=qb,o=o+(u<<a),a+=ff}while(c);n.value=xC(o),n.rest=r},"base64VLQ_decode")});var Kn=h(ye=>{function wC(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}s(wC,"getArg");ye.getArg=wC;var Mb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,AC=/^data:.+\,.+$/;function po(e){var t=e.match(Mb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}s(po,"urlParse");ye.urlParse=po;function Gn(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}s(Gn,"urlGenerate");ye.urlGenerate=Gn;function hf(e){var t=e,r=po(e);if(r){if(!r.path)return e;t=r.path}for(var n=ye.isAbsolute(t),i=t.split(/\/+/),o,a=0,c=i.length-1;c>=0;c--)o=i[c],o==="."?i.splice(c,1):o===".."?a++:a>0&&(o===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Gn(r)):t}s(hf,"normalize");ye.normalize=hf;function Db(e,t){e===""&&(e="."),t===""&&(t=".");var r=po(t),n=po(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Gn(r);if(r||t.match(AC))return t;if(n&&!n.host&&!n.path)return n.host=t,Gn(n);var i=t.charAt(0)==="/"?t:hf(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Gn(n)):i}s(Db,"join");ye.join=Db;ye.isAbsolute=function(e){return e.charAt(0)==="/"||Mb.test(e)};function IC(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)}s(IC,"relative");ye.relative=IC;var Lb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Fb(e){return e}s(Fb,"identity");function TC(e){return Vb(e)?"$"+e:e}s(TC,"toSetString");ye.toSetString=Lb?Fb:TC;function kC(e){return Vb(e)?e.slice(1):e}s(kC,"fromSetString");ye.fromSetString=Lb?Fb:kC;function Vb(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}s(Vb,"isProtoString");function NC(e,t,r){var n=Zn(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:Zn(e.name,t.name)}s(NC,"compareByOriginalPositions");ye.compareByOriginalPositions=NC;function RC(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Zn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Zn(e.name,t.name)}s(RC,"compareByGeneratedPositionsDeflated");ye.compareByGeneratedPositionsDeflated=RC;function Zn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}s(Zn,"strcmp");function CC(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Zn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Zn(e.name,t.name)}s(CC,"compareByGeneratedPositionsInflated");ye.compareByGeneratedPositionsInflated=CC;function qC(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}s(qC,"parseSourceMapInput");ye.parseSourceMapInput=qC;function jC(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=po(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=Db(Gn(n),t)}return hf(t)}s(jC,"computeSourceURL");ye.computeSourceURL=jC});var vf=h(Bb=>{var gf=Kn(),yf=Object.prototype.hasOwnProperty,Qr=typeof Map<"u";function Vt(){this._array=[],this._set=Qr?new Map:Object.create(null)}s(Vt,"ArraySet");Vt.fromArray=s(function(t,r){for(var n=new Vt,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n},"ArraySet_fromArray");Vt.prototype.size=s(function(){return Qr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=s(function(t,r){var n=Qr?t:gf.toSetString(t),i=Qr?this.has(t):yf.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(Qr?this._set.set(t,o):this._set[n]=o)},"ArraySet_add");Vt.prototype.has=s(function(t){if(Qr)return this._set.has(t);var r=gf.toSetString(t);return yf.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=s(function(t){if(Qr){var r=this._set.get(t);if(r>=0)return r}else{var n=gf.toSetString(t);if(yf.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')},"ArraySet_indexOf");Vt.prototype.at=s(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=s(function(){return this._array.slice()},"ArraySet_toArray");Bb.ArraySet=Vt});var zb=h(Ub=>{var Hb=Kn();function MC(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||Hb.compareByGeneratedPositionsInflated(e,t)<=0}s(MC,"generatedPositionAfter");function fa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}s(fa,"MappingList");fa.prototype.unsortedForEach=s(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");fa.prototype.add=s(function(t){MC(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");fa.prototype.toArray=s(function(){return this._sorted||(this._array.sort(Hb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Ub.MappingList=fa});var _f=h(Gb=>{var fo=mf(),ee=Kn(),da=vf().ArraySet,DC=zb().MappingList;function ze(e){e||(e={}),this._file=ee.getArg(e,"file",null),this._sourceRoot=ee.getArg(e,"sourceRoot",null),this._skipValidation=ee.getArg(e,"skipValidation",!1),this._sources=new da,this._names=new da,this._mappings=new DC,this._sourcesContents=null}s(ze,"SourceMapGenerator");ze.prototype._version=3;ze.fromSourceMap=s(function(t){var r=t.sourceRoot,n=new ze({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=ee.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=ee.relative(r,i)),n._sources.has(o)||n._sources.add(o);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n},"SourceMapGenerator_fromSourceMap");ze.prototype.addMapping=s(function(t){var r=ee.getArg(t,"generated"),n=ee.getArg(t,"original",null),i=ee.getArg(t,"source",null),o=ee.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})},"SourceMapGenerator_addMapping");ze.prototype.setSourceContent=s(function(t,r){var n=t;this._sourceRoot!=null&&(n=ee.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ee.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ee.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");ze.prototype.applySourceMap=s(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 o=this._sourceRoot;o!=null&&(i=ee.relative(o,i));var a=new da,c=new da;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=ee.join(n,u.source)),o!=null&&(u.source=ee.relative(o,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var f=u.source;f!=null&&!a.has(f)&&a.add(f);var p=u.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=ee.join(n,u)),o!=null&&(u=ee.relative(o,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");ze.prototype._validateMapping=s(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");ze.prototype._serializeMappings=s(function(){for(var t=0,r=1,n=0,i=0,o=0,a=0,c="",u,l,f,p,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(m>0){if(!ee.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=fo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=fo.encode(p-a),a=p,u+=fo.encode(l.originalLine-1-i),i=l.originalLine-1,u+=fo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=fo.encode(f-o),o=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");ze.prototype._generateSourcesContent=s(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ee.relative(r,n));var i=ee.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");ze.prototype.toJSON=s(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");ze.prototype.toString=s(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Gb.SourceMapGenerator=ze});var Zb=h(Jr=>{Jr.GREATEST_LOWER_BOUND=1;Jr.LEAST_UPPER_BOUND=2;function bf(e,t,r,n,i,o){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?bf(a,t,r,n,i,o):o==Jr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?bf(e,a,r,n,i,o):o==Jr.LEAST_UPPER_BOUND?a:e<0?-1:e}s(bf,"recursiveSearch");Jr.search=s(function(t,r,n,i){if(r.length===0)return-1;var o=bf(-1,r.length,t,r,n,i||Jr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var Yb=h(Kb=>{function Sf(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}s(Sf,"swap");function LC(e,t){return Math.round(e+Math.random()*(t-e))}s(LC,"randomIntInRange");function Pf(e,t,r,n){if(r<n){var i=LC(r,n),o=r-1;Sf(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(o+=1,Sf(e,o,c));Sf(e,o+1,c);var u=o+1;Pf(e,t,r,u-1),Pf(e,t,u+1,n)}}s(Pf,"doQuickSort");Kb.quickSort=function(e,t){Pf(e,t,0,e.length-1)}});var Qb=h(ma=>{var $=Kn(),$f=Zb(),Yn=vf().ArraySet,FC=mf(),mo=Yb().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=$.parseSourceMapInput(e)),r.sections!=null?new ot(r,t):new ue(r,t)}s(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return ue.fromSourceMap(e,t)};U.prototype._version=3;U.prototype.__generatedMappings=null;Object.defineProperty(U.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:s(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:s(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});U.prototype._charIsMappingSeparator=s(function(t,r){var n=t.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");U.prototype._parseMappings=s(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=s(function(t,r,n){var i=r||null,o=n||U.GENERATED_ORDER,a;switch(o){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 c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=$.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=s(function(t){var r=$.getArg(t,"line"),n={source:$.getArg(t,"source"),originalLine:r,originalColumn:$.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$f.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ma.SourceMapConsumer=U;function ue(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sources"),o=$.getArg(r,"names",[]),a=$.getArg(r,"sourceRoot",null),c=$.getArg(r,"sourcesContent",null),u=$.getArg(r,"mappings"),l=$.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=$.normalize(a)),i=i.map(String).map($.normalize).map(function(f){return a&&$.isAbsolute(a)&&$.isAbsolute(f)?$.relative(a,f):f}),this._names=Yn.fromArray(o.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return $.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}s(ue,"BasicSourceMapConsumer");ue.prototype=Object.create(U.prototype);ue.prototype.consumer=U;ue.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=$.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};ue.fromSourceMap=s(function(t,r){var n=Object.create(ue.prototype),i=n._names=Yn.fromArray(t._names.toArray(),!0),o=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(m){return $.computeSourceURL(n.sourceRoot,m,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var p=a[l],d=new Wb;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=o.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),u.push(d)),c.push(d)}return mo(n.__originalMappings,$.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");ue.prototype._version=3;Object.defineProperty(ue.prototype,"sources",{get:s(function(){return this._absoluteSources.slice()},"get")});function Wb(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s(Wb,"Mapping");ue.prototype._parseMappings=s(function(t,r){for(var n=1,i=0,o=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,v,_,b,P;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new Wb,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(f,b),_=p[v],_)f+=v.length;else{for(_=[];f<b;)FC.decode(t,f,d),P=d.value,f=d.rest,_.push(P);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");p[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=c+_[1],c+=_[1],y.originalLine=o+_[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=u+_[4],u+=_[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}mo(g,$.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,mo(m,$.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");ue.prototype._findMapping=s(function(t,r,n,i,o,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 $f.search(t,r,o,a)},"SourceMapConsumer_findMapping");ue.prototype.computeColumnSpans=s(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");ue.prototype.originalPositionFor=s(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",$.compareByGeneratedPositionsDeflated,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=$.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=$.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=$.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:$.getArg(i,"originalLine",null),column:$.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");ue.prototype.hasContentsOfAllSources=s(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");ue.prototype.sourceContentFor=s(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=$.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=$.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.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");ue.prototype.generatedPositionFor=s(function(t){var r=$.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:$.getArg(t,"line"),originalColumn:$.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:$.getArg(o,"generatedLine",null),column:$.getArg(o,"generatedColumn",null),lastColumn:$.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");ma.BasicSourceMapConsumer=ue;function ot(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Yn,this._names=new Yn;var o={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 c=$.getArg(a,"offset"),u=$.getArg(c,"line"),l=$.getArg(c,"column");if(u<o.line||u===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new U($.getArg(a,"map"),t)}})}s(ot,"IndexedSourceMapConsumer");ot.prototype=Object.create(U.prototype);ot.prototype.constructor=U;ot.prototype._version=3;Object.defineProperty(ot.prototype,"sources",{get:s(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")});ot.prototype.originalPositionFor=s(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=$f.search(r,this._sections,function(o,a){var c=o.generatedLine-a.generatedOffset.generatedLine;return c||o.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");ot.prototype.hasContentsOfAllSources=s(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");ot.prototype.sourceContentFor=s(function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");ot.prototype.generatedPositionFor=s(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex($.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");ot.prototype._parseMappings=s(function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var c=o[a],u=i.consumer._sources.at(c.source);u=$.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}mo(this.__generatedMappings,$.compareByGeneratedPositionsDeflated),mo(this.__originalMappings,$.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ma.IndexedSourceMapConsumer=ot});var Xb=h(Jb=>{var VC=_f().SourceMapGenerator,ha=Kn(),BC=/(\r?\n)/,HC=10,Wn="$$$isSourceNode$$$";function Ce(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[Wn]=!0,n!=null&&this.add(n)}s(Ce,"SourceNode");Ce.fromStringWithSourceMap=s(function(t,r,n){var i=new Ce,o=t.split(BC),a=0,c=s(function(){var d=g(),m=g()||"";return d+m;function g(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),u=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(u<d.generatedLine)p(f,c()),u++,l=0;else{var m=o[a]||"",g=m.substr(0,d.generatedColumn-l);o[a]=m.substr(d.generatedColumn-l),l=d.generatedColumn,p(f,g),f=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var m=o[a]||"";i.add(m.substr(0,d.generatedColumn)),o[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<o.length&&(f&&p(f,c()),i.add(o.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=ha.join(n,d)),i.setSourceContent(d,m))}),i;function p(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?ha.join(n,d.source):d.source;i.add(new Ce(d.originalLine,d.originalColumn,g,m,d.name))}}s(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Ce.prototype.add=s(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Wn]||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");Ce.prototype.prepend=s(function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Wn]||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");Ce.prototype.walk=s(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Wn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Ce.prototype.join=s(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");Ce.prototype.replaceRight=s(function(t,r){var n=this.children[this.children.length-1];return n[Wn]?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");Ce.prototype.setSourceContent=s(function(t,r){this.sourceContents[ha.toSetString(t)]=r},"SourceNode_setSourceContent");Ce.prototype.walkSourceContents=s(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Wn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(ha.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");Ce.prototype.toString=s(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");Ce.prototype.toStringWithSourceMap=s(function(t){var r={code:"",line:1,column:0},n=new VC(t),i=!1,o=null,a=null,c=null,u=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((o!==f.source||a!==f.line||c!==f.column||u!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),o=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===HC?(r.line++,r.column=0,p+1===d?(o=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");Jb.SourceNode=Ce});var eS=h(ga=>{ga.SourceMapGenerator=_f().SourceMapGenerator;ga.SourceMapConsumer=Qb().SourceMapConsumer;ga.SourceNode=Xb().SourceNode});var iS=h((ya,nS)=>{"use strict";ya.__esModule=!0;var Ef=Oe(),Xr=void 0;try{(typeof define!="function"||!define.amd)&&(tS=eS(),Xr=tS.SourceNode)}catch{}var tS;Xr||(Xr=s(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),Xr.prototype={add:s(function(t){Ef.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:s(function(t){Ef.isArray(t)&&(t=t.join("")),this.src=t+this.src},"prepend"),toStringWithSourceMap:s(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:s(function(){return this.src},"toString")});function Of(e,t,r){if(Ef.isArray(e)){for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}s(Of,"castChunk");function rS(e){this.srcFile=e,this.source=[]}s(rS,"CodeGen");rS.prototype={isEmpty:s(function(){return!this.source.length},"isEmpty"),prepend:s(function(t,r){this.source.unshift(this.wrap(t,r))},"prepend"),push:s(function(t,r){this.source.push(this.wrap(t,r))},"push"),merge:s(function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
59
|
-
`])}),t},"merge"),each:
|
|
56
|
+
Expecting `+tn.join(", ")+", got '"+(this.terminals_[P]||P)+"'":$a="Parse error on line "+(p+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError($a,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:v,expected:tn})}}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+P);switch(R[0]){case 1:a.push(P),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(R[1]),P=null,S?(P=S,S=null):(d=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,v=this.lexer.yylloc,m>0&&m--);break;case 2:if(_e=this.productions_[R[1]][1],G.$=c[c.length-_e],G._$={first_line:u[u.length-(_e||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(_e||1)].first_column,last_column:u[u.length-1].last_column},_&&(G._$.range=[u[u.length-(_e||1)].range[0],u[u.length-1].range[1]]),J=this.performAction.call(G,f,d,p,this.yy,R[1],c,u),typeof J<"u")return J;_e&&(a=a.slice(0,-1*_e*2),c=c.slice(0,-1*_e),u=u.slice(0,-1*_e)),a.push(this.productions_[R[1]][0]),c.push(G.$),u.push(G._$),Ut=l[a[a.length-2]][a[a.length-1]],a.push(Ut);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,c=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 u=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),c.length-1&&(this.yylineno-=c.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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[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,c,u,l,f;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),d=0;d<p.length&&(c=this._input.match(this.rules[p[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(f=a[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.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,p[u],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,c,u){function l(p,d){return a.yytext=a.yytext.substring(p,a.yyleng-d+p)}o(l,"strip");var f=u;switch(c){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}();oa.default=JR;Sb.exports=oa.default});var ua=h((ca,Eb)=>{"use strict";ca.__esModule=!0;function XR(e){return e&&e.__esModule?e:{default:e}}o(XR,"_interopRequireDefault");var eC=ze(),sf=XR(eC);function sa(){this.parents=[]}o(sa,"Visitor");sa.prototype={constructor:sa,mutating:!1,acceptKey:o(function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!sa.prototype[n.type])throw new sf.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 sf.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 sf.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:aa,Decorator:aa,BlockStatement:$b,DecoratorBlock:$b,PartialStatement:Ob,PartialBlockStatement:o(function(t){Ob.call(this,t),this.acceptKey(t,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:aa,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 aa(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(aa,"visitSubExpression");function $b(e){aa.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}o($b,"visitBlock");function Ob(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}o(Ob,"visitPartial");ca.default=sa;Eb.exports=ca.default});var wb=h((la,xb)=>{"use strict";la.__esModule=!0;function tC(e){return e&&e.__esModule?e:{default:e}}o(tC,"_interopRequireDefault");var rC=ua(),nC=tC(rC);function At(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}o(At,"WhitespaceControl");At.prototype=new nC.default;At.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],c=this.accept(a);if(c){var u=af(n,i,r),l=cf(n,i,r),f=c.openStandalone&&u,p=c.closeStandalone&&l,d=c.inlineStandalone&&u&&l;c.close&&Qr(n,i,!0),c.open&&gr(n,i,!0),t&&d&&(Qr(n,i),gr(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(Qr((a.program||a.inverse).body),gr(n,i)),t&&p&&(Qr(n,i),gr((a.inverse||a.program).body))}}return e};At.prototype.BlockStatement=At.prototype.DecoratorBlock=At.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:cf(t.body),closeStandalone:af((n||t).body)};if(e.openStrip.close&&Qr(t.body,null,!0),r){var a=e.inverseStrip;a.open&&gr(t.body,null,!0),a.close&&Qr(n.body,null,!0),e.closeStrip.open&&gr(i.body,null,!0),!this.options.ignoreStandalone&&af(t.body)&&cf(n.body)&&(gr(t.body),Qr(n.body))}else e.closeStrip.open&&gr(t.body,null,!0);return s};At.prototype.Decorator=At.prototype.MustacheStatement=function(e){return e.strip};At.prototype.PartialStatement=At.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function af(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(af,"isPrevWhitespace");function cf(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(cf,"isNextWhitespace");function Qr(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(Qr,"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");la.default=At;xb.exports=la.default});var Ab=h(Ge=>{"use strict";Ge.__esModule=!0;Ge.SourceLocation=sC;Ge.id=aC;Ge.stripFlags=cC;Ge.stripComment=uC;Ge.preparePath=lC;Ge.prepareMustache=pC;Ge.prepareRawBlock=fC;Ge.prepareBlock=dC;Ge.prepareProgram=mC;Ge.preparePartialBlock=hC;function iC(e){return e&&e.__esModule?e:{default:e}}o(iC,"_interopRequireDefault");var oC=ze(),uf=iC(oC);function lf(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new uf.default(e.path.original+" doesn't match "+t,r)}}o(lf,"validateClose");function sC(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(sC,"SourceLocation");function aC(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}o(aC,"id");function cC(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}o(cC,"stripFlags");function uC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(uC,"stripComment");function lC(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,c=t.length;a<c;a++){var u=t[a].part,l=t[a].original!==u;if(n+=(t[a].separator||"")+u,!l&&(u===".."||u==="."||u==="this")){if(i.length>0)throw new uf.default("Invalid path: "+n,{loc:r});u===".."&&s++}else i.push(u)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}o(lC,"preparePath");function pC(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",u=/\*/.test(n);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:c,strip:i,loc:this.locInfo(s)}}o(pC,"prepareMustache");function fC(e,t,r,n){lf(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(fC,"prepareRawBlock");function dC(e,t,r,n,i,s){n&&n.path&&lf(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(r){if(a)throw new uf.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),u=r.strip,c=r.program}return i&&(i=c,c=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}}o(dC,"prepareBlock");function mC(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(mC,"prepareProgram");function hC(e,t,r,n){return lf(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(hC,"preparePartialBlock")});var kb=h(so=>{"use strict";so.__esModule=!0;so.parseWithoutProcessing=Tb;so.parse=$C;function gC(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(gC,"_interopRequireWildcard");function Ib(e){return e&&e.__esModule?e:{default:e}}o(Ib,"_interopRequireDefault");var yC=Pb(),pf=Ib(yC),vC=wb(),_C=Ib(vC),bC=Ab(),SC=gC(bC),PC=xe();so.parser=pf.default;var pa={};PC.extend(pa,SC);function Tb(e,t){if(e.type==="Program")return e;pf.default.yy=pa,pa.locInfo=function(n){return new pa.SourceLocation(t&&t.srcName,n)};var r=pf.default.parse(e);return r}o(Tb,"parseWithoutProcessing");function $C(e,t){var r=Tb(e,t),n=new _C.default(t);return n.accept(r)}o($C,"parse")});var jb=h(lo=>{"use strict";lo.__esModule=!0;lo.Compiler=ff;lo.precompile=wC;lo.compile=AC;function Rb(e){return e&&e.__esModule?e:{default:e}}o(Rb,"_interopRequireDefault");var OC=ze(),co=Rb(OC),uo=xe(),EC=of(),ao=Rb(EC),xC=[].slice;function ff(){}o(ff,"Compiler");ff.prototype={compiler:ff,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||!Cb(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=uo.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 co.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){Nb(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 co.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){Nb(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 co.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,ao.default.helpers.simpleId(s))}},"helperSexpr"),PathExpression:o(function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=ao.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:xC.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:o(function(t){t&&(this.useDepths=!0)},"addDepth"),classifySexpr:o(function(t){var r=ao.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&ao.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],c=this.options;c.knownHelpers[a]?i=!0:c.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&&!ao.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&&uo.indexOf(i,t);if(i&&s>=0)return[r,s]}},"blockParamIndex")};function wC(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new co.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(wC,"precompile");function AC(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new co.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=uo.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),c=new r.Compiler().compile(a,t),u=new r.JavaScriptCompiler().compile(c,t,void 0,!0);return r.template(u)}o(i,"compileInput");function s(a,c){return n||(n=i()),n.call(this,a,c)}return o(s,"ret"),s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,c,u,l){return n||(n=i()),n._child(a,c,u,l)},s}o(AC,"compile");function Cb(e,t){if(e===t)return!0;if(uo.isArray(e)&&uo.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!Cb(e[r],t[r]))return!1;return!0}}o(Cb,"argEquals");function Nb(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(Nb,"transformLiteralToPath")});var Mb=h(df=>{var qb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");df.encode=function(e){if(0<=e&&e<qb.length)return qb[e];throw new TypeError("Must be between 0 and 63: "+e)};df.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,u=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+f:e==c?62:e==u?63:-1}});var gf=h(hf=>{var Db=Mb(),mf=5,Lb=1<<mf,Fb=Lb-1,Vb=Lb;function IC(e){return e<0?(-e<<1)+1:(e<<1)+0}o(IC,"toVLQSigned");function TC(e){var t=(e&1)===1,r=e>>1;return t?-r:r}o(TC,"fromVLQSigned");hf.encode=o(function(t){var r="",n,i=IC(t);do n=i&Fb,i>>>=mf,i>0&&(n|=Vb),r+=Db.encode(n);while(i>0);return r},"base64VLQ_encode");hf.decode=o(function(t,r,n){var i=t.length,s=0,a=0,c,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Db.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(u&Vb),u&=Fb,s=s+(u<<a),a+=mf}while(c);n.value=TC(s),n.rest=r},"base64VLQ_decode")});var Kn=h(ye=>{function kC(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(kC,"getArg");ye.getArg=kC;var Bb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,NC=/^data:.+\,.+$/;function po(e){var t=e.match(Bb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}o(po,"urlParse");ye.urlParse=po;function Gn(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(Gn,"urlGenerate");ye.urlGenerate=Gn;function yf(e){var t=e,r=po(e);if(r){if(!r.path)return e;t=r.path}for(var n=ye.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Gn(r)):t}o(yf,"normalize");ye.normalize=yf;function Hb(e,t){e===""&&(e="."),t===""&&(t=".");var r=po(t),n=po(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Gn(r);if(r||t.match(NC))return t;if(n&&!n.host&&!n.path)return n.host=t,Gn(n);var i=t.charAt(0)==="/"?t:yf(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Gn(n)):i}o(Hb,"join");ye.join=Hb;ye.isAbsolute=function(e){return e.charAt(0)==="/"||Bb.test(e)};function RC(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(RC,"relative");ye.relative=RC;var Ub=function(){var e=Object.create(null);return!("__proto__"in e)}();function zb(e){return e}o(zb,"identity");function CC(e){return Gb(e)?"$"+e:e}o(CC,"toSetString");ye.toSetString=Ub?zb:CC;function jC(e){return Gb(e)?e.slice(1):e}o(jC,"fromSetString");ye.fromSetString=Ub?zb:jC;function Gb(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(Gb,"isProtoString");function qC(e,t,r){var n=Zn(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:Zn(e.name,t.name)}o(qC,"compareByOriginalPositions");ye.compareByOriginalPositions=qC;function MC(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Zn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Zn(e.name,t.name)}o(MC,"compareByGeneratedPositionsDeflated");ye.compareByGeneratedPositionsDeflated=MC;function Zn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}o(Zn,"strcmp");function DC(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Zn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Zn(e.name,t.name)}o(DC,"compareByGeneratedPositionsInflated");ye.compareByGeneratedPositionsInflated=DC;function LC(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}o(LC,"parseSourceMapInput");ye.parseSourceMapInput=LC;function FC(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=po(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=Hb(Gn(n),t)}return yf(t)}o(FC,"computeSourceURL");ye.computeSourceURL=FC});var bf=h(Zb=>{var vf=Kn(),_f=Object.prototype.hasOwnProperty,Jr=typeof Map<"u";function Vt(){this._array=[],this._set=Jr?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 Jr?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Vt.prototype.add=o(function(t,r){var n=Jr?t:vf.toSetString(t),i=Jr?this.has(t):_f.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Jr?this._set.set(t,s):this._set[n]=s)},"ArraySet_add");Vt.prototype.has=o(function(t){if(Jr)return this._set.has(t);var r=vf.toSetString(t);return _f.call(this._set,r)},"ArraySet_has");Vt.prototype.indexOf=o(function(t){if(Jr){var r=this._set.get(t);if(r>=0)return r}else{var n=vf.toSetString(t);if(_f.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");Zb.ArraySet=Vt});var Wb=h(Yb=>{var Kb=Kn();function VC(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||Kb.compareByGeneratedPositionsInflated(e,t)<=0}o(VC,"generatedPositionAfter");function fa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o(fa,"MappingList");fa.prototype.unsortedForEach=o(function(t,r){this._array.forEach(t,r)},"MappingList_forEach");fa.prototype.add=o(function(t){VC(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},"MappingList_add");fa.prototype.toArray=o(function(){return this._sorted||(this._array.sort(Kb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");Yb.MappingList=fa});var Sf=h(Qb=>{var fo=gf(),te=Kn(),da=bf().ArraySet,BC=Wb().MappingList;function Ze(e){e||(e={}),this._file=te.getArg(e,"file",null),this._sourceRoot=te.getArg(e,"sourceRoot",null),this._skipValidation=te.getArg(e,"skipValidation",!1),this._sources=new da,this._names=new da,this._mappings=new BC,this._sourcesContents=null}o(Ze,"SourceMapGenerator");Ze.prototype._version=3;Ze.fromSourceMap=o(function(t){var r=t.sourceRoot,n=new Ze({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=te.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=te.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");Ze.prototype.addMapping=o(function(t){var r=te.getArg(t,"generated"),n=te.getArg(t,"original",null),i=te.getArg(t,"source",null),s=te.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");Ze.prototype.setSourceContent=o(function(t,r){var n=t;this._sourceRoot!=null&&(n=te.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[te.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[te.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Ze.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=te.relative(s,i));var a=new da,c=new da;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=te.join(n,u.source)),s!=null&&(u.source=te.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var f=u.source;f!=null&&!a.has(f)&&a.add(f);var p=u.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=te.join(n,u)),s!=null&&(u=te.relative(s,u)),this.setSourceContent(u,l))},this)},"SourceMapGenerator_applySourceMap");Ze.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");Ze.prototype._serializeMappings=o(function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",u,l,f,p,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(m>0){if(!te.compareByGeneratedPositionsInflated(l,d[m-1]))continue;u+=","}u+=fo.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=fo.encode(p-a),a=p,u+=fo.encode(l.originalLine-1-i),i=l.originalLine-1,u+=fo.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),u+=fo.encode(f-s),s=f)),c+=u}return c},"SourceMapGenerator_serializeMappings");Ze.prototype._generateSourcesContent=o(function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=te.relative(r,n));var i=te.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},"SourceMapGenerator_generateSourcesContent");Ze.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");Ze.prototype.toString=o(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Qb.SourceMapGenerator=Ze});var Jb=h(Xr=>{Xr.GREATEST_LOWER_BOUND=1;Xr.LEAST_UPPER_BOUND=2;function Pf(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Pf(a,t,r,n,i,s):s==Xr.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Pf(e,a,r,n,i,s):s==Xr.LEAST_UPPER_BOUND?a:e<0?-1:e}o(Pf,"recursiveSearch");Xr.search=o(function(t,r,n,i){if(r.length===0)return-1;var s=Pf(-1,r.length,t,r,n,i||Xr.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 eS=h(Xb=>{function $f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}o($f,"swap");function HC(e,t){return Math.round(e+Math.random()*(t-e))}o(HC,"randomIntInRange");function Of(e,t,r,n){if(r<n){var i=HC(r,n),s=r-1;$f(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,$f(e,s,c));$f(e,s+1,c);var u=s+1;Of(e,t,r,u-1),Of(e,t,u+1,n)}}o(Of,"doQuickSort");Xb.quickSort=function(e,t){Of(e,t,0,e.length-1)}});var rS=h(ma=>{var $=Kn(),Ef=Jb(),Yn=bf().ArraySet,UC=gf(),mo=eS().quickSort;function U(e,t){var r=e;return typeof e=="string"&&(r=$.parseSourceMapInput(e)),r.sections!=null?new at(r,t):new le(r,t)}o(U,"SourceMapConsumer");U.fromSourceMap=function(e,t){return le.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 c=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=$.computeSourceURL(c,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i)},"SourceMapConsumer_eachMapping");U.prototype.allGeneratedPositionsFor=o(function(t){var r=$.getArg(t,"line"),n={source:$.getArg(t,"source"),originalLine:r,originalColumn:$.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",$.compareByOriginalPositions,Ef.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:$.getArg(a,"generatedLine",null),column:$.getArg(a,"generatedColumn",null),lastColumn:$.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i},"SourceMapConsumer_allGeneratedPositionsFor");ma.SourceMapConsumer=U;function le(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.getArg(r,"sources"),s=$.getArg(r,"names",[]),a=$.getArg(r,"sourceRoot",null),c=$.getArg(r,"sourcesContent",null),u=$.getArg(r,"mappings"),l=$.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=$.normalize(a)),i=i.map(String).map($.normalize).map(function(f){return a&&$.isAbsolute(a)&&$.isAbsolute(f)?$.relative(a,f):f}),this._names=Yn.fromArray(s.map(String),!0),this._sources=Yn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return $.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=l}o(le,"BasicSourceMapConsumer");le.prototype=Object.create(U.prototype);le.prototype.consumer=U;le.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=$.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};le.fromSourceMap=o(function(t,r){var n=Object.create(le.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(m){return $.computeSourceURL(n.sourceRoot,m,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var p=a[l],d=new tS;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=s.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=i.indexOf(p.name)),u.push(d)),c.push(d)}return mo(n.__originalMappings,$.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");le.prototype._version=3;Object.defineProperty(le.prototype,"sources",{get:o(function(){return this._absoluteSources.slice()},"get")});function tS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o(tS,"Mapping");le.prototype._parseMappings=o(function(t,r){for(var n=1,i=0,s=0,a=0,c=0,u=0,l=t.length,f=0,p={},d={},m=[],g=[],y,v,_,b,O;f<l;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new tS,y.generatedLine=n,b=f;b<l&&!this._charIsMappingSeparator(t,b);b++);if(v=t.slice(f,b),_=p[v],_)f+=v.length;else{for(_=[];f<b;)UC.decode(t,f,d),O=d.value,f=d.rest,_.push(O);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");p[v]=_}y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=c+_[1],c+=_[1],y.originalLine=s+_[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=a+_[3],a=y.originalColumn,_.length>4&&(y.name=u+_[4],u+=_[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}mo(g,$.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,mo(m,$.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");le.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 Ef.search(t,r,s,a)},"SourceMapConsumer_findMapping");le.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");le.prototype.originalPositionFor=o(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",$.compareByGeneratedPositionsDeflated,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=$.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=$.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=$.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:$.getArg(i,"originalLine",null),column:$.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");le.prototype.hasContentsOfAllSources=o(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");le.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=$.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=$.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");le.prototype.generatedPositionFor=o(function(t){var r=$.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:$.getArg(t,"line"),originalColumn:$.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$.getArg(t,"bias",U.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:$.getArg(s,"generatedLine",null),column:$.getArg(s,"generatedColumn",null),lastColumn:$.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");ma.BasicSourceMapConsumer=le;function at(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),i=$.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 c=$.getArg(a,"offset"),u=$.getArg(c,"line"),l=$.getArg(c,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new U($.getArg(a,"map"),t)}})}o(at,"IndexedSourceMapConsumer");at.prototype=Object.create(U.prototype);at.prototype.constructor=U;at.prototype._version=3;Object.defineProperty(at.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")});at.prototype.originalPositionFor=o(function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=Ef.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||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");at.prototype.hasContentsOfAllSources=o(function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");at.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");at.prototype.generatedPositionFor=o(function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex($.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");at.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 c=s[a],u=i.consumer._sources.at(c.source);u=$.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var f={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}mo(this.__generatedMappings,$.compareByGeneratedPositionsDeflated),mo(this.__originalMappings,$.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");ma.IndexedSourceMapConsumer=at});var iS=h(nS=>{var zC=Sf().SourceMapGenerator,ha=Kn(),GC=/(\r?\n)/,ZC=10,Wn="$$$isSourceNode$$$";function qe(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[Wn]=!0,n!=null&&this.add(n)}o(qe,"SourceNode");qe.fromStringWithSourceMap=o(function(t,r,n){var i=new qe,s=t.split(GC),a=0,c=o(function(){var d=g(),m=g()||"";return d+m;function g(){return a<s.length?s[a++]:void 0}},"shiftNextLine"),u=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(u<d.generatedLine)p(f,c()),u++,l=0;else{var m=s[a]||"",g=m.substr(0,d.generatedColumn-l);s[a]=m.substr(d.generatedColumn-l),l=d.generatedColumn,p(f,g),f=d;return}for(;u<d.generatedLine;)i.add(c()),u++;if(l<d.generatedColumn){var m=s[a]||"";i.add(m.substr(0,d.generatedColumn)),s[a]=m.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&p(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=ha.join(n,d)),i.setSourceContent(d,m))}),i;function p(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?ha.join(n,d.source):d.source;i.add(new qe(d.originalLine,d.originalColumn,g,m,d.name))}}o(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");qe.prototype.add=o(function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Wn]||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");qe.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[Wn]||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");qe.prototype.walk=o(function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Wn]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");qe.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");qe.prototype.replaceRight=o(function(t,r){var n=this.children[this.children.length-1];return n[Wn]?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");qe.prototype.setSourceContent=o(function(t,r){this.sourceContents[ha.toSetString(t)]=r},"SourceNode_setSourceContent");qe.prototype.walkSourceContents=o(function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Wn]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(ha.fromSetString(i[r]),this.sourceContents[i[r]])},"SourceNode_walkSourceContents");qe.prototype.toString=o(function(){var t="";return this.walk(function(r){t+=r}),t},"SourceNode_toString");qe.prototype.toStringWithSourceMap=o(function(t){var r={code:"",line:1,column:0},n=new zC(t),i=!1,s=null,a=null,c=null,u=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||u!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,c=f.column,u=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,d=l.length;p<d;p++)l.charCodeAt(p)===ZC?(r.line++,r.column=0,p+1===d?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");nS.SourceNode=qe});var oS=h(ga=>{ga.SourceMapGenerator=Sf().SourceMapGenerator;ga.SourceMapConsumer=rS().SourceMapConsumer;ga.SourceNode=iS().SourceNode});var uS=h((ya,cS)=>{"use strict";ya.__esModule=!0;var wf=xe(),en=void 0;try{(typeof define!="function"||!define.amd)&&(sS=oS(),en=sS.SourceNode)}catch{}var sS;en||(en=o(function(e,t,r,n){this.src="",n&&this.add(n)},"SourceNode"),en.prototype={add:o(function(t){wf.isArray(t)&&(t=t.join("")),this.src+=t},"add"),prepend:o(function(t){wf.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 xf(e,t,r){if(wf.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(xf,"castChunk");function aS(e){this.srcFile=e,this.source=[]}o(aS,"CodeGen");aS.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 en(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 en?t:(t=xf(t,this,r),new en(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=xf(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(xf(t[n],this));return r},"generateList"),generateArray:o(function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r},"generateArray")};ya.default=aS;cS.exports=ya.default});var mS=h((va,dS)=>{"use strict";va.__esModule=!0;function fS(e){return e&&e.__esModule?e:{default:e}}o(fS,"_interopRequireDefault");var lS=Xs(),KC=ze(),Af=fS(KC),YC=xe(),WC=uS(),pS=fS(WC);function Qn(e){this.value=e}o(Qn,"Literal");function Jn(){}o(Jn,"JavaScriptCompiler");Jn.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=lS.COMPILER_REVISION,r=lS.REVISION_CHANGES[t];return[t,r]},"compilerInfo"),appendToBuffer:o(function(t,r,n){return YC.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,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Af.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
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
61
|
`),this.decorators.push(`}
|
|
62
|
-
`),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(i);if(this.isChild)return f;var p={compiler:this.compilerInfo(),main:f};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,g=d.decorators;for(u=0,l=m.length;u<l;u++)m[u]&&(p[u]=m[u],g[u]&&(p[u+"_d"]=g[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),i?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:
|
|
63
|
-
`,c,"}"])},"createFunctionContext"),mergeSource:
|
|
64
|
-
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:
|
|
62
|
+
`),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(i);if(this.isChild)return f;var p={compiler:this.compilerInfo(),main:f};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,m=d.programs,g=d.decorators;for(u=0,l=m.length;u<l;u++)m[u]&&(p[u]=m[u],g[u]&&(p[u+"_d"]=g[u],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),i?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:o(function(){this.lastContext=0,this.source=new pS.default(this.options.srcName),this.decorators=new pS.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(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(n+=", alias"+ ++s+"="+u,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 c=this.mergeSource(n);return t?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
63
|
+
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.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
65
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
66
66
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
67
67
|
return parent[propertyName];
|
|
68
68
|
}
|
|
69
69
|
return undefined
|
|
70
70
|
}
|
|
71
|
-
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:s(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:s(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:s(function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},"appendContent"),append:s(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:s(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:s(function(t){this.lastContext=t},"getContext"),pushContext:s(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:s(function(t,r,n,i){var o=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[o++])):this.pushContext(),this.resolvePath("context",t,o,r,n)},"lookupOnContext"),lookupBlockParam:s(function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:s(function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:s(function(t,r,n,i,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(ZC(this.options.strict&&o,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"resolvePath"),resolvePossibleLambda:s(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:s(function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},"pushStringParam"),emptyHash:s(function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},"emptyHash"),pushHash:s(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:s(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:s(function(t){this.pushStackLiteral(this.quotedString(t))},"pushString"),pushLiteral:s(function(t){this.pushStackLiteral(t)},"pushLiteral"),pushProgram:s(function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:s(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:s(function(t,r,n){var i=this.popStack(),o=this.setupHelper(t,r),a=[];n&&a.push(o.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",o.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:s(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:s(function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:s(function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),o=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",o," || ",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:s(function(t,r,n){var i=[],o=this.setupParams(r,1,i);t&&(r=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),i.push(o),this.push(this.source.functionCall("container.invokePartial","",i))},"invokePartial"),assignToHash:s(function(t){var r=this.popStack(),n=void 0,i=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),o&&(a.ids[t]=o),a.values[t]=r},"assignToHash"),pushId:s(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:Jn,compileChildren:s(function(t,r){for(var n=t.children,i=void 0,o=void 0,a=0,c=n.length;a<c;a++){i=n[a],o=new this.compiler;var u=this.matchExistingProgram(i);if(u==null){this.context.programs.push("");var l=this.context.programs.length;i.index=l,i.name="program"+l,this.context.programs[l]=o.compile(i,r,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=i,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.useBlockParams}},"compileChildren"),matchExistingProgram:s(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:s(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:s(function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},"useRegister"),push:s(function(t){return t instanceof Qn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:s(function(t){this.push(new Qn(t))},"pushStackLiteral"),pushSource:s(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:s(function(t){var r=["("],n=void 0,i=void 0,o=void 0;if(!this.isInline())throw new xf.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Qn)n=[a.value],r=["(",n],o=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);o||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"replaceStack"),incrStack:s(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:s(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:s(function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof Qn)this.compileStack.push(i);else{var o=this.incrStack();this.pushSource([o," = ",i,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:s(function(){return this.inlineStack.length},"isInline"),popStack:s(function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof Qn)return n.value;if(!r){if(!this.stackSlot)throw new xf.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:s(function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof Qn?r.value:r},"topStack"),contextName:s(function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},"contextName"),quotedString:s(function(t){return this.source.quotedString(t)},"quotedString"),objectLiteral:s(function(t){return this.source.objectLiteral(t)},"objectLiteral"),aliasable:s(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:s(function(t,r,n){var i=[],o=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:o,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:s(function(t,r,n){var i={},o=[],a=[],c=[],u=!n,l=void 0;u&&(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 f=this.popStack(),p=this.popStack();(p||f)&&(i.fn=p||"container.noop",i.inverse=f||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),o[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(o)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},"setupParams"),setupHelperArgs:s(function(t,r,n,i){var o=this.setupParams(t,r,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),i?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"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=Jn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Jn.isValidJavaScriptVariableName=function(e){return!Jn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function ZC(e,t,r,n,i){var o=t.popStack(),a=r.length;for(e&&a--;n<a;n++)o=t.nameLookup(o,r[n],i);return e?[t.aliasable("container.strict"),"(",o,", ",t.quotedString(r[n]),", ",JSON.stringify(t.source.currentLocation)," )"]:o}s(ZC,"strictLookup");va.default=Jn;cS.exports=va.default});var fS=h((_a,pS)=>{"use strict";_a.__esModule=!0;function ho(e){return e&&e.__esModule?e:{default:e}}s(ho,"_interopRequireDefault");var KC=db(),YC=ho(KC),WC=rf(),QC=ho(WC),wf=xb(),Af=Tb(),JC=uS(),XC=ho(JC),e3=ua(),t3=ho(e3),r3=Jp(),n3=ho(r3),i3=YC.default.create;function lS(){var e=i3();return e.compile=function(t,r){return Af.compile(t,r,e)},e.precompile=function(t,r){return Af.precompile(t,r,e)},e.AST=QC.default,e.Compiler=Af.Compiler,e.JavaScriptCompiler=XC.default,e.Parser=wf.parser,e.parse=wf.parse,e.parseWithoutProcessing=wf.parseWithoutProcessing,e}s(lS,"create");var Xn=lS();Xn.create=lS;n3.default(Xn);Xn.Visitor=t3.default;Xn.default=Xn;_a.default=Xn;pS.exports=_a.default});var dS=h(ba=>{"use strict";ba.__esModule=!0;ba.print=c3;ba.PrintVisitor=Y;function o3(e){return e&&e.__esModule?e:{default:e}}s(o3,"_interopRequireDefault");var s3=ua(),a3=o3(s3);function c3(e){return new Y().accept(e)}s(c3,"print");function Y(){this.padding=0}s(Y,"PrintVisitor");Y.prototype=new a3.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 o="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)o+=" "+e.blockParams[n];o+=" ]",t+=this.pad(o)}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,o=t.length;i<o;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 gr=h((xF,gS)=>{var Sa=fS().default,hS=dS();Sa.PrintVisitor=hS.PrintVisitor;Sa.print=hS.print;gS.exports=Sa;function mS(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Sa.compile(n)}s(mS,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=mS,require.extensions[".hbs"]=mS)});var L3={};DS(L3,{getGenerateFilesData:()=>D3,getGenerateMetadata:()=>M3});module.exports=LS(L3);var qf=at(pv());var fv="Schema",dv="Enum",mv="Body",hv="Param",gv="Response",yv="ErrorResponse",fp="z.void()",Ps={bindings:["z"],from:"zod"};var zi={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"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},schemaSuffix:fv,enumSuffix:dv,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var Se=s((...e)=>[...new Set(e.flat())],"getUniqueArray");var X=s(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Br=s(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),$s=s(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ce=s(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),vv=s(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),dp=s((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),_v=s((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Ck=s(e=>{var n;let t=e.reduce((i,o)=>({...i,[o]:(i[o]??0)+1}),{});return(n=Object.entries(t).sort((i,o)=>i[1]===o[1]?o[0].length-i[0].length:o[1]-i[1])[0])==null?void 0:n[0]},"getLongestMostCommon"),mp=s(e=>{let t=e.map(X).map(qk).map(r=>jk(r)).flat();return Ck(t)},"getMostCommonAdjacentCombinationSplit"),qk=s(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),jk=s((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 o=i+1;o<=e.length;o++)t.includes((n=e[o-1])==null?void 0:n.toLowerCase())||r.push(e.slice(i,o).join(""));return r},"getAdjacentStringCombinations");var Os=s(e=>`use${X(ce(e.operationName))}`,"getQueryName"),hp=s(e=>{let t=e.map(({path:o})=>o),r=/^\/[^\/]*/g,n=Se(t.map(o=>o.match(r)).flat()),i=s(o=>n.length===1?"all":`all${X($s(o.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(o=>o!==null).map(o=>({path:o,name:i(o??"")}))},"getAllQueryKeys"),bv=s((e,t)=>{let n=hp(t).find(({path:o})=>e.path.startsWith(o));if(!n)return[e.path];let i=e.path.substring(n.path.length);return[`...keys.${n.name}`,...i?[`"${i}"`]:[]]},"getEndpointPathQueryKeys");function Ct({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Br(t)}/`:""}${Br(t)}.${i}`:i}s(Ct,"getTagFileName");var G=s(({type:e,tag:t,options:r})=>`${X(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Sv=s(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),vt=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 qt=Symbol.for("@ts-pattern/matcher"),Mk=Symbol.for("@ts-pattern/isVariadic"),xs="@ts-pattern/anonymous-select-key",gp=s(e=>!!(e&&typeof e=="object"),"r"),Es=s(e=>e&&!!e[qt],"i"),St=s((e,t,r)=>{if(Es(e)){let n=e[qt](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(a=>r(a,o[a])),i}if(gp(e)){if(!gp(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];Es(c)&&c[Mk]?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((l,f)=>St(l,a[f],r))&&i.every((l,f)=>St(l,c[f],r))&&(o.length===0||St(o[0],u,r))}return e.length===t.length&&e.every((a,c)=>St(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Es(o=i)&&o[qt]().matcherType==="optional")&&St(i,t[n],r);var o})}return Object.is(t,e)},"s"),lr=s(e=>{var t,r,n;return gp(e)?Es(e)?(t=(r=(n=e[qt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Zi(e,lr):Zi(Object.values(e),lr):[]},"o"),Zi=s((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function Be(e){return Object.assign(e,{optional:s(()=>Dk(e),"optional"),and:s(t=>z(e,t),"and"),or:s(t=>Lk(e,t),"or"),select:s(t=>t===void 0?Pv(e):Pv(t,e),"select")})}s(Be,"u");function Dk(e){return Be({[qt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return t===void 0?(lr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:St(e,t,n),selections:r}},"match"),getSelectionKeys:s(()=>lr(e),"getSelectionKeys"),matcherType:"optional"})})}s(Dk,"h");function z(...e){return Be({[qt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return{matched:e.every(i=>St(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Zi(e,lr),"getSelectionKeys"),matcherType:"and"})})}s(z,"m");function Lk(...e){return Be({[qt]:()=>({match:s(t=>{let r={},n=s((i,o)=>{r[i]=o},"r");return Zi(e,lr).forEach(i=>n(i,void 0)),{matched:e.some(i=>St(i,t,n)),selections:r}},"match"),getSelectionKeys:s(()=>Zi(e,lr),"getSelectionKeys"),matcherType:"or"})})}s(Lk,"d");function D(e){return{[qt]:()=>({match:s(t=>({matched:!!e(t)}),"match")})}}s(D,"p");function Pv(...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 Be({[qt]:()=>({match:s(n=>{let i={[t??xs]:n};return{matched:r===void 0||St(r,n,(o,a)=>{i[o]=a}),selections:i}},"match"),getSelectionKeys:s(()=>[t??xs].concat(r===void 0?[]:lr(r)),"getSelectionKeys")})})}s(Pv,"y");function _t(e){return typeof e=="number"}s(_t,"v");function sr(e){return typeof e=="string"}s(sr,"b");function ar(e){return typeof e=="bigint"}s(ar,"w");var dD=Be(D(function(e){return!0}));var cr=s(e=>Object.assign(Be(e),{startsWith:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:s(t=>cr(z(e,(r=>D(n=>sr(n)&&n.length>=r))(t))),"minLength"),length:s(t=>cr(z(e,(r=>D(n=>sr(n)&&n.length===r))(t))),"length"),maxLength:s(t=>cr(z(e,(r=>D(n=>sr(n)&&n.length<=r))(t))),"maxLength"),includes:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&n.includes(r)))));var r},"includes"),regex:s(t=>{return cr(z(e,(r=t,D(n=>sr(n)&&!!n.match(r)))));var r},"regex")}),"j"),mD=cr(D(sr)),bt=s(e=>Object.assign(Be(e),{between:s((t,r)=>bt(z(e,((n,i)=>D(o=>_t(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n<r))(t))),"lt"),gt:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n>r))(t))),"gt"),lte:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n<=r))(t))),"lte"),gte:s(t=>bt(z(e,(r=>D(n=>_t(n)&&n>=r))(t))),"gte"),int:s(()=>bt(z(e,D(t=>_t(t)&&Number.isInteger(t)))),"int"),finite:s(()=>bt(z(e,D(t=>_t(t)&&Number.isFinite(t)))),"finite"),positive:s(()=>bt(z(e,D(t=>_t(t)&&t>0))),"positive"),negative:s(()=>bt(z(e,D(t=>_t(t)&&t<0))),"negative")}),"x"),hD=bt(D(_t)),ur=s(e=>Object.assign(Be(e),{between:s((t,r)=>ur(z(e,((n,i)=>D(o=>ar(o)&&n<=o&&i>=o))(t,r))),"between"),lt:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n<r))(t))),"lt"),gt:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n>r))(t))),"gt"),lte:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n<=r))(t))),"lte"),gte:s(t=>ur(z(e,(r=>D(n=>ar(n)&&n>=r))(t))),"gte"),positive:s(()=>ur(z(e,D(t=>ar(t)&&t>0))),"positive"),negative:s(()=>ur(z(e,D(t=>ar(t)&&t<0))),"negative")}),"A"),gD=ur(D(ar)),yD=Be(D(function(e){return typeof e=="boolean"})),vD=Be(D(function(e){return typeof e=="symbol"})),_D=Be(D(function(e){return e==null})),bD=Be(D(function(e){return e!=null}));var bp=class bp 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(bp,"W");var yp=bp,vp={matched:!1,value:void 0};function ge(e){return new _p(e,vp)}s(ge,"z");var Gi=class Gi{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((l,f)=>{o=!0,a[l]=f},"a"),u=!n.some(l=>St(l,this.input,c))||i&&!i(this.input)?vp:{matched:!0,value:r(o?xs in a?a[xs]:a:this.input,this.input)};return new Gi(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Gi(this.input,n?{matched:!0,value:r(this.input,this.input)}:vp)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new yp(this.input)}run(){return this.exhaustive()}returnType(){return this}};s(Gi,"I");var _p=Gi;var $v=["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 Sp=2,Ov=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],Ev=["query","header","path"],pr=["get","put","post","delete","options","head","patch","trace"],xv=["string","number","integer","boolean"],ws=["allOf","anyOf","oneOf"];function fr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}s(fr,"pick");function Pt(e){return vv(e)}s(Pt,"formatTag");function Hr(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Pt(r??t.defaultTag)}s(Hr,"getOperationTag");function wv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],o=fr(i,pr);for(let a in o){let c=o[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Hr(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}s(wv,"getOperationsByTag");var Iv=s(e=>`#/components/schemas/${e}`,"getSchemaRef"),Ur=s(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Vn=s(e=>Ur(e).split("/").at(-1),"getSchemaNameByRef");function F(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}s(F,"isReferenceObject");function Op(e){let t=Fk(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ce(t)}s(Op,"normalizeString");function Tv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}s(Tv,"wrapWithQuotesIfNeeded");function kv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}s(kv,"unwrapQuotesIfNeeded");function Fk(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}s(Fk,"prefixStringStartingWithNumberIfNeeded");function Ep(e){let t=e.replaceAll("_","#");return ce(t.replaceAll("-","_")).replaceAll("#","_")}s(Ep,"pathParamToVariableName");var jt=s(e=>xv.includes(e),"isPrimitiveType");function Nv(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(Nv,"escapeControlCharacters");function $t(e){return e.includes("application/")&&e.includes("json")||Ov.includes(e)||e.includes("text/")}s($t,"isParamMediaTypeAllowed");function As(e){return e>=200&&e<300}s(As,"isMainResponseStatus");function Is(e){return!(e>=200&&e<300)}s(Is,"isErrorStatus");function Bn(e){return e==="application/json"}s(Bn,"isMediaTypeAllowed");function Pp({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let o=`${t}${Bk(e)}`,a=r.operationId?vt(r.operationId):o;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:X(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return $v.includes(a)?o:a}s(Pp,"getOperationName");function Ki({path:e,method:t,operation:r,operationsByTag:n,options:i}){let o=i.splitByTags?Hr(r,i):i.defaultTag,a=Pp({path:e,method:t,operation:r,options:i});return n[o].filter(u=>Pp({path:e,method:t,operation:u,options:i})===a).length===1?a:Pp({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}s(Ki,"getUniqueOperationName");function Rv(e,t,r){let n=[];for(let i in e.paths){let o=e.paths[i],a=fr(o,pr);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Ki({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}s(Rv,"getUniqueOperationNamesWithoutSplitByTags");var Av=/({\w+})/g,Vk=/[^\w\-]+/g;function Bk(e){e=X($s(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(Av)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(Av,"")}By${X(r.slice(1,-1))}`}return e.replace(Vk,"_")}s(Bk,"pathToVariableName");var $p=/{(\b\w+(?:-\w+)*\b)}/g;function Cv(e){let t=e.match($p);return t===null?e.replaceAll($p,":$1"):(t.forEach(r=>{let n=Ep(r.replaceAll($p,":$1"));e=e.replaceAll(r,n)}),e)}s(Cv,"replaceHyphenatedPath");var Ot=s(e=>e.method==="get","isQuery"),Ts=s(e=>e.method!=="get","isMutation");var Mt=s((e,t)=>dp(X(Op(e)),t),"getZodSchemaName"),qv=s((e,t,r)=>dp(X(Op(e)),`${t}${r}`),"getEnumZodSchemaName"),Pe=s(e=>!e.startsWith("z."),"isNamedZodSchema"),zr=s((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),ks=s(e=>ce(`${e}_${mv}`),"getBodyZodSchemaName"),jv=s((e,t)=>ce(`${e}_${t}${hv}`),"getParamZodSchemaName"),Hk=s(e=>ce(`${e}${gv}`),"getMainResponseZodSchemaName"),Uk=s((e,t)=>ce(`${e}_${t}_${yv}`),"getErrorResponseZodSchemaName");function Ns({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),o=zr(t,r,n);return!As(i)&&e!=="default"&&Is(i)?Uk(o,e):Hk(o)}s(Ns,"getResponseZodSchemaName");var Yi=s((e,t)=>_v(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Mv=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${G({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Rs=s((e,t)=>Pe(t)?`${e.options.includeNamespaces?`${G({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Yi(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Cs(e){return ge(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}s(Cs,"primitiveTypeToTsType");function Hn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Pe(e)?(n=Rs(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&jt(t==null?void 0:t.type)&&(n=Cs(t==null?void 0:t.type));let o=n.split(".");return{type:o[o.length-1],...o.length>1?{namespace:o[0]}:{},...i?{filePath:Ct({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}s(Hn,"getTsTypeBase");function Gr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of ws){let o=e[i];if(o)if(o.length>1){let a=o.map(c=>{let u=n.resolveObject(c);return Gr({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let l=u.map(({name:f})=>f);return[...c.filter(({name:f})=>!l.includes(f)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(o[0])}return e.type==="array"?{metaType:"array",arrayType:Dv({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:zk({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}s(Gr,"getSchemaTsMetaType");function Dv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(F(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let o=Hn({zodSchemaName:n,schema:i,resolver:r}),a=Lv(o,t),c=Gr({schema:i,isCircular:a,parentTypes:[...t,o],resolver:r});return{...o,...c}}s(Dv,"getArraySchemaTsType");function zk({schema:e,parentTypes:t,resolver:r}){return Object.entries((e==null?void 0:e.properties)??{}).map(([n,i])=>{var a;let o=((a=e==null?void 0:e.required)==null?void 0:a.includes(n))??!1;if(F(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=Hn({zodSchemaName:c,schema:u,resolver:r}),f=Lv(l,t),p=Gr({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:o,...l,...p}}else if(i.type==="array"){let c=Dv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:o,type:"array",metaType:"array",arrayType:c}}else if(jt(i.type))return{name:n,isRequired:o,type:Cs(i.type),metaType:"primitive"};return{name:n,isRequired:o,type:"void",metaType:"primitive"}})}s(zk,"getSchemaTsProperties");function Lv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}s(Lv,"getIsCircular");var xp={"Content-Type":"application/json",Accept:"application/json"},Fv="data";function Et(e){return!F(e)}s(Et,"isSchemaObject");function Vv(e){return e.type==="array"}s(Vv,"isArraySchemaObject");function Bv(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(Gk(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(F(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(Bv,"inferRequiredSchema");var Gk=s(e=>!F(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Wi=s(e=>Br(ce(e.operationName)),"getEndpointName");function Hv(e,t){return`${t.includeNamespaces?`${G({type:"endpoints",tag:Qi(e,t),options:t})}.`:""}${Wi(e)}`}s(Hv,"getImportedEndpointName");var Uv=s(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Qi(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Pt(r??t.defaultTag)}s(Qi,"getEndpointTag");function wp(e,t){return t.parameters.map(r=>{var i,o,a,c;let n="string";if(Pe(r.zodSchema))n=Rs(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&Et(r.parameterObject.schema)){let u=(a=(o=r.parameterObject)==null?void 0:o.schema)==null?void 0:a.type;u&&jt(u)&&(n=Cs(u))}return{name:vt(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.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})}s(wp,"mapEndpointParamsToFunctionParams");function zv(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let o=Sv(i.name)?i.name:`"${i.name}"`,a=vt(i.name);return{...i,name:o,value:a}}),r={};return e.requestFormat!==xp["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==xp.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=vt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}s(zv,"getEndpointConfig");function qs(e){return{type:"invalid-schema",message:e}}s(qs,"getInvalidSchemaError");function Gv(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}s(Gv,"getInvalidOperationIdError");function Zv(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}s(Zv,"getMissingPathParameterError");function Kv(e){return{type:"not-allowed-inline-enum",message:e}}s(Kv,"getNotAllowedInlineEnumError");function Yv(e){return{type:"not-allowed-circular-schema",message:e}}s(Yv,"getNotAllowedCircularSchemaError");function Wv(e,t){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${t}`}}s(Wv,"getMissingAclConditionPropertyError");function xt({schema:e,meta:t,options:r}){let n=[];ge(e.type).with("string",()=>n.push(Yk(e))).with("number","integer",()=>n.push(Qk(e))).with("array",()=>n.push(Jk(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
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(QC(this.options.strict&&s,this,r,n,t));return}for(var c=r.length;n<c;n++)this.replaceStack(function(u){var l=a.nameLookup(u,r[n],t);return i?[" && ",l]:[" != null ? ",l," : ",u]})},"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 c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"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:Jn,compileChildren:o(function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,c=n.length;a<c;a++){i=n[a],s=new this.compiler;var u=this.matchExistingProgram(i);if(u==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=u.index,i.name="program"+u.index,this.useDepths=this.useDepths||u.useDepths,this.useBlockParams=this.useBlockParams||u.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 Qn||(t=this.source.wrap(t)),this.inlineStack.push(t),t},"push"),pushStackLiteral:o(function(t){this.push(new Qn(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 Af.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof Qn)n=[a.value],r=["(",n],s=!0;else{i=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(u,")"))},"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 Qn)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 Qn)return n.value;if(!r){if(!this.stackSlot)throw new Af.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 Qn?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"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[c].concat(i)}},"setupHelper"),setupParams:o(function(t,r,n){var i={},s=[],a=[],c=[],u=!n,l=void 0;u&&(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 f=this.popStack(),p=this.popStack();(p||f)&&(i.fn=p||"container.noop",i.inverse=f||"container.noop");for(var d=r;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(c[d]=this.popStack()),this.stringParams&&(a[d]=this.popStack(),s[d]=this.popStack());return u&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(c)),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=Jn.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Jn.isValidJavaScriptVariableName=function(e){return!Jn.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function QC(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(QC,"strictLookup");va.default=Jn;dS.exports=va.default});var yS=h((_a,gS)=>{"use strict";_a.__esModule=!0;function ho(e){return e&&e.__esModule?e:{default:e}}o(ho,"_interopRequireDefault");var JC=vb(),XC=ho(JC),e3=of(),t3=ho(e3),If=kb(),Tf=jb(),r3=mS(),n3=ho(r3),i3=ua(),o3=ho(i3),s3=ef(),a3=ho(s3),c3=XC.default.create;function hS(){var e=c3();return e.compile=function(t,r){return Tf.compile(t,r,e)},e.precompile=function(t,r){return Tf.precompile(t,r,e)},e.AST=t3.default,e.Compiler=Tf.Compiler,e.JavaScriptCompiler=n3.default,e.Parser=If.parser,e.parse=If.parse,e.parseWithoutProcessing=If.parseWithoutProcessing,e}o(hS,"create");var Xn=hS();Xn.create=hS;a3.default(Xn);Xn.Visitor=o3.default;Xn.default=Xn;_a.default=Xn;gS.exports=_a.default});var vS=h(ba=>{"use strict";ba.__esModule=!0;ba.print=f3;ba.PrintVisitor=Q;function u3(e){return e&&e.__esModule?e:{default:e}}o(u3,"_interopRequireDefault");var l3=ua(),p3=u3(l3);function f3(e){return new Q().accept(e)}o(f3,"print");function Q(){this.padding=0}o(Q,"PrintVisitor");Q.prototype=new p3.default;Q.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
72
|
+
`,t};Q.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};Q.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Q.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Q.prototype.BlockStatement=Q.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};Q.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+" }}")};Q.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+" }}")};Q.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Q.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Q.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};Q.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Q.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Q.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Q.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Q.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Q.prototype.NullLiteral=function(){return"NULL"};Q.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(", ")+"}"};Q.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var yr=h((RF,SS)=>{var Sa=yS().default,bS=vS();Sa.PrintVisitor=bS.PrintVisitor;Sa.print=bS.print;SS.exports=Sa;function _S(e,t){var r=require("fs"),n=r.readFileSync(t,"utf8");e.exports=Sa.compile(n)}o(_S,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=_S,require.extensions[".hbs"]=_S)});var G3={};HS(G3,{getGenerateFilesData:()=>z3,getGenerateMetadata:()=>U3});module.exports=US(G3);var qf=ut(fv());var dv="Schema",mv="Enum",hv="Body",gv="Param",yv="Response",vv="ErrorResponse",dp="z.void()",Ps={bindings:["z"],from:"zod"};var zi={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"},acl:{outputFileNameSuffix:"acl",namespaceSuffix:"Acl"}},schemaSuffix:dv,enumSuffix:mv,additionalPropertiesDefaultValue:!1,removeOperationPrefixEndingWith:"Controller_"};var $e=o((...e)=>[...new Set(e.flat())],"getUniqueArray");var Y=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Hr=o(e=>e.charAt(0).toLowerCase()+e.slice(1),"decapitalize"),$s=o(e=>e.replace(/(-\w)/g,t=>t[1].toUpperCase()),"kebabToCamel"),ue=o(e=>e.replace(/(_\w)/g,t=>t[1].toUpperCase()),"snakeToCamel"),_v=o(e=>e.replace(/[\W_]+(\w)?/g,(t,r)=>(r==null?void 0:r.toUpperCase())??""),"nonWordCharactersToCamel"),mp=o((e,t="")=>e.endsWith(t)?e:`${e}${t}`,"suffixIfNeeded"),bv=o((e,t)=>e.replace(new RegExp(`${t}$`),""),"removeSuffix"),Lk=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"),hp=o(e=>{let t=e.map(Y).map(Sv).map(r=>Fk(r)).flat();return Lk(t)},"getMostCommonAdjacentCombinationSplit"),Sv=o(e=>e.split(/(?<![A-Z])(?=[A-Z])/).filter(Boolean),"splitByUppercase"),Pv=o(e=>Sv(e).join(" "),"camelToSpaceSeparated"),Fk=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 Os=o(e=>`use${Y(ue(e.operationName))}`,"getQueryName"),gp=o(e=>{let t=e.map(({path:s})=>s),r=/^\/[^\/]*/g,n=$e(t.map(s=>s.match(r)).flat()),i=o(s=>n.length===1?"all":`all${Y($s(s.replace(/\//g,"")??""))}`,"getQueryKeyName");return n.filter(s=>s!==null).map(s=>({path:s,name:i(s??"")}))},"getAllQueryKeys"),$v=o((e,t)=>{let n=gp(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 Ct({type:e,tag:t,options:r,includeTagDir:n=!0}){let i=r.configs[e].outputFileNameSuffix;return t?`${n?`${Hr(t)}/`:""}${Hr(t)}.${i}`:i}o(Ct,"getTagFileName");var Z=o(({type:e,tag:t,options:r})=>`${Y(t)}${r.configs[e].namespaceSuffix}`,"getNamespaceName");var Ov=o(e=>/^(?:[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+)$/.test(e),"isValidPropertyName"),bt=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"),Vk=Symbol.for("@ts-pattern/isVariadic"),xs="@ts-pattern/anonymous-select-key",yp=o(e=>!!(e&&typeof e=="object"),"r"),Es=o(e=>e&&!!e[jt],"i"),$t=o((e,t,r)=>{if(Es(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(yp(e)){if(!yp(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],s=[];for(let a of e.keys()){let c=e[a];Es(c)&&c[Vk]?s.push(c):s.length?i.push(c):n.push(c)}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),c=i.length===0?[]:t.slice(-i.length),u=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((l,f)=>$t(l,a[f],r))&&i.every((l,f)=>$t(l,c[f],r))&&(s.length===0||$t(s[0],u,r))}return e.length===t.length&&e.every((a,c)=>$t(a,t[c],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Es(s=i)&&s[jt]().matcherType==="optional")&&$t(i,t[n],r);var s})}return Object.is(t,e)},"s"),pr=o(e=>{var t,r,n;return yp(e)?Es(e)?(t=(r=(n=e[jt]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Zi(e,pr):Zi(Object.values(e),pr):[]},"o"),Zi=o((e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]),"c");function He(e){return Object.assign(e,{optional:o(()=>Bk(e),"optional"),and:o(t=>z(e,t),"and"),or:o(t=>Hk(e,t),"or"),select:o(t=>t===void 0?Ev(e):Ev(t,e),"select")})}o(He,"u");function Bk(e){return He({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return t===void 0?(pr(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:$t(e,t,n),selections:r}},"match"),getSelectionKeys:o(()=>pr(e),"getSelectionKeys"),matcherType:"optional"})})}o(Bk,"h");function z(...e){return He({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return{matched:e.every(i=>$t(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Zi(e,pr),"getSelectionKeys"),matcherType:"and"})})}o(z,"m");function Hk(...e){return He({[jt]:()=>({match:o(t=>{let r={},n=o((i,s)=>{r[i]=s},"r");return Zi(e,pr).forEach(i=>n(i,void 0)),{matched:e.some(i=>$t(i,t,n)),selections:r}},"match"),getSelectionKeys:o(()=>Zi(e,pr),"getSelectionKeys"),matcherType:"or"})})}o(Hk,"d");function M(e){return{[jt]:()=>({match:o(t=>({matched:!!e(t)}),"match")})}}o(M,"p");function Ev(...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 He({[jt]:()=>({match:o(n=>{let i={[t??xs]:n};return{matched:r===void 0||$t(r,n,(s,a)=>{i[s]=a}),selections:i}},"match"),getSelectionKeys:o(()=>[t??xs].concat(r===void 0?[]:pr(r)),"getSelectionKeys")})})}o(Ev,"y");function St(e){return typeof e=="number"}o(St,"v");function ar(e){return typeof e=="string"}o(ar,"b");function cr(e){return typeof e=="bigint"}o(cr,"w");var b8=He(M(function(e){return!0}));var ur=o(e=>Object.assign(He(e),{startsWith:o(t=>{return ur(z(e,(r=t,M(n=>ar(n)&&n.startsWith(r)))));var r},"startsWith"),endsWith:o(t=>{return ur(z(e,(r=t,M(n=>ar(n)&&n.endsWith(r)))));var r},"endsWith"),minLength:o(t=>ur(z(e,(r=>M(n=>ar(n)&&n.length>=r))(t))),"minLength"),length:o(t=>ur(z(e,(r=>M(n=>ar(n)&&n.length===r))(t))),"length"),maxLength:o(t=>ur(z(e,(r=>M(n=>ar(n)&&n.length<=r))(t))),"maxLength"),includes:o(t=>{return ur(z(e,(r=t,M(n=>ar(n)&&n.includes(r)))));var r},"includes"),regex:o(t=>{return ur(z(e,(r=t,M(n=>ar(n)&&!!n.match(r)))));var r},"regex")}),"j"),S8=ur(M(ar)),Pt=o(e=>Object.assign(He(e),{between:o((t,r)=>Pt(z(e,((n,i)=>M(s=>St(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>Pt(z(e,(r=>M(n=>St(n)&&n<r))(t))),"lt"),gt:o(t=>Pt(z(e,(r=>M(n=>St(n)&&n>r))(t))),"gt"),lte:o(t=>Pt(z(e,(r=>M(n=>St(n)&&n<=r))(t))),"lte"),gte:o(t=>Pt(z(e,(r=>M(n=>St(n)&&n>=r))(t))),"gte"),int:o(()=>Pt(z(e,M(t=>St(t)&&Number.isInteger(t)))),"int"),finite:o(()=>Pt(z(e,M(t=>St(t)&&Number.isFinite(t)))),"finite"),positive:o(()=>Pt(z(e,M(t=>St(t)&&t>0))),"positive"),negative:o(()=>Pt(z(e,M(t=>St(t)&&t<0))),"negative")}),"x"),P8=Pt(M(St)),lr=o(e=>Object.assign(He(e),{between:o((t,r)=>lr(z(e,((n,i)=>M(s=>cr(s)&&n<=s&&i>=s))(t,r))),"between"),lt:o(t=>lr(z(e,(r=>M(n=>cr(n)&&n<r))(t))),"lt"),gt:o(t=>lr(z(e,(r=>M(n=>cr(n)&&n>r))(t))),"gt"),lte:o(t=>lr(z(e,(r=>M(n=>cr(n)&&n<=r))(t))),"lte"),gte:o(t=>lr(z(e,(r=>M(n=>cr(n)&&n>=r))(t))),"gte"),positive:o(()=>lr(z(e,M(t=>cr(t)&&t>0))),"positive"),negative:o(()=>lr(z(e,M(t=>cr(t)&&t<0))),"negative")}),"A"),$8=lr(M(cr)),O8=He(M(function(e){return typeof e=="boolean"})),E8=He(M(function(e){return typeof e=="symbol"})),x8=He(M(function(e){return e==null})),w8=He(M(function(e){return e!=null}));var Sp=class Sp 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(Sp,"W");var vp=Sp,_p={matched:!1,value:void 0};function ge(e){return new bp(e,_p)}o(ge,"z");var Gi=class Gi{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={},c=o((l,f)=>{s=!0,a[l]=f},"a"),u=!n.some(l=>$t(l,this.input,c))||i&&!i(this.input)?_p:{matched:!0,value:r(s?xs in a?a[xs]:a:this.input,this.input)};return new Gi(this.input,u)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new Gi(this.input,n?{matched:!0,value:r(this.input,this.input)}:_p)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new vp(this.input)}run(){return this.exhaustive()}returnType(){return this}};o(Gi,"I");var bp=Gi;var xv=["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 Pp=2,wv=["application/octet-stream","multipart/form-data","application/x-www-form-urlencoded","*/*"],Av=["query","header","path"],fr=["get","put","post","delete","options","head","patch","trace"],Iv=["string","number","integer","boolean"],ws=["allOf","anyOf","oneOf"];function dr(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])}),r}o(dr,"pick");function Ot(e){return _v(e)}o(Ot,"formatTag");function Ur(e,t){var n;let r=(n=e.tags)==null?void 0:n[0];return Ot(r??t.defaultTag)}o(Ur,"getOperationTag");function Tv(e,t){let r={};for(let n in e.paths){let i=e.paths[n],s=dr(i,fr);for(let a in s){let c=s[a];if(!c||c.deprecated&&!(t!=null&&t.withDeprecatedEndpoints))continue;let u=t.splitByTags?Ur(c,t):t.defaultTag;r[u]||(r[u]=[]),r[u].push(c)}}return r}o(Tv,"getOperationsByTag");var Nv=o(e=>`#/components/schemas/${e}`,"getSchemaRef"),zr=o(e=>e[1]==="/"?e:"#/"+e.slice(1),"autocorrectRef"),Vn=o(e=>zr(e).split("/").at(-1),"getSchemaNameByRef");function F(e){return e!=null&&Object.prototype.hasOwnProperty.call(e,"$ref")}o(F,"isReferenceObject");function Ep(e){let t=Uk(e).normalize("NFKD").trim().replace(/\s+/g,"_").replace(/--+/g,"-").replace(/-+/g,"_").replace(/[^\w-]+/g,"_");return ue(t)}o(Ep,"normalizeString");function Rv(e){return/^[a-zA-Z]\w*$/.test(e)?e:`"${e}"`}o(Rv,"wrapWithQuotesIfNeeded");function Cv(e){return typeof e=="string"&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}o(Cv,"unwrapQuotesIfNeeded");function Uk(e){let t=Number(e[0]);return typeof t=="number"&&!Number.isNaN(t)?"_"+e:e}o(Uk,"prefixStringStartingWithNumberIfNeeded");function xp(e){let t=e.replaceAll("_","#");return ue(t.replaceAll("-","_")).replaceAll("#","_")}o(xp,"pathParamToVariableName");var qt=o(e=>Iv.includes(e),"isPrimitiveType");function jv(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(jv,"escapeControlCharacters");function Ue(e){return e.includes("application/")&&e.includes("json")||wv.includes(e)||e.includes("text/")}o(Ue,"isParamMediaTypeAllowed");function As(e){return e>=200&&e<300}o(As,"isMainResponseStatus");function Is(e){return!(e>=200&&e<300)}o(Is,"isErrorStatus");function Bn(e){return e==="application/json"}o(Bn,"isMediaTypeAllowed");function $p({path:e,method:t,operation:r,options:n,keepOperationPrefixWithoutEnding:i}){let s=`${t}${Gk(e)}`,a=r.operationId?bt(r.operationId):s;if(n.removeOperationPrefixEndingWith&&i)return a.split(n.removeOperationPrefixEndingWith).map((u,l)=>l===0?u:Y(u)).join("");if(n.removeOperationPrefixEndingWith&&!i){let c=new RegExp(`^.*${n.removeOperationPrefixEndingWith}`);a=a.replace(c,"")}return xv.includes(a)?s:a}o($p,"getOperationName");function Ki({path:e,method:t,operation:r,operationsByTag:n,options:i}){let s=i.splitByTags?Ur(r,i):i.defaultTag,a=$p({path:e,method:t,operation:r,options:i});return n[s].filter(u=>$p({path:e,method:t,operation:u,options:i})===a).length===1?a:$p({path:e,method:t,operation:r,options:i,keepOperationPrefixWithoutEnding:!0})}o(Ki,"getUniqueOperationName");function qv(e,t,r){let n=[];for(let i in e.paths){let s=e.paths[i],a=dr(s,fr);for(let c in a){let u=a[c];if(!u||u.deprecated&&!(r!=null&&r.withDeprecatedEndpoints))continue;let l=Ki({path:i,method:c,operation:u,operationsByTag:t,options:r});n.push(l)}}return n}o(qv,"getUniqueOperationNamesWithoutSplitByTags");var kv=/({\w+})/g,zk=/[^\w\-]+/g;function Gk(e){e=Y($s(e.replaceAll("/","-")).replaceAll("-",""));let t=[...e.matchAll(kv)];if(t.length>0){let r=t.sort((n,i)=>n.index-i.index)[t.length-1][0];e=`${e.replace(kv,"")}By${Y(r.slice(1,-1))}`}return e.replace(zk,"_")}o(Gk,"pathToVariableName");var Op=/{(\b\w+(?:-\w+)*\b)}/g;function Mv(e){let t=e.match(Op);return t===null?e.replaceAll(Op,":$1"):(t.forEach(r=>{let n=xp(r.replaceAll(Op,":$1"));e=e.replaceAll(r,n)}),e)}o(Mv,"replaceHyphenatedPath");var Et=o(e=>e.method==="get","isQuery"),Ts=o(e=>e.method!=="get","isMutation");var Mt=o((e,t)=>mp(Y(Ep(e)),t),"getZodSchemaName"),Dv=o((e,t,r)=>mp(Y(Ep(e)),`${t}${r}`),"getEnumZodSchemaName"),Oe=o(e=>!e.startsWith("z."),"isNamedZodSchema"),Gr=o((e,t,r)=>t?e:`${r}_${e}`,"getZodSchemaOperationName"),ks=o(e=>ue(`${e}_${hv}`),"getBodyZodSchemaName"),Lv=o((e,t)=>ue(`${e}_${t}${gv}`),"getParamZodSchemaName"),Zk=o(e=>ue(`${e}${yv}`),"getMainResponseZodSchemaName"),Kk=o((e,t)=>ue(`${e}_${t}_${vv}`),"getErrorResponseZodSchemaName");function Ns({statusCode:e,operationName:t,isUniqueOperationName:r,tag:n}){let i=Number(e),s=Gr(t,r,n);return!As(i)&&e!=="default"&&Is(i)?Kk(s,e):Zk(s)}o(Ns,"getResponseZodSchemaName");var Yi=o((e,t)=>bv(e,t.schemaSuffix),"getZodSchemaInferedTypeName"),Fv=o((e,t)=>Oe(t)?`${e.options.includeNamespaces?`${Z({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${t}`:t,"getImportedZodSchemaName"),Rs=o((e,t)=>Oe(t)?`${e.options.includeNamespaces?`${Z({type:"models",tag:e.getTagByZodSchemaName(t),options:e.options})}.`:""}${Yi(t,e.options)}`:t,"getImportedZodSchemaInferedTypeName");function Cs(e){return ge(e).with("string",()=>"string").with("number",()=>"number").with("integer",()=>"number").with("boolean",()=>"boolean").exhaustive()}o(Cs,"primitiveTypeToTsType");function Hn({zodSchemaName:e,schema:t,resolver:r}){let n="void",i;e&&Oe(e)?(n=Rs(r,e),i=r.getTagByZodSchemaName(e)):t!=null&&t.type&&qt(t==null?void 0:t.type)&&(n=Cs(t==null?void 0:t.type));let s=n.split(".");return{type:s[s.length-1],...s.length>1?{namespace:s[0]}:{},...i?{filePath:Ct({type:"models",tag:i,includeTagDir:!0,options:r.options})}:{}}}o(Hn,"getTsTypeBase");function Zr({schema:e,isCircular:t,parentTypes:r,resolver:n}){if(!e)return{metaType:"primitive"};for(let i of ws){let s=e[i];if(s)if(s.length>1){let a=s.map(c=>{let u=n.resolveObject(c);return Zr({schema:u,parentTypes:r,resolver:n})});return a.every(({metaType:c})=>c==="object")?{metaType:"object",objectProperties:a.reduce((c,{objectProperties:u})=>{let l=u.map(({name:f})=>f);return[...c.filter(({name:f})=>!l.includes(f)),...u]},[])}:{metaType:"composite",[i]:a}}else e=n.resolveObject(s[0])}return e.type==="array"?{metaType:"array",arrayType:Vv({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:Yk({schema:e,parentTypes:r,resolver:n})}:{metaType:"primitive"}}o(Zr,"getSchemaTsMetaType");function Vv({arraySchema:e,parentTypes:t,resolver:r}){let n,i;if(F(e.items)){let u=e.items.$ref;n=r.getZodSchemaNameByRef(u),i=r.getSchemaByRef(u)}else i=e.items;let s=Hn({zodSchemaName:n,schema:i,resolver:r}),a=Bv(s,t),c=Zr({schema:i,isCircular:a,parentTypes:[...t,s],resolver:r});return{...s,...c}}o(Vv,"getArraySchemaTsType");function Yk({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(F(i)){let c=r.getZodSchemaNameByRef(i.$ref),u=r.getSchemaByRef(i.$ref),l=Hn({zodSchemaName:c,schema:u,resolver:r}),f=Bv(l,t),p=Zr({schema:u,isCircular:f,parentTypes:[...t,l],resolver:r});return{name:n,isRequired:s,...l,...p}}else if(i.type==="array"){let c=Vv({arraySchema:i,parentTypes:t,resolver:r});return{name:n,isRequired:s,type:"array",metaType:"array",arrayType:c}}else if(qt(i.type))return{name:n,isRequired:s,type:Cs(i.type),metaType:"primitive"};return{name:n,isRequired:s,type:"void",metaType:"primitive"}})}o(Yk,"getSchemaTsProperties");function Bv(e,t){return t.findIndex(({type:r,namespace:n})=>r===e.type&&n===e.namespace)>-1}o(Bv,"getIsCircular");var wp={"Content-Type":"application/json",Accept:"application/json"},Hv="data";function Ce(e){return!F(e)}o(Ce,"isSchemaObject");function Uv(e){return e.type==="array"}o(Uv,"isArraySchemaObject");function zv(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(Wk(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(F(i)){let a=s(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")}}o(zv,"inferRequiredSchema");var Wk=o(e=>!F(e)&&!!e.required&&!e.type&&!e.properties&&!(e!=null&&e.allOf)&&!(e!=null&&e.anyOf)&&!e.oneOf,"isBrokenAllOfItem");var Wi=o(e=>Hr(ue(e.operationName)),"getEndpointName");function Gv(e,t){return`${t.includeNamespaces?`${Z({type:"endpoints",tag:Qi(e,t),options:t})}.`:""}${Wi(e)}`}o(Gv,"getImportedEndpointName");var Zv=o(e=>e.path.replace(/:([a-zA-Z0-9_]+)/g,"${$1}"),"getEndpointPath");function Qi(e,t){var n;let r=t.splitByTags?(n=e.tags)==null?void 0:n[0]:t.defaultTag;return Ot(r??t.defaultTag)}o(Qi,"getEndpointTag");function Ap(e,t){return t.parameters.map(r=>{var i,s,a,c;let n="string";if(Oe(r.zodSchema))n=Rs(e,r.zodSchema);else if((i=r.parameterObject)!=null&&i.schema&&Ce(r.parameterObject.schema)){let u=(a=(s=r.parameterObject)==null?void 0:s.schema)==null?void 0:a.type;u&&qt(u)&&(n=Cs(u))}return{name:bt(r.name),type:n,paramType:r.type,required:((c=r.parameterObject)==null?void 0:c.required)??!0,parameterObject:r.parameterObject,bodyObject:r.bodyObject}}).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(Ap,"mapEndpointParamsToFunctionParams");function Kv(e){let t=e.parameters.filter(i=>i.type==="Query").map(i=>{let s=Ov(i.name)?i.name:`"${i.name}"`,a=bt(i.name);return{...i,name:s,value:a}}),r={};return e.requestFormat!==wp["Content-Type"]&&(r["Content-Type"]=`'${e.requestFormat}'`),e.responseFormat&&e.responseFormat!==wp.Accept&&(r.Accept=`'${e.responseFormat}'`),e.parameters.filter(i=>i.type==="Header").forEach(i=>{r[i.name]=bt(i.name)}),{...t.length>0?{params:t}:{},...Object.keys(r).length?{headers:r}:{}}}o(Kv,"getEndpointConfig");function js(e){return{type:"invalid-schema",message:e}}o(js,"getInvalidSchemaError");function Yv(e){return{type:"invalid-operation-id",message:`Operation ${e}`}}o(Yv,"getInvalidOperationIdError");function Wv(e,t){return{type:"missing-path-parameter",message:`Path ${t} is missing [${e.map(({name:r})=>r).join(", ")}]`}}o(Wv,"getMissingPathParameterError");function Qv(e){return{type:"not-allowed-inline-enum",message:e}}o(Qv,"getNotAllowedInlineEnumError");function Jv(e){return{type:"not-allowed-circular-schema",message:e}}o(Jv,"getNotAllowedCircularSchemaError");function Xv(e,t,r){return{type:"missing-acl-condition-property",message:`Condition property ${e} is not found in parameters or body in operation ${e_(t,r)}`}}o(Xv,"getMissingAclConditionPropertyError");function Ip(e,t,r){return{type:"missing-status-code",message:`Missing status code ${e} in operation ${e_(t,r)}`}}o(Ip,"getMissingStatusCodeError");function e_(e,t){return e.operationId??`${t.method} ${t.path}`}o(e_,"getOperationDescriptor");function xt({schema:e,meta:t,options:r}){let n=[];ge(e.type).with("string",()=>n.push(Xk(e))).with("number","integer",()=>n.push(tN(e))).with("array",()=>n.push(rN(e))).otherwise(()=>{}),typeof e.description=="string"&&e.description!==""&&(r!=null&&r.withDescription)&&([`
|
|
73
73
|
`,"\r",`\r
|
|
74
|
-
`].some(
|
|
75
|
-
z.discriminatedUnion("${c}", [${e.oneOf.map(u=>
|
|
76
|
-
`)}return t.assign(`z.union([${e.oneOf.map(c=>K({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(eN,"getOneOfZodSchema");function tN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Et(e)||!Array.isArray(e.type)))return e.type.length===1?K({schema:{...e,type:e.type[0]},resolver:r,meta:n,tag:i}):t.assign(`z.union([${e.type.map(o=>K({schema:{...e,type:o},resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}s(tN,"getArrayZodSchema");function rN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Et(e)||!e.anyOf)return;if(e.anyOf.length===1){let a=K({schema:e.anyOf[0],resolver:r,meta:n,tag:i});return t.assign(a.getCodeString(i,r.options))}let o=e.anyOf.map(a=>K({schema:a,resolver:r,meta:n,tag:i})).map(a=>a.getCodeString(i,r.options)).join(", ");return t.assign(`z.union([${o}])`)}s(rN,"getAnyOfZodSchema");function nN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Et(e)||!e.allOf)return;if(e.allOf.length===1){let p=K({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:o,noRequiredOnlyAllof:a,composedRequiredSchema:c}=Bv(e),u=a.map(p=>{let d=K({schema:p,resolver:r,meta:n,tag:i});return r&&o(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(K({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),f=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${f}`)}s(nN,"getAllOfZodSchema");function iN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Et(e))return;let o=e.type?e.type.toLowerCase():void 0;if(o&&jt(o)){if(e.enum){if(o==="string")return oN({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(ge(o).with("integer",()=>"z.number()").with("string",()=>ge(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}s(iN,"getPrimitiveZodSchema");function oN({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!Et(t))return;let o=Ip(t),a=e.getEnumZodSchemaDataByCode(o);if(!e.options.extractEnums||!a)return r.assign(o);if(!a.zodSchemaName||!a.tag)throw new Error(`Enum zod schema name or tag not resolved for code: ${o}`);let c=e.options.includeNamespaces&&a.tag!==i?`${G({type:"models",tag:a.tag,options:e.options})}.`:"";return new Ji(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}s(oN,"getEnumZodSchema");function Ip(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}s(Ip,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let o=t.getCodeString();if((!Pe(o)||t.ref===void 0)&&r){if(t.complexity<Sp)return o;let u=Mt(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(o))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,o,i),n.addZodSchemaForCompositeCode(o,t,u,e),u}let a=n.getCodeByZodSchemaName(o);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ne(0,n.getSchemaByRef(t.ref))<Sp?n.getCodeByZodSchemaName(o):o;throw new Error(`Invalid ref: ${t.ref}`)}s(Un,"resolveZodSchemaName");function Jv({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let o=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=sN({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(Wv(c,r.operationId??`${t.method} ${t.path}`)),a)},[]);return{...i,conditionsTypes:o}})}s(Jv,"getEndpointAcl");function sN({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,_,b,P,E;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let o=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:S})=>S===o[l]);if(f)c=(m=f.parameterObject)==null?void 0:m.required,a=(g=f.parameterObject)==null?void 0:g.schema,u=`${f.name} ${Br(f.type)} parameter`,l++;else{let S=t.parameters.find(({bodyObject:Q})=>!!Q),N=Object.keys(((y=S==null?void 0:S.bodyObject)==null?void 0:y.content)??{}).find($t);N&&(a=(b=(_=(v=S==null?void 0:S.bodyObject)==null?void 0:v.content)==null?void 0:_[N])==null?void 0:b.schema,u=`${Ot(t)?"query":"mutation"} data`)}for(;a&&l<o.length;){let S=e.resolveObject(a);a=(P=Object.entries(S.properties??{}).find(([N])=>N===o[l]))==null?void 0:P[1],c=((E=S.required)==null?void 0:E.includes(o[l]))??!1,l++}if(a)return{name:n,type:F(a)?void 0:a.type,zodSchemaName:F(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}s(sN,"getEndpointAclConditionPropertyType");function Xv({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let o=e.resolveObject(t.requestBody);if(!o)return;let c=Object.keys(o.content??{}).find($t);if(!c)return;let u=(g=(m=o.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=K({schema:u,resolver:e,meta:{isRequired:o.required??!0},tag:i}),f=e.resolveObject(u),p=Un({schema:f,zodSchema:l,fallbackName:ks(zr(r,n,i)),resolver:e,tag:i}),d=xt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:Fv,type:"Body",description:o.description,zodSchema:p+d,bodyObject:o},requestFormat:c}}s(Xv,"getEndpointBody");function e_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let o=e.resolveObject(t);if(!Ev.includes(o.in))return;let a={};if(o.content){let p=Object.keys(o.content??{}),d=p.find($t);if(!d)throw new Error(`Unsupported media type for param ${o.name}: ${p.join(", ")}`);let m=o.content[d];if(!m)throw new Error(`No content with media type for param ${o.name}: ${d}`);a=(m==null?void 0:m.schema)??m}else o.schema&&(a=o.schema);e.options.withDescription&&a&&(a.description=(o.description??"").trim());let c=K({schema:a,resolver:e,meta:{isRequired:o.in==="path"?!0:o.required??!1},tag:i}),u=e.resolveObject(a),l=xt({schema:u,meta:c.meta,options:e.options}),f=Un({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:jv(zr(r,n,i),o.name),resolver:e,tag:i});return{name:ge(o.in).with("path",()=>Ep(o.name)).otherwise(()=>o.name),type:ge(o.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:o}}s(e_,"getEndpointParameter");function r_(e){var r,n,i;let t=[];for(let o in e.openApiDoc.paths){let a=e.openApiDoc.paths[o],c=fr(a,pr),u=t_(a.parameters??[]);for(let l in c){let f=c[l];if(!f||f.deprecated&&!e.options.withDeprecatedEndpoints)continue;let p=f.operationId&&f.operationId!==vt(f.operationId);f.operationId&&p&&e.validationErrors.push(Gv(f.operationId));let d=Object.entries({...u,...t_(f.parameters??[])}).map(([,b])=>b),m=Ki({path:o,method:l,operation:f,operationsByTag:e.operationsByTag,options:e.options}),g=e.operationNames.filter(b=>b===m).length<=1,y=Hr(f,e.options),v={method:l,path:Cv(o),operationName:m,description:f.description,tags:(r=f.tags)==null?void 0:r.map(Pt),requestFormat:"application/json",parameters:[],response:"",errors:[]};if(f.requestBody){let b=Xv({resolver:e,operation:f,operationName:m,isUniqueOperationName:g,tag:y});b&&(v.parameters.push(b.endpointParameter),v.requestFormat=b.requestFormat)}for(let b of d){let P=e_({resolver:e,param:b,operationName:m,isUniqueOperationName:g,tag:y});P&&v.parameters.push(P)}let _=aN(v);_.forEach(b=>{v.parameters.push(b)}),_.length>0&&e.validationErrors.push(Zv(_,o));for(let b in f.responses){let P=e.resolveObject(f.responses[b]),S=Object.keys(P.content??{}).find(Bn),j,N;if(S?(v.responseFormat=S,j=(i=(n=P.content)==null?void 0:n[S])==null?void 0:i.schema):N=fp,j){let Q=K({schema:j,resolver:e,meta:{isRequired:!0},tag:y}),ie=e.resolveObject(j);N=Un({schema:ie,zodSchema:Q,fallbackName:Q.ref?void 0:Ns({statusCode:b,operationName:m,isUniqueOperationName:g,tag:y}),resolver:e,tag:y})+xt({schema:ie,meta:Q.meta,options:e.options})}if(N){let Q=Number(b);As(Q)?(v.response=N,v.responseObject=P):b!=="default"&&Is(Q)&&v.errors.push({zodSchema:N,status:Q,description:P.description})}}v.response||(v.response=fp),v.acl=Jv({resolver:e,endpoint:v,operation:f}),t.push(v)}}return t}s(r_,"getEndpointsFromOpenAPIDoc");function t_(e){return Object.fromEntries((e??[]).map(t=>[F(t)?t.$ref:t.name,t]))}s(t_,"getParameters");function aN(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=>cN(r))}s(aN,"getMissingPathParameters");function cN(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}s(cN,"getPathParameterFromName");function nt(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(F(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(ws.some(o=>o in i&&i[o])){let o=i.allOf??i.anyOf??i.oneOf??[];for(let a of o){if((n==null?void 0:n({type:"composite",parentSchema:e,schema:a,data:r}))===!0)return;nt(a,{data:r,onSchema:n})}}if(i.properties)for(let[o,a]of Object.entries(i.properties)){if(n({type:"property",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.additionalProperties)for(let[o,a]of Object.entries(i.additionalProperties)){if(!(a instanceof Object)||n({type:"additionalProperty",parentSchema:e,schema:a,data:r,propertyName:o})===!0)return;nt(a,t)}if(i.type==="array"){let o=e.items;if(n({type:"array",parentSchema:e,schema:o,data:r})===!0)return;nt(o,t)}}s(nt,"iterateSchema");function n_(e,t){let r=uN(e,t),n=lN(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}s(n_,"getOpenAPISchemaDependencyGraph");function uN(e,t){let r={},n={};return e.forEach(i=>pN({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}s(uN,"getRefsDependencyGraph");function lN(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(lN,"getDeepRefsDependencyGraph");function pN({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let o=s(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,nt(r(c.$ref),{data:{fromRef:c.$ref},onSchema:o})},"onSchema");return nt(e,{data:{fromRef:t},onSchema:o}),{visitedRefs:n,refsDependencyGraph:i}}s(pN,"getSchemaRefsDependencyGraph");function js(e,t,r){let n=[];return nt(t,{onSchema:s(i=>{i.type==="reference"?n.push(i.schema):F(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(qs(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(qs(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(qs(`${r} has both reference and composite keyword`)))},"onSchema")}),n}s(js,"getSchemaRefObjs");function i_(e,t){return t.map(i=>Ur(i.$ref)).reduce((i,o)=>{let a=e.dependencyGraph.deepDependencyGraph[o];return[...i,o,...Array.from(a??[])]},[])}s(i_,"getDeepSchemaRefObjs");function Xi({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&o_({schema:e,nameSegments:t,...n}),nt(e,{data:{nameSegments:t},onSchema:s(i=>{var a;if(i.type==="reference")return!0;let o=[...((a=i.data)==null?void 0:a.nameSegments)??[]];(i.type==="property"||i.type==="additionalProperty")&&o.push(i.propertyName),o_({schema:i.schema,nameSegments:[...o],...n})},"onSchema")})}s(Xi,"updateEnumZodSchemaData");function o_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:o=[]}){if(!t||F(t)||!t.enum)return;let a=Ip(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(o),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[o],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(Kv(r?`schema ${Vn(r)} property ${o[o.length-1]}`:n??o.join("->")))}s(o_,"handleEnumZodSchemaDataUpdate");function a_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(o=>o[o.length-1]).filter(Boolean),i=mp(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=qv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!s_(e);)fN(e,t+2),t++;if(!s_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}s(a_,"resolveEnumZodSchemaNames");function s_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}s(s_,"allEnumZodSchemaNamesAreUnique");function fN(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&dN(n,t)})}s(fN,"additionalResolveEnumZodSchemaName");function dN(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=[X(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=mp(n);r.zodSchemaName=[i?X(i):"",r.zodSchemaName].filter(Boolean).join("")}})}s(dN,"suffixWithPreviousSegmentName");function c_(e){e.enumZodSchemaData.forEach(t=>{let r=Se(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}s(c_,"resolveEnumZodSchemaTags");var Tp=class Tp{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=n_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=wv(t,r),this.operationNames=Rv(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(Iv)}getSchemaByRef(t){return this.docSchemas[Vn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(Ur(t)))==null?void 0:n.zodSchemaName)??((i=this.enumZodSchemaData.find(o=>o.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 u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Pt(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],o=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=Se(i,o),c=a.length===1?a[0]:this.options.defaultTag;return Pt(c??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}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 F(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,o;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((o=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:o.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}initialize(){var t,r,n,i,o,a;this.schemaRefs.forEach(c=>{let u=Ur(c),l=Vn(u),f=Mt(l,this.options.schemaSuffix);this.schemaData.push({ref:u,name:l,zodSchemaName:f,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=fr(u,pr);for(let f in l){let p=l[f];if(!p||p.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Hr(p,this.options),m=Ki({path:c,method:f,operation:p,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===m).length<=1,y=ce(zr(m,g,d)),v=[];if((r=p.parameters)==null||r.map(b=>{let P=b,E=P.schema,S=`operation ${p.operationId??c} parameter ${P.name}`;v.push(...js(this,E,S)),this.options.extractEnums&&Xi({resolver:this,schema:E,schemaInfo:S,tags:[d],nameSegments:[y,P.name],includeSelf:!0})}),p.requestBody){let b=this.resolveObject(p.requestBody),E=Object.keys(b.content??{}).find($t);if(E){let S=(i=(n=b.content)==null?void 0:n[E])==null?void 0:i.schema,j=`operation ${p.operationId} request body`;v.push(...js(this,S,j)),this.options.extractEnums&&Xi({resolver:this,schema:S,schemaInfo:j,tags:[d],nameSegments:[ks(y)]})}}for(let b in p.responses){let P=this.resolveObject(p.responses[b]),S=Object.keys(P.content??{}).find(Bn);if(S){let j=(a=(o=P.content)==null?void 0:o[S])==null?void 0:a.schema,N=`operation ${p.operationId} response body`;v.push(...js(this,j,N)),this.options.extractEnums&&Xi({resolver:this,schema:j,schemaInfo:N,tags:[d],nameSegments:[Ns({statusCode:b,operationName:m,isUniqueOperationName:g,tag:d})]})}}i_(this,v).forEach(b=>{let P=this.getSchemaDataByRef(b);P&&P.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var l;let u=Ur(c);Xi({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((l=this.getSchemaDataByRef(u))==null?void 0:l.tags)??[],nameSegments:[Vn(u)]})}),a_(this),c_(this))}};s(Tp,"SchemaResolver");var Ms=Tp;function u_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let o=Mt(n,e.options.schemaSuffix);if(!t[o]){let a=e.getTagByZodSchemaName(o);t[o]=K({schema:i,resolver:e,tag:a}).getCodeString(a)}}),t}s(u_,"getZodSchemasFromOpenAPIDoc");function l_(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(l_,"topologicalSort");function p_(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(p_,"sortObjKeysFromArray");function f_(e,t){let r=l_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return p_(t,r)}s(f_,"sortZodSchemasByTopology");function d_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let o=e.getRefByZodSchemaName(n);o&&e.isSchemaCircular(o)?(e.validationErrors.push(Yv(e.getCircularSchemaChain(o).join(" -> "))),r[Mt(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Mt(n,e.options.schemaSuffix)]=i}),r}s(d_,"wrapCircularZodSchemas");function Ds(e,t){let r=new Ms(e,t),n=r_(r),o={...u_(r),...r.getZodSchemas()};return o=d_(r,o),o=f_(r,o),o={...r.getEnumZodSchemas(),...o},{resolver:r,data:mN({resolver:r,endpoints:n,zodSchemas:o,options:t})}}s(Ds,"getDataFromOpenAPIDoc");function mN({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(o=>{let a=Qi(o,n);m_(a,i).endpoints.push(o)}),Object.entries(r).forEach(([o,a])=>{let c=e.getTagByZodSchemaName(o);c&&(m_(c,i).zodSchemas[o]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}s(mN,"splitDataByTags");function m_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}s(m_,"getTagElement");async function h_(e,t){let{resolver:r,data:n}=await Ds(e,t),i=[],o=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(m=>m.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(u).forEach(m=>{let g=r.getRefByZodSchemaName(m),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(m),v=Hn({zodSchemaName:m,schema:y,resolver:r}),_;y&&(_=Gr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),c.forEach(m=>{let g="queries",y=Pt(l);o.push({name:Os(m),filePath:Ct({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?G({type:g,tag:y,options:t}):void 0,isQuery:Ot(m),isMutation:Ts(m),params:hN({resolver:r,endpoint:m}),response:gN({resolver:r,endpoint:m})})}))}),{openApiDoc:e,models:i,queries:o}}s(h_,"getMetadataFromOpenAPIDoc");function hN({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let p=Object.keys(r.bodyObject.content??{}).find($t);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=Hn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),o;return n&&(o=Gr({schema:n,parentTypes:[i],resolver:e})),{name:vt(r.name),isRequired:((l=r.parameterObject)==null?void 0:l.required)??!0,...i,...o,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)}s(hN,"getQueryMetadataParams");function gN({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Bn);n&&(r=e.resolveObject((l=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:l.schema));let i=Hn({zodSchemaName:t.response,schema:r,resolver:e}),o;return r&&(o=Gr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...o}}s(gN,"getQueryMetadataResponse");var g_="acl/app.ability",eo="AllAbilities",it={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},kp={bindings:[it.abilityTuple,it.pureAbility,it.forcedSubject,it.subject],from:"@casl/ability"};var y_=s(e=>`Use${X(ce(e.operationName))}Ability`,"getAbilityTypeName"),v_=s(e=>`canUse${X(ce(e.operationName))}`,"getAbilityFunctionName"),__=s(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),b_=s(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),S_=s(e=>{var t;return!!((t=Np(e))!=null&&t.length)},"hasAbilityConditions"),Np=s(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),Ls=s(e=>`${X(e)}${eo}`,"getTagAllAbilitiesName");var Rp="src/data",Cp="@/data",qp="AppRestClient",P_={bindings:[qp],from:"@/util/rest/clients/app-rest-client"},to={query:"AppQueryOptions",mutation:"AppMutationOptions"},$_={bindings:[to.query,to.mutation],from:"@/types/react-query"};function dr({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",o=s(u=>e.getTagByZodSchemaName(u),"getTag"),a=jp({type:i,tag:t,entities:r,getTag:o,getEntityName:s(u=>u,"getEntityName"),options:e.options}),c=jp({type:i,tag:t,entities:n,getTag:o,getEntityName:s(u=>Yi(u,e.options),"getEntityName"),options:e.options});return yN(e.options,a,c)}s(dr,"getModelsImports");function O_({tag:e,endpoints:t,options:r}){return jp({type:"endpoints",tag:e,entities:t,getTag:s(n=>Qi(n,r),"getTag"),getEntityName:Wi,options:r})}s(O_,"getEndpointsImports");function E_({tags:e,entityName:t,getAliasEntityName:r,options:n}){let i=new Map;return e.forEach(o=>{let a=`${t}${r?` as ${r(o)}`:""}`;i.has(o)?n.includeNamespaces||i.get(o).bindings.push(a):i.set(o,{bindings:[n.includeNamespaces?G({type:"acl",tag:o,options:n}):a],from:`${x_(n)}${Ct({type:"acl",tag:o,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}s(E_,"getAclImports");function x_(e){let t=Cp;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${Rp}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${Rp}`,"g"),Cp)),`${t}/`.replace(/\/\//g,"/")}s(x_,"getImportPath");function jp({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:o}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))o.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[o.includeNamespaces?G({type:e,tag:u,options:o}):i(c)],from:`${l?"./":x_(o)}${Ct({type:e,tag:u,includeTagDir:!l,options:o})}`})}}),Array.from(a.values())}s(jp,"getImports");function yN(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:Se(n.bindings)}))}s(yN,"mergeImports");var Cf=at(gr());var If=at(require("fs")),yS=at(require("path"));function Tf(e){let t=`src/generators/templates/${e}.hbs`;return If.default.readFileSync(yS.default.join(__dirname,`../${t}`),"utf-8")}s(Tf,"readHbsTemplateSync");function kf({output:e,fileName:t}){return`${e}/${t}.ts`}s(kf,"getOutputFileName");var yr=at(gr());function vS(){u3(),l3(),p3(),f3(),d3(),m3(),h3()}s(vS,"registerAclHbsHelpers");function u3(){yr.default.registerHelper("abilityTypeName",y_)}s(u3,"registerAbilityTypeNameHelper");function l3(){yr.default.registerHelper("abilityFunctionName",v_)}s(l3,"registerAbilityFunctionNameHelper");function p3(){yr.default.registerHelper("ablityAction",__)}s(p3,"registerAbilityActionHelper");function f3(){yr.default.registerHelper("ablitySubject",b_)}s(f3,"registerAbilitySubjectHelper");function d3(){yr.default.registerHelper("hasAbilityConditions",S_)}s(d3,"registerHasAbilityConditionsHelper");function m3(){yr.default.registerHelper("abilityConditionsTypes",Np)}s(m3,"registerAbilityConditionsTypesHelper");function h3(){yr.default.registerHelper("tagAllAbilitiesName",Ls)}s(h3,"registerTagAllAbilitiesNameHelper");var Nf=at(gr());function _S(){g3(),y3()}s(_S,"registerCommonHbsHelpers");function g3(){Nf.default.registerHelper("isEqual",(e,t)=>e===t)}s(g3,"registerIsEqualHelper");function y3(){Nf.default.registerHelper("commaSeparated",e=>e.join(", "))}s(y3,"registerCommaSeparatedListHelper");var en=at(gr());function bS(e){v3(),_3(e.options),P3(e),b3(),S3(),$3(e)}s(bS,"registerEndpointsHbsHelpers");function v3(){en.default.registerHelper("endpointName",Wi)}s(v3,"registerEndpointNameHelper");function _3(e){en.default.registerHelper("importedEndpointName",t=>Hv(t,e))}s(_3,"registerImportedEndpointNameHelper");function b3(){en.default.registerHelper("endpointPath",Uv)}s(b3,"registerEndpointPathHelper");function S3(){en.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}s(S3,"registerEndpointBodyHelper");function P3(e){en.default.registerHelper("endpointParams",t=>wp(e,t))}s(P3,"registerEndpointParamsHelper");function $3(e){en.default.registerHelper("endpointArgs",t=>wp(e,t).map(r=>r.name).join(", "))}s($3,"registerEndpointArgsHelper");var _r=at(gr());var vr={query:"useQuery",mutation:"useMutation"},SS={bindings:[vr.query,vr.mutation],from:"@tanstack/react-query"};function PS(){O3(),E3(),x3(),w3(),A3(),I3(),T3()}s(PS,"registerPartialsHbsHelpers");function O3(){_r.default.registerHelper("genImport",e=>br("import")({import:e}))}s(O3,"registerImportHelper");function E3(){_r.default.registerHelper("genEndpointParams",e=>br("endpoint-params")({endpoint:e}))}s(E3,"registerGenerateEndpointParamsHelper");function x3(){_r.default.registerHelper("genEndpointConfig",e=>{let t=zv(e);return Object.keys(t).length===0?"":br("endpoint-config")({endpointConfig:t})})}s(x3,"registerGenerateEndpointConfigHelper");function w3(){_r.default.registerHelper("genQueryKeys",e=>e.length===0?"":br("query-keys")({endpoints:e}))}s(w3,"registerGenerateQueryKeysHelper");function A3(){_r.default.registerHelper("genQuery",e=>{let t,r;return Ot(e)?(t="query-use-query",r=vr.query):(t="query-use-mutation",r=vr.mutation),br(t)({endpoint:e,queryHook:r})})}s(A3,"registerGenerateQueryHelper");function I3(){_r.default.registerHelper("genCaslAbilityType",e=>br("casl-ability-type")({endpoint:e,abilityTupleType:it.abilityTuple}))}s(I3,"registerGenerateCaslAbilityTypeHelper");function T3(){_r.default.registerHelper("genCaslAbilityFunction",e=>br("casl-ability-function")({endpoint:e}))}s(T3,"registerGenerateCaslAbilityFunctionHelper");var go=at(gr());function $S(){k3(),N3(),R3(),C3()}s($S,"registerQueryHbsHelpers");function k3(){go.default.registerHelper("queryName",Os)}s(k3,"registerQueryNameHelper");function N3(){go.default.registerHelper("allQueryKeys",hp)}s(N3,"registerQueryKeysHelper");function R3(){go.default.registerHelper("endpointPathQueryKeys",bv)}s(R3,"registerEndpointPathQueryKeysHelper");function C3(){go.default.registerHelper("isQuery",Ot)}s(C3,"registerIsQueryHelper");var Rf=at(gr());function OS(e){q3(e.options),j3(e)}s(OS,"registerZodHbsHelpers");function q3(e){Rf.default.registerHelper("zodInferedType",t=>Yi(t,e))}s(q3,"registerInferedTypeHelper");function j3(e){Rf.default.registerHelper("importedZodSchemaName",t=>Mv(e,t))}s(j3,"registerImportedZodSchemaNameHelper");function Bt(e,t){let r=Tf(t);return _S(),OS(e),bS(e),$S(),vS(),PS(),Cf.default.compile(r)}s(Bt,"getHbsTemplateDelegate");function br(e){let t=Tf(`partials/${e}`);return Cf.default.compile(t)}s(br,"getHbsPartialTemplateDelegate");function ES({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.endpoints.filter(({acl:l})=>l&&l.length>0);if(!n||n.length===0)return;let i={...kp,bindings:[it.abilityTuple,...n.filter(({acl:l})=>l==null?void 0:l[0].conditions)?[it.forcedSubject,it.subject]:[]]},o=n.reduce((l,f)=>{var d,m;let p=(m=(d=f.acl)==null?void 0:d[0].conditionsTypes)==null?void 0:m.reduce((g,y)=>[...g,...y!=null&&y.zodSchemaName?[y.zodSchemaName]:[]],[]);return[...l,...p??[]]},[]),a=dr({resolver:e,tag:r,zodSchemasAsTypes:Se(o)});return Bt(e,"acl")({caslAbilityTupleImport:i,modelsImports:a,includeNamespace:e.options.includeNamespaces,namespace:G({type:"acl",tag:r,options:e.options}),endpoints:n})}s(ES,"generateAcl");function xS(e,t){let r={...kp,bindings:[it.pureAbility]},n=E_({tags:t,entityName:eo,getAliasEntityName:Ls,options:e.options}),i=t.map(a=>G({type:"acl",tag:a,options:e.options}));return Bt(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:eo,includeNamespace:e.options.includeNamespaces,tags:t,namespaces:i})}s(xS,"generateAppAcl");function wS({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(f=>f.response),o=i.some(f=>!Pe(f)),a=n.reduce((f,p)=>[...f,...p.parameters],[]),c=dr({resolver:e,tag:r,zodSchemas:Se(i.filter(Pe)),zodSchemasAsTypes:Se(a.map(f=>f.zodSchema).filter(Pe))});return Bt(e,"endpoints")({restClientImport:P_,hasZodImport:o,zodImport:Ps,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:G({type:"endpoints",tag:r,options:e.options}),restClientName:qp,endpoints:n})}s(wS,"generateEndpoints");function AS(e,t){let r=e.getRefByZodSchemaName(t);if(r){let i=Array.from(e.dependencyGraph.refsDependencyGraph[r]??[]).map(a=>e.getZodSchemaNameByRef(a)),o=e.getEnumZodSchemaNamesReferencedBySchemaRef(r);return[...i,...o]}let n=e.getCompositeZodSchemaByZodSchemaName(t);return n?Array.from(IS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}s(AS,"getZodSchemaRefs");function IS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&IS(n).forEach(o=>r.add(o)),r},new Set)}s(IS,"getSchemaRefs");function TS({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,f)=>[...l,...AS(e,f)],[]).filter(l=>!n[l]),o=dr({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getRefByZodSchemaName(f);return{...l,[f]:{code:p,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return Bt(e,"models")({zodImport:Ps,modelsImports:o,includeNamespace:e.options.includeNamespaces,namespace:G({type:"models",tag:r,options:e.options}),zodSchemasData:a})}s(TS,"generateModels");function kS({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(Ot),o=n.filter(Ts),a={...SS,bindings:[...i.length>0?[vr.query]:[],...o.length>0?[vr.mutation]:[]]},c={...$_,bindings:[...i.length>0?[to.query]:[],...o.length>0?[to.mutation]:[]]},u=[...i,...o].reduce((m,g)=>[...m,...g.parameters],[]),l=dr({resolver:e,tag:r,zodSchemasAsTypes:Se(u.map(m=>m.zodSchema).filter(Pe))}),f=O_({tag:r,endpoints:n,options:e.options});return Bt(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:f,includeNamespace:e.options.includeNamespaces,namespace:G({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}s(kS,"generateQueries");function NS(e,t){let r={...zi,...t},{resolver:n,data:i}=Ds(e,r),o=[],a=[],c=["models","endpoints","queries","acl"],u={models:TS,endpoints:wS,queries:kS,acl:ES};i.forEach((f,p)=>{r.excludeTags.find(m=>m.toLowerCase()===p.toLowerCase())||c.forEach(m=>{let g=u[m]({resolver:n,data:i,tag:p});if(g){let y=kf({output:r.output,fileName:Ct({tag:p,type:m,options:r})});o.push({fileName:y,content:g}),m==="acl"&&a.push(p)}})});let l=xS(n,a);if(l){let f=kf({output:r.output,fileName:g_});o.push({fileName:f,content:l})}return o}s(NS,"generateCodeFromOpenAPIDoc");async function M3({input:e,options:t}){let r={...zi,...t},n=await qf.default.bundle(e);return await h_(n,r)}s(M3,"getGenerateMetadata");async function D3({input:e,options:t}){let r={...zi,...t},n=await qf.default.bundle(e);return NS(n,r)}s(D3,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
|
|
74
|
+
`].some(s=>String.prototype.includes.call(e.description,s))?n.push(`describe(\`${e.description}\`)`):n.push(`describe("${e.description}")`));let i=n.concat(Qk(e,t),(r==null?void 0:r.withDefaultValues)!==!1?Jk(e):[]).filter(Boolean).join(".");return i?`.${i}`:""}o(xt,"getZodChain");function Qk(e,t){return e.nullable&&!(t!=null&&t.isRequired)?"nullish()":e.nullable?"nullable()":t!=null&&t.isRequired?"":"optional()"}o(Qk,"getZodChainablePresence");function Jk(e){return e.default!==void 0?`default(${ge(e.type).with("number","integer",()=>Cv(e.default)).otherwise(()=>JSON.stringify(e.default))})`:""}o(Jk,"getZodChainableDefault");function Xk(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(${eN(e.pattern)})`),e.format){let r=ge(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(Xk,"getZodChainableStringValidations");function eN(e){return e.startsWith("/")&&e.endsWith("/")&&(e=e.slice(1,-1)),e=jv(e),`/${e}/`}o(eN,"formatPatternIfNeeded");function tN(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(tN,"getZodChainableNumberValidations");function rN(e){let t=[];return e.minItems&&t.push(`min(${e.minItems})`),e.maxItems&&t.push(`max(${e.maxItems})`),t.join(".")}o(rN,"getZodChainableArrayValidations");var Kr=o(e=>e.reduce((t,r)=>t+r,0),"sum");function ie(e,t){if(!t)return e;if(F(t))return e+2;if(Array.isArray(t.type))return t.type.length===1?Ee("oneOf")+ie(e,{...t,type:t.type[0]}):e+Ee("oneOf")+Kr(t.type.map(r=>ie(0,{...t,type:r})));if(t.oneOf)return t.oneOf.length===1?Ee("oneOf")+ie(e,t.oneOf[0]):e+Ee("oneOf")+Kr(t.oneOf.map(r=>ie(0,r)));if(t.anyOf)return t.anyOf.length===1?Ee("anyOf")+ie(e,t.anyOf[0]):e+Ee("anyOf")+Kr(t.anyOf.map(r=>ie(0,r)));if(t.allOf)return t.allOf.length===1?Ee("allOf")+ie(e,t.allOf[0]):e+Ee("allOf")+Kr(t.allOf.map(r=>ie(0,r)));if(!t.type)return e;if(qt(t.type))return t.enum?e+t_(t)+Ee("enum")+Kr(t.enum.map(r=>ie(0,r))):e+t_(t);if(t.type==="array")return t.items?Ee("array")+ie(e,t.items):Ee("array")+ie(e);if(t.type==="object"||t.properties||t.additionalProperties){if(t.additionalProperties)return t.additionalProperties===!0?Ee("record")+ie(e):Ee("record")+ie(e,t.additionalProperties);if(t.properties){let r=Object.values(t.properties);return e+Ee("object")+Kr(r.map(n=>ie(0,n)))}return Ee("empty-object")+ie(e)}return e}o(ie,"getOpenAPISchemaComplexity");function t_(e){return ge(e.type).with("string","number","integer","boolean",()=>1).otherwise(()=>0)}o(t_,"complexityByType");function Ee(e){return ge(e).with("oneOf",()=>2).with("anyOf",()=>3).with("allOf",()=>2).with("enum","array","record","empty-object",()=>1).with("object",()=>2).otherwise(()=>0)}o(Ee,"complexityByComposite");var Tp=class Tp{constructor(t,r,n={referencedBy:[]},i){this.schema=t;this.resolver=r;F(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?`${Z({type:"models",tag:i,options:r})}.${n}`:n}get complexity(){return ie(0,this.schema)}assign(t){return this.code=t,this}inherit(t){return t&&t.children.push(this),this}};o(Tp,"ZodSchema");var Ji=Tp;function W({schema:e,resolver:t,meta:r,tag:n}){var g;let i=new Ji(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(F(e))return nN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});let c=oN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(c)return c;let u=iN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(u)return u;let l=sN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(l)return l;let f=aN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(f)return f;let p=cN({schema:e,zodSchema:i,resolver:t,meta:s,tag:n});if(p)return p;let d=t.options.allReadonly?".readonly()":"";if(Uv(e))return e.items?i.assign(`z.array(${W({...a,schema:e.items}).getCodeString(n,t.options)}${xt({schema:e.items,meta:{...s,isRequired:!0},options:t.options})})${d}`):i.assign(`z.array(z.any())${d}`);let m=e.type?e.type.toLowerCase():void 0;if(m==="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)+xt({schema:e.additionalProperties,meta:{...s,isRequired:!0},options:t.options})})`);let b=e.required&&e.required.length>0,O=t.options.withImplicitRequiredProps?!1:!((g=e.required)!=null&&g.length),P="{}";e.properties&&(P="{ "+Object.entries(e.properties).map(([se,J])=>{var Ut;let G={...s,isRequired:O?!0:b?(Ut=e.required)==null?void 0:Ut.includes(se):t.options.withImplicitRequiredProps,name:se},ve=J;if(F(J)&&t&&(ve=t.getSchemaByRef(J.$ref),!ve))throw new Error(`Schema ${J.$ref} not found`);let _e=W({...a,schema:J,meta:G}).getCodeString(n,t.options)+xt({schema:ve,meta:G,options:t.options});return[se,_e]}).map(([se,J])=>`${Rv(se)}: ${J}`).join(", ")+" }");let S=O?".partial()":"",D=t.options.strictObjects?".strict()":"";return i.assign(`z.object(${P})${S}${D}${_}${d}`)}if(!m)return i.assign("z.unknown()");throw new Error(`Unsupported schema type: ${m}`)}o(W,"getZodSchema");function nN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!F(e))return;let s=t.meta.referencedBy.slice(0,-1).map(u=>u.ref?r.getZodSchemaNameByRef(u.ref)??u.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 c=r.getCodeByZodSchemaName(e.$ref);if(!c){let u=r.getSchemaByRef(e.$ref);if(!u)throw new Error(`Schema ${e.$ref} not found`);c=W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)}return r.getCodeByZodSchemaName(a)||r.setZodSchema(a,c,i),t}o(nN,"getReferenceZodSchema");function iN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){var a;if(!Ce(e)||!e.oneOf)return;if(e.oneOf.length===1){let c=W({schema:e.oneOf[0],resolver:r,meta:n,tag:i});return t.assign(c.getCodeString(i,r.options))}let s=(a=e.oneOf)==null?void 0:a.some(c=>Ce(c)&&((c==null?void 0:c.allOf)||[]).length>1);if(e.discriminator&&!s){let c=e.discriminator.propertyName;return t.assign(`
|
|
75
|
+
z.discriminatedUnion("${c}", [${e.oneOf.map(u=>W({schema:u,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])
|
|
76
|
+
`)}return t.assign(`z.union([${e.oneOf.map(c=>W({schema:c,resolver:r,meta:n,tag:i}).getCodeString(i,r.options)).join(", ")}])`)}o(iN,"getOneOfZodSchema");function oN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!(!Ce(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(oN,"getArrayZodSchema");function sN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ce(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(sN,"getAnyOfZodSchema");function aN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ce(e)||!e.allOf)return;if(e.allOf.length===1){let p=W({schema:e.allOf[0],resolver:r,meta:n,tag:i});return t.assign(p.getCodeString(i,r.options))}let{patchRequiredSchemaInLoop:s,noRequiredOnlyAllof:a,composedRequiredSchema:c}=zv(e),u=a.map(p=>{let d=W({schema:p,resolver:r,meta:n,tag:i});return r&&s(p,r.getSchemaByRef.bind(r)),d});c.required.length&&u.push(W({schema:c,resolver:r,meta:n,tag:i}));let l=u.at(0),f=u.slice(1).map(p=>`merge(${p.getCodeString(i,r.options)})`).join(".");return t.assign(`${l.getCodeString(i,r.options)}.${f}`)}o(aN,"getAllOfZodSchema");function cN({schema:e,zodSchema:t,resolver:r,meta:n,tag:i}){if(!Ce(e))return;let s=e.type?e.type.toLowerCase():void 0;if(s&&qt(s)){if(e.enum){if(s==="string")return uN({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(ge(s).with("integer",()=>"z.number()").with("string",()=>ge(e.format).with("binary",()=>"z.instanceof(File)").otherwise(()=>"z.string()")).otherwise(a=>`z.${a}()`))}}o(cN,"getPrimitiveZodSchema");function uN({resolver:e,schema:t,zodSchema:r,meta:n,tag:i}){if(!Ce(t))return;let s=kp(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 c=e.options.includeNamespaces&&a.tag!==i?`${Z({type:"models",tag:a.tag,options:e.options})}.`:"";return new Ji(t,e,n,a.zodSchemaName).inherit(r),r.assign(`${c}${a.zodSchemaName}`)}o(uN,"getEnumZodSchema");function kp(e){var t;return`z.enum([${(t=e.enum)==null?void 0:t.map(r=>r===null?"null":`"${r}"`).join(", ")}])`}o(kp,"getEnumZodSchemaCode");function Un({schema:e,zodSchema:t,fallbackName:r,resolver:n,tag:i}){var c;let s=t.getCodeString();if((!Oe(s)||t.ref===void 0)&&r){if(t.complexity<Pp)return s;let u=Mt(r,n.options.schemaSuffix);for(;n.getCodeByZodSchemaName(u);){if((c=n.getZodSchemaNamesByCompositeCode(s))!=null&&c.includes(u))return u;if(n.getCodeByZodSchemaName(u)===u)return u;throw new Error(`Can't uniquely resolve zod schema name: ${u}`)}return n.setZodSchema(u,s,i),n.addZodSchemaForCompositeCode(s,t,u,e),u}let a=n.getCodeByZodSchemaName(s);if(!a&&t.ref&&(a=n.getCodeByZodSchemaName(n.getZodSchemaNameByRef(t.ref))),t.ref&&a)return ie(0,n.getSchemaByRef(t.ref))<Pp?n.getCodeByZodSchemaName(s):s;throw new Error(`Invalid ref: ${t.ref}`)}o(Un,"resolveZodSchemaName");function r_({resolver:e,endpoint:t,operation:r}){let n=r["x-acl"];return n==null?void 0:n.map(i=>{let s=Object.keys(i.conditions??{}).reduce((a,c)=>{let u=lN({resolver:e,endpoint:t,acl:n,name:c});return u?[...a,u]:(e.validationErrors.push(Xv(c,r,t)),a)},[]);return{...i,conditionsTypes:s}})}o(r_,"getEndpointAcl");function lN({resolver:e,endpoint:t,acl:r,name:n}){var p,d,m,g,y,v,_,b,O,P;let i=(d=(p=r[0])==null?void 0:p.conditions)==null?void 0:d[n];if(!i)return;let s=i.replace(/^\$[^.]*\./,"").split("."),a,c,u,l=0,f=t.parameters.find(({name:S})=>S===s[l]);if(f)c=(m=f.parameterObject)==null?void 0:m.required,a=(g=f.parameterObject)==null?void 0:g.schema,u=`${f.name} ${Hr(f.type)} parameter`,l++;else{let S=t.parameters.find(({bodyObject:se})=>!!se),R=Object.keys(((y=S==null?void 0:S.bodyObject)==null?void 0:y.content)??{}).find(Ue);R&&(a=(b=(_=(v=S==null?void 0:S.bodyObject)==null?void 0:v.content)==null?void 0:_[R])==null?void 0:b.schema,u=`${Et(t)?"query":"mutation"} data`)}for(;a&&l<s.length;){let S=e.resolveObject(a);a=(O=Object.entries(S.properties??{}).find(([R])=>R===s[l]))==null?void 0:O[1],c=((P=S.required)==null?void 0:P.includes(s[l]))??!1,l++}if(a)return{name:n,type:F(a)?void 0:a.type,zodSchemaName:F(a)?e.getZodSchemaNameByRef(a.$ref):void 0,required:c,info:u}}o(lN,"getEndpointAclConditionPropertyType");function n_({resolver:e,operation:t,operationName:r,isUniqueOperationName:n,tag:i}){var m,g;let s=e.resolveObject(t.requestBody);if(!s)return;let c=Object.keys(s.content??{}).find(Ue);if(!c)return;let u=(g=(m=s.content)==null?void 0:m[c])==null?void 0:g.schema;if(!u)return;let l=W({schema:u,resolver:e,meta:{isRequired:s.required??!0},tag:i}),f=e.resolveObject(u),p=Un({schema:f,zodSchema:l,fallbackName:ks(Gr(r,n,i)),resolver:e,tag:i}),d=xt({schema:f,meta:l.meta,options:e.options});return{endpointParameter:{name:Hv,type:"Body",description:s.description,zodSchema:p+d,bodyObject:s},requestFormat:c}}o(n_,"getEndpointBody");function i_({resolver:e,param:t,operationName:r,isUniqueOperationName:n,tag:i}){let s=e.resolveObject(t);if(!Av.includes(s.in))return;let a={};if(s.content){let p=Object.keys(s.content??{}),d=p.find(Ue);if(!d)throw new Error(`Unsupported media type for param ${s.name}: ${p.join(", ")}`);let m=s.content[d];if(!m)throw new Error(`No content with media type for param ${s.name}: ${d}`);a=(m==null?void 0:m.schema)??m}else s.schema&&(a=s.schema);e.options.withDescription&&a&&(a.description=(s.description??"").trim());let c=W({schema:a,resolver:e,meta:{isRequired:s.in==="path"?!0:s.required??!1},tag:i}),u=e.resolveObject(a),l=xt({schema:u,meta:c.meta,options:e.options}),f=Un({schema:u,zodSchema:c.assign(c.getCodeString(i)+l),fallbackName:Lv(Gr(r,n,i),s.name),resolver:e,tag:i});return{name:ge(s.in).with("path",()=>xp(s.name)).otherwise(()=>s.name),type:ge(s.in).with("header",()=>"Header").with("query",()=>"Query").with("path",()=>"Path").run(),zodSchema:f,parameterObject:s}}o(i_,"getEndpointParameter");function s_(e){var r,n,i,s,a;let t=[];for(let c in e.openApiDoc.paths){let u=e.openApiDoc.paths[c],l=dr(u,fr),f=o_(u.parameters??[]);for(let p in l){let d=l[p];if(!d||d.deprecated&&!e.options.withDeprecatedEndpoints)continue;let m=d.operationId&&d.operationId!==bt(d.operationId);d.operationId&&m&&e.validationErrors.push(Yv(d.operationId));let g=Object.entries({...f,...o_(d.parameters??[])}).map(([,P])=>P),y=Ki({path:c,method:p,operation:d,operationsByTag:e.operationsByTag,options:e.options}),v=e.operationNames.filter(P=>P===y).length<=1,_=Ur(d,e.options),b={method:p,path:Mv(c),operationName:y,description:d.description,summary:d.summary,tags:(r=d.tags)==null?void 0:r.map(Ot),requestFormat:"application/json",parameters:[],response:"",errors:[],responseStatusCodes:[]};if(d.requestBody){let P=n_({resolver:e,operation:d,operationName:y,isUniqueOperationName:v,tag:_});P&&(b.parameters.push(P.endpointParameter),b.requestFormat=P.requestFormat)}for(let P of g){let S=i_({resolver:e,param:P,operationName:y,isUniqueOperationName:v,tag:_});S&&b.parameters.push(S)}let O=pN(b);O.forEach(P=>{b.parameters.push(P)}),O.length>0&&e.validationErrors.push(Wv(O,c));for(let P in d.responses){b.responseStatusCodes.push(P);let S=e.resolveObject(d.responses[P]),R=Object.keys(S.content??{}).find(Bn),se,J;if(R?(b.responseFormat=R,se=(i=(n=S.content)==null?void 0:n[R])==null?void 0:i.schema):J=dp,se){let G=W({schema:se,resolver:e,meta:{isRequired:!0},tag:_}),ve=e.resolveObject(se);J=Un({schema:ve,zodSchema:G,fallbackName:G.ref?void 0:Ns({statusCode:P,operationName:y,isUniqueOperationName:v,tag:_}),resolver:e,tag:_})+xt({schema:ve,meta:G.meta,options:e.options})}if(J){let G=Number(P);As(G)?(b.response=J,b.responseObject=S):P!=="default"&&Is(G)&&b.errors.push({zodSchema:J,status:G,description:S.description})}}b.response||(b.response=dp),b.acl=r_({resolver:e,endpoint:b,operation:d}),(s=d.security)!=null&&s[0].Authorization&&!b.responseStatusCodes.includes("401")&&e.validationErrors.push(Ip("401",d,b)),(a=b.acl)!=null&&a[0]&&!b.responseStatusCodes.includes("403")&&e.validationErrors.push(Ip("403",d,b)),t.push(b)}}return t}o(s_,"getEndpointsFromOpenAPIDoc");function o_(e){return Object.fromEntries((e??[]).map(t=>[F(t)?t.$ref:t.name,t]))}o(o_,"getParameters");function pN(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=>fN(r))}o(pN,"getMissingPathParameters");function fN(e){return{name:e,type:"Path",zodSchema:"z.string()",parameterObject:{name:e,required:!0,in:"path",schema:{type:"string"}}}}o(fN,"getPathParameterFromName");function ot(e,t){if(!e)return;let{data:r,onSchema:n}=t;if(F(e)&&n({type:"reference",schema:e,data:r})===!0)return;let i=e;if(ws.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;ot(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;ot(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;ot(a,t)}if(i.type==="array"){let s=e.items;if(n({type:"array",parentSchema:e,schema:s,data:r})===!0)return;ot(s,t)}}o(ot,"iterateSchema");function a_(e,t){let r=dN(e,t),n=mN(e,r);return{refsDependencyGraph:r,deepDependencyGraph:n}}o(a_,"getOpenAPISchemaDependencyGraph");function dN(e,t){let r={},n={};return e.forEach(i=>hN({schema:t(i),fromRef:i,getSchemaByRef:t,visitedRefs:r,refsDependencyGraph:n})),n}o(dN,"getRefsDependencyGraph");function mN(e,t){let r={},n={},i=o((s,a)=>{n[a].add(s),t[s]&&a!==s&&t[s].forEach(c=>{let u=`${a}__${c}`;r[u]||(r[u]=!0,i(c,a))})},"visit");return e.forEach(s=>{let a=t[s];a&&(n[s]||(n[s]=new Set),a.forEach(c=>i(c,s)))}),n}o(mN,"getDeepRefsDependencyGraph");function hN({schema:e,fromRef:t,getSchemaByRef:r,visitedRefs:n={},refsDependencyGraph:i={}}){let s=o(a=>{if(a.type!=="reference"||!a.data)return;let{schema:c,data:u}=a;if(i[u.fromRef]||(i[u.fromRef]=new Set),i[u.fromRef].add(c.$ref),n[c.$ref])return!0;n[u.fromRef]=!0,ot(r(c.$ref),{data:{fromRef:c.$ref},onSchema:s})},"onSchema");return ot(e,{data:{fromRef:t},onSchema:s}),{visitedRefs:n,refsDependencyGraph:i}}o(hN,"getSchemaRefsDependencyGraph");function qs(e,t,r){let n=[];return ot(t,{onSchema:o(i=>{i.type==="reference"?n.push(i.schema):F(i.parentSchema)&&(i.type==="property"||i.type==="additionalProperty"?e.validationErrors.push(js(`${r} has both reference and properties`)):i.type==="array"?e.validationErrors.push(js(`${r} is both reference and array schema`)):i.type==="composite"&&e.validationErrors.push(js(`${r} has both reference and composite keyword`)))},"onSchema")}),n}o(qs,"getSchemaRefObjs");function c_(e,t){return t.map(i=>zr(i.$ref)).reduce((i,s)=>{let a=e.dependencyGraph.deepDependencyGraph[s];return[...i,s,...Array.from(a??[])]},[])}o(c_,"getDeepSchemaRefObjs");function Xi({schema:e,nameSegments:t=[],includeSelf:r,...n}){r&&u_({schema:e,nameSegments:t,...n}),ot(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),u_({schema:i.schema,nameSegments:[...s],...n})},"onSchema")})}o(Xi,"updateEnumZodSchemaData");function u_({resolver:e,schema:t,schemaRef:r,schemaInfo:n,tags:i,nameSegments:s=[]}){if(!t||F(t)||!t.enum)return;let a=kp(t),c=e.enumZodSchemaData.find(u=>u.code===a);c?(c.meta.zodSchemaNameSegments.push(s),c.meta.tags.push(...i),c.meta.schemaRefs.push(...r?[r]:[])):e.enumZodSchemaData.push({code:a,meta:{zodSchemaNameSegments:[s],tags:[...i],schemaRefs:r?[r]:[]}}),e.validationErrors.push(Qv(r?`schema ${Vn(r)} property ${s[s.length-1]}`:n??s.join("->")))}o(u_,"handleEnumZodSchemaDataUpdate");function p_(e){e.enumZodSchemaData.forEach(r=>{let n=r.meta.zodSchemaNameSegments.map(s=>s[s.length-1]).filter(Boolean),i=hp(n);if(!i)throw new Error(`No common last segment found for enum: ${r.code}`);r.zodSchemaName=Dv(i,e.options.enumSuffix,e.options.schemaSuffix)});let t=0;for(;t<5&&!l_(e);)gN(e,t+2),t++;if(!l_(e))throw new Error("Failed to resolve unique names for enum zod schemas")}o(p_,"resolveEnumZodSchemaNames");function l_(e){return e.enumZodSchemaData.every(t=>e.enumZodSchemaData.filter(({zodSchemaName:r})=>t.zodSchemaName===r).length==1)}o(l_,"allEnumZodSchemaNamesAreUnique");function gN(e,t){e.enumZodSchemaData.forEach(r=>{let n=e.enumZodSchemaData.filter(({zodSchemaName:i})=>r.zodSchemaName===i);n.length!==1&&yN(n,t)})}o(gN,"additionalResolveEnumZodSchemaName");function yN(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=[Y(n[0]),r.zodSchemaName].filter(Boolean).join("");else{let i=hp(n);r.zodSchemaName=[i?Y(i):"",r.zodSchemaName].filter(Boolean).join("")}})}o(yN,"suffixWithPreviousSegmentName");function f_(e){e.enumZodSchemaData.forEach(t=>{let r=$e(t.meta.tags);t.tag=r.length===1?r[0]:e.options.defaultTag})}o(f_,"resolveEnumZodSchemaTags");var Np=class Np{constructor(t,r){this.openApiDoc=t;this.options=r;this.dependencyGraph=a_(this.schemaRefs,this.getSchemaByRef.bind(this)),this.operationsByTag=Tv(t,r),this.operationNames=qv(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(Nv)}getSchemaByRef(t){return this.docSchemas[Vn(t)]}getSchemaDataByRef(t){return this.schemaData.find(r=>r.ref===t)}getZodSchemaNameByRef(t){var n,i;let r=((n=this.getSchemaDataByRef(zr(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 u,l;if(!this.options.splitByTags)return this.options.defaultTag;let r=this.enumZodSchemaData.find(f=>f.zodSchemaName===t);if(r)return Ot(r.tag??this.options.defaultTag);let n=this.getRefByZodSchemaName(t),i=n?((u=this.getSchemaDataByRef(n))==null?void 0:u.tags)??[]:[],s=((l=this.zodSchemaData.find(f=>f.zodSchemaName===t))==null?void 0:l.tags)??[],a=$e(i,s),c=a.length===1?a[0]:this.options.defaultTag;return Ot(c??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(c=>c.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 F(t)?this.getSchemaByRef(t.$ref):t}isSchemaCircular(t){var r;return(r=this.dependencyGraph.deepDependencyGraph[t])==null?void 0:r.has(t)}getCircularSchemaChain(t,r=t,n=[]){var i,s;return(i=this.dependencyGraph.refsDependencyGraph[r])!=null&&i.has(t)?[...n,r,t]:Array.from(((s=this.dependencyGraph.refsDependencyGraph[r])==null?void 0:s.values())??[]).map(a=>{let c=this.getCircularSchemaChain(t,a,n);return c.length>0?[r,...c]:c}).flat()}initialize(){var t,r,n,i,s,a;this.schemaRefs.forEach(c=>{let u=zr(c),l=Vn(u),f=Mt(l,this.options.schemaSuffix);this.schemaData.push({ref:u,name:l,zodSchemaName:f,tags:[]})});for(let c in this.openApiDoc.paths){let u=this.openApiDoc.paths[c],l=dr(u,fr);for(let f in l){let p=l[f];if(!p||p.deprecated&&!((t=this.options)!=null&&t.withDeprecatedEndpoints))continue;let d=Ur(p,this.options),m=Ki({path:c,method:f,operation:p,operationsByTag:this.operationsByTag,options:this.options}),g=this.operationNames.filter(b=>b===m).length<=1,y=ue(Gr(m,g,d)),v=[];if((r=p.parameters)==null||r.map(b=>{let O=b,P=O.schema,S=`operation ${p.operationId??c} parameter ${O.name}`;v.push(...qs(this,P,S)),this.options.extractEnums&&Xi({resolver:this,schema:P,schemaInfo:S,tags:[d],nameSegments:[y,O.name],includeSelf:!0})}),p.requestBody){let b=this.resolveObject(p.requestBody),P=Object.keys(b.content??{}).find(Ue);if(P){let S=(i=(n=b.content)==null?void 0:n[P])==null?void 0:i.schema,D=`operation ${p.operationId} request body`;v.push(...qs(this,S,D)),this.options.extractEnums&&Xi({resolver:this,schema:S,schemaInfo:D,tags:[d],nameSegments:[ks(y)]})}}for(let b in p.responses){let O=this.resolveObject(p.responses[b]),S=Object.keys(O.content??{}).find(Bn);if(S){let D=(a=(s=O.content)==null?void 0:s[S])==null?void 0:a.schema,R=`operation ${p.operationId} response body`;v.push(...qs(this,D,R)),this.options.extractEnums&&Xi({resolver:this,schema:D,schemaInfo:R,tags:[d],nameSegments:[Ns({statusCode:b,operationName:m,isUniqueOperationName:g,tag:d})]})}}c_(this,v).forEach(b=>{let O=this.getSchemaDataByRef(b);O&&O.tags.push(d)})}}this.options.extractEnums&&(this.schemaRefs.forEach(c=>{var l;let u=zr(c);Xi({resolver:this,schema:this.getSchemaByRef(u),schemaRef:u,tags:((l=this.getSchemaDataByRef(u))==null?void 0:l.tags)??[],nameSegments:[Vn(u)]})}),p_(this),f_(this))}};o(Np,"SchemaResolver");var Ms=Np;function d_(e){var r;let t={};return Object.entries(((r=e.openApiDoc.components)==null?void 0:r.schemas)??{}).forEach(([n,i])=>{let s=Mt(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(d_,"getZodSchemasFromOpenAPIDoc");function m_(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(m_,"topologicalSort");function h_(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(h_,"sortObjKeysFromArray");function g_(e,t){let r=m_(e.dependencyGraph.deepDependencyGraph).map(i=>e.getZodSchemaNameByRef(i));return h_(t,r)}o(g_,"sortZodSchemasByTopology");function y_(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{let s=e.getRefByZodSchemaName(n);s&&e.isSchemaCircular(s)?(e.validationErrors.push(Jv(e.getCircularSchemaChain(s).join(" -> "))),r[Mt(n,e.options.schemaSuffix)]=`z.lazy(() => ${i})`):r[Mt(n,e.options.schemaSuffix)]=i}),r}o(y_,"wrapCircularZodSchemas");function Ds(e,t){let r=new Ms(e,t),n=s_(r),s={...d_(r),...r.getZodSchemas()};return s=y_(r,s),s=g_(r,s),s={...r.getEnumZodSchemas(),...s},{resolver:r,data:vN({resolver:r,endpoints:n,zodSchemas:s,options:t})}}o(Ds,"getDataFromOpenAPIDoc");function vN({resolver:e,endpoints:t,zodSchemas:r,options:n}){let i=new Map;return n.splitByTags?(t.forEach(s=>{let a=Qi(s,n);v_(a,i).endpoints.push(s)}),Object.entries(r).forEach(([s,a])=>{let c=e.getTagByZodSchemaName(s);c&&(v_(c,i).zodSchemas[s]=a)}),i):(i.set(n.defaultTag,{endpoints:t,zodSchemas:r}),i)}o(vN,"splitDataByTags");function v_(e,t){return t.has(e)||t.set(e,{endpoints:[],zodSchemas:{}}),t.get(e)}o(v_,"getTagElement");async function __(e,t){let{resolver:r,data:n}=await Ds(e,t),i=[],s=[];return n.forEach(({endpoints:c,zodSchemas:u},l)=>{var d;((d=t.excludeTags)==null?void 0:d.findIndex(m=>m.toLowerCase()===l.toLowerCase()))===-1&&(Object.keys(u).forEach(m=>{let g=r.getRefByZodSchemaName(m),y=g?r.getSchemaByRef(g):r.getSchemaByCompositeZodSchemaName(m),v=Hn({zodSchemaName:m,schema:y,resolver:r}),_;y&&(_=Zr({schema:y,parentTypes:[v],resolver:r})),i.push({...v,metaType:"primitive",..._})}),c.forEach(m=>{let g="queries",y=Ot(l);s.push({name:Os(m),filePath:Ct({type:g,tag:y,includeTagDir:!0,options:t}),namespace:t.includeNamespaces?Z({type:g,tag:y,options:t}):void 0,isQuery:Et(m),isMutation:Ts(m),params:_N({resolver:r,endpoint:m}),response:bN({resolver:r,endpoint:m})})}))}),{openApiDoc:e,models:i,queries:s}}o(__,"getMetadataFromOpenAPIDoc");function _N({resolver:e,endpoint:t}){return t.parameters.map(r=>{var a,c,u,l;let n;if((a=r.parameterObject)!=null&&a.schema)n=e.resolveObject(r.parameterObject.schema);else if(r.bodyObject){let p=Object.keys(r.bodyObject.content??{}).find(Ue);p&&(n=e.resolveObject((u=(c=r.bodyObject.content)==null?void 0:c[p])==null?void 0:u.schema))}let i=Hn({zodSchemaName:r.zodSchema,schema:n,resolver:e}),s;return n&&(s=Zr({schema:n,parentTypes:[i],resolver:e})),{name:bt(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(_N,"getQueryMetadataParams");function bN({resolver:e,endpoint:t}){var a,c,u,l;let r,n=Object.keys(((a=t.responseObject)==null?void 0:a.content)??{}).find(Bn);n&&(r=e.resolveObject((l=(u=(c=t.responseObject)==null?void 0:c.content)==null?void 0:u[n])==null?void 0:l.schema));let i=Hn({zodSchemaName:t.response,schema:r,resolver:e}),s;return r&&(s=Zr({schema:r,parentTypes:[i],resolver:e})),{...i,metaType:"primitive",...s}}o(bN,"getQueryMetadataResponse");var b_="acl/app.ability",eo="AllAbilities",st={abilityTuple:"AbilityTuple",pureAbility:"PureAbility",forcedSubject:"ForcedSubject",subject:"subject"},Rp={bindings:[st.abilityTuple,st.pureAbility,st.forcedSubject,st.subject],from:"@casl/ability"};var S_=o(e=>`Use${Y(ue(e.operationName))}Ability`,"getAbilityTypeName"),P_=o(e=>`canUse${Y(ue(e.operationName))}`,"getAbilityFunctionName"),$_=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].action},"getAbilityAction"),O_=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].subject},"getAbilitySubject"),E_=o(e=>{var t;return!!((t=Cp(e))!=null&&t.length)},"hasAbilityConditions"),Cp=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].conditionsTypes},"getAbilityConditionsTypes"),x_=o(e=>{var t;return(t=e.acl)==null?void 0:t[0].description},"getAbilityDescription"),Ls=o(e=>`${Y(e)}${eo}`,"getTagAllAbilitiesName");var jp="src/data",qp="@/data",Mp="AppRestClient",w_={bindings:[Mp],from:"@/util/rest/clients/app-rest-client"},to={query:"AppQueryOptions",mutation:"AppMutationOptions"},A_={bindings:[to.query,to.mutation],from:"@/types/react-query"};function mr({resolver:e,tag:t,zodSchemas:r=[],zodSchemasAsTypes:n=[]}){let i="models",s=o(u=>e.getTagByZodSchemaName(u),"getTag"),a=Dp({type:i,tag:t,entities:r,getTag:s,getEntityName:o(u=>u,"getEntityName"),options:e.options}),c=Dp({type:i,tag:t,entities:n,getTag:s,getEntityName:o(u=>Yi(u,e.options),"getEntityName"),options:e.options});return SN(e.options,a,c)}o(mr,"getModelsImports");function I_({tag:e,endpoints:t,options:r}){return Dp({type:"endpoints",tag:e,entities:t,getTag:o(n=>Qi(n,r),"getTag"),getEntityName:Wi,options:r})}o(I_,"getEndpointsImports");function T_({tags:e,entityName:t,getAliasEntityName:r,options:n}){let i=new Map;return e.forEach(s=>{let a=`${t}${r?` as ${r(s)}`:""}`;i.has(s)?n.includeNamespaces||i.get(s).bindings.push(a):i.set(s,{bindings:[n.includeNamespaces?Z({type:"acl",tag:s,options:n}):a],from:`${k_(n)}${Ct({type:"acl",tag:s,includeTagDir:!0,options:n})}`})}),Array.from(i.values())}o(T_,"getAclImports");function k_(e){let t=qp;return e.importPath==="relative"?t="../":e.importPath==="absolute"?t=e.output:new RegExp(`${jp}`,"g").test(e.output)&&(t=e.output.replace(new RegExp(`.*${jp}`,"g"),qp)),`${t}/`.replace(/\/\//g,"/")}o(k_,"getImportPath");function Dp({type:e="models",tag:t,entities:r,getTag:n,getEntityName:i,options:s}){let a=new Map;return r.forEach(c=>{let u=n(c);if(a.has(u))s.includeNamespaces||a.get(u).bindings.push(i(c));else{let l=t===u;a.set(u,{bindings:[s.includeNamespaces?Z({type:e,tag:u,options:s}):i(c)],from:`${l?"./":k_(s)}${Ct({type:e,tag:u,includeTagDir:!l,options:s})}`})}}),Array.from(a.values())}o(Dp,"getImports");function SN(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:$e(n.bindings)}))}o(SN,"mergeImports");var jf=ut(yr());var kf=ut(require("fs")),PS=ut(require("path"));function Nf(e){let t=`src/generators/templates/${e}.hbs`;return kf.default.readFileSync(PS.default.join(__dirname,`../${t}`),"utf-8")}o(Nf,"readHbsTemplateSync");function Rf({output:e,fileName:t}){return`${e}/${t}.ts`}o(Rf,"getOutputFileName");var Bt=ut(yr());function $S(){d3(),m3(),h3(),g3(),y3(),v3(),_3(),b3()}o($S,"registerAclHbsHelpers");function d3(){Bt.default.registerHelper("abilityTypeName",S_)}o(d3,"registerAbilityTypeNameHelper");function m3(){Bt.default.registerHelper("abilityFunctionName",P_)}o(m3,"registerAbilityFunctionNameHelper");function h3(){Bt.default.registerHelper("ablityAction",$_)}o(h3,"registerAbilityActionHelper");function g3(){Bt.default.registerHelper("ablitySubject",O_)}o(g3,"registerAbilitySubjectHelper");function y3(){Bt.default.registerHelper("hasAbilityConditions",E_)}o(y3,"registerHasAbilityConditionsHelper");function v3(){Bt.default.registerHelper("abilityConditionsTypes",Cp)}o(v3,"registerAbilityConditionsTypesHelper");function _3(){Bt.default.registerHelper("abilityDescription",x_)}o(_3,"registerAbilityDescriptionHelper");function b3(){Bt.default.registerHelper("tagAllAbilitiesName",Ls)}o(b3,"registerTagAllAbilitiesNameHelper");var Pa=ut(yr());function OS(){S3(),P3(),$3()}o(OS,"registerCommonHbsHelpers");function S3(){Pa.default.registerHelper("isEqual",(e,t)=>e===t)}o(S3,"registerIsEqualHelper");function P3(){Pa.default.registerHelper("commaSeparated",e=>e.join(", "))}o(P3,"registerCommaSeparatedListHelper");function $3(){Pa.default.registerHelper("addAsteriskAfterNewLine",e=>e.replace(/\n/g,`
|
|
77
|
+
*`))}o($3,"registerAddAsteriskAfterNewLineHelper");var vr=ut(yr());function ES(e){O3(),E3(e.options),A3(e),x3(),w3(),I3(e),T3()}o(ES,"registerEndpointsHbsHelpers");function O3(){vr.default.registerHelper("endpointName",Wi)}o(O3,"registerEndpointNameHelper");function E3(e){vr.default.registerHelper("importedEndpointName",t=>Gv(t,e))}o(E3,"registerImportedEndpointNameHelper");function x3(){vr.default.registerHelper("endpointPath",Zv)}o(x3,"registerEndpointPathHelper");function w3(){vr.default.registerHelper("endpointBody",e=>e.parameters.find(t=>t.type==="Body"))}o(w3,"registerEndpointBodyHelper");function A3(e){vr.default.registerHelper("endpointParams",t=>Ap(e,t))}o(A3,"registerEndpointParamsHelper");function I3(e){vr.default.registerHelper("endpointArgs",t=>Ap(e,t).map(r=>r.name).join(", "))}o(I3,"registerEndpointArgsHelper");function T3(){vr.default.registerHelper("endpointParamDescription",e=>{var s,a,c,u,l;let t=[`${e.paramType} parameter`],r=((s=e.parameterObject)==null?void 0:s.description)||((a=e.bodyObject)==null?void 0:a.description);r&&t.push(r);let n,i;if((c=e.parameterObject)!=null&&c.schema&&Ce(e.parameterObject.schema)&&(n=(u=e.parameterObject)==null?void 0:u.schema),(l=e.bodyObject)!=null&&l.content){let p=Object.keys(e.bodyObject.content??{}).find(Ue);p&&(i=e.bodyObject.content[p],i.schema&&Ce(i.schema)&&(n=i.schema))}return n&&["description","minimum","exclusiveMinimum","maximum","exclusiveMaximum","minItems","minLength","minProperties","maxItems","maxLength","maxProperties","example"].filter(p=>n[p]).forEach(p=>{t.push(`${Y(Pv(p))}: \`${n[p]}\``)}),i!=null&&i.example&&t.push(`Example: \`${i.example}\``),t.join(". ")})}o(T3,"registerEndpointParamDescriptionHelper");var br=ut(yr());var _r={query:"useQuery",mutation:"useMutation"},xS={bindings:[_r.query,_r.mutation],from:"@tanstack/react-query"};function wS(){k3(),N3(),R3(),C3(),j3(),q3(),M3()}o(wS,"registerPartialsHbsHelpers");function k3(){br.default.registerHelper("genImport",e=>Sr("import")({import:e}))}o(k3,"registerImportHelper");function N3(){br.default.registerHelper("genEndpointParams",e=>Sr("endpoint-params")({endpoint:e}))}o(N3,"registerGenerateEndpointParamsHelper");function R3(){br.default.registerHelper("genEndpointConfig",e=>{let t=Kv(e);return Object.keys(t).length===0?"":Sr("endpoint-config")({endpointConfig:t})})}o(R3,"registerGenerateEndpointConfigHelper");function C3(){br.default.registerHelper("genQueryKeys",e=>e.length===0?"":Sr("query-keys")({endpoints:e}))}o(C3,"registerGenerateQueryKeysHelper");function j3(){br.default.registerHelper("genQuery",e=>{let t,r;return Et(e)?(t="query-use-query",r=_r.query):(t="query-use-mutation",r=_r.mutation),Sr(t)({endpoint:e,queryHook:r})})}o(j3,"registerGenerateQueryHelper");function q3(){br.default.registerHelper("genCaslAbilityType",e=>Sr("casl-ability-type")({endpoint:e,abilityTupleType:st.abilityTuple}))}o(q3,"registerGenerateCaslAbilityTypeHelper");function M3(){br.default.registerHelper("genCaslAbilityFunction",e=>Sr("casl-ability-function")({endpoint:e}))}o(M3,"registerGenerateCaslAbilityFunctionHelper");var go=ut(yr());function AS(){D3(),L3(),F3(),V3()}o(AS,"registerQueryHbsHelpers");function D3(){go.default.registerHelper("queryName",Os)}o(D3,"registerQueryNameHelper");function L3(){go.default.registerHelper("allQueryKeys",gp)}o(L3,"registerQueryKeysHelper");function F3(){go.default.registerHelper("endpointPathQueryKeys",$v)}o(F3,"registerEndpointPathQueryKeysHelper");function V3(){go.default.registerHelper("isQuery",Et)}o(V3,"registerIsQueryHelper");var Cf=ut(yr());function IS(e){B3(e.options),H3(e)}o(IS,"registerZodHbsHelpers");function B3(e){Cf.default.registerHelper("zodInferedType",t=>Yi(t,e))}o(B3,"registerInferedTypeHelper");function H3(e){Cf.default.registerHelper("importedZodSchemaName",t=>Fv(e,t))}o(H3,"registerImportedZodSchemaNameHelper");function Ht(e,t){let r=Nf(t);return OS(),IS(e),ES(e),AS(),$S(),wS(),jf.default.compile(r)}o(Ht,"getHbsTemplateDelegate");function Sr(e){let t=Nf(`partials/${e}`);return jf.default.compile(t)}o(Sr,"getHbsPartialTemplateDelegate");function TS({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.endpoints.filter(({acl:l})=>l&&l.length>0);if(!n||n.length===0)return;let i={...Rp,bindings:[st.abilityTuple,...n.filter(({acl:l})=>l==null?void 0:l[0].conditions)?[st.forcedSubject,st.subject]:[]]},s=n.reduce((l,f)=>{var d,m;let p=(m=(d=f.acl)==null?void 0:d[0].conditionsTypes)==null?void 0:m.reduce((g,y)=>[...g,...y!=null&&y.zodSchemaName?[y.zodSchemaName]:[]],[]);return[...l,...p??[]]},[]),a=mr({resolver:e,tag:r,zodSchemasAsTypes:$e(s)});return Ht(e,"acl")({caslAbilityTupleImport:i,modelsImports:a,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"acl",tag:r,options:e.options}),endpoints:n})}o(TS,"generateAcl");function kS(e,t){let r={...Rp,bindings:[st.pureAbility]},n=T_({tags:t,entityName:eo,getAliasEntityName:Ls,options:e.options}),i=t.map(a=>Z({type:"acl",tag:a,options:e.options}));return Ht(e,"app-acl")({caslAbilityTupleImport:r,imports:n,allAbilities:eo,includeNamespace:e.options.includeNamespaces,tags:t,namespaces:i})}o(kS,"generateAppAcl");function NS({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(f=>f.response),s=i.some(f=>!Oe(f)),a=n.reduce((f,p)=>[...f,...p.parameters],[]),c=mr({resolver:e,tag:r,zodSchemas:$e(i.filter(Oe)),zodSchemasAsTypes:$e(a.map(f=>f.zodSchema).filter(Oe))});return Ht(e,"endpoints")({restClientImport:w_,hasZodImport:s,zodImport:Ps,modelsImports:c,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"endpoints",tag:r,options:e.options}),restClientName:Mp,endpoints:n})}o(NS,"generateEndpoints");function RS(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(CS(n)).map(i=>e.getZodSchemaNameByRef(i)):[]}o(RS,"getZodSchemaRefs");function CS(e){return e.children.reduce((r,n)=>{let i=n.ref??n.enumRef;return i&&r.add(i),n.children.length>0&&CS(n).forEach(s=>r.add(s)),r},new Set)}o(CS,"getSchemaRefs");function jS({resolver:e,data:t,tag:r=""}){var u;let n=(u=t.get(r))==null?void 0:u.zodSchemas;if(!n||Object.keys(n).length===0)return;let i=Object.keys(n).reduce((l,f)=>[...l,...RS(e,f)],[]).filter(l=>!n[l]),s=mr({resolver:e,tag:r,zodSchemas:i}),a=Object.entries(n).reduce((l,[f,p])=>{let d=e.getRefByZodSchemaName(f);return{...l,[f]:{code:p,isCircular:!!d&&e.isSchemaCircular(d)}}},{});return Ht(e,"models")({zodImport:Ps,modelsImports:s,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"models",tag:r,options:e.options}),zodSchemasData:a})}o(jS,"generateModels");function qS({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(Et),s=n.filter(Ts),a={...xS,bindings:[...i.length>0?[_r.query]:[],...s.length>0?[_r.mutation]:[]]},c={...A_,bindings:[...i.length>0?[to.query]:[],...s.length>0?[to.mutation]:[]]},u=[...i,...s].reduce((m,g)=>[...m,...g.parameters],[]),l=mr({resolver:e,tag:r,zodSchemasAsTypes:$e(u.map(m=>m.zodSchema).filter(Oe))}),f=I_({tag:r,endpoints:n,options:e.options});return Ht(e,"queries")({queryImport:a,queryTypesImport:c,modelsImports:l,endpointsImports:f,includeNamespace:e.options.includeNamespaces,namespace:Z({type:"queries",tag:r,options:e.options}),endpoints:n,queryEndpoints:i})}o(qS,"generateQueries");function MS(e,t){let r={...zi,...t},{resolver:n,data:i}=Ds(e,r),s=[],a=[],c=["models","endpoints","queries","acl"],u={models:jS,endpoints:NS,queries:qS,acl:TS};i.forEach((f,p)=>{r.excludeTags.find(m=>m.toLowerCase()===p.toLowerCase())||c.forEach(m=>{let g=u[m]({resolver:n,data:i,tag:p});if(g){let y=Rf({output:r.output,fileName:Ct({tag:p,type:m,options:r})});s.push({fileName:y,content:g}),m==="acl"&&a.push(p)}})});let l=kS(n,a);if(l){let f=Rf({output:r.output,fileName:b_});s.push({fileName:f,content:l})}return s}o(MS,"generateCodeFromOpenAPIDoc");async function U3({input:e,options:t}){let r={...zi,...t},n=await qf.default.bundle(e);return await __(n,r)}o(U3,"getGenerateMetadata");async function z3({input:e,options:t}){let r={...zi,...t},n=await qf.default.bundle(e);return MS(n,r)}o(z3,"getGenerateFilesData");0&&(module.exports={getGenerateFilesData,getGenerateMetadata});
|